@open-condo/ui 2.17.0 → 2.18.0

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/index.js CHANGED
@@ -47336,7 +47336,7 @@ var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject);
47336
47336
  var isString = __webpack_require__(8138);
47337
47337
  var isString_default = /*#__PURE__*/__webpack_require__.n(isString);
47338
47338
  ;// CONCATENATED MODULE: ./package.json
47339
- var package_namespaceObject = {"rE":"2.17.0"};
47339
+ var package_namespaceObject = {"rE":"2.18.0"};
47340
47340
  ;// CONCATENATED MODULE: ./src/components/_utils/analytics.ts
47341
47341
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
47342
47342
 
@@ -49326,6 +49326,8 @@ var Banner = function Banner(_ref) {
49326
49326
 
49327
49327
 
49328
49328
 
49329
+ ;// CONCATENATED MODULE: ./src/components/Card/_utils/constants.ts
49330
+ var CARD_CLASS_PREFIX = 'condo-card';
49329
49331
  ;// CONCATENATED MODULE: ./src/components/Card/_utils/index.tsx
49330
49332
 
49331
49333
 
@@ -49343,28 +49345,26 @@ var renderLink = function renderLink(linkProps) {
49343
49345
  };
49344
49346
 
49345
49347
  var target = openInNewTab ? '_bank' : '_self';
49346
- return /*#__PURE__*/external_react_default().createElement(space_Space, {
49347
- size: 8,
49348
- direction: "horizontal",
49349
- align: "center"
49350
- }, PreIcon && /*#__PURE__*/external_react_default().createElement(PreIcon, {
49351
- size: "small"
49352
- }), LinkWrapper ? /*#__PURE__*/external_react_default().createElement(LinkWrapper, {
49353
- href: href
49354
- }, /*#__PURE__*/external_react_default().createElement(Typography.Link, {
49348
+ var linkContent = /*#__PURE__*/external_react_default().createElement(Typography.Link, {
49355
49349
  href: href,
49356
49350
  onClick: handleLinkClick,
49357
49351
  target: target
49358
- }, label)) : /*#__PURE__*/external_react_default().createElement(Typography.Link, {
49359
- href: href,
49360
- onClick: handleLinkClick,
49361
- target: target
49362
- }, label), AfterIcon && /*#__PURE__*/external_react_default().createElement(AfterIcon, {
49352
+ }, /*#__PURE__*/external_react_default().createElement("div", {
49353
+ className: "".concat(CARD_CLASS_PREFIX, "-link-content")
49354
+ }, PreIcon && /*#__PURE__*/external_react_default().createElement(PreIcon, {
49363
49355
  size: "small"
49364
- }));
49356
+ }), label, AfterIcon && /*#__PURE__*/external_react_default().createElement(AfterIcon, {
49357
+ size: "small"
49358
+ })));
49359
+
49360
+ if (LinkWrapper) {
49361
+ return /*#__PURE__*/external_react_default().createElement(LinkWrapper, {
49362
+ href: href
49363
+ }, linkContent);
49364
+ }
49365
+
49366
+ return linkContent;
49365
49367
  };
49366
- ;// CONCATENATED MODULE: ./src/components/Card/_utils/constants.ts
49367
- var CARD_CLASS_PREFIX = 'condo-card';
49368
49368
  ;// CONCATENATED MODULE: ./src/components/Card/body/cardBody.tsx
49369
49369
 
49370
49370
 
@@ -51635,9 +51635,35 @@ function Dropdown(props, ref) {
51635
51635
  ;// CONCATENATED MODULE: ../../node_modules/rc-dropdown/es/index.js
51636
51636
 
51637
51637
  /* harmony default export */ var rc_dropdown_es = (es_Dropdown);
51638
- // EXTERNAL MODULE: ../../node_modules/rc-util/es/hooks/useLayoutEffect.js
51639
- var es_hooks_useLayoutEffect = __webpack_require__(84238);
51640
- ;// CONCATENATED MODULE: ../../node_modules/rc-overflow/es/Item.js
51638
+ ;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/node_modules/rc-util/es/Dom/canUseDom.js
51639
+ function Dom_canUseDom_canUseDom() {
51640
+ return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
51641
+ }
51642
+ ;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/node_modules/rc-util/es/hooks/useLayoutEffect.js
51643
+
51644
+
51645
+ /**
51646
+ * Wrap `React.useLayoutEffect` which will not throw warning message in test env
51647
+ */
51648
+
51649
+ var useLayoutEffect_useLayoutEffect = true && Dom_canUseDom_canUseDom() ? external_react_.useLayoutEffect : external_react_.useEffect;
51650
+ /* harmony default export */ var es_hooks_useLayoutEffect = (useLayoutEffect_useLayoutEffect);
51651
+ var useLayoutEffect_useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
51652
+ var firstMountRef = React.useRef(true);
51653
+ useLayoutEffect_useLayoutEffect(function () {
51654
+ if (!firstMountRef.current) {
51655
+ return callback();
51656
+ }
51657
+ }, deps); // We tell react that first mount has passed
51658
+
51659
+ useLayoutEffect_useLayoutEffect(function () {
51660
+ firstMountRef.current = false;
51661
+ return function () {
51662
+ firstMountRef.current = true;
51663
+ };
51664
+ }, []);
51665
+ };
51666
+ ;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/es/Item.js
51641
51667
 
51642
51668
 
51643
51669
 
@@ -51721,9 +51747,97 @@ function InternalItem(props, ref) {
51721
51747
  var Item_Item = /*#__PURE__*/external_react_.forwardRef(InternalItem);
51722
51748
  Item_Item.displayName = 'Item';
51723
51749
  /* harmony default export */ var es_Item = (Item_Item);
51724
- // EXTERNAL MODULE: ../../node_modules/rc-util/es/hooks/useState.js
51725
- var hooks_useState = __webpack_require__(39348);
51726
- ;// CONCATENATED MODULE: ../../node_modules/rc-overflow/es/hooks/useBatchFrameState.js
51750
+ ;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/node_modules/rc-util/es/raf.js
51751
+ var es_raf_raf = function raf(callback) {
51752
+ return +setTimeout(callback, 16);
51753
+ };
51754
+
51755
+ var raf_caf = function caf(num) {
51756
+ return clearTimeout(num);
51757
+ };
51758
+
51759
+ if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
51760
+ es_raf_raf = function raf(callback) {
51761
+ return window.requestAnimationFrame(callback);
51762
+ };
51763
+
51764
+ raf_caf = function caf(handle) {
51765
+ return window.cancelAnimationFrame(handle);
51766
+ };
51767
+ }
51768
+
51769
+ var raf_rafUUID = 0;
51770
+ var raf_rafIds = new Map();
51771
+
51772
+ function raf_cleanup(id) {
51773
+ raf_rafIds.delete(id);
51774
+ }
51775
+
51776
+ function es_raf_wrapperRaf(callback) {
51777
+ var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
51778
+ raf_rafUUID += 1;
51779
+ var id = raf_rafUUID;
51780
+
51781
+ function callRef(leftTimes) {
51782
+ if (leftTimes === 0) {
51783
+ // Clean up
51784
+ raf_cleanup(id); // Trigger
51785
+
51786
+ callback();
51787
+ } else {
51788
+ // Next raf
51789
+ var realId = es_raf_raf(function () {
51790
+ callRef(leftTimes - 1);
51791
+ }); // Bind real raf id
51792
+
51793
+ raf_rafIds.set(id, realId);
51794
+ }
51795
+ }
51796
+
51797
+ callRef(times);
51798
+ return id;
51799
+ }
51800
+
51801
+ es_raf_wrapperRaf.cancel = function (id) {
51802
+ var realId = raf_rafIds.get(id);
51803
+ raf_cleanup(realId);
51804
+ return raf_caf(realId);
51805
+ };
51806
+ ;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/node_modules/rc-util/es/hooks/useState.js
51807
+
51808
+
51809
+ /**
51810
+ * Same as React.useState but `setState` accept `ignoreDestroy` param to not to setState after destroyed.
51811
+ * We do not make this auto is to avoid real memory leak.
51812
+ * Developer should confirm it's safe to ignore themselves.
51813
+ */
51814
+
51815
+ function useState_useSafeState(defaultValue) {
51816
+ var destroyRef = external_react_.useRef(false);
51817
+
51818
+ var _React$useState = external_react_.useState(defaultValue),
51819
+ _React$useState2 = (0,slicedToArray/* default */.A)(_React$useState, 2),
51820
+ value = _React$useState2[0],
51821
+ setValue = _React$useState2[1];
51822
+
51823
+ external_react_.useEffect(function () {
51824
+ destroyRef.current = false;
51825
+ return function () {
51826
+ destroyRef.current = true;
51827
+ };
51828
+ }, []);
51829
+
51830
+ function safeSetState(updater, ignoreDestroy) {
51831
+ if (ignoreDestroy && destroyRef.current) {
51832
+ return;
51833
+ }
51834
+
51835
+ setValue(updater);
51836
+ }
51837
+
51838
+ return [value, safeSetState];
51839
+ }
51840
+ ;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/es/hooks/useBatchFrameState.js
51727
51841
 
