👨🏻‍💻👩🏻‍💻 Use Ant Design like a Pro!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

4 lines
29 KiB

(globalThis.utooChunk_ant_design_pro||(globalThis.utooChunk_ant_design_pro=[])).push(["object"==typeof document?document.currentScript:void 0,35384,e=>{"use strict";var t=e.i(790731);e.s(["Popover",()=>t.default])},76820,245538,e=>{"use strict";var t=e.i(84443).Col;e.s(["Col",0,t],76820);var r=e.i(247699).Row;e.s(["Row",0,r],245538)},132259,e=>{"use strict";var t=e.i(313213);e.s(["Space",()=>t.default])},229068,e=>{"use strict";var t=e.i(461550);e.s(["Progress",()=>t.default])},461550,e=>{"use strict";e.i(495059);var t=e.i(191788);e.i(644038);var r=e.i(839904),o=e.i(202917),i=e.i(146025),n=e.i(876352),l=e.i(449995);e.i(957562);var a=e.i(191248),s=e.i(56206),c=e.i(430898),d=e.i(993175);let u={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,railColor:"#D9D9D9",railWidth:1,gapPosition:"bottom",loading:!1};var p=e.i(572353);let m=({bg:e,children:r})=>t.createElement("div",{style:{width:"100%",height:"100%",background:e}},r);function g(e,t){return Object.keys(e).map(r=>{let o=parseFloat(r),i=`${Math.floor(o*t)}%`;return`${e[r]} ${i}`})}let f=t.forwardRef((e,r)=>{let{prefixCls:o,color:i,gradientId:n,radius:l,className:a,style:c,ptg:d,strokeLinecap:u,strokeWidth:p,size:f,gapDegree:h}=e,y=i&&"object"==typeof i,$=f/2,b=t.createElement("circle",{className:(0,s.clsx)(`${o}-circle-path`,a),r:l,cx:$,cy:$,stroke:y?"#FFF":void 0,strokeLinecap:u,strokeWidth:p,opacity:+(0!==d),style:c,ref:r});if(!y)return b;let x=`${n}-conic`,v=h?`${180+h/2}deg`:"0deg",k=g(i,(360-h)/360),w=g(i,1),C=`conic-gradient(from ${v}, ${k.join(", ")})`,S=`linear-gradient(to ${h?"bottom":"top"}, ${w.join(", ")})`;return t.createElement(t.Fragment,null,t.createElement("mask",{id:x},b),t.createElement("foreignObject",{x:0,y:0,width:f,height:f,mask:`url(#${x})`},t.createElement(m,{bg:S},t.createElement(m,{bg:C}))))}),h=(e,t,r,o,i,n,l,a,s,c,d=0)=>{let u=(100-o)/100*t;return"round"===s&&100!==o&&(u+=c/2)>=t&&(u=t-.01),{stroke:"string"==typeof a?a:void 0,strokeDasharray:`${t}px ${e}`,strokeDashoffset:u+d,transform:`rotate(${i+r/100*360*((360-n)/360)+(0===n?0:({bottom:0,top:180,left:90,right:-90})[l])}deg)`,transformOrigin:"50px 50px",transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}};function y(){return(y=Object.assign.bind()).apply(this,arguments)}function $(e){let t=e??[];return Array.isArray(t)?t:[t]}var b=e=>{let r,o,i,n,l,a,{id:c,prefixCls:d,classNames:m={},styles:g={},steps:b,strokeWidth:x,railWidth:v,gapDegree:k=0,gapPosition:w,railColor:C,strokeLinecap:S,style:j,className:N,strokeColor:E,percent:I,loading:M,...W}={...u,...e},F=(0,p.default)(c),A=`${F}-gradient`,P=50-x/2,R=2*Math.PI*P,z=k>0?90+k/2:-90,T=(360-k)/360*R,{count:D,gap:B}="object"==typeof b?b:{count:b,gap:2},O=$(I),_=$(E),H=_.find(e=>e&&"object"==typeof e),L=H&&"object"==typeof H?"butt":S,{indeterminateStyleProps:X,indeterminateStyleAnimation:V}=(({id:e,loading:r})=>{if(!r)return{indeterminateStyleProps:{},indeterminateStyleAnimation:null};let o=`${e}-indeterminate-animate`;return{indeterminateStyleProps:{transform:"rotate(0deg)",animation:`${o} 1s linear infinite`},indeterminateStyleAnimation:t.default.createElement("style",null,`@keyframes ${o} {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}`)}})({id:F,loading:M}),q=h(R,T,0,100,z,k,w,C,L,x),Y=(r=(0,t.useRef)([]),o=(0,t.useRef)(null),(0,t.useEffect)(()=>{let e=Date.now(),t=!1;r.current.forEach(r=>{if(!r)return;t=!0;let i=r.style;i.transitionDuration=".3s, .3s, .3s, .06s",o.current&&e-o.current<100&&(i.transitionDuration="0s, 0s")}),t&&(o.current=Date.now())}),r.current);return t.createElement("svg",y({className:(0,s.clsx)(`${d}-circle`,m.root,N),viewBox:"0 0 100 100",style:{...g.root,...j},id:c,role:"presentation"},W),!D&&t.createElement("circle",{className:(0,s.clsx)(`${d}-circle-rail`,m.rail),r:P,cx:50,cy:50,stroke:C,strokeLinecap:L,strokeWidth:v||x,style:{...q,...g.rail}}),D?(i=Math.round(D*(O[0]/100)),n=100/D,l=0,Array(D).fill(null).map((e,r)=>{let o=r<=i-1?_[0]:C,a=o&&"object"==typeof o?`url(#${A})`:void 0,c=h(R,T,l,n,z,k,w,o,"butt",x,B);return l+=(T-c.strokeDashoffset+B)*100/T,t.createElement("circle",{key:r,className:(0,s.clsx)(`${d}-circle-path`,m.track),r:P,cx:50,cy:50,stroke:a,strokeWidth:x,opacity:1,style:{...c,...g.track},ref:e=>{Y[r]=e}})})):(a=0,O.map((e,r)=>{let o=_[r]||_[_.length-1],i=h(R,T,a,e,z,k,w,o,L,x);return a+=e,t.createElement(f,{key:r,color:o,ptg:e,radius:P,prefixCls:d,gradientId:A,className:m.track,style:{...i,...X,...g.track},strokeLinecap:L,strokeWidth:x,gapDegree:k,ref:e=>{Y[r]=e},size:100})}).reverse()),V)},x=e.i(188304);e.i(797652);var v=e.i(435187);function k(e){return!e||e<0?0:e>100?100:e}function w({success:e}){let t;return e&&"percent"in e&&(t=e.percent),t}let C=(e,t,r)=>{let o=-1,i=-1;if("step"===t){let t=r.steps,n=r.strokeWidth;"string"==typeof e||void 0===e?(o="small"===e?2:14,i=n??8):"number"==typeof e?[o,i]=[e,e]:[o=14,i=8]=Array.isArray(e)?e:[e.width,e.height],o*=t}else if("line"===t){let t=r?.strokeWidth;"string"==typeof e||void 0===e?i=t||("small"===e?6:8):"number"==typeof e?[o,i]=[e,e]:[o=-1,i=8]=Array.isArray(e)?e:[e.width,e.height]}else("circle"===t||"dashboard"===t)&&("string"==typeof e||void 0===e?[o,i]="small"===e?[60,60]:[120,120]:"number"==typeof e?[o,i]=[e,e]:Array.isArray(e)&&(o=e[0]??e[1]??120,i=e[0]??e[1]??120));return[o,i]},S=["root","body","indicator"];var j=e=>{let{prefixCls:r,classNames:o,styles:i,railColor:n,trailColor:l,strokeLinecap:c="round",gapPosition:u,gapPlacement:p,gapDegree:m,width:g=120,type:f,children:h,success:y,size:$=g,steps:j}=e,{direction:N}=(0,d.useComponentConfig)("progress"),[E,I]=C($,"circle"),{strokeWidth:M}=e;void 0===M&&(M=Math.max(3/E*100,6));let W=t.useMemo(()=>m||0===m?m:"dashboard"===f?75:void 0,[m,f]),F=(({percent:e,success:t})=>{let r=k(w({success:t}));return[r,k(k(e)-r)]})(e),A=t.useMemo(()=>{let e=(p??u)||"dashboard"===f&&"bottom"||void 0,t="rtl"===N;switch(e){case"start":return t?"right":"left";case"end":return t?"left":"right";default:return e}},[N,p,u,f]),P="[object Object]"===Object.prototype.toString.call(e.strokeColor),R=(({success:e={},strokeColor:t})=>{let{strokeColor:r}=e;return[r||v.presetPrimaryColors.green,t||null]})({success:y,strokeColor:e.strokeColor}),z=(0,s.clsx)(`${r}-body`,{[`${r}-circle-gradient`]:P},o.body),T=t.createElement(b,{steps:j,percent:j?F[1]:F,strokeWidth:M,railWidth:M,strokeColor:j?R[1]:R,strokeLinecap:c,railColor:n??l,prefixCls:r,gapDegree:W,gapPosition:A,classNames:(0,a.omit)(o,S),styles:(0,a.omit)(i,S)}),D=E<=20,B=t.createElement("div",{className:z,style:{width:E,height:I,fontSize:.15*E+6,...i.body}},T,!D&&h);return D?t.createElement(x.default,{title:h},B):B};e.i(290586);var N=e.i(456161),E=e.i(307441),I=e.i(352050),M=e.i(104616);let W="--progress-line-stroke-color";var F=(0,I.genStyleHooks)("Progress",e=>{let t=e.calc(e.marginXXS).div(2).equal(),r=(0,M.mergeToken)(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[(e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{...(0,E.resetComponent)(e),display:"inline-flex","&-rtl":{direction:"rtl"},[`${t}-indicator`]:{color:e.colorText,lineHeight:1,whiteSpace:"nowrap",verticalAlign:"middle",wordBreak:"normal",[r]:{fontSize:e.fontSize}},[`&${t}-status-exception`]:{[`${t}-indicator`]:{color:e.colorError}},[`&${t}-status-success`]:{[`${t}-indicator`]:{color:e.colorSuccess}}}}})(r),(e=>{var t;let r,{componentCls:o}=e;return{[`${o}-line`]:{position:"relative",width:"100%",fontSize:e.fontSize,[`${o}-body`]:{display:"inline-flex",alignItems:"center",width:"100%",gap:e.marginXS},[`${o}-rail`]:{flex:"auto",background:e.remainingColor,borderRadius:e.lineBorderRadius,position:"relative",width:"100%",overflow:"hidden"},[`&${o}-status-active`]:{[`${o}-track:after`]:{content:'""',position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:"inherit",opacity:0,animationName:(r=t?"100%":"-100%",new N.Keyframes(`antProgress${t?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${r}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${r}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite"}},[`${o}-track`]:{position:"absolute",insetInlineStart:0,insetBlock:0,borderRadius:"inherit",background:e.defaultColor,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`,minWidth:"max-content",display:"flex",alignItems:"center","&-success":{background:e.colorSuccess}},[`&${o}-status-exception`]:{[`${o}-track`]:{background:e.colorError}},[`&${o}-status-success`]:{[`${o}-track`]:{background:e.colorSuccess}},[`${o}-indicator-outer`]:{[`&${o}-indicator-start`]:{order:-1}},[`${o}-body-layout-bottom`]:{flexDirection:"column",alignItems:"center",gap:e.marginXXS},[`${o}-indicator${o}-indicator-inner`]:{color:e.colorWhite,paddingInline:e.paddingXXS,width:"100%",display:"flex",justifyContent:"center",[`&${o}-indicator-end`]:{justifyContent:"end"},[`&${o}-indicator-start`]:{justifyContent:"start"},[`&${o}-indicator-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}}})(r),(e=>{let{componentCls:t,iconCls:r}=e;return{[`${t}-circle`]:{[`${t}-circle-rail`]:{stroke:e.remainingColor},[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-body`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`${t}-indicator`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[r]:{fontSize:e.circleIconFontSize}},[`&${t}-status-exception`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}}},[`&${t}-status-success`]:{[`${t}-body:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}})(r),(e=>{let{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-body":{display:"flex",flexDirection:"row",alignItems:"center",gap:e.progressStepMarginInlineEnd,[`${t}-indicator`]:{marginInlineStart:e.marginXS}},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}})(r),(e=>{let{componentCls:t,iconCls:r}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-indicator ${r}`]:{fontSize:e.fontSizeSM}}}})(r)]},e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`})),A=e=>{let{prefixCls:r,classNames:o,styles:i,direction:n,percent:l,size:a,strokeWidth:c,strokeColor:d,strokeLinecap:u="round",children:p,railColor:m,trailColor:g,percentPosition:f,success:h}=e,{align:y,type:$}=f,b="square"===u||"butt"===u?0:void 0,[x,S]=C(a??[-1,c||("small"===a?6:8)],"line",{strokeWidth:c}),j=`${r}-track`,N=d&&"string"!=typeof d?((e,t)=>{let{from:r=v.presetPrimaryColors.blue,to:o=v.presetPrimaryColors.blue,direction:i="rtl"===t?"to left":"to right",...n}=e;if(0!==Object.keys(n).length){let e,t=(e=[],Object.keys(n).forEach(t=>{let r=Number.parseFloat(t.replace(/%/g,""));Number.isNaN(r)||e.push({key:r,value:n[t]})}),(e=e.sort((e,t)=>e.key-t.key)).map(({key:e,value:t})=>`${t} ${e}%`).join(", ")),r=`linear-gradient(${i}, ${t})`;return{background:r,[W]:r}}let l=`linear-gradient(${i}, ${r}, ${o})`;return{background:l,[W]:l}})(d,n):{[W]:d,background:d},E={width:`${k(l)}%`,height:S,borderRadius:b,...N},I=w(e),M={width:`${k(I)}%`,height:S,borderRadius:b,backgroundColor:h?.strokeColor};return t.createElement("div",{className:(0,s.clsx)(`${r}-body`,o.body,{[`${r}-body-layout-bottom`]:"center"===y&&"outer"===$}),style:{width:x>0?x:"100%",...i.body}},t.createElement("div",{className:(0,s.clsx)(`${r}-rail`,o.rail),style:{backgroundColor:(m??g)||void 0,borderRadius:b,height:S,...i.rail}},t.createElement("div",{className:(0,s.clsx)(j,o.track),style:{...E,...i.track}},"inner"===$&&p),void 0!==I&&t.createElement("div",{className:(0,s.clsx)(j,`${j}-success`,o.track),style:{...M,...i.track}})),"outer"===$&&p)},P=e=>{let{classNames:r,styles:o,size:i,steps:n,rounding:l=Math.round,percent:a=0,strokeWidth:c=8,strokeColor:d,railColor:u,trailColor:p,prefixCls:m,children:g}=e,f=l(a/100*n),[h,y]=C(i??["small"===i?2:14,c],"step",{steps:n,strokeWidth:c}),$=h/n,b=Array.from({length:n}),x=u??p;for(let e=0;e<n;e++){let i=Array.isArray(d)?d[e]:d;b[e]=t.createElement("div",{key:e,className:(0,s.clsx)(`${m}-steps-item`,{[`${m}-steps-item-active`]:e<=f-1},r.track),style:{backgroundColor:e<=f-1?i:x,width:$,height:y,...o.track}})}return t.createElement("div",{className:(0,s.clsx)(`${m}-steps-body`,r.body),style:o.body},b,g)};let R=["normal","exception","active","success"],z=t.forwardRef((e,u)=>{let p,{prefixCls:m,className:g,rootClassName:f,classNames:h,styles:y,steps:$,strokeColor:b,percent:x=0,size:v="medium",showInfo:S=!0,type:N="line",status:E,format:I,style:M,percentPosition:W={},...z}=e,{align:T="end",type:D="outer"}=W,B=Array.isArray(b)?b[0]:b,O="string"==typeof b||Array.isArray(b)?b:void 0,_=t.useMemo(()=>{if(B){let e="string"==typeof B?B:Object.values(B)[0];return new r.FastColor(e).isLight()}return!1},[b]),H=t.useMemo(()=>{let t=w(e);return Number.parseInt(void 0!==t?(t??0)?.toString():(x??0)?.toString(),10)},[x,e.success]),L=t.useMemo(()=>!R.includes(E)&&H>=100?"success":E||"normal",[E,H]),{getPrefixCls:X,direction:V,className:q,style:Y,classNames:U,styles:K}=(0,d.useComponentConfig)("progress"),Q=X("progress",m),[Z,G]=F(Q),J={...e,percent:x,type:N,size:v,showInfo:S,percentPosition:W},[ee,et]=(0,c.useMergeSemantic)([U,h],[K,y],{props:J}),er="line"===N,eo=er&&!$,ei=t.useMemo(()=>{let r;if(!S)return null;let a=w(e),c=I||(e=>`${e}%`),d=er&&_&&"inner"===D;return"inner"===D||I||"exception"!==L&&"success"!==L?r=c(k(x),k(a)):"exception"===L?r=er?t.createElement(n.default,null):t.createElement(l.default,null):"success"===L&&(r=er?t.createElement(o.default,null):t.createElement(i.default,null)),t.createElement("span",{className:(0,s.clsx)(`${Q}-indicator`,{[`${Q}-indicator-bright`]:d,[`${Q}-indicator-${T}`]:eo,[`${Q}-indicator-${D}`]:eo},ee.indicator),style:et.indicator,title:"string"==typeof r?r:void 0},r)},[S,x,H,L,N,Q,I,er,_,D,T,eo,ee.indicator,et.indicator]),en={...e,classNames:ee,styles:et};"line"===N?p=$?t.createElement(P,{...en,strokeColor:O,prefixCls:Q,steps:"object"==typeof $?$.count:$},ei):t.createElement(A,{...en,strokeColor:B,prefixCls:Q,direction:V,percentPosition:{align:T,type:D}},ei):("circle"===N||"dashboard"===N)&&(p=t.createElement(j,{...en,strokeColor:B,prefixCls:Q,progressStatus:L},ei));let el=(0,s.clsx)(Q,`${Q}-status-${L}`,{[`${Q}-${"dashboard"===N&&"circle"||N}`]:"line"!==N,[`${Q}-inline-circle`]:"circle"===N&&C(v,"circle")[0]<=20,[`${Q}-line`]:eo,[`${Q}-line-align-${T}`]:eo,[`${Q}-line-position-${D}`]:eo,[`${Q}-steps`]:$,[`${Q}-show-info`]:S,[`${Q}-small`]:"small"===v,[`${Q}-rtl`]:"rtl"===V},q,g,f,ee.root,Z,G);return t.createElement("div",{ref:u,style:{...Y,...et.root,...M},className:el,role:"progressbar","aria-valuenow":H,"aria-valuemin":0,"aria-valuemax":100,...(0,a.omit)(z,["railColor","trailColor","strokeWidth","width","gapDegree","gapPosition","gapPlacement","strokeLinecap","success"])},p)});e.s(["default",0,z],461550)},679707,e=>{"use strict";var t=e.i(391398);e.i(113297);var r=e.i(740503),o=e.i(846205),i=e.i(134124),n=e.i(313367),l=e.i(76820),a=e.i(882474),s=e.i(146601),c=e.i(92076),d=e.i(35384),u=e.i(229068),p=e.i(245538),m=e.i(847942),g=e.i(132259),f=e.i(191788);async function h(e){return(0,i.request)("/api/register",{method:"POST",data:e})}let y=(0,e.i(827830).createStyles)(({token:e})=>({main:{width:"368px",margin:"0 auto",h3:{marginBottom:"20px",fontSize:"16px"}},password:{marginBottom:"24px",".ant-form-item-explain":{display:"none"}},getCaptcha:{display:"block",width:"100%"},footer:{width:"100%",display:"flex",alignItems:"center",justifyContent:"space-between"},submit:{width:"50%"},success:{transition:"color 0.3s",color:e.colorSuccess},warning:{transition:"color 0.3s",color:e.colorWarning},error:{transition:"color 0.3s",color:e.colorError},"progress-pass > .progress":{".ant-progress-bg":{backgroundColor:e.colorWarning}}})),$=a.Form.Item,{Option:b}=m.Select,x={ok:"success",pass:"normal",poor:"exception"};e.s(["default",0,()=>{let e,v,k,{styles:w}=y(),[C,S]=(0,f.useState)(0),[j,N]=(0,f.useState)(!1),[E,I]=(0,f.useState)("86"),[M,W]=(0,f.useState)(!1),F={ok:(0,t.jsx)("div",{className:w.success,children:(0,t.jsx)("span",{children:"强度:强"})}),pass:(0,t.jsx)("div",{className:w.warning,children:(0,t.jsx)("span",{children:"强度:中"})}),poor:(0,t.jsx)("div",{className:w.error,children:(0,t.jsx)("span",{children:"强度:太短"})})},[A]=a.Form.useForm();(0,f.useEffect)(()=>()=>{clearInterval(e)},[e]);let P=()=>{let e=A.getFieldValue("password");return e&&e.length>9?"ok":e&&e.length>5?"pass":"poor"},{loading:R,run:z}=(0,i.useRequest)(h,{manual:!0,onSuccess:(e,t)=>{"ok"===e.status&&(c.message.success("注册成功!"),r.history.push({pathname:`/user/register-result?account=${t[0].email}`}))}});return(0,t.jsxs)("div",{className:w.main,children:[(0,t.jsx)("h3",{children:"注册"}),(0,t.jsxs)(a.Form,{form:A,name:"UserRegister",onFinish:e=>{z(e)},children:[(0,t.jsx)($,{name:"email",rules:[{required:!0,message:"请输入邮箱地址!"},{type:"email",message:"邮箱地址格式错误!"}],children:(0,t.jsx)(s.Input,{size:"large",placeholder:"邮箱"})}),(0,t.jsx)(d.Popover,{getPopupContainer:e=>e?.parentNode?e.parentNode:e,content:j&&(0,t.jsxs)("div",{style:{padding:"4px 0"},children:[F[P()],(v=A.getFieldValue("password"),k=P(),v?.length?(0,t.jsx)("div",{className:w[`progress-${k}`],children:(0,t.jsx)(u.Progress,{status:x[k],size:6,percent:10*v.length>100?100:10*v.length,showInfo:!1})}):null),(0,t.jsx)("div",{style:{marginTop:10},children:(0,t.jsx)("span",{children:"请至少输入 6 个字符。请不要使用容易被猜到的密码。"})})]}),overlayStyle:{width:240},placement:"right",open:j,children:(0,t.jsx)($,{name:"password",className:A.getFieldValue("password")&&A.getFieldValue("password").length>0&&w.password,rules:[{validator:(e,t)=>{let r=Promise;return t?(j||N(!!t),W(!M),t.length<6)?r.reject(""):r.resolve():(N(!!t),r.reject("请输入密码!"))}}],children:(0,t.jsx)(s.Input,{size:"large",type:"password",placeholder:"至少6位密码,区分大小写"})})}),(0,t.jsx)($,{name:"confirm",rules:[{required:!0,message:"确认密码"},{validator:(e,t)=>{let r=Promise;return t&&t!==A.getFieldValue("password")?r.reject("两次输入的密码不匹配!"):r.resolve()}}],children:(0,t.jsx)(s.Input,{size:"large",type:"password",placeholder:"确认密码"})}),(0,t.jsx)($,{name:"mobile",rules:[{required:!0,message:"请输入手机号!"},{pattern:/^\d{11}$/,message:"手机号格式错误!"}],children:(0,t.jsxs)(g.Space.Compact,{style:{width:"100%"},children:[(0,t.jsxs)(m.Select,{size:"large",value:E,onChange:e=>{I(e)},style:{width:"30%"},children:[(0,t.jsx)(b,{value:"86",children:"+86"}),(0,t.jsx)(b,{value:"87",children:"+87"})]}),(0,t.jsx)(s.Input,{size:"large",placeholder:"手机号"})]})}),(0,t.jsxs)(p.Row,{gutter:8,children:[(0,t.jsx)(l.Col,{span:16,children:(0,t.jsx)($,{name:"captcha",rules:[{required:!0,message:"请输入验证码!"}],children:(0,t.jsx)(s.Input,{size:"large",placeholder:"验证码"})})}),(0,t.jsx)(l.Col,{span:8,children:(0,t.jsx)(n.Button,{size:"large",disabled:!!C,className:w.getCaptcha,onClick:()=>{let t=59;S(59),e=window.setInterval(()=>{S(t-=1),0===t&&clearInterval(e)},1e3)},children:C?`${C} s`:"获取验证码"})})]}),(0,t.jsx)($,{children:(0,t.jsxs)("div",{className:w.footer,children:[(0,t.jsx)(n.Button,{size:"large",loading:R,className:w.submit,type:"primary",htmlType:"submit",children:(0,t.jsx)("span",{children:"注册"})}),(0,t.jsx)(o.Link,{to:"/user/login",prefetch:!0,children:(0,t.jsx)("span",{children:"使用已有账户登录"})})]})})]})]})}],679707)},749344,236107,e=>{"use strict";var t=e.i(191788);e.i(117327);var r=e.i(226150),r=r,o=e.i(938667);let i=e=>"object"==typeof e&&null!=e&&1===e.nodeType,n=(e,t)=>(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e,l=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){let r,o=getComputedStyle(e,null);return n(o.overflowY,t)||n(o.overflowX,t)||!!(r=(e=>{if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}})(e))&&(r.clientHeight<e.scrollHeight||r.clientWidth<e.scrollWidth)}return!1},a=(e,t,r,o,i,n,l,a)=>n<e&&l>t||n>e&&l<t?0:n<=e&&a<=r||l>=t&&a>=r?n-e-o:l>t&&a<r||n<e&&a>r?l-t+i:0,s=e=>{let t=e.parentElement;return null==t?e.getRootNode().host||null:t},c=(e,t)=>{var r,o,n,c;let d;if("u"<typeof document)return[];let{scrollMode:u,block:p,inline:m,boundary:g,skipOverflowHiddenElements:f}=t,h="function"==typeof g?g:e=>e!==g;if(!i(e))throw TypeError("Invalid target");let y=document.scrollingElement||document.documentElement,$=[],b=e;for(;i(b)&&h(b);){if((b=s(b))===y){$.push(b);break}null!=b&&b===document.body&&l(b)&&!l(document.documentElement)||null!=b&&l(b,f)&&$.push(b)}let x=null!=(o=null==(r=window.visualViewport)?void 0:r.width)?o:innerWidth,v=null!=(c=null==(n=window.visualViewport)?void 0:n.height)?c:innerHeight,{scrollX:k,scrollY:w}=window,{height:C,width:S,top:j,right:N,bottom:E,left:I}=e.getBoundingClientRect(),{top:M,right:W,bottom:F,left:A}={top:parseFloat((d=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(d.scrollMarginRight)||0,bottom:parseFloat(d.scrollMarginBottom)||0,left:parseFloat(d.scrollMarginLeft)||0},P="start"===p||"nearest"===p?j-M:"end"===p?E+F:j+C/2-M+F,R="center"===m?I+S/2-A+W:"end"===m?N+W:I-A,z=[];for(let e=0;e<$.length;e++){let t=$[e],{height:r,width:o,top:i,right:n,bottom:s,left:c}=t.getBoundingClientRect();if("if-needed"===u&&j>=0&&I>=0&&E<=v&&N<=x&&(t===y&&!l(t)||j>=i&&E<=s&&I>=c&&N<=n))break;let d=getComputedStyle(t),g=parseInt(d.borderLeftWidth,10),f=parseInt(d.borderTopWidth,10),h=parseInt(d.borderRightWidth,10),b=parseInt(d.borderBottomWidth,10),M=0,W=0,F="offsetWidth"in t?t.offsetWidth-t.clientWidth-g-h:0,A="offsetHeight"in t?t.offsetHeight-t.clientHeight-f-b:0,T="offsetWidth"in t?0===t.offsetWidth?0:o/t.offsetWidth:0,D="offsetHeight"in t?0===t.offsetHeight?0:r/t.offsetHeight:0;if(y===t)M="start"===p?P:"end"===p?P-v:"nearest"===p?a(w,w+v,v,f,b,w+P,w+P+C,C):P-v/2,W="start"===m?R:"center"===m?R-x/2:"end"===m?R-x:a(k,k+x,x,g,h,k+R,k+R+S,S),M=Math.max(0,M+w),W=Math.max(0,W+k);else{M="start"===p?P-i-f:"end"===p?P-s+b+A:"nearest"===p?a(i,s,r,f,b+A,P,P+C,C):P-(i+r/2)+A/2,W="start"===m?R-c-g:"center"===m?R-(c+o/2)+F/2:"end"===m?R-n+h+F:a(c,n,o,g,h+F,R,R+S,S);let{scrollLeft:e,scrollTop:l}=t;M=0===D?0:Math.max(0,Math.min(l+M/D,t.scrollHeight-r/D+A)),W=0===T?0:Math.max(0,Math.min(e+W/T,t.scrollWidth-o/T+F)),P+=l-M,R+=e-W}z.push({el:t,top:M,left:W})}return z},d=["parentNode"];function u(e){return void 0===e||!1===e?[]:Array.isArray(e)?e:[e]}function p(e,t){if(!e.length)return;let r=e.join("_");return t?`${t}_${r}`:d.includes(r)?`form_item_${r}`:r}function m(e){return u(e).join("_")}function g(e,t){let r=t.getFieldInstance(e),i=(0,o.getDOM)(r);if(i)return i;let n=p(u(e),t.__INTERNAL__.name);if(n)return document.getElementById(n)}e.s(["getFieldId",0,p,"getStatus",0,function(e,t,r,o,i,n){let l=o;return void 0!==n?l=n:r.validating?l="validating":e.length?l="error":t.length?l="warning":(r.touched||i&&r.validated)&&(l="success"),l},"toArray",0,u],236107),e.s(["default",0,function(e){let[o]=(0,r.default)(),i=t.useRef({}),n=t.useMemo(()=>e??{...o,__INTERNAL__:{itemRef:e=>t=>{let r=m(e);t?i.current[r]=t:delete i.current[r]}},scrollToField:(e,t={})=>{let{focus:r,...o}=t,i=g(e,n);i&&(!function(e,t){let r;if(!e.isConnected||!(e=>{let t=e;for(;t&&t.parentNode;){if(t.parentNode===document)return!0;t=t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}return!1})(e))return;let o={top:parseFloat((r=window.getComputedStyle(e)).scrollMarginTop)||0,right:parseFloat(r.scrollMarginRight)||0,bottom:parseFloat(r.scrollMarginBottom)||0,left:parseFloat(r.scrollMarginLeft)||0};if("object"==typeof t&&"function"==typeof t.behavior)return t.behavior(c(e,t));let i="boolean"==typeof t||null==t?void 0:t.behavior;for(let{el:r,top:n,left:l}of c(e,!1===t?{block:"end",inline:"nearest"}:t===Object(t)&&0!==Object.keys(t).length?t:{block:"start",inline:"nearest"})){let e=n-o.top+o.bottom,t=l-o.left+o.right;r.scroll({top:e,left:t,behavior:i})}}(i,{scrollMode:"if-needed",block:"nearest",...o}),r&&n.focusField(e))},focusField:e=>{let t=n.getFieldInstance(e);"function"==typeof t?.focus?t.focus():g(e,n)?.focus?.()},getFieldInstance:e=>{let t=m(e);return i.current[t]}},[e,o]);return[n]},"toNamePathStr",0,m],749344)},790731,37132,21567,e=>{"use strict";e.i(495059);var t=e.i(191788);e.i(957562);var r=e.i(617796),o=e.i(56206);let i=e=>e?"function"==typeof e?e():e:null;e.s(["getRenderPropValue",0,i],37132);var n=e.i(430898),l=e.i(47472),a=e.i(993175),s=e.i(188304),c=e.i(783831);e.i(215747);var d=e.i(208081),u=e.i(307441),p=e.i(394739),m=e.i(770371),g=e.i(840665),f=e.i(352050),h=e.i(104616),y=e.i(678251),$=(0,f.genStyleHooks)("Popover",e=>{let{colorBgElevated:t,colorText:r}=e,o=(0,h.mergeToken)(e,{popoverBg:t,popoverColor:r});return[(e=>{let{componentCls:t,popoverColor:r,titleMinWidth:o,fontWeightStrong:i,innerPadding:n,boxShadowSecondary:l,colorTextHeading:a,borderRadiusLG:s,zIndexPopup:c,titleMarginBottom:d,colorBgElevated:p,popoverBg:g,titleBorderBottom:h,innerContentPadding:y,titlePadding:$,antCls:b}=e,[x,v]=(0,f.genCssVar)(b,"tooltip");return[{[t]:{...(0,u.resetComponent)(e),position:"absolute",top:0,left:{_skip_check_:!0,value:0},zIndex:c,fontWeight:"normal",whiteSpace:"normal",textAlign:"start",cursor:"auto",userSelect:"text",[x("valid-offset-x")]:v("arrow-offset-x","var(--arrow-x)"),transformOrigin:[v("valid-offset-x","50%"),"var(--arrow-y, 50%)"].join(" "),[x("arrow-background-color")]:p,width:"max-content",maxWidth:"100vw","&-rtl":{direction:"rtl"},"&-hidden":{display:"none"},[`${t}-content`]:{position:"relative"},[`${t}-container`]:{backgroundColor:g,backgroundClip:"padding-box",borderRadius:s,boxShadow:l,padding:n},[`${t}-title`]:{minWidth:o,marginBottom:d,color:a,fontWeight:i,borderBottom:h,padding:$},[`${t}-content`]:{color:r,padding:y}}},(0,m.default)(e,v("arrow-background-color")),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block"}}]})(o),(e=>{let{componentCls:t,antCls:r}=e,[o]=(0,f.genCssVar)(r,"tooltip");return{[t]:y.PresetColors.map(r=>{let i=e[`${r}6`];return{[`&${t}-${r}`]:{[o("arrow-background-color")]:i,[`${t}-inner`]:{backgroundColor:i},[`${t}-arrow`]:{background:"transparent"}}}})}})(o),(0,p.initZoomMotion)(o,"zoom-big")]},e=>{let{lineWidth:t,controlHeight:r,fontHeight:o,padding:i,wireframe:n,zIndexPopupBase:l,borderRadiusLG:a,marginXS:s,lineType:c,colorSplit:d,paddingSM:u}=e,p=r-o;return{titleMinWidth:177,zIndexPopup:l+30,...(0,g.getArrowToken)(e),...(0,m.getArrowOffsetToken)({contentRadius:a,limitVerticalRadius:!0}),innerPadding:12*!n,titleMarginBottom:n?0:s,titlePadding:n?`${p/2}px ${i}px ${p/2-t}px`:0,titleBorderBottom:n?`${t}px ${c} ${d}`:"none",innerContentPadding:n?`${u}px ${i}px`:0}},{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});let b=e=>{let{title:r,content:i,prefixCls:n,classNames:l,styles:a}=e;return r||i?t.createElement(t.Fragment,null,r&&t.createElement("div",{className:(0,o.clsx)(`${n}-title`,l?.title),style:a?.title},r),i&&t.createElement("div",{className:(0,o.clsx)(`${n}-content`,l?.content),style:a?.content},i)):null},x=e=>{let{hashId:r,prefixCls:l,className:a,style:s,placement:c="top",title:u,content:p,children:m,classNames:g,styles:f}=e,h=i(u),y=i(p),$={...e,placement:c},[x,v]=(0,n.useMergeSemantic)([g],[f],{props:$}),k=(0,o.clsx)(r,l,`${l}-pure`,`${l}-placement-${c}`,a);return t.createElement("div",{className:k,style:s},t.createElement("div",{className:`${l}-arrow`}),t.createElement(d.Popup,{...e,className:r,prefixCls:l,classNames:x,styles:v},m||t.createElement(b,{prefixCls:l,title:h,content:y,classNames:x,styles:v})))};var v=e=>{let{prefixCls:r,className:i,...n}=e,{getPrefixCls:l}=t.useContext(a.ConfigContext),s=l("popover",r),[c,d]=$(s);return t.createElement(x,{...n,prefixCls:s,hashId:c,className:(0,o.clsx)(i,d)})};e.s(["Overlay",0,b,"default",0,v],21567);let k=t.forwardRef((e,d)=>{let{prefixCls:u,title:p,content:m,overlayClassName:g,placement:f="top",trigger:h,children:y,mouseEnterDelay:x=.1,mouseLeaveDelay:v=.1,onOpenChange:k,overlayStyle:w={},styles:C,classNames:S,motion:j,arrow:N,...E}=e,{getPrefixCls:I,className:M,style:W,classNames:F,styles:A,arrow:P,trigger:R}=(0,a.useComponentConfig)("popover"),z=I("popover",u),[T,D]=$(z),B=I(),O=(0,c.default)(N,P),_=h||R||"hover",H={...e,placement:f,trigger:_,mouseEnterDelay:x,mouseLeaveDelay:v,overlayStyle:w,styles:C,classNames:S},[L,X]=(0,n.useMergeSemantic)([F,S],[A,C],{props:H}),V=(0,o.clsx)(g,T,D,M,L.root),[q,Y]=(0,r.useControlledState)(e.defaultOpen??!1,e.open),U=i(p),K=i(m);return t.createElement(s.default,{unique:!1,arrow:O,placement:f,trigger:_,mouseEnterDelay:x,mouseLeaveDelay:v,...E,prefixCls:z,classNames:{root:V,container:L.container,arrow:L.arrow},styles:{root:{...X.root,...W,...w},container:X.container,arrow:X.arrow},ref:d,open:q,onOpenChange:e=>{Y(e),k?.(e)},overlay:U||K?t.createElement(b,{prefixCls:z,title:U,content:K,classNames:L,styles:X}):null,motion:{motionName:(0,l.getTransitionName)(B,"zoom-big","string"==typeof j?.motionName?j?.motionName:void 0)},"data-popover-inject":!0},y)});k._InternalPanelDoNotUseOrYouWillBeFired=v,e.s(["default",0,k],790731)}]);