@kne-components/components-admin 1.1.25 → 1.1.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (78) hide show
  1. package/build/asset-manifest.json +54 -50
  2. package/build/index.html +1 -1
  3. package/build/remoteEntry.js +1 -1
  4. package/build/remoteEntry.js.map +1 -1
  5. package/build/static/css/3066.cf4075eb.chunk.css +2 -0
  6. package/build/static/css/{3066.dc31dbc0.chunk.css.map → 3066.cf4075eb.chunk.css.map} +1 -1
  7. package/build/static/css/369.f468af01.chunk.css +2 -0
  8. package/build/static/css/{369.4e425294.chunk.css.map → 369.f468af01.chunk.css.map} +1 -1
  9. package/build/static/css/4168.b4ca737e.chunk.css +2 -0
  10. package/build/static/css/{4168.d040d109.chunk.css.map → 4168.b4ca737e.chunk.css.map} +1 -1
  11. package/build/static/css/4460.f6bca362.chunk.css +2 -0
  12. package/build/static/css/4460.f6bca362.chunk.css.map +1 -0
  13. package/build/static/css/4948.eea1c5f6.chunk.css +2 -0
  14. package/build/static/css/{4948.c27c1bb2.chunk.css.map → 4948.eea1c5f6.chunk.css.map} +1 -1
  15. package/build/static/css/{5084.ddc5e70e.chunk.css → 5084.f04eefae.chunk.css} +2 -2
  16. package/build/static/css/{5084.ddc5e70e.chunk.css.map → 5084.f04eefae.chunk.css.map} +1 -1
  17. package/build/static/css/5425.f468af01.chunk.css +2 -0
  18. package/build/static/css/{5425.4e425294.chunk.css.map → 5425.f468af01.chunk.css.map} +1 -1
  19. package/build/static/css/5795.a93a6cb7.chunk.css +2 -0
  20. package/build/static/css/{5795.138e7d4d.chunk.css.map → 5795.a93a6cb7.chunk.css.map} +1 -1
  21. package/build/static/css/6024.cb5d801f.chunk.css +2 -0
  22. package/build/static/css/{6024.2d74587b.chunk.css.map → 6024.cb5d801f.chunk.css.map} +1 -1
  23. package/build/static/css/7687.d33fb935.chunk.css +2 -0
  24. package/build/static/css/7687.d33fb935.chunk.css.map +1 -0
  25. package/build/static/css/875.73c1d7bd.chunk.css +12 -0
  26. package/build/static/css/875.73c1d7bd.chunk.css.map +1 -0
  27. package/build/static/js/{369.e1f9c751.chunk.js → 369.b78442fe.chunk.js} +3 -3
  28. package/build/static/js/{369.e1f9c751.chunk.js.map → 369.b78442fe.chunk.js.map} +1 -1
  29. package/build/static/js/3690.9a50be09.chunk.js +2 -0
  30. package/build/static/js/3690.9a50be09.chunk.js.map +1 -0
  31. package/build/static/js/{4836.e1f53cfe.chunk.js → 4836.74f296ea.chunk.js} +2 -2
  32. package/build/static/js/{4836.e1f53cfe.chunk.js.map → 4836.74f296ea.chunk.js.map} +1 -1
  33. package/build/static/js/{4948.3284a018.chunk.js → 4948.69740a43.chunk.js} +3 -3
  34. package/build/static/js/{4948.3284a018.chunk.js.map → 4948.69740a43.chunk.js.map} +1 -1
  35. package/build/static/js/{5084.99e2b83e.chunk.js → 5084.06a38430.chunk.js} +2 -2
  36. package/build/static/js/{5084.99e2b83e.chunk.js.map → 5084.06a38430.chunk.js.map} +1 -1
  37. package/build/static/js/{5272.b987cd40.chunk.js → 5272.ee8c301b.chunk.js} +2 -2
  38. package/build/static/js/{5272.b987cd40.chunk.js.map → 5272.ee8c301b.chunk.js.map} +1 -1
  39. package/build/static/js/{5425.ee671541.chunk.js → 5425.3a6321a3.chunk.js} +3 -3
  40. package/build/static/js/{5425.ee671541.chunk.js.map → 5425.3a6321a3.chunk.js.map} +1 -1
  41. package/build/static/js/{5795.05d21882.chunk.js → 5795.a6bfd18a.chunk.js} +3 -3
  42. package/build/static/js/{5795.05d21882.chunk.js.map → 5795.a6bfd18a.chunk.js.map} +1 -1
  43. package/build/static/js/{7517.3c13b48e.chunk.js → 7517.5b0506e9.chunk.js} +2 -2
  44. package/build/static/js/{7517.3c13b48e.chunk.js.map → 7517.5b0506e9.chunk.js.map} +1 -1
  45. package/build/static/js/{7687.810c9e57.chunk.js → 7687.0e4dc21a.chunk.js} +2 -2
  46. package/build/static/js/{7687.810c9e57.chunk.js.map → 7687.0e4dc21a.chunk.js.map} +1 -1
  47. package/build/static/js/{7747.556a6701.chunk.js → 7747.5fce18ee.chunk.js} +2 -2
  48. package/build/static/js/7747.5fce18ee.chunk.js.map +1 -0
  49. package/build/static/js/8406.6fb30c10.chunk.js +2 -0
  50. package/build/static/js/{8406.e8abf05d.chunk.js.map → 8406.6fb30c10.chunk.js.map} +1 -1
  51. package/build/static/js/{main.71bda9a2.js → main.d18c90b0.js} +2 -2
  52. package/build/static/js/{main.71bda9a2.js.map → main.d18c90b0.js.map} +1 -1
  53. package/build/static/media/check~elxgVvVe.d6bb9a199bf3a5853749ecea3ce6a127.svg +3 -0
  54. package/build/static/media/collapse~vphRLfPi.378d83c01100d172e79c04ba3179be58.svg +6 -0
  55. package/build/static/media/copy~drOLfxzP.5880fbbaf59db852794c06f32786d138.svg +4 -0
  56. package/build/static/media/expand~blSbUwvt.8a0d1f9fb3339d7da34c3117df14b545.svg +6 -0
  57. package/package.json +2 -2
  58. package/build/static/css/3066.dc31dbc0.chunk.css +0 -2
  59. package/build/static/css/369.4e425294.chunk.css +0 -2
  60. package/build/static/css/4168.d040d109.chunk.css +0 -2
  61. package/build/static/css/4460.9a69ea92.chunk.css +0 -2
  62. package/build/static/css/4460.9a69ea92.chunk.css.map +0 -1
  63. package/build/static/css/4948.c27c1bb2.chunk.css +0 -2
  64. package/build/static/css/5425.4e425294.chunk.css +0 -2
  65. package/build/static/css/5795.138e7d4d.chunk.css +0 -2
  66. package/build/static/css/6024.2d74587b.chunk.css +0 -2
  67. package/build/static/css/7687.e31548b1.chunk.css +0 -2
  68. package/build/static/css/7687.e31548b1.chunk.css.map +0 -1
  69. package/build/static/css/875.e7d143b9.chunk.css +0 -12
  70. package/build/static/css/875.e7d143b9.chunk.css.map +0 -1
  71. package/build/static/js/3556.7b6f32dc.chunk.js +0 -2
  72. package/build/static/js/3556.7b6f32dc.chunk.js.map +0 -1
  73. package/build/static/js/7747.556a6701.chunk.js.map +0 -1
  74. package/build/static/js/8406.e8abf05d.chunk.js +0 -2
  75. /package/build/static/js/{369.e1f9c751.chunk.js.LICENSE.txt → 369.b78442fe.chunk.js.LICENSE.txt} +0 -0
  76. /package/build/static/js/{4948.3284a018.chunk.js.LICENSE.txt → 4948.69740a43.chunk.js.LICENSE.txt} +0 -0
  77. /package/build/static/js/{5425.ee671541.chunk.js.LICENSE.txt → 5425.3a6321a3.chunk.js.LICENSE.txt} +0 -0
  78. /package/build/static/js/{5795.05d21882.chunk.js.LICENSE.txt → 5795.a6bfd18a.chunk.js.LICENSE.txt} +0 -0
