@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.137 → 0.0.1-alpha.139

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 (18) hide show
  1. package/dist/openapi-k8s-toolkit.es.js +1061 -1242
  2. package/dist/openapi-k8s-toolkit.es.js.map +1 -1
  3. package/dist/openapi-k8s-toolkit.umd.js +49052 -49234
  4. package/dist/openapi-k8s-toolkit.umd.js.map +1 -1
  5. package/dist/types/components/molecules/BlackholeForm/atoms/HiddenContainer/HiddenContainer.d.ts +2 -4
  6. package/dist/types/components/molecules/BlackholeForm/atoms/HiddenContainer/utils.d.ts +3 -0
  7. package/dist/types/components/molecules/BlackholeForm/molecules/FormInlineYamlEditor/FormInlineYamlEditor.d.ts +7 -0
  8. package/dist/types/components/molecules/BlackholeForm/molecules/FormInlineYamlEditor/index.d.ts +1 -0
  9. package/dist/types/components/molecules/BlackholeForm/molecules/FormInlineYamlEditor/styled.d.ts +8 -0
  10. package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditor/YamlEditor.d.ts +1 -0
  11. package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditor/styled.d.ts +5 -273
  12. package/dist/types/components/molecules/BlackholeForm/molecules/YamlEditorSingleton/styled.d.ts +1 -0
  13. package/dist/types/components/molecules/BlackholeForm/molecules/index.d.ts +1 -0
  14. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/casts.d.ts +43 -0
  15. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/debugs.d.ts +8 -0
  16. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/hiddenExpanded.d.ts +4 -0
  17. package/dist/types/components/molecules/BlackholeForm/organisms/BlackholeForm/helpers/prefills.d.ts +9 -0
  18. package/package.json +1 -1
@@ -1,9 +1,27 @@
1
- import o, { useRef, useContext, useDebugValue, createElement, useState, useLayoutEffect, useEffect, Fragment, createContext, useMemo, isValidElement, cloneElement, useCallback, useInsertionEffect, useSyncExternalStore, memo, Suspense } from 'react';
1
+ import styled, { createGlobalStyle } from 'styled-components';
2
+ import K, { useState, useRef, useLayoutEffect, useEffect, Fragment, createContext, useContext, useMemo, createElement, isValidElement, cloneElement, useCallback, useInsertionEffect, useSyncExternalStore, memo, Suspense } from 'react';
2
3
  import { Input, Tree, Modal, Alert, theme, Select, Tag, Breadcrumb, Spin, Menu, Tooltip, Space, Button, Flex, Typography, Card, Row, Col, Tabs, Form, Popover, notification, Dropdown, Table, Slider, InputNumber, Switch, Result, Progress, Checkbox } from 'antd';
3
4
  import { LoadingOutlined, ExclamationCircleFilled, CloseCircleFilled, CheckCircleFilled, PlusOutlined, ClearOutlined, MinusOutlined, CaretDownOutlined, CaretRightOutlined, InfoCircleOutlined, EyeOutlined, EyeInvisibleOutlined, SearchOutlined, MoreOutlined, CheckOutlined, CloseOutlined, BugOutlined, EllipsisOutlined } from '@ant-design/icons';
4
5
  import { useQuery, useQueries, useQueryClient } from '@tanstack/react-query';
5
6
  import { Link, useNavigate, useLocation, useParams, useSearchParams } from 'react-router-dom';
6
7
 
8
+ const Spacer$1 = styled.div`
9
+ height: ${({ $space, $spaceMob, $samespace }) => {
10
+ if ($spaceMob) {
11
+ return $spaceMob;
12
+ }
13
+ if ($space && $samespace) {
14
+ return $space;
15
+ }
16
+ return 24;
17
+ }}px;
18
+ width: 100%;
19
+
20
+ @media (min-width: 1024px) {
21
+ height: ${({ $space }) => $space ?? "48"}px;
22
+ }
23
+ `;
24
+
7
25
  function getDefaultExportFromCjs$1 (x) {
8
26
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
9
27
  }
@@ -198,960 +216,12 @@ process.umask = function() { return 0; };
198
216
  var browserExports = browser.exports;
199
217
  const process$1 = /*@__PURE__*/getDefaultExportFromCjs$1(browserExports);
200
218
 
201
- /******************************************************************************
202
- Copyright (c) Microsoft Corporation.
203
-
204
- Permission to use, copy, modify, and/or distribute this software for any
205
- purpose with or without fee is hereby granted.
206
-
207
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
208
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
209
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
210
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
211
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
212
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
213
- PERFORMANCE OF THIS SOFTWARE.
214
- ***************************************************************************** */
215
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
216
-
217
-
218
- var __assign = function() {
219
- __assign = Object.assign || function __assign(t) {
220
- for (var s, i = 1, n = arguments.length; i < n; i++) {
221
- s = arguments[i];
222
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
223
- }
224
- return t;
225
- };
226
- return __assign.apply(this, arguments);
227
- };
228
-
229
- function __spreadArray(to, from, pack) {
230
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
231
- if (ar || !(i in from)) {
232
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
233
- ar[i] = from[i];
234
- }
235
- }
236
- return to.concat(ar || Array.prototype.slice.call(from));
237
- }
238
-
239
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
240
- var e = new Error(message);
241
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
242
- };
243
-
244
- function memoize(fn) {
245
- var cache = Object.create(null);
246
- return function (arg) {
247
- if (cache[arg] === undefined) cache[arg] = fn(arg);
248
- return cache[arg];
249
- };
250
- }
251
-
252
- // eslint-disable-next-line no-undef
253
- var reactPropsRegex = /^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|disableRemotePlayback|download|draggable|encType|enterKeyHint|fetchpriority|fetchPriority|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/; // https://esbench.com/bench/5bfee68a4cd7e6009ef61d23
254
-
255
- var isPropValid = /* #__PURE__ */memoize(function (prop) {
256
- return reactPropsRegex.test(prop) || prop.charCodeAt(0) === 111
257
- /* o */
258
- && prop.charCodeAt(1) === 110
259
- /* n */
260
- && prop.charCodeAt(2) < 91;
261
- }
262
- /* Z+1 */
263
- );
264
-
265
219
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
266
220
 
267
221
  function getDefaultExportFromCjs (x) {
268
222
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
269
223
  }
270
224
 
