@cloudtower/eagle 0.26.23 → 0.26.24

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.
package/dist/umd/index.js CHANGED
@@ -261,30 +261,30 @@
261
261
  }
262
262
  }
263
263
 
264
- var __defProp$T = Object.defineProperty;
265
- var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
266
- var __hasOwnProp$U = Object.prototype.hasOwnProperty;
267
- var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
268
- var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
269
- var __spreadValues$T = (a, b) => {
264
+ var __defProp$U = Object.defineProperty;
265
+ var __getOwnPropSymbols$V = Object.getOwnPropertySymbols;
266
+ var __hasOwnProp$V = Object.prototype.hasOwnProperty;
267
+ var __propIsEnum$V = Object.prototype.propertyIsEnumerable;
268
+ var __defNormalProp$U = (obj, key, value) => key in obj ? __defProp$U(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
269
+ var __spreadValues$U = (a, b) => {
270
270
  for (var prop in b || (b = {}))
271
- if (__hasOwnProp$U.call(b, prop))
272
- __defNormalProp$T(a, prop, b[prop]);
273
- if (__getOwnPropSymbols$U)
274
- for (var prop of __getOwnPropSymbols$U(b)) {
275
- if (__propIsEnum$U.call(b, prop))
276
- __defNormalProp$T(a, prop, b[prop]);
271
+ if (__hasOwnProp$V.call(b, prop))
272
+ __defNormalProp$U(a, prop, b[prop]);
273
+ if (__getOwnPropSymbols$V)
274
+ for (var prop of __getOwnPropSymbols$V(b)) {
275
+ if (__propIsEnum$V.call(b, prop))
276
+ __defNormalProp$U(a, prop, b[prop]);
277
277
  }
278
278
  return a;
279
279
  };
280
- var __objRest$x = (source, exclude) => {
280
+ var __objRest$y = (source, exclude) => {
281
281
  var target = {};
282
282
  for (var prop in source)
283
- if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0)
283
+ if (__hasOwnProp$V.call(source, prop) && exclude.indexOf(prop) < 0)
284
284
  target[prop] = source[prop];
285
- if (source != null && __getOwnPropSymbols$U)
286
- for (var prop of __getOwnPropSymbols$U(source)) {
287
- if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop))
285
+ if (source != null && __getOwnPropSymbols$V)
286
+ for (var prop of __getOwnPropSymbols$V(source)) {
287
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$V.call(source, prop))
288
288
  target[prop] = source[prop];
289
289
  }
290
290
  return target;
@@ -302,7 +302,7 @@
302
302
  prefixNode,
303
303
  suffixIconSrc: SuffixSrc,
304
304
  src: Src
305
- } = _a, HTMLSpanElementProps = __objRest$x(_a, [
305
+ } = _a, HTMLSpanElementProps = __objRest$y(_a, [
306
306
  "alt",
307
307
  "className",
308
308
  "width",
@@ -316,10 +316,10 @@
316
316
  ]);
317
317
  return /* @__PURE__ */ React__namespace.default.createElement(
318
318
  "span",
319
- __spreadValues$T({
319
+ __spreadValues$U({
320
320
  ref,
321
321
  className,
322
- style: ___default.default.pickBy(__spreadValues$T({ cursor }, style))
322
+ style: ___default.default.pickBy(__spreadValues$U({ cursor }, style))
323
323
  }, HTMLSpanElementProps),
324
324
  prefixNode,
325
325
  /* @__PURE__ */ React__namespace.default.createElement("span", { className: "icon-inner" }, typeof Src === "string" ? /* @__PURE__ */ React__namespace.default.createElement("img", { alt, src: Src, width, height }) : /* @__PURE__ */ React__namespace.default.createElement(reactSvgUniqueId.SVGUniqueID, null, Src({ width, height }))),
@@ -329,31 +329,31 @@
329
329
  }
330
330
  );
331
331
 
332
- var __defProp$S = Object.defineProperty;
332
+ var __defProp$T = Object.defineProperty;
333
333
  var __defProps$C = Object.defineProperties;
334
334
  var __getOwnPropDescs$C = Object.getOwnPropertyDescriptors;
335
- var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
336
- var __hasOwnProp$T = Object.prototype.hasOwnProperty;
337
- var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
338
- var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, {
335
+ var __getOwnPropSymbols$U = Object.getOwnPropertySymbols;
336
+ var __hasOwnProp$U = Object.prototype.hasOwnProperty;
337
+ var __propIsEnum$U = Object.prototype.propertyIsEnumerable;
338
+ var __defNormalProp$T = (obj, key, value) => key in obj ? __defProp$T(obj, key, {
339
339
  enumerable: true,
340
340
  configurable: true,
341
341
  writable: true,
342
342
  value
343
343
  }) : obj[key] = value;
344
- var __spreadValues$S = (a, b) => {
345
- for (var prop in b || (b = {})) if (__hasOwnProp$T.call(b, prop)) __defNormalProp$S(a, prop, b[prop]);
346
- if (__getOwnPropSymbols$T) for (var prop of __getOwnPropSymbols$T(b)) {
347
- if (__propIsEnum$T.call(b, prop)) __defNormalProp$S(a, prop, b[prop]);
344
+ var __spreadValues$T = (a, b) => {
345
+ for (var prop in b || (b = {})) if (__hasOwnProp$U.call(b, prop)) __defNormalProp$T(a, prop, b[prop]);
346
+ if (__getOwnPropSymbols$U) for (var prop of __getOwnPropSymbols$U(b)) {
347
+ if (__propIsEnum$U.call(b, prop)) __defNormalProp$T(a, prop, b[prop]);
348
348
  }
349
349
  return a;
350
350
  };
351
351
  var __spreadProps$C = (a, b) => __defProps$C(a, __getOwnPropDescs$C(b));
352
- var __objRest$w = (source, exclude) => {
352
+ var __objRest$x = (source, exclude) => {
353
353
  var target = {};
354
- for (var prop in source) if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
355
- if (source != null && __getOwnPropSymbols$T) for (var prop of __getOwnPropSymbols$T(source)) {
356
- if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop)) target[prop] = source[prop];
354
+ for (var prop in source) if (__hasOwnProp$U.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
355
+ if (source != null && __getOwnPropSymbols$U) for (var prop of __getOwnPropSymbols$U(source)) {
356
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$U.call(source, prop)) target[prop] = source[prop];
357
357
  }
358
358
  return target;
359
359
  };
@@ -377,7 +377,7 @@
377
377
  prefix,
378
378
  suffix
379
379
  } = _a,
380
- restProps = __objRest$w(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
380
+ restProps = __objRest$x(_a, ["src", "hoverSrc", "active", "activeSrc", "onMouseEnter", "onMouseLeave", "onMouseMove", "className", "iconWidth", "iconHeight", "cursor", "style", "isRotate", "prefix", "suffix"]);
381
381
  const [hover, setHover] = React.useState(false);
382
382
  const _src = React.useMemo(() => {
383
383
  if (active && activeSrc) {
@@ -405,14 +405,14 @@
405
405
  }
406
406
  return src2;
407
407
  }, [active, hover, suffix]);
408
- return /* @__PURE__ */React__namespace.default.createElement(BaseIcon, __spreadProps$C(__spreadValues$S({
408
+ return /* @__PURE__ */React__namespace.default.createElement(BaseIcon, __spreadProps$C(__spreadValues$T({
409
409
  src: _src,
410
410
  className: cs__default.default(IconWrapper, "icon-wrapper", className, isRotate && "is-rotate"),
411
411
  suffixIconSrc,
412
412
  height: iconHeight,
413
413
  width: iconWidth,
414
414
  prefixNode: prefix,
415
- style: ___default.default.pickBy(__spreadValues$S({
415
+ style: ___default.default.pickBy(__spreadValues$T({
416
416
  cursor
417
417
  }, style))
418
418
  }, restProps), {
@@ -437,31 +437,31 @@
437
437
  }));
438
438
  });
439
439
 
440
- var __defProp$R = Object.defineProperty;
440
+ var __defProp$S = Object.defineProperty;
441
441
  var __defProps$B = Object.defineProperties;
442
442
  var __getOwnPropDescs$B = Object.getOwnPropertyDescriptors;
443
- var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
444
- var __hasOwnProp$S = Object.prototype.hasOwnProperty;
445
- var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
446
- var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, {
443
+ var __getOwnPropSymbols$T = Object.getOwnPropertySymbols;
444
+ var __hasOwnProp$T = Object.prototype.hasOwnProperty;
445
+ var __propIsEnum$T = Object.prototype.propertyIsEnumerable;
446
+ var __defNormalProp$S = (obj, key, value) => key in obj ? __defProp$S(obj, key, {
447
447
  enumerable: true,
448
448
  configurable: true,
449
449
  writable: true,
450
450
  value
451
451
  }) : obj[key] = value;
452
- var __spreadValues$R = (a, b) => {
453
- for (var prop in b || (b = {})) if (__hasOwnProp$S.call(b, prop)) __defNormalProp$R(a, prop, b[prop]);
454
- if (__getOwnPropSymbols$S) for (var prop of __getOwnPropSymbols$S(b)) {
455
- if (__propIsEnum$S.call(b, prop)) __defNormalProp$R(a, prop, b[prop]);
452
+ var __spreadValues$S = (a, b) => {
453
+ for (var prop in b || (b = {})) if (__hasOwnProp$T.call(b, prop)) __defNormalProp$S(a, prop, b[prop]);
454
+ if (__getOwnPropSymbols$T) for (var prop of __getOwnPropSymbols$T(b)) {
455
+ if (__propIsEnum$T.call(b, prop)) __defNormalProp$S(a, prop, b[prop]);
456
456
  }
457
457
  return a;
458
458
  };
459
459
  var __spreadProps$B = (a, b) => __defProps$B(a, __getOwnPropDescs$B(b));
460
- var __objRest$v = (source, exclude) => {
460
+ var __objRest$w = (source, exclude) => {
461
461
  var target = {};
462
- for (var prop in source) if (__hasOwnProp$S.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
463
- if (source != null && __getOwnPropSymbols$S) for (var prop of __getOwnPropSymbols$S(source)) {
464
- if (exclude.indexOf(prop) < 0 && __propIsEnum$S.call(source, prop)) target[prop] = source[prop];
462
+ for (var prop in source) if (__hasOwnProp$T.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
463
+ if (source != null && __getOwnPropSymbols$T) for (var prop of __getOwnPropSymbols$T(source)) {
464
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$T.call(source, prop)) target[prop] = source[prop];
465
465
  }
466
466
  return target;
467
467
  };
@@ -479,13 +479,13 @@
479
479
  action,
480
480
  message
481
481
  } = _b,
482
- props = __objRest$v(_b, ["type", "icon", "showIcon", "className", "onClose", "closeText", "action", "message"]);
482
+ props = __objRest$w(_b, ["type", "icon", "showIcon", "className", "onClose", "closeText", "action", "message"]);
483
483
  const _icon = /* @__PURE__ */React__namespace.default.createElement(Icon, {
484
484
  alt: type,
485
485
  src: getAlertIcon(type)
486
486
  });
487
487
  const _type = type === "normal" ? "info" : type;
488
- return /* @__PURE__ */React__namespace.default.createElement(antd.Alert, __spreadProps$B(__spreadValues$R({}, props), {
488
+ return /* @__PURE__ */React__namespace.default.createElement(antd.Alert, __spreadProps$B(__spreadValues$S({}, props), {
489
489
  className: cs__default.default(AlertStyle, type ? `alert-${type}` : "", className, {
490
490
  action
491
491
  }),
@@ -523,42 +523,42 @@
523
523
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, text);
524
524
  };
525
525
 
526
- var __defProp$Q = Object.defineProperty;
526
+ var __defProp$R = Object.defineProperty;
527
527
  var __defProps$A = Object.defineProperties;
528
528
  var __getOwnPropDescs$A = Object.getOwnPropertyDescriptors;
529
- var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
530
- var __hasOwnProp$R = Object.prototype.hasOwnProperty;
531
- var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
532
- var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
533
- var __spreadValues$Q = (a, b) => {
529
+ var __getOwnPropSymbols$S = Object.getOwnPropertySymbols;
530
+ var __hasOwnProp$S = Object.prototype.hasOwnProperty;
531
+ var __propIsEnum$S = Object.prototype.propertyIsEnumerable;
532
+ var __defNormalProp$R = (obj, key, value) => key in obj ? __defProp$R(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
533
+ var __spreadValues$R = (a, b) => {
534
534
  for (var prop in b || (b = {}))
535
- if (__hasOwnProp$R.call(b, prop))
536
- __defNormalProp$Q(a, prop, b[prop]);
537
- if (__getOwnPropSymbols$R)
538
- for (var prop of __getOwnPropSymbols$R(b)) {
539
- if (__propIsEnum$R.call(b, prop))
540
- __defNormalProp$Q(a, prop, b[prop]);
535
+ if (__hasOwnProp$S.call(b, prop))
536
+ __defNormalProp$R(a, prop, b[prop]);
537
+ if (__getOwnPropSymbols$S)
538
+ for (var prop of __getOwnPropSymbols$S(b)) {
539
+ if (__propIsEnum$S.call(b, prop))
540
+ __defNormalProp$R(a, prop, b[prop]);
541
541
  }
542
542
  return a;
543
543
  };
544
544
  var __spreadProps$A = (a, b) => __defProps$A(a, __getOwnPropDescs$A(b));
545
- var __objRest$u = (source, exclude) => {
545
+ var __objRest$v = (source, exclude) => {
546
546
  var target = {};
547
547
  for (var prop in source)
548
- if (__hasOwnProp$R.call(source, prop) && exclude.indexOf(prop) < 0)
548
+ if (__hasOwnProp$S.call(source, prop) && exclude.indexOf(prop) < 0)
549
549
  target[prop] = source[prop];
550
- if (source != null && __getOwnPropSymbols$R)
551
- for (var prop of __getOwnPropSymbols$R(source)) {
552
- if (exclude.indexOf(prop) < 0 && __propIsEnum$R.call(source, prop))
550
+ if (source != null && __getOwnPropSymbols$S)
551
+ for (var prop of __getOwnPropSymbols$S(source)) {
552
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$S.call(source, prop))
553
553
  target[prop] = source[prop];
554
554
  }
555
555
  return target;
556
556
  };
557
557
  const Badge = (_a) => {
558
- var _b = _a, { type = "error", className } = _b, props = __objRest$u(_b, ["type", "className"]);
558
+ var _b = _a, { type = "error", className } = _b, props = __objRest$v(_b, ["type", "className"]);
559
559
  return /* @__PURE__ */ React__namespace.default.createElement(
560
560
  antd.Badge,
561
- __spreadProps$A(__spreadValues$Q({
561
+ __spreadProps$A(__spreadValues$R({
562
562
  className: core.cx(`badge-${type}`, className)
563
563
  }, props), {
564
564
  showZero: false
@@ -578,6 +578,36 @@
578
578
  return /* @__PURE__ */ React__namespace.default.createElement("span", { className, style }, "-");
579
579
  };
580
580
 
581
+ var __defProp$Q = Object.defineProperty;
582
+ var __getOwnPropSymbols$R = Object.getOwnPropertySymbols;
583
+ var __hasOwnProp$R = Object.prototype.hasOwnProperty;
584
+ var __propIsEnum$R = Object.prototype.propertyIsEnumerable;
585
+ var __defNormalProp$Q = (obj, key, value) => key in obj ? __defProp$Q(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
586
+ var __spreadValues$Q = (a, b) => {
587
+ for (var prop in b || (b = {}))
588
+ if (__hasOwnProp$R.call(b, prop))
589
+ __defNormalProp$Q(a, prop, b[prop]);
590
+ if (__getOwnPropSymbols$R)
591
+ for (var prop of __getOwnPropSymbols$R(b)) {
592
+ if (__propIsEnum$R.call(b, prop))
593
+ __defNormalProp$Q(a, prop, b[prop]);
594
+ }
595
+ return a;
596
+ };
597
+ const Bit = ({
598
+ rawValue,
599
+ decimals,
600
+ unitClassName,
601
+ valueClassName,
602
+ emptyProps
603
+ }) => {
604
+ if (isEmpty(rawValue)) {
605
+ return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$Q({}, emptyProps));
606
+ }
607
+ const { value, unit } = formatBits(rawValue, decimals);
608
+ return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
609
+ };
610
+
581
611
  var __defProp$P = Object.defineProperty;
582
612
  var __getOwnPropSymbols$Q = Object.getOwnPropertySymbols;
583
613
  var __hasOwnProp$Q = Object.prototype.hasOwnProperty;
@@ -594,17 +624,17 @@
594
624
  }
595
625
  return a;
596
626
  };
597
- const Bit = ({
627
+ const BitPerSeconds = ({
598
628
  rawValue,
599
629
  decimals,
600
- unitClassName,
601
630
  valueClassName,
631
+ unitClassName,
602
632
  emptyProps
603
633
  }) => {
604
634
  if (isEmpty(rawValue)) {
605
635
  return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$P({}, emptyProps));
606
636
  }
607
- const { value, unit } = formatBits(rawValue, decimals);
637
+ const { value, unit } = formatBitPerSecond(rawValue, decimals);
608
638
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
609
639
  };
610
640
 
@@ -624,36 +654,6 @@
624
654
  }
625
655
  return a;
626
656
  };
627
- const BitPerSeconds = ({
628
- rawValue,
629
- decimals,
630
- valueClassName,
631
- unitClassName,
632
- emptyProps
633
- }) => {
634
- if (isEmpty(rawValue)) {
635
- return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$O({}, emptyProps));
636
- }
637
- const { value, unit } = formatBitPerSecond(rawValue, decimals);
638
- return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
639
- };
640
-
641
- var __defProp$N = Object.defineProperty;
642
- var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
643
- var __hasOwnProp$O = Object.prototype.hasOwnProperty;
644
- var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
645
- var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
646
- var __spreadValues$N = (a, b) => {
647
- for (var prop in b || (b = {}))
648
- if (__hasOwnProp$O.call(b, prop))
649
- __defNormalProp$N(a, prop, b[prop]);
650
- if (__getOwnPropSymbols$O)
651
- for (var prop of __getOwnPropSymbols$O(b)) {
652
- if (__propIsEnum$O.call(b, prop))
653
- __defNormalProp$N(a, prop, b[prop]);
654
- }
655
- return a;
656
- };
657
657
  const Bps = ({
658
658
  rawValue,
659
659
  decimals,
@@ -662,7 +662,7 @@
662
662
  emptyProps
663
663
  }) => {
664
664
  if (isEmpty(rawValue)) {
665
- return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$N({}, emptyProps));
665
+ return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$O({}, emptyProps));
666
666
  }
667
667
  const { value, unit } = formatBps(rawValue, decimals);
668
668
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
@@ -803,28 +803,28 @@
803
803
  return icon != null ? React__namespace.default.cloneElement(icon, { className }) : null;
804
804
  };
805
805
 
806
- var __defProp$M = Object.defineProperty;
807
- var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
808
- var __hasOwnProp$N = Object.prototype.hasOwnProperty;
809
- var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
810
- var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, {
806
+ var __defProp$N = Object.defineProperty;
807
+ var __getOwnPropSymbols$O = Object.getOwnPropertySymbols;
808
+ var __hasOwnProp$O = Object.prototype.hasOwnProperty;
809
+ var __propIsEnum$O = Object.prototype.propertyIsEnumerable;
810
+ var __defNormalProp$N = (obj, key, value) => key in obj ? __defProp$N(obj, key, {
811
811
  enumerable: true,
812
812
  configurable: true,
813
813
  writable: true,
814
814
  value
815
815
  }) : obj[key] = value;
816
- var __spreadValues$M = (a, b) => {
817
- for (var prop in b || (b = {})) if (__hasOwnProp$N.call(b, prop)) __defNormalProp$M(a, prop, b[prop]);
818
- if (__getOwnPropSymbols$N) for (var prop of __getOwnPropSymbols$N(b)) {
819
- if (__propIsEnum$N.call(b, prop)) __defNormalProp$M(a, prop, b[prop]);
816
+ var __spreadValues$N = (a, b) => {
817
+ for (var prop in b || (b = {})) if (__hasOwnProp$O.call(b, prop)) __defNormalProp$N(a, prop, b[prop]);
818
+ if (__getOwnPropSymbols$O) for (var prop of __getOwnPropSymbols$O(b)) {
819
+ if (__propIsEnum$O.call(b, prop)) __defNormalProp$N(a, prop, b[prop]);
820
820
  }
821
821
  return a;
822
822
  };
823
- var __objRest$t = (source, exclude) => {
823
+ var __objRest$u = (source, exclude) => {
824
824
  var target = {};
825
- for (var prop in source) if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
826
- if (source != null && __getOwnPropSymbols$N) for (var prop of __getOwnPropSymbols$N(source)) {
827
- if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop)) target[prop] = source[prop];
825
+ for (var prop in source) if (__hasOwnProp$O.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
826
+ if (source != null && __getOwnPropSymbols$O) for (var prop of __getOwnPropSymbols$O(source)) {
827
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$O.call(source, prop)) target[prop] = source[prop];
828
828
  }
829
829
  return target;
830
830
  };
@@ -847,12 +847,12 @@
847
847
  onMouseLeave,
848
848
  size = "middle"
849
849
  } = _a,
850
- restProps = __objRest$t(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
850
+ restProps = __objRest$u(_a, ["type", "className", "children", "prefixIcon", "hoverPrefixIcon", "suffixIcon", "hoverSuffixIcon", "onMouseEnter", "onMouseLeave", "size"]);
851
851
  const [status, setStatus] = React.useState("normal");
852
852
  const hasIcon = prefixIcon || suffixIcon;
853
853
  const hasHoverIcon = hoverPrefixIcon || hoverSuffixIcon;
854
854
  const onlyIcon = !children && (prefixIcon || suffixIcon);
855
- return /* @__PURE__ */React__namespace.default.createElement(antd.Button, __spreadValues$M({
855
+ return /* @__PURE__ */React__namespace.default.createElement(antd.Button, __spreadValues$N({
856
856
  ref,
857
857
  className: cs__default.default(className, ButtonStyle$1, type === "link" && NoPadding, (prefixIcon || suffixIcon) && "has-icon", size === "large" && Typo.Label.l1_regular_title, size === "middle" && Typo.Label.l2_regular_title, size === "small" && Typo.Label.l3_regular_title, type && `ant-btn-${type}`, onlyIcon && "ant-btn-icon-only"),
858
858
  type: isAntdButtonTypes(type) ? type : void 0,
@@ -882,33 +882,33 @@
882
882
  }));
883
883
  });
884
884
 
885
- var __defProp$L = Object.defineProperty;
885
+ var __defProp$M = Object.defineProperty;
886
886
  var __defProps$z = Object.defineProperties;
887
887
  var __getOwnPropDescs$z = Object.getOwnPropertyDescriptors;
888
- var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
889
- var __hasOwnProp$M = Object.prototype.hasOwnProperty;
890
- var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
891
- var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
892
- var __spreadValues$L = (a, b) => {
888
+ var __getOwnPropSymbols$N = Object.getOwnPropertySymbols;
889
+ var __hasOwnProp$N = Object.prototype.hasOwnProperty;
890
+ var __propIsEnum$N = Object.prototype.propertyIsEnumerable;
891
+ var __defNormalProp$M = (obj, key, value) => key in obj ? __defProp$M(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
892
+ var __spreadValues$M = (a, b) => {
893
893
  for (var prop in b || (b = {}))
894
- if (__hasOwnProp$M.call(b, prop))
895
- __defNormalProp$L(a, prop, b[prop]);
896
- if (__getOwnPropSymbols$M)
897
- for (var prop of __getOwnPropSymbols$M(b)) {
898
- if (__propIsEnum$M.call(b, prop))
899
- __defNormalProp$L(a, prop, b[prop]);
894
+ if (__hasOwnProp$N.call(b, prop))
895
+ __defNormalProp$M(a, prop, b[prop]);
896
+ if (__getOwnPropSymbols$N)
897
+ for (var prop of __getOwnPropSymbols$N(b)) {
898
+ if (__propIsEnum$N.call(b, prop))
899
+ __defNormalProp$M(a, prop, b[prop]);
900
900
  }
901
901
  return a;
902
902
  };
903
903
  var __spreadProps$z = (a, b) => __defProps$z(a, __getOwnPropDescs$z(b));
904
- var __objRest$s = (source, exclude) => {
904
+ var __objRest$t = (source, exclude) => {
905
905
  var target = {};
906
906
  for (var prop in source)
907
- if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0)
907
+ if (__hasOwnProp$N.call(source, prop) && exclude.indexOf(prop) < 0)
908
908
  target[prop] = source[prop];
909
- if (source != null && __getOwnPropSymbols$M)
910
- for (var prop of __getOwnPropSymbols$M(source)) {
911
- if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop))
909
+ if (source != null && __getOwnPropSymbols$N)
910
+ for (var prop of __getOwnPropSymbols$N(source)) {
911
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$N.call(source, prop))
912
912
  target[prop] = source[prop];
913
913
  }
914
914
  return target;
@@ -920,7 +920,7 @@
920
920
  overlayClassName,
921
921
  overlayStyle,
922
922
  children
923
- } = _a, restProps = __objRest$s(_a, [
923
+ } = _a, restProps = __objRest$t(_a, [
924
924
  "followMouse",
925
925
  "overlayClassName",
926
926
  "overlayStyle",
@@ -962,10 +962,10 @@
962
962
  }, [followMouse, onmousemove, uniqueContainerClass]);
963
963
  return /* @__PURE__ */ React__namespace.default.createElement(
964
964
  antd.Tooltip,
965
- __spreadProps$z(__spreadValues$L({}, restProps), {
965
+ __spreadProps$z(__spreadValues$M({}, restProps), {
966
966
  overlayClassName: followMouse ? cs__default.default(overlayClassName, uniquePopupClass) : overlayClassName,
967
967
  children: _children,
968
- overlayStyle: followMouse ? __spreadValues$L({
968
+ overlayStyle: followMouse ? __spreadValues$M({
969
969
  transform: "translate(-50%, -100%)",
970
970
  pointerEvents: "none"
971
971
  }, overlayStyle) : overlayStyle
@@ -973,28 +973,28 @@
973
973
  );
974
974
  };
975
975
 
976
- var __defProp$K = Object.defineProperty;
977
- var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
978
- var __hasOwnProp$L = Object.prototype.hasOwnProperty;
979
- var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
980
- var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, {
976
+ var __defProp$L = Object.defineProperty;
977
+ var __getOwnPropSymbols$M = Object.getOwnPropertySymbols;
978
+ var __hasOwnProp$M = Object.prototype.hasOwnProperty;
979
+ var __propIsEnum$M = Object.prototype.propertyIsEnumerable;
980
+ var __defNormalProp$L = (obj, key, value) => key in obj ? __defProp$L(obj, key, {
981
981
  enumerable: true,
982
982
  configurable: true,
983
983
  writable: true,
984
984
  value
985
985
  }) : obj[key] = value;
986
- var __spreadValues$K = (a, b) => {
987
- for (var prop in b || (b = {})) if (__hasOwnProp$L.call(b, prop)) __defNormalProp$K(a, prop, b[prop]);
988
- if (__getOwnPropSymbols$L) for (var prop of __getOwnPropSymbols$L(b)) {
989
- if (__propIsEnum$L.call(b, prop)) __defNormalProp$K(a, prop, b[prop]);
986
+ var __spreadValues$L = (a, b) => {
987
+ for (var prop in b || (b = {})) if (__hasOwnProp$M.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
988
+ if (__getOwnPropSymbols$M) for (var prop of __getOwnPropSymbols$M(b)) {
989
+ if (__propIsEnum$M.call(b, prop)) __defNormalProp$L(a, prop, b[prop]);
990
990
  }
991
991
  return a;
992
992
  };
993
- var __objRest$r = (source, exclude) => {
993
+ var __objRest$s = (source, exclude) => {
994
994
  var target = {};
995
- for (var prop in source) if (__hasOwnProp$L.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
996
- if (source != null && __getOwnPropSymbols$L) for (var prop of __getOwnPropSymbols$L(source)) {
997
- if (exclude.indexOf(prop) < 0 && __propIsEnum$L.call(source, prop)) target[prop] = source[prop];
995
+ for (var prop in source) if (__hasOwnProp$M.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
996
+ if (source != null && __getOwnPropSymbols$M) for (var prop of __getOwnPropSymbols$M(source)) {
997
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$M.call(source, prop)) target[prop] = source[prop];
998
998
  }
999
999
  return target;
1000
1000
  };
@@ -1029,7 +1029,7 @@
1029
1029
  hideTitle,
1030
1030
  title
1031
1031
  } = _a,
1032
- buttonPropArgs = __objRest$r(_a, ["key", "icon", "type", "children", "danger", "ghost", "className", "hideTitle", "title"]);
1032
+ buttonPropArgs = __objRest$s(_a, ["key", "icon", "type", "children", "danger", "ghost", "className", "hideTitle", "title"]);
1033
1033
  if (hideTitle) {
1034
1034
  return /* @__PURE__ */React__namespace.default.createElement(Tooltip, {
1035
1035
  key: key || index,
@@ -1038,7 +1038,7 @@
1038
1038
  style: {
1039
1039
  cursor: "not-allowed"
1040
1040
  }
1041
- }, /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$K({
1041
+ }, /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$L({
1042
1042
  style: {
1043
1043
  pointerEvents: "none"
1044
1044
  },
@@ -1048,7 +1048,7 @@
1048
1048
  ghost,
1049
1049
  className: core.cx(ButtonStyle, className2),
1050
1050
  prefixIcon: icon
1051
- }, buttonPropArgs))) : /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$K({
1051
+ }, buttonPropArgs))) : /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$L({
1052
1052
  type,
1053
1053
  size,
1054
1054
  danger,
@@ -1057,7 +1057,7 @@
1057
1057
  prefixIcon: icon
1058
1058
  }, buttonPropArgs)));
1059
1059
  }
1060
- return /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$K({
1060
+ return /* @__PURE__ */React__namespace.default.createElement(Button, __spreadValues$L({
1061
1061
  key: key || index,
1062
1062
  type,
1063
1063
  size,
@@ -1071,19 +1071,19 @@
1071
1071
  }));
1072
1072
  });
1073
1073
 
1074
- var __defProp$J = Object.defineProperty;
1075
- var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
1076
- var __hasOwnProp$K = Object.prototype.hasOwnProperty;
1077
- var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
1078
- var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1079
- var __spreadValues$J = (a, b) => {
1074
+ var __defProp$K = Object.defineProperty;
1075
+ var __getOwnPropSymbols$L = Object.getOwnPropertySymbols;
1076
+ var __hasOwnProp$L = Object.prototype.hasOwnProperty;
1077
+ var __propIsEnum$L = Object.prototype.propertyIsEnumerable;
1078
+ var __defNormalProp$K = (obj, key, value) => key in obj ? __defProp$K(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
1079
+ var __spreadValues$K = (a, b) => {
1080
1080
  for (var prop in b || (b = {}))
1081
- if (__hasOwnProp$K.call(b, prop))
1082
- __defNormalProp$J(a, prop, b[prop]);
1083
- if (__getOwnPropSymbols$K)
1084
- for (var prop of __getOwnPropSymbols$K(b)) {
1085
- if (__propIsEnum$K.call(b, prop))
1086
- __defNormalProp$J(a, prop, b[prop]);
1081
+ if (__hasOwnProp$L.call(b, prop))
1082
+ __defNormalProp$K(a, prop, b[prop]);
1083
+ if (__getOwnPropSymbols$L)
1084
+ for (var prop of __getOwnPropSymbols$L(b)) {
1085
+ if (__propIsEnum$L.call(b, prop))
1086
+ __defNormalProp$K(a, prop, b[prop]);
1087
1087
  }
1088
1088
  return a;
1089
1089
  };
@@ -1097,7 +1097,7 @@
1097
1097
  }) => {
1098
1098
  const { t } = useParrotTranslation();
1099
1099
  if (isEmpty(rawValue)) {
1100
- return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$J({}, emptyProps));
1100
+ return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$K({}, emptyProps));
1101
1101
  }
1102
1102
  if (rawValue === -1) {
1103
1103
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, t("common.calculation"));
@@ -1121,18 +1121,45 @@
1121
1121
  propsAsIs: false
1122
1122
  });
1123
1123
 
1124
+ var __defProp$J = Object.defineProperty;
1125
+ var __getOwnPropSymbols$K = Object.getOwnPropertySymbols;
1126
+ var __hasOwnProp$K = Object.prototype.hasOwnProperty;
1127
+ var __propIsEnum$K = Object.prototype.propertyIsEnumerable;
1128
+ var __defNormalProp$J = (obj, key, value) => key in obj ? __defProp$J(obj, key, {
1129
+ enumerable: true,
1130
+ configurable: true,
1131
+ writable: true,
1132
+ value
1133
+ }) : obj[key] = value;
1134
+ var __spreadValues$J = (a, b) => {
1135
+ for (var prop in b || (b = {})) if (__hasOwnProp$K.call(b, prop)) __defNormalProp$J(a, prop, b[prop]);
1136
+ if (__getOwnPropSymbols$K) for (var prop of __getOwnPropSymbols$K(b)) {
1137
+ if (__propIsEnum$K.call(b, prop)) __defNormalProp$J(a, prop, b[prop]);
1138
+ }
1139
+ return a;
1140
+ };
1141
+ var __objRest$r = (source, exclude) => {
1142
+ var target = {};
1143
+ for (var prop in source) if (__hasOwnProp$K.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
1144
+ if (source != null && __getOwnPropSymbols$K) for (var prop of __getOwnPropSymbols$K(source)) {
1145
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$K.call(source, prop)) target[prop] = source[prop];
1146
+ }
1147
+ return target;
1148
+ };
1124
1149
  const boxShadow = "bab9xum";
1125
1150
  const Wrapper = React.forwardRef(props => {
1126
- const {
1127
- children,
1128
- className,
1129
- shadow
1130
- } = props;
1131
- return /* @__PURE__ */React__namespace.default.createElement("div", {
1151
+ const _a = props,
1152
+ {
1153
+ children,
1154
+ className,
1155
+ shadow
1156
+ } = _a,
1157
+ otherProps = __objRest$r(_a, ["children", "className", "shadow"]);
1158
+ return /* @__PURE__ */React__namespace.default.createElement("div", __spreadValues$J({
1132
1159
  className: cs__default.default({
1133
1160
  [boxShadow]: shadow
1134
1161
  }, className)
1135
- }, children);
1162
+ }, otherProps), children);
1136
1163
  });
1137
1164
  const _exp$3 = () => Wrapper;
1138
1165
  const CardWrapper = /*#__PURE__*/react.styled(_exp$3())({
@@ -2950,6 +2977,12 @@
2950
2977
  const useKitDispatch = reactRedux.createDispatchHook(ctx);
2951
2978
  const useKitSelector = reactRedux.createSelectorHook(ctx);
2952
2979
 
2980
+ const StepsStyle = "sq6vos1";
2981
+ const HorizontalStyle = "hjtnwxg";
2982
+ const VerticalStyle = "v1p8siwu";
2983
+ const HorizontalStepContentStyle = "h1xo7yjb";
2984
+ const VerticalStepContentStyle = "v1f2f7cy";
2985
+
2953
2986
  var __defProp$m = Object.defineProperty;
2954
2987
  var __defProps$g = Object.defineProperties;
2955
2988
  var __getOwnPropDescs$g = Object.getOwnPropertyDescriptors;
@@ -2981,41 +3014,144 @@
2981
3014
  }
2982
3015
  return target;
2983
3016
  };
2984
- const Modal = (props) => {
2985
- var _b;
2986
- const { t } = useParrotTranslation();
3017
+ const StepTitle = (props) => {
3018
+ const { current, step, index, isVerticalMode } = props;
3019
+ const textRef = React.useRef(null);
3020
+ const [tooltipEnable, setTooltipEnable] = React.useState({
3021
+ visible: false
3022
+ });
3023
+ React.useLayoutEffect(() => {
3024
+ if (textRef.current && textRef.current.offsetWidth < textRef.current.scrollWidth) {
3025
+ setTooltipEnable({});
3026
+ }
3027
+ }, [textRef]);
3028
+ return /* @__PURE__ */ React__namespace.default.createElement(Tooltip, __spreadProps$g(__spreadValues$m({}, tooltipEnable), { title: step.title }), /* @__PURE__ */ React__namespace.default.createElement(
3029
+ "div",
3030
+ {
3031
+ className: isVerticalMode ? VerticalStepContentStyle : HorizontalStepContentStyle
3032
+ },
3033
+ /* @__PURE__ */ React__namespace.default.createElement("span", { className: "step-item-prefix-container" }, index < current ? /* @__PURE__ */ React__namespace.default.createElement(iconsReact.CheckmarkDoneSuccessCorrect16SecondaryIcon, null) : index + 1),
3034
+ /* @__PURE__ */ React__namespace.default.createElement("span", { ref: textRef, className: "step-item-title" }, /* @__PURE__ */ React__namespace.default.createElement("span", { className: "step-item-title" }, step.title))
3035
+ ));
3036
+ };
3037
+ const Steps = (props) => {
2987
3038
  const _a = props, {
2988
- error,
2989
- okText = t("common.confirm"),
2990
- cancelText = t("common.cancel"),
2991
- confirmLoading,
2992
- okButtonProps,
2993
- onOk,
2994
- cancelButtonProps,
2995
- onCancel,
2996
- maskClosable = false,
2997
- normal = true,
2998
- className,
2999
- fullscreen,
3000
- wizard,
3001
- footer,
3002
- width,
3003
- showCancel = true,
3004
- showOk = true,
3005
- afterClose
3006
- } = _a, restProps = __objRest$9(_a, [
3007
- "error",
3008
- "okText",
3009
- "cancelText",
3010
- "confirmLoading",
3011
- "okButtonProps",
3012
- "onOk",
3013
- "cancelButtonProps",
3014
- "onCancel",
3015
- "maskClosable",
3016
- "normal",
3017
- "className",
3018
- "fullscreen",
3039
+ stepsConfig,
3040
+ direction,
3041
+ containerClassname,
3042
+ current = 0,
3043
+ disabled
3044
+ } = _a, stepsProps = __objRest$9(_a, [
3045
+ "stepsConfig",
3046
+ "direction",
3047
+ "containerClassname",
3048
+ "current",
3049
+ "disabled"
3050
+ ]);
3051
+ const isVerticalMode = direction === "vertical";
3052
+ return /* @__PURE__ */ React__namespace.default.createElement(
3053
+ "div",
3054
+ {
3055
+ className: cs__default.default(
3056
+ containerClassname,
3057
+ StepsStyle,
3058
+ isVerticalMode ? VerticalStyle : HorizontalStyle
3059
+ )
3060
+ },
3061
+ /* @__PURE__ */ React__namespace.default.createElement(
3062
+ antd.Steps,
3063
+ __spreadProps$g(__spreadValues$m({}, stepsProps), {
3064
+ direction,
3065
+ current,
3066
+ type: "default"
3067
+ }),
3068
+ (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */ React__namespace.default.createElement(
3069
+ antd.Steps.Step,
3070
+ __spreadProps$g(__spreadValues$m({
3071
+ key: index
3072
+ }, step), {
3073
+ disabled: disabled || index > current,
3074
+ title: /* @__PURE__ */ React__namespace.default.createElement(
3075
+ StepTitle,
3076
+ {
3077
+ index,
3078
+ step,
3079
+ current,
3080
+ isVerticalMode
3081
+ }
3082
+ )
3083
+ })
3084
+ )) : props.children
3085
+ )
3086
+ );
3087
+ };
3088
+
3089
+ var __defProp$l = Object.defineProperty;
3090
+ var __defProps$f = Object.defineProperties;
3091
+ var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
3092
+ var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
3093
+ var __hasOwnProp$l = Object.prototype.hasOwnProperty;
3094
+ var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
3095
+ var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3096
+ var __spreadValues$l = (a, b) => {
3097
+ for (var prop in b || (b = {}))
3098
+ if (__hasOwnProp$l.call(b, prop))
3099
+ __defNormalProp$l(a, prop, b[prop]);
3100
+ if (__getOwnPropSymbols$l)
3101
+ for (var prop of __getOwnPropSymbols$l(b)) {
3102
+ if (__propIsEnum$l.call(b, prop))
3103
+ __defNormalProp$l(a, prop, b[prop]);
3104
+ }
3105
+ return a;
3106
+ };
3107
+ var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
3108
+ var __objRest$8 = (source, exclude) => {
3109
+ var target = {};
3110
+ for (var prop in source)
3111
+ if (__hasOwnProp$l.call(source, prop) && exclude.indexOf(prop) < 0)
3112
+ target[prop] = source[prop];
3113
+ if (source != null && __getOwnPropSymbols$l)
3114
+ for (var prop of __getOwnPropSymbols$l(source)) {
3115
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$l.call(source, prop))
3116
+ target[prop] = source[prop];
3117
+ }
3118
+ return target;
3119
+ };
3120
+ const Modal = (props) => {
3121
+ var _b;
3122
+ const { t } = useParrotTranslation();
3123
+ const _a = props, {
3124
+ error,
3125
+ okText = t("common.confirm"),
3126
+ cancelText = t("common.cancel"),
3127
+ confirmLoading,
3128
+ okButtonProps,
3129
+ onOk,
3130
+ cancelButtonProps,
3131
+ onCancel,
3132
+ maskClosable = false,
3133
+ normal = true,
3134
+ className,
3135
+ fullscreen,
3136
+ wizard,
3137
+ footer,
3138
+ width,
3139
+ showCancel = true,
3140
+ showOk = true,
3141
+ afterClose
3142
+ } = _a, restProps = __objRest$8(_a, [
3143
+ "error",
3144
+ "okText",
3145
+ "cancelText",
3146
+ "confirmLoading",
3147
+ "okButtonProps",
3148
+ "onOk",
3149
+ "cancelButtonProps",
3150
+ "onCancel",
3151
+ "maskClosable",
3152
+ "normal",
3153
+ "className",
3154
+ "fullscreen",
3019
3155
  "wizard",
3020
3156
  "footer",
3021
3157
  "width",
@@ -3058,7 +3194,7 @@
3058
3194
  }
3059
3195
  return /* @__PURE__ */ React__namespace.default.createElement(
3060
3196
  antd.Modal,
3061
- __spreadProps$g(__spreadValues$m({
3197
+ __spreadProps$f(__spreadValues$l({
3062
3198
  maskClosable,
3063
3199
  className: cs__default.default(
3064
3200
  className,
@@ -3093,7 +3229,7 @@
3093
3229
  prevText
3094
3230
  ), error && /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: "modal-error" }, error))), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "modal-footer-btn-group" }, showCancel && /* @__PURE__ */ React__namespace.default.createElement(
3095
3231
  Button,
3096
- __spreadValues$m({
3232
+ __spreadValues$l({
3097
3233
  type: "quiet",
3098
3234
  onMouseDown: (e) => {
3099
3235
  e.preventDefault();
@@ -3107,7 +3243,7 @@
3107
3243
  cancelText
3108
3244
  ), showOk && /* @__PURE__ */ React__namespace.default.createElement(
3109
3245
  Button,
3110
- __spreadValues$m({
3246
+ __spreadValues$l({
3111
3247
  onClick: (e) => {
3112
3248
  var _a2, _b2;
3113
3249
  onOk == null ? void 0 : onOk(e);
@@ -3123,24 +3259,19 @@
3123
3259
  ))) : footer)
3124
3260
  }),
3125
3261
  wizard && typeof wizard === "object" ? /* @__PURE__ */ React__namespace.default.createElement(WizardBody, null, /* @__PURE__ */ React__namespace.default.createElement("div", { className: "left" }, /* @__PURE__ */ React__namespace.default.createElement(
3126
- antd.Steps,
3262
+ Steps,
3127
3263
  {
3128
- style: { minWidth: 192 },
3129
3264
  current: wizard.step,
3130
3265
  onChange: (value) => {
3131
3266
  var _a2;
3132
3267
  return (_a2 = wizard.onStepChange) == null ? void 0 : _a2.call(wizard, value);
3133
3268
  },
3134
- direction: "vertical"
3135
- },
3136
- wizard.steps.map((s, idx) => /* @__PURE__ */ React__namespace.default.createElement(
3137
- antd.Steps.Step,
3138
- {
3139
- key: idx,
3140
- title: /* @__PURE__ */ React__namespace.default.createElement(React__namespace.default.Fragment, null, idx >= wizard.step ? /* @__PURE__ */ React__namespace.default.createElement("span", { className: "step-index" }, idx + 1) : /* @__PURE__ */ React__namespace.default.createElement(icons.CheckOutlined, { className: "step-index" }), s.title),
3141
- disabled: s.disabled || idx > wizard.step || wizard.disablePrevStep && idx !== wizard.step
3142
- }
3143
- ))
3269
+ direction: "vertical",
3270
+ stepsConfig: wizard.steps.map((s) => ({
3271
+ title: s.title,
3272
+ disabled: s.disabled
3273
+ }))
3274
+ }
3144
3275
  )), /* @__PURE__ */ React__namespace.default.createElement("div", { className: "middle" }, restProps.children, wizard.destroyOtherStep ? wizard.steps[wizard.step].render : stepsRef.current.map((step, index) => /* @__PURE__ */ React__namespace.default.createElement(
3145
3276
  "div",
3146
3277
  {
@@ -3259,19 +3390,19 @@
3259
3390
  }))));
3260
3391
  };
3261
3392
 
3262
- var __defProp$l = Object.defineProperty;
3263
- var __getOwnPropSymbols$l = Object.getOwnPropertySymbols;
3264
- var __hasOwnProp$l = Object.prototype.hasOwnProperty;
3265
- var __propIsEnum$l = Object.prototype.propertyIsEnumerable;
3266
- var __defNormalProp$l = (obj, key, value) => key in obj ? __defProp$l(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3267
- var __spreadValues$l = (a, b) => {
3393
+ var __defProp$k = Object.defineProperty;
3394
+ var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
3395
+ var __hasOwnProp$k = Object.prototype.hasOwnProperty;
3396
+ var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
3397
+ var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3398
+ var __spreadValues$k = (a, b) => {
3268
3399
  for (var prop in b || (b = {}))
3269
- if (__hasOwnProp$l.call(b, prop))
3270
- __defNormalProp$l(a, prop, b[prop]);
3271
- if (__getOwnPropSymbols$l)
3272
- for (var prop of __getOwnPropSymbols$l(b)) {
3273
- if (__propIsEnum$l.call(b, prop))
3274
- __defNormalProp$l(a, prop, b[prop]);
3400
+ if (__hasOwnProp$k.call(b, prop))
3401
+ __defNormalProp$k(a, prop, b[prop]);
3402
+ if (__getOwnPropSymbols$k)
3403
+ for (var prop of __getOwnPropSymbols$k(b)) {
3404
+ if (__propIsEnum$k.call(b, prop))
3405
+ __defNormalProp$k(a, prop, b[prop]);
3275
3406
  }
3276
3407
  return a;
3277
3408
  };
@@ -3284,52 +3415,52 @@
3284
3415
  emptyProps
3285
3416
  }) => {
3286
3417
  if (isEmpty(rawValue)) {
3287
- return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$l({}, emptyProps));
3418
+ return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$k({}, emptyProps));
3288
3419
  }
3289
3420
  const { value, unit } = formatPercent(rawValue, decimals, saturated);
3290
3421
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, unit));
3291
3422
  };
3292
3423
 
3293
- var __defProp$k = Object.defineProperty;
3294
- var __getOwnPropSymbols$k = Object.getOwnPropertySymbols;
3295
- var __hasOwnProp$k = Object.prototype.hasOwnProperty;
3296
- var __propIsEnum$k = Object.prototype.propertyIsEnumerable;
3297
- var __defNormalProp$k = (obj, key, value) => key in obj ? __defProp$k(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3298
- var __spreadValues$k = (a, b) => {
3424
+ var __defProp$j = Object.defineProperty;
3425
+ var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
3426
+ var __hasOwnProp$j = Object.prototype.hasOwnProperty;
3427
+ var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
3428
+ var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3429
+ var __spreadValues$j = (a, b) => {
3299
3430
  for (var prop in b || (b = {}))
3300
- if (__hasOwnProp$k.call(b, prop))
3301
- __defNormalProp$k(a, prop, b[prop]);
3302
- if (__getOwnPropSymbols$k)
3303
- for (var prop of __getOwnPropSymbols$k(b)) {
3304
- if (__propIsEnum$k.call(b, prop))
3305
- __defNormalProp$k(a, prop, b[prop]);
3431
+ if (__hasOwnProp$j.call(b, prop))
3432
+ __defNormalProp$j(a, prop, b[prop]);
3433
+ if (__getOwnPropSymbols$j)
3434
+ for (var prop of __getOwnPropSymbols$j(b)) {
3435
+ if (__propIsEnum$j.call(b, prop))
3436
+ __defNormalProp$j(a, prop, b[prop]);
3306
3437
  }
3307
3438
  return a;
3308
3439
  };
3309
- const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$k({}, props));
3440
+ const Progress = (props) => /* @__PURE__ */ React__namespace.default.createElement(antd.Progress, __spreadValues$j({}, props));
3310
3441
 
3311
- var __defProp$j = Object.defineProperty;
3312
- var __getOwnPropSymbols$j = Object.getOwnPropertySymbols;
3313
- var __hasOwnProp$j = Object.prototype.hasOwnProperty;
3314
- var __propIsEnum$j = Object.prototype.propertyIsEnumerable;
3315
- var __defNormalProp$j = (obj, key, value) => key in obj ? __defProp$j(obj, key, {
3442
+ var __defProp$i = Object.defineProperty;
3443
+ var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
3444
+ var __hasOwnProp$i = Object.prototype.hasOwnProperty;
3445
+ var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
3446
+ var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, {
3316
3447
  enumerable: true,
3317
3448
  configurable: true,
3318
3449
  writable: true,
3319
3450
  value
3320
3451
  }) : obj[key] = value;
3321
- var __spreadValues$j = (a, b) => {
3322
- for (var prop in b || (b = {})) if (__hasOwnProp$j.call(b, prop)) __defNormalProp$j(a, prop, b[prop]);
3323
- if (__getOwnPropSymbols$j) for (var prop of __getOwnPropSymbols$j(b)) {
3324
- if (__propIsEnum$j.call(b, prop)) __defNormalProp$j(a, prop, b[prop]);
3452
+ var __spreadValues$i = (a, b) => {
3453
+ for (var prop in b || (b = {})) if (__hasOwnProp$i.call(b, prop)) __defNormalProp$i(a, prop, b[prop]);
3454
+ if (__getOwnPropSymbols$i) for (var prop of __getOwnPropSymbols$i(b)) {
3455
+ if (__propIsEnum$i.call(b, prop)) __defNormalProp$i(a, prop, b[prop]);
3325
3456
  }
3326
3457
  return a;
3327
3458
  };
3328
- var __objRest$8 = (source, exclude) => {
3459
+ var __objRest$7 = (source, exclude) => {
3329
3460
  var target = {};
3330
- for (var prop in source) if (__hasOwnProp$j.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3331
- if (source != null && __getOwnPropSymbols$j) for (var prop of __getOwnPropSymbols$j(source)) {
3332
- if (exclude.indexOf(prop) < 0 && __propIsEnum$j.call(source, prop)) target[prop] = source[prop];
3461
+ for (var prop in source) if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3462
+ if (source != null && __getOwnPropSymbols$i) for (var prop of __getOwnPropSymbols$i(source)) {
3463
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop)) target[prop] = source[prop];
3333
3464
  }
3334
3465
  return target;
3335
3466
  };
@@ -3345,7 +3476,7 @@
3345
3476
  checked,
3346
3477
  compact = false
3347
3478
  } = _b,
3348
- props = __objRest$8(_b, ["children", "className", "checked", "compact"]);
3479
+ props = __objRest$7(_b, ["children", "className", "checked", "compact"]);
3349
3480
  const {
3350
3481
  description
3351
3482
  } = props;
@@ -3355,7 +3486,7 @@
3355
3486
  className: core.cx("radio-description", Typo.Label.l4_regular)
3356
3487
  }, description));
3357
3488
  }
3358
- return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$j({
3489
+ return /* @__PURE__ */React__namespace.default.createElement(React__namespace.default.Fragment, null, /* @__PURE__ */React__namespace.default.createElement(antd.Radio, __spreadValues$i({
3359
3490
  className: core.cx(className, RadioStyle, compact && "compact"),
3360
3491
  checked: checked || false,
3361
3492
  "data-test": context.name ? `${context.name}-${String(props.value)}` : String(props.value)
@@ -3367,13 +3498,13 @@
3367
3498
  children,
3368
3499
  className
3369
3500
  } = _d,
3370
- props = __objRest$8(_d, ["children", "className"]);
3501
+ props = __objRest$7(_d, ["children", "className"]);
3371
3502
  return /* @__PURE__ */React__namespace.default.createElement(KitRadioGroupContext.Provider, {
3372
3503
  value: {
3373
3504
  disabled: props.disabled,
3374
3505
  name: props.name
3375
3506
  }
3376
- }, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$j({
3507
+ }, /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Group, __spreadValues$i({
3377
3508
  className: core.cx(className, RadioGroupStyle)
3378
3509
  }, props), children ? children : null));
3379
3510
  };
@@ -3383,7 +3514,7 @@
3383
3514
  children,
3384
3515
  className
3385
3516
  } = _f,
3386
- props = __objRest$8(_f, ["children", "className"]);
3517
+ props = __objRest$7(_f, ["children", "className"]);
3387
3518
  const {
3388
3519
  type,
3389
3520
  placeholder = "Label",
@@ -3429,46 +3560,46 @@
3429
3560
  className: "ant-radio-button-input-label"
3430
3561
  }, typeof children === "string" ? children : ""));
3431
3562
  };
3432
- return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$j({
3563
+ return /* @__PURE__ */React__namespace.default.createElement(antd.Radio.Button, __spreadValues$i({
3433
3564
  className: core.cx(className, RadioButtonStyle),
3434
3565
  value: radioButtonValue
3435
3566
  }, props), renderChildren());
3436
3567
  };
3437
3568
 
3438
- var __defProp$i = Object.defineProperty;
3439
- var __getOwnPropSymbols$i = Object.getOwnPropertySymbols;
3440
- var __hasOwnProp$i = Object.prototype.hasOwnProperty;
3441
- var __propIsEnum$i = Object.prototype.propertyIsEnumerable;
3442
- var __defNormalProp$i = (obj, key, value) => key in obj ? __defProp$i(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3443
- var __spreadValues$i = (a, b) => {
3569
+ var __defProp$h = Object.defineProperty;
3570
+ var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
3571
+ var __hasOwnProp$h = Object.prototype.hasOwnProperty;
3572
+ var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
3573
+ var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3574
+ var __spreadValues$h = (a, b) => {
3444
3575
  for (var prop in b || (b = {}))
3445
- if (__hasOwnProp$i.call(b, prop))
3446
- __defNormalProp$i(a, prop, b[prop]);
3447
- if (__getOwnPropSymbols$i)
3448
- for (var prop of __getOwnPropSymbols$i(b)) {
3449
- if (__propIsEnum$i.call(b, prop))
3450
- __defNormalProp$i(a, prop, b[prop]);
3576
+ if (__hasOwnProp$h.call(b, prop))
3577
+ __defNormalProp$h(a, prop, b[prop]);
3578
+ if (__getOwnPropSymbols$h)
3579
+ for (var prop of __getOwnPropSymbols$h(b)) {
3580
+ if (__propIsEnum$h.call(b, prop))
3581
+ __defNormalProp$h(a, prop, b[prop]);
3451
3582
  }
3452
3583
  return a;
3453
3584
  };
3454
- var __objRest$7 = (source, exclude) => {
3585
+ var __objRest$6 = (source, exclude) => {
3455
3586
  var target = {};
3456
3587
  for (var prop in source)
3457
- if (__hasOwnProp$i.call(source, prop) && exclude.indexOf(prop) < 0)
3588
+ if (__hasOwnProp$h.call(source, prop) && exclude.indexOf(prop) < 0)
3458
3589
  target[prop] = source[prop];
3459
- if (source != null && __getOwnPropSymbols$i)
3460
- for (var prop of __getOwnPropSymbols$i(source)) {
3461
- if (exclude.indexOf(prop) < 0 && __propIsEnum$i.call(source, prop))
3590
+ if (source != null && __getOwnPropSymbols$h)
3591
+ for (var prop of __getOwnPropSymbols$h(source)) {
3592
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$h.call(source, prop))
3462
3593
  target[prop] = source[prop];
3463
3594
  }
3464
3595
  return target;
3465
3596
  };
3466
3597
  const SearchInput = (props) => {
3467
- const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$7(_a, ["onChange", "debounceWait"]);
3598
+ const _a = props, { onChange, debounceWait = 300 } = _a, restProps = __objRest$6(_a, ["onChange", "debounceWait"]);
3468
3599
  const onSearch = ___default.default.debounce(onChange, debounceWait);
3469
3600
  return /* @__PURE__ */ React__namespace.default.createElement(
3470
3601
  Input,
3471
- __spreadValues$i({
3602
+ __spreadValues$h({
3472
3603
  style: { width: 276 },
3473
3604
  prefix: /* @__PURE__ */ React__namespace.default.createElement(icons.SearchOutlined, null),
3474
3605
  onChange: (e) => onSearch(e.target.value)
@@ -3476,19 +3607,19 @@
3476
3607
  );
3477
3608
  };
3478
3609
 
3479
- var __defProp$h = Object.defineProperty;
3480
- var __getOwnPropSymbols$h = Object.getOwnPropertySymbols;
3481
- var __hasOwnProp$h = Object.prototype.hasOwnProperty;
3482
- var __propIsEnum$h = Object.prototype.propertyIsEnumerable;
3483
- var __defNormalProp$h = (obj, key, value) => key in obj ? __defProp$h(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3484
- var __spreadValues$h = (a, b) => {
3610
+ var __defProp$g = Object.defineProperty;
3611
+ var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
3612
+ var __hasOwnProp$g = Object.prototype.hasOwnProperty;
3613
+ var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
3614
+ var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3615
+ var __spreadValues$g = (a, b) => {
3485
3616
  for (var prop in b || (b = {}))
3486
- if (__hasOwnProp$h.call(b, prop))
3487
- __defNormalProp$h(a, prop, b[prop]);
3488
- if (__getOwnPropSymbols$h)
3489
- for (var prop of __getOwnPropSymbols$h(b)) {
3490
- if (__propIsEnum$h.call(b, prop))
3491
- __defNormalProp$h(a, prop, b[prop]);
3617
+ if (__hasOwnProp$g.call(b, prop))
3618
+ __defNormalProp$g(a, prop, b[prop]);
3619
+ if (__getOwnPropSymbols$g)
3620
+ for (var prop of __getOwnPropSymbols$g(b)) {
3621
+ if (__propIsEnum$g.call(b, prop))
3622
+ __defNormalProp$g(a, prop, b[prop]);
3492
3623
  }
3493
3624
  return a;
3494
3625
  };
@@ -3502,7 +3633,7 @@
3502
3633
  }) => {
3503
3634
  const { t } = useParrotTranslation();
3504
3635
  if (isEmpty(rawValue)) {
3505
- return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$h({}, emptyProps));
3636
+ return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$g({}, emptyProps));
3506
3637
  }
3507
3638
  const { value, unit } = formatSeconds(rawValue, decimals);
3508
3639
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value, " "), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, t(`common.${abbreviate ? `${unit}_abbreviation` : unit}`)));
@@ -3584,19 +3715,19 @@
3584
3715
  })));
3585
3716
  };
3586
3717
 
3587
- var __defProp$g = Object.defineProperty;
3588
- var __getOwnPropSymbols$g = Object.getOwnPropertySymbols;
3589
- var __hasOwnProp$g = Object.prototype.hasOwnProperty;
3590
- var __propIsEnum$g = Object.prototype.propertyIsEnumerable;
3591
- var __defNormalProp$g = (obj, key, value) => key in obj ? __defProp$g(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3592
- var __spreadValues$g = (a, b) => {
3718
+ var __defProp$f = Object.defineProperty;
3719
+ var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
3720
+ var __hasOwnProp$f = Object.prototype.hasOwnProperty;
3721
+ var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
3722
+ var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3723
+ var __spreadValues$f = (a, b) => {
3593
3724
  for (var prop in b || (b = {}))
3594
- if (__hasOwnProp$g.call(b, prop))
3595
- __defNormalProp$g(a, prop, b[prop]);
3596
- if (__getOwnPropSymbols$g)
3597
- for (var prop of __getOwnPropSymbols$g(b)) {
3598
- if (__propIsEnum$g.call(b, prop))
3599
- __defNormalProp$g(a, prop, b[prop]);
3725
+ if (__hasOwnProp$f.call(b, prop))
3726
+ __defNormalProp$f(a, prop, b[prop]);
3727
+ if (__getOwnPropSymbols$f)
3728
+ for (var prop of __getOwnPropSymbols$f(b)) {
3729
+ if (__propIsEnum$f.call(b, prop))
3730
+ __defNormalProp$f(a, prop, b[prop]);
3600
3731
  }
3601
3732
  return a;
3602
3733
  };
@@ -3608,37 +3739,37 @@
3608
3739
  emptyProps
3609
3740
  }) => {
3610
3741
  if (isEmpty(rawValue)) {
3611
- return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$g({}, emptyProps));
3742
+ return /* @__PURE__ */ React__namespace.default.createElement(Empty, __spreadValues$f({}, emptyProps));
3612
3743
  }
3613
3744
  const { value, unit } = formatSpeed(rawValue, decimals);
3614
3745
  return /* @__PURE__ */ React__namespace.default.createElement("span", null, /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("value", valueClassName) }, value), /* @__PURE__ */ React__namespace.default.createElement("span", { className: core.cx("unit", unitClassName) }, ` ${unit}`));
3615
3746
  };
3616
3747
 
3617
- var __defProp$f = Object.defineProperty;
3618
- var __defProps$f = Object.defineProperties;
3619
- var __getOwnPropDescs$f = Object.getOwnPropertyDescriptors;
3620
- var __getOwnPropSymbols$f = Object.getOwnPropertySymbols;
3621
- var __hasOwnProp$f = Object.prototype.hasOwnProperty;
3622
- var __propIsEnum$f = Object.prototype.propertyIsEnumerable;
3623
- var __defNormalProp$f = (obj, key, value) => key in obj ? __defProp$f(obj, key, {
3748
+ var __defProp$e = Object.defineProperty;
3749
+ var __defProps$e = Object.defineProperties;
3750
+ var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
3751
+ var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
3752
+ var __hasOwnProp$e = Object.prototype.hasOwnProperty;
3753
+ var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
3754
+ var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, {
3624
3755
  enumerable: true,
3625
3756
  configurable: true,
3626
3757
  writable: true,
3627
3758
  value
3628
3759
  }) : obj[key] = value;
3629
- var __spreadValues$f = (a, b) => {
3630
- for (var prop in b || (b = {})) if (__hasOwnProp$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
3631
- if (__getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(b)) {
3632
- if (__propIsEnum$f.call(b, prop)) __defNormalProp$f(a, prop, b[prop]);
3760
+ var __spreadValues$e = (a, b) => {
3761
+ for (var prop in b || (b = {})) if (__hasOwnProp$e.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
3762
+ if (__getOwnPropSymbols$e) for (var prop of __getOwnPropSymbols$e(b)) {
3763
+ if (__propIsEnum$e.call(b, prop)) __defNormalProp$e(a, prop, b[prop]);
3633
3764
  }
3634
3765
  return a;
3635
3766
  };
3636
- var __spreadProps$f = (a, b) => __defProps$f(a, __getOwnPropDescs$f(b));
3637
- var __objRest$6 = (source, exclude) => {
3767
+ var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
3768
+ var __objRest$5 = (source, exclude) => {
3638
3769
  var target = {};
3639
- for (var prop in source) if (__hasOwnProp$f.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3640
- if (source != null && __getOwnPropSymbols$f) for (var prop of __getOwnPropSymbols$f(source)) {
3641
- if (exclude.indexOf(prop) < 0 && __propIsEnum$f.call(source, prop)) target[prop] = source[prop];
3770
+ for (var prop in source) if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0) target[prop] = source[prop];
3771
+ if (source != null && __getOwnPropSymbols$e) for (var prop of __getOwnPropSymbols$e(source)) {
3772
+ if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop)) target[prop] = source[prop];
3642
3773
  }
3643
3774
  return target;
3644
3775
  };
@@ -3681,9 +3812,9 @@
3681
3812
  offWhiteMode,
3682
3813
  number
3683
3814
  } = _b,
3684
- props = __objRest$6(_b, ["color", "className", "loading", "hoverable", "children", "offWhiteMode", "number"]);
3815
+ props = __objRest$5(_b, ["color", "className", "loading", "hoverable", "children", "offWhiteMode", "number"]);
3685
3816
  const computedColor = ColorMap[color] || color;
3686
- return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$f(__spreadValues$f({}, props), {
3817
+ return /* @__PURE__ */React__namespace.default.createElement(antd.Tag, __spreadProps$e(__spreadValues$e({}, props), {
3687
3818
  className: cs__default.default(className, StatusCapsuleStyle, Typo.Label.l4_regular, "ui-kit-status-capsule", {
3688
3819
  [`ant-tag-${computedColor}`]: PresetColors$3.includes(computedColor),
3689
3820
  "tag-hover": hoverable,
@@ -3698,115 +3829,6 @@
3698
3829
  }, number));
3699
3830
  };
3700
3831
 
3701
- const StepsStyle = "sq6vos1";
3702
- const HorizontalStyle = "hjtnwxg";
3703
- const VerticalStyle = "v1p8siwu";
3704
- const HorizontalStepContentStyle = "h1xo7yjb";
3705
- const VerticalStepContentStyle = "v1f2f7cy";
3706
-
3707
- var __defProp$e = Object.defineProperty;
3708
- var __defProps$e = Object.defineProperties;
3709
- var __getOwnPropDescs$e = Object.getOwnPropertyDescriptors;
3710
- var __getOwnPropSymbols$e = Object.getOwnPropertySymbols;
3711
- var __hasOwnProp$e = Object.prototype.hasOwnProperty;
3712
- var __propIsEnum$e = Object.prototype.propertyIsEnumerable;
3713
- var __defNormalProp$e = (obj, key, value) => key in obj ? __defProp$e(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
3714
- var __spreadValues$e = (a, b) => {
3715
- for (var prop in b || (b = {}))
3716
- if (__hasOwnProp$e.call(b, prop))
3717
- __defNormalProp$e(a, prop, b[prop]);
3718
- if (__getOwnPropSymbols$e)
3719
- for (var prop of __getOwnPropSymbols$e(b)) {
3720
- if (__propIsEnum$e.call(b, prop))
3721
- __defNormalProp$e(a, prop, b[prop]);
3722
- }
3723
- return a;
3724
- };
3725
- var __spreadProps$e = (a, b) => __defProps$e(a, __getOwnPropDescs$e(b));
3726
- var __objRest$5 = (source, exclude) => {
3727
- var target = {};
3728
- for (var prop in source)
3729
- if (__hasOwnProp$e.call(source, prop) && exclude.indexOf(prop) < 0)
3730
- target[prop] = source[prop];
3731
- if (source != null && __getOwnPropSymbols$e)
3732
- for (var prop of __getOwnPropSymbols$e(source)) {
3733
- if (exclude.indexOf(prop) < 0 && __propIsEnum$e.call(source, prop))
3734
- target[prop] = source[prop];
3735
- }
3736
- return target;
3737
- };
3738
- const StepTitle = (props) => {
3739
- const { current, step, index, isVerticalMode } = props;
3740
- const textRef = React.useRef(null);
3741
- const [tooltipEnable, setTooltipEnable] = React.useState({
3742
- visible: false
3743
- });
3744
- React.useLayoutEffect(() => {
3745
- if (textRef.current && textRef.current.offsetWidth < textRef.current.scrollWidth) {
3746
- setTooltipEnable({});
3747
- }
3748
- }, [textRef]);
3749
- return /* @__PURE__ */ React__namespace.default.createElement(Tooltip, __spreadProps$e(__spreadValues$e({}, tooltipEnable), { title: step.title }), /* @__PURE__ */ React__namespace.default.createElement(
3750
- "div",
3751
- {
3752
- className: isVerticalMode ? VerticalStepContentStyle : HorizontalStepContentStyle
3753
- },
3754
- /* @__PURE__ */ React__namespace.default.createElement("span", { className: "step-item-prefix-container" }, index < current ? /* @__PURE__ */ React__namespace.default.createElement(iconsReact.CheckmarkDoneSuccessCorrect16SecondaryIcon, null) : index + 1),
3755
- /* @__PURE__ */ React__namespace.default.createElement("span", { ref: textRef, className: "step-item-title" }, /* @__PURE__ */ React__namespace.default.createElement("span", { className: "step-item-title" }, step.title))
3756
- ));
3757
- };
3758
- const Steps = (props) => {
3759
- const _a = props, {
3760
- stepsConfig,
3761
- direction,
3762
- containerClassname,
3763
- current = 0,
3764
- disabled
3765
- } = _a, stepsProps = __objRest$5(_a, [
3766
- "stepsConfig",
3767
- "direction",
3768
- "containerClassname",
3769
- "current",
3770
- "disabled"
3771
- ]);
3772
- const isVerticalMode = direction === "vertical";
3773
- return /* @__PURE__ */ React__namespace.default.createElement(
3774
- "div",
3775
- {
3776
- className: cs__default.default(
3777
- containerClassname,
3778
- StepsStyle,
3779
- isVerticalMode ? VerticalStyle : HorizontalStyle
3780
- )
3781
- },
3782
- /* @__PURE__ */ React__namespace.default.createElement(
3783
- antd.Steps,
3784
- __spreadProps$e(__spreadValues$e({}, stepsProps), {
3785
- direction,
3786
- current,
3787
- type: "default"
3788
- }),
3789
- (stepsConfig == null ? void 0 : stepsConfig.length) ? stepsConfig.map((step, index) => /* @__PURE__ */ React__namespace.default.createElement(
3790
- antd.Steps.Step,
3791
- __spreadProps$e(__spreadValues$e({
3792
- key: index
3793
- }, step), {
3794
- disabled: disabled || index > current,
3795
- title: /* @__PURE__ */ React__namespace.default.createElement(
3796
- StepTitle,
3797
- {
3798
- index,
3799
- step,
3800
- current,
3801
- isVerticalMode
3802
- }
3803
- )
3804
- })
3805
- )) : props.children
3806
- )
3807
- );
3808
- };
3809
-
3810
3832
  var __defProp$d = Object.defineProperty;
3811
3833
  var __defProps$d = Object.defineProperties;
3812
3834
  var __getOwnPropDescs$d = Object.getOwnPropertyDescriptors;