1 |
- "use strict";(self.webpackChunk=self.webpackChunk||[]).push([[8998],{64317:function(q,j,e){var n=e(1413),t=e(45987),r=e(22270),f=e(67294),E=e(66758),u=e(36723),p=e(85893),I=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],S=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],Z=function(y,B){var A=y.fieldProps,w=y.children,V=y.params,G=y.proFieldProps,W=y.mode,z=y.valueEnum,K=y.request,N=y.showSearch,M=y.options,H=(0,t.Z)(y,I),X=(0,f.useContext)(E.Z);return(0,p.jsx)(u.Z,(0,n.Z)((0,n.Z)({valueEnum:(0,r.h)(z),request:K,params:V,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,n.Z)({options:M,mode:W,showSearch:N,getPopupContainer:X.getPopupContainer},A),ref:B,proFieldProps:G},H),{},{children:w}))},D=f.forwardRef(function(h,y){var B=h.fieldProps,A=h.children,w=h.params,V=h.proFieldProps,G=h.mode,W=h.valueEnum,z=h.request,K=h.options,N=(0,t.Z)(h,S),M=(0,n.Z)({options:K,mode:G||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},B),H=(0,f.useContext)(E.Z);return(0,p.jsx)(u.Z,(0,n.Z)((0,n.Z)({valueEnum:(0,r.h)(W),request:z,params:w,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,n.Z)({getPopupContainer:H.getPopupContainer},M),ref:y,proFieldProps:V},N),{},{children:A}))}),U=f.forwardRef(Z),P=D,x=U;x.SearchSelect=P,x.displayName="ProFormComponent",j.Z=x},45073:function(q,j,e){var n=e(75891),t=e(21532),r=e(32983),f=e(85893),E=function(p){var I=p.description;return(0,f.jsx)(f.Fragment,{children:(0,f.jsx)(t.ZP,{theme:{token:{colorPrimary:"#19be6e"},components:{}},children:(0,f.jsx)(r.Z,{description:I})})})};j.Z=(0,n.connect)(function(u){var p=u.dictModel;return{dictModel:p}})(E)},2205:function(q,j,e){e.d(j,{Z:function(){return oe}});var n=e(15009),t=e.n(n),r=e(99289),f=e.n(r),E=e(67294),u=e(75891),p=e(97269),I=e(64317),S=e(1413),Z=e(45987),D=e(66758),U=e(36723),P=e(85893),x=["fieldProps","proFieldProps"],h="dateTime",y=E.forwardRef(function(a,R){var o=a.fieldProps,c=a.proFieldProps,d=(0,Z.Z)(a,x),s=(0,E.useContext)(D.Z);return(0,P.jsx)(U.Z,(0,S.Z)({ref:R,fieldProps:(0,S.Z)({getPopupContainer:s.getPopupContainer},o),valueType:h,proFieldProps:c,filedConfig:{valueType:h,customLightMode:!0}},d))}),B=y,A=e(21532),w=e(86250),V=e(42075),G=e(68872),W=e(71230),z=e(15746),K=e(5251),N=e(55375),M=e(70489),H=e(72131),X=function(R){var o=R.dispatch,c=R.dictModel,d=R.detail,s=R.closeModel,l=(0,E.useRef)();return(0,P.jsx)(P.Fragment,{children:(0,P.jsx)(A.ZP,{theme:{token:{colorPrimary:"#19be6e"},components:{}},children:(0,P.jsx)(p.A,{formRef:l,request:f()(t()().mark(function v(){return t()().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:if(!(d&&d.id)){C.next=4;break}return C.abrupt("return",d);case 4:return C.abrupt("return",{});case 5:case"end":return C.stop()}},v)})),submitter:{searchConfig:{resetText:"\u6682\u4E0D\u9080\u8BF7",submitText:"\u53D1\u9001\u9080\u8BF7"},render:function(m,C){return(0,P.jsxs)(w.Z,{justify:"flex-end",children:[" ",(0,P.jsx)(V.Z,{children:C})]})},onReset:function(){s(!1)}},onFinish:function(){var v=f()(t()().mark(function m(C){var O;return t()().wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return C.customer_id=d.customer_id,_.next=3,(0,M.su)(C);case 3:O=_.sent,G.ZP.success("\u5DF2\u53D1\u9001\u9762\u8BD5\u9080\u8BF7"),s(!1);case 6:case"end":return _.stop()}},m)}));return function(m){return v.apply(this,arguments)}}(),children:(0,P.jsxs)(W.Z,{gutter:[16,16],children:[(0,P.jsx)(z.Z,{span:24,children:(0,P.jsx)(I.Z,{label:"\u9762\u8BD5\u804C\u4F4D",name:"job_id",fieldProps:{fieldNames:N.RI},request:function(){var v=f()(t()().mark(function m(C){return t()().wrap(function(F){for(;;)switch(F.prev=F.next){case 0:return F.abrupt("return",(0,H.k)({page:1,pagesize:999,keyword:C.keyWords}).then(function(_){return _.data.list}));case 1:case"end":return F.stop()}},m)}));return function(m){return v.apply(this,arguments)}}(),placeholder:"\u8BF7\u9009\u62E9\u9762\u8BD5\u804C\u4F4D",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9762\u8BD5\u804C\u4F4D"}]})}),(0,P.jsx)(z.Z,{span:24,children:(0,P.jsx)(B,{width:"lg",name:"interview_date_time",label:"\u9762\u8BD5\u65F6\u95F4",placeholder:"\u8BF7\u9009\u62E9\u9762\u8BD5\u65F6\u95F4",fieldProps:{format:function(m){return m.format("YYYY-MM-DD HH:mm:ss")},disabledDate:K._},rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u9762\u8BD5\u65F6\u95F4"}]})})]})})})})},oe=(0,u.connect)(function(a){var R=a.dictModel;return{dictModel:R}})(X)},98998:function(q,j,e){var n=e(15009),t=e.n(n),r=e(99289),f=e.n(r),E=e(5574),u=e.n(E),p=e(67294),I=e(21532),S=e(71230),Z=e(15746),D=e(42075),U=e(86250),P=e(7134),x=e(66309),h=e(96074),y=e(26412),B=e(84611),A=e(17788),w=e(83622),V=e(55375),G=e(97088),W=e(93162),z=e.n(W),K=e(70489),N=e(45073),M=e(24458),H=e(52087),X=e(48273),oe=e(2205),a=e(85893),R=function(){var c=(0,p.useRef)(),d=(0,p.useState)([]),s=u()(d,2),l=s[0],v=s[1],m=(0,p.useState)(1),C=u()(m,2),O=C[0],F=C[1],_=(0,p.useState)(10),Q=u()(_,2),Y=Q[0],ae=Q[1],re=(0,p.useState)(0),J=u()(re,2),se=J[0],ee=J[1],me=(0,p.useState)(!1),le=u()(me,2),de=le[0],ne=le[1],pe=(0,p.useState)("oneModel"),T=u()(pe,2),Pe=T[0],he=T[1],Ce=(0,p.useState)(null),ue=u()(Ce,2),b=ue[0],ye=ue[1],ve=(0,p.useState)(!1),ie=u()(ve,2),fe=ie[0],te=ie[1];(0,p.useEffect)(function(){(0,K.mX)({page:1,pagesize:10,sortby:"desc"}).then(function(i){v(i.data.list),ee(i.data.total)})},[]);var k=function(g){te(g)};return(0,p.useEffect)(function(){ne(!0)},[b]),(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(I.ZP,{theme:{token:{colorPrimary:"#19be6e"},components:{Button:{colorText:"#19be6e"}}},children:[(0,a.jsx)(S.Z,{gutter:[20,20],children:l.length>0&&l.map(function(i,g){return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(Z.Z,{span:24,children:(0,a.jsx)(D.Z,{direction:"vertical",style:{background:"#ffffff",padding:"20px",width:"100%",borderRadius:10,cursor:"pointer"},children:(0,a.jsxs)(D.Z,{size:10,align:"start",children:[(0,a.jsx)(U.Z,{justify:"center",align:"center",style:{width:88},children:(0,a.jsxs)(D.Z,{direction:"vertical",align:"center",children:[(0,a.jsx)(P.C,{size:68,src:i.photo?"".concat(V.VO).concat(i.photo):"/images/onlylogo.jpg"}),(0,a.jsxs)(x.Z,{color:"#19be6e",children:[" ",i.salary_range_txt]})]})}),(0,a.jsxs)(D.Z,{direction:"vertical",children:[(0,a.jsxs)(D.Z,{align:"center",children:[(0,a.jsx)("div",{onClick:function(){(0,M.ts)({customer_id:i.customer_id}).then(function(L){ye(L.data)})},style:{fontWeight:"bold",fontSize:18},children:i.seekername}),i.age&&(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)(x.Z,{children:[i.age,"\u5C81"]})}),i.gender&&i.gender=="\u7537"&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(x.Z,{color:"blue",children:i.gender})}),i.gender&&i.gender=="\u5973"&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)(x.Z,{color:"pink",children:i.gender})})]}),(0,a.jsxs)(D.Z,{children:[(0,a.jsx)("div",{children:i.education_text&&i.education_text!=0&&(0,a.jsx)(a.Fragment,{children:i.education_text})}),i.work_experience&&i.work_experience!=0?(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{children:[" ",(0,a.jsx)(h.Z,{type:"vertical"})," \u5DE5\u4F5C\u7ECF\u9A8C\uFF1A",i.work_experience,"\u5E74"]})}):""]}),(0,a.jsxs)(y.Z,{size:"small",style:{width:"100%"},children:[(0,a.jsxs)(y.Z.Item,{label:"\u6C42\u804C\u671F\u671B",span:24,children:[" ",i.other_positions,i.desire_positions&&i.desire_positions.length>0&&(0,a.jsx)(a.Fragment,{children:i.desire_positions[0].name})]}),(0,a.jsx)(y.Z.Item,{label:"\u4E2A\u4EBA\u7B80\u4ECB",span:24,children:i.introduction?(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{lineHeight:1.5},dangerouslySetInnerHTML:{__html:i==null?void 0:i.introduction}})}):(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("div",{style:{lineHeight:1.5},children:"\u65E0"})})})]})]})]})})})})})}),!l||l.length==0&&(0,a.jsx)(N.Z,{description:"\u6CA1\u6709\u627E\u5230\u7B26\u5408\u6761\u4EF6\u7684\u7B80\u5386"}),(0,a.jsx)(U.Z,{justify:"center",align:"center",style:{margin:"40px 0"},children:(0,a.jsx)(B.Z,{hideOnSinglePage:!0,total:se,showTotal:function(g){return"\u603B\u5171".concat(g,"\u6761")},current:O,pageSize:Y,pageSizeOptions:["12","24","36"],onChange:function(g,$){F(g),ae($),(0,K.mX)({page:g,pagesize:$,sortby:"desc"}).then(function(L){v(L.data.list),ee(L.data.total)})}})}),b&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(A.Z,{title:"\u9884\u89C8\u7B80\u5386",centered:!0,destroyOnClose:!0,closable:!1,open:de,footer:function(){return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(w.ZP,{onClick:function(){ne(!1)},children:"\u5173\u95ED"},"back"),",",(0,a.jsx)(w.ZP,{type:"primary",onClick:f()(t()().mark(function g(){var $,L,ge;return t()().wrap(function(ce){for(;;)switch(ce.prev=ce.next){case 0:return $=document.getElementById("resume-box"),L=G.m($==null?void 0:$.outerHTML),ce.next=4,L;case 4:ge=ce.sent,(0,W.saveAs)(ge,"\u4E2A\u4EBA\u7B80\u5386.docx");case 6:case"end":return ce.stop()}},g)})),children:"\u4E0B\u8F7D\u7B80\u5386"},"submit"),",",(0,a.jsx)(w.ZP,{type:"primary",onClick:f()(t()().mark(function g(){return t()().wrap(function(L){for(;;)switch(L.prev=L.next){case 0:te(!0);case 1:case"end":return L.stop()}},g)})),children:"\u9080\u8BF7\u9762\u8BD5"},"submit"),","]})},width:1e3,children:(0,a.jsxs)(D.Z,{direction:"vertical",style:{width:"100%"},children:[(b.resume_template==0||b.resume_template==1)&&(0,a.jsx)(H.Z,{bgcolor:"#19be6e",fontcolor:"#19be6e",id:b==null?void 0:b.customer_id}),(b==null?void 0:b.resume_template)==2&&(0,a.jsx)(X.Z,{bgcolor:"#19be6e",fontcolor:"#19be6e",id:b==null?void 0:b.customer_id})]})}),(0,a.jsx)(A.Z,{open:fe,title:"\u53D1\u9001\u9762\u8BD5\u9080\u8BF7",centered:!0,maskClosable:!1,footer:null,destroyOnClose:!0,width:400,onCancel:function(){te(!1)},children:(0,a.jsx)(oe.Z,{detail:b,closeModel:k})})]})]})})};j.Z=R},70489:function(q,j,e){e.d(j,{lu:function(){return s},UE:function(){return x},L:function(){return p},Gc:function(){return oe},vN:function(){return u},Cg:function(){return A},Zq:function(){return y},mX:function(){return h},Os:function(){return O},du:function(){return v},EZ:function(){return B},Qt:function(){return W},xP:function(){return w},s4:function(){return H},Mt:function(){return o},Jm:function(){return c},Ld:function(){return D},aY:function(){return U},T7:function(){return P},XE:function(){return I},Cl:function(){return R},su:function(){return N},z0:function(){return X},Dz:function(){return M},NJ:function(){return Z},cL:function(){return S},Og:function(){return K},Px:function(){return z},h9:function(){return C},FI:function(){return V},mj:function(){return G},un:function(){return m}});var n=e(75334),t=e(55375),r={CompanyFamousList:t.xw+"/company/famous_list",CompanyProbationList:t.xw+"/company/probation_list",CompanyInfo:t.xw+"/company/info",CompanyDetailInfo:t.xw+"/company/detail_info",CompanyEdit:t.xw+"/company/edit",CompanyPhotoUpload:t.xw+"/company/photo_upload",CompanyLicenseUpload:t.xw+"/company/license_upload",CompanyDepartmentAdd:t.xw+"/company/department_add",CompanyDepartmentDel:t.xw+"/company/department_del",CompanyDepartmentEdit:t.xw+"/company/department_edit",CompanyDepartmentList:t.xw+"/company/department_list",CompanyRecommentResume:t.xw+"/company/recomment_resume",CompanyProfile:t.xw+"/company/profile",CompanyResumeList:t.xw+"/company/resume_list",CompanyInterviewList:t.xw+"/company/interview_list",CompanyTalentPoolList:t.xw+"/company/talent_pool_list",CompanyTalentPoolAdd:t.xw+"/company/talent_pool_add",CompanyTalentPoolDel:t.xw+"/company/talent_pool_del",CompanyResumeRecycleList:t.xw+"/company/resume_recycle_list",CompanyResumeRecycle:t.xw+"/company/resume_recycle",CompanyResumeRecover:t.xw+"/company/resume_recover",CompanyInterviewAdd:t.xw+"/company/interview_add",CompanyInterviewDel:t.xw+"/company/interview_del",CompanyViewedContactList:t.xw+"/company/viewed_contact_list",CompanyInterviewAdmission:t.xw+"/company/interview_admission",CompanyFee:t.xw+"/company/fee",CompanyPwdEdit:t.xw+"/company/pwd_edit",CompanyEmailEdit:t.xw+"/company/email_edit",CompanyCustomerCodeAdd:t.xw+"/companycustomercode/add",CompanyCustomerCodeDel:t.xw+"/companycustomercode/del",CompanyCustomerCodeUpdate:t.xw+"/companycustomercode/update",CompanyCustomerCodeList:t.xw+"/companycustomercode/list",CompanyCustomerCodeDetail:t.xw+"/companycustomercode/detail",CompanyRecruiters:t.xw+"/company/recruiters",JobseekerResetPwd:t.xw+"/jobseeker/resetpwd",CompanySearch:t.xw+"/company/search",CompanyRecrBookList:t.xw+"/company/recr_book_list"},f=(0,n.y)(r.CompanyFamousList),E=(0,n.y)(r.CompanyProbationList),u=(0,n.y)(r.CompanyInfo),p=(0,n.y)(r.CompanyDetailInfo),I=(0,n.L)(r.CompanyEdit),S=(0,n.L)(r.CompanyPhotoUpload),Z=(0,n.L)(r.CompanyLicenseUpload),D=(0,n.L)(r.CompanyDepartmentAdd),U=(0,n.L)(r.CompanyDepartmentDel),P=(0,n.L)(r.CompanyDepartmentEdit),x=(0,n.y)(r.CompanyDepartmentList),h=(0,n.y)(r.CompanyRecommentResume),y=(0,n.y)(r.CompanyProfile),B=(0,n.y)(r.CompanyResumeList),A=(0,n.y)(r.CompanyInterviewList),w=(0,n.y)(r.CompanyTalentPoolList),V=(0,n.L)(r.CompanyTalentPoolAdd),G=(0,n.L)(r.CompanyTalentPoolDel),W=(0,n.y)(r.CompanyResumeRecycleList),z=(0,n.L)(r.CompanyResumeRecycle),K=(0,n.L)(r.CompanyResumeRecover),N=(0,n.L)(r.CompanyInterviewAdd),M=(0,n.L)(r.CompanyInterviewDel),H=(0,n.y)(r.CompanyViewedContactList),X=(0,n.L)(r.CompanyInterviewAdmission),oe=(0,n.y)(r.CompanyFee),a=(0,n.L)(r.CompanyPwdEdit),R=(0,n.L)(r.CompanyEmailEdit),o=(0,n.L)(r.CompanyCustomerCodeAdd),c=(0,n.L)(r.CompanyCustomerCodeDel),d=(0,n.L)(r.CompanyCustomerCodeUpdate),s=(0,n.y)(r.CompanyCustomerCodeList),l=(0,n.y)(r.CompanyCustomerCodeDetail),v=(0,n.y)(r.CompanyRecruiters),m=(0,n.L)(r.JobseekerResetPwd),C=(0,n.L)(r.CompanySearch),O=(0,n.y)(r.CompanyRecrBookList)},72131:function(q,j,e){e.d(j,{by:function(){return U},k:function(){return I},ME:function(){return p},d8:function(){return E},GR:function(){return u},f5:function(){return S},Dl:function(){return D},Kp:function(){return Z},st:function(){return x},l8:function(){return P},xc:function(){return h},$Z:function(){return f}});var n=e(75334),t=e(55375),r={JobSearch:t.xw+"/job/search",JobCompanyjobs:t.xw+"/job/companyjobs",JobDetail:t.xw+"/job/detail",JobAuthdetail:t.xw+"/job/authdetail",CompanyJobList:t.xw+"/company/job_list",CompanyJobAdd:t.xw+"/company/job_add",CompanyJobEdit:t.xw+"/company/job_edit",CompanyJobDel:t.xw+"/company/job_del",CompanyJobInfo:t.xw+"/company/job_info",CompanyJobStatusChange:t.xw+"/company/job_status_change",CompanyJobRecycle:t.xw+"/company/job_recycle",CompanyJobrecoverRecycle:t.xw+"/company/job_recover_recycle"},f=(0,n.L)(r.JobSearch),E=(0,n.y)(r.JobCompanyjobs),u=(0,n.y)(r.JobDetail),p=(0,n.y)(r.JobAuthdetail),I=(0,n.y)(r.CompanyJobList),S=(0,n.L)(r.CompanyJobAdd),Z=(0,n.L)(r.CompanyJobEdit),D=(0,n.L)(r.CompanyJobDel),U=(0,n.y)(r.CompanyJobInfo),P=(0,n.L)(r.CompanyJobStatusChange),x=(0,n.L)(r.CompanyJobRecycle),h=(0,n.L)(r.CompanyJobrecoverRecycle)},5251:function(q,j,e){e.d(j,{Y:function(){return f},_:function(){return r}});var n=e(27484),t=e.n(n),r=function(u){return u&&u<t()().endOf("day")},f=function(u){return u&&u>t()().endOf("day")}},66309:function(q,j,e){e.d(j,{Z:function(){return R}});var n=e(67294),t=e(93967),r=e.n(t),f=e(98423),E=e(98787),u=e(69760),p=e(96159),I=e(45353),S=e(53124),Z=e(11568),D=e(15063),U=e(14747),P=e(83262),x=e(83559);const h=o=>{const{paddingXXS:c,lineWidth:d,tagPaddingHorizontal:s,componentCls:l,calc:v}=o,m=v(s).sub(d).equal(),C=v(c).sub(d).equal();return{[l]:Object.assign(Object.assign({},(0,U.Wf)(o)),{display:"inline-block",height:"auto",marginInlineEnd:o.marginXS,paddingInline:m,fontSize:o.tagFontSize,lineHeight:o.tagLineHeight,whiteSpace:"nowrap",background:o.defaultBg,border:`${(0,Z.bf)(o.lineWidth)} ${o.lineType} ${o.colorBorder}`,borderRadius:o.borderRadiusSM,opacity:1,transition:`all ${o.motionDurationMid}`,textAlign:"start",position:"relative",[`&${l}-rtl`]:{direction:"rtl"},"&, a, a:hover":{color:o.defaultColor},[`${l}-close-icon`]:{marginInlineStart:C,fontSize:o.tagIconSize,color:o.colorTextDescription,cursor:"pointer",transition:`all ${o.motionDurationMid}`,"&:hover":{color:o.colorTextHeading}},[`&${l}-has-color`]:{borderColor:"transparent",[`&, a, a:hover, ${o.iconCls}-close, ${o.iconCls}-close:hover`]:{color:o.colorTextLightSolid}},"&-checkable":{backgroundColor:"transparent",borderColor:"transparent",cursor:"pointer",[`&:not(${l}-checkable-checked):hover`]:{color:o.colorPrimary,backgroundColor:o.colorFillSecondary},"&:active, &-checked":{color:o.colorTextLightSolid},"&-checked":{backgroundColor:o.colorPrimary,"&:hover":{backgroundColor:o.colorPrimaryHover}},"&:active":{backgroundColor:o.colorPrimaryActive}},"&-hidden":{display:"none"},[`> ${o.iconCls} + span, > span + ${o.iconCls}`]:{marginInlineStart:m}}),[`${l}-borderless`]:{borderColor:"transparent",background:o.tagBorderlessBg}}},y=o=>{const{lineWidth:c,fontSizeIcon:d,calc:s}=o,l=o.fontSizeSM;return(0,P.IX)(o,{tagFontSize:l,tagLineHeight:(0,Z.bf)(s(o.lineHeightSM).mul(l).equal()),tagIconSize:s(d).sub(s(c).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:o.defaultBg})},B=o=>({defaultBg:new D.t(o.colorFillQuaternary).onBackground(o.colorBgContainer).toHexString(),defaultColor:o.colorText});var A=(0,x.I$)("Tag",o=>{const c=y(o);return h(c)},B),w=function(o,c){var d={};for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&c.indexOf(s)<0&&(d[s]=o[s]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(o);l<s.length;l++)c.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(o,s[l])&&(d[s[l]]=o[s[l]]);return d},G=n.forwardRef((o,c)=>{const{prefixCls:d,style:s,className:l,checked:v,onChange:m,onClick:C}=o,O=w(o,["prefixCls","style","className","checked","onChange","onClick"]),{getPrefixCls:F,tag:_}=n.useContext(S.E_),Q=ee=>{m==null||m(!v),C==null||C(ee)},Y=F("tag",d),[ae,re,J]=A(Y),se=r()(Y,`${Y}-checkable`,{[`${Y}-checkable-checked`]:v},_==null?void 0:_.className,l,re,J);return ae(n.createElement("span",Object.assign({},O,{ref:c,style:Object.assign(Object.assign({},s),_==null?void 0:_.style),className:se,onClick:Q})))}),W=e(98719);const z=o=>(0,W.Z)(o,(c,d)=>{let{textColor:s,lightBorderColor:l,lightColor:v,darkColor:m}=d;return{[`${o.componentCls}${o.componentCls}-${c}`]:{color:s,background:v,borderColor:l,"&-inverse":{color:o.colorTextLightSolid,background:m,borderColor:m},[`&${o.componentCls}-borderless`]:{borderColor:"transparent"}}}});var K=(0,x.bk)(["Tag","preset"],o=>{const c=y(o);return z(c)},B);function N(o){return typeof o!="string"?o:o.charAt(0).toUpperCase()+o.slice(1)}const M=(o,c,d)=>{const s=N(d);return{[`${o.componentCls}${o.componentCls}-${c}`]:{color:o[`color${d}`],background:o[`color${s}Bg`],borderColor:o[`color${s}Border`],[`&${o.componentCls}-borderless`]:{borderColor:"transparent"}}}};var H=(0,x.bk)(["Tag","status"],o=>{const c=y(o);return[M(c,"success","Success"),M(c,"processing","Info"),M(c,"error","Error"),M(c,"warning","Warning")]},B),X=function(o,c){var d={};for(var s in o)Object.prototype.hasOwnProperty.call(o,s)&&c.indexOf(s)<0&&(d[s]=o[s]);if(o!=null&&typeof Object.getOwnPropertySymbols=="function")for(var l=0,s=Object.getOwnPropertySymbols(o);l<s.length;l++)c.indexOf(s[l])<0&&Object.prototype.propertyIsEnumerable.call(o,s[l])&&(d[s[l]]=o[s[l]]);return d};const a=n.forwardRef((o,c)=>{const{prefixCls:d,className:s,rootClassName:l,style:v,children:m,icon:C,color:O,onClose:F,bordered:_=!0,visible:Q}=o,Y=X(o,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:ae,direction:re,tag:J}=n.useContext(S.E_),[se,ee]=n.useState(!0),me=(0,f.Z)(Y,["closeIcon","closable"]);n.useEffect(()=>{Q!==void 0&&ee(Q)},[Q]);const le=(0,E.o2)(O),de=(0,E.yT)(O),ne=le||de,pe=Object.assign(Object.assign({backgroundColor:O&&!ne?O:void 0},J==null?void 0:J.style),v),T=ae("tag",d),[Pe,he,Ce]=A(T),ue=r()(T,J==null?void 0:J.className,{[`${T}-${O}`]:ne,[`${T}-has-color`]:O&&!ne,[`${T}-hidden`]:!se,[`${T}-rtl`]:re==="rtl",[`${T}-borderless`]:!_},s,l,he,Ce),b=k=>{k.stopPropagation(),F==null||F(k),!k.defaultPrevented&&ee(!1)},[,ye]=(0,u.Z)((0,u.w)(o),(0,u.w)(J),{closable:!1,closeIconRender:k=>{const i=n.createElement("span",{className:`${T}-close-icon`,onClick:b},k);return(0,p.wm)(k,i,g=>({onClick:$=>{var L;(L=g==null?void 0:g.onClick)===null||L===void 0||L.call(g,$),b($)},className:r()(g==null?void 0:g.className,`${T}-close-icon`)}))}}),ve=typeof Y.onClick=="function"||m&&m.type==="a",ie=C||null,fe=ie?n.createElement(n.Fragment,null,ie,m&&n.createElement("span",null,m)):m,te=n.createElement("span",Object.assign({},me,{ref:c,className:ue,style:pe}),fe,ye,le&&n.createElement(K,{key:"preset",prefixCls:T}),de&&n.createElement(H,{key:"status",prefixCls:T}));return Pe(ve?n.createElement(I.Z,{component:"Tag"},te):te)});a.CheckableTag=G;var R=a}}]);
|