271
- var MS = '-ms-';
272
- var MOZ = '-moz-';
273
- var WEBKIT = '-webkit-';
274
-
275
- var COMMENT = 'comm';
276
- var RULESET = 'rule';
277
- var DECLARATION = 'decl';
278
- var IMPORT = '@import';
279
- var NAMESPACE = '@namespace';
280
- var KEYFRAMES = '@keyframes';
281
- var LAYER = '@layer';
282
-
283
- /**
284
- * @param {number}
285
- * @return {number}
286
- */
287
- var abs = Math.abs;
288
-
289
- /**
290
- * @param {number}
291
- * @return {string}
292
- */
293
- var from = String.fromCharCode;
294
-
295
- /**
296
- * @param {object}
297
- * @return {object}
298
- */
299
- var assign = Object.assign;
300
-
301
- /**
302
- * @param {string} value
303
- * @param {number} length
304
- * @return {number}
305
- */
306
- function hash (value, length) {
307
- return charat(value, 0) ^ 45 ? (((((((length << 2) ^ charat(value, 0)) << 2) ^ charat(value, 1)) << 2) ^ charat(value, 2)) << 2) ^ charat(value, 3) : 0
308
- }
309
-
310
- /**
311
- * @param {string} value
312
- * @return {string}
313
- */
314
- function trim$1 (value) {
315
- return value.trim()
316
- }
317
-
318
- /**
319
- * @param {string} value
320
- * @param {RegExp} pattern
321
- * @return {string?}
322
- */
323
- function match (value, pattern) {
324
- return (value = pattern.exec(value)) ? value[0] : value
325
- }
326
-
327
- /**
328
- * @param {string} value
329
- * @param {(string|RegExp)} pattern
330
- * @param {string} replacement
331
- * @return {string}
332
- */
333
- function replace (value, pattern, replacement) {
334
- return value.replace(pattern, replacement)
335
- }
336
-
337
- /**
338
- * @param {string} value
339
- * @param {string} search
340
- * @param {number} position
341
- * @return {number}
342
- */
343
- function indexof (value, search, position) {
344
- return value.indexOf(search, position)
345
- }
346
-
347
- /**
348
- * @param {string} value
349
- * @param {number} index
350
- * @return {number}
351
- */
352
- function charat (value, index) {
353
- return value.charCodeAt(index) | 0
354
- }
355
-
356
- /**
357
- * @param {string} value
358
- * @param {number} begin
359
- * @param {number} end
360
- * @return {string}
361
- */
362
- function substr (value, begin, end) {
363
- return value.slice(begin, end)
364
- }
365
-
366
- /**
367
- * @param {string} value
368
- * @return {number}
369
- */
370
- function strlen (value) {
371
- return value.length
372
- }
373
-
374
- /**
375
- * @param {any[]} value
376
- * @return {number}
377
- */
378
- function sizeof (value) {
379
- return value.length
380
- }
381
-
382
- /**
383
- * @param {any} value
384
- * @param {any[]} array
385
- * @return {any}
386
- */
387
- function append (value, array) {
388
- return array.push(value), value
389
- }
390
-
391
- /**
392
- * @param {string[]} array
393
- * @param {function} callback
394
- * @return {string}
395
- */
396
- function combine (array, callback) {
397
- return array.map(callback).join('')
398
- }
399
-
400
- /**
401
- * @param {string[]} array
402
- * @param {RegExp} pattern
403
- * @return {string[]}
404
- */
405
- function filter (array, pattern) {
406
- return array.filter(function (value) { return !match(value, pattern) })
407
- }
408
-
409
- var line = 1;
410
- var column = 1;
411
- var length = 0;
412
- var position = 0;
413
- var character = 0;
414
- var characters = '';
415
-
416
- /**
417
- * @param {string} value
418
- * @param {object | null} root
419
- * @param {object | null} parent
420
- * @param {string} type
421
- * @param {string[] | string} props
422
- * @param {object[] | string} children
423
- * @param {object[]} siblings
424
- * @param {number} length
425
- */
426
- function node (value, root, parent, type, props, children, length, siblings) {
427
- return {value: value, root: root, parent: parent, type: type, props: props, children: children, line: line, column: column, length: length, return: '', siblings: siblings}
428
- }
429
-
430
- /**
431
- * @param {object} root
432
- * @param {object} props
433
- * @return {object}
434
- */
435
- function copy (root, props) {
436
- return assign(node('', null, null, '', null, null, 0, root.siblings), root, {length: -root.length}, props)
437
- }
438
-
439
- /**
440
- * @param {object} root
441
- */
442
- function lift (root) {
443
- while (root.root)
444
- root = copy(root.root, {children: [root]});
445
-
446
- append(root, root.siblings);
447
- }
448
-
449
- /**
450
- * @return {number}
451
- */
452
- function char () {
453
- return character
454
- }
455
-
456
- /**
457
- * @return {number}
458
- */
459
- function prev () {
460
- character = position > 0 ? charat(characters, --position) : 0;
461
-
462
- if (column--, character === 10)
463
- column = 1, line--;
464
-
465
- return character
466
- }
467
-
468
- /**
469
- * @return {number}
470
- */
471
- function next () {
472
- character = position < length ? charat(characters, position++) : 0;
473
-
474
- if (column++, character === 10)
475
- column = 1, line++;
476
-
477
- return character
478
- }
479
-
480
- /**
481
- * @return {number}
482
- */
483
- function peek () {
484
- return charat(characters, position)
485
- }
486
-
487
- /**
488
- * @return {number}
489
- */
490
- function caret () {
491
- return position
492
- }
493
-
494
- /**
495
- * @param {number} begin
496
- * @param {number} end
497
- * @return {string}
498
- */
499
- function slice (begin, end) {
500
- return substr(characters, begin, end)
501
- }
502
-
503
- /**
504
- * @param {number} type
505
- * @return {number}
506
- */
507
- function token (type) {
508
- switch (type) {
509
- // \0 \t \n \r \s whitespace token
510
- case 0: case 9: case 10: case 13: case 32:
511
- return 5
512
- // ! + , / > @ ~ isolate token
513
- case 33: case 43: case 44: case 47: case 62: case 64: case 126:
514
- // ; { } breakpoint token
515
- case 59: case 123: case 125:
516
- return 4
517
- // : accompanied token
518
- case 58:
519
- return 3
520
- // " ' ( [ opening delimit token
521
- case 34: case 39: case 40: case 91:
522
- return 2
523
- // ) ] closing delimit token
524
- case 41: case 93:
525
- return 1
526
- }
527
-
528
- return 0
529
- }
530
-
531
- /**
532
- * @param {string} value
533
- * @return {any[]}
534
- */
535
- function alloc (value) {
536
- return line = column = 1, length = strlen(characters = value), position = 0, []
537
- }
538
-
539
- /**
540
- * @param {any} value
541
- * @return {any}
542
- */
543
- function dealloc (value) {
544
- return characters = '', value
545
- }
546
-
547
- /**
548
- * @param {number} type
549
- * @return {string}
550
- */
551
- function delimit (type) {
552
- return trim$1(slice(position - 1, delimiter(type === 91 ? type + 2 : type === 40 ? type + 1 : type)))
553
- }
554
-
555
- /**
556
- * @param {number} type
557
- * @return {string}
558
- */
559
- function whitespace (type) {
560
- while (character = peek())
561
- if (character < 33)
562
- next();
563
- else
564
- break
565
-
566
- return token(type) > 2 || token(character) > 3 ? '' : ' '
567
- }
568
-
569
- /**
570
- * @param {number} index
571
- * @param {number} count
572
- * @return {string}
573
- */
574
- function escaping (index, count) {
575
- while (--count && next())
576
- // not 0-9 A-F a-f
577
- if (character < 48 || character > 102 || (character > 57 && character < 65) || (character > 70 && character < 97))
578
- break
579
-
580
- return slice(index, caret() + (count < 6 && peek() == 32 && next() == 32))
581
- }
582
-
583
- /**
584
- * @param {number} type
585
- * @return {number}
586
- */
587
- function delimiter (type) {
588
- while (next())
589
- switch (character) {
590
- // ] ) " '
591
- case type:
592
- return position
593
- // " '
594
- case 34: case 39:
595
- if (type !== 34 && type !== 39)
596
- delimiter(character);
597
- break
598
- // (
599
- case 40:
600
- if (type === 41)
601
- delimiter(type);
602
- break
603
- // \
604
- case 92:
605
- next();
606
- break
607
- }
608
-
609
- return position
610
- }
611
-
612
- /**
613
- * @param {number} type
614
- * @param {number} index
615
- * @return {number}
616
- */
617
- function commenter (type, index) {
618
- while (next())
619
- // //
620
- if (type + character === 47 + 10)
621
- break
622
- // /*
623
- else if (type + character === 42 + 42 && peek() === 47)
624
- break
625
-
626
- return '/*' + slice(index, position - 1) + '*' + from(type === 47 ? type : next())
627
- }
628
-
629
- /**
630
- * @param {number} index
631
- * @return {string}
632
- */
633
- function identifier (index) {
634
- while (!token(peek()))
635
- next();
636
-
637
- return slice(index, position)
638
- }
639
-
640
- /**
641
- * @param {string} value
642
- * @return {object[]}
643
- */
644
- function compile (value) {
645
- return dealloc(parse$1('', null, null, null, [''], value = alloc(value), 0, [0], value))
646
- }
647
-
648
- /**
649
- * @param {string} value
650
- * @param {object} root
651
- * @param {object?} parent
652
- * @param {string[]} rule
653
- * @param {string[]} rules
654
- * @param {string[]} rulesets
655
- * @param {number[]} pseudo
656
- * @param {number[]} points
657
- * @param {string[]} declarations
658
- * @return {object}
659
- */
660
- function parse$1 (value, root, parent, rule, rules, rulesets, pseudo, points, declarations) {
661
- var index = 0;
662
- var offset = 0;
663
- var length = pseudo;
664
- var atrule = 0;
665
- var property = 0;
666
- var previous = 0;
667
- var variable = 1;
668
- var scanning = 1;
669
- var ampersand = 1;
670
- var character = 0;
671
- var type = '';
672
- var props = rules;
673
- var children = rulesets;
674
- var reference = rule;
675
- var characters = type;
676
-
677
- while (scanning)
678
- switch (previous = character, character = next()) {
679
- // (
680
- case 40:
681
- if (previous != 108 && charat(characters, length - 1) == 58) {
682
- if (indexof(characters += replace(delimit(character), '&', '&\f'), '&\f', abs(index ? points[index - 1] : 0)) != -1)
683
- ampersand = -1;
684
- break
685
- }
686
- // " ' [
687
- case 34: case 39: case 91:
688
- characters += delimit(character);
689
- break
690
- // \t \n \r \s
691
- case 9: case 10: case 13: case 32:
692
- characters += whitespace(previous);
693
- break
694
- // \
695
- case 92:
696
- characters += escaping(caret() - 1, 7);
697
- continue
698
- // /
699
- case 47:
700
- switch (peek()) {
701
- case 42: case 47:
702
- append(comment(commenter(next(), caret()), root, parent, declarations), declarations);
703
- if ((token(previous || 1) == 5 || token(peek() || 1) == 5) && strlen(characters) && substr(characters, -1, void 0) !== ' ') characters += ' ';
704
- break
705
- default:
706
- characters += '/';
707
- }
708
- break
709
- // {
710
- case 123 * variable:
711
- points[index++] = strlen(characters) * ampersand;
712
- // } ; \0
713
- case 125 * variable: case 59: case 0:
714
- switch (character) {
715
- // \0 }
716
- case 0: case 125: scanning = 0;
717
- // ;
718
- case 59 + offset: if (ampersand == -1) characters = replace(characters, /\f/g, '');
719
- if (property > 0 && (strlen(characters) - length || (variable === 0 && previous === 47)))
720
- append(property > 32 ? declaration(characters + ';', rule, parent, length - 1, declarations) : declaration(replace(characters, ' ', '') + ';', rule, parent, length - 2, declarations), declarations);
721
- break
722
- // @ ;
723
- case 59: characters += ';';
724
- // { rule/at-rule
725
- default:
726
- append(reference = ruleset(characters, root, parent, index, offset, rules, points, type, props = [], children = [], length, rulesets), rulesets);
727
-
728
- if (character === 123)
729
- if (offset === 0)
730
- parse$1(characters, root, reference, reference, props, rulesets, length, points, children);
731
- else {
732
- switch (atrule) {
733
- // c(ontainer)
734
- case 99:
735
- if (charat(characters, 3) === 110) break
736
- // l(ayer)
737
- case 108:
738
- if (charat(characters, 2) === 97) break
739
- default:
740
- offset = 0;
741
- // d(ocument) m(edia) s(upports)
742
- case 100: case 109: case 115:
743
- }
744
- if (offset) parse$1(value, reference, reference, rule && append(ruleset(value, reference, reference, 0, 0, rules, points, type, rules, props = [], length, children), children), rules, children, length, points, rule ? props : children);
745
- else parse$1(characters, reference, reference, reference, [''], children, 0, points, children);
746
- }
747
- }
748
-
749
- index = offset = property = 0, variable = ampersand = 1, type = characters = '', length = pseudo;
750
- break
751
- // :
752
- case 58:
753
- length = 1 + strlen(characters), property = previous;
754
- default:
755
- if (variable < 1)
756
- if (character == 123)
757
- --variable;
758
- else if (character == 125 && variable++ == 0 && prev() == 125)
759
- continue
760
-
761
- switch (characters += from(character), character * variable) {
762
- // &
763
- case 38:
764
- ampersand = offset > 0 ? 1 : (characters += '\f', -1);
765
- break
766
- // ,
767
- case 44:
768
- points[index++] = (strlen(characters) - 1) * ampersand, ampersand = 1;
769
- break
770
- // @
771
- case 64:
772
- // -
773
- if (peek() === 45)
774
- characters += delimit(next());
775
-
776
- atrule = peek(), offset = length = strlen(type = characters += identifier(caret())), character++;
777
- break
778
- // -
779
- case 45:
780
- if (previous === 45 && strlen(characters) == 2)
781
- variable = 0;
782
- }
783
- }
784
-
785
- return rulesets
786
- }
787
-
788
- /**
789
- * @param {string} value
790
- * @param {object} root
791
- * @param {object?} parent
792
- * @param {number} index
793
- * @param {number} offset
794
- * @param {string[]} rules
795
- * @param {number[]} points
796
- * @param {string} type
797
- * @param {string[]} props
798
- * @param {string[]} children
799
- * @param {number} length
800
- * @param {object[]} siblings
801
- * @return {object}
802
- */
803
- function ruleset (value, root, parent, index, offset, rules, points, type, props, children, length, siblings) {
804
- var post = offset - 1;
805
- var rule = offset === 0 ? rules : [''];
806
- var size = sizeof(rule);
807
-
808
- for (var i = 0, j = 0, k = 0; i < index; ++i)
809
- for (var x = 0, y = substr(value, post + 1, post = abs(j = points[i])), z = value; x < size; ++x)
810
- if (z = trim$1(j > 0 ? rule[x] + ' ' + y : replace(y, /&\f/g, rule[x])))
811
- props[k++] = z;
812
-
813
- return node(value, root, parent, offset === 0 ? RULESET : type, props, children, length, siblings)
814
- }
815
-
816
- /**
817
- * @param {number} value
818
- * @param {object} root
819
- * @param {object?} parent
820
- * @param {object[]} siblings
821
- * @return {object}
822
- */
823
- function comment (value, root, parent, siblings) {
824
- return node(value, root, parent, COMMENT, from(char()), substr(value, 2, -2), 0, siblings)
825
- }
826
-
827
- /**
828
- * @param {string} value
829
- * @param {object} root
830
- * @param {object?} parent
831
- * @param {number} length
832
- * @param {object[]} siblings
833
- * @return {object}
834
- */
835
- function declaration (value, root, parent, length, siblings) {
836
- return node(value, root, parent, DECLARATION, substr(value, 0, length), substr(value, length + 1, -1), length, siblings)
837
- }
838
-
839
- /**
840
- * @param {string} value
841
- * @param {number} length
842
- * @param {object[]} children
843
- * @return {string}
844
- */
845
- function prefix (value, length, children) {
846
- switch (hash(value, length)) {
847
- // color-adjust
848
- case 5103:
849
- return WEBKIT + 'print-' + value + value
850
- // animation, animation-(delay|direction|duration|fill-mode|iteration-count|name|play-state|timing-function)
851
- case 5737: case 4201: case 3177: case 3433: case 1641: case 4457: case 2921:
852
- // text-decoration, filter, clip-path, backface-visibility, column, box-decoration-break
853
- case 5572: case 6356: case 5844: case 3191: case 6645: case 3005:
854
- // background-clip, columns, column-(count|fill|gap|rule|rule-color|rule-style|rule-width|span|width)
855
- case 4215: case 6389: case 5109: case 5365: case 5621: case 3829:
856
- // mask, mask-image, mask-(mode|clip|size), mask-(repeat|origin), mask-position
857
- case 6391: case 5879: case 5623: case 6135: case 4599:
858
- return WEBKIT + value + value
859
- // mask-composite
860
- case 4855:
861
- return WEBKIT + value.replace('add', 'source-over').replace('substract', 'source-out').replace('intersect', 'source-in').replace('exclude', 'xor') + value
862
- // tab-size
863
- case 4789:
864
- return MOZ + value + value
865
- // appearance, user-select, transform, hyphens, text-size-adjust
866
- case 5349: case 4246: case 4810: case 6968: case 2756:
867
- return WEBKIT + value + MOZ + value + MS + value + value
868
- // writing-mode
869
- case 5936:
870
- switch (charat(value, length + 11)) {
871
- // vertical-l(r)
872
- case 114:
873
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb') + value
874
- // vertical-r(l)
875
- case 108:
876
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'tb-rl') + value
877
- // horizontal(-)tb
878
- case 45:
879
- return WEBKIT + value + MS + replace(value, /[svh]\w+-[tblr]{2}/, 'lr') + value
880
- // default: fallthrough to below
881
- }
882
- // flex, flex-direction, scroll-snap-type, writing-mode
883
- case 6828: case 4268: case 2903:
884
- return WEBKIT + value + MS + value + value
885
- // order
886
- case 6165:
887
- return WEBKIT + value + MS + 'flex-' + value + value
888
- // align-items
889
- case 5187:
890
- return WEBKIT + value + replace(value, /(\w+).+(:[^]+)/, WEBKIT + 'box-$1$2' + MS + 'flex-$1$2') + value
891
- // align-self
892
- case 5443:
893
- return WEBKIT + value + MS + 'flex-item-' + replace(value, /flex-|-self/g, '') + (!match(value, /flex-|baseline/) ? MS + 'grid-row-' + replace(value, /flex-|-self/g, '') : '') + value
894
- // align-content
895
- case 4675:
896
- return WEBKIT + value + MS + 'flex-line-pack' + replace(value, /align-content|flex-|-self/g, '') + value
897
- // flex-shrink
898
- case 5548:
899
- return WEBKIT + value + MS + replace(value, 'shrink', 'negative') + value
900
- // flex-basis
901
- case 5292:
902
- return WEBKIT + value + MS + replace(value, 'basis', 'preferred-size') + value
903
- // flex-grow
904
- case 6060:
905
- return WEBKIT + 'box-' + replace(value, '-grow', '') + WEBKIT + value + MS + replace(value, 'grow', 'positive') + value
906
- // transition
907
- case 4554:
908
- return WEBKIT + replace(value, /([^-])(transform)/g, '$1' + WEBKIT + '$2') + value
909
- // cursor
910
- case 6187:
911
- return replace(replace(replace(value, /(zoom-|grab)/, WEBKIT + '$1'), /(image-set)/, WEBKIT + '$1'), value, '') + value
912
- // background, background-image
913
- case 5495: case 3959:
914
- return replace(value, /(image-set\([^]*)/, WEBKIT + '$1' + '$`$1')
915
- // justify-content
916
- case 4968:
917
- return replace(replace(value, /(.+:)(flex-)?(.*)/, WEBKIT + 'box-pack:$3' + MS + 'flex-pack:$3'), /space-between/, 'justify') + WEBKIT + value + value
918
- // justify-self
919
- case 4200:
920
- if (!match(value, /flex-|baseline/)) return MS + 'grid-column-align' + substr(value, length) + value
921
- break
922
- // grid-template-(columns|rows)
923
- case 2592: case 3360:
924
- return MS + replace(value, 'template-', '') + value
925
- // grid-(row|column)-start
926
- case 4384: case 3616:
927
- if (children && children.some(function (element, index) { return length = index, match(element.props, /grid-\w+-end/) })) {
928
- return ~indexof(value + (children = children[length].value), 'span', 0) ? value : (MS + replace(value, '-start', '') + value + MS + 'grid-row-span:' + (~indexof(children, 'span', 0) ? match(children, /\d+/) : +match(children, /\d+/) - +match(value, /\d+/)) + ';')
929
- }
930
- return MS + replace(value, '-start', '') + value
931
- // grid-(row|column)-end
932
- case 4896: case 4128:
933
- return (children && children.some(function (element) { return match(element.props, /grid-\w+-start/) })) ? value : MS + replace(replace(value, '-end', '-span'), 'span ', '') + value
934
- // (margin|padding)-inline-(start|end)
935
- case 4095: case 3583: case 4068: case 2532:
936
- return replace(value, /(.+)-inline(.+)/, WEBKIT + '$1$2') + value
937
- // (min|max)?(width|height|inline-size|block-size)
938
- case 8116: case 7059: case 5753: case 5535:
939
- case 5445: case 5701: case 4933: case 4677:
940
- case 5533: case 5789: case 5021: case 4765:
941
- // stretch, max-content, min-content, fill-available
942
- if (strlen(value) - 1 - length > 6)
943
- switch (charat(value, length + 1)) {
944
- // (m)ax-content, (m)in-content
945
- case 109:
946
- // -
947
- if (charat(value, length + 4) !== 45)
948
- break
949
- // (f)ill-available, (f)it-content
950
- case 102:
951
- return replace(value, /(.+:)(.+)-([^]+)/, '$1' + WEBKIT + '$2-$3' + '$1' + MOZ + (charat(value, length + 3) == 108 ? '$3' : '$2-$3')) + value
952
- // (s)tretch
953
- case 115:
954
- return ~indexof(value, 'stretch', 0) ? prefix(replace(value, 'stretch', 'fill-available'), length, children) + value : value
955
- }
956
- break
957
- // grid-(column|row)
958
- case 5152: case 5920:
959
- return replace(value, /(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/, function (_, a, b, c, d, e, f) { return (MS + a + ':' + b + f) + (c ? (MS + a + '-span:' + (d ? e : +e - +b)) + f : '') + value })
960
- // position: sticky
961
- case 4949:
962
- // stick(y)?
963
- if (charat(value, length + 6) === 121)
964
- return replace(value, ':', ':' + WEBKIT) + value
965
- break
966
- // display: (flex|inline-flex|grid|inline-grid)
967
- case 6444:
968
- switch (charat(value, charat(value, 14) === 45 ? 18 : 11)) {
969
- // (inline-)?fle(x)
970
- case 120:
971
- return replace(value, /(.+:)([^;\s!]+)(;|(\s+)?!.+)?/, '$1' + WEBKIT + (charat(value, 14) === 45 ? 'inline-' : '') + 'box$3' + '$1' + WEBKIT + '$2$3' + '$1' + MS + '$2box$3') + value
972
- // (inline-)?gri(d)
973
- case 100:
974
- return replace(value, ':', ':' + MS) + value
975
- }
976
- break
977
- // scroll-margin, scroll-margin-(top|right|bottom|left)
978
- case 5719: case 2647: case 2135: case 3927: case 2391:
979
- return replace(value, 'scroll-', 'scroll-snap-') + value
980
- }
981
-
982
- return value
983
- }
984
-
985
- /**
986
- * @param {object[]} children
987
- * @param {function} callback
988
- * @return {string}
989
- */
990
- function serialize (children, callback) {
991
- var output = '';
992
-
993
- for (var i = 0; i < children.length; i++)
994
- output += callback(children[i], i, children, callback) || '';
995
-
996
- return output
997
- }
998
-
999
- /**
1000
- * @param {object} element
1001
- * @param {number} index
1002
- * @param {object[]} children
1003
- * @param {function} callback
1004
- * @return {string}
1005
- */
1006
- function stringify$2 (element, index, children, callback) {
1007
- switch (element.type) {
1008
- case LAYER: if (element.children.length) break
1009
- case IMPORT: case NAMESPACE: case DECLARATION: return element.return = element.return || element.value
1010
- case COMMENT: return ''
1011
- case KEYFRAMES: return element.return = element.value + '{' + serialize(element.children, callback) + '}'
1012
- case RULESET: if (!strlen(element.value = element.props.join(','))) return ''
1013
- }
1014
-
1015
- return strlen(children = serialize(element.children, callback)) ? element.return = element.value + '{' + children + '}' : ''
1016
- }
1017
-
1018
- /**
1019
- * @param {function[]} collection
1020
- * @return {function}
1021
- */
1022
- function middleware (collection) {
1023
- var length = sizeof(collection);
1024
-
1025
- return function (element, index, children, callback) {
1026
- var output = '';
1027
-
1028
- for (var i = 0; i < length; i++)
1029
- output += collection[i](element, index, children, callback) || '';
1030
-
1031
- return output
1032
- }
1033
- }
1034
-
1035
- /**
1036
- * @param {function} callback
1037
- * @return {function}
1038
- */
1039
- function rulesheet (callback) {
1040
- return function (element) {
1041
- if (!element.root)
1042
- if (element = element.return)
1043
- callback(element);
1044
- }
1045
- }
1046
-
1047
- /**
1048
- * @param {object} element
1049
- * @param {number} index
1050
- * @param {object[]} children
1051
- * @param {function} callback
1052
- */
1053
- function prefixer (element, index, children, callback) {
1054
- if (element.length > -1)
1055
- if (!element.return)
1056
- switch (element.type) {
1057
- case DECLARATION: element.return = prefix(element.value, element.length, children);
1058
- return
1059
- case KEYFRAMES:
1060
- return serialize([copy(element, {value: replace(element.value, '@', '@' + WEBKIT)})], callback)
1061
- case RULESET:
1062
- if (element.length)
1063
- return combine(children = element.props, function (value) {
1064
- switch (match(value, callback = /(::plac\w+|:read-\w+)/)) {
1065
- // :read-(only|write)
1066
- case ':read-only': case ':read-write':
1067
- lift(copy(element, {props: [replace(value, /:(read-\w+)/, ':' + MOZ + '$1')]}));
1068
- lift(copy(element, {props: [value]}));
1069
- assign(element, {props: filter(children, callback)});
1070
- break
1071
- // :placeholder
1072
- case '::placeholder':
1073
- lift(copy(element, {props: [replace(value, /:(plac\w+)/, ':' + WEBKIT + 'input-$1')]}));
1074
- lift(copy(element, {props: [replace(value, /:(plac\w+)/, ':' + MOZ + '$1')]}));
1075
- lift(copy(element, {props: [replace(value, /:(plac\w+)/, MS + 'input-$1')]}));
1076
- lift(copy(element, {props: [value]}));
1077
- assign(element, {props: filter(children, callback)});
1078
- break
1079
- }
1080
-
1081
- return ''
1082
- })
1083
- }
1084
- }
1085
-
1086
- var unitlessKeys = {
1087
- animationIterationCount: 1,
1088
- aspectRatio: 1,
1089
- borderImageOutset: 1,
1090
- borderImageSlice: 1,
1091
- borderImageWidth: 1,
1092
- boxFlex: 1,
1093
- boxFlexGroup: 1,
1094
- boxOrdinalGroup: 1,
1095
- columnCount: 1,
1096
- columns: 1,
1097
- flex: 1,
1098
- flexGrow: 1,
1099
- flexPositive: 1,
1100
- flexShrink: 1,
1101
- flexNegative: 1,
1102
- flexOrder: 1,
1103
- gridRow: 1,
1104
- gridRowEnd: 1,
1105
- gridRowSpan: 1,
1106
- gridRowStart: 1,
1107
- gridColumn: 1,
1108
- gridColumnEnd: 1,
1109
- gridColumnSpan: 1,
1110
- gridColumnStart: 1,
1111
- msGridRow: 1,
1112
- msGridRowSpan: 1,
1113
- msGridColumn: 1,
1114
- msGridColumnSpan: 1,
1115
- fontWeight: 1,
1116
- lineHeight: 1,
1117
- opacity: 1,
1118
- order: 1,
1119
- orphans: 1,
1120
- tabSize: 1,
1121
- widows: 1,
1122
- zIndex: 1,
1123
- zoom: 1,
1124
- WebkitLineClamp: 1,
1125
- // SVG-related properties
1126
- fillOpacity: 1,
1127
- floodOpacity: 1,
1128
- stopOpacity: 1,
1129
- strokeDasharray: 1,
1130
- strokeDashoffset: 1,
1131
- strokeMiterlimit: 1,
1132
- strokeOpacity: 1,
1133
- strokeWidth: 1
1134
- };
1135
-
1136
- var f$1="undefined"!=typeof process$1&&void 0!==process$1.env&&(process$1.env.REACT_APP_SC_ATTR||process$1.env.SC_ATTR)||"data-styled",y$1="undefined"!=typeof window&&"HTMLElement"in window,v$2=Boolean("boolean"==typeof SC_DISABLE_SPEEDY?SC_DISABLE_SPEEDY:"undefined"!=typeof process$1&&void 0!==process$1.env&&void 0!==process$1.env.REACT_APP_SC_DISABLE_SPEEDY&&""!==process$1.env.REACT_APP_SC_DISABLE_SPEEDY?"false"!==process$1.env.REACT_APP_SC_DISABLE_SPEEDY&&process$1.env.REACT_APP_SC_DISABLE_SPEEDY:"undefined"!=typeof process$1&&void 0!==process$1.env&&void 0!==process$1.env.SC_DISABLE_SPEEDY&&""!==process$1.env.SC_DISABLE_SPEEDY?"false"!==process$1.env.SC_DISABLE_SPEEDY&&process$1.env.SC_DISABLE_SPEEDY:"production"!==process$1.env.NODE_ENV),g={},S=/invalid hook call/i,w=new Set,b=function(t,n){if("production"!==process$1.env.NODE_ENV){var o=n?' with the id of "'.concat(n,'"'):"",s="The component ".concat(t).concat(o," has been created dynamically.\n")+"You may see this warning because you've called styled inside another component.\nTo resolve this only create new StyledComponents outside of any render method and function component.",i=console.error;try{var a=!0;console.error=function(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];S.test(t)?(a=!1,w.delete(s)):i.apply(void 0,__spreadArray([t],n,!1));},useRef(),a&&!w.has(s)&&(console.warn(s),w.add(s));}catch(e){S.test(e.message)&&w.delete(s);}finally{console.error=i;}}},E$1=Object.freeze([]),N$1=Object.freeze({});function P$1(e,t,n){return void 0===n&&(n=N$1),e.theme!==n.theme&&e.theme||t||n.theme}var _$2=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),C=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,I$1=/(^-|-$)/g;function A(e){return e.replace(C,"-").replace(I$1,"")}var O$1=/(a)(d)/gi,D$1=function(e){return String.fromCharCode(e+(e>25?39:97))};function R(e){var t,n="";for(t=Math.abs(e);t>52;t=t/52|0)n=D$1(t%52)+n;return (D$1(t%52)+n).replace(O$1,"$1-$2")}var T$1,k$1=function(e,t){for(var n=t.length;n;)e=33*e^t.charCodeAt(--n);return e},j=function(e){return k$1(5381,e)};function x$1(e){return R(j(e)>>>0)}function V(e){return "production"!==process$1.env.NODE_ENV&&"string"==typeof e&&e||e.displayName||e.name||"Component"}function M(e){return "string"==typeof e&&("production"===process$1.env.NODE_ENV||e.charAt(0)===e.charAt(0).toLowerCase())}var F="function"==typeof Symbol&&Symbol.for,$$1=F?Symbol.for("react.memo"):60115,z=F?Symbol.for("react.forward_ref"):60112,B$1={childContextTypes:true,contextType:true,contextTypes:true,defaultProps:true,displayName:true,getDefaultProps:true,getDerivedStateFromError:true,getDerivedStateFromProps:true,mixins:true,propTypes:true,type:true},L={name:true,length:true,prototype:true,caller:true,callee:true,arguments:true,arity:true},G$1={$$typeof:true,compare:true,defaultProps:true,displayName:true,propTypes:true,type:true},Y$1=((T$1={})[z]={$$typeof:true,render:true,defaultProps:true,displayName:true,propTypes:true},T$1[$$1]=G$1,T$1);function W$1(e){return ("type"in(t=e)&&t.type.$$typeof)===$$1?G$1:"$$typeof"in e?Y$1[e.$$typeof]:B$1;var t;}var q=Object.defineProperty,H$2=Object.getOwnPropertyNames,U=Object.getOwnPropertySymbols,J$1=Object.getOwnPropertyDescriptor,X$1=Object.getPrototypeOf,Z$1=Object.prototype;function K(e,t,n){if("string"!=typeof t){if(Z$1){var o=X$1(t);o&&o!==Z$1&&K(e,o,n);}var r=H$2(t);U&&(r=r.concat(U(t)));for(var s=W$1(e),i=W$1(t),a=0;a<r.length;++a){var c=r[a];if(!(c in L||n&&n[c]||i&&c in i||s&&c in s)){var l=J$1(t,c);try{q(e,c,l);}catch(e){}}}}return e}function Q(e){return "function"==typeof e}function ee$1(e){return "object"==typeof e&&"styledComponentId"in e}function te$2(e,t){return e&&t?"".concat(e," ").concat(t):e||t||""}function ne(e,t){if(0===e.length)return "";for(var n=e[0],o=1;o<e.length;o++)n+=e[o];return n}function oe(e){return null!==e&&"object"==typeof e&&e.constructor.name===Object.name&&!("props"in e&&e.$$typeof)}function re(e,t,n){if(void 0===n&&(n=false),!n&&!oe(e)&&!Array.isArray(e))return t;if(Array.isArray(t))for(var o=0;o<t.length;o++)e[o]=re(e[o],t[o]);else if(oe(t))for(var o in t)e[o]=re(e[o],t[o]);return e}function se$1(e,t){Object.defineProperty(e,"toString",{value:t});}var ie$1="production"!==process$1.env.NODE_ENV?{1:"Cannot create styled-component for component: %s.\n\n",2:"Can't collect styles once you've consumed a `ServerStyleSheet`'s styles! `ServerStyleSheet` is a one off instance for each server-side render cycle.\n\n- Are you trying to reuse it across renders?\n- Are you accidentally calling collectStyles twice?\n\n",3:"Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.\n\n",4:"The `StyleSheetManager` expects a valid target or sheet prop!\n\n- Does this error occur on the client and is your target falsy?\n- Does this error occur on the server and is the sheet falsy?\n\n",5:"The clone method cannot be used on the client!\n\n- Are you running in a client-like environment on the server?\n- Are you trying to run SSR on the client?\n\n",6:"Trying to insert a new style tag, but the given Node is unmounted!\n\n- Are you using a custom target that isn't mounted?\n- Does your document not have a valid head element?\n- Have you accidentally removed a style tag manually?\n\n",7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:'ThemeProvider: Please make your "theme" prop an object.\n\n',9:"Missing document `<head>`\n\n",10:"Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021\n\n",11:"_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.\n\n",12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:"%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.\n\n",14:'ThemeProvider: "theme" prop is required.\n\n',15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:"Reached the limit of how many styled components may be created at group %s.\nYou may only create up to 1,073,741,824 components. If you're creating components dynamically,\nas for instance in your render method then you may be running into this limitation.\n\n",17:"CSSStyleSheet could not be found on HTMLStyleElement.\nHas styled-components' style tag been unmounted or altered by another script?\n",18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function ae$1(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n=e[0],o=[],r=1,s=e.length;r<s;r+=1)o.push(e[r]);return o.forEach(function(e){n=n.replace(/%[a-z]/,e);}),n}function ce(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];return "production"===process$1.env.NODE_ENV?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(t," for more information.").concat(n.length>0?" Args: ".concat(n.join(", ")):"")):new Error(ae$1.apply(void 0,__spreadArray([ie$1[t]],n,false)).trim())}var le$1=function(){function e(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e;}return e.prototype.indexOfGroup=function(e){for(var t=0,n=0;n<e;n++)t+=this.groupSizes[n];return t},e.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var n=this.groupSizes,o=n.length,r=o;e>=r;)if((r<<=1)<0)throw ce(16,"".concat(e));this.groupSizes=new Uint32Array(r),this.groupSizes.set(n),this.length=r;for(var s=o;s<r;s++)this.groupSizes[s]=0;}for(var i=this.indexOfGroup(e+1),a=(s=0,t.length);s<a;s++)this.tag.insertRule(i,t[s])&&(this.groupSizes[e]++,i++);},e.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],n=this.indexOfGroup(e),o=n+t;this.groupSizes[e]=0;for(var r=n;r<o;r++)this.tag.deleteRule(n);}},e.prototype.getGroup=function(e){var t="";if(e>=this.length||0===this.groupSizes[e])return t;for(var n=this.groupSizes[e],o=this.indexOfGroup(e),r=o+n,s=o;s<r;s++)t+="".concat(this.tag.getRule(s)).concat("/*!sc*/\n");return t},e}(),ue=new Map,pe=new Map,de$1=1,he$1=function(e){if(ue.has(e))return ue.get(e);for(;pe.has(de$1);)de$1++;var t=de$1++;if("production"!==process$1.env.NODE_ENV&&((0|t)<0||t>1073741824))throw ce(16,"".concat(t));return ue.set(e,t),pe.set(t,e),t},fe$1=function(e,t){ue.set(e,t),pe.set(t,e);},me="style[".concat(f$1,"][").concat("data-styled-version",'="').concat("6.0.7",'"]'),ye=new RegExp("^".concat(f$1,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),ve=function(e,t,n){for(var o,r=n.split(","),s=0,i=r.length;s<i;s++)(o=r[s])&&e.registerName(t,o);},ge=function(e,t){for(var n,o=(null!==(n=t.textContent)&&void 0!==n?n:"").split("/*!sc*/\n"),r=[],s=0,i=o.length;s<i;s++){var a=o[s].trim();if(a){var c=a.match(ye);if(c){var l=0|parseInt(c[1],10),u=c[2];0!==l&&(fe$1(u,l),ve(e,u,c[3]),e.getTag().insertRules(l,r)),r.length=0;}else r.push(a);}}};function Se(){return "undefined"!=typeof __webpack_nonce__?__webpack_nonce__:null}var we$1=function(e){var t=document.head,n=e||t,o=document.createElement("style"),r=function(e){var t=Array.from(e.querySelectorAll("style[".concat(f$1,"]")));return t[t.length-1]}(n),s=void 0!==r?r.nextSibling:null;o.setAttribute(f$1,"active"),o.setAttribute("data-styled-version","6.0.7");var i=Se();return i&&o.setAttribute("nonce",i),n.insertBefore(o,s),o},be$1=function(){function e(e){this.element=we$1(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(e){if(e.sheet)return e.sheet;for(var t=document.styleSheets,n=0,o=t.length;n<o;n++){var r=t[n];if(r.ownerNode===e)return r}throw ce(17)}(this.element),this.length=0;}return e.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch(e){return false}},e.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--;},e.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},e}(),Ee$1=function(){function e(e){this.element=we$1(e),this.nodes=this.element.childNodes,this.length=0;}return e.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var n=document.createTextNode(t);return this.element.insertBefore(n,this.nodes[e]||null),this.length++,true}return false},e.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},e}(),Ne=function(){function e(e){this.rules=[],this.length=0;}return e.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,true)},e.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--;},e.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},e}(),Pe$1=y$1,_e={isServer:!y$1,useCSSOMInjection:!v$2},Ce$1=function(){function e(e,n,o){ void 0===e&&(e=N$1),void 0===n&&(n={});var r=this;this.options=__assign(__assign({},_e),e),this.gs=n,this.names=new Map(o),this.server=!!e.isServer,!this.server&&y$1&&Pe$1&&(Pe$1=false,function(e){for(var t=document.querySelectorAll(me),n=0,o=t.length;n<o;n++){var r=t[n];r&&"active"!==r.getAttribute(f$1)&&(ge(e,r),r.parentNode&&r.parentNode.removeChild(r));}}(this)),se$1(this,function(){return function(e){for(var t=e.getTag(),n=t.length,o="",r=function(n){var r=function(e){return pe.get(e)}(n);if(void 0===r)return "continue";var s=e.names.get(r),i=t.getGroup(n);if(void 0===s||0===i.length)return "continue";var a="".concat(f$1,".g").concat(n,'[id="').concat(r,'"]'),c="";void 0!==s&&s.forEach(function(e){e.length>0&&(c+="".concat(e,","));}),o+="".concat(i).concat(a,'{content:"').concat(c,'"}').concat("/*!sc*/\n");},s=0;s<n;s++)r(s);return o}(r)});}return e.registerId=function(e){return he$1(e)},e.prototype.reconstructWithOptions=function(n,o){return void 0===o&&(o=true),new e(__assign(__assign({},this.options),n),this.gs,o&&this.names||void 0)},e.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},e.prototype.getTag=function(){return this.tag||(this.tag=(e=function(e){var t=e.useCSSOMInjection,n=e.target;return e.isServer?new Ne(n):t?new be$1(n):new Ee$1(n)}(this.options),new le$1(e)));var e;},e.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},e.prototype.registerName=function(e,t){if(he$1(e),this.names.has(e))this.names.get(e).add(t);else {var n=new Set;n.add(t),this.names.set(e,n);}},e.prototype.insertRules=function(e,t,n){this.registerName(e,t),this.getTag().insertRules(he$1(e),n);},e.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear();},e.prototype.clearRules=function(e){this.getTag().clearGroup(he$1(e)),this.clearNames(e);},e.prototype.clearTag=function(){this.tag=void 0;},e}(),Ie=/&/g,Ae=/^\s*\/\/.*$/gm;function Oe$1(e,t){return e.map(function(e){return "rule"===e.type&&(e.value="".concat(t," ").concat(e.value),e.value=e.value.replaceAll(",",",".concat(t," ")),e.props=e.props.map(function(e){return "".concat(t," ").concat(e)})),Array.isArray(e.children)&&"@keyframes"!==e.type&&(e.children=Oe$1(e.children,t)),e})}function De$1(e){var t,n,o,r=N$1,s=r.options,i=void 0===s?N$1:s,a=r.plugins,c=void 0===a?E$1:a,l=function(e,o,r){return r===n||r.startsWith(n)&&r.endsWith(n)&&r.replaceAll(n,"").length>0?".".concat(t):e},u=c.slice();u.push(function(e){e.type===RULESET&&e.value.includes("&")&&(e.props[0]=e.props[0].replace(Ie,n).replace(o,l));}),i.prefix&&u.push(prefixer),u.push(stringify$2);var p=function(e,r,s,a){ void 0===r&&(r=""),void 0===s&&(s=""),void 0===a&&(a="&"),t=a,n=r,o=new RegExp("\\".concat(n,"\\b"),"g");var c=e.replace(Ae,""),l=compile(s||r?"".concat(s," ").concat(r," { ").concat(c," }"):c);i.namespace&&(l=Oe$1(l,i.namespace));var p=[];return serialize(l,middleware(u.concat(rulesheet(function(e){return p.push(e)})))),p};return p.hash=c.length?c.reduce(function(e,t){return t.name||ce(15),k$1(e,t.name)},5381).toString():"",p}var Re=new Ce$1,Te=De$1(),ke=o.createContext({shouldForwardProp:void 0,styleSheet:Re,stylis:Te});ke.Consumer;o.createContext(void 0);function Ve$1(){return useContext(ke)}var Fe=function(){function e(e,t){var n=this;this.inject=function(e,t){ void 0===t&&(t=Te);var o=n.name+t.hash;e.hasNameForId(n.id,o)||e.insertRules(n.id,o,t(n.rules,o,"@keyframes"));},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,se$1(this,function(){throw ce(12,String(n.name))});}return e.prototype.getName=function(e){return void 0===e&&(e=Te),this.name+e.hash},e}(),$e=function(e){return e>="A"&&e<="Z"};function ze(e){for(var t="",n=0;n<e.length;n++){var o=e[n];if(1===n&&"-"===o&&"-"===e[0])return e;$e(o)?t+="-"+o.toLowerCase():t+=o;}return t.startsWith("ms-")?"-"+t:t}var Be=function(e){return null==e||false===e||""===e},Le$1=function(t){var n,o,r=[];for(var s in t){var i=t[s];t.hasOwnProperty(s)&&!Be(i)&&(Array.isArray(i)&&i.isCss||Q(i)?r.push("".concat(ze(s),":"),i,";"):oe(i)?r.push.apply(r,__spreadArray(__spreadArray(["".concat(s," {")],Le$1(i),false),["}"],false)):r.push("".concat(ze(s),": ").concat((n=s,null==(o=i)||"boolean"==typeof o||""===o?"":"number"!=typeof o||0===o||n in unitlessKeys||n.startsWith("--")?String(o).trim():"".concat(o,"px")),";")));}return r};function Ge(e,t,n,o){if(Be(e))return [];if(ee$1(e))return [".".concat(e.styledComponentId)];if(Q(e)){if(!Q(s=e)||s.prototype&&s.prototype.isReactComponent||!t)return [e];var r=e(t);return "production"===process$1.env.NODE_ENV||"object"!=typeof r||Array.isArray(r)||r instanceof Fe||oe(r)||null===r||console.error("".concat(V(e)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),Ge(r,t,n,o)}var s;return e instanceof Fe?n?(e.inject(n,o),[e.getName(o)]):[e]:oe(e)?Le$1(e):Array.isArray(e)?Array.prototype.concat.apply(E$1,e.map(function(e){return Ge(e,t,n,o)})):[e.toString()]}function Ye(e){for(var t=0;t<e.length;t+=1){var n=e[t];if(Q(n)&&!ee$1(n))return false}return true}var We=j("6.0.7"),qe=function(){function e(e,t,n){this.rules=e,this.staticRulesId="",this.isStatic="production"===process$1.env.NODE_ENV&&(void 0===n||n.isStatic)&&Ye(e),this.componentId=t,this.baseHash=k$1(We,t),this.baseStyle=n,Ce$1.registerId(t);}return e.prototype.generateAndInjectStyles=function(e,t,n){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,n):"";if(this.isStatic&&!n.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=te$2(o,this.staticRulesId);else {var r=ne(Ge(this.rules,e,t,n)),s=R(k$1(this.baseHash,r)>>>0);if(!t.hasNameForId(this.componentId,s)){var i=n(r,".".concat(s),void 0,this.componentId);t.insertRules(this.componentId,s,i);}o=te$2(o,s),this.staticRulesId=s;}else {for(var a=k$1(this.baseHash,n.hash),c="",l=0;l<this.rules.length;l++){var u=this.rules[l];if("string"==typeof u)c+=u,"production"!==process$1.env.NODE_ENV&&(a=k$1(a,u));else if(u){var p=ne(Ge(u,e,t,n));a=k$1(a,p),c+=p;}}if(c){var d=R(a>>>0);t.hasNameForId(this.componentId,d)||t.insertRules(this.componentId,d,n(c,".".concat(d),void 0,this.componentId)),o=te$2(o,d);}}return o},e}(),He$1=o.createContext(void 0);He$1.Consumer;var Ze={},Ke=new Set;function Qe(e,r,s){var i=ee$1(e),a=e,c=!M(e),p=r.attrs,d=void 0===p?E$1:p,h=r.componentId,f=void 0===h?function(e,t){var n="string"!=typeof e?"sc":A(e);Ze[n]=(Ze[n]||0)+1;var o="".concat(n,"-").concat(x$1("6.0.7"+n+Ze[n]));return t?"".concat(t,"-").concat(o):o}(r.displayName,r.parentComponentId):h,m=r.displayName,y=void 0===m?function(e){return M(e)?"styled.".concat(e):"Styled(".concat(V(e),")")}(e):m,v=r.displayName&&r.componentId?"".concat(A(r.displayName),"-").concat(r.componentId):r.componentId||f,g=i&&a.attrs?a.attrs.concat(d).filter(Boolean):d,S=r.shouldForwardProp;if(i&&a.shouldForwardProp){var w=a.shouldForwardProp;if(r.shouldForwardProp){var C=r.shouldForwardProp;S=function(e,t){return w(e,t)&&C(e,t)};}else S=w;}var I=new qe(s,v,i?a.componentStyle:void 0);function O(e,r){return function(e,r,s){var i=e.attrs,a=e.componentStyle,c=e.defaultProps,p=e.foldedComponentIds,d=e.styledComponentId,h=e.target,f=o.useContext(He$1),m=Ve$1(),y=e.shouldForwardProp||m.shouldForwardProp;"production"!==process$1.env.NODE_ENV&&useDebugValue(d);var v=function(e,n,o){for(var r,s=__assign(__assign({},n),{className:void 0,theme:o}),i=0;i<e.length;i+=1){var a=Q(r=e[i])?r(s):r;for(var c in a)s[c]="className"===c?te$2(s[c],a[c]):"style"===c?__assign(__assign({},s[c]),a[c]):a[c];}return n.className&&(s.className=te$2(s.className,n.className)),s}(i,r,P$1(r,f,c)||N$1),g=v.as||h,S={};for(var w in v) void 0===v[w]||"$"===w[0]||"as"===w||"theme"===w||("forwardedAs"===w?S.as=v.forwardedAs:y&&!y(w,g)||(S[w]=v[w],y||"development"!==process$1.env.NODE_ENV||isPropValid(w)||Ke.has(w)||!_$2.has(g)||(Ke.add(w),console.warn('styled-components: it looks like an unknown prop "'.concat(w,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var b=function(e,t){var n=Ve$1(),o=e.generateAndInjectStyles(t,n.styleSheet,n.stylis);return "production"!==process$1.env.NODE_ENV&&useDebugValue(o),o}(a,v);"production"!==process$1.env.NODE_ENV&&e.warnTooManyClasses&&e.warnTooManyClasses(b);var E=te$2(p,d);return b&&(E+=" "+b),v.className&&(E+=" "+v.className),S[M(g)&&!_$2.has(g)?"class":"className"]=E,S.ref=s,createElement(g,S)}(D,e,r)}"production"!==process$1.env.NODE_ENV&&(O.displayName=y);var D=o.forwardRef(O);return D.attrs=g,D.componentStyle=I,D.shouldForwardProp=S,"production"!==process$1.env.NODE_ENV&&(D.displayName=y),D.foldedComponentIds=i?te$2(a.foldedComponentIds,a.styledComponentId):"",D.styledComponentId=v,D.target=i?a.target:e,Object.defineProperty(D,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var o=0,r=t;o<r.length;o++)re(e,r[o],true);return e}({},a.defaultProps,e):e;}}),"production"!==process$1.env.NODE_ENV&&(b(y,v),D.warnTooManyClasses=function(e,t){var n={},o=false;return function(r){if(!o&&(n[r]=true,Object.keys(n).length>=200)){var s=t?' with the id of "'.concat(t,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(e).concat(s,".\n")+"Consider using the attrs method, together with a style object for frequently changed styles.\nExample:\n const Component = styled.div.attrs(props => ({\n style: {\n background: props.background,\n },\n }))`width: 100%;`\n\n <Component />"),o=true,n={};}}}(y,v)),se$1(D,function(){return ".".concat(D.styledComponentId)}),c&&K(D,e,{attrs:true,componentStyle:true,displayName:true,foldedComponentIds:true,shouldForwardProp:true,styledComponentId:true,target:true}),D}function et$1(e,t){for(var n=[e[0]],o=0,r=t.length;o<r;o+=1)n.push(t[o],e[o+1]);return n}var tt$1=function(e){return Object.assign(e,{isCss:true})};function nt$1(t){for(var n=[],o=1;o<arguments.length;o++)n[o-1]=arguments[o];if(Q(t)||oe(t)){var r=t;return tt$1(Ge(et$1(E$1,__spreadArray([r],n,true))))}var s=t;return 0===n.length&&1===s.length&&"string"==typeof s[0]?Ge(s):tt$1(Ge(et$1(s,n)))}function ot$1(n,o,r){if(void 0===r&&(r=N$1),!o)throw ce(1,o);var s=function(t){for(var s=[],i=1;i<arguments.length;i++)s[i-1]=arguments[i];return n(o,r,nt$1.apply(void 0,__spreadArray([t],s,false)))};return s.attrs=function(e){return ot$1(n,o,__assign(__assign({},r),{attrs:Array.prototype.concat(r.attrs,e).filter(Boolean)}))},s.withConfig=function(e){return ot$1(n,o,__assign(__assign({},r),e))},s}var rt$1=function(e){return ot$1(Qe,e)},st$1=rt$1;_$2.forEach(function(e){st$1[e]=rt$1(e);});var it$1=function(){function e(e,t){this.rules=e,this.componentId=t,this.isStatic=Ye(e),Ce$1.registerId(this.componentId+1);}return e.prototype.createStyles=function(e,t,n,o){var r=o(ne(Ge(this.rules,t,n,o)),""),s=this.componentId+e;n.insertRules(s,s,r);},e.prototype.removeStyles=function(e,t){t.clearRules(this.componentId+e);},e.prototype.renderStyles=function(e,t,n,o){e>2&&Ce$1.registerId(this.componentId+e),this.removeStyles(e,n),this.createStyles(e,t,n,o);},e}();function at$1(n){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var i=nt$1.apply(void 0,__spreadArray([n],r,false)),a="sc-global-".concat(x$1(JSON.stringify(i))),c=new it$1(i,a);"production"!==process$1.env.NODE_ENV&&b(a);var l=function(e){var t=Ve$1(),n=o.useContext(He$1),r=o.useRef(t.styleSheet.allocateGSInstance(a)).current;return "production"!==process$1.env.NODE_ENV&&o.Children.count(e.children)&&console.warn("The global style component ".concat(a," was given child JSX. createGlobalStyle does not render children.")),"production"!==process$1.env.NODE_ENV&&i.some(function(e){return "string"==typeof e&&-1!==e.indexOf("@import")})&&console.warn("Please do not use @import CSS syntax in createGlobalStyle at this time, as the CSSOM APIs we use in production do not handle it well. Instead, we recommend using a library such as react-helmet to inject a typical <link> meta tag to the stylesheet, or simply embedding it manually in your index.html <head> section for a simpler app."),t.styleSheet.server&&u(r,e,t.styleSheet,n,t.stylis),o.useLayoutEffect(function(){if(!t.styleSheet.server)return u(r,e,t.styleSheet,n,t.stylis),function(){return c.removeStyles(r,t.styleSheet)}},[r,e,t.styleSheet,n,t.stylis]),null};function u(e,n,o,r,s){if(c.isStatic)c.renderStyles(e,g,o,s);else {var i=__assign(__assign({},n),{theme:P$1(n,r,l.defaultProps)});c.renderStyles(e,i,o,s);}}return o.memo(l)}"production"!==process$1.env.NODE_ENV&&"undefined"!=typeof navigator&&"ReactNative"===navigator.product&&console.warn("It looks like you've imported 'styled-components' on React Native.\nPerhaps you're looking to import 'styled-components/native'?\nRead more about this at https://www.styled-components.com/docs/basics#react-native");var dt$1="__sc-".concat(f$1,"__");"production"!==process$1.env.NODE_ENV&&"test"!==process$1.env.NODE_ENV&&"undefined"!=typeof window&&(window[dt$1]||(window[dt$1]=0),1===window[dt$1]&&console.warn("It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.\n\nSee https://s-c.sh/2BAXzed for more info."),window[dt$1]+=1);
1137
-
1138
- const Spacer$1 = st$1.div`
1139
- height: ${({ $space, $spaceMob, $samespace }) => {
1140
- if ($spaceMob) {
1141
- return $spaceMob;
1142
- }
1143
- if ($space && $samespace) {
1144
- return $space;
1145
- }
1146
- return 24;
1147
- }}px;
1148
- width: 100%;
1149
-
1150
- @media (min-width: 1024px) {
1151
- height: ${({ $space }) => $space ?? "48"}px;
1152
- }
1153
- `;
1154
-
1155
225
  var jsxRuntime = {exports: {}};
1156
226
 
1157
227
  var reactJsxRuntime_production_min = {};
@@ -1171,7 +241,7 @@ var hasRequiredReactJsxRuntime_production_min;
1171
241
  function requireReactJsxRuntime_production_min () {
1172
242
  if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
1173
243
  hasRequiredReactJsxRuntime_production_min = 1;
1174
- var f=o,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
244
+ var f=K,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:true,ref:true,__self:true,__source:true};
1175
245
  function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a) void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
1176
246
  return reactJsxRuntime_production_min;
1177
247
  }
