@next-bricks/advanced 0.41.1 → 0.41.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (111) hide show
  1. package/dist/bricks.json +4 -4
  2. package/dist/chunks/106.0bf63d17.js +3 -0
  3. package/dist/chunks/106.0bf63d17.js.map +1 -0
  4. package/dist/chunks/{1512.1ebb5474.js → 1512.b233679b.js} +2 -2
  5. package/dist/chunks/1512.b233679b.js.map +1 -0
  6. package/dist/chunks/2194.2401f5c7.js +3 -0
  7. package/dist/chunks/2194.2401f5c7.js.map +1 -0
  8. package/dist/chunks/2197.a8236ec5.js +2 -0
  9. package/dist/chunks/2197.a8236ec5.js.map +1 -0
  10. package/dist/chunks/2252.30640853.js +3 -0
  11. package/dist/chunks/2252.30640853.js.map +1 -0
  12. package/dist/chunks/2353.959b91ad.js +2 -0
  13. package/dist/chunks/2353.959b91ad.js.map +1 -0
  14. package/dist/chunks/4411.19209b9a.js +3 -0
  15. package/dist/chunks/4411.19209b9a.js.map +1 -0
  16. package/dist/chunks/{4837.888c7bb9.js → 4837.7ba6cd88.js} +2 -2
  17. package/dist/chunks/{7218.63f4633f.js.map → 4837.7ba6cd88.js.map} +1 -1
  18. package/dist/chunks/5092.77841bd7.js +2 -0
  19. package/dist/chunks/5092.77841bd7.js.map +1 -0
  20. package/dist/chunks/5479.ee021f0e.js +2 -0
  21. package/dist/chunks/5479.ee021f0e.js.map +1 -0
  22. package/dist/chunks/6070.0cb500df.js +2 -0
  23. package/dist/chunks/6070.0cb500df.js.map +1 -0
  24. package/dist/chunks/6165.e9db8e85.js +3 -0
  25. package/dist/chunks/6165.e9db8e85.js.map +1 -0
  26. package/dist/chunks/6653.63cfd8c8.js +3 -0
  27. package/dist/chunks/6653.63cfd8c8.js.map +1 -0
  28. package/dist/chunks/{7218.63f4633f.js → 7218.2797999f.js} +2 -2
  29. package/dist/chunks/{4837.888c7bb9.js.map → 7218.2797999f.js.map} +1 -1
  30. package/dist/chunks/8623.7f025f81.js +2 -0
  31. package/dist/chunks/8623.7f025f81.js.map +1 -0
  32. package/dist/chunks/9978.5a5f4c5d.js +3 -0
  33. package/dist/chunks/9978.5a5f4c5d.js.map +1 -0
  34. package/dist/chunks/{capture-snapshot.524fa157.js → capture-snapshot.7bf07b28.js} +2 -2
  35. package/dist/chunks/{capture-snapshot.524fa157.js.map → capture-snapshot.7bf07b28.js.map} +1 -1
  36. package/dist/chunks/eo-cascader.c70d4f6c.js +2 -0
  37. package/dist/chunks/eo-cascader.c70d4f6c.js.map +1 -0
  38. package/dist/chunks/eo-next-table.2c4ff2b3.js +2 -0
  39. package/dist/chunks/eo-next-table.2c4ff2b3.js.map +1 -0
  40. package/dist/chunks/eo-table.585dcd61.js +2 -0
  41. package/dist/chunks/eo-table.585dcd61.js.map +1 -0
  42. package/dist/chunks/eo-text-tooltip.c821946e.js +2 -0
  43. package/dist/chunks/{eo-text-tooltip.c1be073e.js.map → eo-text-tooltip.c821946e.js.map} +1 -1
  44. package/dist/chunks/eo-tree-select.0ce22783.js +2 -0
  45. package/dist/chunks/eo-tree-select.0ce22783.js.map +1 -0
  46. package/dist/chunks/eo-tree.6f251481.js +3 -0
  47. package/dist/chunks/eo-tree.6f251481.js.map +1 -0
  48. package/dist/chunks/eo-workbench-layout-v2.ce4c6e6f.js +2 -0
  49. package/dist/chunks/eo-workbench-layout-v2.ce4c6e6f.js.map +1 -0
  50. package/dist/chunks/eo-workbench-layout.943d79fd.js +2 -0
  51. package/dist/chunks/eo-workbench-layout.943d79fd.js.map +1 -0
  52. package/dist/chunks/{main.0cd1494b.js → main.fc227f17.js} +2 -2
  53. package/dist/chunks/{main.0cd1494b.js.map → main.fc227f17.js.map} +1 -1
  54. package/dist/index.5f296ccb.js +2 -0
  55. package/dist/{index.3844b20a.js.map → index.5f296ccb.js.map} +1 -1
  56. package/dist/manifest.json +15 -10
  57. package/dist/types.json +35 -28
  58. package/dist-types/next-table/Table.d.ts +1 -0
  59. package/dist-types/next-table/index.d.ts +4 -0
  60. package/package.json +2 -2
  61. package/dist/chunks/1512.1ebb5474.js.map +0 -1
  62. package/dist/chunks/2197.2385bc67.js +0 -2
  63. package/dist/chunks/2197.2385bc67.js.map +0 -1
  64. package/dist/chunks/2252.65e0507e.js +0 -3
  65. package/dist/chunks/2252.65e0507e.js.map +0 -1
  66. package/dist/chunks/2353.f2725e1a.js +0 -2
  67. package/dist/chunks/2353.f2725e1a.js.map +0 -1
  68. package/dist/chunks/4766.4f855e05.js +0 -3
  69. package/dist/chunks/4766.4f855e05.js.map +0 -1
  70. package/dist/chunks/5092.40336bcc.js +0 -2
  71. package/dist/chunks/5092.40336bcc.js.map +0 -1
  72. package/dist/chunks/5368.87af8ccf.js +0 -3
  73. package/dist/chunks/5368.87af8ccf.js.map +0 -1
  74. package/dist/chunks/5479.00620ca0.js +0 -2
  75. package/dist/chunks/5479.00620ca0.js.map +0 -1
  76. package/dist/chunks/5578.4acba416.js +0 -3
  77. package/dist/chunks/5578.4acba416.js.map +0 -1
  78. package/dist/chunks/6070.aefdb28c.js +0 -2
  79. package/dist/chunks/6070.aefdb28c.js.map +0 -1
  80. package/dist/chunks/613.e8771f2f.js +0 -3
  81. package/dist/chunks/613.e8771f2f.js.map +0 -1
  82. package/dist/chunks/6165.14fe2bc0.js +0 -3
  83. package/dist/chunks/6165.14fe2bc0.js.map +0 -1
  84. package/dist/chunks/9484.90783904.js +0 -2
  85. package/dist/chunks/9484.90783904.js.map +0 -1
  86. package/dist/chunks/9978.ab072b2a.js +0 -3
  87. package/dist/chunks/9978.ab072b2a.js.map +0 -1
  88. package/dist/chunks/eo-cascader.7c066651.js +0 -2
  89. package/dist/chunks/eo-cascader.7c066651.js.map +0 -1
  90. package/dist/chunks/eo-next-table.edd61270.js +0 -2
  91. package/dist/chunks/eo-next-table.edd61270.js.map +0 -1
  92. package/dist/chunks/eo-table.8c9e6a7b.js +0 -2
  93. package/dist/chunks/eo-table.8c9e6a7b.js.map +0 -1
  94. package/dist/chunks/eo-text-tooltip.c1be073e.js +0 -2
  95. package/dist/chunks/eo-tree-select.834b6bc0.js +0 -2
  96. package/dist/chunks/eo-tree-select.834b6bc0.js.map +0 -1
  97. package/dist/chunks/eo-tree.60911214.js +0 -3
  98. package/dist/chunks/eo-tree.60911214.js.map +0 -1
  99. package/dist/chunks/eo-workbench-layout-v2.264ac715.js +0 -2
  100. package/dist/chunks/eo-workbench-layout-v2.264ac715.js.map +0 -1
  101. package/dist/chunks/eo-workbench-layout.a7798047.js +0 -2
  102. package/dist/chunks/eo-workbench-layout.a7798047.js.map +0 -1
  103. package/dist/index.3844b20a.js +0 -2
  104. /package/dist/chunks/{5368.87af8ccf.js.LICENSE.txt → 106.0bf63d17.js.LICENSE.txt} +0 -0
  105. /package/dist/chunks/{5578.4acba416.js.LICENSE.txt → 2194.2401f5c7.js.LICENSE.txt} +0 -0
  106. /package/dist/chunks/{2252.65e0507e.js.LICENSE.txt → 2252.30640853.js.LICENSE.txt} +0 -0
  107. /package/dist/chunks/{4766.4f855e05.js.LICENSE.txt → 4411.19209b9a.js.LICENSE.txt} +0 -0
  108. /package/dist/chunks/{6165.14fe2bc0.js.LICENSE.txt → 6165.e9db8e85.js.LICENSE.txt} +0 -0
  109. /package/dist/chunks/{613.e8771f2f.js.LICENSE.txt → 6653.63cfd8c8.js.LICENSE.txt} +0 -0
  110. /package/dist/chunks/{9978.ab072b2a.js.LICENSE.txt → 9978.5a5f4c5d.js.LICENSE.txt} +0 -0
  111. /package/dist/chunks/{eo-tree.60911214.js.LICENSE.txt → eo-tree.6f251481.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[9484],{79484:(e,t,n)=>{n.d(t,{A:()=>me});var r=n(18769),o=n(53373),l=n.n(o),a=n(89575),i=n(83705),c=n(69740),u=n(90689),s=n(14223),d=n(17545),f=n(45712),p=n(47200),v=n(83003),h=n(64948),m=n(84445),g=n(30651),b=n(24586),C=n(41747);const A=function(){return null};var y=["children","value"];function w(e){return(0,C.A)(e).map((function(e){if(!r.isValidElement(e)||!e.type)return null;var t=e,n=t.key,o=t.props,l=o.children,a=o.value,i=(0,s.A)(o,y),u=(0,c.A)({key:n,value:a},i),d=w(l);return d.length&&(u.children=d),u})).filter((function(e){return e}))}function S(e){if(!e)return e;var t=(0,c.A)({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return(0,m.Ay)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function k(e){var t=r.useRef();t.current=e;var n=r.useCallback((function(){return t.current.apply(t,arguments)}),[]);return n}function x(e,t,n){return r.useMemo((function(){return e?n?function(e,t){var n=t.id,r=t.pId,o=t.rootPId,l={},a=[];return e.map((function(e){var t=(0,c.A)({},e),r=t[n];return l[r]=t,t.key=t.key||r,t})).forEach((function(e){var t=e[r],n=l[t];n&&(n.children=n.children||[],n.children.push(e)),(t===o||!n&&null===o)&&a.push(e)})),a}(e,(0,c.A)({id:"id",pId:"pId",rootPId:null},!0!==n?n:{})):e:w(t)}),[t,n,e])}const I=r.createContext(null);var E=n(2165),N=n(55859),O=n(34511);const P=r.createContext(null);function L(e){return!e||e.disabled||e.disableCheckbox||!1===e.checkable}function T(e){return null==e}var M={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},D=function(e,t){var n=(0,f.Vm)(),o=n.prefixCls,l=n.multiple,c=n.searchValue,s=n.toggleOpen,d=n.open,p=n.notFoundContent,v=r.useContext(P),h=v.virtual,m=v.listHeight,g=v.listItemHeight,b=v.listItemScrollOffset,C=v.treeData,A=v.fieldNames,y=v.onSelect,w=v.dropdownMatchSelectWidth,S=v.treeExpandAction,k=v.treeTitleRender,x=v.onPopupScroll,T=r.useContext(I),D=T.checkable,K=T.checkedKeys,V=T.halfCheckedKeys,H=T.treeExpandedKeys,R=T.treeDefaultExpandAll,W=T.treeDefaultExpandedKeys,$=T.onTreeExpand,_=T.treeIcon,F=T.showTreeIcon,j=T.switcherIcon,z=T.treeLine,U=T.treeNodeFilterProp,B=T.loadData,G=T.treeLoadedKeys,Q=T.treeMotion,X=T.onTreeLoad,Y=T.keyEntities,q=r.useRef(),J=(0,O.A)((function(){return C}),[d,C],(function(e,t){return t[0]&&e[1]!==t[1]})),Z=r.useState(null),ee=(0,u.A)(Z,2),te=ee[0],ne=ee[1],re=Y[te],oe=r.useMemo((function(){return D?{checked:K,halfChecked:V}:null}),[D,K,V]);r.useEffect((function(){var e;d&&!l&&K.length&&(null===(e=q.current)||void 0===e||e.scrollTo({key:K[0]}),ne(K[0]))}),[d]);var le=String(c).toLowerCase(),ae=r.useState(W),ie=(0,u.A)(ae,2),ce=ie[0],ue=ie[1],se=r.useState(null),de=(0,u.A)(se,2),fe=de[0],pe=de[1],ve=r.useMemo((function(){return H?(0,i.A)(H):c?fe:ce}),[ce,fe,H,c]);r.useEffect((function(){c&&pe(function(e,t){var n=[];return function e(r){r.forEach((function(r){var o=r[t.children];o&&(n.push(r[t.value]),e(o))}))}(e),n}(C,A))}),[c]);var he=function(e){e.preventDefault()},me=function(e,t){var n=t.node;D&&L(n)||(y(n.key,{selected:!K.includes(n.key)}),l||s(!1))};if(r.useImperativeHandle(t,(function(){var e;return{scrollTo:null===(e=q.current)||void 0===e?void 0:e.scrollTo,onKeyDown:function(e){var t;switch(e.which){case N.A.UP:case N.A.DOWN:case N.A.LEFT:case N.A.RIGHT:null===(t=q.current)||void 0===t||t.onKeyDown(e);break;case N.A.ENTER:if(re){var n=(null==re?void 0:re.node)||{},r=n.selectable,o=n.value;!1!==r&&me(0,{node:{key:te},selected:!K.includes(o)})}break;case N.A.ESC:s(!1)}},onKeyUp:function(){}}})),0===J.length)return r.createElement("div",{role:"listbox",className:"".concat(o,"-empty"),onMouseDown:he},p);var ge={fieldNames:A};return G&&(ge.loadedKeys=G),ve&&(ge.expandedKeys=ve),r.createElement("div",{onMouseDown:he},re&&d&&r.createElement("span",{style:M,"aria-live":"assertive"},re.node.value),r.createElement(E.A,(0,a.A)({ref:q,focusable:!1,prefixCls:"".concat(o,"-tree"),treeData:J,height:m,itemHeight:g,itemScrollOffset:b,virtual:!1!==h&&!1!==w,multiple:l,icon:_,showIcon:F,switcherIcon:j,showLine:z,loadData:c?null:B,motion:Q,activeKey:te,checkable:D,checkStrictly:!0,checkedKeys:oe,selectedKeys:D?[]:K,defaultExpandAll:R,titleRender:k},ge,{onActiveChange:ne,onSelect:me,onCheck:me,onExpand:function(e){ue(e),pe(e),$&&$(e)},onLoad:X,filterTreeNode:function(e){return!!le&&String(e[U]).toLowerCase().includes(le)},expandAction:S,onScroll:x})))};const K=r.forwardRef(D);var V="SHOW_ALL",H="SHOW_PARENT",R="SHOW_CHILD";function W(e,t,n,r){var o=new Set(e);return t===R?e.filter((function(e){var t=n[e];return!(t&&t.children&&t.children.some((function(e){var t=e.node;return o.has(t[r.value])}))&&t.children.every((function(e){var t=e.node;return L(t)||o.has(t[r.value])})))})):t===H?e.filter((function(e){var t=n[e],r=t?t.parent:null;return!(r&&!L(r.node)&&o.has(r.key))})):e}var $=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"],_=r.forwardRef((function(e,t){var n,o,l=e.id,C=e.prefixCls,y=void 0===C?"rc-tree-select":C,w=e.value,E=e.defaultValue,N=e.onChange,O=e.onSelect,L=e.onDeselect,M=e.searchValue,D=e.inputValue,H=e.onSearch,_=e.autoClearSearchValue,F=void 0===_||_,j=e.filterTreeNode,z=e.treeNodeFilterProp,U=void 0===z?"value":z,B=e.showCheckedStrategy,G=e.treeNodeLabelProp,Q=e.multiple,X=e.treeCheckable,Y=e.treeCheckStrictly,q=e.labelInValue,J=e.fieldNames,Z=e.treeDataSimpleMode,ee=e.treeData,te=e.children,ne=e.loadData,re=e.treeLoadedKeys,oe=e.onTreeLoad,le=e.treeDefaultExpandAll,ae=e.treeExpandedKeys,ie=e.treeDefaultExpandedKeys,ce=e.onTreeExpand,ue=e.treeExpandAction,se=e.virtual,de=e.listHeight,fe=void 0===de?200:de,pe=e.listItemHeight,ve=void 0===pe?20:pe,he=e.listItemScrollOffset,me=void 0===he?0:he,ge=e.onDropdownVisibleChange,be=e.dropdownMatchSelectWidth,Ce=void 0===be||be,Ae=e.treeLine,ye=e.treeIcon,we=e.showTreeIcon,Se=e.switcherIcon,ke=e.treeMotion,xe=e.treeTitleRender,Ie=e.onPopupScroll,Ee=(0,s.A)(e,$),Ne=(0,p.Ay)(l),Oe=X&&!Y,Pe=X||Y,Le=Y||q,Te=Pe||Q,Me=(0,h.A)(E,{value:w}),De=(0,u.A)(Me,2),Ke=De[0],Ve=De[1],He=r.useMemo((function(){return X?B||R:V}),[B,X]),Re=r.useMemo((function(){return function(e){var t=e||{},n=t.label,r=t.value||"value";return{_title:n?[n]:["title","label"],value:r,key:r,children:t.children||"children"}}(J)}),[JSON.stringify(J)]),We=(0,h.A)("",{value:void 0!==M?M:D,postState:function(e){return e||""}}),$e=(0,u.A)(We,2),_e=$e[0],Fe=$e[1],je=x(ee,te,Z),ze=function(e,t){return r.useMemo((function(){return(0,g.cG)(e,{fieldNames:t,initWrapper:function(e){return(0,c.A)((0,c.A)({},e),{},{valueEntities:new Map})},processEntity:function(e,n){var r=e.node[t.value];n.valueEntities.set(r,e)}})}),[e,t])}(je,Re),Ue=ze.keyEntities,Be=ze.valueEntities,Ge=r.useCallback((function(e){var t=[],n=[];return e.forEach((function(e){Be.has(e)?n.push(e):t.push(e)})),{missingRawValues:t,existRawValues:n}}),[Be]),Qe=function(e,t,n){var o=n.treeNodeFilterProp,l=n.filterTreeNode,a=n.fieldNames.children;return r.useMemo((function(){if(!t||!1===l)return e;var n;if("function"==typeof l)n=l;else{var r=t.toUpperCase();n=function(e,t){var n=t[o];return String(n).toUpperCase().includes(r)}}return function e(r){var o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return r.reduce((function(r,l){var i=l[a],u=o||n(t,S(l)),s=e(i||[],u);return(u||s.length)&&r.push((0,c.A)((0,c.A)({},l),{},(0,b.A)({isLeaf:void 0},a,s))),r}),[])}(e)}),[e,t,a,o,l])}(je,_e,{fieldNames:Re,treeNodeFilterProp:U,filterTreeNode:j}),Xe=r.useCallback((function(e){if(e){if(G)return e[G];for(var t=Re._title,n=0;n<t.length;n+=1){var r=e[t[n]];if(void 0!==r)return r}}}),[Re,G]),Ye=r.useCallback((function(e){var t=function(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}(e);return t.map((function(e){return function(e){return!e||"object"!==(0,d.A)(e)}(e)?{value:e}:e}))}),[]),qe=r.useCallback((function(e){return Ye(e).map((function(e){var t,n,r=e.label,o=e.value,l=e.halfChecked,a=Be.get(o);return a?(r=xe?xe(a.node):null!==(n=r)&&void 0!==n?n:Xe(a.node),t=a.node.disabled):void 0===r&&(r=Ye(Ke).find((function(e){return e.value===o})).label),{label:r,value:o,halfChecked:l,disabled:t}}))}),[Be,Xe,Ye,Ke]),Je=r.useMemo((function(){return Ye(Ke)}),[Ye,Ke]),Ze=r.useMemo((function(){var e=[],t=[];return Je.forEach((function(n){n.halfChecked?t.push(n):e.push(n)})),[e,t]}),[Je]),et=(0,u.A)(Ze,2),tt=et[0],nt=et[1],rt=r.useMemo((function(){return tt.map((function(e){return e.value}))}),[tt]),ot=function(e,t,n,o){return r.useMemo((function(){var r=e.map((function(e){return e.value})),l=t.map((function(e){return e.value})),a=r.filter((function(e){return!o[e]}));if(n){var c=(0,v.p)(r,!0,o);r=c.checkedKeys,l=c.halfCheckedKeys}return[Array.from(new Set([].concat((0,i.A)(a),(0,i.A)(r)))),l]}),[e,t,n,o])}(tt,nt,Oe,Ue),lt=(0,u.A)(ot,2),at=lt[0],it=lt[1],ct=r.useMemo((function(){var e=W(at,He,Ue,Re).map((function(e){var t,n;return null!==(t=null===(n=Ue[e])||void 0===n||null===(n=n.node)||void 0===n?void 0:n[Re.value])&&void 0!==t?t:e})).map((function(e){var t,n=tt.find((function(t){return t.value===e}));return q&&void 0!==n.label?t=n.label:!q&&xe&&(t=xe(n)),{value:e,label:t}})),t=qe(e),n=t[0];return!Te&&n&&T(n.value)&&T(n.label)?[]:t.map((function(e){var t;return(0,c.A)((0,c.A)({},e),{},{label:null!==(t=e.label)&&void 0!==t?t:e.value})}))}),[Re,Te,at,tt,qe,He,Ue]),ut=(n=ct,o=r.useRef({valueLabels:new Map}),r.useMemo((function(){var e=o.current.valueLabels,t=new Map,r=n.map((function(n){var r,o=n.value,l=null!==(r=n.label)&&void 0!==r?r:e.get(o);return t.set(o,l),(0,c.A)((0,c.A)({},n),{},{label:l})}));return o.current.valueLabels=t,[r]}),[n])),st=(0,u.A)(ut,1)[0],dt=k((function(e,t,n){var o=qe(e);if(Ve(o),F&&Fe(""),N){var l=e;if(Oe){var a=W(e,He,Ue,Re);l=a.map((function(e){var t=Be.get(e);return t?t.node[Re.value]:e}))}var c=t||{triggerValue:void 0,selected:void 0},u=c.triggerValue,s=c.selected,d=l;if(Y){var f=nt.filter((function(e){return!l.includes(e.value)}));d=[].concat((0,i.A)(d),(0,i.A)(f))}var p=qe(d),v={preValue:tt,triggerValue:u},h=!0;(Y||"selection"===n&&!s)&&(h=!1),function(e,t,n,o,l,a){var i=null,c=null;function u(){c||(c=[],function e(o){var l=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"0",u=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return o.map((function(o,s){var d="".concat(l,"-").concat(s),f=o[a.value],p=n.includes(f),v=e(o[a.children]||[],d,p),h=r.createElement(A,o,v.map((function(e){return e.node})));if(t===f&&(i=h),p){var m={pos:d,node:h,children:v};return u||c.push(m),m}return null})).filter((function(e){return e}))}(o),c.sort((function(e,t){var r=e.node.props.value,o=t.node.props.value;return n.indexOf(r)-n.indexOf(o)})))}Object.defineProperty(e,"triggerNode",{get:function(){return(0,m.Ay)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),u(),i}}),Object.defineProperty(e,"allCheckedNodes",{get:function(){return(0,m.Ay)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),u(),l?c:c.map((function(e){return e.node}))}})}(v,u,e,je,h,Re),Pe?v.checked=s:v.selected=s;var g=Le?p:p.map((function(e){return e.value}));N(Te?g:g[0],Le?null:p.map((function(e){return e.label})),v)}})),ft=r.useCallback((function(e,t){var n,r=t.selected,o=t.source,l=Ue[e],a=null==l?void 0:l.node,c=null!==(n=null==a?void 0:a[Re.value])&&void 0!==n?n:e;if(Te){var u=r?[].concat((0,i.A)(rt),[c]):at.filter((function(e){return e!==c}));if(Oe){var s,d=Ge(u),f=d.missingRawValues,p=d.existRawValues.map((function(e){return Be.get(e).key}));s=r?(0,v.p)(p,!0,Ue).checkedKeys:(0,v.p)(p,{checked:!1,halfCheckedKeys:it},Ue).checkedKeys,u=[].concat((0,i.A)(f),(0,i.A)(s.map((function(e){return Ue[e].node[Re.value]}))))}dt(u,{selected:r,triggerValue:c},o||"option")}else dt([c],{selected:!0,triggerValue:c},"option");r||!Te?null==O||O(c,S(a)):null==L||L(c,S(a))}),[Ge,Be,Ue,Re,Te,rt,dt,Oe,O,L,at,it]),pt=r.useCallback((function(e){if(ge){var t={};Object.defineProperty(t,"documentClickClose",{get:function(){return(0,m.Ay)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),ge(e,t)}}),[ge]),vt=k((function(e,t){var n=e.map((function(e){return e.value}));"clear"!==t.type?t.values.length&&ft(t.values[0].value,{selected:!1,source:"selection"}):dt(n,{},"selection")})),ht=r.useMemo((function(){return{virtual:se,dropdownMatchSelectWidth:Ce,listHeight:fe,listItemHeight:ve,listItemScrollOffset:me,treeData:Qe,fieldNames:Re,onSelect:ft,treeExpandAction:ue,treeTitleRender:xe,onPopupScroll:Ie}}),[se,Ce,fe,ve,me,Qe,Re,ft,ue,xe,Ie]),mt=r.useMemo((function(){return{checkable:Pe,loadData:ne,treeLoadedKeys:re,onTreeLoad:oe,checkedKeys:at,halfCheckedKeys:it,treeDefaultExpandAll:le,treeExpandedKeys:ae,treeDefaultExpandedKeys:ie,onTreeExpand:ce,treeIcon:ye,treeMotion:ke,showTreeIcon:we,switcherIcon:Se,treeLine:Ae,treeNodeFilterProp:U,keyEntities:Ue}}),[Pe,ne,re,oe,at,it,le,ae,ie,ce,ye,ke,we,Se,Ae,U,Ue]);return r.createElement(P.Provider,{value:ht},r.createElement(I.Provider,{value:mt},r.createElement(f.g3,(0,a.A)({ref:t},Ee,{id:Ne,prefixCls:y,mode:Te?"multiple":void 0,displayValues:st,onDisplayValuesChange:vt,searchValue:_e,onSearch:function(e){Fe(e),null==H||H(e)},OptionList:K,emptyOptions:!je.length,onDropdownVisibleChange:pt,dropdownMatchSelectWidth:Ce}))))}));_.TreeNode=A,_.SHOW_ALL=V,_.SHOW_PARENT=H,_.SHOW_CHILD=R;const F=_;var j=n(78892),z=n(7010),U=n(85528),B=n(74132),G=n(43307),Q=n(9642),X=n(34203),Y=n(19106),q=n(50509),J=n(17392),Z=n(45777),ee=n(64719),te=n(30012),ne=n(52755),re=n(87494),oe=n(67728),le=n(9658),ae=n(13820),ie=n(6257),ce=n(71668),ue=n(78339),se=n(81081),de=n(29561);const fe=e=>{const{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,o=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${(0,ie.zA)(e.paddingXS)} ${(0,ie.zA)(e.calc(e.paddingXS).div(2).equal())}`},(0,de.k8)(n,(0,ue.h1)(e,{colorBgContainer:r})),{[o]:{borderRadius:0,[`${o}-list-holder-inner`]:{alignItems:"stretch",[`${o}-treenode`]:{[`${o}-node-content-wrapper`]:{flex:"auto"}}}}},(0,ce.gd)(`${n}-checkbox`,e),{"&-rtl":{direction:"rtl",[`${o}-switcher${o}-switcher_close`]:{[`${o}-switcher-icon svg`]:{transform:"rotate(90deg)"}}}}]}]};const pe=(e,t)=>{var n,{prefixCls:o,size:a,disabled:i,bordered:c=!0,className:u,rootClassName:s,treeCheckable:d,multiple:f,listHeight:p=256,listItemHeight:v=26,placement:h,notFoundContent:m,switcherIcon:g,treeLine:b,getPopupContainer:C,popupClassName:A,dropdownClassName:y,treeIcon:w=!1,transitionName:S,choiceTransitionName:k="",status:x,treeExpandAction:I,builtinPlacements:E,dropdownMatchSelectWidth:N,popupMatchSelectWidth:O,allowClear:P,variant:L,dropdownStyle:T,tagRender:M}=e,D=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(e,r[o])&&(n[r[o]]=e[r[o]])}return n}(e,["prefixCls","size","disabled","bordered","className","rootClassName","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","popupClassName","dropdownClassName","treeIcon","transitionName","choiceTransitionName","status","treeExpandAction","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","allowClear","variant","dropdownStyle","tagRender"]);const{getPopupContainer:K,getPrefixCls:V,renderEmpty:H,direction:R,virtual:W,popupMatchSelectWidth:$,popupOverflow:_}=r.useContext(Q.QO),B=V(),ie=V("select",o),ce=V("select-tree",o),pe=V("tree-select",o),{compactSize:ve,compactItemClassnames:he}=(0,le.RQ)(ie,R),me=(0,q.A)(ie),ge=(0,q.A)(pe),[be,Ce,Ae]=(0,ne.A)(ie,me),[ye]=function(e,t,n){return(0,se.OF)("TreeSelect",(e=>{const n=(0,ue.h1)(e,{treePrefixCls:t});return[fe(n)]}),de.bi)(e,n)}(pe,ce,ge),[we,Se]=(0,ee.A)("treeSelect",L,c),ke=l()(A||y,`${pe}-dropdown`,{[`${pe}-dropdown-rtl`]:"rtl"===R},s,Ae,me,ge,Ce),xe=!(!d&&!f),Ie=(0,oe.A)(D.suffixIcon,D.showArrow),Ee=null!==(n=null!=O?O:N)&&void 0!==n?n:$,{status:Ne,hasFeedback:Oe,isFormItemInput:Pe,feedbackIcon:Le}=r.useContext(Z.$W),Te=(0,G.v)(Ne,x),{suffixIcon:Me,removeIcon:De,clearIcon:Ke}=(0,re.A)(Object.assign(Object.assign({},D),{multiple:xe,showSuffixIcon:Ie,hasFeedback:Oe,feedbackIcon:Le,prefixCls:ie,componentName:"TreeSelect"})),Ve=!0===P?{clearIcon:Ke}:P;let He;He=void 0!==m?m:(null==H?void 0:H("Select"))||r.createElement(X.A,{componentName:"Select"});const Re=(0,j.A)(D,["suffixIcon","removeIcon","clearIcon","itemIcon","switcherIcon"]),We=r.useMemo((()=>void 0!==h?h:"rtl"===R?"bottomRight":"bottomLeft"),[h,R]),$e=(0,J.A)((e=>{var t;return null!==(t=null!=a?a:ve)&&void 0!==t?t:e})),_e=r.useContext(Y.A),Fe=null!=i?i:_e,je=l()(!o&&pe,{[`${ie}-lg`]:"large"===$e,[`${ie}-sm`]:"small"===$e,[`${ie}-rtl`]:"rtl"===R,[`${ie}-${we}`]:Se,[`${ie}-in-form-item`]:Pe},(0,G.L)(ie,Te,Oe),he,u,s,Ae,me,ge,Ce),[ze]=(0,z.YK)("SelectLike",null==T?void 0:T.zIndex);return be(ye(r.createElement(F,Object.assign({virtual:W,disabled:Fe},Re,{dropdownMatchSelectWidth:Ee,builtinPlacements:(0,te.A)(E,_),ref:t,prefixCls:ie,className:je,listHeight:p,listItemHeight:v,treeCheckable:d?r.createElement("span",{className:`${ie}-tree-checkbox-inner`}):d,treeLine:!!b,suffixIcon:Me,multiple:xe,placement:We,removeIcon:De,allowClear:Ve,switcherIcon:e=>r.createElement(ae.A,{prefixCls:ce,switcherIcon:g,treeNodeProps:e,showLine:b}),showTreeIcon:w,notFoundContent:He,getPopupContainer:C||K,treeMotion:null,dropdownClassName:ke,dropdownStyle:Object.assign(Object.assign({},T),{zIndex:ze}),choiceTransitionName:(0,U.b)(B,"",k),transitionName:(0,U.b)(B,"slide-up",S),treeExpandAction:I,tagRender:xe?M:void 0}))))},ve=r.forwardRef(pe),he=(0,B.A)(ve);ve.TreeNode=A,ve.SHOW_ALL=V,ve.SHOW_PARENT=H,ve.SHOW_CHILD=R,ve._InternalPanelDoNotUseOrYouWillBeFired=he;const me=ve}}]);
2
- //# sourceMappingURL=9484.90783904.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"chunks/9484.90783904.js","mappings":"0VAMA,QAHe,WACb,OAAO,IACT,ECHA,IAAIA,EAAY,CAAC,WAAY,SAKtB,SAASC,EAAsBC,GACpC,OAAO,OAAQA,GAAOC,KAAI,SAAUC,GAClC,IAAmB,iBAAqBA,KAAUA,EAAKC,KACrD,OAAO,KAET,IAAIC,EAAOF,EACTG,EAAMD,EAAKC,IACXC,EAAaF,EAAKG,MAClBC,EAAWF,EAAWE,SACtBC,EAAQH,EAAWG,MACnBC,GAAY,OAAyBJ,EAAYR,GAC/Ca,GAAO,OAAc,CACvBN,IAAKA,EACLI,MAAOA,GACNC,GACCE,EAAYb,EAAsBS,GAItC,OAHII,EAAUC,SACZF,EAAKH,SAAWI,GAEXD,CACT,IAAGG,QAAO,SAAUH,GAClB,OAAOA,CACT,GACF,CACO,SAASI,EAAgBC,GAC9B,IAAKA,EACH,OAAOA,EAET,IAAIC,GAAY,OAAc,CAAC,EAAGD,GASlC,MARM,UAAWC,GACfC,OAAOC,eAAeF,EAAW,QAAS,CACxCG,IAAK,WAEH,OADA,SAAQ,EAAO,wHACRH,CACT,IAG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,YAEFlE,sBAAsB,OAAkByB,EAAe,GAAIzB,GAC3DD,gBAAgB,OAAkB0B,EAAe,WAAY1B,GAC7DxT,iBAAkBA,EAClBkU,UAAW8B,GAAa9B,OAAYvK,MAEa,EAG/C,GAD6B,aAAiBgJ,IAI9C,IAAY,OAAa,IAC/B,GAAWjB,SAAW,EACtB,GAAWtL,SAAWA,EACtB,GAAWC,YAAcA,EACzB,GAAWC,WAAaA,EACxB,GAAW0R,uCAAyC,GAKpD,W","sources":["webpack:///../../node_modules/rc-tree-select/es/TreeNode.js","webpack:///../../node_modules/rc-tree-select/es/utils/legacyUtil.js","webpack:///../../node_modules/rc-tree-select/es/hooks/useRefFunc.js","webpack:///../../node_modules/rc-tree-select/es/hooks/useTreeData.js","webpack:///../../node_modules/rc-tree-select/es/LegacyContext.js","webpack:///../../node_modules/rc-tree-select/es/TreeSelectContext.js","webpack:///../../node_modules/rc-tree-select/es/utils/valueUtil.js","webpack:///../../node_modules/rc-tree-select/es/OptionList.js","webpack:///../../node_modules/rc-tree-select/es/utils/strategyUtil.js","webpack:///../../node_modules/rc-tree-select/es/TreeSelect.js","webpack:///../../node_modules/rc-tree-select/es/hooks/useCache.js","webpack:///../../node_modules/rc-tree-select/es/hooks/useDataEntities.js","webpack:///../../node_modules/rc-tree-select/es/hooks/useFilterTreeData.js","webpack:///../../node_modules/rc-tree-select/es/hooks/useCheckedKeys.js","webpack:///../../node_modules/rc-tree-select/es/index.js","webpack:///../../node_modules/antd/es/tree-select/style/index.js","webpack:///../../node_modules/antd/es/tree-select/index.js"],"sourcesContent":["/* istanbul ignore file */\n\n/** This is a placeholder, not real render in dom */\nvar TreeNode = function TreeNode() {\n return null;\n};\nexport default TreeNode;","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nvar _excluded = [\"children\", \"value\"];\nimport * as React from 'react';\nimport toArray from \"rc-util/es/Children/toArray\";\nimport warning from \"rc-util/es/warning\";\nimport TreeNode from \"../TreeNode\";\nexport function convertChildrenToData(nodes) {\n return toArray(nodes).map(function (node) {\n if (! /*#__PURE__*/React.isValidElement(node) || !node.type) {\n return null;\n }\n var _ref = node,\n key = _ref.key,\n _ref$props = _ref.props,\n children = _ref$props.children,\n value = _ref$props.value,\n restProps = _objectWithoutProperties(_ref$props, _excluded);\n var data = _objectSpread({\n key: key,\n value: value\n }, restProps);\n var childData = convertChildrenToData(children);\n if (childData.length) {\n data.children = childData;\n }\n return data;\n }).filter(function (data) {\n return data;\n });\n}\nexport function fillLegacyProps(dataNode) {\n if (!dataNode) {\n return dataNode;\n }\n var cloneNode = _objectSpread({}, dataNode);\n if (!('props' in cloneNode)) {\n Object.defineProperty(cloneNode, 'props', {\n get: function get() {\n warning(false, 'New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access.');\n return cloneNode;\n }\n });\n }\n return cloneNode;\n}\nexport function fillAdditionalInfo(extra, triggerValue, checkedValues, treeData, showPosition, fieldNames) {\n var triggerNode = null;\n var nodeList = null;\n function generateMap() {\n function dig(list) {\n var level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : '0';\n var parentIncluded = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : false;\n return list.map(function (option, index) {\n var pos = \"\".concat(level, \"-\").concat(index);\n var value = option[fieldNames.value];\n var included = checkedValues.includes(value);\n var children = dig(option[fieldNames.children] || [], pos, included);\n var node = /*#__PURE__*/React.createElement(TreeNode, option, children.map(function (child) {\n return child.node;\n }));\n\n // Link with trigger node\n if (triggerValue === value) {\n triggerNode = node;\n }\n if (included) {\n var checkedNode = {\n pos: pos,\n node: node,\n children: children\n };\n if (!parentIncluded) {\n nodeList.push(checkedNode);\n }\n return checkedNode;\n }\n return null;\n }).filter(function (node) {\n return node;\n });\n }\n if (!nodeList) {\n nodeList = [];\n dig(treeData);\n\n // Sort to keep the checked node length\n nodeList.sort(function (_ref2, _ref3) {\n var val1 = _ref2.node.props.value;\n var val2 = _ref3.node.props.value;\n var index1 = checkedValues.indexOf(val1);\n var index2 = checkedValues.indexOf(val2);\n return index1 - index2;\n });\n }\n }\n Object.defineProperty(extra, 'triggerNode', {\n get: function get() {\n warning(false, '`triggerNode` is deprecated. Please consider decoupling data with node.');\n generateMap();\n return triggerNode;\n }\n });\n Object.defineProperty(extra, 'allCheckedNodes', {\n get: function get() {\n warning(false, '`allCheckedNodes` is deprecated. Please consider decoupling data with node.');\n generateMap();\n if (showPosition) {\n return nodeList;\n }\n return nodeList.map(function (_ref4) {\n var node = _ref4.node;\n return node;\n });\n }\n });\n}","import * as React from 'react';\n\n/**\n * Same as `React.useCallback` but always return a memoized function\n * but redirect to real function.\n */\nexport default function useRefFunc(callback) {\n var funcRef = React.useRef();\n funcRef.current = callback;\n var cacheFn = React.useCallback(function () {\n return funcRef.current.apply(funcRef, arguments);\n }, []);\n return cacheFn;\n}","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport * as React from 'react';\nimport { convertChildrenToData } from \"../utils/legacyUtil\";\nfunction parseSimpleTreeData(treeData, _ref) {\n var id = _ref.id,\n pId = _ref.pId,\n rootPId = _ref.rootPId;\n var keyNodes = {};\n var rootNodeList = [];\n\n // Fill in the map\n var nodeList = treeData.map(function (node) {\n var clone = _objectSpread({}, node);\n var key = clone[id];\n keyNodes[key] = clone;\n clone.key = clone.key || key;\n return clone;\n });\n\n // Connect tree\n nodeList.forEach(function (node) {\n var parentKey = node[pId];\n var parent = keyNodes[parentKey];\n\n // Fill parent\n if (parent) {\n parent.children = parent.children || [];\n parent.children.push(node);\n }\n\n // Fill root tree node\n if (parentKey === rootPId || !parent && rootPId === null) {\n rootNodeList.push(node);\n }\n });\n return rootNodeList;\n}\n\n/**\n * Convert `treeData` or `children` into formatted `treeData`.\n * Will not re-calculate if `treeData` or `children` not change.\n */\nexport default function useTreeData(treeData, children, simpleMode) {\n return React.useMemo(function () {\n if (treeData) {\n return simpleMode ? parseSimpleTreeData(treeData, _objectSpread({\n id: 'id',\n pId: 'pId',\n rootPId: null\n }, simpleMode !== true ? simpleMode : {})) : treeData;\n }\n return convertChildrenToData(children);\n }, [children, simpleMode, treeData]);\n}","import * as React from 'react';\nvar LegacySelectContext = /*#__PURE__*/React.createContext(null);\nexport default LegacySelectContext;","import * as React from 'react';\nvar TreeSelectContext = /*#__PURE__*/React.createContext(null);\nexport default TreeSelectContext;","export function toArray(value) {\n if (Array.isArray(value)) {\n return value;\n }\n return value !== undefined ? [value] : [];\n}\nexport function fillFieldNames(fieldNames) {\n var _ref = fieldNames || {},\n label = _ref.label,\n value = _ref.value,\n children = _ref.children;\n var mergedValue = value || 'value';\n return {\n _title: label ? [label] : ['title', 'label'],\n value: mergedValue,\n key: mergedValue,\n children: children || 'children'\n };\n}\nexport function isCheckDisabled(node) {\n return !node || node.disabled || node.disableCheckbox || node.checkable === false;\n}\n\n/** Loop fetch all the keys exist in the tree */\nexport function getAllKeys(treeData, fieldNames) {\n var keys = [];\n function dig(list) {\n list.forEach(function (item) {\n var children = item[fieldNames.children];\n if (children) {\n keys.push(item[fieldNames.value]);\n dig(children);\n }\n });\n }\n dig(treeData);\n return keys;\n}\nexport function isNil(val) {\n return val === null || val === undefined;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport { useBaseProps } from 'rc-select';\nimport Tree from 'rc-tree';\nimport KeyCode from \"rc-util/es/KeyCode\";\nimport useMemo from \"rc-util/es/hooks/useMemo\";\nimport * as React from 'react';\nimport LegacyContext from \"./LegacyContext\";\nimport TreeSelectContext from \"./TreeSelectContext\";\nimport { getAllKeys, isCheckDisabled } from \"./utils/valueUtil\";\nvar HIDDEN_STYLE = {\n width: 0,\n height: 0,\n display: 'flex',\n overflow: 'hidden',\n opacity: 0,\n border: 0,\n padding: 0,\n margin: 0\n};\nvar OptionList = function OptionList(_, ref) {\n var _useBaseProps = useBaseProps(),\n prefixCls = _useBaseProps.prefixCls,\n multiple = _useBaseProps.multiple,\n searchValue = _useBaseProps.searchValue,\n toggleOpen = _useBaseProps.toggleOpen,\n open = _useBaseProps.open,\n notFoundContent = _useBaseProps.notFoundContent;\n var _React$useContext = React.useContext(TreeSelectContext),\n virtual = _React$useContext.virtual,\n listHeight = _React$useContext.listHeight,\n listItemHeight = _React$useContext.listItemHeight,\n listItemScrollOffset = _React$useContext.listItemScrollOffset,\n treeData = _React$useContext.treeData,\n fieldNames = _React$useContext.fieldNames,\n onSelect = _React$useContext.onSelect,\n dropdownMatchSelectWidth = _React$useContext.dropdownMatchSelectWidth,\n treeExpandAction = _React$useContext.treeExpandAction,\n treeTitleRender = _React$useContext.treeTitleRender,\n onPopupScroll = _React$useContext.onPopupScroll;\n var _React$useContext2 = React.useContext(LegacyContext),\n checkable = _React$useContext2.checkable,\n checkedKeys = _React$useContext2.checkedKeys,\n halfCheckedKeys = _React$useContext2.halfCheckedKeys,\n treeExpandedKeys = _React$useContext2.treeExpandedKeys,\n treeDefaultExpandAll = _React$useContext2.treeDefaultExpandAll,\n treeDefaultExpandedKeys = _React$useContext2.treeDefaultExpandedKeys,\n onTreeExpand = _React$useContext2.onTreeExpand,\n treeIcon = _React$useContext2.treeIcon,\n showTreeIcon = _React$useContext2.showTreeIcon,\n switcherIcon = _React$useContext2.switcherIcon,\n treeLine = _React$useContext2.treeLine,\n treeNodeFilterProp = _React$useContext2.treeNodeFilterProp,\n loadData = _React$useContext2.loadData,\n treeLoadedKeys = _React$useContext2.treeLoadedKeys,\n treeMotion = _React$useContext2.treeMotion,\n onTreeLoad = _React$useContext2.onTreeLoad,\n keyEntities = _React$useContext2.keyEntities;\n var treeRef = React.useRef();\n var memoTreeData = useMemo(function () {\n return treeData;\n },\n // eslint-disable-next-line react-hooks/exhaustive-deps\n [open, treeData], function (prev, next) {\n return next[0] && prev[1] !== next[1];\n });\n\n // ========================== Active ==========================\n var _React$useState = React.useState(null),\n _React$useState2 = _slicedToArray(_React$useState, 2),\n activeKey = _React$useState2[0],\n setActiveKey = _React$useState2[1];\n var activeEntity = keyEntities[activeKey];\n\n // ========================== Values ==========================\n var mergedCheckedKeys = React.useMemo(function () {\n if (!checkable) {\n return null;\n }\n return {\n checked: checkedKeys,\n halfChecked: halfCheckedKeys\n };\n }, [checkable, checkedKeys, halfCheckedKeys]);\n\n // ========================== Scroll ==========================\n React.useEffect(function () {\n // Single mode should scroll to current key\n if (open && !multiple && checkedKeys.length) {\n var _treeRef$current;\n (_treeRef$current = treeRef.current) === null || _treeRef$current === void 0 || _treeRef$current.scrollTo({\n key: checkedKeys[0]\n });\n setActiveKey(checkedKeys[0]);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [open]);\n\n // ========================== Search ==========================\n var lowerSearchValue = String(searchValue).toLowerCase();\n var filterTreeNode = function filterTreeNode(treeNode) {\n if (!lowerSearchValue) {\n return false;\n }\n return String(treeNode[treeNodeFilterProp]).toLowerCase().includes(lowerSearchValue);\n };\n\n // =========================== Keys ===========================\n var _React$useState3 = React.useState(treeDefaultExpandedKeys),\n _React$useState4 = _slicedToArray(_React$useState3, 2),\n expandedKeys = _React$useState4[0],\n setExpandedKeys = _React$useState4[1];\n var _React$useState5 = React.useState(null),\n _React$useState6 = _slicedToArray(_React$useState5, 2),\n searchExpandedKeys = _React$useState6[0],\n setSearchExpandedKeys = _React$useState6[1];\n var mergedExpandedKeys = React.useMemo(function () {\n if (treeExpandedKeys) {\n return _toConsumableArray(treeExpandedKeys);\n }\n return searchValue ? searchExpandedKeys : expandedKeys;\n }, [expandedKeys, searchExpandedKeys, treeExpandedKeys, searchValue]);\n React.useEffect(function () {\n if (searchValue) {\n setSearchExpandedKeys(getAllKeys(treeData, fieldNames));\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [searchValue]);\n var onInternalExpand = function onInternalExpand(keys) {\n setExpandedKeys(keys);\n setSearchExpandedKeys(keys);\n if (onTreeExpand) {\n onTreeExpand(keys);\n }\n };\n\n // ========================== Events ==========================\n var onListMouseDown = function onListMouseDown(event) {\n event.preventDefault();\n };\n var onInternalSelect = function onInternalSelect(__, info) {\n var node = info.node;\n if (checkable && isCheckDisabled(node)) {\n return;\n }\n onSelect(node.key, {\n selected: !checkedKeys.includes(node.key)\n });\n if (!multiple) {\n toggleOpen(false);\n }\n };\n\n // ========================= Keyboard =========================\n React.useImperativeHandle(ref, function () {\n var _treeRef$current2;\n return {\n scrollTo: (_treeRef$current2 = treeRef.current) === null || _treeRef$current2 === void 0 ? void 0 : _treeRef$current2.scrollTo,\n onKeyDown: function onKeyDown(event) {\n var _treeRef$current3;\n var which = event.which;\n switch (which) {\n // >>> Arrow keys\n case KeyCode.UP:\n case KeyCode.DOWN:\n case KeyCode.LEFT:\n case KeyCode.RIGHT:\n (_treeRef$current3 = treeRef.current) === null || _treeRef$current3 === void 0 || _treeRef$current3.onKeyDown(event);\n break;\n\n // >>> Select item\n case KeyCode.ENTER:\n {\n if (activeEntity) {\n var _ref = (activeEntity === null || activeEntity === void 0 ? void 0 : activeEntity.node) || {},\n selectable = _ref.selectable,\n value = _ref.value;\n if (selectable !== false) {\n onInternalSelect(null, {\n node: {\n key: activeKey\n },\n selected: !checkedKeys.includes(value)\n });\n }\n }\n break;\n }\n\n // >>> Close\n case KeyCode.ESC:\n {\n toggleOpen(false);\n }\n }\n },\n onKeyUp: function onKeyUp() {}\n };\n });\n\n // ========================== Render ==========================\n if (memoTreeData.length === 0) {\n return /*#__PURE__*/React.createElement(\"div\", {\n role: \"listbox\",\n className: \"\".concat(prefixCls, \"-empty\"),\n onMouseDown: onListMouseDown\n }, notFoundContent);\n }\n var treeProps = {\n fieldNames: fieldNames\n };\n if (treeLoadedKeys) {\n treeProps.loadedKeys = treeLoadedKeys;\n }\n if (mergedExpandedKeys) {\n treeProps.expandedKeys = mergedExpandedKeys;\n }\n return /*#__PURE__*/React.createElement(\"div\", {\n onMouseDown: onListMouseDown\n }, activeEntity && open && /*#__PURE__*/React.createElement(\"span\", {\n style: HIDDEN_STYLE,\n \"aria-live\": \"assertive\"\n }, activeEntity.node.value), /*#__PURE__*/React.createElement(Tree, _extends({\n ref: treeRef,\n focusable: false,\n prefixCls: \"\".concat(prefixCls, \"-tree\"),\n treeData: memoTreeData,\n height: listHeight,\n itemHeight: listItemHeight,\n itemScrollOffset: listItemScrollOffset,\n virtual: virtual !== false && dropdownMatchSelectWidth !== false,\n multiple: multiple,\n icon: treeIcon,\n showIcon: showTreeIcon,\n switcherIcon: switcherIcon,\n showLine: treeLine,\n loadData: searchValue ? null : loadData,\n motion: treeMotion,\n activeKey: activeKey\n // We handle keys by out instead tree self\n ,\n checkable: checkable,\n checkStrictly: true,\n checkedKeys: mergedCheckedKeys,\n selectedKeys: !checkable ? checkedKeys : [],\n defaultExpandAll: treeDefaultExpandAll,\n titleRender: treeTitleRender\n }, treeProps, {\n // Proxy event out\n onActiveChange: setActiveKey,\n onSelect: onInternalSelect,\n onCheck: onInternalSelect,\n onExpand: onInternalExpand,\n onLoad: onTreeLoad,\n filterTreeNode: filterTreeNode,\n expandAction: treeExpandAction,\n onScroll: onPopupScroll\n })));\n};\nvar RefOptionList = /*#__PURE__*/React.forwardRef(OptionList);\nif (process.env.NODE_ENV !== 'production') {\n RefOptionList.displayName = 'OptionList';\n}\nexport default RefOptionList;","import { isCheckDisabled } from \"./valueUtil\";\nexport var SHOW_ALL = 'SHOW_ALL';\nexport var SHOW_PARENT = 'SHOW_PARENT';\nexport var SHOW_CHILD = 'SHOW_CHILD';\nexport function formatStrategyValues(values, strategy, keyEntities, fieldNames) {\n var valueSet = new Set(values);\n if (strategy === SHOW_CHILD) {\n return values.filter(function (key) {\n var entity = keyEntities[key];\n if (entity && entity.children && entity.children.some(function (_ref) {\n var node = _ref.node;\n return valueSet.has(node[fieldNames.value]);\n }) && entity.children.every(function (_ref2) {\n var node = _ref2.node;\n return isCheckDisabled(node) || valueSet.has(node[fieldNames.value]);\n })) {\n return false;\n }\n return true;\n });\n }\n if (strategy === SHOW_PARENT) {\n return values.filter(function (key) {\n var entity = keyEntities[key];\n var parent = entity ? entity.parent : null;\n if (parent && !isCheckDisabled(parent.node) && valueSet.has(parent.key)) {\n return false;\n }\n return true;\n });\n }\n return values;\n}","import _extends from \"@babel/runtime/helpers/esm/extends\";\nimport _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport _slicedToArray from \"@babel/runtime/helpers/esm/slicedToArray\";\nimport _objectWithoutProperties from \"@babel/runtime/helpers/esm/objectWithoutProperties\";\nimport _typeof from \"@babel/runtime/helpers/esm/typeof\";\nvar _excluded = [\"id\", \"prefixCls\", \"value\", \"defaultValue\", \"onChange\", \"onSelect\", \"onDeselect\", \"searchValue\", \"inputValue\", \"onSearch\", \"autoClearSearchValue\", \"filterTreeNode\", \"treeNodeFilterProp\", \"showCheckedStrategy\", \"treeNodeLabelProp\", \"multiple\", \"treeCheckable\", \"treeCheckStrictly\", \"labelInValue\", \"fieldNames\", \"treeDataSimpleMode\", \"treeData\", \"children\", \"loadData\", \"treeLoadedKeys\", \"onTreeLoad\", \"treeDefaultExpandAll\", \"treeExpandedKeys\", \"treeDefaultExpandedKeys\", \"onTreeExpand\", \"treeExpandAction\", \"virtual\", \"listHeight\", \"listItemHeight\", \"listItemScrollOffset\", \"onDropdownVisibleChange\", \"dropdownMatchSelectWidth\", \"treeLine\", \"treeIcon\", \"showTreeIcon\", \"switcherIcon\", \"treeMotion\", \"treeTitleRender\", \"onPopupScroll\"];\nimport { BaseSelect } from 'rc-select';\nimport useId from \"rc-select/es/hooks/useId\";\nimport { conductCheck } from \"rc-tree/es/utils/conductUtil\";\nimport useMergedState from \"rc-util/es/hooks/useMergedState\";\nimport warning from \"rc-util/es/warning\";\nimport * as React from 'react';\nimport useCache from \"./hooks/useCache\";\nimport useCheckedKeys from \"./hooks/useCheckedKeys\";\nimport useDataEntities from \"./hooks/useDataEntities\";\nimport useFilterTreeData from \"./hooks/useFilterTreeData\";\nimport useRefFunc from \"./hooks/useRefFunc\";\nimport useTreeData from \"./hooks/useTreeData\";\nimport LegacyContext from \"./LegacyContext\";\nimport OptionList from \"./OptionList\";\nimport TreeNode from \"./TreeNode\";\nimport TreeSelectContext from \"./TreeSelectContext\";\nimport { fillAdditionalInfo, fillLegacyProps } from \"./utils/legacyUtil\";\nimport { formatStrategyValues, SHOW_ALL, SHOW_CHILD, SHOW_PARENT } from \"./utils/strategyUtil\";\nimport { fillFieldNames, isNil, toArray } from \"./utils/valueUtil\";\nimport warningProps from \"./utils/warningPropsUtil\";\n\n/** @deprecated This is only used for legacy compatible. Not works on new code. */\n\nfunction isRawValue(value) {\n return !value || _typeof(value) !== 'object';\n}\nvar TreeSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {\n var id = props.id,\n _props$prefixCls = props.prefixCls,\n prefixCls = _props$prefixCls === void 0 ? 'rc-tree-select' : _props$prefixCls,\n value = props.value,\n defaultValue = props.defaultValue,\n onChange = props.onChange,\n onSelect = props.onSelect,\n onDeselect = props.onDeselect,\n searchValue = props.searchValue,\n inputValue = props.inputValue,\n onSearch = props.onSearch,\n _props$autoClearSearc = props.autoClearSearchValue,\n autoClearSearchValue = _props$autoClearSearc === void 0 ? true : _props$autoClearSearc,\n filterTreeNode = props.filterTreeNode,\n _props$treeNodeFilter = props.treeNodeFilterProp,\n treeNodeFilterProp = _props$treeNodeFilter === void 0 ? 'value' : _props$treeNodeFilter,\n showCheckedStrategy = props.showCheckedStrategy,\n treeNodeLabelProp = props.treeNodeLabelProp,\n multiple = props.multiple,\n treeCheckable = props.treeCheckable,\n treeCheckStrictly = props.treeCheckStrictly,\n labelInValue = props.labelInValue,\n fieldNames = props.fieldNames,\n treeDataSimpleMode = props.treeDataSimpleMode,\n treeData = props.treeData,\n children = props.children,\n loadData = props.loadData,\n treeLoadedKeys = props.treeLoadedKeys,\n onTreeLoad = props.onTreeLoad,\n treeDefaultExpandAll = props.treeDefaultExpandAll,\n treeExpandedKeys = props.treeExpandedKeys,\n treeDefaultExpandedKeys = props.treeDefaultExpandedKeys,\n onTreeExpand = props.onTreeExpand,\n treeExpandAction = props.treeExpandAction,\n virtual = props.virtual,\n _props$listHeight = props.listHeight,\n listHeight = _props$listHeight === void 0 ? 200 : _props$listHeight,\n _props$listItemHeight = props.listItemHeight,\n listItemHeight = _props$listItemHeight === void 0 ? 20 : _props$listItemHeight,\n _props$listItemScroll = props.listItemScrollOffset,\n listItemScrollOffset = _props$listItemScroll === void 0 ? 0 : _props$listItemScroll,\n onDropdownVisibleChange = props.onDropdownVisibleChange,\n _props$dropdownMatchS = props.dropdownMatchSelectWidth,\n dropdownMatchSelectWidth = _props$dropdownMatchS === void 0 ? true : _props$dropdownMatchS,\n treeLine = props.treeLine,\n treeIcon = props.treeIcon,\n showTreeIcon = props.showTreeIcon,\n switcherIcon = props.switcherIcon,\n treeMotion = props.treeMotion,\n treeTitleRender = props.treeTitleRender,\n onPopupScroll = props.onPopupScroll,\n restProps = _objectWithoutProperties(props, _excluded);\n var mergedId = useId(id);\n var treeConduction = treeCheckable && !treeCheckStrictly;\n var mergedCheckable = treeCheckable || treeCheckStrictly;\n var mergedLabelInValue = treeCheckStrictly || labelInValue;\n var mergedMultiple = mergedCheckable || multiple;\n var _useMergedState = useMergedState(defaultValue, {\n value: value\n }),\n _useMergedState2 = _slicedToArray(_useMergedState, 2),\n internalValue = _useMergedState2[0],\n setInternalValue = _useMergedState2[1];\n\n // `multiple` && `!treeCheckable` should be show all\n var mergedShowCheckedStrategy = React.useMemo(function () {\n if (!treeCheckable) {\n return SHOW_ALL;\n }\n return showCheckedStrategy || SHOW_CHILD;\n }, [showCheckedStrategy, treeCheckable]);\n\n // ========================== Warning ===========================\n if (process.env.NODE_ENV !== 'production') {\n warningProps(props);\n }\n\n // ========================= FieldNames =========================\n var mergedFieldNames = React.useMemo(function () {\n return fillFieldNames(fieldNames);\n }, /* eslint-disable react-hooks/exhaustive-deps */\n [JSON.stringify(fieldNames)]\n /* eslint-enable react-hooks/exhaustive-deps */);\n\n // =========================== Search ===========================\n var _useMergedState3 = useMergedState('', {\n value: searchValue !== undefined ? searchValue : inputValue,\n postState: function postState(search) {\n return search || '';\n }\n }),\n _useMergedState4 = _slicedToArray(_useMergedState3, 2),\n mergedSearchValue = _useMergedState4[0],\n setSearchValue = _useMergedState4[1];\n var onInternalSearch = function onInternalSearch(searchText) {\n setSearchValue(searchText);\n onSearch === null || onSearch === void 0 || onSearch(searchText);\n };\n\n // ============================ Data ============================\n // `useTreeData` only do convert of `children` or `simpleMode`.\n // Else will return origin `treeData` for perf consideration.\n // Do not do anything to loop the data.\n var mergedTreeData = useTreeData(treeData, children, treeDataSimpleMode);\n var _useDataEntities = useDataEntities(mergedTreeData, mergedFieldNames),\n keyEntities = _useDataEntities.keyEntities,\n valueEntities = _useDataEntities.valueEntities;\n\n /** Get `missingRawValues` which not exist in the tree yet */\n var splitRawValues = React.useCallback(function (newRawValues) {\n var missingRawValues = [];\n var existRawValues = [];\n\n // Keep missing value in the cache\n newRawValues.forEach(function (val) {\n if (valueEntities.has(val)) {\n existRawValues.push(val);\n } else {\n missingRawValues.push(val);\n }\n });\n return {\n missingRawValues: missingRawValues,\n existRawValues: existRawValues\n };\n }, [valueEntities]);\n\n // Filtered Tree\n var filteredTreeData = useFilterTreeData(mergedTreeData, mergedSearchValue, {\n fieldNames: mergedFieldNames,\n treeNodeFilterProp: treeNodeFilterProp,\n filterTreeNode: filterTreeNode\n });\n\n // =========================== Label ============================\n var getLabel = React.useCallback(function (item) {\n if (item) {\n if (treeNodeLabelProp) {\n return item[treeNodeLabelProp];\n }\n\n // Loop from fieldNames\n var titleList = mergedFieldNames._title;\n for (var i = 0; i < titleList.length; i += 1) {\n var title = item[titleList[i]];\n if (title !== undefined) {\n return title;\n }\n }\n }\n }, [mergedFieldNames, treeNodeLabelProp]);\n\n // ========================= Wrap Value =========================\n var toLabeledValues = React.useCallback(function (draftValues) {\n var values = toArray(draftValues);\n return values.map(function (val) {\n if (isRawValue(val)) {\n return {\n value: val\n };\n }\n return val;\n });\n }, []);\n var convert2LabelValues = React.useCallback(function (draftValues) {\n var values = toLabeledValues(draftValues);\n return values.map(function (item) {\n var rawLabel = item.label;\n var rawValue = item.value,\n rawHalfChecked = item.halfChecked;\n var rawDisabled;\n var entity = valueEntities.get(rawValue);\n\n // Fill missing label & status\n if (entity) {\n var _rawLabel;\n rawLabel = treeTitleRender ? treeTitleRender(entity.node) : (_rawLabel = rawLabel) !== null && _rawLabel !== void 0 ? _rawLabel : getLabel(entity.node);\n rawDisabled = entity.node.disabled;\n } else if (rawLabel === undefined) {\n // We try to find in current `labelInValue` value\n var labelInValueItem = toLabeledValues(internalValue).find(function (labeledItem) {\n return labeledItem.value === rawValue;\n });\n rawLabel = labelInValueItem.label;\n }\n return {\n label: rawLabel,\n value: rawValue,\n halfChecked: rawHalfChecked,\n disabled: rawDisabled\n };\n });\n }, [valueEntities, getLabel, toLabeledValues, internalValue]);\n\n // =========================== Values ===========================\n var rawMixedLabeledValues = React.useMemo(function () {\n return toLabeledValues(internalValue);\n }, [toLabeledValues, internalValue]);\n\n // Split value into full check and half check\n var _React$useMemo = React.useMemo(function () {\n var fullCheckValues = [];\n var halfCheckValues = [];\n rawMixedLabeledValues.forEach(function (item) {\n if (item.halfChecked) {\n halfCheckValues.push(item);\n } else {\n fullCheckValues.push(item);\n }\n });\n return [fullCheckValues, halfCheckValues];\n }, [rawMixedLabeledValues]),\n _React$useMemo2 = _slicedToArray(_React$useMemo, 2),\n rawLabeledValues = _React$useMemo2[0],\n rawHalfLabeledValues = _React$useMemo2[1];\n\n // const [mergedValues] = useCache(rawLabeledValues);\n var rawValues = React.useMemo(function () {\n return rawLabeledValues.map(function (item) {\n return item.value;\n });\n }, [rawLabeledValues]);\n\n // Convert value to key. Will fill missed keys for conduct check.\n var _useCheckedKeys = useCheckedKeys(rawLabeledValues, rawHalfLabeledValues, treeConduction, keyEntities),\n _useCheckedKeys2 = _slicedToArray(_useCheckedKeys, 2),\n rawCheckedValues = _useCheckedKeys2[0],\n rawHalfCheckedValues = _useCheckedKeys2[1];\n\n // Convert rawCheckedKeys to check strategy related values\n var displayValues = React.useMemo(function () {\n // Collect keys which need to show\n var displayKeys = formatStrategyValues(rawCheckedValues, mergedShowCheckedStrategy, keyEntities, mergedFieldNames);\n\n // Convert to value and filled with label\n var values = displayKeys.map(function (key) {\n var _keyEntities$key$node, _keyEntities$key;\n return (_keyEntities$key$node = (_keyEntities$key = keyEntities[key]) === null || _keyEntities$key === void 0 || (_keyEntities$key = _keyEntities$key.node) === null || _keyEntities$key === void 0 ? void 0 : _keyEntities$key[mergedFieldNames.value]) !== null && _keyEntities$key$node !== void 0 ? _keyEntities$key$node : key;\n });\n\n // Back fill with origin label\n var labeledValues = values.map(function (val) {\n var targetItem = rawLabeledValues.find(function (item) {\n return item.value === val;\n });\n var label;\n // Ensure that when labelInValue is true, if label is undefined, it remains undefined.\n if (labelInValue && targetItem.label !== undefined) {\n label = targetItem.label;\n } else if (!labelInValue && treeTitleRender) {\n label = treeTitleRender(targetItem);\n }\n return {\n value: val,\n label: label\n };\n });\n var rawDisplayValues = convert2LabelValues(labeledValues);\n var firstVal = rawDisplayValues[0];\n if (!mergedMultiple && firstVal && isNil(firstVal.value) && isNil(firstVal.label)) {\n return [];\n }\n return rawDisplayValues.map(function (item) {\n var _item$label;\n return _objectSpread(_objectSpread({}, item), {}, {\n label: (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : item.value\n });\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [mergedFieldNames, mergedMultiple, rawCheckedValues, rawLabeledValues, convert2LabelValues, mergedShowCheckedStrategy, keyEntities]);\n var _useCache = useCache(displayValues),\n _useCache2 = _slicedToArray(_useCache, 1),\n cachedDisplayValues = _useCache2[0];\n\n // =========================== Change ===========================\n var triggerChange = useRefFunc(function (newRawValues, extra, source) {\n var labeledValues = convert2LabelValues(newRawValues);\n setInternalValue(labeledValues);\n\n // Clean up if needed\n if (autoClearSearchValue) {\n setSearchValue('');\n }\n\n // Generate rest parameters is costly, so only do it when necessary\n if (onChange) {\n var eventValues = newRawValues;\n if (treeConduction) {\n var formattedKeyList = formatStrategyValues(newRawValues, mergedShowCheckedStrategy, keyEntities, mergedFieldNames);\n eventValues = formattedKeyList.map(function (key) {\n var entity = valueEntities.get(key);\n return entity ? entity.node[mergedFieldNames.value] : key;\n });\n }\n var _ref = extra || {\n triggerValue: undefined,\n selected: undefined\n },\n triggerValue = _ref.triggerValue,\n selected = _ref.selected;\n var returnRawValues = eventValues;\n\n // We need fill half check back\n if (treeCheckStrictly) {\n var halfValues = rawHalfLabeledValues.filter(function (item) {\n return !eventValues.includes(item.value);\n });\n returnRawValues = [].concat(_toConsumableArray(returnRawValues), _toConsumableArray(halfValues));\n }\n var returnLabeledValues = convert2LabelValues(returnRawValues);\n var additionalInfo = {\n // [Legacy] Always return as array contains label & value\n preValue: rawLabeledValues,\n triggerValue: triggerValue\n };\n\n // [Legacy] Fill legacy data if user query.\n // This is expansive that we only fill when user query\n // https://github.com/react-component/tree-select/blob/fe33eb7c27830c9ac70cd1fdb1ebbe7bc679c16a/src/Select.jsx\n var showPosition = true;\n if (treeCheckStrictly || source === 'selection' && !selected) {\n showPosition = false;\n }\n fillAdditionalInfo(additionalInfo, triggerValue, newRawValues, mergedTreeData, showPosition, mergedFieldNames);\n if (mergedCheckable) {\n additionalInfo.checked = selected;\n } else {\n additionalInfo.selected = selected;\n }\n var returnValues = mergedLabelInValue ? returnLabeledValues : returnLabeledValues.map(function (item) {\n return item.value;\n });\n onChange(mergedMultiple ? returnValues : returnValues[0], mergedLabelInValue ? null : returnLabeledValues.map(function (item) {\n return item.label;\n }), additionalInfo);\n }\n });\n\n // ========================== Options ===========================\n /** Trigger by option list */\n var onOptionSelect = React.useCallback(function (selectedKey, _ref2) {\n var _node$mergedFieldName;\n var selected = _ref2.selected,\n source = _ref2.source;\n var entity = keyEntities[selectedKey];\n var node = entity === null || entity === void 0 ? void 0 : entity.node;\n var selectedValue = (_node$mergedFieldName = node === null || node === void 0 ? void 0 : node[mergedFieldNames.value]) !== null && _node$mergedFieldName !== void 0 ? _node$mergedFieldName : selectedKey;\n\n // Never be falsy but keep it safe\n if (!mergedMultiple) {\n // Single mode always set value\n triggerChange([selectedValue], {\n selected: true,\n triggerValue: selectedValue\n }, 'option');\n } else {\n var newRawValues = selected ? [].concat(_toConsumableArray(rawValues), [selectedValue]) : rawCheckedValues.filter(function (v) {\n return v !== selectedValue;\n });\n\n // Add keys if tree conduction\n if (treeConduction) {\n // Should keep missing values\n var _splitRawValues = splitRawValues(newRawValues),\n missingRawValues = _splitRawValues.missingRawValues,\n existRawValues = _splitRawValues.existRawValues;\n var keyList = existRawValues.map(function (val) {\n return valueEntities.get(val).key;\n });\n\n // Conduction by selected or not\n var checkedKeys;\n if (selected) {\n var _conductCheck = conductCheck(keyList, true, keyEntities);\n checkedKeys = _conductCheck.checkedKeys;\n } else {\n var _conductCheck2 = conductCheck(keyList, {\n checked: false,\n halfCheckedKeys: rawHalfCheckedValues\n }, keyEntities);\n checkedKeys = _conductCheck2.checkedKeys;\n }\n\n // Fill back of keys\n newRawValues = [].concat(_toConsumableArray(missingRawValues), _toConsumableArray(checkedKeys.map(function (key) {\n return keyEntities[key].node[mergedFieldNames.value];\n })));\n }\n triggerChange(newRawValues, {\n selected: selected,\n triggerValue: selectedValue\n }, source || 'option');\n }\n\n // Trigger select event\n if (selected || !mergedMultiple) {\n onSelect === null || onSelect === void 0 || onSelect(selectedValue, fillLegacyProps(node));\n } else {\n onDeselect === null || onDeselect === void 0 || onDeselect(selectedValue, fillLegacyProps(node));\n }\n }, [splitRawValues, valueEntities, keyEntities, mergedFieldNames, mergedMultiple, rawValues, triggerChange, treeConduction, onSelect, onDeselect, rawCheckedValues, rawHalfCheckedValues]);\n\n // ========================== Dropdown ==========================\n var onInternalDropdownVisibleChange = React.useCallback(function (open) {\n if (onDropdownVisibleChange) {\n var legacyParam = {};\n Object.defineProperty(legacyParam, 'documentClickClose', {\n get: function get() {\n warning(false, 'Second param of `onDropdownVisibleChange` has been removed.');\n return false;\n }\n });\n onDropdownVisibleChange(open, legacyParam);\n }\n }, [onDropdownVisibleChange]);\n\n // ====================== Display Change ========================\n var onDisplayValuesChange = useRefFunc(function (newValues, info) {\n var newRawValues = newValues.map(function (item) {\n return item.value;\n });\n if (info.type === 'clear') {\n triggerChange(newRawValues, {}, 'selection');\n return;\n }\n\n // TreeSelect only have multiple mode which means display change only has remove\n if (info.values.length) {\n onOptionSelect(info.values[0].value, {\n selected: false,\n source: 'selection'\n });\n }\n });\n\n // ========================== Context ===========================\n var treeSelectContext = React.useMemo(function () {\n return {\n virtual: virtual,\n dropdownMatchSelectWidth: dropdownMatchSelectWidth,\n listHeight: listHeight,\n listItemHeight: listItemHeight,\n listItemScrollOffset: listItemScrollOffset,\n treeData: filteredTreeData,\n fieldNames: mergedFieldNames,\n onSelect: onOptionSelect,\n treeExpandAction: treeExpandAction,\n treeTitleRender: treeTitleRender,\n onPopupScroll: onPopupScroll\n };\n }, [virtual, dropdownMatchSelectWidth, listHeight, listItemHeight, listItemScrollOffset, filteredTreeData, mergedFieldNames, onOptionSelect, treeExpandAction, treeTitleRender, onPopupScroll]);\n\n // ======================= Legacy Context =======================\n var legacyContext = React.useMemo(function () {\n return {\n checkable: mergedCheckable,\n loadData: loadData,\n treeLoadedKeys: treeLoadedKeys,\n onTreeLoad: onTreeLoad,\n checkedKeys: rawCheckedValues,\n halfCheckedKeys: rawHalfCheckedValues,\n treeDefaultExpandAll: treeDefaultExpandAll,\n treeExpandedKeys: treeExpandedKeys,\n treeDefaultExpandedKeys: treeDefaultExpandedKeys,\n onTreeExpand: onTreeExpand,\n treeIcon: treeIcon,\n treeMotion: treeMotion,\n showTreeIcon: showTreeIcon,\n switcherIcon: switcherIcon,\n treeLine: treeLine,\n treeNodeFilterProp: treeNodeFilterProp,\n keyEntities: keyEntities\n };\n }, [mergedCheckable, loadData, treeLoadedKeys, onTreeLoad, rawCheckedValues, rawHalfCheckedValues, treeDefaultExpandAll, treeExpandedKeys, treeDefaultExpandedKeys, onTreeExpand, treeIcon, treeMotion, showTreeIcon, switcherIcon, treeLine, treeNodeFilterProp, keyEntities]);\n\n // =========================== Render ===========================\n return /*#__PURE__*/React.createElement(TreeSelectContext.Provider, {\n value: treeSelectContext\n }, /*#__PURE__*/React.createElement(LegacyContext.Provider, {\n value: legacyContext\n }, /*#__PURE__*/React.createElement(BaseSelect, _extends({\n ref: ref\n }, restProps, {\n // >>> MISC\n id: mergedId,\n prefixCls: prefixCls,\n mode: mergedMultiple ? 'multiple' : undefined\n // >>> Display Value\n ,\n displayValues: cachedDisplayValues,\n onDisplayValuesChange: onDisplayValuesChange\n // >>> Search\n ,\n searchValue: mergedSearchValue,\n onSearch: onInternalSearch\n // >>> Options\n ,\n OptionList: OptionList,\n emptyOptions: !mergedTreeData.length,\n onDropdownVisibleChange: onInternalDropdownVisibleChange,\n dropdownMatchSelectWidth: dropdownMatchSelectWidth\n }))));\n});\n\n// Assign name for Debug\nif (process.env.NODE_ENV !== 'production') {\n TreeSelect.displayName = 'TreeSelect';\n}\nvar GenericTreeSelect = TreeSelect;\nGenericTreeSelect.TreeNode = TreeNode;\nGenericTreeSelect.SHOW_ALL = SHOW_ALL;\nGenericTreeSelect.SHOW_PARENT = SHOW_PARENT;\nGenericTreeSelect.SHOW_CHILD = SHOW_CHILD;\nexport default GenericTreeSelect;","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport * as React from 'react';\n/**\n * This function will try to call requestIdleCallback if available to save performance.\n * No need `getLabel` here since already fetch on `rawLabeledValue`.\n */\nexport default (function (values) {\n var cacheRef = React.useRef({\n valueLabels: new Map()\n });\n return React.useMemo(function () {\n var valueLabels = cacheRef.current.valueLabels;\n var valueLabelsCache = new Map();\n var filledValues = values.map(function (item) {\n var _item$label;\n var value = item.value;\n var mergedLabel = (_item$label = item.label) !== null && _item$label !== void 0 ? _item$label : valueLabels.get(value);\n\n // Save in cache\n valueLabelsCache.set(value, mergedLabel);\n return _objectSpread(_objectSpread({}, item), {}, {\n label: mergedLabel\n });\n });\n cacheRef.current.valueLabels = valueLabelsCache;\n return [filledValues];\n }, [values]);\n});","import _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport * as React from 'react';\nimport { convertDataToEntities } from \"rc-tree/es/utils/treeUtil\";\nimport warning from \"rc-util/es/warning\";\nimport { isNil } from \"../utils/valueUtil\";\nexport default (function (treeData, fieldNames) {\n return React.useMemo(function () {\n var collection = convertDataToEntities(treeData, {\n fieldNames: fieldNames,\n initWrapper: function initWrapper(wrapper) {\n return _objectSpread(_objectSpread({}, wrapper), {}, {\n valueEntities: new Map()\n });\n },\n processEntity: function processEntity(entity, wrapper) {\n var val = entity.node[fieldNames.value];\n\n // Check if exist same value\n if (process.env.NODE_ENV !== 'production') {\n var key = entity.node.key;\n warning(!isNil(val), 'TreeNode `value` is invalidate: undefined');\n warning(!wrapper.valueEntities.has(val), \"Same `value` exist in the tree: \".concat(val));\n warning(!key || String(key) === String(val), \"`key` or `value` with TreeNode must be the same or you can remove one of them. key: \".concat(key, \", value: \").concat(val, \".\"));\n }\n wrapper.valueEntities.set(val, entity);\n }\n });\n return collection;\n }, [treeData, fieldNames]);\n});","import _defineProperty from \"@babel/runtime/helpers/esm/defineProperty\";\nimport _objectSpread from \"@babel/runtime/helpers/esm/objectSpread2\";\nimport * as React from 'react';\nimport { fillLegacyProps } from \"../utils/legacyUtil\";\nexport default (function (treeData, searchValue, _ref) {\n var treeNodeFilterProp = _ref.treeNodeFilterProp,\n filterTreeNode = _ref.filterTreeNode,\n fieldNames = _ref.fieldNames;\n var fieldChildren = fieldNames.children;\n return React.useMemo(function () {\n if (!searchValue || filterTreeNode === false) {\n return treeData;\n }\n var filterOptionFunc;\n if (typeof filterTreeNode === 'function') {\n filterOptionFunc = filterTreeNode;\n } else {\n var upperStr = searchValue.toUpperCase();\n filterOptionFunc = function filterOptionFunc(_, dataNode) {\n var value = dataNode[treeNodeFilterProp];\n return String(value).toUpperCase().includes(upperStr);\n };\n }\n function dig(list) {\n var keepAll = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;\n return list.reduce(function (total, dataNode) {\n var children = dataNode[fieldChildren];\n var match = keepAll || filterOptionFunc(searchValue, fillLegacyProps(dataNode));\n var childList = dig(children || [], match);\n if (match || childList.length) {\n total.push(_objectSpread(_objectSpread({}, dataNode), {}, _defineProperty({\n isLeaf: undefined\n }, fieldChildren, childList)));\n }\n return total;\n }, []);\n }\n return dig(treeData);\n }, [treeData, searchValue, fieldChildren, treeNodeFilterProp, filterTreeNode]);\n});","import _toConsumableArray from \"@babel/runtime/helpers/esm/toConsumableArray\";\nimport * as React from 'react';\nimport { conductCheck } from \"rc-tree/es/utils/conductUtil\";\nexport default (function (rawLabeledValues, rawHalfCheckedValues, treeConduction, keyEntities) {\n return React.useMemo(function () {\n var checkedKeys = rawLabeledValues.map(function (_ref) {\n var value = _ref.value;\n return value;\n });\n var halfCheckedKeys = rawHalfCheckedValues.map(function (_ref2) {\n var value = _ref2.value;\n return value;\n });\n var missingValues = checkedKeys.filter(function (key) {\n return !keyEntities[key];\n });\n if (treeConduction) {\n var _conductCheck = conductCheck(checkedKeys, true, keyEntities);\n checkedKeys = _conductCheck.checkedKeys;\n halfCheckedKeys = _conductCheck.halfCheckedKeys;\n }\n return [\n // Checked keys should fill with missing keys which should de-duplicated\n Array.from(new Set([].concat(_toConsumableArray(missingValues), _toConsumableArray(checkedKeys)))),\n // Half checked keys\n halfCheckedKeys];\n }, [rawLabeledValues, rawHalfCheckedValues, treeConduction, keyEntities]);\n});","import TreeSelect from \"./TreeSelect\";\nimport TreeNode from \"./TreeNode\";\nimport { SHOW_ALL, SHOW_CHILD, SHOW_PARENT } from \"./utils/strategyUtil\";\nexport { TreeNode, SHOW_ALL, SHOW_CHILD, SHOW_PARENT };\nexport default TreeSelect;","import { unit } from '@ant-design/cssinjs';\nimport { getStyle as getCheckboxStyle } from '../../checkbox/style';\nimport { genStyleHooks, mergeToken } from '../../theme/internal';\nimport { genTreeStyle, initComponentToken } from '../../tree/style';\n// =============================== Base ===============================\nconst genBaseStyle = token => {\n const {\n componentCls,\n treePrefixCls,\n colorBgElevated\n } = token;\n const treeCls = `.${treePrefixCls}`;\n return [\n // ======================================================\n // == Dropdown ==\n // ======================================================\n {\n [`${componentCls}-dropdown`]: [{\n padding: `${unit(token.paddingXS)} ${unit(token.calc(token.paddingXS).div(2).equal())}`\n },\n // ====================== Tree ======================\n genTreeStyle(treePrefixCls, mergeToken(token, {\n colorBgContainer: colorBgElevated\n })), {\n [treeCls]: {\n borderRadius: 0,\n [`${treeCls}-list-holder-inner`]: {\n alignItems: 'stretch',\n [`${treeCls}-treenode`]: {\n [`${treeCls}-node-content-wrapper`]: {\n flex: 'auto'\n }\n }\n }\n }\n },\n // ==================== Checkbox ====================\n getCheckboxStyle(`${treePrefixCls}-checkbox`, token),\n // ====================== RTL =======================\n {\n '&-rtl': {\n direction: 'rtl',\n [`${treeCls}-switcher${treeCls}-switcher_close`]: {\n [`${treeCls}-switcher-icon svg`]: {\n transform: 'rotate(90deg)'\n }\n }\n }\n }]\n }];\n};\nexport const prepareComponentToken = initComponentToken;\n// ============================== Export ==============================\nexport default function useTreeSelectStyle(prefixCls, treePrefixCls, rootCls) {\n return genStyleHooks('TreeSelect', token => {\n const treeSelectToken = mergeToken(token, {\n treePrefixCls\n });\n return [genBaseStyle(treeSelectToken)];\n }, initComponentToken)(prefixCls, rootCls);\n}","\"use client\";\n\nvar __rest = this && this.__rest || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport classNames from 'classnames';\nimport RcTreeSelect, { SHOW_ALL, SHOW_CHILD, SHOW_PARENT, TreeNode } from 'rc-tree-select';\nimport omit from \"rc-util/es/omit\";\nimport { useZIndex } from '../_util/hooks/useZIndex';\nimport { getTransitionName } from '../_util/motion';\nimport genPurePanel from '../_util/PurePanel';\nimport { getMergedStatus, getStatusClassNames } from '../_util/statusUtils';\nimport { devUseWarning } from '../_util/warning';\nimport { ConfigContext } from '../config-provider';\nimport DefaultRenderEmpty from '../config-provider/defaultRenderEmpty';\nimport DisabledContext from '../config-provider/DisabledContext';\nimport useCSSVarCls from '../config-provider/hooks/useCSSVarCls';\nimport useSize from '../config-provider/hooks/useSize';\nimport { FormItemInputContext } from '../form/context';\nimport useVariant from '../form/hooks/useVariants';\nimport mergedBuiltinPlacements from '../select/mergedBuiltinPlacements';\nimport useSelectStyle from '../select/style';\nimport useIcons from '../select/useIcons';\nimport useShowArrow from '../select/useShowArrow';\nimport { useCompactItemContext } from '../space/Compact';\nimport SwitcherIconCom from '../tree/utils/iconUtil';\nimport useStyle from './style';\nconst InternalTreeSelect = (_a, ref) => {\n var _b;\n var {\n prefixCls: customizePrefixCls,\n size: customizeSize,\n disabled: customDisabled,\n bordered = true,\n className,\n rootClassName,\n treeCheckable,\n multiple,\n listHeight = 256,\n listItemHeight = 26,\n placement,\n notFoundContent,\n switcherIcon,\n treeLine,\n getPopupContainer,\n popupClassName,\n dropdownClassName,\n treeIcon = false,\n transitionName,\n choiceTransitionName = '',\n status: customStatus,\n treeExpandAction,\n builtinPlacements,\n dropdownMatchSelectWidth,\n popupMatchSelectWidth,\n allowClear,\n variant: customVariant,\n dropdownStyle,\n tagRender\n } = _a,\n props = __rest(_a, [\"prefixCls\", \"size\", \"disabled\", \"bordered\", \"className\", \"rootClassName\", \"treeCheckable\", \"multiple\", \"listHeight\", \"listItemHeight\", \"placement\", \"notFoundContent\", \"switcherIcon\", \"treeLine\", \"getPopupContainer\", \"popupClassName\", \"dropdownClassName\", \"treeIcon\", \"transitionName\", \"choiceTransitionName\", \"status\", \"treeExpandAction\", \"builtinPlacements\", \"dropdownMatchSelectWidth\", \"popupMatchSelectWidth\", \"allowClear\", \"variant\", \"dropdownStyle\", \"tagRender\"]);\n const {\n getPopupContainer: getContextPopupContainer,\n getPrefixCls,\n renderEmpty,\n direction,\n virtual,\n popupMatchSelectWidth: contextPopupMatchSelectWidth,\n popupOverflow\n } = React.useContext(ConfigContext);\n if (process.env.NODE_ENV !== 'production') {\n const warning = devUseWarning('TreeSelect');\n process.env.NODE_ENV !== \"production\" ? warning(multiple !== false || !treeCheckable, 'usage', '`multiple` will always be `true` when `treeCheckable` is true') : void 0;\n warning.deprecated(!dropdownClassName, 'dropdownClassName', 'popupClassName');\n warning.deprecated(dropdownMatchSelectWidth === undefined, 'dropdownMatchSelectWidth', 'popupMatchSelectWidth');\n process.env.NODE_ENV !== \"production\" ? warning(!('showArrow' in props), 'deprecated', '`showArrow` is deprecated which will be removed in next major version. It will be a default behavior, you can hide it by setting `suffixIcon` to null.') : void 0;\n warning.deprecated(!('bordered' in props), 'bordered', 'variant');\n }\n const rootPrefixCls = getPrefixCls();\n const prefixCls = getPrefixCls('select', customizePrefixCls);\n const treePrefixCls = getPrefixCls('select-tree', customizePrefixCls);\n const treeSelectPrefixCls = getPrefixCls('tree-select', customizePrefixCls);\n const {\n compactSize,\n compactItemClassnames\n } = useCompactItemContext(prefixCls, direction);\n const rootCls = useCSSVarCls(prefixCls);\n const treeSelectRootCls = useCSSVarCls(treeSelectPrefixCls);\n const [wrapCSSVar, hashId, cssVarCls] = useSelectStyle(prefixCls, rootCls);\n const [treeSelectWrapCSSVar] = useStyle(treeSelectPrefixCls, treePrefixCls, treeSelectRootCls);\n const [variant, enableVariantCls] = useVariant('treeSelect', customVariant, bordered);\n const mergedDropdownClassName = classNames(popupClassName || dropdownClassName, `${treeSelectPrefixCls}-dropdown`, {\n [`${treeSelectPrefixCls}-dropdown-rtl`]: direction === 'rtl'\n }, rootClassName, cssVarCls, rootCls, treeSelectRootCls, hashId);\n const isMultiple = !!(treeCheckable || multiple);\n const showSuffixIcon = useShowArrow(props.suffixIcon, props.showArrow);\n const mergedPopupMatchSelectWidth = (_b = popupMatchSelectWidth !== null && popupMatchSelectWidth !== void 0 ? popupMatchSelectWidth : dropdownMatchSelectWidth) !== null && _b !== void 0 ? _b : contextPopupMatchSelectWidth;\n // ===================== Form =====================\n const {\n status: contextStatus,\n hasFeedback,\n isFormItemInput,\n feedbackIcon\n } = React.useContext(FormItemInputContext);\n const mergedStatus = getMergedStatus(contextStatus, customStatus);\n // ===================== Icons =====================\n const {\n suffixIcon,\n removeIcon,\n clearIcon\n } = useIcons(Object.assign(Object.assign({}, props), {\n multiple: isMultiple,\n showSuffixIcon,\n hasFeedback,\n feedbackIcon,\n prefixCls,\n componentName: 'TreeSelect'\n }));\n const mergedAllowClear = allowClear === true ? {\n clearIcon\n } : allowClear;\n // ===================== Empty =====================\n let mergedNotFound;\n if (notFoundContent !== undefined) {\n mergedNotFound = notFoundContent;\n } else {\n mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty('Select')) || /*#__PURE__*/React.createElement(DefaultRenderEmpty, {\n componentName: \"Select\"\n });\n }\n // ==================== Render =====================\n const selectProps = omit(props, ['suffixIcon', 'removeIcon', 'clearIcon', 'itemIcon', 'switcherIcon']);\n // ===================== Placement =====================\n const memoizedPlacement = React.useMemo(() => {\n if (placement !== undefined) {\n return placement;\n }\n return direction === 'rtl' ? 'bottomRight' : 'bottomLeft';\n }, [placement, direction]);\n const mergedSize = useSize(ctx => {\n var _a;\n return (_a = customizeSize !== null && customizeSize !== void 0 ? customizeSize : compactSize) !== null && _a !== void 0 ? _a : ctx;\n });\n // ===================== Disabled =====================\n const disabled = React.useContext(DisabledContext);\n const mergedDisabled = customDisabled !== null && customDisabled !== void 0 ? customDisabled : disabled;\n const mergedClassName = classNames(!customizePrefixCls && treeSelectPrefixCls, {\n [`${prefixCls}-lg`]: mergedSize === 'large',\n [`${prefixCls}-sm`]: mergedSize === 'small',\n [`${prefixCls}-rtl`]: direction === 'rtl',\n [`${prefixCls}-${variant}`]: enableVariantCls,\n [`${prefixCls}-in-form-item`]: isFormItemInput\n }, getStatusClassNames(prefixCls, mergedStatus, hasFeedback), compactItemClassnames, className, rootClassName, cssVarCls, rootCls, treeSelectRootCls, hashId);\n const renderSwitcherIcon = nodeProps => ( /*#__PURE__*/React.createElement(SwitcherIconCom, {\n prefixCls: treePrefixCls,\n switcherIcon: switcherIcon,\n treeNodeProps: nodeProps,\n showLine: treeLine\n }));\n // ============================ zIndex ============================\n const [zIndex] = useZIndex('SelectLike', dropdownStyle === null || dropdownStyle === void 0 ? void 0 : dropdownStyle.zIndex);\n const returnNode = /*#__PURE__*/React.createElement(RcTreeSelect, Object.assign({\n virtual: virtual,\n disabled: mergedDisabled\n }, selectProps, {\n dropdownMatchSelectWidth: mergedPopupMatchSelectWidth,\n builtinPlacements: mergedBuiltinPlacements(builtinPlacements, popupOverflow),\n ref: ref,\n prefixCls: prefixCls,\n className: mergedClassName,\n listHeight: listHeight,\n listItemHeight: listItemHeight,\n treeCheckable: treeCheckable ? /*#__PURE__*/React.createElement(\"span\", {\n className: `${prefixCls}-tree-checkbox-inner`\n }) : treeCheckable,\n treeLine: !!treeLine,\n suffixIcon: suffixIcon,\n multiple: isMultiple,\n placement: memoizedPlacement,\n removeIcon: removeIcon,\n allowClear: mergedAllowClear,\n switcherIcon: renderSwitcherIcon,\n showTreeIcon: treeIcon,\n notFoundContent: mergedNotFound,\n getPopupContainer: getPopupContainer || getContextPopupContainer,\n treeMotion: null,\n dropdownClassName: mergedDropdownClassName,\n dropdownStyle: Object.assign(Object.assign({}, dropdownStyle), {\n zIndex\n }),\n choiceTransitionName: getTransitionName(rootPrefixCls, '', choiceTransitionName),\n transitionName: getTransitionName(rootPrefixCls, 'slide-up', transitionName),\n treeExpandAction: treeExpandAction,\n tagRender: isMultiple ? tagRender : undefined\n }));\n return wrapCSSVar(treeSelectWrapCSSVar(returnNode));\n};\nconst TreeSelectRef = /*#__PURE__*/React.forwardRef(InternalTreeSelect);\nconst TreeSelect = TreeSelectRef;\n// We don't care debug panel\n/* istanbul ignore next */\nconst PurePanel = genPurePanel(TreeSelect);\nTreeSelect.TreeNode = TreeNode;\nTreeSelect.SHOW_ALL = SHOW_ALL;\nTreeSelect.SHOW_PARENT = SHOW_PARENT;\nTreeSelect.SHOW_CHILD = SHOW_CHILD;\nTreeSelect._InternalPanelDoNotUseOrYouWillBeFired = PurePanel;\nif (process.env.NODE_ENV !== 'production') {\n TreeSelect.displayName = 'TreeSelect';\n}\nexport { TreeNode };\nexport default TreeSelect;"],"names":["_excluded","convertChildrenToData","nodes","map","node","type","_ref","key","_ref$props","props","children","value","restProps","data","childData","length","filter","fillLegacyProps","dataNode","cloneNode","Object","defineProperty","get","useRefFunc","callback","funcRef","current","cacheFn","apply","arguments","useTreeData","treeData","simpleMode","id","pId","rootPId","keyNodes","rootNodeList","clone","forEach","parentKey","parent","push","parseSimpleTreeData","isCheckDisabled","disabled","disableCheckbox","checkable","isNil","val","HIDDEN_STYLE","width","height","display","overflow","opacity","border","padding","margin","OptionList","_","ref","_useBaseProps","prefixCls","multiple","searchValue","toggleOpen","open","notFoundContent","_React$useContext","virtual","listHeight","listItemHeight","listItemScrollOffset","fieldNames","onSelect","dropdownMatchSelectWidth","treeExpandAction","treeTitleRender","onPopupScroll","_React$useContext2","LegacyContext","checkedKeys","halfCheckedKeys","treeExpandedKeys","treeDefaultExpandAll","treeDefaultExpandedKeys","onTreeExpand","treeIcon","showTreeIcon","switcherIcon","treeLine","treeNodeFilterProp","loadData","treeLoadedKeys","treeMotion","onTreeLoad","keyEntities","treeRef","memoTreeData","useMemo","prev","next","_React$useState","_React$useState2","activeKey","setActiveKey","activeEntity","mergedCheckedKeys","checked","halfChecked","_treeRef$current","scrollTo","lowerSearchValue","String","toLowerCase","_React$useState3","_React$useState4","expandedKeys","setExpandedKeys","_React$useState5","_React$useState6","searchExpandedKeys","setSearchExpandedKeys","mergedExpandedKeys","keys","dig","list","item","getAllKeys","onListMouseDown","event","preventDefault","onInternalSelect","__","info","selected","includes","_treeRef$current2","onKeyDown","_treeRef$current3","which","KeyCode","UP","DOWN","LEFT","RIGHT","ENTER","selectable","ESC","onKeyUp","role","className","concat","onMouseDown","treeProps","loadedKeys","style","focusable","itemHeight","itemScrollOffset","icon","showIcon","showLine","motion","checkStrictly","selectedKeys","defaultExpandAll","titleRender","onActiveChange","onCheck","onExpand","onLoad","filterTreeNode","treeNode","expandAction","onScroll","SHOW_ALL","SHOW_PARENT","SHOW_CHILD","formatStrategyValues","values","strategy","valueSet","Set","entity","some","has","every","_ref2","GenericTreeSelect","cacheRef","_props$prefixCls","defaultValue","onChange","onDeselect","inputValue","onSearch","_props$autoClearSearc","autoClearSearchValue","_props$treeNodeFilter","showCheckedStrategy","treeNodeLabelProp","treeCheckable","treeCheckStrictly","labelInValue","treeDataSimpleMode","_props$listHeight","_props$listItemHeight","_props$listItemScroll","onDropdownVisibleChange","_props$dropdownMatchS","mergedId","useId","treeConduction","mergedCheckable","mergedLabelInValue","mergedMultiple","_useMergedState","useMergedState","_useMergedState2","internalValue","setInternalValue","mergedShowCheckedStrategy","mergedFieldNames","label","mergedValue","_title","fillFieldNames","JSON","stringify","_useMergedState3","undefined","postState","search","_useMergedState4","mergedSearchValue","setSearchValue","mergedTreeData","_useDataEntities","initWrapper","wrapper","valueEntities","Map","processEntity","set","useDataEntities","splitRawValues","newRawValues","missingRawValues","existRawValues","filteredTreeData","fieldChildren","filterOptionFunc","upperStr","toUpperCase","keepAll","reduce","total","match","childList","isLeaf","useFilterTreeData","getLabel","titleList","i","title","toLabeledValues","draftValues","Array","isArray","isRawValue","convert2LabelValues","rawDisabled","_rawLabel","rawLabel","rawValue","rawHalfChecked","find","labeledItem","rawMixedLabeledValues","_React$useMemo","fullCheckValues","halfCheckValues","_React$useMemo2","rawLabeledValues","rawHalfLabeledValues","rawValues","_useCheckedKeys","rawHalfCheckedValues","missingValues","_conductCheck","from","useCheckedKeys","_useCheckedKeys2","rawCheckedValues","displayValues","labeledValues","_keyEntities$key$node","_keyEntities$key","targetItem","rawDisplayValues","firstVal","_item$label","_useCache","valueLabels","valueLabelsCache","filledValues","mergedLabel","cachedDisplayValues","triggerChange","extra","source","eventValues","formattedKeyList","triggerValue","returnRawValues","halfValues","returnLabeledValues","additionalInfo","preValue","showPosition","checkedValues","triggerNode","nodeList","generateMap","level","parentIncluded","option","index","pos","included","child","checkedNode","sort","_ref3","val1","val2","indexOf","_ref4","fillAdditionalInfo","returnValues","onOptionSelect","selectedKey","_node$mergedFieldName","selectedValue","v","_splitRawValues","keyList","onInternalDropdownVisibleChange","legacyParam","onDisplayValuesChange","newValues","treeSelectContext","legacyContext","Provider","mode","searchText","emptyOptions","TreeNode","genBaseStyle","token","componentCls","treePrefixCls","colorBgElevated","treeCls","paddingXS","calc","div","equal","colorBgContainer","borderRadius","alignItems","flex","direction","transform","InternalTreeSelect","_a","_b","customizePrefixCls","size","customizeSize","customDisabled","bordered","rootClassName","placement","getPopupContainer","popupClassName","dropdownClassName","transitionName","choiceTransitionName","status","customStatus","builtinPlacements","popupMatchSelectWidth","allowClear","variant","customVariant","dropdownStyle","tagRender","s","e","t","p","prototype","hasOwnProperty","call","getOwnPropertySymbols","propertyIsEnumerable","__rest","getContextPopupContainer","getPrefixCls","renderEmpty","contextPopupMatchSelectWidth","popupOverflow","rootPrefixCls","treeSelectPrefixCls","compactSize","compactItemClassnames","rootCls","useCSSVarCls","treeSelectRootCls","wrapCSSVar","hashId","cssVarCls","treeSelectWrapCSSVar","treeSelectToken","enableVariantCls","mergedDropdownClassName","isMultiple","showSuffixIcon","useShowArrow","suffixIcon","showArrow","mergedPopupMatchSelectWidth","contextStatus","hasFeedback","isFormItemInput","feedbackIcon","mergedStatus","removeIcon","clearIcon","useIcons","assign","componentName","mergedAllowClear","mergedNotFound","selectProps","omit","memoizedPlacement","mergedSize","useSize","ctx","DisabledContext","mergedDisabled","mergedClassName","zIndex","useZIndex","mergedBuiltinPlacements","nodeProps","treeNodeProps","_InternalPanelDoNotUseOrYouWillBeFired"],"sourceRoot":""}
@@ -1,3 +0,0 @@
1
- /*! For license information please see 9978.ab072b2a.js.LICENSE.txt */
2
- "use strict";(globalThis.webpackChunk_next_bricks_advanced=globalThis.webpackChunk_next_bricks_advanced||[]).push([[9978],{13744:(e,n,t)=>{t.d(n,{A:()=>c});var o=t(89575),r=t(18769);const i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm127.98 274.82h-.04l-.08.06L512 466.75 384.14 338.88c-.04-.05-.06-.06-.08-.06a.12.12 0 00-.07 0c-.03 0-.05.01-.09.05l-45.02 45.02a.2.2 0 00-.05.09.12.12 0 000 .07v.02a.27.27 0 00.06.06L466.75 512 338.88 639.86c-.05.04-.06.06-.06.08a.12.12 0 000 .07c0 .03.01.05.05.09l45.02 45.02a.2.2 0 00.09.05.12.12 0 00.07 0c.02 0 .04-.01.08-.05L512 557.25l127.86 127.87c.04.04.06.05.08.05a.12.12 0 00.07 0c.03 0 .05-.01.09-.05l45.02-45.02a.2.2 0 00.05-.09.12.12 0 000-.07v-.02a.27.27 0 00-.05-.06L557.25 512l127.87-127.86c.04-.04.05-.06.05-.08a.12.12 0 000-.07c0-.03-.01-.05-.05-.09l-45.02-45.02a.2.2 0 00-.09-.05.12.12 0 00-.07 0z"}}]},name:"close-circle",theme:"filled"};var a=t(84021),l=function(e,n){return r.createElement(a.A,(0,o.A)({},e,{ref:n,icon:i}))};const c=r.forwardRef(l)},39718:(e,n,t)=>{t.d(n,{A:()=>c});var o=t(89575),r=t(18769);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};var a=t(84021),l=function(e,n){return r.createElement(a.A,(0,o.A)({},e,{ref:n,icon:i}))};const c=r.forwardRef(l)},74132:(e,n,t)=>{t.d(n,{A:()=>l});var o=t(18769),r=t(64948),i=t(80050),a=t(9642);const l=(e,n,t,l)=>function(e){return n=>o.createElement(i.Ay,{theme:{token:{motion:!1,zIndexPopupBase:0}}},o.createElement(e,Object.assign({},n)))}((i=>{const{prefixCls:c,style:s}=i,u=o.useRef(null),[d,p]=o.useState(0),[m,f]=o.useState(0),[v,g]=(0,r.A)(!1,{value:i.open}),{getPrefixCls:h}=o.useContext(a.QO),b=h(n||"select",c);o.useEffect((()=>{if(g(!0),"undefined"!=typeof ResizeObserver){const e=new ResizeObserver((e=>{const n=e[0].target;p(n.offsetHeight+8),f(n.offsetWidth)})),n=setInterval((()=>{var o;const r=t?`.${t(b)}`:`.${b}-dropdown`,i=null===(o=u.current)||void 0===o?void 0:o.querySelector(r);i&&(clearInterval(n),e.observe(i))}),10);return()=>{clearInterval(n),e.disconnect()}}}),[]);let y=Object.assign(Object.assign({},i),{style:Object.assign(Object.assign({},s),{margin:0}),open:v,visible:v,getPopupContainer:()=>u.current});l&&(y=l(y));const A={paddingBottom:d,position:"relative",minWidth:m};return o.createElement("div",{ref:u,style:A},o.createElement(e,Object.assign({},y)))}))},43307:(e,n,t)=>{t.d(n,{L:()=>i,v:()=>a});var o=t(53373),r=t.n(o);function i(e,n,t){return r()({[`${e}-status-success`]:"success"===n,[`${e}-status-warning`]:"warning"===n,[`${e}-status-error`]:"error"===n,[`${e}-status-validating`]:"validating"===n,[`${e}-has-feedback`]:t})}const a=(e,n)=>n||e},34203:(e,n,t)=>{t.d(n,{A:()=>l});var o=t(18769),r=t.n(o),i=t(9642),a=t(16387);const l=e=>{const{componentName:n}=e,{getPrefixCls:t}=(0,o.useContext)(i.QO),l=t("empty");switch(n){case"Table":case"List":return r().createElement(a.A,{image:a.A.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return r().createElement(a.A,{image:a.A.PRESENTED_IMAGE_SIMPLE,className:`${l}-small`});default:return r().createElement(a.A,null)}}},50509:(e,n,t)=>{t.d(n,{A:()=>r});var o=t(19509);const r=e=>{const[,,,,n]=(0,o.Ay)();return n?`${e}-css-var`:""}},16387:(e,n,t)=>{t.d(n,{A:()=>y});var o=t(18769),r=t(53373),i=t.n(r),a=t(9642),l=t(52468),c=t(55983),s=t(19509);const u=()=>{const[,e]=(0,s.Ay)(),n=new c.q(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return o.createElement("svg",{style:n,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"empty image"),o.createElement("g",{fill:"none",fillRule:"evenodd"},o.createElement("g",{transform:"translate(24 31.67)"},o.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),o.createElement("path",{d:"M122.034 69.674L98.109 40.229c-1.148-1.386-2.826-2.225-4.593-2.225h-51.44c-1.766 0-3.444.839-4.592 2.225L13.56 69.674v15.383h108.475V69.674z",fill:"#AEB8C2"}),o.createElement("path",{d:"M101.537 86.214L80.63 61.102c-1.001-1.207-2.507-1.867-4.048-1.867H31.724c-1.54 0-3.047.66-4.048 1.867L6.769 86.214v13.792h94.768V86.214z",fill:"url(#linearGradient-1)",transform:"translate(13.56)"}),o.createElement("path",{d:"M33.83 0h67.933a4 4 0 0 1 4 4v93.344a4 4 0 0 1-4 4H33.83a4 4 0 0 1-4-4V4a4 4 0 0 1 4-4z",fill:"#F5F5F7"}),o.createElement("path",{d:"M42.678 9.953h50.237a2 2 0 0 1 2 2V36.91a2 2 0 0 1-2 2H42.678a2 2 0 0 1-2-2V11.953a2 2 0 0 1 2-2zM42.94 49.767h49.713a2.262 2.262 0 1 1 0 4.524H42.94a2.262 2.262 0 0 1 0-4.524zM42.94 61.53h49.713a2.262 2.262 0 1 1 0 4.525H42.94a2.262 2.262 0 0 1 0-4.525zM121.813 105.032c-.775 3.071-3.497 5.36-6.735 5.36H20.515c-3.238 0-5.96-2.29-6.734-5.36a7.309 7.309 0 0 1-.222-1.79V69.675h26.318c2.907 0 5.25 2.448 5.25 5.42v.04c0 2.971 2.37 5.37 5.277 5.37h34.785c2.907 0 5.277-2.421 5.277-5.393V75.1c0-2.972 2.343-5.426 5.25-5.426h26.318v33.569c0 .617-.077 1.216-.221 1.789z",fill:"#DCE0E6"})),o.createElement("path",{d:"M149.121 33.292l-6.83 2.65a1 1 0 0 1-1.317-1.23l1.937-6.207c-2.589-2.944-4.109-6.534-4.109-10.408C138.802 8.102 148.92 0 161.402 0 173.881 0 184 8.102 184 18.097c0 9.995-10.118 18.097-22.599 18.097-4.528 0-8.744-1.066-12.28-2.902z",fill:"#DCE0E6"}),o.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},o.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),o.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},d=()=>{const[,e]=(0,s.Ay)(),{colorFill:n,colorFillTertiary:t,colorFillQuaternary:r,colorBgContainer:i}=e,{borderColor:a,shadowColor:l,contentColor:u}=(0,o.useMemo)((()=>({borderColor:new c.q(n).onBackground(i).toHexShortString(),shadowColor:new c.q(t).onBackground(i).toHexShortString(),contentColor:new c.q(r).onBackground(i).toHexShortString()})),[n,t,r,i]);return o.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},o.createElement("title",null,"Simple Empty"),o.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},o.createElement("ellipse",{fill:l,cx:"32",cy:"33",rx:"32",ry:"7"}),o.createElement("g",{fillRule:"nonzero",stroke:a},o.createElement("path",{d:"M55 12.76L44.854 1.258C44.367.474 43.656 0 42.907 0H21.093c-.749 0-1.46.474-1.947 1.257L9 12.761V22h46v-9.24z"}),o.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:u}))))};var p=t(81081),m=t(78339);const f=e=>{const{componentCls:n,margin:t,marginXS:o,marginXL:r,fontSize:i,lineHeight:a}=e;return{[n]:{marginInline:o,fontSize:i,lineHeight:a,textAlign:"center",[`${n}-image`]:{height:e.emptyImgHeight,marginBottom:o,opacity:e.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${n}-description`]:{color:e.colorTextDescription},[`${n}-footer`]:{marginTop:t},"&-normal":{marginBlock:r,color:e.colorTextDescription,[`${n}-description`]:{color:e.colorTextDescription},[`${n}-image`]:{height:e.emptyImgHeightMD}},"&-small":{marginBlock:o,color:e.colorTextDescription,[`${n}-image`]:{height:e.emptyImgHeightSM}}}}},v=(0,p.OF)("Empty",(e=>{const{componentCls:n,controlHeightLG:t,calc:o}=e,r=(0,m.h1)(e,{emptyImgCls:`${n}-img`,emptyImgHeight:o(t).mul(2.5).equal(),emptyImgHeightMD:t,emptyImgHeightSM:o(t).mul(.875).equal()});return[f(r)]}));const g=o.createElement(u,null),h=o.createElement(d,null),b=e=>{var{className:n,rootClassName:t,prefixCls:r,image:c=g,description:s,children:u,imageStyle:d,style:p}=e,m=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t}(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:f,direction:b,empty:y}=o.useContext(a.QO),A=f("empty",r),[w,E,S]=v(A),[C]=(0,l.A)("Empty"),$=void 0!==s?s:null==C?void 0:C.description,I="string"==typeof $?$:"empty";let x=null;return x="string"==typeof c?o.createElement("img",{alt:I,src:c}):c,w(o.createElement("div",Object.assign({className:i()(E,S,A,null==y?void 0:y.className,{[`${A}-normal`]:c===h,[`${A}-rtl`]:"rtl"===b},n,t),style:Object.assign(Object.assign({},null==y?void 0:y.style),p)},m),o.createElement("div",{className:`${A}-image`,style:d},x),$&&o.createElement("div",{className:`${A}-description`},$),u&&o.createElement("div",{className:`${A}-footer`},u)))};b.PRESENTED_IMAGE_DEFAULT=g,b.PRESENTED_IMAGE_SIMPLE=h;const y=b},64719:(e,n,t)=>{t.d(n,{A:()=>a});var o=t(18769),r=t(45777),i=t(9642);const a=function(e,n){let t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;var a,l;const{variant:c,[e]:s}=(0,o.useContext)(i.QO),u=(0,o.useContext)(r.Pp),d=null==s?void 0:s.variant;let p;return p=void 0!==n?n:!1===t?"borderless":null!==(l=null!==(a=null!=u?u:d)&&void 0!==a?a:c)&&void 0!==l?l:"outlined",[p,i.lJ.includes(p)]}},52468:(e,n,t)=>{t.d(n,{A:()=>a});var o=t(18769),r=t(83958),i=t(27709);const a=(e,n)=>{const t=o.useContext(r.A);return[o.useMemo((()=>{var o;const r=n||i.A[e],a=null!==(o=null==t?void 0:t[e])&&void 0!==o?o:{};return Object.assign(Object.assign({},"function"==typeof r?r():r),a||{})}),[e,n,t]),o.useMemo((()=>{const e=null==t?void 0:t.locale;return(null==t?void 0:t.exist)&&!e?i.A.locale:e}),[t])]}},30012:(e,n,t)=>{t.d(n,{A:()=>o});const o=function(e,n){return e||(e=>{const n={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:"scroll"===e?"scroll":"visible",dynamicInset:!0};return{bottomLeft:Object.assign(Object.assign({},n),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},n),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},n),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},n),{points:["br","tr"],offset:[0,-4]})}})(n)}},52755:(e,n,t)=>{t.d(n,{A:()=>R});var o=t(48408),r=t(1741),i=t(81081),a=t(78339),l=t(93230),c=t(49014);const s=e=>{const{optionHeight:n,optionFontSize:t,optionLineHeight:o,optionPadding:r}=e;return{position:"relative",display:"block",minHeight:n,padding:r,color:e.colorText,fontWeight:"normal",fontSize:t,lineHeight:o,boxSizing:"border-box"}},u=e=>{const{antCls:n,componentCls:t}=e,r=`${t}-item`,i=`&${n}-slide-up-enter${n}-slide-up-enter-active`,a=`&${n}-slide-up-appear${n}-slide-up-appear-active`,u=`&${n}-slide-up-leave${n}-slide-up-leave-active`,d=`${t}-dropdown-placement-`;return[{[`${t}-dropdown`]:Object.assign(Object.assign({},(0,o.dF)(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`\n ${i}${d}bottomLeft,\n ${a}${d}bottomLeft\n `]:{animationName:l.ox},[`\n ${i}${d}topLeft,\n ${a}${d}topLeft,\n ${i}${d}topRight,\n ${a}${d}topRight\n `]:{animationName:l.nP},[`${u}${d}bottomLeft`]:{animationName:l.vR},[`\n ${u}${d}topLeft,\n ${u}${d}topRight\n `]:{animationName:l.YU},"&-hidden":{display:"none"},[`${r}`]:Object.assign(Object.assign({},s(e)),{cursor:"pointer",transition:`background ${e.motionDurationSlow} ease`,borderRadius:e.borderRadiusSM,"&-group":{color:e.colorTextDescription,fontSize:e.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},o.L9),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${r}-option-disabled)`]:{backgroundColor:e.optionActiveBg},[`&-selected:not(${r}-option-disabled)`]:{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg,[`${r}-option-state`]:{color:e.colorPrimary},[`&:has(+ ${r}-option-selected:not(${r}-option-disabled))`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${r}-option-selected:not(${r}-option-disabled)`]:{borderStartStartRadius:0,borderStartEndRadius:0}}},"&-disabled":{[`&${r}-option-selected`]:{backgroundColor:e.colorBgContainerDisabled},color:e.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:e.calc(e.controlPaddingHorizontal).mul(2).equal()}},"&-empty":Object.assign(Object.assign({},s(e)),{color:e.colorTextDisabled})}),"&-rtl":{direction:"rtl"}})},(0,l._j)(e,"slide-up"),(0,l._j)(e,"slide-down"),(0,c.Mh)(e,"move-up"),(0,c.Mh)(e,"move-down")]};var d=t(6257);const p=e=>{const{componentCls:n,iconCls:t,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:l,multipleItemBorderColorDisabled:c,colorIcon:s,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=e;return{[`${n}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"},[`${n}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${i}, line-height ${i}, height ${i}`,marginInlineEnd:e.calc(d).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${n}-disabled&`]:{color:l,borderColor:c,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(a).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,o.Nk)()),{display:"inline-flex",alignItems:"center",color:s,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${t}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},m=(e,n)=>{const{componentCls:t,INTERNAL_FIXED_ITEM_MARGIN:o}=e,r=`${t}-selection-overflow`,i=e.multipleSelectItemHeight,a=(e=>{const{multipleSelectItemHeight:n,selectHeight:t,lineWidth:o}=e;return e.calc(t).sub(n).div(2).sub(o).equal()})(e),l=n?`${t}-${n}`:"",c=(e=>{const{multipleSelectItemHeight:n,paddingXXS:t,lineWidth:o,INTERNAL_FIXED_ITEM_MARGIN:r}=e,i=e.max(e.calc(t).sub(o).equal(),0);return{basePadding:i,containerPadding:e.max(e.calc(i).sub(r).equal(),0),itemHeight:(0,d.zA)(n),itemLineHeight:(0,d.zA)(e.calc(n).sub(e.calc(e.lineWidth).mul(2)).equal())}})(e);return{[`${t}-multiple${l}`]:Object.assign(Object.assign({},p(e)),{[`${t}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",height:"100%",paddingInline:c.basePadding,paddingBlock:c.containerPadding,borderRadius:e.borderRadius,[`${t}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${(0,d.zA)(o)} 0`,lineHeight:(0,d.zA)(i),visibility:"hidden",content:'"\\a0"'}},[`${t}-selection-item`]:{height:c.itemHeight,lineHeight:(0,d.zA)(c.itemLineHeight)},[`${r}-item + ${r}-item`]:{[`${t}-selection-search`]:{marginInlineStart:0}},[`${r}-item-suffix`]:{height:"100%"},[`${t}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n &-input,\n &-mirror\n ":{height:i,fontFamily:e.fontFamily,lineHeight:(0,d.zA)(i),transition:`all ${e.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${t}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function f(e,n){const{componentCls:t}=e,o={[`${t}-multiple${n?`${t}-${n}`:""}`]:{fontSize:e.fontSize,[`${t}-selector`]:{[`${t}-show-search&`]:{cursor:"text"}},[`\n &${t}-show-arrow ${t}-selector,\n &${t}-allow-clear ${t}-selector\n `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[m(e,n),o]}const v=e=>{const{componentCls:n}=e,t=(0,a.h1)(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),o=(0,a.h1)(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[f(e),f(t,"sm"),{[`${n}-multiple${n}-sm`]:{[`${n}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${n}-selection-search`]:{marginInlineStart:2}}},f(o,"lg")]};function g(e,n){const{componentCls:t,inputPaddingHorizontalBase:r,borderRadius:i}=e,a=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal();return{[`${t}-single${n?`${t}-${n}`:""}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${t}-selector`]:Object.assign(Object.assign({},(0,o.dF)(e,!0)),{display:"flex",borderRadius:i,[`${t}-selection-search`]:{position:"absolute",top:0,insetInlineStart:r,insetInlineEnd:r,bottom:0,"&-input":{width:"100%",WebkitAppearance:"textfield"}},[`\n ${t}-selection-item,\n ${t}-selection-placeholder\n `]:{padding:0,lineHeight:(0,d.zA)(a),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${t}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${t}-selection-item:empty:after`,`${t}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`\n &${t}-show-arrow ${t}-selection-item,\n &${t}-show-arrow ${t}-selection-placeholder\n `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${t}-open ${t}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{width:"100%",height:"100%",padding:`0 ${(0,d.zA)(r)}`,[`${t}-selection-search-input`]:{height:a},"&:after":{lineHeight:(0,d.zA)(a)}}},[`&${t}-customize-input`]:{[`${t}-selector`]:{"&:after":{display:"none"},[`${t}-selection-search`]:{position:"static",width:"100%"},[`${t}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${(0,d.zA)(r)}`,"&:after":{display:"none"}}}}}}}function h(e){const{componentCls:n}=e,t=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[g(e),g((0,a.h1)(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${n}-single${n}-sm`]:{[`&:not(${n}-customize-input)`]:{[`${n}-selection-search`]:{insetInlineStart:t,insetInlineEnd:t},[`${n}-selector`]:{padding:`0 ${(0,d.zA)(t)}`},[`&${n}-show-arrow ${n}-selection-search`]:{insetInlineEnd:e.calc(t).add(e.calc(e.fontSize).mul(1.5)).equal()},[`\n &${n}-show-arrow ${n}-selection-item,\n &${n}-show-arrow ${n}-selection-placeholder\n `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},g((0,a.h1)(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const b=(e,n)=>{const{componentCls:t,antCls:o,controlOutlineWidth:r}=e;return{[`&:not(${t}-customize-input) ${t}-selector`]:{border:`${(0,d.zA)(e.lineWidth)} ${e.lineType} ${n.borderColor}`,background:e.selectorBg},[`&:not(${t}-disabled):not(${t}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${t}-selector`]:{borderColor:n.hoverBorderHover},[`${t}-focused& ${t}-selector`]:{borderColor:n.activeBorderColor,boxShadow:`0 0 0 ${(0,d.zA)(r)} ${n.activeShadowColor}`,outline:0}}}},y=(e,n)=>({[`&${e.componentCls}-status-${n.status}`]:Object.assign({},b(e,n))}),A=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},b(e,{borderColor:e.colorBorder,hoverBorderHover:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadowColor:e.controlOutline})),y(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeShadowColor:e.colorErrorOutline})),y(e,{status:"warning",borderColor:e.colorWarning,hoverBorderHover:e.colorWarningHover,activeBorderColor:e.colorWarning,activeShadowColor:e.colorWarningOutline})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,d.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),w=(e,n)=>{const{componentCls:t,antCls:o}=e;return{[`&:not(${t}-customize-input) ${t}-selector`]:{background:n.bg,border:`${(0,d.zA)(e.lineWidth)} ${e.lineType} transparent`,color:n.color},[`&:not(${t}-disabled):not(${t}-customize-input):not(${o}-pagination-size-changer)`]:{[`&:hover ${t}-selector`]:{background:n.hoverBg},[`${t}-focused& ${t}-selector`]:{background:e.selectorBg,borderColor:n.activeBorderColor,outline:0}}}},E=(e,n)=>({[`&${e.componentCls}-status-${n.status}`]:Object.assign({},w(e,n))}),S=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},w(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.colorPrimary,color:e.colorText})),E(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),E(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,color:e.colorWarning})),{[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{borderColor:e.colorBorder,background:e.colorBgContainerDisabled,color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.colorBgContainer,border:`${(0,d.zA)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),C=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",borderColor:"transparent"},[`&${e.componentCls}-disabled`]:{[`&:not(${e.componentCls}-customize-input) ${e.componentCls}-selector`]:{color:e.colorTextDisabled}},[`&${e.componentCls}-multiple ${e.componentCls}-selection-item`]:{background:e.multipleItemBg,border:`${(0,d.zA)(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`},[`&${e.componentCls}-status-error`]:{[`${e.componentCls}-selection-item`]:{color:e.colorError}},[`&${e.componentCls}-status-warning`]:{[`${e.componentCls}-selection-item`]:{color:e.colorWarning}}}}),$=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign({},A(e)),S(e)),C(e))}),I=e=>{const{componentCls:n}=e;return{position:"relative",transition:`all ${e.motionDurationMid} ${e.motionEaseInOut}`,input:{cursor:"pointer"},[`${n}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit",height:"100%"}},[`${n}-disabled&`]:{cursor:"not-allowed",input:{cursor:"not-allowed"}}}},x=e=>{const{componentCls:n}=e;return{[`${n}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none",fontFamily:"inherit","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},O=e=>{const{antCls:n,componentCls:t,inputPaddingHorizontalBase:r,iconCls:i}=e;return{[t]:Object.assign(Object.assign({},(0,o.dF)(e)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${t}-customize-input) ${t}-selector`]:Object.assign(Object.assign({},I(e)),x(e)),[`${t}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},o.L9),{[`> ${n}-typography`]:{display:"inline"}}),[`${t}-selection-placeholder`]:Object.assign(Object.assign({},o.L9),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${t}-arrow`]:Object.assign(Object.assign({},(0,o.Nk)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",transition:`opacity ${e.motionDurationSlow} ease`,[i]:{verticalAlign:"top",transition:`transform ${e.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${t}-suffix)`]:{pointerEvents:"auto"}},[`${t}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:r,zIndex:1,display:"inline-block",width:e.fontSizeIcon,height:e.fontSizeIcon,marginTop:e.calc(e.fontSizeIcon).mul(-1).div(2).equal(),color:e.colorTextQuaternary,fontSize:e.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",cursor:"pointer",opacity:0,transition:`color ${e.motionDurationMid} ease, opacity ${e.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:e.colorTextTertiary}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-arrow:not(:last-child)`]:{opacity:0}}}),[`${t}-has-feedback`]:{[`${t}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}},M=e=>{const{componentCls:n}=e;return[{[n]:{[`&${n}-in-form-item`]:{width:"100%"}}},O(e),h(e),v(e),u(e),{[`${n}-rtl`]:{direction:"rtl"}},(0,r.G)(e,{borderElCls:`${n}-selector`,focusElCls:`${n}-focused`})]},R=(0,i.OF)("Select",((e,n)=>{let{rootPrefixCls:t}=n;const o=(0,a.h1)(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[M(o),$(o)]}),(e=>{const{fontSize:n,lineHeight:t,lineWidth:o,controlHeight:r,controlHeightSM:i,controlHeightLG:a,paddingXXS:l,controlPaddingHorizontal:c,zIndexPopupBase:s,colorText:u,fontWeightStrong:d,controlItemBgActive:p,controlItemBgHover:m,colorBgContainer:f,colorFillSecondary:v,colorBgContainerDisabled:g,colorTextDisabled:h}=e,b=2*l,y=2*o,A=Math.min(r-b,r-y),w=Math.min(i-b,i-y),E=Math.min(a-b,a-y);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(l/2),zIndexPopup:s+50,optionSelectedColor:u,optionSelectedFontWeight:d,optionSelectedBg:p,optionActiveBg:m,optionPadding:`${(r-n*t)/2}px ${c}px`,optionFontSize:n,optionLineHeight:t,optionHeight:r,selectorBg:f,clearBg:f,singleItemHeightLG:a,multipleItemBg:v,multipleItemBorderColor:"transparent",multipleItemHeight:A,multipleItemHeightSM:w,multipleItemHeightLG:E,multipleSelectorBgDisabled:g,multipleItemColorDisabled:h,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(1.25*e.fontSize)}}),{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}})},87494:(e,n,t)=>{t.d(n,{A:()=>g});var o=t(18769),r=t(89575);const i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"};var a=t(84021),l=function(e,n){return o.createElement(a.A,(0,r.A)({},e,{ref:n,icon:i}))};const c=o.forwardRef(l);var s=t(13744);const u={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M799.86 166.31c.02 0 .04.02.08.06l57.69 57.7c.04.03.05.05.06.08a.12.12 0 010 .06c0 .03-.02.05-.06.09L569.93 512l287.7 287.7c.04.04.05.06.06.09a.12.12 0 010 .07c0 .02-.02.04-.06.08l-57.7 57.69c-.03.04-.05.05-.07.06a.12.12 0 01-.07 0c-.03 0-.05-.02-.09-.06L512 569.93l-287.7 287.7c-.04.04-.06.05-.09.06a.12.12 0 01-.07 0c-.02 0-.04-.02-.08-.06l-57.69-57.7c-.04-.03-.05-.05-.06-.07a.12.12 0 010-.07c0-.03.02-.05.06-.09L454.07 512l-287.7-287.7c-.04-.04-.05-.06-.06-.09a.12.12 0 010-.07c0-.02.02-.04.06-.08l57.7-57.69c.03-.04.05-.05.07-.06a.12.12 0 01.07 0c.03 0 .05.02.09.06L512 454.07l287.7-287.7c.04-.04.06-.05.09-.06a.12.12 0 01.07 0z"}}]},name:"close",theme:"outlined"};var d=function(e,n){return o.createElement(a.A,(0,r.A)({},e,{ref:n,icon:u}))};const p=o.forwardRef(d);var m=t(56664),f=t(77870),v=t(39718);function g(e){let{suffixIcon:n,clearIcon:t,menuItemSelectedIcon:r,removeIcon:i,loading:a,multiple:l,hasFeedback:u,prefixCls:d,showSuffixIcon:g,feedbackIcon:h,showArrow:b,componentName:y}=e;const A=null!=t?t:o.createElement(s.A,null),w=e=>null!==n||u||b?o.createElement(o.Fragment,null,!1!==g&&e,u&&h):null;let E=null;if(void 0!==n)E=w(n);else if(a)E=w(o.createElement(f.A,{spin:!0}));else{const e=`${d}-suffix`;E=n=>{let{open:t,showSearch:r}=n;return w(t&&r?o.createElement(v.A,{className:e}):o.createElement(m.A,{className:e}))}}let S=null;S=void 0!==r?r:l?o.createElement(c,null):null;let C=null;return C=void 0!==i?i:o.createElement(p,null),{clearIcon:A,suffixIcon:E,itemIcon:S,removeIcon:C}}},67728:(e,n,t)=>{function o(e,n){return void 0!==n?n:null!==e}t.d(n,{A:()=>o})},1741:(e,n,t)=>{function o(e,n,t){const{focusElCls:o,focus:r,borderElCls:i}=t,a=i?"> *":"",l=["hover",r?"focus":null,"active"].filter(Boolean).map((e=>`&:${e} ${a}`)).join(",");return{[`&-item:not(${n}-last-item)`]:{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal()},"&-item":Object.assign(Object.assign({[l]:{zIndex:2}},o?{[`&${o}`]:{zIndex:2}}:{}),{[`&[disabled] ${a}`]:{zIndex:0}})}}function r(e,n,t){const{borderElCls:o}=t,r=o?`> ${o}`:"";return{[`&-item:not(${n}-first-item):not(${n}-last-item) ${r}`]:{borderRadius:0},[`&-item:not(${n}-last-item)${n}-first-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${n}-first-item)${n}-last-item`]:{[`& ${r}, &${e}-sm ${r}, &${e}-lg ${r}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function i(e){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{focus:!0};const{componentCls:t}=e,i=`${t}-compact`;return{[i]:Object.assign(Object.assign({},o(e,i,n)),r(t,i,n))}}t.d(n,{G:()=>i})},49014:(e,n,t)=>{t.d(n,{Mh:()=>p});var o=t(6257),r=t(14821);const i=new o.Mo("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),a=new o.Mo("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),l=new o.Mo("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),c=new o.Mo("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),s=new o.Mo("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),u=new o.Mo("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),d={"move-up":{inKeyframes:new o.Mo("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),outKeyframes:new o.Mo("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}})},"move-down":{inKeyframes:i,outKeyframes:a},"move-left":{inKeyframes:l,outKeyframes:c},"move-right":{inKeyframes:s,outKeyframes:u}},p=(e,n)=>{const{antCls:t}=e,o=`${t}-${n}`,{inKeyframes:i,outKeyframes:a}=d[n];return[(0,r.b)(o,i,a,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]}},93230:(e,n,t)=>{t.d(n,{YU:()=>c,_j:()=>f,nP:()=>l,ox:()=>i,vR:()=>a});var o=t(6257),r=t(14821);const i=new o.Mo("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),a=new o.Mo("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),l=new o.Mo("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),c=new o.Mo("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),s=new o.Mo("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),u=new o.Mo("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),d=new o.Mo("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),p=new o.Mo("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),m={"slide-up":{inKeyframes:i,outKeyframes:a},"slide-down":{inKeyframes:l,outKeyframes:c},"slide-left":{inKeyframes:s,outKeyframes:u},"slide-right":{inKeyframes:d,outKeyframes:p}},f=(e,n)=>{const{antCls:t}=e,o=`${t}-${n}`,{inKeyframes:i,outKeyframes:a}=m[n];return[(0,r.b)(o,i,a,e.motionDurationMid),{[`\n ${o}-enter,\n ${o}-appear\n `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${o}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]}},15626:(e,n,t)=>{t.d(n,{A:()=>H});var o=t(89575),r=t(69740),i=t(90689),a=t(14223),l=t(18769),c=t.n(l),s=t(53373),u=t.n(s),d=t(7811),p=t(84238),m=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],f=void 0;function v(e,n){var t=e.prefixCls,i=e.invalidate,c=e.item,s=e.renderItem,p=e.responsive,v=e.responsiveDisabled,g=e.registerSize,h=e.itemKey,b=e.className,y=e.style,A=e.children,w=e.display,E=e.order,S=e.component,C=void 0===S?"div":S,$=(0,a.A)(e,m),I=p&&!w;function x(e){g(h,e)}l.useEffect((function(){return function(){x(null)}}),[]);var O,M=s&&c!==f?s(c):A;i||(O={opacity:I?0:1,height:I?0:f,overflowY:I?"hidden":f,order:p?E:f,pointerEvents:I?"none":f,position:I?"absolute":f});var R={};I&&(R["aria-hidden"]=!0);var z=l.createElement(C,(0,o.A)({className:u()(!i&&t,b),style:(0,r.A)((0,r.A)({},O),y)},R,$,{ref:n}),M);return p&&(z=l.createElement(d.A,{onResize:function(e){x(e.offsetWidth)},disabled:v},z)),z}var g=l.forwardRef(v);g.displayName="Item";const h=g;var b=t(9449),y=t(59435),A=t(67536);function w(e,n){var t=l.useState(n),o=(0,i.A)(t,2),r=o[0],a=o[1];return[r,(0,b.A)((function(n){e((function(){a(n)}))}))]}var E=c().createContext(null),S=["component"],C=["className"],$=["className"],I=function(e,n){var t=l.useContext(E);if(!t){var r=e.component,i=void 0===r?"div":r,c=(0,a.A)(e,S);return l.createElement(i,(0,o.A)({},c,{ref:n}))}var s=t.className,d=(0,a.A)(t,C),p=e.className,m=(0,a.A)(e,$);return l.createElement(E.Provider,{value:null},l.createElement(h,(0,o.A)({ref:n,className:u()(s,p)},d,m)))},x=l.forwardRef(I);x.displayName="RawItem";const O=x;var M=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],R="responsive",z="invalidate";function D(e){return"+ ".concat(e.length," ...")}function N(e,n){var t,c=e.prefixCls,s=void 0===c?"rc-overflow":c,m=e.data,f=void 0===m?[]:m,v=e.renderItem,g=e.renderRawItem,b=e.itemKey,S=e.itemWidth,C=void 0===S?10:S,$=e.ssr,I=e.style,x=e.className,O=e.maxCount,N=e.renderRest,P=e.renderRawRest,H=e.suffix,T=e.component,k=void 0===T?"div":T,L=e.itemComponent,B=e.onVisibleChange,j=(0,a.A)(e,M),F="full"===$,V=(t=l.useRef(null),function(e){t.current||(t.current=[],function(e){if("undefined"==typeof MessageChannel)(0,A.A)(e);else{var n=new MessageChannel;n.port1.onmessage=function(){return e()},n.port2.postMessage(void 0)}}((function(){(0,y.unstable_batchedUpdates)((function(){t.current.forEach((function(e){e()})),t.current=null}))}))),t.current.push(e)}),W=w(V,null),_=(0,i.A)(W,2),K=_[0],X=_[1],G=K||0,q=w(V,new Map),U=(0,i.A)(q,2),Y=U[0],Q=U[1],J=w(V,0),Z=(0,i.A)(J,2),ee=Z[0],ne=Z[1],te=w(V,0),oe=(0,i.A)(te,2),re=oe[0],ie=oe[1],ae=w(V,0),le=(0,i.A)(ae,2),ce=le[0],se=le[1],ue=(0,l.useState)(null),de=(0,i.A)(ue,2),pe=de[0],me=de[1],fe=(0,l.useState)(null),ve=(0,i.A)(fe,2),ge=ve[0],he=ve[1],be=l.useMemo((function(){return null===ge&&F?Number.MAX_SAFE_INTEGER:ge||0}),[ge,K]),ye=(0,l.useState)(!1),Ae=(0,i.A)(ye,2),we=Ae[0],Ee=Ae[1],Se="".concat(s,"-item"),Ce=Math.max(ee,re),$e=O===R,Ie=f.length&&$e,xe=O===z,Oe=Ie||"number"==typeof O&&f.length>O,Me=(0,l.useMemo)((function(){var e=f;return Ie?e=null===K&&F?f:f.slice(0,Math.min(f.length,G/C)):"number"==typeof O&&(e=f.slice(0,O)),e}),[f,C,K,O,Ie]),Re=(0,l.useMemo)((function(){return Ie?f.slice(be+1):f.slice(Me.length)}),[f,Me,Ie,be]),ze=(0,l.useCallback)((function(e,n){var t;return"function"==typeof b?b(e):null!==(t=b&&(null==e?void 0:e[b]))&&void 0!==t?t:n}),[b]),De=(0,l.useCallback)(v||function(e){return e},[v]);function Ne(e,n,t){(ge!==e||void 0!==n&&n!==pe)&&(he(e),t||(Ee(e<f.length-1),null==B||B(e)),void 0!==n&&me(n))}function Pe(e,n){Q((function(t){var o=new Map(t);return null===n?o.delete(e):o.set(e,n),o}))}function He(e){return Y.get(ze(Me[e],e))}(0,p.A)((function(){if(G&&"number"==typeof Ce&&Me){var e=ce,n=Me.length,t=n-1;if(!n)return void Ne(0,null);for(var o=0;o<n;o+=1){var r=He(o);if(F&&(r=r||0),void 0===r){Ne(o-1,void 0,!0);break}if(e+=r,0===t&&e<=G||o===t-1&&e+He(t)<=G){Ne(t,null);break}if(e+Ce>G){Ne(o-1,e-r-ce+re);break}}H&&He(0)+ce>G&&me(null)}}),[G,Y,re,ce,ze,Me]);var Te=we&&!!Re.length,ke={};null!==pe&&Ie&&(ke={position:"absolute",left:pe,top:0});var Le,Be={prefixCls:Se,responsive:Ie,component:L,invalidate:xe},je=g?function(e,n){var t=ze(e,n);return l.createElement(E.Provider,{key:t,value:(0,r.A)((0,r.A)({},Be),{},{order:n,item:e,itemKey:t,registerSize:Pe,display:n<=be})},g(e,n))}:function(e,n){var t=ze(e,n);return l.createElement(h,(0,o.A)({},Be,{order:n,key:t,item:e,renderItem:De,itemKey:t,registerSize:Pe,display:n<=be}))},Fe={order:Te?be:Number.MAX_SAFE_INTEGER,className:"".concat(Se,"-rest"),registerSize:function(e,n){ie(n),ne(re)},display:Te};if(P)P&&(Le=l.createElement(E.Provider,{value:(0,r.A)((0,r.A)({},Be),Fe)},P(Re)));else{var Ve=N||D;Le=l.createElement(h,(0,o.A)({},Be,Fe),"function"==typeof Ve?Ve(Re):Ve)}var We=l.createElement(k,(0,o.A)({className:u()(!xe&&s,x),style:I,ref:n},j),Me.map(je),Oe?Le:null,H&&l.createElement(h,(0,o.A)({},Be,{responsive:$e,responsiveDisabled:!Ie,order:be,className:"".concat(Se,"-suffix"),registerSize:function(e,n){se(n)},display:!0,style:ke}),H));return $e&&(We=l.createElement(d.A,{onResize:function(e,n){X(n.clientWidth)},disabled:!Ie},We)),We}var P=l.forwardRef(N);P.displayName="Overflow",P.Item=O,P.RESPONSIVE=R,P.INVALIDATE=z;const H=P},47200:(e,n,t)=>{t.d(n,{Ay:()=>c});var o=t(90689),r=t(18769),i=t(47169),a=0,l=(0,i.A)();function c(e){var n=r.useState(),t=(0,o.A)(n,2),i=t[0],c=t[1];return r.useEffect((function(){var e;c("rc_select_".concat((l?(e=a,a+=1):e="TEST_OR_SSR",e)))}),[]),e||i}},45712:(e,n,t)=>{t.d(n,{g3:()=>Z,JM:()=>ne,c$:()=>oe,Ay:()=>Ee,Vm:()=>w});var o=t(89575),r=t(83705),i=t(24586),a=t(69740),l=t(90689),c=t(14223),s=t(17545),u=t(64948),d=t(84445),p=t(18769),m=t.n(p),f=t(53373),v=t.n(f),g=t(84238),h=t(26651),b=t(19284);const y=function(e){var n=e.className,t=e.customizeIcon,o=e.customizeIconProps,r=e.children,i=e.onMouseDown,a=e.onClick,l="function"==typeof t?t(o):t;return p.createElement("span",{className:n,onMouseDown:function(e){e.preventDefault(),null==i||i(e)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:a,"aria-hidden":!0},void 0!==l?l:p.createElement("span",{className:v()(n.split(/\s+/).map((function(e){return"".concat(e,"-icon")})))},r))};var A=p.createContext(null);function w(){return p.useContext(A)}function E(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:250,n=p.useRef(null),t=p.useRef(null);return p.useEffect((function(){return function(){window.clearTimeout(t.current)}}),[]),[function(){return n.current},function(o){(o||null===n.current)&&(n.current=o),window.clearTimeout(t.current),t.current=window.setTimeout((function(){n.current=null}),e)}]}var S=t(55859),C=t(32418),$=t(15626),I=function(e,n){var t,o=e.prefixCls,r=e.id,i=e.inputElement,l=e.disabled,c=e.tabIndex,s=e.autoFocus,u=e.autoComplete,m=e.editable,f=e.activeDescendantId,g=e.value,h=e.maxLength,y=e.onKeyDown,A=e.onMouseDown,w=e.onChange,E=e.onPaste,S=e.onCompositionStart,C=e.onCompositionEnd,$=e.open,I=e.attrs,x=i||p.createElement("input",null),O=x,M=O.ref,R=O.props,z=R.onKeyDown,D=R.onChange,N=R.onMouseDown,P=R.onCompositionStart,H=R.onCompositionEnd,T=R.style;return(0,d.$e)(!("maxLength"in x.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),p.cloneElement(x,(0,a.A)((0,a.A)((0,a.A)({type:"search"},R),{},{id:r,ref:(0,b.K4)(n,M),disabled:l,tabIndex:c,autoComplete:u||"off",autoFocus:s,className:v()("".concat(o,"-selection-search-input"),null===(t=x)||void 0===t||null===(t=t.props)||void 0===t?void 0:t.className),role:"combobox","aria-expanded":$||!1,"aria-haspopup":"listbox","aria-owns":"".concat(r,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(r,"_list"),"aria-activedescendant":$?f:void 0},I),{},{value:m?g:"",maxLength:h,readOnly:!m,unselectable:m?null:"on",style:(0,a.A)((0,a.A)({},T),{},{opacity:m?null:0}),onKeyDown:function(e){y(e),z&&z(e)},onMouseDown:function(e){A(e),N&&N(e)},onChange:function(e){w(e),D&&D(e)},onCompositionStart:function(e){S(e),P&&P(e)},onCompositionEnd:function(e){C(e),H&&H(e)},onPaste:E}))};const x=p.forwardRef(I);function O(e){return Array.isArray(e)?e:void 0!==e?[e]:[]}var M="undefined"!=typeof window&&window.document&&window.document.documentElement;function R(e){return["string","number"].includes((0,s.A)(e))}function z(e){var n=void 0;return e&&(R(e.title)?n=e.title.toString():R(e.label)&&(n=e.label.toString())),n}function D(e){var n;return null!==(n=e.key)&&void 0!==n?n:e.value}var N=function(e){e.preventDefault(),e.stopPropagation()};const P=function(e){var n,t,o=e.id,r=e.prefixCls,a=e.values,c=e.open,s=e.searchValue,u=e.autoClearSearchValue,d=e.inputRef,m=e.placeholder,f=e.disabled,g=e.mode,h=e.showSearch,b=e.autoFocus,A=e.autoComplete,w=e.activeDescendantId,E=e.tabIndex,S=e.removeIcon,I=e.maxTagCount,O=e.maxTagTextLength,R=e.maxTagPlaceholder,P=void 0===R?function(e){return"+ ".concat(e.length," ...")}:R,H=e.tagRender,T=e.onToggleOpen,k=e.onRemove,L=e.onInputChange,B=e.onInputPaste,j=e.onInputKeyDown,F=e.onInputMouseDown,V=e.onInputCompositionStart,W=e.onInputCompositionEnd,_=p.useRef(null),K=(0,p.useState)(0),X=(0,l.A)(K,2),G=X[0],q=X[1],U=(0,p.useState)(!1),Y=(0,l.A)(U,2),Q=Y[0],J=Y[1],Z="".concat(r,"-selection"),ee=c||"multiple"===g&&!1===u||"tags"===g?s:"",ne="tags"===g||"multiple"===g&&!1===u||h&&(c||Q);n=function(){q(_.current.scrollWidth)},t=[ee],M?p.useLayoutEffect(n,t):p.useEffect(n,t);var te=function(e,n,t,o,r){return p.createElement("span",{title:z(e),className:v()("".concat(Z,"-item"),(0,i.A)({},"".concat(Z,"-item-disabled"),t))},p.createElement("span",{className:"".concat(Z,"-item-content")},n),o&&p.createElement(y,{className:"".concat(Z,"-item-remove"),onMouseDown:N,onClick:r,customizeIcon:S},"×"))},oe=function(e,n,t,o,r,i){return p.createElement("span",{onMouseDown:function(e){N(e),T(!c)}},H({label:n,value:e,disabled:t,closable:o,onClose:r,isMaxTag:!!i}))},re=p.createElement("div",{className:"".concat(Z,"-search"),style:{width:G},onFocus:function(){J(!0)},onBlur:function(){J(!1)}},p.createElement(x,{ref:d,open:c,prefixCls:r,id:o,inputElement:null,disabled:f,autoFocus:b,autoComplete:A,editable:ne,activeDescendantId:w,value:ee,onKeyDown:j,onMouseDown:F,onChange:L,onPaste:B,onCompositionStart:V,onCompositionEnd:W,tabIndex:E,attrs:(0,C.A)(e,!0)}),p.createElement("span",{ref:_,className:"".concat(Z,"-search-mirror"),"aria-hidden":!0},ee," ")),ie=p.createElement($.A,{prefixCls:"".concat(Z,"-overflow"),data:a,renderItem:function(e){var n=e.disabled,t=e.label,o=e.value,r=!f&&!n,i=t;if("number"==typeof O&&("string"==typeof t||"number"==typeof t)){var a=String(i);a.length>O&&(i="".concat(a.slice(0,O),"..."))}var l=function(n){n&&n.stopPropagation(),k(e)};return"function"==typeof H?oe(o,i,n,r,l):te(e,i,n,r,l)},renderRest:function(e){var n="function"==typeof P?P(e):P;return"function"==typeof H?oe(void 0,n,!1,!1,void 0,!0):te({title:n},n,!1)},suffix:re,itemKey:D,maxCount:I});return p.createElement(p.Fragment,null,ie,!a.length&&!ee&&p.createElement("span",{className:"".concat(Z,"-placeholder")},m))},H=function(e){var n=e.inputElement,t=e.prefixCls,o=e.id,r=e.inputRef,i=e.disabled,a=e.autoFocus,c=e.autoComplete,s=e.activeDescendantId,u=e.mode,d=e.open,m=e.values,f=e.placeholder,v=e.tabIndex,g=e.showSearch,h=e.searchValue,b=e.activeValue,y=e.maxLength,A=e.onInputKeyDown,w=e.onInputMouseDown,E=e.onInputChange,S=e.onInputPaste,$=e.onInputCompositionStart,I=e.onInputCompositionEnd,O=e.title,M=p.useState(!1),R=(0,l.A)(M,2),D=R[0],N=R[1],P="combobox"===u,H=P||g,T=m[0],k=h||"";P&&b&&!D&&(k=b),p.useEffect((function(){P&&N(!1)}),[P,b]);var L=!("combobox"!==u&&!d&&!g||!k),B=void 0===O?z(T):O,j=p.useMemo((function(){return T?null:p.createElement("span",{className:"".concat(t,"-selection-placeholder"),style:L?{visibility:"hidden"}:void 0},f)}),[T,L,f,t]);return p.createElement(p.Fragment,null,p.createElement("span",{className:"".concat(t,"-selection-search")},p.createElement(x,{ref:r,prefixCls:t,id:o,open:d,inputElement:n,disabled:i,autoFocus:a,autoComplete:c,editable:H,activeDescendantId:s,value:k,onKeyDown:A,onMouseDown:w,onChange:function(e){N(!0),E(e)},onPaste:S,onCompositionStart:$,onCompositionEnd:I,tabIndex:v,attrs:(0,C.A)(e,!0),maxLength:P?y:void 0})),!P&&T?p.createElement("span",{className:"".concat(t,"-selection-item"),title:B,style:L?{visibility:"hidden"}:void 0},T.label):null,j)};var T=function(e,n){var t=(0,p.useRef)(null),r=(0,p.useRef)(!1),i=e.prefixCls,a=e.open,c=e.mode,s=e.showSearch,u=e.tokenWithEnter,d=e.disabled,m=e.autoClearSearchValue,f=e.onSearch,v=e.onSearchSubmit,g=e.onToggleOpen,h=e.onInputKeyDown,b=e.domRef;p.useImperativeHandle(n,(function(){return{focus:function(e){t.current.focus(e)},blur:function(){t.current.blur()}}}));var y=E(0),A=(0,l.A)(y,2),w=A[0],C=A[1],$=(0,p.useRef)(null),I=function(e){!1!==f(e,!0,r.current)&&g(!0)},x={inputRef:t,onInputKeyDown:function(e){var n,t=e.which;t!==S.A.UP&&t!==S.A.DOWN||e.preventDefault(),h&&h(e),t!==S.A.ENTER||"tags"!==c||r.current||a||null==v||v(e.target.value),n=t,[S.A.ESC,S.A.SHIFT,S.A.BACKSPACE,S.A.TAB,S.A.WIN_KEY,S.A.ALT,S.A.META,S.A.WIN_KEY_RIGHT,S.A.CTRL,S.A.SEMICOLON,S.A.EQUALS,S.A.CAPS_LOCK,S.A.CONTEXT_MENU,S.A.F1,S.A.F2,S.A.F3,S.A.F4,S.A.F5,S.A.F6,S.A.F7,S.A.F8,S.A.F9,S.A.F10,S.A.F11,S.A.F12].includes(n)||g(!0)},onInputMouseDown:function(){C(!0)},onInputChange:function(e){var n=e.target.value;if(u&&$.current&&/[\r\n]/.test($.current)){var t=$.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");n=n.replace(t,$.current)}$.current=null,I(n)},onInputPaste:function(e){var n=e.clipboardData,t=null==n?void 0:n.getData("text");$.current=t||""},onInputCompositionStart:function(){r.current=!0},onInputCompositionEnd:function(e){r.current=!1,"combobox"!==c&&I(e.target.value)}},O="multiple"===c||"tags"===c?p.createElement(P,(0,o.A)({},e,x)):p.createElement(H,(0,o.A)({},e,x));return p.createElement("div",{ref:b,className:"".concat(i,"-selector"),onClick:function(e){e.target!==t.current&&(void 0!==document.body.style.msTouchAction?setTimeout((function(){t.current.focus()})):t.current.focus())},onMouseDown:function(e){var n=w();e.target===t.current||n||"combobox"===c&&d||e.preventDefault(),("combobox"===c||s&&n)&&a||(a&&!1!==m&&f("",!0,!1),g())}},O)};const k=p.forwardRef(T);var L=t(73045),B=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],j=function(e,n){var t=e.prefixCls,r=(e.disabled,e.visible),l=e.children,s=e.popupElement,u=e.animation,d=e.transitionName,m=e.dropdownStyle,f=e.dropdownClassName,g=e.direction,h=void 0===g?"ltr":g,b=e.placement,y=e.builtinPlacements,A=e.dropdownMatchSelectWidth,w=e.dropdownRender,E=e.dropdownAlign,S=e.getPopupContainer,C=e.empty,$=e.getTriggerDOMNode,I=e.onPopupVisibleChange,x=e.onPopupMouseEnter,O=(0,c.A)(e,B),M="".concat(t,"-dropdown"),R=s;w&&(R=w(s));var z=p.useMemo((function(){return y||function(e){var n=!0===e?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:n,adjustY:1},htmlRegion:"scroll"}}}(A)}),[y,A]),D=u?"".concat(M,"-").concat(u):d,N="number"==typeof A,P=p.useMemo((function(){return N?null:!1===A?"minWidth":"width"}),[A,N]),H=m;N&&(H=(0,a.A)((0,a.A)({},H),{},{width:A}));var T=p.useRef(null);return p.useImperativeHandle(n,(function(){return{getPopupElement:function(){var e;return null===(e=T.current)||void 0===e?void 0:e.popupElement}}})),p.createElement(L.A,(0,o.A)({},O,{showAction:I?["click"]:[],hideAction:I?["click"]:[],popupPlacement:b||("rtl"===h?"bottomRight":"bottomLeft"),builtinPlacements:z,prefixCls:M,popupTransitionName:D,popup:p.createElement("div",{onMouseEnter:x},R),ref:T,stretch:P,popupAlign:E,popupVisible:r,getPopupContainer:S,popupClassName:v()(f,(0,i.A)({},"".concat(M,"-empty"),C)),popupStyle:H,getTriggerDOMNode:$,onPopupVisibleChange:I}),l)};const F=p.forwardRef(j);var V=t(37756);function W(e,n){var t,o=e.key;return"value"in e&&(t=e.value),null!=o?o:void 0!==t?t:"rc-index-key-".concat(n)}function _(e){return void 0!==e&&!Number.isNaN(e)}function K(e,n){var t=e||{},o=t.label||(n?"children":"label");return{label:o,value:t.value||"value",options:t.options||"options",groupLabel:t.groupLabel||o}}function X(e){var n=(0,a.A)({},e);return"props"in n||Object.defineProperty(n,"props",{get:function(){return(0,d.Ay)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),n}}),n}const G=p.createContext(null);function q(e){var n=e.visible,t=e.values;return n?p.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(t.slice(0,50).map((function(e){var n=e.label,t=e.value;return["number","string"].includes((0,s.A)(n))?n:t})).join(", ")),t.length>50?", ...":null):null}var U=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],Y=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],Q=function(e){return"tags"===e||"multiple"===e},J=p.forwardRef((function(e,n){var t,d=e.id,f=e.prefixCls,w=e.className,S=e.showSearch,C=e.tagRender,$=e.direction,I=e.omitDomProps,x=e.displayValues,O=e.onDisplayValuesChange,M=e.emptyOptions,R=e.notFoundContent,z=void 0===R?"Not Found":R,D=e.onClear,N=e.mode,P=e.disabled,H=e.loading,T=e.getInputElement,L=e.getRawInputElement,B=e.open,j=e.defaultOpen,W=e.onDropdownVisibleChange,K=e.activeValue,X=e.onActiveValueChange,J=e.activeDescendantId,Z=e.searchValue,ee=e.autoClearSearchValue,ne=e.onSearch,te=e.onSearchSplit,oe=e.tokenSeparators,re=e.allowClear,ie=e.suffixIcon,ae=e.clearIcon,le=e.OptionList,ce=e.animation,se=e.transitionName,ue=e.dropdownStyle,de=e.dropdownClassName,pe=e.dropdownMatchSelectWidth,me=e.dropdownRender,fe=e.dropdownAlign,ve=e.placement,ge=e.builtinPlacements,he=e.getPopupContainer,be=e.showAction,ye=void 0===be?[]:be,Ae=e.onFocus,we=e.onBlur,Ee=e.onKeyUp,Se=e.onKeyDown,Ce=e.onMouseDown,$e=(0,c.A)(e,U),Ie=Q(N),xe=(void 0!==S?S:Ie)||"combobox"===N,Oe=(0,a.A)({},$e);Y.forEach((function(e){delete Oe[e]})),null==I||I.forEach((function(e){delete Oe[e]}));var Me=p.useState(!1),Re=(0,l.A)(Me,2),ze=Re[0],De=Re[1];p.useEffect((function(){De((0,h.A)())}),[]);var Ne=p.useRef(null),Pe=p.useRef(null),He=p.useRef(null),Te=p.useRef(null),ke=p.useRef(null),Le=p.useRef(!1),Be=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:10,n=p.useState(!1),t=(0,l.A)(n,2),o=t[0],r=t[1],i=p.useRef(null),a=function(){window.clearTimeout(i.current)};return p.useEffect((function(){return a}),[]),[o,function(n,t){a(),i.current=window.setTimeout((function(){r(n),t&&t()}),e)},a]}(),je=(0,l.A)(Be,3),Fe=je[0],Ve=je[1],We=je[2];p.useImperativeHandle(n,(function(){var e,n;return{focus:null===(e=Te.current)||void 0===e?void 0:e.focus,blur:null===(n=Te.current)||void 0===n?void 0:n.blur,scrollTo:function(e){var n;return null===(n=ke.current)||void 0===n?void 0:n.scrollTo(e)},nativeElement:Ne.current||Pe.current}}));var _e=p.useMemo((function(){var e;if("combobox"!==N)return Z;var n=null===(e=x[0])||void 0===e?void 0:e.value;return"string"==typeof n||"number"==typeof n?String(n):""}),[Z,N,x]),Ke="combobox"===N&&"function"==typeof T&&T()||null,Xe="function"==typeof L&&L(),Ge=(0,b.xK)(Pe,null==Xe||null===(t=Xe.props)||void 0===t?void 0:t.ref),qe=p.useState(!1),Ue=(0,l.A)(qe,2),Ye=Ue[0],Qe=Ue[1];(0,g.A)((function(){Qe(!0)}),[]);var Je=(0,u.A)(!1,{defaultValue:j,value:B}),Ze=(0,l.A)(Je,2),en=Ze[0],nn=Ze[1],tn=!!Ye&&en,on=!z&&M;(P||on&&tn&&"combobox"===N)&&(tn=!1);var rn=!on&&tn,an=p.useCallback((function(e){var n=void 0!==e?e:!tn;P||(nn(n),tn!==n&&(null==W||W(n)))}),[P,tn,nn,W]),ln=p.useMemo((function(){return(oe||[]).some((function(e){return["\n","\r\n"].includes(e)}))}),[oe]),cn=p.useContext(G)||{},sn=cn.maxCount,un=cn.rawValues,dn=function(e,n,t){if(!(Ie&&_(sn)&&(null==un?void 0:un.size)>=sn)){var o=!0,i=e;null==X||X(null);var a=function(e,n,t){if(!n||!n.length)return null;var o=!1,i=function e(n,t){var i=(0,V.A)(t),a=i[0],l=i.slice(1);if(!a)return[n];var c=n.split(a);return o=o||c.length>1,c.reduce((function(n,t){return[].concat((0,r.A)(n),(0,r.A)(e(t,l)))}),[]).filter(Boolean)}(e,n);return o?void 0!==t?i.slice(0,t):i:null}(e,oe,_(sn)?sn-un.size:void 0),l=t?null:a;return"combobox"!==N&&l&&(i="",null==te||te(l),an(!1),o=!1),ne&&_e!==i&&ne(i,{source:n?"typing":"effect"}),o}};p.useEffect((function(){tn||Ie||"combobox"===N||dn("",!1,!1)}),[tn]),p.useEffect((function(){en&&P&&nn(!1),P&&!Le.current&&Ve(!1)}),[P]);var pn=E(),mn=(0,l.A)(pn,2),fn=mn[0],vn=mn[1],gn=p.useRef(!1),hn=p.useRef(!1),bn=[];p.useEffect((function(){return function(){bn.forEach((function(e){return clearTimeout(e)})),bn.splice(0,bn.length)}}),[]);var yn,An=p.useState({}),wn=(0,l.A)(An,2)[1];Xe&&(yn=function(e){an(e)}),function(e,n,t,o){var r=p.useRef(null);r.current={open:n,triggerOpen:t,customizedTrigger:o},p.useEffect((function(){function e(e){var n,t;if(null===(n=r.current)||void 0===n||!n.customizedTrigger){var o=e.target;o.shadowRoot&&e.composed&&(o=e.composedPath()[0]||o),r.current.open&&[Ne.current,null===(t=He.current)||void 0===t?void 0:t.getPopupElement()].filter((function(e){return e})).every((function(e){return!e.contains(o)&&e!==o}))&&r.current.triggerOpen(!1)}}return window.addEventListener("mousedown",e),function(){return window.removeEventListener("mousedown",e)}}),[])}(0,rn,an,!!Xe);var En,Sn=p.useMemo((function(){return(0,a.A)((0,a.A)({},e),{},{notFoundContent:z,open:tn,triggerOpen:rn,id:d,showSearch:xe,multiple:Ie,toggleOpen:an})}),[e,z,rn,tn,d,xe,Ie,an]),Cn=!!ie||H;Cn&&(En=p.createElement(y,{className:v()("".concat(f,"-arrow"),(0,i.A)({},"".concat(f,"-arrow-loading"),H)),customizeIcon:ie,customizeIconProps:{loading:H,searchValue:_e,open:tn,focused:Fe,showSearch:xe}}));var $n,In=function(e,n,t,o,r){var i=arguments.length>5&&void 0!==arguments[5]&&arguments[5],a=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,c=m().useMemo((function(){return"object"===(0,s.A)(o)?o.clearIcon:r||void 0}),[o,r]);return{allowClear:m().useMemo((function(){return!(i||!o||!t.length&&!a||"combobox"===l&&""===a)}),[o,i,t.length,a,l]),clearIcon:m().createElement(y,{className:"".concat(e,"-clear"),onMouseDown:n,customizeIcon:c},"×")}}(f,(function(){var e;null==D||D(),null===(e=Te.current)||void 0===e||e.focus(),O([],{type:"clear",values:x}),dn("",!1,!1)}),x,re,ae,P,_e,N),xn=In.allowClear,On=In.clearIcon,Mn=p.createElement(le,{ref:ke}),Rn=v()(f,w,(0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)((0,i.A)({},"".concat(f,"-focused"),Fe),"".concat(f,"-multiple"),Ie),"".concat(f,"-single"),!Ie),"".concat(f,"-allow-clear"),re),"".concat(f,"-show-arrow"),Cn),"".concat(f,"-disabled"),P),"".concat(f,"-loading"),H),"".concat(f,"-open"),tn),"".concat(f,"-customize-input"),Ke),"".concat(f,"-show-search"),xe)),zn=p.createElement(F,{ref:He,disabled:P,prefixCls:f,visible:rn,popupElement:Mn,animation:ce,transitionName:se,dropdownStyle:ue,dropdownClassName:de,direction:$,dropdownMatchSelectWidth:pe,dropdownRender:me,dropdownAlign:fe,placement:ve,builtinPlacements:ge,getPopupContainer:he,empty:M,getTriggerDOMNode:function(e){return Pe.current||e},onPopupVisibleChange:yn,onPopupMouseEnter:function(){wn({})}},Xe?p.cloneElement(Xe,{ref:Ge}):p.createElement(k,(0,o.A)({},e,{domRef:Pe,prefixCls:f,inputElement:Ke,ref:Te,id:d,showSearch:xe,autoClearSearchValue:ee,mode:N,activeDescendantId:J,tagRender:C,values:x,open:tn,onToggleOpen:an,activeValue:K,searchValue:_e,onSearch:dn,onSearchSubmit:function(e){e&&e.trim()&&ne(e,{source:"submit"})},onRemove:function(e){var n=x.filter((function(n){return n!==e}));O(n,{type:"remove",values:[e]})},tokenWithEnter:ln})));return $n=Xe?zn:p.createElement("div",(0,o.A)({className:Rn},Oe,{ref:Ne,onMouseDown:function(e){var n,t=e.target,o=null===(n=He.current)||void 0===n?void 0:n.getPopupElement();if(o&&o.contains(t)){var r=setTimeout((function(){var e,n=bn.indexOf(r);-1!==n&&bn.splice(n,1),We(),ze||o.contains(document.activeElement)||null===(e=Te.current)||void 0===e||e.focus()}));bn.push(r)}for(var i=arguments.length,a=new Array(i>1?i-1:0),l=1;l<i;l++)a[l-1]=arguments[l];null==Ce||Ce.apply(void 0,[e].concat(a))},onKeyDown:function(e){var n,t=fn(),o=e.key,i="Enter"===o;if(i&&("combobox"!==N&&e.preventDefault(),tn||an(!0)),vn(!!_e),"Backspace"===o&&!t&&Ie&&!_e&&x.length){for(var a=(0,r.A)(x),l=null,c=a.length-1;c>=0;c-=1){var s=a[c];if(!s.disabled){a.splice(c,1),l=s;break}}l&&O(a,{type:"remove",values:[l]})}for(var u=arguments.length,d=new Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];!tn||i&&gn.current||null===(n=ke.current)||void 0===n||n.onKeyDown.apply(n,[e].concat(d)),i&&(gn.current=!0),null==Se||Se.apply(void 0,[e].concat(d))},onKeyUp:function(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),o=1;o<n;o++)t[o-1]=arguments[o];var r;tn&&(null===(r=ke.current)||void 0===r||r.onKeyUp.apply(r,[e].concat(t))),"Enter"===e.key&&(gn.current=!1),null==Ee||Ee.apply(void 0,[e].concat(t))},onFocus:function(){Ve(!0),P||(Ae&&!hn.current&&Ae.apply(void 0,arguments),ye.includes("focus")&&an(!0)),hn.current=!0},onBlur:function(){Le.current=!0,Ve(!1,(function(){hn.current=!1,Le.current=!1,an(!1)})),P||(_e&&("tags"===N?ne(_e,{source:"submit"}):"multiple"===N&&ne("",{source:"blur"})),we&&we.apply(void 0,arguments))}}),p.createElement(q,{visible:Fe&&!tn,values:x}),zn,En,xn&&On),p.createElement(A.Provider,{value:Sn},$n)}));const Z=J;var ee=function(){return null};ee.isSelectOptGroup=!0;const ne=ee;var te=function(){return null};te.isSelectOption=!0;const oe=te;var re=t(34511),ie=t(78892),ae=t(9596),le=["disabled","title","children","style","className"];function ce(e){return"string"==typeof e||"number"==typeof e}var se=function(e,n){var t=w(),a=t.prefixCls,s=t.id,u=t.open,d=t.multiple,m=t.mode,f=t.searchValue,g=t.toggleOpen,h=t.notFoundContent,b=t.onPopupScroll,A=p.useContext(G),E=A.maxCount,$=A.flattenOptions,I=A.onActiveValue,x=A.defaultActiveFirstOption,O=A.onSelect,M=A.menuItemSelectedIcon,R=A.rawValues,z=A.fieldNames,D=A.virtual,N=A.direction,P=A.listHeight,H=A.listItemHeight,T=A.optionRender,k="".concat(a,"-item"),L=(0,re.A)((function(){return $}),[u,$],(function(e,n){return n[0]&&e[1]!==n[1]})),B=p.useRef(null),j=p.useMemo((function(){return d&&_(E)&&(null==R?void 0:R.size)>=E}),[d,E,null==R?void 0:R.size]),F=function(e){e.preventDefault()},V=function(e){var n;null===(n=B.current)||void 0===n||n.scrollTo("number"==typeof e?{index:e}:e)},W=function(e){for(var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,t=L.length,o=0;o<t;o+=1){var r=(e+o*n+t)%t,i=L[r]||{},a=i.group,l=i.data;if(!(a||null!=l&&l.disabled||j))return r}return-1},K=p.useState((function(){return W(0)})),X=(0,l.A)(K,2),q=X[0],U=X[1],Y=function(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];U(e);var t={source:n?"keyboard":"mouse"},o=L[e];o?I(o.value,e,t):I(null,-1,t)};(0,p.useEffect)((function(){Y(!1!==x?W(0):-1)}),[L.length,f]);var Q=p.useCallback((function(e){return R.has(e)&&"combobox"!==m}),[m,(0,r.A)(R).toString(),R.size]);(0,p.useEffect)((function(){var e,n=setTimeout((function(){if(!d&&u&&1===R.size){var e=Array.from(R)[0],n=L.findIndex((function(n){return n.data.value===e}));-1!==n&&(Y(n),V(n))}}));return u&&(null===(e=B.current)||void 0===e||e.scrollTo(void 0)),function(){return clearTimeout(n)}}),[u,f]);var J=function(e){void 0!==e&&O(e,{selected:!R.has(e)}),d||g(!1)};if(p.useImperativeHandle(n,(function(){return{onKeyDown:function(e){var n=e.which,t=e.ctrlKey;switch(n){case S.A.N:case S.A.P:case S.A.UP:case S.A.DOWN:var o=0;if(n===S.A.UP?o=-1:n===S.A.DOWN?o=1:/(mac\sos|macintosh)/i.test(navigator.appVersion)&&t&&(n===S.A.N?o=1:n===S.A.P&&(o=-1)),0!==o){var r=W(q+o,o);V(r),Y(r,!0)}break;case S.A.ENTER:var i,a=L[q];!a||null!=a&&null!==(i=a.data)&&void 0!==i&&i.disabled||j?J(void 0):J(a.value),u&&e.preventDefault();break;case S.A.ESC:g(!1),u&&e.stopPropagation()}},onKeyUp:function(){},scrollTo:function(e){V(e)}}})),0===L.length)return p.createElement("div",{role:"listbox",id:"".concat(s,"_list"),className:"".concat(k,"-empty"),onMouseDown:F},h);var Z=Object.keys(z).map((function(e){return z[e]})),ee=function(e){return e.label};function ne(e,n){return{role:e.group?"presentation":"option",id:"".concat(s,"_list_").concat(n)}}var te=function(e){var n=L[e];if(!n)return null;var t=n.data||{},r=t.value,i=n.group,a=(0,C.A)(t,!0),l=ee(n);return n?p.createElement("div",(0,o.A)({"aria-label":"string"!=typeof l||i?null:l},a,{key:e},ne(n,e),{"aria-selected":Q(r)}),r):null},oe={role:"listbox",id:"".concat(s,"_list")};return p.createElement(p.Fragment,null,D&&p.createElement("div",(0,o.A)({},oe,{style:{height:0,width:0,overflow:"hidden"}}),te(q-1),te(q),te(q+1)),p.createElement(ae.A,{itemKey:"key",ref:B,data:L,height:P,itemHeight:H,fullHeight:!1,onMouseDown:F,onScroll:b,virtual:D,direction:N,innerProps:D?null:oe},(function(e,n){var t=e.group,r=e.groupOption,a=e.data,l=e.label,s=e.value,u=a.key;if(t){var d,m=null!==(d=a.title)&&void 0!==d?d:ce(l)?l.toString():void 0;return p.createElement("div",{className:v()(k,"".concat(k,"-group"),a.className),title:m},void 0!==l?l:u)}var f=a.disabled,g=a.title,h=(a.children,a.style),b=a.className,A=(0,c.A)(a,le),w=(0,ie.A)(A,Z),E=Q(s),S=f||!E&&j,$="".concat(k,"-option"),I=v()(k,$,b,(0,i.A)((0,i.A)((0,i.A)((0,i.A)({},"".concat($,"-grouped"),r),"".concat($,"-active"),q===n&&!S),"".concat($,"-disabled"),S),"".concat($,"-selected"),E)),x=ee(e),O=!M||"function"==typeof M||E,R="number"==typeof x?x:x||s,z=ce(R)?R.toString():void 0;return void 0!==g&&(z=g),p.createElement("div",(0,o.A)({},(0,C.A)(w),D?{}:ne(e,n),{"aria-selected":E,className:I,title:z,onMouseMove:function(){q===n||S||Y(n)},onClick:function(){S||J(s)},style:h}),p.createElement("div",{className:"".concat($,"-content")},"function"==typeof T?T(e,{index:n}):R),p.isValidElement(M)||E,O&&p.createElement(y,{className:"".concat(k,"-option-state"),customizeIcon:M,customizeIconProps:{value:s,disabled:S,isSelected:E}},E?"✓":null))})))};const ue=p.forwardRef(se);function de(e,n){return O(e).join("").toUpperCase().includes(n)}var pe=t(47200),me=t(41747),fe=["children","value"],ve=["children"];function ge(e){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return(0,me.A)(e).map((function(e,t){if(!p.isValidElement(e)||!e.type)return null;var o=e,r=o.type.isSelectOptGroup,i=o.key,l=o.props,s=l.children,u=(0,c.A)(l,ve);return n||!r?function(e){var n=e,t=n.key,o=n.props,r=o.children,i=o.value,l=(0,c.A)(o,fe);return(0,a.A)({key:t,value:void 0!==i?i:t,children:r},l)}(e):(0,a.A)((0,a.A)({key:"__RC_SELECT_GRP__".concat(null===i?t:i,"__"),label:i},u),{},{options:ge(s)})})).filter((function(e){return e}))}const he=function(e,n,t,o,r){return p.useMemo((function(){var i=e;!e&&(i=ge(n));var a=new Map,l=new Map,c=function(e,n,t){t&&"string"==typeof t&&e.set(n[t],n)};return function e(n){for(var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=0;s<n.length;s+=1){var u=n[s];!u[t.options]||i?(a.set(u[t.value],u),c(l,u,t.label),c(l,u,o),c(l,u,r)):e(u[t.options],!0)}}(i),{options:i,valueOptions:a,labelOptions:l}}),[e,n,t,o,r])};function be(e){var n=p.useRef();n.current=e;var t=p.useCallback((function(){return n.current.apply(n,arguments)}),[]);return t}var ye=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],Ae=["inputValue"],we=p.forwardRef((function(e,n){var t=e.id,d=e.mode,m=e.prefixCls,f=void 0===m?"rc-select":m,v=e.backfill,g=e.fieldNames,h=e.inputValue,b=e.searchValue,y=e.onSearch,A=e.autoClearSearchValue,w=void 0===A||A,E=e.onSelect,S=e.onDeselect,C=e.dropdownMatchSelectWidth,$=void 0===C||C,I=e.filterOption,x=e.filterSort,M=e.optionFilterProp,R=e.optionLabelProp,z=e.options,D=e.optionRender,N=e.children,P=e.defaultActiveFirstOption,H=e.menuItemSelectedIcon,T=e.virtual,k=e.direction,L=e.listHeight,B=void 0===L?200:L,j=e.listItemHeight,F=void 0===j?20:j,V=e.labelRender,_=e.value,q=e.defaultValue,U=e.labelInValue,Y=e.onChange,J=e.maxCount,ee=(0,c.A)(e,ye),ne=(0,pe.Ay)(t),te=Q(d),oe=!(z||!N),re=p.useMemo((function(){return(void 0!==I||"combobox"!==d)&&I}),[I,d]),ie=p.useMemo((function(){return K(g,oe)}),[JSON.stringify(g),oe]),ae=(0,u.A)("",{value:void 0!==b?b:h,postState:function(e){return e||""}}),le=(0,l.A)(ae,2),ce=le[0],se=le[1],me=he(z,N,ie,M,R),fe=me.valueOptions,ve=me.labelOptions,ge=me.options,we=p.useCallback((function(e){return O(e).map((function(e){var n,t,o,r,i,a;!function(e){return!e||"object"!==(0,s.A)(e)}(e)?(o=e.key,t=e.label,n=null!==(a=e.value)&&void 0!==a?a:o):n=e;var l,c=fe.get(n);return c&&(void 0===t&&(t=null==c?void 0:c[R||ie.label]),void 0===o&&(o=null!==(l=null==c?void 0:c.key)&&void 0!==l?l:n),r=null==c?void 0:c.disabled,i=null==c?void 0:c.title),{label:t,value:n,key:o,disabled:r,title:i}}))}),[ie,R,fe]),Ee=(0,u.A)(q,{value:_}),Se=(0,l.A)(Ee,2),Ce=Se[0],$e=Se[1],Ie=p.useMemo((function(){var e,n=we(te&&null===Ce?[]:Ce);return"combobox"===d&&function(e){return!e&&0!==e}(null===(e=n[0])||void 0===e?void 0:e.value)?[]:n}),[Ce,we,d,te]),xe=function(e,n){var t=p.useRef({values:new Map,options:new Map});return[p.useMemo((function(){var o=t.current,r=o.values,i=o.options,l=e.map((function(e){var n;return void 0===e.label?(0,a.A)((0,a.A)({},e),{},{label:null===(n=r.get(e.value))||void 0===n?void 0:n.label}):e})),c=new Map,s=new Map;return l.forEach((function(e){c.set(e.value,e),s.set(e.value,n.get(e.value)||i.get(e.value))})),t.current.values=c,t.current.options=s,l}),[e,n]),p.useCallback((function(e){return n.get(e)||t.current.options.get(e)}),[n])]}(Ie,fe),Oe=(0,l.A)(xe,2),Me=Oe[0],Re=Oe[1],ze=p.useMemo((function(){if(!d&&1===Me.length){var e=Me[0];if(null===e.value&&(null===e.label||void 0===e.label))return[]}return Me.map((function(e){var n;return(0,a.A)((0,a.A)({},e),{},{label:null!==(n="function"==typeof V?V(e):e.label)&&void 0!==n?n:e.value})}))}),[d,Me,V]),De=p.useMemo((function(){return new Set(Me.map((function(e){return e.value})))}),[Me]);p.useEffect((function(){if("combobox"===d){var e,n=null===(e=Me[0])||void 0===e?void 0:e.value;se(function(e){return null!=e}(n)?String(n):"")}}),[Me]);var Ne=be((function(e,n){var t=null!=n?n:e;return(0,i.A)((0,i.A)({},ie.value,e),ie.label,t)})),Pe=function(e,n,t,o,r){return p.useMemo((function(){if(!t||!1===o)return e;var l=n.options,c=n.label,s=n.value,u=[],d="function"==typeof o,p=t.toUpperCase(),m=d?o:function(e,n){return r?de(n[r],p):n[l]?de(n["children"!==c?c:"label"],p):de(n[s],p)},f=d?function(e){return X(e)}:function(e){return e};return e.forEach((function(e){if(e[l])if(m(t,f(e)))u.push(e);else{var n=e[l].filter((function(e){return m(t,f(e))}));n.length&&u.push((0,a.A)((0,a.A)({},e),{},(0,i.A)({},l,n)))}else m(t,f(e))&&u.push(e)})),u}),[e,o,r,t,n])}(p.useMemo((function(){if("tags"!==d)return ge;var e=(0,r.A)(ge);return(0,r.A)(Me).sort((function(e,n){return e.value<n.value?-1:1})).forEach((function(n){var t=n.value;(function(e){return fe.has(e)})(t)||e.push(Ne(t,n.label))})),e}),[Ne,ge,fe,Me,d]),ie,ce,re,M),He=p.useMemo((function(){return"tags"!==d||!ce||Pe.some((function(e){return e[M||"value"]===ce}))||Pe.some((function(e){return e[ie.value]===ce}))?Pe:[Ne(ce)].concat((0,r.A)(Pe))}),[Ne,M,d,Pe,ce,ie]),Te=p.useMemo((function(){return x?(0,r.A)(He).sort((function(e,n){return x(e,n,{searchValue:ce})})):He}),[He,x,ce]),ke=p.useMemo((function(){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=n.fieldNames,o=n.childrenAsData,r=[],i=K(t,!1),a=i.label,l=i.value,c=i.options,s=i.groupLabel;return function e(n,t){Array.isArray(n)&&n.forEach((function(n){if(t||!(c in n)){var i=n[l];r.push({key:W(n,r.length),groupOption:t,data:n,label:n[a],value:i})}else{var u=n[s];void 0===u&&o&&(u=n.label),r.push({key:W(n,r.length),group:!0,data:n,label:u}),e(n[c],!0)}}))}(e,!1),r}(Te,{fieldNames:ie,childrenAsData:oe})}),[Te,ie,oe]),Le=function(e){var n=we(e);if($e(n),Y&&(n.length!==Me.length||n.some((function(e,n){var t;return(null===(t=Me[n])||void 0===t?void 0:t.value)!==(null==e?void 0:e.value)})))){var t=U?n:n.map((function(e){return e.value})),o=n.map((function(e){return X(Re(e.value))}));Y(te?t:t[0],te?o:o[0])}},Be=p.useState(null),je=(0,l.A)(Be,2),Fe=je[0],Ve=je[1],We=p.useState(0),_e=(0,l.A)(We,2),Ke=_e[0],Xe=_e[1],Ge=void 0!==P?P:"combobox"!==d,qe=p.useCallback((function(e,n){var t=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).source,o=void 0===t?"keyboard":t;Xe(n),v&&"combobox"===d&&null!==e&&"keyboard"===o&&Ve(String(e))}),[v,d]),Ue=function(e,n,t){var o=function(){var n,t=Re(e);return[U?{label:null==t?void 0:t[ie.label],value:e,key:null!==(n=null==t?void 0:t.key)&&void 0!==n?n:e}:e,X(t)]};if(n&&E){var r=o(),i=(0,l.A)(r,2),a=i[0],c=i[1];E(a,c)}else if(!n&&S&&"clear"!==t){var s=o(),u=(0,l.A)(s,2),d=u[0],p=u[1];S(d,p)}},Ye=be((function(e,n){var t,o=!te||n.selected;t=o?te?[].concat((0,r.A)(Me),[e]):[e]:Me.filter((function(n){return n.value!==e})),Le(t),Ue(e,o),"combobox"===d?Ve(""):Q&&!w||(se(""),Ve(""))})),Qe=p.useMemo((function(){var e=!1!==T&&!1!==$;return(0,a.A)((0,a.A)({},me),{},{flattenOptions:ke,onActiveValue:qe,defaultActiveFirstOption:Ge,onSelect:Ye,menuItemSelectedIcon:H,rawValues:De,fieldNames:ie,virtual:e,direction:k,listHeight:B,listItemHeight:F,childrenAsData:oe,maxCount:J,optionRender:D})}),[J,me,ke,qe,Ge,Ye,H,De,ie,T,$,k,B,F,oe,D]);return p.createElement(G.Provider,{value:Qe},p.createElement(Z,(0,o.A)({},ee,{id:ne,prefixCls:f,ref:n,omitDomProps:Ae,mode:d,displayValues:ze,onDisplayValuesChange:function(e,n){Le(e);var t=n.type,o=n.values;"remove"!==t&&"clear"!==t||o.forEach((function(e){Ue(e.value,!1,t)}))},direction:k,searchValue:ce,onSearch:function(e,n){if(se(e),Ve(null),"submit"!==n.source)"blur"!==n.source&&("combobox"===d&&Le(e),null==y||y(e));else{var t=(e||"").trim();if(t){var o=Array.from(new Set([].concat((0,r.A)(De),[t])));Le(o),Ue(t,!0),se("")}}},autoClearSearchValue:w,onSearchSplit:function(e){var n=e;"tags"!==d&&(n=e.map((function(e){var n=ve.get(e);return null==n?void 0:n.value})).filter((function(e){return void 0!==e})));var t=Array.from(new Set([].concat((0,r.A)(De),(0,r.A)(n))));Le(t),t.forEach((function(e){Ue(e,!0)}))},dropdownMatchSelectWidth:$,OptionList:ue,emptyOptions:!ke.length,activeValue:Fe,activeDescendantId:"".concat(ne,"_list_").concat(Ke)})))}));we.Option=oe,we.OptGroup=ne;const Ee=we}}]);
3
- //# sourceMappingURL=9978.ab072b2a.js.map