51728
51842
 
51729
51843
 
@@ -51734,7 +51848,7 @@ var hooks_useState = __webpack_require__(39348);
51734
51848
  */
51735
51849
 
51736
51850
  function useBatchFrameState() {
51737
- var _useState = (0,hooks_useState/* default */.A)({}),
51851
+ var _useState = useState_useSafeState({}),
51738
51852
  _useState2 = (0,slicedToArray/* default */.A)(_useState, 2),
51739
51853
  forceUpdate = _useState2[1];
51740
51854
 
@@ -51755,9 +51869,9 @@ function useBatchFrameState() {
51755
51869
 
51756
51870
  function setValue(val) {
51757
51871
  statesRef.current[myIndex] = typeof val === 'function' ? val(statesRef.current[myIndex]) : val;
51758
- raf/* default */.A.cancel(beforeFrameId); // Flush with batch
51872
+ es_raf_wrapperRaf.cancel(beforeFrameId); // Flush with batch
51759
51873
 
51760
- beforeFrameId = (0,raf/* default */.A)(function () {
51874
+ beforeFrameId = es_raf_wrapperRaf(function () {
51761
51875
  forceUpdate({}, true);
51762
51876
  });
51763
51877
  }
@@ -51767,7 +51881,7 @@ function useBatchFrameState() {
51767
51881
 
51768
51882
  return createState;
51769
51883
  }
51770
- ;// CONCATENATED MODULE: ../../node_modules/rc-overflow/es/RawItem.js
51884
+ ;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/es/RawItem.js
51771
51885
 
51772
51886
 
51773
51887
  var RawItem_excluded = ["component"],
@@ -51809,7 +51923,7 @@ var InternalRawItem = function InternalRawItem(props, ref) {
51809
51923
  var RawItem = /*#__PURE__*/external_react_.forwardRef(InternalRawItem);
51810
51924
  RawItem.displayName = 'RawItem';
51811
51925
  /* harmony default export */ var es_RawItem = (RawItem);
51812
- ;// CONCATENATED MODULE: ../../node_modules/rc-overflow/es/Overflow.js
51926
+ ;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/es/Overflow.js
51813
51927
 
51814
51928
 
51815
51929
 
@@ -52008,7 +52122,7 @@ function Overflow(props, ref) {
52008
52122
  return itemWidths.get(getKey(mergedData[index], index));
52009
52123
  }
52010
52124
 
52011
- (0,es_hooks_useLayoutEffect/* default */.A)(function () {
52125
+ es_hooks_useLayoutEffect(function () {
52012
52126
  if (mergedContainerWidth && mergedRestWidth && mergedData) {
52013
52127
  var totalWidth = suffixWidth;
52014
52128
  var len = mergedData.length;
@@ -52145,7 +52259,7 @@ ForwardOverflow.RESPONSIVE = RESPONSIVE;
52145
52259
  ForwardOverflow.INVALIDATE = INVALIDATE; // Convert to generic type
52146
52260
 
52147
52261
  /* harmony default export */ var es_Overflow = (ForwardOverflow);
52148
- ;// CONCATENATED MODULE: ../../node_modules/rc-overflow/es/index.js
52262
+ ;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-overflow/es/index.js
52149
52263
 
52150
52264
  /* harmony default export */ var rc_overflow_es = (es_Overflow);
52151
52265
  ;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-util/es/hooks/useEvent.js
@@ -52163,7 +52277,7 @@ function useEvent_useEvent(callback) {
52163
52277
  return memoFn;
52164
52278
  }
52165
52279
  ;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-util/es/Dom/canUseDom.js
52166
- function Dom_canUseDom_canUseDom() {
52280
+ function es_Dom_canUseDom_canUseDom() {
52167
52281
  return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
52168
52282
  }
52169
52283
  ;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-util/es/hooks/useLayoutEffect.js
@@ -52173,18 +52287,18 @@ function Dom_canUseDom_canUseDom() {
52173
52287
  /**
52174
52288
  * Wrap `React.useLayoutEffect` which will not throw warning message in test env
52175
52289
  */
52176
- var useLayoutEffect_useLayoutEffect = true && Dom_canUseDom_canUseDom() ? external_react_.useLayoutEffect : external_react_.useEffect;
52177
- /* harmony default export */ var rc_util_es_hooks_useLayoutEffect = ((/* unused pure expression or super */ null && (useLayoutEffect_useLayoutEffect)));
52178
- var useLayoutEffect_useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
52290
+ var hooks_useLayoutEffect_useLayoutEffect = true && es_Dom_canUseDom_canUseDom() ? external_react_.useLayoutEffect : external_react_.useEffect;
52291
+ /* harmony default export */ var rc_util_es_hooks_useLayoutEffect = ((/* unused pure expression or super */ null && (hooks_useLayoutEffect_useLayoutEffect)));
52292
+ var hooks_useLayoutEffect_useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
52179
52293
  var firstMountRef = external_react_.useRef(true);
52180
- useLayoutEffect_useLayoutEffect(function () {
52294
+ hooks_useLayoutEffect_useLayoutEffect(function () {
52181
52295
  if (!firstMountRef.current) {
52182
52296
  return callback();
52183
52297
  }
52184
52298
  }, deps);
52185
52299
 
52186
52300
  // We tell react that first mount has passed
52187
- useLayoutEffect_useLayoutEffect(function () {
52301
+ hooks_useLayoutEffect_useLayoutEffect(function () {
52188
52302
  firstMountRef.current = false;
52189
52303
  return function () {
52190
52304
  firstMountRef.current = true;
@@ -52199,7 +52313,7 @@ var useLayoutEffect_useLayoutUpdateEffect = function useLayoutUpdateEffect(callb
52199
52313
  * We do not make this auto is to avoid real memory leak.
52200
52314
  * Developer should confirm it's safe to ignore themselves.
52201
52315
  */
52202
- function useState_useSafeState(defaultValue) {
52316
+ function hooks_useState_useSafeState(defaultValue) {
52203
52317
  var destroyRef = external_react_.useRef(false);
52204
52318
  var _React$useState = external_react_.useState(defaultValue),
52205
52319
  _React$useState2 = (0,slicedToArray/* default */.A)(_React$useState, 2),
@@ -52241,7 +52355,7 @@ function useMergedState_useMergedState(defaultStateValue, option) {
52241
52355
  postState = _ref.postState;
52242
52356
 
52243
52357
  // ======================= Init =======================
52244
- var _useState = useState_useSafeState(function () {
52358
+ var _useState = hooks_useState_useSafeState(function () {
52245
52359
  if (useMergedState_hasValue(value)) {
52246
52360
  return value;
52247
52361
  } else if (useMergedState_hasValue(defaultValue)) {
@@ -52258,11 +52372,11 @@ function useMergedState_useMergedState(defaultStateValue, option) {
52258
52372
 
52259
52373
  // ====================== Change ======================
52260
52374
  var onChangeFn = useEvent_useEvent(onChange);
52261
- var _useState3 = useState_useSafeState([mergedValue]),
52375
+ var _useState3 = hooks_useState_useSafeState([mergedValue]),
52262
52376
  _useState4 = (0,slicedToArray/* default */.A)(_useState3, 2),
52263
52377
  prevValue = _useState4[0],
52264
52378
  setPrevValue = _useState4[1];
52265
- useLayoutEffect_useLayoutUpdateEffect(function () {
52379
+ hooks_useLayoutEffect_useLayoutUpdateEffect(function () {
52266
52380
  var prev = prevValue[0];
52267
52381
  if (innerValue !== prev) {
52268
52382
  onChangeFn(innerValue, prev);
@@ -52270,7 +52384,7 @@ function useMergedState_useMergedState(defaultStateValue, option) {
52270
52384
  }, [prevValue]);
52271
52385
 
52272
52386
  // Sync value back to `undefined` when it from control to un-control
52273
- useLayoutEffect_useLayoutUpdateEffect(function () {
52387
+ hooks_useLayoutEffect_useLayoutUpdateEffect(function () {
52274
52388
  if (!useMergedState_hasValue(value)) {
52275
52389
  setInnerValue(value);
52276
52390
  }
@@ -52996,55 +53110,55 @@ var KeyCode_KeyCode = {
52996
53110
  };
52997
53111
  /* harmony default export */ var rc_util_es_KeyCode = (KeyCode_KeyCode);
52998
53112
  ;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-util/es/raf.js
52999
- var es_raf_raf = function raf(callback) {
53113
+ var rc_util_es_raf_raf = function raf(callback) {
53000
53114
  return +setTimeout(callback, 16);
53001
53115
  };
53002
- var raf_caf = function caf(num) {
53116
+ var es_raf_caf = function caf(num) {
53003
53117
  return clearTimeout(num);
53004
53118
  };
53005
53119
  if (typeof window !== 'undefined' && 'requestAnimationFrame' in window) {
53006
- es_raf_raf = function raf(callback) {
53120
+ rc_util_es_raf_raf = function raf(callback) {
53007
53121
  return window.requestAnimationFrame(callback);
53008
53122
  };
53009
- raf_caf = function caf(handle) {
53123
+ es_raf_caf = function caf(handle) {
53010
53124
  return window.cancelAnimationFrame(handle);
53011
53125
  };
53012
53126
  }
53013
- var raf_rafUUID = 0;
53014
- var raf_rafIds = new Map();
53015
- function raf_cleanup(id) {
53016
- raf_rafIds.delete(id);
53127
+ var es_raf_rafUUID = 0;
53128
+ var es_raf_rafIds = new Map();
53129
+ function es_raf_cleanup(id) {
53130
+ es_raf_rafIds.delete(id);
53017
53131
  }
53018
- var es_raf_wrapperRaf = function wrapperRaf(callback) {
53132
+ var rc_util_es_raf_wrapperRaf = function wrapperRaf(callback) {
53019
53133
  var times = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
53020
- raf_rafUUID += 1;
53021
- var id = raf_rafUUID;
53134
+ es_raf_rafUUID += 1;
53135
+ var id = es_raf_rafUUID;
53022
53136
  function callRef(leftTimes) {
53023
53137
  if (leftTimes === 0) {
53024
53138
  // Clean up
53025
- raf_cleanup(id);
53139
+ es_raf_cleanup(id);
53026
53140
 
53027
53141
  // Trigger
53028
53142
  callback();
53029
53143
  } else {
53030
53144
  // Next raf
53031
- var realId = es_raf_raf(function () {
53145
+ var realId = rc_util_es_raf_raf(function () {
53032
53146
  callRef(leftTimes - 1);
53033
53147
  });
53034
53148
 
53035
53149
  // Bind real raf id
53036
- raf_rafIds.set(id, realId);
53150
+ es_raf_rafIds.set(id, realId);
53037
53151
  }
53038
53152
  }
53039
53153
  callRef(times);
53040
53154
  return id;
53041
53155
  };
53042
- es_raf_wrapperRaf.cancel = function (id) {
53043
- var realId = raf_rafIds.get(id);
53044
- raf_cleanup(realId);
53045
- return raf_caf(realId);
53156
+ rc_util_es_raf_wrapperRaf.cancel = function (id) {
53157
+ var realId = es_raf_rafIds.get(id);
53158
+ es_raf_cleanup(realId);
53159
+ return es_raf_caf(realId);
53046
53160
  };
53047
- /* harmony default export */ var es_raf = (es_raf_wrapperRaf);
53161
+ /* harmony default export */ var es_raf = (rc_util_es_raf_wrapperRaf);
53048
53162
  ;// CONCATENATED MODULE: ../../node_modules/rc-menu/node_modules/rc-util/es/Dom/isVisible.js
53049
53163
  /* harmony default export */ var Dom_isVisible = (function (element) {
53050
53164
  if (!element) {
@@ -57887,7 +58001,7 @@ function hooks_useEvent_useEvent(callback) {
57887
58001
  return memoFn;
57888
58002
  }
57889
58003
  ;// CONCATENATED MODULE: ../../node_modules/rc-checkbox/node_modules/rc-util/es/Dom/canUseDom.js
57890
- function es_Dom_canUseDom_canUseDom() {
58004
+ function rc_util_es_Dom_canUseDom_canUseDom() {
57891
58005
  return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
57892
58006
  }
57893
58007
  ;// CONCATENATED MODULE: ../../node_modules/rc-checkbox/node_modules/rc-util/es/hooks/useLayoutEffect.js
@@ -57897,8 +58011,8 @@ function es_Dom_canUseDom_canUseDom() {
57897
58011
  /**
57898
58012
  * Wrap `React.useLayoutEffect` which will not throw warning message in test env
57899
58013
  */
57900
- var useInternalLayoutEffect = true && es_Dom_canUseDom_canUseDom() ? external_react_.useLayoutEffect : external_react_.useEffect;
57901
- var hooks_useLayoutEffect_useLayoutEffect = function useLayoutEffect(callback, deps) {
58014
+ var useInternalLayoutEffect = true && rc_util_es_Dom_canUseDom_canUseDom() ? external_react_.useLayoutEffect : external_react_.useEffect;
58015
+ var es_hooks_useLayoutEffect_useLayoutEffect = function useLayoutEffect(callback, deps) {
57902
58016
  var firstMountRef = external_react_.useRef(true);
57903
58017
  useInternalLayoutEffect(function () {
57904
58018
  return callback(firstMountRef.current);
@@ -57912,14 +58026,14 @@ var hooks_useLayoutEffect_useLayoutEffect = function useLayoutEffect(callback, d
57912
58026
  };
57913
58027
  }, []);
57914
58028
  };
57915
- var hooks_useLayoutEffect_useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
57916
- hooks_useLayoutEffect_useLayoutEffect(function (firstMount) {
58029
+ var es_hooks_useLayoutEffect_useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
58030
+ es_hooks_useLayoutEffect_useLayoutEffect(function (firstMount) {
57917
58031
  if (!firstMount) {
57918
58032
  return callback();
57919
58033
  }
57920
58034
  }, deps);
57921
58035
  };
57922
- /* harmony default export */ var node_modules_rc_util_es_hooks_useLayoutEffect = ((/* unused pure expression or super */ null && (hooks_useLayoutEffect_useLayoutEffect)));
58036
+ /* harmony default export */ var node_modules_rc_util_es_hooks_useLayoutEffect = ((/* unused pure expression or super */ null && (es_hooks_useLayoutEffect_useLayoutEffect)));
57923
58037
  ;// CONCATENATED MODULE: ../../node_modules/rc-checkbox/node_modules/rc-util/es/hooks/useState.js
57924
58038
 
57925
58039
 
@@ -57928,7 +58042,7 @@ var hooks_useLayoutEffect_useLayoutUpdateEffect = function useLayoutUpdateEffect
57928
58042
  * We do not make this auto is to avoid real memory leak.
57929
58043
  * Developer should confirm it's safe to ignore themselves.
57930
58044
  */
57931
- function hooks_useState_useSafeState(defaultValue) {
58045
+ function es_hooks_useState_useSafeState(defaultValue) {
57932
58046
  var destroyRef = external_react_.useRef(false);
57933
58047
  var _React$useState = external_react_.useState(defaultValue),
57934
58048
  _React$useState2 = (0,slicedToArray/* default */.A)(_React$useState, 2),
@@ -57970,7 +58084,7 @@ function hooks_useMergedState_useMergedState(defaultStateValue, option) {
57970
58084
  postState = _ref.postState;
57971
58085
 
57972
58086
  // ======================= Init =======================
57973
- var _useState = hooks_useState_useSafeState(function () {
58087
+ var _useState = es_hooks_useState_useSafeState(function () {
57974
58088
  if (hooks_useMergedState_hasValue(value)) {
57975
58089
  return value;
57976
58090
  } else if (hooks_useMergedState_hasValue(defaultValue)) {
@@ -57987,11 +58101,11 @@ function hooks_useMergedState_useMergedState(defaultStateValue, option) {
57987
58101
 
57988
58102
  // ====================== Change ======================
57989
58103
  var onChangeFn = hooks_useEvent_useEvent(onChange);
57990
- var _useState3 = hooks_useState_useSafeState([mergedValue]),
58104
+ var _useState3 = es_hooks_useState_useSafeState([mergedValue]),
57991
58105
  _useState4 = (0,slicedToArray/* default */.A)(_useState3, 2),
57992
58106
  prevValue = _useState4[0],
57993
58107
  setPrevValue = _useState4[1];
57994
- hooks_useLayoutEffect_useLayoutUpdateEffect(function () {
58108
+ es_hooks_useLayoutEffect_useLayoutUpdateEffect(function () {
57995
58109
  var prev = prevValue[0];
57996
58110
  if (innerValue !== prev) {
57997
58111
  onChangeFn(innerValue, prev);
@@ -57999,7 +58113,7 @@ function hooks_useMergedState_useMergedState(defaultStateValue, option) {
57999
58113
  }, [prevValue]);
58000
58114
 
58001
58115
  // Sync value back to `undefined` when it from control to un-control
58002
- hooks_useLayoutEffect_useLayoutUpdateEffect(function () {
58116
+ es_hooks_useLayoutEffect_useLayoutUpdateEffect(function () {
58003
58117
  if (!hooks_useMergedState_hasValue(value)) {
58004
58118
  setInnerValue(value);
58005
58119
  }
@@ -65413,6 +65527,8 @@ Pagination.defaultProps = {
65413
65527
  /* harmony default export */ var es_Pagination = (Pagination);
65414
65528
  ;// CONCATENATED MODULE: ../../node_modules/rc-pagination/es/index.js
65415
65529
 
65530
+ // EXTERNAL MODULE: ../../node_modules/rc-util/es/hooks/useLayoutEffect.js
65531
+ var node_modules_rc_util_es_hooks_useLayoutEffect_0 = __webpack_require__(84238);
65416
65532
  // EXTERNAL MODULE: ../../node_modules/rc-util/es/isMobile.js
65417
65533
  var es_isMobile = __webpack_require__(26651);
65418
65534
  ;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-select/es/hooks/useBaseProps.js
@@ -65575,55 +65691,566 @@ function pickAttrs(props) {
65575
65691
  });
65576
65692
  return attrs;
65577
65693
  }
65578
- ;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-select/es/TransBtn.js
65694
+ ;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-overflow/es/Item.js
65579
65695
 
65580
65696
 
65581
- var TransBtn = function TransBtn(_ref) {
65582
- var className = _ref.className,
65583
- customizeIcon = _ref.customizeIcon,
65584
- customizeIconProps = _ref.customizeIconProps,
65585
- _onMouseDown = _ref.onMouseDown,
65586
- onClick = _ref.onClick,
65587
- children = _ref.children;
65588
- var icon;
65589
- if (typeof customizeIcon === 'function') {
65590
- icon = customizeIcon(customizeIconProps);
65591
- } else {
65592
- icon = customizeIcon;
65697
+
65698
+ var es_Item_excluded = ["prefixCls", "invalidate", "item", "renderItem", "responsive", "responsiveDisabled", "registerSize", "itemKey", "className", "style", "children", "display", "order", "component"];
65699
+
65700
+
65701
+ // Use shared variable to save bundle size
65702
+
65703
+ var Item_UNDEFINED = undefined;
65704
+
65705
+ function Item_InternalItem(props, ref) {
65706
+ var prefixCls = props.prefixCls,
65707
+ invalidate = props.invalidate,
65708
+ item = props.item,
65709
+ renderItem = props.renderItem,
65710
+ responsive = props.responsive,
65711
+ responsiveDisabled = props.responsiveDisabled,
65712
+ registerSize = props.registerSize,
65713
+ itemKey = props.itemKey,
65714
+ className = props.className,
65715
+ style = props.style,
65716
+ children = props.children,
65717
+ display = props.display,
65718
+ order = props.order,
65719
+ _props$component = props.component,
65720
+ Component = _props$component === void 0 ? 'div' : _props$component,
65721
+ restProps = (0,objectWithoutProperties/* default */.A)(props, es_Item_excluded);
65722
+
65723
+ var mergedHidden = responsive && !display; // ================================ Effect ================================
65724
+
65725
+ function internalRegisterSize(width) {
65726
+ registerSize(itemKey, width);
65593
65727
  }
65594
- return /*#__PURE__*/external_react_.createElement("span", {
65595
- className: className,
65596
- onMouseDown: function onMouseDown(event) {
65597
- event.preventDefault();
65598
- if (_onMouseDown) {
65599
- _onMouseDown(event);
65600
- }
65601
- },
65602
- style: {
65603
- userSelect: 'none',
65604
- WebkitUserSelect: 'none'
65605
- },
65606
- unselectable: "on",
65607
- onClick: onClick,
65608
- "aria-hidden": true
65609
- }, icon !== undefined ? icon : /*#__PURE__*/external_react_.createElement("span", {
65610
- className: classnames_default()(className.split(/\s+/).map(function (cls) {
65611
- return "".concat(cls, "-icon");
65612
- }))
65613
- }, children));
65614
- };
65615
- /* harmony default export */ var es_TransBtn = (TransBtn);
65616
- ;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-select/es/Selector/Input.js
65617
65728
 
65729
+ external_react_.useEffect(function () {
65730
+ return function () {
65731
+ internalRegisterSize(null);
65732
+ };
65733
+ }, []); // ================================ Render ================================
65618
65734
 
65735
+ var childNode = renderItem && item !== Item_UNDEFINED ? renderItem(item) : children;
65736
+ var overflowStyle;
65619
65737
 
65738
+ if (!invalidate) {
65739
+ overflowStyle = {
65740
+ opacity: mergedHidden ? 0 : 1,
65741
+ height: mergedHidden ? 0 : Item_UNDEFINED,
65742
+ overflowY: mergedHidden ? 'hidden' : Item_UNDEFINED,
65743
+ order: responsive ? order : Item_UNDEFINED,
65744
+ pointerEvents: mergedHidden ? 'none' : Item_UNDEFINED,
65745
+ position: mergedHidden ? 'absolute' : Item_UNDEFINED
65746
+ };
65747
+ }
65620
65748
 
65749
+ var overflowProps = {};
65621
65750
 
65622
- var Selector_Input_Input = function Input(_ref, ref) {
65623
- var _inputNode2, _inputNode2$props;
65624
- var prefixCls = _ref.prefixCls,
65625
- id = _ref.id,
65626
- inputElement = _ref.inputElement,
65751
+ if (mergedHidden) {
65752
+ overflowProps['aria-hidden'] = true;
65753
+ }
65754
+
65755
+ var itemNode = /*#__PURE__*/external_react_.createElement(Component, (0,esm_extends/* default */.A)({
65756
+ className: classnames_default()(!invalidate && prefixCls, className),
65757
+ style: (0,objectSpread2/* default */.A)((0,objectSpread2/* default */.A)({}, overflowStyle), style)
65758
+ }, overflowProps, restProps, {
65759
+ ref: ref
65760
+ }), childNode);
65761
+
65762
+ if (responsive) {
65763
+ itemNode = /*#__PURE__*/external_react_.createElement(es["default"], {
65764
+ onResize: function onResize(_ref) {
65765
+ var offsetWidth = _ref.offsetWidth;
65766
+ internalRegisterSize(offsetWidth);
65767
+ },
65768
+ disabled: responsiveDisabled
65769
+ }, itemNode);
65770
+ }
65771
+
65772
+ return itemNode;
65773
+ }
65774
+
65775
+ var es_Item_Item = /*#__PURE__*/external_react_.forwardRef(Item_InternalItem);
65776
+ es_Item_Item.displayName = 'Item';
65777
+ /* harmony default export */ var rc_overflow_es_Item = (es_Item_Item);
65778
+ // EXTERNAL MODULE: ../../node_modules/rc-util/es/hooks/useState.js
65779
+ var hooks_useState = __webpack_require__(39348);
65780
+ ;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-overflow/es/hooks/useBatchFrameState.js
65781
+
65782
+
65783
+
65784
+
65785
+ /**
65786
+ * State generate. Return a `setState` but it will flush all state with one render to save perf.
65787
+ * This is not a realization of `unstable_batchedUpdates`.
65788
+ */
65789
+
65790
+ function useBatchFrameState_useBatchFrameState() {
65791
+ var _useState = (0,hooks_useState/* default */.A)({}),
65792
+ _useState2 = (0,slicedToArray/* default */.A)(_useState, 2),
65793
+ forceUpdate = _useState2[1];
65794
+
65795
+ var statesRef = (0,external_react_.useRef)([]);
65796
+ var walkingIndex = 0;
65797
+ var beforeFrameId = 0;
65798
+
65799
+ function createState(defaultValue) {
65800
+ var myIndex = walkingIndex;
65801
+ walkingIndex += 1; // Fill value if not exist yet
65802
+
65803
+ if (statesRef.current.length < myIndex + 1) {
65804
+ statesRef.current[myIndex] = defaultValue;
65805
+ } // Return filled as `setState`
65806
+
65807
+
65808
+ var value = statesRef.current[myIndex];
65809
+
65810
+ function setValue(val) {
65811
+ statesRef.current[myIndex] = typeof val === 'function' ? val(statesRef.current[myIndex]) : val;
65812
+ raf/* default */.A.cancel(beforeFrameId); // Flush with batch
65813
+
65814
+ beforeFrameId = (0,raf/* default */.A)(function () {
65815
+ forceUpdate({}, true);
65816
+ });
65817
+ }
65818
+
65819
+ return [value, setValue];
65820
+ }
65821
+
65822
+ return createState;
65823
+ }
65824
+ ;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-overflow/es/RawItem.js
65825
+
65826
+
65827
+ var es_RawItem_excluded = ["component"],
65828
+ RawItem_excluded2 = ["className"],
65829
+ RawItem_excluded3 = ["className"];
65830
+
65831
+
65832
+
65833
+
65834
+
65835
+ var RawItem_InternalRawItem = function InternalRawItem(props, ref) {
65836
+ var context = external_react_.useContext(Overflow_OverflowContext); // Render directly when context not provided
65837
+
65838
+ if (!context) {
65839
+ var _props$component = props.component,
65840
+ Component = _props$component === void 0 ? 'div' : _props$component,
65841
+ _restProps = (0,objectWithoutProperties/* default */.A)(props, es_RawItem_excluded);
65842
+
65843
+ return /*#__PURE__*/external_react_.createElement(Component, (0,esm_extends/* default */.A)({}, _restProps, {
65844
+ ref: ref
65845
+ }));
65846
+ }
65847
+
65848
+ var contextClassName = context.className,
65849
+ restContext = (0,objectWithoutProperties/* default */.A)(context, RawItem_excluded2);
65850
+
65851
+ var className = props.className,
65852
+ restProps = (0,objectWithoutProperties/* default */.A)(props, RawItem_excluded3); // Do not pass context to sub item to avoid multiple measure
65853
+
65854
+
65855
+ return /*#__PURE__*/external_react_.createElement(Overflow_OverflowContext.Provider, {
65856
+ value: null
65857
+ }, /*#__PURE__*/external_react_.createElement(rc_overflow_es_Item, (0,esm_extends/* default */.A)({
65858
+ ref: ref,
65859
+ className: classnames_default()(contextClassName, className)
65860
+ }, restContext, restProps)));
65861
+ };
65862
+
65863
+ var RawItem_RawItem = /*#__PURE__*/external_react_.forwardRef(RawItem_InternalRawItem);
65864
+ RawItem_RawItem.displayName = 'RawItem';
65865
+ /* harmony default export */ var rc_overflow_es_RawItem = (RawItem_RawItem);
65866
+ ;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-overflow/es/Overflow.js
65867
+
65868
+
65869
+
65870
+
65871
+ var es_Overflow_excluded = ["prefixCls", "data", "renderItem", "renderRawItem", "itemKey", "itemWidth", "ssr", "style", "className", "maxCount", "renderRest", "renderRawRest", "suffix", "component", "itemComponent", "onVisibleChange"];
65872
+
65873
+
65874
+
65875
+
65876
+
65877
+
65878
+
65879
+
65880
+ var Overflow_OverflowContext = /*#__PURE__*/external_react_.createContext(null);
65881
+ var Overflow_RESPONSIVE = 'responsive';
65882
+ var Overflow_INVALIDATE = 'invalidate';
65883
+
65884
+ function Overflow_defaultRenderRest(omittedItems) {
65885
+ return "+ ".concat(omittedItems.length, " ...");
65886
+ }
65887
+
65888
+ function Overflow_Overflow(props, ref) {
65889
+ var _props$prefixCls = props.prefixCls,
65890
+ prefixCls = _props$prefixCls === void 0 ? 'rc-overflow' : _props$prefixCls,
65891
+ _props$data = props.data,
65892
+ data = _props$data === void 0 ? [] : _props$data,
65893
+ renderItem = props.renderItem,
65894
+ renderRawItem = props.renderRawItem,
65895
+ itemKey = props.itemKey,
65896
+ _props$itemWidth = props.itemWidth,
65897
+ itemWidth = _props$itemWidth === void 0 ? 10 : _props$itemWidth,
65898
+ ssr = props.ssr,
65899
+ style = props.style,
65900
+ className = props.className,
65901
+ maxCount = props.maxCount,
65902
+ renderRest = props.renderRest,
65903
+ renderRawRest = props.renderRawRest,
65904
+ suffix = props.suffix,
65905
+ _props$component = props.component,
65906
+ Component = _props$component === void 0 ? 'div' : _props$component,
65907
+ itemComponent = props.itemComponent,
65908
+ onVisibleChange = props.onVisibleChange,
65909
+ restProps = (0,objectWithoutProperties/* default */.A)(props, es_Overflow_excluded);
65910
+
65911
+ var createUseState = useBatchFrameState_useBatchFrameState();
65912
+ var fullySSR = ssr === 'full';
65913
+
65914
+ var _createUseState = createUseState(null),
65915
+ _createUseState2 = (0,slicedToArray/* default */.A)(_createUseState, 2),
65916
+ containerWidth = _createUseState2[0],
65917
+ setContainerWidth = _createUseState2[1];
65918
+
65919
+ var mergedContainerWidth = containerWidth || 0;
65920
+
65921
+ var _createUseState3 = createUseState(new Map()),
65922
+ _createUseState4 = (0,slicedToArray/* default */.A)(_createUseState3, 2),
65923
+ itemWidths = _createUseState4[0],
65924
+ setItemWidths = _createUseState4[1];
65925
+
65926
+ var _createUseState5 = createUseState(0),
65927
+ _createUseState6 = (0,slicedToArray/* default */.A)(_createUseState5, 2),
65928
+ prevRestWidth = _createUseState6[0],
65929
+ setPrevRestWidth = _createUseState6[1];
65930
+
65931
+ var _createUseState7 = createUseState(0),
65932
+ _createUseState8 = (0,slicedToArray/* default */.A)(_createUseState7, 2),
65933
+ restWidth = _createUseState8[0],
65934
+ setRestWidth = _createUseState8[1];
65935
+
65936
+ var _createUseState9 = createUseState(0),
65937
+ _createUseState10 = (0,slicedToArray/* default */.A)(_createUseState9, 2),
65938
+ suffixWidth = _createUseState10[0],
65939
+ setSuffixWidth = _createUseState10[1];
65940
+
65941
+ var _useState = (0,external_react_.useState)(null),
65942
+ _useState2 = (0,slicedToArray/* default */.A)(_useState, 2),
65943
+ suffixFixedStart = _useState2[0],
65944
+ setSuffixFixedStart = _useState2[1];
65945
+
65946
+ var _useState3 = (0,external_react_.useState)(null),
65947
+ _useState4 = (0,slicedToArray/* default */.A)(_useState3, 2),
65948
+ displayCount = _useState4[0],
65949
+ setDisplayCount = _useState4[1];
65950
+
65951
+ var mergedDisplayCount = external_react_.useMemo(function () {
65952
+ if (displayCount === null && fullySSR) {
65953
+ return Number.MAX_SAFE_INTEGER;
65954
+ }
65955
+
65956
+ return displayCount || 0;
65957
+ }, [displayCount, containerWidth]);
65958
+
65959
+ var _useState5 = (0,external_react_.useState)(false),
65960
+ _useState6 = (0,slicedToArray/* default */.A)(_useState5, 2),
65961
+ restReady = _useState6[0],
65962
+ setRestReady = _useState6[1];
65963
+
65964
+ var itemPrefixCls = "".concat(prefixCls, "-item"); // Always use the max width to avoid blink
65965
+
65966
+ var mergedRestWidth = Math.max(prevRestWidth, restWidth); // ================================= Data =================================
65967
+
65968
+ var isResponsive = maxCount === Overflow_RESPONSIVE;
65969
+ var shouldResponsive = data.length && isResponsive;
65970
+ var invalidate = maxCount === Overflow_INVALIDATE;
65971
+ /**
65972
+ * When is `responsive`, we will always render rest node to get the real width of it for calculation
65973
+ */
65974
+
65975
+ var showRest = shouldResponsive || typeof maxCount === 'number' && data.length > maxCount;
65976
+ var mergedData = (0,external_react_.useMemo)(function () {
65977
+ var items = data;
65978
+
65979
+ if (shouldResponsive) {
65980
+ if (containerWidth === null && fullySSR) {
65981
+ items = data;
65982
+ } else {
65983
+ items = data.slice(0, Math.min(data.length, mergedContainerWidth / itemWidth));
65984
+ }
65985
+ } else if (typeof maxCount === 'number') {
65986
+ items = data.slice(0, maxCount);
65987
+ }
65988
+
65989
+ return items;
65990
+ }, [data, itemWidth, containerWidth, maxCount, shouldResponsive]);
65991
+ var omittedItems = (0,external_react_.useMemo)(function () {
65992
+ if (shouldResponsive) {
65993
+ return data.slice(mergedDisplayCount + 1);
65994
+ }
65995
+
65996
+ return data.slice(mergedData.length);
65997
+ }, [data, mergedData, shouldResponsive, mergedDisplayCount]); // ================================= Item =================================
65998
+
65999
+ var getKey = (0,external_react_.useCallback)(function (item, index) {
66000
+ var _ref;
66001
+
66002
+ if (typeof itemKey === 'function') {
66003
+ return itemKey(item);
66004
+ }
66005
+
66006
+ return (_ref = itemKey && (item === null || item === void 0 ? void 0 : item[itemKey])) !== null && _ref !== void 0 ? _ref : index;
66007
+ }, [itemKey]);
66008
+ var mergedRenderItem = (0,external_react_.useCallback)(renderItem || function (item) {
66009
+ return item;
66010
+ }, [renderItem]);
66011
+
66012
+ function updateDisplayCount(count, suffixFixedStartVal, notReady) {
66013
+ // React 18 will sync render even when the value is same in some case.
66014
+ // We take `mergedData` as deps which may cause dead loop if it's dynamic generate.
66015
+ // ref: https://github.com/ant-design/ant-design/issues/36559
66016
+ if (displayCount === count && (suffixFixedStartVal === undefined || suffixFixedStartVal === suffixFixedStart)) {
66017
+ return;
66018
+ }
66019
+
66020
+ setDisplayCount(count);
66021
+
66022
+ if (!notReady) {
66023
+ setRestReady(count < data.length - 1);
66024
+ onVisibleChange === null || onVisibleChange === void 0 ? void 0 : onVisibleChange(count);
66025
+ }
66026
+
66027
+ if (suffixFixedStartVal !== undefined) {
66028
+ setSuffixFixedStart(suffixFixedStartVal);
66029
+ }
66030
+ } // ================================= Size =================================
66031
+
66032
+
66033
+ function onOverflowResize(_, element) {
66034
+ setContainerWidth(element.clientWidth);
66035
+ }
66036
+
66037
+ function registerSize(key, width) {
66038
+ setItemWidths(function (origin) {
66039
+ var clone = new Map(origin);
66040
+
66041
+ if (width === null) {
66042
+ clone.delete(key);
66043
+ } else {
66044
+ clone.set(key, width);
66045
+ }
66046
+
66047
+ return clone;
66048
+ });
66049
+ }
66050
+
66051
+ function registerOverflowSize(_, width) {
66052
+ setRestWidth(width);
66053
+ setPrevRestWidth(restWidth);
66054
+ }
66055
+
66056
+ function registerSuffixSize(_, width) {
66057
+ setSuffixWidth(width);
66058
+ } // ================================ Effect ================================
66059
+
66060
+
66061
+ function getItemWidth(index) {
66062
+ return itemWidths.get(getKey(mergedData[index], index));
66063
+ }
66064
+
66065
+ (0,node_modules_rc_util_es_hooks_useLayoutEffect_0/* default */.A)(function () {
66066
+ if (mergedContainerWidth && mergedRestWidth && mergedData) {
66067
+ var totalWidth = suffixWidth;
66068
+ var len = mergedData.length;
66069
+ var lastIndex = len - 1; // When data count change to 0, reset this since not loop will reach
66070
+
66071
+ if (!len) {
66072
+ updateDisplayCount(0, null);
66073
+ return;
66074
+ }
66075
+
66076
+ for (var i = 0; i < len; i += 1) {
66077
+ var currentItemWidth = getItemWidth(i); // Fully will always render
66078
+
66079
+ if (fullySSR) {
66080
+ currentItemWidth = currentItemWidth || 0;
66081
+ } // Break since data not ready
66082
+
66083
+
66084
+ if (currentItemWidth === undefined) {
66085
+ updateDisplayCount(i - 1, undefined, true);
66086
+ break;
66087
+ } // Find best match
66088
+
66089
+
66090
+ totalWidth += currentItemWidth;
66091
+
66092
+ if ( // Only one means `totalWidth` is the final width
66093
+ lastIndex === 0 && totalWidth <= mergedContainerWidth || // Last two width will be the final width
66094
+ i === lastIndex - 1 && totalWidth + getItemWidth(lastIndex) <= mergedContainerWidth) {
66095
+ // Additional check if match the end
66096
+ updateDisplayCount(lastIndex, null);
66097
+ break;
66098
+ } else if (totalWidth + mergedRestWidth > mergedContainerWidth) {
66099
+ // Can not hold all the content to show rest
66100
+ updateDisplayCount(i - 1, totalWidth - currentItemWidth - suffixWidth + restWidth);
66101
+ break;
66102
+ }
66103
+ }
66104
+
66105
+ if (suffix && getItemWidth(0) + suffixWidth > mergedContainerWidth) {
66106
+ setSuffixFixedStart(null);
66107
+ }
66108
+ }
66109
+ }, [mergedContainerWidth, itemWidths, restWidth, suffixWidth, getKey, mergedData]); // ================================ Render ================================
66110
+
66111
+ var displayRest = restReady && !!omittedItems.length;
66112
+ var suffixStyle = {};
66113
+
66114
+ if (suffixFixedStart !== null && shouldResponsive) {
66115
+ suffixStyle = {
66116
+ position: 'absolute',
66117
+ left: suffixFixedStart,
66118
+ top: 0
66119
+ };
66120
+ }
66121
+
66122
+ var itemSharedProps = {
66123
+ prefixCls: itemPrefixCls,
66124
+ responsive: shouldResponsive,
66125
+ component: itemComponent,
66126
+ invalidate: invalidate
66127
+ }; // >>>>> Choice render fun by `renderRawItem`
66128
+
66129
+ var internalRenderItemNode = renderRawItem ? function (item, index) {
66130
+ var key = getKey(item, index);
66131
+ return /*#__PURE__*/external_react_.createElement(Overflow_OverflowContext.Provider, {
66132
+ key: key,
66133
+ value: (0,objectSpread2/* default */.A)((0,objectSpread2/* default */.A)({}, itemSharedProps), {}, {
66134
+ order: index,
66135
+ item: item,
66136
+ itemKey: key,
66137
+ registerSize: registerSize,
66138
+ display: index <= mergedDisplayCount
66139
+ })
66140
+ }, renderRawItem(item, index));
66141
+ } : function (item, index) {
66142
+ var key = getKey(item, index);
66143
+ return /*#__PURE__*/external_react_.createElement(rc_overflow_es_Item, (0,esm_extends/* default */.A)({}, itemSharedProps, {
66144
+ order: index,
66145
+ key: key,
66146
+ item: item,
66147
+ renderItem: mergedRenderItem,
66148
+ itemKey: key,
66149
+ registerSize: registerSize,
66150
+ display: index <= mergedDisplayCount
66151
+ }));
66152
+ }; // >>>>> Rest node
66153
+
66154
+ var restNode;
66155
+ var restContextProps = {
66156
+ order: displayRest ? mergedDisplayCount : Number.MAX_SAFE_INTEGER,
66157
+ className: "".concat(itemPrefixCls, "-rest"),
66158
+ registerSize: registerOverflowSize,
66159
+ display: displayRest
66160
+ };
66161
+
66162
+ if (!renderRawRest) {
66163
+ var mergedRenderRest = renderRest || Overflow_defaultRenderRest;
66164
+ restNode = /*#__PURE__*/external_react_.createElement(rc_overflow_es_Item, (0,esm_extends/* default */.A)({}, itemSharedProps, restContextProps), typeof mergedRenderRest === 'function' ? mergedRenderRest(omittedItems) : mergedRenderRest);
66165
+ } else if (renderRawRest) {
66166
+ restNode = /*#__PURE__*/external_react_.createElement(Overflow_OverflowContext.Provider, {
66167
+ value: (0,objectSpread2/* default */.A)((0,objectSpread2/* default */.A)({}, itemSharedProps), restContextProps)
66168
+ }, renderRawRest(omittedItems));
66169
+ }
66170
+
66171
+ var overflowNode = /*#__PURE__*/external_react_.createElement(Component, (0,esm_extends/* default */.A)({
66172
+ className: classnames_default()(!invalidate && prefixCls, className),
66173
+ style: style,
66174
+ ref: ref
66175
+ }, restProps), mergedData.map(internalRenderItemNode), showRest ? restNode : null, suffix && /*#__PURE__*/external_react_.createElement(rc_overflow_es_Item, (0,esm_extends/* default */.A)({}, itemSharedProps, {
66176
+ responsive: isResponsive,
66177
+ responsiveDisabled: !shouldResponsive,
66178
+ order: mergedDisplayCount,
66179
+ className: "".concat(itemPrefixCls, "-suffix"),
66180
+ registerSize: registerSuffixSize,
66181
+ display: true,
66182
+ style: suffixStyle
66183
+ }), suffix));
66184
+
66185
+ if (isResponsive) {
66186
+ overflowNode = /*#__PURE__*/external_react_.createElement(es["default"], {
66187
+ onResize: onOverflowResize,
66188
+ disabled: !shouldResponsive
66189
+ }, overflowNode);
66190
+ }
66191
+
66192
+ return overflowNode;
66193
+ }
66194
+
66195
+ var Overflow_ForwardOverflow = /*#__PURE__*/external_react_.forwardRef(Overflow_Overflow);
66196
+ Overflow_ForwardOverflow.displayName = 'Overflow';
66197
+ Overflow_ForwardOverflow.Item = rc_overflow_es_RawItem;
66198
+ Overflow_ForwardOverflow.RESPONSIVE = Overflow_RESPONSIVE;
66199
+ Overflow_ForwardOverflow.INVALIDATE = Overflow_INVALIDATE; // Convert to generic type
66200
+
66201
+ /* harmony default export */ var rc_overflow_es_Overflow = (Overflow_ForwardOverflow);
66202
+ ;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-overflow/es/index.js
66203
+
66204
+ /* harmony default export */ var node_modules_rc_overflow_es = (rc_overflow_es_Overflow);
66205
+ ;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-select/es/TransBtn.js
66206
+
66207
+
66208
+ var TransBtn = function TransBtn(_ref) {
66209
+ var className = _ref.className,
66210
+ customizeIcon = _ref.customizeIcon,
66211
+ customizeIconProps = _ref.customizeIconProps,
66212
+ _onMouseDown = _ref.onMouseDown,
66213
+ onClick = _ref.onClick,
66214
+ children = _ref.children;
66215
+ var icon;
66216
+ if (typeof customizeIcon === 'function') {
66217
+ icon = customizeIcon(customizeIconProps);
66218
+ } else {
66219
+ icon = customizeIcon;
66220
+ }
66221
+ return /*#__PURE__*/external_react_.createElement("span", {
66222
+ className: className,
66223
+ onMouseDown: function onMouseDown(event) {
66224
+ event.preventDefault();
66225
+ if (_onMouseDown) {
66226
+ _onMouseDown(event);
66227
+ }
66228
+ },
66229
+ style: {
66230
+ userSelect: 'none',
66231
+ WebkitUserSelect: 'none'
66232
+ },
66233
+ unselectable: "on",
66234
+ onClick: onClick,
66235
+ "aria-hidden": true
66236
+ }, icon !== undefined ? icon : /*#__PURE__*/external_react_.createElement("span", {
66237
+ className: classnames_default()(className.split(/\s+/).map(function (cls) {
66238
+ return "".concat(cls, "-icon");
66239
+ }))
66240
+ }, children));
66241
+ };
66242
+ /* harmony default export */ var es_TransBtn = (TransBtn);
66243
+ ;// CONCATENATED MODULE: ../../node_modules/antd/node_modules/rc-select/es/Selector/Input.js
66244
+
66245
+
66246
+
66247
+
66248
+
66249
+ var Selector_Input_Input = function Input(_ref, ref) {
66250
+ var _inputNode2, _inputNode2$props;
66251
+ var prefixCls = _ref.prefixCls,
66252
+ id = _ref.id,
66253
+ inputElement = _ref.inputElement,
65627
66254
  disabled = _ref.disabled,
65628
66255
  tabIndex = _ref.tabIndex,
65629
66256
  autoFocus = _ref.autoFocus,
@@ -65751,7 +66378,7 @@ function getTitle(item) {
65751
66378
  /**
65752
66379
  * Wrap `React.useLayoutEffect` which will not throw warning message in test env
65753
66380
  */
65754
- function es_hooks_useLayoutEffect_useLayoutEffect(effect, deps) {
66381
+ function rc_select_es_hooks_useLayoutEffect_useLayoutEffect(effect, deps) {
65755
66382
  // Never happen in test env
65756
66383
  if (isBrowserClient) {
65757
66384
  /* istanbul ignore next */
@@ -65829,7 +66456,7 @@ var SelectSelector = function SelectSelector(props) {
65829
66456
  var inputEditable = mode === 'tags' || mode === "multiple" && autoClearSearchValue === false || showSearch && (open || focused);
65830
66457
 
65831
66458
  // We measure width and set to the input immediately
65832
- es_hooks_useLayoutEffect_useLayoutEffect(function () {
66459
+ rc_select_es_hooks_useLayoutEffect_useLayoutEffect(function () {
65833
66460
  setInputWidth(measureRef.current.scrollWidth);
65834
66461
  }, [inputValue]);
65835
66462
 
@@ -65929,7 +66556,7 @@ var SelectSelector = function SelectSelector(props) {
65929
66556
  }, inputValue, "\xA0"));
65930
66557
 
65931
66558
  // >>> Selections
65932
- var selectionNode = /*#__PURE__*/external_react_.createElement(rc_overflow_es, {
66559
+ var selectionNode = /*#__PURE__*/external_react_.createElement(node_modules_rc_overflow_es, {
65933
66560
  prefixCls: "".concat(selectionPrefixCls, "-overflow"),
65934
66561
  data: values,
65935
66562
  renderItem: renderItem,
@@ -66873,7 +67500,7 @@ var BaseSelect = /*#__PURE__*/external_react_.forwardRef(function (props, ref) {
66873
67500
  function onPopupMouseEnter() {
66874
67501
  forceUpdate({});
66875
67502
  }
66876
- (0,es_hooks_useLayoutEffect/* default */.A)(function () {
67503
+ (0,node_modules_rc_util_es_hooks_useLayoutEffect_0/* default */.A)(function () {
66877
67504
  if (triggerOpen) {
66878
67505
  var _containerRef$current;
66879
67506
  var newWidth = Math.ceil((_containerRef$current = containerRef.current) === null || _containerRef$current === void 0 ? void 0 : _containerRef$current.offsetWidth);
@@ -67653,7 +68280,7 @@ var ScrollBar = /*#__PURE__*/function (_React$Component) {
67653
68280
 
67654
68281
  ;// CONCATENATED MODULE: ../../node_modules/rc-virtual-list/es/Item.js
67655
68282
 
67656
- function es_Item_Item(_ref) {
68283
+ function rc_virtual_list_es_Item_Item(_ref) {
67657
68284
  var children = _ref.children,
67658
68285
  setRef = _ref.setRef;
67659
68286
  var refFunc = external_react_.useCallback(function (node) {
@@ -67673,7 +68300,7 @@ function useChildren(list, startIndex, endIndex, setNodeRef, renderFunc, _ref) {
67673
68300
  var node = renderFunc(item, eleIndex, {// style: status === 'MEASURE_START' ? { visibility: 'hidden' } : {},
67674
68301
  });
67675
68302
  var key = getKey(item);
67676
- return /*#__PURE__*/external_react_.createElement(es_Item_Item, {
68303
+ return /*#__PURE__*/external_react_.createElement(rc_virtual_list_es_Item_Item, {
67677
68304
  key: key,
67678
68305
  setRef: function setRef(ele) {
67679
68306
  return setNodeRef(item, ele);
@@ -68175,7 +68802,7 @@ function useMobileTouchMove(inVirtual, listRef, callback) {
68175
68802
  }
68176
68803
  };
68177
68804
 
68178
- (0,es_hooks_useLayoutEffect/* default */.A)(function () {
68805
+ (0,node_modules_rc_util_es_hooks_useLayoutEffect_0/* default */.A)(function () {
68179
68806
  if (inVirtual) {
68180
68807
  listRef.current.addEventListener('touchstart', onTouchStart);
68181
68808
  }
@@ -68465,7 +69092,7 @@ function RawList(props, ref) {
68465
69092
  });
68466
69093
  return true;
68467
69094
  });
68468
- (0,es_hooks_useLayoutEffect/* default */.A)(function () {
69095
+ (0,node_modules_rc_util_es_hooks_useLayoutEffect_0/* default */.A)(function () {
68469
69096
  // Firefox only
68470
69097
  function onMozMousePixelScroll(e) {
68471
69098
  if (useVirtual) {
@@ -68498,7 +69125,7 @@ function RawList(props, ref) {
68498
69125
 
68499
69126
  /** We need told outside that some list not rendered */
68500
69127
 
68501
- (0,es_hooks_useLayoutEffect/* default */.A)(function () {
69128
+ (0,node_modules_rc_util_es_hooks_useLayoutEffect_0/* default */.A)(function () {
68502
69129
  if (onVisibleChange) {
68503
69130
  var renderList = mergedData.slice(start, end + 1);
68504
69131
  onVisibleChange(renderList, mergedData);
@@ -70196,7 +70823,7 @@ var Item_Meta = function Meta(_a) {
70196
70823
  className: "".concat(prefixCls, "-item-meta-avatar")
70197
70824
  }, avatar), (title || description) && content);
70198
70825
  };
70199
- var Item_InternalItem = function InternalItem(_a, ref) {
70826
+ var list_Item_InternalItem = function InternalItem(_a, ref) {
70200
70827
  var customizePrefixCls = _a.prefixCls,
70201
70828
  children = _a.children,
70202
70829
  actions = _a.actions,
@@ -70259,7 +70886,7 @@ var Item_InternalItem = function InternalItem(_a, ref) {
70259
70886
  style: colStyle
70260
70887
  }, itemChildren) : itemChildren;
70261
70888
  };
70262
- var list_Item_Item = /*#__PURE__*/(0,external_react_.forwardRef)(Item_InternalItem);
70889
+ var list_Item_Item = /*#__PURE__*/(0,external_react_.forwardRef)(list_Item_InternalItem);
70263
70890
  list_Item_Item.Meta = Item_Meta;
70264
70891
  /* harmony default export */ var list_Item = (list_Item_Item);
70265
70892
  ;// CONCATENATED MODULE: ../../node_modules/antd/es/list/index.js
@@ -71785,7 +72412,7 @@ var ActionButton = function ActionButton(props) {
71785
72412
  };
71786
72413
  /* harmony default export */ var _util_ActionButton = (ActionButton);
71787
72414
  ;// CONCATENATED MODULE: ../../node_modules/@rc-component/portal/node_modules/rc-util/es/Dom/canUseDom.js
71788
- function rc_util_es_Dom_canUseDom_canUseDom() {
72415
+ function node_modules_rc_util_es_Dom_canUseDom_canUseDom() {
71789
72416
  return !!(typeof window !== 'undefined' && window.document && window.document.createElement);
71790
72417
  }
71791
72418
  ;// CONCATENATED MODULE: ../../node_modules/@rc-component/portal/node_modules/rc-util/es/hooks/useMemo.js
@@ -71875,9 +72502,9 @@ var OrderContext = /*#__PURE__*/external_react_.createContext(null);
71875
72502
  * Wrap `React.useLayoutEffect` which will not throw warning message in test env
71876
72503
  */
71877
72504
 
71878
- var rc_util_es_hooks_useLayoutEffect_useLayoutEffect = true && rc_util_es_Dom_canUseDom_canUseDom() ? external_react_.useLayoutEffect : external_react_.useEffect;
72505
+ var rc_util_es_hooks_useLayoutEffect_useLayoutEffect = true && node_modules_rc_util_es_Dom_canUseDom_canUseDom() ? external_react_.useLayoutEffect : external_react_.useEffect;
71879
72506
  /* harmony default export */ var portal_node_modules_rc_util_es_hooks_useLayoutEffect = (rc_util_es_hooks_useLayoutEffect_useLayoutEffect);
71880
- var es_hooks_useLayoutEffect_useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
72507
+ var rc_util_es_hooks_useLayoutEffect_useLayoutUpdateEffect = function useLayoutUpdateEffect(callback, deps) {
71881
72508
  var firstMountRef = React.useRef(true);
71882
72509
  rc_util_es_hooks_useLayoutEffect_useLayoutEffect(function () {
71883
72510
  if (!firstMountRef.current) {
@@ -71907,7 +72534,7 @@ var useDom_EMPTY_LIST = [];
71907
72534
 
71908
72535
  function useDom(render, debug) {
71909
72536
  var _React$useState = external_react_.useState(function () {
71910
- if (!rc_util_es_Dom_canUseDom_canUseDom()) {
72537
+ if (!node_modules_rc_util_es_Dom_canUseDom_canUseDom()) {
71911
72538
  return null;
71912
72539
  }
71913
72540
 
@@ -72043,7 +72670,7 @@ function findStyles(container) {
72043
72670
  function dynamicCSS_injectCSS(css) {
72044
72671
  var option = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
72045
72672
 
72046
- if (!rc_util_es_Dom_canUseDom_canUseDom()) {
72673
+ if (!node_modules_rc_util_es_Dom_canUseDom_canUseDom()) {
72047
72674
  return null;
72048
72675
  }
72049
72676
 
@@ -72266,7 +72893,7 @@ var getPortalContainer = function getPortalContainer(getContainer) {
72266
72893
  return false;
72267
72894
  }
72268
72895
 
72269
- if (!rc_util_es_Dom_canUseDom_canUseDom() || !getContainer) {
72896
+ if (!node_modules_rc_util_es_Dom_canUseDom_canUseDom() || !getContainer) {
72270
72897
  return null;
72271
72898
  }
72272
72899
 
@@ -72323,7 +72950,7 @@ var Portal = /*#__PURE__*/external_react_.forwardRef(function (props, ref) {
72323
72950
 
72324
72951
  var mergedContainer = innerContainer !== null && innerContainer !== void 0 ? innerContainer : defaultContainer; // ========================= Locker ==========================
72325
72952
 
72326
- useScrollLocker(autoLock && open && rc_util_es_Dom_canUseDom_canUseDom() && (mergedContainer === defaultContainer || mergedContainer === document.body)); // =========================== Ref ===========================
72953
+ useScrollLocker(autoLock && open && node_modules_rc_util_es_Dom_canUseDom_canUseDom() && (mergedContainer === defaultContainer || mergedContainer === document.body)); // =========================== Ref ===========================
72327
72954
 
72328
72955
  var childRef = null;
72329
72956
 
@@ -72336,7 +72963,7 @@ var Portal = /*#__PURE__*/external_react_.forwardRef(function (props, ref) {
72336
72963
  // Do not render when nothing need render
72337
72964
  // When innerContainer is `undefined`, it may not ready since user use ref in the same render
72338
72965
 
72339
- if (!mergedRender || !rc_util_es_Dom_canUseDom_canUseDom() || innerContainer === undefined) {
72966
+ if (!mergedRender || !node_modules_rc_util_es_Dom_canUseDom_canUseDom() || innerContainer === undefined) {
72340
72967
  return null;
72341
72968
  } // Render inline
72342
72969
 
@@ -74279,6 +74906,7 @@ var select_OptGroup = es_select.OptGroup;
74279
74906
  * It may work with multiple values, but it is not specified in the interface.
74280
74907
  */
74281
74908
 
74909
+ // TODO(DOMA-8757): default props autoClearSearchValue = false. Multi select search should not reset after selection
74282
74910
  var Select_select_Select = function Select(props) {
74283
74911
  var _classNames;
74284
74912