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.
NewEduCoderBuild/9345.async.js

1 line
11 KiB

"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[9345],{3437:function(e,n,t){t.d(n,{Z:function(){return c}});var o=t(66820),r=t(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},a=t(80109),s=function(e,n){return r.createElement(a.Z,(0,o.Z)({},e,{ref:n,icon:i}))};var c=r.forwardRef(s)},48664:function(e,n,t){t.d(n,{Z:function(){return c}});var o=t(66820),r=t(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},a=t(80109),s=function(e,n){return r.createElement(a.Z,(0,o.Z)({},e,{ref:n,icon:i}))};var c=r.forwardRef(s)},76419:function(e,n,t){t.d(n,{Z:function(){return c}});var o=t(66820),r=t(59301),i={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},a=t(80109),s=function(e,n){return r.createElement(a.Z,(0,o.Z)({},e,{ref:n,icon:i}))};var c=r.forwardRef(s)},33102:function(e,n,t){t.d(n,{Z:function(){return w}});var o=t(7557),r=t.n(o),i=t(41498),a=t.n(i),s=t(79800),c=t.n(s),u=t(82242),l=t.n(u),f=t(59301),d=t(72040),p=t(3437),v=t(48664),m=t(63834),h=t(37712),y={moveX:0,verify:0},g=function(e){return e[e.SET_MOVEX=0]="SET_MOVEX",e[e.VERIFY=1]="VERIFY",e}(g||{});function E(e,n){switch(n.type){case g.SET_MOVEX:return l()(l()({},e),{},{moveX:n.payload});case g.VERIFY:return l()(l()({},e),n.payload);default:throw new Error}}var w=function(e){var n=e.value,t=e.onChange,o=e.onValidate,i=(0,f.useReducer)(E,y),s=c()(i,2),u=s[0],l=s[1],w=u.moveX,b=u.verify,x=(0,f.useRef)(),C=(0,f.useRef)(),O=(0,f.useRef)(),M=(0,f.useRef)(),j=(0,f.useMemo)((function(){if(C.current)return C.current.getBoundingClientRect()}),[C.current]);function Z(){b||(M.current=!0,x.current.style.transition="",O.current.style.transition="")}return(0,f.useEffect)((function(){if(j){var e=function(){var e=a()(r()().mark((function e(n){var a;return r()().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!M.current){e.next=15;break}if(a=n.pageX-c,f&&(a=n.changedTouches[0].pageX-c),a<0&&(a=0),!(a>=u)){e.next=14;break}return M.current=!1,a=u,e.next=9,o();case 9:i=e.sent,l({type:g.VERIFY,payload:{moveX:a,verify:i}}),t(i),e.next=15;break;case 14:l({type:g.SET_MOVEX,payload:a});case 15:case"end":return e.stop()}}),e)})));return function(n){return e.apply(this,arguments)}}(),n=function(){M.current=!1,0===i&&(x.current.style.transition="left .5s ease",O.current.style.transition="width .5s ease",l({type:g.VERIFY,payload:{moveX:0}}))},i=0,s=j.width,c=j.left,u=s-48,f=!(0,m.b9)();return f?(window.addEventListener("touchmove",e),window.addEventListener("touchend",n)):(window.addEventListener("mousemove",e),window.addEventListener("mouseup",n)),function(){f?(window.removeEventListener("touchmove",e),window.removeEventListener("touchend",n)):(window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",n))}}}),[j,m.b9]),(0,f.useEffect)((function(){l({type:g.VERIFY,payload:{verify:n,moveX:n?(null==j?void 0:j.width)-48:0}})}),[n]),(0,h.jsxs)("div",{ref:C,className:"unlock-wrapper",children:[(0,h.jsx)("div",{ref:O,className:1===b?"unlock-error-bg":"unlock-bg",style:{width:w}}),(0,h.jsx)("div",{className:"unlock-text",children:b?1===b?"验证失败":"验证通过":"拖动滑块至右侧验证"}),(0,h.jsx)("div",{ref:x,onTouchStart:Z,onMouseDown:Z,style:{left:w},className:"unlock-handler",children:b?1===b?(0,h.jsx)(d.Z,{}):(0,h.jsx)(p.Z,{}):(0,h.jsx)(v.Z,{})})]})}},9158:function(e,n,t){t.d(n,{Ol:function(){return r},c0:function(){return s},o1:function(){return i},z2:function(){return a}});var o=t(14735);function r(e){return(0,o.U2)("accounts/valid_email_and_phone.json",e)}function i(e){return(0,o.U2)("accounts/get_verification_code.json",e)}function a(e){return(0,o.v_)("accounts/register.json",e)}function s(e){return(0,o.v_)("accounts/reset_password.json",e)}},9641:function(e,n,t){t.d(n,{Z:function(){return P}});var o=t(92310),r=t.n(o),i=t(59301),a=t(36355),s=t(32441),c=t(9937);var u=e=>{const{getPrefixCls:n,direction:t}=(0,i.useContext)(a.E_),{prefixCls:o,className:u}=e,l=n("input-group",o),f=n("input"),[d,p]=(0,c.ZP)(f),v=r()(l,{[`${l}-lg`]:"large"===e.size,[`${l}-sm`]:"small"===e.size,[`${l}-compact`]:e.compact,[`${l}-rtl`]:"rtl"===t},p,u),m=(0,i.useContext)(s.aM),h=(0,i.useMemo)((()=>Object.assign(Object.assign({},m),{isFormItemInput:!1})),[m]);return d(i.createElement("span",{className:v,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},i.createElement(s.aM.Provider,{value:h},e.children)))},l=t(9432),f=t(66820),d={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},p=t(80109),v=function(e,n){return i.createElement(p.Z,(0,f.Z)({},e,{ref:n,icon:d}))};var m=i.forwardRef(v),h=t(76419),y=t(62805),g=t(76466),E=t(59412),w=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};const b=e=>e?i.createElement(h.Z,null):i.createElement(m,null),x={click:"onClick",hover:"onMouseOver"};var C=i.forwardRef(((e,n)=>{const{visibilityToggle:t=!0}=e,o="object"==typeof t&&void 0!==t.visible,[s,c]=(0,i.useState)((()=>!!o&&t.visible)),u=(0,i.useRef)(null);i.useEffect((()=>{o&&c(t.visible)}),[o,t]);const f=(0,E.Z)(u),d=()=>{const{disabled:n}=e;n||(s&&f(),c((e=>{var n;const o=!e;return"object"==typeof t&&(null===(n=t.onVisibleChange)||void 0===n||n.call(t,o)),o})))},{className:p,prefixCls:v,inputPrefixCls:m,size:h}=e,C=w(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:O}=i.useContext(a.E_),M=O("input",m),j=O("input-password",v),Z=t&&(n=>{const{action:t="click",iconRender:o=b}=e,r=x[t]||"",a=o(s),c={[r]:d,className:`${n}-icon`,key:"passwordIcon",onMouseDown:e=>{e.preventDefault()},onMouseUp:e=>{e.preventDefault()}};return i.cloneElement(i.isValidElement(a)?a:i.createElement("span",null,a),c)})(j),k=r()(j,p,{[`${j}-${h}`]:!!h}),z=Object.assign(Object.assign({},(0,y.Z)(C,["suffix","iconRender","visibilityToggle"])),{type:s?"text":"password",className:k,prefixCls:M,suffix:Z});return h&&(z.size=h),i.createElement(l.Z,Object.assign({ref:(0,g.sQ)(n,u)},z))})),O=t(62165),M=t(92343),j=t(3113),Z=t(19716),k=t(33234),z=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};var R=i.forwardRef(((e,n)=>{const{prefixCls:t,inputPrefixCls:o,className:s,size:c,suffix:u,enterButton:f=!1,addonAfter:d,loading:p,disabled:v,onSearch:m,onChange:h,onCompositionStart:y,onCompositionEnd:E}=e,w=z(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:b,direction:x}=i.useContext(a.E_),C=i.useRef(!1),R=b("input-search",t),$=b("input",o),{compactSize:L}=(0,k.ri)(R,x),P=(0,Z.Z)((e=>{var n;return null!==(n=null!=c?c:L)&&void 0!==n?n:e})),_=i.useRef(null),N=e=>{var n;document.activeElement===(null===(n=_.current)||void 0===n?void 0:n.input)&&e.preventDefault()},S=e=>{var n,t;m&&m(null===(t=null===(n=_.current)||void 0===n?void 0:n.input)||void 0===t?void 0:t.value,e,{source:"input"})},I="boolean"==typeof f?i.createElement(O.Z,null):null,T=`${R}-button`;let V;const B=f||{},X=B.type&&!0===B.type.__ANT_BUTTON;V=X||"button"===B.type?(0,M.Tm)(B,Object.assign({onMouseDown:N,onClick:e=>{var n,t;null===(t=null===(n=null==B?void 0:B.props)||void 0===n?void 0:n.onClick)||void 0===t||t.call(n,e),S(e)},key:"enterButton"},X?{className:T,size:P}:{})):i.createElement(j.ZP,{className:T,type:f?"primary":void 0,size:P,disabled:v,key:"enterButton",onMouseDown:N,onClick:S,loading:p,icon:I},f),d&&(V=[V,(0,M.Tm)(d,{key:"addonAfter"})]);const D=r()(R,{[`${R}-rtl`]:"rtl"===x,[`${R}-${P}`]:!!P,[`${R}-with-button`]:!!f},s);return i.createElement(l.Z,Object.assign({ref:(0,g.sQ)(_,n),onPressEnter:e=>{C.current||p||S(e)}},w,{size:P,onCompositionStart:e=>{C.current=!0,null==y||y(e)},onCompositionEnd:e=>{C.current=!1,null==E||E(e)},prefixCls:$,addonAfter:V,suffix:u,onChange:e=>{e&&e.target&&"click"===e.type&&m&&m(e.target.value,e,{source:"clear"}),h&&h(e)},className:D,disabled:v}))})),$=t(1643);const L=l.Z;L.Group=u,L.Search=R,L.TextArea=$.Z,L.Password=C;var P=L},8378:function(e,n){n.Z=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},\n opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}})}}]);