@@ -1187,7 +257,7 @@ function requireReactJsxRuntime_development () {
1187
257
  if (process$1.env.NODE_ENV !== "production") {
1188
258
  (function() {
1189
259
 
1190
- var React = o;
260
+ var React = K;
1191
261
 
1192
262
  // ATTENTION
1193
263
  // When adding new symbols to this file,
@@ -2497,14 +1567,14 @@ if (process$1.env.NODE_ENV === 'production') {
2497
1567
 
2498
1568
  var jsxRuntimeExports = jsxRuntime.exports;
2499
1569
 
2500
- const CustomTreeProvider = st$1.div`
1570
+ const CustomTreeProvider = styled.div`
2501
1571
  .ant-tree-switcher {
2502
1572
  display: flex;
2503
1573
  align-items: center;
2504
1574
  justify-content: center;
2505
1575
  }
2506
1576
  `;
2507
- const Styled$w = {
1577
+ const Styled$x = {
2508
1578
  CustomTreeProvider
2509
1579
  };
2510
1580
 
@@ -2569,7 +1639,7 @@ const TreeWithSearch = ({ treeData, onSelect }) => {
2569
1639
  });
2570
1640
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
2571
1641
  /* @__PURE__ */ jsxRuntimeExports.jsx(Search$1, { style: { marginBottom: 8 }, placeholder: "Search", onChange }),
2572
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$w.CustomTreeProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
1642
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$x.CustomTreeProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
2573
1643
  Tree,
2574
1644
  {
2575
1645
  treeData: loop(treeData),
@@ -3075,7 +2145,7 @@ const endsWith = (str, searchString, position) => {
3075
2145
  *
3076
2146
  * @returns {?Array}
3077
2147
  */
3078
- const toArray = (thing) => {
2148
+ const toArray$1 = (thing) => {
3079
2149
  if (!thing) return null;
3080
2150
  if (isArray(thing)) return thing;
3081
2151
  let i = thing.length;
@@ -3355,7 +2425,7 @@ const utils$1 = {
3355
2425
  kindOf,
3356
2426
  kindOfTest,
3357
2427
  endsWith,
3358
- toArray,
2428
+ toArray: toArray$1,
3359
2429
  forEachEntry,
3360
2430
  matchAll,
3361
2431
  isHTMLForm,
@@ -6301,12 +5371,12 @@ const hasStandardBrowserWebWorkerEnv = (() => {
6301
5371
  const origin = hasBrowserEnv && window.location.href || 'http://localhost';
6302
5372
 
6303
5373
  const utils = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
6304
- __proto__: null,
6305
- hasBrowserEnv,
6306
- hasStandardBrowserEnv,
6307
- hasStandardBrowserWebWorkerEnv,
6308
- navigator: _navigator,
6309
- origin
5374
+ __proto__: null,
5375
+ hasBrowserEnv,
5376
+ hasStandardBrowserEnv,
5377
+ hasStandardBrowserWebWorkerEnv,
5378
+ navigator: _navigator,
5379
+ origin
6310
5380
  }, Symbol.toStringTag, { value: 'Module' }));
6311
5381
 
6312
5382
  const platform = {
@@ -9072,7 +8142,7 @@ const LookingGlassIcon = ({ width, height }) => {
9072
8142
  ) });
9073
8143
  };
9074
8144
 
9075
- const ContentContainer = st$1.div`
8145
+ const ContentContainer = styled.div`
9076
8146
  border: 1px solid ${({ $borderColor }) => $borderColor};
9077
8147
  border-radius: 6px;
9078
8148
  background-color: ${({ $bgColor }) => $bgColor};
@@ -9084,14 +8154,14 @@ const ContentContainer = st$1.div`
9084
8154
  display: ${({ $displayFlex }) => $displayFlex ? "flex" : "block"};
9085
8155
  flex-flow: ${({ $flexFlow }) => $flexFlow};
9086
8156
  `;
9087
- const Styled$v = {
8157
+ const Styled$w = {
9088
8158
  ContentContainer
9089
8159
  };
9090
8160
 
9091
8161
  const ContentCard$1 = ({ children, flexGrow, displayFlex, flexFlow, maxHeight }) => {
9092
8162
  const { token } = theme.useToken();
9093
8163
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9094
- Styled$v.ContentContainer,
8164
+ Styled$w.ContentContainer,
9095
8165
  {
9096
8166
  $flexGrow: flexGrow,
9097
8167
  $bgColor: token.colorBgContainer,
@@ -9104,11 +8174,11 @@ const ContentCard$1 = ({ children, flexGrow, displayFlex, flexFlow, maxHeight })
9104
8174
  );
9105
8175
  };
9106
8176
 
9107
- const FlexGrow = st$1.div`
8177
+ const FlexGrow = styled.div`
9108
8178
  flex-grow: 1;
9109
8179
  `;
9110
8180
 
9111
- const UncontrolledSelect$1 = st$1(Select)`
8181
+ const UncontrolledSelect$1 = styled(Select)`
9112
8182
  width: 100%;
9113
8183
  margin: 0;
9114
8184
  padding: 4px;
@@ -9152,16 +8222,16 @@ const UncontrolledSelect$1 = st$1(Select)`
9152
8222
  padding-inline: 8px;
9153
8223
  }
9154
8224
  `;
9155
- const Styled$u = {
8225
+ const Styled$v = {
9156
8226
  UncontrolledSelect: UncontrolledSelect$1
9157
8227
  };
9158
8228
 
9159
8229
  const UncontrolledSelect = (props) => {
9160
8230
  const { isCursorPointer } = props;
9161
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$u.UncontrolledSelect, { ...props, $isCursorPointer: isCursorPointer });
8231
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$v.UncontrolledSelect, { ...props, $isCursorPointer: isCursorPointer });
9162
8232
  };
9163
8233
 
9164
- const CustomSelect$5 = st$1(Select)`
8234
+ const CustomSelect$5 = styled(Select)`
9165
8235
  width: 100%;
9166
8236
  margin: 0;
9167
8237
  padding: 4px;
@@ -9206,29 +8276,29 @@ const CustomSelect$5 = st$1(Select)`
9206
8276
  margin-block: 0 !important;
9207
8277
  }
9208
8278
  `;
9209
- const Styled$t = {
8279
+ const Styled$u = {
9210
8280
  CustomSelect: CustomSelect$5
9211
8281
  };
9212
8282
 
9213
8283
  const CustomSelect$4 = (props) => {
9214
8284
  const { paddingContainerEnd, ...rest } = props;
9215
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$t.CustomSelect, { $paddingContainerEnd: paddingContainerEnd, ...rest });
8285
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$u.CustomSelect, { $paddingContainerEnd: paddingContainerEnd, ...rest });
9216
8286
  };
9217
8287
 
9218
- const CursorPointerTag = st$1(Tag)`
8288
+ const CursorPointerTag = styled(Tag)`
9219
8289
  cursor: pointer;
9220
8290
  `;
9221
8291
 
9222
- const CursorPointerTagMinContent = st$1(Tag)`
8292
+ const CursorPointerTagMinContent = styled(Tag)`
9223
8293
  cursor: pointer;
9224
8294
  width: min-content;
9225
8295
  `;
9226
8296
 
9227
- const CursorDefaultDiv = st$1.div`
8297
+ const CursorDefaultDiv = styled.div`
9228
8298
  cursor: ${({ $default }) => $default ? "default" : "inherit"};
9229
8299
  `;
9230
8300
 
9231
- const PaddingContainer = st$1.div`
8301
+ const PaddingContainer = styled.div`
9232
8302
  padding: ${({ $padding }) => $padding};
9233
8303
  `;
9234
8304
 
@@ -9310,17 +8380,17 @@ const prepareDataForManageableBreadcrumbs = ({
9310
8380
  return result;
9311
8381
  };
9312
8382
 
9313
- const PositionRelativeContainer = st$1.div`
8383
+ const PositionRelativeContainer = styled.div`
9314
8384
  position: relative;
9315
8385
  `;
9316
- const FullWidthContainer = st$1.div`
8386
+ const FullWidthContainer = styled.div`
9317
8387
  width: 100%;
9318
8388
 
9319
8389
  .ant-dropdown-trigger svg {
9320
8390
  display: none;
9321
8391
  }
9322
8392
  `;
9323
- const NoWrapContainer = st$1.div`
8393
+ const NoWrapContainer = styled.div`
9324
8394
  position: absolute;
9325
8395
  visibility: hidden;
9326
8396
  pointer-events: none;
@@ -9335,7 +8405,7 @@ const NoWrapContainer = st$1.div`
9335
8405
  flex-wrap: nowrap !important;
9336
8406
  }
9337
8407
  `;
9338
- const Styled$s = {
8408
+ const Styled$t = {
9339
8409
  PositionRelativeContainer,
9340
8410
  FullWidthContainer,
9341
8411
  NoWrapContainer
@@ -9378,22 +8448,22 @@ const CollapsibleBreadcrumb = ({ items }) => {
9378
8448
  };
9379
8449
  return [firstItem, ellipsisItem, lastItem];
9380
8450
  };
9381
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$s.PositionRelativeContainer, { children: [
9382
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$s.FullWidthContainer, { ref: containerRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items: renderItems() }) }),
9383
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$s.NoWrapContainer, { ref: breadcrumbRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items, style: { display: "flex", flexWrap: "nowrap" } }) })
8451
+ return /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$t.PositionRelativeContainer, { children: [
8452
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$t.FullWidthContainer, { ref: containerRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items: renderItems() }) }),
8453
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$t.NoWrapContainer, { ref: breadcrumbRef, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Breadcrumb, { separator: ">", items, style: { display: "flex", flexWrap: "nowrap" } }) })
9384
8454
  ] });
