@kne-components/components-admin 1.1.7 → 1.1.9
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.
- package/build/asset-manifest.json +53 -48
- package/build/index.html +1 -1
- package/build/remoteEntry.js +1 -1
- package/build/remoteEntry.js.map +1 -1
- package/build/static/css/1351.f5c6fb42.chunk.css +2 -0
- package/build/static/css/1351.f5c6fb42.chunk.css.map +1 -0
- package/build/static/css/1420.b41138b2.chunk.css +2 -0
- package/build/static/css/1420.b41138b2.chunk.css.map +1 -0
- package/build/static/css/1668.b711773b.chunk.css +2 -0
- package/build/static/css/{5582.ff6e15f9.chunk.css.map → 1668.b711773b.chunk.css.map} +1 -1
- package/build/static/css/1788.3fa5f277.chunk.css +2 -0
- package/build/static/css/1788.3fa5f277.chunk.css.map +1 -0
- package/build/static/css/2681.2ac46f87.chunk.css +12 -0
- package/build/static/css/2681.2ac46f87.chunk.css.map +1 -0
- package/build/static/css/4948.09f98316.chunk.css +2 -0
- package/build/static/css/4948.09f98316.chunk.css.map +1 -0
- package/build/static/css/5084.21798bb1.chunk.css +2 -0
- package/build/static/css/5084.21798bb1.chunk.css.map +1 -0
- package/build/static/css/5582.b711773b.chunk.css +2 -0
- package/build/static/css/{1668.ff6e15f9.chunk.css.map → 5582.b711773b.chunk.css.map} +1 -1
- package/build/static/css/9654.11863da1.chunk.css +2 -0
- package/build/static/css/9654.11863da1.chunk.css.map +1 -0
- package/build/static/css/9849.fdb01f4b.chunk.css +2 -0
- package/build/static/css/{9849.ac82abc3.chunk.css.map → 9849.fdb01f4b.chunk.css.map} +1 -1
- package/build/static/js/{6973.76eda2a0.chunk.js → 1351.a84addb2.chunk.js} +3 -3
- package/build/static/js/{6973.76eda2a0.chunk.js.map → 1351.a84addb2.chunk.js.map} +1 -1
- package/build/static/js/1668.b9d6999d.chunk.js +3 -0
- package/build/static/js/{1668.962e2899.chunk.js.map → 1668.b9d6999d.chunk.js.map} +1 -1
- package/build/static/js/1730.2302faa8.chunk.js +2 -0
- package/build/static/js/1730.2302faa8.chunk.js.map +1 -0
- package/build/static/js/{7478.c4438431.chunk.js → 1788.a566b189.chunk.js} +3 -3
- package/build/static/js/{7478.c4438431.chunk.js.map → 1788.a566b189.chunk.js.map} +1 -1
- package/build/static/js/2681.dc34ca7a.chunk.js +2 -0
- package/build/static/js/{9007.1daf8fc9.chunk.js.map → 2681.dc34ca7a.chunk.js.map} +1 -1
- package/build/static/js/4836.ebc6ded5.chunk.js +2 -0
- package/build/static/js/4836.ebc6ded5.chunk.js.map +1 -0
- package/build/static/js/4948.dd06d47d.chunk.js +3 -0
- package/build/static/js/4948.dd06d47d.chunk.js.map +1 -0
- package/build/static/js/5084.7806dee5.chunk.js +2 -0
- package/build/static/js/5084.7806dee5.chunk.js.map +1 -0
- package/build/static/js/5582.1ba374b0.chunk.js +3 -0
- package/build/static/js/5582.1ba374b0.chunk.js.map +1 -0
- package/build/static/js/628.1c1e0e67.chunk.js +2 -0
- package/build/static/js/628.1c1e0e67.chunk.js.map +1 -0
- package/build/static/js/7011.9fac463e.chunk.js +2 -0
- package/build/static/js/7011.9fac463e.chunk.js.map +1 -0
- package/build/static/js/8247.d954c5ec.chunk.js +2 -0
- package/build/static/js/8247.d954c5ec.chunk.js.map +1 -0
- package/build/static/js/{9654.9946260a.chunk.js → 9654.dd3844dc.chunk.js} +2 -2
- package/build/static/js/{9654.9946260a.chunk.js.map → 9654.dd3844dc.chunk.js.map} +1 -1
- package/build/static/js/{9849.6abb2f20.chunk.js → 9849.e2c388db.chunk.js} +3 -3
- package/build/static/js/{9849.6abb2f20.chunk.js.map → 9849.e2c388db.chunk.js.map} +1 -1
- package/build/static/js/main.99f8fd85.js +2 -0
- package/build/static/js/main.99f8fd85.js.map +1 -0
- package/build/static/media/img.bdd50571673eff30a5e4.png +0 -0
- package/package.json +3 -2
- package/build/static/css/1420.d1b4cd0e.chunk.css +0 -2
- package/build/static/css/1420.d1b4cd0e.chunk.css.map +0 -1
- package/build/static/css/1668.ff6e15f9.chunk.css +0 -2
- package/build/static/css/4031.31d6cfe0.chunk.css +0 -0
- package/build/static/css/5582.ff6e15f9.chunk.css +0 -2
- package/build/static/css/6973.8f701260.chunk.css +0 -2
- package/build/static/css/6973.8f701260.chunk.css.map +0 -1
- package/build/static/css/7478.cbe59fcf.chunk.css +0 -2
- package/build/static/css/7478.cbe59fcf.chunk.css.map +0 -1
- package/build/static/css/9007.37147bbc.chunk.css +0 -12
- package/build/static/css/9007.37147bbc.chunk.css.map +0 -1
- package/build/static/css/9654.f87eb6fb.chunk.css +0 -2
- package/build/static/css/9654.f87eb6fb.chunk.css.map +0 -1
- package/build/static/css/9849.ac82abc3.chunk.css +0 -2
- package/build/static/js/1668.962e2899.chunk.js +0 -3
- package/build/static/js/1730.48ef9a0b.chunk.js +0 -2
- package/build/static/js/1730.48ef9a0b.chunk.js.map +0 -1
- package/build/static/js/4836.db45db70.chunk.js +0 -2
- package/build/static/js/4836.db45db70.chunk.js.map +0 -1
- package/build/static/js/4948.f3ddd982.chunk.js +0 -3
- package/build/static/js/4948.f3ddd982.chunk.js.map +0 -1
- package/build/static/js/5582.ed9934bf.chunk.js +0 -3
- package/build/static/js/5582.ed9934bf.chunk.js.map +0 -1
- package/build/static/js/628.aa6db351.chunk.js +0 -2
- package/build/static/js/628.aa6db351.chunk.js.map +0 -1
- package/build/static/js/7011.589a33e5.chunk.js +0 -2
- package/build/static/js/7011.589a33e5.chunk.js.map +0 -1
- package/build/static/js/8247.7d726716.chunk.js +0 -2
- package/build/static/js/8247.7d726716.chunk.js.map +0 -1
- package/build/static/js/9007.1daf8fc9.chunk.js +0 -2
- package/build/static/js/main.49b5c4ec.js +0 -2
- package/build/static/js/main.49b5c4ec.js.map +0 -1
- package/build/static/media/account_bg.ff605a86f9603c6b64ce.jpg +0 -0
- /package/build/static/js/{1668.962e2899.chunk.js.LICENSE.txt → 1351.a84addb2.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{4948.f3ddd982.chunk.js.LICENSE.txt → 1668.b9d6999d.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{5582.ed9934bf.chunk.js.LICENSE.txt → 1788.a566b189.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{6973.76eda2a0.chunk.js.LICENSE.txt → 4948.dd06d47d.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{7478.c4438431.chunk.js.LICENSE.txt → 5582.1ba374b0.chunk.js.LICENSE.txt} +0 -0
- /package/build/static/js/{9849.6abb2f20.chunk.js.LICENSE.txt → 9849.e2c388db.chunk.js.LICENSE.txt} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/5084.7806dee5.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__ztRFh\",\"animation\":\"style_animation__ZXNqR__ztRFh\"};","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":""}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/*! For license information please see 5582.1ba374b0.chunk.js.LICENSE.txt */
|
|
2
|
+
"use strict";(self.webpackChunk_kne_components_components_admin=self.webpackChunk_kne_components_components_admin||[]).push([[73,1668,5499,5582,9379],{20816(e,t,r){r.d(t,{A:()=>o});var n=r(82284);function o(e){var t=function(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}},41668(e,t,r){r.r(t),r.d(t,{RightOptions:()=>v,default:()=>h});var n=r(13050),o=r(55199),a=r(75894);const s="style_icon__KSAP2__ztRFh",l="style_content__akCc4__ztRFh",i="style_overlay__IH+0B__ztRFh",c="style_info__5uvqI__ztRFh",u="style_user-tool__CBaDm__ztRFh",d="style_divider__jcjqI__ztRFh",m="style_options-list__RHknC__ztRFh",p="style_options-list-item__IOziy__ztRFh",f="style_user-name__q7lY4__ztRFh",j="style_line__rOiNk__ztRFh";var b=r(70579);const h=(0,n.createWithRemoteLoader)({modules:["components-core:Image","components-core:Icon"]})(e=>{let{remoteModules:t,avatar:r,name:n,email:h,storeKeys:v={token:"X-User-Token"},domain:y,list:_,children:x=null}=e;const[g,O]=t;return(0,b.jsx)(o.Dropdown,{trigger:"click",rootClassName:i,popupRender:()=>(0,b.jsxs)(o.Space,{direction:"vertical",className:l,children:[(0,b.jsxs)(o.Space,{className:c,children:[(0,b.jsx)(g.Avatar,{id:r,size:48}),(0,b.jsxs)("div",{children:[(0,b.jsx)("div",{className:j,children:n||"\u672a\u547d\u540d"}),(0,b.jsx)("div",{className:j,children:h||"-"})]})]}),(0,b.jsx)(o.Divider,{className:d}),x,(0,b.jsxs)(o.List,{className:m,children:[_&&_.length>0&&_.map((e,t)=>(0,b.jsx)(o.List.Item,{className:p,onClick:e.onClick,children:(0,b.jsxs)(o.Flex,{gap:8,flex:1,children:[e.iconType&&(0,b.jsx)(O,{type:e.iconType}),(0,b.jsx)(o.Flex,{flex:1,children:e.label})]})},t)),(0,b.jsx)(o.List.Item,{className:p,onClick:()=>{Object.values(v).forEach(e=>{(0,a.removeToken)(e,y)}),window.location.reload()},children:(0,b.jsxs)(o.Flex,{gap:8,flex:1,children:[(0,b.jsx)(O,{type:"icon-tuichudenglu"}),(0,b.jsx)("span",{children:"\u9000\u51fa\u767b\u5f55"})]})})]})]}),arrow:!1,transitionName:"ant-slide-up",children:(0,b.jsxs)(o.Space,{className:u,children:[(0,b.jsx)(g.Avatar,{id:r,size:32}),(0,b.jsx)("div",{className:f,children:n||"\u672a\u547d\u540d"}),(0,b.jsx)(O,{className:s,type:"triangle-down",size:12})]})})}),v=(0,n.createWithRemoteLoader)({modules:["components-core:Global@GlobalValue"]})(e=>{let{remoteModules:t}=e;const[r]=t;return(0,b.jsx)(r,{globalKey:"userInfo",children:e=>{let{value:t}=e;if(!t)return null;const{userInfo:r,tenantUser:n,tenant:o}=t;return(0,b.jsx)(h,{avatar:n?n.avatar:r.avatar,name:n?n.name:r.nickname,email:n?n.email:r.email,tenant:o,orgName:n&&((null===n||void 0===n?void 0:n.tenantOrgs)||[]).map(e=>e.name).join(",")})}})})},51153(e,t,r){var n=r(73884),o=Symbol.for("react.element"),a=Symbol.for("react.fragment"),s=Object.prototype.hasOwnProperty,l=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,i={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,r){var n,a={},c=null,u=null;for(n in void 0!==r&&(c=""+r),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)s.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:c,ref:u,props:a,_owner:l.current}}t.Fragment=a,t.jsx=c,t.jsxs=c},64467(e,t,r){r.d(t,{A:()=>o});var n=r(20816);function o(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},70579(e,t,r){e.exports=r(51153)},80045(e,t,r){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 s=Object.getOwnPropertySymbols(e);for(o=0;o<s.length;o++)r=s[o],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(a[r]=e[r])}return a}},82284(e,t,r){function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{A:()=>n})},89379(e,t,r){r.d(t,{A:()=>a});var n=r(64467);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,n)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach(function(t){(0,n.A)(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}},95582(e,t,r){r.r(t),r.d(t,{AfterAdminUserLoginLayout:()=>U,AfterCustomUserLogin:()=>A,AfterCustomUserLoginLayout:()=>O,AfterUserLogin:()=>R,AfterUserLoginLayout:()=>I,BeforeLoginLayout:()=>L,CustomUserInfo:()=>m,MainLayout:()=>x,RightOptions:()=>g,SaveUserInfo:()=>P,SuperAdminInfo:()=>f,UserInfo:()=>p,UserInfoFormInner:()=>w});var n=r(80045),o=r(89379),a=r(13050),s=r(94679),l=r(87558),i=r.n(l),c=r(70579);const u=["remoteModules"],d=e=>{let{data:t,baseUrl:r,children:n}=e;const o=(0,s.useLocation)();return 1===t.userInfo.status?(0,c.jsx)(s.Navigate,{to:"".concat(r||"","/modify/").concat(encodeURIComponent(t.userInfo.email),"?referer=").concat(encodeURIComponent(o.pathname+o.search)),replace:!0}):n},m=(0,a.createWithRemoteLoader)({modules:["components-core:Global@SetGlobal"]})(e=>{let{remoteModules:t,cache:r,baseUrl:n,children:a,api:s}=e;const[l]=t;return(0,c.jsx)(i(),(0,o.A)((0,o.A)({cache:r},Object.assign({},s)),{},{render:e=>{let{data:t,reload:r}=e;return(0,c.jsx)(d,{baseUrl:n,data:t,children:(0,c.jsx)(l,{globalKey:"userInfo",value:{value:t.userInfo,reload:r},needReady:!0,children:a})})}}))}),p=(0,a.createWithRemoteLoader)({modules:["components-core:Global@usePreset"]})(e=>{let{remoteModules:t}=e,r=(0,n.A)(e,u);const[a]=t,{apis:s}=a();return(0,c.jsx)(m,(0,o.A)((0,o.A)({},r),{},{api:s.user.getUserInfo,cache:"user-info"}))}),f=(0,a.createWithRemoteLoader)({modules:["components-core:Global@SetGlobal","components-core:Global@usePreset"]})(e=>{let{remoteModules:t,children:r}=e;const[n,a]=t,{apis:s}=a();return(0,c.jsx)(i(),(0,o.A)((0,o.A)({cache:"super-admin-info"},Object.assign({},s.admin.getSuperAdminInfo)),{},{render:e=>{let{data:t,reload:o}=e;return(0,c.jsx)(n,{globalKey:"userInfo",value:{value:t.userInfo,reload:o},needReady:!0,children:r})}}))});var j=r(41668);const b=["baseUrl","navigation","api"],h=["baseUrl","api"],v=["baseUrl","navigation"],y=["baseUrl"],_=["navigation"],x=(0,a.createWithRemoteLoader)({modules:["components-core:Layout"]})(e=>{let{remoteModules:t,navigation:r,title:n,children:a}=e;const[s]=t;return(0,c.jsx)(s,{navigation:(0,o.A)({defaultTitle:n},Object.assign({},r)),children:a})}),g=(0,a.createWithRemoteLoader)({modules:["components-core:Global@GlobalValue"]})(e=>{let{remoteModules:t}=e;const[r]=t;return(0,c.jsx)(r,{globalKey:"userInfo",children:e=>{let{value:t}=e;const{nickname:r,avatar:n,email:o}=Object.assign({},null===t||void 0===t?void 0:t.value);return(0,c.jsx)(j.default,{name:r,email:o,avatar:n})}})}),O=e=>{let{baseUrl:t,navigation:r,api:a}=e,l=(0,n.A)(e,b);return(0,c.jsx)(m,{baseUrl:t||"/account",api:a,children:(0,c.jsx)(x,(0,o.A)((0,o.A)({},l),{},{navigation:Object.assign({},{rightOptions:(0,c.jsx)(g,{})},r),children:(0,c.jsx)(s.Outlet,{})}))})},A=e=>{let{baseUrl:t,api:r}=e;(0,n.A)(e,h);return(0,c.jsx)(m,{baseUrl:t||"/account",api:r,children:(0,c.jsx)(s.Outlet,{})})},I=e=>{let{baseUrl:t,navigation:r}=e,a=(0,n.A)(e,v);return(0,c.jsx)(p,{baseUrl:t||"/account",children:(0,c.jsx)(x,(0,o.A)((0,o.A)({},a),{},{navigation:Object.assign({},{rightOptions:(0,c.jsx)(g,{})},r),children:(0,c.jsx)(s.Outlet,{})}))})},R=e=>{let{baseUrl:t}=e;(0,n.A)(e,y);return(0,c.jsx)(p,{baseUrl:t||"/account",children:(0,c.jsx)(s.Outlet,{})})},U=e=>{let{navigation:t}=e,r=(0,n.A)(e,_);return(0,c.jsx)(f,{children:(0,c.jsx)(x,(0,o.A)((0,o.A)({},r),{},{navigation:Object.assign({},{rightOptions:(0,c.jsx)(g,{})},t),children:(0,c.jsx)(s.Outlet,{})}))})},L=e=>(0,c.jsx)(c.Fragment,{children:(0,c.jsx)(s.Outlet,{})});var S=r(55199);const k=["remoteModules"],w=(0,a.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:t}=e,r=(0,n.A)(e,k);const[a]=t,{Avatar:s,Input:l,TextArea:i}=a.fields;return(0,c.jsx)(a,(0,o.A)((0,o.A)({},r),{},{list:[(0,c.jsx)(S.Flex,{justify:"center",children:(0,c.jsx)(s,{name:"avatar",label:"\u5934\u50cf",labelHidden:!0,interceptor:"photo-string"})}),(0,c.jsx)(l,{name:"email",label:"\u90ae\u7bb1",rule:"REQ"}),(0,c.jsx)(l,{name:"nickname",label:"\u6635\u79f0"}),(0,c.jsx)(i,{name:"description",label:"\u7b80\u4ecb",rule:"LEN-0-500"})]}))}),P=(0,a.createWithRemoteLoader)({modules:["components-core:FormInfo@useFormModal","components-core:Global@usePreset","components-core:Global@useGlobalContext"]})(e=>{let{remoteModules:t,children:r}=e;const[n,o,a]=t,s=n(),{global:l}=a("userInfo"),{apis:i,ajax:u}=o(),{message:d}=S.App.useApp();return r({onClick:()=>{const e=s({title:"\u7f16\u8f91\u4e2a\u4eba\u57fa\u672c\u4fe1\u606f",size:"small",formProps:{data:l.value,onSubmit:async t=>{const{data:r}=await u(Object.assign({},i.user.saveUserInfo,{data:t}));0===r.code&&(d.success("\u4fdd\u5b58\u6210\u529f"),l.reload(),e.close())}},children:(0,c.jsx)(w,{column:1})})}})})},98587(e,t,r){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=5582.1ba374b0.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/5582.1ba374b0.chunk.js","mappings":";oMAEA,SAASA,EAAcC,GACrB,IAAIC,ECFN,SAAqBD,EAAGE,GACtB,GAAI,WAAY,OAAQF,KAAOA,EAAG,OAAOA,EACzC,IAAIG,EAAIH,EAAEI,OAAOC,aACjB,QAAI,IAAWF,EAAG,CAChB,IAAIF,EAAIE,EAAEG,KAAKN,EAAGE,GAAK,WACvB,GAAI,WAA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,4BAChBZ,EAAOzI,SACP8I,EAASQ,WAGb3L,UAAUG,EAAAA,EAAAA,KAACyL,EAAiB,CAACC,OAAQ,U,eCjC7C,SAASC,EAA8BjN,EAAGC,GACxC,GAAI,MAAQD,EAAG,MAAO,CAAC,EACvB,IAAIF,EAAI,CAAC,EACT,IAAK,IAAIiF,KAAK/E,EAAG,GAAI,CAAC,EAAE8E,eAAe1E,KAAKJ,EAAG+E,GAAI,CACjD,IAAK,IAAM9E,EAAE+G,QAAQjC,GAAI,SACzBjF,EAAEiF,GAAK/E,EAAE+E,EACX,CACA,OAAOjF,CACT,C","sources":["../node_modules/@babel/runtime/helpers/esm/toPropertyKey.js","../node_modules/@babel/runtime/helpers/esm/toPrimitive.js","webpack://@kne-components/components-admin/./src/components/UserTool/style.module.scss?828d","components/UserTool/UserTool.js","components/UserTool/RightOptions.js","../node_modules/react/cjs/react-jsx-runtime.production.min.js","../node_modules/@babel/runtime/helpers/esm/defineProperty.js","../node_modules/react/jsx-runtime.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.js","../node_modules/@babel/runtime/helpers/esm/typeof.js","../node_modules/@babel/runtime/helpers/esm/objectSpread2.js","components/Authenticate/Authenticate.js","components/Authenticate/MainLayout.js","components/Authenticate/UserInfoFormInner.js","components/Authenticate/SaveUserInfo.js","../node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js"],"sourcesContent":["import _typeof from \"./typeof.js\";\nimport toPrimitive from \"./toPrimitive.js\";\nfunction toPropertyKey(t) {\n var i = toPrimitive(t, \"string\");\n return \"symbol\" == _typeof(i) ? i : i + \"\";\n}\nexport { toPropertyKey as default };","import _typeof from \"./typeof.js\";\nfunction toPrimitive(t, r) {\n if (\"object\" != _typeof(t) || !t) return t;\n var e = t[Symbol.toPrimitive];\n if (void 0 !== e) {\n var i = e.call(t, r || \"default\");\n if (\"object\" != _typeof(i)) return i;\n throw new TypeError(\"@@toPrimitive must return a primitive value.\");\n }\n return (\"string\" === r ? String : Number)(t);\n}\nexport { toPrimitive as default };","// extracted by mini-css-extract-plugin\nexport default {\"icon\":\"style_icon__KSAP2__ztRFh\",\"content\":\"style_content__akCc4__ztRFh\",\"overlay\":\"style_overlay__IH+0B__ztRFh\",\"info\":\"style_info__5uvqI__ztRFh\",\"tenant\":\"style_tenant__pNb8v__ztRFh\",\"user-tool\":\"style_user-tool__CBaDm__ztRFh\",\"divider\":\"style_divider__jcjqI__ztRFh\",\"options-list\":\"style_options-list__RHknC__ztRFh\",\"options-list-item\":\"style_options-list-item__IOziy__ztRFh\",\"org\":\"style_org__N0zoJ__ztRFh\",\"tenant-item\":\"style_tenant-item__0Q6XJ__ztRFh\",\"current-sign\":\"style_current-sign__11f2P__ztRFh\",\"current-tenant\":\"style_current-tenant__mdi5f__ztRFh\",\"user-name\":\"style_user-name__q7lY4__ztRFh\",\"company\":\"style_company__wIKmA__ztRFh\",\"line\":\"style_line__rOiNk__ztRFh\"};","import { createWithRemoteLoader } from '@kne/remote-loader';\nimport { Divider, List, Dropdown, Space, Flex } from 'antd';\nimport { removeToken } from '@kne/token-storage';\nimport style from './style.module.scss';\n\nconst UserTool = createWithRemoteLoader({\n modules: ['components-core:Image', 'components-core:Icon']\n})(({ remoteModules, avatar, name, email, storeKeys = { token: 'X-User-Token' }, domain, list, children = null }) => {\n const [Image, Icon] = remoteModules;\n return (\n <Dropdown\n trigger=\"click\"\n rootClassName={style['overlay']}\n popupRender={() => (\n <Space direction={'vertical'} className={style['content']}>\n <Space className={style['info']}>\n <Image.Avatar id={avatar} size={48} />\n <div>\n <div className={style['line']}>{name || '未命名'}</div>\n <div className={style['line']}>{email || '-'}</div>\n </div>\n </Space>\n <Divider className={style['divider']} />\n {children}\n <List className={style['options-list']}>\n {list &&\n list.length > 0 &&\n list.map((item, index) => {\n return (\n <List.Item key={index} className={style['options-list-item']} onClick={item.onClick}>\n <Flex gap={8} flex={1}>\n {item.iconType && <Icon type={item.iconType} />}\n <Flex flex={1}>{item.label}</Flex>\n </Flex>\n </List.Item>\n );\n })}\n <List.Item\n className={style['options-list-item']}\n onClick={() => {\n Object.values(storeKeys).forEach(tokenKey => {\n removeToken(tokenKey, domain);\n });\n window.location.reload();\n }}\n >\n <Flex gap={8} flex={1}>\n <Icon type=\"icon-tuichudenglu\" />\n <span>退出登录</span>\n </Flex>\n </List.Item>\n </List>\n </Space>\n )}\n arrow={false}\n transitionName={'ant-slide-up'}\n >\n <Space className={style['user-tool']}>\n <Image.Avatar id={avatar} size={32} />\n <div className={style['user-name']}>{name || '未命名'}</div>\n <Icon className={style['icon']} type=\"triangle-down\" size={12} />\n </Space>\n </Dropdown>\n );\n});\n\nexport default UserTool;\n","import {createWithRemoteLoader} from '@kne/remote-loader';\nimport UserTool from './UserTool';\n\nconst RightOptions = createWithRemoteLoader({\n modules: ['components-core:Global@GlobalValue']\n})(({remoteModules}) => {\n const [GlobalValue] = remoteModules;\n\n return (<GlobalValue globalKey=\"userInfo\">\n {({value}) => {\n if (!value) {\n return null;\n }\n const {userInfo, tenantUser, tenant} = value;\n return (<UserTool\n avatar={tenantUser ? tenantUser.avatar : userInfo.avatar}\n name={tenantUser ? tenantUser.name : userInfo.nickname}\n email={tenantUser ? tenantUser.email : userInfo.email}\n tenant={tenant}\n orgName={tenantUser && (tenantUser?.tenantOrgs || []).map(item => item.name).join(',')}\n />);\n }}\n </GlobalValue>);\n});\n\nexport default RightOptions;\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","import toPropertyKey from \"./toPropertyKey.js\";\nfunction _defineProperty(e, r, t) {\n return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {\n value: t,\n enumerable: !0,\n configurable: !0,\n writable: !0\n }) : e[r] = t, e;\n}\nexport { _defineProperty as default };","'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 };","function _typeof(o) {\n \"@babel/helpers - typeof\";\n\n return _typeof = \"function\" == typeof Symbol && \"symbol\" == typeof Symbol.iterator ? function (o) {\n return typeof o;\n } : function (o) {\n return o && \"function\" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? \"symbol\" : typeof o;\n }, _typeof(o);\n}\nexport { _typeof as default };","import defineProperty from \"./defineProperty.js\";\nfunction ownKeys(e, r) {\n var t = Object.keys(e);\n if (Object.getOwnPropertySymbols) {\n var o = Object.getOwnPropertySymbols(e);\n r && (o = o.filter(function (r) {\n return Object.getOwnPropertyDescriptor(e, r).enumerable;\n })), t.push.apply(t, o);\n }\n return t;\n}\nfunction _objectSpread2(e) {\n for (var r = 1; r < arguments.length; r++) {\n var t = null != arguments[r] ? arguments[r] : {};\n r % 2 ? ownKeys(Object(t), !0).forEach(function (r) {\n defineProperty(e, r, t[r]);\n }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) {\n Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));\n });\n }\n return e;\n}\nexport { _objectSpread2 as default };","import { createWithRemoteLoader } from '@kne/remote-loader';\nimport { Navigate, useLocation } from 'react-router-dom';\nimport Fetch from '@kne/react-fetch';\n\nconst CheckAccountIsInit = ({ data, baseUrl, children }) => {\n const location = useLocation();\n if (data.userInfo.status === 1) {\n return (\n <Navigate\n to={`${baseUrl || ''}/modify/${encodeURIComponent(data.userInfo.email)}?referer=${encodeURIComponent(location.pathname + location.search)}`}\n replace\n />\n );\n }\n\n return children;\n};\n\nexport const CustomUserInfo = createWithRemoteLoader({\n modules: ['components-core:Global@SetGlobal']\n})(({ remoteModules, cache, baseUrl, children, api }) => {\n const [SetGlobal] = remoteModules;\n return (\n <Fetch\n cache={cache}\n {...Object.assign({}, api)}\n render={({ data, reload }) => {\n return (\n <CheckAccountIsInit baseUrl={baseUrl} data={data}>\n <SetGlobal globalKey=\"userInfo\" value={{ value: data.userInfo, reload }} needReady>\n {children}\n </SetGlobal>\n </CheckAccountIsInit>\n );\n }}\n />\n );\n});\n\nexport const UserInfo = createWithRemoteLoader({\n modules: ['components-core:Global@usePreset']\n})(({ remoteModules, ...props }) => {\n const [usePreset] = remoteModules;\n const { apis } = usePreset();\n return <CustomUserInfo {...props} api={apis.user.getUserInfo} cache=\"user-info\" />;\n});\n\nexport const SuperAdminInfo = createWithRemoteLoader({\n modules: ['components-core:Global@SetGlobal', 'components-core:Global@usePreset']\n})(({ remoteModules, children }) => {\n const [SetGlobal, usePreset] = remoteModules;\n const { apis } = usePreset();\n return (\n <Fetch\n cache=\"super-admin-info\"\n {...Object.assign({}, apis.admin.getSuperAdminInfo)}\n render={({ data, reload }) => {\n return (\n <SetGlobal globalKey=\"userInfo\" value={{ value: data.userInfo, reload }} needReady>\n {children}\n </SetGlobal>\n );\n }}\n />\n );\n});\n","import RemoteLoader, { createWithRemoteLoader } from '@kne/remote-loader';\nimport { Outlet } from 'react-router-dom';\nimport { SuperAdminInfo, UserInfo, CustomUserInfo } from './Authenticate';\nimport UserTool from '@components/UserTool';\n\nexport const MainLayout = createWithRemoteLoader({\n modules: ['components-core:Layout']\n})(({ remoteModules, navigation, title, children }) => {\n const [Layout] = remoteModules;\n return (\n <Layout\n navigation={{\n defaultTitle: title,\n ...Object.assign({}, navigation)\n }}\n >\n {children}\n </Layout>\n );\n});\n\nexport const RightOptions = createWithRemoteLoader({\n modules: ['components-core:Global@GlobalValue']\n})(({ remoteModules }) => {\n const [GlobalValue] = remoteModules;\n\n return (\n <GlobalValue globalKey=\"userInfo\">\n {({ value }) => {\n const { nickname, avatar, email } = Object.assign({}, value?.value);\n return <UserTool name={nickname} email={email} avatar={avatar} />;\n }}\n </GlobalValue>\n );\n});\n\nexport const AfterCustomUserLoginLayout = ({ baseUrl, navigation, api, ...props }) => {\n return (\n <CustomUserInfo baseUrl={baseUrl || '/account'} api={api}>\n <MainLayout\n {...props}\n navigation={Object.assign(\n {},\n {\n rightOptions: <RightOptions />\n },\n navigation\n )}\n >\n <Outlet />\n </MainLayout>\n </CustomUserInfo>\n );\n};\n\nexport const AfterCustomUserLogin = ({ baseUrl, api, ...props }) => {\n return (\n <CustomUserInfo baseUrl={baseUrl || '/account'} api={api}>\n <Outlet />\n </CustomUserInfo>\n );\n};\n\nexport const AfterUserLoginLayout = ({ baseUrl, navigation, ...props }) => {\n return (\n <UserInfo baseUrl={baseUrl || '/account'}>\n <MainLayout\n {...props}\n navigation={Object.assign(\n {},\n {\n rightOptions: <RightOptions />\n },\n navigation\n )}\n >\n <Outlet />\n </MainLayout>\n </UserInfo>\n );\n};\n\nexport const AfterUserLogin = ({ baseUrl, ...props }) => {\n return (\n <UserInfo baseUrl={baseUrl || '/account'}>\n <Outlet />\n </UserInfo>\n );\n};\n\nexport const AfterAdminUserLoginLayout = ({ navigation, ...props }) => {\n return (\n <SuperAdminInfo>\n <MainLayout\n {...props}\n navigation={Object.assign(\n {},\n {\n rightOptions: <RightOptions />\n },\n navigation\n )}\n >\n <Outlet />\n </MainLayout>\n </SuperAdminInfo>\n );\n};\n\nexport const BeforeLoginLayout = props => {\n return (\n <>\n <Outlet />\n </>\n );\n};\n","import { createWithRemoteLoader } from '@kne/remote-loader';\nimport { Flex } from 'antd';\n\nconst UserInfoFormInner = createWithRemoteLoader({\n modules: ['components-core:FormInfo']\n})(({ remoteModules, ...props }) => {\n const [FormInfo] = remoteModules;\n const { Avatar, Input, TextArea } = FormInfo.fields;\n return (\n <FormInfo\n {...props}\n list={[\n <Flex justify=\"center\">\n <Avatar name=\"avatar\" label=\"头像\" labelHidden interceptor=\"photo-string\" />\n </Flex>,\n <Input name=\"email\" label=\"邮箱\" rule=\"REQ\" />,\n <Input name=\"nickname\" label=\"昵称\" />,\n <TextArea name=\"description\" label=\"简介\" rule=\"LEN-0-500\" />\n ]}\n />\n );\n});\n\nexport default UserInfoFormInner;\n","import { createWithRemoteLoader } from '@kne/remote-loader';\nimport UserInfoFormInner from './UserInfoFormInner';\nimport { App } from 'antd';\n\nconst SaveUserInfo = createWithRemoteLoader({\n modules: ['components-core:FormInfo@useFormModal', 'components-core:Global@usePreset', 'components-core:Global@useGlobalContext']\n})(({ remoteModules, children }) => {\n const [useFormModal, usePreset, useGlobalContext] = remoteModules;\n const formModal = useFormModal();\n const { global } = useGlobalContext('userInfo');\n const { apis, ajax } = usePreset();\n const { message } = App.useApp();\n return children({\n onClick: () => {\n const modalApi = formModal({\n title: '编辑个人基本信息',\n size: 'small',\n formProps: {\n data: global.value,\n onSubmit: async data => {\n const { data: resData } = await ajax(\n Object.assign({}, apis.user.saveUserInfo, {\n data\n })\n );\n if (resData.code !== 0) {\n return;\n }\n message.success('保存成功');\n global.reload();\n modalApi.close();\n }\n },\n children: <UserInfoFormInner column={1} />\n });\n }\n });\n});\n\nexport default SaveUserInfo;\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":["toPropertyKey","t","i","r","e","Symbol","toPrimitive","call","TypeError","String","Number","createWithRemoteLoader","modules","_ref","remoteModules","avatar","name","email","storeKeys","token","domain","list","children","Image","Icon","_jsx","Dropdown","trigger","rootClassName","style","popupRender","_jsxs","Space","direction","className","Avatar","id","size","Divider","List","length","map","item","index","Item","onClick","Flex","gap","flex","iconType","type","label","Object","values","forEach","tokenKey","removeToken","window","location","reload","arrow","transitionName","GlobalValue","globalKey","_ref2","value","userInfo","tenantUser","tenant","UserTool","nickname","orgName","tenantOrgs","join","f","require","k","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","defaultProps","$$typeof","props","_owner","current","exports","Fragment","jsx","jsxs","_defineProperty","defineProperty","enumerable","configurable","writable","module","_objectWithoutProperties","o","getOwnPropertySymbols","indexOf","propertyIsEnumerable","_typeof","iterator","constructor","ownKeys","keys","filter","getOwnPropertyDescriptor","push","apply","_objectSpread2","arguments","getOwnPropertyDescriptors","defineProperties","CheckAccountIsInit","data","baseUrl","useLocation","status","Navigate","to","concat","encodeURIComponent","pathname","search","replace","CustomUserInfo","cache","api","SetGlobal","Fetch","_objectSpread","assign","render","_ref3","needReady","UserInfo","_ref4","_excluded","usePreset","apis","user","getUserInfo","SuperAdminInfo","_ref5","admin","getSuperAdminInfo","_ref6","MainLayout","navigation","title","Layout","defaultTitle","RightOptions","AfterCustomUserLoginLayout","rightOptions","Outlet","AfterCustomUserLogin","_excluded2","AfterUserLoginLayout","_excluded3","AfterUserLogin","_ref7","_excluded4","AfterAdminUserLoginLayout","_ref8","_excluded5","BeforeLoginLayout","_Fragment","FormInfo","Input","TextArea","fields","justify","labelHidden","interceptor","rule","useFormModal","useGlobalContext","formModal","global","ajax","message","App","useApp","modalApi","formProps","onSubmit","async","resData","saveUserInfo","code","success","close","UserInfoFormInner","column","_objectWithoutPropertiesLoose"],"ignoreList":[],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_admin=self.webpackChunk_kne_components_components_admin||[]).push([[628,8247],{20628(e,t,n){n.r(t),n.d(t,{Global:()=>C,GlobalSetting:()=>P,GlobalValue:()=>h,Preset:()=>p,PresetProvider:()=>d,Provider:()=>s,SelectProvider:()=>f,context:()=>u,createContext:()=>l,default:()=>u,presetContext:()=>i,selectorContext:()=>b,useContext:()=>c,useGlobalContext:()=>a,useGlobalValue:()=>m,usePreset:()=>v,useSelectorContext:()=>x});var r=n(73884),o=n.n(r);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,r.createContext)(e),{Provider:n,Consumer:o}=t;return{context:t,Provider:n,Consumer:o,useContext:()=>(0,r.useContext)(t)}},u=l({}),{Provider:s,useContext:c}=u,a=c,i=l({}),{Provider:d,useContext:v}=i,b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{context:t,Provider:n,useContext:u}=l(e);return{context:t,Provider:e=>{let{value:t,children:l}=e;const u=(0,r.useRef)();let s=u.current;if(!s){const e=new Set;s={value:t,subscribe:t=>(e.add(t),()=>e.delete(t)),notify:()=>e.forEach(e=>e())},u.current=s}return(0,r.useEffect)(()=>{Object.is(s.value,t)||(s.value=t,s.notify())}),o().createElement(n,{value:s},l)},useContext:e=>{const t=u();return(0,r.useSyncExternalStore)(t.subscribe||(()=>{}),()=>e(t.value))}}}({}),{Provider:f,useContext:x}=b,C=e=>{let{preset:t,children:n,initValue:l}=e;const[u,c]=(0,r.useState)(Object.assign({},l)),a=(0,r.useCallback)((e,t)=>{c(n=>Object.assign({},n,{[e]:"function"===typeof t?t(n[e]):t}))},[]);return o().createElement(s,{value:{global:u,setGlobal:c,setGlobalValue:a}},o().createElement(d,{value:t},o().createElement(f,{value:u},n)))},P=e=>{let{loader:t,needReady:n=!0,children:o}=e;const[l,u]=(0,r.useState)(!1),{global:s,setGlobal:a}=c(),i=(0,r.useRef)(null),d=(0,r.useRef)(t);return(0,r.useEffect)(()=>{Promise.resolve(d.current).then(e=>{a(t=>{const n=Object.assign({},t,e);return i.current=n,n})})},[]),(0,r.useEffect)(()=>{s===i.current&&u(!0)},[s]),n&&!l?null:o},m=e=>x(t=>null==t?void 0:t[e]),h=e=>{let{globalKey:t,children:n}=e;return n({value:m(t)})},p=e=>{let{children:t}=e;return t(v())}}}]);
|
|
2
|
+
//# sourceMappingURL=628.1c1e0e67.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/628.1c1e0e67.chunk.js","mappings":"ufAIA,MAAMA,EAAgB,WAAoB,IAAnBC,EAASC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAC,EAChC,MAAMG,GAAUC,EAAAA,EAAAA,eAAmBL,IAC7B,SAACM,EAAQ,SAAEC,GAAYH,EAG7B,MAAO,CAACA,UAASE,WAAUC,WAAUC,WAFlBA,KAAMC,EAAAA,EAAAA,YAAgBL,GAG7C,ECRaA,EAAUL,EAAc,CAAC,IAEzB,SAACO,EAAQ,WAAEE,GAAcJ,EAEzBM,EAAmBF,EAEnBG,EAAgBZ,EAAc,CAAC,IAC9BO,SAAUM,EAAgBJ,WAAYK,GAAaF,EACpDG,EDIwB,WAAoB,IAAnBd,EAASC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAC,EAC/C,MAAM,QAACG,EAAO,SAAEE,EAAQ,W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C,OAACC,EAAQC,UAAAC,GAAY,EAAI,SAAEpC,GAASiC,EAC9D,MAAOI,EAAQC,IAAaX,EAAAA,EAAAA,WAAS,IAC/B,OAACF,EAAM,UAAEC,GAAanC,IACtBgD,GAAYrC,EAAAA,EAAAA,QAAO,MACnBsC,GAAYtC,EAAAA,EAAAA,QAAOgC,GAiBzB,OAhBArB,EAAAA,EAAAA,WAAU,KACN4B,QAAQC,QAAQF,EAAUpC,SAASuC,KAAMC,IACrClB,EAAWD,IACP,MAAMoB,EAAa/B,OAAOc,OAAO,CAAC,EAAGH,EAAQmB,GAE7C,OADAL,EAAUnC,QAAUyC,EACbA,OAGhB,KAEHhC,EAAAA,EAAAA,WAAU,KACFY,IAAWc,EAAUnC,SACrBkC,GAAU,IAEf,CAACb,IAEAW,IAAcC,EACP,KAGJrC,GAGE8C,EAAkBf,GACpBV,EAAmBI,GAAgB,MAANA,OAAM,EAANA,EAASM,IAGpCgB,EAAcC,IAA2B,IAA1B,UAACjB,EAAS,SAAE/B,GAASgD,EAE7C,OAAOhD,EAAS,CAACD,MADH+C,EAAef,MAIpBkB,EAASC,IAAgB,IAAf,SAAClD,GAASkD,EAE7B,OAAOlD,EADQJ,K","sources":["../node_modules/@kne/global-context/src/createContext.js","../node_modules/@kne/global-context/src/globalContext.js","../node_modules/@kne/global-context/src/Global.js"],"sourcesContent":["import React, {\n createContext as createReactContext, useContext as useReactContext, useRef, useEffect, useSyncExternalStore\n} from \"react\";\n\nconst createContext = (initValue = {}) => {\n const context = createReactContext(initValue);\n const {Provider, Consumer} = context;\n const useContext = () => useReactContext(context);\n\n return {context, Provider, Consumer, useContext};\n};\n\nexport default createContext;\n\nexport const createSelectorContext = (initValue = {}) => {\n const {context, Provider, useContext} = createContext(initValue);\n\n const SelectorProvider = ({value, children}) => {\n const storeRef = useRef();\n let store = storeRef.current;\n if (!store) {\n const listeners = new Set();\n store = {\n value, subscribe: (l) => {\n listeners.add(l);\n return () => listeners.delete(l);\n }, notify: () => listeners.forEach((l) => l()),\n }\n storeRef.current = store;\n }\n useEffect(() => {\n if (!Object.is(store.value, value)) {\n store.value = value;\n store.notify();\n }\n });\n return <Provider value={store}>{children}</Provider>\n };\n\n const useSelectorContext = (selector) => {\n const store = useContext();\n return useSyncExternalStore(store.subscribe||(()=>{}), () => {\n return selector(store.value);\n });\n };\n\n return {context, Provider: SelectorProvider, useContext: useSelectorContext};\n};\n","import createContext, {createSelectorContext} from \"./createContext\";\n\nexport const context = createContext({});\n\nexport const {Provider, useContext} = context;\n\nexport const useGlobalContext = useContext;\n\nexport const presetContext = createContext({});\nexport const {Provider: PresetProvider, useContext: usePreset} = presetContext;\nexport const selectorContext = createSelectorContext({});\nexport const {Provider: SelectProvider, useContext: useSelectorContext} = selectorContext;\n\nexport default context;\n","import React, {useState, useCallback, useEffect, useRef} from \"react\";\nimport {Provider, useContext, useSelectorContext, SelectProvider, PresetProvider, usePreset} from \"./globalContext\";\n\nconst Global = ({preset, children, initValue}) => {\n const [global, setGlobal] = useState(Object.assign({}, initValue));\n\n const setGlobalValue = useCallback((globalKey, value) => {\n setGlobal((global) => {\n return Object.assign({}, global, {[globalKey]: typeof value === \"function\" ? value(global[globalKey]) : value});\n });\n }, []);\n\n return <Provider value={{global, setGlobal, setGlobalValue}}>\n <PresetProvider value={preset}>\n <SelectProvider value={global}>\n {children}\n </SelectProvider>\n </PresetProvider>\n </Provider>;\n};\n\nexport const GlobalSetting = ({loader, needReady = true, children}) => {\n const [loaded, setLoaded] = useState(false);\n const {global, setGlobal} = useContext();\n const globalRef = useRef(null);\n const loaderRef = useRef(loader);\n useEffect(() => {\n Promise.resolve(loaderRef.current).then((target) => {\n setGlobal((global) => {\n const nextGlobal = Object.assign({}, global, target);\n globalRef.current = nextGlobal;\n return nextGlobal;\n });\n });\n }, []);\n\n useEffect(() => {\n if (global === globalRef.current) {\n setLoaded(true);\n }\n }, [global]);\n\n if (needReady && !loaded) {\n return null;\n }\n\n return children;\n};\n\nexport const useGlobalValue = (globalKey) => {\n return useSelectorContext(global => global?.[globalKey]);\n};\n\nexport const GlobalValue = ({globalKey, children}) => {\n const value = useGlobalValue(globalKey);\n return children({value});\n};\n\nexport const Preset = ({children}) => {\n const preset = usePreset();\n return children(preset);\n};\n\nexport default Global;\n"],"names":["createContext","initValue","arguments","length","undefined","context","createContext$1","Provider","Consumer","useContext","useContext$1","useGlobalContext","presetContext","PresetProvider","usePreset","selectorContext","_ref","value","children","storeRef","useRef","store","current","listeners","Set","subscribe","l","add","delete","notify","forEach","useEffect","Object","is","React","selector","useSyncExternalStore","createSelectorContext","SelectProvider","useSelectorContext","Global","_ref2","preset","global","setGlobal","useState","assign","setGlobalValue","useCallback","globalKey","GlobalSetting","_ref3","loader","needReady","_needReady","loaded","setLoaded","globalRef","loaderRef","Promise","resolve","then","target","nextGlobal","useGlobalValue","GlobalValue","_ref4","Preset","_ref5"],"ignoreList":[],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_admin=self.webpackChunk_kne_components_components_admin||[]).push([[7011],{17011(e,t,s){s.r(t),s.d(t,{ForgetByEmail:()=>D,Login:()=>S,LoginOuterContainer:()=>N,Modify:()=>Q,Register:()=>M,ResetPassword:()=>X,default:()=>Re});var a=s(55199),n=s(98139),l=s.n(n);const r="style_out-left__wOmRS__ztRFh",o="style_out-right__29XpV__ztRFh",i="style_out-right-inner__DZjbq__ztRFh",c="style_container-left-content__2FtGT__ztRFh",d="style_container-left-logo__fR8Ed__ztRFh",m="style_container-left-title__vg7KF__ztRFh",u="style_container-left-inner__AZyjW__ztRFh",h="style_out-container__iqnkT__ztRFh",p="style_top-banner__j8+SV__ztRFh",j="style_title__Pn7Uw__ztRFh",_="style_back-link__TepOq__ztRFh",g="style_form-inner__AnfOK__ztRFh",x="style_top-banner-inner__-62z0__ztRFh",y="style_out-inner__olZqh__ztRFh";var f=s(70579);const N=e=>{let{className:t,title:s,logo:n,leftInner:j,children:_}=e;return(0,f.jsxs)("div",{className:l()(t,h,"account-box"),children:[(0,f.jsxs)("div",{className:p,children:[(0,f.jsx)("div",{className:x,children:s}),j]}),(0,f.jsx)("div",{className:y,children:(0,f.jsxs)(a.Row,{wrap:!1,children:[(0,f.jsxs)(a.Col,{className:l()(r,"container-left"),children:[(0,f.jsxs)(a.Flex,{gap:16,align:"center",className:l()(c,"container-left-content"),children:[n&&(0,f.jsx)("img",{className:l()(d,"container-left-logo"),src:n,alt:"logo"}),s&&(0,f.jsx)("div",{className:l()(m,"container-left-title"),children:s})]}),j&&(0,f.jsx)("div",{className:l()(u,"container-left-inner"),children:j})]}),(0,f.jsx)(a.Col,{className:l()(o,"container-right"),flex:1,children:(0,f.jsx)("div",{className:l()(i,"container-right-inner"),children:_})})]})})]})};var w=s(80045);const R="style_forget-button__4NY6I__ztRFh";var b=s(73884),v=s(35950),P=s.n(v),z=s(13050);const U=["remoteModules"],L="LOGIN_REMEMBER_ACCOUNT",S=(0,z.createWithRemoteLoader)({modules:["component-core:FormInfo"]})(e=>{let{remoteModules:t}=e,s=(0,w.A)(e,U);const{title:n,registerUrl:l,forgetUrl:r,type:o,onSubmit:i}=Object.assign({},{title:"\u767b\u5f55",type:"email",registerUrl:"",forgetUrl:""},s),[c,d]=(0,b.useState)(!1),m=P()(),[u]=t,{Form:h,SubmitButton:p,fields:_}=u,{Input:g}=_;return(0,f.jsxs)(h,{type:"inner",size:"large",enterSubmit:!0,onSubmit:e=>{c?window.localStorage.setItem(L,e[o]):window.localStorage.removeItem(L),null===i||void 0===i||i(e)},children:[(0,f.jsxs)(a.Space,{className:"space-full",size:38,direction:"vertical",children:[(0,f.jsx)("div",{className:j,children:n}),(0,f.jsxs)("div",{children:["email"===o&&(0,f.jsx)(g,{name:"email",label:"\u90ae\u7bb1",rule:"REQ EMAIL"}),"phone"===o&&(0,f.jsx)(g,{name:"phone",label:"\u624b\u673a",rule:"REQ TEL"}),(0,f.jsx)(g.Password,{type:"password",name:"password",label:"\u5bc6\u7801",rule:"REQ LEN-6-50"})]})]}),(0,f.jsxs)(a.Space,{className:"space-full",size:10,direction:"vertical",children:[(0,f.jsx)(p,{block:!0,size:"large",children:"\u767b\u5f55"}),(0,f.jsxs)(a.Row,{justify:"space-between",children:[(0,f.jsx)(a.Col,{children:(0,f.jsx)(a.Checkbox,{checked:c,onChange:e=>{d(e.target.checked)},children:"\u8bb0\u4f4f\u8d26\u53f7"})}),(0,f.jsxs)(a.Col,{children:[l&&(0,f.jsx)(a.Button,{className:R,type:"link",size:"small",onClick:()=>{m(l)},children:"\u6ce8\u518c"}),r&&(0,f.jsx)(a.Button,{className:R,type:"link",size:"small",onClick:()=>{m(r)},children:"\u5fd8\u8bb0\u5bc6\u7801"})]})]})]})]})});var F=s(79123),E=s.n(F),k=s(33097),A=s.n(k),C=s(28488);const I="style_code-field__NvD9i__ztRFh",T="style_get-code__j4NF-__ztRFh",O=["remoteModules"],M=(0,z.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:t}=e,s=(0,w.A)(e,O);const{onSubmit:n,title:r,systemName:o,type:i,sendVerificationCode:c,loginUrl:d,topBanner:m,className:u}=Object.assign({},{title:"\u6ce8\u518c",type:"email",loginUrl:"",sendVerificationCode:()=>{console.warn("\u4f20\u5165sendVerificationCode\u5c5e\u6027\u53d1\u9001\u9a8c\u8bc1\u7801")}},s),N=(0,b.useRef)(null),[R]=t,{Form:v,SubmitButton:z,fields:U}=R,{Input:L,PhoneNumber:S}=U,F=P()();return(0,f.jsxs)("div",{className:l()(h,u),children:[m&&(0,f.jsxs)("div",{className:p,children:[(0,f.jsx)("div",{className:x,children:o}),m]}),(0,f.jsx)("div",{className:y,children:(0,f.jsxs)(v,{type:"inner",size:"large",ref:N,onSubmit:n,children:[(0,f.jsx)(a.Button,{className:_,type:"link",size:"large",icon:(0,f.jsx)(C.LeftOutlined,{}),onClick:()=>{F(d)},children:"\u5df2\u6709\u8d26\u6237\uff0c\u53bb\u767b\u5f55"}),(0,f.jsxs)(a.Space,{className:l()(g),size:38,direction:"vertical",children:[(0,f.jsx)("div",{className:j,children:r}),(0,f.jsxs)("div",{children:["phone"===i&&(0,f.jsx)(S,{name:"phone",label:"\u624b\u673a",rule:"REQ",codeType:"code",realtime:!0,interceptor:"phone-number-string"}),"email"===i&&(0,f.jsx)(L,{name:"email",label:"\u90ae\u7bb1",rule:"REQ EMAIL",realtime:!0}),(0,f.jsxs)(a.Row,{align:"bottom",justify:"space-between",children:[(0,f.jsx)(a.Col,{className:I,children:(0,f.jsx)(L,{name:"code",label:"\u9a8c\u8bc1\u7801",rule:"REQ LEN-6 VALIDATE_CODE"})}),(0,f.jsx)(a.Col,{children:(0,f.jsx)(E(),{className:T,type:"link",target:{name:i},onClick:()=>c({type:i,data:A()(N.current.data,i)}),children:"\u53d1\u9001\u9a8c\u8bc1\u7801"})})]}),(0,f.jsx)(L.Password,{name:"password",label:"\u5bc6\u7801",rule:"REQ LEN-6-50"}),(0,f.jsx)(L.Password,{name:"repeatPwd",label:"\u91cd\u590d\u5bc6\u7801",rule:"REQ LEN-6-50 REPEAT-password"})]}),(0,f.jsx)(z,{block:!0,size:"large",children:"\u6ce8\u518c"})]})]})})]})}),B=["remoteModules"],Q=(0,z.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:t}=e,s=(0,w.A)(e,B);const{className:n,title:r,systemName:o,isReset:i,account:c,onSubmit:d,type:m,header:u,topBanner:_}=Object.assign({},{title:"\u4fee\u6539\u5bc6\u7801",type:"email",header:null},s),[N]=t,{Form:R,SubmitButton:b,fields:v}=N,{Input:P}=v;return(0,f.jsxs)("div",{className:l()(h,n),children:[_&&(0,f.jsxs)("div",{className:p,children:[(0,f.jsx)("div",{className:x,children:o}),_]}),(0,f.jsxs)("div",{className:y,children:[u,(0,f.jsx)(R,{type:"inner",size:"large",onSubmit:d,children:(0,f.jsxs)(a.Space,{className:l()(g),size:38,direction:"vertical",children:[(0,f.jsx)("div",{className:j,children:r}),(0,f.jsxs)("div",{children:["email"===m&&(0,f.jsx)(P,{name:"email",label:"\u90ae\u7bb1\u8d26\u53f7",disabled:!0,defaultValue:c&&decodeURIComponent(c)}),"phone"===m&&(0,f.jsx)(P,{name:"phone",label:"\u624b\u673a\u8d26\u53f7",disabled:!0,defaultValue:c&&decodeURIComponent(c)}),i?null:(0,f.jsx)(P.Password,{name:"oldPwd",label:"\u539f\u5bc6\u7801",rule:"REQ LEN-6-50"}),(0,f.jsx)(P.Password,{name:"newPwd",label:"\u65b0\u5bc6\u7801",rule:"REQ LEN-6-50"}),(0,f.jsx)(P.Password,{name:"repeatNewPwd",label:"\u91cd\u590d\u5bc6\u7801",rule:"REQ LEN-6-50 REPEAT-newPwd"})]}),(0,f.jsx)(b,{block:!0,size:"large",children:"\u63d0\u4ea4"})]})})]})]})}),W="style_forget-input__psj0u__ztRFh",V="style_success-info__zKcsw__ztRFh",G="style_main__GAYFL__ztRFh",K=["remoteModules"],D=(0,z.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:t}=e,s=(0,w.A)(e,K);const{title:n,loginUrl:r,onSubmit:o}=Object.assign({},{title:"\u5fd8\u8bb0\u5bc6\u7801",loginUrl:""},s),[i,c]=(0,b.useState)(""),d=P()(),[m]=t,{Form:u,fields:h,SubmitButton:p}=m,{Input:g}=h,x=(0,f.jsx)(a.Button,{className:_,type:"link",size:"large",icon:(0,f.jsx)(C.LeftOutlined,{}),onClick:()=>{d(r)},children:"\u8fd4\u56de\u767b\u5f55"});return i?(0,f.jsxs)(f.Fragment,{children:[x,(0,f.jsxs)(a.Space,{className:l()(G,"space-full"),direction:"vertical",size:40,children:[(0,f.jsx)("div",{className:j,children:n}),(0,f.jsxs)("div",{className:V,children:[(0,f.jsxs)("div",{children:["\u91cd\u7f6e\u94fe\u63a5\u5df2\u53d1\u9001\u81f3",i,"\u7684\u90ae\u7bb1\u4e2d\uff0c"]}),(0,f.jsx)("div",{children:"\u8bf7\u57283\u5206\u949f\u5185\u5b8c\u6210\u5bc6\u7801\u91cd\u7f6e\uff0c\u82e5\u94fe\u63a5\u5931\u6548\u8bf7\u91cd\u65b0\u7533\u8bf7\u3002"})]})]})]}):(0,f.jsxs)(u,{type:"inner",size:"large",onSubmit:e=>{o&&o(e,()=>{c(e.email)})},children:[x,(0,f.jsxs)(a.Space,{className:l()(G,"space-full"),direction:"vertical",size:40,children:[(0,f.jsx)("div",{className:j,children:n}),(0,f.jsx)(a.Space,{className:l()("space-full",W),direction:"vertical",children:(0,f.jsx)(g,{name:"email",label:"\u90ae\u7bb1\u8d26\u53f7",rule:"REQ EMAIL"})}),(0,f.jsx)(a.Space,{className:"space-full",direction:"vertical",children:(0,f.jsx)(p,{block:!0,size:"large",children:"\u4e0b\u4e00\u6b65"})})]})]})});var q=s(89379);const Z=["type","loginUrl","title","systemName"],X=e=>{const t=Object.assign({},{type:"email",title:"\u91cd\u7f6e\u767b\u5f55\u5bc6\u7801",loginUrl:""},e),{type:s,loginUrl:n,title:l,systemName:r}=t,o=(0,w.A)(t,Z),i=P()();return(0,f.jsx)(Q,(0,q.A)((0,q.A)({},o),{},{type:s,title:l,systemName:r,isReset:!0,header:(0,f.jsx)(a.Button,{className:_,type:"link",size:"large",icon:(0,f.jsx)(C.LeftOutlined,{}),onClick:()=>{i(n)},children:"\u5df2\u6709\u8d26\u6237\uff0c\u53bb\u767b\u5f55"})}))};var Y=s(94679),H=s(34677),J=s.n(H),$=s(64948);const ee=(0,b.createContext)("/"),{Provider:te}=ee,se=()=>(0,b.useContext)(ee);var ae=s(80700),ne=s.n(ae),le=s(75894);const re=["isTenant"],oe=(0,z.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:t,children:s}=e;const[n]=t,{apis:l,ajax:r}=n(),{apis:o,targetUrl:i,storeKeys:c,domain:d,afterLogin:m}=se(),u=Object.assign({},l.account,o),{message:h}=a.App.useApp(),p=(0,Y.useNavigate)(),[j]=(0,Y.useSearchParams)(),_=j.get("referer");return s({login:async e=>{let{isTenant:t}=e,s=(0,w.A)(e,re);const{data:a}=await r(J()({},u.login,{data:(0,q.A)((0,q.A)({},s),{},{password:ne()(s.password)})}));if(0!==a.code)return;if(10===a.data.status)return h.warning("\u8d26\u53f7\u6ca1\u6709\u521d\u59cb\u5316\uff0c\u8bf7\u8bbe\u7f6e\u4e00\u4e2a\u65b0\u7684\u5bc6\u7801\u540e\u91cd\u65b0\u767b\u5f55"),void p("/account/modify/".concat(s.email||s.phone).concat(_?"?referer=".concat(_):""));if(11===a.data.status)return void h.warning("\u8d26\u53f7\u88ab\u7981\u7528\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458");if(12===a.data.status)return void h.warning("\u8d26\u53f7\u88ab\u5173\u95ed\uff0c\u8bf7\u8054\u7cfb\u7ba1\u7406\u5458");let n=i||"/";if(_){const e=decodeURIComponent(_);let t=new URL(/http(s)?:/.test(e)?e:window.location.origin+e);t.searchParams.delete("referer"),Object.values(a.data).forEach(e=>e&&t.searchParams.delete(e.toUpperCase())),n=t.pathname+t.search}if(Object.keys(c).forEach(e=>{a.data[e]&&(0,le.setToken)(c[e],a.data[e],d)}),m){if(!1===await m({referer:n}))return}h.success("\u767b\u5f55\u6210\u529f"),p(n)}})}),ie=()=>{const{loginTitle:e,systemName:t,systemLogo:s,loginLeftInner:a,registerUrl:n,forgetUrl:l,accountType:r,afterLogin:o}=se();return(0,f.jsx)(N,{title:t,logo:s,leftInner:a,children:(0,f.jsx)(oe,{children:s=>{let{login:a}=s;return(0,f.jsx)(S,{title:e,systemName:t,registerUrl:n,forgetUrl:l,afterLogin:o,onSubmit:async e=>{await a(Object.assign({},e,{type:r}))}})}})})},ce=(0,z.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:t}=e;const[s]=t,{apis:n,ajax:l}=s(),{apis:r,accountType:o,loginUrl:i,registerTitle:c,loginLeftInner:d,systemName:m}=se(),u=P()(),{message:h}=a.App.useApp(),p=Object.assign({},n.account,r);return(0,f.jsx)(M,{type:o,loginUrl:i,title:c,systemName:m,validateCode:async e=>{const{data:t}=await l(J()({},p.validateCode,{data:e}));return 0!==t.code?{result:!1,errMsg:t.msg||"%s\u4e0d\u6b63\u786e"}:{result:!0}},topBanner:d,sendVerificationCode:async e=>{let{type:t,data:s}=e;const{data:a}=await l(J()({},"phone"===t?p.sendSMSCode:p.sendEmailCode,{data:{[t]:s}}));if(0!==a.code)return!1;h.success("\u9a8c\u8bc1\u7801\u5df2\u53d1\u9001\u81f3\u60a8\u7684".concat("phone"===t?"\u624b\u673a":"\u90ae\u7bb1","\uff0c\u8bf7\u67e5\u6536"))},onSubmit:async e=>{const t=ne()(e.password),{data:s}=await l(J()({},p.register,{data:{type:o,email:e.email,phone:e.phone,password:t,code:e.code}}));0===s.code&&(h.success("\u6ce8\u518c\u6210\u529f"),u(i))}})}),de=(0,z.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:t}=e;const[s]=t,{apis:a,ajax:n}=s(),{apis:l,loginUrl:r,loginLeftInner:o,systemName:i}=se(),c=J()({},a.account,l),d=new URLSearchParams(window.location.search).get("referer");return(0,f.jsx)(N,{leftInner:o,title:i,children:(0,f.jsx)(D,{loginUrl:r,onSubmit:(e,t)=>n(J()({},c.forgetPwd,{data:{email:e.email,referer:d}})).then(s=>{let{data:a}=s;0===a.code&&t&&t(e.email)})})})});var me=s(87558);const ue=()=>{const{loginUrl:e}=se();return(0,f.jsx)(Y.Navigate,{to:e})},he=(0,me.createWithFetch)({error:()=>(0,f.jsx)(ue,{})})(e=>{let{data:t,children:s}=e;return s(t)}),pe=(0,z.createWithRemoteLoader)({modules:["components-core:Global@usePreset"]})(e=>{let{remoteModules:t}=e;const[s]=t,{apis:n,ajax:l}=s(),{apis:r,accountType:o,loginUrl:i,loginLeftInner:c,systemName:d}=se(),m=(0,Y.useNavigate)(),[u]=(0,Y.useSearchParams)(),h=u.get("referer"),{message:p}=a.App.useApp(),j=Object.assign({},n.account,r),{token:_}=(0,Y.useParams)();return(0,f.jsx)(he,(0,q.A)((0,q.A)({},J()({},j.parseResetToken,{data:{token:decodeURIComponent(_)}})),{},{children:e=>{let{name:t}=e;return(0,f.jsx)(X,{loginUrl:i,type:o,account:t,topBanner:c,systemName:d,onSubmit:async e=>{const t=ne()(e.newPwd),{data:s}=await l(J()({},j.resetPassword,{data:{token:_,email:e.email,newPwd:t,confirmPwd:t}}));0===s.code&&(p.success("\u91cd\u7f6e\u5bc6\u7801\u6210\u529f"),m("".concat(i).concat(h?"?referer=".concat(encodeURIComponent(h)):"")))}})}}))}),je=(0,z.createWithRemoteLoader)({modules:["component-core:Global@usePreset"]})(e=>{let{remoteModules:t}=e;const[s]=t,{apis:n,ajax:l}=s(),{apis:r,loginUrl:o,accountType:i,loginLeftInner:c,systemName:d}=se(),{account:m}=(0,Y.useParams)(),[u]=(0,Y.useSearchParams)(),h=u.get("referer"),p=P()(),{message:j}=a.App.useApp(),_=Object.assign({},n.account,r);return(0,f.jsx)(Q,{type:i,account:m,topBanner:c,systemName:d,onSubmit:async e=>{const t=ne()(e.newPwd),{data:s}=await l(J()({},_.modifyPassword,{data:{email:e.email,oldPwd:ne()(e.oldPwd),newPwd:t,confirmPwd:t}}));0===s.code&&(j.success("\u91cd\u7f6e\u5bc6\u7801\u6210\u529f"),p("".concat(o).concat(h?"?referer=".concat(encodeURIComponent(h)):"")))}})}),_e="style_layout-row__WDBZP__ztRFh",ge="style_layout-inner__3pgxa__ztRFh",xe="style_layout-inner-wrapper__XoEQK__ztRFh",ye=["className"],fe=["baseUrl"],Ne=(0,f.jsx)($.default,{}),we=()=>(0,f.jsx)("div",{className:l()(_e,"account-layout"),children:(0,f.jsx)("div",{className:ge,children:(0,f.jsx)("div",{className:xe,children:(0,f.jsx)(Y.Outlet,{})})})}),Re=e=>{let{className:t}=e,s=(0,w.A)(e,ye);const a=J()({},{baseUrl:"",accountType:"email",systemLogo:null,systemName:"Kne Union SaaS System",loginTitle:"\u767b\u5f55",registerTitle:"\u6ce8\u518c",loginLeftInner:Ne,loginPath:"login",registerPath:"register",forgetPath:"forget",resetPasswordPath:"reset-password",modifyPath:"modify",isTenant:!1,storeKeys:{token:"X-User-Token"}},s),{baseUrl:n}=a,l=(0,w.A)(a,fe);return(0,f.jsx)(te,{value:(0,q.A)((0,q.A)({baseUrl:n},l),{},{loginUrl:"".concat(n,"/").concat(l.loginPath),registerUrl:"".concat(n,"/").concat(l.registerPath),forgetUrl:"".concat(n,"/").concat(l.forgetPath)}),children:(0,f.jsx)("div",{className:t,children:(0,f.jsx)(Y.Routes,{children:(0,f.jsxs)(Y.Route,{element:(0,f.jsx)(we,{}),children:[(0,f.jsx)(Y.Route,{index:!0,element:(0,f.jsx)(Y.Navigate,{to:l.loginUrl})}),(0,f.jsx)(Y.Route,{path:l.loginPath,element:(0,f.jsx)(ie,{})}),(0,f.jsx)(Y.Route,{path:l.registerPath,element:(0,f.jsx)(ce,{})}),(0,f.jsx)(Y.Route,{path:l.forgetPath,element:(0,f.jsx)(de,{})}),(0,f.jsx)(Y.Route,{path:"".concat(l.resetPasswordPath,"/:token"),element:(0,f.jsx)(pe,{})}),(0,f.jsx)(Y.Route,{path:"".concat(l.modifyPath,"/:account"),element:(0,f.jsx)(je,{})})]})})})})}},64948(e,t,s){s.r(t),s.d(t,{default:()=>h});var a=s(89379),n=s(80045),l=s(87558),r=s.n(l),o=s(98139),i=s.n(o);const c="style_login-illustration__d3Hvd__ztRFh";var d=s(70579);const m=["type","className"],u={hello:()=>Promise.all([s.e(3050),s.e(5084)]).then(s.bind(s,75084)).then(e=>e.default)},h=e=>{let{type:t,className:s}=e,l=(0,n.A)(e,m);return(0,d.jsx)("div",{className:i()(c,s),children:(0,d.jsx)(r(),{loader:e=>{let{params:t}=e;return(u[t.type]||u.hello)()},params:{type:t},render:e=>{let{data:t}=e;return(0,d.jsx)(t,(0,a.A)({},l))}})})}}}]);
|
|
2
|
+
//# sourceMappingURL=7011.9fac463e.chunk.js.map
|
|
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,OAAMwF,EAASM,EAAOzL,OAASmL,EAASC,UAC3DK,OAAQ,CAAEzL,QACV0L,OAAQrC,IAAuB,IAApBjG,KAAMuI,GAAQtC,EACvB,OAAOzK,EAAAA,EAAAA,KAAC+M,GAAMvH,EAAAA,EAAAA,GAAA,GAAKF,S","sources":["webpack://@kne-components/components-admin/./src/components/Account/LoginOuterContainer/style.module.scss?fa9e","webpack://@kne-components/components-admin/./src/components/Account/style.module.scss?985b","components/Account/LoginOuterContainer/index.js","webpack://@kne-components/components-admin/./src/components/Account/Login/style.module.scss?7feb","components/Account/Login/index.js","webpack://@kne-components/components-admin/./src/components/Account/Register/style.module.scss?6ae0","components/Account/Register/index.js","components/Account/Modify/index.js","webpack://@kne-components/components-admin/./src/components/Account/ForgetByEmail/style.module.scss?225c","components/Account/ForgetByEmail/index.js","components/Account/ResetPassword/index.js","components/Account/Account/context.js","components/Account/Account/DoLogin.js","components/Account/Account/Login.js","components/Account/Account/Register.js","components/Account/Account/Forget.js","components/Account/Account/ResetPassword.js","components/Account/Account/Modify.js","webpack://@kne-components/components-admin/./src/components/Account/Account/style.module.scss?ec33","components/Account/Account/index.js","webpack://@kne-components/components-admin/./src/components/LoginIllustration/style.module.scss?f6c7","components/LoginIllustration/index.js"],"sourcesContent":["// extracted by mini-css-extract-plugin\nexport default {\"out-left\":\"style_out-left__wOmRS__ztRFh\",\"out-right\":\"style_out-right__29XpV__ztRFh\",\"out-right-inner\":\"style_out-right-inner__DZjbq__ztRFh\",\"container-left-content\":\"style_container-left-content__2FtGT__ztRFh\",\"container-left-logo\":\"style_container-left-logo__fR8Ed__ztRFh\",\"container-left-title\":\"style_container-left-title__vg7KF__ztRFh\",\"container-left-inner\":\"style_container-left-inner__AZyjW__ztRFh\"};","// extracted by mini-css-extract-plugin\nexport default {\"out-container\":\"style_out-container__iqnkT__ztRFh\",\"top-banner\":\"style_top-banner__j8+SV__ztRFh\",\"title\":\"style_title__Pn7Uw__ztRFh\",\"back-link\":\"style_back-link__TepOq__ztRFh\",\"reset-new-desc\":\"style_reset-new-desc__sdLt-__ztRFh\",\"form-inner\":\"style_form-inner__AnfOK__ztRFh\",\"top-banner-inner\":\"style_top-banner-inner__-62z0__ztRFh\",\"out-inner\":\"style_out-inner__olZqh__ztRFh\"};","import { Row, Col, Flex } from 'antd';\nimport classnames from 'classnames';\nimport style from './style.module.scss';\nimport commonStyle from '../style.module.scss';\n\nconst LoginOuterContainer = ({ className, title, logo, leftInner , children }) => {\n return (\n <div className={classnames(className, commonStyle['out-container'], 'account-box')}>\n <div className={commonStyle['top-banner']}>\n <div className={commonStyle['top-banner-inner']}>{title}</div>\n {leftInner}\n </div>\n <div className={commonStyle['out-inner']}>\n <Row wrap={false}>\n <Col className={classnames(style['out-left'], 'container-left')}>\n <Flex gap={16} align=\"center\" className={classnames(style['container-left-content'], 'container-left-content')}>\n {logo && <img className={classnames(style['container-left-logo'], 'container-left-logo')} src={logo} alt=\"logo\" />}\n {title && <div className={classnames(style['container-left-title'], 'container-left-title')}>{title}</div>}\n </Flex>\n {leftInner && <div className={classnames(style['container-left-inner'], 'container-left-inner')}>{leftInner}</div>}\n </Col>\n <Col className={classnames(style['out-right'], 'container-right')} flex={1}>\n <div className={classnames(style['out-right-inner'], 'container-right-inner')}>{children}</div>\n </Col>\n </Row>\n </div>\n </div>\n );\n};\n\nexport default LoginOuterContainer;\n","// extracted by mini-css-extract-plugin\nexport default {\"forget-button\":\"style_forget-button__4NY6I__ztRFh\"};","import style from './style.module.scss';\nimport { Checkbox, Col, Row, Space, Button } from 'antd';\nimport { useState } from 'react';\nimport useNavigate from '@kne/use-refer-navigate';\nimport { createWithRemoteLoader } from '@kne/remote-loader';\nimport commonStyle from '../style.module.scss';\n\nexport const LOGIN_REMEMBER_ACCOUNT = 'LOGIN_REMEMBER_ACCOUNT';\nconst Login = createWithRemoteLoader({\n modules: ['component-core:FormInfo']\n})(({ remoteModules, ...p }) => {\n const { title, registerUrl, forgetUrl, type, onSubmit } = Object.assign(\n {},\n {\n title: '登录',\n type: 'email',\n registerUrl: '',\n forgetUrl: ''\n },\n p\n );\n const [rememberUser, setRememberUser] = useState(false);\n const navigate = useNavigate();\n const [FormInfo] = remoteModules;\n const { Form, SubmitButton, fields } = FormInfo;\n const { Input } = fields;\n return (\n <Form\n type=\"inner\"\n size=\"large\"\n enterSubmit\n onSubmit={formData => {\n if (rememberUser) {\n window.localStorage.setItem(LOGIN_REMEMBER_ACCOUNT, formData[type]);\n } else {\n window.localStorage.removeItem(LOGIN_REMEMBER_ACCOUNT);\n }\n onSubmit?.(formData);\n }}>\n <Space className=\"space-full\" size={38} direction=\"vertical\">\n <div className={commonStyle['title']}>{title}</div>\n <div>\n {type === 'email' && <Input name=\"email\" label=\"邮箱\" rule=\"REQ EMAIL\" />}\n {type === 'phone' && <Input name=\"phone\" label=\"手机\" rule=\"REQ TEL\" />}\n <Input.Password type=\"password\" name=\"password\" label=\"密码\" rule=\"REQ LEN-6-50\" />\n </div>\n </Space>\n <Space className=\"space-full\" size={10} direction=\"vertical\">\n <SubmitButton block size=\"large\">\n 登录\n </SubmitButton>\n <Row justify=\"space-between\">\n <Col>\n <Checkbox\n checked={rememberUser}\n onChange={e => {\n setRememberUser(e.target.checked);\n }}>\n 记住账号\n </Checkbox>\n </Col>\n <Col>\n {registerUrl && (\n <Button\n className={style['forget-button']}\n type=\"link\"\n size=\"small\"\n onClick={() => {\n navigate(registerUrl);\n }}>\n 注册\n </Button>\n )}\n {forgetUrl && (\n <Button\n className={style['forget-button']}\n type=\"link\"\n size=\"small\"\n onClick={() => {\n navigate(forgetUrl);\n }}>\n 忘记密码\n </Button>\n )}\n </Col>\n </Row>\n </Space>\n </Form>\n );\n});\n\nexport default Login;\n","// extracted by mini-css-extract-plugin\nexport default {\"code-field\":\"style_code-field__NvD9i__ztRFh\",\"get-code\":\"style_get-code__j4NF-__ztRFh\"};","import { useRef } from 'react';\nimport { Button, Col, Row, Space } from 'antd';\nimport { createWithRemoteLoader } from '@kne/remote-loader';\nimport CaptchaButton from '@kne/captcha-button';\nimport classnames from 'classnames';\nimport get from 'lodash/get';\nimport commonStyle from '../style.module.scss';\nimport { LeftOutlined } from '@ant-design/icons';\nimport useNavigate from '@kne/use-refer-navigate';\nimport style from './style.module.scss';\n\nconst Register = createWithRemoteLoader({\n modules: ['components-core:FormInfo']\n})(({ remoteModules, ...p }) => {\n const { onSubmit, title, systemName, type, sendVerificationCode, loginUrl, topBanner, className } = Object.assign(\n {},\n {\n title: '注册',\n type: 'email',\n loginUrl: '',\n sendVerificationCode: () => {\n console.warn('传入sendVerificationCode属性发送验证码');\n }\n },\n p\n );\n const formRef = useRef(null);\n const [FormInfo] = remoteModules;\n const { Form, SubmitButton, fields } = FormInfo;\n const { Input, PhoneNumber } = fields;\n const navigate = useNavigate();\n return (\n <div className={classnames(commonStyle['out-container'], className)}>\n {topBanner && (\n <div className={commonStyle['top-banner']}>\n <div className={commonStyle['top-banner-inner']}>{systemName}</div>\n {topBanner}\n </div>\n )}\n <div className={commonStyle['out-inner']}>\n <Form type=\"inner\" size=\"large\" ref={formRef} onSubmit={onSubmit}>\n <Button\n className={commonStyle['back-link']}\n type=\"link\"\n size=\"large\"\n icon={<LeftOutlined />}\n onClick={() => {\n navigate(loginUrl);\n }}>\n 已有账户,去登录\n </Button>\n <Space className={classnames(commonStyle['form-inner'])} size={38} direction=\"vertical\">\n <div className={commonStyle['title']}>{title}</div>\n <div>\n {type === 'phone' && <PhoneNumber name=\"phone\" label=\"手机\" rule=\"REQ\" codeType=\"code\" realtime interceptor=\"phone-number-string\" />}\n {type === 'email' && <Input name=\"email\" label=\"邮箱\" rule=\"REQ EMAIL\" realtime />}\n <Row align={'bottom'} justify={'space-between'}>\n <Col className={style['code-field']}>\n <Input name=\"code\" label=\"验证码\" rule=\"REQ LEN-6 VALIDATE_CODE\" />\n </Col>\n <Col>\n <CaptchaButton\n className={style['get-code']}\n type={'link'}\n target={{ name: type }}\n onClick={() => sendVerificationCode({ type, data: get(formRef.current.data, type) })}>\n 发送验证码\n </CaptchaButton>\n </Col>\n </Row>\n <Input.Password name=\"password\" label=\"密码\" rule=\"REQ LEN-6-50\" />\n <Input.Password name=\"repeatPwd\" label=\"重复密码\" rule=\"REQ LEN-6-50 REPEAT-password\" />\n </div>\n <SubmitButton block size=\"large\">\n 注册\n </SubmitButton>\n </Space>\n </Form>\n </div>\n </div>\n );\n});\n\nexport default Register;\n","import commonStyle from '../style.module.scss';\nimport classnames from 'classnames';\nimport { Space } from 'antd';\nimport { createWithRemoteLoader } from '@kne/remote-loader';\n\nconst Modify = createWithRemoteLoader({\n modules: ['components-core:FormInfo']\n})(({ remoteModules, ...p }) => {\n const { className, title, systemName, isReset, account, onSubmit, type, header, topBanner } = Object.assign(\n {},\n {\n title: '修改密码',\n type: 'email',\n header: null\n },\n p\n );\n const [FormInfo] = remoteModules;\n const { Form, SubmitButton, fields } = FormInfo;\n const { Input } = fields;\n\n return (\n <div className={classnames(commonStyle['out-container'], className)}>\n {topBanner && (\n <div className={commonStyle['top-banner']}>\n <div className={commonStyle['top-banner-inner']}>{systemName}</div>\n {topBanner}\n </div>\n )}\n <div className={commonStyle['out-inner']}>\n {header}\n <Form type=\"inner\" size=\"large\" onSubmit={onSubmit}>\n <Space className={classnames(commonStyle['form-inner'])} size={38} direction=\"vertical\">\n <div className={commonStyle['title']}>{title}</div>\n <div>\n {type === 'email' && <Input name=\"email\" label=\"邮箱账号\" disabled defaultValue={account && decodeURIComponent(account)} />}\n {type === 'phone' && <Input name=\"phone\" label=\"手机账号\" disabled defaultValue={account && decodeURIComponent(account)} />}\n {isReset ? null : <Input.Password name=\"oldPwd\" label=\"原密码\" rule=\"REQ LEN-6-50\" />}\n <Input.Password name=\"newPwd\" label=\"新密码\" rule=\"REQ LEN-6-50\" />\n <Input.Password name=\"repeatNewPwd\" label=\"重复密码\" rule=\"REQ LEN-6-50 REPEAT-newPwd\" />\n </div>\n <SubmitButton block size=\"large\">\n 提交\n </SubmitButton>\n </Space>\n </Form>\n </div>\n </div>\n );\n});\n\nexport default Modify;\n","// extracted by mini-css-extract-plugin\nexport default {\"forget-input\":\"style_forget-input__psj0u__ztRFh\",\"success-info\":\"style_success-info__zKcsw__ztRFh\",\"main\":\"style_main__GAYFL__ztRFh\"};","import commonStyle from '../style.module.scss';\nimport {createWithRemoteLoader} from '@kne/remote-loader';\nimport useNavigate from '@kne/use-refer-navigate';\nimport classnames from 'classnames';\nimport {LeftOutlined} from '@ant-design/icons';\nimport {Space, Button} from 'antd';\nimport {useState} from 'react';\nimport style from './style.module.scss';\n\nconst Forget = createWithRemoteLoader({\n modules: ['components-core:FormInfo']\n})(({remoteModules, ...p}) => {\n const {title, loginUrl, onSubmit} = Object.assign({}, {\n title: '忘记密码', loginUrl: ''\n }, p);\n const [resultEmail, setResultEmail] = useState('');\n const navigate = useNavigate();\n const [FormInfo] = remoteModules;\n const {Form, fields, SubmitButton} = FormInfo;\n const {Input} = fields;\n\n const header = <Button className={commonStyle['back-link']} type=\"link\" size=\"large\" icon={<LeftOutlined/>}\n onClick={() => {\n navigate(loginUrl);\n }}>返回登录</Button>;\n if (resultEmail) {\n return <>\n {header}\n <Space className={classnames(style['main'], 'space-full')} direction=\"vertical\" size={40}>\n <div className={commonStyle['title']}>{title}</div>\n <div className={style['success-info']}>\n <div>重置链接已发送至{resultEmail}的邮箱中,</div>\n <div>请在3分钟内完成密码重置,若链接失效请重新申请。</div>\n </div>\n </Space>\n </>\n }\n\n return <Form type=\"inner\"\n size=\"large\"\n onSubmit={formData => {\n onSubmit && onSubmit(formData, () => {\n setResultEmail(formData.email);\n });\n }}>\n {header}\n <Space className={classnames(style['main'], 'space-full')} direction=\"vertical\" size={40}>\n <div className={commonStyle['title']}>{title}</div>\n <Space className={classnames('space-full', style['forget-input'])} direction=\"vertical\">\n <Input name=\"email\" label=\"邮箱账号\" rule=\"REQ EMAIL\"/>\n </Space>\n <Space className=\"space-full\" direction=\"vertical\">\n <SubmitButton block size=\"large\">\n 下一步\n </SubmitButton>\n </Space>\n </Space>\n </Form>\n});\n\nexport default Forget;\n","import Modify from '../Modify';\nimport commonStyle from '../style.module.scss';\nimport { Button } from 'antd';\nimport useNavigate from '@kne/use-refer-navigate';\nimport { LeftOutlined } from '@ant-design/icons';\n\nconst ResetPassword = p => {\n const { type, loginUrl, title, systemName, ...props } = Object.assign(\n {},\n {\n type: 'email',\n title: '重置登录密码',\n loginUrl: ''\n },\n p\n );\n const navigate = useNavigate();\n return (\n <Modify\n {...props}\n type={type}\n title={title}\n systemName={systemName}\n isReset\n header={\n <Button\n className={commonStyle['back-link']}\n type=\"link\"\n size=\"large\"\n icon={<LeftOutlined />}\n onClick={() => {\n navigate(loginUrl);\n }}>\n 已有账户,去登录\n </Button>\n }\n />\n );\n};\n\nexport default ResetPassword;\n","import { createContext, useContext } from 'react';\n\nconst context = createContext('/');\n\nexport const { Provider } = context;\n\nexport const useBaseUrl = baseUrlProp => {\n const target = useContext(context);\n return baseUrlProp || target?.baseUrl;\n};\n\nexport const useProps = () => {\n return useContext(context);\n};\n\nexport default context;\n","import { createWithRemoteLoader } from '@kne/remote-loader';\nimport { useSearchParams, useNavigate } from 'react-router-dom';\nimport merge from 'lodash/merge';\nimport { App } from 'antd';\nimport md5 from 'md5';\nimport { useProps } from './context';\nimport { setToken } from '@kne/token-storage';\n\nconst DoLogin = createWithRemoteLoader({\n modules: ['component-core:Global@usePreset']\n})(({ remoteModules, children }) => {\n const [usePreset] = remoteModules;\n const { apis: presetApis, ajax } = usePreset();\n const { apis, targetUrl, storeKeys, domain, afterLogin } = useProps();\n const account = Object.assign({}, presetApis.account, apis);\n const { message } = App.useApp();\n const navigate = useNavigate();\n const [searchParams] = useSearchParams();\n const referer = searchParams.get('referer');\n return children({\n login: async ({ isTenant, ...formData }) => {\n const { data: resData } = await ajax(\n merge({}, account.login, {\n data: {\n ...formData,\n password: md5(formData.password)\n }\n })\n );\n\n if (resData.code !== 0) {\n return;\n }\n\n if (resData.data.status === 10) {\n message.warning('账号没有初始化,请设置一个新的密码后重新登录');\n navigate(`/account/modify/${formData.email || formData.phone}${referer ? `?referer=${referer}` : ''}`);\n return;\n }\n\n if (resData.data.status === 11) {\n message.warning('账号被禁用,请联系管理员');\n return;\n }\n\n if (resData.data.status === 12) {\n message.warning('账号被关闭,请联系管理员');\n return;\n }\n\n let refererHref = targetUrl || '/';\n\n if (referer) {\n const _referer = decodeURIComponent(referer);\n let obj = new URL(/http(s)?:/.test(_referer) ? _referer : window.location.origin + _referer);\n obj.searchParams.delete('referer');\n Object.values(resData.data).forEach(key => key && obj.searchParams.delete(key.toUpperCase()));\n refererHref = obj.pathname + obj.search;\n }\n\n Object.keys(storeKeys).forEach(key => {\n resData.data[key] && setToken(storeKeys[key], resData.data[key], domain);\n });\n\n if (afterLogin) {\n const data = await afterLogin({ referer: refererHref });\n if (data === false) {\n return;\n }\n }\n message.success('登录成功');\n navigate(refererHref);\n }\n });\n});\n\nexport default DoLogin;\n","import LoginOuterContainer from '../LoginOuterContainer';\nimport DoLogin from './DoLogin';\nimport { useProps } from './context';\nimport LoginComponent from '../Login';\n\nconst Login = () => {\n const { loginTitle, systemName, systemLogo, loginLeftInner, registerUrl, forgetUrl, accountType, afterLogin } = useProps();\n return (\n <LoginOuterContainer title={systemName} logo={systemLogo} leftInner={loginLeftInner}>\n <DoLogin>\n {({ login }) => {\n return (\n <LoginComponent\n title={loginTitle}\n systemName={systemName}\n registerUrl={registerUrl}\n forgetUrl={forgetUrl}\n afterLogin={afterLogin}\n onSubmit={async formData => {\n await login(Object.assign({}, formData, { type: accountType }));\n }}\n />\n );\n }}\n </DoLogin>\n </LoginOuterContainer>\n );\n};\n\nexport default Login;\n","import RegisterComponent from '../Register';\nimport { useProps } from './context';\nimport useNavigate from '@kne/use-refer-navigate';\nimport { createWithRemoteLoader } from '@kne/remote-loader';\nimport merge from 'lodash/merge';\nimport md5 from 'md5';\nimport { App } from 'antd';\n\nconst Register = createWithRemoteLoader({\n modules: ['component-core:Global@usePreset']\n})(({ remoteModules }) => {\n const [usePreset] = remoteModules;\n const { apis: presetApis, ajax } = usePreset();\n const { apis, accountType, loginUrl, registerTitle, loginLeftInner, systemName } = useProps();\n const navigate = useNavigate();\n const { message } = App.useApp();\n const account = Object.assign({}, presetApis.account, apis);\n\n return (\n <RegisterComponent\n type={accountType}\n loginUrl={loginUrl}\n title={registerTitle}\n systemName={systemName}\n validateCode={async data => {\n const { data: resData } = await ajax(\n merge({}, account.validateCode, {\n data\n })\n );\n if (resData.code !== 0) {\n return { result: false, errMsg: resData.msg || '%s不正确' };\n }\n\n return { result: true };\n }}\n topBanner={loginLeftInner}\n sendVerificationCode={async ({ type, data }) => {\n const { data: resData } = await ajax(\n merge({}, type === 'phone' ? account.sendSMSCode : account.sendEmailCode, {\n data: { [type]: data }\n })\n );\n if (resData.code !== 0) {\n return false;\n }\n message.success(`验证码已发送至您的${type === 'phone' ? '手机' : '邮箱'},请查收`);\n }}\n onSubmit={async formData => {\n const newPwd = md5(formData.password);\n const { data: resData } = await ajax(\n merge({}, account.register, {\n data: {\n type: accountType,\n email: formData.email,\n phone: formData.phone,\n password: newPwd,\n code: formData.code\n }\n })\n );\n if (resData.code !== 0) {\n return;\n }\n message.success('注册成功');\n navigate(loginUrl);\n }}\n />\n );\n});\n\nexport default Register;\n","import LoginOuterContainer from '../LoginOuterContainer';\nimport ForgetByEmailComponent from '../ForgetByEmail';\nimport merge from 'lodash/merge';\nimport { createWithRemoteLoader } from '@kne/remote-loader';\nimport { useProps } from './context';\n\nconst Forget = createWithRemoteLoader({\n modules: ['component-core:Global@usePreset']\n})(({ remoteModules }) => {\n const [usePreset] = remoteModules;\n const { apis: presetApis, ajax } = usePreset();\n const { apis, loginUrl, loginLeftInner, systemName } = useProps();\n const account = merge({}, presetApis.account, apis);\n const referer = new URLSearchParams(window.location.search).get('referer');\n return (\n <LoginOuterContainer leftInner={loginLeftInner} title={systemName}>\n <ForgetByEmailComponent\n loginUrl={loginUrl}\n onSubmit={(formData, success) => {\n return ajax(\n merge({}, account.forgetPwd, {\n data: { email: formData.email, referer }\n })\n ).then(({ data }) => {\n if (data.code === 0) {\n success && success(formData.email);\n }\n });\n }}\n />\n </LoginOuterContainer>\n );\n});\n\nexport default Forget;\n","import { Navigate, useNavigate, useParams, useSearchParams } from 'react-router-dom';\nimport { createWithFetch } from '@kne/react-fetch';\nimport { createWithRemoteLoader } from '@kne/remote-loader';\nimport ResetPasswordComponent from '../ResetPassword';\nimport { useProps } from './context';\nimport { App } from 'antd';\nimport merge from 'lodash/merge';\nimport md5 from 'md5';\n\nconst NavigateToLogin = () => {\n const { loginUrl } = useProps();\n return <Navigate to={loginUrl} />;\n};\n\nconst AccountFormToken = createWithFetch({\n error: () => <NavigateToLogin />\n})(({ data, children }) => {\n return children(data);\n});\n\nconst ResetPassword = createWithRemoteLoader({\n modules: ['components-core:Global@usePreset']\n})(({ remoteModules }) => {\n const [usePreset] = remoteModules;\n const { apis: presetApis, ajax } = usePreset();\n const { apis, accountType, loginUrl, loginLeftInner, systemName } = useProps();\n const navigate = useNavigate();\n const [searchParams] = useSearchParams();\n const referer = searchParams.get('referer');\n const { message } = App.useApp();\n const account = Object.assign({}, presetApis.account, apis);\n const { token } = useParams();\n return (\n <AccountFormToken\n {...merge({}, account.parseResetToken, {\n data: {\n token: decodeURIComponent(token)\n }\n })}>\n {({ name }) => {\n return (\n <ResetPasswordComponent\n loginUrl={loginUrl}\n type={accountType}\n account={name}\n topBanner={loginLeftInner}\n systemName={systemName}\n onSubmit={async formData => {\n const newPwd = md5(formData.newPwd);\n const { data: resData } = await ajax(\n merge({}, account.resetPassword, {\n data: {\n token,\n email: formData.email,\n newPwd: newPwd,\n confirmPwd: newPwd\n }\n })\n );\n if (resData.code !== 0) {\n return;\n }\n message.success('重置密码成功');\n navigate(`${loginUrl}${referer ? `?referer=${encodeURIComponent(referer)}` : ''}`);\n }}\n />\n );\n }}\n </AccountFormToken>\n );\n});\n\nexport default ResetPassword;\n","import ModifyComponent from '../Modify';\nimport { useParams, useSearchParams } from 'react-router-dom';\nimport { useProps } from './context';\nimport useNavigate from '@kne/use-refer-navigate';\nimport { createWithRemoteLoader } from '@kne/remote-loader';\nimport merge from 'lodash/merge';\nimport md5 from 'md5';\nimport { App } from 'antd';\n\nconst Modify = createWithRemoteLoader({\n modules: ['component-core:Global@usePreset']\n})(({ remoteModules }) => {\n const [usePreset] = remoteModules;\n const { apis: presetApis, ajax } = usePreset();\n const { apis, loginUrl, accountType, loginLeftInner, systemName } = useProps();\n const { account: accountValue } = useParams();\n const [searchParams] = useSearchParams();\n const referer = searchParams.get('referer');\n const navigate = useNavigate();\n const { message } = App.useApp();\n const account = Object.assign({}, presetApis.account, apis);\n return (\n <ModifyComponent\n type={accountType}\n account={accountValue}\n topBanner={loginLeftInner}\n systemName={systemName}\n onSubmit={async formData => {\n const newPwd = md5(formData.newPwd);\n const { data: resData } = await ajax(\n merge({}, account.modifyPassword, {\n data: {\n email: formData.email,\n oldPwd: md5(formData.oldPwd),\n newPwd: newPwd,\n confirmPwd: newPwd\n }\n })\n );\n if (resData.code !== 0) {\n return;\n }\n message.success('重置密码成功');\n navigate(`${loginUrl}${referer ? `?referer=${encodeURIComponent(referer)}` : ''}`);\n }}\n />\n );\n});\n\nexport default Modify;\n","// extracted by mini-css-extract-plugin\nexport default {\"layout-row\":\"style_layout-row__WDBZP__ztRFh\",\"layout-inner\":\"style_layout-inner__3pgxa__ztRFh\",\"layout-inner-wrapper\":\"style_layout-inner-wrapper__XoEQK__ztRFh\",\"language\":\"style_language__pn8jJ__ztRFh\"};","import { Navigate, Outlet, Route, Routes } from 'react-router-dom';\nimport classnames from 'classnames';\nimport merge from 'lodash/merge';\nimport LoginIllustration from '@components/LoginIllustration';\nimport { Provider } from './context';\nimport Login from './Login';\nimport Register from './Register';\nimport Forget from './Forget';\nimport ResetPassword from './ResetPassword';\nimport Modify from './Modify';\nimport style from './style.module.scss';\n\nconst defaultLeftInner = <LoginIllustration />;\n\nconst Layout = () => {\n return (\n <div className={classnames(style['layout-row'], 'account-layout')}>\n <div className={style['layout-inner']}>\n <div className={style['layout-inner-wrapper']}>\n <Outlet />\n </div>\n </div>\n </div>\n );\n};\n\nconst Account = ({ className, ...p }) => {\n const { baseUrl, ...props } = merge(\n {},\n {\n baseUrl: '',\n accountType: 'email',\n systemLogo: null,\n systemName: 'Kne Union SaaS System',\n loginTitle: '登录',\n registerTitle: '注册',\n loginLeftInner: defaultLeftInner,\n loginPath: 'login',\n registerPath: 'register',\n forgetPath: 'forget',\n resetPasswordPath: 'reset-password',\n modifyPath: 'modify',\n isTenant: false,\n storeKeys: {\n token: 'X-User-Token'\n }\n },\n p\n );\n\n return (\n <Provider\n value={{\n baseUrl,\n ...props,\n loginUrl: `${baseUrl}/${props.loginPath}`,\n registerUrl: `${baseUrl}/${props.registerPath}`,\n forgetUrl: `${baseUrl}/${props.forgetPath}`\n }}>\n <div className={className}>\n <Routes>\n <Route element={<Layout />}>\n <Route index element={<Navigate to={props.loginUrl} />} />\n <Route path={props.loginPath} element={<Login />} />\n <Route path={props.registerPath} element={<Register />} />\n <Route path={props.forgetPath} element={<Forget />} />\n <Route path={`${props.resetPasswordPath}/:token`} element={<ResetPassword />} />\n <Route path={`${props.modifyPath}/:account`} element={<Modify />} />\n </Route>\n </Routes>\n </div>\n </Provider>\n );\n};\n\nexport default Account;\n","// extracted by mini-css-extract-plugin\nexport default {\"login-illustration\":\"style_login-illustration__d3Hvd__ztRFh\"};","import Fetch from '@kne/react-fetch';\nimport classnames from 'classnames';\nimport style from './style.module.scss';\n\nconst resource = {\n hello: () => import('./Hello').then(module => module.default)\n};\n\nconst LoginIllustration = ({ type, className, ...props }) => {\n return (\n <div className={classnames(style['login-illustration'], className)}>\n <Fetch\n loader={({ params }) => (resource[params.type] || resource.hello)()}\n params={{ type }}\n render={({ data: Player }) => {\n return <Player {...props} />;\n }}\n />\n </div>\n );\n};\n\nexport default LoginIllustration;\n"],"names":["_ref","className","title","logo","leftInner","children","_jsxs","classnames","commonStyle","_jsx","Row","wrap","Col","style","Flex","gap","align","src","alt","flex","LOGIN_REMEMBER_ACCOUNT","createWithRemoteLoader","modules","remoteModules","p","_objectWithoutProperties","_excluded","registerUrl","forgetUrl","type","onSubmit","Object","assign","rememberUser","setRememberUser","useState","navigate","useNavigate","FormInfo","Form","SubmitButton","fields","Input","size","enterSubmit","formData","window","localStorage","setItem","removeItem","Space","direction","name","label","rule","Password","block","justify","Checkbox","checked","onChange","e","target","Button","onClick","systemName","sendVerificationCode","loginUrl","topBanner","console","warn","formRef","useRef","PhoneNumber","ref","icon","LeftOutlined","codeType","realtime","interceptor","CaptchaButton","data","get","current","isReset","account","header","disabled","defaultValue","decodeURIComponent","resultEmail","setResultEmail","_Fragment","email","_Object$assign","props","Modify","_objectSpread","context","createContext","Provider","useProps","useContext","usePreset","apis","presetApis","ajax","targetUrl","storeKeys","domain","afterLogin","message","App","useApp","searchParams","useSearchParams","referer","login","async","isTenant","_ref2","resData","merge","password","md5","code","status","warning","concat","phone","refererHref","_referer","obj","URL","test","location","origin","delete","values","forEach","key","toUpperCase","pathname","search","keys","setToken","success","Login","loginTitle","systemLogo","loginLeftInner","accountType","LoginOuterContainer","DoLogin","LoginComponent","registerTitle","RegisterComponent","validateCode","result","errMsg","msg","sendSMSCode","sendEmailCode","newPwd","register","URLSearchParams","ForgetByEmailComponent","forgetPwd","then","NavigateToLogin","Navigate","to","AccountFormToken","createWithFetch","error","token","useParams","parseResetToken","_ref3","ResetPasswordComponent","resetPassword","confirmPwd","encodeURIComponent","accountValue","ModifyComponent","modifyPassword","oldPwd","defaultLeftInner","LoginIllustration","Layout","Outlet","_merge","baseUrl","loginPath","registerPath","forgetPath","resetPasswordPath","modifyPath","_excluded2","value","Routes","Route","element","index","path","Register","Forget","ResetPassword","resource","hello","module","default","Fetch","loader","params","render","Player"],"ignoreList":[],"sourceRoot":""}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";(self.webpackChunk_kne_components_components_admin=self.webpackChunk_kne_components_components_admin||[]).push([[628,8247],{20628(e,t,n){n.r(t),n.d(t,{Global:()=>C,GlobalSetting:()=>P,GlobalValue:()=>h,Preset:()=>p,PresetProvider:()=>d,Provider:()=>s,SelectProvider:()=>f,context:()=>u,createContext:()=>l,default:()=>u,presetContext:()=>i,selectorContext:()=>b,useContext:()=>c,useGlobalContext:()=>a,useGlobalValue:()=>m,usePreset:()=>v,useSelectorContext:()=>x});var r=n(73884),o=n.n(r);const l=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=(0,r.createContext)(e),{Provider:n,Consumer:o}=t;return{context:t,Provider:n,Consumer:o,useContext:()=>(0,r.useContext)(t)}},u=l({}),{Provider:s,useContext:c}=u,a=c,i=l({}),{Provider:d,useContext:v}=i,b=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{context:t,Provider:n,useContext:u}=l(e);return{context:t,Provider:e=>{let{value:t,children:l}=e;const u=(0,r.useRef)();let s=u.current;if(!s){const e=new Set;s={value:t,subscribe:t=>(e.add(t),()=>e.delete(t)),notify:()=>e.forEach(e=>e())},u.current=s}return(0,r.useEffect)(()=>{Object.is(s.value,t)||(s.value=t,s.notify())}),o().createElement(n,{value:s},l)},useContext:e=>{const t=u();return(0,r.useSyncExternalStore)(t.subscribe||(()=>{}),()=>e(t.value))}}}({}),{Provider:f,useContext:x}=b,C=e=>{let{preset:t,children:n,initValue:l}=e;const[u,c]=(0,r.useState)(Object.assign({},l)),a=(0,r.useCallback)((e,t)=>{c(n=>Object.assign({},n,{[e]:"function"===typeof t?t(n[e]):t}))},[]);return o().createElement(s,{value:{global:u,setGlobal:c,setGlobalValue:a}},o().createElement(d,{value:t},o().createElement(f,{value:u},n)))},P=e=>{let{loader:t,needReady:n=!0,children:o}=e;const[l,u]=(0,r.useState)(!1),{global:s,setGlobal:a}=c(),i=(0,r.useRef)(null),d=(0,r.useRef)(t);return(0,r.useEffect)(()=>{Promise.resolve(d.current).then(e=>{a(t=>{const n=Object.assign({},t,e);return i.current=n,n})})},[]),(0,r.useEffect)(()=>{s===i.current&&u(!0)},[s]),n&&!l?null:o},m=e=>x(t=>null==t?void 0:t[e]),h=e=>{let{globalKey:t,children:n}=e;return n({value:m(t)})},p=e=>{let{children:t}=e;return t(v())}}}]);
|
|
2
|
+
//# sourceMappingURL=8247.d954c5ec.chunk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"static/js/8247.d954c5ec.chunk.js","mappings":"ufAIA,MAAMA,EAAgB,WAAoB,IAAnBC,EAASC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAC,EAChC,MAAMG,GAAUC,EAAAA,EAAAA,eAAmBL,IAC7B,SAACM,EAAQ,SAAEC,GAAYH,EAG7B,MAAO,CAACA,UAASE,WAAUC,WAAUC,WAFlBA,KAAMC,EAAAA,EAAAA,YAAgBL,GAG7C,ECRaA,EAAUL,EAAc,CAAC,IAEzB,SAACO,EAAQ,WAAEE,GAAcJ,EAEzBM,EAAmBF,EAEnBG,EAAgBZ,EAAc,CAAC,IAC9BO,SAAUM,EAAgBJ,WAAYK,GAAaF,EACpDG,EDIwB,WAAoB,IAAnBd,EAASC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,CAAC,EAC/C,MAAM,QAACG,EAAO,SAAEE,EAAQ,WAAEE,GAAcT,EAAcC,GA+BtD,MAAO,CAACI,UAASE,SA7BQS,IAAuB,IAAtB,MAACC,EAAK,SAAEC,GAASF,EACvC,MAAMG,GAAWC,EAAAA,EAAAA,UACjB,IAAIC,EAAQF,EAASG,QACrB,IAAKD,EAAO,CACR,MAAME,EAAY,IAAIC,IACtBH,EAAQ,CACJJ,QAAOQ,UAAYC,IACfH,EAAUI,IAAID,GACP,IAAMH,EAAUK,OAAOF,IAC/BG,OAAQA,IAAMN,EAAUO,QAASJ,GAAMA,MAE9CP,EAASG,QAAUD,CACvB,CAOA,OANAU,EAAAA,EAAAA,WAAU,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AUyC,EACbA,OAGhB,KAEHhC,EAAAA,EAAAA,WAAU,KACFY,IAAWc,EAAUnC,SACrBkC,GAAU,IAEf,CAACb,IAEAW,IAAcC,EACP,KAGJrC,GAGE8C,EAAkBf,GACpBV,EAAmBI,GAAgB,MAANA,OAAM,EAANA,EAASM,IAGpCgB,EAAcC,IAA2B,IAA1B,UAACjB,EAAS,SAAE/B,GAASgD,EAE7C,OAAOhD,EAAS,CAACD,MADH+C,EAAef,MAIpBkB,EAASC,IAAgB,IAAf,SAAClD,GAASkD,EAE7B,OAAOlD,EADQJ,K","sources":["../node_modules/@kne/global-context/src/createContext.js","../node_modules/@kne/global-context/src/globalContext.js","../node_modules/@kne/global-context/src/Global.js"],"sourcesContent":["import React, {\n createContext as createReactContext, useContext as useReactContext, useRef, useEffect, useSyncExternalStore\n} from \"react\";\n\nconst createContext = (initValue = {}) => {\n const context = createReactContext(initValue);\n const {Provider, Consumer} = context;\n const useContext = () => useReactContext(context);\n\n return {context, Provider, Consumer, useContext};\n};\n\nexport default createContext;\n\nexport const createSelectorContext = (initValue = {}) => {\n const {context, Provider, useContext} = createContext(initValue);\n\n const SelectorProvider = ({value, children}) => {\n const storeRef = useRef();\n let store = storeRef.current;\n if (!store) {\n const listeners = new Set();\n store = {\n value, subscribe: (l) => {\n listeners.add(l);\n return () => listeners.delete(l);\n }, notify: () => listeners.forEach((l) => l()),\n }\n storeRef.current = store;\n }\n useEffect(() => {\n if (!Object.is(store.value, value)) {\n store.value = value;\n store.notify();\n }\n });\n return <Provider value={store}>{children}</Provider>\n };\n\n const useSelectorContext = (selector) => {\n const store = useContext();\n return useSyncExternalStore(store.subscribe||(()=>{}), () => {\n return selector(store.value);\n });\n };\n\n return {context, Provider: SelectorProvider, useContext: useSelectorContext};\n};\n","import createContext, {createSelectorContext} from \"./createContext\";\n\nexport const context = createContext({});\n\nexport const {Provider, useContext} = context;\n\nexport const useGlobalContext = useContext;\n\nexport const presetContext = createContext({});\nexport const {Provider: PresetProvider, useContext: usePreset} = presetContext;\nexport const selectorContext = createSelectorContext({});\nexport const {Provider: SelectProvider, useContext: useSelectorContext} = selectorContext;\n\nexport default context;\n","import React, {useState, useCallback, useEffect, useRef} from \"react\";\nimport {Provider, useContext, useSelectorContext, SelectProvider, PresetProvider, usePreset} from \"./globalContext\";\n\nconst Global = ({preset, children, initValue}) => {\n const [global, setGlobal] = useState(Object.assign({}, initValue));\n\n const setGlobalValue = useCallback((globalKey, value) => {\n setGlobal((global) => {\n return Object.assign({}, global, {[globalKey]: typeof value === \"function\" ? value(global[globalKey]) : value});\n });\n }, []);\n\n return <Provider value={{global, setGlobal, setGlobalValue}}>\n <PresetProvider value={preset}>\n <SelectProvider value={global}>\n {children}\n </SelectProvider>\n </PresetProvider>\n </Provider>;\n};\n\nexport const GlobalSetting = ({loader, needReady = true, children}) => {\n const [loaded, setLoaded] = useState(false);\n const {global, setGlobal} = useContext();\n const globalRef = useRef(null);\n const loaderRef = useRef(loader);\n useEffect(() => {\n Promise.resolve(loaderRef.current).then((target) => {\n setGlobal((global) => {\n const nextGlobal = Object.assign({}, global, target);\n globalRef.current = nextGlobal;\n return nextGlobal;\n });\n });\n }, []);\n\n useEffect(() => {\n if (global === globalRef.current) {\n setLoaded(true);\n }\n }, [global]);\n\n if (needReady && !loaded) {\n return null;\n }\n\n return children;\n};\n\nexport const useGlobalValue = (globalKey) => {\n return useSelectorContext(global => global?.[globalKey]);\n};\n\nexport const GlobalValue = ({globalKey, children}) => {\n const value = useGlobalValue(globalKey);\n return children({value});\n};\n\nexport const Preset = ({children}) => {\n const preset = usePreset();\n return children(preset);\n};\n\nexport default Global;\n"],"names":["createContext","initValue","arguments","length","undefined","context","createContext$1","Provider","Consumer","useContext","useContext$1","useGlobalContext","presetContext","PresetProvider","usePreset","selectorContext","_ref","value","children","storeRef","useRef","store","current","listeners","Set","subscribe","l","add","delete","notify","forEach","useEffect","Object","is","React","selector","useSyncExternalStore","createSelectorContext","SelectProvider","useSelectorContext","Global","_ref2","preset","global","setGlobal","useState","assign","setGlobalValue","useCallback","globalKey","GlobalSetting","_ref3","loader","needReady","_needReady","loaded","setLoaded","globalRef","loaderRef","Promise","resolve","then","target","nextGlobal","useGlobalValue","GlobalValue","_ref4","Preset","_ref5"],"ignoreList":[],"sourceRoot":""}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(self.webpackChunk_kne_components_components_admin=self.webpackChunk_kne_components_components_admin||[]).push([[8139,9654],{15797(e,t,n){var a=n(64816);function s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var a=arguments,s=t?t.apply(this,a):a[0],o=n.cache;if(o.has(s))return o.get(s);var r=e.apply(this,a);return n.cache=o.set(s,r)||o,r};return n.cache=new(s.Cache||a),n}s.Cache=a,e.exports=s},21867(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>L});var a=n(89379),s=n(80045),o=n(13050),r=n(87558),i=n.n(r),c=n(94679),d=n(59347),l=n(57469),m=n.n(l),u=n(4836),p=n(55199),g=n(70579);const j=(0,o.createWithRemoteLoader)({modules:["components-core:Global@usePreset"]})(e=>{let{remoteModules:t,tenant:n}=e;const[s]=t,{apis:o,ajax:r}=s(),{message:c}=p.App.useApp();return(0,g.jsx)(i(),(0,a.A)((0,a.A)({},Object.assign({},o.tenantAdmin.companyDetail,{params:{tenantId:n.id}})),{},{render:e=>{let{data:t,reload:a}=e;return(0,g.jsx)(u.CompanyInfo,{data:t,onSubmit:async e=>{const{data:t}=await r(Object.assign({},o.tenantAdmin.companySave,{data:Object.assign({},e,{tenantId:n.id})}));if(0!==t.code)return!1;c.success("\u516c\u53f8\u4fe1\u606f\u4fdd\u5b58\u6210\u529f"),a()}})}}))}),b=(0,o.createWithRemoteLoader)({modules:["components-core:Global@usePreset"]})(e=>{let{remoteModules:t,tenant:n}=e;const[s]=t,{apis:o}=s();return(0,g.jsx)(i(),(0,a.A)((0,a.A)({},Object.assign({},o.tenantAdmin.orgList,{params:{tenantId:n.id}})),{},{render:e=>{var t;let{data:a,reload:s}=e;return(0,g.jsx)(u.OrgInfo,{data:a,companyName:null===n||void 0===n||null===(t=n.tenantCompany)||void 0===t?void 0:t.name,onSuccess:s,apis:{create:Object.assign({},o.tenantAdmin.orgCreate,{data:{tenantId:n.id}}),save:Object.assign({},o.tenantAdmin.orgSave,{data:{tenantId:n.id}}),remove:Object.assign({},o.tenantAdmin.orgRemove,{data:{tenantId:n.id}})}})}}))}),y=(0,o.createWithRemoteLoader)({modules:["components-core:Global@usePreset"]})(e=>{let{remoteModules:t,tenant:n}=e;const[a]=t,{apis:s}=a();return(0,g.jsx)(u.UserList,{apis:{list:Object.assign({},s.tenantAdmin.userList,{params:{tenantId:n.id}}),orgList:Object.assign({},s.tenantAdmin.orgList,{params:{tenantId:n.id}}),roleList:Object.assign({},s.tenantAdmin.role.list,{params:{tenantId:n.id}}),create:Object.assign({},s.tenantAdmin.userCreate,{data:{tenantId:n.id}}),save:Object.assign({},s.tenantAdmin.userSave,{data:{tenantId:n.id}}),remove:Object.assign({},s.tenant.userRemove,{data:{tenantId:n.id}}),setStatus:Object.assign({},s.tenantAdmin.userSetStatus,{data:{tenantId:n.id}}),inviteToken:Object.assign({},s.tenantAdmin.userInviteToken,{params:{tenantId:n.id}}),userInviteMessage:Object.assign({},s.tenantAdmin.userInviteMessage,{data:{tenantId:n.id}})}})});var A=n(34677),v=n.n(A);const f=(0,o.createWithRemoteLoader)({modules:["components-core:Global@usePreset"]})(e=>{let{remoteModules:t,tenant:n}=e;const[a]=t,{apis:s}=a();return(0,g.jsx)(u.Permission,{apis:{role:{create:v()({},s.tenantAdmin.role.create,{data:{tenantId:n.id}}),list:v()({},s.tenantAdmin.role.list,{params:{tenantId:n.id}}),save:v()({},s.tenantAdmin.role.save,{data:{tenantId:n.id}}),remove:v()({},s.tenantAdmin.role.remove,{data:{tenantId:n.id}}),setStatus:v()({},s.tenantAdmin.role.setStatus,{data:{tenantId:n.id}}),permissionList:v()({},s.tenantAdmin.role.permissionList,{params:{tenantId:n.id}}),permissionSave:v()({},s.tenantAdmin.role.permissionSave,{data:{tenantId:n.id}})},permission:{list:v()({},s.tenantAdmin.permission.list,{params:{tenantId:n.id}}),save:v()({},s.tenantAdmin.permission.save,{data:{tenantId:n.id}})}}})});var h=n(73884);const x="style_modal-wrap__sQg4X__cEpDi",C=(0,o.createWithRemoteLoader)({modules:["components-thirdparty:LiveComponentEditor"]})((0,h.forwardRef)((e,t)=>{let{remoteModules:n,defaultValue:a}=e;const[s]=n,[o,r]=(0,h.useState)(a||"");return(0,h.useImperativeHandle)(t,()=>({getValue:()=>o})),(0,g.jsx)(p.Flex,{vertical:!0,gap:8,children:(0,g.jsx)(s,{onChange:r,defaultValue:o})})})),I=(0,o.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:t,isEdit:n}=e;const[a]=t,{Input:s,TextArea:o}=a.fields;return(0,g.jsx)(a,{column:1,list:[(0,g.jsx)(s,{name:"key",label:"KEY",rule:"REQ LEN-0-100",disabled:n}),(0,g.jsx)(s,{name:"name",label:"\u540d\u79f0",rule:"REQ LEN-0-100"}),(0,g.jsx)(s,{name:"type",label:"\u7c7b\u578b",rule:"REQ LEN-0-100"}),(0,g.jsx)(o,{name:"description",label:"\u63cf\u8ff0",rule:"LEN-0-500"})]})}),k=(0,o.createWithRemoteLoader)({modules:["components-core:Global@usePreset","components-core:Table","components-core:FormInfo","components-core:Modal@useModal","components-core:Modal@ModalButton","components-thirdparty:LiveComponentView"]})(e=>{var t,n;let{remoteModules:a,tenant:s,reload:o}=e;const[r,i,c,d,l,m]=a,{apis:u,ajax:j}=r(),{useFormModal:b,TableList:y,Form:A}=c,{Input:v,Switch:f}=c.fields,h=b(),{message:k}=p.App.useApp(),O=d(),S=(0,g.jsx)(y,{title:"\u73af\u5883\u53d8\u91cf",name:"args",minLength:1,column:1,list:[(0,g.jsx)(v,{name:"key",label:"\u952e",rule:"REQ LEN-0-100"}),(0,g.jsx)(v,{name:"value",label:"\u503c",rule:"REQ LEN-0-500"}),(0,g.jsx)(f,{name:"secret",label:"\u662f\u5426\u5bc6\u94a5"})]}),L=(null===(t=s.tenantSetting)||void 0===t?void 0:t.args)||[],R=(null===(n=s.tenantSetting)||void 0===n?void 0:n.customComponents)||[];return(0,g.jsxs)(p.Flex,{vertical:!0,gap:8,children:[(0,g.jsxs)(p.Flex,{justify:"space-between",children:[(0,g.jsx)("div",{}),(0,g.jsx)(p.Flex,{gap:8,children:(0,g.jsx)(p.Button,{type:"primary",onClick:()=>{h({title:"\u6dfb\u52a0\u73af\u5883\u53d8\u91cf",size:"small",children:S,formProps:{onSubmit:async e=>{const{data:t}=await j(Object.assign({},u.tenantAdmin.appendArgs,{data:Object.assign({},e,{tenantId:s.id})}));if(0!==t.code)return!1;k.success("\u6dfb\u52a0\u6210\u529f"),o()}}})},children:"\u6dfb\u52a0\u73af\u5883\u53d8\u91cf"})})]}),(0,g.jsx)(i,{rowKey:"key",dataSource:L,columns:[{name:"key",title:"KEY"},{name:"value",title:"\u503c",type:"description"},{name:"secret",title:"\u662f\u5426\u5bc6\u94a5",type:"singleRow",valueOf:e=>String(void 0!==e.secret&&e.secret)},{name:"options",type:"options",title:"\u64cd\u4f5c",valueOf:e=>[{children:"\u5220\u9664",confirm:!0,onClick:async()=>{const{data:t}=await j(Object.assign({},u.tenantAdmin.removeArg,{data:{tenantId:s.id,key:e.key}}));0===t.code&&(k.success("\u5220\u9664\u6210\u529f"),o())}}]}]}),(0,g.jsxs)(p.Flex,{justify:"space-between",children:[(0,g.jsx)("div",{}),(0,g.jsx)(p.Flex,{gap:8,children:(0,g.jsx)(p.Button,{type:"primary",onClick:()=>{const e=O({title:"\u6dfb\u52a0\u81ea\u5b9a\u4e49\u7ec4\u4ef6",size:"large",wrapClassName:x,classNames:{wrapper:x},children:e=>{let{childrenRef:t}=e;return(0,g.jsx)(C,{ref:t})},onConfirm:async(t,n)=>{let{childrenRef:a}=n;const r=a.current.getValue();return h({title:"\u6dfb\u52a0\u81ea\u5b9a\u4e49\u7ec4\u4ef6",size:"small",formProps:{onSubmit:async t=>{const{data:n}=await j(Object.assign({},u.tenantAdmin.appendCustomComponent,{data:{tenantId:s.id,customComponent:Object.assign({},t,{content:r})}}));if(0!==n.code)return!1;k.success("\u6dfb\u52a0\u6210\u529f"),e.close(),o()}},children:(0,g.jsx)(I,{})}),!1}})},children:"\u6dfb\u52a0\u81ea\u5b9a\u4e49\u7ec4\u4ef6"})})]}),(0,g.jsx)(i,{rowKey:"key",dataSource:R,columns:[{name:"key",title:"KEY"},{name:"name",title:"\u540d\u79f0"},{name:"type",title:"\u7c7b\u578b"},{name:"description",title:"\u63cf\u8ff0",type:"description"},{name:"options",type:"options",title:"\u64cd\u4f5c",valueOf:e=>[{buttonComponent:l,children:"\u9884\u89c8",api:Object.assign({},u.tenantAdmin.customComponentDetail,{params:{tenantId:s.id,key:e.key}}),modalProps:e=>{let{data:t}=e;return{title:"\u9884\u89c8",footer:null,children:(0,g.jsx)(A,{children:(0,g.jsx)(m,{content:t.content})})}}},{buttonComponent:l,children:"\u7f16\u8f91",api:Object.assign({},u.tenantAdmin.customComponentDetail,{params:{tenantId:s.id,key:e.key}}),modalProps:t=>{let{data:n,close:a}=t;return{title:"\u7f16\u8f91",size:"large",children:e=>{let{childrenRef:t}=e;return(0,g.jsx)(C,{defaultValue:n.content,ref:t})},onConfirm:(t,n)=>{let{childrenRef:r}=n;const i=r.current.getValue();return h({title:"\u7f16\u8f91\u81ea\u5b9a\u4e49\u7ec4\u4ef6",size:"small",formProps:{data:Object.assign({},e),onSubmit:async t=>{const{data:n}=await j(Object.assign({},u.tenantAdmin.saveCustomComponent,{data:{tenantId:s.id,customComponent:Object.assign({},t,{key:e.key,content:i})}}));if(0!==n.code)return!1;k.success("\u4fee\u6539"),a(),o()}},children:(0,g.jsx)(I,{isEdit:!0})}),!1}}}},{children:"\u590d\u5236",onClick:async()=>{const{data:t}=await j(Object.assign({},u.tenantAdmin.copyCustomComponent,{data:{tenantId:s.id,key:e.key}}));0===t.code&&(k.success("\u590d\u5236\u6210\u529f"),o())}},{children:"\u5220\u9664",confirm:!0,onClick:async()=>{const{data:t}=await j(Object.assign({},u.tenantAdmin.removeCustomComponent,{data:{tenantId:s.id,key:e.key}}));0===t.code&&(k.success("\u5220\u9664\u6210\u529f"),o())}}]}]})]})}),O=["remoteModules"],S={company:j,org:b,user:y,permission:f,setting:k},L=(0,o.createWithRemoteLoader)({modules:["components-core:Layout@StateBarPage","components-core:Global@usePreset","components-core:Layout@PageHeader","components-core:StateTag","components-core:InfoPage","components-core:Descriptions"]})(e=>{let{remoteModules:t}=e,n=(0,s.A)(e,O);const[o,r,l,u]=t,{apis:p}=r(),[b,y]=(0,c.useSearchParams)();return(0,g.jsx)(i(),(0,a.A)((0,a.A)({},Object.assign({},p.tenantAdmin.detail,{params:{id:b.get("id")}})),{},{render:e=>{let{data:t,reload:s}=e;const r=b.get("tab")||"company",i=S[r]||j;return(0,g.jsx)(o,(0,a.A)((0,a.A)({},n),{},{headerFixed:!1,header:(0,g.jsx)(l,{title:t.name,info:"ID: ".concat(t.id),tags:["open"===t.status?(0,g.jsx)(u,{type:"success",text:"\u5f00\u542f"}):(0,g.jsx)(u,{type:"danger",text:"\u5173\u95ed"}),"\u670d\u52a1\u65f6\u95f4:".concat(m()(t.serviceStartTime).format("YYYY-MM-DD"),"~").concat(m()(t.serviceEndTime).format("YYYY-MM-DD")),"\u5f00\u901a\u8d26\u53f7\u6570:".concat(t.accountCount)],buttonOptions:(0,g.jsx)(d.A,{data:t,onSuccess:()=>{s()}})}),stateBar:{activeKey:r,onChange:e=>{b.set("tab",e),y(b.toString())},stateOption:[{tab:"\u516c\u53f8\u4fe1\u606f",key:"company"},{tab:"\u7ec4\u7ec7\u67b6\u6784",key:"org"},{tab:"\u6743\u9650\u7ba1\u7406",key:"permission"},{tab:"\u7528\u6237\u7ba1\u7406",key:"user"},{tab:"\u8bbe\u7f6e",key:"setting"}]},children:(0,g.jsx)(i,{tenant:t,reload:s})}))}}))})},59347(e,t,n){"use strict";n.d(t,{A:()=>b});var a=n(89379),s=n(80045),o=n(13050),r=n(55199),i=n(82848),c=n(70579);const d=["remoteModules","data","onSuccess"],l=(0,o.createWithRemoteLoader)({modules:["components-core:FormInfo@useFormModal","components-core:Global@usePreset"]})(e=>{let{remoteModules:t,data:n,onSuccess:o}=e,l=(0,s.A)(e,d);const[m,u]=t,p=m(),{ajax:g,apis:j}=u(),{message:b}=r.App.useApp();return(0,c.jsx)(r.Button,(0,a.A)((0,a.A)({},l),{},{onClick:()=>{p({title:"\u7f16\u8f91\u79df\u6237",size:"small",formProps:{data:Object.assign({},n,{serviceTime:[n.serviceStartTime,n.serviceEndTime]}),onSubmit:async e=>{const{data:t}=await g(Object.assign({},j.tenantAdmin.save,{data:Object.assign({},e,{serviceStartTime:e.serviceTime[0],serviceEndTime:e.serviceTime[1]},{id:n.id})}));if(0!==t.code)return!1;b.success("\u4fdd\u5b58\u6210\u529f"),o&&o()}},children:(0,c.jsx)(i.A,{})})}}))}),m=["remoteModules","data","status","onSuccess"],u=(0,o.createWithRemoteLoader)({modules:["components-core:ConfirmButton","components-core:Global@usePreset"]})(e=>{let{remoteModules:t,data:n,status:o,onSuccess:i}=e,d=(0,s.A)(e,m);const[l,u]=t,{apis:p,ajax:g}=u(),{message:j}=r.App.useApp();return(0,c.jsx)(l,(0,a.A)((0,a.A)({},d),{},{onClick:async()=>{const{data:e}=await g(Object.assign({},p.tenantAdmin.setStatus,{data:{id:n.id,status:o}}));0===e.code&&(j.success("\u8bbe\u7f6e\u6210\u529f"),i&&i())}}))}),p=["remoteModules","data","onSuccess"],g=(0,o.createWithRemoteLoader)({modules:["components-core:ConfirmButton","components-core:Global@usePreset"]})(e=>{let{remoteModules:t,data:n,onSuccess:o}=e,i=(0,s.A)(e,p);const[d,l]=t,{apis:m,ajax:u}=l(),{message:g}=r.App.useApp();return(0,c.jsx)(d,(0,a.A)((0,a.A)({},i),{},{onClick:async()=>{const{data:e}=await u(Object.assign({},m.tenantAdmin.remove,{data:{id:n.id}}));0===e.code&&(g.success("\u5220\u9664\u79df\u6237\u6210\u529f"),o&&o())}}))}),j=["remoteModules","moreType","children","itemClassName"],b=(0,o.createWithRemoteLoader)({modules:["components-core:ButtonGroup"]})(e=>{let{remoteModules:t,moreType:n,children:o,itemClassName:r}=e,i=(0,s.A)(e,j);const[d]=t,m=[(0,a.A)((0,a.A)({type:"primary"},i),{},{buttonComponent:l,children:"\u7f16\u8f91"}),(0,a.A)((0,a.A)({},i),{},{buttonComponent:u,status:"open",children:"\u5f00\u542f",message:"\u786e\u5b9a\u8981\u5f00\u542f\u5f53\u524d\u79df\u6237\u5417\uff1f",isDelete:!1,hidden:"closed"!==(null===i||void 0===i?void 0:i.data.status)}),(0,a.A)((0,a.A)({},i),{},{buttonComponent:u,status:"closed",children:"\u5173\u95ed",message:"\u786e\u5b9a\u8981\u5173\u95ed\u5f53\u524d\u79df\u6237\u5417\uff1f",isDelete:!1,hidden:"open"!==(null===i||void 0===i?void 0:i.data.status)}),(0,a.A)((0,a.A)({},i),{},{buttonComponent:g,children:"\u5220\u9664",confirm:!0})];return"function"===typeof o?o({itemClassName:r,moreType:n,list:m}):(0,c.jsx)(d,{itemClassName:r,list:m,moreType:n})})},82848(e,t,n){"use strict";n.d(t,{A:()=>r});var a=n(13050),s=n(28488),o=n(70579);const r=(0,a.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:t}=e;const[n]=t,{Input:a,InputNumber:r,TextArea:i,ColorPicker:c,Avatar:d,DateRangePicker:l}=n.fields;return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(n,{column:1,list:[(0,o.jsx)(a,{name:"name",label:"\u79df\u6237\u540d\u79f0",rule:"REQ LEN-0-100"}),(0,o.jsx)(r,{name:"accountCount",label:"\u5f00\u901a\u8d26\u53f7\u6570\u91cf",defaultValue:10,min:1,precision:0,rule:"REQ"}),(0,o.jsx)(l,{name:"serviceTime",label:"\u670d\u52a1\u65f6\u95f4",rule:"REQ"}),(0,o.jsx)(d,{name:"logo",label:"Logo",block:!0,shape:"square",width:162,height:48,rule:"REQ",interceptor:"photo-string",defaultAvatar:(0,o.jsx)(s.FileImageOutlined,{})}),(0,o.jsx)(c,{name:"themeColor",label:"\u4e3b\u9898\u8272",format:"hex",rule:"REQ",defaultValue:"#4183F0",disabledAlpha:!0,disabledFormat:!0}),(0,o.jsx)(i,{name:"description",label:"\u63cf\u8ff0",block:!0})]})})})},89337(){},98139(e,t){var n;!function(){"use strict";var a={}.hasOwnProperty;function s(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,o(n)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return s.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)a.call(e,n)&&e[n]&&(t=r(t,n));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(s.default=s,e.exports=s):void 0===(n=function(){return s}.apply(t,[]))||(e.exports=n)}()}}]);
|
|
2
|
-
//# sourceMappingURL=9654.
|
|
1
|
+
(self.webpackChunk_kne_components_components_admin=self.webpackChunk_kne_components_components_admin||[]).push([[8139,9654],{15797(e,t,n){var a=n(64816);function s(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var a=arguments,s=t?t.apply(this,a):a[0],o=n.cache;if(o.has(s))return o.get(s);var r=e.apply(this,a);return n.cache=o.set(s,r)||o,r};return n.cache=new(s.Cache||a),n}s.Cache=a,e.exports=s},21867(e,t,n){"use strict";n.r(t),n.d(t,{default:()=>L});var a=n(89379),s=n(80045),o=n(13050),r=n(87558),i=n.n(r),c=n(94679),d=n(59347),l=n(57469),m=n.n(l),u=n(4836),p=n(55199),g=n(70579);const j=(0,o.createWithRemoteLoader)({modules:["components-core:Global@usePreset"]})(e=>{let{remoteModules:t,tenant:n}=e;const[s]=t,{apis:o,ajax:r}=s(),{message:c}=p.App.useApp();return(0,g.jsx)(i(),(0,a.A)((0,a.A)({},Object.assign({},o.tenantAdmin.companyDetail,{params:{tenantId:n.id}})),{},{render:e=>{let{data:t,reload:a}=e;return(0,g.jsx)(u.CompanyInfo,{data:t,onSubmit:async e=>{const{data:t}=await r(Object.assign({},o.tenantAdmin.companySave,{data:Object.assign({},e,{tenantId:n.id})}));if(0!==t.code)return!1;c.success("\u516c\u53f8\u4fe1\u606f\u4fdd\u5b58\u6210\u529f"),a()}})}}))}),b=(0,o.createWithRemoteLoader)({modules:["components-core:Global@usePreset"]})(e=>{let{remoteModules:t,tenant:n}=e;const[s]=t,{apis:o}=s();return(0,g.jsx)(i(),(0,a.A)((0,a.A)({},Object.assign({},o.tenantAdmin.orgList,{params:{tenantId:n.id}})),{},{render:e=>{var t;let{data:a,reload:s}=e;return(0,g.jsx)(u.OrgInfo,{data:a,companyName:null===n||void 0===n||null===(t=n.tenantCompany)||void 0===t?void 0:t.name,onSuccess:s,apis:{create:Object.assign({},o.tenantAdmin.orgCreate,{data:{tenantId:n.id}}),save:Object.assign({},o.tenantAdmin.orgSave,{data:{tenantId:n.id}}),remove:Object.assign({},o.tenantAdmin.orgRemove,{data:{tenantId:n.id}})}})}}))}),y=(0,o.createWithRemoteLoader)({modules:["components-core:Global@usePreset"]})(e=>{let{remoteModules:t,tenant:n}=e;const[a]=t,{apis:s}=a();return(0,g.jsx)(u.UserList,{apis:{list:Object.assign({},s.tenantAdmin.userList,{params:{tenantId:n.id}}),orgList:Object.assign({},s.tenantAdmin.orgList,{params:{tenantId:n.id}}),roleList:Object.assign({},s.tenantAdmin.role.list,{params:{tenantId:n.id}}),create:Object.assign({},s.tenantAdmin.userCreate,{data:{tenantId:n.id}}),save:Object.assign({},s.tenantAdmin.userSave,{data:{tenantId:n.id}}),remove:Object.assign({},s.tenant.userRemove,{data:{tenantId:n.id}}),setStatus:Object.assign({},s.tenantAdmin.userSetStatus,{data:{tenantId:n.id}}),inviteToken:Object.assign({},s.tenantAdmin.userInviteToken,{params:{tenantId:n.id}}),userInviteMessage:Object.assign({},s.tenantAdmin.userInviteMessage,{data:{tenantId:n.id}})}})});var A=n(34677),v=n.n(A);const h=(0,o.createWithRemoteLoader)({modules:["components-core:Global@usePreset"]})(e=>{let{remoteModules:t,tenant:n}=e;const[a]=t,{apis:s}=a();return(0,g.jsx)(u.Permission,{apis:{role:{create:v()({},s.tenantAdmin.role.create,{data:{tenantId:n.id}}),list:v()({},s.tenantAdmin.role.list,{params:{tenantId:n.id}}),save:v()({},s.tenantAdmin.role.save,{data:{tenantId:n.id}}),remove:v()({},s.tenantAdmin.role.remove,{data:{tenantId:n.id}}),setStatus:v()({},s.tenantAdmin.role.setStatus,{data:{tenantId:n.id}}),permissionList:v()({},s.tenantAdmin.role.permissionList,{params:{tenantId:n.id}}),permissionSave:v()({},s.tenantAdmin.role.permissionSave,{data:{tenantId:n.id}})},permission:{list:v()({},s.tenantAdmin.permission.list,{params:{tenantId:n.id}}),save:v()({},s.tenantAdmin.permission.save,{data:{tenantId:n.id}})}}})});var f=n(73884);const x="style_modal-wrap__sQg4X__ztRFh",C=(0,o.createWithRemoteLoader)({modules:["components-thirdparty:LiveComponentEditor"]})((0,f.forwardRef)((e,t)=>{let{remoteModules:n,defaultValue:a}=e;const[s]=n,[o,r]=(0,f.useState)(a||"");return(0,f.useImperativeHandle)(t,()=>({getValue:()=>o})),(0,g.jsx)(p.Flex,{vertical:!0,gap:8,children:(0,g.jsx)(s,{onChange:r,defaultValue:o})})})),I=(0,o.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:t,isEdit:n}=e;const[a]=t,{Input:s,TextArea:o}=a.fields;return(0,g.jsx)(a,{column:1,list:[(0,g.jsx)(s,{name:"key",label:"KEY",rule:"REQ LEN-0-100",disabled:n}),(0,g.jsx)(s,{name:"name",label:"\u540d\u79f0",rule:"REQ LEN-0-100"}),(0,g.jsx)(s,{name:"type",label:"\u7c7b\u578b",rule:"REQ LEN-0-100"}),(0,g.jsx)(o,{name:"description",label:"\u63cf\u8ff0",rule:"LEN-0-500"})]})}),k=(0,o.createWithRemoteLoader)({modules:["components-core:Global@usePreset","components-core:Table","components-core:FormInfo","components-core:Modal@useModal","components-core:Modal@ModalButton","components-thirdparty:LiveComponentView"]})(e=>{var t,n;let{remoteModules:a,tenant:s,reload:o}=e;const[r,i,c,d,l,m]=a,{apis:u,ajax:j}=r(),{useFormModal:b,TableList:y,Form:A}=c,{Input:v,Switch:h}=c.fields,f=b(),{message:k}=p.App.useApp(),O=d(),S=(0,g.jsx)(y,{title:"\u73af\u5883\u53d8\u91cf",name:"args",minLength:1,column:1,list:[(0,g.jsx)(v,{name:"key",label:"\u952e",rule:"REQ LEN-0-100"}),(0,g.jsx)(v,{name:"value",label:"\u503c",rule:"REQ LEN-0-500"}),(0,g.jsx)(h,{name:"secret",label:"\u662f\u5426\u5bc6\u94a5"})]}),L=(null===(t=s.tenantSetting)||void 0===t?void 0:t.args)||[],R=(null===(n=s.tenantSetting)||void 0===n?void 0:n.customComponents)||[];return(0,g.jsxs)(p.Flex,{vertical:!0,gap:8,children:[(0,g.jsxs)(p.Flex,{justify:"space-between",children:[(0,g.jsx)("div",{}),(0,g.jsx)(p.Flex,{gap:8,children:(0,g.jsx)(p.Button,{type:"primary",onClick:()=>{f({title:"\u6dfb\u52a0\u73af\u5883\u53d8\u91cf",size:"small",children:S,formProps:{onSubmit:async e=>{const{data:t}=await j(Object.assign({},u.tenantAdmin.appendArgs,{data:Object.assign({},e,{tenantId:s.id})}));if(0!==t.code)return!1;k.success("\u6dfb\u52a0\u6210\u529f"),o()}}})},children:"\u6dfb\u52a0\u73af\u5883\u53d8\u91cf"})})]}),(0,g.jsx)(i,{rowKey:"key",dataSource:L,columns:[{name:"key",title:"KEY"},{name:"value",title:"\u503c",type:"description"},{name:"secret",title:"\u662f\u5426\u5bc6\u94a5",type:"singleRow",valueOf:e=>String(void 0!==e.secret&&e.secret)},{name:"options",type:"options",title:"\u64cd\u4f5c",valueOf:e=>[{children:"\u5220\u9664",confirm:!0,onClick:async()=>{const{data:t}=await j(Object.assign({},u.tenantAdmin.removeArg,{data:{tenantId:s.id,key:e.key}}));0===t.code&&(k.success("\u5220\u9664\u6210\u529f"),o())}}]}]}),(0,g.jsxs)(p.Flex,{justify:"space-between",children:[(0,g.jsx)("div",{}),(0,g.jsx)(p.Flex,{gap:8,children:(0,g.jsx)(p.Button,{type:"primary",onClick:()=>{const e=O({title:"\u6dfb\u52a0\u81ea\u5b9a\u4e49\u7ec4\u4ef6",size:"large",wrapClassName:x,classNames:{wrapper:x},children:e=>{let{childrenRef:t}=e;return(0,g.jsx)(C,{ref:t})},onConfirm:async(t,n)=>{let{childrenRef:a}=n;const r=a.current.getValue();return f({title:"\u6dfb\u52a0\u81ea\u5b9a\u4e49\u7ec4\u4ef6",size:"small",formProps:{onSubmit:async t=>{const{data:n}=await j(Object.assign({},u.tenantAdmin.appendCustomComponent,{data:{tenantId:s.id,customComponent:Object.assign({},t,{content:r})}}));if(0!==n.code)return!1;k.success("\u6dfb\u52a0\u6210\u529f"),e.close(),o()}},children:(0,g.jsx)(I,{})}),!1}})},children:"\u6dfb\u52a0\u81ea\u5b9a\u4e49\u7ec4\u4ef6"})})]}),(0,g.jsx)(i,{rowKey:"key",dataSource:R,columns:[{name:"key",title:"KEY"},{name:"name",title:"\u540d\u79f0"},{name:"type",title:"\u7c7b\u578b"},{name:"description",title:"\u63cf\u8ff0",type:"description"},{name:"options",type:"options",title:"\u64cd\u4f5c",valueOf:e=>[{buttonComponent:l,children:"\u9884\u89c8",api:Object.assign({},u.tenantAdmin.customComponentDetail,{params:{tenantId:s.id,key:e.key}}),modalProps:e=>{let{data:t}=e;return{title:"\u9884\u89c8",footer:null,children:(0,g.jsx)(A,{children:(0,g.jsx)(m,{content:t.content})})}}},{buttonComponent:l,children:"\u7f16\u8f91",api:Object.assign({},u.tenantAdmin.customComponentDetail,{params:{tenantId:s.id,key:e.key}}),modalProps:t=>{let{data:n,close:a}=t;return{title:"\u7f16\u8f91",size:"large",children:e=>{let{childrenRef:t}=e;return(0,g.jsx)(C,{defaultValue:n.content,ref:t})},onConfirm:(t,n)=>{let{childrenRef:r}=n;const i=r.current.getValue();return f({title:"\u7f16\u8f91\u81ea\u5b9a\u4e49\u7ec4\u4ef6",size:"small",formProps:{data:Object.assign({},e),onSubmit:async t=>{const{data:n}=await j(Object.assign({},u.tenantAdmin.saveCustomComponent,{data:{tenantId:s.id,customComponent:Object.assign({},t,{key:e.key,content:i})}}));if(0!==n.code)return!1;k.success("\u4fee\u6539"),a(),o()}},children:(0,g.jsx)(I,{isEdit:!0})}),!1}}}},{children:"\u590d\u5236",onClick:async()=>{const{data:t}=await j(Object.assign({},u.tenantAdmin.copyCustomComponent,{data:{tenantId:s.id,key:e.key}}));0===t.code&&(k.success("\u590d\u5236\u6210\u529f"),o())}},{children:"\u5220\u9664",confirm:!0,onClick:async()=>{const{data:t}=await j(Object.assign({},u.tenantAdmin.removeCustomComponent,{data:{tenantId:s.id,key:e.key}}));0===t.code&&(k.success("\u5220\u9664\u6210\u529f"),o())}}]}]})]})}),O=["remoteModules"],S={company:j,org:b,user:y,permission:h,setting:k},L=(0,o.createWithRemoteLoader)({modules:["components-core:Layout@StateBarPage","components-core:Global@usePreset","components-core:Layout@PageHeader","components-core:StateTag","components-core:InfoPage","components-core:Descriptions"]})(e=>{let{remoteModules:t}=e,n=(0,s.A)(e,O);const[o,r,l,u]=t,{apis:p}=r(),[b,y]=(0,c.useSearchParams)();return(0,g.jsx)(i(),(0,a.A)((0,a.A)({},Object.assign({},p.tenantAdmin.detail,{params:{id:b.get("id")}})),{},{render:e=>{let{data:t,reload:s}=e;const r=b.get("tab")||"company",i=S[r]||j;return(0,g.jsx)(o,(0,a.A)((0,a.A)({},n),{},{headerFixed:!1,header:(0,g.jsx)(l,{title:t.name,info:"ID: ".concat(t.id),tags:["open"===t.status?(0,g.jsx)(u,{type:"success",text:"\u5f00\u542f"}):(0,g.jsx)(u,{type:"danger",text:"\u5173\u95ed"}),"\u670d\u52a1\u65f6\u95f4:".concat(m()(t.serviceStartTime).format("YYYY-MM-DD"),"~").concat(m()(t.serviceEndTime).format("YYYY-MM-DD")),"\u5f00\u901a\u8d26\u53f7\u6570:".concat(t.accountCount)],buttonOptions:(0,g.jsx)(d.A,{data:t,onSuccess:()=>{s()}})}),stateBar:{activeKey:r,onChange:e=>{b.set("tab",e),y(b.toString())},stateOption:[{tab:"\u516c\u53f8\u4fe1\u606f",key:"company"},{tab:"\u7ec4\u7ec7\u67b6\u6784",key:"org"},{tab:"\u6743\u9650\u7ba1\u7406",key:"permission"},{tab:"\u7528\u6237\u7ba1\u7406",key:"user"},{tab:"\u8bbe\u7f6e",key:"setting"}]},children:(0,g.jsx)(i,{tenant:t,reload:s})}))}}))})},59347(e,t,n){"use strict";n.d(t,{A:()=>b});var a=n(89379),s=n(80045),o=n(13050),r=n(55199),i=n(82848),c=n(70579);const d=["remoteModules","data","onSuccess"],l=(0,o.createWithRemoteLoader)({modules:["components-core:FormInfo@useFormModal","components-core:Global@usePreset"]})(e=>{let{remoteModules:t,data:n,onSuccess:o}=e,l=(0,s.A)(e,d);const[m,u]=t,p=m(),{ajax:g,apis:j}=u(),{message:b}=r.App.useApp();return(0,c.jsx)(r.Button,(0,a.A)((0,a.A)({},l),{},{onClick:()=>{p({title:"\u7f16\u8f91\u79df\u6237",size:"small",formProps:{data:Object.assign({},n,{serviceTime:[n.serviceStartTime,n.serviceEndTime]}),onSubmit:async e=>{const{data:t}=await g(Object.assign({},j.tenantAdmin.save,{data:Object.assign({},e,{serviceStartTime:e.serviceTime[0],serviceEndTime:e.serviceTime[1]},{id:n.id})}));if(0!==t.code)return!1;b.success("\u4fdd\u5b58\u6210\u529f"),o&&o()}},children:(0,c.jsx)(i.A,{})})}}))}),m=["remoteModules","data","status","onSuccess"],u=(0,o.createWithRemoteLoader)({modules:["components-core:ConfirmButton","components-core:Global@usePreset"]})(e=>{let{remoteModules:t,data:n,status:o,onSuccess:i}=e,d=(0,s.A)(e,m);const[l,u]=t,{apis:p,ajax:g}=u(),{message:j}=r.App.useApp();return(0,c.jsx)(l,(0,a.A)((0,a.A)({},d),{},{onClick:async()=>{const{data:e}=await g(Object.assign({},p.tenantAdmin.setStatus,{data:{id:n.id,status:o}}));0===e.code&&(j.success("\u8bbe\u7f6e\u6210\u529f"),i&&i())}}))}),p=["remoteModules","data","onSuccess"],g=(0,o.createWithRemoteLoader)({modules:["components-core:ConfirmButton","components-core:Global@usePreset"]})(e=>{let{remoteModules:t,data:n,onSuccess:o}=e,i=(0,s.A)(e,p);const[d,l]=t,{apis:m,ajax:u}=l(),{message:g}=r.App.useApp();return(0,c.jsx)(d,(0,a.A)((0,a.A)({},i),{},{onClick:async()=>{const{data:e}=await u(Object.assign({},m.tenantAdmin.remove,{data:{id:n.id}}));0===e.code&&(g.success("\u5220\u9664\u79df\u6237\u6210\u529f"),o&&o())}}))}),j=["remoteModules","moreType","children","itemClassName"],b=(0,o.createWithRemoteLoader)({modules:["components-core:ButtonGroup"]})(e=>{let{remoteModules:t,moreType:n,children:o,itemClassName:r}=e,i=(0,s.A)(e,j);const[d]=t,m=[(0,a.A)((0,a.A)({type:"primary"},i),{},{buttonComponent:l,children:"\u7f16\u8f91"}),(0,a.A)((0,a.A)({},i),{},{buttonComponent:u,status:"open",children:"\u5f00\u542f",message:"\u786e\u5b9a\u8981\u5f00\u542f\u5f53\u524d\u79df\u6237\u5417\uff1f",isDelete:!1,hidden:"closed"!==(null===i||void 0===i?void 0:i.data.status)}),(0,a.A)((0,a.A)({},i),{},{buttonComponent:u,status:"closed",children:"\u5173\u95ed",message:"\u786e\u5b9a\u8981\u5173\u95ed\u5f53\u524d\u79df\u6237\u5417\uff1f",isDelete:!1,hidden:"open"!==(null===i||void 0===i?void 0:i.data.status)}),(0,a.A)((0,a.A)({},i),{},{buttonComponent:g,children:"\u5220\u9664",confirm:!0})];return"function"===typeof o?o({itemClassName:r,moreType:n,list:m}):(0,c.jsx)(d,{itemClassName:r,list:m,moreType:n})})},82848(e,t,n){"use strict";n.d(t,{A:()=>r});var a=n(13050),s=n(28488),o=n(70579);const r=(0,a.createWithRemoteLoader)({modules:["components-core:FormInfo"]})(e=>{let{remoteModules:t}=e;const[n]=t,{Input:a,InputNumber:r,TextArea:i,ColorPicker:c,Avatar:d,DateRangePicker:l}=n.fields;return(0,o.jsx)(o.Fragment,{children:(0,o.jsx)(n,{column:1,list:[(0,o.jsx)(a,{name:"name",label:"\u79df\u6237\u540d\u79f0",rule:"REQ LEN-0-100"}),(0,o.jsx)(r,{name:"accountCount",label:"\u5f00\u901a\u8d26\u53f7\u6570\u91cf",defaultValue:10,min:1,precision:0,rule:"REQ"}),(0,o.jsx)(l,{name:"serviceTime",label:"\u670d\u52a1\u65f6\u95f4",rule:"REQ"}),(0,o.jsx)(d,{name:"logo",label:"Logo",block:!0,shape:"square",width:162,height:48,rule:"REQ",interceptor:"photo-string",defaultAvatar:(0,o.jsx)(s.FileImageOutlined,{})}),(0,o.jsx)(c,{name:"themeColor",label:"\u4e3b\u9898\u8272",format:"hex",rule:"REQ",defaultValue:"#4183F0",disabledAlpha:!0,disabledFormat:!0}),(0,o.jsx)(i,{name:"description",label:"\u63cf\u8ff0",block:!0})]})})})},89337(){},98139(e,t){var n;!function(){"use strict";var a={}.hasOwnProperty;function s(){for(var e="",t=0;t<arguments.length;t++){var n=arguments[t];n&&(e=r(e,o(n)))}return e}function o(e){if("string"===typeof e||"number"===typeof e)return e;if("object"!==typeof e)return"";if(Array.isArray(e))return s.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var n in e)a.call(e,n)&&e[n]&&(t=r(t,n));return t}function r(e,t){return t?e?e+" "+t:e+t:e}e.exports?(s.default=s,e.exports=s):void 0===(n=function(){return s}.apply(t,[]))||(e.exports=n)}()}}]);
|
|
2
|
+
//# sourceMappingURL=9654.dd3844dc.chunk.js.map
|