@sg-front-core/ui-v1 1.0.0

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.
@@ -0,0 +1,297 @@
1
+ (function(){"use strict";try{if(typeof document<"u"){var e=document.createElement("style");e.appendChild(document.createTextNode(".page404.full-layout{background-color:#fff;position:relative}.page404{height:100%}.page404 .ant-layout-content{overflow:hidden!important}.page404 .me404{width:1000px;height:480px;position:absolute;top:50%;left:50%;margin-left:-420px;margin-top:-340px}.page404 .st0{fill-rule:evenodd;clip-rule:evenodd;fill:#e8ebed}.page404 .st1{fill:#fff;stroke:#89949b;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}.page404 .st2{fill-rule:evenodd;clip-rule:evenodd;fill:#dbdfe1}.page404 .st3{fill:#fff}.page404 .st4{fill-rule:evenodd;clip-rule:evenodd;fill:#e8ebed;stroke:#89949b;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}.page404 .st5{fill-rule:evenodd;clip-rule:evenodd;fill:#fff;stroke:#89949b;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}.page404 .st6{fill-rule:evenodd;clip-rule:evenodd;fill:none;stroke:#89949b;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}.page404 .st7{fill-rule:evenodd;clip-rule:evenodd;fill:none;stroke:#89949b;stroke-width:4;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}.page404 .st8{fill-rule:evenodd;clip-rule:evenodd;fill:#fff;stroke:#89949b;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}.page404 .st9{fill:#89949b}.page404 .st10{fill-rule:evenodd;clip-rule:evenodd;fill:#89949b}.page404 .st11{fill-rule:evenodd;clip-rule:evenodd;fill:none;stroke:#89949b;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}.page404 .st12{fill-rule:evenodd;clip-rule:evenodd;fill:#fff}.page404 .st13{fill-rule:evenodd;clip-rule:evenodd;fill:#fff;stroke:#8894a0;stroke-width:3;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}.page404 .st14{fill-rule:evenodd;clip-rule:evenodd;fill:none;stroke:#89949b;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}.page404 .st15{fill:none;stroke:#89949b;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:10}.page404 #monkey-eye-l{transform-origin:191px 257px;animation:blink-l 12s infinite ease-in-out}.page404 #monkey-eye-r{transform-origin:205px 256px;animation:blink-r 12s infinite ease-in-out}@keyframes blink-l{0%{transform:rotateX(0)}2%{transform:rotateX(80deg)}4%,20%{transform:rotateX(0)}22%{transform:rotateX(80deg)}24%,30%{transform:rotateX(0)}32%{transform:rotateX(80deg)}34%,70%{transform:rotateX(0)}72%{transform:rotateX(80deg)}74%,to{transform:rotateX(0)}}@keyframes blink-r{0%{transform:rotateX(0)}2%{transform:rotateX(80deg)}4%,30%{transform:rotateX(0)}32%{transform:rotateX(80deg)}34%,50%{transform:rotateX(0)}52%{transform:rotateX(80deg)}54%,to{transform:rotateX(0)}}.back_{position:absolute;left:50%;width:200px;margin-left:-100px;display:flex;justify-content:center;align-items:center;flex-direction:column;top:60%}.splitter_wrapper .ant-splitter-bar-dragger:after{top:calc(50% - 68px)!important}")),document.head.appendChild(e)}}catch(t){console.error("vite-plugin-css-injected-by-js",t)}})();
2
+ (function(L,n){typeof exports=="object"&&typeof module<"u"?n(exports,require("react/jsx-runtime"),require("react"),require("antd"),require("@ant-design/icons"),require("react-router-dom"),require("@sg-front-core/utils-v1"),require("sg-lowcode-parser")):typeof define=="function"&&define.amd?define(["exports","react/jsx-runtime","react","antd","@ant-design/icons","react-router-dom","@sg-front-core/utils-v1","sg-lowcode-parser"],n):(L=typeof globalThis<"u"?globalThis:L||self,n(L["@sg-front-core/ui-v1"]={},L.jsxRuntime,L.React,L.antd,L.AntDesignIcons,L.ReactRouterDOM,L.SgFrontCoreUtilsV1,L.SgLowcodeParser))})(this,(function(L,n,c,v,Ut,pe,Vt,ct){"use strict";function Yt(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const s=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}const me=Yt(c);function Kt(e){return n.jsx(v.Result,{status:"error",title:"页面异常",subTitle:"渲染过程中发生错误,请刷新重试或联系管理员。",extra:n.jsxs("div",{style:{maxWidth:760,margin:"0 auto",textAlign:"left"},children:[n.jsx(v.Typography.Text,{type:"secondary",children:e?.name?`【${e.name}】`:""}),n.jsx("div",{}),n.jsx(v.Typography.Text,{type:"secondary",children:e?.message})]})})}function Gt(e,t){if(e===t)return!0;if(!e||!t||e.length!==t.length)return!1;for(let r=0;r<e.length;r+=1)if(e[r]!==t[r])return!1;return!0}class Jt extends c.Component{state={hasError:!1,error:null,prevResetKeys:this.props.resetKeys};static getDerivedStateFromError(t){return{hasError:!0,error:t}}static getDerivedStateFromProps(t,r){return!r.hasError||Gt(t.resetKeys,r.prevResetKeys)?null:{hasError:!1,error:null,prevResetKeys:t.resetKeys}}componentDidCatch(t){this.props.onError?.(t)}reset=()=>{this.setState({hasError:!1,error:null,prevResetKeys:this.props.resetKeys})};render(){if(!this.state.hasError)return this.props.children;const t=this.state.error??new Error("Unknown error");return this.props.fallbackRender?this.props.fallbackRender({error:t,reset:this.reset}):this.props.fallback?this.props.fallback:Kt(t)}}function Zt(e){const{show:t,className:r,style:s,children:a}=e;return t?n.jsx("div",{className:r,style:{position:"absolute",inset:0,display:"flex",alignItems:"center",justifyContent:"center",background:"#fff",...s},children:a??n.jsx(v.Empty,{image:v.Empty.PRESENTED_IMAGE_SIMPLE})}):null}function Xt(e){const{show:t,isFirst:r,width:s,height:a=0,className:l,style:d,children:u,durationMs:i=180}=e,[o,f]=c.useState(t),[h,m]=c.useState(t);c.useEffect(()=>{if(t){f(!0);const b=requestAnimationFrame(()=>m(!0));return()=>cancelAnimationFrame(b)}m(!1);const g=window.setTimeout(()=>f(!1),i);return()=>window.clearTimeout(g)},[t,i]);const p=c.useMemo(()=>r?{}:{transition:`opacity ${i}ms ease`},[i,r]);return o?n.jsx("div",{className:l,style:{position:"absolute",inset:0,zIndex:10,width:s??"100%",height:a&&!r?a:"100%",opacity:h?1:0,pointerEvents:t?"auto":"none",...p,...d},children:u??n.jsx("div",{style:{position:"absolute",inset:0,background:"#fff",opacity:.3}})}):null}function Qt(e){const{children:t,title:r,onConfirm:s,onCancel:a,placement:l,okText:d="确认",cancelText:u="取消"}=e,[i,o]=c.useState(!1),[f,h]=c.useState(!1),[m,p]=c.useState(!1),g=async()=>{try{h(!0),await s?.(),o(!1)}finally{h(!1)}},b=async()=>{try{p(!0),await a?.(),o(!1)}finally{p(!1)}};return n.jsx(v.Popover,{placement:l,title:n.jsx("span",{style:{color:"#fa8c16",fontSize:14},children:r}),content:n.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:8},children:[n.jsx(v.Button,{onClick:b,loading:m,children:u}),n.jsx(v.Button,{type:"primary",onClick:g,loading:f,children:d})]}),trigger:"click",open:i,onOpenChange:o,children:t})}function ce(e){const{icon:t,size:r,color:s,className:a,loading:l,style:d,...u}=e;return l?n.jsx(v.Spin,{size:"small"}):n.jsx("svg",{className:a,style:{width:"1em",height:"1em",verticalAlign:"-0.15em",fill:"currentColor",overflow:"hidden",fontSize:r,color:s,...d},"aria-hidden":"true",...u,children:n.jsx("use",{xlinkHref:`#${t}`})})}function ut(e){var t,r,s="";if(typeof e=="string"||typeof e=="number")s+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(r=ut(e[t]))&&(s&&(s+=" "),s+=r)}else for(r in e)e[r]&&(s&&(s+=" "),s+=r);return s}function dt(){for(var e,t,r=0,s="",a=arguments.length;r<a;r++)(e=arguments[r])&&(t=ut(e))&&(s&&(s+=" "),s+=t);return s}const Ce=16,Rt=({className:e,style:t,name:r,prefix:s="icon",color:a,size:l,width:d=Ce,height:u=Ce,children:i=void 0,...o})=>{const f=`#${s}-${r}`,{width:h,height:m}=l?{width:l??Ce,height:l??Ce}:{width:d,height:u};return n.jsxs("svg",{className:dt("svg-icon icon inline-block",e),"aria-hidden":"true",width:h,height:m,color:a,style:t,...o,children:[n.jsx("use",{href:f,fill:"currentColor"}),i]})};function er({onChange:e,placeholder:t,className:r=""}){return n.jsx(v.Input,{className:r,placeholder:t,onChange:s=>e(s.target?.value||""),prefix:n.jsx(Ut.SearchOutlined,{className:"text-gray-400"}),size:"large"})}var tr=function(e){return function(t,r){var s=c.useRef(!1);e(function(){return function(){s.current=!1}},[]),e(function(){if(!s.current)s.current=!0;else return t()},r)}},J=function(){return J=Object.assign||function(t){for(var r,s=1,a=arguments.length;s<a;s++){r=arguments[s];for(var l in r)Object.prototype.hasOwnProperty.call(r,l)&&(t[l]=r[l])}return t},J.apply(this,arguments)};function ft(e,t){var r={};for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.indexOf(s)<0&&(r[s]=e[s]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(e);a<s.length;a++)t.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(e,s[a])&&(r[s[a]]=e[s[a]]);return r}function rr(e,t,r,s){function a(l){return l instanceof r?l:new r(function(d){d(l)})}return new(r||(r=Promise))(function(l,d){function u(f){try{o(s.next(f))}catch(h){d(h)}}function i(f){try{o(s.throw(f))}catch(h){d(h)}}function o(f){f.done?l(f.value):a(f.value).then(u,i)}o((s=s.apply(e,t||[])).next())})}function nr(e,t){var r={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},s,a,l,d=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return d.next=u(0),d.throw=u(1),d.return=u(2),typeof Symbol=="function"&&(d[Symbol.iterator]=function(){return this}),d;function u(o){return function(f){return i([o,f])}}function i(o){if(s)throw new TypeError("Generator is already executing.");for(;d&&(d=0,o[0]&&(r=0)),r;)try{if(s=1,a&&(l=o[0]&2?a.return:o[0]?a.throw||((l=a.return)&&l.call(a),0):a.next)&&!(l=l.call(a,o[1])).done)return l;switch(a=0,l&&(o=[o[0]&2,l.value]),o[0]){case 0:case 1:l=o;break;case 4:return r.label++,{value:o[1],done:!1};case 5:r.label++,a=o[1],o=[0];continue;case 7:o=r.ops.pop(),r.trys.pop();continue;default:if(l=r.trys,!(l=l.length>0&&l[l.length-1])&&(o[0]===6||o[0]===2)){r=0;continue}if(o[0]===3&&(!l||o[1]>l[0]&&o[1]<l[3])){r.label=o[1];break}if(o[0]===6&&r.label<l[1]){r.label=l[1],l=o;break}if(l&&r.label<l[2]){r.label=l[2],r.ops.push(o);break}l[2]&&r.ops.pop(),r.trys.pop();continue}o=t.call(e,r)}catch(f){o=[6,f],a=0}finally{s=l=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}}function B(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var s=r.call(e),a,l=[],d;try{for(;(t===void 0||t-- >0)&&!(a=s.next()).done;)l.push(a.value)}catch(u){d={error:u}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(d)throw d.error}}return l}function q(e,t,r){if(r||arguments.length===2)for(var s=0,a=t.length,l;s<a;s++)(l||!(s in t))&&(l||(l=Array.prototype.slice.call(t,0,s)),l[s]=t[s]);return e.concat(l||Array.prototype.slice.call(t))}typeof SuppressedError=="function"&&SuppressedError;var Se=function(e){return typeof e=="function"},Ve=function(e){return typeof e=="number"},ke=process.env.NODE_ENV==="development"||process.env.NODE_ENV==="test",Z=function(e){ke&&(Se(e)||console.error("useMemoizedFn expected parameter is a function, got ".concat(typeof e)));var t=c.useRef(e);t.current=c.useMemo(function(){return e},[e]);var r=c.useRef(void 0);return r.current||(r.current=function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];return t.current.apply(this,s)}),r.current};const ae=tr(c.useEffect);var ht=function(e,t){var r=t.manual,s=t.ready,a=s===void 0?!0:s,l=t.defaultParams,d=l===void 0?[]:l,u=t.refreshDeps,i=u===void 0?[]:u,o=t.refreshDepsAction,f=c.useRef(!1);return f.current=!1,ae(function(){!r&&a&&(f.current=!0,e.run.apply(e,q([],B(d),!1)))},[a]),ae(function(){f.current||r||(f.current=!0,o?o():e.refresh())},q([],B(i),!1)),{onBefore:function(){if(!a)return{stopNow:!0}}}};ht.onInit=function(e){var t=e.ready,r=t===void 0?!0:t,s=e.manual;return{loading:!s&&r}};function sr(e,t){if(e===t)return!0;for(var r=0;r<e.length;r++)if(!Object.is(e[r],t[r]))return!1;return!0}var pt=function(e,t){var r=c.useRef({deps:t,obj:void 0,initialized:!1}).current;return(r.initialized===!1||!sr(r.deps,t))&&(r.deps=t,r.obj=e(),r.initialized=!0),r.obj};function mt(e){var t=c.useRef(e);return t.current=e,t}var Ye=function(e){ke&&(Se(e)||console.error("useUnmount expected parameter is a function, got ".concat(typeof e)));var t=mt(e);c.useEffect(function(){return function(){t.current()}},[])},Me=new Map,ar=function(e,t,r){var s=Me.get(e);s?.timer&&clearTimeout(s.timer);var a=void 0;t>-1&&(a=setTimeout(function(){Me.delete(e)},t)),Me.set(e,J(J({},r),{timer:a}))},or=function(e){return Me.get(e)},Ee=new Map,ir=function(e){return Ee.get(e)},lr=function(e,t){Ee.set(e,t),t.then(function(r){return Ee.delete(e),r}).catch(function(){Ee.delete(e)})},oe={},cr=function(e,t){oe[e]&&oe[e].forEach(function(r){return r(t)})},Ke=function(e,t){return oe[e]||(oe[e]=[]),oe[e].push(t),function(){var s=oe[e].indexOf(t);oe[e].splice(s,1)}},ur=function(e,t){var r=t.cacheKey,s=t.cacheTime,a=s===void 0?300*1e3:s,l=t.staleTime,d=l===void 0?0:l,u=t.setCache,i=t.getCache,o=c.useRef(void 0),f=c.useRef(void 0),h=function(p,g){u?u(g):ar(p,a,g),cr(p,g.data)},m=function(p,g){return g===void 0&&(g=[]),i?i(g):or(p)};return pt(function(){if(r){var p=m(r);p&&Object.hasOwnProperty.call(p,"data")&&(e.state.data=p.data,e.state.params=p.params,(d===-1||Date.now()-p.time<=d)&&(e.state.loading=!1)),o.current=Ke(r,function(g){e.setState({data:g})})}},[]),Ye(function(){var p;(p=o.current)===null||p===void 0||p.call(o)}),r?{onBefore:function(p){var g=m(r,p);return!g||!Object.hasOwnProperty.call(g,"data")?{}:d===-1||Date.now()-g.time<=d?{loading:!1,data:g?.data,error:void 0,returnNow:!0}:{data:g?.data,error:void 0}},onRequest:function(p,g){var b=ir(r);return b&&b!==f.current?{servicePromise:b}:(b=p.apply(void 0,q([],B(g),!1)),f.current=b,lr(r,b),{servicePromise:b})},onSuccess:function(p,g){var b;r&&((b=o.current)===null||b===void 0||b.call(o),h(r,{data:p,params:g,time:Date.now()}),o.current=Ke(r,function(C){e.setState({data:C})}))},onMutate:function(p){var g;r&&((g=o.current)===null||g===void 0||g.call(o),h(r,{data:p,params:e.state.params,time:Date.now()}),o.current=Ke(r,function(b){e.setState({data:b})}))}}:{}};function Te(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var dr=typeof global=="object"&&global&&global.Object===Object&&global,fr=typeof self=="object"&&self&&self.Object===Object&&self,gt=dr||fr||Function("return this")(),Ge=function(){return gt.Date.now()},hr=/\s/;function pr(e){for(var t=e.length;t--&&hr.test(e.charAt(t)););return t}var mr=/^\s+/;function gr(e){return e&&e.slice(0,pr(e)+1).replace(mr,"")}var Oe=gt.Symbol,vt=Object.prototype,vr=vt.hasOwnProperty,br=vt.toString,ge=Oe?Oe.toStringTag:void 0;function yr(e){var t=vr.call(e,ge),r=e[ge];try{e[ge]=void 0;var s=!0}catch{}var a=br.call(e);return s&&(t?e[ge]=r:delete e[ge]),a}var wr=Object.prototype,xr=wr.toString;function Nr(e){return xr.call(e)}var Cr="[object Null]",Sr="[object Undefined]",bt=Oe?Oe.toStringTag:void 0;function kr(e){return e==null?e===void 0?Sr:Cr:bt&&bt in Object(e)?yr(e):Nr(e)}function Mr(e){return e!=null&&typeof e=="object"}var Er="[object Symbol]";function Tr(e){return typeof e=="symbol"||Mr(e)&&kr(e)==Er}var yt=NaN,Or=/^[-+]0x[0-9a-f]+$/i,Pr=/^0b[01]+$/i,Fr=/^0o[0-7]+$/i,Lr=parseInt;function wt(e){if(typeof e=="number")return e;if(Tr(e))return yt;if(Te(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=Te(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=gr(e);var r=Pr.test(e);return r||Fr.test(e)?Lr(e.slice(2),r?2:8):Or.test(e)?yt:+e}var jr="Expected a function",$r=Math.max,_r=Math.min;function xt(e,t,r){var s,a,l,d,u,i,o=0,f=!1,h=!1,m=!0;if(typeof e!="function")throw new TypeError(jr);t=wt(t)||0,Te(r)&&(f=!!r.leading,h="maxWait"in r,l=h?$r(wt(r.maxWait)||0,t):l,m="trailing"in r?!!r.trailing:m);function p(P){var y=s,E=a;return s=a=void 0,o=P,d=e.apply(E,y),d}function g(P){return o=P,u=setTimeout(_,t),f?p(P):d}function b(P){var y=P-i,E=P-o,K=t-y;return h?_r(K,l-E):K}function C(P){var y=P-i,E=P-o;return i===void 0||y>=t||y<0||h&&E>=l}function _(){var P=Ge();if(C(P))return M(P);u=setTimeout(_,b(P))}function M(P){return u=void 0,m&&s?p(P):(s=a=void 0,d)}function S(){u!==void 0&&clearTimeout(u),o=0,s=i=a=u=void 0}function j(){return u===void 0?d:M(Ge())}function $(){var P=Ge(),y=C(P);if(s=arguments,a=this,i=P,y){if(u===void 0)return g(i);if(h)return clearTimeout(u),u=setTimeout(_,t),p(i)}return u===void 0&&(u=setTimeout(_,t)),d}return $.cancel=S,$.flush=j,$}var zr=function(e,t){var r=t.debounceWait,s=t.debounceLeading,a=t.debounceTrailing,l=t.debounceMaxWait,d=c.useRef(void 0),u=c.useMemo(function(){var i={};return s!==void 0&&(i.leading=s),a!==void 0&&(i.trailing=a),l!==void 0&&(i.maxWait=l),i},[s,a,l]);return c.useEffect(function(){if(r){var i=e.runAsync.bind(e);return d.current=xt(function(o){o()},r,u),e.runAsync=function(){for(var o=[],f=0;f<arguments.length;f++)o[f]=arguments[f];return new Promise(function(h,m){var p;(p=d.current)===null||p===void 0||p.call(d,function(){i.apply(void 0,q([],B(o),!1)).then(h).catch(m)})})},function(){var o;(o=d.current)===null||o===void 0||o.cancel(),e.runAsync=i}}},[r,u]),r?{onCancel:function(){var i;(i=d.current)===null||i===void 0||i.cancel()}}:{}},Dr=function(e,t){var r=t.loadingDelay,s=t.ready,a=c.useRef(void 0);if(!r)return{};var l=function(){a.current&&clearTimeout(a.current)};return{onBefore:function(){return l(),s!==!1&&(a.current=setTimeout(function(){e.setState({loading:!0})},r)),{loading:!1}},onFinally:function(){l()},onCancel:function(){l()}}},Pe=!!(typeof window<"u"&&window.document&&window.document.createElement);function Je(){return Pe?document.visibilityState!=="hidden":!0}var Fe=new Set;function Ir(e){return Fe.add(e),function(){Fe.has(e)&&Fe.delete(e)}}if(Pe){var Ar=function(){Je()&&Fe.forEach(function(e){return e()})};window.addEventListener("visibilitychange",Ar,!1)}var Wr=function(e,t){var r=t.pollingInterval,s=t.pollingWhenHidden,a=s===void 0?!0:s,l=t.pollingErrorRetryCount,d=l===void 0?-1:l,u=c.useRef(void 0),i=c.useRef(void 0),o=c.useRef(0),f=function(){var h;u.current&&clearTimeout(u.current),(h=i.current)===null||h===void 0||h.call(i)};return ae(function(){r||f()},[r]),r?{onBefore:function(){f()},onError:function(){o.current+=1},onSuccess:function(){o.current=0},onFinally:function(){d===-1||d!==-1&&o.current<=d?u.current=setTimeout(function(){!a&&!Je()?i.current=Ir(function(){e.refresh()}):e.refresh()},r):o.current=0},onCancel:function(){f()}}:{}};function Hr(e,t){var r=!1;return function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];r||(r=!0,e.apply(void 0,q([],B(s),!1)),setTimeout(function(){r=!1},t))}}var Br=function(){return Pe&&typeof navigator.onLine<"u"?navigator.onLine:!0},Le=new Set;function qr(e){return Le.add(e),function(){Le.has(e)&&Le.delete(e)}}if(Pe){var Nt=function(){!Je()||!Br()||Le.forEach(function(e){return e()})};window.addEventListener("visibilitychange",Nt,!1),window.addEventListener("focus",Nt,!1)}var Ur=function(e,t){var r=t.refreshOnWindowFocus,s=t.focusTimespan,a=s===void 0?5e3:s,l=c.useRef(void 0),d=function(){var u;(u=l.current)===null||u===void 0||u.call(l)};return c.useEffect(function(){if(r){var u=Hr(e.refresh.bind(e),a);l.current=qr(function(){u()})}return function(){d()}},[r,a]),Ye(function(){d()}),{}},Vr=function(e,t){var r=t.retryInterval,s=t.retryCount,a=c.useRef(void 0),l=c.useRef(0),d=c.useRef(!1);return s?{onBefore:function(){d.current||(l.current=0),d.current=!1,a.current&&clearTimeout(a.current)},onSuccess:function(){l.current=0},onError:function(){if(l.current+=1,s===-1||l.current<=s){var u=r??Math.min(1e3*Math.pow(2,l.current),3e4);a.current=setTimeout(function(){d.current=!0,e.refresh()},u)}else l.current=0},onCancel:function(){l.current=0,a.current&&clearTimeout(a.current)}}:{}},Yr="Expected a function";function Kr(e,t,r){var s=!0,a=!0;if(typeof e!="function")throw new TypeError(Yr);return Te(r)&&(s="leading"in r?!!r.leading:s,a="trailing"in r?!!r.trailing:a),xt(e,t,{leading:s,maxWait:t,trailing:a})}var Gr=function(e,t){var r=t.throttleWait,s=t.throttleLeading,a=t.throttleTrailing,l=c.useRef(void 0),d={};return s!==void 0&&(d.leading=s),a!==void 0&&(d.trailing=a),c.useEffect(function(){if(r){var u=e.runAsync.bind(e);return l.current=Kr(function(i){i()},r,d),e.runAsync=function(){for(var i=[],o=0;o<arguments.length;o++)i[o]=arguments[o];return new Promise(function(f,h){var m;(m=l.current)===null||m===void 0||m.call(l,function(){u.apply(void 0,q([],B(i),!1)).then(f).catch(h)})})},function(){var i;e.runAsync=u,(i=l.current)===null||i===void 0||i.cancel()}}},[r,s,a]),r?{onCancel:function(){var u;(u=l.current)===null||u===void 0||u.cancel()}}:{}},Jr=function(e){ke&&(Se(e)||console.error('useMount: parameter `fn` expected to be a function, but got "'.concat(typeof e,'".'))),c.useEffect(function(){var t=e?.();if(!(t&&typeof t=="object"&&typeof t.then=="function"))return t},[])},Zr=function(){var e=B(c.useState({}),2),t=e[1];return Z(function(){return t({})})},Xr=(function(){function e(t,r,s,a){a===void 0&&(a={}),this.serviceRef=t,this.options=r,this.subscribe=s,this.initState=a,this.pluginImpls=[],this.count=0,this.state={loading:!1,params:void 0,data:void 0,error:void 0},this.state=J(J(J({},this.state),{loading:!r.manual}),a)}return e.prototype.setState=function(t){t===void 0&&(t={}),this.state=J(J({},this.state),t),this.subscribe()},e.prototype.runPluginHandler=function(t){for(var r=[],s=1;s<arguments.length;s++)r[s-1]=arguments[s];var a=this.pluginImpls.map(function(l){var d;return(d=l[t])===null||d===void 0?void 0:d.call.apply(d,q([l],B(r),!1))}).filter(Boolean);return Object.assign.apply(Object,q([{}],B(a),!1))},e.prototype.runAsync=function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return rr(this,void 0,void 0,function(){var s,a,l,d,u,i,o,f,h,m,p,g,b,C,_,M,S,j,$,P,y;return nr(this,function(E){switch(E.label){case 0:if(this.count+=1,s=this.count,a=this.runPluginHandler("onBefore",t),l=a.stopNow,d=l===void 0?!1:l,u=a.returnNow,i=u===void 0?!1:u,o=ft(a,["stopNow","returnNow"]),d)return[2,Promise.resolve(o.data)];if(this.setState(J({loading:!0,params:t},o)),i)return[2,Promise.resolve(o.data)];(b=(g=this.options).onBefore)===null||b===void 0||b.call(g,t),E.label=1;case 1:return E.trys.push([1,3,,4]),f=this.runPluginHandler("onRequest",this.serviceRef.current,t).servicePromise,f||(f=(p=this.serviceRef).current.apply(p,q([],B(t),!1))),[4,f];case 2:return h=E.sent(),s!==this.count?[2,new Promise(function(){})]:(this.setState({data:h,error:void 0,loading:!1}),(_=(C=this.options).onSuccess)===null||_===void 0||_.call(C,h,t),this.runPluginHandler("onSuccess",h,t),(S=(M=this.options).onFinally)===null||S===void 0||S.call(M,t,h,void 0),s===this.count&&this.runPluginHandler("onFinally",t,h,void 0),[2,h]);case 3:if(m=E.sent(),s!==this.count)return[2,new Promise(function(){})];throw this.setState({error:m,loading:!1}),($=(j=this.options).onError)===null||$===void 0||$.call(j,m,t),this.runPluginHandler("onError",m,t),(y=(P=this.options).onFinally)===null||y===void 0||y.call(P,t,void 0,m),s===this.count&&this.runPluginHandler("onFinally",t,void 0,m),m;case 4:return[2]}})})},e.prototype.run=function(){for(var t=this,r=[],s=0;s<arguments.length;s++)r[s]=arguments[s];this.runAsync.apply(this,q([],B(r),!1)).catch(function(a){t.options.onError||console.error(a)})},e.prototype.cancel=function(){this.count+=1,this.setState({loading:!1}),this.runPluginHandler("onCancel")},e.prototype.refresh=function(){this.run.apply(this,q([],B(this.state.params||[]),!1))},e.prototype.refreshAsync=function(){return this.runAsync.apply(this,q([],B(this.state.params||[]),!1))},e.prototype.mutate=function(t){var r=Se(t)?t(this.state.data):t;this.runPluginHandler("onMutate",r),this.setState({data:r})},e})();function Qr(e,t,r){t===void 0&&(t={}),r===void 0&&(r=[]);var s=t.manual,a=s===void 0?!1:s,l=t.ready,d=l===void 0?!0:l,u=ft(t,["manual","ready"]);ke&&t.defaultParams&&!Array.isArray(t.defaultParams)&&console.warn("expected defaultParams is array, got ".concat(typeof t.defaultParams));var i=J({manual:a,ready:d},u),o=mt(e),f=Zr(),h=pt(function(){var m=r.map(function(p){var g;return(g=p?.onInit)===null||g===void 0?void 0:g.call(p,i)}).filter(Boolean);return new Xr(o,i,f,Object.assign.apply(Object,q([{}],B(m),!1)))},[]);return h.options=i,h.pluginImpls=r.map(function(m){return m(h,i)}),Jr(function(){if(!a&&d){var m=h.state.params||t.defaultParams||[];h.run.apply(h,q([],B(m),!1))}}),Ye(function(){h.cancel()}),{loading:h.state.loading,data:h.state.data,error:h.state.error,params:h.state.params||[],cancel:Z(h.cancel.bind(h)),refresh:Z(h.refresh.bind(h)),refreshAsync:Z(h.refreshAsync.bind(h)),run:Z(h.run.bind(h)),runAsync:Z(h.runAsync.bind(h)),mutate:Z(h.mutate.bind(h))}}function U(e,t,r){return Qr(e,t,q(q([],B([]),!1),[zr,Dr,Wr,Ur,Gr,ht,ur,Vr],!1))}function Rr(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var je={exports:{}},en=je.exports,Ct;function tn(){return Ct||(Ct=1,(function(e,t){(function(r,s){e.exports=s()})(en,(function(){var r=1e3,s=6e4,a=36e5,l="millisecond",d="second",u="minute",i="hour",o="day",f="week",h="month",m="quarter",p="year",g="date",b="Invalid Date",C=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,_=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,M={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(T){var N=["th","st","nd","rd"],w=T%100;return"["+T+(N[(w-20)%10]||N[w]||N[0])+"]"}},S=function(T,N,w){var k=String(T);return!k||k.length>=N?T:""+Array(N+1-k.length).join(w)+T},j={s:S,z:function(T){var N=-T.utcOffset(),w=Math.abs(N),k=Math.floor(w/60),x=w%60;return(N<=0?"+":"-")+S(k,2,"0")+":"+S(x,2,"0")},m:function T(N,w){if(N.date()<w.date())return-T(w,N);var k=12*(w.year()-N.year())+(w.month()-N.month()),x=N.clone().add(k,h),F=w-x<0,O=N.clone().add(k+(F?-1:1),h);return+(-(k+(w-x)/(F?x-O:O-x))||0)},a:function(T){return T<0?Math.ceil(T)||0:Math.floor(T)},p:function(T){return{M:h,y:p,w:f,d:o,D:g,h:i,m:u,s:d,ms:l,Q:m}[T]||String(T||"").toLowerCase().replace(/s$/,"")},u:function(T){return T===void 0}},$="en",P={};P[$]=M;var y="$isDayjsObject",E=function(T){return T instanceof te||!(!T||!T[y])},K=function T(N,w,k){var x;if(!N)return $;if(typeof N=="string"){var F=N.toLowerCase();P[F]&&(x=F),w&&(P[F]=w,x=F);var O=N.split("-");if(!x&&O.length>1)return T(O[0])}else{var D=N.name;P[D]=N,x=D}return!k&&x&&($=x),x||!k&&$},W=function(T,N){if(E(T))return T.clone();var w=typeof N=="object"?N:{};return w.date=T,w.args=arguments,new te(w)},z=j;z.l=K,z.i=E,z.w=function(T,N){return W(T,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var te=(function(){function T(w){this.$L=K(w.locale,null,!0),this.parse(w),this.$x=this.$x||w.x||{},this[y]=!0}var N=T.prototype;return N.parse=function(w){this.$d=(function(k){var x=k.date,F=k.utc;if(x===null)return new Date(NaN);if(z.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var O=x.match(C);if(O){var D=O[2]-1||0,I=(O[7]||"0").substring(0,3);return F?new Date(Date.UTC(O[1],D,O[3]||1,O[4]||0,O[5]||0,O[6]||0,I)):new Date(O[1],D,O[3]||1,O[4]||0,O[5]||0,O[6]||0,I)}}return new Date(x)})(w),this.init()},N.init=function(){var w=this.$d;this.$y=w.getFullYear(),this.$M=w.getMonth(),this.$D=w.getDate(),this.$W=w.getDay(),this.$H=w.getHours(),this.$m=w.getMinutes(),this.$s=w.getSeconds(),this.$ms=w.getMilliseconds()},N.$utils=function(){return z},N.isValid=function(){return this.$d.toString()!==b},N.isSame=function(w,k){var x=W(w);return this.startOf(k)<=x&&x<=this.endOf(k)},N.isAfter=function(w,k){return W(w)<this.startOf(k)},N.isBefore=function(w,k){return this.endOf(k)<W(w)},N.$g=function(w,k,x){return z.u(w)?this[k]:this.set(x,w)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(w,k){var x=this,F=!!z.u(k)||k,O=z.p(w),D=function(le,Y){var se=z.w(x.$u?Date.UTC(x.$y,Y,le):new Date(x.$y,Y,le),x);return F?se:se.endOf(o)},I=function(le,Y){return z.w(x.toDate()[le].apply(x.toDate("s"),(F?[0,0,0,0]:[23,59,59,999]).slice(Y)),x)},H=this.$W,A=this.$M,G=this.$D,he="set"+(this.$u?"UTC":"");switch(O){case p:return F?D(1,0):D(31,11);case h:return F?D(1,A):D(0,A+1);case f:var ie=this.$locale().weekStart||0,xe=(H<ie?H+7:H)-ie;return D(F?G-xe:G+(6-xe),A);case o:case g:return I(he+"Hours",0);case i:return I(he+"Minutes",1);case u:return I(he+"Seconds",2);case d:return I(he+"Milliseconds",3);default:return this.clone()}},N.endOf=function(w){return this.startOf(w,!1)},N.$set=function(w,k){var x,F=z.p(w),O="set"+(this.$u?"UTC":""),D=(x={},x[o]=O+"Date",x[g]=O+"Date",x[h]=O+"Month",x[p]=O+"FullYear",x[i]=O+"Hours",x[u]=O+"Minutes",x[d]=O+"Seconds",x[l]=O+"Milliseconds",x)[F],I=F===o?this.$D+(k-this.$W):k;if(F===h||F===p){var H=this.clone().set(g,1);H.$d[D](I),H.init(),this.$d=H.set(g,Math.min(this.$D,H.daysInMonth())).$d}else D&&this.$d[D](I);return this.init(),this},N.set=function(w,k){return this.clone().$set(w,k)},N.get=function(w){return this[z.p(w)]()},N.add=function(w,k){var x,F=this;w=Number(w);var O=z.p(k),D=function(A){var G=W(F);return z.w(G.date(G.date()+Math.round(A*w)),F)};if(O===h)return this.set(h,this.$M+w);if(O===p)return this.set(p,this.$y+w);if(O===o)return D(1);if(O===f)return D(7);var I=(x={},x[u]=s,x[i]=a,x[d]=r,x)[O]||1,H=this.$d.getTime()+w*I;return z.w(H,this)},N.subtract=function(w,k){return this.add(-1*w,k)},N.format=function(w){var k=this,x=this.$locale();if(!this.isValid())return x.invalidDate||b;var F=w||"YYYY-MM-DDTHH:mm:ssZ",O=z.z(this),D=this.$H,I=this.$m,H=this.$M,A=x.weekdays,G=x.months,he=x.meridiem,ie=function(Y,se,Ne,Ue){return Y&&(Y[se]||Y(k,F))||Ne[se].slice(0,Ue)},xe=function(Y){return z.s(D%12||12,Y,"0")},le=he||function(Y,se,Ne){var Ue=Y<12?"AM":"PM";return Ne?Ue.toLowerCase():Ue};return F.replace(_,(function(Y,se){return se||(function(Ne){switch(Ne){case"YY":return String(k.$y).slice(-2);case"YYYY":return z.s(k.$y,4,"0");case"M":return H+1;case"MM":return z.s(H+1,2,"0");case"MMM":return ie(x.monthsShort,H,G,3);case"MMMM":return ie(G,H);case"D":return k.$D;case"DD":return z.s(k.$D,2,"0");case"d":return String(k.$W);case"dd":return ie(x.weekdaysMin,k.$W,A,2);case"ddd":return ie(x.weekdaysShort,k.$W,A,3);case"dddd":return A[k.$W];case"H":return String(D);case"HH":return z.s(D,2,"0");case"h":return xe(1);case"hh":return xe(2);case"a":return le(D,I,!0);case"A":return le(D,I,!1);case"m":return String(I);case"mm":return z.s(I,2,"0");case"s":return String(k.$s);case"ss":return z.s(k.$s,2,"0");case"SSS":return z.s(k.$ms,3,"0");case"Z":return O}return null})(Y)||O.replace(":","")}))},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(w,k,x){var F,O=this,D=z.p(k),I=W(w),H=(I.utcOffset()-this.utcOffset())*s,A=this-I,G=function(){return z.m(O,I)};switch(D){case p:F=G()/12;break;case h:F=G();break;case m:F=G()/3;break;case f:F=(A-H)/6048e5;break;case o:F=(A-H)/864e5;break;case i:F=A/a;break;case u:F=A/s;break;case d:F=A/r;break;default:F=A}return x?F:z.a(F)},N.daysInMonth=function(){return this.endOf(h).$D},N.$locale=function(){return P[this.$L]},N.locale=function(w,k){if(!w)return this.$L;var x=this.clone(),F=K(w,k,!0);return F&&(x.$L=F),x},N.clone=function(){return z.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},T})(),fe=te.prototype;return W.prototype=fe,[["$ms",l],["$s",d],["$m",u],["$H",i],["$W",o],["$M",h],["$y",p],["$D",g]].forEach((function(T){fe[T[1]]=function(N){return this.$g(N,T[0],T[1])}})),W.extend=function(T,N){return T.$i||(T(N,te,W),T.$i=!0),W},W.locale=K,W.isDayjs=E,W.unix=function(T){return W(1e3*T)},W.en=P[$],W.Ls=P,W.p={},W}))})(je)),je.exports}var rn=tn();const Ze=Rr(rn);function St(e,t){t===void 0&&(t={});var r=t.min,s=t.max,a=e;return Ve(s)&&(a=Math.min(s,a)),Ve(r)&&(a=Math.max(r,a)),a}function kt(e,t){t===void 0&&(t={});var r=t.min,s=t.max,a=B(c.useState(function(){return St(e,{min:r,max:s})}),2),l=a[0],d=a[1],u=function(m){d(function(p){var g=Ve(m)?m:m(p);return St(g,{max:s,min:r})})},i=function(m){m===void 0&&(m=1),u(function(p){return p+m})},o=function(m){m===void 0&&(m=1),u(function(p){return p-m})},f=function(m){u(m)},h=function(){u(e)};return[l,{inc:Z(i),dec:Z(o),set:Z(f),reset:Z(h)}]}function nn(e){const{value:t,onChange:r,options:s,extra:a,disabled:l,disabledText:d="不允许修改"}=e,[u]=c.useState(t),[i,o]=c.useState(!1),f=dt("ml-4",i&&"text-red-500");return ae(()=>{o(!!l)},[l]),n.jsxs(n.Fragment,{children:[n.jsx(v.Segmented,{options:s,value:l?u:t,size:"middle",onChange:r,disabled:l}),n.jsx("span",{className:f,children:i?d:a})]})}var sn=Object.defineProperty,an=(e,t,r)=>t in e?sn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Xe=(e,t,r)=>(an(e,typeof t!="symbol"?t+"":t,r),r);let on=class{constructor(){Xe(this,"current",this.detect()),Xe(this,"handoffState","pending"),Xe(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},$e=new on,ve=(e,t)=>{$e.isServer?c.useEffect(e,t):c.useLayoutEffect(e,t)};function ue(e){let t=c.useRef(e);return ve(()=>{t.current=e},[e]),t}let R=function(e){let t=ue(e);return c.useCallback((...r)=>t.current(...r),[t])};function ln(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function be(){let e=[],t={addEventListener(r,s,a,l){return r.addEventListener(s,a,l),t.add(()=>r.removeEventListener(s,a,l))},requestAnimationFrame(...r){let s=requestAnimationFrame(...r);return t.add(()=>cancelAnimationFrame(s))},nextFrame(...r){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...r))},setTimeout(...r){let s=setTimeout(...r);return t.add(()=>clearTimeout(s))},microTask(...r){let s={current:!0};return ln(()=>{s.current&&r[0]()}),t.add(()=>{s.current=!1})},style(r,s,a){let l=r.style.getPropertyValue(s);return Object.assign(r.style,{[s]:a}),this.add(()=>{Object.assign(r.style,{[s]:l})})},group(r){let s=be();return r(s),this.add(()=>s.dispose())},add(r){return e.push(r),()=>{let s=e.indexOf(r);if(s>=0)for(let a of e.splice(s,1))a()}},dispose(){for(let r of e.splice(0))r()}};return t}function Mt(){let[e]=c.useState(be);return c.useEffect(()=>()=>e.dispose(),[e]),e}function cn(){let e=typeof document>"u";return"useSyncExternalStore"in me?(t=>t.useSyncExternalStore)(me)(()=>()=>{},()=>!1,()=>!e):!1}function Et(){let e=cn(),[t,r]=me.useState($e.isHandoffComplete);return t&&$e.isHandoffComplete===!1&&r(!1),me.useEffect(()=>{t!==!0&&r(!0)},[t]),me.useEffect(()=>$e.handoff(),[]),e?!1:t}function X(e,t,...r){if(e in t){let a=t[e];return typeof a=="function"?a(...r):a}let s=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(a=>`"${a}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(s,X),s}let un=Symbol();function Tt(...e){let t=c.useRef(e);c.useEffect(()=>{t.current=e},[e]);let r=R(s=>{for(let a of t.current)a!=null&&(typeof a=="function"?a(s):a.current=s)});return e.every(s=>s==null||s?.[un])?void 0:r}function _e(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}var Ot=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(Ot||{}),re=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(re||{});function Pt({ourProps:e,theirProps:t,slot:r,defaultTag:s,features:a,visible:l=!0,name:d,mergeRefs:u}){u=u??dn;let i=Ft(t,e);if(l)return ze(i,r,s,d,u);let o=a??0;if(o&2){let{static:f=!1,...h}=i;if(f)return ze(h,r,s,d,u)}if(o&1){let{unmount:f=!0,...h}=i;return X(f?0:1,{0(){return null},1(){return ze({...h,hidden:!0,style:{display:"none"}},r,s,d,u)}})}return ze(i,r,s,d,u)}function ze(e,t={},r,s,a){let{as:l=r,children:d,refName:u="ref",...i}=Re(e,["unmount","static"]),o=e.ref!==void 0?{[u]:e.ref}:{},f=typeof d=="function"?d(t):d;"className"in i&&i.className&&typeof i.className=="function"&&(i.className=i.className(t));let h={};if(t){let m=!1,p=[];for(let[g,b]of Object.entries(t))typeof b=="boolean"&&(m=!0),b===!0&&p.push(g);m&&(h["data-headlessui-state"]=p.join(" "))}if(l===c.Fragment&&Object.keys(Lt(i)).length>0){if(!c.isValidElement(f)||Array.isArray(f)&&f.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${s} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(i).map(b=>` - ${b}`).join(`
3
+ `),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(b=>` - ${b}`).join(`
4
+ `)].join(`
5
+ `));let m=f.props,p=typeof m?.className=="function"?(...b)=>_e(m?.className(...b),i.className):_e(m?.className,i.className),g=p?{className:p}:{};return c.cloneElement(f,Object.assign({},Ft(f.props,Lt(Re(i,["ref"]))),h,o,{ref:a(f.ref,o.ref)},g))}return c.createElement(l,Object.assign({},Re(i,["ref"]),l!==c.Fragment&&o,l!==c.Fragment&&h),f)}function dn(...e){return e.every(t=>t==null)?void 0:t=>{for(let r of e)r!=null&&(typeof r=="function"?r(t):r.current=t)}}function Ft(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},r={};for(let s of e)for(let a in s)a.startsWith("on")&&typeof s[a]=="function"?(r[a]!=null||(r[a]=[]),r[a].push(s[a])):t[a]=s[a];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(r).map(s=>[s,void 0])));for(let s in r)Object.assign(t,{[s](a,...l){let d=r[s];for(let u of d){if((a instanceof Event||a?.nativeEvent instanceof Event)&&a.defaultPrevented)return;u(a,...l)}}});return t}function Qe(e){var t;return Object.assign(c.forwardRef(e),{displayName:(t=e.displayName)!=null?t:e.name})}function Lt(e){let t=Object.assign({},e);for(let r in t)t[r]===void 0&&delete t[r];return t}function Re(e,t=[]){let r=Object.assign({},e);for(let s of t)s in r&&delete r[s];return r}let et=c.createContext(null);et.displayName="OpenClosedContext";var ee=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(ee||{});function jt(){return c.useContext(et)}function fn({value:e,children:t}){return c.createElement(et.Provider,{value:e},t)}function tt(){let e=c.useRef(!1);return ve(()=>(e.current=!0,()=>{e.current=!1}),[]),e}function hn(e=0){let[t,r]=c.useState(e),s=tt(),a=c.useCallback(i=>{s.current&&r(o=>o|i)},[t,s]),l=c.useCallback(i=>!!(t&i),[t]),d=c.useCallback(i=>{s.current&&r(o=>o&~i)},[r,s]),u=c.useCallback(i=>{s.current&&r(o=>o^i)},[r]);return{flags:t,addFlag:a,hasFlag:l,removeFlag:d,toggleFlag:u}}function pn(e){let t={called:!1};return(...r)=>{if(!t.called)return t.called=!0,e(...r)}}function rt(e,...t){e&&t.length>0&&e.classList.add(...t)}function nt(e,...t){e&&t.length>0&&e.classList.remove(...t)}function mn(e,t){let r=be();if(!e)return r.dispose;let{transitionDuration:s,transitionDelay:a}=getComputedStyle(e),[l,d]=[s,a].map(i=>{let[o=0]=i.split(",").filter(Boolean).map(f=>f.includes("ms")?parseFloat(f):parseFloat(f)*1e3).sort((f,h)=>h-f);return o}),u=l+d;if(u!==0){r.group(o=>{o.setTimeout(()=>{t(),o.dispose()},u),o.addEventListener(e,"transitionrun",f=>{f.target===f.currentTarget&&o.dispose()})});let i=r.addEventListener(e,"transitionend",o=>{o.target===o.currentTarget&&(t(),i())})}else t();return r.add(()=>t()),r.dispose}function gn(e,t,r,s){let a=r?"enter":"leave",l=be(),d=s!==void 0?pn(s):()=>{};a==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let u=X(a,{enter:()=>t.enter,leave:()=>t.leave}),i=X(a,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),o=X(a,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return nt(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),rt(e,...t.base,...u,...o),l.nextFrame(()=>{nt(e,...t.base,...u,...o),rt(e,...t.base,...u,...i),mn(e,()=>(nt(e,...t.base,...u),rt(e,...t.base,...t.entered),d()))}),l.dispose}function vn({immediate:e,container:t,direction:r,classes:s,onStart:a,onStop:l}){let d=tt(),u=Mt(),i=ue(r);ve(()=>{e&&(i.current="enter")},[e]),ve(()=>{let o=be();u.add(o.dispose);let f=t.current;if(f&&i.current!=="idle"&&d.current)return o.dispose(),a.current(i.current),o.add(gn(f,s.current,i.current==="enter",()=>{o.dispose(),l.current(i.current)})),o.dispose},[r])}function ne(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let De=c.createContext(null);De.displayName="TransitionContext";var bn=(e=>(e.Visible="visible",e.Hidden="hidden",e))(bn||{});function yn(){let e=c.useContext(De);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function wn(){let e=c.useContext(Ie);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let Ie=c.createContext(null);Ie.displayName="NestingContext";function Ae(e){return"children"in e?Ae(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function $t(e,t){let r=ue(e),s=c.useRef([]),a=tt(),l=Mt(),d=R((p,g=re.Hidden)=>{let b=s.current.findIndex(({el:C})=>C===p);b!==-1&&(X(g,{[re.Unmount](){s.current.splice(b,1)},[re.Hidden](){s.current[b].state="hidden"}}),l.microTask(()=>{var C;!Ae(s)&&a.current&&((C=r.current)==null||C.call(r))}))}),u=R(p=>{let g=s.current.find(({el:b})=>b===p);return g?g.state!=="visible"&&(g.state="visible"):s.current.push({el:p,state:"visible"}),()=>d(p,re.Unmount)}),i=c.useRef([]),o=c.useRef(Promise.resolve()),f=c.useRef({enter:[],leave:[],idle:[]}),h=R((p,g,b)=>{i.current.splice(0),t&&(t.chains.current[g]=t.chains.current[g].filter(([C])=>C!==p)),t?.chains.current[g].push([p,new Promise(C=>{i.current.push(C)})]),t?.chains.current[g].push([p,new Promise(C=>{Promise.all(f.current[g].map(([_,M])=>M)).then(()=>C())})]),g==="enter"?o.current=o.current.then(()=>t?.wait.current).then(()=>b(g)):b(g)}),m=R((p,g,b)=>{Promise.all(f.current[g].splice(0).map(([C,_])=>_)).then(()=>{var C;(C=i.current.shift())==null||C()}).then(()=>b(g))});return c.useMemo(()=>({children:s,register:u,unregister:d,onStart:h,onStop:m,wait:o,chains:f}),[u,d,s,h,m,f,o])}function xn(){}let Nn=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function _t(e){var t;let r={};for(let s of Nn)r[s]=(t=e[s])!=null?t:xn;return r}function Cn(e){let t=c.useRef(_t(e));return c.useEffect(()=>{t.current=_t(e)},[e]),t}let Sn="div",zt=Ot.RenderStrategy;function kn(e,t){var r,s;let{beforeEnter:a,afterEnter:l,beforeLeave:d,afterLeave:u,enter:i,enterFrom:o,enterTo:f,entered:h,leave:m,leaveFrom:p,leaveTo:g,...b}=e,C=c.useRef(null),_=Tt(C,t),M=(r=b.unmount)==null||r?re.Unmount:re.Hidden,{show:S,appear:j,initial:$}=yn(),[P,y]=c.useState(S?"visible":"hidden"),E=wn(),{register:K,unregister:W}=E;c.useEffect(()=>K(C),[K,C]),c.useEffect(()=>{if(M===re.Hidden&&C.current){if(S&&P!=="visible"){y("visible");return}return X(P,{hidden:()=>W(C),visible:()=>K(C)})}},[P,C,K,W,S,M]);let z=ue({base:ne(b.className),enter:ne(i),enterFrom:ne(o),enterTo:ne(f),entered:ne(h),leave:ne(m),leaveFrom:ne(p),leaveTo:ne(g)}),te=Cn({beforeEnter:a,afterEnter:l,beforeLeave:d,afterLeave:u}),fe=Et();c.useEffect(()=>{if(fe&&P==="visible"&&C.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[C,P,fe]);let T=$&&!j,N=j&&S&&$,w=!fe||T?"idle":S?"enter":"leave",k=hn(0),x=R(A=>X(A,{enter:()=>{k.addFlag(ee.Opening),te.current.beforeEnter()},leave:()=>{k.addFlag(ee.Closing),te.current.beforeLeave()},idle:()=>{}})),F=R(A=>X(A,{enter:()=>{k.removeFlag(ee.Opening),te.current.afterEnter()},leave:()=>{k.removeFlag(ee.Closing),te.current.afterLeave()},idle:()=>{}})),O=$t(()=>{y("hidden"),W(C)},E),D=c.useRef(!1);vn({immediate:N,container:C,classes:z,direction:w,onStart:ue(A=>{D.current=!0,O.onStart(C,A,x)}),onStop:ue(A=>{D.current=!1,O.onStop(C,A,F),A==="leave"&&!Ae(O)&&(y("hidden"),W(C))})});let I=b,H={ref:_};return N?I={...I,className:_e(b.className,...z.current.enter,...z.current.enterFrom)}:D.current&&(I.className=_e(b.className,(s=C.current)==null?void 0:s.className),I.className===""&&delete I.className),c.createElement(Ie.Provider,{value:O},c.createElement(fn,{value:X(P,{visible:ee.Open,hidden:ee.Closed})|k.flags},Pt({ourProps:H,theirProps:I,defaultTag:Sn,features:zt,visible:P==="visible",name:"Transition.Child"})))}function Mn(e,t){let{show:r,appear:s=!1,unmount:a=!0,...l}=e,d=c.useRef(null),u=Tt(d,t);Et();let i=jt();if(r===void 0&&i!==null&&(r=(i&ee.Open)===ee.Open),![!0,!1].includes(r))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[o,f]=c.useState(r?"visible":"hidden"),h=$t(()=>{f("hidden")}),[m,p]=c.useState(!0),g=c.useRef([r]);ve(()=>{m!==!1&&g.current[g.current.length-1]!==r&&(g.current.push(r),p(!1))},[g,r]);let b=c.useMemo(()=>({show:r,appear:s,initial:m}),[r,s,m]);c.useEffect(()=>{if(r)f("visible");else if(!Ae(h))f("hidden");else{let S=d.current;if(!S)return;let j=S.getBoundingClientRect();j.x===0&&j.y===0&&j.width===0&&j.height===0&&f("hidden")}},[r,h]);let C={unmount:a},_=R(()=>{var S;m&&p(!1),(S=e.beforeEnter)==null||S.call(e)}),M=R(()=>{var S;m&&p(!1),(S=e.beforeLeave)==null||S.call(e)});return c.createElement(Ie.Provider,{value:h},c.createElement(De.Provider,{value:b},Pt({ourProps:{...C,as:c.Fragment,children:c.createElement(Dt,{ref:u,...C,...l,beforeEnter:_,beforeLeave:M})},theirProps:{},defaultTag:c.Fragment,features:zt,visible:o==="visible",name:"Transition"})))}function En(e,t){let r=c.useContext(De)!==null,s=jt()!==null;return c.createElement(c.Fragment,null,!r&&s?c.createElement(st,{ref:t,...e}):c.createElement(Dt,{ref:t,...e}))}let st=Qe(Mn),Dt=Qe(kn),Tn=Qe(En),On=Object.assign(st,{Child:Tn,Root:st});function Pn({show:e,children:t}){return n.jsx(On,{as:c.Fragment,enter:"transition ease-out duration-150 origin-top-left",enterFrom:"transform opacity-0 scale-y-75",enterTo:"transform opacity-100 scale-y-100",show:e,children:n.jsx("div",{className:"bg-indigo-50/80 my-4 p-4 pt-2 pb-8 rounded-xl flex border border-primary-100 flex-wrap max-h-[350px] overflow-auto",children:t})})}function Fn(e,t){return r=>n.jsxs(n.Fragment,{children:[n.jsx(e,{...r}),t]})}function Ln(e,t){if(typeof document>"u")return;const r=t?.id;if(r&&document.getElementById(r))return;const s=document.createElement("div");r&&(s.id=r),s.style.position="absolute",s.style.width="0",s.style.height="0",s.style.overflow="hidden",s.setAttribute("aria-hidden","true"),s.innerHTML=e;const a=document.body;a&&(t?.position==="append"?a.appendChild(s):a.insertBefore(s,a.firstChild))}const V={};function jn(e){V.useSystemStore=e.useSystemStore,V.local=e.local,V.request=e.request,V.encrypt=e.encrypt,V.appContext=e.appContext}function at(){if(!V.useSystemStore)throw new Error("[@sg-front-core/ui-v1] missing setup: call setupSgTemplateUI({ useSystemStore, local, request, encrypt, ... }) before rendering pages.");return V.useSystemStore()}function ot(){if(!V.local)throw new Error("[@sg-front-core/ui-v1] missing setup: call setupSgTemplateUI({ local, ... }).");return V.local}function Q(){if(!V.request)throw new Error("[@sg-front-core/ui-v1] missing setup: call setupSgTemplateUI({ request, ... }).");return V.request}function de(){if(!V.encrypt)throw new Error("[@sg-front-core/ui-v1] missing setup: call setupSgTemplateUI({ encrypt, ... }).");return V.encrypt}function We(){return V.appContext??{}}function it(e,t){const r=c.useRef(t);c.useEffect(()=>{r.current=t},[t]),c.useEffect(()=>{const s=a=>{r.current(a.detail)};return document.addEventListener(e,s),()=>{document.removeEventListener(e,s)}},[e])}const ye=(e,t)=>{const r=new CustomEvent(e,{detail:t});document.dispatchEvent(r)},we={CLOSE:"CLOSETABPANE",OPEN:"OPENTABPANE",ROUTE:"ROUTE",RELOAD:"RELOADTAB"},$n=e=>ye(we.OPEN,e),_n=e=>ye(we.CLOSE,e),zn=e=>ye(we.ROUTE,e),Dn=()=>ye(we.RELOAD),{Content:In}=v.Layout;function An(){const e=pe.useNavigate();return n.jsxs(v.Layout,{className:"full-layout page404",children:[n.jsx(In,{children:n.jsxs("svg",{className:"me404",viewBox:"0 0 1000 480",children:[n.jsx("path",{id:"cloud",className:"st0",d:`M658.4,345.2c-10.9,0-19.7-8.8-19.7-19.7c0-10.9,8.8-19.7,19.7-19.7h50.1c9.9-1.5,17.5-10,17.5-20.3
6
+ c0-11.4-9.2-20.6-20.6-20.6v-0.2H633c-11.4,0-20.6-6.7-20.6-18.1c0-11.4,9.2-19.3,20.6-19.3h70.4l2-0.2c7.3-3.1,12.5-11,12.5-19.5
7
+ c0-8.5-4.2-16.7-11.4-19.2l-2.5-0.3h-11.3c-11.9,0-21.6-8.9-21.6-19.9c0-11,9.7-19.9,21.6-19.9h15.8l1.4-0.3
8
+ c8.6-2.5,14.8-10.1,14.8-19.5c0-11.4-9.2-20.6-20.6-20.6h-1.2h-69.2H382.5c-19.8-0.9-19.9-15.9-19.8-17.8c0-0.1,0-0.1,0-0.2
9
+ c0-9.9-8.1-18-18-18h-93.5c-9.9,0-18,8.1-18,18c0,9.4,7.2,17.1,16.3,17.9h9.3c0.2,0,0,0,0.6,0l0.5,0l0.4,0l0.2,0
10
+ c10.1,0.9,18,9.3,18,19.6c0,10.9-8.8,19.7-19.7,19.7h-70.7c-11.3,0-20.5,9.2-20.5,20.6c0,11.3,9.1,20.5,20.4,20.6h48.8
11
+ c10.3,0,18.7,8.4,18.7,18.7c0,10.3-8.4,18.7-18.7,18.7h-23.2c-11.3,0.1-20.4,9.2-20.4,20.6c0,11.3,9.2,20.5,20.5,20.6h6.3
12
+ c10.7,0,19.3,8.7,19.3,19.3c0,10.7-7.8,19.3-18.4,19.3l-1.5,0l-2.8,0.4c-7.3,3.1-11.8,11-11.5,18.9c0.3,8.5,4.2,16.5,11.7,19.6
13
+ c1.1,0.7,3.4,0.9,4.4,0.9h4.5H296h19.7c3.9,0.5,8.2,4.2,7.4,10.4c0,0.4,0,0.8,0.1,1.1c0,0.5-0.1,1-0.1,1.5c0,9.7,7.9,17.5,17.5,17.5
14
+ h60.2c9.7,0,17.5-7.9,17.5-17.5c0-0.4,0-0.8-0.1-1.2c0.1-0.3,0-0.7,0.1-1.1c0.3-6.5,6.4-10.9,10.6-10.8h110.1
15
+ c8.5,0,16.9,6.6,16.9,14.8c0,8.2,6.6,14.8,14.8,14.8h92.6c8.2,0,14.8-6.6,14.8-14.8c0-8.2-6.6-14.8-14.8-14.8 M332.8,187.1h-21.2
16
+ c-11.4,0-20.6-9.2-20.6-20.6c0-11.4,9.2-20.6,20.6-20.6h21.2c11.4,0,20.6,9.2,20.6,20.6C353.3,177.9,344.1,187.1,332.8,187.1z`}),n.jsxs("g",{id:"triforce",children:[n.jsx("path",{id:"zelda_stroke",className:"st1",d:`M138.4,59.5h36.9l-18.5,32L138.4,59.5z M193.8,91.5l18.5-32h-36.9L193.8,91.5z M175.4,123.5
17
+ l18.5-32h-36.9L175.4,123.5z`}),n.jsx("path",{id:"zelda_dark_shadow",className:"st0",d:`M156.9,91.5l-18.5-32l18.5,10.7L156.9,91.5z M193.8,70.2l-18.5-10.7l18.5,32
18
+ L193.8,70.2z M175.4,102.2l-18.5-10.7l18.5,32L175.4,102.2z`}),n.jsx("path",{id:"zelda_light_shadow",className:"st2",d:`M175.4,59.5l-18.5,10.7l-18.5-10.7H175.4z M175.4,59.5l18.5,10.7l18.5-10.7H175.4z
19
+ M156.9,91.5l18.5,10.7l18.5-10.7H156.9z`}),n.jsx("path",{id:"zelda_highlight",className:"st3",d:`M150.6,66.6h12.5l-6.3,10.8L150.6,66.6z M193.8,77.4l6.3-10.8h-12.5L193.8,77.4z
20
+ M175.4,109.4l6.3-10.8h-12.5L175.4,109.4z`})]}),n.jsxs("g",{id:"monkey",children:[n.jsx("path",{id:"foot_back",className:"st4",d:"M187.3,354.5c2.2-4.5,1.6-12.8-3.3-18.5l-9.3,2c2.2,3.5,8.3,7.7,2.3,20.8 c-1.9,4.2-0.8,8.7,4,8.7h22.3c6.5,0,5.3-7.9,2-10.5c-4.2-3.3-10.2-3.6-15.3-1C187.9,357.1,185.3,358.7,187.3,354.5z"}),n.jsx("path",{id:"foot_front",className:"st5",d:"M166.3,354.5c2.2-4.5,1.6-12.8-3.3-18.5l-9.3,2c2.2,3.5,8.3,7.7,2.3,20.8 c-1.9,4.2-0.8,8.7,4,8.7h22.3c6.5,0,5.3-7.9,2-10.5c-4.2-3.3-10.2-3.6-15.3-1C166.9,357.1,164.3,358.7,166.3,354.5z"}),n.jsx("path",{id:"body",className:"st5",d:"M199.8,299.3l9-55.5c0,0-2.1-3.6-7.2-7.1c1.4-1.2,2.2-3.1,1.8-5c-0.6-3.1-3.9-5.3-7.5-4.8 c-2.9,0.4-5,2.4-5.4,4.8l0,0c-7.2-1.9-16.5-1.9-29.5,1.6c-1.5-3.1-5.6-5.4-9.3-5.7c-5.5-0.4-9.3,3.7-9.7,9.3 c-0.3,4.4,2.2,8.3,6.1,9.9c-16,25.6-14.6,58.2-11,71.9c4.3,16.1,18.2,21.8,26.3,21.8c13,0,33.8-1.9,37.5-17.7 C202.9,315,202,303.9,199.8,299.3z"}),n.jsx("path",{id:"rock",className:"st6",d:"M93.4,367.5H89 M104,367.5h144l-11,17.2c-0.9,1.4-2.5,2.3-4.2,2.3H203c-1.6,0-3,0.7-4,2l-40,52"}),n.jsx("path",{id:"tail",className:"st7",d:"M89,315c2.2-15.2-23-13.2-21.6,4.8c1.7,22.3,24.4,22.1,42.5,9.1c10.8-7.8,15.3-1.8,19.1,1.1 c2.3,1.7,6.7,3.3,11-3"}),n.jsx("path",{id:"face",className:"st8",d:"M213.7,245.2c0,0-6-2.9-11,0.2c-4.6,2.8-9.4,1.7-14,0c-4.6-1.7-16-5.1-19.2,2.6 c-2,3.8-2.3,9.7,3.8,16.3c-0.9,10.1-2.9,37.9,28.6,34.2c10.1-1.2,24.8-12.7,25.4-18.2s-1.7-7.4-6.5-6.5 c-1.3-6.5-2.3-12.9-10.7-11.8c-3.9,0.2,7.5,0,8.1-7.5C218.6,247.8,213.7,245.2,213.7,245.2z"}),n.jsx("path",{id:"mouth",className:"st9",d:"M220.6,274.8c0,0-0.3,0.2-0.7,0.5c-0.2,0.2-0.6,0.3-1,0.5c-0.4,0.2-0.9,0.3-1.4,0.5 c-1,0.3-2.1,0.5-3.3,0.6c-1.2,0.2-2.4,0.3-3.7,0.5c-0.6,0.1-1.2,0.2-1.8,0.4c-0.6,0.1-1.1,0.3-1.7,0.5c-0.5,0.2-1,0.4-1.4,0.7 c-0.5,0.2-0.8,0.5-1.2,0.8c-0.4,0.2-0.6,0.6-0.9,0.9c-0.3,0.3-0.4,0.5-0.6,0.7c-0.3,0.4-0.5,0.7-0.5,0.7l0,0.1 c-0.2,0.2-0.5,0.3-0.7,0.1c-0.2-0.1-0.3-0.4-0.2-0.7c0,0,0.2-0.3,0.5-0.8c0.2-0.3,0.3-0.6,0.6-0.9c0.3-0.3,0.5-0.7,0.9-1 c0.4-0.3,0.8-0.7,1.3-1c0.5-0.3,1-0.6,1.6-0.9c0.6-0.2,1.2-0.5,1.8-0.7c0.6-0.2,1.3-0.3,1.9-0.5c1.3-0.3,2.5-0.5,3.7-0.7 c1.2-0.2,2.2-0.4,3-0.7c0.4-0.2,0.8-0.3,1.1-0.4c0.3-0.2,0.5-0.2,0.8-0.4c0.5-0.3,0.7-0.5,0.7-0.5c0.5-0.3,1.1-0.2,1.4,0.2 C221.2,273.9,221.1,274.5,220.6,274.8C220.6,274.8,220.6,274.8,220.6,274.8z"}),n.jsx("path",{id:"nose_hole",className:"st10",d:`M213.2,266.3c0.6,0,1,0.5,0.9,1.1c0,0.6-0.5,1-1.1,0.9c-0.6,0-1-0.5-0.9-1.1
21
+ C212.1,266.6,212.6,266.2,213.2,266.3z`}),n.jsx("path",{id:"nose_hole_1_",className:"st10",d:`M208.1,266.9c0.6,0,1,0.5,0.9,1.1c0,0.6-0.5,1-1.1,0.9c-0.6,0-1-0.5-0.9-1.1
22
+ C207.1,267.3,207.6,266.9,208.1,266.9z`}),n.jsx("path",{id:"monkey-eye-r",className:"st10",d:"M205,253.5c1.1,0.1,1.9,1,1.9,2.1c-0.1,1.1-1,1.9-2.1,1.9c-1.1-0.1-1.9-1-1.9-2.1 C203,254.3,203.9,253.4,205,253.5z"}),n.jsx("path",{id:"monkey-eye-l",className:"st10",d:"M191.5,254.6c1.4,0.1,2.4,1.3,2.3,2.7c-0.1,1.4-1.3,2.4-2.7,2.3c-1.4-0.1-2.4-1.3-2.3-2.7 C188.9,255.6,190.1,254.5,191.5,254.6z"}),n.jsx("path",{id:"mongkey_shadow_1_",className:"st0",d:`M209.1,281c0.9-0.9,9.4-2.6,12-3c2.4-0.4-1.6,4.1-5,5S208.2,282,209.1,281z M143.6,237.1c-0.3,3.6,1.8,7,5.2,8.4c0.4,0.2,0.7,0.5,0.8,0.9c0.1,0.4,0.1,0.9-0.2,1.2c-15.1,24.2-14.7,56.3-10.8,70.8 c4,15.2,17.1,20.7,24.8,20.7c8.9,0,16.1-1,21.8-2.9c-67.5,2.2-35-81.7-33.3-87.3c0.2-0.8,1.2-4.4,1-5c-0.6-1.6-3.5-0.2-6-4 c-2.9-4.5,1.2-9.2,2.6-10.6C146.3,230.1,143.9,233,143.6,237.1z M201.7,297.5c7.8-0.9,17.9-8,22.3-13.3
23
+ c-27.4,14.7-44.4,3.1-50.1-9.8c0.3,5.9,1.6,12.6,5.9,17.3C184.4,296.7,191.8,298.7,201.7,297.5z M208.6,261.2
24
+ c-5.7,0.8-8.6-1.1-11.6,1.8c-2.8,2.7-7.7,4.6-3.8,4.1c3.9-0.6,10.1-3.4,16.8-4.1c0,0,0,0,0,0l-0.5,0c-0.2,0-0.3,0-0.4,0
25
+ c-0.5,0-1-0.4-1-0.9C208.2,261.9,208.2,261.5,208.6,261.2z M198.4,300c0-0.1,0-0.1-0.1-0.2c-0.7,0-1.4,0.1-2,0.1
26
+ c-7.8,0-13.9-2.3-18-6.8c-7.7-8.4-6.6-22.5-6.1-28.4c-5.6-6.2-5.6-11.5-4.6-15c-2,2.3-4.8,8.5,2.1,16.1c-3.9,6.4-5.4,26.5,9.2,36.2
27
+ c7.2,4.8,16.6,5.3,20.8,2.8C199.5,302.9,199,301.2,198.4,300z`}),n.jsx("path",{id:"belly",className:"st11",d:`M189.1,304c6.2,3,8.1,11.5,5.9,19c-2.3,7.4-9.8,10-16,7c-6.2-3-7.6-10.4-5.3-17.8
28
+ S182.9,301.1,189.1,304z`}),n.jsx("path",{id:"belly_button",className:"st9",d:`M191.2,322.3c0-0.1-0.1-0.2-0.2-0.2l-1.9-1.4l1-1.9c0.1-0.1,0.1-0.2,0-0.3
29
+ c-0.1-0.2-0.4-0.4-0.7-0.3c-0.2,0-0.4,0.2-0.5,0.3l-0.9,1.7l-1.6-1.2c-0.2-0.1-0.3-0.1-0.5-0.1c-0.4,0.1-0.5,0.4-0.5,0.6
30
+ c0,0.1,0.1,0.2,0.2,0.2l1.8,1.3l-1.1,2.1c-0.1,0.1-0.1,0.2,0,0.3c0.1,0.3,0.4,0.4,0.7,0.4c0.2,0,0.3-0.1,0.4-0.3l1-1.9l1.7,1.3
31
+ c0.1,0.1,0.3,0.1,0.5,0.1C191.1,322.8,191.3,322.5,191.2,322.3z`}),n.jsxs("g",{id:"monkey_arm",children:[n.jsx("path",{id:"monkey-arm",className:"st5",d:`M164.3,344.1c-0.9-0.3-1.8-0.2-2.5,0.2c-0.3-0.2-0.6-0.3-0.9-0.4c-0.8-0.3-1.5-0.5-2.3-0.5
32
+ c-0.1,0-0.2-0.1-0.3-0.3c-2.4-11.4-1.1-27.6,0.3-43.8c0-0.1,1.2-5.7-2.6-7.2c-5.2-2.1-5.5,2.5-5.5,2.7c-0.5,4.8-3.6,39,1.1,51.4
33
+ c0,0.1,0,0.2,0,0.3c-0.4,0.5-0.7,1-0.9,1.7c-1.5,3.9,0.7,8.3,4.8,9.9c4.1,1.6,8.7-0.3,10.1-4.2c0.5-1.3,0.6-2.7,0.3-4
34
+ c0-0.1,0-0.2,0.1-0.2c0.5-0.7,0.9-1.6,0.5-2.9C166.2,345.5,165.4,344.4,164.3,344.1z`}),n.jsxs("g",{id:"armpit",children:[n.jsx("path",{className:"st12",d:`M165,296c0-4.3-1.8-10.8-6-12c-12.5-3.5-12.4,11.1-12.4,11.1s10.8-1.4,16.7,9.6
35
+ C163.3,304.6,165,300.3,165,296z`}),n.jsx("path",{className:"st11",d:"M146.6,295.1c0,0,10.8-1.4,16.7,9.6"}),n.jsx("path",{className:"st11",d:"M144.4,296c0,0,8.7-6.6,19.2,0"})]})]})]}),n.jsx("g",{id:"tetris-path",children:n.jsxs("g",{id:"tetris",children:[n.jsx("path",{id:"tetris_stroke",className:"st13",d:"M487.5,323.5h34v34h-34V323.5z M487.5,357.5h34v34h-34V357.5z M521.5,357.5h34v34h-34 V357.5z M555.5,357.5h34v34h-34V357.5z M555.5,391.5h34v34h-34V391.5z"}),n.jsx("path",{id:"tetris_dark_shadow",className:"st2",d:"M489,356l6-6c0.9-0.9,2.2-1.5,3.5-1.5h13.9l7.5,7.5H489z M489,390l6-6 c0.9-0.9,2.2-1.5,3.5-1.5h13.9l7.5,7.5H489z M523,390l6-6c0.9-0.9,2.2-1.5,3.5-1.5h13.9l7.5,7.5H523z M557,390l6-6 c0.9-0.9,2.2-1.5,3.5-1.5h13.9l7.5,7.5H557z M557,424l6-6c0.9-0.9,2.2-1.5,3.5-1.5h13.9l7.5,7.5H557z"}),n.jsx("path",{id:"tetris_light_shadow",className:"st0",d:"M520,356l-8-7.5v-13.9c0-1.4,0.6-2.7,1.6-3.6l6.4-6V356z M520,390l-8-7.5v-13.9 c0-1.4,0.6-2.7,1.6-3.6l6.4-6V390z M554,390l-8-7.5v-13.9c0-1.4,0.6-2.7,1.6-3.6l6.4-6V390z M588,390l-8-7.5v-13.9 c0-1.4,0.6-2.7,1.6-3.6l6.4-6V390z M588,424l-8-7.5v-13.9c0-1.4,0.6-2.7,1.6-3.6l6.4-6V424z"})]})}),n.jsxs("g",{id:"stars",children:[n.jsx("path",{id:"star1",className:"st5",d:"M652.6,332.5c-5.3,3.1-12.1,1.2-15.1-4.1l-1.4-2.4l1.4,2.4c3.1,5.3,1.2,12.1-4.1,15.1l-2.4,1.4 l2.4-1.4c5.3-3.1,12.1-1.2,15.1,4.1l1.4,2.4l-1.4-2.4C645.5,342.3,647.3,335.5,652.6,332.5l2.4-1.4L652.6,332.5z"}),n.jsx("path",{id:"star2",className:"st5",d:"M503.4,73.7c-8,4.6-18.1,1.9-22.7-6.1l-2.1-3.6l2.1,3.6c4.6,8,1.9,18.1-6.1,22.7l-3.6,2.1l3.6-2.1 c8-4.6,18.1-1.9,22.7,6.1l2.1,3.6l-2.1-3.6C492.7,88.4,495.4,78.3,503.4,73.7l3.6-2.1L503.4,73.7z"}),n.jsx("path",{id:"star3",className:"st5",d:"M330.4,335.7c-8,4.6-18.1,1.9-22.7-6.1l-2.1-3.6l2.1,3.6c4.6,8,1.9,18.1-6.1,22.7l-3.6,2.1 l3.6-2.1c8-4.6,18.1-1.9,22.7,6.1l2.1,3.6l-2.1-3.6C319.7,350.4,322.4,340.3,330.4,335.7l3.6-2.1L330.4,335.7z"}),n.jsx("path",{id:"star4",className:"st5",d:"M135.6,176.5c-5.3,3.1-12.1,1.2-15.1-4.1l-1.4-2.4l1.4,2.4c3.1,5.3,1.2,12.1-4.1,15.1l-2.4,1.4 l2.4-1.4c5.3-3.1,12.1-1.2,15.1,4.1l1.4,2.4l-1.4-2.4C128.5,186.3,130.3,179.5,135.6,176.5l2.4-1.4L135.6,176.5z"})]}),n.jsxs("g",{id:"moon",children:[n.jsx("path",{id:"moon_body",className:"st5",d:"M641,34c26,0,47,21,47,47s-21,47-47,47s-47-21-47-47S615,34,641,34z"}),n.jsx("path",{id:"moon_shades",className:"st0",d:`M622.5,55.9c1.3,2.3,0,5.8-3.1,7.7c-3,2-6.6,1.7-7.9-0.6c-1.3-2.3,0-5.8,3.1-7.7
36
+ C617.6,53.3,621.1,53.6,622.5,55.9z M628.8,94.1c-4.1-6.1-11.6-9-16.7-6.4c-5.1,2.6-5.9,9.6-1.7,15.7c4.1,6.1,11.6,9,16.7,6.4
37
+ C632.2,107.2,632.9,100.2,628.8,94.1z M644.5,109c-3.6,0-6.5,2.2-6.5,5s2.9,5,6.5,5s6.5-2.2,6.5-5S648.1,109,644.5,109z
38
+ M645.7,95.8c-2.3-1.2-5-0.5-6,1.4c-1,2,0,4.5,2.3,5.7c2.3,1.2,5,0.5,6-1.4C649,99.6,648,97,645.7,95.8z M686.5,81
39
+ c0-25.1-20.4-45.5-45.5-45.5c-16.1,0-30.2,8.4-38.3,21c7.9-5.9,17.7-9.5,28.3-9.5c26,0,47,21,47,47c0,6.3-1.3,12.3-3.5,17.8
40
+ C681.9,103.6,686.5,92.8,686.5,81z`})]}),n.jsxs("g",{id:"number_4",children:[n.jsx("path",{id:"number_4_outline",className:"st1",d:`M379.5,235.5c0-4.9-3.9-9.1-8.7-9.1h-11.4v-72.5c0-9.1-8.5-15.7-17.6-15
41
+ c-6,0-11.8,3.1-15.1,8l-52.7,79.8c-1.2,2.1-2.1,4.5-2.1,6.6c0,6.6,5,11.1,10.3,11.1H339v24.3c0,5.6,4.3,10.1,9.9,10.1
42
+ c6,0,10.5-4.5,10.5-10.1v-24.3h11.4C375.6,244.3,379.5,240.4,379.5,235.5z M339,226.4h-45.5l45.5-67.8V226.4z`}),n.jsx("path",{id:"number_4_inner_lines",className:"st14",d:`M349,158v109.2 M345.9,147c-5.6,0-10.9,2.8-14,7.2l-47.1,69.5
43
+ c-1.2,1.9-3.3,4.3-3.6,5.8c-0.8,4.6,2.3,5.5,7.3,5.5H340 M359.5,235H379 M342,232l-4,7 M345,232l-4,7 M358,232l-4,7 M361,232l-4,7`}),n.jsx("path",{id:"number_4_dots",className:"st10",d:`M349,266c1.6,0,2.9,1.3,2.9,2.9c0,1.6-1.3,2.9-2.9,2.9c-1.6,0-2.9-1.3-2.9-2.9
44
+ C346.1,267.3,347.4,266,349,266z M349,155.1c1.6,0,2.9,1.3,2.9,2.9s-1.3,2.9-2.9,2.9c-1.6,0-2.9-1.3-2.9-2.9S347.4,155.1,349,155.1
45
+ z M344.4,144.6c1.6,0,2.9,1.3,2.9,2.9c0,1.6-1.3,2.9-2.9,2.9c-1.6,0-2.9-1.3-2.9-2.9C341.4,145.9,342.7,144.6,344.4,144.6z`})]}),n.jsxs("g",{id:"number_4_2",children:[n.jsx("path",{id:"number_4_outline_2",className:"st1",d:`M627,235.5c0-4.9-3.9-9.1-8.7-9.1h-11.4v-72.5c0-9.1-8.5-15.7-17.6-15
46
+ c-6,0-11.8,3.1-15.1,8l-52.7,79.8c-1.2,2.1-2.1,4.5-2.1,6.6c0,6.6,5,11.1,10.3,11.1h56.7v24.3c0,5.6,4.3,10.1,9.9,10.1
47
+ c6,0,10.5-4.5,10.5-10.1v-24.3h11.4C623.1,244.3,627,240.4,627,235.5z M586.5,226.4H541l45.5-67.8V226.4z`}),n.jsx("path",{id:"number_4_inner_lines_2",className:"st14",d:`M596.5,158v109.2 M593.3,147c-5.6,0-10.9,2.8-14,7.2l-47.1,69.5
48
+ c-1.2,1.9-3.3,4.3-3.6,5.8c-0.8,4.6,2.3,5.5,7.3,5.5h51.5 M607,235h19.5 M589.5,232l-4,7 M592.5,232l-4,7 M605.5,232l-4,7
49
+ M608.5,232l-4,7`}),n.jsx("path",{id:"number_4_dots_2",className:"st10",d:`M596.5,266c1.6,0,2.9,1.3,2.9,2.9c0,1.6-1.3,2.9-2.9,2.9c-1.6,0-2.9-1.3-2.9-2.9
50
+ C593.6,267.3,594.9,266,596.5,266z M596.5,155.1c1.6,0,2.9,1.3,2.9,2.9s-1.3,2.9-2.9,2.9c-1.6,0-2.9-1.3-2.9-2.9
51
+ S594.9,155.1,596.5,155.1z M591.8,144.6c1.6,0,2.9,1.3,2.9,2.9c0,1.6-1.3,2.9-2.9,2.9c-1.6,0-2.9-1.3-2.9-2.9
52
+ C588.9,145.9,590.2,144.6,591.8,144.6z`})]}),n.jsxs("g",{id:"number_0",children:[n.jsx("path",{id:"number_0_outline",className:"st1",d:`M502,208.9c0-34-15.9-70.9-54-70.9c-38.3,0-54,36.9-54,70.9s15.7,71.1,54,71.1
53
+ C486.1,280,502,242.9,502,208.9z M481.1,208.9c0,26.8-8.7,53-33.1,53c-24.6,0-33.1-26.2-33.1-53c0-26.8,8.5-52.8,33.1-52.8
54
+ C472.4,156.1,481.1,182.1,481.1,208.9z`}),n.jsx("path",{id:"number_0_inner_lines",className:"st15",d:`M487.2,175.7c-6.7-16.8-19.3-29.4-39.2-29.4c-32,0-45.1,32.5-45.1,62.4
55
+ s13.1,62.6,45.1,62.6c31.8,0,44.1-32.6,44.1-62.6 M487.5,172c3,0,5.5,2.5,5.5,5.5c0,3-2.5,5.5-5.5,5.5c-3,0-5.5-2.5-5.5-5.5
56
+ C482,174.5,484.5,172,487.5,172z M492.5,202c3,0,5.5,2.5,5.5,5.5c0,3-2.5,5.5-5.5,5.5c-3,0-5.5-2.5-5.5-5.5
57
+ C487,204.5,489.5,202,492.5,202z`}),n.jsx("path",{id:"number_0_dots",className:"st10",d:`M492.5,205c1.4,0,2.5,1.1,2.5,2.5c0,1.4-1.1,2.5-2.5,2.5c-1.4,0-2.5-1.1-2.5-2.5
58
+ C490,206.1,491.1,205,492.5,205z M487.5,175c1.4,0,2.5,1.1,2.5,2.5c0,1.4-1.1,2.5-2.5,2.5c-1.4,0-2.5-1.1-2.5-2.5
59
+ C485,176.1,486.1,175,487.5,175z M448.1,143.4c1.6,0,2.9,1.3,2.9,2.9c0,1.6-1.3,2.9-2.9,2.9c-1.6,0-2.9-1.3-2.9-2.9
60
+ C445.1,144.7,446.4,143.4,448.1,143.4z M448.1,268.3c1.6,0,2.9,1.3,2.9,2.9c0,1.6-1.3,2.9-2.9,2.9c-1.6,0-2.9-1.3-2.9-2.9
61
+ C445.1,269.6,446.4,268.3,448.1,268.3z`})]}),n.jsx("g",{id:"sword-path",children:n.jsxs("g",{id:"sword",children:[n.jsx("path",{id:"sword_handle",className:"st5",d:"M444.6,196.6l0.6-0.8c1.5-2,1.8-4.3,3.8-2.8l8.9,6.8c2,1.5,2.4,4.3,0.9,6.3l-0.6,0.8 c-1.5,2-4.3,2.4-6.3,0.9L443,201C441,199.5,443.1,198.5,444.6,196.6z"}),n.jsx("path",{id:"sword_handle_line",className:"st14",d:"M453.9,197c2,1.5,2.4,4.3,0.9,6.3l-0.6,0.8c-1.5,2-4.3,2.4-6.3,0.9"}),n.jsx("path",{id:"sword_hilt",className:"st5",d:"M432.5,197.1l10.6-13.9c1.6-2.2,4.7-2.6,6.9-0.9c2.2,1.6,2.6,4.7,0.9,6.9l-10.6,13.9 c-1.6,2.2-4.7,2.6-6.9,0.9C431.2,202.4,430.8,199.3,432.5,197.1z"}),n.jsx("polygon",{id:"sword_blade",className:"st1",points:"437,199 446,187.3 387.3,138.9 366.3,136.7 372.2,154 "}),n.jsx("polygon",{id:"sword_blade_shadow",className:"st0",points:"436.7,197 440.3,192.3 369,138.5 368.5,138.4 373.5,153 "})]})})]})}),n.jsx("div",{className:"back_",children:n.jsx(v.Button,{type:"default",onClick:()=>e(-1),children:"返回上一页"})})]})}var Wn=["size","strokeWidth","strokeLinecap","strokeLinejoin","theme","fill","className","spin"];function It(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),r.push.apply(r,s)}return r}function At(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?It(Object(r),!0).forEach(function(s){Hn(e,s,r[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):It(Object(r)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(r,s))})}return e}function Hn(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Bn(e,t){if(e==null)return{};var r=qn(e,t),s,a;if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(e);for(a=0;a<l.length;a++)s=l[a],!(t.indexOf(s)>=0)&&Object.prototype.propertyIsEnumerable.call(e,s)&&(r[s]=e[s])}return r}function qn(e,t){if(e==null)return{};var r={},s=Object.keys(e),a,l;for(l=0;l<s.length;l++)a=s[l],!(t.indexOf(a)>=0)&&(r[a]=e[a]);return r}var Un={size:"1em",strokeWidth:4,strokeLinecap:"round",strokeLinejoin:"round",rtl:!1,theme:"outline",colors:{outline:{fill:"#333",background:"transparent"},filled:{fill:"#333",background:"#FFF"},twoTone:{fill:"#333",twoTone:"#2F88FF"},multiColor:{outStrokeColor:"#333",outFillColor:"#2F88FF",innerStrokeColor:"#FFF",innerFillColor:"#43CCF8"}},prefix:"i"};function Vn(){return"icon-"+((1+Math.random())*4294967296|0).toString(16).substring(1)}function Yn(e,t,r){var s=typeof t.fill=="string"?[t.fill]:t.fill||[],a=[],l=t.theme||r.theme;switch(l){case"outline":a.push(typeof s[0]=="string"?s[0]:"currentColor"),a.push("none"),a.push(typeof s[0]=="string"?s[0]:"currentColor"),a.push("none");break;case"filled":a.push(typeof s[0]=="string"?s[0]:"currentColor"),a.push(typeof s[0]=="string"?s[0]:"currentColor"),a.push("#FFF"),a.push("#FFF");break;case"two-tone":a.push(typeof s[0]=="string"?s[0]:"currentColor"),a.push(typeof s[1]=="string"?s[1]:r.colors.twoTone.twoTone),a.push(typeof s[0]=="string"?s[0]:"currentColor"),a.push(typeof s[1]=="string"?s[1]:r.colors.twoTone.twoTone);break;case"multi-color":a.push(typeof s[0]=="string"?s[0]:"currentColor"),a.push(typeof s[1]=="string"?s[1]:r.colors.multiColor.outFillColor),a.push(typeof s[2]=="string"?s[2]:r.colors.multiColor.innerStrokeColor),a.push(typeof s[3]=="string"?s[3]:r.colors.multiColor.innerFillColor);break}return{size:t.size||r.size,strokeWidth:t.strokeWidth||r.strokeWidth,strokeLinecap:t.strokeLinecap||r.strokeLinecap,strokeLinejoin:t.strokeLinejoin||r.strokeLinejoin,colors:a,id:e}}var Wt=c.createContext(Un);Wt.Provider;function lt(e,t,r){return function(s){var a=s.size,l=s.strokeWidth,d=s.strokeLinecap,u=s.strokeLinejoin,i=s.theme,o=s.fill,f=s.className,h=s.spin,m=Bn(s,Wn),p=c.useContext(Wt),g=c.useMemo(Vn,[]),b=Yn(g,{size:a,strokeWidth:l,strokeLinecap:d,strokeLinejoin:u,theme:i,fill:o},p),C=[p.prefix+"-icon"];return C.push(p.prefix+"-icon-"+e),p.rtl&&C.push(p.prefix+"-icon-rtl"),h&&C.push(p.prefix+"-icon-spin"),f&&C.push(f),c.createElement("span",At(At({},m),{},{className:C.join(" ")}),r(b))}}const Kn=lt("refresh",!0,function(e){return c.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},c.createElement("path",{d:"M42 8V24",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),c.createElement("path",{d:"M6 24L6 40",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),c.createElement("path",{d:"M42 24C42 14.0589 33.9411 6 24 6C18.9145 6 14.3216 8.10896 11.0481 11.5M6 24C6 33.9411 14.0589 42 24 42C28.8556 42 33.2622 40.0774 36.5 36.9519",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Ht=lt("search",!0,function(e){return c.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},c.createElement("path",{d:"M21 38C30.3888 38 38 30.3888 38 21C38 11.6112 30.3888 4 21 4C11.6112 4 4 11.6112 4 21C4 30.3888 11.6112 38 21 38Z",fill:e.colors[1],stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinejoin:e.strokeLinejoin}),c.createElement("path",{d:"M26.657 14.3431C25.2093 12.8954 23.2093 12 21.0001 12C18.791 12 16.791 12.8954 15.3433 14.3431",stroke:e.colors[2],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),c.createElement("path",{d:"M33.2216 33.2217L41.7069 41.707",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),Bt=lt("undo",!0,function(e){return c.createElement("svg",{width:e.size,height:e.size,viewBox:"0 0 48 48",fill:"none"},c.createElement("path",{d:"M11.2721 36.7279C14.5294 39.9853 19.0294 42 24 42C33.9411 42 42 33.9411 42 24C42 14.0589 33.9411 6 24 6C19.0294 6 14.5294 8.01472 11.2721 11.2721C9.61407 12.9301 6 17 6 17",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}),c.createElement("path",{d:"M6 9V17H14",stroke:e.colors[0],strokeWidth:e.strokeWidth,strokeLinecap:e.strokeLinecap,strokeLinejoin:e.strokeLinejoin}))}),{RangePicker:qt}=v.DatePicker,He={pageNum:1,pageSize:10};function Gn({procDefKey:e,onResetProcFilter:t}){const[r,s]=c.useState(He),a=Q(),l=pe.useNavigate(),[d]=v.Form.useForm(),u=U((i=He)=>a({url:"/v1/workflow/task/overFlows",method:"get",params:e?{...i,procDefKey:e}:i}),{refreshDeps:[e],debounceWait:100});return ae(()=>{u.run(r)},[r]),it("REFRESH_DONE",()=>{u.refresh()}),n.jsxs("section",{children:[n.jsx("header",{children:n.jsxs(v.Form,{form:d,className:"flex flex-row items-center justify-between pb-6 pt-2",children:[n.jsxs("div",{className:"flex flex-row justify-center items-center",children:[n.jsx(v.Form.Item,{className:"mr-4 mb-0",label:"标题",name:"title",colon:!1,children:n.jsx(v.Input,{placeholder:"请输入标题",onChange:i=>d.setFieldsValue({title:i.target.value}),allowClear:!0})}),n.jsx(v.Form.Item,{className:"mr-4 mb-0",label:"发起人",name:"startUser",colon:!1,children:n.jsx(v.Input,{placeholder:"请输入发起人",onChange:i=>d.setFieldsValue({startUser:i.target.value}),allowClear:!0})}),n.jsx(v.Form.Item,{className:"mr-4 mb-0",label:"接收时间",name:"startTimeRang",colon:!1,children:n.jsx(qt,{onChange:i=>d.setFieldsValue({startTimeRang:i}),allowClear:!0})}),n.jsx(v.Form.Item,{className:"mb-0",label:"审批时间",name:"endTimeRang",colon:!1,children:n.jsx(qt,{onChange:i=>d.setFieldsValue({endTimeRang:i}),allowClear:!0})})]}),n.jsxs("div",{className:"flex flex-row",children:[n.jsx(v.Button,{type:"primary",className:"mr-2 flex-center border-0",onClick:()=>{d.resetFields(),s(He),t()},icon:n.jsx("div",{children:n.jsx(Bt,{size:"16"})}),children:"重置"}),n.jsx(v.Button,{type:"primary",className:"flex-center border-0",onClick:()=>{const i=d.getFieldsValue();let o={};i.title&&(o.title=i.title),i.startUser&&(o.startUser=i.startUser),i.startTimeRang&&(o.startTimeRang=i.startTimeRang.map(f=>Ze(f).format("YYYY-MM-DD")).join("_")),i.endTimeRang&&(o.endTimeRang=i.endTimeRang.map(f=>Ze(f).format("YYYY-MM-DD")).join("_")),s({...He,...o})},icon:n.jsx("div",{children:n.jsx(Ht,{size:"16"})}),disabled:u.loading,children:"搜索"})]})]})}),n.jsx("div",{className:"bg-white border border-slate-100 h-[451px] min-h-[451px]",children:n.jsxs("table",{className:"w-full overflow-y-auto",children:[n.jsx("thead",{className:"h-[50px]",children:n.jsxs("tr",{className:"bg-[#f5f5f585] text-gray-600 uppercase text-sm leading-normal",children:[n.jsx("th",{className:"py-3 px-6 text-left w-[60%]",children:"标题"}),n.jsx("th",{className:"py-3 px-6 text-left w-[14%]",children:"流程发起人"}),n.jsx("th",{className:"py-3 px-6 text-center w-[13%]",children:"接收时间"}),n.jsx("th",{className:"py-3 px-6 text-center w-[13%]",children:"审批时间"})]})}),n.jsx("tbody",{className:"text-gray-600 text-sm font-light",children:u.loading?n.jsx("tr",{className:"h-[400px]",children:n.jsx("td",{colSpan:4,className:"h-[400px]",children:n.jsx("div",{className:"flex-center",children:n.jsxs("svg",{version:"1.1",id:"L2",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:30,height:30,viewBox:"0 0 100 100",enableBackground:"new 0 0 100 100",xmlSpace:"preserve",children:[n.jsx("circle",{fill:"none",stroke:"#E2E8F0",strokeWidth:"4",strokeMiterlimit:"10",cx:"50",cy:"50",r:"48"}),n.jsx("line",{fill:"none",strokeLinecap:"round",stroke:"#E2E8F0",strokeWidth:"4",strokeMiterlimit:"10",x1:"50",y1:"50",x2:"85",y2:"50.5",children:n.jsx("animateTransform",{attributeName:"transform",dur:"2s",type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})}),n.jsx("line",{fill:"none",strokeLinecap:"round",stroke:"#E2E8F0",strokeWidth:"4",strokeMiterlimit:"10",x1:"50",y1:"50",x2:"49.5",y2:"74",children:n.jsx("animateTransform",{attributeName:"transform",dur:"15s",type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})})}):u.data?.rows?.length>0?u.data.rows.map((i,o)=>n.jsxs("tr",{className:`border-b border-slate-100 h-[40px] overflow-hidden${o>1&&o%9===0?" border-b-0":""}`,children:[n.jsx("td",{className:"px-6 pl-[15px] text-left whitespace-nowrap h-[40px]",children:n.jsx("div",{className:"flex items-center",children:n.jsx("span",{onClick:()=>{l(`${i.url}`,{state:i.title})},className:"font-medium hover:cursor-pointer",children:i.title})})}),n.jsx("td",{className:"px-6 text-left h-[40px]",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"mr-2",children:n.jsx(ce,{icon:"icon-tongyongleiyonghunan",size:18})}),n.jsxs("span",{children:[i.startUserId," ",i.startUserName]})]})}),n.jsx("td",{className:"px-6 text-center h-[40px]",children:n.jsx("span",{children:i.startTime})}),n.jsx("td",{className:"px-6 text-center h-[40px]",children:n.jsx("span",{children:i.endTime})})]},`done_${i.actInstId}`)):n.jsx("tr",{className:"h-[400px]",children:n.jsx("td",{colSpan:4,className:"h-[400px]",children:n.jsx(v.Empty,{className:"w-full",image:v.Empty.PRESENTED_IMAGE_SIMPLE})})})})]})}),n.jsx("div",{className:"mt-4 flex flex-row justify-end",children:n.jsx(v.Pagination,{showSizeChanger:!0,current:u.data?.pageNum||1,total:u.data?.total||0,onChange:(i,o)=>{s({...r,pageNum:i,pageSize:o})}})})]})}const{RangePicker:Jn}=v.DatePicker,Be={pageNum:1,pageSize:10};function Zn({setCount:e,procDefKey:t,onResetProcFilter:r}){const[s,a]=c.useState(Be),l=Q(),d=pe.useNavigate(),u=U((o=Be)=>l({url:"v1/workflow/task/waitFlows",method:"get",params:t?{...o,procDefKey:t}:o}),{refreshDeps:[t],debounceWait:100}),[i]=v.Form.useForm();return c.useEffect(()=>{if(u.data){const{total:o}=u.data;o>0&&e(o)}},[u.data]),ae(()=>{u.run(s)},[s]),it("REFRESH_TODO",()=>{u.refresh()}),n.jsx(n.Fragment,{children:n.jsxs("section",{children:[n.jsx("header",{children:n.jsxs(v.Form,{form:i,className:"flex flex-row items-center justify-between pb-6 pt-2",children:[n.jsxs("div",{className:"flex flex-row justify-center items-center",children:[n.jsx(v.Form.Item,{className:"mr-4 mb-0",label:"标题",name:"title",colon:!1,children:n.jsx(v.Input,{placeholder:"请输入标题",onChange:o=>i.setFieldsValue({title:o.target.value}),allowClear:!0})}),n.jsx(v.Form.Item,{className:"mr-4 mb-0",label:"发起人",name:"startUser",colon:!1,children:n.jsx(v.Input,{placeholder:"请输入发起人",onChange:o=>i.setFieldsValue({startUser:o.target.value}),allowClear:!0})}),n.jsx(v.Form.Item,{className:"mb-0",label:"接收时间",name:"startTimeRang",colon:!1,children:n.jsx(Jn,{onChange:o=>i.setFieldsValue({startTimeRang:o}),allowClear:!0})})]}),n.jsxs("div",{className:"flex flex-row",children:[n.jsx(v.Button,{type:"primary",className:"mr-2 flex-center border-0",onClick:()=>{i.resetFields(),a(Be),r()},icon:n.jsx("div",{children:n.jsx(Bt,{size:"16"})}),children:"重置"}),n.jsx(v.Button,{type:"primary",className:"flex-center border-0",onClick:()=>{const o=i.getFieldsValue();let f={};o.title&&(f.title=o.title),o.startUser&&(f.startUser=o.startUser),o.startTimeRang&&(f.startTimeRang=o.startTimeRang.map(h=>Ze(h).format("YYYY-MM-DD")).join("_")),a({...Be,...f})},icon:n.jsx("div",{children:n.jsx(Ht,{size:"16"})}),disabled:u.loading,children:"搜索"})]})]})}),n.jsx("div",{className:"bg-white border border-slate-100 h-[451px] min-h-[451px]",children:n.jsxs("table",{className:"w-full overflow-y-auto",children:[n.jsx("thead",{className:"h-[50px]",children:n.jsxs("tr",{className:"bg-[#f5f5f585] text-gray-600 uppercase text-sm leading-normal border-slate-200",children:[n.jsx("th",{className:"py-3 px-6 text-left w-[60%]",children:"标题"}),n.jsx("th",{className:"py-3 px-6 text-left w-[20%]",children:"流程发起人"}),n.jsx("th",{className:"py-3 px-6 text-center w-[20%]",children:"接收时间"})]})}),n.jsx("tbody",{className:"text-gray-600 text-sm font-light",children:u.loading?n.jsx("tr",{className:"h-[400px]",children:n.jsx("td",{colSpan:3,className:"h-[400px]",children:n.jsx("div",{className:"flex-center",children:n.jsxs("svg",{version:"1.1",id:"L2",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",width:30,height:30,viewBox:"0 0 100 100",enableBackground:"new 0 0 100 100",xmlSpace:"preserve",children:[n.jsx("circle",{fill:"none",stroke:"#E2E8F0",strokeWidth:"4",strokeMiterlimit:"10",cx:"50",cy:"50",r:"48"}),n.jsx("line",{fill:"none",strokeLinecap:"round",stroke:"#E2E8F0",strokeWidth:"4",strokeMiterlimit:"10",x1:"50",y1:"50",x2:"85",y2:"50.5",children:n.jsx("animateTransform",{attributeName:"transform",dur:"2s",type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})}),n.jsx("line",{fill:"none",strokeLinecap:"round",stroke:"#E2E8F0",strokeWidth:"4",strokeMiterlimit:"10",x1:"50",y1:"50",x2:"49.5",y2:"74",children:n.jsx("animateTransform",{attributeName:"transform",dur:"15s",type:"rotate",from:"0 50 50",to:"360 50 50",repeatCount:"indefinite"})})]})})})}):u.data?.rows?.length>0?u.data.rows.map((o,f)=>n.jsxs("tr",{className:`border-b border-slate-100 h-[40px] overflow-hidden${f>1&&f%9===0?" border-b-0":""}`,children:[n.jsx("td",{className:"px-6 pl-[15px] text-left whitespace-nowrap h-[40px]",children:n.jsx("div",{className:"flex items-center",children:n.jsx("span",{className:"font-medium hover:cursor-pointer",onClick:()=>{d(`${o.url}`,{state:o.title})},children:o.title})})}),n.jsx("td",{className:"text-left h-[40px]",children:n.jsxs("div",{className:"flex items-center",children:[n.jsx("div",{className:"mr-2",children:n.jsx(ce,{icon:"icon-tongyongleiyonghunan",size:18})}),n.jsxs("span",{children:[o.startUserId," ",o.startUserName]})]})}),n.jsx("td",{className:"text-center h-[40px]",children:n.jsx("span",{children:o.startTime})})]},`toDo_${o.actInstId}`)):n.jsx("tr",{className:"h-[400px]",children:n.jsx("td",{colSpan:3,className:"h-[400px]",children:n.jsx(v.Empty,{className:"w-full",image:v.Empty.PRESENTED_IMAGE_SIMPLE})})})})]})}),n.jsx("div",{className:"mt-4 flex flex-row justify-end",children:n.jsx(v.Pagination,{showSizeChanger:!0,current:u.data?.pageNum||1,total:u.data?.total||0,onChange:(o,f)=>{a({...s,pageNum:o,pageSize:f})}})})]})})}const{Search:Xn}=v.Input,Qn=({selectedKeys:e,onSelectProcDefKey:t,over:r})=>{const[s,a]=c.useState([]),[l,d]=c.useState([]),[u,i]=c.useState(!0),[o,f]=c.useState([]),h=c.useRef([]),m=Q();U(()=>m({url:"/v1/workflow/proc/queryMyProc",method:"get",params:{over:r}}),{manual:!1,refreshDeps:[r],onSuccess:M=>{const j=M.data.map($=>({title:$.name,key:$.key??$.procDefKey??$.procDefId,isLeaf:!$.children||$.children.length===0}));h.current=j,f(j)}});const p=c.useMemo(()=>{const M=[],S=j=>{j.forEach($=>{M.push($),$.children&&S($.children)})};return S(o),M},[o]),g=M=>{a(M),i(!1)},b=M=>{d(M)},C=(M,S)=>{const j=String(S?.node?.key??"");j&&t(j,M)},_=M=>{if(M===""){f(h.current);return}const S=p.filter(j=>j.title.includes(M));f(S)};return n.jsxs("div",{className:"m-3",children:[n.jsx(Xn,{style:{marginBottom:8},placeholder:"搜索流程名称",onSearch:_,allowClear:!0}),n.jsx(v.Tree,{checkable:!1,onExpand:g,expandedKeys:s,autoExpandParent:u,defaultExpandParent:!0,onCheck:b,checkedKeys:l,onSelect:C,selectedKeys:e,treeData:o})]})};function Rn(){const[e,t]=c.useState(0),[r,s]=c.useState("todo"),[a,l]=c.useState({todo:"",done:""}),[d,u]=c.useState({todo:[],done:[]}),i=c.useCallback(h=>{l(m=>({...m,[h]:""})),u(m=>({...m,[h]:[]}))},[]),o=[{key:"todo",icon:n.jsx(ce,{icon:"icon-loading-v",size:16}),title:"我的待办",children:n.jsx(Zn,{setCount:t,procDefKey:a.todo,onResetProcFilter:()=>i("todo")})},{key:"done",icon:n.jsx(ce,{icon:"icon-icon_yiban",size:18}),title:"我的已办",children:n.jsx(Gn,{procDefKey:a.done,onResetProcFilter:()=>i("done")})}],f=({title:h,name:m})=>n.jsx("span",{className:"ml-2",children:m==="todo"&&e>0?n.jsxs("div",{className:"relative",children:[h,n.jsx("span",{className:"rounded-[50%] w-[18px] h-[18px] right-[-20px] top-[-10px] absolute bg-red-500 border flex-center border-white text-white text-[12px]",children:e})]}):h});return n.jsxs(v.Splitter,{className:"!h-full splitter_wrapper relative",children:[n.jsx(v.Splitter.Panel,{defaultSize:"20%",children:n.jsx(Qn,{selectedKeys:d[r],over:r==="todo"?"false":"true",onSelectProcDefKey:(h,m)=>{l(p=>({...p,[r]:h})),u(p=>({...p,[r]:m}))}})}),n.jsx(v.Splitter.Panel,{children:n.jsx(v.Tabs,{className:"p-4 pt-0 w-full",activeKey:r,onChange:h=>s(h),items:o.map((h,m)=>({label:n.jsxs("div",{className:"flex-center",children:[h.icon,n.jsx(f,{title:h.title,name:h.key},h.key)]}),key:h.key,children:n.jsx(n.Fragment,{children:h.children}),forceRender:!0}))})})]})}const es=()=>n.jsx("section",{className:"flex flex-col lg:flex-row w-full",children:n.jsx(Rn,{})}),ts=e=>{const{className:t,setActivePage:r,isActive:s}=e,a=Q(),l=de(),[d,u]=c.useState(!1),[i,o]=c.useState({loginName:"",password:"",phoneNumber:"",smsCode:"",codeValue:"",codeId:""}),[f,h]=c.useState({captchaOnOff:!1,uuid:"",img:""}),m=U(y=>a({url:"v1/system/login/initPwd",method:"post",data:{...y,password:l(y.password)}}),{manual:!0,onSuccess(y){y.code===200?(v.notification.success({message:"重置密码成功,请重新登录"}),r(0)):p.refresh()}}),p=U(()=>a({url:"v1/system/captcha/getCaptchaOn",headers:{Authorization:null},method:"get"}),{manual:!0,onSuccess(y){y.code===200?(h({captchaOnOff:y.data.captchaOnOff,uuid:y.data.uuid,img:y.data.img}),o(E=>({...E,codeId:y.data.uuid}))):v.notification.error({message:"获取验证码失败",description:y.msg})}}),g=U(y=>a({url:"v1/system/login/sendPhoneCode",method:"get",params:y}),{manual:!0,onSuccess(y){y.code===200&&(v.notification.success({message:"发送成功",description:y.msg}),C(!0))}}),[b,C]=c.useState(!1),[_,{dec:M,reset:S}]=kt(60,{min:0,max:60}),j=c.useMemo(()=>n.jsx("div",{className:"absolute right-[0px] bottom-[2px] w-[100px] text-[14px] duration-300 cursor-pointer text-right text-indigo-400 hover:text-blue-500",children:b?n.jsxs("span",{className:"text-gray-500",children:[_,"s"]}):n.jsx(v.Button,{onClick:async()=>{if(!i.loginName){v.notification.warning({message:"请输入账号"});return}if(!i.phoneNumber||i.phoneNumber.length!==11){v.notification.warning({message:"请输入正确的手机号"});return}g.run({loginName:i.loginName,phoneNumber:i.phoneNumber})},type:"link",loading:g.loading,disabled:g.loading,children:"发送验证码"})}),[b,_,i.loginName,g.loading,i.phoneNumber]),$=()=>{i.loginName&&i.password&&i.smsCode&&i.codeValue&&i.phoneNumber?m.runAsync(i):v.notification.error({message:"出错了",description:"请检查输入"})};c.useEffect(()=>{_===0&&(C(!1),S()),b&&setTimeout(()=>{M()},1e3)},[b,_]);const P=c.useCallback(()=>{p.runAsync().then(y=>o(E=>({...E,codeId:y.data.uuid})))},[]);return c.useEffect(()=>{s&&P()},[s]),n.jsxs("div",{className:t,children:[n.jsxs("div",{className:"text-center",children:[n.jsx("h2",{className:"mt-6 text-3xl font-bold text-gray-900",children:"重置密码"}),n.jsx("p",{className:"mt-2 text-sm text-gray-700 font-normal",children:"仅首次登陆需要重置密码"})]}),n.jsx("div",{className:"flex flex-row justify-center items-center space-x-3"}),n.jsxs("form",{className:"mt-8 space-y-6",action:"#",method:"POST",children:[n.jsxs("div",{className:"relative",children:[n.jsxs("label",{className:"ml-3 text-sm font-bold text-gray-700 tracking-wide absolute top-[10px] left-0",children:["账",n.jsx("span",{className:"inline-block w-[13px]"}),"号"]}),n.jsx("input",{className:`
62
+ w-full
63
+ text-base
64
+ px-4
65
+ py-2
66
+ border-b
67
+ border-[rgba(0,0,0,0.55)]
68
+ focus:outline-none
69
+ placeholder:text-gray-400
70
+ bg-[transparent]
71
+ indent-14
72
+ pb-1
73
+ `,value:i.loginName,disabled:b,onChange:y=>o(E=>({...E,loginName:y.target.value})),placeholder:"请输入账号"})]}),n.jsxs("div",{className:"mt-8 relative",children:[n.jsx("label",{className:"ml-3 text-sm font-bold text-gray-700 tracking-wide absolute top-[10px] left-0",children:"新密码"}),n.jsx("input",{className:`
74
+ w-full
75
+ content-center
76
+ text-base
77
+ px-4
78
+ py-2
79
+ border-b
80
+ border-[rgba(0,0,0,0.55)]
81
+ focus:outline-none
82
+ placeholder:text-gray-400
83
+ bg-[transparent]
84
+ pl-[72px]
85
+ pb-1
86
+ pr-[40px]
87
+ `,value:i.password,onChange:y=>o(E=>({...E,password:y.target.value})),type:d?"text":"password",placeholder:"请设置登录密码"}),n.jsx("div",{className:"absolute right-[10px] bottom-[5px] cursor-pointer",onClick:()=>u(!d),children:d?n.jsx("svg",{className:"icon text-[20px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4595",width:"50",height:"50",children:n.jsx("path",{d:"M912.8 656.2c-11.8 9.8-30.8 8.4-41.1-2.8-1.5-1.4-171.8-186-359.8-186-193.9 0-356.9 183.3-358.4 184.7-10.3 12.6-27.9 15.4-41.1 5.6-11.8-9.8-14.7-26.6-5.9-39.2 0 0 35.2-40.5 95.6-82.5l-74.9-74.2c-10.2-11.2-10.2-28 1.5-39.2 5.8-5.6 13.2-8.4 20.5-8.4 7.3 0 14.6 2.8 20.5 8.4L249 501c38.1-25.3 83.7-49 133.6-65.8l-30.8-97.8c-4.4-15.4 4.4-30.8 20.5-35 1.4-1.4 4.4-1.4 7.3-1.4 11.8 0 25 8.4 27.9 21l30.8 97.9c23.5-4.2 48.5-7 73.5-7s50 2.8 73.5 7l30.8-99.3c3-12.6 14.7-21 27.9-21h8.8c16.1 4.2 24.9 19.6 20.5 35l-30.8 99.1c49.9 16.8 95.5 40.6 133.6 65.8l80.8-79.7c5.8-5.6 13.2-8.4 20.5-8.4 7.3 0 14.7 2.8 17.6 8.4 11.8 9.8 13.2 28 1.5 39.2l-74.8 74.2c55.8 41.9 91.1 79.7 94 83.9 10.3 11.2 8.8 29.3-2.9 39.1z m-360.7-76.1c25.1 13.8 40.6 39.4 40.6 67s-15.5 53.2-40.6 67-56.1 13.8-81.2 0-40.6-39.3-40.6-67c0-27.6 15.5-53.2 40.6-67 25.1-13.9 56-13.9 81.2 0z","p-id":"4596"})}):n.jsx("svg",{className:"icon text-[20px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3107",width:"50",height:"50",children:n.jsx("path",{d:"M144.457143 379.465143c49.005714 95.670857 196.900571 164.571429 367.908571 164.571428 170.203429 0 317.659429-68.388571 367.250286-163.547428a31.670857 31.670857 0 0 1 41.910857-13.385143c15.36 7.533714 21.504 25.6 13.824 40.594286-23.478857 45.056-62.756571 84.406857-112.932571 115.785143l50.468571 97.718857 1.170286 2.633143a29.842286 29.842286 0 0 1-15.140572 37.888 31.670857 31.670857 0 0 1-41.837714-13.531429l-49.371428-95.597714c-37.522286 16.822857-76.8 29.403429-117.028572 37.741714l17.115429 99.84 0.365714 2.925714c1.097143 15.36-10.020571 29.257143-25.965714 31.817143a31.085714 31.085714 0 0 1-35.913143-24.868571l-17.188572-99.84a689.005714 689.005714 0 0 1-153.6 0L418.377143 699.977143a31.085714 31.085714 0 0 1-35.84 24.868571 30.427429 30.427429 0 0 1-26.038857-31.890285l0.365714-2.925715 17.188571-99.766857a570.294857 570.294857 0 0 1-117.101714-37.741714l-49.298286 95.597714a31.670857 31.670857 0 0 1-41.837714 13.531429 29.842286 29.842286 0 0 1-15.140571-37.888l1.170285-2.706286 50.468572-97.645714C151.405714 491.739429 111.908571 451.949714 88.502857 406.308571a29.769143 29.769143 0 0 1 14.043429-40.448 31.670857 31.670857 0 0 1 41.837714 13.604572z","p-id":"3108"})})})]}),n.jsxs("div",{className:"mt-8 relative",children:[n.jsx("label",{className:"ml-3 text-sm font-bold text-gray-700 tracking-wide absolute top-[10px] left-0",children:"手机号"}),n.jsx("input",{maxLength:11,disabled:b,className:`
88
+ w-full
89
+ content-center
90
+ text-base
91
+ px-4
92
+ py-2
93
+ border-b
94
+ border-[rgba(0,0,0,0.55)]
95
+ focus:outline-none
96
+ placeholder:text-gray-400
97
+ bg-[transparent]
98
+ disabled:opacity-50
99
+ indent-14
100
+ pb-1
101
+ `,value:i.phoneNumber,onChange:y=>{o(E=>({...E,phoneNumber:y.target.value}))},placeholder:"请输入手机号码"}),j]}),n.jsxs("div",{className:"mt-8 relative",children:[n.jsx("label",{className:"ml-3 text-sm font-bold text-gray-700 tracking-wide absolute top-[10px] left-0",children:"短信码"}),n.jsx("input",{maxLength:6,className:`
102
+ w-full
103
+ content-center
104
+ text-base
105
+ px-4
106
+ py-2
107
+ border-b
108
+ border-[rgba(0,0,0,0.55)]
109
+ focus:outline-none
110
+ placeholder:text-gray-400
111
+ bg-[transparent]
112
+ indent-14
113
+ pb-1
114
+ `,value:i.smsCode,onChange:y=>o(E=>({...E,smsCode:y.target.value})),placeholder:"请输入短信验证码"})]}),n.jsxs("div",{className:"mt-8 relative",children:[n.jsx("label",{className:"ml-3 text-sm font-bold text-gray-700 tracking-wide absolute top-[10px] left-0",children:"验证码"}),n.jsxs(v.Space.Compact,{block:!0,children:[n.jsx("input",{className:`
115
+ w-full
116
+ content-center
117
+ text-base
118
+ px-4
119
+ py-2
120
+ border-b
121
+ border-[rgba(0,0,0,0.55)]
122
+ focus:outline-none
123
+ placeholder:text-gray-400
124
+ bg-[transparent]
125
+ indent-14
126
+ pb-1
127
+ `,value:i.codeValue,onChange:y=>o(E=>({...E,codeValue:y.target.value})),type:"text",placeholder:"请输入验证码"}),n.jsx("img",{src:"data:image/gif;base64,"+f.img,style:{width:110,height:40,borderBottom:"1px solid rgba(0,0,0,0.55)"},onClick:P})]})]}),n.jsx("div",{children:n.jsx("button",{type:"button",className:`
128
+ w-full
129
+ flex
130
+ justify-center
131
+ !bg-gradient-to-r
132
+ from-indigo-500
133
+ to-blue-600
134
+ hover:bg-gradient-to-l
135
+ hover:from-blue-500
136
+ hover:to-indigo-600
137
+ text-gray-100
138
+ p-4
139
+ rounded-full
140
+ tracking-wide
141
+ font-semibold
142
+ shadow-lg
143
+ cursor-pointer
144
+ transition
145
+ ease-in
146
+ duration-500
147
+ mt-[30px]
148
+ ${m.loading?"opacity-50":"opacity-100"}
149
+ `,disabled:m.loading,onClick:$,children:"重 置 密 码"})}),n.jsxs("p",{className:`
150
+ items-center
151
+ justify-center
152
+ mt-10
153
+ text-center text-md text-gray-500
154
+ `,children:[n.jsx("span",{children:"已完成重置?"}),n.jsx("span",{className:`
155
+ text-indigo-400
156
+ hover:text-blue-500
157
+ no-underline
158
+ cursor-pointer
159
+ transition
160
+ ease-in
161
+ duration-300
162
+ `,onClick:()=>r(0),children:"去登录"})]})]})]})},rs=e=>{const{className:t,setActivePage:r,isActive:s}=e,a=Q(),l=de(),[d,u]=c.useState(!1),[i,o]=c.useState({loginName:"",password:"",phoneNumber:"",smsCode:"",codeValue:"",codeId:""}),[f,h]=c.useState({captchaOnOff:!1,uuid:"",img:""}),m=U(y=>a({url:"v1/system/login/initPwd",method:"post",data:{...y,password:l(y.password)}}),{manual:!0,onSuccess(y){y.code===200?(v.notification.success({message:"更改密码成功,请重新登录"}),r(0)):g.refresh()}}),p=U(y=>a({url:"v1/system/login/sendPhoneCode",method:"get",params:y}),{manual:!0,onSuccess(y){y.code===200&&(v.notification.success({message:"发送成功",description:y.msg}),C(!0))}}),g=U(()=>a({url:"v1/system/captcha/getCaptchaOn",headers:{Authorization:null},method:"get"}),{manual:!0,onSuccess(y){y.code===200?(h({captchaOnOff:y.data.captchaOnOff,uuid:y.data.uuid,img:y.data.img}),o(E=>({...E,codeId:y.data.uuid}))):v.notification.error({message:"获取验证码失败",description:y.msg})}}),[b,C]=c.useState(!1),[_,{dec:M,reset:S}]=kt(60,{min:0,max:60}),j=c.useMemo(()=>n.jsx("div",{className:"absolute right-[0px] bottom-[2px] w-[100px] text-[14px] duration-300 cursor-pointer text-right text-indigo-400 hover:text-blue-500",children:b?n.jsxs("span",{className:"text-gray-500",children:[_,"s"]}):n.jsx(v.Button,{onClick:async()=>{if(!i.loginName){v.notification.warning({message:"请输入账号"});return}if(!i.phoneNumber||i.phoneNumber.length!==11){v.notification.warning({message:"请输入正确的手机号"});return}p.run({loginName:i.loginName,phoneNumber:i.phoneNumber})},type:"link",loading:p.loading,disabled:p.loading,children:"发送验证码"})}),[b,_,i.loginName,p.loading,i.phoneNumber]),$=()=>{i.loginName&&i.password&&i.smsCode&&i.codeValue&&i.phoneNumber?m.run(i):v.notification.error({message:"出错了",description:"请检查输入"})};c.useEffect(()=>{_===0&&(C(!1),S()),b&&setTimeout(()=>{M()},1e3)},[b,_]);const P=c.useCallback(()=>{g.runAsync().then(y=>o(E=>({...E,codeId:y.data.uuid})))},[]);return c.useEffect(()=>{s&&P()},[s]),n.jsxs("div",{className:t,children:[n.jsx("div",{className:"text-center",children:n.jsx("h2",{className:"mt-6 text-3xl font-bold text-gray-900",children:"更改密码"})}),n.jsx("div",{className:"flex flex-row justify-center items-center space-x-3"}),n.jsxs("form",{className:"mt-8 space-y-6",action:"#",method:"POST",children:[n.jsxs("div",{className:"relative",children:[n.jsxs("label",{className:"ml-3 text-sm font-bold text-gray-700 tracking-wide absolute top-[10px] left-0",children:["账",n.jsx("span",{className:"inline-block w-[13px]"}),"号"]}),n.jsx("input",{className:`
163
+ w-full
164
+ text-base
165
+ px-4
166
+ py-2
167
+ border-b
168
+ border-[rgba(0,0,0,0.55)]
169
+ focus:outline-none
170
+ placeholder:text-gray-400
171
+ bg-[transparent]
172
+ indent-14
173
+ pb-1
174
+ `,value:i.loginName,disabled:b,onChange:y=>o(E=>({...E,loginName:y.target.value})),placeholder:"请输入账号"})]}),n.jsxs("div",{className:"mt-8 relative",children:[n.jsx("label",{className:"ml-3 text-sm font-bold text-gray-700 tracking-wide absolute top-[10px] left-0",children:"新密码"}),n.jsx("input",{className:`
175
+ w-full
176
+ content-center
177
+ text-base
178
+ px-4
179
+ py-2
180
+ border-b
181
+ border-[rgba(0,0,0,0.55)]
182
+ focus:outline-none
183
+ placeholder:text-gray-400
184
+ bg-[transparent]
185
+ pl-[72px]
186
+ pb-1
187
+ pr-[40px]
188
+ `,value:i.password,onChange:y=>o(E=>({...E,password:y.target.value})),type:d?"text":"password",placeholder:"请设置登录密码"}),n.jsx("div",{className:"absolute right-[10px] bottom-[5px] cursor-pointer",onClick:()=>u(!d),children:d?n.jsx("svg",{className:"icon text-[20px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4595",width:"50",height:"50",children:n.jsx("path",{d:"M912.8 656.2c-11.8 9.8-30.8 8.4-41.1-2.8-1.5-1.4-171.8-186-359.8-186-193.9 0-356.9 183.3-358.4 184.7-10.3 12.6-27.9 15.4-41.1 5.6-11.8-9.8-14.7-26.6-5.9-39.2 0 0 35.2-40.5 95.6-82.5l-74.9-74.2c-10.2-11.2-10.2-28 1.5-39.2 5.8-5.6 13.2-8.4 20.5-8.4 7.3 0 14.6 2.8 20.5 8.4L249 501c38.1-25.3 83.7-49 133.6-65.8l-30.8-97.8c-4.4-15.4 4.4-30.8 20.5-35 1.4-1.4 4.4-1.4 7.3-1.4 11.8 0 25 8.4 27.9 21l30.8 97.9c23.5-4.2 48.5-7 73.5-7s50 2.8 73.5 7l30.8-99.3c3-12.6 14.7-21 27.9-21h8.8c16.1 4.2 24.9 19.6 20.5 35l-30.8 99.1c49.9 16.8 95.5 40.6 133.6 65.8l80.8-79.7c5.8-5.6 13.2-8.4 20.5-8.4 7.3 0 14.7 2.8 17.6 8.4 11.8 9.8 13.2 28 1.5 39.2l-74.8 74.2c55.8 41.9 91.1 79.7 94 83.9 10.3 11.2 8.8 29.3-2.9 39.1z m-360.7-76.1c25.1 13.8 40.6 39.4 40.6 67s-15.5 53.2-40.6 67-56.1 13.8-81.2 0-40.6-39.3-40.6-67c0-27.6 15.5-53.2 40.6-67 25.1-13.9 56-13.9 81.2 0z","p-id":"4596"})}):n.jsx("svg",{className:"icon text-[20px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3107",width:"50",height:"50",children:n.jsx("path",{d:"M144.457143 379.465143c49.005714 95.670857 196.900571 164.571429 367.908571 164.571428 170.203429 0 317.659429-68.388571 367.250286-163.547428a31.670857 31.670857 0 0 1 41.910857-13.385143c15.36 7.533714 21.504 25.6 13.824 40.594286-23.478857 45.056-62.756571 84.406857-112.932571 115.785143l50.468571 97.718857 1.170286 2.633143a29.842286 29.842286 0 0 1-15.140572 37.888 31.670857 31.670857 0 0 1-41.837714-13.531429l-49.371428-95.597714c-37.522286 16.822857-76.8 29.403429-117.028572 37.741714l17.115429 99.84 0.365714 2.925714c1.097143 15.36-10.020571 29.257143-25.965714 31.817143a31.085714 31.085714 0 0 1-35.913143-24.868571l-17.188572-99.84a689.005714 689.005714 0 0 1-153.6 0L418.377143 699.977143a31.085714 31.085714 0 0 1-35.84 24.868571 30.427429 30.427429 0 0 1-26.038857-31.890285l0.365714-2.925715 17.188571-99.766857a570.294857 570.294857 0 0 1-117.101714-37.741714l-49.298286 95.597714a31.670857 31.670857 0 0 1-41.837714 13.531429 29.842286 29.842286 0 0 1-15.140571-37.888l1.170285-2.706286 50.468572-97.645714C151.405714 491.739429 111.908571 451.949714 88.502857 406.308571a29.769143 29.769143 0 0 1 14.043429-40.448 31.670857 31.670857 0 0 1 41.837714 13.604572z","p-id":"3108"})})})]}),n.jsxs("div",{className:"mt-8 relative",children:[n.jsx("label",{className:"ml-3 text-sm font-bold text-gray-700 tracking-wide absolute top-[10px] left-0",children:"手机号"}),n.jsx("input",{maxLength:11,disabled:b,className:`
189
+ w-full
190
+ content-center
191
+ text-base
192
+ px-4
193
+ py-2
194
+ border-b
195
+ border-[rgba(0,0,0,0.55)]
196
+ focus:outline-none
197
+ placeholder:text-gray-400
198
+ bg-[transparent]
199
+ disabled:opacity-50
200
+ indent-14
201
+ pb-1
202
+ `,value:i.phoneNumber,onChange:y=>{o(E=>({...E,phoneNumber:y.target.value}))},placeholder:"请输入手机号码"}),j]}),n.jsxs("div",{className:"mt-8 relative",children:[n.jsx("label",{className:"ml-3 text-sm font-bold text-gray-700 tracking-wide absolute top-[10px] left-0",children:"短信码"}),n.jsx("input",{maxLength:6,className:`
203
+ w-full
204
+ content-center
205
+ text-base
206
+ px-4
207
+ py-2
208
+ border-b
209
+ border-[rgba(0,0,0,0.55)]
210
+ focus:outline-none
211
+ placeholder:text-gray-400
212
+ bg-[transparent]
213
+ indent-14
214
+ pb-1
215
+ `,value:i.smsCode,onChange:y=>o(E=>({...E,smsCode:y.target.value})),placeholder:"请输入短信验证码"})]}),n.jsxs("div",{className:"mt-8 relative",children:[n.jsx("label",{className:"ml-3 text-sm font-bold text-gray-700 tracking-wide absolute top-[10px] left-0",children:"验证码"}),n.jsxs(v.Space.Compact,{block:!0,children:[n.jsx("input",{className:`
216
+ w-full
217
+ content-center
218
+ text-base
219
+ px-4
220
+ py-2
221
+ border-b
222
+ border-[rgba(0,0,0,0.55)]
223
+ focus:outline-none
224
+ placeholder:text-gray-400
225
+ bg-[transparent]
226
+ indent-14
227
+ pb-1
228
+ `,value:i.codeValue,onChange:y=>o(E=>({...E,codeValue:y.target.value})),type:"text",placeholder:"请输入验证码"}),n.jsx("img",{src:"data:image/gif;base64,"+f.img,style:{width:110,height:40,borderBottom:"1px solid rgba(0,0,0,0.55)"},onClick:P})]})]}),n.jsx("div",{children:n.jsx("button",{type:"button",className:`
229
+ w-full
230
+ flex
231
+ justify-center
232
+ !bg-gradient-to-r
233
+ from-indigo-500
234
+ to-blue-600
235
+ hover:bg-gradient-to-l
236
+ hover:from-blue-500
237
+ hover:to-indigo-600
238
+ text-gray-100
239
+ p-4
240
+ rounded-full
241
+ tracking-wide
242
+ font-semibold
243
+ shadow-lg
244
+ cursor-pointer
245
+ transition
246
+ ease-in
247
+ duration-500
248
+ ${m.loading?"opacity-50":"opacity-100"}
249
+ `,disabled:m.loading,onClick:$,children:"更 改 密 码"})}),n.jsx("div",{className:`
250
+ flex-center
251
+ mt-10
252
+ text-center text-md text-gray-500
253
+ `,children:n.jsxs("div",{className:`
254
+ text-indigo-400
255
+ hover:text-blue-500
256
+ no-underline
257
+ cursor-pointer
258
+ transition
259
+ ease-in
260
+ duration-300
261
+ relative
262
+ `,onClick:()=>r(0),children:["返回登录",n.jsx("div",{className:"absolute right-[-40px] top-[1px]",children:n.jsx(ce,{icon:"icon-fanhui",size:20,className:"animate-back"})})]})})]})]})},ns=c.forwardRef(function(t,r){const{user:s,setUser:a,remember:l,setRemember:d,loginReq:u,setActivePage:i}=t,o=ot(),f=Q(),h=We(),[m,p]=c.useState(!1),g=async S=>{S.key==="Enter"&&(await u.runAsync(s)).code!==200&&await M.refresh()},[b,C]=c.useState({captchaOnOff:!1,uuid:"",img:""}),_=c.useRef(null),M=U(()=>f({url:"v1/system/captcha",headers:{Authorization:null}}),{onSuccess(S){S.code===200&&(C(S.data),S.data.captchaOnOff&&a(j=>({...j,uuid:S.data.uuid})))}});return c.useImperativeHandle(r,()=>({refreshCode:M.refresh}),[]),c.useEffect(()=>(_.current?.addEventListener("keydown",g),()=>{_.current?.removeEventListener("keydown",g)}),[s]),n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"text-center flex-center flex-col",children:n.jsx("h2",{className:"mt-6 text-3xl font-bold text-gray-900",children:h.appCnName})}),n.jsxs("div",{className:"flex items-center justify-center space-x-2",children:[n.jsx("span",{className:"h-px w-16 bg-gray-700"}),n.jsx("span",{className:"text-gray-700 font-normal",children:"使用账号密码登录"}),n.jsx("span",{className:"h-px w-16 bg-gray-700"})]}),n.jsxs("form",{className:"mt-8 space-y-6",action:"#",method:"POST",ref:_,children:[n.jsx("input",{type:"hidden",name:"remember",value:"true"}),n.jsxs("div",{className:"relative",children:[n.jsx("label",{className:"ml-3 text-sm font-bold text-gray-900 tracking-wide",children:"账号"}),n.jsx("input",{className:"w-full text-base px-4 py-2 border-b border-black focus:outline-none placeholder:text-gray-400 bg-[transparent]",value:s.username,onChange:S=>a(j=>({...j,username:S.target.value})),placeholder:"请输入账号"})]}),n.jsxs("div",{className:"mt-8 content-center relative",children:[n.jsx("label",{className:"ml-3 text-sm font-bold text-gray-900 tracking-wide",children:"密码"}),n.jsx("input",{className:"w-full content-center text-base px-4 py-2 border-b border-black focus:outline-none placeholder:text-gray-400 bg-[transparent] pr-[50px]",type:m?"text":"password",value:s.password,onChange:S=>a(j=>({...j,password:S.target.value})),placeholder:"请输入密码"}),n.jsx("div",{className:"absolute right-2 bottom-3 cursor-pointer",onClick:()=>p(!m),children:m?n.jsx("svg",{className:"icon text-[20px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"4595",width:"50",height:"50",children:n.jsx("path",{d:"M912.8 656.2c-11.8 9.8-30.8 8.4-41.1-2.8-1.5-1.4-171.8-186-359.8-186-193.9 0-356.9 183.3-358.4 184.7-10.3 12.6-27.9 15.4-41.1 5.6-11.8-9.8-14.7-26.6-5.9-39.2 0 0 35.2-40.5 95.6-82.5l-74.9-74.2c-10.2-11.2-10.2-28 1.5-39.2 5.8-5.6 13.2-8.4 20.5-8.4 7.3 0 14.6 2.8 20.5 8.4L249 501c38.1-25.3 83.7-49 133.6-65.8l-30.8-97.8c-4.4-15.4 4.4-30.8 20.5-35 1.4-1.4 4.4-1.4 7.3-1.4 11.8 0 25 8.4 27.9 21l30.8 97.9c23.5-4.2 48.5-7 73.5-7s50 2.8 73.5 7l30.8-99.3c3-12.6 14.7-21 27.9-21h8.8c16.1 4.2 24.9 19.6 20.5 35l-30.8 99.1c49.9 16.8 95.5 40.6 133.6 65.8l80.8-79.7c5.8-5.6 13.2-8.4 20.5-8.4 7.3 0 14.7 2.8 17.6 8.4 11.8 9.8 13.2 28 1.5 39.2l-74.8 74.2c55.8 41.9 91.1 79.7 94 83.9 10.3 11.2 8.8 29.3-2.9 39.1z m-360.7-76.1c25.1 13.8 40.6 39.4 40.6 67s-15.5 53.2-40.6 67-56.1 13.8-81.2 0-40.6-39.3-40.6-67c0-27.6 15.5-53.2 40.6-67 25.1-13.9 56-13.9 81.2 0z","p-id":"4596"})}):n.jsx("svg",{className:"icon text-[20px]",viewBox:"0 0 1024 1024",version:"1.1",xmlns:"http://www.w3.org/2000/svg","p-id":"3107",width:"50",height:"50",children:n.jsx("path",{d:"M144.457143 379.465143c49.005714 95.670857 196.900571 164.571429 367.908571 164.571428 170.203429 0 317.659429-68.388571 367.250286-163.547428a31.670857 31.670857 0 0 1 41.910857-13.385143c15.36 7.533714 21.504 25.6 13.824 40.594286-23.478857 45.056-62.756571 84.406857-112.932571 115.785143l50.468571 97.718857 1.170286 2.633143a29.842286 29.842286 0 0 1-15.140572 37.888 31.670857 31.670857 0 0 1-41.837714-13.531429l-49.371428-95.597714c-37.522286 16.822857-76.8 29.403429-117.028572 37.741714l17.115429 99.84 0.365714 2.925714c1.097143 15.36-10.020571 29.257143-25.965714 31.817143a31.085714 31.085714 0 0 1-35.913143-24.868571l-17.188572-99.84a689.005714 689.005714 0 0 1-153.6 0L418.377143 699.977143a31.085714 31.085714 0 0 1-35.84 24.868571 30.427429 30.427429 0 0 1-26.038857-31.890285l0.365714-2.925715 17.188571-99.766857a570.294857 570.294857 0 0 1-117.101714-37.741714l-49.298286 95.597714a31.670857 31.670857 0 0 1-41.837714 13.531429 29.842286 29.842286 0 0 1-15.140571-37.888l1.170285-2.706286 50.468572-97.645714C151.405714 491.739429 111.908571 451.949714 88.502857 406.308571a29.769143 29.769143 0 0 1 14.043429-40.448 31.670857 31.670857 0 0 1 41.837714 13.604572z","p-id":"3108"})})})]}),b.captchaOnOff&&o.needCode.get()&&n.jsxs("div",{className:"mt-8 content-center",children:[n.jsx("label",{className:"ml-3 text-sm font-bold text-gray-900 tracking-wide",children:"验证码"}),n.jsxs(v.Space.Compact,{block:!0,children:[n.jsx("input",{className:"w-full content-center text-base px-4 py-2 border-b border-black focus:outline-none placeholder:text-gray-400 bg-[transparent]",value:s.code,onChange:S=>a(j=>({...j,code:S.target.value})),placeholder:"请输入密码"}),n.jsx("img",{src:"data:image/gif;base64,"+b.img,style:{width:110,height:41,borderBottom:"1px solid #000000"},onClick:M.refresh})]})]}),n.jsxs("div",{className:"flex items-center justify-between",children:[n.jsxs("div",{className:"flex items-center cursor-pointer",children:[n.jsx("input",{id:"remember_me",name:"remember_me",type:"checkbox",checked:l,onChange:S=>d(S.target.checked),className:"h-4 w-4 bg-blue-500 focus:ring-blue-400 border-gray-300 rounded"}),n.jsx("label",{htmlFor:"remember_me",className:"ml-2 block text-sm text-gray-900",children:"记住我"})]}),n.jsx("div",{className:"text-sm",children:n.jsx("span",{className:"text-indigo-400 hover:text-blue-500 cursor-pointer",onClick:()=>i(1),children:"忘记密码?"})})]}),n.jsx("div",{children:n.jsx("button",{type:"button",className:`
263
+ w-full
264
+ flex
265
+ justify-center
266
+ !bg-gradient-to-r
267
+ from-indigo-500
268
+ to-blue-600
269
+ hover:bg-gradient-to-l
270
+ hover:from-blue-500
271
+ hover:to-indigo-600
272
+ text-gray-100
273
+ p-4
274
+ rounded-full
275
+ tracking-wide
276
+ font-semibold
277
+ shadow-lg
278
+ cursor-pointer
279
+ transition
280
+ ease-in
281
+ duration-500
282
+ ${u.loading?"opacity-50":"opacity-100"}
283
+ `,disabled:u.loading,onClick:async()=>{(await u.runAsync(s)).code!==200&&await M.refresh()},children:"登 录"})}),n.jsxs("p",{className:`
284
+ items-center
285
+ justify-center
286
+ mt-10
287
+ text-center text-md text-gray-700
288
+ `,children:[n.jsx("span",{children:"密码未设置?"}),n.jsx("span",{className:`
289
+ text-indigo-400
290
+ hover:text-blue-500
291
+ no-underline
292
+ cursor-pointer
293
+ transition
294
+ ease-in
295
+ duration-300
296
+ `,onClick:()=>i(-1),children:"重置密码"})]})]})]})});function ss(e){const{open:t,onClose:r}=e,[s]=v.Form.useForm(),a=Q(),l=de(),d=U(u=>a({url:"v1/system/user/profile/updatePwd",params:{newPassword:l(u.newPassword)},method:"post"}),{manual:!0,onSuccess:u=>{u.code===200?(v.notification.success({message:"修改成功",description:"请重新登录"}),r()):v.notification.error({message:"获取验证码失败",description:u.msg})}});return n.jsxs(v.Modal,{centered:!0,title:n.jsx("span",{className:"text-[16px] font-bold leading-[20px] text-[#292929]",children:"尊敬的用户:"}),open:t,width:500,onCancel:()=>null,onOk:r,closable:!1,footer:null,forceRender:!0,children:[n.jsx("div",{className:"text-[14px] text-[#4d4d4d] mt-3 mb-6",children:"您已经长时间未修改密码,为了您的账号安全,请及时修改密码"}),n.jsxs(v.Form,{form:s,labelCol:{span:6},style:{width:"96%"},initialValues:{userName:"admin",password:"123456"},onFinish:d.run,autoComplete:"off",children:[n.jsx(v.Form.Item,{label:"新密码",name:"newPassword",rules:[{required:!0,message:"请输入新密码!"}],children:n.jsx(v.Input.Password,{})}),n.jsx(v.Form.Item,{label:"新密码确认",dependencies:["newPassword"],name:"confirmPassword",rules:[{required:!0,message:"请再次输入新密码进行确认!"},({getFieldValue:u})=>({validator(i,o){return!o||u("newPassword")===o?Promise.resolve():Promise.reject(new Error("两次密码不匹配!"))}})],children:n.jsx(v.Input.Password,{})}),n.jsx(v.Form.Item,{className:"flex justify-end",children:n.jsx(v.Button,{type:"primary",htmlType:"submit",loading:d.loading,children:"修改密码"})})]})]})}const as=()=>{const{userReq:e,menuReq:t}=at(),r=ot(),s=Q(),a=de(),l=pe.useNavigate(),[d,u]=c.useState(!1),[i,o]=c.useState(r.rememberMe.get),[f,h]=c.useState({username:"",password:"",code:"",uuid:"",openCode:!1}),m=c.useRef(null),[p,g]=c.useState(0),b=U(()=>s({url:"v1/system/captcha",headers:{Authorization:null}}),{manual:!0}),C=U(()=>s({url:"v1/system/login/validPasswordExpired",method:"post"}),{manual:!0}),_=U(async M=>{const S=r.needCode.get();let j={data:{uuid:void 0}};return S||(j=await b.runAsync()),s({url:"v1/system/login",method:"post",headers:{Authorization:null},data:{...M,openCode:S,password:a(M.password),code:S?f.code:a(`${f.username}_ENCRYPT_${j.data.uuid}`),uuid:j.data.uuid??f.uuid}})},{manual:!0,async onSuccess(M){if(M.code===10603){g(-1);return}if(M.code!==200){r.needCode.set(!0);return}if(i&&r.rememberInfo.set({username:f.username,password:f.password}),!M.data)return;r.token.set(M.data);const S=await C.runAsync().catch(()=>null);if(S?.code===200&&S?.data===!1){u(!0);return}r.needCode.set(!1),l("/home",{replace:!0}),(async()=>{try{const $=await e.refreshAsync();$.code===200&&r.user.set({userId:$.data.user.userName,userName:$.data.user.nickName,deptId:$.data.user.dept.id,deptName:$.data.user.dept.deptName,phone:$.data.user.phonenumber,permissions:$.data.permissions,roles:$.data.roleNames,rolePermis:JSON.stringify($.data.rolePermis)})}catch{}try{await t.runAsync()}catch{}})()},onError(){}});return ae(()=>{r.rememberMe.set(i)},[i]),c.useEffect(()=>{r.rememberMe.get()&&h(r.rememberInfo.get)},[]),n.jsxs(n.Fragment,{children:[n.jsx("div",{className:"w-full h-screen bg-cover bg-center bg-[url('/src/assets/images/bg.webp')] relative after:absolute after:w-full after:h-full after:left-0 after:top-0 after:bg-[rgba(0,0,0,0.5)] after:z-[1]",children:n.jsxs("div",{className:"relative flex-center flex w-full h-full",children:[n.jsx("div",{className:`backdrop-opacity-30 backdrop-invert bg-white/80 shadow-xl rounded-2xl p-[50px] max-w-md w-full mx-auto space-y-8 absolute t-0 l-0 duration-300 ${p===0?"opacity-100 z-10":"opacity-0 z-0"}`,children:n.jsx(ns,{user:f,setUser:h,remember:i,setRemember:o,loginReq:_,setActivePage:g,ref:m})}),n.jsx("div",{className:`backdrop-opacity-10 backdrop-invert bg-white/80 shadow-xl rounded-2xl p-[50px] absolute t-0 l-0 max-w-md w-full mx-auto space-y-8 duration-300 ${p===-1?"opacity-100 z-10":"opacity-0 z-0"}`,children:n.jsx(ts,{setActivePage:g,isActive:p===-1})}),n.jsx("div",{className:`backdrop-opacity-10 backdrop-invert bg-white/80 shadow-xl rounded-2xl p-[50px] absolute t-0 l-0 max-w-md w-full mx-auto space-y-8 duration-300 ${p===1?"opacity-100 z-10":"opacity-0 z-0"}`,children:n.jsx(rs,{setActivePage:g,isActive:p===1})})]})}),n.jsx(ss,{open:d,onClose:()=>{u(!1),m.current.refreshCode(),h(M=>({...M,password:"",code:""}))}}),n.jsx(v.Spin,{spinning:_.loading,fullscreen:!0})]})},qe=({title:e,content:t})=>n.jsxs("section",{className:"flex my-2.5 items-center",children:[n.jsxs("div",{className:"shrink-0 w-28 mr-2 text-right text-gray-700 font-light",children:[e,":"]}),n.jsx("div",{className:"font-mono text-lg",children:t})]}),os=()=>{const{user:e,userReq:t}=at(),r=Q(),s=de(),[a]=v.Form.useForm(),l=pe.useNavigate();c.useEffect(()=>{a.setFieldValue("jobNumber",e.userId)},[a,e.userId]);const d=U(u=>r({url:"v1/system/user/profile/updatePwd",method:"post",params:{newPassword:s(u.newPassword)}}),{manual:!0,async onSuccess(u){u.code===200&&(v.notification.success({message:"瀵嗙爜淇敼鎴愬姛",description:"鍗冲皢閲嶆柊鐧诲綍"}),await Vt.sleep(3e3),l("/login"))}});return n.jsxs("section",{className:"py-4 px-4",children:[n.jsx(v.Divider,{}),n.jsx("header",{className:"mb-4 text-lg",children:"涓汉淇℃伅"}),n.jsx(qe,{title:"濮撳悕",content:e.userName}),n.jsx(qe,{title:"账号",content:e.userId}),n.jsx(qe,{title:"手机号",content:e.phone}),n.jsx(qe,{title:"瑙掕壊",content:e.roles}),n.jsx(v.Divider,{}),n.jsxs("section",{className:"flex flex-col",children:[n.jsx("header",{className:"mb-4 text-lg",children:"閲嶇疆瀵嗙爜"}),n.jsxs(v.Form,{form:a,labelCol:{span:6},style:{width:400},onFinish:d.runAsync,autoComplete:"off",children:[n.jsx(v.Form.Item,{label:"鐢ㄦ埛",name:"jobNumber",hidden:!0,children:n.jsx(v.Input,{disabled:!0})}),n.jsx(v.Form.Item,{label:"新密码",name:"newPassword",rules:[{required:!0,message:"请输入新密码"}],children:n.jsx(v.Input.Password,{})}),n.jsx(v.Form.Item,{label:"确认新密码",dependencies:["newPassword"],name:"confirmPassword",rules:[{required:!0,message:"请再次输入新密码进行确认"},({getFieldValue:u})=>({validator(i,o){return!o||u("newPassword")===o?Promise.resolve():Promise.reject(new Error("两次密码不匹配"))}})],children:n.jsx(v.Input.Password,{})}),n.jsx(v.Form.Item,{className:"flex justify-end",children:n.jsx(v.Button,{type:"primary",htmlType:"submit",loading:d.loading,children:"閲嶇疆瀵嗙爜"})})]})]}),n.jsx(v.Button,{type:"default",className:"bg-white shadow-lg fixed bottom-6 right-6 flex-shrink-0 flex items-center border border-gray-200 text-gray-600 w-12 h-12 rounded-full flex-center",onClick:()=>t.refresh(),children:n.jsx(Kn,{theme:"outline",size:"24",className:t.loading?"animate-spin":""})})]})};function is(){const e=We();return n.jsx(ct.Page,{context:e,type:"flow"})}function ls(){const e=We();return n.jsx(ct.Page,{context:e})}L.EmptyMask=Zt,L.ErrorBoundary=Jt,L.FormItemHoc=Fn,L.Home=es,L.Iconfont=ce,L.LoadingMask=Xt,L.Loginew=as,L.LowcodeCommon=ls,L.LowcodeFlow=is,L.NotFound=An,L.PopConfirm=Qt,L.Search=er,L.SegmentedStatus=nn,L.SvgIcon=Rt,L.TAB_EVENTS=we,L.TransitionFilter=Pn,L.UserInfo=os,L.closeTab=_n,L.dispatchEvent=ye,L.getSgTemplateAppContext=We,L.getSgTemplateEncrypt=de,L.getSgTemplateLocal=ot,L.getSgTemplateRequest=Q,L.injectIconSprite=Ln,L.openTab=$n,L.reloadTab=Dn,L.routeTo=zn,L.setupSgTemplateUI=jn,L.useEvent=it,L.useSgSystemStore=at,Object.defineProperty(L,Symbol.toStringTag,{value:"Module"})}));
297
+ //# sourceMappingURL=core-ui.umd.cjs.map