9385
8455
  };
9386
8456
 
9387
- const HeightDiv = st$1.div`
8457
+ const HeightDiv = styled.div`
9388
8458
  min-height: 22px;
9389
8459
  width: 100%;
9390
8460
  `;
9391
- const Styled$r = {
8461
+ const Styled$s = {
9392
8462
  HeightDiv
9393
8463
  };
9394
8464
 
9395
8465
  const ManageableBreadcrumbs = ({ data }) => {
9396
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CollapsibleBreadcrumb, { items: data.breadcrumbItems }) });
8466
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$s.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(CollapsibleBreadcrumb, { items: data.breadcrumbItems }) });
9397
8467
  };
9398
8468
  const ManageableBreadcrumbsWithDataProvider = ({
9399
8469
  uri,
@@ -9417,7 +8487,7 @@ const ManageableBreadcrumbsWithDataProvider = ({
9417
8487
  return null;
9418
8488
  }
9419
8489
  if (rawDataLoading) {
9420
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
8490
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$s.HeightDiv, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Spin, {}) });
9421
8491
  }
9422
8492
  if (!rawData) {
9423
8493
  return null;
@@ -9432,7 +8502,7 @@ const ManageableBreadcrumbsWithDataProvider = ({
9432
8502
  idToCompare
9433
8503
  });
9434
8504
  if (!result) {
9435
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$r.HeightDiv, {});
8505
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$s.HeightDiv, {});
9436
8506
  }
9437
8507
  return /* @__PURE__ */ jsxRuntimeExports.jsx(ManageableBreadcrumbs, { data: result });
9438
8508
  };
@@ -9531,7 +8601,7 @@ const prepareDataForManageableSidebar = ({
9531
8601
  return { ...result, selectedKeys: stringedOpenedKeys };
9532
8602
  };
9533
8603
 
9534
- const CustomMenu = st$1(Menu)`
8604
+ const CustomMenu = styled(Menu)`
9535
8605
  margin-top: ${({ $noMarginTop }) => $noMarginTop ? "0" : "16px"};
9536
8606
  font-size: 14px;
9537
8607
  line-height: 24px;
@@ -9554,7 +8624,7 @@ const CustomMenu = st$1(Menu)`
9554
8624
  margin: 0 !important;
9555
8625
  }
9556
8626
  `;
9557
- const Styled$q = {
8627
+ const Styled$r = {
9558
8628
  CustomMenu
9559
8629
  };
9560
8630
 
@@ -9581,7 +8651,7 @@ const ManageableSidebar = ({ data, noMarginTop }) => {
9581
8651
  setSelectedKeys(data.selectedKeys);
9582
8652
  }, [data.selectedKeys]);
9583
8653
  return /* @__PURE__ */ jsxRuntimeExports.jsx(
9584
- Styled$q.CustomMenu,
8654
+ Styled$r.CustomMenu,
9585
8655
  {
9586
8656
  selectedKeys,
9587
8657
  onSelect: () => {
@@ -33662,13 +32732,13 @@ lodash.exports;
33662
32732
  var lodashExports = lodash.exports;
33663
32733
  const _$1 = /*@__PURE__*/getDefaultExportFromCjs(lodashExports);
33664
32734
 
33665
- const ShortenedText = st$1.div`
32735
+ const ShortenedText = styled.div`
33666
32736
  max-width: ${({ $maxWidth }) => $maxWidth}px;
33667
32737
  overflow: hidden;
33668
32738
  white-space: nowrap;
33669
32739
  text-overflow: ellipsis;
33670
32740
  `;
33671
- const Styled$p = {
32741
+ const Styled$q = {
33672
32742
  ShortenedText
33673
32743
  };
33674
32744
 
@@ -33677,7 +32747,7 @@ const ShortenedTextWithTooltip = ({ text, trimLength, maxWidth = 200 }) => {
33677
32747
  const trimmedText = text.substring(0, trimLength);
33678
32748
  return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: text, placement: "top", children: trimmedText });
33679
32749
  }
33680
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: text, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.ShortenedText, { $maxWidth: maxWidth, children: text }) });
32750
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Tooltip, { title: text, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$q.ShortenedText, { $maxWidth: maxWidth, children: text }) });
33681
32751
  };
33682
32752
 
33683
32753
  const FilterDropdown = ({
@@ -33738,7 +32808,7 @@ const FilterDropdown = ({
33738
32808
  ] });
33739
32809
  };
33740
32810
 
33741
- const TableContainer = st$1.div`
32811
+ const TableContainer = styled.div`
33742
32812
  td {
33743
32813
  cursor: ${({ $isCursorPointer }) => $isCursorPointer && "pointer"};
33744
32814
  }
@@ -33789,7 +32859,7 @@ const TableContainer = st$1.div`
33789
32859
  width: auto !important;
33790
32860
  }
33791
32861
  `;
33792
- const HideableControls = st$1.div`
32862
+ const HideableControls = styled.div`
33793
32863
  && .ant-table-row .hideable {
33794
32864
  display: none;
33795
32865
  }
@@ -33805,11 +32875,11 @@ const TableComponents = {
33805
32875
  HideableControls
33806
32876
  };
33807
32877
 
33808
- const TinyButton = st$1(Button)`
32878
+ const TinyButton = styled(Button)`
33809
32879
  height: 24px !important;
33810
32880
  `;
33811
32881
 
33812
- const TextAlignContainer = st$1.div`
32882
+ const TextAlignContainer = styled.div`
33813
32883
  text-align: ${({ $align }) => $align};
33814
32884
  `;
33815
32885
 
@@ -34951,10 +34021,10 @@ const YamlEditorSingleton$1 = ({
34951
34021
  ] });
34952
34022
  };
34953
34023
 
34954
- const VisibilityContainer$2 = st$1.div`
34024
+ const VisibilityContainer$2 = styled.div`
34955
34025
  display: ${({ $hidden }) => $hidden ? "none" : "block"};
34956
34026
  `;
34957
- const Styled$o = {
34027
+ const Styled$p = {
34958
34028
  VisibilityContainer: VisibilityContainer$2
34959
34029
  };
34960
34030
 
@@ -34977,7 +34047,7 @@ const VisibilityContainer$1 = ({
34977
34047
  if (isMultiqueryLoading) {
34978
34048
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: "Loading multiquery" });
34979
34049
  }
34980
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.VisibilityContainer, { $hidden: valuePrepared === "~undefined-value~", children });
34050
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$p.VisibilityContainer, { $hidden: valuePrepared === "~undefined-value~", children });
34981
34051
  };
34982
34052
 
34983
34053
  const unknownToString = (value) => {
@@ -35216,7 +34286,7 @@ const useUpdateIsTouchedPersisted = () => {
35216
34286
  return dispatch;
35217
34287
  };
35218
34288
 
35219
- const Container$1 = st$1.div`
34289
+ const Container$2 = styled.div`
35220
34290
  display: flex;
35221
34291
  flex-direction: column;
35222
34292
  gap: ${({ $designNewLayout }) => $designNewLayout ? "4px" : "8px"};
@@ -35231,19 +34301,19 @@ const Container$1 = st$1.div`
35231
34301
  0 3px 6px -4px #0000001f,
35232
34302
  0 9px 28px 8px #0000000d` : "initial"};
35233
34303
  `;
35234
- const TitleBar = st$1.div`
34304
+ const TitleBar = styled.div`
35235
34305
  display: flex;
35236
34306
  align-items: center;
35237
34307
  justify-content: flex-start;
35238
34308
  gap: 4px;
35239
34309
  cursor: pointer;
35240
34310
  `;
35241
- const Content$1 = st$1.div`
34311
+ const Content$1 = styled.div`
35242
34312
  display: ${({ $isOpen }) => $isOpen ? "block" : "none"};
35243
34313
  padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
35244
34314
  `;
35245
- const Styled$n = {
35246
- Container: Container$1,
34315
+ const Styled$o = {
34316
+ Container: Container$2,
35247
34317
  TitleBar,
35248
34318
  Content: Content$1
35249
34319
  };
@@ -35269,14 +34339,14 @@ const CustomCollapse = ({
35269
34339
  }
35270
34340
  };
35271
34341
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(
35272
- Styled$n.Container,
34342
+ Styled$o.Container,
35273
34343
  {
35274
34344
  $designNewLayout: designNewLayout,
35275
34345
  $borderColor: token.colorBorder,
35276
34346
  $bgColor: token.colorBgContainer,
35277
34347
  children: [
35278
34348
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { justify: "space-between", children: [
35279
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$n.TitleBar, { onClick: () => toggleCollapse(), children: [
34349
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$o.TitleBar, { onClick: () => toggleCollapse(), children: [
35280
34350
  !designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(CaretDownOutlined, { size: 14 }) : /* @__PURE__ */ jsxRuntimeExports.jsx(CaretRightOutlined, { size: 14 }) }),
35281
34351
  /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: title }),
35282
34352
  designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: isOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(DownIcon, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(UpIcon, {}) })
@@ -35287,7 +34357,7 @@ const CustomCollapse = ({
35287
34357
  persistedCheckbox
35288
34358
  ] })
35289
34359
  ] }),
35290
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$n.Content, { $isOpen: isOpen, $designNewLayout: designNewLayout, children })
34360
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$o.Content, { $isOpen: isOpen, $designNewLayout: designNewLayout, children })
35291
34361
  ]
35292
34362
  }
35293
34363
  );
@@ -35305,67 +34375,51 @@ const PersistedCheckbox = ({ formName, persistedControls, type }) => {
35305
34375
  return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: toggleCheckbox, children: isChecked ? /* @__PURE__ */ jsxRuntimeExports.jsx(LockedIcon, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(UnlockedIcon, {}) }) });
35306
34376
  };
35307
34377
 
35308
- const PossibleHiddenContainer = st$1.div`
34378
+ const PossibleHiddenContainer = styled.div`
35309
34379
  display: ${({ $isHidden }) => $isHidden ? "none" : "block"};
35310
34380
  `;
35311
34381
 
35312
- const ResetedFormItem$1 = st$1(Form.Item)`
34382
+ const ResetedFormItem$1 = styled(Form.Item)`
35313
34383
  margin-bottom: 8px;
35314
34384
  `;
35315
34385
 
35316
- const CustomSizeTitle = st$1.div`
34386
+ const CustomSizeTitle = styled.div`
35317
34387
  font-size: ${({ $designNewLayout }) => $designNewLayout ? "16px" : "14px"};
35318
34388
  line-height: ${({ $designNewLayout }) => $designNewLayout ? "24px" : "22px"};
35319
34389
  `;
35320
34390
 
35321
- const Content = st$1.div`
34391
+ const Content = styled.div`
35322
34392
  padding: ${({ $designNewLayout }) => $designNewLayout ? "0 0 0 6px" : "4px"};
35323
34393
  `;
35324
- const Styled$m = {
34394
+ const Styled$n = {
35325
34395
  Content
35326
34396
  };
35327
34397
 
35328
34398
  const ArrayInsideContainer = ({ children }) => {
35329
34399
  const designNewLayout = useDesignNewLayout();
35330
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$m.Content, { $designNewLayout: designNewLayout, children });
34400
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$n.Content, { $designNewLayout: designNewLayout, children });
35331
34401
  };
35332
34402
 
35333
- const arraysEqual = (arr1, arr2) => {
35334
- if (arr1.length !== arr2.length) {
35335
- return false;
35336
- }
35337
- for (let i = 0; i < arr1.length; i++) {
35338
- if (typeof arr2[i] === "number") {
35339
- if (arr1[i] !== String(arr2[i])) {
35340
- return false;
35341
- }
35342
- }
35343
- if (arr1[i] !== arr2[i]) {
35344
- return false;
35345
- }
35346
- }
35347
- return true;
35348
- };
35349
- const includesArray = (matrix, target) => {
35350
- if (!matrix) {
35351
- return false;
35352
- }
35353
- for (const row of matrix) {
35354
- if (arraysEqual(row, target)) {
35355
- return true;
35356
- }
35357
- }
35358
- return false;
35359
- };
34403
+ const includesPath = (haystack, needle) => haystack.some((h) => h.length === needle.length && h.every((seg, i) => seg === String(needle[i])));
34404
+ const toArray = (p) => (
34405
+ // eslint-disable-next-line no-nested-ternary
34406
+ p === void 0 ? void 0 : Array.isArray(p) ? p : [p]
34407
+ );
35360
34408
 
35361
- const HiddenContainer = ({ name, secondName, children }) => {
34409
+ const HiddenContainer = ({
34410
+ name,
34411
+ secondName,
34412
+ children
34413
+ }) => {
35362
34414
  const hiddenPaths = useHiddenPathsLayout();
35363
- const isHidden = name ? includesArray(hiddenPaths, Array.isArray(name) ? name : [name]) : false;
35364
- const isHiddenSecond = secondName ? includesArray(hiddenPaths, Array.isArray(secondName) ? secondName : [secondName]) : false;
34415
+ const nameArr = toArray(name);
34416
+ const secondArr = toArray(secondName);
34417
+ const isHidden = !!hiddenPaths && !!nameArr && includesPath(hiddenPaths, nameArr);
34418
+ const isHiddenSecond = !!hiddenPaths && !!secondArr && includesPath(hiddenPaths, secondArr);
35365
34419
  return /* @__PURE__ */ jsxRuntimeExports.jsx(PossibleHiddenContainer, { $isHidden: !hiddenPaths || isHidden || isHiddenSecond, children });
35366
34420
  };
35367
34421
 
35368
- const HeightContainer = st$1.div`
34422
+ const HeightContainer = styled.div`
35369
34423
  height: ${({ $height }) => $height}px;
35370
34424
  `;
35371
34425
 
@@ -35897,10 +34951,10 @@ const LabelsToSearchParams = ({ data, children }) => {
35897
34951
  ] });
35898
34952
  };
35899
34953
 
35900
- const ResetedFormList$3 = st$1(Form.List)`
34954
+ const ResetedFormList$3 = styled(Form.List)`
35901
34955
  margin-bottom: 8px;
35902
34956
  `;
35903
- const Styled$l = {
34957
+ const Styled$m = {
35904
34958
  ResetedFormList: ResetedFormList$3
35905
34959
  };
35906
34960
 
@@ -35985,7 +35039,7 @@ const EditModal$2 = ({
35985
35039
  /* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[3], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}) })
35986
35040
  ] }),
35987
35041
  /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
35988
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$l.ResetedFormList, { name: "taints", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
35042
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$m.ResetedFormList, { name: "taints", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
35989
35043
  fields.map(({ key, name, ...restField }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Row, { gutter: [16, 16], children: [
35990
35044
  /* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
35991
35045
  ResetedFormItem$1,
@@ -36222,10 +35276,10 @@ const Taints = ({ data, children }) => {
36222
35276
  ] });
36223
35277
  };
36224
35278
 
36225
- const ResetedFormList$2 = st$1(Form.List)`
35279
+ const ResetedFormList$2 = styled(Form.List)`
36226
35280
  margin-bottom: 8px;
36227
35281
  `;