@@ -1,2 +0,0 @@
1
- "use strict";(globalThis.webpackChunk_kne_components_components_admin=globalThis.webpackChunk_kne_components_components_admin||[]).push([[8406],{68743(e,s,t){t.d(s,{A:()=>c});var a=t(13050),n=t(35795),o=t(74416),l=t(96418),i=t(73884),r=t(70579);const c=(0,a.createWithRemoteLoader)({modules:["components-core:Global@useGlobalValue","components-core:Global@useGlobalContext"]})(e=>{let{remoteModules:s,...t}=e;const[a,c]=s,d=a("locale"),{setGlobal:u}=c("locale"),m=(0,l.default)(()=>{const e=o.A.getItem("X-User-Locale");["en-US","zh-CN"].indexOf(e)>-1&&e!==d&&u(e)});return(0,i.useEffect)(()=>{m()},[m]),(0,r.jsx)(n.default,{...t,locale:d,onChange:e=>{u(e),o.A.setItem("X-User-Locale",e)}})})},98406(e,s,t){t.r(s),t.d(s,{ForgetByEmail:()=>W,Login:()=>E,LoginOuterContainer:()=>y,Logout:()=>q,Modify:()=>B,Register:()=>T,ResetPassword:()=>Q,default:()=>fe,useLogout:()=>X});var a=t(55199),n=t(98139),o=t.n(n),l=t(64948);const i="style_out-left__wOmRS__ALHcP",r="style_out-right__29XpV__ALHcP",c="style_out-right-inner__DZjbq__ALHcP",d="style_container-left-content__2FtGT__ALHcP",u="style_container-left-logo__fR8Ed__ALHcP",m="style_container-left-title__vg7KF__ALHcP",g="style_container-left-inner__AZyjW__ALHcP",p="style_out-container__iqnkT__ALHcP",h="style_top-banner__j8+SV__ALHcP",_="style_title__Pn7Uw__ALHcP",j="style_back-link__TepOq__ALHcP",x="style_form-inner__AnfOK__ALHcP",f="style_top-banner-inner__-62z0__ALHcP",P="style_out-inner__olZqh__ALHcP";var w=t(70579);const y=e=>{let{className:s,title:t,logo:n,leftInner:_=(0,w.jsx)(l.default,{}),children:j}=e;return(0,w.jsxs)("div",{className:o()(s,p,"account-box"),children:[(0,w.jsxs)("div",{className:h,children:[(0,w.jsx)("div",{className:f,children:t}),_]}),(0,w.jsx)("div",{className:P,children:(0,w.jsxs)(a.Row,{wrap:!1,children:[(0,w.jsxs)(a.Col,{className:o()(i,"container-left"),children:[(0,w.jsxs)(a.Flex,{gap:16,align:"center",className:o()(d,"container-left-content"),children:[n&&(0,w.jsx)("img",{className:o()(u,"container-left-logo"),src:n,alt:"logo"}),t&&(0,w.jsx)("div",{className:o()(m,"container-left-title"),children:t})]}),_&&(0,w.jsx)("div",{className:o()(g,"container-left-inner"),children:_})]}),(0,w.jsx)(a.Col,{className:o()(r,"container-right"),flex:1,children:(0,w.jsx)("div",{className:o()(c,"container-right-inner"),children:j})})]})})]})},L="style_forget-button__4NY6I__ALHcP";var N=t(73884),b=t(35950),R=t(13050),A=t(52526);const v={SystemName:"Kne Union SaaS System",Login:"\u767b\u5f55",Register:"\u6ce8\u518c",Forget:"\u5fd8\u8bb0\u5bc6\u7801",ResetPassword:"\u91cd\u7f6e\u5bc6\u7801",Modify:"\u4fee\u6539\u5bc6\u7801",AccountNotInitialized:"\u8d26\u53f7\u6ca1\u6709\u521d\u59cb\u5316\uff0c\u8bf7\u8bbe\u7f6e\u4e00\u4e2a\u65b0\u7684\u5bc6\u7801\u540e\u91cd\u65b0\u767b\u5f55",AccountDisabled:"\u8d26\u53f7\u88ab\u7981\u7528\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458",AccountClosed:"\u8d26\u53f7\u88ab\u5173\u95ed\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458",LoginSuccess:"\u767b\u5f55\u6210\u529f",Email:"\u90ae\u7bb1",Phone:"\u624b\u673a",Password:"\u5bc6\u7801",RememberAccount:"\u8bb0\u4f4f\u8d26\u53f7",RegisterBtn:"\u6ce8\u518c",ForgetPassword:"\u5fd8\u8bb0\u5bc6\u7801",VerificationCode:"\u9a8c\u8bc1\u7801",SendCode:"\u53d1\u9001\u9a8c\u8bc1\u7801",SendCodeSuccess:"\u9a8c\u8bc1\u7801\u5df2\u53d1\u9001\u81f3\u60a8\u7684{s}\uff0c\u8bf7\u67e5\u6536",RepeatPassword:"\u91cd\u590d\u5bc6\u7801",RegisterSuccess:"\u6ce8\u518c\u6210\u529f",HasAccountLogin:"\u5df2\u6709\u8d26\u6237\uff0c\u53bb\u767b\u5f55",PhoneCode:"\u624b\u673a\u53f7",BackToLogin:"\u8fd4\u56de\u767b\u5f55",ResetLinkSent:"\u91cd\u7f6e\u94fe\u63a5\u5df2\u53d1\u9001\u81f3{s}\u7684\u90ae\u7bb1\u4e2d\uff0c",ResetLinkExpire:"\u8bf7\u57283\u5206\u949f\u5185\u5b8c\u6210\u5bc6\u7801\u91cd\u7f6e\uff0c\u82e5\u94fe\u63a5\u5931\u6548\u8bf7\u91cd\u65b0\u7533\u8bf7\u3002",NextStep:"\u4e0b\u4e00\u6b65",EmailAccount:"\u90ae\u7bb1\u8d26\u53f7",PhoneAccount:"\u624b\u673a\u8d26\u53f7",OldPassword:"\u539f\u5bc6\u7801",NewPassword:"\u65b0\u5bc6\u7801",RepeatNewPassword:"\u91cd\u590d\u5bc6\u7801",Submit:"\u63d0\u4ea4",ResetPasswordSuccess:"\u91cd\u7f6e\u5bc6\u7801\u6210\u529f",ResetLoginPassword:"\u91cd\u7f6e\u767b\u5f55\u5bc6\u7801",CodeValidateIncorrect:"%s\u4e0d\u6b63\u786e",HasAccountLogin2:"\u5df2\u6709\u8d26\u6237\uff0c\u53bb\u767b\u5f55"},S={SystemName:"Kne Union SaaS System",Login:"Login",Register:"Register",Forget:"Forgot Password",ResetPassword:"Reset Password",Modify:"Modify Password",AccountNotInitialized:"Account is not initialized, please set a new password and login again",AccountDisabled:"Account is disabled, please contact administrator",AccountClosed:"Account is closed, please contact administrator",LoginSuccess:"Login successful",Email:"Email",Phone:"Phone",Password:"Password",RememberAccount:"Remember Account",RegisterBtn:"Register",ForgetPassword:"Forgot Password",VerificationCode:"Verification Code",SendCode:"Send Code",SendCodeSuccess:"Verification code has been sent to your {s}, please check",RepeatPassword:"Repeat Password",RegisterSuccess:"Registration successful",HasAccountLogin:"Already have an account, go to login",PhoneCode:"Phone Number",BackToLogin:"Back to Login",ResetLinkSent:"Reset link has been sent to {s} email,",ResetLinkExpire:"Please complete password reset within 3 minutes. If link expires, please apply again.",NextStep:"Next Step",EmailAccount:"Email Account",PhoneAccount:"Phone Account",OldPassword:"Old Password",NewPassword:"New Password",RepeatNewPassword:"Repeat New Password",Submit:"Submit",ResetPasswordSuccess:"Password reset successful",ResetLoginPassword:"Reset Login Password",CodeValidateIncorrect:"{s} is incorrect",HasAccountLogin2:"Already have an account, go to login"},C=(0,A.createWithIntlProvider)({defaultLocale:"zh-CN",messages:{"zh-CN":v,"en-US":S},namespace:"components-admin:Account"}),k="LOGIN_REMEMBER_ACCOUNT",E=C((0,R.createWithRemoteLoader)({modules:["component-core:FormInfo"]})(e=>{let{remoteModules:s,...t}=e;const{formatMessage:n}=(0,A.useIntl)(),{title:o,registerUrl:l,forgetUrl:i,type:r,onSubmit:c}=Object.assign({},{title:n({id:"Login"}),type:"email",registerUrl:"",forgetUrl:""},t),[d,u]=(0,N.useState)(!1),m=(0,b.default)(),[g]=s,{Form:p,SubmitButton:h,fields:j}=g,{Input:x}=j;return(0,w.jsxs)(p,{type:"inner",size:"large",enterSubmit:!0,onSubmit:e=>{d?window.localStorage.setItem(k,e[r]):window.localStorage.removeItem(k),null===c||void 0===c||c(e)},children:[(0,w.jsxs)(a.Space,{className:"space-full",size:38,direction:"vertical",children:[(0,w.jsx)("div",{className:_,children:o}),(0,w.jsxs)("div",{children:["email"===r&&(0,w.jsx)(x,{name:"email",label:n({id:"Email"}),rule:"REQ EMAIL"}),"phone"===r&&(0,w.jsx)(x,{name:"phone",label:n({id:"Phone"}),rule:"REQ TEL"}),(0,w.jsx)(x.Password,{type:"password",name:"password",label:n({id:"Password"}),rule:"REQ LEN-6-50"})]})]}),(0,w.jsxs)(a.Space,{className:"space-full",size:10,direction:"vertical",children:[(0,w.jsx)(h,{block:!0,size:"large",children:n({id:"Login"})}),(0,w.jsxs)(a.Row,{justify:"space-between",children:[(0,w.jsx)(a.Col,{children:(0,w.jsx)(a.Checkbox,{checked:d,onChange:e=>{u(e.target.checked)},children:n({id:"RememberAccount"})})}),(0,w.jsx)(a.Col,{children:(0,w.jsxs)(a.Flex,{gap:8,children:[l&&(0,w.jsx)(a.Button,{className:L,type:"link",size:"small",onClick:()=>{m(l)},children:n({id:"RegisterBtn"})}),i&&(0,w.jsx)(a.Button,{className:L,type:"link",size:"small",onClick:()=>{m(i)},children:n({id:"ForgetPassword"})})]})})]})]})]})}));var I=t(79123),U=t(33097),H=t.n(U),O=t(28488);const M="style_code-field__NvD9i__ALHcP",z="style_get-code__j4NF-__ALHcP",T=C((0,R.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:s,...t}=e;const{formatMessage:n}=(0,A.useIntl)(),{onSubmit:l,title:i,systemName:r,type:c,sendVerificationCode:d,loginUrl:u,topBanner:m,className:g}=Object.assign({},{title:n({id:"Register"}),type:"email",loginUrl:"",sendVerificationCode:()=>{console.warn("\u4f20\u5165sendVerificationCode\u5c5e\u6027\u53d1\u9001\u9a8c\u8bc1\u7801")}},t),y=(0,N.useRef)(null),[L]=s,{Form:R,SubmitButton:v,fields:S}=L,{Input:C,PhoneNumber:k}=S,E=(0,b.default)();return(0,w.jsxs)("div",{className:o()(p,g),children:[m&&(0,w.jsxs)("div",{className:h,children:[(0,w.jsx)("div",{className:f,children:r}),m]}),(0,w.jsx)("div",{className:P,children:(0,w.jsxs)(R,{type:"inner",size:"large",ref:y,onSubmit:l,children:[(0,w.jsx)(a.Button,{className:j,type:"link",size:"large",icon:(0,w.jsx)(O.LeftOutlined,{}),onClick:()=>{E(u)},children:n({id:"HasAccountLogin"})}),(0,w.jsxs)(a.Space,{className:o()(x),size:38,direction:"vertical",children:[(0,w.jsx)("div",{className:_,children:i}),(0,w.jsxs)("div",{children:["phone"===c&&(0,w.jsx)(k,{name:"phone",label:n({id:"PhoneCode"}),rule:"REQ",codeType:"code",realtime:!0,interceptor:"phone-number-string"}),"email"===c&&(0,w.jsx)(C,{name:"email",label:n({id:"Email"}),rule:"REQ EMAIL",realtime:!0}),(0,w.jsxs)(a.Row,{align:"bottom",justify:"space-between",children:[(0,w.jsx)(a.Col,{className:M,children:(0,w.jsx)(C,{name:"code",label:n({id:"VerificationCode"}),rule:"REQ LEN-6 VALIDATE_CODE"})}),(0,w.jsx)(a.Col,{children:(0,w.jsx)(I.default,{className:z,type:"link",target:{name:c},onClick:()=>d({type:c,data:H()(y.current.data,c)}),children:n({id:"SendCode"})})})]}),(0,w.jsx)(C.Password,{name:"password",label:n({id:"Password"}),rule:"REQ LEN-6-50"}),(0,w.jsx)(C.Password,{name:"repeatPwd",label:n({id:"RepeatPassword"}),rule:"REQ LEN-6-50 REPEAT-password"})]}),(0,w.jsx)(v,{block:!0,size:"large",children:n({id:"Register"})})]})]})})]})})),B=C((0,R.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:s,...t}=e;const{formatMessage:n}=(0,A.useIntl)(),{className:l,title:i,systemName:r,isReset:c,account:d,onSubmit:u,type:m,header:g,topBanner:j}=Object.assign({},{title:n({id:"Modify"}),type:"email",header:null},t),[y]=s,{Form:L,SubmitButton:N,fields:b}=y,{Input:R}=b;return(0,w.jsxs)("div",{className:o()(p,l),children:[j&&(0,w.jsxs)("div",{className:h,children:[(0,w.jsx)("div",{className:f,children:r}),j]}),(0,w.jsxs)("div",{className:P,children:[g,(0,w.jsx)(L,{type:"inner",size:"large",onSubmit:u,children:(0,w.jsxs)(a.Space,{className:o()(x),size:38,direction:"vertical",children:[(0,w.jsx)("div",{className:_,children:i}),(0,w.jsxs)("div",{children:["email"===m&&(0,w.jsx)(R,{name:"email",label:n({id:"EmailAccount"}),disabled:!0,defaultValue:d&&decodeURIComponent(d)}),"phone"===m&&(0,w.jsx)(R,{name:"phone",label:n({id:"PhoneAccount"}),disabled:!0,defaultValue:d&&decodeURIComponent(d)}),c?null:(0,w.jsx)(R.Password,{name:"oldPwd",label:n({id:"OldPassword"}),rule:"REQ LEN-6-50"}),(0,w.jsx)(R.Password,{name:"newPwd",label:n({id:"NewPassword"}),rule:"REQ LEN-6-50"}),(0,w.jsx)(R.Password,{name:"repeatNewPwd",label:n({id:"RepeatNewPassword"}),rule:"REQ LEN-6-50 REPEAT-newPwd"})]}),(0,w.jsx)(N,{block:!0,size:"large",children:n({id:"Submit"})})]})})]})]})})),F="style_forget-input__psj0u__ALHcP",V="style_success-info__zKcsw__ALHcP",$="style_main__GAYFL__ALHcP",W=C((0,R.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:s,...t}=e;const{formatMessage:n}=(0,A.useIntl)(),{title:l,loginUrl:i,onSubmit:r}=Object.assign({},{title:n({id:"Forget"}),loginUrl:""},t),[c,d]=(0,N.useState)(""),u=(0,b.default)(),[m]=s,{Form:g,fields:p,SubmitButton:h}=m,{Input:x}=p,f=(0,w.jsx)(a.Button,{className:j,type:"link",size:"large",icon:(0,w.jsx)(O.LeftOutlined,{}),onClick:()=>{u(i)},children:n({id:"BackToLogin"})});return c?(0,w.jsxs)(w.Fragment,{children:[f,(0,w.jsxs)(a.Space,{className:o()($,"space-full"),direction:"vertical",size:40,children:[(0,w.jsx)("div",{className:_,children:l}),(0,w.jsxs)("div",{className:V,children:[(0,w.jsx)("div",{children:n({id:"ResetLinkSent"},{s:c})}),(0,w.jsx)("div",{children:n({id:"ResetLinkExpire"})})]})]})]}):(0,w.jsxs)(g,{type:"inner",size:"large",onSubmit:e=>{r&&r(e,()=>{d(e.email)})},children:[f,(0,w.jsxs)(a.Space,{className:o()($,"space-full"),direction:"vertical",size:40,children:[(0,w.jsx)("div",{className:_,children:l}),(0,w.jsx)(a.Space,{className:o()("space-full",F),direction:"vertical",children:(0,w.jsx)(x,{name:"email",label:n({id:"EmailAccount"}),rule:"REQ EMAIL"})}),(0,w.jsx)(a.Space,{className:"space-full",direction:"vertical",children:(0,w.jsx)(h,{block:!0,size:"large",children:n({id:"NextStep"})})})]})]})})),Q=C(e=>{const{formatMessage:s}=(0,A.useIntl)(),{type:t,loginUrl:n,title:o,systemName:l,...i}=Object.assign({},{type:"email",title:s({id:"ResetLoginPassword"}),loginUrl:""},e),r=(0,b.default)();return(0,w.jsx)(B,{...i,type:t,title:o,systemName:l,isReset:!0,header:(0,w.jsx)(a.Button,{className:j,type:"link",size:"large",icon:(0,w.jsx)(O.LeftOutlined,{}),onClick:()=>{r(n)},children:s({id:"HasAccountLogin2"})})})});var D=t(75894),G=t(34677),K=t.n(G);const X=e=>{const{storeKeys:s,domain:t,loginUrl:a}=K()({},{storeKeys:{token:"X-User-Token"},loginUrl:"/account/login"},e);return()=>{Object.values(s).forEach(e=>{(0,D.removeToken)(e,t)}),window.location.href=`${a}?referer=${encodeURIComponent(window.location.href)}`}},q=e=>{let{storeKeys:s,domain:t,...n}=e;const o=X({storeKeys:s,domain:t});return(0,w.jsx)(a.Button,{...n,onClick:o})};var Z=t(94679);const Y=(0,N.createContext)("/"),{Provider:J}=Y,ee=()=>(0,N.useContext)(Y);var se=t(80700),te=t.n(se);const ae=C((0,R.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:s,children:t}=e;const[n]=s,{formatMessage:o}=(0,A.useIntl)(),{apis:l,ajax:i}=n(),{apis:r,targetUrl:c,storeKeys:d,domain:u,afterLogin:m}=ee(),g=Object.assign({},l.account,r),{message:p}=a.App.useApp(),h=(0,Z.useNavigate)(),[_]=(0,Z.useSearchParams)(),j=_.get("referer");return t({login:async e=>{let{isTenant:s,...t}=e;const{data:a}=await i(K()({},g.login,{data:{...t,password:te()(t.password)}}));if(0!==a.code)return;if(10===a.data.status)return p.warning(o({id:"AccountNotInitialized"})),void h(`/account/modify/${t.email||t.phone}${j?`?referer=${j}`:""}`);if(11===a.data.status)return void p.warning(o({id:"AccountDisabled"}));if(12===a.data.status)return void p.warning(o({id:"AccountClosed"}));let n=c||"/";if(j){const e=decodeURIComponent(j);let s=new URL(/http(s)?:/.test(e)?e:window.location.origin+e);s.searchParams.delete("referer"),Object.values(a.data).forEach(e=>e&&s.searchParams.delete(e.toUpperCase())),n=s.pathname+s.search}if(Object.keys(d).forEach(e=>{a.data[e]&&(0,D.setToken)(d[e],a.data[e],u)}),m){if(!1===await m({referer:n}))return}p.success(o({id:"LoginSuccess"})),h(n)}})}));var ne=t(68743);const oe="style_layout-row__WDBZP__ALHcP",le="style_layout-inner__3pgxa__ALHcP",ie="style_layout-inner-wrapper__XoEQK__ALHcP",re="style_language__pn8jJ__ALHcP",ce=()=>{const{loginTitle:e,systemName:s,systemLogo:t,loginLeftInner:a,registerUrl:n,forgetUrl:o,accountType:l,afterLogin:i,allowLanguageSwitch:r}=ee();return(0,w.jsxs)(y,{title:s,logo:t,leftInner:a,children:[(0,w.jsx)(ae,{children:t=>{let{login:a}=t;return(0,w.jsx)(E,{title:e,systemName:s,registerUrl:n,forgetUrl:o,afterLogin:i,onSubmit:async e=>{await a(Object.assign({},e,{type:l}))}})}}),r&&(0,w.jsx)(ne.A,{colorful:!1,className:re})]})},de=C((0,R.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:s}=e;const[t]=s,{formatMessage:n}=(0,A.useIntl)(),{apis:o,ajax:l}=t(),{apis:i,accountType:r,loginUrl:c,registerTitle:d,loginLeftInner:u,systemName:m}=ee(),g=(0,b.default)(),{message:p}=a.App.useApp(),h=Object.assign({},o.account,i);return(0,w.jsx)(T,{type:r,loginUrl:c,title:d,systemName:m,validateCode:async e=>{const{data:s}=await l(K()({},h.validateCode,{data:e}));return 0!==s.code?{result:!1,errMsg:s.msg||n({id:"CodeValidateIncorrect"},{s:"%s"})}:{result:!0}},topBanner:u,sendVerificationCode:async e=>{let{type:s,data:t}=e;const{data:a}=await l(K()({},"phone"===s?h.sendSMSCode:h.sendEmailCode,{data:{[s]:t}}));if(0!==a.code)return!1;p.success(n({id:"SendCodeSuccess"},{s:n("phone"===s?{id:"PhoneCode"}:{id:"Email"})}))},onSubmit:async e=>{const s=te()(e.password),{data:t}=await l(K()({},h.register,{data:{type:r,email:e.email,phone:e.phone,password:s,code:e.code}}));0===t.code&&(p.success(n({id:"RegisterSuccess"})),g(c))}})})),ue=(0,R.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:s}=e;const[t]=s,{apis:a,ajax:n}=t(),{apis:o,loginUrl:l,loginLeftInner:i,systemName:r}=ee(),c=K()({},a.account,o),d=new URLSearchParams(window.location.search).get("referer");return(0,w.jsx)(y,{leftInner:i,title:r,children:(0,w.jsx)(W,{loginUrl:l,onSubmit:(e,s)=>n(K()({},c.forgetPwd,{data:{email:e.email,referer:d}})).then(t=>{let{data:a}=t;0===a.code&&s&&s(e.email)})})})});var me=t(87558);const ge=()=>{const{loginUrl:e}=ee();return(0,w.jsx)(Z.Navigate,{to:e})},pe=(0,me.createWithFetch)({error:()=>(0,w.jsx)(ge,{})})(e=>{let{data:s,children:t}=e;return t(s)}),he=C((0,R.createWithRemoteLoader)({modules:["components-core:Global@usePreset"]})(e=>{let{remoteModules:s}=e;const[t]=s,{apis:n,ajax:o}=t(),{apis:l,accountType:i,loginUrl:r,loginLeftInner:c,systemName:d}=ee(),u=(0,Z.useNavigate)(),[m]=(0,Z.useSearchParams)(),g=m.get("referer"),{message:p}=a.App.useApp(),{formatMessage:h}=(0,A.useIntl)(),_=Object.assign({},n.account,l),{token:j}=(0,Z.useParams)();return(0,w.jsx)(pe,{...K()({},_.parseResetToken,{data:{token:decodeURIComponent(j)}}),children:e=>{let{name:s}=e;return(0,w.jsx)(Q,{loginUrl:r,type:i,account:s,topBanner:c,systemName:d,onSubmit:async e=>{const s=te()(e.newPwd),{data:t}=await o(K()({},_.resetPassword,{data:{token:j,email:e.email,newPwd:s,confirmPwd:s}}));0===t.code&&(p.success(h({id:"ResetPasswordSuccess"})),u(`${r}${g?`?referer=${encodeURIComponent(g)}`:""}`))}})}})})),_e=C((0,R.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:s}=e;const[t]=s,{apis:n,ajax:o}=t(),{apis:l,loginUrl:i,accountType:r,loginLeftInner:c,systemName:d}=ee(),{account:u}=(0,Z.useParams)(),[m]=(0,Z.useSearchParams)(),g=m.get("referer"),p=(0,b.default)(),{message:h}=a.App.useApp(),{formatMessage:_}=(0,A.useIntl)(),j=Object.assign({},n.account,l);return(0,w.jsx)(B,{type:r,account:u,topBanner:c,systemName:d,onSubmit:async e=>{const s=te()(e.newPwd),{data:t}=await o(K()({},j.modifyPassword,{data:{email:e.email,oldPwd:te()(e.oldPwd),newPwd:s,confirmPwd:s}}));0===t.code&&(h.success(_({id:"ResetPasswordSuccess"})),p(`${i}${g?`?referer=${encodeURIComponent(g)}`:""}`))}})})),je=(0,w.jsx)(l.default,{}),xe=()=>(0,w.jsx)("div",{className:o()(oe,"account-layout"),children:(0,w.jsx)("div",{className:le,children:(0,w.jsx)("div",{className:ie,children:(0,w.jsx)(Z.Outlet,{})})})}),fe=C(e=>{let{className:s,...t}=e;const{formatMessage:a}=(0,A.useIntl)(),{baseUrl:n,...o}=K()({},{baseUrl:"",accountType:"email",systemLogo:null,allowLanguageSwitch:!0,systemName:a({id:"SystemName"}),loginTitle:a({id:"Login"}),registerTitle:a({id:"Register"}),loginLeftInner:je,loginPath:"login",registerPath:"register",forgetPath:"forget",resetPasswordPath:"reset-password",modifyPath:"modify",isTenant:!1,storeKeys:{token:"X-User-Token"}},t);return(0,w.jsx)(J,{value:{baseUrl:n,...o,loginUrl:`${n}/${o.loginPath}`,registerUrl:`${n}/${o.registerPath}`,forgetUrl:`${n}/${o.forgetPath}`},children:(0,w.jsx)("div",{className:s,children:(0,w.jsx)(Z.Routes,{children:(0,w.jsxs)(Z.Route,{element:(0,w.jsx)(xe,{}),children:[(0,w.jsx)(Z.Route,{index:!0,element:(0,w.jsx)(Z.Navigate,{to:o.loginUrl})}),(0,w.jsx)(Z.Route,{path:o.loginPath,element:(0,w.jsx)(ce,{})}),(0,w.jsx)(Z.Route,{path:o.registerPath,element:(0,w.jsx)(de,{})}),(0,w.jsx)(Z.Route,{path:o.forgetPath,element:(0,w.jsx)(ue,{})}),(0,w.jsx)(Z.Route,{path:`${o.resetPasswordPath}/:token`,element:(0,w.jsx)(he,{})}),(0,w.jsx)(Z.Route,{path:`${o.modifyPath}/:account`,element:(0,w.jsx)(_e,{})})]})})})})})},35795(e,s,t){t.r(s),t.d(s,{default:()=>h});const a="style_language__jjP0+__ALHcP",n="style_is-colorful__DC7fI__ALHcP",o="style_icon__pQadO__ALHcP",l="style_item__uDOaw__ALHcP",i="style_is-active__dYoEr__ALHcP";var r=t(13050),c=t(35028),d=t(55199),u=t(28488),m=t(98139),g=t.n(m),p=t(70579);const h=(0,r.createWithRemoteLoader)({modules:["components-core:Icon"]})(e=>{let{remoteModules:s,className:t,list:r=[{label:"\u4e2d\u6587",value:"zh-CN"},{label:"EN",value:"en-US"}],colorful:m=!0,...h}=e;const[_,j]=(0,c.default)(Object.assign({},{defaultLocale:"zh-CN"},h),{defaultValue:"defaultLocale",value:"locale",onChange:"onChange"}),[x]=s,f=r.findIndex(e=>e.value===_),P=r.slice(0,2);f>P.length-1&&(P[P.length-1]=r[f]);const w=r.filter((e,s)=>-1===P.indexOf(e));return(0,p.jsxs)("div",{className:g()(t,"language",a,{"is-colorful":m,[n]:m}),onClick:e=>{e.stopPropagation()},children:[(0,p.jsx)(x,{className:o,type:"icon-yuyanqiehuan"}),(0,p.jsx)(d.Space,{split:(0,p.jsx)(d.Divider,{type:"vertical"}),size:0,children:P.slice(0,2).map(e=>{let{label:s,value:t}=e;return(0,p.jsx)(d.Button,{type:"text",className:g()("btn-no-padding",l,{[i]:t===_}),onClick:()=>{j(t)},children:s},t)})}),w.length>0&&(0,p.jsx)(d.Dropdown,{menu:{items:w.map(e=>{let{label:s,value:t}=e;return{label:s,key:t,onClick:()=>{j(t)}}})},children:(0,p.jsx)(d.Button,{size:"small",type:"text",icon:(0,p.jsx)(u.CaretDownOutlined,{})})})]})})},64948(e,s,t){t.r(s),t.d(s,{default:()=>c});var a=t(87558),n=t(98139),o=t.n(n);const l="style_login-illustration__d3Hvd__ALHcP";var i=t(70579);const r={hello:()=>Promise.all([t.e(3050),t.e(5084)]).then(t.bind(t,75084)).then(e=>e.default)},c=e=>{let{type:s,className:t,...n}=e;return(0,i.jsx)("div",{className:o()(l,t),children:(0,i.jsx)(a.default,{loader:e=>{let{params:s}=e;return(r[s.type]||r.hello)()},params:{type:s},render:e=>{let{data:s}=e;return(0,i.jsx)(s,{...n})}})})}}}]);
2
- //# sourceMappingURL=8406.e8abf05d.chunk.js.map