1 |
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[6115],{64317:function(gt,xe,n){var s=n(1413),r=n(45987),a=n(22270),se=n(67294),H=n(66758),K=n(36723),Be=n(85893),He=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],ve=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],Re=function(B,ge){var F=B.fieldProps,be=B.children,ze=B.params,Te=B.proFieldProps,e=B.mode,$e=B.valueEnum,Ke=B.request,Ue=B.showSearch,te=B.options,Ge=(0,r.Z)(B,He),at=(0,se.useContext)(H.Z);return(0,Be.jsx)(K.Z,(0,s.Z)((0,s.Z)({valueEnum:(0,a.h)($e),request:Ke,params:ze,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,s.Z)({options:te,mode:e,showSearch:Ue,getPopupContainer:at.getPopupContainer},F),ref:ge,proFieldProps:Te},Ge),{},{children:be}))},w=se.forwardRef(function(x,B){var ge=x.fieldProps,F=x.children,be=x.params,ze=x.proFieldProps,Te=x.mode,e=x.valueEnum,$e=x.request,Ke=x.options,Ue=(0,r.Z)(x,ve),te=(0,s.Z)({options:Ke,mode:Te||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},ge),Ge=(0,se.useContext)(H.Z);return(0,Be.jsx)(K.Z,(0,s.Z)((0,s.Z)({valueEnum:(0,a.h)(e),request:$e,params:be,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,s.Z)({getPopupContainer:Ge.getPopupContainer},te),ref:B,proFieldProps:ze},Ue),{},{children:F}))}),We=se.forwardRef(Re),c=w,Se=We;Se.SearchSelect=c,Se.displayName="ProFormComponent",xe.Z=Se},2205:function(gt,xe,n){n.d(xe,{Z:function(){return f}});var s=n(15009),r=n.n(s),a=n(99289),se=n.n(a),H=n(67294),K=n(75891),Be=n(97269),He=n(64317),ve=n(1413),Re=n(45987),w=n(66758),We=n(36723),c=n(85893),Se=["fieldProps","proFieldProps"],x="dateTime",B=H.forwardRef(function(d,g){var t=d.fieldProps,o=d.proFieldProps,p=(0,Re.Z)(d,Se),l=(0,H.useContext)(w.Z);return(0,c.jsx)(We.Z,(0,ve.Z)({ref:g,fieldProps:(0,ve.Z)({getPopupContainer:l.getPopupContainer},t),valueType:x,proFieldProps:o,filedConfig:{valueType:x,customLightMode:!0}},p))}),ge=B,F=n(21532),be=n(86250),ze=n(42075),Te=n(68872),e=n(71230),$e=n(15746),Ke=n(5251),Ue=n(55375),te=n(70489),Ge=n(72131),at=function(g){var t=g.dispatch,o=g.dictModel,p=g.detail,l=g.closeModel,u=(0,H.useRef)();return(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(F.ZP,{theme:{token:{colorPrimary:"#19be6e"},components:{}},children:(0,c.jsx)(Be.A,{formRef:u,request:se()(r()().mark(function i(){return r()().wrap(function(b){for(;;)switch(b.prev=b.next){case 0:if(!(p&&p.id)){b.next=4;break}return b.abrupt("return",p);case 4:return b.abrupt("return",{});case 5:case"end":return b.stop()}},i)})),submitter:{searchConfig:{resetText:"\u6682\u4E0D\u9080\u8BF7",submitText:"\u53D1\u9001\u9080\u8BF7"},render:function(h,b){return(0,c.jsxs)(be.Z,{justify:"flex-end",children:[" ",(0,c.jsx)(ze.Z,{children:b})]})},onReset:function(){l(!1)}},onFinish:function(){var i=se()(r()().mark(function h(b){var z;return r()().wrap(function($){for(;;)switch($.prev=$.next){case 0:return b.customer_id=p.customer_id,$.next=3,(0,te.su)(b);case 3:z=$.sent,Te.ZP.success("\u5DF2\u53D1\u9001\u9762\u8BD5\u9080\u8BF7"),l(!1);case 6:case"end":return $.stop()}},h)}));return function(h){return i.apply(this,arguments)}}(),children:(0,c.jsxs)(e.Z,{gutter:[16,16],children:[(0,c.jsx)($e.Z,{span:24,children:(0,c.jsx)(He.Z,{label:"\u9762\u8BD5\u804C\u4F4D",name:"job_id",fieldProps:{fieldNames:Ue.RI},request:function(){var i=se()(r()().mark(function h(b){return r()().wrap(function(y){for(;;)switch(y.prev=y.next){case 0:return y.abrupt("return",(0,Ge.k)({page:1,pagesize:999,keyword:b.keyWords}).then(function($){return $.data.list}));case 1:case"end":return y.stop()}},h)}));return function(h){return i.apply(this,arguments)}}(),placeholder:"\u8BF7\u9009\u62E9\u9762\u8BD5\u804C\u4F4D",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9762\u8BD5\u804C\u4F4D"}]})}),(0,c.jsx)($e.Z,{span:24,children:(0,c.jsx)(ge,{width:"lg",name:"interview_date_time",label:"\u9762\u8BD5\u65F6\u95F4",placeholder:"\u8BF7\u9009\u62E9\u9762\u8BD5\u65F6\u95F4",fieldProps:{format:function(h){return h.format("YYYY-MM-DD HH:mm:ss")},disabledDate:Ke._},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9762\u8BD5\u65F6\u95F4"}]})})]})})})})},f=(0,K.connect)(function(d){var g=d.dictModel;return{dictModel:g}})(at)},63866:function(gt,xe,n){n.r(xe),n.d(xe,{default:function(){return bt}});var s=n(5574),r=n.n(s),a=n(67294),se=n(74453),H=n(21532),K=n(42075),Be=n(4393),He=n(86250),ve=n(55054),Re=n(92398),w=n(70489),We=n(15009),c=n.n(We),Se=n(99289),x=n.n(Se),B=n(56886),ge=n(64317),F=n(83622),be=n(75891),ze=n(55375),Te=n(72131),e=n(85893),$e=function(D){var L=D.changeData,T=(0,a.useRef)(),U=(0,a.useState)(!1),M=r()(U,2),ae=M[0],Q=M[1],_=(0,a.useState)(0),E=r()(_,2),Z=E[0],k=E[1],G=(0,a.useState)(0),J=r()(G,2),De=J[0],we=J[1],Ee=(0,a.useState)(!1),de=r()(Ee,2),Xe=de[0],Qe=de[1],Oe=(0,a.useState)(!1),Y=r()(Oe,2),W=Y[0],V=Y[1],Ye=(0,a.useState)([]),pe=r()(Ye,2),nt=pe[0],qe=pe[1],_e=(0,a.useState)(0),he=r()(_e,2),tt=he[0],ke=he[1],ne=(0,a.useState)(1),I=r()(ne,2),v=I[0],me=I[1],re=(0,a.useState)(9),O=r()(re,2),le=O[0],N=O[1],ut=(0,a.useState)(0),Ne=r()(ut,2),it=Ne[0],rt=Ne[1],ct=(0,a.useState)(""),Le=r()(ct,2),yt=Le[0],dt=Le[1],mt=(0,a.useState)(0),Je=r()(mt,2),jt=Je[0],vt=Je[1];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(H.ZP,{theme:{token:{colorPrimary:"#19be6e"},components:{Button:{colorText:"#19be6e"}}},children:(0,e.jsx)(B.Z,{actionRef:T,dataSource:nt,columns:[{title:"\u59D3\u540D",dataIndex:"customer_name",width:100},{title:"\u6027\u522B",dataIndex:"gender",search:!1,width:80},{title:"\u5E94\u8058\u804C\u4F4D",dataIndex:"job_name",width:140,valueType:"select",renderFormItem:function(){return(0,e.jsx)(ge.Z,{fieldProps:{fieldNames:ze.RI},request:function(){var R=x()(c()().mark(function j(Ie){return c()().wrap(function(X){for(;;)switch(X.prev=X.next){case 0:return X.abrupt("return",(0,Te.k)({page:1,pagesize:100,keyword:Ie.keyWords}).then(function(ee){return ee.data.list}));case 1:case"end":return X.stop()}},j)}));return function(j){return R.apply(this,arguments)}}(),placeholder:"\u8BF7\u9009\u62E9\u804C\u4F4D",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u804C\u4F4D"}],onChange:function(j){rt(j)}})}},{title:"\u6295\u9012\u65F6\u95F4",dataIndex:"apply_time_txt",search:!1,width:180},{title:"\u67E5\u770B\u65F6\u95F4",dataIndex:"viewtime_txt",search:!1,width:180},{title:"\u64CD\u4F5C",valueType:"option",width:140,render:function(R,j,Ie){return[(0,e.jsx)(F.ZP,{type:"link",disabled:j.status==4||j.status==5,onClick:function(){L()},children:(0,e.jsx)(be.Link,{to:{pathname:"/talent/resume/detail?id=".concat(j.customer_id,"&application_id=").concat(j.id)},target:"_black",children:"\u9884\u89C8\u7B80\u5386"})},"1")]}}],rowKey:"id",pagination:{current:v,pageSize:le,showSizeChanger:!0,total:tt,pageSizeOptions:[9,18,27,99],onChange:function(R,j){me(R),N(j)},onShowSizeChange:function(R,j){me(R),N(j)}},request:x()(c()().mark(function Ce(){var R,j=arguments;return c()().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return R=j.length>0&&j[0]!==void 0?j[0]:{},oe.abrupt("return",(0,w.EZ)({page:v,pagesize:le,customer_name:R.customer_name,job_id:it,status:1}).then(function(X){qe(X.data.list?X.data.list:[]),ke(X.data.total),dt(R.customer_name),vt(R.status?Number(R.status):0)}));case 2:case"end":return oe.stop()}},Ce)})),headerTitle:"\u5F85\u770B\u7B80\u5386"})})})},Ke=$e,Ue=n(45987),te=n(1413),Ge=n(80882),at=n(89705),f=n(86413),d=n(85418),g=n(93967),t=n.n(g),o=["key","name"],p=function(D){var L=D.children,T=D.menus,U=D.onSelect,M=D.className,ae=D.style,Q=(0,a.useContext)(H.ZP.ConfigContext),_=Q.getPrefixCls,E=_("pro-table-dropdown"),Z=(0,f.Q)({onClick:function(G){return U&&U(G.key)},items:T==null?void 0:T.map(function(k){return{label:k.name,key:k.key}})});return(0,e.jsx)(d.Z,(0,te.Z)((0,te.Z)({},Z),{},{className:t()(E,M),children:(0,e.jsxs)(F.ZP,{style:ae,children:[L," ",(0,e.jsx)(Ge.Z,{})]})}))},l=function(D){var L=D.className,T=D.style,U=D.onSelect,M=D.menus,ae=M===void 0?[]:M,Q=D.children,_=(0,a.useContext)(H.ZP.ConfigContext),E=_.getPrefixCls,Z=E("pro-table-dropdown"),k=(0,f.Q)({onClick:function(J){U==null||U(J.key)},items:ae.map(function(G){var J=G.key,De=G.name,we=(0,Ue.Z)(G,o);return(0,te.Z)((0,te.Z)({key:J},we),{},{title:we.title,label:De})})});return(0,e.jsx)(d.Z,(0,te.Z)((0,te.Z)({},k),{},{className:t()(Z,L),children:(0,e.jsx)("a",{style:T,children:Q||(0,e.jsx)(at.Z,{})})}))};l.Button=p;var u=l,i=n(17788),h=n(97088),b=n(93162),z=n(24458),y=n(52087),$=n(48273),Ze=n(2205),Ve=function(D){var L=D.changeData,T=(0,a.useRef)(),U=(0,a.useState)(!1),M=r()(U,2),ae=M[0],Q=M[1],_=(0,a.useState)(null),E=r()(_,2),Z=E[0],k=E[1],G=(0,a.useState)(0),J=r()(G,2),De=J[0],we=J[1],Ee=(0,a.useState)(0),de=r()(Ee,2),Xe=de[0],Qe=de[1],Oe=(0,a.useState)(!1),Y=r()(Oe,2),W=Y[0],V=Y[1],Ye=(0,a.useState)(!1),pe=r()(Ye,2),nt=pe[0],qe=pe[1],_e=(0,a.useState)([]),he=r()(_e,2),tt=he[0],ke=he[1],ne=(0,a.useState)(0),I=r()(ne,2),v=I[0],me=I[1],re=(0,a.useState)(1),O=r()(re,2),le=O[0],N=O[1],ut=(0,a.useState)(9),Ne=r()(ut,2),it=Ne[0],rt=Ne[1],ct=(0,a.useState)(0),Le=r()(ct,2),yt=Le[0],dt=Le[1],mt=(0,a.useState)(""),Je=r()(mt,2),jt=Je[0],vt=Je[1],Ce=(0,a.useState)(0),R=r()(Ce,2),j=R[0],Ie=R[1],oe=(0,a.useState)("oneModel"),X=r()(oe,2),ee=X[0],ot=X[1],ue=(0,a.useState)(!1),Ae=r()(ue,2),ie=Ae[0],P=Ae[1],A=function(C){var m;P(C),(m=T.current)===null||m===void 0||m.reload(),L()};return(0,a.useEffect)(function(){Q(!0)},[Z]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(H.ZP,{theme:{token:{colorPrimary:"#19be6e"},components:{Button:{colorText:"#19be6e"}}},children:[(0,e.jsx)(B.Z,{actionRef:T,dataSource:tt,columns:[{title:"\u59D3\u540D",dataIndex:"customer_name",width:100},{title:"\u6027\u522B",dataIndex:"gender",search:!1,width:80},{title:"\u5E94\u8058\u804C\u4F4D",dataIndex:"job_name",width:140,valueType:"select",renderFormItem:function(){return(0,e.jsx)(ge.Z,{fieldProps:{fieldNames:ze.RI},request:function(){var C=x()(c()().mark(function m(q){return c()().wrap(function(ye){for(;;)switch(ye.prev=ye.next){case 0:return ye.abrupt("return",(0,Te.k)({page:1,pagesize:100,keyword:q.keyWords}).then(function(st){return st.data.list}));case 1:case"end":return ye.stop()}},m)}));return function(m){return C.apply(this,arguments)}}(),placeholder:"\u8BF7\u9009\u62E9\u804C\u4F4D",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u804C\u4F4D"}],onChange:function(m){dt(m)}})}},{title:"\u6295\u9012\u65F6\u95F4",dataIndex:"apply_time_txt",search:!1,width:180},{title:"\u67E5\u770B\u65F6\u95F4",dataIndex:"viewtime_txt",search:!1,width:180},{title:"\u64CD\u4F5C",valueType:"option",width:140,render:function(C,m,q){return[(0,e.jsx)(F.ZP,{type:"link",disabled:m.status==4||m.status==5,onClick:function(){(0,z.ts)({customer_id:m.customer_id}).then(function(ye){k(ye.data)})},children:"\u9884\u89C8\u7B80\u5386"},"1"),(0,e.jsx)(u,{menus:[{name:"\u9080\u8BF7\u9762\u8BD5",key:"1",onClick:function(){k(m),Q(!0)}},{name:"\u653E\u5165\u4EBA\u624D\u5E93",key:"2",onClick:function(){i.Z.confirm({title:"\u653E\u5165\u4EBA\u624D\u5E93",content:"\u786E\u5B9A\u653E\u5165\u4EBA\u624D\u5E93\u5417\uFF1F",onOk:function(){(0,w.FI)({customer_id:m.customer_id}).then(function(st){var St;(St=T.current)===null||St===void 0||St.reload(),L()})},onCancel:function(){console.log("Cancel")},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0})}},{name:"\u653E\u5165\u56DE\u6536\u7AD9",key:"3",onClick:function(){i.Z.confirm({title:"\u653E\u5165\u56DE\u6536\u7AD9",content:"\u786E\u5B9A\u653E\u5165\u56DE\u6536\u7AD9\u5417\uFF1F",onOk:function(){(0,w.Px)({selected:[m.id]}).then(function(st){var St;(St=T.current)===null||St===void 0||St.reload(),L()})},onCancel:function(){console.log("Cancel")},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0})}}]},"actionGroup")]}}],rowKey:"id",pagination:{current:le,pageSize:it,showSizeChanger:!0,total:v,pageSizeOptions:[9,18,27,99],onChange:function(C,m){N(C),rt(m)},onShowSizeChange:function(C,m){N(C),rt(m)}},request:x()(c()().mark(function S(){var C,m=arguments;return c()().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return C=m.length>0&&m[0]!==void 0?m[0]:{},ce.abrupt("return",(0,w.EZ)({page:le,pagesize:it,customer_name:C.customer_name,job_id:yt,status:2}).then(function(ye){ke(ye.data.list?ye.data.list:[]),me(ye.data.total),vt(C.customer_name),Ie(C.status?Number(C.status):0)}));case 2:case"end":return ce.stop()}},S)})),headerTitle:"\u5DF2\u67E5\u770B\u7B80\u5386"}),Z&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.Z,{title:"\u9884\u89C8\u7B80\u5386",centered:!0,destroyOnClose:!0,closable:!1,open:ae,footer:function(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(F.ZP,{onClick:function(){Q(!1)},children:"\u5173\u95ED"},"back"),(0,e.jsx)(F.ZP,{type:"primary",onClick:x()(c()().mark(function C(){var m,q,ce;return c()().wrap(function(st){for(;;)switch(st.prev=st.next){case 0:return m=document.getElementById("resume-box"),q=h.m(m==null?void 0:m.outerHTML),st.next=4,q;case 4:ce=st.sent,(0,b.saveAs)(ce,"\u4E2A\u4EBA\u7B80\u5386.docx");case 6:case"end":return st.stop()}},C)})),children:"\u4E0B\u8F7D\u7B80\u5386"},"submit"),(0,e.jsx)(F.ZP,{type:"primary",onClick:x()(c()().mark(function C(){return c()().wrap(function(q){for(;;)switch(q.prev=q.next){case 0:P(!0);case 1:case"end":return q.stop()}},C)})),children:"\u9080\u8BF7\u9762\u8BD5"},"submit")]})},width:1e3,children:(0,e.jsxs)(K.Z,{direction:"vertical",style:{width:"100%"},children:[(Z.resume_template==0||Z.resume_template==1)&&(0,e.jsx)(y.Z,{bgcolor:"#19be6e",fontcolor:"#19be6e",id:Z==null?void 0:Z.customer_id}),(Z==null?void 0:Z.resume_template)==2&&(0,e.jsx)($.Z,{bgcolor:"#19be6e",fontcolor:"#19be6e",id:Z==null?void 0:Z.customer_id})]})}),(0,e.jsx)(i.Z,{open:ie,title:"\u53D1\u9001\u9762\u8BD5\u9080\u8BF7",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:400,onCancel:function(){P(!1)},children:(0,e.jsx)(Ze.Z,{detail:Z,closeModel:A})})]})]})})},ft=Ve,je=n(66309),Fe=function(D){var L=D.changeData,T=(0,a.useRef)(),U=(0,a.useState)([]),M=r()(U,2),ae=M[0],Q=M[1],_=(0,a.useState)(0),E=r()(_,2),Z=E[0],k=E[1],G=(0,a.useState)(1),J=r()(G,2),De=J[0],we=J[1],Ee=(0,a.useState)(9),de=r()(Ee,2),Xe=de[0],Qe=de[1],Oe=(0,a.useState)(0),Y=r()(Oe,2),W=Y[0],V=Y[1],Ye=(0,a.useState)(""),pe=r()(Ye,2),nt=pe[0],qe=pe[1],_e=(0,a.useState)(0),he=r()(_e,2),tt=he[0],ke=he[1];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(B.Z,{virtual:!0,scroll:{x:"100%"},actionRef:T,dataSource:ae,columns:[{title:"\u59D3\u540D",dataIndex:"customer_name"},{title:"\u6027\u522B",dataIndex:"gender",search:!1},{title:"\u5E94\u8058\u804C\u4F4D",dataIndex:"job_name",valueType:"select",renderFormItem:function(){return(0,e.jsx)(ge.Z,{fieldProps:{fieldNames:ze.RI},request:function(){var I=x()(c()().mark(function v(me){return c()().wrap(function(O){for(;;)switch(O.prev=O.next){case 0:return O.abrupt("return",(0,Te.k)({page:1,pagesize:100,keyword:me.keyWords}).then(function(le){return le.data.list}));case 1:case"end":return O.stop()}},v)}));return function(v){return I.apply(this,arguments)}}(),placeholder:"\u8BF7\u9009\u62E9\u804C\u4F4D",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u804C\u4F4D"}],onChange:function(v){V(v)}})}},{title:"\u9762\u8BD5\u65F6\u95F4",dataIndex:"invite_date_txt",search:!1},{title:"\u6C42\u804C\u8005\u67E5\u770B\u72B6\u6001",dataIndex:"read_status",search:!1,valueType:"select",valueEnum:{0:{text:"\u5168\u90E8"},1:{text:"\u672A\u67E5\u770B"},2:{text:"\u5DF2\u67E5\u770B"}},render:function(I,v){return(0,e.jsxs)(e.Fragment,{children:[v.read_status==1&&(0,e.jsx)(je.Z,{children:"\u5F85\u6C42\u804C\u8005\u67E5\u770B"}),v.read_status==2&&(0,e.jsx)(je.Z,{color:"#4FBE70",children:"\u5DF2\u67E5\u770B"})]})}},{title:"\u63A5\u6536\u9762\u8BD5\u72B6\u6001",dataIndex:"view_status",search:!1,valueType:"select",valueEnum:{0:{text:"\u5168\u90E8"},1:{text:"\u672A\u67E5\u770B"},2:{text:"\u5DF2\u67E5\u770B"}},render:function(I,v){return(0,e.jsxs)(e.Fragment,{children:[v.view_status==1&&(0,e.jsx)(je.Z,{children:"\u5F85\u786E\u8BA4"}),v.view_status==2&&(0,e.jsx)(je.Z,{color:"#4FBE70",children:"\u53C2\u52A0\u9762\u8BD5"}),v.view_status==2&&(0,e.jsx)(je.Z,{children:"\u62D2\u7EDD\u9762\u8BD5"})]})}},{title:"\u5F55\u7528\u72B6\u6001",dataIndex:"employ_status",search:!1,valueType:"select",valueEnum:{0:{text:"\u5168\u90E8"},1:{text:"\u672A\u67E5\u770B"},2:{text:"\u5DF2\u67E5\u770B"}},render:function(I,v){return(0,e.jsxs)(e.Fragment,{children:[v.employ_status==1&&(0,e.jsx)(je.Z,{children:"\u5F85\u786E\u8BA4"}),v.employ_status==2&&(0,e.jsx)(je.Z,{color:"#4FBE70",children:"\u5F55\u7528"}),v.employ_status==3&&(0,e.jsx)(je.Z,{children:"\u62D2\u5F55\u7528"})]})}},{title:"\u64CD\u4F5C",valueType:"option",render:function(I,v,me){return[(0,e.jsx)(F.ZP,{type:"link",disabled:v.employ_status!=1,onClick:function(){i.Z.confirm({title:"\u53D6\u6D88\u9762\u8BD5",content:"\u662F\u5426\u8981\u53D6\u6D88\u672C\u6B21\u9762\u8BD5\uFF1F",onOk:function(){(0,w.Dz)({id:v.id}).then(function(le){var N;(N=T.current)===null||N===void 0||N.reload(),L()})},onCancel:function(){console.log("Cancel")},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0})},children:"\u53D6\u6D88\u9762\u8BD5"},"1"),(0,e.jsx)(u,{menus:[{disabled:v.view_status!=2,name:"\u5F55\u7528",key:"1",onClick:function(){i.Z.confirm({title:"\u5F55\u7528",content:"\u662F\u5426\u5F55\u7528\uFF1F",onOk:function(){(0,w.z0)({id:v.id,employ_status:2}).then(function(le){var N;(N=T.current)===null||N===void 0||N.reload(),L()})},onCancel:function(){console.log("Cancel")},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0})}},{disabled:v.view_status!=2,name:"\u62D2\u5F55\u7528",key:"2",onClick:function(){i.Z.confirm({title:"\u62D2\u5F55\u7528",content:"\u662F\u5426\u4E0D\u5F55\u7528\uFF1F",onOk:function(){(0,w.z0)({id:v.id,employ_status:3}).then(function(le){var N;(N=T.current)===null||N===void 0||N.reload(),L()})},onCancel:function(){console.log("Cancel")},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0})}}]},"actionGroup")]}}],rowKey:"id",pagination:{current:De,pageSize:Xe,showSizeChanger:!0,total:Z,pageSizeOptions:[9,18,27,99],onChange:function(I,v){we(I),Qe(v)},onShowSizeChange:function(I,v){we(I),Qe(v)}},request:x()(c()().mark(function ne(){var I,v=arguments;return c()().wrap(function(re){for(;;)switch(re.prev=re.next){case 0:return I=v.length>0&&v[0]!==void 0?v[0]:{},re.abrupt("return",(0,w.Cg)({page:De,pagesize:Xe,keyword:I.customer_name,job_id:W||"",status:I.status?Number(I.status):0}).then(function(O){Q(O.data.list),k(O.data.total),qe(I.customer_name),ke(I.status?Number(I.status):0)}));case 2:case"end":return re.stop()}},ne)})),headerTitle:"\u9762\u8BD5\u5217\u8868"})})},pt=Fe,lt=function(D){var L=D.changeData,T=(0,a.useRef)(),U=(0,a.useState)(!1),M=r()(U,2),ae=M[0],Q=M[1],_=(0,a.useState)(0),E=r()(_,2),Z=E[0],k=E[1],G=(0,a.useState)(0),J=r()(G,2),De=J[0],we=J[1],Ee=(0,a.useState)(!1),de=r()(Ee,2),Xe=de[0],Qe=de[1],Oe=(0,a.useState)(!1),Y=r()(Oe,2),W=Y[0],V=Y[1],Ye=(0,a.useState)([]),pe=r()(Ye,2),nt=pe[0],qe=pe[1],_e=(0,a.useState)(0),he=r()(_e,2),tt=he[0],ke=he[1],ne=(0,a.useState)(1),I=r()(ne,2),v=I[0],me=I[1],re=(0,a.useState)(9),O=r()(re,2),le=O[0],N=O[1],ut=(0,a.useState)(0),Ne=r()(ut,2),it=Ne[0],rt=Ne[1],ct=(0,a.useState)(""),Le=r()(ct,2),yt=Le[0],dt=Le[1],mt=(0,a.useState)(0),Je=r()(mt,2),jt=Je[0],vt=Je[1],Ce=(0,a.useState)(!1),R=r()(Ce,2),j=R[0],Ie=R[1],oe=(0,a.useState)(null),X=r()(oe,2),ee=X[0],ot=X[1],ue=function(ie){var P;Ie(ie),(P=T.current)===null||P===void 0||P.reload(),L()};return(0,a.useEffect)(function(){Q(!0)},[ee]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(H.ZP,{theme:{token:{colorPrimary:"#19be6e"},components:{Button:{colorText:"#19be6e"}}},children:[(0,e.jsx)(B.Z,{actionRef:T,dataSource:nt,columns:[{title:"\u59D3\u540D",dataIndex:"customer_name",width:100},{title:"\u6027\u522B",dataIndex:"gender",search:!1,width:80},{title:"\u671F\u671B\u804C\u4F4D",dataIndex:"desired_position_text",width:140,search:!1,ellipsis:!0},{title:"\u5B66\u5386",dataIndex:"education_text",search:!1,width:80},{title:"\u5DE5\u4F5C\u7ECF\u9A8C",dataIndex:"work_experience_text",search:!1,width:80},{title:"\u64CD\u4F5C",valueType:"option",width:140,render:function(ie,P,A){return[(0,e.jsx)(F.ZP,{type:"link",disabled:P.status==4||P.status==5,onClick:function(){(0,z.ts)({customer_id:P.customer_id}).then(function(C){ot(C.data)})},children:"\u9884\u89C8\u7B80\u5386"},"1"),(0,e.jsx)(F.ZP,{type:"link",onClick:function(){i.Z.confirm({title:"\u79FB\u51FA\u4EBA\u624D\u5E93",content:"\u786E\u5B9A\u79FB\u51FA\u4EBA\u624D\u5E93\u5417\uFF1F",onOk:function(){(0,w.mj)({selected:[P.id]}).then(function(m){var q;(q=T.current)===null||q===void 0||q.reload(),L()})},onCancel:function(){console.log("Cancel")},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0})},children:"\u79FB\u51FA\u4EBA\u624D\u5E93"},"1")]}}],rowKey:"id",pagination:{current:v,pageSize:le,showSizeChanger:!0,total:tt,pageSizeOptions:[9,18,27,99],onChange:function(ie,P){me(ie),N(P)},onShowSizeChange:function(ie,P){me(ie),N(P)}},request:x()(c()().mark(function Ae(){var ie,P=arguments;return c()().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:return ie=P.length>0&&P[0]!==void 0?P[0]:{},S.abrupt("return",(0,w.xP)({page:v,pagesize:le,customer_name:ie.customer_name}).then(function(C){qe(C.data.list),ke(C.data.total)}));case 2:case"end":return S.stop()}},Ae)})),headerTitle:"\u4EBA\u624D\u5E93"}),ee&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.Z,{title:"\u9884\u89C8\u7B80\u5386",centered:!0,destroyOnClose:!0,closable:!1,open:ae,footer:function(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(F.ZP,{onClick:function(){Q(!1)},children:"\u5173\u95ED"},"back"),(0,e.jsx)(F.ZP,{type:"primary",onClick:x()(c()().mark(function ie(){var P,A,S;return c()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return P=document.getElementById("resume-box"),A=h.m(P==null?void 0:P.outerHTML),m.next=4,A;case 4:S=m.sent,(0,b.saveAs)(S,"\u4E2A\u4EBA\u7B80\u5386.docx");case 6:case"end":return m.stop()}},ie)})),children:"\u4E0B\u8F7D\u7B80\u5386"},"submit"),(0,e.jsx)(F.ZP,{type:"primary",onClick:x()(c()().mark(function ie(){return c()().wrap(function(A){for(;;)switch(A.prev=A.next){case 0:Ie(!0);case 1:case"end":return A.stop()}},ie)})),children:"\u9080\u8BF7\u9762\u8BD5"},"submit")]})},width:1e3,children:(0,e.jsxs)(K.Z,{direction:"vertical",style:{width:"100%"},children:[(ee.resume_template==0||ee.resume_template==1)&&(0,e.jsx)(y.Z,{bgcolor:"#19be6e",fontcolor:"#19be6e",id:ee==null?void 0:ee.customer_id}),(ee==null?void 0:ee.resume_template)==2&&(0,e.jsx)($.Z,{bgcolor:"#19be6e",fontcolor:"#19be6e",id:ee==null?void 0:ee.customer_id})]})}),(0,e.jsx)(i.Z,{open:j,title:"\u53D1\u9001\u9762\u8BD5\u9080\u8BF7",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:400,onCancel:function(){Ie(!1)},children:(0,e.jsx)(Ze.Z,{detail:ee,closeModel:ue})})]})]})})},et=lt,Pe=function(D){var L=D.changeData,T=(0,a.useRef)(),U=(0,a.useState)(!1),M=r()(U,2),ae=M[0],Q=M[1],_=(0,a.useState)(0),E=r()(_,2),Z=E[0],k=E[1],G=(0,a.useState)(0),J=r()(G,2),De=J[0],we=J[1],Ee=(0,a.useState)(!1),de=r()(Ee,2),Xe=de[0],Qe=de[1],Oe=(0,a.useState)(!1),Y=r()(Oe,2),W=Y[0],V=Y[1],Ye=(0,a.useState)([]),pe=r()(Ye,2),nt=pe[0],qe=pe[1],_e=(0,a.useState)(0),he=r()(_e,2),tt=he[0],ke=he[1],ne=(0,a.useState)(1),I=r()(ne,2),v=I[0],me=I[1],re=(0,a.useState)(9),O=r()(re,2),le=O[0],N=O[1],ut=(0,a.useState)(0),Ne=r()(ut,2),it=Ne[0],rt=Ne[1],ct=(0,a.useState)(""),Le=r()(ct,2),yt=Le[0],dt=Le[1],mt=(0,a.useState)(0),Je=r()(mt,2),jt=Je[0],vt=Je[1];return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(H.ZP,{theme:{token:{colorPrimary:"#19be6e"},components:{Button:{colorText:"#19be6e"}}},children:(0,e.jsx)(B.Z,{actionRef:T,dataSource:nt,search:!1,columns:[{title:"\u59D3\u540D",dataIndex:"customer_name",search:!1,width:100},{title:"\u6027\u522B",dataIndex:"gender",search:!1,width:80},{title:"\u5B66\u5386",dataIndex:"education_txt",search:!1,width:180},{title:"\u64CD\u4F5C",valueType:"option",width:140,render:function(R,j,Ie){return[(0,e.jsx)(F.ZP,{type:"link",disabled:j.status==4||j.status==5,onClick:function(){},children:(0,e.jsx)(be.Link,{to:{pathname:"/talent/resume/detail?id=".concat(j.customer_id)},children:"\u9884\u89C8\u7B80\u5386"})},"1"),(0,e.jsx)(F.ZP,{type:"link",onClick:function(){i.Z.confirm({title:"\u79FB\u51FA\u56DE\u6536\u7AD9",content:"\u786E\u5B9A\u79FB\u51FA\u56DE\u6536\u7AD9\u5417\uFF1F",onOk:function(){(0,w.Og)({selected:[j.id]}).then(function(ee){var ot;(ot=T.current)===null||ot===void 0||ot.reload(),L()})},onCancel:function(){console.log("Cancel")},okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",centered:!0})},children:"\u79FB\u51FA\u56DE\u6536\u7AD9"},"1")]}}],rowKey:"id",pagination:{current:v,pageSize:le,showSizeChanger:!0,total:tt,pageSizeOptions:[9,18,27,99],onChange:function(R,j){me(R),N(j)},onShowSizeChange:function(R,j){me(R),N(j)}},request:x()(c()().mark(function Ce(){var R,j=arguments;return c()().wrap(function(oe){for(;;)switch(oe.prev=oe.next){case 0:return R=j.length>0&&j[0]!==void 0?j[0]:{},oe.abrupt("return",(0,w.Qt)({page:v,pagesize:le}).then(function(X){qe(X.data.list),ke(X.data.total)}));case 2:case"end":return oe.stop()}},Ce)})),headerTitle:"\u56DE\u6536\u7AD9"})})})},Ct=Pe,ht=function(){var D=(0,a.useRef)(),L=(0,a.useState)(!1),T=r()(L,2),U=T[0],M=T[1],ae=(0,a.useState)(0),Q=r()(ae,2),_=Q[0],E=Q[1],Z=(0,a.useState)(0),k=r()(Z,2),G=k[0],J=k[1],De=(0,a.useState)(!1),we=r()(De,2),Ee=we[0],de=we[1],Xe=(0,a.useState)(!1),Qe=r()(Xe,2),Oe=Qe[0],Y=Qe[1],W=(0,a.useState)([]),V=r()(W,2),Ye=V[0],pe=V[1],nt=(0,a.useState)(0),qe=r()(nt,2),_e=qe[0],he=qe[1],tt=(0,a.useState)(1),ke=r()(tt,2),ne=ke[0],I=ke[1],v=(0,a.useState)(9),me=r()(v,2),re=me[0],O=me[1],le=(0,a.useState)(0),N=r()(le,2),ut=N[0],Ne=N[1],it=(0,a.useState)(""),rt=r()(it,2),ct=rt[0],Le=rt[1],yt=(0,a.useState)(0),dt=r()(yt,2),mt=dt[0],Je=dt[1],jt=(0,a.useState)("oneModel"),vt=r()(jt,2),Ce=vt[0],R=vt[1],j=(0,a.useState)(!1),Ie=r()(j,2),oe=Ie[0],X=Ie[1],ee=(0,a.useState)(null),ot=r()(ee,2),ue=ot[0],Ae=ot[1],ie=function(A){var S;X(A),(S=D.current)===null||S===void 0||S.reload()};return(0,a.useEffect)(function(){M(!0)},[ue]),(0,e.jsx)(e.Fragment,{children:(0,e.jsxs)(H.ZP,{theme:{token:{colorPrimary:"#19be6e"},components:{Button:{colorText:"#19be6e"}}},children:[(0,e.jsx)(B.Z,{actionRef:D,dataSource:Ye,columns:[{title:"\u59D3\u540D",dataIndex:"customer_name",width:100},{title:"\u6027\u522B",dataIndex:"gender",search:!1,width:80},{title:"\u671F\u671B\u804C\u4F4D",dataIndex:"desired_position_text",width:140,search:!1,ellipsis:!0},{title:"\u5B66\u5386",dataIndex:"education_text",search:!1,width:80},{title:"\u5DE5\u4F5C\u7ECF\u9A8C",dataIndex:"work_experience_text",search:!1,width:80},{title:"\u8054\u7CFB\u65B9\u5F0F",dataIndex:["contact","mobile"],search:!1,width:180},{title:"\u64CD\u4F5C",valueType:"option",width:140,render:function(A,S,C){return[(0,e.jsx)(F.ZP,{type:"link",disabled:S.status==4||S.status==5,onClick:function(){(0,z.ts)({customer_id:S.customer_id}).then(function(q){Ae(q.data)})},children:"\u9884\u89C8\u7B80\u5386"},"1")]}}],rowKey:"id",pagination:{current:ne,pageSize:re,showSizeChanger:!0,total:_e,pageSizeOptions:[9,18,27,99],onChange:function(A,S){I(A),O(S)},onShowSizeChange:function(A,S){I(A),O(S)}},request:x()(c()().mark(function P(){var A,S=arguments;return c()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:return A=S.length>0&&S[0]!==void 0?S[0]:{},m.abrupt("return",(0,w.s4)({page:ne,pagesize:re,customer_name:A.customer_name}).then(function(q){pe(q.data.list?q.data.list:[]),he(q.data.total)}));case 2:case"end":return m.stop()}},P)})),headerTitle:"\u5DF2\u83B7\u53D6\u8054\u7CFB\u65B9\u5F0F"}),ue&&(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(i.Z,{title:"\u9884\u89C8\u7B80\u5386",centered:!0,destroyOnClose:!0,closable:!1,open:U,footer:function(){return(0,e.jsxs)(e.Fragment,{children:[(0,e.jsx)(F.ZP,{onClick:function(){M(!1)},children:"\u5173\u95ED"},"back"),(0,e.jsx)(F.ZP,{type:"primary",onClick:x()(c()().mark(function A(){var S,C,m;return c()().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return S=document.getElementById("resume-box"),C=h.m(S==null?void 0:S.outerHTML),ce.next=4,C;case 4:m=ce.sent,(0,b.saveAs)(m,"\u4E2A\u4EBA\u7B80\u5386.docx");case 6:case"end":return ce.stop()}},A)})),children:"\u4E0B\u8F7D\u7B80\u5386"},"submit"),(0,e.jsx)(F.ZP,{type:"primary",onClick:x()(c()().mark(function A(){return c()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:X(!0);case 1:case"end":return C.stop()}},A)})),children:"\u9080\u8BF7\u9762\u8BD5"},"submit")]})},width:1e3,children:(0,e.jsxs)(K.Z,{direction:"vertical",style:{width:"100%"},children:[(ue.resume_template==0||ue.resume_template==1)&&(0,e.jsx)(y.Z,{bgcolor:"#19be6e",fontcolor:"#19be6e",id:ue==null?void 0:ue.customer_id}),(ue==null?void 0:ue.resume_template)==2&&(0,e.jsx)($.Z,{bgcolor:"#19be6e",fontcolor:"#19be6e",id:ue==null?void 0:ue.customer_id})]})}),(0,e.jsx)(i.Z,{open:oe,title:"\u53D1\u9001\u9762\u8BD5\u9080\u8BF7",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:400,onCancel:function(){X(!1)},children:(0,e.jsx)(Ze.Z,{detail:ue,closeModel:ie})})]})]})})},xt=ht,fe=function(){var D=(0,a.useState)(0),L=r()(D,2),T=L[0],U=L[1],M=(0,a.useState)(0),ae=r()(M,2),Q=ae[0],_=ae[1],E=(0,a.useState)(0),Z=r()(E,2),k=Z[0],G=Z[1],J=(0,a.useState)(0),De=r()(J,2),we=De[0],Ee=De[1],de=(0,a.useState)(0),Xe=r()(de,2),Qe=Xe[0],Oe=Xe[1];(0,a.useEffect)(function(){(0,w.EZ)({page:1,pagesize:10,status:1}).then(function(W){U(W.data.total?W.data.total:0)}),(0,w.Cg)({page:1,pagesize:10}).then(function(W){_(W.data.total?W.data.total:0)}),(0,w.EZ)({page:1,pagesize:10,status:2}).then(function(W){G(W.data.total?W.data.total:0)}),(0,w.xP)({page:1,pagesize:10}).then(function(W){Ee(W.data.total?W.data.total:0)}),(0,w.Qt)({page:1,pagesize:10}).then(function(W){Oe(W.data.total?W.data.total:0)})},[]);var Y=function(){(0,w.EZ)({page:1,pagesize:10,status:1}).then(function(V){U(V.data.total?V.data.total:0)}),(0,w.Cg)({page:1,pagesize:10}).then(function(V){_(V.data.total?V.data.total:0)}),(0,w.EZ)({page:1,pagesize:10,status:2}).then(function(V){G(V.data.total?V.data.total:0)}),(0,w.xP)({page:1,pagesize:10}).then(function(V){Ee(V.data.total?V.data.total:0)}),(0,w.Qt)({page:1,pagesize:10}).then(function(V){Oe(V.data.total?V.data.total:0)})};return(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(H.ZP,{theme:{token:{colorPrimary:"#19be6e"},components:{Button:{colorText:"#19be6e"}}},children:(0,e.jsx)(se._z,{header:{title:""},style:{minHeight:800},children:(0,e.jsxs)(K.Z,{direction:"vertical",size:30,style:{width:"100%"},children:[(0,e.jsx)(Be.Z,{children:(0,e.jsxs)(He.Z,{justify:"space-between",style:{width:"100%"},children:[(0,e.jsx)(ve.Z,{title:"\u5F85\u770B\u7B80\u5386",value:T,valueStyle:{color:"#19be6e"}}),(0,e.jsx)(ve.Z,{title:"\u9080\u8BF7\u9762\u8BD5",value:Q}),(0,e.jsx)(ve.Z,{title:"\u5DF2\u67E5\u770B",value:k}),(0,e.jsx)(ve.Z,{title:"\u4EBA\u624D\u5E93",value:we}),(0,e.jsx)(ve.Z,{title:"\u56DE\u6536\u7AD9",value:Qe})]})}),(0,e.jsx)(Re.Z,{tabPosition:"left",destroyInactiveTabPane:!0,type:"card",items:[{key:"1",label:"\u5F85\u770B\u7B80\u5386",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(Ke,{changeData:Y})})},{key:"2",label:"\u5DF2\u67E5\u770B",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(ft,{changeData:Y})})},{key:"3",label:"\u9762\u8BD5\u9080\u8BF7",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(pt,{changeData:Y})})},{key:"4",label:"\u4EBA\u624D\u5E93",children:(0,e.jsx)(e.Fragment,{children:(0,e.jsx)(et,{changeData:Y})})},{key:"5",label:"\u56DE\u6536\u7AD9",children:(0,e.jsx)(Ct,{changeData:Y})},{key:"6",label:"\u5DF2\u83B7\u53D6\u8054\u7CFB\u65B9\u5F0F",children:(0,e.jsx)(xt,{})}]})]})})})})},bt=fe},72131:function(gt,xe,n){n.d(xe,{by:function(){return We},k:function(){return He},ME:function(){return Be},d8:function(){return H},GR:function(){return K},f5:function(){return ve},Dl:function(){return w},Kp:function(){return Re},st:function(){return Se},l8:function(){return c},xc:function(){return x},$Z:function(){return se}});var s=n(75334),r=n(55375),a={JobSearch:r.xw+"/job/search",JobCompanyjobs:r.xw+"/job/companyjobs",JobDetail:r.xw+"/job/detail",JobAuthdetail:r.xw+"/job/authdetail",CompanyJobList:r.xw+"/company/job_list",CompanyJobAdd:r.xw+"/company/job_add",CompanyJobEdit:r.xw+"/company/job_edit",CompanyJobDel:r.xw+"/company/job_del",CompanyJobInfo:r.xw+"/company/job_info",CompanyJobStatusChange:r.xw+"/company/job_status_change",CompanyJobRecycle:r.xw+"/company/job_recycle",CompanyJobrecoverRecycle:r.xw+"/company/job_recover_recycle"},se=(0,s.L)(a.JobSearch),H=(0,s.y)(a.JobCompanyjobs),K=(0,s.y)(a.JobDetail),Be=(0,s.y)(a.JobAuthdetail),He=(0,s.y)(a.CompanyJobList),ve=(0,s.L)(a.CompanyJobAdd),Re=(0,s.L)(a.CompanyJobEdit),w=(0,s.L)(a.CompanyJobDel),We=(0,s.y)(a.CompanyJobInfo),c=(0,s.L)(a.CompanyJobStatusChange),Se=(0,s.L)(a.CompanyJobRecycle),x=(0,s.L)(a.CompanyJobrecoverRecycle)},5251:function(gt,xe,n){n.d(xe,{Y:function(){return se},_:function(){return a}});var s=n(27484),r=n.n(s),a=function(K){return K&&K<r()().endOf("day")},se=function(K){return K&&K>r()().endOf("day")}},55054:function(gt,xe,n){n.d(xe,{Z:function(){return at}});var s=n(67294),r=n(57838),a=n(96159),se=n(93967),H=n.n(se),K=n(64217),Be=n(53124),He=n(48054),Re=f=>{const{value:d,formatter:g,precision:t,decimalSeparator:o,groupSeparator:p="",prefixCls:l}=f;let u;if(typeof g=="function")u=g(d);else{const i=String(d),h=i.match(/^(-?)(\d*)(\.(\d+))?$/);if(!h||i==="-")u=i;else{const b=h[1];let z=h[2]||"0",y=h[4]||"";z=z.replace(/\B(?=(\d{3})+(?!\d))/g,p),typeof t=="number"&&(y=y.padEnd(t,"0").slice(0,t>0?t:0)),y&&(y=`${o}${y}`),u=[s.createElement("span",{key:"int",className:`${l}-content-value-int`},b,z),y&&s.createElement("span",{key:"decimal",className:`${l}-content-value-decimal`},y)]}}return s.createElement("span",{className:`${l}-content-value`},u)},w=n(14747),We=n(83559),c=n(83262);const Se=f=>{const{componentCls:d,marginXXS:g,padding:t,colorTextDescription:o,titleFontSize:p,colorTextHeading:l,contentFontSize:u,fontFamily:i}=f;return{[d]:Object.assign(Object.assign({},(0,w.Wf)(f)),{[`${d}-title`]:{marginBottom:g,color:o,fontSize:p},[`${d}-skeleton`]:{paddingTop:t},[`${d}-content`]:{color:l,fontSize:u,fontFamily:i,[`${d}-content-value`]:{display:"inline-block",direction:"ltr"},[`${d}-content-prefix, ${d}-content-suffix`]:{display:"inline-block"},[`${d}-content-prefix`]:{marginInlineEnd:g},[`${d}-content-suffix`]:{marginInlineStart:g}}})}},x=f=>{const{fontSizeHeading3:d,fontSize:g}=f;return{titleFontSize:g,contentFontSize:d}};var B=(0,We.I$)("Statistic",f=>{const d=(0,c.IX)(f,{});return[Se(d)]},x),ge=function(f,d){var g={};for(var t in f)Object.prototype.hasOwnProperty.call(f,t)&&d.indexOf(t)<0&&(g[t]=f[t]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(f);o<t.length;o++)d.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(f,t[o])&&(g[t[o]]=f[t[o]]);return g},be=f=>{const{prefixCls:d,className:g,rootClassName:t,style:o,valueStyle:p,value:l=0,title:u,valueRender:i,prefix:h,suffix:b,loading:z=!1,formatter:y,precision:$,decimalSeparator:Ze=".",groupSeparator:Ve=",",onMouseEnter:ft,onMouseLeave:je}=f,Fe=ge(f,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:pt,direction:lt,statistic:et}=s.useContext(Be.E_),Pe=pt("statistic",d),[Ct,ht,xt]=B(Pe),fe=s.createElement(Re,{decimalSeparator:Ze,groupSeparator:Ve,prefixCls:Pe,formatter:y,precision:$,value:l}),bt=H()(Pe,{[`${Pe}-rtl`]:lt==="rtl"},et==null?void 0:et.className,g,t,ht,xt),Me=(0,K.Z)(Fe,{aria:!0,data:!0});return Ct(s.createElement("div",Object.assign({},Me,{className:bt,style:Object.assign(Object.assign({},et==null?void 0:et.style),o),onMouseEnter:ft,onMouseLeave:je}),u&&s.createElement("div",{className:`${Pe}-title`},u),s.createElement(He.Z,{paragraph:!1,loading:z,className:`${Pe}-skeleton`},s.createElement("div",{style:p,className:`${Pe}-content`},h&&s.createElement("span",{className:`${Pe}-content-prefix`},h),i?i(fe):fe,b&&s.createElement("span",{className:`${Pe}-content-suffix`},b)))))};const ze=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function Te(f,d){let g=f;const t=/\[[^\]]*]/g,o=(d.match(t)||[]).map(i=>i.slice(1,-1)),p=d.replace(t,"[]"),l=ze.reduce((i,h)=>{let[b,z]=h;if(i.includes(b)){const y=Math.floor(g/z);return g-=y*z,i.replace(new RegExp(`${b}+`,"g"),$=>{const Ze=$.length;return y.toString().padStart(Ze,"0")})}return i},p);let u=0;return l.replace(t,()=>{const i=o[u];return u+=1,i})}function e(f,d){const{format:g=""}=d,t=new Date(f).getTime(),o=Date.now(),p=Math.max(t-o,0);return Te(p,g)}var $e=function(f,d){var g={};for(var t in f)Object.prototype.hasOwnProperty.call(f,t)&&d.indexOf(t)<0&&(g[t]=f[t]);if(f!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,t=Object.getOwnPropertySymbols(f);o<t.length;o++)d.indexOf(t[o])<0&&Object.prototype.propertyIsEnumerable.call(f,t[o])&&(g[t[o]]=f[t[o]]);return g};const Ke=1e3/30;function Ue(f){return new Date(f).getTime()}const te=f=>{const{value:d,format:g="HH:mm:ss",onChange:t,onFinish:o}=f,p=$e(f,["value","format","onChange","onFinish"]),l=(0,r.Z)(),u=s.useRef(null),i=()=>{o==null||o(),u.current&&(clearInterval(u.current),u.current=null)},h=()=>{const y=Ue(d);y>=Date.now()&&(u.current=setInterval(()=>{l(),t==null||t(y-Date.now()),y<Date.now()&&i()},Ke))};s.useEffect(()=>(h(),()=>{u.current&&(clearInterval(u.current),u.current=null)}),[d]);const b=(y,$)=>e(y,Object.assign(Object.assign({},$),{format:g})),z=y=>(0,a.Tm)(y,{title:void 0});return s.createElement(be,Object.assign({},p,{value:d,valueRender:z,formatter:b}))};var Ge=s.memo(te);be.Countdown=Ge;var at=be},66309:function(gt,xe,n){n.d(xe,{Z:function(){return g}});var s=n(67294),r=n(93967),a=n.n(r),se=n(98423),H=n(98787),K=n(69760),Be=n(96159),He=n(45353),ve=n(53124),Re=n(11568),w=n(15063),We=n(14747),c=n(83262),Se=n(83559);const x=t=>{const{paddingXXS:o,lineWidth:p,tagPaddingHorizontal:l,componentCls:u,calc:i}=t,h=i(l).sub(p).equal(),b=i(o).sub(p).equal();return{[u]:Object.assign(Object.assign({},(0,We.Wf)(t)),{display:"inline-block",height:"auto",marginInlineEnd:t.marginXS,paddingInline:h,fontSize:t.tagFontSize,lineHeight:t.tagLineHeight,whiteSpace:"nowrap",background:t.defaultBg,border:`${(0,Re.bf)(t.lineWidth)} ${t.lineType} ${t.colorBorder}`,borderRadius:t.borderRadiusSM,opacity:1,transition:`all ${t.motionDurationMid}`,textAlign:"start",position:"relative",[`&${u}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:t.defaultColor},[`${u}-close-icon`]:{marginInlineStart:b,fontSize:t.tagIconSize,color:t.colorTextDescription,cursor:"pointer",transition:`all ${t.motionDurationMid}`,"&:hover":{color:t.colorTextHeading}},[`&${u}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${t.iconCls}-close, ${t.iconCls}-close:hover`]:{color:t.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${u}-checkable-checked):hover`]:{color:t.colorPrimary,backgroundColor:t.colorFillSecondary},"&:active, &-checked":{color:t.colorTextLightSolid},"&-checked":{backgroundColor:t.colorPrimary,"&:hover":{backgroundColor:t.colorPrimaryHover}},"&:active":{backgroundColor:t.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${t.iconCls} + span, > span + ${t.iconCls}`]:{marginInlineStart:h}}),[`${u}-borderless`]:{borderColor:"transparent",background:t.tagBorderlessBg}}},B=t=>{const{lineWidth:o,fontSizeIcon:p,calc:l}=t,u=t.fontSizeSM;return(0,c.IX)(t,{tagFontSize:u,tagLineHeight:(0,Re.bf)(l(t.lineHeightSM).mul(u).equal()),tagIconSize:l(p).sub(l(o).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:t.defaultBg})},ge=t=>({defaultBg:new w.t(t.colorFillQuaternary).onBackground(t.colorBgContainer).toHexString(),defaultColor:t.colorText});var F=(0,Se.I$)("Tag",t=>{const o=B(t);return x(o)},ge),be=function(t,o){var p={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&o.indexOf(l)<0&&(p[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(t);u<l.length;u++)o.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(t,l[u])&&(p[l[u]]=t[l[u]]);return p},Te=s.forwardRef((t,o)=>{const{prefixCls:p,style:l,className:u,checked:i,onChange:h,onClick:b}=t,z=be(t,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:y,tag:$}=s.useContext(ve.E_),Ze=lt=>{h==null||h(!i),b==null||b(lt)},Ve=y("tag",p),[ft,je,Fe]=F(Ve),pt=a()(Ve,`${Ve}-checkable`,{[`${Ve}-checkable-checked`]:i},$==null?void 0:$.className,u,je,Fe);return ft(s.createElement("span",Object.assign({},z,{ref:o,style:Object.assign(Object.assign({},l),$==null?void 0:$.style),className:pt,onClick:Ze})))}),e=n(98719);const $e=t=>(0,e.Z)(t,(o,p)=>{let{textColor:l,lightBorderColor:u,lightColor:i,darkColor:h}=p;return{[`${t.componentCls}${t.componentCls}-${o}`]:{color:l,background:i,borderColor:u,"&-inverse":{color:t.colorTextLightSolid,background:h,borderColor:h},[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}});var Ke=(0,Se.bk)(["Tag","preset"],t=>{const o=B(t);return $e(o)},ge);function Ue(t){return typeof t!="string"?t:t.charAt(0).toUpperCase()+t.slice(1)}const te=(t,o,p)=>{const l=Ue(p);return{[`${t.componentCls}${t.componentCls}-${o}`]:{color:t[`color${p}`],background:t[`color${l}Bg`],borderColor:t[`color${l}Border`],[`&${t.componentCls}-borderless`]:{borderColor:"transparent"}}}};var Ge=(0,Se.bk)(["Tag","status"],t=>{const o=B(t);return[te(o,"success","Success"),te(o,"processing","Info"),te(o,"error","Error"),te(o,"warning","Warning")]},ge),at=function(t,o){var p={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&o.indexOf(l)<0&&(p[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,l=Object.getOwnPropertySymbols(t);u<l.length;u++)o.indexOf(l[u])<0&&Object.prototype.propertyIsEnumerable.call(t,l[u])&&(p[l[u]]=t[l[u]]);return p};const d=s.forwardRef((t,o)=>{const{prefixCls:p,className:l,rootClassName:u,style:i,children:h,icon:b,color:z,onClose:y,bordered:$=!0,visible:Ze}=t,Ve=at(t,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:ft,direction:je,tag:Fe}=s.useContext(ve.E_),[pt,lt]=s.useState(!0),et=(0,se.Z)(Ve,["closeIcon","closable"]);s.useEffect(()=>{Ze!==void 0&<(Ze)},[Ze]);const Pe=(0,H.o2)(z),Ct=(0,H.yT)(z),ht=Pe||Ct,xt=Object.assign(Object.assign({backgroundColor:z&&!ht?z:void 0},Fe==null?void 0:Fe.style),i),fe=ft("tag",p),[bt,Me,D]=F(fe),L=a()(fe,Fe==null?void 0:Fe.className,{[`${fe}-${z}`]:ht,[`${fe}-has-color`]:z&&!ht,[`${fe}-hidden`]:!pt,[`${fe}-rtl`]:je==="rtl",[`${fe}-borderless`]:!$},l,u,Me,D),T=E=>{E.stopPropagation(),y==null||y(E),!E.defaultPrevented&<(!1)},[,U]=(0,K.Z)((0,K.w)(t),(0,K.w)(Fe),{closable:!1,closeIconRender:E=>{const Z=s.createElement("span",{className:`${fe}-close-icon`,onClick:T},E);return(0,Be.wm)(E,Z,k=>({onClick:G=>{var J;(J=k==null?void 0:k.onClick)===null||J===void 0||J.call(k,G),T(G)},className:a()(k==null?void 0:k.className,`${fe}-close-icon`)}))}}),M=typeof Ve.onClick=="function"||h&&h.type==="a",ae=b||null,Q=ae?s.createElement(s.Fragment,null,ae,h&&s.createElement("span",null,h)):h,_=s.createElement("span",Object.assign({},et,{ref:o,className:L,style:xt}),Q,U,Pe&&s.createElement(Ke,{key:"preset",prefixCls:fe}),Ct&&s.createElement(Ge,{key:"status",prefixCls:fe}));return bt(M?s.createElement(He.Z,{component:"Tag"},_):_)});d.CheckableTag=Te;var g=d}}]);
|