36228
- const Styled$k = {
35282
+ const Styled$l = {
36229
35283
  ResetedFormList: ResetedFormList$2
36230
35284
  };
36231
35285
 
@@ -36320,7 +35374,7 @@ const EditModal$1 = ({
36320
35374
  /* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[4], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}) })
36321
35375
  ] }),
36322
35376
  /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
36323
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$k.ResetedFormList, { name: "tolerations", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
35377
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$l.ResetedFormList, { name: "tolerations", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
36324
35378
  fields.map(({ key, name, ...restField }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Row, { gutter: [16, 16], children: [
36325
35379
  /* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
36326
35380
  ResetedFormItem$1,
@@ -36594,10 +35648,10 @@ const Tolerations = ({
36594
35648
  ] });
36595
35649
  };
36596
35650
 
36597
- const ResetedFormList$1 = st$1(Form.List)`
35651
+ const ResetedFormList$1 = styled(Form.List)`
36598
35652
  margin-bottom: 8px;
36599
35653
  `;
36600
- const Styled$j = {
35654
+ const Styled$k = {
36601
35655
  ResetedFormList: ResetedFormList$1
36602
35656
  };
36603
35657
 
@@ -36687,7 +35741,7 @@ const EditModal = ({
36687
35741
  /* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[2], children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", {}) })
36688
35742
  ] }),
36689
35743
  /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
36690
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$j.ResetedFormList, { name: "annotations", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
35744
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$k.ResetedFormList, { name: "annotations", children: (fields, { add, remove }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
36691
35745
  fields.map(({ key, name, ...restField }) => /* @__PURE__ */ jsxRuntimeExports.jsxs(Row, { gutter: [16, 16], children: [
36692
35746
  /* @__PURE__ */ jsxRuntimeExports.jsx(Col, { span: cols[0], children: /* @__PURE__ */ jsxRuntimeExports.jsx(
36693
35747
  ResetedFormItem$1,
@@ -37747,21 +36801,21 @@ const jt = (e) => {
37747
36801
 
37748
36802
  Yt.css = "._spoiler_1cf3f_1._hidden_1cf3f_1:not(:has(>._transition_1cf3f_1)){color:transparent;border-color:transparent;text-decoration-color:transparent;-webkit-text-emphasis-color:transparent;text-emphasis-color:transparent}._spoiler_1cf3f_1._hidden_1cf3f_1:not(:has(>._transition_1cf3f_1))>*{opacity:0}._transition_1cf3f_1._fade_1cf3f_17{--hide-transition: .2s ease-out;--reveal-transition: .5s ease-out;transition:opacity var(--reveal-transition),filter var(--reveal-transition)}._spoiler_1cf3f_1._hidden_1cf3f_1>._transition_1cf3f_1._fade_1cf3f_17{opacity:0;transition:opacity var(--hide-transition),filter var(--hide-transition);filter:blur(.5px)}@property --iris-gradient-length{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --iris-radius{syntax: \"<length> | <percentage>\"; inherits: false; initial-value: 16px;}._spoiler_1cf3f_1>._transition_1cf3f_1._iris_1cf3f_51{--hide-duration: .15s;--reveal-duration: .3s}._spoiler_1cf3f_1._hidden_1cf3f_1>._transition_1cf3f_1._iris_1cf3f_51{--iris-gradient-length: 0%;--iris-radius: 0px;opacity:0;filter:blur(1px);transition:--iris-gradient-length 0s linear var(--hide-duration),filter 0s linear var(--hide-duration),opacity var(--hide-duration) ease-out}._transition_1cf3f_1._iris_1cf3f_51{-webkit-mask:radial-gradient(circle closest-corner,black var(--iris-gradient-length),transparent calc(var(--iris-gradient-length) + var(--iris-radius))) no-repeat center;mask:radial-gradient(circle closest-corner,black var(--iris-gradient-length),transparent calc(var(--iris-gradient-length) + var(--iris-radius))) no-repeat center;transition:--iris-gradient-length var(--reveal-duration) ease-out,opacity var(--reveal-duration) ease-out,filter var(--reveal-duration) ease-out}@keyframes _remove-mask_1cf3f_1{to{-webkit-mask-image:none;mask-image:none}}._spoiler_1cf3f_1:not(._hidden_1cf3f_1)>._transition_1cf3f_1._iris_1cf3f_51{animation:0s linear var(--reveal-duration) 1 forwards _remove-mask_1cf3f_1}\n";
37749
36803
 
37750
- const NoSelect = st$1.div`
36804
+ const NoSelect = styled.div`
37751
36805
  * {
37752
36806
  user-select: none;
37753
36807
  }
37754
36808
  `;
37755
- const DisabledInput = st$1(Input)`
36809
+ const DisabledInput = styled(Input)`
37756
36810
  /* stylelint-disable declaration-no-important */
37757
36811
  cursor: ${({ $hidden }) => $hidden ? "default" : "pointer"} !important;
37758
36812
  `;
37759
- const NotificationOverrides = at$1`
36813
+ const NotificationOverrides = createGlobalStyle`
37760
36814
  .no-message-notif .ant-notification-notice-message {
37761
36815
  margin-bottom: 0 !important;
37762
36816
  }
37763
36817
  `;
37764
- const Styled$i = {
36818
+ const Styled$j = {
37765
36819
  NoSelect,
37766
36820
  DisabledInput,
37767
36821
  NotificationOverrides
@@ -37827,10 +36881,10 @@ const SecretBase64Plain = ({ data }) => {
37827
36881
  }
37828
36882
  };
37829
36883
  return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { style: containerStyle, children: [
37830
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.NotificationOverrides, {}),
36884
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$j.NotificationOverrides, {}),
37831
36885
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: 8, ...flexProps, children: [
37832
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.NoSelect, { style: inputContainerStyle, children: niceLooking ? /* @__PURE__ */ jsxRuntimeExports.jsx(te$1, { theme, hidden, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
37833
- Styled$i.DisabledInput,
36886
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$j.NoSelect, { style: inputContainerStyle, children: niceLooking ? /* @__PURE__ */ jsxRuntimeExports.jsx(te$1, { theme, hidden, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
36887
+ Styled$j.DisabledInput,
37834
36888
  {
37835
36889
  $hidden: hidden,
37836
36890
  ref: inputRef,
@@ -37845,7 +36899,7 @@ const SecretBase64Plain = ({ data }) => {
37845
36899
  value: decodedText
37846
36900
  }
37847
36901
  ) }) : /* @__PURE__ */ jsxRuntimeExports.jsx(
37848
- Styled$i.DisabledInput,
36902
+ Styled$j.DisabledInput,
37849
36903
  {
37850
36904
  $hidden: hidden,
37851
36905
  ref: inputRef,
@@ -37890,7 +36944,7 @@ const getUppercase = (s) => {
37890
36944
  return uppercases.length > 0 ? uppercases : s[0].toUpperCase();
37891
36945
  };
37892
36946
 
37893
- const RoundSpan = st$1.span`
36947
+ const RoundSpan = styled.span`
37894
36948
  background-color: ${({ $bgColor }) => $bgColor || "none"};
37895
36949
  border-radius: 13px;
37896
36950
  padding: 1px 5px;
@@ -37903,7 +36957,7 @@ const RoundSpan = st$1.span`
37903
36957
  letter-spacing: 0.02em;
37904
36958
  box-sizing: content-box;
37905
36959
  `;
37906
- const Styled$h = {
36960
+ const Styled$i = {
37907
36961
  RoundSpan
37908
36962
  };
37909
36963
 
@@ -37942,7 +36996,7 @@ const ResourceBadge = ({ data }) => {
37942
36996
  multiQueryData
37943
36997
  }) : getUppercase(parsedValue);
37944
36998
  const bgColor = hslFromString(parsedValue, theme);
37945
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$h.RoundSpan, { $bgColor: bgColor, style, children: parsedAbbreviation });
36999
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$i.RoundSpan, { $bgColor: bgColor, style, children: parsedAbbreviation });
37946
37000
  };
37947
37001
 
37948
37002
  const DynamicComponents = {
@@ -39836,15 +38890,15 @@ var loader = {
39836
38890
  __getMonacoInstance: __getMonacoInstance
39837
38891
  };
39838
38892
 
39839
- var le={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},v=le;var ae={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Y=ae;function Me({children:e}){return o.createElement("div",{style:Y.container},e)}var Z=Me;var $=Z;function Ee({width:e,height:r,isEditorReady:n,loading:t,_ref:a,className:m,wrapperProps:E}){return o.createElement("section",{style:{...v.wrapper,width:e,height:r},...E},!n&&o.createElement($,null,t),o.createElement("div",{ref:a,style:{...v.fullWidth,...!n&&v.hide},className:m}))}var ee=Ee;var H=memo(ee);function Ce(e){useEffect(e,[]);}var k=Ce;function he(e,r,n=true){let t=useRef(true);useEffect(t.current||!n?()=>{t.current=false;}:e,r);}var l=he;function D(){}function h(e,r,n,t){return De(e,t)||be(e,r,n,t)}function De(e,r){return e.editor.getModel(te(e,r))}function be(e,r,n,t){return e.editor.createModel(r,n,t?te(e,t):void 0)}function te(e,r){return e.Uri.parse(r)}function Oe({original:e,modified:r,language:n,originalLanguage:t,modifiedLanguage:a,originalModelPath:m,modifiedModelPath:E,keepCurrentOriginalModel:g=false,keepCurrentModifiedModel:N=false,theme:x="light",loading:P="Loading...",options:y={},height:V="100%",width:z="100%",className:F,wrapperProps:j={},beforeMount:A=D,onMount:q=D}){let[M,O]=useState(false),[T,s]=useState(true),u=useRef(null),c=useRef(null),w=useRef(null),d=useRef(q),o$1=useRef(A),b=useRef(false);k(()=>{let i=loader.init();return i.then(f=>(c.current=f)&&s(false)).catch(f=>f?.type!=="cancelation"&&console.error("Monaco initialization: error:",f)),()=>u.current?I():i.cancel()}),l(()=>{if(u.current&&c.current){let i=u.current.getOriginalEditor(),f=h(c.current,e||"",t||n||"text",m||"");f!==i.getModel()&&i.setModel(f);}},[m],M),l(()=>{if(u.current&&c.current){let i=u.current.getModifiedEditor(),f=h(c.current,r||"",a||n||"text",E||"");f!==i.getModel()&&i.setModel(f);}},[E],M),l(()=>{let i=u.current.getModifiedEditor();i.getOption(c.current.editor.EditorOption.readOnly)?i.setValue(r||""):r!==i.getValue()&&(i.executeEdits("",[{range:i.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:true}]),i.pushUndoStop());},[r],M),l(()=>{u.current?.getModel()?.original.setValue(e||"");},[e],M),l(()=>{let{original:i,modified:f}=u.current.getModel();c.current.editor.setModelLanguage(i,t||n||"text"),c.current.editor.setModelLanguage(f,a||n||"text");},[n,t,a],M),l(()=>{c.current?.editor.setTheme(x);},[x],M),l(()=>{u.current?.updateOptions(y);},[y],M);let L=useCallback(()=>{if(!c.current)return;o$1.current(c.current);let i=h(c.current,e||"",t||n||"text",m||""),f=h(c.current,r||"",a||n||"text",E||"");u.current?.setModel({original:i,modified:f});},[n,r,a,e,t,m,E]),U=useCallback(()=>{!b.current&&w.current&&(u.current=c.current.editor.createDiffEditor(w.current,{automaticLayout:true,...y}),L(),c.current?.editor.setTheme(x),O(true),b.current=true);},[y,x,L]);useEffect(()=>{M&&d.current(u.current,c.current);},[M]),useEffect(()=>{!T&&!M&&U();},[T,M,U]);function I(){let i=u.current?.getModel();g||i?.original?.dispose(),N||i?.modified?.dispose(),u.current?.dispose();}return o.createElement(H,{width:z,height:V,isEditorReady:M,loading:P,_ref:w,className:F,wrapperProps:j})}var ie=Oe;var we=memo(ie);function Pe(){let[e,r]=useState(loader.__getMonacoInstance());return k(()=>{let n;return e||(n=loader.init(),n.then(t=>{r(t);})),()=>n?.cancel()}),e}var Le=Pe;function He(e){let r=useRef();return useEffect(()=>{r.current=e;},[e]),r.current}var se=He;var _=new Map;function Ve({defaultValue:e,defaultLanguage:r,defaultPath:n,value:t,language:a,path:m,theme:E="light",line:g,loading:N="Loading...",options:x={},overrideServices:P={},saveViewState:y=true,keepCurrentModel:V=false,width:z="100%",height:F="100%",className:j,wrapperProps:A={},beforeMount:q=D,onMount:M=D,onChange:O,onValidate:T=D}){let[s,u]=useState(false),[c,w]=useState(true),d=useRef(null),o$1=useRef(null),b=useRef(null),L=useRef(M),U=useRef(q),I=useRef(),i=useRef(t),f=se(m),Q=useRef(false),B=useRef(false);k(()=>{let p=loader.init();return p.then(R=>(d.current=R)&&w(false)).catch(R=>R?.type!=="cancelation"&&console.error("Monaco initialization: error:",R)),()=>o$1.current?pe():p.cancel()}),l(()=>{let p=h(d.current,e||t||"",r||a||"",m||n||"");p!==o$1.current?.getModel()&&(y&&_.set(f,o$1.current?.saveViewState()),o$1.current?.setModel(p),y&&o$1.current?.restoreViewState(_.get(m)));},[m],s),l(()=>{o$1.current?.updateOptions(x);},[x],s),l(()=>{!o$1.current||t===void 0||(o$1.current.getOption(d.current.editor.EditorOption.readOnly)?o$1.current.setValue(t):t!==o$1.current.getValue()&&(B.current=true,o$1.current.executeEdits("",[{range:o$1.current.getModel().getFullModelRange(),text:t,forceMoveMarkers:true}]),o$1.current.pushUndoStop(),B.current=false));},[t],s),l(()=>{let p=o$1.current?.getModel();p&&a&&d.current?.editor.setModelLanguage(p,a);},[a],s),l(()=>{g!==void 0&&o$1.current?.revealLine(g);},[g],s),l(()=>{d.current?.editor.setTheme(E);},[E],s);let X=useCallback(()=>{if(!(!b.current||!d.current)&&!Q.current){U.current(d.current);let p=m||n,R=h(d.current,t||e||"",r||a||"",p||"");o$1.current=d.current?.editor.create(b.current,{model:R,automaticLayout:true,...x},P),y&&o$1.current.restoreViewState(_.get(p)),d.current.editor.setTheme(E),g!==void 0&&o$1.current.revealLine(g),u(true),Q.current=true;}},[e,r,n,t,a,m,x,P,y,E,g]);useEffect(()=>{s&&L.current(o$1.current,d.current);},[s]),useEffect(()=>{!c&&!s&&X();},[c,s,X]),i.current=t,useEffect(()=>{s&&O&&(I.current?.dispose(),I.current=o$1.current?.onDidChangeModelContent(p=>{B.current||O(o$1.current.getValue(),p);}));},[s,O]),useEffect(()=>{if(s){let p=d.current.editor.onDidChangeMarkers(R=>{let G=o$1.current.getModel()?.uri;if(G&&R.find(J=>J.path===G.path)){let J=d.current.editor.getModelMarkers({resource:G});T?.(J);}});return ()=>{p?.dispose();}}return ()=>{}},[s,T]);function pe(){I.current?.dispose(),V?y&&_.set(m,o$1.current.saveViewState()):o$1.current.getModel()?.dispose(),o$1.current.dispose();}return o.createElement(H,{width:z,height:F,isEditorReady:s,loading:N,_ref:b,className:j,wrapperProps:A})}var fe=Ve;var de=memo(fe);var Ft=de;
38893
+ var le={wrapper:{display:"flex",position:"relative",textAlign:"initial"},fullWidth:{width:"100%"},hide:{display:"none"}},v=le;var ae={container:{display:"flex",height:"100%",width:"100%",justifyContent:"center",alignItems:"center"}},Y=ae;function Me({children:e}){return K.createElement("div",{style:Y.container},e)}var Z=Me;var $=Z;function Ee({width:e,height:r,isEditorReady:n,loading:t,_ref:a,className:m,wrapperProps:E}){return K.createElement("section",{style:{...v.wrapper,width:e,height:r},...E},!n&&K.createElement($,null,t),K.createElement("div",{ref:a,style:{...v.fullWidth,...!n&&v.hide},className:m}))}var ee=Ee;var H=memo(ee);function Ce(e){useEffect(e,[]);}var k=Ce;function he(e,r,n=true){let t=useRef(true);useEffect(t.current||!n?()=>{t.current=false;}:e,r);}var l=he;function D(){}function h(e,r,n,t){return De(e,t)||be(e,r,n,t)}function De(e,r){return e.editor.getModel(te(e,r))}function be(e,r,n,t){return e.editor.createModel(r,n,t?te(e,t):void 0)}function te(e,r){return e.Uri.parse(r)}function Oe({original:e,modified:r,language:n,originalLanguage:t,modifiedLanguage:a,originalModelPath:m,modifiedModelPath:E,keepCurrentOriginalModel:g=false,keepCurrentModifiedModel:N=false,theme:x="light",loading:P="Loading...",options:y={},height:V="100%",width:z="100%",className:F,wrapperProps:j={},beforeMount:A=D,onMount:q=D}){let[M,O]=useState(false),[T,s]=useState(true),u=useRef(null),c=useRef(null),w=useRef(null),d=useRef(q),o=useRef(A),b=useRef(false);k(()=>{let i=loader.init();return i.then(f=>(c.current=f)&&s(false)).catch(f=>f?.type!=="cancelation"&&console.error("Monaco initialization: error:",f)),()=>u.current?I():i.cancel()}),l(()=>{if(u.current&&c.current){let i=u.current.getOriginalEditor(),f=h(c.current,e||"",t||n||"text",m||"");f!==i.getModel()&&i.setModel(f);}},[m],M),l(()=>{if(u.current&&c.current){let i=u.current.getModifiedEditor(),f=h(c.current,r||"",a||n||"text",E||"");f!==i.getModel()&&i.setModel(f);}},[E],M),l(()=>{let i=u.current.getModifiedEditor();i.getOption(c.current.editor.EditorOption.readOnly)?i.setValue(r||""):r!==i.getValue()&&(i.executeEdits("",[{range:i.getModel().getFullModelRange(),text:r||"",forceMoveMarkers:true}]),i.pushUndoStop());},[r],M),l(()=>{u.current?.getModel()?.original.setValue(e||"");},[e],M),l(()=>{let{original:i,modified:f}=u.current.getModel();c.current.editor.setModelLanguage(i,t||n||"text"),c.current.editor.setModelLanguage(f,a||n||"text");},[n,t,a],M),l(()=>{c.current?.editor.setTheme(x);},[x],M),l(()=>{u.current?.updateOptions(y);},[y],M);let L=useCallback(()=>{if(!c.current)return;o.current(c.current);let i=h(c.current,e||"",t||n||"text",m||""),f=h(c.current,r||"",a||n||"text",E||"");u.current?.setModel({original:i,modified:f});},[n,r,a,e,t,m,E]),U=useCallback(()=>{!b.current&&w.current&&(u.current=c.current.editor.createDiffEditor(w.current,{automaticLayout:true,...y}),L(),c.current?.editor.setTheme(x),O(true),b.current=true);},[y,x,L]);useEffect(()=>{M&&d.current(u.current,c.current);},[M]),useEffect(()=>{!T&&!M&&U();},[T,M,U]);function I(){let i=u.current?.getModel();g||i?.original?.dispose(),N||i?.modified?.dispose(),u.current?.dispose();}return K.createElement(H,{width:z,height:V,isEditorReady:M,loading:P,_ref:w,className:F,wrapperProps:j})}var ie=Oe;var we=memo(ie);function Pe(){let[e,r]=useState(loader.__getMonacoInstance());return k(()=>{let n;return e||(n=loader.init(),n.then(t=>{r(t);})),()=>n?.cancel()}),e}var Le=Pe;function He(e){let r=useRef();return useEffect(()=>{r.current=e;},[e]),r.current}var se=He;var _=new Map;function Ve({defaultValue:e,defaultLanguage:r,defaultPath:n,value:t,language:a,path:m,theme:E="light",line:g,loading:N="Loading...",options:x={},overrideServices:P={},saveViewState:y=true,keepCurrentModel:V=false,width:z="100%",height:F="100%",className:j,wrapperProps:A={},beforeMount:q=D,onMount:M=D,onChange:O,onValidate:T=D}){let[s,u]=useState(false),[c,w]=useState(true),d=useRef(null),o=useRef(null),b=useRef(null),L=useRef(M),U=useRef(q),I=useRef(),i=useRef(t),f=se(m),Q=useRef(false),B=useRef(false);k(()=>{let p=loader.init();return p.then(R=>(d.current=R)&&w(false)).catch(R=>R?.type!=="cancelation"&&console.error("Monaco initialization: error:",R)),()=>o.current?pe():p.cancel()}),l(()=>{let p=h(d.current,e||t||"",r||a||"",m||n||"");p!==o.current?.getModel()&&(y&&_.set(f,o.current?.saveViewState()),o.current?.setModel(p),y&&o.current?.restoreViewState(_.get(m)));},[m],s),l(()=>{o.current?.updateOptions(x);},[x],s),l(()=>{!o.current||t===void 0||(o.current.getOption(d.current.editor.EditorOption.readOnly)?o.current.setValue(t):t!==o.current.getValue()&&(B.current=true,o.current.executeEdits("",[{range:o.current.getModel().getFullModelRange(),text:t,forceMoveMarkers:true}]),o.current.pushUndoStop(),B.current=false));},[t],s),l(()=>{let p=o.current?.getModel();p&&a&&d.current?.editor.setModelLanguage(p,a);},[a],s),l(()=>{g!==void 0&&o.current?.revealLine(g);},[g],s),l(()=>{d.current?.editor.setTheme(E);},[E],s);let X=useCallback(()=>{if(!(!b.current||!d.current)&&!Q.current){U.current(d.current);let p=m||n,R=h(d.current,t||e||"",r||a||"",p||"");o.current=d.current?.editor.create(b.current,{model:R,automaticLayout:true,...x},P),y&&o.current.restoreViewState(_.get(p)),d.current.editor.setTheme(E),g!==void 0&&o.current.revealLine(g),u(true),Q.current=true;}},[e,r,n,t,a,m,x,P,y,E,g]);useEffect(()=>{s&&L.current(o.current,d.current);},[s]),useEffect(()=>{!c&&!s&&X();},[c,s,X]),i.current=t,useEffect(()=>{s&&O&&(I.current?.dispose(),I.current=o.current?.onDidChangeModelContent(p=>{B.current||O(o.current.getValue(),p);}));},[s,O]),useEffect(()=>{if(s){let p=d.current.editor.onDidChangeMarkers(R=>{let G=o.current.getModel()?.uri;if(G&&R.find(J=>J.path===G.path)){let J=d.current.editor.getModelMarkers({resource:G});T?.(J);}});return ()=>{p?.dispose();}}return ()=>{}},[s,T]);function pe(){I.current?.dispose(),V?y&&_.set(m,o.current.saveViewState()):o.current.getModel()?.dispose(),o.current.dispose();}return K.createElement(H,{width:z,height:F,isEditorReady:s,loading:N,_ref:b,className:j,wrapperProps:A})}var fe=Ve;var de=memo(fe);var Ft=de;
39840
38894
 
39841
38895
  const index = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
39842
- __proto__: null,
39843
- DiffEditor: we,
39844
- Editor: de,
39845
- default: Ft,
39846
- loader,
39847
- useMonaco: Le
38896
+ __proto__: null,
38897
+ DiffEditor: we,
38898
+ Editor: de,
38899
+ default: Ft,
38900
+ loader,
38901
+ useMonaco: Le
39848
38902
  }, Symbol.toStringTag, { value: 'Module' }));
39849
38903
 
39850
38904
  const ALIAS = Symbol.for('yaml.alias');
@@ -46704,51 +45758,126 @@ function stringify(value, replacer, options) {
46704
45758
  return new Document$1(value, _replacer, options).toString(options);
46705
45759
  }
46706
45760
 
46707
- const BorderRadiusContainer$1 = st$1.div`
45761
+ const BorderRadiusContainer$1 = styled.div`
46708
45762
  height: 100%;
45763
+ border: 1px solid ${({ $colorBorder }) => $colorBorder};
45764
+ border-radius: 8px;
45765
+ padding: 2px;
46709
45766
 
46710
45767
  .monaco-editor,
46711
45768
  .overflow-guard {
46712
45769
  border-radius: 8px;
46713
45770
  }
46714
45771
  `;
46715
- const Styled$g = {
45772
+ const Styled$h = {
46716
45773
  BorderRadiusContainer: BorderRadiusContainer$1
46717
45774
  };
46718
45775
 
46719
- const YamlEditor = ({ theme, currentValues, onChange }) => {
45776
+ const YamlEditor = ({ theme: theme$1, currentValues, onChange, editorUri }) => {
45777
+ const { token } = theme.useToken();
46720
45778
  const [yamlData, setYamlData] = useState("");
45779
+ const editorRef = useRef(null);
45780
+ const monacoRef = useRef(null);
45781
+ const isFocusedRef = useRef(false);
45782
+ const pendingExternalYamlRef = useRef(null);
45783
+ const isApplyingExternalUpdateRef = useRef(false);
46721
45784
  useEffect(() => {
46722
- setYamlData(stringify(currentValues));
45785
+ const next = stringify(currentValues);
45786
+ if (isFocusedRef.current) {
45787
+ pendingExternalYamlRef.current = next ?? "";
45788
+ return;
45789
+ }
45790
+ setYamlData(next ?? "");
46723
45791
  }, [currentValues]);
46724
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$g.BorderRadiusContainer, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45792
+ useEffect(() => {
45793
+ const editor = editorRef.current;
45794
+ const monaco = monacoRef.current;
45795
+ if (editor && monaco) {
45796
+ if (isFocusedRef.current) return;
45797
+ const uri = monaco.Uri.parse(editorUri);
45798
+ let model = editor.getModel() || monaco.editor.getModel(uri);
45799
+ if (!model) {
45800
+ model = monaco.editor.createModel(yamlData ?? "", "yaml", uri);
45801
+ }
45802
+ if (model) {
45803
+ monaco.editor.setModelLanguage(model, "yaml");
45804
+ const current = model.getValue();
45805
+ if ((yamlData ?? "") !== current) {
45806
+ isApplyingExternalUpdateRef.current = true;
45807
+ model.setValue(yamlData ?? "");
45808
+ }
45809
+ }
45810
+ }
45811
+ }, [yamlData, editorUri]);
45812
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$h.BorderRadiusContainer, { $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
46725
45813
  Ft,
46726
45814
  {
46727
- defaultLanguage: "yaml",
45815
+ language: "yaml",
45816
+ path: editorUri,
45817
+ keepCurrentModel: true,
46728
45818
  width: "100%",
46729
45819
  height: "100%",
46730
- value: yamlData,
45820
+ defaultValue: yamlData ?? "",
45821
+ onMount: (editor, m) => {
45822
+ editorRef.current = editor;
45823
+ monacoRef.current = m;
45824
+ try {
45825
+ isFocusedRef.current = !!editor.hasTextFocus?.();
45826
+ } catch {
45827
+ isFocusedRef.current = false;
45828
+ }
45829
+ editor.onDidFocusEditorText(() => {
45830
+ isFocusedRef.current = true;
45831
+ });
45832
+ editor.onDidBlurEditorText(() => {
45833
+ isFocusedRef.current = false;
45834
+ if (pendingExternalYamlRef.current !== null) {
45835
+ setYamlData(pendingExternalYamlRef.current);
45836
+ pendingExternalYamlRef.current = null;
45837
+ }
45838
+ });
45839
+ const uri = m.Uri.parse("inmemory://openapi-ui/form.yaml");
45840
+ let model = editor.getModel() || m.editor.getModel(uri);
45841
+ if (!model) {
45842
+ model = m.editor.createModel(yamlData ?? "", "yaml", uri);
45843
+ }
45844
+ if (model) {
45845
+ m.editor.setModelLanguage(model, "yaml");
45846
+ }
45847
+ },
46731
45848
  onChange: (value) => {
46732
- onChange(parse(value || ""));
45849
+ if (isApplyingExternalUpdateRef.current) {
45850
+ isApplyingExternalUpdateRef.current = false;
45851
+ setYamlData(value || "");
45852
+ return;
45853
+ }
45854
+ try {
45855
+ onChange(parse(value || ""));
45856
+ } catch {
45857
+ }
46733
45858
  setYamlData(value || "");
46734
45859
  },
46735
- theme: theme === "dark" ? "vs-dark" : theme === void 0 ? "vs-dark" : "vs",
45860
+ theme: theme$1 === "dark" ? "vs-dark" : theme$1 === void 0 ? "vs-dark" : "vs",
46736
45861
  options: {
46737
- theme: theme === "dark" ? "vs-dark" : theme === void 0 ? "vs-dark" : "vs"
45862
+ theme: theme$1 === "dark" ? "vs-dark" : theme$1 === void 0 ? "vs-dark" : "vs"
46738
45863
  }
46739
45864
  }
46740
45865
  ) });
46741
45866
  };
46742
45867
 
46743
- const BorderRadiusContainer = st$1.div`
45868
+ const BorderRadiusContainer = styled.div`
46744
45869
  height: ${({ $designNewLayoutHeight }) => $designNewLayoutHeight ? `${$designNewLayoutHeight}px` : "75vh"};
45870
+ border: 1px solid ${({ $colorBorder }) => $colorBorder};
45871
+ border-radius: 8px;
45872
+ padding: 2px;
45873
+ box-sizing: border-box;
46745
45874
 
46746
45875
  .monaco-editor,
46747
45876
  .overflow-guard {
46748
45877
  border-radius: 8px;
46749
45878
  }
46750
45879
  `;
46751
- const ControlsRowContainer$1 = st$1.div`
45880
+ const ControlsRowContainer$1 = styled.div`
46752
45881
  margin-top: 10px;
46753
45882
  display: flex;
46754
45883
  align-items: center;
@@ -46756,11 +45885,11 @@ const ControlsRowContainer$1 = st$1.div`
46756
45885
  border-radius: 8px;
46757
45886
  padding: 4px;
46758
45887
  `;
46759
- const BigText$1 = st$1.div`
45888
+ const BigText$1 = styled.div`
46760
45889
  font-size: 16px;
46761
45890
  line-height: 24px;
46762
45891
  `;
46763
- const Styled$f = {
45892
+ const Styled$g = {
46764
45893
  BorderRadiusContainer,
46765
45894
  ControlsRowContainer: ControlsRowContainer$1,
46766
45895
  BigText: BigText$1
@@ -46839,7 +45968,7 @@ const YamlEditorSingleton = ({
46839
45968
  };
46840
45969
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
46841
45970
  contextHolder,
46842
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$f.BorderRadiusContainer, { $designNewLayoutHeight: designNewLayoutHeight, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
45971
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$g.BorderRadiusContainer, { $designNewLayoutHeight: designNewLayoutHeight, $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
46843
45972
  Ft,
46844
45973
  {
46845
45974
  defaultLanguage: "yaml",
@@ -46855,7 +45984,7 @@ const YamlEditorSingleton = ({
46855
45984
  }
46856
45985
  }
46857
45986
  ) }),
46858
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$f.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
45987
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$g.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
46859
45988
  /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "primary", onClick: onSubmit, loading: isLoading, children: "Submit" }),
46860
45989
  backlink && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { onClick: () => navigate(backlink), children: "Cancel" })
46861
45990
  ] }) }),
@@ -46865,7 +45994,7 @@ const YamlEditorSingleton = ({
46865
45994
  open: !!error,
46866
45995
  onOk: () => setError(void 0),
46867
45996
  onCancel: () => setError(void 0),
46868
- title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$f.BigText, { children: "Error!" }) }),
45997
+ title: /* @__PURE__ */ jsxRuntimeExports.jsx(Typography.Text, { type: "danger", children: /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$g.BigText, { children: "Error!" }) }),
46869
45998
  cancelButtonProps: { style: { display: "none" } },
46870
45999
  children: [
46871
46000
  "An error has occurred: ",
@@ -47527,15 +46656,15 @@ const FormStringInput = ({
47527
46656
  ] });
47528
46657
  };
47529
46658
 
47530
- const SwitchAndCrossContainer = st$1.div`
46659
+ const SwitchAndCrossContainer = styled.div`
47531
46660
  display: flex;
47532
46661
  `;
47533
- const CrossContainer = st$1.div`
46662
+ const CrossContainer = styled.div`
47534
46663
  margin-left: 4px;
47535
46664
  cursor: pointer;
47536
46665
  padding-top: 11px;
47537
46666
  `;
47538
- const Styled$e = {
46667
+ const Styled$f = {
47539
46668
  SwitchAndCrossContainer,
47540
46669
  CrossContainer
47541
46670
  };
@@ -47560,7 +46689,7 @@ const FormBooleanInput = ({
47560
46689
  onRemoveByMinus && /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { size: "small", type: "text", onClick: onRemoveByMinus, children: /* @__PURE__ */ jsxRuntimeExports.jsx(MinusIcon, {}) })
47561
46690
  ] })
47562
46691
  ] }),
