/* * 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 . */ "use strict";(self.webpackChunktopiam_console=self.webpackChunktopiam_console||[]).push([[7636],{36489:function(B,g,i){i.d(g,{Z:function(){return d}});var s=i(5543),m=i(79685),E={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"},P=E,O=i(20165),C=function(D,T){return m.createElement(O.Z,(0,s.Z)((0,s.Z)({},D),{},{ref:T,icon:P}))};C.displayName="WarningOutlined";var d=m.forwardRef(C)},64213:function(B,g,i){var s=i(5543),m=i(66105),E=i(54969),P=i(10779),O=i(79685),C=i(60353),d=i(57231),_=i(63342),D=["options","fieldProps","proFieldProps","valueEnum"],T=O.forwardRef(function(f,c){var y=f.options,w=f.fieldProps,A=f.proFieldProps,S=f.valueEnum,W=(0,m.Z)(f,D);return(0,_.jsx)(d.Z,(0,s.Z)({ref:c,valueType:"checkbox",valueEnum:(0,E.h)(S,void 0),fieldProps:(0,s.Z)({options:y},w),lightProps:(0,s.Z)({labelFormatter:function(){return(0,_.jsx)(d.Z,(0,s.Z)({ref:c,valueType:"checkbox",mode:"read",valueEnum:(0,E.h)(S,void 0),filedConfig:{customLightMode:!0},fieldProps:(0,s.Z)({options:y},w),proFieldProps:A},W))}},W.lightProps),proFieldProps:A},W))}),F=O.forwardRef(function(f,c){var y=f.fieldProps,w=f.children;return(0,_.jsx)(P.Z,(0,s.Z)((0,s.Z)({ref:c},y),{},{children:w}))}),R=(0,C.G)(F,{valuePropName:"checked"}),h=R;h.Group=T,g.Z=h},21574:function(B,g,i){var s=i(5543),m=i(66105),E=i(54969),P=i(83741),O=i(79685),C=i(60353),d=i(57231),_=i(63342),D=["fieldProps","options","radioType","layout","proFieldProps","valueEnum"],T=O.forwardRef(function(f,c){var y=f.fieldProps,w=f.options,A=f.radioType,S=f.layout,W=f.proFieldProps,Z=f.valueEnum,U=(0,m.Z)(f,D);return(0,_.jsx)(d.Z,(0,s.Z)((0,s.Z)({valueType:A==="button"?"radioButton":"radio",ref:c,valueEnum:(0,E.h)(Z,void 0)},U),{},{fieldProps:(0,s.Z)({options:w,layout:S},y),proFieldProps:W,filedConfig:{customLightMode:!0}}))}),F=O.forwardRef(function(f,c){var y=f.fieldProps,w=f.children;return(0,_.jsx)(P.ZP,(0,s.Z)((0,s.Z)({},y),{},{ref:c,children:w}))}),R=(0,C.G)(F,{valuePropName:"checked",ignoreWidth:!0}),h=R;h.Group=T,h.Button=P.ZP.Button,h.displayName="ProFormComponent",g.Z=h},27181:function(B,g,i){var s=i(5543),m=i(66105),E=i(54969),P=i(79685),O=i(79639),C=i(57231),d=i(63342),_=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],D=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],T=P.forwardRef(function(c,y){var w=c.fieldProps,A=c.children,S=c.params,W=c.proFieldProps,Z=c.mode,U=c.valueEnum,V=c.request,z=c.showSearch,H=c.options,G=(0,m.Z)(c,_),J=(0,P.useContext)(O.Z);return(0,d.jsx)(C.Z,(0,s.Z)((0,s.Z)({valueEnum:(0,E.h)(U),request:V,params:S,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,s.Z)({options:H,mode:Z,showSearch:z,getPopupContainer:J.getPopupContainer},w),ref:y,proFieldProps:W},G),{},{children:A}))}),F=P.forwardRef(function(c,y){var w=c.fieldProps,A=c.children,S=c.params,W=c.proFieldProps,Z=c.mode,U=c.valueEnum,V=c.request,z=c.options,H=(0,m.Z)(c,D),G=(0,s.Z)({options:z,mode:Z||"multiple",labelInValue:!0,showSearch:!0,showArrow:!1,autoClearSearchValue:!0,optionLabelProp:"label"},w),J=(0,P.useContext)(O.Z);return(0,d.jsx)(C.Z,(0,s.Z)((0,s.Z)({valueEnum:(0,E.h)(U),request:V,params:S,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,s.Z)({getPopupContainer:J.getPopupContainer},G),ref:y,proFieldProps:W},H),{},{children:A}))}),R=T,h=F,f=R;f.SearchSelect=h,f.displayName="ProFormComponent",g.Z=f},66767:function(B,g,i){var s=i(5543),m=i(66105),E=i(79685),P=i(57231),O=i(63342),C=["fieldProps","unCheckedChildren","checkedChildren","proFieldProps"],d=E.forwardRef(function(_,D){var T=_.fieldProps,F=_.unCheckedChildren,R=_.checkedChildren,h=_.proFieldProps,f=(0,m.Z)(_,C);return(0,O.jsx)(P.Z,(0,s.Z)({valueType:"switch",fieldProps:(0,s.Z)({unCheckedChildren:F,checkedChildren:R},T),ref:D,valuePropName:"checked",proFieldProps:h,filedConfig:{valuePropName:"checked",ignoreWidth:!0}},f))});g.Z=d},3723:function(B,g,i){var s=i(5543),m=i(66105),E=i(79685),P=i(57231),O=i(63342),C=["fieldProps","proFieldProps"],d=["fieldProps","proFieldProps"],_="text",D=function(h){var f=h.fieldProps,c=h.proFieldProps,y=(0,m.Z)(h,C);return(0,O.jsx)(P.Z,(0,s.Z)({valueType:_,fieldProps:f,filedConfig:{valueType:_},proFieldProps:c},y))},T=function(h){var f=h.fieldProps,c=h.proFieldProps,y=(0,m.Z)(h,d);return(0,O.jsx)(P.Z,(0,s.Z)({valueType:"password",fieldProps:f,proFieldProps:c,filedConfig:{valueType:_}},y))},F=D;F.Password=T,F.displayName="ProFormComponent",g.Z=F},15457:function(B,g,i){var s=i(29268),m=i(79685),E=i(43865);function P(O,C){function d(_){return(0,E.mf)(_[Symbol.asyncIterator])}(0,m.useEffect)(()=>{const _=O();let D=!1;function T(){return(0,s.mG)(this,void 0,void 0,function*(){if(d(_))for(;!((yield _.next()).done||D););else yield _})}return T(),()=>{D=!0}},C)}g.Z=P},43865:function(B,g,i){i.d(g,{mf:function(){return m}});const s=d=>d!==null&&typeof d=="object",m=d=>typeof d=="function",E=d=>typeof d=="string",P=d=>typeof d=="boolean",O=d=>typeof d=="number",C=d=>typeof d=="undefined"},29268:function(B,g,i){i.d(g,{CR:function(){return w},Jh:function(){return h},XA:function(){return y},ZT:function(){return m},_T:function(){return P},ev:function(){return W},mG:function(){return R},pi:function(){return E},pr:function(){return S}});var s=function(e,r){return s=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])},s(e,r)};function m(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");s(e,r);function t(){this.constructor=e}e.prototype=r===null?Object.create(r):(t.prototype=r.prototype,new t)}var E=function(){return E=Object.assign||function(r){for(var t,n=1,a=arguments.length;n=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 C(e,r){return function(t,n){r(t,n,e)}}function d(e,r,t,n,a,o){function l(N){if(N!==void 0&&typeof N!="function")throw new TypeError("Function expected");return N}for(var p=n.kind,j=p==="getter"?"get":p==="setter"?"set":"value",u=!r&&e?n.static?e:e.prototype:null,v=r||(u?Object.getOwnPropertyDescriptor(u,n.name):{}),M,b=!1,x=t.length-1;x>=0;x--){var I={};for(var L in n)I[L]=L==="access"?{}:n[L];for(var L in n.access)I.access[L]=n.access[L];I.addInitializer=function(N){if(b)throw new TypeError("Cannot add initializers after decoration has completed");o.push(l(N||null))};var K=(0,t[x])(p==="accessor"?{get:v.get,set:v.set}:v[j],I);if(p==="accessor"){if(K===void 0)continue;if(K===null||typeof K!="object")throw new TypeError("Object expected");(M=l(K.get))&&(v.get=M),(M=l(K.set))&&(v.set=M),(M=l(K.init))&&a.push(M)}else(M=l(K))&&(p==="field"?a.push(M):v[j]=M)}u&&Object.defineProperty(u,n.name,v),b=!0}function _(e,r,t){for(var n=arguments.length>2,a=0;a0&&o[o.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]=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 w(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 A(){for(var e=[],r=0;r1||p(b,x)})})}function p(b,x){try{j(n[b](x))}catch(I){M(o[0][3],I)}}function j(b){b.value instanceof Z?Promise.resolve(b.value.v).then(u,v):M(o[0][2],b)}function u(b){p("next",b)}function v(b){p("throw",b)}function M(b,x){b(x),o.shift(),o.length&&p(o[0][0],o[0][1])}}function V(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:Z(e[a](l)),done:!1}:o?o(l):l}:o}}function z(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,j){l=e[o](l),a(p,j,l.done,l.value)})}}function a(o,l,p,j){Promise.resolve(j).then(function(u){o({value:u,done:p})},l)}}function H(e,r){return Object.defineProperty?Object.defineProperty(e,"raw",{value:r}):e.raw=r,e}var G=Object.create?function(e,r){Object.defineProperty(e,"default",{enumerable:!0,value:r})}:function(e,r){e.default=r};function J(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)&&f(r,e,t);return G(r,e),r}function X(e){return e&&e.__esModule?e:{default:e}}function Q(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 Y(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 $(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)}}}]);