包含后厨 团餐 门店分支
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

2 lines
37 KiB

  1. (self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[2807],{34442:function(){},45747:function(){},55843:function(er,ot,o){"use strict";o.d(ot,{Z:function(){return dt}});var G=o(65223),P=o(96156),E=o(22122),te=o(85061),ze=o(94184),Fe=o.n(ze),c=o(63441),l=o(67294),Je=o(53124),Zt=o(33603),Ne=o(28481);function ke(e){var t=l.useState(e),a=(0,Ne.Z)(t,2),n=a[0],i=a[1];return l.useEffect(function(){var u=setTimeout(function(){i(e)},e.length?0:10);return function(){clearTimeout(u)}},[e]),n}var Ot=[];function yt(e,t,a){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof e=="string"?e:"".concat(a,"-").concat(n),error:e,errorStatus:t}}function it(e){var t=e.help,a=e.helpStatus,n=e.errors,i=n===void 0?Ot:n,u=e.warnings,v=u===void 0?Ot:u,d=e.className,M=e.fieldId,S=e.onVisibleChanged,w=l.useContext(G.Rk),D=w.prefixCls,U=l.useContext(Je.E_),F=U.getPrefixCls,A="".concat(D,"-item-explain"),W=F(),re=ke(i),Z=ke(v),B=l.useMemo(function(){return t!=null?[yt(t,a,"help")]:[].concat((0,te.Z)(re.map(function(K,V){return yt(K,"error","error",V)})),(0,te.Z)(Z.map(function(K,V){return yt(K,"warning","warning",V)})))},[t,a,re,Z]),z={};return M&&(z.id="".concat(M,"_help")),l.createElement(c.default,{motionDeadline:Zt.ZP.motionDeadline,motionName:"".concat(W,"-show-help"),visible:!!B.length,onVisibleChanged:S},function(K){var V=K.className,q=K.style;return l.createElement("div",(0,E.Z)({},z,{className:Fe()(A,V,d),style:q,role:"alert"}),l.createElement(c.CSSMotionList,(0,E.Z)({keys:B},Zt.ZP,{motionName:"".concat(W,"-show-help-item"),component:!1}),function(Y){var Q=Y.key,_=Y.error,I=Y.errorStatus,ne=Y.className,J=Y.style;return l.createElement("div",{key:Q,className:Fe()(ne,(0,P.Z)({},"".concat(A,"-").concat(I),I)),style:J},_)}))})}var qe=o(90484),Qe=o(48526),Et=o(98866),Lt=o(97647);function Nt(e){return typeof e=="object"&&e!=null&&e.nodeType===1}function Ye(e,t){return(!t||e!=="hidden")&&e!=="visible"&&e!=="clip"}function Ae(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var a=getComputedStyle(e,null);return Ye(a.overflowY,t)||Ye(a.overflowX,t)||function(n){var i=function(u){if(!u.ownerDocument||!u.ownerDocument.defaultView)return null;try{return u.ownerDocument.defaultView.frameElement}catch(v){return null}}(n);return!!i&&(i.clientHeight<n.scrollHeight||i.clientWidth<n.scrollWidth)}(e)}return!1}function L(e,t,a,n,i,u,v,d){return u<e&&v>t||u>e&&v<t?0:u<=e&&d<=a||v>=t&&d>=a?u-e-n:v>t&&d<a||u<e&&d>a?v-t+i:0}var et=function(e,t){var a=window,n=t.scrollMode,i=t.block,u=t.inline,v=t.boundary,d=t.skipOverflowHiddenElements,M=typeof v=="function"?v:function(Ge){return Ge!==v};if(!Nt(e))throw new TypeError("Invalid target");for(var S,w,D=document.scrollingElement||document.documentElement,U=[],F=e;Nt(F)&&M(F);){if((F=(w=(S=F).parentElement)==null?S.getRootNode().host||null:w)===D){U.push(F);break}F!=null&&F===document.body&&Ae(F)&&!Ae(document.documentElement)||F!=null&&Ae(F,d)&&U.push(F)}for(var A=a.visualViewport?a.visualViewport.width:innerWidth,W=a.visualViewport?a.visualViewport.height:innerHeight,re=window.scrollX||pageXOffset,Z=window.scrollY||pageYOffset,B=e.getBoundingClientRect(),z=B.height,K=B.width,V=B.top,q=B.right,Y=B.bottom,Q=B.left,_=i==="start"||i==="nearest"?V:i==="end"?Y:V+z/2,I=u==="center"?Q+K/2:u==="end"?q:Q,ne=[],J=0;J<U.length;J++){var b=U[J],O=b.getBoundingClientRect(),ee=O.height,ve=O.width,m=O.top,T=O.right,Te=O.bottom,me=O.left;if(n==="if-needed"&&V>=0&&Q>=0&&Y<=W&&q<=A&&V>=m&&Y<=Te&&Q>=me&&q<=T)return ne;var Ce=getComputedStyle(b),Ke=parseInt(Ce.borderLeftWidth,10),Se=parseInt(Ce.borderTopWidth,10),Pe=parseInt(Ce.borderRightWidth,10),ue=parseInt(Ce.borderBottomWidth,10),se=0,Me=0,je="offsetWidth"in b?b.offsetWidth-b.clientWidth-Ke-Pe:0,ye="offsetHeight"in b?b.offsetHeight-b.clientHeight-Se-ue:0,X="offsetWidth"in b?b.offsetWidth===0?0:ve/b.offsetWidth:0,de="offsetHeight"in b?b.offsetHeight===0?0:ee/b.offsetHeight:0;if(D===b)se=i==="start"?_:i==="end"?_-W:i==="nearest"?L(Z,Z+W,W,Se,ue,Z+_,Z+_+z,z):_-W/2,Me=u==="start"?I:u==="center"?I-A/2:u==="end"?I-A:L(re,re+A,A,Ke,Pe,re+I,re+I+K,K),se=Math.max(0,se+Z),Me=Math.max(0,Me+re);else{se=i==="start"?_-m-Se:i==="end"?_-Te+ue+ye:i==="nearest"?L(m,Te,ee,Se,ue+ye,_,_+z,z):_-(m+ee/2)+ye/2,Me=u==="start"?I-me-Ke:u==="center"?I-(me+ve/2)+je/2:u==="end"?I-T+Pe+je:L(me,T,ve,Ke,Pe+je,I,I+K,K);var Ze=b.scrollLeft,Oe=b.scrollTop;_+=Oe-(se=Math.max(0,Math.min(Oe+se/de,b.scrollHeight-ee/de+ye))),I+=Ze-(Me=Math.max(0,Math.min(Ze+Me/X,b.scrollWidth-ve/X+je)))}ne.push({el:b,top:se,left:Me})}return ne};function le(e){return e===Object(e)&&Object.keys(e).length!==0}function pe(e,t){t===void 0&&(t="auto");var a="scrollBehavior"in document.body.style;e.forEach(function(n){var i=n.el,u=n.top,v=n.left;i.scroll&&a?i.scroll({top:u,left:v,behavior:t}):(i.scrollTop=u,i.scrollLeft=v)})}function $t(e){return e===!1?{block:"end",inline:"nearest"}:le(e)?e:{block:"start",inline:"nearest"}}function pt(e,t){var a=e.isConnected||e.ownerDocument.documentElement.contains(e);if(le(t)&&typeof t.behavior=="function")return t.behavior(a?et(e,t):[]);if(!!a){var n=$t(t);return pe(et(e,n),n.behavior)}}var ut=pt,Dt=["parentNode"],xt="form_item";function Ve(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function st(e,t){if(!!e.length){var a=e.join("_");if(t)return"".concat(t,"_").concat(a);var n=Dt.includes(a);return n?"".concat(xt,"_").concat(a):a}}function It(e){var t=Ve(e);return t.join("_")}function rt(e){var t=(0,Qe.useForm)(),a=(0,Ne.Z)(t,1),n=a[0],i=l.useRef({}),u=l.useMemo(function(){return e!=null?e:(0,E.Z)((0,E.Z)({},n),{__INTERNAL__:{itemRef:function(d){return function(M){var S=It(d);M?i.current[S]=M:delete i.current[S]}}},scrollToField:function(d){var M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},S=Ve(d),w=st(S,u.__INTERNAL__.name),D=w?document.getElementById(w):null;D&&ut(D,(0,E.Z)({scrollMode:"if-needed",block:"nearest"},M))},getFieldInstance:function(d){var M=It(d);return i.current[M]}})},[e,n]);return[u]}var Tt=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(a[n[i]]=e[n[i]]);return a},Rt=function(t,a){var n,i=l.useContext(Lt.Z),u=l.useContext(Et.Z),v=l.useContext(Je.E_),d=v.getPrefixCls,M=v.direction,S=v.form,w=t.prefixCls,D=t.className,U=D===void 0?"":D,F=t.size,A=F===void 0?i:F,W=t.disabled,re=W===void 0?u:W,Z=t.form,B=t.colon,z=t.labelAlign,K=t.labelWrap,V=t.labelCol,q=t.wrapperCol,Y=t.hideRequiredMark,Q=t.layout,_=Q===void 0?"horizontal":Q,I=t.scrollToFirstError,ne=t.requiredMark,J=t.onFinishFailed,b=t.name,O=Tt(t,["prefixCls","className","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name"]),ee=(0,l.useMemo)(function(){return ne!==void 0?ne:S&&S.requiredMark!==void 0?S.requiredMark:!Y},[Y,ne,S]),ve=B!=null?B:S==null?void 0:S.colon,m=d("form",w),T=Fe()(m,(n={},(0,P.Z)(n,"".concat(m,"-").concat(_),!0),(0,P.Z)(n,"".concat(m,"-hide-required-mark"),ee===!1),(0,P.Z)(n,"".concat(m,"-rtl"),M==="rtl"),(0,P.Z)(n,"".concat(m,"-").concat(A),A),n),U),Te=rt(Z),me=(0,Ne.Z)(Te,1),Ce=me[0],Ke=Ce.__INTERNAL__;Ke.name=b;var Se=(0,l.useMemo)(function(){return{name:b,labelAlign:z,labelCol:V,labelWrap:K,wrapperCol:q,vertical:_==="vertical",colon:ve,requiredMark:ee,itemRef:Ke.itemRef,form:Ce}},[b,z,V,q,_,ve,ee,Ce]);l.useImperativeHandle(a,function(){return Ce});var Pe=function(se){J==null||J(se);var Me={block:"nearest"};I&&se.errorFields.length&&((0,qe.Z)(I)==="object"&&(Me=I),Ce.scrollToField(se.errorFields[0].name,Me))};return l.createElement(Et.n,{disabled:re},l.createElement(Lt.q,{size:A},l.createElement(G.q3.Provider,{value:Se},l.createElement(Qe.default,(0,E.Z)({id:b},O,{name:b,onFinishFailed:Pe,form:Ce,className:T})))))},nt=l.forwardRef(Rt),wt=nt,Ut=o(30470),bt=o(42550),jt=function(){var t=(0,l.useContext)(G.aM),a=t.status;return{status:a}},Ft=jt,At=o(96159),Vt=o(93355),Wt=o(75164);function Bt(e){var t=l.useState(e),a=(0,Ne.Z)(t,2),n=a[0],i=a[1],u=(0,l.useRef)(null),v=(0,l.useRef)([]),d=(0,l.useRef)(!1);l.useEffect(function(){return d.current=!1,function(){d.current=!0,Wt.Z.cancel(u.current),u.current=null}},[]);function M(S){d.current||(u.current===null&&(v.current=[],u.current=(0,Wt.Z)(function(){u.current=null,i(function(w){var D=w;return v.current.forEach(function(U){D=U(D)}),D})})),v.current.push(S))}return[n,M]}function Kt(){var e=l.useContext(G.q3),t=e.itemRef,a=l.useRef({});function n(i,u){var v=u&&(0,qe.Z)(u)==="object"&&u.ref,d=i.join("_");return(a.current.name!==d||a.current.originRef!==v)&&(a.current.name=d,a.current.originRef=v,a.current.ref=(0,bt.sQ)(t(i),v)),a.current.ref}return n}var tr=o(38819),rr=o(43061),St=o(68855),zt=o(7085),Pt=o(8410),We=o(98423),Yt=o(92820),ct=o(1870),r=o(21584),s=o(42051),h=o(85636),x=o(94199),g=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(a[n[i]]=e[n[i]]);return a};function f(e){return e?(0,qe.Z)(e)==="object"&&!l.isValidElement(e)?e:{title:e}:null}var C=function(t){var a=t.prefixCls,n=t.label,i=t.htmlFor,u=t.labelCol,v=t.labelAlign,d=t.colon,M=t.required,S=t.requiredMark,w=t.tooltip,D=(0,s.E)("Form"),U=(0,Ne.Z)(D,1),F=U[0];return n?l.createElement(G.q3.Consumer,{key:"label"},function(A){var W,re=A.vertical,Z=A.labelAlign,B=A.labelCol,z=A.labelWrap,K=A.colon,V,q=u||B||{},Y=v||Z,Q="".concat(a,"-item-label"),_=Fe()(Q,Y==="left"&&"".concat(Q,"-left"),q.className,(0,P.Z)({},"".concat(Q,"-wrap"),!!z)),I=n,ne=d===!0||K!==!1&&d!==!1,J=ne&&!re;J&&typeof n=="string"&&n.trim()!==""&&(I=n.replace(/[:|:]\s*$/,""));var b=f(w);if(b){var O=b.icon,ee=O===void 0?l.createElement(ct.Z,null):O,ve=g(b,["icon"]),m=l.createElement(x.Z,(0,E.Z)({},ve),l.cloneElement(ee,{className:"".concat(a,"-item-tooltip"),title:""}));I=l.createElement(l.Fragment,null,I,m)}S==="optional"&&!M&&(I=l.createElement(l.Fragment,null,I,l.createElement("span",{className:"".concat(a,"-item-optional"),title:""},(F==null?void 0:F.optional)||((V=h.Z.Form)===null||V===void 0?void 0:V.optional))));var T=Fe()((W={},(0,P.Z)(W,"".concat(a,"-item-required"),M),(0,P.Z)(W,"".concat(a,"-item-required-mark-optional"),S==="optional"),(0,P.Z)(W,"".concat(a,"-item-no-colon"),!ne),W));return l.createElement(r.Z,(0,E.Z)({},q,{className:_}),l.createElement("label",{htmlFor:i,className:T,title:typeof n=="string"?n:""},I))}):null},y=C,p=function(t){var a=t.prefixCls,n=t.status,i=t.wrapperCol,u=t.children,v=t.errors,d=t.warnings,M=t._internalItemRender,S=t.extra,w=t.help,D=t.fieldId,U=t.marginBottom,F=t.onErrorVisibleChanged,A="".concat(a,"-item"),W=l.useContext(G.q3),re=i||W.wrapperCol||{},Z=Fe()("".concat(A,"-control"),re.className),B=l.useMemo(function(){return(0,E.Z)({},W)},[W]);delete B.labelCol,delete B.wrapperCol;var z=l.createElement("div",{className:"".concat(A,"-control-input")},l.createElement("div",{className:"".concat(A,"-control-input-content")},u)),K=l.useMemo(function(){return{prefixCls:a,status:n}},[a,n]),V=U!==null||v.length||d.length?l.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},l.createElement(G.Rk.Provider,{value:K},l.createElement(it,{fieldId:D,errors:v,warnings:d,help:w,helpStatus:n,className:"".concat(A,"-explain-connected"),onVisibleChanged:F})),!!U&&l.createElement("div",{style:{width:0,height:U}})):null,q={};D&&(q.id="".concat(D,"_extra"));var Y=S?l.createElement("div",(0,E.Z)({},q,{className:"".concat(A,"-extra")}),S):null,Q=M&&M.mark==="pro_table_render"&&M.render?M.render(t,{input:z,errorList:V,extra:Y}):l.createElement(l.Fragment,null,z,V,Y);return l.createElement(G.q3.Provider,{value:B},l.createElement(r.Z,(0,E.Z)({},re,{className:Z}),Q))},N=p,R=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(a[n[i]]=e[n[i]]);return a},xe={success:tr.Z,warning:St.Z,error:rr.Z,validating:zt.Z};function ie(e){var t,a=e.prefixCls,n=e.className,i=e.style,u=e.help,v=e.errors,d=e.warnings,M=e.validateStatus,S=e.meta,w=e.hasFeedback,D=e.hidden,U=e.children,F=e.fieldId,A=e.isRequired,W=e.onSubItemMetaChange,re=R(e,["prefixCls","className","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","isRequired","onSubItemMetaChange"]),Z="".concat(a,"-item"),B=l.useContext(G.q3),z=B.requiredMark,K=l.useRef(null),V=ke(v),q=ke(d),Y=u!=null,Q=!!(Y||v.length||d.length),_=l.useState(null),I=(0,Ne.Z)(_,2),ne=I[0],J=I[1];(0,Pt.Z)(function(){if(Q&&K.current){var m=getComputedStyle(K.current);J(parseInt(m.marginBottom,10))}},[Q]);var b=function(T){T||J(null)},O="";M!==void 0?O=M:S.validating?O="validating":V.length?O="error":q.length?O="warning":S.touched&&(O="success");var ee=l.useMemo(function(){var m;if(w){var T=O&&xe[O];m=T?l.createElement("span",{className:Fe()("".concat(Z,"-feedback-icon"),"".concat(Z,"-feedback-icon-").concat(O))},l.createElement(T,null)):null}return{status:O,hasFeedback:w,feedbackIcon:m,isFormItemInput:!0}},[O,w]),ve=(t={},(0,P.Z)(t,Z,!0),(0,P.Z)(t,"".concat(Z,"-with-help"),Y||V.length||q.length),(0,P.Z)(t,"".concat(n),!!n),(0,P.Z)(t,"".concat(Z,"-has-feedback"),O&&w),(0,P.Z)(t,"".concat(Z,"-has-success"),O==="success"),(0,P.Z)(t,"".concat(Z,"-has-warning"),O==="warning"),(0,P.Z)(t,"".concat(Z,"-has-error"),O==="error"),(0,P.Z)(t,"".concat(Z,"-is-validating"),O==="validating"),(0,P.Z)(t,"".concat(Z,"-hidden"),D),t);return l.createElement("div",{className:Fe()(ve),style:i,ref:K},l.createElement(Yt.Z,(0,E.Z)({className:"".concat(Z,"-row")},(0,We.Z)(re,["_internalItemRender","colon","dependencies","extra","fieldKey","getValueFromEvent","getValueProps","htmlFor","id","initialValue","isListField","label","labelAlign","labelCol","labelWrap","messageVariables","name","normalize","noStyle","preserve","required","requiredMark","rules","shouldUpdate","trigger","tooltip","validateFirst","validateTrigger","valuePropName","wrapperCol"])),l.createElement(y,(0,E.Z)({htmlFor:F,required:A,requiredMark:z},e,{prefixCls:a})),l.createElement(N,(0,E.Z)({},e,S,{errors:V,warnings:q,prefixCls:a,status:O,help:u,marginBottom:ne,onErrorVisibleChanged:b}),l.createElement(G.qI.Provider,{value:W},l.createElement(G.aM.Provider,{value:ee},U)))),!!ne&&l.createElement("div",{className:"".concat(Z,"-margin-offset"),style:{marginBottom:-ne}}))}var ce="__SPLIT__",he=(0,Vt.b)("success","warning","error","validating",""),Ie=l.memo(function(e){var t=e.children;return t},function(e,t){return e.value===t.value&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every(function(a,n){return a===t.childProps[n]})});function He(e){return e!=null}function $e(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[]}}function Xe(e){var t=e.name,a=e.noStyle,n=e.dependencies,i=e.prefixCls,u=e.shouldUpdate,v=e.rules,d=e.children,M=e.required,S=e.label,w=e.messageVariables,D=e.trigger,U=D===void 0?"onChange":D,F=e.validateTrigger,A=e.hidden,W=(0,l.useContext)(Je.E_),re=W.getPrefixCls,Z=(0,l.useContext)(G.q3),B=Z.name,z=typeof d=="function",K=(0,l.useContext)(G.qI),V=(0,l.useContext)(Qe.FieldContext),q=V.validateTrigger,Y=F!==void 0?F:q,Q=He(t),_=re("form",i),I=l.useContext(Qe.ListContext),ne=l.useRef(),J=Bt({}),b=(0,Ne.Z)(J,2),O=b[0],ee=b[1],ve=(0,Ut.Z)(function(){return $e()}),m=(0,Ne.Z)(ve,2),T=m[0],Te=m[1],me=function(X){var de=I==null?void 0:I.getKey(X.name);if(Te(X.destroy?$e():X,!0),a&&K){var Ze=X.name;if(X.destroy)Ze=ne.current||Ze;else if(de!==void 0){var Oe=(0,Ne.Z)(de,2),Ge=Oe[0],Le=Oe[1];Ze=[Ge].concat((0,te.Z)(Le)),ne.current=Ze}K(X,Ze)}},Ce=function(X,de){ee(function(Ze){var Oe=(0,E.Z)({},Ze),Ge=[].concat((0,te.Z)(X.name.slice(0,-1)),(0,te.Z)(de)),Le=Ge.join(ce);return X.destroy?delete Oe[Le]:Oe[Le]=X,Oe})},Ke=l.useMemo(function(){var ye=(0,te.Z)(T.errors),X=(0,te.Z)(T.warnings);return Object.values(O).forEach(function(de){ye.push.apply(ye,(0,te.Z)(de.errors||[])),X.push.apply(X,(0,te.Z)(de.warnings||[]))}),[ye,X]},[O,T.errors,T.warnings]),Se=(0,Ne.Z)(Ke,2),Pe=Se[0],ue=Se[1],se=Kt();function Me(ye,X,de){return a&&!A?ye:l.createElement(ie,(0,E.Z)({key:"row"},e,{prefixCls:_,fieldId:X,isRequired:de,errors:Pe,warnings:ue,meta:T,onSubItemMetaChange:Ce}),ye)}if(!Q&&!z&&!n)return Me(d);var je={};return typeof S=="string"?je.label=S:t&&(je.label=String(t)),w&&(je=(0,E.Z)((0,E.Z)({},je),w)),l.createElement(Qe.Field,(0,E.Z)({},e,{messageVariables:je,trigger:U,validateTrigger:Y,onMetaChange:me}),function(ye,X,de){var Ze=Ve(t).length&&X?X.name:[],Oe=st(Ze,B),Ge=M!==void 0?M:!!(v&&v.some(function(Re){if(Re&&(0,qe.Z)(Re)==="object"&&Re.required&&!Re.warningOnly)return!0;if(typeof Re=="function"){var mt=Re(de);return mt&&mt.required&&!mt.warningOnly}return!1})),Le=(0,E.Z)({},ye),ft=null;if(Array.isArray(d)&&Q)ft=d;else if(!(z&&(!(u||n)||Q))){if(!(n&&!z&&!Q))if((0,At.l$)(d)){var _e=(0,E.Z)((0,E.Z)({},d.props),Le);if(_e.id||(_e.id=Oe),e.help||Pe.length>0||ue.length>0||e.extra){var Qt=[];(e.help||Pe.length>0)&&Qt.push("".concat(Oe,"_help")),e.extra&&Qt.push("".concat(Oe,"_extra")),_e["aria-describedby"]=Qt.join(" ")}Pe.length>0&&(_e["aria-invalid"]="true"),Ge&&(_e["aria-required"]="true"),(0,bt.Yr)(d)&&(_e.ref=se(Ze,d));var nr=new Set([].concat((0,te.Z)(Ve(U)),(0,te.Z)(Ve(Y))));nr.forEach(function(Re){_e[Re]=function(){for(var mt,ar,Xt,lr,ht,_t=arguments.length,Gt=new Array(_t),kt=0;kt<_t;kt++)Gt[kt]=arguments[kt];(Xt=Le[Re])===null||Xt===void 0||(mt=Xt).call.apply(mt,[Le].concat(Gt)),(ht=(lr=d.props)[Re])===null||ht===void 0||(ar=ht).call.apply(ar,[lr].concat(Gt))}});var vt=[_e["aria-required"],_e["aria-invalid"],_e["aria-describedby"]];ft=l.createElement(Ie,{value:Le[e.valuePropName||"value"],update:d,childProps:vt},(0,At.Tm)(d,_e))}else z&&(u||n)&&!Q?ft=d(de):ft=d}return Me(ft,Oe,Ge)})}var $=Xe;$.useStatus=Ft;var ge=$,De=function(e,t){var a={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(a[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(a[n[i]]=e[n[i]]);return a},at=function(t){var a=t.prefixCls,n=t.children,i=De(t,["prefixCls","children"]),u=l.useContext(Je.E_),v=u.getPrefixCls,d=v("form",a),M=l.useMemo(function(){return{prefixCls:d,status:"error"}},[d]);return l.createElement(Qe.List,(0,E.Z)({},i),function(S,w,D){return l.createElement(G.Rk.Provider,{value:M},n(S.map(function(U){return(0,E.Z)((0,E.Z)({},U),{fieldKey:U.key})}),w,{errors:D.errors,warnings:D.warnings}))})},Ue=at;function lt(){var e=(0,l.useContext)(G.q3),t=e.form;return t}var be=wt;be.Item=ge,be.List=Ue,be.ErrorList=it,be.useForm=rt,be.useFormInstance=lt,be.useWatch=Qe.useWatch,be.Provider=G.RV,be.create=function(){};var dt=be},9715:function(er,ot,o){"use strict";var G=o(38663),P=o.n(G),E=o(34442),te=o.n(E),ze=o(6999),Fe=o(22385)},85733:function(er,ot,o){"use strict";var G=o(22122),P=o(96156),E=o(94184),te=o.n(E),ze=o(39877),Fe=o(98423),c=o(67294),l=o(53124),Je=o(88258),Zt=o(98866),Ne=o(97647),ke=o(65223),Ot=o(46163),yt=o(61639),it=o(33603),qe=o(9708),Qe=o(4173),Et=function(Ae,L){var et={};for(var le in Ae)Object.prototype.hasOwnProperty.call(Ae,le)&&L.indexOf(le)<0&&(et[le]=Ae[le]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var pe=0,le=Object.getOwnPropertySymbols(Ae);pe<le.length;pe++)L.indexOf(le[pe])<0&&Object.prototype.propertyIsEnumerable.call(Ae,le[pe])&&(et[le[pe]]=Ae[le[pe]]);return et},Lt=function(L,et){var le,pe=L.prefixCls,$t=L.size,pt=L.disabled,ut=L.bordered,Dt=ut===void 0?!0:ut,xt=L.className,Ve=L.treeCheckable,st=L.multiple,It=L.listHeight,rt=It===void 0?256:It,Tt=L.listItemHeight,Rt=Tt===void 0?26:Tt,nt=L.placement,wt=L.notFoundContent,Ut=L.switcherIcon,bt=L.treeLine,jt=L.getPopupContainer,Ft=L.dropdownClassName,At=L.popupClassName,Vt=L.treeIcon,Wt=Vt===void 0?!1:Vt,Bt=L.transitionName,Kt=L.choiceTransitionName,tr=Kt===void 0?"":Kt,rr=L.status,St=L.showArrow,zt=L.treeExpandAction,Pt=Et(L,["prefixCls","size","disabled","bordered","className","treeCheckable","multiple","listHeight","listItemHeight","placement","notFoundContent","switcherIcon","treeLine","getPopupContainer","dropdownClassName","popupClassName","treeIcon","transitionName","choiceTransitionName","status","showArrow","treeExpandAction"]),We=c.useContext(l.E_),Yt=We.getPopupContainer,ct=We.getPrefixCls,r=We.renderEmpty,s=We.direction,h=We.virtual,x=We.dropdownMatchSelectWidth,g=c.useContext(Ne.Z),f=ct("select",pe),C=ct("select-tree",pe),y=ct("tree-select",pe),p=(0,Qe.ri)(f,s),N=p.compactSize,R=p.compactItemClassnames,xe=te()(At||Ft,"".concat(y,"-dropdown"),(0,P.Z)({},"".concat(y,"-dropdown-rtl"),s==="rtl")),ie=!!(Ve||st),ce=St!==void 0?St:Pt.loading||!ie,he=(0,c.useContext)(ke.aM),Ie=he.status,He=he.hasFeedback,$e=he.isFormItemInput,Xe=he.feedbackIcon,$=(0,qe.F)(Ie,rr),ge=(0,Ot.Z)((0,G.Z)((0,G.Z)({},Pt),{multiple:ie,showArrow:ce,hasFeedback:He,feedbackIcon:Xe,prefixCls:f})),De=ge.suffixIcon,at=ge.removeIcon,Ue=ge.clearIcon,lt;wt!==void 0?lt=wt:lt=(r||Je.Z)("Select");var be=(0,Fe.Z)(Pt,["suffixIcon","itemIcon","removeIcon","clearIcon","switcherIcon"]),dt=function(){return nt!==void 0?nt:s==="rtl"?"bottomRight":"bottomLeft"},e=N||$t||g,t=c.useContext(Zt.Z),a=pt!=null?pt:t,n=te()(!pe&&y,(le={},(0,P.Z)(le,"".concat(f,"-lg"),e==="large"),(0,P.Z)(le,"".concat(f,"-sm"),e==="small"),(0,P.Z)(le,"".concat(f,"-rtl"),s==="rtl"),(0,P.Z)(le,"".concat(f,"-borderless"),!Dt),(0,P.Z)(le,"".concat(f,"-in-form-item"),$e),le),(0,qe.Z)(f,$,He),R,xt),i=ct();return c.createElement(ze.default,(0,G.Z)({virtual:h,dropdownMatchSelectWidth:x,disabled:a},be,{ref:et,prefixCls:f,className:n,listHeight:rt,listItemHeight:Rt,treeCheckable:Ve&&c.createElement("span",{className:"".concat(f,"-tree-checkbox-inner")}),treeLine:!!bt,inputIcon:De,multiple:st,placement:dt(),removeIcon:at,clearIcon:Ue,switcherIcon:function(v){return(0,yt.Z)(C,Ut,bt,v)},showTreeIcon:Wt,notFoundContent:lt,getPopupContainer:jt||Yt,treeMotion:null,dropdownClassName:xe,choiceTransitionName:(0,it.mL)(i,"",tr),transitionName:(0,it.mL)(i,(0,it.q0)(nt),Bt),showArrow:He||St,treeExpandAction:zt}))},Nt=c.forwardRef(Lt),Ye=Nt;Ye.TreeNode=ze.TreeNode,Ye.SHOW_ALL=ze.SHOW_ALL,Ye.SHOW_PARENT=ze.SHOW_PARENT,Ye.SHOW_CHILD=ze.SHOW_CHILD,ot.Z=Ye},62999:function(er,ot,o){"use strict";var G=o(38663),P=o.n(G),E=o(45747),te=o.n(E),ze=o(13254),Fe=o(43358)},39877:function(er,ot,o){"use strict";o.r(ot),o.d(ot,{SHOW_ALL:function(){return Dt},SHOW_CHILD:function(){return Ve},SHOW_PARENT:function(){return xt},TreeNode:function(){return ut},default:function(){return ct}});var G=o(22122),P=o(85061),E=o(28991),te=o(28481),ze=o(81253),Fe=o(90484),c=o(67294),l=o(74484),Je=o(17341),Zt=o(88708),Ne=o(21770),ke=o(15105),Ot=o(56982),yt=o(93549),it=c.createContext(null),qe=it,Qe=c.createContext(null),Et=Qe;function Lt(r){return Array.isArray(r)?r:r!==void 0?[r]:[]}function Nt(r){var s=r||{},h=s.label,x=s.value,g=s.children,f=x||"value";return{_title:h?[h]:["title","label"],value:f,key:f,children:g||"children"}}function Ye(r){return!r||r.disabled||r.disableCheckbox||r.checkable===!1}function Ae(r,s){var h=[];function x(g){g.forEach(function(f){var C=f[s.children];C&&(h.push(f[s.value]),x(C))})}return x(r),h}function L(r){return r==null}var et={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},le=function(s,h){var x=(0,l.useBaseProps)(),g=x.prefixCls,f=x.multiple,C=x.searchValue,y=x.toggleOpen,p=x.open,N=x.notFoundContent,R=c.useContext(Et),xe=R.virtual,ie=R.listHeight,ce=R.listItemHeight,he=R.treeData,Ie=R.fieldNames,He=R.onSelect,$e=R.dropdownMatchSelectWidth,Xe=R.treeExpandAction,$=c.useContext(qe),ge=$.checkable,De=$.checkedKeys,at=$.halfCheckedKeys,Ue=$.treeExpandedKeys,lt=$.treeDefaultExpandAll,be=$.treeDefaultExpandedKeys,dt=$.onTreeExpand,e=$.treeIcon,t=$.showTreeIcon,a=$.switcherIcon,n=$.treeLine,i=$.treeNodeFilterProp,u=$.loadData,v=$.treeLoadedKeys,d=$.treeMotion,M=$.onTreeLoad,S=$.keyEntities,w=c.useRef(),D=(0,Ot.Z)(function(){return he},[p,he],function(m,T){return T[0]&&m[1]!==T[1]}),U=c.useMemo(function(){return ge?{checked:De,halfChecked:at}:null},[ge,De,at]);c.useEffect(function(){if(p&&!f&&De.length){var m;(m=w.current)===null||m===void 0||m.scrollTo({key:De[0]})}},[p]);var F=String(C).toLowerCase(),A=function(T){return F?String(T[i]).toLowerCase().includes(F):!1},W=c.useState(be),re=(0,te.Z)(W,2),Z=re[0],B=re[1],z=c.useState(null),K=(0,te.Z)(z,2),V=K[0],q=K[1],Y=c.useMemo(function(){return Ue?(0,P.Z)(Ue):C?V:Z},[Z,V,Ue,C]);c.useEffect(function(){C&&q(Ae(he,Ie))},[C]);var Q=function(T){B(T),q(T),dt&&dt(T)},_=function(T){T.preventDefault()},I=function(T,Te){var me=Te.node;ge&&Ye(me)||(He(me.key,{selected:!De.includes(me.key)}),f||y(!1))},ne=c.useState(null),J=(0,te.Z)(ne,2),b=J[0],O=J[1],ee=S[b];if(c.useImperativeHandle(h,function(){var m;return{scrollTo:(m=w.current)===null||m===void 0?void 0:m.scrollTo,onKeyDown:function(Te){var me,Ce=Te.which;switch(Ce){case ke.Z.UP:case ke.Z.DOWN:case ke.Z.LEFT:case ke.Z.RIGHT:(me=w.current)===null||me===void 0||me.onKeyDown(Te);break;case ke.Z.ENTER:{if(ee){var Ke=(ee==null?void 0:ee.node)||{},Se=Ke.selectable,Pe=Ke.value;Se!==!1&&I(null,{node:{key:b},selected:!De.includes(Pe)})}break}case ke.Z.ESC:y(!1)}},onKeyUp:function(){}}}),D.length===0)return c.createElement("div",{role:"listbox",className:"".concat(g,"-empty"),onMouseDown:_},N);var ve={fieldNames:Ie};return v&&(ve.loadedKeys=v),Y&&(ve.expandedKeys=Y),c.createElement("div",{onMouseDown:_},ee&&p&&c.createElement("span",{style:et,"aria-live":"assertive"},ee.node.value),c.createElement(yt.default,(0,G.Z)({ref:w,focusable:!1,prefixCls:"".concat(g,"-tree"),treeData:D,height:ie,itemHeight:ce,virtual:xe!==!1&&$e!==!1,multiple:f,icon:e,showIcon:t,switcherIcon:a,showLine:n,loadData:C?null:u,motion:d,activeKey:b,checkable:ge,checkStrictly:!0,checkedKeys:U,selectedKeys:ge?[]:De,defaultExpandAll:lt},ve,{onActiveChange:O,onSelect:I,onCheck:I,onExpand:Q,onLoad:M,filterTreeNode:A,expandAction:Xe})))},pe=c.forwardRef(le);pe.displayName="OptionList";var $t=pe,pt=function(){return null},ut=pt,Dt="SHOW_ALL",xt="SHOW_PARENT",Ve="SHOW_CHILD";function st(r,s,h,x){var g=new Set(r);return s===Ve?r.filter(function(f){var C=h[f];return!(C&&C.children&&C.children.some(function(y){var p=y.node;return g.has(p[x.value])})&&C.children.every(function(y){var p=y.node;return Ye(p)||g.has(p[x.value])}))}):s===xt?r.filter(function(f){var C=h[f],y=C?C.parent:null;return!(y&&!Ye(y.node)&&g.has(y.key))}):r}var It=o(50344),rt=o(80334),Tt=["children","value"];function Rt(r){return(0,It.Z)(r).map(function(s){if(!c.isValidElement(s)||!s.type)return null;var h=s,x=h.key,g=h.props,f=g.children,C=g.value,y=(0,ze.Z)(g,Tt),p=(0,E.Z)({key:x,value:C},y),N=Rt(f);return N.length&&(p.children=N),p}).filter(function(s){return s})}function nt(r){if(!r)return r;var s=(0,E.Z)({},r);return"props"in s||Object.defineProperty(s,"props",{get:function(){return(0,rt.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),s}}),s}function wt(r,s,h,x,g,f){var C=null,y=null;function p(){function N(R){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",ie=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return R.map(function(ce,he){var Ie="".concat(xe,"-").concat(he),He=ce[f.value],$e=h.includes(He),Xe=N(ce[f.children]||[],Ie,$e),$=c.createElement(ut,ce,Xe.map(function(De){return De.node}));if(s===He&&(C=$),$e){var ge={pos:Ie,node:$,children:Xe};return ie||y.push(ge),ge}return null}).filter(function(ce){return ce})}y||(y=[],N(x),y.sort(function(R,xe){var ie=R.node.props.value,ce=xe.node.props.value,he=h.indexOf(ie),Ie=h.indexOf(ce);return he-Ie}))}Object.defineProperty(r,"triggerNode",{get:function(){return(0,rt.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),p(),C}}),Object.defineProperty(r,"allCheckedNodes",{get:function(){return(0,rt.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),p(),g?y:y.map(function(R){var xe=R.node;return xe})}})}function Ut(r,s){var h=s.id,x=s.pId,g=s.rootPId,f={},C=[],y=r.map(function(p){var N=(0,E.Z)({},p),R=N[h];return f[R]=N,N.key=N.key||R,N});return y.forEach(function(p){var N=p[x],R=f[N];R&&(R.children=R.children||[],R.children.push(p)),(N===g||!R&&g===null)&&C.push(p)}),C}function bt(r,s,h){return c.useMemo(function(){return r?h?Ut(r,(0,E.Z)({id:"id",pId:"pId",rootPId:null},h!==!0?h:{})):r:Rt(s)},[s,h,r])}var jt=function(r){var s=c.useRef({valueLabels:new Map});return c.useMemo(function(){var h=s.current.valueLabels,x=new Map,g=r.map(function(f){var C,y=f.value,p=(C=f.label)!==null&&C!==void 0?C:h.get(y);return x.set(y,p),(0,E.Z)((0,E.Z)({},f),{},{label:p})});return s.current.valueLabels=x,[g]},[r])};function Ft(r){var s=c.useRef();s.current=r;var h=c.useCallback(function(){return s.current.apply(s,arguments)},[]);return h}var At=o(1089),Vt=function(r,s){return c.useMemo(function(){var h=(0,At.I8)(r,{fieldNames:s,initWrapper:function(g){return(0,E.Z)((0,E.Z)({},g),{},{valueEntities:new Map})},processEntity:function(g,f){var C=g.node[s.value];if(!1)var y;f.valueEntities.set(C,g)}});return h},[r,s])},Wt=function(r,s,h,x){return c.useMemo(function(){var g=r.map(function(p){var N=p.value;return N}),f=s.map(function(p){var N=p.value;return N}),C=g.filter(function(p){return!x[p]});if(h){var y=(0,Je.S)(g,!0,x);g=y.checkedKeys,f=y.halfCheckedKeys}return[Array.from(new Set([].concat((0,P.Z)(C),(0,P.Z)(g)))),f]},[r,s,h,x])},Bt=o(96156),Kt=function(r,s,h){var x=h.treeNodeFilterProp,g=h.filterTreeNode,f=h.fieldNames,C=f.children;return c.useMemo(function(){if(!s||g===!1)return r;var y;if(typeof g=="function")y=g;else{var p=s.toUpperCase();y=function(xe,ie){var ce=ie[x];return String(ce).toUpperCase().includes(p)}}function N(R){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return R.map(function(ie){var ce=ie[C],he=xe||y(s,nt(ie)),Ie=N(ce||[],he);return he||Ie.length?(0,E.Z)((0,E.Z)({},ie),{},(0,Bt.Z)({isLeaf:void 0},C,Ie)):null}).filter(function(ie){return ie})}return N(r)},[r,s,C,x,g])};function tr(r){var s=r.searchPlaceholder,h=r.treeCheckStrictly,x=r.treeCheckable,g=r.labelInValue,f=r.value,C=r.multiple;warning(!s,"`searchPlaceholder` has been removed."),h&&g===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(g||h)&&warning(toArray(f).every(function(y){return y&&_typeof(y)==="object"&&"value"in y}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),h||C||x?warning(!f||Array.isArray(f),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(f),"`value` should not be array when `TreeSelect` is single mode.")}var rr=null,St=["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","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion"];function zt(r){return!r||(0,Fe.Z)(r)!=="object"}var Pt=c.forwardRef(function(r,s){var h=r.id,x=r.prefixCls,g=x===void 0?"rc-tree-select":x,f=r.value,C=r.defaultValue,y=r.onChange,p=r.onSelect,N=r.onDeselect,R=r.searchValue,xe=r.inputValue,ie=r.onSearch,ce=r.autoClearSearchValue,he=ce===void 0?!0:ce,Ie=r.filterTreeNode,He=r.treeNodeFilterProp,$e=He===void 0?"value":He,Xe=r.showCheckedStrategy,$=Xe===void 0?Ve:Xe,ge=r.treeNodeLabelProp,De=r.multiple,at=r.treeCheckable,Ue=r.treeCheckStrictly,lt=r.labelInValue,be=r.fieldNames,dt=r.treeDataSimpleMode,e=r.treeData,t=r.children,a=r.loadData,n=r.treeLoadedKeys,i=r.onTreeLoad,u=r.treeDefaultExpandAll,v=r.treeExpandedKeys,d=r.treeDefaultExpandedKeys,M=r.onTreeExpand,S=r.treeExpandAction,w=r.virtual,D=r.listHeight,U=D===void 0?200:D,F=r.listItemHeight,A=F===void 0?20:F,W=r.onDropdownVisibleChange,re=r.dropdownMatchSelectWidth,Z=re===void 0?!0:re,B=r.treeLine,z=r.treeIcon,K=r.showTreeIcon,V=r.switcherIcon,q=r.treeMotion,Y=(0,ze.Z)(r,St),Q=(0,Zt.ZP)(h),_=at&&!Ue,I=at||Ue,ne=Ue||lt,J=I||De,b=(0,Ne.Z)(C,{value:f}),O=(0,te.Z)(b,2),ee=O[0],ve=O[1],m=c.useMemo(function(){return Nt(be)},[JSON.stringify(be)]),T=(0,Ne.Z)("",{value:R!==void 0?R:xe,postState:function(k){return k||""}}),Te=(0,te.Z)(T,2),me=Te[0],Ce=Te[1],Ke=function(k){Ce(k),ie==null||ie(k)},Se=bt(e,t,dt),Pe=Vt(Se,m),ue=Pe.keyEntities,se=Pe.valueEntities,Me=c.useCallback(function(H){var k=[],j=[];return H.forEach(function(ae){se.has(ae)?j.push(ae):k.push(ae)}),{missingRawValues:k,existRawValues:j}},[se]),je=Kt(Se,me,{fieldNames:m,treeNodeFilterProp:$e,filterTreeNode:Ie}),ye=c.useCallback(function(H){if(H){if(ge)return H[ge];for(var k=m._title,j=0;j<k.length;j+=1){var ae=H[k[j]];if(ae!==void 0)return ae}}},[m,ge]),X=c.useCallback(function(H){var k=Lt(H);return k.map(function(j){return zt(j)?{value:j}:j})},[]),de=c.useCallback(function(H){var k=X(H);return k.map(function(j){var ae=j.label,Be=j.value,Ee=j.halfChecked,oe,fe=se.get(Be);if(fe){var we;ae=(we=ae)!==null&&we!==void 0?we:ye(fe.node),oe=fe.node.disabled}else if(ae===void 0){var gt=X(ee).find(function(Jt){return Jt.value===Be});ae=gt.label}return{label:ae,value:Be,halfChecked:Ee,disabled:oe}})},[se,ye,X,ee]),Ze=c.useMemo(function(){return X(ee)},[X,ee]),Oe=c.useMemo(function(){var H=[],k=[];return Ze.forEach(function(j){j.halfChecked?k.push(j):H.push(j)}),[H,k]},[Ze]),Ge=(0,te.Z)(Oe,2),Le=Ge[0],ft=Ge[1],_e=c.useMemo(function(){return Le.map(function(H){return H.value})},[Le]),Qt=Wt(Le,ft,_,ue),nr=(0,te.Z)(Qt,2),vt=nr[0],Re=nr[1],mt=c.useMemo(function(){var H=st(vt,$,ue,m),k=H.map(function(Ee){var oe,fe,we;return(oe=(fe=ue[Ee])===null||fe===void 0||(we=fe.node)===null||we===void 0?void 0:we[m.value])!==null&&oe!==void 0?oe:Ee}),j=k.map(function(Ee){var oe=Le.find(function(fe){return fe.value===Ee});return{value:Ee,label:oe==null?void 0:oe.label}}),ae=de(j),Be=ae[0];return!J&&Be&&L(Be.value)&&L(Be.label)?[]:ae.map(function(Ee){var oe;return(0,E.Z)((0,E.Z)({},Ee),{},{label:(oe=Ee.label)!==null&&oe!==void 0?oe:Ee.value})})},[m,J,vt,Le,de,$,ue]),ar=jt(mt),Xt=(0,te.Z)(ar,1),lr=Xt[0],ht=Ft(function(H,k,j){var ae=de(H);if(ve(ae),he&&Ce(""),y){var Be=H;if(_){var Ee=st(H,$,ue,m);Be=Ee.map(function(tt){var Ct=se.get(tt);return Ct?Ct.node[m.value]:tt})}var oe=k||{triggerValue:void 0,selected:void 0},fe=oe.triggerValue,we=oe.selected,gt=Be;if(Ue){var Jt=ft.filter(function(tt){return!Be.includes(tt.value)});gt=[].concat((0,P.Z)(gt),(0,P.Z)(Jt))}var qt=de(gt),Mt={preValue:Le,triggerValue:fe},Ht=!0;(Ue||j==="selection"&&!we)&&(Ht=!1),wt(Mt,fe,H,Se,Ht,m),I?Mt.checked=we:Mt.selected=we;var or=ne?qt:qt.map(function(tt){return tt.value});y(J?or:or[0],ne?null:qt.map(function(tt){return tt.label}),Mt)}}),_t=c.useCallback(function(H,k){var j,ae=k.selected,Be=k.source,Ee=ue[H],oe=Ee==null?void 0:Ee.node,fe=(j=oe==null?void 0:oe[m.value])!==null&&j!==void 0?j:H;if(!J)ht([fe],{selected:!0,triggerValue:fe},"option");else{var we=ae?[].concat((0,P.Z)(_e),[fe]):vt.filter(function(Ct){return Ct!==fe});if(_){var gt=Me(we),Jt=gt.missingRawValues,qt=gt.existRawValues,Mt=qt.map(function(Ct){return se.get(Ct).key}),Ht;if(ae){var or=(0,Je.S)(Mt,!0,ue);Ht=or.checkedKeys}else{var tt=(0,Je.S)(Mt,{checked:!1,halfCheckedKeys:Re},ue);Ht=tt.checkedKeys}we=[].concat((0,P.Z)(Jt),(0,P.Z)(Ht.map(function(Ct){return ue[Ct].node[m.value]})))}ht(we,{selected:ae,triggerValue:fe},Be||"option")}ae||!J?p==null||p(fe,nt(oe)):N==null||N(fe,nt(oe))},[Me,se,ue,m,J,_e,ht,_,p,N,vt,Re]),Gt=c.useCallback(function(H){if(W){var k={};Object.defineProperty(k,"documentClickClose",{get:function(){return(0,rt.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),W(H,k)}},[W]),kt=Ft(function(H,k){var j=H.map(function(ae){return ae.value});if(k.type==="clear"){ht(j,{},"selection");return}k.values.length&&_t(k.values[0].value,{selected:!1,source:"selection"})}),ir=c.useMemo(function(){return{virtual:w,dropdownMatchSelectWidth:Z,listHeight:U,listItemHeight:A,treeData:je,fieldNames:m,onSelect:_t,treeExpandAction:S}},[w,Z,U,A,je,m,_t,S]),ur=c.useMemo(function(){return{checkable:I,loadData:a,treeLoadedKeys:n,onTreeLoad:i,checkedKeys:vt,halfCheckedKeys:Re,treeDefaultExpandAll:u,treeExpandedKeys:v,treeDefaultExpandedKeys:d,onTreeExpand:M,treeIcon:z,treeMotion:q,showTreeIcon:K,switcherIcon:V,treeLine:B,treeNodeFilterProp:$e,keyEntities:ue}},[I,a,n,i,vt,Re,u,v,d,M,z,q,K,V,B,$e,ue]);return c.createElement(Et.Provider,{value:ir},c.createElement(qe.Provider,{value:ur},c.createElement(l.BaseSelect,(0,G.Z)({ref:s},Y,{id:Q,prefixCls:g,mode:J?"multiple":void 0,displayValues:lr,onDisplayValuesChange:kt,searchValue:me,onSearch:Ke,OptionList:$t,emptyOptions:!Se.length,onDropdownVisibleChange:Gt,dropdownMatchSelectWidth:Z}))))}),We=Pt;We.TreeNode=ut,We.SHOW_ALL=Dt,We.SHOW_PARENT=xt,We.SHOW_CHILD=Ve;var Yt=We,ct=Yt}}]);