47563
- /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$e.SwitchAndCrossContainer, { children: [
46692
+ /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$f.SwitchAndCrossContainer, { children: [
47564
46693
  /* @__PURE__ */ jsxRuntimeExports.jsx(
47565
46694
  ResetedFormItem$1,
47566
46695
  {
@@ -47570,7 +46699,7 @@ const FormBooleanInput = ({
47570
46699
  arrKey !== void 0 ? arrKey : Array.isArray(name) ? name.slice(-1)[0] : name
47571
46700
  ),
47572
46701
  /* @__PURE__ */ jsxRuntimeExports.jsx(
47573
- Styled$e.CrossContainer,
46702
+ Styled$f.CrossContainer,
47574
46703
  {
47575
46704
  onClick: () => {
47576
46705
  if (makeValueUndefined) {
@@ -47758,20 +46887,192 @@ const FormArrayHeader = ({
47758
46887
  ] });
47759
46888
  };
47760
46889
 
47761
- const Container = st$1.div`
46890
+ const Container$1 = styled.div`
46891
+ height: 140px;
46892
+ border: 1px solid ${({ $colorBorder }) => $colorBorder};
46893
+ border-radius: 8px;
46894
+ padding: 2px;
46895
+
46896
+ .monaco-editor,
46897
+ .overflow-guard {
46898
+ border-radius: 8px;
46899
+ }
46900
+ `;
46901
+ const Styled$e = {
46902
+ Container: Container$1
46903
+ };
46904
+
46905
+ const FormInlineYamlEditor = ({ path, persistedControls, externalValue }) => {
46906
+ const { token } = theme.useToken();
46907
+ const form = Form.useFormInstance();
46908
+ const onValuesChange = useOnValuesChangeCallback();
46909
+ const [yamlText, setYamlText] = useState("");
46910
+ const monacoRef = useRef(null);
46911
+ const editorRef = useRef(null);
46912
+ const isLocalEditRef = useRef(false);
46913
+ const clearLocalEditTimeoutRef = useRef(null);
46914
+ const isFocusedRef = useRef(false);
46915
+ const modelUri = useMemo(() => {
46916
+ const encoded = encodeURIComponent(JSON.stringify(path));
46917
+ return `inmemory://openapi-ui/unknown/${encoded}.yaml`;
46918
+ }, [path]);
46919
+ const watchedValue = Form.useWatch(path, form);
46920
+ useEffect(() => {
46921
+ if (isLocalEditRef.current) return;
46922
+ if (isFocusedRef.current) return;
46923
+ const value = watchedValue;
46924
+ const isEmptyObj = value && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === 0;
46925
+ const next = value == null || isEmptyObj ? "" : stringify(value) ?? "";
46926
+ setYamlText((prev) => prev === next ? prev : next);
46927
+ }, [watchedValue]);
46928
+ useEffect(() => {
46929
+ if (isLocalEditRef.current) return;
46930
+ if (isFocusedRef.current) return;
46931
+ const value = externalValue;
46932
+ const isEmptyObj = value && typeof value === "object" && !Array.isArray(value) && Object.keys(value).length === 0;
46933
+ const next = value == null || isEmptyObj ? "" : stringify(value) ?? "";
46934
+ setYamlText((prev) => prev === next ? prev : next);
46935
+ }, [externalValue]);
46936
+ useEffect(() => {
46937
+ if (isLocalEditRef.current) return;
46938
+ if (isFocusedRef.current) return;
46939
+ const ed = editorRef.current;
46940
+ const m = monacoRef.current;
46941
+ if (!ed || !m) return;
46942
+ const uri = m.Uri.parse(modelUri);
46943
+ let model = ed.getModel() || m.editor.getModel(uri);
46944
+ if (!model) {
46945
+ model = m.editor.createModel(yamlText ?? "", "yaml", uri);
46946
+ }
46947
+ if (model) {
46948
+ m.editor.setModelLanguage(model, "yaml");
46949
+ const current = model.getValue();
46950
+ if ((yamlText ?? "") !== current) {
46951
+ model.setValue(yamlText ?? "");
46952
+ }
46953
+ }
46954
+ }, [yamlText, modelUri]);
46955
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$e.Container, { $colorBorder: token.colorBorder, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
46956
+ Ft,
46957
+ {
46958
+ language: "yaml",
46959
+ path: modelUri,
46960
+ keepCurrentModel: true,
46961
+ width: "100%",
46962
+ height: "100%",
46963
+ defaultValue: yamlText ?? "",
46964
+ onMount: (editor, m) => {
46965
+ editorRef.current = editor;
46966
+ monacoRef.current = m;
46967
+ try {
46968
+ isFocusedRef.current = !!editor.hasTextFocus?.();
46969
+ } catch {
46970
+ isFocusedRef.current = false;
46971
+ }
46972
+ editor.onDidFocusEditorText(() => {
46973
+ isFocusedRef.current = true;
46974
+ });
46975
+ editor.onDidBlurEditorText(() => {
46976
+ isFocusedRef.current = false;
46977
+ });
46978
+ const uri = m.Uri.parse(modelUri);
46979
+ let model = editor.getModel() || m.editor.getModel(uri);
46980
+ if (!model) {
46981
+ model = m.editor.createModel(yamlText ?? "", "yaml", uri);
46982
+ }
46983
+ if (model) {
46984
+ const ensureYaml = () => {
46985
+ try {
46986
+ const mm = monacoRef.current;
46987
+ const ee = editorRef.current;
46988
+ if (!mm || !ee) return;
46989
+ const u = mm.Uri.parse(modelUri);
46990
+ const mdl = ee.getModel() || mm.editor.getModel(u);
46991
+ if (!mdl) return;
46992
+ const lang = mdl.getLanguageId?.() || mdl.getModeId?.();
46993
+ if (lang !== "yaml") {
46994
+ mm.editor.setModelLanguage(mdl, "yaml");
46995
+ }
46996
+ } catch {
46997
+ }
46998
+ };
46999
+ ensureYaml();
47000
+ try {
47001
+ requestAnimationFrame(() => ensureYaml());
47002
+ } catch {
47003
+ }
47004
+ setTimeout(() => ensureYaml(), 50);
47005
+ setTimeout(() => ensureYaml(), 200);
47006
+ }
47007
+ },
47008
+ onValidate: () => {
47009
+ const m = monacoRef.current;
47010
+ const ed = editorRef.current;
47011
+ if (!m || !ed) return;
47012
+ const uri = m.Uri.parse(modelUri);
47013
+ const model = ed.getModel() || m.editor.getModel(uri);
47014
+ if (model) {
47015
+ m.editor.setModelLanguage(model, "yaml");
47016
+ }
47017
+ },
47018
+ onChange: (value) => {
47019
+ const nextText = value || "";
47020
+ isLocalEditRef.current = true;
47021
+ if (clearLocalEditTimeoutRef.current) clearTimeout(clearLocalEditTimeoutRef.current);
47022
+ setYamlText(nextText);
47023
+ try {
47024
+ const parsed = parse(nextText || "");
47025
+ let nextValue;
47026
+ if (!nextText.trim()) {
47027
+ nextValue = {};
47028
+ } else if (parsed === null) {
47029
+ nextValue = {};
47030
+ } else if (typeof parsed === "object" && !Array.isArray(parsed) && Object.keys(parsed).length === 0) {
47031
+ nextValue = {};
47032
+ } else {
47033
+ nextValue = parsed;
47034
+ }
47035
+ form.setFieldValue(path, nextValue);
47036
+ if (!persistedControls.persistedKeys.some((k) => JSON.stringify(k) === JSON.stringify(path))) {
47037
+ persistedControls.onPersistMark(path, "obj");
47038
+ }
47039
+ onValuesChange?.();
47040
+ } catch {
47041
+ }
47042
+ clearLocalEditTimeoutRef.current = setTimeout(() => {
47043
+ isLocalEditRef.current = false;
47044
+ }, 600);
47045
+ },
47046
+ options: {
47047
+ minimap: { enabled: false },
47048
+ lineNumbers: "off",
47049
+ glyphMargin: false,
47050
+ folding: false,
47051
+ lineDecorationsWidth: 0,
47052
+ lineNumbersMinChars: 0,
47053
+ renderLineHighlight: "none",
47054
+ scrollbar: { vertical: "hidden", horizontal: "auto" },
47055
+ overviewRulerLanes: 0,
47056
+ wordWrap: "on"
47057
+ }
47058
+ }
47059
+ ) });
47060
+ };
47061
+
47062
+ const Container = styled.div`
47762
47063
  display: grid;
47763
47064
  grid-template-columns: repeat(2, 1fr);
47764
47065
  gap: ${({ $designNewLayout }) => $designNewLayout ? "36px" : "8px"};
47765
47066
  height: ${({ $designNewLayoutHeight }) => $designNewLayoutHeight ? `${$designNewLayoutHeight}px` : "75vh"};
47766
47067
  `;
47767
- const OverflowContainer$1 = st$1.div`
47068
+ const OverflowContainer$1 = styled.div`
47768
47069
  overflow-x: auto;
47769
47070
  scrollbar-width: thin;
47770
47071
  `;
47771
- const ResetedFormList = st$1(Form.List)`
47072
+ const ResetedFormList = styled(Form.List)`
47772
47073
  margin-bottom: 8px;
47773
47074
  `;
47774
- const ControlsRowContainer = st$1.div`
47075
+ const ControlsRowContainer = styled.div`
47775
47076
  margin-top: 10px;
47776
47077
  display: flex;
47777
47078
  align-items: center;
@@ -47779,10 +47080,10 @@ const ControlsRowContainer = st$1.div`
47779
47080
  border-radius: 8px;
47780
47081
  padding: 4px;
47781
47082
  `;
47782
- const DebugContainer = st$1.div`
47083
+ const DebugContainer = styled.div`
47783
47084
  height: ${({ $designNewLayoutHeight }) => $designNewLayoutHeight ? `${$designNewLayoutHeight}px` : "75vh"};
47784
47085
  `;
47785
- const BigText = st$1.div`
47086
+ const BigText = styled.div`
47786
47087
  font-size: 16px;
47787
47088
  line-height: 24px;
47788
47089
  `;
@@ -48155,7 +47456,17 @@ const getArrayFormItemFromSwagger = ({
48155
47456
  ] }, field.key);
48156
47457
  }),
48157
47458
  /* @__PURE__ */ jsxRuntimeExports.jsxs(ResetedFormItem$1, { children: [
48158
- /* @__PURE__ */ jsxRuntimeExports.jsx(Button, { type: "text", size: "small", onClick: () => add(), children: /* @__PURE__ */ jsxRuntimeExports.jsx(PlusIcon, {}) }),
47459
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
47460
+ Button,
47461
+ {
47462
+ type: "text",
47463
+ size: "small",
47464
+ onClick: () => {
47465
+ add();
47466
+ },
47467
+ children: /* @__PURE__ */ jsxRuntimeExports.jsx(PlusIcon, {})
47468
+ }
47469
+ ),
48159
47470
  /* @__PURE__ */ jsxRuntimeExports.jsx(Form.ErrorList, { errors })
48160
47471
  ] })
48161
47472
  ] })
