@kne-components/components-admin 1.1.15 → 1.1.16

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 (68) hide show
  1. package/build/asset-manifest.json +50 -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/1102.9f9d270c.chunk.css +2 -0
  6. package/build/static/css/{1102.eb2ce39f.chunk.css.map → 1102.9f9d270c.chunk.css.map} +1 -1
  7. package/build/static/css/1171.a91d34d0.chunk.css +2 -0
  8. package/build/static/css/{1171.5771f949.chunk.css.map → 1171.a91d34d0.chunk.css.map} +1 -1
  9. package/build/static/css/286.9f9d270c.chunk.css +2 -0
  10. package/build/static/css/{286.eb2ce39f.chunk.css.map → 286.9f9d270c.chunk.css.map} +1 -1
  11. package/build/static/css/4948.dfd414b7.chunk.css +2 -0
  12. package/build/static/css/{4948.8a3ccc9b.chunk.css.map → 4948.dfd414b7.chunk.css.map} +1 -1
  13. package/build/static/css/{5084.148596cc.chunk.css → 5084.f7152f34.chunk.css} +2 -2
  14. package/build/static/css/{5084.148596cc.chunk.css.map → 5084.f7152f34.chunk.css.map} +1 -1
  15. package/build/static/css/5795.161067cf.chunk.css +2 -0
  16. package/build/static/css/{5795.dd36bd85.chunk.css.map → 5795.161067cf.chunk.css.map} +1 -1
  17. package/build/static/css/5824.afcd7dcf.chunk.css +2 -0
  18. package/build/static/css/{5824.ab81fe36.chunk.css.map → 5824.afcd7dcf.chunk.css.map} +1 -1
  19. package/build/static/css/6312.6977be99.chunk.css +12 -0
  20. package/build/static/css/{6312.06f732b8.chunk.css.map → 6312.6977be99.chunk.css.map} +1 -1
  21. package/build/static/css/8717.09f0d164.chunk.css +2 -0
  22. package/build/static/css/{8717.01f2d225.chunk.css.map → 8717.09f0d164.chunk.css.map} +1 -1
  23. package/build/static/css/9654.8d380602.chunk.css +2 -0
  24. package/build/static/css/{9654.5b4d20ec.chunk.css.map → 9654.8d380602.chunk.css.map} +1 -1
  25. package/build/static/css/996.fff6baac.chunk.css +2 -0
  26. package/build/static/css/{996.a5787f49.chunk.css.map → 996.fff6baac.chunk.css.map} +1 -1
  27. package/build/static/js/{1102.d95ad27e.chunk.js → 1102.644d1444.chunk.js} +2 -2
  28. package/build/static/js/{1102.d95ad27e.chunk.js.map → 1102.644d1444.chunk.js.map} +1 -1
  29. package/build/static/js/{286.3d8f4444.chunk.js → 286.7bd60d8f.chunk.js} +2 -2
  30. package/build/static/js/{286.3d8f4444.chunk.js.map → 286.7bd60d8f.chunk.js.map} +1 -1
  31. package/build/static/js/4836.12e95857.chunk.js +2 -0
  32. package/build/static/js/4836.12e95857.chunk.js.map +1 -0
  33. package/build/static/js/4948.0948d367.chunk.js +3 -0
  34. package/build/static/js/{4948.5d3b9831.chunk.js.map → 4948.0948d367.chunk.js.map} +1 -1
  35. package/build/static/js/{5084.971a8cff.chunk.js → 5084.4776e3fb.chunk.js} +2 -2
  36. package/build/static/js/{5084.971a8cff.chunk.js.map → 5084.4776e3fb.chunk.js.map} +1 -1
  37. package/build/static/js/{5795.e9e544ed.chunk.js → 5795.6edc5450.chunk.js} +3 -3
  38. package/build/static/js/{5795.e9e544ed.chunk.js.map → 5795.6edc5450.chunk.js.map} +1 -1
  39. package/build/static/js/{6312.0a4f71ae.chunk.js → 6312.4dc24b9b.chunk.js} +2 -2
  40. package/build/static/js/{6312.0a4f71ae.chunk.js.map → 6312.4dc24b9b.chunk.js.map} +1 -1
  41. package/build/static/js/{8406.1826f94e.chunk.js → 8406.73a96930.chunk.js} +2 -2
  42. package/build/static/js/{8406.1826f94e.chunk.js.map → 8406.73a96930.chunk.js.map} +1 -1
  43. package/build/static/js/{9654.3e087bbc.chunk.js → 9654.36708f63.chunk.js} +2 -2
  44. package/build/static/js/{9654.3e087bbc.chunk.js.map → 9654.36708f63.chunk.js.map} +1 -1
  45. package/build/static/js/{9686.31b14651.chunk.js → 9686.eadad775.chunk.js} +2 -2
  46. package/build/static/js/{9686.31b14651.chunk.js.map → 9686.eadad775.chunk.js.map} +1 -1
  47. package/build/static/js/{975.e7ab2a99.chunk.js → 975.7b4392a8.chunk.js} +2 -2
  48. package/build/static/js/{975.e7ab2a99.chunk.js.map → 975.7b4392a8.chunk.js.map} +1 -1
  49. package/build/static/js/{996.c957e394.chunk.js → 996.de697c7c.chunk.js} +2 -2
  50. package/build/static/js/{996.c957e394.chunk.js.map → 996.de697c7c.chunk.js.map} +1 -1
  51. package/build/static/js/{main.da65d4e5.js → main.ccb15510.js} +2 -2
  52. package/build/static/js/{main.da65d4e5.js.map → main.ccb15510.js.map} +1 -1
  53. package/package.json +1 -1
  54. package/build/static/css/1102.eb2ce39f.chunk.css +0 -2
  55. package/build/static/css/1171.5771f949.chunk.css +0 -2
  56. package/build/static/css/286.eb2ce39f.chunk.css +0 -2
  57. package/build/static/css/4948.8a3ccc9b.chunk.css +0 -2
  58. package/build/static/css/5795.dd36bd85.chunk.css +0 -2
  59. package/build/static/css/5824.ab81fe36.chunk.css +0 -2
  60. package/build/static/css/6312.06f732b8.chunk.css +0 -12
  61. package/build/static/css/8717.01f2d225.chunk.css +0 -2
  62. package/build/static/css/9654.5b4d20ec.chunk.css +0 -2
  63. package/build/static/css/996.a5787f49.chunk.css +0 -2
  64. package/build/static/js/4836.673ebb85.chunk.js +0 -2
  65. package/build/static/js/4836.673ebb85.chunk.js.map +0 -1
  66. package/build/static/js/4948.5d3b9831.chunk.js +0 -3
  67. /package/build/static/js/{4948.5d3b9831.chunk.js.LICENSE.txt → 4948.0948d367.chunk.js.LICENSE.txt} +0 -0
  68. /package/build/static/js/{5795.e9e544ed.chunk.js.LICENSE.txt → 5795.6edc5450.chunk.js.LICENSE.txt} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/5084.971a8cff.chunk.js","mappings":"inolEACA,EAAkC,sCAAlC,EAAoF,gC,eCIpF,MAWA,GAXcA,EAAAA,EAAAA,wBAAuB,CACnCC,QAAS,CAAC,uCADED,CAEXE,IAAwB,IAAvB,cAAEC,GAAeD,EACnB,MAAOE,GAAgBD,EACvB,OACEE,EAAAA,EAAAA,KAAA,OAAKC,UAAWC,EAAyBC,UACvCH,EAAAA,EAAAA,KAACD,EAAY,CAACK,SAAS,MAAMC,cAAeC,EAAOL,UAAWM,IAAWL,EAAoB,kB","sources":["webpack://@kne-components/components-admin/./src/components/LoginIllustration/Hello/style.module.scss?29df","components/LoginIllustration/Hello/index.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"hello-container\":\"style_hello-container__ZrFzx__5FVMF\",\"animation\":\"style_animation__ZXNqR__5FVMF\"};","import { createWithRemoteLoader } from '@kne/remote-loader';\nimport classnames from 'classnames';\nimport hello from '../lottieData/hello.json';\nimport style from './style.module.scss';\n\nconst Hello = createWithRemoteLoader({\n modules: ['components-thirdparty:LottiePlayer']\n})(({ remoteModules }) => {\n const [LottiePlayer] = remoteModules;\n return (\n <div className={style['hello-container']}>\n <LottiePlayer renderer=\"svg\" animationData={hello} className={classnames(style['animation'], 'animation')} />\n </div>\n );\n});\n\nexport default Hello;\n"],"names":["createWithRemoteLoader","modules","_ref","remoteModules","LottiePlayer","_jsx","className","style","children","renderer","animationData","hello","classnames"],"ignoreList":[],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/5084.4776e3fb.chunk.js","mappings":"inolEACA,EAAkC,sCAAlC,EAAoF,gC,eCIpF,MAWA,GAXcA,EAAAA,EAAAA,wBAAuB,CACnCC,QAAS,CAAC,uCADED,CAEXE,IAAwB,IAAvB,cAAEC,GAAeD,EACnB,MAAOE,GAAgBD,EACvB,OACEE,EAAAA,EAAAA,KAAA,OAAKC,UAAWC,EAAyBC,UACvCH,EAAAA,EAAAA,KAACD,EAAY,CAACK,SAAS,MAAMC,cAAeC,EAAOL,UAAWM,IAAWL,EAAoB,kB","sources":["webpack://@kne-components/components-admin/./src/components/LoginIllustration/Hello/style.module.scss?29df","components/LoginIllustration/Hello/index.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"hello-container\":\"style_hello-container__ZrFzx__epRkD\",\"animation\":\"style_animation__ZXNqR__epRkD\"};","import { createWithRemoteLoader } from '@kne/remote-loader';\nimport classnames from 'classnames';\nimport hello from '../lottieData/hello.json';\nimport style from './style.module.scss';\n\nconst Hello = createWithRemoteLoader({\n modules: ['components-thirdparty:LottiePlayer']\n})(({ remoteModules }) => {\n const [LottiePlayer] = remoteModules;\n return (\n <div className={style['hello-container']}>\n <LottiePlayer renderer=\"svg\" animationData={hello} className={classnames(style['animation'], 'animation')} />\n </div>\n );\n});\n\nexport default Hello;\n"],"names":["createWithRemoteLoader","modules","_ref","remoteModules","LottiePlayer","_jsx","className","style","children","renderer","animationData","hello","classnames"],"ignoreList":[],"sourceRoot":""}
