1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[7795],{82344:(function(oe,V,n){var E=n(98477),h=n(18211),p=n(39015),D=n(37953),U=n(38020),r=n(88849),j=n(15621),$=["fieldProps","proFieldProps"],R="dateRange",m=D.forwardRef(function(T,N){var A=T.fieldProps,I=T.proFieldProps,f=(0,h.A)(T,$),c=(0,D.useContext)(U.A);return(0,j.jsx)(r.A,(0,E.A)({ref:N,fieldProps:(0,E.A)({getPopupContainer:c.getPopupContainer},A),valueType:R,proFieldProps:I,filedConfig:{valueType:R,customLightMode:!0,lightFilterLabelFormatter:function(O){return(0,p.k)(O,(A==null?void 0:A.format)||"YYYY-MM-DD")}}},f))});V.A=m}),73529:(function(oe,V,n){var E=n(98477),h=n(18211),p=n(32199),D=n(37953),U=n(38020),r=n(88849),j=n(15621),$=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],R=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],m=function(c,x){var O=c.fieldProps,u=c.children,t=c.params,M=c.proFieldProps,o=c.mode,K=c.valueEnum,F=c.request,y=c.showSearch,C=c.options,B=(0,h.A)(c,$),L=(0,D.useContext)(U.A);return(0,j.jsx)(r.A,(0,E.A)((0,E.A)({valueEnum:(0,p._)(K),request:F,params:t,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,E.A)({options:C,mode:o,showSearch:y,getPopupContainer:L.getPopupContainer},O),ref:x,proFieldProps:M},B),{},{children:u}))},T=D.forwardRef(function(f,c){var x=f.fieldProps,O=f.children,u=f.params,t=f.proFieldProps,M=f.mode,o=f.valueEnum,K=f.request,F=f.options,y=(0,h.A)(f,R),C=(0,E.A)({options:F,mode:M||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},x),B=(0,D.useContext)(U.A);return(0,j.jsx)(r.A,(0,E.A)((0,E.A)({valueEnum:(0,p._)(o),request:K,params:u,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,E.A)({getPopupContainer:B.getPopupContainer},C),ref:c,proFieldProps:t},y),{},{children:O}))}),N=D.forwardRef(m),A=T,I=N;I.SearchSelect=A,I.displayName="ProFormComponent",V.A=I}),92574:(function(oe,V,n){var E=n(73159),h=n(98477),p=n(18211),D=n(82179),U=n(47215),r=n(51100),j=n(34346),$=n(37953),R=n(88849),m=n(15621),T=["fieldProps","proFieldProps"],N=["fieldProps","proFieldProps"],A="text",I=function(u){var t=u.fieldProps,M=u.proFieldProps,o=(0,p.A)(u,T);return(0,m.jsx)(R.A,(0,h.A)({valueType:A,fieldProps:t,filedConfig:{valueType:A},proFieldProps:M},o))},f=function(u){var t=(0,D.A)(u.open||!1,{value:u.open,onChange:u.onOpenChange}),M=(0,E.A)(t,2),o=M[0],K=M[1];return(0,m.jsx)(U.A.Item,{shouldUpdate:!0,noStyle:!0,children:function(y){var C,B=y.getFieldValue(u.name||[]);return(0,m.jsx)(r.A,(0,h.A)((0,h.A)({getPopupContainer:function(e){return e&&e.parentNode?e.parentNode:e},onOpenChange:function(e){return K(e)},content:(0,m.jsxs)("div",{style:{padding:"4px 0"},children:[(C=u.statusRender)===null||C===void 0?void 0:C.call(u,B),u.strengthText?(0,m.jsx)("div",{style:{marginTop:10},children:(0,m.jsx)("span",{children:u.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},u.popoverProps),{},{open:o,children:u.children}))}})},c=function(u){var t=u.fieldProps,M=u.proFieldProps,o=(0,p.A)(u,N),K=(0,$.useState)(!1),F=(0,E.A)(K,2),y=F[0],C=F[1];return t!=null&&t.statusRender&&o.name?(0,m.jsx)(f,{name:o.name,statusRender:t==null?void 0:t.statusRender,popoverProps:t==null?void 0:t.popoverProps,strengthText:t==null?void 0:t.strengthText,open:y,onOpenChange:C,children:(0,m.jsx)("div",{children:(0,m.jsx)(R.A,(0,h.A)({valueType:"password",fieldProps:(0,h.A)((0,h.A)({},(0,j.A)(t,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(L){var e;t==null||(e=t.onBlur)===null||e===void 0||e.call(t,L),C(!1)},onClick:function(L){var e;t==null||(e=t.onClick)===null||e===void 0||e.call(t,L),C(!0)}}),proFieldProps:M,filedConfig:{valueType:A}},o))})}):(0,m.jsx)(R.A,(0,h.A)({valueType:"password",fieldProps:t,proFieldProps:M,filedConfig:{valueType:A}},o))},x=I;x.Password=c,x.displayName="ProFormComponent",V.A=x}),1385:(function(oe,V,n){var E=n(20873),h=n(73159),p=n(18211),D=n(60460),U=n(38481),r=n(98477),j=n(93774),$=n(14592),R=n(2112),m=n(44139),T=n(54787),N=n(40087),A=n(32199),I=n(25997),f=n(86807),c=n(47215),x=n(82179),O=n(3702),u=n(96490),t=n(37953),M=n(18466),o=n(15621),K=["onTableChange","maxLength","formItemProps","recordCreatorProps","rowKey","controlled","defaultValue","onChange","editableFormRef"],F=["record","position","creatorButtonText","newRecordType","parentKey","style"],y=t.createContext(void 0);
1function C(e){var W=e.children,G=e.record,Q=e.position,X=e.newRecordType,S=e.parentKey,Z=(0,t.useContext)(y);return t.cloneElement(W,(0,r.A)((0,r.A)({},W.props),{},{onClick:(function(){var k=(0,U.A)((0,D.A)().mark(function le(ae){var te,re,Y,H;return(0,D.A)().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:return P.next=2,(te=(re=W.props).onClick)===null||te===void 0?void 0:te.call(re,ae);case 2:if(H=P.sent,H!==!1){P.next=5;break}return P.abrupt("return");case 5:Z==null||(Y=Z.current)===null||Y===void 0||Y.addEditRecord(G,{position:Q,newRecordType:X,parentKey:S});case 6:case"end":return P.stop()}},le)}));function w(le){return k.apply(this,arguments)}return w})()}))}function B(e){var W,G,Q=(0,m.tz)(),X=e.onTableChange,S=e.maxLength,Z=e.formItemProps,k=e.recordCreatorProps,w=e.rowKey,le=e.controlled,ae=e.defaultValue,te=e.onChange,re=e.editableFormRef,Y=(0,p.A)(e,K),H=(0,t.useRef)(void 0),q=(0,t.useRef)(),P=(0,t.useRef)();(0,t.useImperativeHandle)(Y.actionRef,function(){return q.current},[q.current]);var ve=(0,x.A)(function(){return e.value||ae||[]},{value:e.value,onChange:e.onChange}),se=(0,h.A)(ve,2),s=se[0],ce=se[1],J=t.useMemo(function(){return typeof w=="function"?w:function(l,v){return l[w]||v}},[w]),ie=(0,T.$)(function(l){if(typeof l=="number"&&!e.name){if(l>=s.length)return l;var v=s&&s[l];return J==null?void 0:J(v,l)}if((typeof l=="string"||l>=s.length)&&e.name){var a=s.findIndex(function(i,d){var _;return(J==null||(_=J(i,d))===null||_===void 0?void 0:_.toString())===(l==null?void 0:l.toString())});if(a!==-1)return a}return l});(0,t.useImperativeHandle)(re,function(){var l=function(i){var d,_;if(i==null)throw new Error("rowIndex is required");var g=ie(i),b=[e.name,(d=g==null?void 0:g.toString())!==null&&d!==void 0?d:""].flat(1).filter(Boolean);return(_=P.current)===null||_===void 0?void 0:_.getFieldValue(b)},v=function(){var i,d=[e.name].flat(1).filter(Boolean);if(Array.isArray(d)&&d.length===0){var _,g=(_=P.current)===null||_===void 0?void 0:_.getFieldsValue();return Array.isArray(g)?g:Object.keys(g).map(function(b){return g[b]})}return(i=P.current)===null||i===void 0?void 0:i.getFieldValue(d)};return(0,r.A)((0,r.A)({},P.current),{},{getRowData:l,getRowsData:v,setRowData:function(i,d){var _,g;if(i==null)throw new Error("rowIndex is required");var b=ie(i),ne=[e.name,(_=b==null?void 0:b.toString())!==null&&_!==void 0?_:""].flat(1).filter(Boolean),Me=Object.assign({},(0,r.A)((0,r.A)({},l(i)),d||{})),De=(0,u.A)({},ne,Me);return(g=P.current)===null||g===void 0||g.setFieldsValue(De),!0}})},[ie,e.name,P.current]),(0,t.useEffect)(function(){e.controlled&&(s||[]).forEach(function(l,v){var a;(a=P.current)===null||a===void 0||a.setFieldsValue((0,E.A)({},"".concat(J(l,v)),l))},{})},[(0,I.A)(s),e.controlled]),(0,t.useEffect)(function(){if(e.name){var l;P.current=e==null||(l=e.editable)===null||l===void 0?void 0:l.form}},[(W=e.editable)===null||W===void 0?void 0:W.form,e.name]);var z=k||{},Pe=z.record,de=z.position,me=z.creatorButtonText,fe=z.newRecordType,Ee=z.parentKey,he=z.style,Ae=(0,p.A)(z,F),_e=de==="top",ee=(0,t.useMemo)(function(){return typeof S=="number"&&S<=(s==null?void 0:s.length)?!1:k!==!1&&(0,o.jsx)(C,{record:(0,A._)(Pe,s==null?void 0:s.length,s)||{},position:de,parentKey:(0,A._)(Ee,s==null?void 0:s.length,s),newRecordType:fe,children:(0,o.jsx)(f.A,(0,r.A)((0,r.A)({type:"dashed",style:(0,r.A)({display:"block",margin:"10px 0",width:"100%"},he),icon:(0,o.jsx)(j.A,{})},Ae),{},{children:me||Q.getMessage("editableTable.action.add","\u6DFB\u52A0\u4E00\u884C\u6570\u636E")}))})},[k,S,s==null?void 0:s.length]),Ce=(0,t.useMemo)(function(){return ee?_e?{components:{header:{wrapper:function(v){var a,i=v.className,d=v.children;return(0,o.jsxs)("thead",{className:i,children:[d,(0,o.jsxs)("tr",{style:{position:"relative"},children:[(0,o.jsx)("td",{colSpan:0,style:{visibility:"hidden"},children:ee}),(0,o.jsx)("td",{style:{position:"absolute",left:0,width:"100%"},colSpan:(a=Y.columns)===null||a===void 0?void 0:a.length,children:ee})]})]})}}}}:{tableViewRender:function(v,a){var i,d;return(0,o.jsxs)(o.Fragment,{children:[(i=(d=e.tableViewRender)===null||d===void 0?void 0:d.call(e,v,a))!==null&&i!==void 0?i:a,ee]})}}:{}},[_e,ee]),ue=(0,r.A)({},e.editable),ge=(0,T.$)(function(l,v){var a,i,d;if((a=e.editable)===null||a===void 0||(i=a.onValuesChange)===null||i===void 0||i.call(a,l,v),(d=e.onValuesChange)===null||d===void 0||d.call(e,v,l),e.controlled){var _;e==null||(_=e.onChange)===null||_===void 0||_.call(e,v)}});return(e!=null&&e.onValuesChange||(G=e.editable)!==null&&G!==void 0&&G.onValuesChange||e.controlled&&e!==null&&e!==void 0&&e.onChange)&&(ue.onValuesChange=ge),(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(y.Provider,{value:q,children:(0,o.jsx)(M.A,(0,r.A)((0,r.A)((0,r.A)({search:!1,options:!1,pagination:!1,rowKey:w,revalidateOnFocus:!1},Y),Ce),{},{tableLayout:"fixed",actionRef:q,onChange:X,editable:(0,r.A)((0,r.A)({},ue),{},{formProps:(0,r.A)({formRef:P},ue.formProps)}),dataSource:s,onDataSourceChange:function(v){if(ce(v),e.name&&de==="top"){var a,i=(0,u.A)({}
1,[e.name].flat(1).filter(Boolean),v);(a=P.current)===null||a===void 0||a.setFieldsValue(i)}}}))}),e.name?(0,o.jsx)(R.A,{name:[e.name],children:function(v){var a,i;if(!H.current)return H.current=s,null;var d=(0,O.A)(v,[e.name].flat(1)),_=d==null?void 0:d.find(function(g,b){var ne;return!(0,N.q)(g,(ne=H.current)===null||ne===void 0?void 0:ne[b])});return H.current=s,_&&(e==null||(a=e.editable)===null||a===void 0||(i=a.onValuesChange)===null||i===void 0||i.call(a,_,d)),null}}):null]})}function L(e){var W=$.Ay.useFormInstance();return e.name?(0,o.jsx)(c.A.Item,(0,r.A)((0,r.A)({style:{maxWidth:"100%"}},e==null?void 0:e.formItemProps),{},{name:e.name,shouldUpdate:function(Q,X){var S=[e.name].flat(1);try{return JSON.stringify((0,O.A)(Q,S))!==JSON.stringify((0,O.A)(X,S))}catch(Z){return!0}},children:(0,o.jsx)(B,(0,r.A)((0,r.A)({tableLayout:"fixed",scroll:{x:"max-content"}},e),{},{editable:(0,r.A)((0,r.A)({},e.editable),{},{form:W})}))})):(0,o.jsx)(B,(0,r.A)({tableLayout:"fixed",scroll:{x:"max-content"}},e))}L.RecordCreator=C,V.A=L})}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.