Files
shz-admin/shihezi/1507.4a491164.async.js
wzm 3a17dc786b
Some checks failed
Node CI / build (14.x, macOS-latest) (push) Has been cancelled
Node CI / build (14.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (14.x, windows-latest) (push) Has been cancelled
Node CI / build (16.x, macOS-latest) (push) Has been cancelled
Node CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node CI / build (16.x, windows-latest) (push) Has been cancelled
CodeQL / Analyze (javascript) (push) Has been cancelled
coverage CI / build (push) Has been cancelled
Node pnpm CI / build (16.x, macOS-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, ubuntu-latest) (push) Has been cancelled
Node pnpm CI / build (16.x, windows-latest) (push) Has been cancelled
增加转发对象配置,工作人员管理页面
2025-11-20 16:30:13 +08:00

3 lines
24 KiB
JavaScript

"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[1507],{952:function(_e,se,n){var O=n(97269);se.ZP=O.A},78164:function(_e,se,n){n.d(se,{S:function(){return X}});var O=n(15671),c=n(43144),ve=n(97326),w=n(60136),z=n(29388),he=n(4942),te=n(59720),u=n(67294),D=n(85893),X=function(Pe){(0,w.Z)(le,Pe);var ae=(0,z.Z)(le);function le(){var fe;(0,O.Z)(this,le);for(var $=arguments.length,me=new Array($),ge=0;ge<$;ge++)me[ge]=arguments[ge];return fe=ae.call.apply(ae,[this].concat(me)),(0,he.Z)((0,ve.Z)(fe),"state",{hasError:!1,errorInfo:""}),fe}return(0,c.Z)(le,[{key:"componentDidCatch",value:function($,me){console.log($,me)}},{key:"render",value:function(){return this.state.hasError?(0,D.jsx)(te.ZP,{status:"error",title:"Something went wrong.",extra:this.state.errorInfo}):this.props.children}}],[{key:"getDerivedStateFromError",value:function($){return{hasError:!0,errorInfo:$.message}}}]),le}(u.Component)},90081:function(_e,se,n){n.d(se,{U:function(){return G}});var O=n(91),c=n(1413),ve=n(97685),w=n(50888),z=n(64847),he=n(21532),te=n(55241),u=n(77569),D=n(88306),X=n(67294),Pe=n(73177),ae=n(4942),le=function(g){var F="".concat(g.antCls,"-progress-bg");return(0,ae.Z)({},g.componentCls,{"&-multiple":{paddingBlockStart:6,paddingBlockEnd:12,paddingInline:8},"&-progress":{"&-success":(0,ae.Z)({},F,{backgroundColor:g.colorSuccess}),"&-error":(0,ae.Z)({},F,{backgroundColor:g.colorError}),"&-warning":(0,ae.Z)({},F,{backgroundColor:g.colorWarning})},"&-rule":{display:"flex",alignItems:"center","&-icon":{"&-default":{display:"flex",alignItems:"center",justifyContent:"center",width:"14px",height:"22px","&-circle":{width:"6px",height:"6px",backgroundColor:g.colorTextSecondary,borderRadius:"4px"}},"&-loading":{color:g.colorPrimary},"&-error":{color:g.colorError},"&-success":{color:g.colorSuccess}},"&-text":{color:g.colorText}}})};function fe(Ze){return(0,z.Xj)("InlineErrorFormItem",function(g){var F=(0,c.Z)((0,c.Z)({},g),{},{componentCls:".".concat(Ze)});return[le(F)]})}var $=n(85893),me=["rules","name","children","popoverProps"],ge=["errorType","rules","name","popoverProps","children"],pe={marginBlockStart:-5,marginBlockEnd:-5,marginInlineStart:0,marginInlineEnd:0},Me=function(g){var F=g.inputProps,ue=g.input,oe=g.extra,Y=g.errorList,t=g.popoverProps,E=(0,X.useState)(!1),S=(0,ve.Z)(E,2),d=S[0],s=S[1],Q=(0,X.useState)([]),Ee=(0,ve.Z)(Q,2),de=Ee[0],ce=Ee[1],ye=(0,X.useContext)(he.ZP.ConfigContext),Oe=ye.getPrefixCls,e=Oe(),a=(0,z.dQ)(),p=fe("".concat(e,"-form-item-with-help")),K=p.wrapSSR,T=p.hashId;(0,X.useEffect)(function(){F.validateStatus!=="validating"&&ce(F.errors)},[F.errors,F.validateStatus]);var Z=(0,Pe.X)(de.length<1?!1:d,function(L){L!==d&&s(L)}),N=F.validateStatus==="validating";return(0,$.jsx)(te.Z,(0,c.Z)((0,c.Z)((0,c.Z)({trigger:(t==null?void 0:t.trigger)||["click"],placement:(t==null?void 0:t.placement)||"topLeft"},Z),{},{getPopupContainer:t==null?void 0:t.getPopupContainer,getTooltipContainer:t==null?void 0:t.getTooltipContainer,content:K((0,$.jsx)("div",{className:"".concat(e,"-form-item ").concat(T," ").concat(a.hashId).trim(),style:{margin:0,padding:0},children:(0,$.jsxs)("div",{className:"".concat(e,"-form-item-with-help ").concat(T," ").concat(a.hashId).trim(),children:[N?(0,$.jsx)(w.Z,{}):null,Y]})}))},t),{},{children:(0,$.jsxs)($.Fragment,{children:[ue,oe]})}),"popover")},H=function(g){var F=g.rules,ue=g.name,oe=g.children,Y=g.popoverProps,t=(0,O.Z)(g,me);return(0,$.jsx)(u.Z.Item,(0,c.Z)((0,c.Z)({name:ue,rules:F,hasFeedback:!1,shouldUpdate:function(S,d){if(S===d)return!1;var s=[ue].flat(1);s.length>1&&s.pop();try{return JSON.stringify((0,D.Z)(S,s))!==JSON.stringify((0,D.Z)(d,s))}catch(Q){return!0}},_internalItemRender:{mark:"pro_table_render",render:function(S,d){return(0,$.jsx)(Me,(0,c.Z)({inputProps:S,popoverProps:Y},d))}}},t),{},{style:(0,c.Z)((0,c.Z)({},pe),t==null?void 0:t.style),children:oe}))},G=function(g){var F=g.errorType,ue=g.rules,oe=g.name,Y=g.popoverProps,t=g.children,E=(0,O.Z)(g,ge);return oe&&ue!==null&&ue!==void 0&&ue.length&&F==="popover"?(0,$.jsx)(H,(0,c.Z)((0,c.Z)({name:oe,rules:ue,popoverProps:Y},E),{},{children:t})):(0,$.jsx)(u.Z.Item,(0,c.Z)((0,c.Z)({rules:ue,shouldUpdate:oe?function(S,d){if(S===d)return!1;var s=[oe].flat(1);s.length>1&&s.pop();try{return JSON.stringify((0,D.Z)(S,s))!==JSON.stringify((0,D.Z)(d,s))}catch(Q){return!0}}:void 0},E),{},{style:(0,c.Z)((0,c.Z)({},pe),E.style),name:oe,children:t}))}},77398:function(_e,se,n){n.d(se,{X:function(){return he}});var O=n(60960),c=n(67294),ve=n(85893),w=function(u){var D;return!!(u!=null&&(D=u.valueType)!==null&&D!==void 0&&D.toString().startsWith("date")||(u==null?void 0:u.valueType)==="select"||u!=null&&u.valueEnum)},z=function(u){var D;return((D=u.ellipsis)===null||D===void 0?void 0:D.showTitle)===!1?!1:u.ellipsis},he=function(u,D,X){if(D.copyable||D.ellipsis){var Pe=D.copyable&&X?{text:X,tooltips:["",""]}:void 0,ae=w(D),le=z(D)&&X?{tooltip:(D==null?void 0:D.tooltip)!==!1&&ae?(0,ve.jsx)("div",{className:"pro-table-tooltip-text",children:u}):X}:!1;return(0,ve.jsx)(O.Z.Text,{style:{width:"100%",margin:0,padding:0},title:"",copyable:Pe,ellipsis:le,children:u})}return u}},2026:function(_e,se,n){n.d(se,{w:function(){return c}});var O=n(22270),c=function(w,z,he){return z===void 0?w:(0,O.h)(w,z,he)}},86671:function(_e,se,n){n.d(se,{CB:function(){return Oe},aX:function(){return ye},cx:function(){return Q},sN:function(){return s}});var O=n(74902),c=n(55850),ve=n(84506),w=n(15861),z=n(97685),he=n(4942),te=n(91),u=n(1413),D=n(71002),X=n(50888),Pe=n(6376),ae=n(2453),le=n(77569),fe=n(86738),$=n(84164),me=n(21770),ge=n(88306),pe=n(8880),Me=n(80334),H=n(67294),G=n(48171),Ze=n(10178),g=n(41036),F=n(27068),ue=n(26369),oe=n(92210),Y=n(85893),t=["map_row_parentKey"],E=["map_row_parentKey","map_row_key"],S=["map_row_key"],d=function(a){return(ae.ZP.warn||ae.ZP.warning)(a)},s=function(a){return Array.isArray(a)?a.join(","):a};function Q(e,a){var p,K=e.getRowKey,T=e.row,Z=e.data,N=e.childrenColumnName,L=N===void 0?"children":N,ee=(p=s(e.key))===null||p===void 0?void 0:p.toString(),I=new Map;function B(ne,J,x){ne.forEach(function(j,R){var f=(x||0)*10+R,y=K(j,f).toString();j&&(0,D.Z)(j)==="object"&&L in j&&B(j[L]||[],y,f);var v=(0,u.Z)((0,u.Z)({},j),{},{map_row_key:y,children:void 0,map_row_parentKey:J});delete v.children,J||delete v.map_row_parentKey,I.set(y,v)})}a==="top"&&I.set(ee,(0,u.Z)((0,u.Z)({},I.get(ee)),T)),B(Z),a==="update"&&I.set(ee,(0,u.Z)((0,u.Z)({},I.get(ee)),T)),a==="delete"&&I.delete(ee);var V=function(J){var x=new Map,j=[],R=function(){var y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;J.forEach(function(v){if(v.map_row_parentKey&&!v.map_row_key){var C=v.map_row_parentKey,ie=(0,te.Z)(v,t);if(x.has(C)||x.set(C,[]),y){var A;(A=x.get(C))===null||A===void 0||A.push(ie)}}})};return R(a==="top"),J.forEach(function(f){if(f.map_row_parentKey&&f.map_row_key){var y,v=f.map_row_parentKey,C=f.map_row_key,ie=(0,te.Z)(f,E);x.has(C)&&(ie[L]=x.get(C)),x.has(v)||x.set(v,[]),(y=x.get(v))===null||y===void 0||y.push(ie)}}),R(a==="update"),J.forEach(function(f){if(!f.map_row_parentKey){var y=f.map_row_key,v=(0,te.Z)(f,S);if(y&&x.has(y)){var C=(0,u.Z)((0,u.Z)({},v),{},(0,he.Z)({},L,x.get(y)));j.push(C);return}j.push(v)}}),j};return V(I)}function Ee(e,a){var p=e.recordKey,K=e.onSave,T=e.row,Z=e.children,N=e.newLineConfig,L=e.editorType,ee=e.tableName,I=(0,H.useContext)(g.J),B=le.Z.useFormInstance(),V=(0,me.Z)(!1),ne=(0,z.Z)(V,2),J=ne[0],x=ne[1],j=(0,G.J)((0,w.Z)((0,c.Z)().mark(function R(){var f,y,v,C,ie,A,W,k,Se;return(0,c.Z)().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return re.prev=0,y=L==="Map",v=[ee,Array.isArray(p)?p[0]:p].map(function(be){return be==null?void 0:be.toString()}).flat(1).filter(Boolean),x(!0),re.next=6,B.validateFields(v,{recursive:!0});case 6:return C=(I==null||(f=I.getFieldFormatValue)===null||f===void 0?void 0:f.call(I,v))||B.getFieldValue(v),Array.isArray(p)&&p.length>1&&(ie=(0,ve.Z)(p),A=ie.slice(1),W=(0,ge.Z)(C,A),(0,pe.Z)(C,A,W)),k=y?(0,pe.Z)({},v,C):C,re.next=11,K==null?void 0:K(p,(0,oe.T)({},T,k),T,N);case 11:return Se=re.sent,x(!1),re.abrupt("return",Se);case 16:throw re.prev=16,re.t0=re.catch(0),console.log(re.t0),x(!1),re.t0;case 21:case"end":return re.stop()}},R,null,[[0,16]])})));return(0,H.useImperativeHandle)(a,function(){return{save:j}},[j]),(0,Y.jsxs)("a",{onClick:function(){var R=(0,w.Z)((0,c.Z)().mark(function f(y){return(0,c.Z)().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:return y.stopPropagation(),y.preventDefault(),C.prev=2,C.next=5,j();case 5:C.next=9;break;case 7:C.prev=7,C.t0=C.catch(2);case 9:case"end":return C.stop()}},f,null,[[2,7]])}));return function(f){return R.apply(this,arguments)}}(),children:[J?(0,Y.jsx)(X.Z,{style:{marginInlineEnd:8}}):null,Z||"\u4FDD\u5B58"]},"save")}var de=function(a){var p=a.recordKey,K=a.onDelete,T=a.preEditRowRef,Z=a.row,N=a.children,L=a.deletePopconfirmMessage,ee=(0,me.Z)(function(){return!1}),I=(0,z.Z)(ee,2),B=I[0],V=I[1],ne=(0,G.J)((0,w.Z)((0,c.Z)().mark(function J(){var x;return(0,c.Z)().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:return R.prev=0,V(!0),R.next=4,K==null?void 0:K(p,Z);case 4:return x=R.sent,V(!1),R.abrupt("return",x);case 9:return R.prev=9,R.t0=R.catch(0),console.log(R.t0),V(!1),R.abrupt("return",null);case 14:return R.prev=14,T&&(T.current=null),R.finish(14);case 17:case"end":return R.stop()}},J,null,[[0,9,14,17]])})));return N!==!1?(0,Y.jsx)(fe.Z,{title:L,onConfirm:function(){return ne()},children:(0,Y.jsxs)("a",{children:[B?(0,Y.jsx)(X.Z,{style:{marginInlineEnd:8}}):null,N||"\u5220\u9664"]})},"delete"):null},ce=function(a){var p=a.recordKey,K=a.tableName,T=a.newLineConfig,Z=a.editorType,N=a.onCancel,L=a.cancelEditable,ee=a.row,I=a.cancelText,B=a.preEditRowRef,V=(0,H.useContext)(g.J),ne=le.Z.useFormInstance();return(0,Y.jsx)("a",{onClick:function(){var J=(0,w.Z)((0,c.Z)().mark(function x(j){var R,f,y,v,C,ie,A;return(0,c.Z)().wrap(function(k){for(;;)switch(k.prev=k.next){case 0:return j.stopPropagation(),j.preventDefault(),f=Z==="Map",y=[K,p].flat(1).filter(Boolean),v=(V==null||(R=V.getFieldFormatValue)===null||R===void 0?void 0:R.call(V,y))||(ne==null?void 0:ne.getFieldValue(y)),C=f?(0,pe.Z)({},y,v):v,k.next=8,N==null?void 0:N(p,C,ee,T);case 8:return ie=k.sent,k.next=11,L(p);case 11:if((B==null?void 0:B.current)===null){k.next=15;break}ne.setFieldsValue((0,pe.Z)({},y,B==null?void 0:B.current)),k.next=17;break;case 15:return k.next=17,(A=a.onDelete)===null||A===void 0?void 0:A.call(a,p,ee);case 17:return B&&(B.current=null),k.abrupt("return",ie);case 19:case"end":return k.stop()}},x)}));return function(x){return J.apply(this,arguments)}}(),children:I||"\u53D6\u6D88"},"cancel")};function ye(e,a){var p=a.recordKey,K=a.newLineConfig,T=a.saveText,Z=a.deleteText,N=(0,H.forwardRef)(Ee),L=(0,H.createRef)();return{save:(0,Y.jsx)(N,(0,u.Z)((0,u.Z)({},a),{},{row:e,ref:L,children:T}),"save"+p),saveRef:L,delete:(K==null?void 0:K.options.recordKey)!==p?(0,Y.jsx)(de,(0,u.Z)((0,u.Z)({},a),{},{row:e,children:Z}),"delete"+p):void 0,cancel:(0,Y.jsx)(ce,(0,u.Z)((0,u.Z)({},a),{},{row:e}),"cancel"+p)}}function Oe(e){var a=(0,Pe.YB)(),p=(0,H.useRef)(null),K=(0,H.useState)(void 0),T=(0,z.Z)(K,2),Z=T[0],N=T[1],L=function(){var r=new Map,l=function i(o,M){o==null||o.forEach(function(b,P){var _,m=M==null?P.toString():M+"_"+P.toString();r.set(m,s(e.getRowKey(b,-1))),r.set((_=s(e.getRowKey(b,-1)))===null||_===void 0?void 0:_.toString(),m),e.childrenColumnName&&b!==null&&b!==void 0&&b[e.childrenColumnName]&&i(b[e.childrenColumnName],m)})};return l(e.dataSource),r},ee=(0,H.useMemo)(function(){return L()},[]),I=(0,H.useRef)(ee),B=(0,H.useRef)(void 0);(0,F.Au)(function(){I.current=L()},[e.dataSource]),B.current=Z;var V=e.type||"single",ne=(0,$.Z)(e.dataSource,"children",e.getRowKey),J=(0,z.Z)(ne,1),x=J[0],j=(0,me.Z)([],{value:e.editableKeys,onChange:e.onChange?function(h){var r,l,i;e==null||(r=e.onChange)===null||r===void 0||r.call(e,(l=h==null?void 0:h.filter(function(o){return o!==void 0}))!==null&&l!==void 0?l:[],(i=h==null?void 0:h.map(function(o){return x(o)}).filter(function(o){return o!==void 0}))!==null&&i!==void 0?i:[])}:void 0}),R=(0,z.Z)(j,2),f=R[0],y=R[1],v=(0,H.useMemo)(function(){var h=V==="single"?f==null?void 0:f.slice(0,1):f;return new Set(h)},[(f||[]).join(","),V]),C=(0,ue.D)(f),ie=(0,G.J)(function(h){var r,l,i,o,M=(r=e.getRowKey(h,h.index))===null||r===void 0||(l=r.toString)===null||l===void 0?void 0:l.call(r),b=(i=e.getRowKey(h,-1))===null||i===void 0||(o=i.toString)===null||o===void 0?void 0:o.call(i),P=f==null?void 0:f.map(function(q){return q==null?void 0:q.toString()}),_=(C==null?void 0:C.map(function(q){return q==null?void 0:q.toString()}))||[],m=e.tableName&&!!(_!=null&&_.includes(b))||!!(_!=null&&_.includes(M));return{recordKey:b,isEditable:e.tableName&&(P==null?void 0:P.includes(b))||(P==null?void 0:P.includes(M)),preIsEditable:m}}),A=(0,G.J)(function(h,r){var l,i;return v.size>0&&V==="single"&&e.onlyOneLineEditorAlertMessage!==!1?(d(e.onlyOneLineEditorAlertMessage||a.getMessage("editableTable.onlyOneLineEditor","\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C")),!1):(v.add(h),y(Array.from(v)),p.current=(l=r!=null?r:(i=e.dataSource)===null||i===void 0?void 0:i.find(function(o,M){return e.getRowKey(o,M)===h}))!==null&&l!==void 0?l:null,!0)}),W=(0,G.J)(function(){var h=(0,w.Z)((0,c.Z)().mark(function r(l,i){var o,M;return(0,c.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o=s(l).toString(),M=I.current.get(o),!(!v.has(o)&&M&&(i==null||i)&&e.tableName)){P.next=5;break}return W(M,!1),P.abrupt("return");case 5:return Z&&Z.options.recordKey===l&&N(void 0),v.delete(o),v.delete(s(l)),y(Array.from(v)),P.abrupt("return",!0);case 10:case"end":return P.stop()}},r)}));return function(r,l){return h.apply(this,arguments)}}()),k=(0,Ze.D)((0,w.Z)((0,c.Z)().mark(function h(){var r,l,i,o,M=arguments;return(0,c.Z)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:for(l=M.length,i=new Array(l),o=0;o<l;o++)i[o]=M[o];(r=e.onValuesChange)===null||r===void 0||r.call.apply(r,[e].concat(i));case 2:case"end":return P.stop()}},h)})),64),Se=(0,G.J)(function(h,r){var l;if(e.onValuesChange){var i=e.dataSource;f==null||f.forEach(function(_){if((Z==null?void 0:Z.options.recordKey)!==_){var m=_.toString(),q=(0,ge.Z)(r,[e.tableName||"",m].flat(1).filter(function(U){return U||U===0}));q&&(i=Q({data:i,getRowKey:e.getRowKey,row:q,key:m,childrenColumnName:e.childrenColumnName||"children"},"update"))}});var o=h,M=(l=Object.keys(o||{}).pop())===null||l===void 0?void 0:l.toString(),b=(0,u.Z)((0,u.Z)({},Z==null?void 0:Z.defaultValue),(0,ge.Z)(r,[e.tableName||"",M.toString()].flat(1).filter(function(_){return _||_===0}))),P=I.current.has(s(M))?i.find(function(_,m){var q,U=(q=e.getRowKey(_,m))===null||q===void 0?void 0:q.toString();return U===M}):b;k.run(P||b,i)}}),Re=(0,H.useRef)(new Map);(0,H.useEffect)(function(){Re.current.forEach(function(h,r){v.has(r)||Re.current.delete(r)})},[Re,v]);var re=(0,G.J)(function(){var h=(0,w.Z)((0,c.Z)().mark(function r(l,i){var o,M,b,P;return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(o=s(l),M=I.current.get(l.toString()),!(!v.has(o)&&M&&(i==null||i)&&e.tableName)){m.next=6;break}return m.next=5,re(M,!1);case 5:return m.abrupt("return",m.sent);case 6:return b=Re.current.get(o)||Re.current.get(o.toString()),m.prev=7,m.next=10,b==null||(P=b.current)===null||P===void 0?void 0:P.save();case 10:m.next=15;break;case 12:return m.prev=12,m.t0=m.catch(7),m.abrupt("return",!1);case 15:return v.delete(o),v.delete(o.toString()),y(Array.from(v)),m.abrupt("return",!0);case 19:case"end":return m.stop()}},r,null,[[7,12]])}));return function(r,l){return h.apply(this,arguments)}}()),be=(0,G.J)(function(h,r){if(r!=null&&r.parentKey&&!I.current.has(s(r==null?void 0:r.parentKey).toString()))return console.warn("can't find record by key",r==null?void 0:r.parentKey),!1;if(B.current&&e.onlyAddOneLineAlertMessage!==!1)return d(e.onlyAddOneLineAlertMessage||a.getMessage("editableTable.onlyAddOneLine","\u53EA\u80FD\u65B0\u589E\u4E00\u884C")),!1;if(v.size>0&&V==="single"&&e.onlyOneLineEditorAlertMessage!==!1)return d(e.onlyOneLineEditorAlertMessage||a.getMessage("editableTable.onlyOneLineEditor","\u53EA\u80FD\u540C\u65F6\u7F16\u8F91\u4E00\u884C")),!1;var l=e.getRowKey(h,-1);if(!l&&l!==0)throw(0,Me.ET)(!!l,`\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key
https://procomponents.ant.design/components/editable-table#editable-%E6%96%B0%E5%BB%BA%E8%A1%8C`),new Error("\u8BF7\u8BBE\u7F6E recordCreatorProps.record \u5E76\u8FD4\u56DE\u4E00\u4E2A\u552F\u4E00\u7684key");if(v.add(l),y(Array.from(v)),(r==null?void 0:r.newRecordType)==="dataSource"||e.tableName){var i,o={data:e.dataSource,getRowKey:e.getRowKey,row:(0,u.Z)((0,u.Z)({},h),{},{map_row_parentKey:r!=null&&r.parentKey?(i=s(r==null?void 0:r.parentKey))===null||i===void 0?void 0:i.toString():void 0}),key:l,childrenColumnName:e.childrenColumnName||"children"};e.setDataSource(Q(o,(r==null?void 0:r.position)==="top"?"top":"update"))}else N({defaultValue:h,options:(0,u.Z)((0,u.Z)({},r),{},{recordKey:l})});return!0}),Te=(e==null?void 0:e.saveText)||a.getMessage("editableTable.action.save","\u4FDD\u5B58"),Ie=(e==null?void 0:e.deleteText)||a.getMessage("editableTable.action.delete","\u5220\u9664"),xe=(e==null?void 0:e.cancelText)||a.getMessage("editableTable.action.cancel","\u53D6\u6D88"),Ae=(0,G.J)(function(){var h=(0,w.Z)((0,c.Z)().mark(function r(l,i,o,M){var b,P,_,m,q,U,De;return(0,c.Z)().wrap(function(Ce){for(;;)switch(Ce.prev=Ce.next){case 0:return Ce.next=2,e==null||(b=e.onSave)===null||b===void 0?void 0:b.call(e,l,i,o,M);case 2:return m=Ce.sent,Ce.next=5,W(l);case 5:if(q=M||B.current||{},U=q.options,!(!(U!=null&&U.parentKey)&&(U==null?void 0:U.recordKey)===l)){Ce.next=9;break}return(U==null?void 0:U.position)==="top"?e.setDataSource([i].concat((0,O.Z)(e.dataSource))):e.setDataSource([].concat((0,O.Z)(e.dataSource),[i])),Ce.abrupt("return",m);case 9:return De={data:e.dataSource,getRowKey:e.getRowKey,row:U?(0,u.Z)((0,u.Z)({},i),{},{map_row_parentKey:(P=s((_=U==null?void 0:U.parentKey)!==null&&_!==void 0?_:""))===null||P===void 0?void 0:P.toString()}):i,key:l,childrenColumnName:e.childrenColumnName||"children"},e.setDataSource(Q(De,(U==null?void 0:U.position)==="top"?"top":"update")),Ce.next=13,W(l);case 13:return Ce.abrupt("return",m);case 14:case"end":return Ce.stop()}},r)}));return function(r,l,i,o){return h.apply(this,arguments)}}()),Le=(0,G.J)(function(){var h=(0,w.Z)((0,c.Z)().mark(function r(l,i){var o,M,b;return(0,c.Z)().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return M={data:e.dataSource,getRowKey:e.getRowKey,row:i,key:l,childrenColumnName:e.childrenColumnName||"children"},_.next=3,e==null||(o=e.onDelete)===null||o===void 0?void 0:o.call(e,l,i);case 3:return b=_.sent,_.next=6,W(l,!1);case 6:return e.setDataSource(Q(M,"delete")),_.abrupt("return",b);case 8:case"end":return _.stop()}},r)}));return function(r,l){return h.apply(this,arguments)}}()),we=(0,G.J)(function(){var h=(0,w.Z)((0,c.Z)().mark(function r(l,i,o,M){var b,P;return(0,c.Z)().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return m.next=2,e==null||(b=e.onCancel)===null||b===void 0?void 0:b.call(e,l,i,o,M);case 2:return P=m.sent,m.abrupt("return",P);case 4:case"end":return m.stop()}},r)}));return function(r,l,i,o){return h.apply(this,arguments)}}()),Ke=e.actionRender&&typeof e.actionRender=="function",Ne=Ke?e.actionRender:function(){},Be=(0,G.J)(Ne),je=function(r){var l=e.getRowKey(r,r.index),i={saveText:Te,cancelText:xe,deleteText:Ie,addEditRecord:be,recordKey:l,cancelEditable:W,index:r.index,tableName:e.tableName,newLineConfig:Z,onCancel:we,onDelete:Le,onSave:Ae,editableKeys:f,setEditableRowKeys:y,preEditRowRef:p,deletePopconfirmMessage:e.deletePopconfirmMessage||"".concat(a.getMessage("deleteThisLine","\u5220\u9664\u6B64\u9879"),"?")},o=ye(r,i);return e.tableName?Re.current.set(I.current.get(s(l))||s(l),o.saveRef):Re.current.set(s(l),o.saveRef),Ke?Be(r,i,{save:o.save,delete:o.delete,cancel:o.cancel}):[o.save,o.delete,o.cancel]};return{editableKeys:f,setEditableRowKeys:y,isEditable:ie,actionRender:je,startEditable:A,cancelEditable:W,addEditRecord:be,saveEditable:re,newLineRecord:Z,preEditableKeys:C,onValuesChange:Se,getRealIndex:e.getRealIndex}}},86738:function(_e,se,n){n.d(se,{Z:function(){return Y}});var O=n(67294),c=n(21640),ve=n(93967),w=n.n(ve),z=n(21770),he=n(98423),te=n(53124),u=n(55241),D=n(86743),X=n(81643),Pe=n(83622),ae=n(33671),le=n(10110),fe=n(24457),$=n(66330),me=n(83559);const ge=t=>{const{componentCls:E,iconCls:S,antCls:d,zIndexPopup:s,colorText:Q,colorWarning:Ee,marginXXS:de,marginXS:ce,fontSize:ye,fontWeightStrong:Oe,colorTextHeading:e}=t;return{[E]:{zIndex:s,[`&${d}-popover`]:{fontSize:ye},[`${E}-message`]:{marginBottom:ce,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${E}-message-icon ${S}`]:{color:Ee,fontSize:ye,lineHeight:1,marginInlineEnd:ce},[`${E}-title`]:{fontWeight:Oe,color:e,"&:only-child":{fontWeight:"normal"}},[`${E}-description`]:{marginTop:de,color:Q}},[`${E}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:ce}}}}},pe=t=>{const{zIndexPopupBase:E}=t;return{zIndexPopup:E+60}};var Me=(0,me.I$)("Popconfirm",t=>ge(t),pe,{resetStyle:!1}),H=function(t,E){var S={};for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&E.indexOf(d)<0&&(S[d]=t[d]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,d=Object.getOwnPropertySymbols(t);s<d.length;s++)E.indexOf(d[s])<0&&Object.prototype.propertyIsEnumerable.call(t,d[s])&&(S[d[s]]=t[d[s]]);return S};const G=t=>{const{prefixCls:E,okButtonProps:S,cancelButtonProps:d,title:s,description:Q,cancelText:Ee,okText:de,okType:ce="primary",icon:ye=O.createElement(c.Z,null),showCancel:Oe=!0,close:e,onConfirm:a,onCancel:p,onPopupClick:K}=t,{getPrefixCls:T}=O.useContext(te.E_),[Z]=(0,le.Z)("Popconfirm",fe.Z.Popconfirm),N=(0,X.Z)(s),L=(0,X.Z)(Q);return O.createElement("div",{className:`${E}-inner-content`,onClick:K},O.createElement("div",{className:`${E}-message`},ye&&O.createElement("span",{className:`${E}-message-icon`},ye),O.createElement("div",{className:`${E}-message-text`},N&&O.createElement("div",{className:`${E}-title`},N),L&&O.createElement("div",{className:`${E}-description`},L))),O.createElement("div",{className:`${E}-buttons`},Oe&&O.createElement(Pe.ZP,Object.assign({onClick:p,size:"small"},d),Ee||(Z==null?void 0:Z.cancelText)),O.createElement(D.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,ae.nx)(ce)),S),actionFn:a,close:e,prefixCls:T("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},de||(Z==null?void 0:Z.okText))))};var g=t=>{const{prefixCls:E,placement:S,className:d,style:s}=t,Q=H(t,["prefixCls","placement","className","style"]),{getPrefixCls:Ee}=O.useContext(te.E_),de=Ee("popconfirm",E),[ce]=Me(de);return ce(O.createElement($.ZP,{placement:S,className:w()(de,d),style:s,content:O.createElement(G,Object.assign({prefixCls:de},Q))}))},F=function(t,E){var S={};for(var d in t)Object.prototype.hasOwnProperty.call(t,d)&&E.indexOf(d)<0&&(S[d]=t[d]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,d=Object.getOwnPropertySymbols(t);s<d.length;s++)E.indexOf(d[s])<0&&Object.prototype.propertyIsEnumerable.call(t,d[s])&&(S[d[s]]=t[d[s]]);return S};const oe=O.forwardRef((t,E)=>{var S,d;const{prefixCls:s,placement:Q="top",trigger:Ee="click",okType:de="primary",icon:ce=O.createElement(c.Z,null),children:ye,overlayClassName:Oe,onOpenChange:e,onVisibleChange:a,overlayStyle:p,styles:K,classNames:T}=t,Z=F(t,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:N,className:L,style:ee,classNames:I,styles:B}=(0,te.dj)("popconfirm"),[V,ne]=(0,z.Z)(!1,{value:(S=t.open)!==null&&S!==void 0?S:t.visible,defaultValue:(d=t.defaultOpen)!==null&&d!==void 0?d:t.defaultVisible}),J=(A,W)=>{ne(A,!0),a==null||a(A),e==null||e(A,W)},x=A=>{J(!1,A)},j=A=>{var W;return(W=t.onConfirm)===null||W===void 0?void 0:W.call(void 0,A)},R=A=>{var W;J(!1,A),(W=t.onCancel)===null||W===void 0||W.call(void 0,A)},f=(A,W)=>{const{disabled:k=!1}=t;k||J(A,W)},y=N("popconfirm",s),v=w()(y,L,Oe,I.root,T==null?void 0:T.root),C=w()(I.body,T==null?void 0:T.body),[ie]=Me(y);return ie(O.createElement(u.Z,Object.assign({},(0,he.Z)(Z,["title"]),{trigger:Ee,placement:Q,onOpenChange:f,open:V,ref:E,classNames:{root:v,body:C},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},B.root),ee),p),K==null?void 0:K.root),body:Object.assign(Object.assign({},B.body),K==null?void 0:K.body)},content:O.createElement(G,Object.assign({okType:de,icon:ce},t,{prefixCls:y,close:x,onConfirm:j,onCancel:R})),"data-popover-inject":!0}),ye))});oe._InternalPanelDoNotUseOrYouWillBeFired=g;var Y=oe}}]);