@dbs-portal/module-identity
Version:
Identity management module for user and role management
62 lines (54 loc) • 123 kB
JavaScript
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("react/jsx-runtime"),k=require("react"),r=require("antd"),y=require("@tanstack/react-query"),_t=require("@dbs-portal/core-api");function bn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const s in e)if(s!=="default"){const i=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,i.get?i:{enumerable:!0,get:()=>e[s]})}}return t.default=e,Object.freeze(t)}const g=bn(k),zt=k.createContext({});function vn(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var qt={exports:{}};/*!
Copyright (c) 2018 Jed Watson.
Licensed under the MIT License (MIT), see
http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function s(){for(var o="",l=0;l<arguments.length;l++){var c=arguments[l];c&&(o=a(o,i(c)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return s.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var l="";for(var c in o)t.call(o,c)&&o[c]&&(l=a(l,c));return l}function a(o,l){return l?o?o+" "+l:o+l:o}e.exports?(s.default=s,e.exports=s):window.classNames=s})()})(qt);var Cn=qt.exports;const Sn=vn(Cn),On={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},T=Math.round;function ve(e,t){const s=e.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],i=s.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)i[a]=t(i[a]||0,s[a]||"",a);return s[3]?i[3]=s[3].includes("%")?i[3]/100:i[3]:i[3]=1,i}const bt=(e,t,s)=>s===0?e:e/100;function te(e,t){const s=t||255;return e>s?s:e<0?0:e}class Q{isValid=!0;r=0;g=0;b=0;a=1;_h;_s;_l;_v;_max;_min;_brightness;constructor(t){function s(i){return i[0]in t&&i[1]in t&&i[2]in t}if(t)if(typeof t=="string"){let a=function(o){return i.startsWith(o)};const i=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(i))this.fromHexString(i);else if(a("rgb"))this.fromRgbString(i);else if(a("hsl"))this.fromHslString(i);else if(a("hsv")||a("hsb"))this.fromHsvString(i);else{const o=On[i.toLowerCase()];o&&this.fromHexString(parseInt(o,36).toString(16).padStart(6,"0"))}}else if(t instanceof Q)this.r=t.r,this.g=t.g,this.b=t.b,this.a=t.a,this._h=t._h,this._s=t._s,this._l=t._l,this._v=t._v;else if(s("rgb"))this.r=te(t.r),this.g=te(t.g),this.b=te(t.b),this.a=typeof t.a=="number"?te(t.a,1):1;else if(s("hsl"))this.fromHsl(t);else if(s("hsv"))this.fromHsv(t);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(t))}setR(t){return this._sc("r",t)}setG(t){return this._sc("g",t)}setB(t){return this._sc("b",t)}setA(t){return this._sc("a",t,1)}setHue(t){const s=this.toHsv();return s.h=t,this._c(s)}getLuminance(){function t(o){const l=o/255;return l<=.03928?l/12.92:Math.pow((l+.055)/1.055,2.4)}const s=t(this.r),i=t(this.g),a=t(this.b);return .2126*s+.7152*i+.0722*a}getHue(){if(typeof this._h>"u"){const t=this.getMax()-this.getMin();t===0?this._h=0:this._h=T(60*(this.r===this.getMax()?(this.g-this.b)/t+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/t+2:(this.r-this.g)/t+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const t=this.getMax()-this.getMin();t===0?this._s=0:this._s=t/this.getMax()}return this._s}getLightness(){return typeof this._l>"u"&&(this._l=(this.getMax()+this.getMin())/510),this._l}getValue(){return typeof this._v>"u"&&(this._v=this.getMax()/255),this._v}getBrightness(){return typeof this._brightness>"u"&&(this._brightness=(this.r*299+this.g*587+this.b*114)/1e3),this._brightness}darken(t=10){const s=this.getHue(),i=this.getSaturation();let a=this.getLightness()-t/100;return a<0&&(a=0),this._c({h:s,s:i,l:a,a:this.a})}lighten(t=10){const s=this.getHue(),i=this.getSaturation();let a=this.getLightness()+t/100;return a>1&&(a=1),this._c({h:s,s:i,l:a,a:this.a})}mix(t,s=50){const i=this._c(t),a=s/100,o=c=>(i[c]-this[c])*a+this[c],l={r:T(o("r")),g:T(o("g")),b:T(o("b")),a:T(o("a")*100)/100};return this._c(l)}tint(t=10){return this.mix({r:255,g:255,b:255,a:1},t)}shade(t=10){return this.mix({r:0,g:0,b:0,a:1},t)}onBackground(t){const s=this._c(t),i=this.a+s.a*(1-this.a),a=o=>T((this[o]*this.a+s[o]*s.a*(1-this.a))/i);return this._c({r:a("r"),g:a("g"),b:a("b"),a:i})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(t){return this.r===t.r&&this.g===t.g&&this.b===t.b&&this.a===t.a}clone(){return this._c(this)}toHexString(){let t="#";const s=(this.r||0).toString(16);t+=s.length===2?s:"0"+s;const i=(this.g||0).toString(16);t+=i.length===2?i:"0"+i;const a=(this.b||0).toString(16);if(t+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const o=T(this.a*255).toString(16);t+=o.length===2?o:"0"+o}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),s=T(this.getSaturation()*100),i=T(this.getLightness()*100);return this.a!==1?`hsla(${t},${s}%,${i}%,${this.a})`:`hsl(${t},${s}%,${i}%)`}toHsv(){return{h:this.getHue(),s:this.getSaturation(),v:this.getValue(),a:this.a}}toRgb(){return{r:this.r,g:this.g,b:this.b,a:this.a}}toRgbString(){return this.a!==1?`rgba(${this.r},${this.g},${this.b},${this.a})`:`rgb(${this.r},${this.g},${this.b})`}toString(){return this.toRgbString()}_sc(t,s,i){const a=this.clone();return a[t]=te(s,i),a}_c(t){return new this.constructor(t)}getMax(){return typeof this._max>"u"&&(this._max=Math.max(this.r,this.g,this.b)),this._max}getMin(){return typeof this._min>"u"&&(this._min=Math.min(this.r,this.g,this.b)),this._min}fromHexString(t){const s=t.replace("#","");function i(a,o){return parseInt(s[a]+s[o||a],16)}s.length<6?(this.r=i(0),this.g=i(1),this.b=i(2),this.a=s[3]?i(3)/255:1):(this.r=i(0,1),this.g=i(2,3),this.b=i(4,5),this.a=s[6]?i(6,7)/255:1)}fromHsl({h:t,s,l:i,a}){if(this._h=t%360,this._s=s,this._l=i,this.a=typeof a=="number"?a:1,s<=0){const p=T(i*255);this.r=p,this.g=p,this.b=p}let o=0,l=0,c=0;const d=t/60,u=(1-Math.abs(2*i-1))*s,h=u*(1-Math.abs(d%2-1));d>=0&&d<1?(o=u,l=h):d>=1&&d<2?(o=h,l=u):d>=2&&d<3?(l=u,c=h):d>=3&&d<4?(l=h,c=u):d>=4&&d<5?(o=h,c=u):d>=5&&d<6&&(o=u,c=h);const m=i-u/2;this.r=T((o+m)*255),this.g=T((l+m)*255),this.b=T((c+m)*255)}fromHsv({h:t,s,v:i,a}){this._h=t%360,this._s=s,this._v=i,this.a=typeof a=="number"?a:1;const o=T(i*255);if(this.r=o,this.g=o,this.b=o,s<=0)return;const l=t/60,c=Math.floor(l),d=l-c,u=T(i*(1-s)*255),h=T(i*(1-s*d)*255),m=T(i*(1-s*(1-d))*255);switch(c){case 0:this.g=m,this.b=u;break;case 1:this.r=h,this.b=u;break;case 2:this.r=u,this.b=m;break;case 3:this.r=u,this.g=h;break;case 4:this.r=m,this.g=u;break;case 5:default:this.g=u,this.b=h;break}}fromHsvString(t){const s=ve(t,bt);this.fromHsv({h:s[0],s:s[1],v:s[2],a:s[3]})}fromHslString(t){const s=ve(t,bt);this.fromHsl({h:s[0],s:s[1],l:s[2],a:s[3]})}fromRgbString(t){const s=ve(t,(i,a)=>a.includes("%")?T(i/100*255):i);this.r=s[0],this.g=s[1],this.b=s[2],this.a=s[3]}}const ce=2,vt=.16,kn=.05,Tn=.05,Rn=.15,Bt=5,Ht=4,Dn=[{index:7,amount:15},{index:6,amount:25},{index:5,amount:30},{index:5,amount:45},{index:5,amount:65},{index:5,amount:85},{index:4,amount:90},{index:3,amount:95},{index:2,amount:97},{index:1,amount:98}];function Ct(e,t,s){let i;return Math.round(e.h)>=60&&Math.round(e.h)<=240?i=s?Math.round(e.h)-ce*t:Math.round(e.h)+ce*t:i=s?Math.round(e.h)+ce*t:Math.round(e.h)-ce*t,i<0?i+=360:i>=360&&(i-=360),i}function St(e,t,s){if(e.h===0&&e.s===0)return e.s;let i;return s?i=e.s-vt*t:t===Ht?i=e.s+vt:i=e.s+kn*t,i>1&&(i=1),s&&t===Bt&&i>.1&&(i=.1),i<.06&&(i=.06),Math.round(i*100)/100}function Ot(e,t,s){let i;return s?i=e.v+Tn*t:i=e.v-Rn*t,i=Math.max(0,Math.min(1,i)),Math.round(i*100)/100}function Pn(e,t={}){const s=[],i=new Q(e),a=i.toHsv();for(let o=Bt;o>0;o-=1){const l=new Q({h:Ct(a,o,!0),s:St(a,o,!0),v:Ot(a,o,!0)});s.push(l)}s.push(i);for(let o=1;o<=Ht;o+=1){const l=new Q({h:Ct(a,o),s:St(a,o),v:Ot(a,o)});s.push(l)}return t.theme==="dark"?Dn.map(({index:o,amount:l})=>new Q(t.backgroundColor||"#141414").mix(s[o],l).toHexString()):s.map(o=>o.toHexString())}const Te=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Te.primary=Te[5];function En(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function Nn(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let s=t;for(;s;){if(s===e)return!0;s=s.parentNode}return!1}const kt="data-rc-order",Tt="data-rc-priority",Mn="rc-util-key",Re=new Map;function Wt({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:Mn}function rt(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function Fn(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function it(e){return Array.from((Re.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function Vt(e,t={}){if(!En())return null;const{csp:s,prepend:i,priority:a=0}=t,o=Fn(i),l=o==="prependQueue",c=document.createElement("style");c.setAttribute(kt,o),l&&a&&c.setAttribute(Tt,`${a}`),s?.nonce&&(c.nonce=s?.nonce),c.innerHTML=e;const d=rt(t),{firstChild:u}=d;if(i){if(l){const h=(t.styles||it(d)).filter(m=>{if(!["prepend","prependQueue"].includes(m.getAttribute(kt)))return!1;const p=Number(m.getAttribute(Tt)||0);return a>=p});if(h.length)return d.insertBefore(c,h[h.length-1].nextSibling),c}d.insertBefore(c,u)}else d.appendChild(c);return c}function An(e,t={}){let{styles:s}=t;return s||=it(rt(t)),s.find(i=>i.getAttribute(Wt(t))===e)}function Un(e,t){const s=Re.get(e);if(!s||!Nn(document,s)){const i=Vt("",t),{parentNode:a}=i;Re.set(e,a),e.removeChild(i)}}function In(e,t,s={}){const i=rt(s),a=it(i),o={...s,styles:a};Un(i,o);const l=An(t,o);if(l)return o.csp?.nonce&&l.nonce!==o.csp?.nonce&&(l.nonce=o.csp?.nonce),l.innerHTML!==e&&(l.innerHTML=e),l;const c=Vt(e,o);return c.setAttribute(Wt(o),t),c}function Qt(e){return e?.getRootNode?.()}function $n(e){return Qt(e)instanceof ShadowRoot}function Ln(e){return $n(e)?Qt(e):null}let De={};const at=[],_n=e=>{at.push(e)};function zn(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const s=at.reduce((i,a)=>a(i??"","warning"),t);s&&console.error(`Warning: ${s}`)}}function qn(e,t){if(process.env.NODE_ENV!=="production"&&!e&&console!==void 0){const s=at.reduce((i,a)=>a(i??"","note"),t);s&&console.warn(`Note: ${s}`)}}function Bn(){De={}}function Yt(e,t,s){!t&&!De[s]&&(e(!1,s),De[s]=!0)}function fe(e,t){Yt(zn,e,t)}function Hn(e,t){Yt(qn,e,t)}fe.preMessage=_n;fe.resetWarned=Bn;fe.noteOnce=Hn;function Wn(e){return e.replace(/-(.)/g,(t,s)=>s.toUpperCase())}function Vn(e,t){fe(e,`[@ant-design/icons] ${t}`)}function Rt(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function Dt(e={}){return Object.keys(e).reduce((t,s)=>{const i=e[s];switch(s){case"class":t.className=i,delete t.class;break;default:delete t[s],t[Wn(s)]=i}return t},{})}function Pe(e,t,s){return s?k.createElement(e.tag,{key:t,...Dt(e.attrs),...s},(e.children||[]).map((i,a)=>Pe(i,`${t}-${e.tag}-${a}`))):k.createElement(e.tag,{key:t,...Dt(e.attrs)},(e.children||[]).map((i,a)=>Pe(i,`${t}-${e.tag}-${a}`)))}function Kt(e){return Pn(e)[0]}function Gt(e){return e?Array.isArray(e)?e:[e]:[]}const Qn=`
.anticon {
display: inline-flex;
align-items: center;
color: inherit;
font-style: normal;
line-height: 0;
text-align: center;
text-transform: none;
vertical-align: -0.125em;
text-rendering: optimizeLegibility;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
.anticon > * {
line-height: 1;
}
.anticon svg {
display: inline-block;
}
.anticon::before {
display: none;
}
.anticon .anticon-icon {
display: block;
}
.anticon[tabindex] {
cursor: pointer;
}
.anticon-spin::before,
.anticon-spin {
display: inline-block;
-webkit-animation: loadingCircle 1s infinite linear;
animation: loadingCircle 1s infinite linear;
}
@-webkit-keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
@keyframes loadingCircle {
100% {
-webkit-transform: rotate(360deg);
transform: rotate(360deg);
}
}
`,Yn=e=>{const{csp:t,prefixCls:s,layer:i}=k.useContext(zt);let a=Qn;s&&(a=a.replace(/anticon/g,s)),i&&(a=`@layer ${i} {
${a}
}`),k.useEffect(()=>{const o=e.current,l=Ln(o);In(a,"@ant-design-icons",{prepend:!i,csp:t,attachTo:l})},[])},ie={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function Kn({primaryColor:e,secondaryColor:t}){ie.primaryColor=e,ie.secondaryColor=t||Kt(e),ie.calculated=!!t}function Gn(){return{...ie}}const X=e=>{const{icon:t,className:s,onClick:i,style:a,primaryColor:o,secondaryColor:l,...c}=e,d=g.useRef();let u=ie;if(o&&(u={primaryColor:o,secondaryColor:l||Kt(o)}),Yn(d),Vn(Rt(t),`icon should be icon definiton, but got ${t}`),!Rt(t))return null;let h=t;return h&&typeof h.icon=="function"&&(h={...h,icon:h.icon(u.primaryColor,u.secondaryColor)}),Pe(h.icon,`svg-${h.name}`,{className:s,onClick:i,style:a,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...c,ref:d})};X.displayName="IconReact";X.getTwoToneColors=Gn;X.setTwoToneColors=Kn;function Xt(e){const[t,s]=Gt(e);return X.setTwoToneColors({primaryColor:t,secondaryColor:s})}function Xn(){const e=X.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function Ee(){return Ee=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Ee.apply(this,arguments)}Xt(Te.primary);const v=g.forwardRef((e,t)=>{const{className:s,icon:i,spin:a,rotate:o,tabIndex:l,onClick:c,twoToneColor:d,...u}=e,{prefixCls:h="anticon",rootClassName:m}=g.useContext(zt),p=Sn(m,h,{[`${h}-${i.name}`]:!!i.name,[`${h}-spin`]:!!a||i.name==="loading"},s);let x=l;x===void 0&&c&&(x=-1);const R=o?{msTransform:`rotate(${o}deg)`,transform:`rotate(${o}deg)`}:void 0,[M,j]=Gt(d);return g.createElement("span",Ee({role:"img","aria-label":i.name},u,{ref:t,tabIndex:x,onClick:c,className:p}),g.createElement(X,{icon:i,primaryColor:M,secondaryColor:j,style:R}))});v.displayName="AntdIcon";v.getTwoToneColor=Xn;v.setTwoToneColor=Xt;var Jn={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M872 474H286.9l350.2-304c5.6-4.9 2.2-14-5.2-14h-88.5c-3.9 0-7.6 1.4-10.5 3.9L155 487.8a31.96 31.96 0 000 48.3L535.1 866c1.5 1.3 3.3 2 5.2 2h91.5c7.4 0 10.8-9.2 5.2-14L286.9 550H872c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8z"}}]},name:"arrow-left",theme:"outlined"};function Ne(){return Ne=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Ne.apply(this,arguments)}const Zn=(e,t)=>g.createElement(v,Ne({},e,{ref:t,icon:Jn})),P=g.forwardRef(Zn);process.env.NODE_ENV!=="production"&&(P.displayName="ArrowLeftOutlined");var es={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 184H712v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H384v-64c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H144c-17.7 0-32 14.3-32 32v664c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V216c0-17.7-14.3-32-32-32zm-40 656H184V460h656v380zM184 392V256h128v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h256v48c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-48h128v136H184z"}}]},name:"calendar",theme:"outlined"};function Me(){return Me=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Me.apply(this,arguments)}const ts=(e,t)=>g.createElement(v,Me({},e,{ref:t,icon:es})),Y=g.forwardRef(ts);process.env.NODE_ENV!=="production"&&(Y.displayName="CalendarOutlined");var ns={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"};function Fe(){return Fe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Fe.apply(this,arguments)}const ss=(e,t)=>g.createElement(v,Fe({},e,{ref:t,icon:ns})),L=g.forwardRef(ss);process.env.NODE_ENV!=="production"&&(L.displayName="CheckCircleOutlined");var rs={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"};function Ae(){return Ae=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Ae.apply(this,arguments)}const is=(e,t)=>g.createElement(v,Ae({},e,{ref:t,icon:rs})),K=g.forwardRef(is);process.env.NODE_ENV!=="production"&&(K.displayName="CloseCircleOutlined");var as={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"}}]},name:"delete",theme:"outlined"};function Ue(){return Ue=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Ue.apply(this,arguments)}const os=(e,t)=>g.createElement(v,Ue({},e,{ref:t,icon:as})),J=g.forwardRef(os);process.env.NODE_ENV!=="production"&&(J.displayName="DeleteOutlined");var ls={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"}}]},name:"edit",theme:"outlined"};function Ie(){return Ie=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Ie.apply(this,arguments)}const cs=(e,t)=>g.createElement(v,Ie({},e,{ref:t,icon:ls})),Z=g.forwardRef(cs);process.env.NODE_ENV!=="production"&&(Z.displayName="EditOutlined");var ds={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"}}]},name:"export",theme:"outlined"};function $e(){return $e=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},$e.apply(this,arguments)}const us=(e,t)=>g.createElement(v,$e({},e,{ref:t,icon:ds})),G=g.forwardRef(us);process.env.NODE_ENV!=="production"&&(G.displayName="ExportOutlined");var hs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"};function Le(){return Le=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Le.apply(this,arguments)}const ms=(e,t)=>g.createElement(v,Le({},e,{ref:t,icon:hs})),_e=g.forwardRef(ms);process.env.NODE_ENV!=="production"&&(_e.displayName="EyeInvisibleOutlined");var fs={icon:function(t,s){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M81.8 537.8a60.3 60.3 0 010-51.5C176.6 286.5 319.8 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c-192.1 0-335.4-100.5-430.2-300.2z",fill:s}},{tag:"path",attrs:{d:"M512 258c-161.3 0-279.4 81.8-362.7 254C232.6 684.2 350.7 766 512 766c161.4 0 279.5-81.8 362.7-254C791.4 339.8 673.3 258 512 258zm-4 430c-97.2 0-176-78.8-176-176s78.8-176 176-176 176 78.8 176 176-78.8 176-176 176z",fill:s}},{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258s279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766z",fill:t}},{tag:"path",attrs:{d:"M508 336c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z",fill:t}}]}},name:"eye",theme:"twotone"};function ze(){return ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},ze.apply(this,arguments)}const gs=(e,t)=>g.createElement(v,ze({},e,{ref:t,icon:fs})),qe=g.forwardRef(gs);process.env.NODE_ENV!=="production"&&(qe.displayName="EyeTwoTone");var ps={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};function Be(){return Be=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Be.apply(this,arguments)}const xs=(e,t)=>g.createElement(v,Be({},e,{ref:t,icon:ps})),ge=g.forwardRef(xs);process.env.NODE_ENV!=="production"&&(ge.displayName="FilterOutlined");var ys={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};function He(){return He=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},He.apply(this,arguments)}const js=(e,t)=>g.createElement(v,He({},e,{ref:t,icon:ys})),ot=g.forwardRef(js);process.env.NODE_ENV!=="production"&&(ot.displayName="InfoCircleOutlined");var ws={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};function We(){return We=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},We.apply(this,arguments)}const bs=(e,t)=>g.createElement(v,We({},e,{ref:t,icon:ws})),U=g.forwardRef(bs);process.env.NODE_ENV!=="production"&&(U.displayName="LockOutlined");var vs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 01520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 01270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 010 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z"}}]},name:"login",theme:"outlined"};function Ve(){return Ve=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Ve.apply(this,arguments)}const Cs=(e,t)=>g.createElement(v,Ve({},e,{ref:t,icon:vs})),Qe=g.forwardRef(Cs);process.env.NODE_ENV!=="production"&&(Qe.displayName="LoginOutlined");var Ss={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};function Ye(){return Ye=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Ye.apply(this,arguments)}const Os=(e,t)=>g.createElement(v,Ye({},e,{ref:t,icon:Ss})),Jt=g.forwardRef(Os);process.env.NODE_ENV!=="production"&&(Jt.displayName="LogoutOutlined");var ks={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"};function Ke(){return Ke=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Ke.apply(this,arguments)}const Ts=(e,t)=>g.createElement(v,Ke({},e,{ref:t,icon:ks})),pe=g.forwardRef(Ts);process.env.NODE_ENV!=="production"&&(pe.displayName="MailOutlined");var Rs={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z"}}]},name:"phone",theme:"outlined"};function Ge(){return Ge=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Ge.apply(this,arguments)}const Ds=(e,t)=>g.createElement(v,Ge({},e,{ref:t,icon:Rs})),xe=g.forwardRef(Ds);process.env.NODE_ENV!=="production"&&(xe.displayName="PhoneOutlined");var Ps={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"};function Xe(){return Xe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Xe.apply(this,arguments)}const Es=(e,t)=>g.createElement(v,Xe({},e,{ref:t,icon:Ps})),lt=g.forwardRef(Es);process.env.NODE_ENV!=="production"&&(lt.displayName="PlusOutlined");var Ns={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"}}]},name:"reload",theme:"outlined"};function Je(){return Je=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Je.apply(this,arguments)}const Ms=(e,t)=>g.createElement(v,Je({},e,{ref:t,icon:Ns})),Zt=g.forwardRef(Ms);process.env.NODE_ENV!=="production"&&(Zt.displayName="ReloadOutlined");var Fs={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64L128 192v384c0 212.1 171.9 384 384 384s384-171.9 384-384V192L512 64zm312 512c0 172.3-139.7 312-312 312S200 748.3 200 576V246l312-110 312 110v330z"}},{tag:"path",attrs:{d:"M378.4 475.1a35.91 35.91 0 00-50.9 0 35.91 35.91 0 000 50.9l129.4 129.4 2.1 2.1a33.98 33.98 0 0048.1 0L730.6 434a33.98 33.98 0 000-48.1l-2.8-2.8a33.98 33.98 0 00-48.1 0L483 579.7 378.4 475.1z"}}]},name:"safety",theme:"outlined"};function Ze(){return Ze=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},Ze.apply(this,arguments)}const As=(e,t)=>g.createElement(v,Ze({},e,{ref:t,icon:Fs})),A=g.forwardRef(As);process.env.NODE_ENV!=="production"&&(A.displayName="SafetyOutlined");var Us={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"};function et(){return et=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},et.apply(this,arguments)}const Is=(e,t)=>g.createElement(v,et({},e,{ref:t,icon:Us})),ae=g.forwardRef(Is);process.env.NODE_ENV!=="production"&&(ae.displayName="SearchOutlined");var $s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464H332V240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v68c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-68c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zm-40 376H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"unlock",theme:"outlined"};function tt(){return tt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},tt.apply(this,arguments)}const Ls=(e,t)=>g.createElement(v,tt({},e,{ref:t,icon:$s})),ye=g.forwardRef(Ls);process.env.NODE_ENV!=="production"&&(ye.displayName="UnlockOutlined");var _s={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};function nt(){return nt=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},nt.apply(this,arguments)}const zs=(e,t)=>g.createElement(v,nt({},e,{ref:t,icon:_s})),N=g.forwardRef(zs);process.env.NODE_ENV!=="production"&&(N.displayName="UserOutlined");var qs={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"};function st(){return st=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var s=arguments[t];for(var i in s)Object.prototype.hasOwnProperty.call(s,i)&&(e[i]=s[i])}return e},st.apply(this,arguments)}const Bs=(e,t)=>g.createElement(v,st({},e,{ref:t,icon:qs})),ue=g.forwardRef(Bs);process.env.NODE_ENV!=="production"&&(ue.displayName="WarningOutlined");const en=({users:e,loading:t=!1,onEdit:s,onDelete:i,onLock:a,onUnlock:o})=>{const l=[{title:"User",key:"user",render:(c,d)=>n.jsxs(r.Space,{children:[n.jsx(r.Avatar,{src:d.avatar,icon:n.jsx(N,{}),size:"small"}),n.jsxs("div",{children:[n.jsx("div",{className:"font-medium",children:d.displayName||d.userName}),n.jsx("div",{className:"text-sm text-gray-500",children:d.email})]})]})},{title:"Status",key:"status",render:(c,d)=>n.jsxs(r.Space,{direction:"vertical",size:"small",children:[n.jsx(r.Tag,{color:d.isActive?"green":"red",children:d.isActive?"Active":"Inactive"}),d.emailConfirmed&&n.jsx(r.Tag,{color:"blue",children:"Email Verified"}),d.twoFactorEnabled&&n.jsx(r.Tag,{color:"purple",children:"2FA"}),d.lockoutEnd&&new Date(d.lockoutEnd)>new Date&&n.jsx(r.Tag,{color:"orange",children:"Locked"})]})},{title:"Roles",dataIndex:"roles",key:"roles",render:c=>n.jsx(r.Space,{wrap:!0,children:c.map(d=>n.jsx(r.Tag,{children:d},d))})},{title:"Last Login",dataIndex:"lastLoginAt",key:"lastLoginAt",render:c=>c?new Date(c).toLocaleDateString():"Never"},{title:"Actions",key:"actions",render:(c,d)=>{const u=d.lockoutEnd&&new Date(d.lockoutEnd)>new Date;return n.jsxs(r.Space,{children:[s&&n.jsx(r.Button,{type:"text",icon:n.jsx(Z,{}),onClick:()=>s(d),title:"Edit User"}),u?o&&n.jsx(r.Button,{type:"text",icon:n.jsx(ye,{}),onClick:()=>o(d),title:"Unlock User"}):a&&n.jsx(r.Button,{type:"text",icon:n.jsx(U,{}),onClick:()=>a(d),title:"Lock User"}),i&&n.jsx(r.Button,{type:"text",danger:!0,icon:n.jsx(J,{}),onClick:()=>i(d),title:"Delete User"})]})}}];return n.jsx(r.Table,{columns:l,dataSource:e,loading:t,rowKey:"id",pagination:{showSizeChanger:!0,showQuickJumper:!0,showTotal:(c,d)=>`${d[0]}-${d[1]} of ${c} users`}})};class tn{httpClient;constructor(){this.httpClient=new _t.HttpClient({baseURL:"/api/identity/users"})}async getUsers(t={}){return(await this.httpClient.get("/",{params:t})).data}async getUser(t){return(await this.httpClient.get(`/${t}`)).data}async createUser(t){return(await this.httpClient.post("/",t)).data}async updateUser(t){const{id:s,...i}=t;return(await this.httpClient.put(`/${s}`,i)).data}async deleteUser(t){await this.httpClient.delete(`/${t}`)}async changePassword(t){const{userId:s,...i}=t;await this.httpClient.post(`/${s}/change-password`,i)}async lockUser(t){const{userId:s,...i}=t;await this.httpClient.post(`/${s}/lock`,i)}async unlockUser(t){await this.httpClient.post(`/${t}/unlock`)}async setupTwoFactor(t){return(await this.httpClient.post(`/${t}/two-factor/setup`)).data}async verifyTwoFactor(t){const{userId:s,...i}=t;await this.httpClient.post(`/${s}/two-factor/verify`,i)}async disableTwoFactor(t){await this.httpClient.post(`/${t}/two-factor/disable`)}async getUserRoles(t){return(await this.httpClient.get(`/${t}/roles`)).data}async assignRoles(t,s){await this.httpClient.post(`/${t}/roles`,{roleNames:s})}async getUserPermissions(t){return(await this.httpClient.get(`/${t}/permissions`)).data}async grantPermission(t,s){await this.httpClient.post(`/${t}/permissions/${s}`)}async revokePermission(t,s){await this.httpClient.delete(`/${t}/permissions/${s}`)}}class nn{httpClient;constructor(){this.httpClient=new _t.HttpClient({baseURL:"/api/identity/roles"})}async getRoles(t={}){return(await this.httpClient.get("/",{params:t})).data}async getRole(t){return(await this.httpClient.get(`/${t}`)).data}async createRole(t){return(await this.httpClient.post("/",t)).data}async updateRole(t){const{id:s,...i}=t;return(await this.httpClient.put(`/${s}`,i)).data}async deleteRole(t){await this.httpClient.delete(`/${t}`)}async getRolePermissions(t){return(await this.httpClient.get(`/${t}/permissions`)).data}async grantPermission(t,s){await this.httpClient.post(`/${t}/permissions/${s}`)}async revokePermission(t,s){await this.httpClient.delete(`/${t}/permissions/${s}`)}async setPermissions(t,s){await this.httpClient.put(`/${t}/permissions`,{permissionNames:s})}async getRoleUsers(t){return(await this.httpClient.get(`/${t}/users`)).data}}const F=new tn,b={all:["users"],lists:()=>[...b.all,"list"],list:e=>[...b.lists(),e],details:()=>[...b.all,"detail"],detail:e=>[...b.details(),e],roles:e=>[...b.all,"roles",e],permissions:e=>[...b.all,"permissions",e],twoFactor:e=>[...b.all,"two-factor",e]};function ct(e={}){return y.useQuery({queryKey:b.list(e),queryFn:()=>F.getUsers(e),staleTime:5*60*1e3})}function dt(e){return y.useQuery({queryKey:b.detail(e),queryFn:()=>F.getUser(e),enabled:!!e,staleTime:2*60*1e3})}function ut(){const e=y.useQueryClient();return y.useMutation({mutationFn:t=>F.createUser(t),onSuccess:()=>{e.invalidateQueries({queryKey:b.lists()})}})}function ht(){const e=y.useQueryClient();return y.useMutation({mutationFn:t=>F.updateUser(t),onSuccess:(t,s)=>{e.invalidateQueries({queryKey:b.lists()}),e.invalidateQueries({queryKey:b.detail(s.id)})}})}function mt(){const e=y.useQueryClient();return y.useMutation({mutationFn:t=>F.deleteUser(t),onSuccess:()=>{e.invalidateQueries({queryKey:b.lists()})}})}function Hs(){const e=y.useQueryClient();return y.useMutation({mutationFn:t=>F.changePassword(t),onSuccess:(t,s)=>{e.invalidateQueries({queryKey:b.detail(s.userId)})}})}function ft(){const e=y.useQueryClient();return y.useMutation({mutationFn:t=>F.lockUser(t),onSuccess:(t,s)=>{e.invalidateQueries({queryKey:b.lists()}),e.invalidateQueries({queryKey:b.detail(s.userId)})}})}function gt(){const e=y.useQueryClient();return y.useMutation({mutationFn:t=>F.unlockUser(t),onSuccess:(t,s)=>{e.invalidateQueries({queryKey:b.lists()}),e.invalidateQueries({queryKey:b.detail(s)})}})}function sn(e){return y.useQuery({queryKey:b.roles(e),queryFn:()=>F.getUserRoles(e),enabled:!!e,staleTime:5*60*1e3})}function Ws(){const e=y.useQueryClient();return y.useMutation({mutationFn:({userId:t,roleNames:s})=>F.assignRoles(t,s),onSuccess:(t,s)=>{e.invalidateQueries({queryKey:b.roles(s.userId)}),e.invalidateQueries({queryKey:b.detail(s.userId)}),e.invalidateQueries({queryKey:b.lists()})}})}function Vs(e){return y.useQuery({queryKey:b.permissions(e),queryFn:()=>F.getUserPermissions(e),enabled:!!e,staleTime:5*60*1e3})}function Qs(){const e=y.useQueryClient();return y.useMutation({mutationFn:t=>F.setupTwoFactor(t),onSuccess:(t,s)=>{e.invalidateQueries({queryKey:b.twoFactor(s)})}})}function Ys(){const e=y.useQueryClient();return y.useMutation({mutationFn:t=>F.verifyTwoFactor(t),onSuccess:(t,s)=>{e.invalidateQueries({queryKey:b.detail(s.userId)}),e.invalidateQueries({queryKey:b.twoFactor(s.userId)})}})}function Ks(){const e=y.useQueryClient();return y.useMutation({mutationFn:t=>F.disableTwoFactor(t),onSuccess:(t,s)=>{e.invalidateQueries({queryKey:b.detail(s)}),e.invalidateQueries({queryKey:b.twoFactor(s)})}})}const $=new nn,O={all:["roles"],lists:()=>[...O.all,"list"],list:e=>[...O.lists(),e],details:()=>[...O.all,"detail"],detail:e=>[...O.details(),e],permissions:e=>[...O.all,"permissions",e],users:e=>[...O.all,"users",e]};function le(e={}){return y.useQuery({queryKey:O.list(e),queryFn:()=>$.getRoles(e),staleTime:5*60*1e3})}function pt(e){return y.useQuery({queryKey:O.detail(e),queryFn:()=>$.getRole(e),enabled:!!e,staleTime:2*60*1e3})}function xt(){const e=y.useQueryClient();return y.useMutation({mutationFn:t=>$.createRole(t),onSuccess:()=>{e.invalidateQueries({queryKey:O.lists()})}})}function yt(){const e=y.useQueryClient();return y.useMutation({mutationFn:t=>$.updateRole(t),onSuccess:(t,s)=>{e.invalidateQueries({queryKey:O.lists()}),e.invalidateQueries({queryKey:O.detail(s.id)})}})}function jt(){const e=y.useQueryClient();return y.useMutation({mutationFn:t=>$.deleteRole(t),onSuccess:()=>{e.invalidateQueries({queryKey:O.lists()})}})}function wt(e){return y.useQuery({queryKey:O.permissions(e),queryFn:()=>$.getRolePermissions(e),enabled:!!e,staleTime:5*60*1e3})}function Gs(){const e=y.useQueryClient();return y.useMutation({mutationFn:({roleId:t,permissionName:s})=>$.grantPermission(t,s),onSuccess:(t,s)=>{e.invalidateQueries({queryKey:O.permissions(s.roleId)}),e.invalidateQueries({queryKey:O.detail(s.roleId)})}})}function Xs(){const e=y.useQueryClient();return y.useMutation({mutationFn:({roleId:t,permissionName:s})=>$.revokePermission(t,s),onSuccess:(t,s)=>{e.invalidateQueries({queryKey:O.permissions(s.roleId)}),e.invalidateQueries({queryKey:O.detail(s.roleId)})}})}function Js(){const e=y.useQueryClient();return y.useMutation({mutationFn:({roleId:t,permissionNames:s})=>$.setPermissions(t,s),onSuccess:(t,s)=>{e.invalidateQueries({queryKey:O.permissions(s.roleId)}),e.invalidateQueries({queryKey:O.detail(s.roleId)})}})}function rn(e){return y.useQuery({queryKey:O.users(e),queryFn:()=>$.getRoleUsers(e),enabled:!!e,staleTime:5*60*1e3})}const{Title:Zs,Text:Ce}=r.Typography,{Option:er}=r.Select;function Pt(e){let t=0;return e.length>=8&&(t+=25),/[a-z]/.test(e)&&(t+=25),/[A-Z]/.test(e)&&(t+=25),/[0-9]/.test(e)&&(t+=25),/[^A-Za-z0-9]/.test(e)&&(t+=25),{score:t,level:t<50?"weak":t<75?"medium":"strong"}}const an=({onSubmit:e,loading:t,error:s,className:i})=>{const[a]=r.Form.useForm(),[o,l]=k.useState(""),c=ut(),{data:d}=le(),u=t||c.isPending,h=s||c.error?.message,m=Pt(o),p=async x=>{try{e?e(x):(await c.mutateAsync({userName:x.userName,email:x.email,password:x.password,firstName:x.firstName,lastName:x.lastName,phoneNumber:x.phoneNumber,isActive:x.isActive??!0,roleNames:x.roleNames,sendActivationEmail:x.sendActivationEmail??!0}),r.message.success("User created successfully!"),a.resetFields())}catch(R){console.error("Failed to create user:",R)}};return n.jsxs(r.Card,{className:i,children:[n.jsx(Zs,{level:2,children:"Create New User"}),n.jsx(Ce,{type:"secondary",children:"Create a new user account with the required information below."}),h&&n.jsx(r.Alert,{message:"User Creati