@@ -1,3 +1,3 @@
1
- /*! For license information please see 5795.e9e544ed.chunk.js.LICENSE.txt */
2
- (self.webpackChunk_kne_components_components_admin=self.webpackChunk_kne_components_components_admin||[]).push([[73,5795,8139],{35795(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(80045);const o="style_language__jjP0+__5FVMF",a="style_is-colorful__DC7fI__5FVMF",l="style_icon__pQadO__5FVMF",s="style_item__uDOaw__5FVMF",i="style_is-active__dYoEr__5FVMF";var u=r(13050),c=r(35028),f=r.n(c),_=r(55199),p=r(98139),y=r.n(p),d=r(70579);const v=["remoteModules","className","list","colorful"],m=(0,u.createWithRemoteLoader)({modules:["components-core:Icon"]})(e=>{let{remoteModules:t,className:r,list:u=[{label:"\u4e2d\u6587",value:"zh-CN"},{label:"EN",value:"en-US"}],colorful:c=!0}=e,p=(0,n.A)(e,v);const[m,g]=f()(Object.assign({},{defaultLocale:"zh-CN"},p),{defaultValue:"defaultLocale",value:"locale",onChange:"onChange"}),[O]=t;return(0,d.jsxs)("div",{className:y()(r,"language",o,{[a]:c}),onClick:e=>{e.stopPropagation()},children:[(0,d.jsx)(O,{className:l,type:"icon-yuyanqiehuan"}),(0,d.jsx)(_.Space,{split:(0,d.jsx)(_.Divider,{type:"vertical"}),size:0,children:u.map(e=>{let{label:t,value:r}=e;return(0,d.jsx)(_.Button,{type:"text",className:y()("btn-no-padding",s,{[i]:r===m}),onClick:()=>{g(r)},children:t},r)})})]})})},51153(e,t,r){"use strict";var n=r(73884),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,a={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,n)&&!i.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:c,props:a,_owner:s.current}}t.Fragment=a,t.jsx=u,t.jsxs=u},70579(e,t,r){"use strict";e.exports=r(51153)},80045(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(98587);function o(e,t){if(null==e)return{};var r,o,a=(0,n.A)(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}},98139(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=l(e,a(r)))}return e}function a(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=l(t,r));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},98587(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})}}]);
3
- //# sourceMappingURL=5795.e9e544ed.chunk.js.map
1
+ /*! For license information please see 5795.6edc5450.chunk.js.LICENSE.txt */
2
+ (self.webpackChunk_kne_components_components_admin=self.webpackChunk_kne_components_components_admin||[]).push([[73,5795,8139],{35795(e,t,r){"use strict";r.r(t),r.d(t,{default:()=>m});var n=r(80045);const o="style_language__jjP0+__epRkD",a="style_is-colorful__DC7fI__epRkD",l="style_icon__pQadO__epRkD",s="style_item__uDOaw__epRkD",i="style_is-active__dYoEr__epRkD";var u=r(13050),c=r(35028),p=r.n(c),f=r(55199),_=r(98139),y=r.n(_),d=r(70579);const v=["remoteModules","className","list","colorful"],m=(0,u.createWithRemoteLoader)({modules:["components-core:Icon"]})(e=>{let{remoteModules:t,className:r,list:u=[{label:"\u4e2d\u6587",value:"zh-CN"},{label:"EN",value:"en-US"}],colorful:c=!0}=e,_=(0,n.A)(e,v);const[m,g]=p()(Object.assign({},{defaultLocale:"zh-CN"},_),{defaultValue:"defaultLocale",value:"locale",onChange:"onChange"}),[O]=t;return(0,d.jsxs)("div",{className:y()(r,"language",o,{[a]:c}),onClick:e=>{e.stopPropagation()},children:[(0,d.jsx)(O,{className:l,type:"icon-yuyanqiehuan"}),(0,d.jsx)(f.Space,{split:(0,d.jsx)(f.Divider,{type:"vertical"}),size:0,children:u.map(e=>{let{label:t,value:r}=e;return(0,d.jsx)(f.Button,{type:"text",className:y()("btn-no-padding",s,{[i]:r===m}),onClick:()=>{g(r)},children:t},r)})})]})})},51153(e,t,r){"use strict";var n=r(73884),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,a={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)l.call(t,n)&&!i.hasOwnProperty(n)&&(a[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===a[n]&&(a[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:c,props:a,_owner:s.current}}t.Fragment=a,t.jsx=u,t.jsxs=u},70579(e,t,r){"use strict";e.exports=r(51153)},80045(e,t,r){"use strict";r.d(t,{A:()=>o});var n=r(98587);function o(e,t){if(null==e)return{};var r,o,a=(0,n.A)(e,t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(o=0;o<l.length;o++)r=l[o],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}},98139(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=l(e,a(r)))}return e}function a(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=l(t,r));return t}function l(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},98587(e,t,r){"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})}}]);
3
+ //# sourceMappingURL=5795.6edc5450.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/5795.e9e544ed.chunk.js","mappings":";uMACA,QAA2B,+BAA3B,EAAwE,kCAAxE,EAAiH,2BAAjH,EAAmJ,2BAAnJ,EAA0L,gC,qICmD1L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AYF,GACpB,GAAmB,kBAARA,GAAmC,kBAARA,EACrC,OAAOA,EAGR,GAAmB,kBAARA,EACV,MAAO,GAGR,GAAIG,MAAMC,QAAQJ,GACjB,OAAOH,EAAWQ,MAAM,KAAML,GAG/B,GAAIA,EAAIM,WAAaxE,OAAO4B,UAAU4C,WAAaN,EAAIM,SAASA,WAAWC,SAAS,iBACnF,OAAOP,EAAIM,WAGZ,IAAIR,EAAU,GAEd,IAAK,IAAI9B,KAAOgC,EACXJ,EAAOjB,KAAKqB,EAAKhC,IAAQgC,EAAIhC,KAChC8B,EAAUG,EAAYH,EAAS9B,IAIjC,OAAO8B,CACR,CAEA,SAASG,EAAa3E,EAAOkF,GAC5B,OAAKA,EAIDlF,EACIA,EAAQ,IAAMkF,EAGflF,EAAQkF,EAPPlF,CAQT,CAEqC6D,EAAOJ,SAC3Cc,EAAWY,QAAUZ,EACrBV,EAAOJ,QAAUc,QAKhB,KAFwB,EAAF,WACtB,OAAOA,CACP,UAFoB,OAEpB,YAIF,CArEA,E,4BCPD,SAASa,EAA8BpB,EAAG/C,GACxC,GAAI,MAAQ+C,EAAG,MAAO,CAAC,EACvB,IAAIF,EAAI,CAAC,EACT,IAAK,IAAIxB,KAAK0B,EAAG,GAAI,CAAC,EAAE3B,eAAegB,KAAKW,EAAG1B,GAAI,CACjD,IAAK,IAAMrB,EAAEmD,QAAQ9B,GAAI,SACzBwB,EAAExB,GAAK0B,EAAE1B,EACX,CACA,OAAOwB,CACT,C","sources":["webpack://@kne-components/components-admin/./src/components/Language/style.module.scss?90a6","components/Language/index.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/jsx-runtime.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/classnames/index.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"language\":\"style_language__jjP0+__5FVMF\",\"is-colorful\":\"style_is-colorful__DC7fI__5FVMF\",\"icon\":\"style_icon__pQadO__5FVMF\",\"item\":\"style_item__uDOaw__5FVMF\",\"is-active\":\"style_is-active__dYoEr__5FVMF\"};","import style from './style.module.scss';\nimport { createWithRemoteLoader } from '@kne/remote-loader';\nimport useControlValue from '@kne/use-control-value';\nimport { Space, Button, Divider } from 'antd';\nimport classnames from 'classnames';\n\nconst Language = createWithRemoteLoader({\n modules: ['components-core:Icon']\n})(({\n remoteModules,\n className,\n list = [\n { label: '中文', value: 'zh-CN' },\n { label: 'EN', value: 'en-US' }\n ],\n colorful = true,\n ...props\n}) => {\n const [current, onChange] = useControlValue(Object.assign({}, { defaultLocale: 'zh-CN' }, props), {\n defaultValue: 'defaultLocale',\n value: 'locale',\n onChange: 'onChange'\n });\n const [Icon] = remoteModules;\n return (\n <div\n className={classnames(className, 'language', style['language'], {\n [style['is-colorful']]: colorful\n })}\n onClick={e => {\n e.stopPropagation();\n }}>\n <Icon className={style['icon']} type=\"icon-yuyanqiehuan\" />\n <Space split={<Divider type=\"vertical\" />} size={0}>\n {list.map(({ label, value }) => (\n <Button\n key={value}\n type=\"text\"\n className={classnames('btn-no-padding', style['item'], {\n [style['is-active']]: value === current\n })}\n onClick={() => {\n onChange(value);\n }}>\n {label}\n </Button>\n ))}\n </Space>\n </div>\n );\n});\n\nexport default Language;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(e);\n for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nexport { _objectWithoutProperties as default };","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (-1 !== e.indexOf(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };"],"names":["createWithRemoteLoader","modules","_ref","remoteModules","className","list","label","value","colorful","props","_objectWithoutProperties","_excluded","current","onChange","useControlValue","Object","assign","defaultLocale","defaultValue","Icon","_jsxs","classnames","style","onClick","e","stopPropagation","children","_jsx","type","Space","split","Divider","size","map","_ref2","Button","f","require","k","Symbol","for","l","m","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","h","call","defaultProps","$$typeof","_owner","exports","Fragment","jsx","jsxs","module","t","o","r","i","getOwnPropertySymbols","length","indexOf","propertyIsEnumerable","hasOwn","classNames","classes","arguments","arg","appendClass","parseValue","Array","isArray","apply","toString","includes","newClass","default","_objectWithoutPropertiesLoose"],"ignoreList":[],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/5795.6edc5450.chunk.js","mappings":";uMACA,QAA2B,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S,IACHF,EAAUG,EAAYH,EAASI,EAAWF,IAE5C,CAEA,OAAOF,CACR,CAEA,SAASI,EAAYF,GACpB,GAAmB,kBAARA,GAAmC,kBAARA,EACrC,OAAOA,EAGR,GAAmB,kBAARA,EACV,MAAO,GAGR,GAAIG,MAAMC,QAAQJ,GACjB,OAAOH,EAAWQ,MAAM,KAAML,GAG/B,GAAIA,EAAIM,WAAaxE,OAAO4B,UAAU4C,WAAaN,EAAIM,SAASA,WAAWC,SAAS,iBACnF,OAAOP,EAAIM,WAGZ,IAAIR,EAAU,GAEd,IAAK,IAAI9B,KAAOgC,EACXJ,EAAOjB,KAAKqB,EAAKhC,IAAQgC,EAAIhC,KAChC8B,EAAUG,EAAYH,EAAS9B,IAIjC,OAAO8B,CACR,CAEA,SAASG,EAAa3E,EAAOkF,GAC5B,OAAKA,EAIDlF,EACIA,EAAQ,IAAMkF,EAGflF,EAAQkF,EAPPlF,CAQT,CAEqC6D,EAAOJ,SAC3Cc,EAAWY,QAAUZ,EACrBV,EAAOJ,QAAUc,QAKhB,KAFwB,EAAF,WACtB,OAAOA,CACP,UAFoB,OAEpB,YAIF,CArEA,E,4BCPD,SAASa,EAA8BpB,EAAG/C,GACxC,GAAI,MAAQ+C,EAAG,MAAO,CAAC,EACvB,IAAIF,EAAI,CAAC,EACT,IAAK,IAAIxB,KAAK0B,EAAG,GAAI,CAAC,EAAE3B,eAAegB,KAAKW,EAAG1B,GAAI,CACjD,IAAK,IAAMrB,EAAEmD,QAAQ9B,GAAI,SACzBwB,EAAExB,GAAK0B,EAAE1B,EACX,CACA,OAAOwB,CACT,C","sources":["webpack://@kne-components/components-admin/./src/components/Language/style.module.scss?90a6","components/Language/index.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/react/jsx-runtime.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/classnames/index.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"language\":\"style_language__jjP0+__epRkD\",\"is-colorful\":\"style_is-colorful__DC7fI__epRkD\",\"icon\":\"style_icon__pQadO__epRkD\",\"item\":\"style_item__uDOaw__epRkD\",\"is-active\":\"style_is-active__dYoEr__epRkD\"};","import style from './style.module.scss';\nimport { createWithRemoteLoader } from '@kne/remote-loader';\nimport useControlValue from '@kne/use-control-value';\nimport { Space, Button, Divider } from 'antd';\nimport classnames from 'classnames';\n\nconst Language = createWithRemoteLoader({\n modules: ['components-core:Icon']\n})(({\n remoteModules,\n className,\n list = [\n { label: '中文', value: 'zh-CN' },\n { label: 'EN', value: 'en-US' }\n ],\n colorful = true,\n ...props\n}) => {\n const [current, onChange] = useControlValue(Object.assign({}, { defaultLocale: 'zh-CN' }, props), {\n defaultValue: 'defaultLocale',\n value: 'locale',\n onChange: 'onChange'\n });\n const [Icon] = remoteModules;\n return (\n <div\n className={classnames(className, 'language', style['language'], {\n [style['is-colorful']]: colorful\n })}\n onClick={e => {\n e.stopPropagation();\n }}>\n <Icon className={style['icon']} type=\"icon-yuyanqiehuan\" />\n <Space split={<Divider type=\"vertical\" />} size={0}>\n {list.map(({ label, value }) => (\n <Button\n key={value}\n type=\"text\"\n className={classnames('btn-no-padding', style['item'], {\n [style['is-active']]: value === current\n })}\n onClick={() => {\n onChange(value);\n }}>\n {label}\n </Button>\n ))}\n </Space>\n </div>\n );\n});\n\nexport default Language;\n","/**\n * @license React\n * react-jsx-runtime.production.min.js\n *\n * Copyright (c) Facebook, Inc. and its affiliates.\n *\n * This source code is licensed under the MIT license found in the\n * LICENSE file in the root directory of this source tree.\n */\n'use strict';var f=require(\"react\"),k=Symbol.for(\"react.element\"),l=Symbol.for(\"react.fragment\"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};\nfunction q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=\"\"+g);void 0!==a.key&&(e=\"\"+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return{$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}exports.Fragment=l;exports.jsx=q;exports.jsxs=q;\n","'use strict';\n\nif (process.env.NODE_ENV === 'production') {\n module.exports = require('./cjs/react-jsx-runtime.production.min.js');\n} else {\n module.exports = require('./cjs/react-jsx-runtime.development.js');\n}\n","import objectWithoutPropertiesLoose from \"./objectWithoutPropertiesLoose.js\";\nfunction _objectWithoutProperties(e, t) {\n if (null == e) return {};\n var o,\n r,\n i = objectWithoutPropertiesLoose(e, t);\n if (Object.getOwnPropertySymbols) {\n var n = Object.getOwnPropertySymbols(e);\n for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);\n }\n return i;\n}\nexport { _objectWithoutProperties as default };","/*!\n\tCopyright (c) 2018 Jed Watson.\n\tLicensed under the MIT License (MIT), see\n\thttp://jedwatson.github.io/classnames\n*/\n/* global define */\n\n(function () {\n\t'use strict';\n\n\tvar hasOwn = {}.hasOwnProperty;\n\n\tfunction classNames () {\n\t\tvar classes = '';\n\n\t\tfor (var i = 0; i < arguments.length; i++) {\n\t\t\tvar arg = arguments[i];\n\t\t\tif (arg) {\n\t\t\t\tclasses = appendClass(classes, parseValue(arg));\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction parseValue (arg) {\n\t\tif (typeof arg === 'string' || typeof arg === 'number') {\n\t\t\treturn arg;\n\t\t}\n\n\t\tif (typeof arg !== 'object') {\n\t\t\treturn '';\n\t\t}\n\n\t\tif (Array.isArray(arg)) {\n\t\t\treturn classNames.apply(null, arg);\n\t\t}\n\n\t\tif (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes('[native code]')) {\n\t\t\treturn arg.toString();\n\t\t}\n\n\t\tvar classes = '';\n\n\t\tfor (var key in arg) {\n\t\t\tif (hasOwn.call(arg, key) && arg[key]) {\n\t\t\t\tclasses = appendClass(classes, key);\n\t\t\t}\n\t\t}\n\n\t\treturn classes;\n\t}\n\n\tfunction appendClass (value, newClass) {\n\t\tif (!newClass) {\n\t\t\treturn value;\n\t\t}\n\t\n\t\tif (value) {\n\t\t\treturn value + ' ' + newClass;\n\t\t}\n\t\n\t\treturn value + newClass;\n\t}\n\n\tif (typeof module !== 'undefined' && module.exports) {\n\t\tclassNames.default = classNames;\n\t\tmodule.exports = classNames;\n\t} else if (typeof define === 'function' && typeof define.amd === 'object' && define.amd) {\n\t\t// register as 'classnames', consistent with npm package name\n\t\tdefine('classnames', [], function () {\n\t\t\treturn classNames;\n\t\t});\n\t} else {\n\t\twindow.classNames = classNames;\n\t}\n}());\n","function _objectWithoutPropertiesLoose(r, e) {\n if (null == r) return {};\n var t = {};\n for (var n in r) if ({}.hasOwnProperty.call(r, n)) {\n if (-1 !== e.indexOf(n)) continue;\n t[n] = r[n];\n }\n return t;\n}\nexport { _objectWithoutPropertiesLoose as default };"],"names":["createWithRemoteLoader","modules","_ref","remoteModules","className","list","label","value","colorful","props","_objectWithoutProperties","_excluded","current","onChange","useControlValue","Object","assign","defaultLocale","defaultValue","Icon","_jsxs","classnames","style","onClick","e","stopPropagation","children","_jsx","type","Space","split","Divider","size","map","_ref2","Button","f","require","k","Symbol","for","l","m","prototype","hasOwnProperty","n","__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED","ReactCurrentOwner","p","key","ref","__self","__source","q","c","a","g","b","d","h","call","defaultProps","$$typeof","_owner","exports","Fragment","jsx","jsxs","module","t","o","r","i","getOwnPropertySymbols","length","indexOf","propertyIsEnumerable","hasOwn","classNames","classes","arguments","arg","appendClass","parseValue","Array","isArray","apply","toString","includes","newClass","default","_objectWithoutPropertiesLoose"],"ignoreList":[],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_kne_components_components_admin=self.webpackChunk_kne_components_components_admin||[]).push([[6312],{11448(e,o,t){var n=t(73884),r=t.n(n),s=t(89379),a=t(87558),m=t(55199),c=t(89946),d=t.n(c),l=t(13050),i=t(1488),p=t.n(i),u=t(70579);window.PUBLIC_URL=window.runtimePublicUrl||"components-admin";var h=t(84391),f=t(80045),g=t(94679),y=t(66964),k=(t(91296),t(46446));const A=["globalPreset"],w=y.Ay.ExampleRoutes,x=e=>{let{globalPreset:o}=e,t=(0,f.A)(e,A);return(0,u.jsx)(g.HashRouter,{children:(0,u.jsx)(w,(0,s.A)((0,s.A)({},t),{},{paths:[{key:"components",path:"/",title:"\u9996\u9875"}],preset:o,themeToken:o.themeToken,readme:k.default}))})},j=h.createRoot(document.getElementById("root"));(async e=>{const o=await(async()=>{const e=(()=>{const e=d().create({validateStatus:function(){return!0}});return e.interceptors.response.use(e=>{var o;return 200!==e.status&&!1!==e.showError&&!1!==e.config.showError&&m.message.error((null===e||void 0===e||null===(o=e.data)||void 0===o?void 0:o.msg)||"\u8bf7\u6c42\u53d1\u751f\u9519\u8bef"),e},e=>(m.message.error(e.message||"\u8bf7\u6c42\u53d1\u751f\u9519\u8bef"),Promise.reject(e))),o=>o.hasOwnProperty("loader")&&"function"===typeof o.loader?Promise.resolve(o.loader(p()(o,["loader"]))).then(e=>({data:{code:0,data:e}})).catch(e=>(m.message.error(e.message||"\u8bf7\u6c42\u53d1\u751f\u9519\u8bef"),{data:{code:500,msg:e.message}})):e(o)})();(0,a.preset)({ajax:e,loading:(0,u.jsx)(m.Spin,{delay:500,style:{position:"absolute",left:"50%",padding:"10px",transform:"translateX(-50%)"}}),error:null,empty:(0,u.jsx)(m.Empty,{}),transformResponse:e=>{const{data:o}=e;return e.data={code:0===o.code?200:o.code,msg:o.msg,results:o.data},e}});const o={url:"https://cdn.leapin-ai.com",tpl:"{{url}}/components/@kne-components/{{remote}}/{{version}}/build"},t=(0,s.A)((0,s.A)({},o),{},{remote:"components-core",defaultVersion:"0.4.42"});return(0,l.preset)({remotes:{default:t,"components-core":t,"components-iconfont":(0,s.A)((0,s.A)({},o),{},{remote:"components-iconfont",defaultVersion:"0.1.8"}),"components-thirdparty":(0,s.A)((0,s.A)({},o),{},{remote:"components-thirdparty",defaultVersion:"0.1.6"}),"components-admin":(0,s.A)((0,s.A)({},o),{},{remote:"components-admin",defaultVersion:"1.1.15"})}}),{ajax:e,themeToken:{colorPrimary:"#4183F0"}}})();j.render((0,u.jsx)(r().StrictMode,{children:(0,u.jsx)(e,{themeToken:o.themeToken,globalPreset:o})}))})(x)}}]);
2
- //# sourceMappingURL=6312.0a4f71ae.chunk.js.map
1
+ "use strict";(self.webpackChunk_kne_components_components_admin=self.webpackChunk_kne_components_components_admin||[]).push([[6312],{11448(e,o,t){var n=t(73884),r=t.n(n),s=t(89379),a=t(87558),m=t(55199),c=t(89946),d=t.n(c),l=t(13050),i=t(1488),p=t.n(i),u=t(70579);window.PUBLIC_URL=window.runtimePublicUrl||"components-admin";var h=t(84391),f=t(80045),g=t(94679),y=t(66964),k=(t(91296),t(46446));const A=["globalPreset"],w=y.Ay.ExampleRoutes,x=e=>{let{globalPreset:o}=e,t=(0,f.A)(e,A);return(0,u.jsx)(g.HashRouter,{children:(0,u.jsx)(w,(0,s.A)((0,s.A)({},t),{},{paths:[{key:"components",path:"/",title:"\u9996\u9875"}],preset:o,themeToken:o.themeToken,readme:k.default}))})},j=h.createRoot(document.getElementById("root"));(async e=>{const o=await(async()=>{const e=(()=>{const e=d().create({validateStatus:function(){return!0}});return e.interceptors.response.use(e=>{var o;return 200!==e.status&&!1!==e.showError&&!1!==e.config.showError&&m.message.error((null===e||void 0===e||null===(o=e.data)||void 0===o?void 0:o.msg)||"\u8bf7\u6c42\u53d1\u751f\u9519\u8bef"),e},e=>(m.message.error(e.message||"\u8bf7\u6c42\u53d1\u751f\u9519\u8bef"),Promise.reject(e))),o=>o.hasOwnProperty("loader")&&"function"===typeof o.loader?Promise.resolve(o.loader(p()(o,["loader"]))).then(e=>({data:{code:0,data:e}})).catch(e=>(m.message.error(e.message||"\u8bf7\u6c42\u53d1\u751f\u9519\u8bef"),{data:{code:500,msg:e.message}})):e(o)})();(0,a.preset)({ajax:e,loading:(0,u.jsx)(m.Spin,{delay:500,style:{position:"absolute",left:"50%",padding:"10px",transform:"translateX(-50%)"}}),error:null,empty:(0,u.jsx)(m.Empty,{}),transformResponse:e=>{const{data:o}=e;return e.data={code:0===o.code?200:o.code,msg:o.msg,results:o.data},e}});const o={url:"https://cdn.leapin-ai.com",tpl:"{{url}}/components/@kne-components/{{remote}}/{{version}}/build"},t=(0,s.A)((0,s.A)({},o),{},{remote:"components-core",defaultVersion:"0.4.42"});return(0,l.preset)({remotes:{default:t,"components-core":t,"components-iconfont":(0,s.A)((0,s.A)({},o),{},{remote:"components-iconfont",defaultVersion:"0.1.8"}),"components-thirdparty":(0,s.A)((0,s.A)({},o),{},{remote:"components-thirdparty",defaultVersion:"0.1.6"}),"components-admin":(0,s.A)((0,s.A)({},o),{},{remote:"components-admin",defaultVersion:"1.1.16"})}}),{ajax:e,themeToken:{colorPrimary:"#4183F0"}}})();j.render((0,u.jsx)(r().StrictMode,{children:(0,u.jsx)(e,{themeToken:o.themeToken,globalPreset:o})}))})(x)}}]);
2
+ //# sourceMappingURL=6312.4dc24b9b.chunk.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"static/js/6312.0a4f71ae.chunk.js","mappings":"wQAOAA,OAAOC,WAAaD,OAAOE,kBAAoBC,mB,+FCFzCC,EAAgBC,EAAAA,GAAYD,cAsBlC,EApBYE,IAAiC,IAAhC,aAAEC,GAAwBD,EAAPE,GAAKC,EAAAA,EAAAA,GAAAH,EAAAI,GACnC,OACEC,EAAAA,EAAAA,KAACC,EAAAA,WAAU,CAAAC,UACTF,EAAAA,EAAAA,KAACP,GAAaU,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACRN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AMV,EAAKU,KACnCT,IAAKD,EAAKC,IACVwB,QAASzB,EAAKA,MAETR,KAGX,MAAMkC,EAAW,CAGfC,IAAK,4BACLC,IAAK,mEAGDC,GAAoBvD,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACrBoD,GAAQ,IACXI,OAAQ,kBACRC,eAAgB,WAiClB,OA/BAC,EAAAA,EAAAA,QAAmB,CACjBC,QAAS,CACPC,QAASL,EACT,kBAAmBA,EACnB,uBAAqBvD,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAChBoD,GAAQ,IACXI,OAAQ,sBACRC,eAAgB,UAElB,yBAAuBzD,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAClBoD,GAAQ,IAGXI,OAAQ,wBACRC,eAAgB,UAElB,oBAMOzD,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAEIoD,GAAQ,IACXI,OAAQ,mBACRC,eAAgBpE,cAKrB,CACLwB,OACAP,WAAY,CACVuD,aAAc,aE/GSC,GAC3BtD,EAAKuD,QACHlE,EAAAA,EAAAA,KAACmE,IAAAA,WAAgB,CAAAjE,UACfF,EAAAA,EAAAA,KAACoE,EAAG,CAAC3D,WAAYb,EAAaa,WAAYb,aAAcA,QAK9DyE,CAAWD,E","sources":["preset.js","App.js","bootstrap.js"],"sourcesContent":["import React from 'react';\nimport { preset as fetchPreset } from '@kne/react-fetch';\nimport { Spin, Empty, message } from 'antd';\nimport axios from 'axios';\nimport { preset as remoteLoaderPreset } from '@kne/remote-loader';\nimport omit from 'lodash/omit';\n\nwindow.PUBLIC_URL = window.runtimePublicUrl || process.env.PUBLIC_URL;\n\nexport const globalInit = async () => {\n const ajax = (() => {\n const instance = axios.create({\n validateStatus: function () {\n return true;\n }\n });\n\n instance.interceptors.response.use(\n response => {\n if (response.status !== 200) {\n response.showError !== false && response.config.showError !== false && message.error(response?.data?.msg || '请求发生错误');\n }\n return response;\n },\n error => {\n message.error(error.message || '请求发生错误');\n return Promise.reject(error);\n }\n );\n\n return params => {\n if (params.hasOwnProperty('loader') && typeof params.loader === 'function') {\n return Promise.resolve(params.loader(omit(params, ['loader'])))\n .then(data => ({\n data: {\n code: 0,\n data\n }\n }))\n .catch(err => {\n message.error(err.message || '请求发生错误');\n return { data: { code: 500, msg: err.message } };\n });\n }\n\n return instance(params);\n };\n })();\n fetchPreset({\n ajax,\n loading: (\n <Spin\n delay={500}\n style={{\n position: 'absolute',\n left: '50%',\n padding: '10px',\n transform: 'translateX(-50%)'\n }}\n />\n ),\n error: null,\n empty: <Empty />,\n transformResponse: response => {\n const { data } = response;\n response.data = {\n code: data.code === 0 ? 200 : data.code,\n msg: data.msg,\n results: data.data\n };\n return response;\n }\n });\n const registry = {\n //url: 'https://uc.fatalent.cn',\n //tpl: '{{url}}/packages/@kne-components/{{remote}}/{{version}}/build'\n url: 'https://cdn.leapin-ai.com',\n tpl: '{{url}}/components/@kne-components/{{remote}}/{{version}}/build'\n };\n\n const componentsCoreRemote = {\n ...registry,\n remote: 'components-core',\n defaultVersion: '0.4.42'\n };\n remoteLoaderPreset({\n remotes: {\n default: componentsCoreRemote,\n 'components-core': componentsCoreRemote,\n 'components-iconfont': {\n ...registry,\n remote: 'components-iconfont',\n defaultVersion: '0.1.8'\n },\n 'components-thirdparty': {\n ...registry,\n //url: 'http://localhost:3010',\n //tpl: '{{url}}',\n remote: 'components-thirdparty',\n defaultVersion: '0.1.6'\n },\n 'components-admin':\n process.env.NODE_ENV === 'development'\n ? {\n remote: 'components-admin',\n url: '/',\n tpl: '{{url}}'\n }\n : {\n ...registry,\n remote: 'components-admin',\n defaultVersion: process.env.DEFAULT_VERSION\n }\n }\n });\n\n return {\n ajax,\n themeToken: {\n colorPrimary: '#4183F0'\n }\n };\n};\n","import { HashRouter } from 'react-router-dom';\nimport createEntry from '@kne/modules-dev/dist/create-entry.modern';\nimport '@kne/modules-dev/dist/create-entry.css';\nimport readme from 'readme';\n\nconst ExampleRoutes = createEntry.ExampleRoutes;\n\nconst App = ({ globalPreset, ...props }) => {\n return (\n <HashRouter>\n <ExampleRoutes\n {...props}\n paths={[\n {\n key: 'components',\n path: '/',\n title: '首页'\n }\n ]}\n preset={globalPreset}\n themeToken={globalPreset.themeToken}\n readme={readme}\n />\n </HashRouter>\n );\n};\n\nexport default App;\n","import React from 'react';\nimport { globalInit } from './preset';\nimport ReactDOM from 'react-dom/client';\nimport App from './App';\n\nconst root = ReactDOM.createRoot(document.getElementById('root'));\n\nconst renderRoot = async App => {\n const globalPreset = await globalInit();\n root.render(\n <React.StrictMode>\n <App themeToken={globalPreset.themeToken} globalPreset={globalPreset} />\n </React.StrictMode>\n );\n};\n\nrenderRoot(App);\n"],"names":["window","PUBLIC_URL","runtimePublicUrl","process","ExampleRoutes","createEntry","_ref","globalPreset","props","_objectWithoutProperties","_excluded","_jsx","HashRouter","children","_objectSpread","paths","key","path","title","preset","themeToken","readme","root","ReactDOM","document","getElementById","async","ajax","instance","axios","validateStatus","interceptors","response","use","_response$data","status","showError","config","message","error","data","msg","Promise","reject","params","hasOwnProperty","loader","resolve","omit","then","code","catch","err","fetchPreset","loading","Spin","delay","style","position","left","padding","transform","empty","Empty","transformResponse","results","registry","url","tpl","componentsCoreRemote","remote","defaultVersion","remoteLoaderPreset","remotes","default","colorPrimary","globalInit","render","React","App","renderRoot"],"ignoreList":[],"sourceRoot":""}
1
+ {"version":3,"file":"static/js/6312.4dc24b9b.chunk.js","mappings":"wQAOAA,OAAOC,WAAaD,OAAOE,kBAAoBC,mB,+FCFzCC,EAAgBC,EAAAA,GAAYD,cAsBlC,EApBYE,IAAiC,IAAhC,aAAEC,GAAwBD,EAAPE,GAAKC,EAAAA,EAAAA,GAAAH,EAAAI,GACnC,OACEC,EAAAA,EAAAA,KAACC,EAAAA,WAAU,CAAAC,UACTF,EAAAA,EAAAA,KAACP,GAAaU,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACRN,GAAK,IACTO,MAAO,CACL,CACEC,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KC,IACVwB,QAASzB,EAAKA,MAETR,KAGX,MAAMkC,EAAW,CAGfC,IAAK,4BACLC,IAAK,mEAGDC,GAAoBvD,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GACrBoD,GAAQ,IACXI,OAAQ,kBACRC,eAAgB,WAiClB,OA/BAC,EAAAA,EAAAA,QAAmB,CACjBC,QAAS,CACPC,QAASL,EACT,kBAAmBA,EACnB,uBAAqBvD,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAChBoD,GAAQ,IACXI,OAAQ,sBACRC,eAAgB,UAElB,yBAAuBzD,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAClBoD,GAAQ,IAGXI,OAAQ,wBACRC,eAAgB,UAElB,oBAMOzD,EAAAA,EAAAA,IAAAA,EAAAA,EAAAA,GAAA,GAEIoD,GAAQ,IACXI,OAAQ,mBACRC,eAAgBpE,cAKrB,CACLwB,OACAP,WAAY,CACVuD,aAAc,aE/GSC,GAC3BtD,EAAKuD,QACHlE,EAAAA,EAAAA,KAACmE,IAAAA,WAAgB,CAAAjE,UACfF,EAAAA,EAAAA,KAACoE,EAAG,CAAC3D,WAAYb,EAAaa,WAAYb,aAAcA,QAK9DyE,CAAWD,E","sources":["preset.js","App.js","bootstrap.js"],"sourcesContent":["import React from 'react';\nimport { preset as fetchPreset } from '@kne/react-fetch';\nimport { Spin, Empty, message } from 'antd';\nimport axios from 'axios';\nimport { preset as remoteLoaderPreset } from '@kne/remote-loader';\nimport omit from 'lodash/omit';\n\nwindow.PUBLIC_URL = window.runtimePublicUrl || process.env.PUBLIC_URL;\n\nexport const globalInit = async () => {\n const ajax = (() => {\n const instance = axios.create({\n validateStatus: function () {\n return true;\n }\n });\n\n instance.interceptors.response.use(\n response => {\n if (response.status !== 200) {\n response.showError !== false && response.config.showError !== false && message.error(response?.data?.msg || '请求发生错误');\n }\n return response;\n },\n error => {\n message.error(error.message || '请求发生错误');\n return Promise.reject(error);\n }\n );\n\n return params => {\n if (params.hasOwnProperty('loader') && typeof params.loader === 'function') {\n return Promise.resolve(params.loader(omit(params, ['loader'])))\n .then(data => ({\n data: {\n code: 0,\n data\n }\n }))\n .catch(err => {\n message.error(err.message || '请求发生错误');\n return { data: { code: 500, msg: err.message } };\n });\n }\n\n return instance(params);\n };\n })();\n fetchPreset({\n ajax,\n loading: (\n <Spin\n delay={500}\n style={{\n position: 'absolute',\n left: '50%',\n padding: '10px',\n transform: 'translateX(-50%)'\n }}\n />\n ),\n error: null,\n empty: <Empty />,\n transformResponse: response => {\n const { data } = response;\n response.data = {\n code: data.code === 0 ? 200 : data.code,\n msg: data.msg,\n results: data.data\n };\n return response;\n }\n });\n const registry = {\n //url: 'https://uc.fatalent.cn',\n //tpl: '{{url}}/packages/@kne-components/{{remote}}/{{version}}/build'\n url: 'https://cdn.leapin-ai.com',\n tpl: '{{url}}/components/@kne-components/{{remote}}/{{version}}/build'\n };\n\n const componentsCoreRemote = {\n ...registry,\n remote: 'components-core',\n defaultVersion: '0.4.42'\n };\n remoteLoaderPreset({\n remotes: {\n default: componentsCoreRemote,\n 'components-core': componentsCoreRemote,\n 'components-iconfont': {\n ...registry,\n remote: 'components-iconfont',\n defaultVersion: '0.1.8'\n },\n 'components-thirdparty': {\n ...registry,\n //url: 'http://localhost:3010',\n //tpl: '{{url}}',\n remote: 'components-thirdparty',\n defaultVersion: '0.1.6'\n },\n 'components-admin':\n process.env.NODE_ENV === 'development'\n ? {\n remote: 'components-admin',\n url: '/',\n tpl: '{{url}}'\n }\n : {\n ...registry,\n remote: 'components-admin',\n defaultVersion: process.env.DEFAULT_VERSION\n }\n }\n });\n\n return {\n ajax,\n themeToken: {\n colorPrimary: '#4183F0'\n }\n };\n};\n","import { HashRouter } from 'react-router-dom';\nimport createEntry from '@kne/modules-dev/dist/create-entry.modern';\nimport '@kne/modules-dev/dist/create-entry.css';\nimport readme from 'readme';\n\nconst ExampleRoutes = createEntry.ExampleRoutes;\n\nconst App = ({ globalPreset, ...props }) => {\n return (\n <HashRouter>\n <ExampleRoutes\n {...props}\n paths={[\n {\n key: 'components',\n path: '/',\n title: '首页'\n }\n ]}\n preset={globalPreset}\n themeToken={globalPreset.themeToken}\n readme={readme}\n />\n </HashRouter>\n );\n};\n\nexport default App;\n","import React from 'react';\nimport { globalInit } from './preset';\nimport ReactDOM from 'react-dom/client';\nimport App from './App';\n\nconst root = ReactDOM.createRoot(document.getElementById('root'));\n\nconst renderRoot = async App => {\n const globalPreset = await globalInit();\n root.render(\n <React.StrictMode>\n <App themeToken={globalPreset.themeToken} globalPreset={globalPreset} />\n </React.StrictMode>\n );\n};\n\nrenderRoot(App);\n"],"names":["window","PUBLIC_URL","runtimePublicUrl","process","ExampleRoutes","createEntry","_ref","globalPreset","props","_objectWithoutProperties","_excluded","_jsx","HashRouter","children","_objectSpread","paths","key","path","title","preset","themeToken","readme","root","ReactDOM","document","getElementById","async","ajax","instance","axios","validateStatus","interceptors","response","use","_response$data","status","showError","config","message","error","data","msg","Promise","reject","params","hasOwnProperty","loader","resolve","omit","then","code","catch","err","fetchPreset","loading","Spin","delay","style","position","left","padding","transform","empty","Empty","transformResponse","results","registry","url","tpl","componentsCoreRemote","remote","defaultVersion","remoteLoaderPreset","remotes","default","colorPrimary","globalInit","render","React","App","renderRoot"],"ignoreList":[],"sourceRoot":""}
@@ -1,2 +1,2 @@
1
- "use strict";(self.webpackChunk_kne_components_components_admin=self.webpackChunk_kne_components_components_admin||[]).push([[8406],{35795(e,s,t){t.r(s),t.d(s,{default:()=>j});var a=t(80045);const o="style_language__jjP0+__5FVMF",n="style_is-colorful__DC7fI__5FVMF",l="style_icon__pQadO__5FVMF",i="style_item__uDOaw__5FVMF",r="style_is-active__dYoEr__5FVMF";var c=t(13050),d=t(35028),m=t.n(d),u=t(55199),g=t(98139),p=t.n(g),h=t(70579);const _=["remoteModules","className","list","colorful"],j=(0,c.createWithRemoteLoader)({modules:["components-core:Icon"]})(e=>{let{remoteModules:s,className:t,list:c=[{label:"\u4e2d\u6587",value:"zh-CN"},{label:"EN",value:"en-US"}],colorful:d=!0}=e,g=(0,a.A)(e,_);const[j,x]=m()(Object.assign({},{defaultLocale:"zh-CN"},g),{defaultValue:"defaultLocale",value:"locale",onChange:"onChange"}),[f]=s;return(0,h.jsxs)("div",{className:p()(t,"language",o,{[n]:d}),onClick:e=>{e.stopPropagation()},children:[(0,h.jsx)(f,{className:l,type:"icon-yuyanqiehuan"}),(0,h.jsx)(u.Space,{split:(0,h.jsx)(u.Divider,{type:"vertical"}),size:0,children:c.map(e=>{let{label:s,value:t}=e;return(0,h.jsx)(u.Button,{type:"text",className:p()("btn-no-padding",i,{[r]:t===j}),onClick:()=>{x(t)},children:s},t)})})]})})},64948(e,s,t){t.r(s),t.d(s,{default:()=>g});var a=t(89379),o=t(80045),n=t(87558),l=t.n(n),i=t(98139),r=t.n(i);const c="style_login-illustration__d3Hvd__5FVMF";var d=t(70579);const m=["type","className"],u={hello:()=>Promise.all([t.e(3050),t.e(5084)]).then(t.bind(t,75084)).then(e=>e.default)},g=e=>{let{type:s,className:t}=e,n=(0,o.A)(e,m);return(0,d.jsx)("div",{className:r()(c,t),children:(0,d.jsx)(l(),{loader:e=>{let{params:s}=e;return(u[s.type]||u.hello)()},params:{type:s},render:e=>{let{data:s}=e;return(0,d.jsx)(s,(0,a.A)({},n))}})})}},68743(e,s,t){t.d(s,{A:()=>g});var a=t(89379),o=t(80045),n=t(13050),l=t(35795),i=t(74416),r=t(96418),c=t.n(r),d=t(73884),m=t(70579);const u=["remoteModules"],g=(0,n.createWithRemoteLoader)({modules:["components-core:Global@useGlobalValue","components-core:Global@useGlobalContext"]})(e=>{let{remoteModules:s}=e,t=(0,o.A)(e,u);const[n,r]=s,g=n("locale"),{setGlobal:p}=r("locale"),h=c()(()=>{const e=i.A.getItem("X-User-Locale");["en-US","zh-CN"].indexOf(e)>-1&&e!==g&&p(e)});return(0,d.useEffect)(()=>{h()},[h]),(0,m.jsx)(l.default,(0,a.A)((0,a.A)({},t),{},{locale:g,onChange:e=>{p(e),i.A.setItem("X-User-Locale",e)}}))})},98406(e,s,t){t.r(s),t.d(s,{ForgetByEmail:()=>Z,Login:()=>E,LoginOuterContainer:()=>y,Logout:()=>ne,Modify:()=>K,Register:()=>Q,ResetPassword:()=>$,default:()=>Me,useLogout:()=>oe});var a=t(55199),o=t(98139),n=t.n(o);const l="style_out-left__wOmRS__5FVMF",i="style_out-right__29XpV__5FVMF",r="style_out-right-inner__DZjbq__5FVMF",c="style_container-left-content__2FtGT__5FVMF",d="style_container-left-logo__fR8Ed__5FVMF",m="style_container-left-title__vg7KF__5FVMF",u="style_container-left-inner__AZyjW__5FVMF",g="style_out-container__iqnkT__5FVMF",p="style_top-banner__j8+SV__5FVMF",h="style_title__Pn7Uw__5FVMF",_="style_back-link__TepOq__5FVMF",j="style_form-inner__AnfOK__5FVMF",x="style_top-banner-inner__-62z0__5FVMF",f="style_out-inner__olZqh__5FVMF";var w=t(70579);const y=e=>{let{className:s,title:t,logo:o,leftInner:h,children:_}=e;return(0,w.jsxs)("div",{className:n()(s,g,"account-box"),children:[(0,w.jsxs)("div",{className:p,children:[(0,w.jsx)("div",{className:x,children:t}),h]}),(0,w.jsx)("div",{className:f,children:(0,w.jsxs)(a.Row,{wrap:!1,children:[(0,w.jsxs)(a.Col,{className:n()(l,"container-left"),children:[(0,w.jsxs)(a.Flex,{gap:16,align:"center",className:n()(c,"container-left-content"),children:[o&&(0,w.jsx)("img",{className:n()(d,"container-left-logo"),src:o,alt:"logo"}),t&&(0,w.jsx)("div",{className:n()(m,"container-left-title"),children:t})]}),h&&(0,w.jsx)("div",{className:n()(u,"container-left-inner"),children:h})]}),(0,w.jsx)(a.Col,{className:n()(i,"container-right"),flex:1,children:(0,w.jsx)("div",{className:n()(r,"container-right-inner"),children:_})})]})})]})};var N=t(80045);const P="style_forget-button__4NY6I__5FVMF";var b=t(73884),R=t(35950),v=t.n(R),F=t(13050),S=t(52526);const A={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"},L={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,S.createWithIntlProvider)({defaultLocale:"zh-CN",messages:{"zh-CN":A,"en-US":L},namespace:"components-admin:Account"}),M=["remoteModules"],k="LOGIN_REMEMBER_ACCOUNT",E=C((0,F.createWithRemoteLoader)({modules:["component-core:FormInfo"]})(e=>{let{remoteModules:s}=e,t=(0,N.A)(e,M);const{formatMessage:o}=(0,S.useIntl)(),{title:n,registerUrl:l,forgetUrl:i,type:r,onSubmit:c}=Object.assign({},{title:o({id:"Login"}),type:"email",registerUrl:"",forgetUrl:""},t),[d,m]=(0,b.useState)(!1),u=v()(),[g]=s,{Form:p,SubmitButton:_,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:h,children:n}),(0,w.jsxs)("div",{children:["email"===r&&(0,w.jsx)(x,{name:"email",label:o({id:"Email"}),rule:"REQ EMAIL"}),"phone"===r&&(0,w.jsx)(x,{name:"phone",label:o({id:"Phone"}),rule:"REQ TEL"}),(0,w.jsx)(x.Password,{type:"password",name:"password",label:o({id:"Password"}),rule:"REQ LEN-6-50"})]})]}),(0,w.jsxs)(a.Space,{className:"space-full",size:10,direction:"vertical",children:[(0,w.jsx)(_,{block:!0,size:"large",children:o({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=>{m(e.target.checked)},children:o({id:"RememberAccount"})})}),(0,w.jsx)(a.Col,{children:(0,w.jsxs)(a.Flex,{gap:8,children:[l&&(0,w.jsx)(a.Button,{className:P,type:"link",size:"small",onClick:()=>{u(l)},children:o({id:"RegisterBtn"})}),i&&(0,w.jsx)(a.Button,{className:P,type:"link",size:"small",onClick:()=>{u(i)},children:o({id:"ForgetPassword"})})]})})]})]})]})}));var U=t(79123),I=t.n(U),V=t(33097),O=t.n(V),z=t(28488);const T="style_code-field__NvD9i__5FVMF",B="style_get-code__j4NF-__5FVMF",W=["remoteModules"],Q=C((0,F.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:s}=e,t=(0,N.A)(e,W);const{formatMessage:o}=(0,S.useIntl)(),{onSubmit:l,title:i,systemName:r,type:c,sendVerificationCode:d,loginUrl:m,topBanner:u,className:y}=Object.assign({},{title:o({id:"Register"}),type:"email",loginUrl:"",sendVerificationCode:()=>{console.warn("\u4f20\u5165sendVerificationCode\u5c5e\u6027\u53d1\u9001\u9a8c\u8bc1\u7801")}},t),P=(0,b.useRef)(null),[R]=s,{Form:F,SubmitButton:A,fields:L}=R,{Input:C,PhoneNumber:M}=L,k=v()();return(0,w.jsxs)("div",{className:n()(g,y),children:[u&&(0,w.jsxs)("div",{className:p,children:[(0,w.jsx)("div",{className:x,children:r}),u]}),(0,w.jsx)("div",{className:f,children:(0,w.jsxs)(F,{type:"inner",size:"large",ref:P,onSubmit:l,children:[(0,w.jsx)(a.Button,{className:_,type:"link",size:"large",icon:(0,w.jsx)(z.LeftOutlined,{}),onClick:()=>{k(m)},children:o({id:"HasAccountLogin"})}),(0,w.jsxs)(a.Space,{className:n()(j),size:38,direction:"vertical",children:[(0,w.jsx)("div",{className:h,children:i}),(0,w.jsxs)("div",{children:["phone"===c&&(0,w.jsx)(M,{name:"phone",label:o({id:"PhoneCode"}),rule:"REQ",codeType:"code",realtime:!0,interceptor:"phone-number-string"}),"email"===c&&(0,w.jsx)(C,{name:"email",label:o({id:"Email"}),rule:"REQ EMAIL",realtime:!0}),(0,w.jsxs)(a.Row,{align:"bottom",justify:"space-between",children:[(0,w.jsx)(a.Col,{className:T,children:(0,w.jsx)(C,{name:"code",label:o({id:"VerificationCode"}),rule:"REQ LEN-6 VALIDATE_CODE"})}),(0,w.jsx)(a.Col,{children:(0,w.jsx)(I(),{className:B,type:"link",target:{name:c},onClick:()=>d({type:c,data:O()(P.current.data,c)}),children:o({id:"SendCode"})})})]}),(0,w.jsx)(C.Password,{name:"password",label:o({id:"Password"}),rule:"REQ LEN-6-50"}),(0,w.jsx)(C.Password,{name:"repeatPwd",label:o({id:"RepeatPassword"}),rule:"REQ LEN-6-50 REPEAT-password"})]}),(0,w.jsx)(A,{block:!0,size:"large",children:o({id:"Register"})})]})]})})]})})),G=["remoteModules"],K=C((0,F.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:s}=e,t=(0,N.A)(e,G);const{formatMessage:o}=(0,S.useIntl)(),{className:l,title:i,systemName:r,isReset:c,account:d,onSubmit:m,type:u,header:_,topBanner:y}=Object.assign({},{title:o({id:"Modify"}),type:"email",header:null},t),[P]=s,{Form:b,SubmitButton:R,fields:v}=P,{Input:F}=v;return(0,w.jsxs)("div",{className:n()(g,l),children:[y&&(0,w.jsxs)("div",{className:p,children:[(0,w.jsx)("div",{className:x,children:r}),y]}),(0,w.jsxs)("div",{className:f,children:[_,(0,w.jsx)(b,{type:"inner",size:"large",onSubmit:m,children:(0,w.jsxs)(a.Space,{className:n()(j),size:38,direction:"vertical",children:[(0,w.jsx)("div",{className:h,children:i}),(0,w.jsxs)("div",{children:["email"===u&&(0,w.jsx)(F,{name:"email",label:o({id:"EmailAccount"}),disabled:!0,defaultValue:d&&decodeURIComponent(d)}),"phone"===u&&(0,w.jsx)(F,{name:"phone",label:o({id:"PhoneAccount"}),disabled:!0,defaultValue:d&&decodeURIComponent(d)}),c?null:(0,w.jsx)(F.Password,{name:"oldPwd",label:o({id:"OldPassword"}),rule:"REQ LEN-6-50"}),(0,w.jsx)(F.Password,{name:"newPwd",label:o({id:"NewPassword"}),rule:"REQ LEN-6-50"}),(0,w.jsx)(F.Password,{name:"repeatNewPwd",label:o({id:"RepeatNewPassword"}),rule:"REQ LEN-6-50 REPEAT-newPwd"})]}),(0,w.jsx)(R,{block:!0,size:"large",children:o({id:"Submit"})})]})})]})]})})),D="style_forget-input__psj0u__5FVMF",H="style_success-info__zKcsw__5FVMF",X="style_main__GAYFL__5FVMF",q=["remoteModules"],Z=C((0,F.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:s}=e,t=(0,N.A)(e,q);const{formatMessage:o}=(0,S.useIntl)(),{title:l,loginUrl:i,onSubmit:r}=Object.assign({},{title:o({id:"Forget"}),loginUrl:""},t),[c,d]=(0,b.useState)(""),m=v()(),[u]=s,{Form:g,fields:p,SubmitButton:j}=u,{Input:x}=p,f=(0,w.jsx)(a.Button,{className:_,type:"link",size:"large",icon:(0,w.jsx)(z.LeftOutlined,{}),onClick:()=>{m(i)},children:o({id:"BackToLogin"})});return c?(0,w.jsxs)(w.Fragment,{children:[f,(0,w.jsxs)(a.Space,{className:n()(X,"space-full"),direction:"vertical",size:40,children:[(0,w.jsx)("div",{className:h,children:l}),(0,w.jsxs)("div",{className:H,children:[(0,w.jsx)("div",{children:o({id:"ResetLinkSent"},{s:c})}),(0,w.jsx)("div",{children:o({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:n()(X,"space-full"),direction:"vertical",size:40,children:[(0,w.jsx)("div",{className:h,children:l}),(0,w.jsx)(a.Space,{className:n()("space-full",D),direction:"vertical",children:(0,w.jsx)(x,{name:"email",label:o({id:"EmailAccount"}),rule:"REQ EMAIL"})}),(0,w.jsx)(a.Space,{className:"space-full",direction:"vertical",children:(0,w.jsx)(j,{block:!0,size:"large",children:o({id:"NextStep"})})})]})]})}));var Y=t(89379);const J=["type","loginUrl","title","systemName"],$=C(e=>{const{formatMessage:s}=(0,S.useIntl)(),t=Object.assign({},{type:"email",title:s({id:"ResetLoginPassword"}),loginUrl:""},e),{type:o,loginUrl:n,title:l,systemName:i}=t,r=(0,N.A)(t,J),c=v()();return(0,w.jsx)(K,(0,Y.A)((0,Y.A)({},r),{},{type:o,title:l,systemName:i,isReset:!0,header:(0,w.jsx)(a.Button,{className:_,type:"link",size:"large",icon:(0,w.jsx)(z.LeftOutlined,{}),onClick:()=>{c(n)},children:s({id:"HasAccountLogin2"})})}))});var ee=t(75894),se=t(34677),te=t.n(se);const ae=["storeKeys","domain"],oe=e=>{const{storeKeys:s,domain:t,loginUrl:a}=te()({},{storeKeys:{token:"X-User-Token"},loginUrl:"/account/login"},e);return()=>{Object.values(s).forEach(e=>{(0,ee.removeToken)(e,t)}),window.location.href="".concat(a,"?referer=").concat(encodeURIComponent(window.location.href))}},ne=e=>{let{storeKeys:s,domain:t}=e,o=(0,N.A)(e,ae);const n=oe({storeKeys:s,domain:t});return(0,w.jsx)(a.Button,(0,Y.A)((0,Y.A)({},o),{},{onClick:n}))};var le=t(94679),ie=t(64948);const re=(0,b.createContext)("/"),{Provider:ce}=re,de=()=>(0,b.useContext)(re);var me=t(80700),ue=t.n(me);const ge=["isTenant"],pe=C((0,F.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:s,children:t}=e;const[o]=s,{formatMessage:n}=(0,S.useIntl)(),{apis:l,ajax:i}=o(),{apis:r,targetUrl:c,storeKeys:d,domain:m,afterLogin:u}=de(),g=Object.assign({},l.account,r),{message:p}=a.App.useApp(),h=(0,le.useNavigate)(),[_]=(0,le.useSearchParams)(),j=_.get("referer");return t({login:async e=>{let{isTenant:s}=e,t=(0,N.A)(e,ge);const{data:a}=await i(te()({},g.login,{data:(0,Y.A)((0,Y.A)({},t),{},{password:ue()(t.password)})}));if(0!==a.code)return;if(10===a.data.status)return p.warning(n({id:"AccountNotInitialized"})),void h("/account/modify/".concat(t.email||t.phone).concat(j?"?referer=".concat(j):""));if(11===a.data.status)return void p.warning(n({id:"AccountDisabled"}));if(12===a.data.status)return void p.warning(n({id:"AccountClosed"}));let o=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())),o=s.pathname+s.search}if(Object.keys(d).forEach(e=>{a.data[e]&&(0,ee.setToken)(d[e],a.data[e],m)}),u){if(!1===await u({referer:o}))return}p.success(n({id:"LoginSuccess"})),h(o)}})}));var he=t(68743);const _e="style_layout-row__WDBZP__5FVMF",je="style_layout-inner__3pgxa__5FVMF",xe="style_layout-inner-wrapper__XoEQK__5FVMF",fe="style_language__pn8jJ__5FVMF",we=()=>{const{loginTitle:e,systemName:s,systemLogo:t,loginLeftInner:a,registerUrl:o,forgetUrl:n,accountType:l,afterLogin:i,allowLanguageSwitch:r}=de();return(0,w.jsxs)(y,{title:s,logo:t,leftInner:a,children:[(0,w.jsx)(pe,{children:t=>{let{login:a}=t;return(0,w.jsx)(E,{title:e,systemName:s,registerUrl:o,forgetUrl:n,afterLogin:i,onSubmit:async e=>{await a(Object.assign({},e,{type:l}))}})}}),r&&(0,w.jsx)(he.A,{colorful:!1,className:fe})]})},ye=C((0,F.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:s}=e;const[t]=s,{formatMessage:o}=(0,S.useIntl)(),{apis:n,ajax:l}=t(),{apis:i,accountType:r,loginUrl:c,registerTitle:d,loginLeftInner:m,systemName:u}=de(),g=v()(),{message:p}=a.App.useApp(),h=Object.assign({},n.account,i);return(0,w.jsx)(Q,{type:r,loginUrl:c,title:d,systemName:u,validateCode:async e=>{const{data:s}=await l(te()({},h.validateCode,{data:e}));return 0!==s.code?{result:!1,errMsg:s.msg||o({id:"CodeValidateIncorrect"},{s:"%s"})}:{result:!0}},topBanner:m,sendVerificationCode:async e=>{let{type:s,data:t}=e;const{data:a}=await l(te()({},"phone"===s?h.sendSMSCode:h.sendEmailCode,{data:{[s]:t}}));if(0!==a.code)return!1;p.success(o({id:"SendCodeSuccess"},{s:o("phone"===s?{id:"PhoneCode"}:{id:"Email"})}))},onSubmit:async e=>{const s=ue()(e.password),{data:t}=await l(te()({},h.register,{data:{type:r,email:e.email,phone:e.phone,password:s,code:e.code}}));0===t.code&&(p.success(o({id:"RegisterSuccess"})),g(c))}})})),Ne=(0,F.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:s}=e;const[t]=s,{apis:a,ajax:o}=t(),{apis:n,loginUrl:l,loginLeftInner:i,systemName:r}=de(),c=te()({},a.account,n),d=new URLSearchParams(window.location.search).get("referer");return(0,w.jsx)(y,{leftInner:i,title:r,children:(0,w.jsx)(Z,{loginUrl:l,onSubmit:(e,s)=>o(te()({},c.forgetPwd,{data:{email:e.email,referer:d}})).then(t=>{let{data:a}=t;0===a.code&&s&&s(e.email)})})})});var Pe=t(87558);const be=()=>{const{loginUrl:e}=de();return(0,w.jsx)(le.Navigate,{to:e})},Re=(0,Pe.createWithFetch)({error:()=>(0,w.jsx)(be,{})})(e=>{let{data:s,children:t}=e;return t(s)}),ve=C((0,F.createWithRemoteLoader)({modules:["components-core:Global@usePreset"]})(e=>{let{remoteModules:s}=e;const[t]=s,{apis:o,ajax:n}=t(),{apis:l,accountType:i,loginUrl:r,loginLeftInner:c,systemName:d}=de(),m=(0,le.useNavigate)(),[u]=(0,le.useSearchParams)(),g=u.get("referer"),{message:p}=a.App.useApp(),{formatMessage:h}=(0,S.useIntl)(),_=Object.assign({},o.account,l),{token:j}=(0,le.useParams)();return(0,w.jsx)(Re,(0,Y.A)((0,Y.A)({},te()({},_.parseResetToken,{data:{token:decodeURIComponent(j)}})),{},{children:e=>{let{name:s}=e;return(0,w.jsx)($,{loginUrl:r,type:i,account:s,topBanner:c,systemName:d,onSubmit:async e=>{const s=ue()(e.newPwd),{data:t}=await n(te()({},_.resetPassword,{data:{token:j,email:e.email,newPwd:s,confirmPwd:s}}));0===t.code&&(p.success(h({id:"ResetPasswordSuccess"})),m("".concat(r).concat(g?"?referer=".concat(encodeURIComponent(g)):"")))}})}}))})),Fe=C((0,F.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:s}=e;const[t]=s,{apis:o,ajax:n}=t(),{apis:l,loginUrl:i,accountType:r,loginLeftInner:c,systemName:d}=de(),{account:m}=(0,le.useParams)(),[u]=(0,le.useSearchParams)(),g=u.get("referer"),p=v()(),{message:h}=a.App.useApp(),{formatMessage:_}=(0,S.useIntl)(),j=Object.assign({},o.account,l);return(0,w.jsx)(K,{type:r,account:m,topBanner:c,systemName:d,onSubmit:async e=>{const s=ue()(e.newPwd),{data:t}=await n(te()({},j.modifyPassword,{data:{email:e.email,oldPwd:ue()(e.oldPwd),newPwd:s,confirmPwd:s}}));0===t.code&&(h.success(_({id:"ResetPasswordSuccess"})),p("".concat(i).concat(g?"?referer=".concat(encodeURIComponent(g)):"")))}})})),Se=["className"],Ae=["baseUrl"],Le=(0,w.jsx)(ie.default,{}),Ce=()=>(0,w.jsx)("div",{className:n()(_e,"account-layout"),children:(0,w.jsx)("div",{className:je,children:(0,w.jsx)("div",{className:xe,children:(0,w.jsx)(le.Outlet,{})})})}),Me=C(e=>{let{className:s}=e,t=(0,N.A)(e,Se);const{formatMessage:a}=(0,S.useIntl)(),o=te()({},{baseUrl:"",accountType:"email",systemLogo:null,allowLanguageSwitch:!0,systemName:a({id:"SystemName"}),loginTitle:a({id:"Login"}),registerTitle:a({id:"Register"}),loginLeftInner:Le,loginPath:"login",registerPath:"register",forgetPath:"forget",resetPasswordPath:"reset-password",modifyPath:"modify",isTenant:!1,storeKeys:{token:"X-User-Token"}},t),{baseUrl:n}=o,l=(0,N.A)(o,Ae);return(0,w.jsx)(ce,{value:(0,Y.A)((0,Y.A)({baseUrl:n},l),{},{loginUrl:"".concat(n,"/").concat(l.loginPath),registerUrl:"".concat(n,"/").concat(l.registerPath),forgetUrl:"".concat(n,"/").concat(l.forgetPath)}),children:(0,w.jsx)("div",{className:s,children:(0,w.jsx)(le.Routes,{children:(0,w.jsxs)(le.Route,{element:(0,w.jsx)(Ce,{}),children:[(0,w.jsx)(le.Route,{index:!0,element:(0,w.jsx)(le.Navigate,{to:l.loginUrl})}),(0,w.jsx)(le.Route,{path:l.loginPath,element:(0,w.jsx)(we,{})}),(0,w.jsx)(le.Route,{path:l.registerPath,element:(0,w.jsx)(ye,{})}),(0,w.jsx)(le.Route,{path:l.forgetPath,element:(0,w.jsx)(Ne,{})}),(0,w.jsx)(le.Route,{path:"".concat(l.resetPasswordPath,"/:token"),element:(0,w.jsx)(ve,{})}),(0,w.jsx)(le.Route,{path:"".concat(l.modifyPath,"/:account"),element:(0,w.jsx)(Fe,{})})]})})})})})}}]);
2
- //# sourceMappingURL=8406.1826f94e.chunk.js.map
1
+ "use strict";(self.webpackChunk_kne_components_components_admin=self.webpackChunk_kne_components_components_admin||[]).push([[8406],{35795(e,s,t){t.r(s),t.d(s,{default:()=>j});var a=t(80045);const o="style_language__jjP0+__epRkD",n="style_is-colorful__DC7fI__epRkD",l="style_icon__pQadO__epRkD",i="style_item__uDOaw__epRkD",r="style_is-active__dYoEr__epRkD";var c=t(13050),d=t(35028),m=t.n(d),u=t(55199),p=t(98139),g=t.n(p),h=t(70579);const _=["remoteModules","className","list","colorful"],j=(0,c.createWithRemoteLoader)({modules:["components-core:Icon"]})(e=>{let{remoteModules:s,className:t,list:c=[{label:"\u4e2d\u6587",value:"zh-CN"},{label:"EN",value:"en-US"}],colorful:d=!0}=e,p=(0,a.A)(e,_);const[j,x]=m()(Object.assign({},{defaultLocale:"zh-CN"},p),{defaultValue:"defaultLocale",value:"locale",onChange:"onChange"}),[f]=s;return(0,h.jsxs)("div",{className:g()(t,"language",o,{[n]:d}),onClick:e=>{e.stopPropagation()},children:[(0,h.jsx)(f,{className:l,type:"icon-yuyanqiehuan"}),(0,h.jsx)(u.Space,{split:(0,h.jsx)(u.Divider,{type:"vertical"}),size:0,children:c.map(e=>{let{label:s,value:t}=e;return(0,h.jsx)(u.Button,{type:"text",className:g()("btn-no-padding",i,{[r]:t===j}),onClick:()=>{x(t)},children:s},t)})})]})})},64948(e,s,t){t.r(s),t.d(s,{default:()=>p});var a=t(89379),o=t(80045),n=t(87558),l=t.n(n),i=t(98139),r=t.n(i);const c="style_login-illustration__d3Hvd__epRkD";var d=t(70579);const m=["type","className"],u={hello:()=>Promise.all([t.e(3050),t.e(5084)]).then(t.bind(t,75084)).then(e=>e.default)},p=e=>{let{type:s,className:t}=e,n=(0,o.A)(e,m);return(0,d.jsx)("div",{className:r()(c,t),children:(0,d.jsx)(l(),{loader:e=>{let{params:s}=e;return(u[s.type]||u.hello)()},params:{type:s},render:e=>{let{data:s}=e;return(0,d.jsx)(s,(0,a.A)({},n))}})})}},68743(e,s,t){t.d(s,{A:()=>p});var a=t(89379),o=t(80045),n=t(13050),l=t(35795),i=t(74416),r=t(96418),c=t.n(r),d=t(73884),m=t(70579);const u=["remoteModules"],p=(0,n.createWithRemoteLoader)({modules:["components-core:Global@useGlobalValue","components-core:Global@useGlobalContext"]})(e=>{let{remoteModules:s}=e,t=(0,o.A)(e,u);const[n,r]=s,p=n("locale"),{setGlobal:g}=r("locale"),h=c()(()=>{const e=i.A.getItem("X-User-Locale");["en-US","zh-CN"].indexOf(e)>-1&&e!==p&&g(e)});return(0,d.useEffect)(()=>{h()},[h]),(0,m.jsx)(l.default,(0,a.A)((0,a.A)({},t),{},{locale:p,onChange:e=>{g(e),i.A.setItem("X-User-Locale",e)}}))})},98406(e,s,t){t.r(s),t.d(s,{ForgetByEmail:()=>Z,Login:()=>I,LoginOuterContainer:()=>y,Logout:()=>ne,Modify:()=>G,Register:()=>W,ResetPassword:()=>$,default:()=>Ee,useLogout:()=>oe});var a=t(55199),o=t(98139),n=t.n(o);const l="style_out-left__wOmRS__epRkD",i="style_out-right__29XpV__epRkD",r="style_out-right-inner__DZjbq__epRkD",c="style_container-left-content__2FtGT__epRkD",d="style_container-left-logo__fR8Ed__epRkD",m="style_container-left-title__vg7KF__epRkD",u="style_container-left-inner__AZyjW__epRkD",p="style_out-container__iqnkT__epRkD",g="style_top-banner__j8+SV__epRkD",h="style_title__Pn7Uw__epRkD",_="style_back-link__TepOq__epRkD",j="style_form-inner__AnfOK__epRkD",x="style_top-banner-inner__-62z0__epRkD",f="style_out-inner__olZqh__epRkD";var w=t(70579);const y=e=>{let{className:s,title:t,logo:o,leftInner:h,children:_}=e;return(0,w.jsxs)("div",{className:n()(s,p,"account-box"),children:[(0,w.jsxs)("div",{className:g,children:[(0,w.jsx)("div",{className:x,children:t}),h]}),(0,w.jsx)("div",{className:f,children:(0,w.jsxs)(a.Row,{wrap:!1,children:[(0,w.jsxs)(a.Col,{className:n()(l,"container-left"),children:[(0,w.jsxs)(a.Flex,{gap:16,align:"center",className:n()(c,"container-left-content"),children:[o&&(0,w.jsx)("img",{className:n()(d,"container-left-logo"),src:o,alt:"logo"}),t&&(0,w.jsx)("div",{className:n()(m,"container-left-title"),children:t})]}),h&&(0,w.jsx)("div",{className:n()(u,"container-left-inner"),children:h})]}),(0,w.jsx)(a.Col,{className:n()(i,"container-right"),flex:1,children:(0,w.jsx)("div",{className:n()(r,"container-right-inner"),children:_})})]})})]})};var R=t(80045);const N="style_forget-button__4NY6I__epRkD";var P=t(73884),b=t(35950),k=t.n(b),v=t(13050),S=t(52526);const A={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"},L={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,S.createWithIntlProvider)({defaultLocale:"zh-CN",messages:{"zh-CN":A,"en-US":L},namespace:"components-admin:Account"}),E=["remoteModules"],U="LOGIN_REMEMBER_ACCOUNT",I=C((0,v.createWithRemoteLoader)({modules:["component-core:FormInfo"]})(e=>{let{remoteModules:s}=e,t=(0,R.A)(e,E);const{formatMessage:o}=(0,S.useIntl)(),{title:n,registerUrl:l,forgetUrl:i,type:r,onSubmit:c}=Object.assign({},{title:o({id:"Login"}),type:"email",registerUrl:"",forgetUrl:""},t),[d,m]=(0,P.useState)(!1),u=k()(),[p]=s,{Form:g,SubmitButton:_,fields:j}=p,{Input:x}=j;return(0,w.jsxs)(g,{type:"inner",size:"large",enterSubmit:!0,onSubmit:e=>{d?window.localStorage.setItem(U,e[r]):window.localStorage.removeItem(U),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:h,children:n}),(0,w.jsxs)("div",{children:["email"===r&&(0,w.jsx)(x,{name:"email",label:o({id:"Email"}),rule:"REQ EMAIL"}),"phone"===r&&(0,w.jsx)(x,{name:"phone",label:o({id:"Phone"}),rule:"REQ TEL"}),(0,w.jsx)(x.Password,{type:"password",name:"password",label:o({id:"Password"}),rule:"REQ LEN-6-50"})]})]}),(0,w.jsxs)(a.Space,{className:"space-full",size:10,direction:"vertical",children:[(0,w.jsx)(_,{block:!0,size:"large",children:o({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=>{m(e.target.checked)},children:o({id:"RememberAccount"})})}),(0,w.jsx)(a.Col,{children:(0,w.jsxs)(a.Flex,{gap:8,children:[l&&(0,w.jsx)(a.Button,{className:N,type:"link",size:"small",onClick:()=>{u(l)},children:o({id:"RegisterBtn"})}),i&&(0,w.jsx)(a.Button,{className:N,type:"link",size:"small",onClick:()=>{u(i)},children:o({id:"ForgetPassword"})})]})})]})]})]})}));var D=t(79123),M=t.n(D),O=t(33097),z=t.n(O),T=t(28488);const B="style_code-field__NvD9i__epRkD",F="style_get-code__j4NF-__epRkD",V=["remoteModules"],W=C((0,v.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:s}=e,t=(0,R.A)(e,V);const{formatMessage:o}=(0,S.useIntl)(),{onSubmit:l,title:i,systemName:r,type:c,sendVerificationCode:d,loginUrl:m,topBanner:u,className:y}=Object.assign({},{title:o({id:"Register"}),type:"email",loginUrl:"",sendVerificationCode:()=>{console.warn("\u4f20\u5165sendVerificationCode\u5c5e\u6027\u53d1\u9001\u9a8c\u8bc1\u7801")}},t),N=(0,P.useRef)(null),[b]=s,{Form:v,SubmitButton:A,fields:L}=b,{Input:C,PhoneNumber:E}=L,U=k()();return(0,w.jsxs)("div",{className:n()(p,y),children:[u&&(0,w.jsxs)("div",{className:g,children:[(0,w.jsx)("div",{className:x,children:r}),u]}),(0,w.jsx)("div",{className:f,children:(0,w.jsxs)(v,{type:"inner",size:"large",ref:N,onSubmit:l,children:[(0,w.jsx)(a.Button,{className:_,type:"link",size:"large",icon:(0,w.jsx)(T.LeftOutlined,{}),onClick:()=>{U(m)},children:o({id:"HasAccountLogin"})}),(0,w.jsxs)(a.Space,{className:n()(j),size:38,direction:"vertical",children:[(0,w.jsx)("div",{className:h,children:i}),(0,w.jsxs)("div",{children:["phone"===c&&(0,w.jsx)(E,{name:"phone",label:o({id:"PhoneCode"}),rule:"REQ",codeType:"code",realtime:!0,interceptor:"phone-number-string"}),"email"===c&&(0,w.jsx)(C,{name:"email",label:o({id:"Email"}),rule:"REQ EMAIL",realtime:!0}),(0,w.jsxs)(a.Row,{align:"bottom",justify:"space-between",children:[(0,w.jsx)(a.Col,{className:B,children:(0,w.jsx)(C,{name:"code",label:o({id:"VerificationCode"}),rule:"REQ LEN-6 VALIDATE_CODE"})}),(0,w.jsx)(a.Col,{children:(0,w.jsx)(M(),{className:F,type:"link",target:{name:c},onClick:()=>d({type:c,data:z()(N.current.data,c)}),children:o({id:"SendCode"})})})]}),(0,w.jsx)(C.Password,{name:"password",label:o({id:"Password"}),rule:"REQ LEN-6-50"}),(0,w.jsx)(C.Password,{name:"repeatPwd",label:o({id:"RepeatPassword"}),rule:"REQ LEN-6-50 REPEAT-password"})]}),(0,w.jsx)(A,{block:!0,size:"large",children:o({id:"Register"})})]})]})})]})})),Q=["remoteModules"],G=C((0,v.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:s}=e,t=(0,R.A)(e,Q);const{formatMessage:o}=(0,S.useIntl)(),{className:l,title:i,systemName:r,isReset:c,account:d,onSubmit:m,type:u,header:_,topBanner:y}=Object.assign({},{title:o({id:"Modify"}),type:"email",header:null},t),[N]=s,{Form:P,SubmitButton:b,fields:k}=N,{Input:v}=k;return(0,w.jsxs)("div",{className:n()(p,l),children:[y&&(0,w.jsxs)("div",{className:g,children:[(0,w.jsx)("div",{className:x,children:r}),y]}),(0,w.jsxs)("div",{className:f,children:[_,(0,w.jsx)(P,{type:"inner",size:"large",onSubmit:m,children:(0,w.jsxs)(a.Space,{className:n()(j),size:38,direction:"vertical",children:[(0,w.jsx)("div",{className:h,children:i}),(0,w.jsxs)("div",{children:["email"===u&&(0,w.jsx)(v,{name:"email",label:o({id:"EmailAccount"}),disabled:!0,defaultValue:d&&decodeURIComponent(d)}),"phone"===u&&(0,w.jsx)(v,{name:"phone",label:o({id:"PhoneAccount"}),disabled:!0,defaultValue:d&&decodeURIComponent(d)}),c?null:(0,w.jsx)(v.Password,{name:"oldPwd",label:o({id:"OldPassword"}),rule:"REQ LEN-6-50"}),(0,w.jsx)(v.Password,{name:"newPwd",label:o({id:"NewPassword"}),rule:"REQ LEN-6-50"}),(0,w.jsx)(v.Password,{name:"repeatNewPwd",label:o({id:"RepeatNewPassword"}),rule:"REQ LEN-6-50 REPEAT-newPwd"})]}),(0,w.jsx)(b,{block:!0,size:"large",children:o({id:"Submit"})})]})})]})]})})),K="style_forget-input__psj0u__epRkD",H="style_success-info__zKcsw__epRkD",X="style_main__GAYFL__epRkD",q=["remoteModules"],Z=C((0,v.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:s}=e,t=(0,R.A)(e,q);const{formatMessage:o}=(0,S.useIntl)(),{title:l,loginUrl:i,onSubmit:r}=Object.assign({},{title:o({id:"Forget"}),loginUrl:""},t),[c,d]=(0,P.useState)(""),m=k()(),[u]=s,{Form:p,fields:g,SubmitButton:j}=u,{Input:x}=g,f=(0,w.jsx)(a.Button,{className:_,type:"link",size:"large",icon:(0,w.jsx)(T.LeftOutlined,{}),onClick:()=>{m(i)},children:o({id:"BackToLogin"})});return c?(0,w.jsxs)(w.Fragment,{children:[f,(0,w.jsxs)(a.Space,{className:n()(X,"space-full"),direction:"vertical",size:40,children:[(0,w.jsx)("div",{className:h,children:l}),(0,w.jsxs)("div",{className:H,children:[(0,w.jsx)("div",{children:o({id:"ResetLinkSent"},{s:c})}),(0,w.jsx)("div",{children:o({id:"ResetLinkExpire"})})]})]})]}):(0,w.jsxs)(p,{type:"inner",size:"large",onSubmit:e=>{r&&r(e,()=>{d(e.email)})},children:[f,(0,w.jsxs)(a.Space,{className:n()(X,"space-full"),direction:"vertical",size:40,children:[(0,w.jsx)("div",{className:h,children:l}),(0,w.jsx)(a.Space,{className:n()("space-full",K),direction:"vertical",children:(0,w.jsx)(x,{name:"email",label:o({id:"EmailAccount"}),rule:"REQ EMAIL"})}),(0,w.jsx)(a.Space,{className:"space-full",direction:"vertical",children:(0,w.jsx)(j,{block:!0,size:"large",children:o({id:"NextStep"})})})]})]})}));var Y=t(89379);const J=["type","loginUrl","title","systemName"],$=C(e=>{const{formatMessage:s}=(0,S.useIntl)(),t=Object.assign({},{type:"email",title:s({id:"ResetLoginPassword"}),loginUrl:""},e),{type:o,loginUrl:n,title:l,systemName:i}=t,r=(0,R.A)(t,J),c=k()();return(0,w.jsx)(G,(0,Y.A)((0,Y.A)({},r),{},{type:o,title:l,systemName:i,isReset:!0,header:(0,w.jsx)(a.Button,{className:_,type:"link",size:"large",icon:(0,w.jsx)(T.LeftOutlined,{}),onClick:()=>{c(n)},children:s({id:"HasAccountLogin2"})})}))});var ee=t(75894),se=t(34677),te=t.n(se);const ae=["storeKeys","domain"],oe=e=>{const{storeKeys:s,domain:t,loginUrl:a}=te()({},{storeKeys:{token:"X-User-Token"},loginUrl:"/account/login"},e);return()=>{Object.values(s).forEach(e=>{(0,ee.removeToken)(e,t)}),window.location.href="".concat(a,"?referer=").concat(encodeURIComponent(window.location.href))}},ne=e=>{let{storeKeys:s,domain:t}=e,o=(0,R.A)(e,ae);const n=oe({storeKeys:s,domain:t});return(0,w.jsx)(a.Button,(0,Y.A)((0,Y.A)({},o),{},{onClick:n}))};var le=t(94679),ie=t(64948);const re=(0,P.createContext)("/"),{Provider:ce}=re,de=()=>(0,P.useContext)(re);var me=t(80700),ue=t.n(me);const pe=["isTenant"],ge=C((0,v.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:s,children:t}=e;const[o]=s,{formatMessage:n}=(0,S.useIntl)(),{apis:l,ajax:i}=o(),{apis:r,targetUrl:c,storeKeys:d,domain:m,afterLogin:u}=de(),p=Object.assign({},l.account,r),{message:g}=a.App.useApp(),h=(0,le.useNavigate)(),[_]=(0,le.useSearchParams)(),j=_.get("referer");return t({login:async e=>{let{isTenant:s}=e,t=(0,R.A)(e,pe);const{data:a}=await i(te()({},p.login,{data:(0,Y.A)((0,Y.A)({},t),{},{password:ue()(t.password)})}));if(0!==a.code)return;if(10===a.data.status)return g.warning(n({id:"AccountNotInitialized"})),void h("/account/modify/".concat(t.email||t.phone).concat(j?"?referer=".concat(j):""));if(11===a.data.status)return void g.warning(n({id:"AccountDisabled"}));if(12===a.data.status)return void g.warning(n({id:"AccountClosed"}));let o=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())),o=s.pathname+s.search}if(Object.keys(d).forEach(e=>{a.data[e]&&(0,ee.setToken)(d[e],a.data[e],m)}),u){if(!1===await u({referer:o}))return}g.success(n({id:"LoginSuccess"})),h(o)}})}));var he=t(68743);const _e="style_layout-row__WDBZP__epRkD",je="style_layout-inner__3pgxa__epRkD",xe="style_layout-inner-wrapper__XoEQK__epRkD",fe="style_language__pn8jJ__epRkD",we=()=>{const{loginTitle:e,systemName:s,systemLogo:t,loginLeftInner:a,registerUrl:o,forgetUrl:n,accountType:l,afterLogin:i,allowLanguageSwitch:r}=de();return(0,w.jsxs)(y,{title:s,logo:t,leftInner:a,children:[(0,w.jsx)(ge,{children:t=>{let{login:a}=t;return(0,w.jsx)(I,{title:e,systemName:s,registerUrl:o,forgetUrl:n,afterLogin:i,onSubmit:async e=>{await a(Object.assign({},e,{type:l}))}})}}),r&&(0,w.jsx)(he.A,{colorful:!1,className:fe})]})},ye=C((0,v.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:s}=e;const[t]=s,{formatMessage:o}=(0,S.useIntl)(),{apis:n,ajax:l}=t(),{apis:i,accountType:r,loginUrl:c,registerTitle:d,loginLeftInner:m,systemName:u}=de(),p=k()(),{message:g}=a.App.useApp(),h=Object.assign({},n.account,i);return(0,w.jsx)(W,{type:r,loginUrl:c,title:d,systemName:u,validateCode:async e=>{const{data:s}=await l(te()({},h.validateCode,{data:e}));return 0!==s.code?{result:!1,errMsg:s.msg||o({id:"CodeValidateIncorrect"},{s:"%s"})}:{result:!0}},topBanner:m,sendVerificationCode:async e=>{let{type:s,data:t}=e;const{data:a}=await l(te()({},"phone"===s?h.sendSMSCode:h.sendEmailCode,{data:{[s]:t}}));if(0!==a.code)return!1;g.success(o({id:"SendCodeSuccess"},{s:o("phone"===s?{id:"PhoneCode"}:{id:"Email"})}))},onSubmit:async e=>{const s=ue()(e.password),{data:t}=await l(te()({},h.register,{data:{type:r,email:e.email,phone:e.phone,password:s,code:e.code}}));0===t.code&&(g.success(o({id:"RegisterSuccess"})),p(c))}})})),Re=(0,v.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:s}=e;const[t]=s,{apis:a,ajax:o}=t(),{apis:n,loginUrl:l,loginLeftInner:i,systemName:r}=de(),c=te()({},a.account,n),d=new URLSearchParams(window.location.search).get("referer");return(0,w.jsx)(y,{leftInner:i,title:r,children:(0,w.jsx)(Z,{loginUrl:l,onSubmit:(e,s)=>o(te()({},c.forgetPwd,{data:{email:e.email,referer:d}})).then(t=>{let{data:a}=t;0===a.code&&s&&s(e.email)})})})});var Ne=t(87558);const Pe=()=>{const{loginUrl:e}=de();return(0,w.jsx)(le.Navigate,{to:e})},be=(0,Ne.createWithFetch)({error:()=>(0,w.jsx)(Pe,{})})(e=>{let{data:s,children:t}=e;return t(s)}),ke=C((0,v.createWithRemoteLoader)({modules:["components-core:Global@usePreset"]})(e=>{let{remoteModules:s}=e;const[t]=s,{apis:o,ajax:n}=t(),{apis:l,accountType:i,loginUrl:r,loginLeftInner:c,systemName:d}=de(),m=(0,le.useNavigate)(),[u]=(0,le.useSearchParams)(),p=u.get("referer"),{message:g}=a.App.useApp(),{formatMessage:h}=(0,S.useIntl)(),_=Object.assign({},o.account,l),{token:j}=(0,le.useParams)();return(0,w.jsx)(be,(0,Y.A)((0,Y.A)({},te()({},_.parseResetToken,{data:{token:decodeURIComponent(j)}})),{},{children:e=>{let{name:s}=e;return(0,w.jsx)($,{loginUrl:r,type:i,account:s,topBanner:c,systemName:d,onSubmit:async e=>{const s=ue()(e.newPwd),{data:t}=await n(te()({},_.resetPassword,{data:{token:j,email:e.email,newPwd:s,confirmPwd:s}}));0===t.code&&(g.success(h({id:"ResetPasswordSuccess"})),m("".concat(r).concat(p?"?referer=".concat(encodeURIComponent(p)):"")))}})}}))})),ve=C((0,v.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:s}=e;const[t]=s,{apis:o,ajax:n}=t(),{apis:l,loginUrl:i,accountType:r,loginLeftInner:c,systemName:d}=de(),{account:m}=(0,le.useParams)(),[u]=(0,le.useSearchParams)(),p=u.get("referer"),g=k()(),{message:h}=a.App.useApp(),{formatMessage:_}=(0,S.useIntl)(),j=Object.assign({},o.account,l);return(0,w.jsx)(G,{type:r,account:m,topBanner:c,systemName:d,onSubmit:async e=>{const s=ue()(e.newPwd),{data:t}=await n(te()({},j.modifyPassword,{data:{email:e.email,oldPwd:ue()(e.oldPwd),newPwd:s,confirmPwd:s}}));0===t.code&&(h.success(_({id:"ResetPasswordSuccess"})),g("".concat(i).concat(p?"?referer=".concat(encodeURIComponent(p)):"")))}})})),Se=["className"],Ae=["baseUrl"],Le=(0,w.jsx)(ie.default,{}),Ce=()=>(0,w.jsx)("div",{className:n()(_e,"account-layout"),children:(0,w.jsx)("div",{className:je,children:(0,w.jsx)("div",{className:xe,children:(0,w.jsx)(le.Outlet,{})})})}),Ee=C(e=>{let{className:s}=e,t=(0,R.A)(e,Se);const{formatMessage:a}=(0,S.useIntl)(),o=te()({},{baseUrl:"",accountType:"email",systemLogo:null,allowLanguageSwitch:!0,systemName:a({id:"SystemName"}),loginTitle:a({id:"Login"}),registerTitle:a({id:"Register"}),loginLeftInner:Le,loginPath:"login",registerPath:"register",forgetPath:"forget",resetPasswordPath:"reset-password",modifyPath:"modify",isTenant:!1,storeKeys:{token:"X-User-Token"}},t),{baseUrl:n}=o,l=(0,R.A)(o,Ae);return(0,w.jsx)(ce,{value:(0,Y.A)((0,Y.A)({baseUrl:n},l),{},{loginUrl:"".concat(n,"/").concat(l.loginPath),registerUrl:"".concat(n,"/").concat(l.registerPath),forgetUrl:"".concat(n,"/").concat(l.forgetPath)}),children:(0,w.jsx)("div",{className:s,children:(0,w.jsx)(le.Routes,{children:(0,w.jsxs)(le.Route,{element:(0,w.jsx)(Ce,{}),children:[(0,w.jsx)(le.Route,{index:!0,element:(0,w.jsx)(le.Navigate,{to:l.loginUrl})}),(0,w.jsx)(le.Route,{path:l.loginPath,element:(0,w.jsx)(we,{})}),(0,w.jsx)(le.Route,{path:l.registerPath,element:(0,w.jsx)(ye,{})}),(0,w.jsx)(le.Route,{path:l.forgetPath,element:(0,w.jsx)(Re,{})}),(0,w.jsx)(le.Route,{path:"".concat(l.resetPasswordPath,"/:token"),element:(0,w.jsx)(ke,{})}),(0,w.jsx)(le.Route,{path:"".concat(l.modifyPath,"/:account"),element:(0,w.jsx)(ve,{})})]})})})})})}}]);
2
+ //# sourceMappingURL=8406.73a96930.chunk.js.map