mirror of https://gitee.com/topiam/eiam
19 lines
13 KiB
JavaScript
19 lines
13 KiB
JavaScript
/*
|
|
* eiam-console - Employee Identity and Access Management Program
|
|
* Copyright © 2020-2023 TopIAM (support@topiam.cn)
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU Affero General Public License as published by
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU Affero General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU Affero General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
"use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[8095],{28058:function(W,C,i){i.d(C,{Z:function(){return d}});var u=i(1413),h=i(67294),p={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"},m=p,v=i(84089),E=function(D,O){return h.createElement(v.Z,(0,u.Z)((0,u.Z)({},D),{},{ref:O,icon:m}))};E.displayName="WarningOutlined";var d=h.forwardRef(E)},63434:function(W,C,i){var u=i(1413),h=i(91),p=i(85893),m=i(22270),v=i(32808),E=i(67294),d=i(90789),_=i(7772),D=["options","fieldProps","proFieldProps","valueEnum"],O=E.forwardRef(function(f,c){var w=f.options,M=f.fieldProps,j=f.proFieldProps,R=f.valueEnum,x=(0,h.Z)(f,D);return(0,p.jsx)(_.Z,(0,u.Z)({ref:c,valueType:"checkbox",valueEnum:(0,m.h)(R,void 0),fieldProps:(0,u.Z)({options:w},M),lightProps:(0,u.Z)({labelFormatter:function(){return(0,p.jsx)(_.Z,(0,u.Z)({ref:c,valueType:"checkbox",mode:"read",valueEnum:(0,m.h)(R,void 0),filedConfig:{customLightMode:!0},fieldProps:(0,u.Z)({options:w},M),proFieldProps:j},x))}},x.lightProps),proFieldProps:j},x))}),F=E.forwardRef(function(f,c){var w=f.fieldProps,M=f.children;return(0,p.jsx)(v.Z,(0,u.Z)((0,u.Z)({ref:c},w),{},{children:M}))}),y=(0,d.G)(F,{valuePropName:"checked"}),b=y;b.Group=O,C.Z=b},86615:function(W,C,i){var u=i(1413),h=i(91),p=i(85893),m=i(22270),v=i(78045),E=i(67294),d=i(90789),_=i(7772),D=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],O=E.forwardRef(function(f,c){var w=f.fieldProps,M=f.options,j=f.radioType,R=f.layout,x=f.proFieldProps,I=f.valueEnum,S=(0,h.Z)(f,D);return(0,p.jsx)(_.Z,(0,u.Z)((0,u.Z)({valueType:j==="button"?"radioButton":"radio",ref:c,valueEnum:(0,m.h)(I,void 0)},S),{},{fieldProps:(0,u.Z)({options:M,layout:R},w),proFieldProps:x,filedConfig:{customLightMode:!0}}))}),F=E.forwardRef(function(f,c){var w=f.fieldProps,M=f.children;return(0,p.jsx)(v.ZP,(0,u.Z)((0,u.Z)({},w),{},{ref:c,children:M}))}),y=(0,d.G)(F,{valuePropName:"checked",ignoreWidth:!0}),b=y;b.Group=O,b.Button=v.ZP.Button,b.displayName="ProFormComponent",C.Z=b},64317:function(W,C,i){var u=i(1413),h=i(91),p=i(85893),m=i(22270),v=i(67294),E=i(66758),d=i(7772),_=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],D=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],O=v.forwardRef(function(c,w){var M=c.fieldProps,j=c.children,R=c.params,x=c.proFieldProps,I=c.mode,S=c.valueEnum,L=c.request,U=c.showSearch,K=c.options,G=(0,h.Z)(c,_),N=(0,v.useContext)(E.Z);return(0,p.jsx)(d.Z,(0,u.Z)((0,u.Z)({valueEnum:(0,m.h)(S),request:L,params:R,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,u.Z)({options:K,mode:I,showSearch:U,getPopupContainer:N.getPopupContainer},M),ref:w,proFieldProps:x},G),{},{children:j}))}),F=v.forwardRef(function(c,w){var M=c.fieldProps,j=c.children,R=c.params,x=c.proFieldProps,I=c.mode,S=c.valueEnum,L=c.request,U=c.options,K=(0,h.Z)(c,D),G=(0,u.Z)({options:U,mode:I||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},M),N=(0,v.useContext)(E.Z);return(0,p.jsx)(d.Z,(0,u.Z)((0,u.Z)({valueEnum:(0,m.h)(S),request:L,params:R,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,u.Z)({getPopupContainer:N.getPopupContainer},G),ref:w,proFieldProps:x},K),{},{children:j}))}),y=O,b=F,f=y;f.SearchSelect=b,f.displayName="ProFormComponent",C.Z=f},52688:function(W,C,i){var u=i(1413),h=i(91),p=i(85893),m=i(67294),v=i(7772),E=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],d=m.forwardRef(function(_,D){var O=_.fieldProps,F=_.unCheckedChildren,y=_.checkedChildren,b=_.proFieldProps,f=(0,h.Z)(_,E);return(0,p.jsx)(v.Z,(0,u.Z)({valueType:"switch",fieldProps:(0,u.Z)({unCheckedChildren:F,checkedChildren:y},O),ref:D,valuePropName:"checked",proFieldProps:b,filedConfig:{valuePropName:"checked",ignoreWidth:!0}},f))});C.Z=d},5966:function(W,C,i){var u=i(1413),h=i(91),p=i(85893),m=i(7772),v=["fieldProps","proFieldProps"],E=["fieldProps","proFieldProps"],d="text",_=function(y){var b=y.fieldProps,f=y.proFieldProps,c=(0,h.Z)(y,v);return(0,p.jsx)(m.Z,(0,u.Z)({valueType:d,fieldProps:b,filedConfig:{valueType:d},proFieldProps:f},c))},D=function(y){var b=y.fieldProps,f=y.proFieldProps,c=(0,h.Z)(y,E);return(0,p.jsx)(m.Z,(0,u.Z)({valueType:"password",fieldProps:b,proFieldProps:f,filedConfig:{valueType:d}},c))},O=_;O.Password=D,O.displayName="ProFormComponent",C.Z=O},2093:function(W,C,i){var u=i(70655),h=i(67294),p=i(92770);function m(v,E){function d(_){return(0,p.mf)(_[Symbol.asyncIterator])}(0,h.useEffect)(()=>{const _=v();let D=!1;function O(){return(0,u.mG)(this,void 0,void 0,function*(){if(d(_))for(;!((yield _.next()).done||D););else yield _})}return O(),()=>{D=!0}},E)}C.Z=m},92770:function(W,C,i){i.d(C,{mf:function(){return h}});const u=d=>d!==null&&typeof d=="object",h=d=>typeof d=="function",p=d=>typeof d=="string",m=d=>typeof d=="boolean",v=d=>typeof d=="number",E=d=>typeof d=="undefined"},70655:function(W,C,i){i.d(C,{CR:function(){return b},Jh:function(){return D},XA:function(){return y},ZT:function(){return h},_T:function(){return m},ev:function(){return w},mG:function(){return _},pi:function(){return p},pr:function(){return c}});var u=function(e,r){return u=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(t[a]=n[a])},u(e,r)};function h(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");u(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var p=function(){return p=Object.assign||function(r){for(var t,n=1,a=arguments.length;n<a;n++){t=arguments[n];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r},p.apply(this,arguments)};function m(e,r){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&r.indexOf(n)<0&&(t[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,n=Object.getOwnPropertySymbols(e);a<n.length;a++)r.indexOf(n[a])<0&&Object.prototype.propertyIsEnumerable.call(e,n[a])&&(t[n[a]]=e[n[a]]);return t}function v(e,r,t,n){var a=arguments.length,o=a<3?r:n===null?n=Object.getOwnPropertyDescriptor(r,t):n,l;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,r,t,n);else for(var P=e.length-1;P>=0;P--)(l=e[P])&&(o=(a<3?l(o):a>3?l(r,t,o):l(r,t))||o);return a>3&&o&&Object.defineProperty(r,t,o),o}function E(e,r){return function(t,n){r(t,n,e)}}function d(e,r){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,r)}function _(e,r,t,n){function a(o){return o instanceof t?o:new t(function(l){l(o)})}return new(t||(t=Promise))(function(o,l){function P(T){try{s(n.next(T))}catch(A){l(A)}}function Z(T){try{s(n.throw(T))}catch(A){l(A)}}function s(T){T.done?o(T.value):a(T.value).then(P,Z)}s((n=n.apply(e,r||[])).next())})}function D(e,r){var t={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,a,o,l;return l={next:P(0),throw:P(1),return:P(2)},typeof Symbol=="function"&&(l[Symbol.iterator]=function(){return this}),l;function P(s){return function(T){return Z([s,T])}}function Z(s){if(n)throw new TypeError("Generator is already executing.");for(;l&&(l=0,s[0]&&(t=0)),t;)try{if(n=1,a&&(o=s[0]&2?a.return:s[0]?a.throw||((o=a.return)&&o.call(a),0):a.next)&&!(o=o.call(a,s[1])).done)return o;switch(a=0,o&&(s=[s[0]&2,o.value]),s[0]){case 0:case 1:o=s;break;case 4:return t.label++,{value:s[1],done:!1};case 5:t.label++,a=s[1],s=[0];continue;case 7:s=t.ops.pop(),t.trys.pop();continue;default:if(o=t.trys,!(o=o.length>0&&o[o.length-1])&&(s[0]===6||s[0]===2)){t=0;continue}if(s[0]===3&&(!o||s[1]>o[0]&&s[1]<o[3])){t.label=s[1];break}if(s[0]===6&&t.label<o[1]){t.label=o[1],o=s;break}if(o&&t.label<o[2]){t.label=o[2],t.ops.push(s);break}o[2]&&t.ops.pop(),t.trys.pop();continue}s=r.call(e,t)}catch(T){s=[6,T],a=0}finally{n=o=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}}var O=Object.create?function(e,r,t,n){n===void 0&&(n=t);var a=Object.getOwnPropertyDescriptor(r,t);(!a||("get"in a?!r.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,n,a)}:function(e,r,t,n){n===void 0&&(n=t),e[n]=r[t]};function F(e,r){for(var t in e)t!=="default"&&!Object.prototype.hasOwnProperty.call(r,t)&&O(r,e,t)}function y(e){var r=typeof Symbol=="function"&&Symbol.iterator,t=r&&e[r],n=0;if(t)return t.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(r?"Object is not iterable.":"Symbol.iterator is not defined.")}function b(e,r){var t=typeof Symbol=="function"&&e[Symbol.iterator];if(!t)return e;var n=t.call(e),a,o=[],l;try{for(;(r===void 0||r-- >0)&&!(a=n.next()).done;)o.push(a.value)}catch(P){l={error:P}}finally{try{a&&!a.done&&(t=n.return)&&t.call(n)}finally{if(l)throw l.error}}return o}function f(){for(var e=[],r=0;r<arguments.length;r++)e=e.concat(b(arguments[r]));return e}function c(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;for(var n=Array(e),a=0,r=0;r<t;r++)for(var o=arguments[r],l=0,P=o.length;l<P;l++,a++)n[a]=o[l];return n}function w(e,r,t){if(t||arguments.length===2)for(var n=0,a=r.length,o;n<a;n++)(o||!(n in r))&&(o||(o=Array.prototype.slice.call(r,0,n)),o[n]=r[n]);return e.concat(o||Array.prototype.slice.call(r))}function M(e){return this instanceof M?(this.v=e,this):new M(e)}function j(e,r,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=t.apply(e,r||[]),a,o=[];return a={},l("next"),l("throw"),l("return"),a[Symbol.asyncIterator]=function(){return this},a;function l(g){n[g]&&(a[g]=function(B){return new Promise(function(z,V){o.push([g,B,z,V])>1||P(g,B)})})}function P(g,B){try{Z(n[g](B))}catch(z){A(o[0][3],z)}}function Z(g){g.value instanceof M?Promise.resolve(g.value.v).then(s,T):A(o[0][2],g)}function s(g){P("next",g)}function T(g){P("throw",g)}function A(g,B){g(B),o.shift(),o.length&&P(o[0][0],o[0][1])}}function R(e){var r,t;return r={},n("next"),n("throw",function(a){throw a}),n("return"),r[Symbol.iterator]=function(){return this},r;function n(a,o){r[a]=e[a]?function(l){return(t=!t)?{value:M(e[a](l)),done:a==="return"}:o?o(l):l}:o}}function x(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=e[Symbol.asyncIterator],t;return r?r.call(e):(e=typeof y=="function"?y(e):e[Symbol.iterator](),t={},n("next"),n("throw"),n("return"),t[Symbol.asyncIterator]=function(){return this},t);function n(o){t[o]=e[o]&&function(l){return new Promise(function(P,Z){l=e[o](l),a(P,Z,l.done,l.value)})}}function a(o,l,P,Z){Promise.resolve(Z).then(function(s){o({value:s,done:P})},l)}}function I(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e}var S=Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r};function L(e){if(e&&e.__esModule)return e;var r={};if(e!=null)for(var t in e)t!=="default"&&Object.prototype.hasOwnProperty.call(e,t)&&O(r,e,t);return S(r,e),r}function U(e){return e&&e.__esModule?e:{default:e}}function K(e,r,t,n){if(t==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof r=="function"?e!==r||!n:!r.has(e))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?n:t==="a"?n.call(e):n?n.value:r.get(e)}function G(e,r,t,n,a){if(n==="m")throw new TypeError("Private method is not writable");if(n==="a"&&!a)throw new TypeError("Private accessor was defined without a setter");if(typeof r=="function"?e!==r||!a:!r.has(e))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?a.call(e,t):a?a.value=t:r.set(e,t),t}function N(e,r){if(r===null||typeof r!="object"&&typeof r!="function")throw new TypeError("Cannot use 'in' operator on non-object");return typeof e=="function"?r===e:e.has(r)}}}]);
|