@@ -48186,6 +47497,32 @@ const getObjectFormItemsDraft = ({
48186
47497
  urlParams
48187
47498
  }) => {
48188
47499
  return /* @__PURE__ */ jsxRuntimeExports.jsx(HiddenContainer, { name, children: Object.keys(properties).map((el) => {
47500
+ if (properties[el]["x-kubernetes-preserve-unknown-fields"]) {
47501
+ const path = Array.isArray(name) ? [...name, String(el)] : [name, String(el)];
47502
+ return /* @__PURE__ */ jsxRuntimeExports.jsx(
47503
+ FormObjectFromSwagger,
47504
+ {
47505
+ name,
47506
+ persistName,
47507
+ hiddenFormName: path,
47508
+ description: properties[el].description,
47509
+ removeField,
47510
+ expandedControls,
47511
+ persistedControls,
47512
+ collapseTitle: el,
47513
+ collapseFormName: path,
47514
+ data: /* @__PURE__ */ jsxRuntimeExports.jsx(Form.Item, { noStyle: true, shouldUpdate: true, children: (f) => /* @__PURE__ */ jsxRuntimeExports.jsx(
47515
+ FormInlineYamlEditor,
47516
+ {
47517
+ path,
47518
+ persistedControls,
47519
+ externalValue: f.getFieldValue(path)
47520
+ }
47521
+ ) })
47522
+ },
47523
+ Array.isArray(name) ? [...name, String(el)].join("-") : [name, String(el)].join("-")
47524
+ );
47525
+ }
48189
47526
  if (properties[el].type === "string" && properties[el].enum) {
48190
47527
  return getEnumStringFormItemFromSwagger({
48191
47528
  name: Array.isArray(name) ? [...name, String(el)] : [name, String(el)],
@@ -48363,9 +47700,6 @@ const getObjectFormItemsDraft = ({
48363
47700
  urlParams
48364
47701
  });
48365
47702
  }
48366
- if (properties[el].type === "object" && properties[el]["x-kubernetes-preserve-unknown-fields"]) {
48367
- return /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { message: "x-kubernetes-preserve-unknown-fields", banner: true }, String(el));
48368
- }
48369
47703
  return null;
48370
47704
  }) }, `${arrKey}-${JSON.stringify(name)}`);
48371
47705
  };
@@ -48430,6 +47764,217 @@ const getObjectFormItemFromSwagger = ({
48430
47764
  );
48431
47765
  };
48432
47766
 
47767
+ const pathKey$1 = (p) => JSON.stringify(p);
47768
+ const pruneAdditionalForValues = (props, values, blockedPathsRef) => {
47769
+ const next = _$1.cloneDeep(props) || {};
47770
+ const walk = (schemaNode, valueNode, path = []) => {
47771
+ if (!schemaNode) return;
47772
+ if (schemaNode.type === "object") {
47773
+ const vo = valueNode && typeof valueNode === "object" && !Array.isArray(valueNode) ? valueNode : {};
47774
+ if (schemaNode.properties) {
47775
+ Object.keys(schemaNode.properties).forEach((k) => {
47776
+ const child = schemaNode.properties[k];
47777
+ const currentPath = pathKey$1([...path, k]);
47778
+ if (child?.isAdditionalProperties && (!(k in vo) || blockedPathsRef.current.has(currentPath))) {
47779
+ delete schemaNode.properties[k];
47780
+ return;
47781
+ }
47782
+ walk(child, vo?.[k], [...path, k]);
47783
+ });
47784
+ }
47785
+ }
47786
+ if (schemaNode.type === "array" && schemaNode.items && Array.isArray(valueNode)) {
47787
+ valueNode.forEach((item, idx) => {
47788
+ if (schemaNode.properties?.[idx]) {
47789
+ walk(schemaNode.items, item, [...path, idx]);
47790
+ }
47791
+ });
47792
+ }
47793
+ };
47794
+ Object.keys(next || {}).forEach((top) => {
47795
+ walk(next[top], values?.[top], [top]);
47796
+ });
47797
+ return next;
47798
+ };
47799
+ const materializeAdditionalFromValues = (props, values, blockedPathsRef) => {
47800
+ const next = _$1.cloneDeep(props) || {};
47801
+ const toExpand = [];
47802
+ const toPersist = [];
47803
+ const makeChildFromAP = (ap) => {
47804
+ const t = ap?.type ?? "object";
47805
+ const child = { type: t };
47806
+ if (ap?.properties) child.properties = _$1.cloneDeep(ap.properties);
47807
+ if (ap?.items) child.items = _$1.cloneDeep(ap.items);
47808
+ if (ap?.required)
47809
+ child.required = _$1.cloneDeep(ap.required);
47810
+ child.isAdditionalProperties = true;
47811
+ return child;
47812
+ };
47813
+ const walk = (schemaNode, valueNode, path) => {
47814
+ if (!schemaNode) return;
47815
+ if (schemaNode.type === "object") {
47816
+ const ap = schemaNode.additionalProperties;
47817
+ if (ap && valueNode && typeof valueNode === "object" && !Array.isArray(valueNode)) {
47818
+ const vo = valueNode;
47819
+ schemaNode.properties = schemaNode.properties || {};
47820
+ toExpand.push([...path]);
47821
+ Object.keys(vo).forEach((k) => {
47822
+ const current = pathKey$1([...path, k]);
47823
+ if (blockedPathsRef.current.has(current)) return;
47824
+ if (!schemaNode.properties[k]) {
47825
+ schemaNode.properties[k] = makeChildFromAP(ap);
47826
+ } else if (schemaNode.properties[k].isAdditionalProperties && ap?.properties) {
47827
+ schemaNode.properties[k].properties ??= _$1.cloneDeep(ap.properties);
47828
+ }
47829
+ toExpand.push([...path, k]);
47830
+ const v = vo[k];
47831
+ if (v && typeof v === "object" && !Array.isArray(v) && Object.keys(v).length === 0) {
47832
+ toPersist.push([...path, k]);
47833
+ } else if (v === "" || v === 0 || Array.isArray(v) && v.length === 0) {
47834
+ toPersist.push([...path, k]);
47835
+ }
47836
+ });
47837
+ }
47838
+ if (schemaNode.properties && valueNode && typeof valueNode === "object" && !Array.isArray(valueNode)) {
47839
+ const vo = valueNode;
47840
+ Object.keys(schemaNode.properties).forEach((k) => {
47841
+ walk(schemaNode.properties[k], vo?.[k], [...path, k]);
47842
+ });
47843
+ }
47844
+ }
47845
+ if (schemaNode.type === "array" && schemaNode.items) {
47846
+ const arr = Array.isArray(valueNode) ? valueNode : [];
47847
+ if (arr.length) toExpand.push([...path]);
47848
+ arr.forEach((itemVal, idx) => {
47849
+ if (schemaNode.properties) {
47850
+ schemaNode.properties[idx] = schemaNode.properties[idx] || {
47851
+ properties: {}
47852
+ };
47853
+ }
47854
+ walk(schemaNode.items, itemVal, [...path, idx]);
47855
+ });
47856
+ }
47857
+ };
47858
+ Object.keys(next || {}).forEach((top) => {
47859
+ walk(next[top], values?.[top], [top]);
47860
+ });
47861
+ return { props: next, toExpand, toPersist };
47862
+ };
47863
+
47864
+ const DEBUG_PREFILLS = false;
47865
+ const dbg = (...args) => {
47866
+ };
47867
+ const group = (label) => DEBUG_PREFILLS;
47868
+ const DEBUG_WILDCARDS = false;
47869
+ const wdbg = (...args) => {
47870
+ };
47871
+ const wgroup = (label) => DEBUG_WILDCARDS;
47872
+ const prettyPath = (arr) => arr.map((s) => s === "*" ? "*" : String(s)).join(".");
47873
+
47874
+ const pathKey = (p) => JSON.stringify(p);
47875
+ const toWildcardPath = (p) => p.map((seg) => typeof seg === "number" || typeof seg === "string" && /^\d+$/.test(seg) ? "*" : seg);
47876
+ const collectArrayLengths = (obj, base = [], out = /* @__PURE__ */ new Map()) => {
47877
+ if (Array.isArray(obj)) {
47878
+ out.set(pathKey(base), obj.length);
47879
+ obj.forEach((v, i) => collectArrayLengths(v, [...base, i], out));
47880
+ } else if (_$1.isPlainObject(obj)) {
47881
+ Object.entries(obj).forEach(([k, v]) => collectArrayLengths(v, [...base, k], out));
47882
+ }
47883
+ return out;
47884
+ };
47885
+ const templateMatchesArray = (tpl, arrayPath) => {
47886
+ const w = tpl.wildcardPath;
47887
+ if (w.length < arrayPath.length + 1) {
47888
+ return false;
47889
+ }
47890
+ for (let i = 0; i < arrayPath.length; i++) {
47891
+ if (w[i] !== "*" && w[i] !== arrayPath[i]) {
47892
+ dbg("⛔ segment mismatch", { index: i, wSeg: w[i], arraySeg: arrayPath[i], w, arrayPath });
47893
+ return false;
47894
+ }
47895
+ }
47896
+ const ok = w[arrayPath.length] === "*";
47897
+ if (!ok) dbg("⛔ wildcard not at item position", { expectedIndex: arrayPath.length, w });
47898
+ return ok;
47899
+ };
47900
+ const buildConcretePathForNewItem = (tpl, arrayPath, newIndex) => {
47901
+ const w = tpl.wildcardPath;
47902
+ const realizedPrefix = [];
47903
+ for (let i = 0; i < arrayPath.length; i++) {
47904
+ realizedPrefix.push(w[i] === "*" ? arrayPath[i] : w[i]);
47905
+ }
47906
+ const result = [...realizedPrefix, newIndex, ...w.slice(arrayPath.length + 1)];
47907
+ return result;
47908
+ };
47909
+
47910
+ const sanitizeWildcardPath = (p) => {
47911
+ const out = p.map((seg) => {
47912
+ if (seg === "*") return "*";
47913
+ if (typeof seg === "number") return "*";
47914
+ if (typeof seg === "string") return /^\d+$/.test(seg) ? "*" : seg;
47915
+ return "*";
47916
+ });
47917
+ return out;
47918
+ };
47919
+ const isPlainObj = (v) => v !== null && typeof v === "object" && !Array.isArray(v);
47920
+ const expandOneTemplate = (tpl, node, base = [], out = []) => {
47921
+ wgroup(`expand tpl=${prettyPath(tpl)} from base=${prettyPath(base)}`);
47922
+ const step = (i, curr, path) => {
47923
+ wdbg("step", {
47924
+ i,
47925
+ seg: tpl[i],
47926
+ path,
47927
+ nodeType: Array.isArray(curr) ? "array" : isPlainObj(curr) ? "object" : curr === void 0 ? "undefined" : typeof curr
47928
+ });
47929
+ if (i === tpl.length) {
47930
+ wdbg("✔ hit", prettyPath(path));
47931
+ out.push(path);
47932
+ return;
47933
+ }
47934
+ const seg = tpl[i];
47935
+ if (seg === "*") {
47936
+ if (Array.isArray(curr)) {
47937
+ wdbg(" wildcard over array indices 0..", curr.length - 1);
47938
+ for (let idx = 0; idx < curr.length; idx++) {
47939
+ step(i + 1, curr[idx], [...path, idx]);
47940
+ }
47941
+ } else if (isPlainObj(curr)) {
47942
+ const keys = Object.keys(curr);
47943
+ for (const k of keys) {
47944
+ step(i + 1, curr[k], [...path, k]);
47945
+ }
47946
+ } else ;
47947
+ return;
47948
+ }
47949
+ if (isPlainObj(curr) && seg in curr) {
47950
+ step(i + 1, curr[seg], [...path, seg]);
47951
+ } else if (Array.isArray(curr) && typeof seg === "number" && curr[seg] !== void 0) {
47952
+ step(i + 1, curr[seg], [...path, seg]);
47953
+ } else ;
47954
+ };
47955
+ step(0, node, base);
47956
+ return out;
47957
+ };
47958
+ const expandWildcardTemplates = (templates, values) => {
47959
+ templates.forEach((t, i) => wdbg(`#${i}`, prettyPath(t)));
47960
+ const acc = [];
47961
+ const seen = /* @__PURE__ */ new Set();
47962
+ for (const tpl of templates) {
47963
+ const hits = expandOneTemplate(tpl, values);
47964
+ for (const p of hits) {
47965
+ const k = JSON.stringify(p);
47966
+ if (!seen.has(k)) {
47967
+ seen.add(k);
47968
+ acc.push(p);
47969
+ }
47970
+ }
47971
+ }
47972
+ wdbg("expanded →", acc.map(prettyPath));
47973
+ return acc;
47974
+ };
47975
+ const isPathArray = (p) => Array.isArray(p);
47976
+ const toStringPath = (p) => isPathArray(p) ? p.map(String) : [String(p)];
47977
+
48433
47978
  const handleSubmitError = ({
48434
47979
  error,
48435
47980
  expandedKeys
@@ -48473,7 +48018,7 @@ const handleValidationError = ({
48473
48018
  return uniqueKeys;
48474
48019
  };
48475
48020
 
48476
- const Editor = o.lazy(() => Promise.resolve().then(() => index));
48021
+ const Editor = K.lazy(() => Promise.resolve().then(() => index));
48477
48022
  const BlackholeForm = ({
48478
48023
  cluster,
48479
48024
  theme: theme$1,
@@ -48509,7 +48054,33 @@ const BlackholeForm = ({
48509
48054
  const [isDebugModalOpen, setIsDebugModalOpen] = useState(false);
48510
48055
  const [expandedKeys, setExpandedKeys] = useState(expandedPaths || []);
48511
48056
  const [persistedKeys, setPersistedKeys] = useState(persistedPaths || []);
48057
+ const [resolvedHiddenPaths, setResolvedHiddenPaths] = useState([]);
48058
+ const blockedPathsRef = useRef(/* @__PURE__ */ new Set());
48512
48059
  const overflowRef = useRef(null);
48060
+ const valuesToYamlReqId = useRef(0);
48061
+ const yamlToValuesReqId = useRef(0);
48062
+ const valuesToYamlAbortRef = useRef(null);
48063
+ const yamlToValuesAbortRef = useRef(null);
48064
+ const isAnyFieldFocusedRef = useRef(false);
48065
+ const editorUri = useMemo(
48066
+ () => `inmemory://openapi-ui/${cluster}/${apiGroupApiVersion}/${type}/${typeName}/${kindName}${isCreate ? "/create" : "/edit"}.yaml`,
48067
+ [cluster, apiGroupApiVersion, type, typeName, kindName, isCreate]
48068
+ );
48069
+ useEffect(() => {
48070
+ valuesToYamlReqId.current++;
48071
+ yamlToValuesReqId.current++;
48072
+ try {
48073
+ valuesToYamlAbortRef.current?.abort();
48074
+ } catch (err) {
48075
+ console.error(err);
48076
+ }
48077
+ try {
48078
+ yamlToValuesAbortRef.current?.abort();
48079
+ } catch (err) {
48080
+ console.error(err);
48081
+ }
48082
+ setYamlValues(void 0);
48083
+ }, [editorUri]);
48513
48084
  const createPermission = usePermissions({
48514
48085
  group: type === "builtin" ? void 0 : urlParamsForPermissions.apiGroup ? urlParamsForPermissions.apiGroup : "",
48515
48086
  resource: urlParamsForPermissions.typeName || "",
@@ -48602,36 +48173,10 @@ const BlackholeForm = ({
48602
48173
  setExpandedKeys([...keys]);
48603
48174
  });
48604
48175
  };
48605
- const onValuesChangeCallback = useCallback(
48606
- // eslint-disable-next-line @typescript-eslint/no-explicit-any
48607
- (values) => {
48608
- const v = values || form.getFieldsValue();
48609
- const payload = {
48610
- values: v,
48611
- persistedKeys,
48612
- properties
48613
- };
48614
- axios.post(
48615
- `/api/clusters/${cluster}/openapi-bff/forms/formSync/getYamlValuesByFromValues`,
48616
- payload
48617
- ).then(({ data }) => debouncedSetYamlValues(data));
48618
- },
48619
- [form, debouncedSetYamlValues, properties, persistedKeys, cluster]
48620
- );
48621
- const onYamlChangeCallback = useCallback(
48622
- (values) => {
48623
- const payload = {
48624
- values,
48625
- properties
48626
- };
48627
- axios.post(`/api/clusters/${cluster}/openapi-bff/forms/formSync/getFormValuesByYaml`, payload).then(({ data }) => {
48628
- if (data) {
48629
- form.setFieldsValue(data);
48630
- }
48631
- });
48632
- },
48633
- [form, properties, cluster]
48634
- );
48176
+ const normalizedPrefill = useMemo(() => {
48177
+ if (!prefillValuesSchema) return void 0;
48178
+ return normalizeValuesForQuotasToNumber(prefillValuesSchema, staticProperties);
48179
+ }, [prefillValuesSchema, staticProperties]);
48635
48180
  const initialValues = useMemo(() => {
48636
48181
  const allValues = {};
48637
48182
  if (isCreate) {
@@ -48646,24 +48191,248 @@ const BlackholeForm = ({
48646
48191
  if (prefillValueNamespaceOnly) {
48647
48192
  _$1.set(allValues, ["metadata", "namespace"], prefillValueNamespaceOnly);
48648
48193
  }
48649
- if (prefillValuesSchema) {
48650
- const quotasPrefillValuesSchema = normalizeValuesForQuotasToNumber(prefillValuesSchema, properties);
48651
- Object.entries(quotasPrefillValuesSchema).forEach(([flatKey, v]) => {
48194
+ if (normalizedPrefill) {
48195
+ Object.entries(normalizedPrefill).forEach(([flatKey, v]) => {
48652
48196
  _$1.set(allValues, flatKey.split("."), v);
48653
48197
  });
48654
48198
  }
48655
48199
  const sorted = Object.fromEntries(Object.entries(allValues).sort(([a], [b]) => a.localeCompare(b)));
48656
48200
  return sorted;
48657
- }, [
48658
- formsPrefills,
48659
- prefillValueNamespaceOnly,
48660
- isCreate,
48661
- apiGroupApiVersion,
48662
- kindName,
48663
- prefillValuesSchema,
48664
- properties
48665
- ]);
48201
+ }, [formsPrefills, prefillValueNamespaceOnly, isCreate, apiGroupApiVersion, kindName, normalizedPrefill]);
48202
+ const prefillTemplates = useMemo(() => {
48203
+ const templates = [];
48204
+ if (formsPrefills?.spec?.values?.length) {
48205
+ for (const { path, value } of formsPrefills.spec.values) {
48206
+ templates.push({ wildcardPath: toWildcardPath(path), value });
48207
+ }
48208
+ }
48209
+ if (normalizedPrefill) {
48210
+ for (const [flatKey, v] of Object.entries(normalizedPrefill)) {
48211
+ const parts = flatKey.split(".").map((seg) => /^\d+$/.test(seg) ? Number(seg) : seg);
48212
+ templates.push({ wildcardPath: toWildcardPath(parts), value: v });
48213
+ }
48214
+ }
48215
+ return templates.sort((a, b) => b.wildcardPath.length - a.wildcardPath.length);
48216
+ }, [formsPrefills, normalizedPrefill]);
48217
+ useEffect(() => {
48218
+ return;
48219
+ }, [prefillTemplates]);
48220
+ const prevArrayLengthsRef = useRef(/* @__PURE__ */ new Map());
48221
+ const applyPrefillForNewArrayItem = useCallback(
48222
+ (arrayPath, newIndex) => {
48223
+ group(`apply for ${JSON.stringify(arrayPath)}[${newIndex}]`);
48224
+ for (const tpl of prefillTemplates) {
48225
+ const matches = templateMatchesArray(tpl, arrayPath);
48226
+ dbg(matches ? "✅ match" : "❌ no match", tpl.wildcardPath.join("."));
48227
+ if (!matches) continue;
48228
+ const concretePath = buildConcretePathForNewItem(tpl, arrayPath, newIndex);
48229
+ const current = form.getFieldValue(concretePath);
48230
+ if (typeof current === "undefined") {
48231
+ const toSet = _$1.cloneDeep(tpl.value);
48232
+ form.setFieldValue(concretePath, toSet);
48233
+ }
48234
+ }
48235
+ },
48236
+ [form, prefillTemplates]
48237
+ );
48238
+ const hiddenWildcardTemplates = useMemo(() => {
48239
+ const raw = hiddenPaths ?? [];
48240
+ raw.forEach((p, i) => wdbg(`#${i}`, p));
48241
+ const sanitized = raw.map((p) => sanitizeWildcardPath(p));
48242
+ sanitized.forEach((p, i) => wdbg(`#${i}`, prettyPath(p)));
48243
+ return sanitized;
48244
+ }, [hiddenPaths]);
48245
+ const expandedWildcardTemplates = useMemo(() => {
48246
+ const raw = expandedPaths ?? [];
48247
+ raw.forEach((p, i) => wdbg(`#${i}`, p));
48248
+ const sanitized = raw.map((p) => sanitizeWildcardPath(p));
48249
+ sanitized.forEach((p, i) => wdbg(`#${i}`, prettyPath(p)));
48250
+ return sanitized;
48251
+ }, [expandedPaths]);
48252
+ useEffect(() => {
48253
+ if (!initialValues) return;
48254
+ const hiddenResolved = expandWildcardTemplates(hiddenWildcardTemplates, initialValues);
48255
+ wdbg("hidden resolved", hiddenResolved.map(prettyPath));
48256
+ setResolvedHiddenPaths(hiddenResolved);
48257
+ const expandedResolved = expandWildcardTemplates(expandedWildcardTemplates, initialValues);
48258
+ wdbg("expanded resolved", expandedResolved.map(prettyPath));
48259
+ setExpandedKeys((prev) => {
48260
+ const seen = new Set(prev.map((x) => JSON.stringify(x)));
48261
+ const merged = [...prev];
48262
+ for (const p of expandedResolved) {
48263
+ const k = JSON.stringify(p);
48264
+ if (!seen.has(k)) {
48265
+ seen.add(k);
48266
+ merged.push(p);
48267
+ }
48268
+ }
48269
+ return merged;
48270
+ });
48271
+ }, [initialValues, hiddenWildcardTemplates, expandedWildcardTemplates]);
48272
+ const resolvedHiddenStringPaths = useMemo(
48273
+ () => resolvedHiddenPaths.map(toStringPath),
48274
+ [resolvedHiddenPaths]
48275
+ );
48666
48276
  const prevInitialValues = useRef();
48277
+ const debouncedPostValuesToYaml = useDebounceCallback((payload, myId) => {
48278
+ try {
48279
+ valuesToYamlAbortRef.current?.abort();
48280
+ } catch (err) {
48281
+ console.error(err);
48282
+ }
48283
+ const controller = new AbortController();
48284
+ valuesToYamlAbortRef.current = controller;
48285
+ axios.post(
48286
+ `/api/clusters/${cluster}/openapi-bff/forms/formSync/getYamlValuesByFromValues`,
48287
+ payload,
48288
+ { signal: controller.signal }
48289
+ ).then(({ data }) => {
48290
+ if (myId !== valuesToYamlReqId.current) return;
48291
+ debouncedSetYamlValues(data);
48292
+ }).catch(() => {
48293
+ });
48294
+ }, 300);
48295
+ const onValuesChangeCallback = useCallback(
48296
+ (values) => {
48297
+ const v = values ?? form.getFieldsValue(true);
48298
+ const hiddenResolved = expandWildcardTemplates(hiddenWildcardTemplates, v);
48299
+ wdbg("hidden resolved", hiddenResolved.map(prettyPath));
48300
+ setResolvedHiddenPaths(hiddenResolved);
48301
+ const expandedResolved = expandWildcardTemplates(expandedWildcardTemplates, v);
48302
+ wdbg("expanded resolved", expandedResolved.map(prettyPath));
48303
+ if (expandedResolved.length) {
48304
+ setExpandedKeys((prev) => {
48305
+ const seen = new Set(prev.map((x) => JSON.stringify(x)));
48306
+ const merged = [...prev];
48307
+ for (const p of expandedResolved) {
48308
+ const k = JSON.stringify(p);
48309
+ if (!seen.has(k)) {
48310
+ seen.add(k);
48311
+ merged.push(p);
48312
+ }
48313
+ }
48314
+ return merged;
48315
+ });
48316
+ }
48317
+ const newLengths = collectArrayLengths(v);
48318
+ const prevLengths = prevArrayLengthsRef.current;
48319
+ const allKeys = /* @__PURE__ */ new Set([...prevLengths.keys(), ...newLengths.keys()]);
48320
+ [...allKeys].forEach((k) => dbg(k, " : ", prevLengths.get(k), "→", newLengths.get(k)));
48321
+ for (const [k, newLen] of newLengths.entries()) {
48322
+ const prevLen = prevLengths.get(k) ?? 0;
48323
+ if (newLen > prevLen) {
48324
+ const arrayPath = JSON.parse(k);
48325
+ for (let i = prevLen; i < newLen; i++) {
48326
+ applyPrefillForNewArrayItem(arrayPath, i);
48327
+ }
48328
+ }
48329
+ }
48330
+ prevArrayLengthsRef.current = newLengths;
48331
+ const payload = {
48332
+ values: v,
48333
+ persistedKeys,
48334
+ properties
48335
+ };
48336
+ const myId = ++valuesToYamlReqId.current;
48337
+ debouncedPostValuesToYaml(payload, myId);
48338
+ },
48339
+ [
48340
+ form,
48341
+ properties,
48342
+ persistedKeys,
48343
+ debouncedPostValuesToYaml,
48344
+ applyPrefillForNewArrayItem,
48345
+ hiddenWildcardTemplates,
48346
+ expandedWildcardTemplates
48347
+ ]
48348
+ );
48349
+ const debouncedPostYamlToValues = useDebounceCallback((payload, myId) => {
48350
+ try {
48351
+ yamlToValuesAbortRef.current?.abort();
48352
+ } catch (err) {
48353
+ console.error(err);
48354
+ }
48355
+ const controller = new AbortController();
48356
+ yamlToValuesAbortRef.current = controller;
48357
+ axios.post(`/api/clusters/${cluster}/openapi-bff/forms/formSync/getFormValuesByYaml`, payload, {
48358
+ signal: controller.signal
48359
+ }).then(({ data }) => {
48360
+ if (myId !== yamlToValuesReqId.current) return;
48361
+ if (!data) return;
48362
+ const prevAll = form.getFieldsValue(true);
48363
+ const prevPaths = getAllPathsFromObj(prevAll);
48364
+ const nextPaths = getAllPathsFromObj(data);
48365
+ const nextSet = new Set(nextPaths.map((p) => pathKey$1(p)));
48366
+ prevPaths.forEach((p) => {
48367
+ const k = pathKey$1(p);
48368
+ if (!nextSet.has(k)) {
48369
+ form.setFieldValue(p, void 0);
48370
+ blockedPathsRef.current.add(k);
48371
+ }
48372
+ });
48373
+ form.setFieldsValue(data);
48374
+ const dataPathSet = new Set(getAllPathsFromObj(data).map((p) => pathKey$1(p)));
48375
+ blockedPathsRef.current.forEach((k) => {
48376
+ if (dataPathSet.has(k)) blockedPathsRef.current.delete(k);
48377
+ });
48378
+ setProperties((prevProps) => {
48379
+ const pruned = pruneAdditionalForValues(prevProps, data, blockedPathsRef);
48380
+ const { props: materialized, toPersist } = materializeAdditionalFromValues(
48381
+ pruned,
48382
+ data,
48383
+ blockedPathsRef
48384
+ );
48385
+ if (_$1.isEqual(prevProps, materialized)) {
48386
+ return prevProps;
48387
+ }
48388
+ if (toPersist.length) {
48389
+ setPersistedKeys((prev) => {
48390
+ const seen = new Set(prev.map((x) => JSON.stringify(x)));
48391
+ const merged = [...prev];
48392
+ toPersist.forEach((p) => {
48393
+ const k = JSON.stringify(p);
48394
+ if (!seen.has(k)) {
48395
+ seen.add(k);
48396
+ merged.push(p);
48397
+ }
48398
+ });
48399
+ return merged;
48400
+ });
48401
+ }
48402
+ return materialized;
48403
+ });
48404
+ }).catch(() => {
48405
+ });
48406
+ }, 300);
48407
+ const onYamlChangeCallback = useCallback(
48408
+ (values) => {
48409
+ if (isAnyFieldFocusedRef.current) return;
48410
+ const payload = { values, properties };
48411
+ const myId = ++yamlToValuesReqId.current;
48412
+ debouncedPostYamlToValues(payload, myId);
48413
+ },
48414
+ [properties, debouncedPostYamlToValues]
48415
+ );
48416
+ useEffect(() => {
48417
+ const root = overflowRef.current;
48418
+ if (!root) return void 0;
48419
+ const onFocusIn = () => {
48420
+ isAnyFieldFocusedRef.current = true;
48421
+ };
48422
+ const onFocusOut = () => {
48423
+ const active = document.activeElement;
48424
+ if (!active || !root.contains(active)) {
48425
+ isAnyFieldFocusedRef.current = false;
48426
+ onValuesChangeCallback();
48427
+ }
48428
+ };
48429
+ root.addEventListener("focusin", onFocusIn);
48430
+ root.addEventListener("focusout", onFocusOut);
48431
+ return () => {
48432
+ root.removeEventListener("focusin", onFocusIn);
48433
+ root.removeEventListener("focusout", onFocusOut);
48434
+ };
48435
+ }, [onValuesChangeCallback]);
48667
48436
  useEffect(() => {
48668
48437
  const prev = prevInitialValues.current;
48669
48438
  if (!_$1.isEqual(prev, initialValues)) {
@@ -48676,7 +48445,7 @@ const BlackholeForm = ({
48676
48445
  }, [onValuesChangeCallback, initialValues]);
48677
48446
  useEffect(() => {
48678
48447
  onValuesChangeCallback();
48679
- }, [onValuesChangeCallback, persistedKeys]);
48448
+ }, [persistedKeys]);
48680
48449
  useEffect(() => {
48681
48450
  let allPaths = [];
48682
48451
  if (formsPrefills) {
@@ -48699,6 +48468,32 @@ const BlackholeForm = ({
48699
48468
  });
48700
48469
  setExpandedKeys([...uniqueKeys]);
48701
48470
  }, [apiGroupApiVersion, formsPrefills, prefillValuesSchema, type, typeName]);
48471
+ useEffect(() => {
48472
+ if (!initialValues) return;
48473
+ setProperties((prev) => {
48474
+ const { props: p2, toPersist } = materializeAdditionalFromValues(
48475
+ prev,
48476
+ initialValues,
48477
+ blockedPathsRef
48478
+ );
48479
+ if (_$1.isEqual(prev, p2)) return prev;
48480
+ if (toPersist.length) {
48481
+ setPersistedKeys((prevPk) => {
48482
+ const seen = new Set(prevPk.map((x) => JSON.stringify(x)));
48483
+ const merged = [...prevPk];
48484
+ toPersist.forEach((p) => {
48485
+ const k = JSON.stringify(p);
48486
+ if (!seen.has(k)) {
48487
+ seen.add(k);
48488
+ merged.push(p);
48489
+ }
48490
+ });
48491
+ return merged;
48492
+ });
48493
+ }
48494
+ return p2;
48495
+ });
48496
+ }, [initialValues]);
48702
48497
  if (!properties) {
48703
48498
  return null;
48704
48499
  }
@@ -48732,17 +48527,35 @@ const BlackholeForm = ({
48732
48527
  );
48733
48528
  const oldProperties = _$1.cloneDeep(properties);
48734
48529
  const newProperties = deepMerge(oldProperties, newObject);
48735
- console.log("oldProperties", oldProperties);
48736
- console.log("newObject", newObject);
48737
- console.log("newProperties", newProperties);
48738
48530
  setProperties(newProperties);
48531
+ const fullPath = [...arrPath, name];
48532
+ const currentValue = form.getFieldValue(fullPath);
48533
+ if (currentValue === void 0) {
48534
+ if (type2 === "string") {
48535
+ form.setFieldValue(fullPath, "");
48536
+ } else if (type2 === "number" || type2 === "integer") {
48537
+ form.setFieldValue(fullPath, 0);
48538
+ } else if (type2 === "array") {
48539
+ form.setFieldValue(fullPath, []);
48540
+ } else {
48541
+ form.setFieldValue(fullPath, {});
48542
+ }
48543
+ }
48544
+ setPersistedKeys((prev) => {
48545
+ const seen = new Set(prev.map((x) => JSON.stringify(x)));
48546
+ const k = JSON.stringify(fullPath);
48547
+ if (seen.has(k)) return prev;
48548
+ return [...prev, fullPath];
48549
+ });
48550
+ onValuesChangeCallback();
48739
48551
  };
48740
48552
  const removeField = ({ path }) => {
48741
48553
  const arrPath = Array.isArray(path) ? path : [path];
48742
- const pathWithProperties = arrPath.flatMap((el) => [el, "properties"]).slice(0, -1);
48743
48554
  const modifiedProperties = _$1.cloneDeep(properties);
48744
- _$1.unset(modifiedProperties, pathWithProperties);
48555
+ blockedPathsRef.current.add(pathKey$1(arrPath));
48556
+ form.setFieldValue(arrPath, void 0);
48745
48557
  setProperties(modifiedProperties);
48558
+ onValuesChangeCallback();
48746
48559
  };
48747
48560
  const onExpandOpen = (value) => {
48748
48561
  setExpandedKeys([...expandedKeys, value]);
@@ -48768,7 +48581,12 @@ const BlackholeForm = ({
48768
48581
  }
48769
48582
  }
48770
48583
  }
48771
- setPersistedKeys([...persistedKeys, value]);
48584
+ setPersistedKeys((prev) => {
48585
+ const keyStr = JSON.stringify(value);
48586
+ const alreadyExists = prev.some((p) => JSON.stringify(p) === keyStr);
48587
+ if (alreadyExists) return prev;
48588
+ return [...prev, value];
48589
+ });
48772
48590
  };
48773
48591
  const onPersistUnmark = (value) => {
48774
48592
  console.log(value);
@@ -48776,48 +48594,49 @@ const BlackholeForm = ({
48776
48594
  };
48777
48595
  return /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
48778
48596
  /* @__PURE__ */ jsxRuntimeExports.jsxs(Styled$d.Container, { $designNewLayout: designNewLayout, $designNewLayoutHeight: designNewLayoutHeight, children: [
48779
- /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$d.OverflowContainer, { ref: overflowRef, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
48780
- Form,
48597
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$d.OverflowContainer, { ref: overflowRef, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Form, { form, initialValues, onValuesChange: () => onValuesChangeCallback(), children: [
48598
+ /* @__PURE__ */ jsxRuntimeExports.jsx(DesignNewLayoutProvider, { value: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsx(OnValuesChangeCallbackProvider, { value: onValuesChangeCallback, children: /* @__PURE__ */ jsxRuntimeExports.jsx(IsTouchedPersistedProvider, { value: {}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(HiddenPathsProvider, { value: resolvedHiddenStringPaths, children: getObjectFormItemsDraft({
48599
+ properties,
48600
+ name: [],
48601
+ required,
48602
+ namespaceData,
48603
+ makeValueUndefined,
48604
+ addField,
48605
+ removeField,
48606
+ isEdit: !isCreate,
48607
+ expandedControls: { onExpandOpen, onExpandClose, expandedKeys },
48608
+ persistedControls: { onPersistMark, onPersistUnmark, persistedKeys },
48609
+ urlParams
48610
+ }) }) }) }) }),
48611
+ !designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
48612
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
48613
+ /* @__PURE__ */ jsxRuntimeExports.jsx(
48614
+ Alert,
48615
+ {
48616
+ type: "warning",
48617
+ message: "Only the data from the form will be sent. Empty fields will be removed recursively."
48618
+ }
48619
+ )
48620
+ ] }),
48621
+ isCreate && createPermission.data?.status.allowed === false && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
48622
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
48623
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "warning", message: "Insufficient rights to create" })
48624
+ ] }),
48625
+ !isCreate && updatePermission.data?.status.allowed === false && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
48626
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
48627
+ /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "warning", message: "Insufficient rights to edit" })
48628
+ ] })
48629
+ ] }) }),
48630
+ /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
48631
+ YamlEditor,
48781
48632
  {
48782
- form,
48783
- initialValues,
48784
- onValuesChange: (_2, allValues) => onValuesChangeCallback(allValues),
48785
- children: [
48786
- /* @__PURE__ */ jsxRuntimeExports.jsx(DesignNewLayoutProvider, { value: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsx(OnValuesChangeCallbackProvider, { value: onValuesChangeCallback, children: /* @__PURE__ */ jsxRuntimeExports.jsx(IsTouchedPersistedProvider, { value: {}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(HiddenPathsProvider, { value: hiddenPaths, children: getObjectFormItemsDraft({
48787
- properties,
48788
- name: [],
48789
- required,
48790
- namespaceData,
48791
- makeValueUndefined,
48792
- addField,
48793
- removeField,
48794
- isEdit: !isCreate,
48795
- expandedControls: { onExpandOpen, onExpandClose, expandedKeys },
48796
- persistedControls: { onPersistMark, onPersistUnmark, persistedKeys },
48797
- urlParams
48798
- }) }) }) }) }),
48799
- !designNewLayout && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
48800
- /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
48801
- /* @__PURE__ */ jsxRuntimeExports.jsx(
48802
- Alert,
48803
- {
48804
- type: "warning",
48805
- message: "Only the data from the form will be sent. Empty fields will be removed recursively."
48806
- }
48807
- )
48808
- ] }),
48809
- isCreate && createPermission.data?.status.allowed === false && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
48810
- /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
48811
- /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "warning", message: "Insufficient rights to create" })
48812
- ] }),
48813
- !isCreate && updatePermission.data?.status.allowed === false && /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
48814
- /* @__PURE__ */ jsxRuntimeExports.jsx(Spacer$1, { $space: 10, $samespace: true }),
48815
- /* @__PURE__ */ jsxRuntimeExports.jsx(Alert, { type: "warning", message: "Insufficient rights to edit" })
48816
- ] })
48817
- ]
48818
- }
48819
- ) }),
48820
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(YamlEditor, { theme: theme$1, currentValues: yamlValues || {}, onChange: onYamlChangeCallback }) })
48633
+ editorUri,
48634
+ theme: theme$1,
48635
+ currentValues: yamlValues || {},
48636
+ onChange: onYamlChangeCallback
48637
+ },
48638
+ editorUri
48639
+ ) })
48821
48640
  ] }),
