"use strict";(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9549,8307],{82738:function(re,B,e){e.r(B);var o=e(15009),D=e.n(o),K=e(99289),U=e.n(K),w=e(5574),V=e.n(w),W=e(67294),Y=e(60960),y=e(2453),Q=e(74330),P=e(83622),t=e(32983),f=e(4393),i=e(71230),E=e(15746),a=e(66309),M=e(78957),C=e(86738),_=e(82826),O=e(34447),S=e(33862),k=e(24019),$=e(48689),G=e(76772),ne=e(93983),j=e(15791),se=e(48307),n=e(85893),l=Y.Z.Title,p=Y.Z.Text,r={1:"1\u5E74\u4EE5\u4E0B",2:"1-3\u5E74",3:"3-5\u5E74",4:"5-10\u5E74",5:"10\u5E74\u4EE5\u4E0A",0:"\u4E0D\u9650","-1":"\u4E0D\u9650"},c=function(d){return d?r[d]||d:"\u4E0D\u9650"},R=function(){try{var d=localStorage.getItem("userInfo");if(d){var u=JSON.parse(d);return(u==null?void 0:u.userId)||null}}catch(x){console.error("\u8BFB\u53D6\u7F13\u5B58\u7528\u6237\u4FE1\u606F\u5931\u8D25:",x)}return null},F=function(d){if(!d)return"";try{var u=new Date(d);return u.toLocaleString("zh-CN",{year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"})}catch(x){return d}},A=function(d,u){if(d&&u){var x=d>=1e3?"".concat(d/1e3,"K"):d.toString(),q=u>=1e3?"".concat(u/1e3,"K"):u.toString();return"".concat(x,"-").concat(q)}else if(d){var N=d>=1e3?"".concat(d/1e3,"K"):d.toString();return"".concat(N,"\u8D77")}else if(u){var b=u>=1e3?"".concat(u/1e3,"K"):u.toString();return"\u6700\u9AD8".concat(b)}return"\u9762\u8BAE"},L=function(){var d=(0,W.useState)([]),u=V()(d,2),x=u[0],q=u[1],N=(0,W.useState)(!1),b=V()(N,2),Z=b[0],ee=b[1];(0,W.useEffect)(function(){var s=function(){var z=U()(D()().mark(function I(){var g,v;return D()().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(g=R(),g){m.next=5;break}return y.ZP.warning("\u8BF7\u5148\u767B\u5F55"),G.history.push("/job-portal/personal-center"),m.abrupt("return");case 5:return m.prev=5,ee(!0),m.next=9,(0,j.L4)({userId:g});case 9:v=m.sent,(v==null?void 0:v.code)===200&&v!==null&&v!==void 0&&v.data?q(v.data):y.ZP.error((v==null?void 0:v.msg)||"\u83B7\u53D6\u6536\u85CF\u5C97\u4F4D\u5217\u8868\u5931\u8D25"),m.next=17;break;case 13:m.prev=13,m.t0=m.catch(5),console.error("\u83B7\u53D6\u6536\u85CF\u5C97\u4F4D\u5217\u8868\u5931\u8D25:",m.t0),y.ZP.error("\u83B7\u53D6\u6536\u85CF\u5C97\u4F4D\u5217\u8868\u5931\u8D25");case 17:return m.prev=17,ee(!1),m.finish(17);case 20:case"end":return m.stop()}},I,null,[[5,13,17,20]])}));return function(){return z.apply(this,arguments)}}();s()},[]);var te=function(){G.history.push("/job-portal/personal-center")},ae=function(z){G.history.push("/job-portal/detail",{jobData:z})},oe=function(){var s=U()(D()().mark(function z(I,g){var v,J,m;return D()().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(g&&(g.stopPropagation(),g.preventDefault()),v=R(),v){h.next=5;break}return y.ZP.warning("\u65E0\u6CD5\u83B7\u53D6\u7528\u6237\u4FE1\u606F\uFF0C\u8BF7\u91CD\u65B0\u767B\u5F55"),h.abrupt("return");case 5:if(J=I.jobId||I.id,J){h.next=9;break}return y.ZP.error("\u804C\u4F4D\u4FE1\u606F\u4E0D\u5B8C\u6574\uFF0C\u65E0\u6CD5\u53D6\u6D88\u6536\u85CF"),h.abrupt("return");case 9:return h.prev=9,h.next=12,(0,j.Zn)({jobId:J,userId:v});case 12:m=h.sent,(m==null?void 0:m.code)===200?(q(x.filter(function(le){return(le.jobId||le.id)!==(I.jobId||I.id)})),y.ZP.success("\u5DF2\u53D6\u6D88\u6536\u85CF")):y.ZP.error((m==null?void 0:m.msg)||"\u53D6\u6D88\u6536\u85CF\u5931\u8D25"),h.next=20;break;case 16:h.prev=16,h.t0=h.catch(9),console.error("\u53D6\u6D88\u6536\u85CF\u5931\u8D25:",h.t0),y.ZP.error("\u53D6\u6D88\u6536\u85CF\u5931\u8D25\uFF0C\u8BF7\u91CD\u8BD5");case 20:case"end":return h.stop()}},z,null,[[9,16]])}));return function(I,g){return s.apply(this,arguments)}}();return(0,n.jsxs)("div",{className:"favorites-page",children:[(0,n.jsx)(ne.Z,{showSearch:!1,showHotJobs:!1}),(0,n.jsx)(Q.Z,{spinning:Z,children:(0,n.jsxs)("div",{className:"page-content",children:[(0,n.jsx)("div",{className:"back-button",children:(0,n.jsx)(P.ZP,{type:"text",icon:(0,n.jsx)(_.Z,{}),onClick:te,children:"\u8FD4\u56DE\u4E2A\u4EBA\u4E2D\u5FC3"})}),(0,n.jsxs)("div",{className:"page-header",children:[(0,n.jsxs)(l,{level:2,children:[(0,n.jsx)(O.Z,{style:{color:"#ff4d4f",marginRight:8}}),"\u6536\u85CF\u5C97\u4F4D"]}),(0,n.jsxs)(p,{type:"secondary",children:["\u5171 ",x.length," \u6761\u8BB0\u5F55"]})]}),x.length===0&&!Z?(0,n.jsx)(t.Z,{description:"\u6682\u65E0\u6536\u85CF\u8BB0\u5F55",style:{marginTop:"100px"}}):(0,n.jsx)("div",{className:"job-list",children:x.map(function(s,z){return(0,n.jsx)(f.Z,{className:"job-card",hoverable:!0,onClick:function(){return ae(s)},children:(0,n.jsxs)(i.Z,{gutter:16,children:[(0,n.jsx)(E.Z,{span:18,children:(0,n.jsxs)("div",{className:"job-info",children:[(0,n.jsxs)("div",{className:"job-header",children:[(0,n.jsx)(l,{level:4,className:"job-title",children:s.title||s.jobTitle||"\u672A\u77E5\u5C97\u4F4D"}),(0,n.jsx)(p,{className:"job-salary",children:s.salary||A(s.minSalary,s.maxSalary)})]}),(0,n.jsxs)("div",{className:"job-meta",children:[(0,n.jsx)(p,{className:"job-company",children:s.company||s.companyName||"\u672A\u77E5\u516C\u53F8"}),(0,n.jsxs)(p,{className:"job-location",children:[(0,n.jsx)(S.Z,{})," ",s.jobLocation||s.location||s.area||"\u672A\u77E5\u5730\u533A"]})]}),(s.experience||s.vacancies!==void 0&&s.vacancies!==null)&&(0,n.jsxs)("div",{className:"job-tags",children:[s.experience&&(0,n.jsxs)(a.Z,{className:"job-tag experience-tag",children:["\u7ECF\u9A8C\uFF1A",c(s.experience)]}),s.vacancies!==void 0&&s.vacancies!==null&&(0,n.jsxs)(a.Z,{className:"job-tag vacancies-tag",children:["\u62DB\u8058",s.vacancies,"\u4EBA"]})]}),(0,n.jsx)("div",{className:"job-footer",children:(0,n.jsx)(M.Z,{children:(0,n.jsxs)(p,{type:"secondary",children:[(0,n.jsx)(k.Z,{})," \u6536\u85CF\u65F6\u95F4\uFF1A",F(s.shareTime)]})})})]})}),(0,n.jsx)(E.Z,{span:6,children:(0,n.jsx)("div",{className:"job-actions",onClick:function(g){return g.stopPropagation()},children:(0,n.jsx)(C.Z,{title:"\u786E\u5B9A\u8981\u53D6\u6D88\u6536\u85CF\u5417\uFF1F",onConfirm:function(g){g&&g.stopPropagation(),oe(s,g)},children:(0,n.jsx)(P.ZP,{type:"text",danger:!0,icon:(0,n.jsx)($.Z,{}),onClick:function(g){return g.stopPropagation()},children:"\u53D6\u6D88\u6536\u85CF"})})})})]})},s.id||s.jobId||z)})})]})})]})};B.default=L},48307:function(re,B,e){e.r(B)},81643:function(re,B,e){e.d(B,{Z:function(){return o}});const o=D=>D?typeof D=="function"?D():D:null},86738:function(re,B,e){e.d(B,{Z:function(){return se}});var o=e(67294),D=e(21640),K=e(93967),U=e.n(K),w=e(21770),V=e(98423),W=e(53124),Y=e(55241),y=e(86743),Q=e(81643),P=e(83622),t=e(33671),f=e(10110),i=e(24457),E=e(66330),a=e(83559);const M=n=>{const{componentCls:l,iconCls:p,antCls:r,zIndexPopup:c,colorText:R,colorWarning:F,marginXXS:A,marginXS:L,fontSize:T,fontWeightStrong:d,colorTextHeading:u}=n;return{[l]:{zIndex:c,[`&${r}-popover`]:{fontSize:T},[`${l}-message`]:{marginBottom:L,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${l}-message-icon ${p}`]:{color:F,fontSize:T,lineHeight:1,marginInlineEnd:L},[`${l}-title`]:{fontWeight:d,color:u,"&:only-child":{fontWeight:"normal"}},[`${l}-description`]:{marginTop:A,color:R}},[`${l}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:L}}}}},C=n=>{const{zIndexPopupBase:l}=n;return{zIndexPopup:l+60}};var _=(0,a.I$)("Popconfirm",n=>M(n),C,{resetStyle:!1}),O=function(n,l){var p={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&l.indexOf(r)<0&&(p[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(n);c{const{prefixCls:l,okButtonProps:p,cancelButtonProps:r,title:c,description:R,cancelText:F,okText:A,okType:L="primary",icon:T=o.createElement(D.Z,null),showCancel:d=!0,close:u,onConfirm:x,onCancel:q,onPopupClick:N}=n,{getPrefixCls:b}=o.useContext(W.E_),[Z]=(0,f.Z)("Popconfirm",i.Z.Popconfirm),ee=(0,Q.Z)(c),te=(0,Q.Z)(R);return o.createElement("div",{className:`${l}-inner-content`,onClick:N},o.createElement("div",{className:`${l}-message`},T&&o.createElement("span",{className:`${l}-message-icon`},T),o.createElement("div",{className:`${l}-message-text`},ee&&o.createElement("div",{className:`${l}-title`},ee),te&&o.createElement("div",{className:`${l}-description`},te))),o.createElement("div",{className:`${l}-buttons`},d&&o.createElement(P.ZP,Object.assign({onClick:q,size:"small"},r),F||(Z==null?void 0:Z.cancelText)),o.createElement(y.Z,{buttonProps:Object.assign(Object.assign({size:"small"},(0,t.nx)(L)),p),actionFn:x,close:u,prefixCls:b("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},A||(Z==null?void 0:Z.okText))))};var $=n=>{const{prefixCls:l,placement:p,className:r,style:c}=n,R=O(n,["prefixCls","placement","className","style"]),{getPrefixCls:F}=o.useContext(W.E_),A=F("popconfirm",l),[L]=_(A);return L(o.createElement(E.ZP,{placement:p,className:U()(A,r),style:c,content:o.createElement(S,Object.assign({prefixCls:A},R))}))},G=function(n,l){var p={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&l.indexOf(r)<0&&(p[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var c=0,r=Object.getOwnPropertySymbols(n);c{var p,r;const{prefixCls:c,placement:R="top",trigger:F="click",okType:A="primary",icon:L=o.createElement(D.Z,null),children:T,overlayClassName:d,onOpenChange:u,onVisibleChange:x,overlayStyle:q,styles:N,classNames:b}=n,Z=G(n,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:ee,className:te,style:ae,classNames:oe,styles:s}=(0,W.dj)("popconfirm"),[z,I]=(0,w.Z)(!1,{value:(p=n.open)!==null&&p!==void 0?p:n.visible,defaultValue:(r=n.defaultOpen)!==null&&r!==void 0?r:n.defaultVisible}),g=(H,X)=>{I(H,!0),x==null||x(H),u==null||u(H,X)},v=H=>{g(!1,H)},J=H=>{var X;return(X=n.onConfirm)===null||X===void 0?void 0:X.call(void 0,H)},m=H=>{var X;g(!1,H),(X=n.onCancel)===null||X===void 0||X.call(void 0,H)},ie=(H,X)=>{const{disabled:ue=!1}=n;ue||g(H,X)},h=ee("popconfirm",c),le=U()(h,te,d,oe.root,b==null?void 0:b.root),ce=U()(oe.body,b==null?void 0:b.body),[de]=_(h);return de(o.createElement(Y.Z,Object.assign({},(0,V.Z)(Z,["title"]),{trigger:F,placement:R,onOpenChange:ie,open:z,ref:l,classNames:{root:le,body:ce},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},s.root),ae),q),N==null?void 0:N.root),body:Object.assign(Object.assign({},s.body),N==null?void 0:N.body)},content:o.createElement(S,Object.assign({okType:A,icon:L},n,{prefixCls:h,close:v,onConfirm:J,onCancel:m})),"data-popover-inject":!0}),T))});j._InternalPanelDoNotUseOrYouWillBeFired=$;var se=j},66330:function(re,B,e){e.d(B,{aV:function(){return y}});var o=e(67294),D=e(93967),K=e.n(D),U=e(92419),w=e(81643),V=e(53124),W=e(20136),Y=function(t,f){var i={};for(var E in t)Object.prototype.hasOwnProperty.call(t,E)&&f.indexOf(E)<0&&(i[E]=t[E]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,E=Object.getOwnPropertySymbols(t);a!t&&!f?null:o.createElement(o.Fragment,null,t&&o.createElement("div",{className:`${i}-title`},t),f&&o.createElement("div",{className:`${i}-inner-content`},f)),Q=t=>{const{hashId:f,prefixCls:i,className:E,style:a,placement:M="top",title:C,content:_,children:O}=t,S=(0,w.Z)(C),k=(0,w.Z)(_),$=K()(f,i,`${i}-pure`,`${i}-placement-${M}`,E);return o.createElement("div",{className:$,style:a},o.createElement("div",{className:`${i}-arrow`}),o.createElement(U.G,Object.assign({},t,{className:f,prefixCls:i}),O||o.createElement(y,{prefixCls:i,title:S,content:k})))},P=t=>{const{prefixCls:f,className:i}=t,E=Y(t,["prefixCls","className"]),{getPrefixCls:a}=o.useContext(V.E_),M=a("popover",f),[C,_,O]=(0,W.Z)(M);return C(o.createElement(Q,Object.assign({},E,{prefixCls:M,hashId:_,className:K()(i,O)})))};B.ZP=P},55241:function(re,B,e){var o=e(67294),D=e(93967),K=e.n(D),U=e(21770),w=e(15105),V=e(81643),W=e(33603),Y=e(96159),y=e(53124),Q=e(83062),P=e(66330),t=e(20136),f=function(a,M){var C={};for(var _ in a)Object.prototype.hasOwnProperty.call(a,_)&&M.indexOf(_)<0&&(C[_]=a[_]);if(a!=null&&typeof Object.getOwnPropertySymbols=="function")for(var O=0,_=Object.getOwnPropertySymbols(a);O<_.length;O++)M.indexOf(_[O])<0&&Object.prototype.propertyIsEnumerable.call(a,_[O])&&(C[_[O]]=a[_[O]]);return C};const E=o.forwardRef((a,M)=>{var C,_;const{prefixCls:O,title:S,content:k,overlayClassName:$,placement:G="top",trigger:ne="hover",children:j,mouseEnterDelay:se=.1,mouseLeaveDelay:n=.1,onOpenChange:l,overlayStyle:p={},styles:r,classNames:c}=a,R=f(a,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:F,className:A,style:L,classNames:T,styles:d}=(0,y.dj)("popover"),u=F("popover",O),[x,q,N]=(0,t.Z)(u),b=F(),Z=K()($,q,N,A,T.root,c==null?void 0:c.root),ee=K()(T.body,c==null?void 0:c.body),[te,ae]=(0,U.Z)(!1,{value:(C=a.open)!==null&&C!==void 0?C:a.visible,defaultValue:(_=a.defaultOpen)!==null&&_!==void 0?_:a.defaultVisible}),oe=(v,J)=>{ae(v,!0),l==null||l(v,J)},s=v=>{v.keyCode===w.Z.ESC&&oe(!1,v)},z=v=>{oe(v)},I=(0,V.Z)(S),g=(0,V.Z)(k);return x(o.createElement(Q.Z,Object.assign({placement:G,trigger:ne,mouseEnterDelay:se,mouseLeaveDelay:n},R,{prefixCls:u,classNames:{root:Z,body:ee},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},d.root),L),p),r==null?void 0:r.root),body:Object.assign(Object.assign({},d.body),r==null?void 0:r.body)},ref:M,open:te,onOpenChange:z,overlay:I||g?o.createElement(P.aV,{prefixCls:u,title:I,content:g}):null,transitionName:(0,W.m)(b,"zoom-big",R.transitionName),"data-popover-inject":!0}),(0,Y.Tm)(j,{onKeyDown:v=>{var J,m;(0,o.isValidElement)(j)&&((m=j==null?void 0:(J=j.props).onKeyDown)===null||m===void 0||m.call(J,v)),s(v)}})))});E._InternalPanelDoNotUseOrYouWillBeFired=P.ZP,B.Z=E},20136:function(re,B,e){var o=e(14747),D=e(50438),K=e(97414),U=e(79511),w=e(8796),V=e(83559),W=e(83262);const Y=P=>{const{componentCls:t,popoverColor:f,titleMinWidth:i,fontWeightStrong:E,innerPadding:a,boxShadowSecondary:M,colorTextHeading:C,borderRadiusLG:_,zIndexPopup:O,titleMarginBottom:S,colorBgElevated:k,popoverBg:$,titleBorderBottom:G,innerContentPadding:ne,titlePadding:j}=P;return[{[t]:Object.assign(Object.assign({},(0,o.Wf)(P)),{position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:O,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text","--valid-offset-x":"var(--arrow-offset-horizontal, var(--arrow-x))",transformOrigin:["var(--valid-offset-x, 50%)","var(--arrow-y, 50%)"].join(" "),"--antd-arrow-background-color":k,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-inner`]:{backgroundColor:$,backgroundClip:"padding-box",borderRadius:_,boxShadow:M,padding:a},[`${t}-title`]:{minWidth:i,marginBottom:S,color:C,fontWeight:E,borderBottom:G,padding:j},[`${t}-inner-content`]:{color:f,padding:ne}})},(0,K.ZP)(P,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:P.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},y=P=>{const{componentCls:t}=P;return{[t]:w.i.map(f=>{const i=P[`${f}6`];return{[`&${t}-${f}`]:{"--antd-arrow-background-color":i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:"transparent"}}}})}},Q=P=>{const{lineWidth:t,controlHeight:f,fontHeight:i,padding:E,wireframe:a,zIndexPopupBase:M,borderRadiusLG:C,marginXS:_,lineType:O,colorSplit:S,paddingSM:k}=P,$=f-i,G=$/2,ne=$/2-t,j=E;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:M+30},(0,U.w)(P)),(0,K.wZ)({contentRadius:C,limitVerticalRadius:!0})),{innerPadding:a?0:12,titleMarginBottom:a?0:_,titlePadding:a?`${G}px ${j}px ${ne}px`:0,titleBorderBottom:a?`${t}px ${O} ${S}`:"none",innerContentPadding:a?`${k}px ${j}px`:0})};B.Z=(0,V.I$)("Popover",P=>{const{colorBgElevated:t,colorText:f}=P,i=(0,W.IX)(P,{popoverBg:t,popoverColor:f});return[Y(i),y(i),(0,D._y)(i,"zoom-big")]},Q,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]})}}]);