48822
48641
  /* @__PURE__ */ jsxRuntimeExports.jsx(FlexGrow, {}),
48823
48642
  /* @__PURE__ */ jsxRuntimeExports.jsx(Styled$d.ControlsRowContainer, { $bgColor: token.colorPrimaryBg, $designNewLayout: designNewLayout, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Flex, { gap: designNewLayout ? 10 : 16, align: "center", children: [
@@ -48982,7 +48801,7 @@ const BlackholeFormDataProvider = ({
48982
48801
  );
48983
48802
  };
48984
48803
 
48985
- const CustomCard$5 = st$1(Card)`
48804
+ const CustomCard$5 = styled(Card)`
48986
48805
  display: flex;
48987
48806
  justify-content: center;
48988
48807
  align-items: center;
@@ -49240,7 +49059,7 @@ const getListPath = ({
49240
49059
  return `/api/clusters/${clusterName}/k8s/api/v1${namespace ? `/namespaces/${namespace}` : ""}/${typeName}`;
49241
49060
  };
49242
49061
 
49243
- const CustomCard$4 = st$1(Card)`
49062
+ const CustomCard$4 = styled(Card)`
49244
49063
  position: relative;
49245
49064
  width: 238px;
49246
49065
  overflow-x: auto;
@@ -49260,7 +49079,7 @@ const CustomCard$4 = st$1(Card)`
49260
49079
  padding: 8px;
49261
49080
  }
49262
49081
  `;
49263
- const ImageContainer = st$1.div`
49082
+ const ImageContainer = styled.div`
49264
49083
  min-width: 45px;
49265
49084
  min-height: 45px;
49266
49085
  padding: 6px;
@@ -49270,12 +49089,12 @@ const ImageContainer = st$1.div`
49270
49089
  height: 45px;
49271
49090
  }
49272
49091
  `;
49273
- const OverflowContainer = st$1.div`
49092
+ const OverflowContainer = styled.div`
49274
49093
  overflow-x: auto;
49275
49094
  scrollbar-width: thin;
49276
49095
  margin-bottom: 20px;
49277
49096
  `;
49278
- const TitleContainer = st$1.div`
49097
+ const TitleContainer = styled.div`
49279
49098
  padding-left: 6px;
49280
49099
  padding-right: 6px;
49281
49100
  font-size: 16px;
@@ -49285,7 +49104,7 @@ const TitleContainer = st$1.div`
49285
49104
  font-weight: 700;
49286
49105
  }
49287
49106
  `;
49288
- const TagsContainer = st$1.div`
49107
+ const TagsContainer = styled.div`
49289
49108
  margin-top: 6px;
49290
49109
  margin-bottom: 6px;
49291
49110
  padding-left: 6px;
@@ -49294,7 +49113,7 @@ const TagsContainer = st$1.div`
49294
49113
  flex-flow: row wrap;
49295
49114
  align-items: flex-start;
49296
49115
  `;
49297
- const CustomTag$1 = st$1(Tag)`
49116
+ const CustomTag$1 = styled(Tag)`
49298
49117
  margin-right: 4px;
49299
49118
  margin-bottom: 4px;
49300
49119
 
@@ -49302,11 +49121,11 @@ const CustomTag$1 = st$1(Tag)`
49302
49121
  margin-right: 0;
49303
49122
  }
49304
49123
  `;
49305
- const DescriptionContainer = st$1.div`
49124
+ const DescriptionContainer = styled.div`
49306
49125
  padding-left: 6px;
49307
49126
  padding-right: 6px;
49308
49127
  `;
49309
- const EditButtonContainer = st$1.div`
49128
+ const EditButtonContainer = styled.div`
49310
49129
  position: absolute;
49311
49130
  bottom: 6px;
49312
49131
  right: 6px;
@@ -49473,7 +49292,7 @@ const SearchTextInput = ({ uniqueTags, selectedTags, onSelectedTags }) => {
49473
49292
  );
49474
49293
  };
49475
49294
 
49476
- const BigValue = st$1.div`
49295
+ const BigValue = styled.div`
49477
49296
  font-size: 36px;
49478
49297
  line-height: 36px;
49479
49298
  font-weight: 700;
@@ -49785,11 +49604,11 @@ const DropdownAccessGroups = ({ accessGroups }) => {
49785
49604
  ) });
49786
49605
  };
49787
49606
 
49788
- const ActionMenuPlaceholder = st$1.div`
49607
+ const ActionMenuPlaceholder = styled.div`
49789
49608
  width: 45.33px;
49790
49609
  height: 1px;
49791
49610
  `;
49792
- st$1.div`
49611
+ styled.div`
49793
49612
  font-size: 36px;
49794
49613
  line-height: 36px;
49795
49614
  font-weight: 700;
@@ -49953,7 +49772,7 @@ var addonFit = {exports: {}};
49953
49772
 
49954
49773
  var addonFitExports = addonFit.exports;
49955
49774
 
49956
- const CustomCard$3 = st$1.div`
49775
+ const CustomCard$3 = styled.div`
49957
49776
  visibility: ${({ $isVisible }) => $isVisible ? "visible" : "hidden"};
49958
49777
  height: calc(100vh - ${({ $substractHeight }) => $substractHeight}px);
49959
49778
 
@@ -49961,7 +49780,7 @@ const CustomCard$3 = st$1.div`
49961
49780
  scrollbar-width: thin;
49962
49781
  }
49963
49782
  `;
49964
- const FullWidthDiv$3 = st$1.div`
49783
+ const FullWidthDiv$3 = styled.div`
49965
49784
  display: flex;
49966
49785
  justify-content: center;
49967
49786
  width: 100%;
@@ -50058,7 +49877,7 @@ const XTerminal$2 = ({ endpoint, namespace, podName, container, substractHeight
50058
49877
  ] });
50059
49878
  };
50060
49879
 
50061
- const CustomSelect$3 = st$1.div`
49880
+ const CustomSelect$3 = styled.div`
50062
49881
  .ant-select {
50063
49882
  width: 200px;
50064
49883
  }
@@ -50103,7 +49922,7 @@ const PodTerminal = ({ cluster, namespace, podName, containers, substractHeight
50103
49922
  ] });
50104
49923
  };
50105
49924
 
50106
- const CustomCard$2 = st$1.div`
49925
+ const CustomCard$2 = styled.div`
50107
49926
  visibility: ${({ $isVisible }) => $isVisible ? "visible" : "hidden"};
50108
49927
  height: calc(100vh - ${({ $substractHeight }) => $substractHeight}px);
50109
49928
 
@@ -50111,13 +49930,13 @@ const CustomCard$2 = st$1.div`
50111
49930
  scrollbar-width: thin;
50112
49931
  }
50113
49932
  `;
50114
- const FullWidthDiv$2 = st$1.div`
49933
+ const FullWidthDiv$2 = styled.div`
50115
49934
  display: flex;
50116
49935
  justify-content: center;
50117
49936
  width: 100%;
50118
49937
  height: calc(100vh - ${({ $substractHeight }) => $substractHeight}px);
50119
49938
  `;
50120
- const ProgressContainer = st$1.div`
49939
+ const ProgressContainer = styled.div`
50121
49940
  margin-top: calc(${({ $substractHeight }) => $substractHeight}px - 100vh);
50122
49941
  height: calc(100vh - ${({ $substractHeight }) => $substractHeight}px);
50123
49942
  display: flex;
@@ -50275,7 +50094,7 @@ const XTerminal$1 = ({ endpoint, nodeName, profile, substractHeight }) => {
50275
50094
  ] });
50276
50095
  };
50277
50096
 
50278
- const CustomSelect$2 = st$1.div`
50097
+ const CustomSelect$2 = styled.div`
50279
50098
  .ant-select {
50280
50099
  width: 200px;
50281
50100
  }
@@ -50314,7 +50133,7 @@ const NodeTerminal = ({ cluster, nodeName, substractHeight, defaultProfile }) =>
50314
50133
  ] });
50315
50134
  };
50316
50135
 
50317
- const CustomCard$1 = st$1.div`
50136
+ const CustomCard$1 = styled.div`
50318
50137
  visibility: ${({ $isVisible }) => $isVisible ? "visible" : "hidden"};
50319
50138
  height: calc(100vh - ${({ $substractHeight }) => $substractHeight}px);
50320
50139
 
@@ -50322,7 +50141,7 @@ const CustomCard$1 = st$1.div`
50322
50141
  scrollbar-width: thin;
50323
50142
  }
50324
50143
  `;
50325
- const FullWidthDiv$1 = st$1.div`
50144
+ const FullWidthDiv$1 = styled.div`
50326
50145
  display: flex;
50327
50146
  justify-content: center;
50328
50147
  width: 100%;
@@ -50415,7 +50234,7 @@ const XTerminal = ({ endpoint, namespace, podName, container, substractHeight })
50415
50234
  ] });
50416
50235
  };
50417
50236
 
50418
- const CustomSelect$1 = st$1.div`
50237
+ const CustomSelect$1 = styled.div`
50419
50238
  .ant-select {
50420
50239
  width: 200px;
50421
50240
  }
@@ -50460,12 +50279,12 @@ const PodLogs = ({ cluster, namespace, podName, containers, substractHeight }) =
50460
50279
  ] });
50461
50280
  };
50462
50281
 
50463
- const FullWidthDiv = st$1.div`
50282
+ const FullWidthDiv = styled.div`
50464
50283
  display: flex;
50465
50284
  justify-content: center;
50466
50285
  width: 100%;
50467
50286
  `;
50468
- const CustomCard = st$1.div`
50287
+ const CustomCard = styled.div`
50469
50288
  visibility: ${({ $isVisible }) => $isVisible ? "visible" : "hidden"};
50470
50289
  max-height: calc(100vh - 158px);
50471
50290
 
@@ -50473,11 +50292,11 @@ const CustomCard = st$1.div`
50473
50292
  scrollbar-width: thin;
50474
50293
  }
50475
50294
  `;
50476
- const VisibilityContainer = st$1.div`
50295
+ const VisibilityContainer = styled.div`
50477
50296
  visibility: ${({ $isVisible }) => $isVisible ? "visible" : "hidden"};
50478
50297
  margin-top: -51px;
50479
50298
  `;
50480
- const CursorPointerDiv = st$1.div`
50299
+ const CursorPointerDiv = styled.div`
50481
50300
  cursor: pointer;
50482
50301
  user-select: none;
50483
50302
  `;
@@ -50607,13 +50426,13 @@ const MonacoEditor = ({
50607
50426
  ] });
50608
50427
  };
50609
50428
 
50610
- const TopRowContent = st$1.div`
50429
+ const TopRowContent = styled.div`
50611
50430
  height: 35px;
50612
50431
  margin-left: 202px;
50613
50432
  display: flex;
50614
50433
  align-items: center;
50615
50434
  `;
50616
- const CustomSelect = st$1.div`
50435
+ const CustomSelect = styled.div`
50617
50436
  .ant-select {
50618
50437
  width: 200px;
50619
50438
  }
@@ -50724,7 +50543,7 @@ const kindByGvr = (entries) => (gvr) => {
50724
50543
  return uniq.length === 1 ? uniq[0] : void 0;
50725
50544
  };
50726
50545
 
50727
- const SelectTag = st$1(Tag)`
50546
+ const SelectTag = styled(Tag)`
50728
50547
  margin-inline-end: 4px;
50729
50548
  padding: 4px 6px;
50730
50549
  display: inline-flex;
@@ -50732,14 +50551,14 @@ const SelectTag = st$1(Tag)`
50732
50551
  white-space: normal;
50733
50552
  line-height: 1.1;
50734
50553
  `;
50735
- const SelectTagSpan = st$1.span`
50554
+ const SelectTagSpan = styled.span`
50736
50555
  display: inline-flex;
50737
50556
  flex-direction: column;
50738
50557
  `;
50739
- const MaxTagPlacheolder = st$1.div`
50558
+ const MaxTagPlacheolder = styled.div`
50740
50559
  padding-left: 16px;
50741
50560
  `;
50742
- const MaxTagPlacheolderLength = st$1.span`
50561
+ const MaxTagPlacheolderLength = styled.span`
50743
50562
  min-height: 20px;
50744
50563
  padding-right: 4px;
50745
50564
  padding-left: 4px;
@@ -50747,19 +50566,19 @@ const MaxTagPlacheolderLength = st$1.span`
50747
50566
  border-radius: 20px;
50748
50567
  margin-right: 8px;
50749
50568
  `;
50750
- const OptionLabelKind = st$1.div`
50569
+ const OptionLabelKind = styled.div`
50751
50570
  font-size: 14px;
50752
50571
  font-style: normal;
50753
50572
  font-weight: 400;
50754
50573
  line-height: 22px;
50755
50574
  `;
50756
- const OptionLabelVersion = st$1.div`
50575
+ const OptionLabelVersion = styled.div`
50757
50576
  font-size: 10px;
50758
50577
  font-style: italic;
50759
50578
  font-weight: 400;
50760
50579
  line-height: 14px; /* 140% */
50761
50580
  `;
50762
- const BackgroundContainer = st$1.div`
50581
+ const BackgroundContainer = styled.div`
50763
50582
  width: 100%;
50764
50583
  gap: 8px;
50765
50584
  border: 1px solid
@@ -50768,36 +50587,36 @@ const BackgroundContainer = st$1.div`
50768
50587
  background: ${({ $visibleBackground, $colorBgLayout }) => $visibleBackground && $colorBgLayout ? $colorBgLayout : "initial"};
50769
50588
  padding: 8px;
50770
50589
  `;
50771
- const FormContainer = st$1.div`
50590
+ const FormContainer = styled.div`
50772
50591
  display: grid;
50773
50592
 
50774
50593
  /* grid-template-columns: 3fr 9fr; */
50775
50594
  grid-template-columns: 3fr 130px 9fr;
50776
50595
  gap: 8px;
50777
50596
  `;
50778
- const ResetedFormItem = st$1(Form.Item)`
50597
+ const ResetedFormItem = styled(Form.Item)`
50779
50598
  margin-bottom: 0;
50780
50599
  `;
50781
- const HideableContainer = st$1.div`
50600
+ const HideableContainer = styled.div`
50782
50601
  display: ${({ $isHidden }) => $isHidden ? "none" : "initial"};
50783
50602
  `;
50784
- const BottomTagsContainer = st$1.div`
50603
+ const BottomTagsContainer = styled.div`
50785
50604
  display: grid;
50786
50605
  grid-template-columns: 1fr 50px;
50787
50606
  gap: 8px;
50788
50607
  margin-top: 8px;
50789
50608
  `;
50790
- const OptionsFlex = st$1.div`
50609
+ const OptionsFlex = styled.div`
50791
50610
  display: flex;
50792
50611
  flex-flow: column;
50793
50612
  gap: 8px;
50794
50613
  `;
50795
- const BottomTagsRow = st$1.div`
50614
+ const BottomTagsRow = styled.div`
50796
50615
  display: grid;
50797
50616
  grid-template-columns: 45px 1fr;
50798
50617
  gap: 4px;
50799
50618
  `;
50800
- const BottomTagsRowText = st$1.div`
50619
+ const BottomTagsRowText = styled.div`
50801
50620
  color: ${({ $colorDescription }) => $colorDescription};
50802
50621
  font-size: 12px;
50803
50622
  font-style: italic;
@@ -50809,18 +50628,18 @@ const BottomTagsRowText = st$1.div`
50809
50628
  height: 100%;
50810
50629
  padding-top: 5px;
50811
50630
  `;
50812
- const BottomTagsHolder = st$1.div`
50631
+ const BottomTagsHolder = styled.div`
50813
50632
  display: flex;
50814
50633
  gap: 4px;
50815
50634
  flex-wrap: wrap;
50816
50635
  `;
50817
- const CustomTag = st$1(Tag)`
50636
+ const CustomTag = styled(Tag)`
50818
50637
  font-size: 14px;
50819
50638
  height: 22px;
50820
50639
  /* stylelint-disable declaration-no-important */
50821
50640
  margin-inline-end: 0 !important;
50822
50641
  `;
50823
- const Abbr = st$1.span`
50642
+ const Abbr = styled.span`
50824
50643
  background-color: ${({ $bgColor }) => $bgColor};
50825
50644
  border-radius: 13px;
50826
50645
  padding: 1px 5px;
@@ -50828,7 +50647,7 @@ const Abbr = st$1.span`
50828
50647
  height: min-content;
50829
50648
  margin-right: 4px;
50830
50649
  `;
50831
- const ClearButtonHolder = st$1.div`
50650
+ const ClearButtonHolder = styled.div`
50832
50651
  display: flex;
50833
50652
  justify-content: flex-end;
50834
50653
  `;