From 94eb1e736fa4db4b6659d45bd003dd942189d66c Mon Sep 17 00:00:00 2001 From: anyone-yuren <1003473088@qq.com> Date: Fri, 19 Jan 2024 16:32:32 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20anyone-y?= =?UTF-8?q?uren/react-antd-admin-pnpm@cd74ee405433112a196caba8b9207f8bb158?= =?UTF-8?q?94de=20=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{Translatex-55ea8b90.js => Translatex-54c367b9.js} | 2 +- assets/{count-up-8a403ad4.js => count-up-7eb21939.js} | 2 +- assets/{drag-list-ae49cfd4.js => drag-list-510d34cf.js} | 2 +- assets/{drag-resize-688f01ae.js => drag-resize-b49efc9f.js} | 2 +- ...ac660c5.1705658946162.js => index-f446ec7a.1705681920479.js} | 2 +- assets/{image-upload-606cc471.js => image-upload-a998b7bc.js} | 2 +- assets/{index-c347f4c7.js => index-253ec7c7.js} | 2 +- assets/{index-b802f706.js => index-4bfef12d.js} | 2 +- assets/{index-d1a5b8f7.js => index-50b97fc4.js} | 2 +- assets/{index-9140f0f3.js => index-681605cb.js} | 2 +- assets/{index-8f4985b6.js => index-8dd9a033.js} | 2 +- assets/{index-8336906c.js => index-94ad670d.js} | 2 +- assets/{index-930d4838.js => index-c2ab742f.js} | 2 +- assets/{index-2f75a102.js => index-cdb1e580.js} | 2 +- assets/{index-7c24f5a1.js => index-e2e572cb.js} | 2 +- .../{websiteSetting-f431f8d1.js => websiteSetting-252d9417.js} | 2 +- index.html | 2 +- 17 files changed, 17 insertions(+), 17 deletions(-) rename assets/{Translatex-55ea8b90.js => Translatex-54c367b9.js} (93%) rename assets/{count-up-8a403ad4.js => count-up-7eb21939.js} (95%) rename assets/{drag-list-ae49cfd4.js => drag-list-510d34cf.js} (99%) rename assets/{drag-resize-688f01ae.js => drag-resize-b49efc9f.js} (99%) rename assets/entry/{index-8ac660c5.1705658946162.js => index-f446ec7a.1705681920479.js} (99%) rename assets/{image-upload-606cc471.js => image-upload-a998b7bc.js} (97%) rename assets/{index-c347f4c7.js => index-253ec7c7.js} (96%) rename assets/{index-b802f706.js => index-4bfef12d.js} (95%) rename assets/{index-d1a5b8f7.js => index-50b97fc4.js} (95%) rename assets/{index-9140f0f3.js => index-681605cb.js} (91%) rename assets/{index-8f4985b6.js => index-8dd9a033.js} (99%) rename assets/{index-8336906c.js => index-94ad670d.js} (98%) rename assets/{index-930d4838.js => index-c2ab742f.js} (99%) rename assets/{index-2f75a102.js => index-cdb1e580.js} (98%) rename assets/{index-7c24f5a1.js => index-e2e572cb.js} (98%) rename assets/{websiteSetting-f431f8d1.js => websiteSetting-252d9417.js} (97%) diff --git a/assets/Translatex-55ea8b90.js b/assets/Translatex-54c367b9.js similarity index 93% rename from assets/Translatex-55ea8b90.js rename to assets/Translatex-54c367b9.js index 4192e1e..e363fa6 100644 --- a/assets/Translatex-55ea8b90.js +++ b/assets/Translatex-54c367b9.js @@ -1 +1 @@ -var p=Object.defineProperty;var o=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var i=(a,e,t)=>e in a?p(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,n=(a,e)=>{for(var t in e||(e={}))x.call(e,t)&&i(a,t,e[t]);if(o)for(var t of o(e))u.call(e,t)&&i(a,t,e[t]);return a};import{j as g}from"./antd-f8926cfc.js";import{u as Y,a as y}from"./entry/index-8ac660c5.1705658946162.js";import{a as l}from"./react-360e162b.js";function E(a){const{children:e,direction:t="left",delay:c=3e3,run:s=!1,config:f={tension:100,friction:26}}=a,[r,m]=l.useState(!1);l.useEffect(()=>{m(s)},[s]);const d=Y({opacity:r?1:0,transform:r?`${t==="left"?"translateX(0px) scale(1) rotateY(0deg)":"translateY(0px) scale(1) rotateY(0deg)"}`:`${t==="left"?"translateX(80px) scale(1) rotateY(10deg)":"translateY(80px) scale(0.9) rotateY(10deg)"}`,delay:c,config:n({},f),onRest:()=>{}});return g.jsx(y.div,{className:a.className,style:n({},d),children:s&&e})}export{E as T}; +var p=Object.defineProperty;var o=Object.getOwnPropertySymbols;var x=Object.prototype.hasOwnProperty,u=Object.prototype.propertyIsEnumerable;var i=(a,e,t)=>e in a?p(a,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):a[e]=t,n=(a,e)=>{for(var t in e||(e={}))x.call(e,t)&&i(a,t,e[t]);if(o)for(var t of o(e))u.call(e,t)&&i(a,t,e[t]);return a};import{j as g}from"./antd-f8926cfc.js";import{u as Y,a as y}from"./entry/index-f446ec7a.1705681920479.js";import{a as l}from"./react-360e162b.js";function E(a){const{children:e,direction:t="left",delay:c=3e3,run:s=!1,config:f={tension:100,friction:26}}=a,[r,m]=l.useState(!1);l.useEffect(()=>{m(s)},[s]);const d=Y({opacity:r?1:0,transform:r?`${t==="left"?"translateX(0px) scale(1) rotateY(0deg)":"translateY(0px) scale(1) rotateY(0deg)"}`:`${t==="left"?"translateX(80px) scale(1) rotateY(10deg)":"translateY(80px) scale(0.9) rotateY(10deg)"}`,delay:c,config:n({},f),onRest:()=>{}});return g.jsx(y.div,{className:a.className,style:n({},d),children:s&&e})}export{E as T}; diff --git a/assets/count-up-8a403ad4.js b/assets/count-up-7eb21939.js similarity index 95% rename from assets/count-up-8a403ad4.js rename to assets/count-up-7eb21939.js index 6d74ffd..3740b0f 100644 --- a/assets/count-up-8a403ad4.js +++ b/assets/count-up-7eb21939.js @@ -1 +1 @@ -var g=Object.defineProperty;var c=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var h=(r,t,s)=>t in r?g(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,l=(r,t)=>{for(var s in t||(t={}))I.call(t,s)&&h(r,s,t[s]);if(c)for(var s of c(t))C.call(t,s)&&h(r,s,t[s]);return r};import{F as a,j as e,H as w,J as i,n as x,t as n,I as o,S,i as f}from"./antd-f8926cfc.js";import{r as d}from"./react-360e162b.js";import{u as N,_ as j}from"./index-cf1f4c7e.js";import{P as U,C as P}from"./websiteSetting-f431f8d1.js";import"./entry/index-8ac660c5.1705658946162.js";const E=()=>{const[r]=a.useForm(),[t,s]=d.useState({start:0,end:2020,duration:4,decimals:0,separator:",",prefix:"¥ ",suffix:" rmb"}),m=d.useRef(null),{start:u,reset:p}=N(l({ref:m},t));d.useEffect(()=>{p()},[]);const y=b=>{s(l(l({},t),b))};return e.jsx(U,{plugin:P,children:e.jsxs(w,{gutter:12,children:[e.jsx(i,{span:6,children:e.jsx(x,{title:"正向增加",bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(j,{start:0,end:2020,duration:4,style:{height:"100%",fontSize:"40px",color:"#e65d6e"},className:"flex-center"})})}),e.jsx(i,{span:12,children:e.jsxs(x,{title:"自定义配置",bordered:!1,bodyStyle:{height:"300px"},children:[e.jsx("div",{className:"flex-center",style:{marginBottom:"30px"},children:e.jsx("span",{ref:m,style:{fontSize:"40px",color:"#e65d6e"}})}),e.jsxs(a,{form:r,initialValues:l({},t),layout:"inline",labelAlign:"left",labelCol:{style:{width:"80px",marginBottom:"12px"}},onValuesChange:y,children:[e.jsx(a.Item,{label:"startVal:",name:"start",children:e.jsx(n,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"endVal:",name:"end",children:e.jsx(n,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"duration:",name:"duration",children:e.jsx(n,{min:1,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"decimals:",name:"decimals",children:e.jsx(n,{min:0,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"separator:",name:"separator",children:e.jsx(o,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"prefix:",name:"prefix",children:e.jsx(o,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"suffix:",name:"suffix",children:e.jsx(o,{style:{width:"100px"}})}),e.jsx(a.Item,{children:e.jsxs(S,{children:[e.jsx(f,{type:"primary",onClick:u,children:"开始"}),e.jsx(f,{type:"primary",danger:!0,onClick:p,children:"重置"})]})})]})]})}),e.jsx(i,{span:6,children:e.jsx(x,{title:"反向减少",bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(j,{start:2020,end:0,duration:4,style:{height:"100%",fontSize:"40px",color:"#30b08f"},className:"flex-center"})})})]})})};export{E as default}; +var g=Object.defineProperty;var c=Object.getOwnPropertySymbols;var I=Object.prototype.hasOwnProperty,C=Object.prototype.propertyIsEnumerable;var h=(r,t,s)=>t in r?g(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,l=(r,t)=>{for(var s in t||(t={}))I.call(t,s)&&h(r,s,t[s]);if(c)for(var s of c(t))C.call(t,s)&&h(r,s,t[s]);return r};import{F as a,j as e,H as w,J as i,n as x,t as n,I as o,S,i as f}from"./antd-f8926cfc.js";import{r as d}from"./react-360e162b.js";import{u as N,_ as j}from"./index-cf1f4c7e.js";import{P as U,C as P}from"./websiteSetting-252d9417.js";import"./entry/index-f446ec7a.1705681920479.js";const E=()=>{const[r]=a.useForm(),[t,s]=d.useState({start:0,end:2020,duration:4,decimals:0,separator:",",prefix:"¥ ",suffix:" rmb"}),m=d.useRef(null),{start:u,reset:p}=N(l({ref:m},t));d.useEffect(()=>{p()},[]);const y=b=>{s(l(l({},t),b))};return e.jsx(U,{plugin:P,children:e.jsxs(w,{gutter:12,children:[e.jsx(i,{span:6,children:e.jsx(x,{title:"正向增加",bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(j,{start:0,end:2020,duration:4,style:{height:"100%",fontSize:"40px",color:"#e65d6e"},className:"flex-center"})})}),e.jsx(i,{span:12,children:e.jsxs(x,{title:"自定义配置",bordered:!1,bodyStyle:{height:"300px"},children:[e.jsx("div",{className:"flex-center",style:{marginBottom:"30px"},children:e.jsx("span",{ref:m,style:{fontSize:"40px",color:"#e65d6e"}})}),e.jsxs(a,{form:r,initialValues:l({},t),layout:"inline",labelAlign:"left",labelCol:{style:{width:"80px",marginBottom:"12px"}},onValuesChange:y,children:[e.jsx(a.Item,{label:"startVal:",name:"start",children:e.jsx(n,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"endVal:",name:"end",children:e.jsx(n,{min:0,max:1e4,style:{width:"100px"}})}),e.jsx(a.Item,{label:"duration:",name:"duration",children:e.jsx(n,{min:1,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"decimals:",name:"decimals",children:e.jsx(n,{min:0,max:100,style:{width:"100px"}})}),e.jsx(a.Item,{label:"separator:",name:"separator",children:e.jsx(o,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"prefix:",name:"prefix",children:e.jsx(o,{style:{width:"100px"}})}),e.jsx(a.Item,{label:"suffix:",name:"suffix",children:e.jsx(o,{style:{width:"100px"}})}),e.jsx(a.Item,{children:e.jsxs(S,{children:[e.jsx(f,{type:"primary",onClick:u,children:"开始"}),e.jsx(f,{type:"primary",danger:!0,onClick:p,children:"重置"})]})})]})]})}),e.jsx(i,{span:6,children:e.jsx(x,{title:"反向减少",bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(j,{start:2020,end:0,duration:4,style:{height:"100%",fontSize:"40px",color:"#30b08f"},className:"flex-center"})})})]})})};export{E as default}; diff --git a/assets/drag-list-ae49cfd4.js b/assets/drag-list-510d34cf.js similarity index 99% rename from assets/drag-list-ae49cfd4.js rename to assets/drag-list-510d34cf.js index b5df718..a0cf989 100644 --- a/assets/drag-list-ae49cfd4.js +++ b/assets/drag-list-510d34cf.js @@ -1,4 +1,4 @@ -var gn=Object.defineProperty,mn=Object.defineProperties;var bn=Object.getOwnPropertyDescriptors;var qe=Object.getOwnPropertySymbols;var jt=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable;var pt=(o,e,t)=>e in o?gn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,ce=(o,e)=>{for(var t in e||(e={}))jt.call(e,t)&&pt(o,t,e[t]);if(qe)for(var t of qe(e))Lt.call(e,t)&&pt(o,t,e[t]);return o},Ne=(o,e)=>mn(o,bn(e));var Ft=(o,e)=>{var t={};for(var n in o)jt.call(o,n)&&e.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&qe)for(var n of qe(o))e.indexOf(n)<0&&Lt.call(o,n)&&(t[n]=o[n]);return t};var kt=(o,e,t)=>(pt(o,typeof e!="symbol"?e+"":e,t),t);import{j as U,H as vn,J as Me,n as ve}from"./antd-f8926cfc.js";import{f as Zt,r as nt}from"./react-360e162b.js";import{P as wn,S as yn}from"./websiteSetting-f431f8d1.js";import{c as En}from"./entry/index-8ac660c5.1705658946162.js";var Qt={exports:{}};/**! +var gn=Object.defineProperty,mn=Object.defineProperties;var bn=Object.getOwnPropertyDescriptors;var qe=Object.getOwnPropertySymbols;var jt=Object.prototype.hasOwnProperty,Lt=Object.prototype.propertyIsEnumerable;var pt=(o,e,t)=>e in o?gn(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,ce=(o,e)=>{for(var t in e||(e={}))jt.call(e,t)&&pt(o,t,e[t]);if(qe)for(var t of qe(e))Lt.call(e,t)&&pt(o,t,e[t]);return o},Ne=(o,e)=>mn(o,bn(e));var Ft=(o,e)=>{var t={};for(var n in o)jt.call(o,n)&&e.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&qe)for(var n of qe(o))e.indexOf(n)<0&&Lt.call(o,n)&&(t[n]=o[n]);return t};var kt=(o,e,t)=>(pt(o,typeof e!="symbol"?e+"":e,t),t);import{j as U,H as vn,J as Me,n as ve}from"./antd-f8926cfc.js";import{f as Zt,r as nt}from"./react-360e162b.js";import{P as wn,S as yn}from"./websiteSetting-252d9417.js";import{c as En}from"./entry/index-f446ec7a.1705681920479.js";var Qt={exports:{}};/**! * Sortable 1.15.2 * @author RubaXa * @author owenm diff --git a/assets/drag-resize-688f01ae.js b/assets/drag-resize-b49efc9f.js similarity index 99% rename from assets/drag-resize-688f01ae.js rename to assets/drag-resize-b49efc9f.js index 171c507..e48fcbd 100644 --- a/assets/drag-resize-688f01ae.js +++ b/assets/drag-resize-b49efc9f.js @@ -1,4 +1,4 @@ -var _e=Object.defineProperty,Oe=Object.defineProperties;var Re=Object.getOwnPropertyDescriptors;var Kt=Object.getOwnPropertySymbols;var Ee=Object.prototype.hasOwnProperty,Me=Object.prototype.propertyIsEnumerable;var Jt=(e,i,r)=>i in e?_e(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r,bt=(e,i)=>{for(var r in i||(i={}))Ee.call(i,r)&&Jt(e,r,i[r]);if(Kt)for(var r of Kt(i))Me.call(i,r)&&Jt(e,r,i[r]);return e},Wt=(e,i)=>Oe(e,Re(i));import{j as J,n as Ce}from"./antd-f8926cfc.js";import{r as k,c as ae,g as se}from"./react-360e162b.js";import{p as le,r as Ne}from"./entry/index-8ac660c5.1705658946162.js";import{P as Te,R as We}from"./websiteSetting-f431f8d1.js";var Ot={exports:{}},ue={},E={},Q={};Object.defineProperty(Q,"__esModule",{value:!0});Q.dontSetMe=Be;Q.findInArray=Ae;Q.int=Le;Q.isFunction=He;Q.isNum=je;function Ae(e,i){for(var r=0,t=e.length;r0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var t=(e=window.document)===null||e===void 0||(i=e.documentElement)===null||i===void 0?void 0:i.style;if(!t||r in t)return"";for(var n=0;ni in e?_e(e,i,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[i]=r,bt=(e,i)=>{for(var r in i||(i={}))Ee.call(i,r)&&Jt(e,r,i[r]);if(Kt)for(var r of Kt(i))Me.call(i,r)&&Jt(e,r,i[r]);return e},Wt=(e,i)=>Oe(e,Re(i));import{j as J,n as Ce}from"./antd-f8926cfc.js";import{r as k,c as ae,g as se}from"./react-360e162b.js";import{p as le,r as Ne}from"./entry/index-f446ec7a.1705681920479.js";import{P as Te,R as We}from"./websiteSetting-252d9417.js";var Ot={exports:{}},ue={},E={},Q={};Object.defineProperty(Q,"__esModule",{value:!0});Q.dontSetMe=Be;Q.findInArray=Ae;Q.int=Le;Q.isFunction=He;Q.isNum=je;function Ae(e,i){for(var r=0,t=e.length;r0&&arguments[0]!==void 0?arguments[0]:"transform";if(typeof window=="undefined")return"";var t=(e=window.document)===null||e===void 0||(i=e.documentElement)===null||i===void 0?void 0:i.style;if(!t||r in t)return"";for(var n=0;n: Unmounted during event!");return i}var Rt={},Et={};Object.defineProperty(Et,"__esModule",{value:!0});Et.default=hr;function hr(){}function Dt(e){"@babel/helpers - typeof";return Dt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(i){return typeof i}:function(i){return i&&typeof Symbol=="function"&&i.constructor===Symbol&&i!==Symbol.prototype?"symbol":typeof i},Dt(e)}Object.defineProperty(Rt,"__esModule",{value:!0});Rt.default=void 0;var Ht=dr(k),I=Xt(le),cr=Xt(ae),W=E,rt=tt,jt=Q,ct=Xt(Et);function Xt(e){return e&&e.__esModule?e:{default:e}}function me(e){if(typeof WeakMap!="function")return null;var i=new WeakMap,r=new WeakMap;return(me=function(n){return n?r:i})(e)}function dr(e,i){if(!i&&e&&e.__esModule)return e;if(e===null||Dt(e)!=="object"&&typeof e!="function")return{default:e};var r=me(i);if(r&&r.has(e))return r.get(e);var t={},n=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var o in e)if(o!=="default"&&Object.prototype.hasOwnProperty.call(e,o)){var a=n?Object.getOwnPropertyDescriptor(e,o):null;a&&(a.get||a.set)?Object.defineProperty(t,o,a):t[o]=e[o]}return t.default=e,r&&r.set(e,t),t}function te(e,i){return mr(e)||yr(e,i)||vr(e,i)||gr()}function gr(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function vr(e,i){if(e){if(typeof e=="string")return ee(e,i);var r=Object.prototype.toString.call(e).slice(8,-1);if(r==="Object"&&e.constructor&&(r=e.constructor.name),r==="Map"||r==="Set")return Array.from(e);if(r==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ee(e,i)}}function ee(e,i){(i==null||i>e.length)&&(i=e.length);for(var r=0,t=new Array(i);r not mounted on DragStart!");var p=f.ownerDocument;if(!(t.props.disabled||!(s.target instanceof p.defaultView.Node)||t.props.handle&&!(0,W.matchesSelectorAndParentsTo)(s.target,t.props.handle,f)||t.props.cancel&&(0,W.matchesSelectorAndParentsTo)(s.target,t.props.cancel,f))){s.type==="touchstart"&&s.preventDefault();var g=(0,W.getTouchIdentifier)(s);t.setState({touchIdentifier:g});var y=(0,rt.getControlPosition)(s,g,A(t));if(y!=null){var v=y.x,m=y.y,w=(0,rt.createCoreData)(A(t),v,m);(0,ct.default)("DraggableCore: handleDragStart: %j",w),(0,ct.default)("calling",t.props.onStart);var S=t.props.onStart(s,w);S===!1||t.mounted===!1||(t.props.enableUserSelectHack&&(0,W.addUserSelectStyles)(p),t.setState({dragging:!0,lastX:v,lastY:m}),(0,W.addEvent)(p,it.move,t.handleDrag),(0,W.addEvent)(p,it.stop,t.handleDragStop))}}}),G(A(t),"handleDrag",function(s){var f=(0,rt.getControlPosition)(s,t.state.touchIdentifier,A(t));if(f!=null){var p=f.x,g=f.y;if(Array.isArray(t.props.grid)){var y=p-t.state.lastX,v=g-t.state.lastY,m=(0,rt.snapToGrid)(t.props.grid,y,v),w=te(m,2);if(y=w[0],v=w[1],!y&&!v)return;p=t.state.lastX+y,g=t.state.lastY+v}var S=(0,rt.createCoreData)(A(t),p,g);(0,ct.default)("DraggableCore: handleDrag: %j",S);var P=t.props.onDrag(s,S);if(P===!1||t.mounted===!1){try{t.handleDragStop(new MouseEvent("mouseup"))}catch(D){var R=document.createEvent("MouseEvents");R.initMouseEvent("mouseup",!0,!0,window,0,0,0,0,0,!1,!1,!1,!1,0,null),t.handleDragStop(R)}return}t.setState({lastX:p,lastY:g})}}),G(A(t),"handleDragStop",function(s){if(t.state.dragging){var f=(0,rt.getControlPosition)(s,t.state.touchIdentifier,A(t));if(f!=null){var p=f.x,g=f.y;if(Array.isArray(t.props.grid)){var y=p-t.state.lastX||0,v=g-t.state.lastY||0,m=(0,rt.snapToGrid)(t.props.grid,y,v),w=te(m,2);y=w[0],v=w[1],p=t.state.lastX+y,g=t.state.lastY+v}var S=(0,rt.createCoreData)(A(t),p,g),P=t.props.onStop(s,S);if(P===!1||t.mounted===!1)return!1;var R=t.findDOMNode();R&&t.props.enableUserSelectHack&&(0,W.removeUserSelectStyles)(R.ownerDocument),(0,ct.default)("DraggableCore: handleDragStop: %j",S),t.setState({dragging:!1,lastX:NaN,lastY:NaN}),R&&((0,ct.default)("DraggableCore: Removing handlers"),(0,W.removeEvent)(R.ownerDocument,it.move,t.handleDrag),(0,W.removeEvent)(R.ownerDocument,it.stop,t.handleDragStop))}}}),G(A(t),"onMouseDown",function(s){return it=V.mouse,t.handleDragStart(s)}),G(A(t),"onMouseUp",function(s){return it=V.mouse,t.handleDragStop(s)}),G(A(t),"onTouchStart",function(s){return it=V.touch,t.handleDragStart(s)}),G(A(t),"onTouchEnd",function(s){return it=V.touch,t.handleDragStop(s)}),t}return wr(r,[{key:"componentDidMount",value:function(){this.mounted=!0;var n=this.findDOMNode();n&&(0,W.addEvent)(n,V.touch.start,this.onTouchStart,{passive:!1})}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var n=this.findDOMNode();if(n){var o=n.ownerDocument;(0,W.removeEvent)(o,V.mouse.move,this.handleDrag),(0,W.removeEvent)(o,V.touch.move,this.handleDrag),(0,W.removeEvent)(o,V.mouse.stop,this.handleDragStop),(0,W.removeEvent)(o,V.touch.stop,this.handleDragStop),(0,W.removeEvent)(n,V.touch.start,this.onTouchStart,{passive:!1}),this.props.enableUserSelectHack&&(0,W.removeUserSelectStyles)(o)}}},{key:"findDOMNode",value:function(){var n,o,a;return(n=this.props)!==null&&n!==void 0&&n.nodeRef?(o=this.props)===null||o===void 0||(a=o.nodeRef)===null||a===void 0?void 0:a.current:cr.default.findDOMNode(this)}},{key:"render",value:function(){return Ht.cloneElement(Ht.Children.only(this.props.children),{onMouseDown:this.onMouseDown,onMouseUp:this.onMouseUp,onTouchEnd:this.onTouchEnd})}}]),r}(Ht.Component);Rt.default=Mt;G(Mt,"displayName","DraggableCore");G(Mt,"propTypes",{allowAnyClick:I.default.bool,disabled:I.default.bool,enableUserSelectHack:I.default.bool,offsetParent:function(i,r){if(i[r]&&i[r].nodeType!==1)throw new Error("Draggable's offsetParent must be a DOM Node.")},grid:I.default.arrayOf(I.default.number),handle:I.default.string,cancel:I.default.string,nodeRef:I.default.object,onStart:I.default.func,onDrag:I.default.func,onStop:I.default.func,onMouseDown:I.default.func,scale:I.default.number,className:jt.dontSetMe,style:jt.dontSetMe,transform:jt.dontSetMe});G(Mt,"defaultProps",{allowAnyClick:!1,disabled:!1,enableUserSelectHack:!0,onStart:function(){},onDrag:function(){},onStop:function(){},onMouseDown:function(){},scale:1});(function(e){function i(l){"@babel/helpers - typeof";return i=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(u){return typeof u}:function(u){return u&&typeof Symbol=="function"&&u.constructor===Symbol&&u!==Symbol.prototype?"symbol":typeof u},i(l)}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"DraggableCore",{enumerable:!0,get:function(){return p.default}}),e.default=void 0;var r=w(k),t=v(le),n=v(ae),o=v(Ne),a=E,s=tt,f=Q,p=v(Rt),g=v(Et),y=["axis","bounds","children","defaultPosition","defaultClassName","defaultClassNameDragging","defaultClassNameDragged","position","positionOffset","scale"];function v(l){return l&&l.__esModule?l:{default:l}}function m(l){if(typeof WeakMap!="function")return null;var u=new WeakMap,h=new WeakMap;return(m=function(d){return d?h:u})(l)}function w(l,u){if(!u&&l&&l.__esModule)return l;if(l===null||i(l)!=="object"&&typeof l!="function")return{default:l};var h=m(u);if(h&&h.has(l))return h.get(l);var c={},d=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var b in l)if(b!=="default"&&Object.prototype.hasOwnProperty.call(l,b)){var z=d?Object.getOwnPropertyDescriptor(l,b):null;z&&(z.get||z.set)?Object.defineProperty(c,b,z):c[b]=l[b]}return c.default=l,h&&h.set(l,c),c}function S(){return S=Object.assign||function(l){for(var u=1;u=0)&&Object.prototype.propertyIsEnumerable.call(l,c)&&(h[c]=l[c])}return h}function R(l,u){if(l==null)return{};var h={},c=Object.keys(l),d,b;for(b=0;b=0)&&(h[d]=l[d]);return h}function D(l,u){var h=Object.keys(l);if(Object.getOwnPropertySymbols){var c=Object.getOwnPropertySymbols(l);u&&(c=c.filter(function(d){return Object.getOwnPropertyDescriptor(l,d).enumerable})),h.push.apply(h,c)}return h}function x(l){for(var u=1;u/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(o.trim());function matchHeaderValue(o,a,s,c,f){if(utils$1.isFunction(c))return c.call(this,a,s);if(f&&(a=s),!!utils$1.isString(a)){if(utils$1.isString(c))return a.indexOf(c)!==-1;if(utils$1.isRegExp(c))return c.test(a)}}function formatHeader(o){return o.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(a,s,c)=>s.toUpperCase()+c)}function buildAccessors(o,a){const s=utils$1.toCamelCase(" "+a);["get","set","has"].forEach(c=>{Object.defineProperty(o,c+s,{value:function(f,d,y){return this[c].call(this,a,f,d,y)},configurable:!0})})}class AxiosHeaders{constructor(a){a&&this.set(a)}set(a,s,c){const f=this;function d(g,b,_){const S=normalizeHeader(b);if(!S)throw new Error("header name must be a non-empty string");const x=utils$1.findKey(f,S);(!x||f[x]===void 0||_===!0||_===void 0&&f[x]!==!1)&&(f[x||b]=normalizeValue(g))}const y=(g,b)=>utils$1.forEach(g,(_,S)=>d(_,S,b));return utils$1.isPlainObject(a)||a instanceof this.constructor?y(a,s):utils$1.isString(a)&&(a=a.trim())&&!isValidHeaderName(a)?y(parseHeaders(a),s):a!=null&&d(s,a,c),this}get(a,s){if(a=normalizeHeader(a),a){const c=utils$1.findKey(this,a);if(c){const f=this[c];if(!s)return f;if(s===!0)return parseTokens(f);if(utils$1.isFunction(s))return s.call(this,f,c);if(utils$1.isRegExp(s))return s.exec(f);throw new TypeError("parser must be boolean|regexp|function")}}}has(a,s){if(a=normalizeHeader(a),a){const c=utils$1.findKey(this,a);return!!(c&&this[c]!==void 0&&(!s||matchHeaderValue(this,this[c],c,s)))}return!1}delete(a,s){const c=this;let f=!1;function d(y){if(y=normalizeHeader(y),y){const g=utils$1.findKey(c,y);g&&(!s||matchHeaderValue(c,c[g],g,s))&&(delete c[g],f=!0)}}return utils$1.isArray(a)?a.forEach(d):d(a),f}clear(a){const s=Object.keys(this);let c=s.length,f=!1;for(;c--;){const d=s[c];(!a||matchHeaderValue(this,this[d],d,a,!0))&&(delete this[d],f=!0)}return f}normalize(a){const s=this,c={};return utils$1.forEach(this,(f,d)=>{const y=utils$1.findKey(c,d);if(y){s[y]=normalizeValue(f),delete s[d];return}const g=a?formatHeader(d):String(d).trim();g!==d&&delete s[d],s[g]=normalizeValue(f),c[g]=!0}),this}concat(...a){return this.constructor.concat(this,...a)}toJSON(a){const s=Object.create(null);return utils$1.forEach(this,(c,f)=>{c!=null&&c!==!1&&(s[f]=a&&utils$1.isArray(c)?c.join(", "):c)}),s}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([a,s])=>a+": "+s).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(a){return a instanceof this?a:new this(a)}static concat(a,...s){const c=new this(a);return s.forEach(f=>c.set(f)),c}static accessor(a){const c=(this[$internals]=this[$internals]={accessors:{}}).accessors,f=this.prototype;function d(y){const g=normalizeHeader(y);c[g]||(buildAccessors(f,y),c[g]=!0)}return utils$1.isArray(a)?a.forEach(d):d(a),this}}AxiosHeaders.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);utils$1.reduceDescriptors(AxiosHeaders.prototype,({value:o},a)=>{let s=a[0].toUpperCase()+a.slice(1);return{get:()=>o,set(c){this[s]=c}}});utils$1.freezeMethods(AxiosHeaders);const AxiosHeaders$1=AxiosHeaders;function transformData(o,a){const s=this||defaults$1,c=a||s,f=AxiosHeaders$1.from(c.headers);let d=c.data;return utils$1.forEach(o,function(g){d=g.call(s,d,f.normalize(),a?a.status:void 0)}),f.normalize(),d}function isCancel(o){return!!(o&&o.__CANCEL__)}function CanceledError(o,a,s){AxiosError.call(this,o==null?"canceled":o,AxiosError.ERR_CANCELED,a,s),this.name="CanceledError"}utils$1.inherits(CanceledError,AxiosError,{__CANCEL__:!0});function settle(o,a,s){const c=s.config.validateStatus;!s.status||!c||c(s.status)?o(s):a(new AxiosError("Request failed with status code "+s.status,[AxiosError.ERR_BAD_REQUEST,AxiosError.ERR_BAD_RESPONSE][Math.floor(s.status/100)-4],s.config,s.request,s))}const cookies=platform.hasStandardBrowserEnv?{write(o,a,s,c,f,d){const y=[o+"="+encodeURIComponent(a)];utils$1.isNumber(s)&&y.push("expires="+new Date(s).toGMTString()),utils$1.isString(c)&&y.push("path="+c),utils$1.isString(f)&&y.push("domain="+f),d===!0&&y.push("secure"),document.cookie=y.join("; ")},read(o){const a=document.cookie.match(new RegExp("(^|;\\s*)("+o+")=([^;]*)"));return a?decodeURIComponent(a[3]):null},remove(o){this.write(o,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function isAbsoluteURL(o){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(o)}function combineURLs(o,a){return a?o.replace(/\/?\/$/,"")+"/"+a.replace(/^\/+/,""):o}function buildFullPath(o,a){return o&&!isAbsoluteURL(a)?combineURLs(o,a):a}const isURLSameOrigin=platform.hasStandardBrowserEnv?function(){const a=/(msie|trident)/i.test(navigator.userAgent),s=document.createElement("a");let c;function f(d){let y=d;return a&&(s.setAttribute("href",y),y=s.href),s.setAttribute("href",y),{href:s.href,protocol:s.protocol?s.protocol.replace(/:$/,""):"",host:s.host,search:s.search?s.search.replace(/^\?/,""):"",hash:s.hash?s.hash.replace(/^#/,""):"",hostname:s.hostname,port:s.port,pathname:s.pathname.charAt(0)==="/"?s.pathname:"/"+s.pathname}}return c=f(window.location.href),function(y){const g=utils$1.isString(y)?f(y):y;return g.protocol===c.protocol&&g.host===c.host}}():function(){return function(){return!0}}();function parseProtocol(o){const a=/^([-+\w]{1,25})(:?\/\/|:)/.exec(o);return a&&a[1]||""}function speedometer(o,a){o=o||10;const s=new Array(o),c=new Array(o);let f=0,d=0,y;return a=a!==void 0?a:1e3,function(b){const _=Date.now(),S=c[d];y||(y=_),s[f]=b,c[f]=_;let x=d,$=0;for(;x!==f;)$+=s[x++],x=x%o;if(f=(f+1)%o,f===d&&(d=(d+1)%o),_-y{const d=f.loaded,y=f.lengthComputable?f.total:void 0,g=d-s,b=c(g),_=d<=y;s=d;const S={loaded:d,total:y,progress:y?d/y:void 0,bytes:g,rate:b||void 0,estimated:b&&y&&_?(y-d)/b:void 0,event:f};S[a?"download":"upload"]=!0,o(S)}}const isXHRAdapterSupported=typeof XMLHttpRequest!="undefined",xhrAdapter=isXHRAdapterSupported&&function(o){return new Promise(function(s,c){let f=o.data;const d=AxiosHeaders$1.from(o.headers).normalize();let{responseType:y,withXSRFToken:g}=o,b;function _(){o.cancelToken&&o.cancelToken.unsubscribe(b),o.signal&&o.signal.removeEventListener("abort",b)}let S;if(utils$1.isFormData(f)){if(platform.hasStandardBrowserEnv||platform.hasStandardBrowserWebWorkerEnv)d.setContentType(!1);else if((S=d.getContentType())!==!1){const[E,...T]=S?S.split(";").map(j=>j.trim()).filter(Boolean):[];d.setContentType([E||"multipart/form-data",...T].join("; "))}}let x=new XMLHttpRequest;if(o.auth){const E=o.auth.username||"",T=o.auth.password?unescape(encodeURIComponent(o.auth.password)):"";d.set("Authorization","Basic "+btoa(E+":"+T))}const $=buildFullPath(o.baseURL,o.url);x.open(o.method.toUpperCase(),buildURL($,o.params,o.paramsSerializer),!0),x.timeout=o.timeout;function A(){if(!x)return;const E=AxiosHeaders$1.from("getAllResponseHeaders"in x&&x.getAllResponseHeaders()),j={data:!y||y==="text"||y==="json"?x.responseText:x.response,status:x.status,statusText:x.statusText,headers:E,config:o,request:x};settle(function(C){s(C),_()},function(C){c(C),_()},j),x=null}if("onloadend"in x?x.onloadend=A:x.onreadystatechange=function(){!x||x.readyState!==4||x.status===0&&!(x.responseURL&&x.responseURL.indexOf("file:")===0)||setTimeout(A)},x.onabort=function(){x&&(c(new AxiosError("Request aborted",AxiosError.ECONNABORTED,o,x)),x=null)},x.onerror=function(){c(new AxiosError("Network Error",AxiosError.ERR_NETWORK,o,x)),x=null},x.ontimeout=function(){let T=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const j=o.transitional||transitionalDefaults;o.timeoutErrorMessage&&(T=o.timeoutErrorMessage),c(new AxiosError(T,j.clarifyTimeoutError?AxiosError.ETIMEDOUT:AxiosError.ECONNABORTED,o,x)),x=null},platform.hasStandardBrowserEnv&&(g&&utils$1.isFunction(g)&&(g=g(o)),g||g!==!1&&isURLSameOrigin($))){const E=o.xsrfHeaderName&&o.xsrfCookieName&&cookies.read(o.xsrfCookieName);E&&d.set(o.xsrfHeaderName,E)}f===void 0&&d.setContentType(null),"setRequestHeader"in x&&utils$1.forEach(d.toJSON(),function(T,j){x.setRequestHeader(j,T)}),utils$1.isUndefined(o.withCredentials)||(x.withCredentials=!!o.withCredentials),y&&y!=="json"&&(x.responseType=o.responseType),typeof o.onDownloadProgress=="function"&&x.addEventListener("progress",progressEventReducer(o.onDownloadProgress,!0)),typeof o.onUploadProgress=="function"&&x.upload&&x.upload.addEventListener("progress",progressEventReducer(o.onUploadProgress)),(o.cancelToken||o.signal)&&(b=E=>{x&&(c(!E||E.type?new CanceledError(null,o,x):E),x.abort(),x=null)},o.cancelToken&&o.cancelToken.subscribe(b),o.signal&&(o.signal.aborted?b():o.signal.addEventListener("abort",b)));const P=parseProtocol($);if(P&&platform.protocols.indexOf(P)===-1){c(new AxiosError("Unsupported protocol "+P+":",AxiosError.ERR_BAD_REQUEST,o));return}x.send(f||null)})},knownAdapters={http:httpAdapter,xhr:xhrAdapter};utils$1.forEach(knownAdapters,(o,a)=>{if(o){try{Object.defineProperty(o,"name",{value:a})}catch(s){}Object.defineProperty(o,"adapterName",{value:a})}});const renderReason=o=>`- ${o}`,isResolvedHandle=o=>utils$1.isFunction(o)||o===null||o===!1,adapters={getAdapter:o=>{o=utils$1.isArray(o)?o:[o];const{length:a}=o;let s,c;const f={};for(let d=0;d`adapter ${g} `+(b===!1?"is not supported by the environment":"is not available in the build"));let y=a?d.length>1?`since : `+d.map(renderReason).join(` -`):" "+renderReason(d[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return c},adapters:knownAdapters};function throwIfCancellationRequested(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new CanceledError(null,o)}function dispatchRequest(o){return throwIfCancellationRequested(o),o.headers=AxiosHeaders$1.from(o.headers),o.data=transformData.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(o.adapter||defaults$1.adapter)(o).then(function(c){return throwIfCancellationRequested(o),c.data=transformData.call(o,o.transformResponse,c),c.headers=AxiosHeaders$1.from(c.headers),c},function(c){return isCancel(c)||(throwIfCancellationRequested(o),c&&c.response&&(c.response.data=transformData.call(o,o.transformResponse,c.response),c.response.headers=AxiosHeaders$1.from(c.response.headers))),Promise.reject(c)})}const headersToObject=o=>o instanceof AxiosHeaders$1?o.toJSON():o;function mergeConfig(o,a){a=a||{};const s={};function c(_,S,x){return utils$1.isPlainObject(_)&&utils$1.isPlainObject(S)?utils$1.merge.call({caseless:x},_,S):utils$1.isPlainObject(S)?utils$1.merge({},S):utils$1.isArray(S)?S.slice():S}function f(_,S,x){if(utils$1.isUndefined(S)){if(!utils$1.isUndefined(_))return c(void 0,_,x)}else return c(_,S,x)}function d(_,S){if(!utils$1.isUndefined(S))return c(void 0,S)}function y(_,S){if(utils$1.isUndefined(S)){if(!utils$1.isUndefined(_))return c(void 0,_)}else return c(void 0,S)}function g(_,S,x){if(x in a)return c(_,S);if(x in o)return c(void 0,_)}const b={url:d,method:d,data:d,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:g,headers:(_,S)=>f(headersToObject(_),headersToObject(S),!0)};return utils$1.forEach(Object.keys(Object.assign({},o,a)),function(S){const x=b[S]||f,$=x(o[S],a[S],S);utils$1.isUndefined($)&&x!==g||(s[S]=$)}),s}const VERSION="1.6.5",validators$1={};["object","boolean","number","function","string","symbol"].forEach((o,a)=>{validators$1[o]=function(c){return typeof c===o||"a"+(a<1?"n ":" ")+o}});const deprecatedWarnings={};validators$1.transitional=function(a,s,c){function f(d,y){return"[Axios v"+VERSION+"] Transitional option '"+d+"'"+y+(c?". "+c:"")}return(d,y,g)=>{if(a===!1)throw new AxiosError(f(y," has been removed"+(s?" in "+s:"")),AxiosError.ERR_DEPRECATED);return s&&!deprecatedWarnings[y]&&(deprecatedWarnings[y]=!0),a?a(d,y,g):!0}};function assertOptions(o,a,s){if(typeof o!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const c=Object.keys(o);let f=c.length;for(;f-- >0;){const d=c[f],y=a[d];if(y){const g=o[d],b=g===void 0||y(g,d,o);if(b!==!0)throw new AxiosError("option "+d+" must be "+b,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new AxiosError("Unknown option "+d,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(a){this.defaults=a,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(a,s){typeof a=="string"?(s=s||{},s.url=a):s=a||{},s=mergeConfig(this.defaults,s);const{transitional:c,paramsSerializer:f,headers:d}=s;c!==void 0&&validator.assertOptions(c,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),f!=null&&(utils$1.isFunction(f)?s.paramsSerializer={serialize:f}:validator.assertOptions(f,{encode:validators.function,serialize:validators.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let y=d&&utils$1.merge(d.common,d[s.method]);d&&utils$1.forEach(["delete","get","head","post","put","patch","common"],P=>{delete d[P]}),s.headers=AxiosHeaders$1.concat(y,d);const g=[];let b=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(s)===!1||(b=b&&E.synchronous,g.unshift(E.fulfilled,E.rejected))});const _=[];this.interceptors.response.forEach(function(E){_.push(E.fulfilled,E.rejected)});let S,x=0,$;if(!b){const P=[dispatchRequest.bind(this),void 0];for(P.unshift.apply(P,g),P.push.apply(P,_),$=P.length,S=Promise.resolve(s);x<$;)S=S.then(P[x++],P[x++]);return S}$=g.length;let A=s;for(x=0;x<$;){const P=g[x++],E=g[x++];try{A=P(A)}catch(T){E.call(this,T);break}}try{S=dispatchRequest.call(this,A)}catch(P){return Promise.reject(P)}for(x=0,$=_.length;x<$;)S=S.then(_[x++],_[x++]);return S}getUri(a){a=mergeConfig(this.defaults,a);const s=buildFullPath(a.baseURL,a.url);return buildURL(s,a.params,a.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(a){Axios.prototype[a]=function(s,c){return this.request(mergeConfig(c||{},{method:a,url:s,data:(c||{}).data}))}});utils$1.forEach(["post","put","patch"],function(a){function s(c){return function(d,y,g){return this.request(mergeConfig(g||{},{method:a,headers:c?{"Content-Type":"multipart/form-data"}:{},url:d,data:y}))}}Axios.prototype[a]=s(),Axios.prototype[a+"Form"]=s(!0)});const Axios$1=Axios;class CancelToken{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(d){s=d});const c=this;this.promise.then(f=>{if(!c._listeners)return;let d=c._listeners.length;for(;d-- >0;)c._listeners[d](f);c._listeners=null}),this.promise.then=f=>{let d;const y=new Promise(g=>{c.subscribe(g),d=g}).then(f);return y.cancel=function(){c.unsubscribe(d)},y},a(function(d,y,g){c.reason||(c.reason=new CanceledError(d,y,g),s(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const s=this._listeners.indexOf(a);s!==-1&&this._listeners.splice(s,1)}static source(){let a;return{token:new CancelToken(function(f){a=f}),cancel:a}}}const CancelToken$1=CancelToken;function spread(o){return function(s){return o.apply(null,s)}}function isAxiosError(o){return utils$1.isObject(o)&&o.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([o,a])=>{HttpStatusCode[a]=o});const HttpStatusCode$1=HttpStatusCode;function createInstance(o){const a=new Axios$1(o),s=bind(Axios$1.prototype.request,a);return utils$1.extend(s,Axios$1.prototype,a,{allOwnKeys:!0}),utils$1.extend(s,a,null,{allOwnKeys:!0}),s.create=function(f){return createInstance(mergeConfig(o,f))},s}const axios=createInstance(defaults$1);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(a){return Promise.all(a)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=o=>formDataToJSON(utils$1.isHTMLForm(o)?new FormData(o):o);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios,service=axios$1.create({baseURL:"/api",timeout:10*1e3}),handleError=o=>{var a,s;return(((a=o.response)==null?void 0:a.status)===401||((s=o.response)==null?void 0:s.status)===504)&&(clearAuthCache(),location.href="/login"),message.error(o.message||"error"),Promise.reject(o)};service.interceptors.request.use(o=>{const a=getToken();return a&&(o.headers.Authorization=`${a}`),o.headers["Content-Type"]="application/json",o},handleError);service.interceptors.response.use(o=>{const{data:a}=o;return a.code===0?a.data:(message.error(a.message),Promise.reject("error"))},handleError);function loginApi(o){return service({url:"/login",method:"post",data:o})}function getUserInfo(){return service({url:"/getUserInfo",method:"get"})}function logoutApi(){return service({url:"/logout",method:"get"})}function getJueJinList(o){return service({url:"article/queryList",method:"post",data:o})}function getUsersList(){return service({url:"user/getUserList",method:"get"})}const headerImg="/react-antd-admin-pnpm/assets/avatar-9ee092e3.jpeg";function UserDropdown(){const{createConfirm:o,contextHolder:a}=useMessage(),s=[{key:"lock",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(LockOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:"锁定屏幕"})]})},{key:"logout",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(PoweroffOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:"退出登录"})]})}],c=({key:S})=>{switch(S){case"lock":break;case"logout":b();break}},f=useNavigate(),d=useAppDispatch(),{token:y}=useAppSelector(S=>S.user),g=()=>y||getAuthCache(TOKEN_KEY),b=()=>{o({title:jsxRuntimeExports.jsx("span",{children:"温馨提醒"}),content:jsxRuntimeExports.jsx("span",{children:"是否确认退出系统?"}),onOk:()=>Ee(this,null,function*(){yield _(!0)})})},_=(S=!1)=>Ee(this,null,function*(){if(g())try{yield logoutApi()}catch(x){const{createMessage:$}=useMessage();$.error("注销失败!")}d(resetState()),clearAuthCache(),S&&f("/login")});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a,jsxRuntimeExports.jsx(Dropdown,{menu:{items:s,onClick:c},placement:"bottomRight",arrow:!0,children:jsxRuntimeExports.jsx("span",{className:"flex-center",style:{cursor:"pointer"},children:jsxRuntimeExports.jsx("img",{src:headerImg,style:{width:"24px",height:"24px",borderRadius:"50%"},alt:""})})})]})}function LayoutFeature(){return jsxRuntimeExports.jsxs(Space,{size:"middle",children:[jsxRuntimeExports.jsx(GlobalSearch,{}),jsxRuntimeExports.jsx(DocLink,{}),jsxRuntimeExports.jsx(GithubLink,{}),jsxRuntimeExports.jsx(Settings,{}),jsxRuntimeExports.jsx(UserDropdown,{})]})}const useStyles$5=createStyles(({token:o},a)=>{const{active:s}=a;return{"compo_tag-item":{display:"inline-block",verticalAlign:"top",height:"24px",margin:"0 2px",padding:"0 8px",borderRadius:"3px",lineHeight:"24px",color:s?"#fff":"#555",background:s?o.colorPrimary:"#fff",overflow:"hidden",cursor:"pointer","&__dot":{display:"inline-block",verticalAlign:"baseline",width:"8px",height:"8px",marginRight:"6px",borderRadius:"50%",background:s?"#fff":"#dcdee0"},"&__name":{fontSize:"12px"}},verticalAlign:"baseline",svg:{width:"8px",height:"8px"},active:{border:"none",color:"#fff",background:o.colorPrimary,".anticon-close":{color:"#fff"}}}}),TagItem=({name:o,fixed:a,active:s=!1,closeTag:c,onClick:f})=>{const{styles:d}=useStyles$5({active:s});return jsxRuntimeExports.jsxs(Tag,{className:classNames(d["compo_tag-item"],{[d.active]:s}),closable:!a,onClose:c,onClick:f,children:[jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__dot`}),jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__name`,children:o})]})},useStyles$4=createStyles(()=>({layout_tags:{zIndex:"299",display:"flex",justifyContent:"space-between",height:"32px",padding:"4px 12px",lineHeight:"32px","&__main":{position:"relative",width:"calc(100% - 116px)",height:"24px",overflow:"hidden","&-body":{position:"absolute",height:"100%",padding:"0 2px",overflow:"visible",whiteSpace:"nowrap",transition:"left .5s ease"}},"&__btn-space":{marginLeft:"4px"}}})),LayoutTags=()=>{const{styles:o}=useStyles$4(),a=[{key:"left",label:"关闭左侧"},{key:"right",label:"关闭右侧"},{key:"other",label:"关闭其它"},{key:"all",label:"关闭所有"}],s=({key:D})=>{D==="all"?S(closeAllTags()).then(({payload:I})=>{const L=I.slice(-1)[0];x!==(L==null?void 0:L.fullPath)&&b(L==null?void 0:L.fullPath)}):S(closeTagsByType({type:D,path:x}))},c=reactExports.useRef(null),f=reactExports.useRef(null),[d,y]=reactExports.useState(0),{pathname:g}=useLocation(),b=useNavigate(),_=useAppSelector(D=>D.tags.visitedTags),S=useAppDispatch(),[x,$]=reactExports.useState(g);reactExports.useEffect(()=>{A(routeList).forEach(I=>{S(addVisitedTags(I))})},[]),reactExports.useEffect(()=>{const D=searchRoute(g,routeList);D&&S(addVisitedTags(D)),$(g)},[g]),reactExports.useEffect(()=>{var L;const D=(L=f.current)==null?void 0:L.childNodes,I=Array.from(D).find(U=>U.dataset.path===x);P(I)},[x]);const A=(D,I="/")=>{const L=[],U=K=>{var H;if((H=K.meta)!=null&&H.affix){const N=K.path.startsWith("/")?K.path:I+K.path;L.push(_e(ie({},K),{path:N}))}K.children&&K.children.length&&K.children.forEach(N=>U(N))};return D.forEach(K=>U(K)),L},P=D=>{var H,N,X,Y,oe,ae,B,V,G,Z,te;let I=0;const L=4,U=(H=c.current)==null?void 0:H.offsetWidth;((N=f.current)==null?void 0:N.offsetWidth)-d&&((ae=D==null?void 0:D.offsetLeft)!=null?ae:0)+((B=D==null?void 0:D.offsetWidth)!=null?B:0)<-d+U?I=Math.min(0,U-((V=D==null?void 0:D.offsetWidth)!=null?V:0)-((G=D==null?void 0:D.offsetLeft)!=null?G:0)-L):I=-(((Z=D==null?void 0:D.offsetLeft)!=null?Z:0)-(U-L-((te=D==null?void 0:D.offsetWidth)!=null?te:0))),y(I)},E=D=>{var K,H;let I=0;const L=(K=c.current)==null?void 0:K.offsetWidth,U=(H=f.current)==null?void 0:H.offsetWidth;D>0?I=Math.min(0,d+D):L=-(U-L)&&(I=Math.max(d+D,L-U)):I=0,y(I)},T=D=>{const{type:I}=D;let L=0;I==="wheel"&&(L=D.deltaY?D.deltaY*2:-(D.detail||0)*2),E(L)},j=D=>{S(closeTagByKey(D)).then(({payload:I})=>{let L={};const{tagIndex:U,tagsList:K}=I,H=K.length;D===x&&(U<=H-1?L=K[U]:L=K[H-1],b(L==null?void 0:L.fullPath))})},R=D=>{$(D),b(D)};function C(){return new Date().getTime().toString()}const M=()=>{_.findIndex(I=>I.fullPath===x)>=0&&b(x,{replace:!0,state:{key:C()}})};return jsxRuntimeExports.jsxs("div",{className:o.layout_tags,children:[jsxRuntimeExports.jsx(Button,{className:`${o.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(LeftOutlined,{}),size:"small",onClick:()=>E(200)}),jsxRuntimeExports.jsx("div",{ref:c,className:`${o.layout_tags}__main`,onWheel:T,children:jsxRuntimeExports.jsx("div",{ref:f,className:`${o.layout_tags}__main-body`,style:{left:`${d}px`},children:_.map(D=>{var I,L;return jsxRuntimeExports.jsx("span",{"data-path":D.fullPath,children:jsxRuntimeExports.jsx(TagItem,{name:(I=D.meta)==null?void 0:I.title,active:x===D.fullPath,fixed:(L=D.meta)==null?void 0:L.affix,onClick:()=>R(D.fullPath),closeTag:()=>j(D.fullPath)},D.key)},D.fullPath)})})}),jsxRuntimeExports.jsx(Button,{className:`${o.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(RightOutlined,{}),size:"small",onClick:()=>E(-200)}),jsxRuntimeExports.jsx(Button,{className:classNames(`${o.layout_tags}__btn`,`${o.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(RedoOutlined,{}),size:"small",onClick:()=>M()}),jsxRuntimeExports.jsx(Dropdown,{menu:{items:a,onClick:s},placement:"bottomLeft",children:jsxRuntimeExports.jsx(Button,{className:classNames(`${o.layout_tags}__btn`,`${o.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(CloseOutlined,{}),size:"small"})})]})};function LayoutBreadcrumb(o){const{show:a=!0}=o;if(!a)return null;const[s,c]=reactExports.useState([]),{pathname:f}=useLocation(),d=useAppSelector(y=>y.menu.menuList);return reactExports.useEffect(()=>{const g=(matchRoutes(d,f)||[]).map(b=>{const{name:_,icon:S=""}=b==null?void 0:b.route;return{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[S&&jsxRuntimeExports.jsx(SvgIcon,{name:S,style:{marginRight:8}}),jsxRuntimeExports.jsx("span",{children:_})]})}});c(g)},[f]),jsxRuntimeExports.jsx("div",{className:"flex-center-v",style:{padding:"0 16px"},children:jsxRuntimeExports.jsx(Breadcrumb,{items:s})})}const unfold="_unfold_18kbu_6",style={"compo_fold-trigger":"_compo_fold-trigger_18kbu_1",unfold};function FoldTrigger(){const o=useAppSelector(c=>{var f,d;return(d=(f=c.app.appConfig)==null?void 0:f.menuSetting)==null?void 0:d.menuFold}),a=useAppDispatch();function s(){a(setAppConfig({menuSetting:{menuFold:!o}}))}return jsxRuntimeExports.jsx("span",{className:classNames(style["compo_fold-trigger"],{[style.unfold]:!o}),onClick:s,children:jsxRuntimeExports.jsx(SvgIcon,{name:"unfold",size:20})})}const useStyles$3=createStyles(({token:o})=>({"layout-header":{flexDirection:"column",height:"auto",background:o.colorBgBase,padding:0,boxShadow:o.boxShadowTertiary}})),LayoutHeader=o=>{const{Header:a}=Layout,{styles:s}=useStyles$3(),{hasCrumbs:c,hasTabs:f}=useGlobalStore();return jsxRuntimeExports.jsxs(a,{className:classNames("flex-between-h",s["layout-header"]),children:[jsxRuntimeExports.jsxs("div",{className:"flex-between-h",style:{padding:"0 12px"},children:[jsxRuntimeExports.jsxs("div",{className:"flex-center-v",children:[jsxRuntimeExports.jsx(FoldTrigger,{}),jsxRuntimeExports.jsx(LayoutBreadcrumb,{show:c})]}),jsxRuntimeExports.jsx(LayoutFeature,{})]}),f?jsxRuntimeExports.jsx(LayoutTags,{}):null]})},useStyles$2=createStyles(({token:o})=>({layout_wrapper:{display:"flex",width:"100%",height:"100vh",overflowX:"hidden",background:o.colorBgContainer,".ant-layout-content":{height:"calc(100vh - 48px)",boxSizing:"border-box",flex:"1",padding:o.paddingMD,overflowX:"hidden"},".ant-layout-sider":{height:"calc(100vh)",borderInlineEnd:"1px solid rgba(5, 5, 5, 0.06)",marginInlineEnd:"-1px"},".ant-layout":{background:o.colorBgContainer}}})),getOpenKeys=o=>{let a="";const s=[];return o.split("/").forEach(c=>{c&&(a+=`/${c}`,s.push(a))}),s.slice(0,-1)},getItem=(o,a,s,c,f)=>({label:o,key:a,icon:s,children:c,type:f}),LayoutMenu=o=>{const{pathname:a}=useLocation(),{setMenuList:s}=o,[c,f]=reactExports.useState(!1),[d,y]=reactExports.useState([]),[g,b]=reactExports.useState([]),[_,S]=reactExports.useState([a]);reactExports.useEffect(()=>{S([a]),b(getOpenKeys(a))},[a]);const x=(j,R)=>j?jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(SvgIcon,{name:j,size:R||16})}):null,$=(j,R=[])=>(j.forEach(C=>{var M;if(!((M=C==null?void 0:C.children)!=null&&M.length))return R.push(getItem(C.name,C.path,x(C.icon,C.iconSize)));R.push(getItem(C.name,C.path,x(C.icon,C.iconSize),$(C.children)))}),R),A=()=>Ee(void 0,null,function*(){f(!0);try{const j=yield getAsyncMenus();y($(j)),s(j)}finally{f(!1)}});reactExports.useEffect(()=>{A()},[]);const P=j=>{if(j.length===0||j.length===1)return b(j);const R=j[j.length-1];if(R.includes(j[0]))return b(j);b([R])},E=useNavigate(),T=({key:j})=>{E(j)};return jsxRuntimeExports.jsx("div",{className:"layout_menu",children:jsxRuntimeExports.jsx(Spin,{spinning:c,tip:"Loading...",children:jsxRuntimeExports.jsx(Menu,{style:{border:"none"},mode:"inline",triggerSubMenuAction:"click",inlineIndent:20,subMenuOpenDelay:.2,openKeys:g,selectedKeys:_,items:d,onClick:T,onOpenChange:P})})})},mapStateToProps=o=>o.menu,mapDispatchToProps={setMenuList},LayoutMenu$1=connect(mapStateToProps,mapDispatchToProps)(LayoutMenu),BasicLayout=o=>{const{state:a}=useLocation(),{key:s="key"}=a||{};useTitle();const{Sider:c,Content:f}=Layout,{styles:d}=useStyles$2(),y=useAppSelector(g=>{var b,_;return(_=(b=g.app.appConfig)==null?void 0:b.menuSetting)==null?void 0:_.menuFold});return jsxRuntimeExports.jsxs(Layout,{className:d.layout_wrapper,children:[jsxRuntimeExports.jsxs(c,{width:240,trigger:null,theme:"light",collapsed:y,className:"ant-layout-sider",children:[jsxRuntimeExports.jsx(AppLogo,{}),jsxRuntimeExports.jsx(LayoutMenu$1,{})]}),jsxRuntimeExports.jsxs(Layout,{children:[jsxRuntimeExports.jsx(LayoutHeader,{}),jsxRuntimeExports.jsx(f,{children:jsxRuntimeExports.jsx(ErrorBoundary,{children:jsxRuntimeExports.jsx(Outlet,{},s)})})]})]})},GuardRoute=({children:o})=>{const a=["/","/home","/login"],{pathname:s}=useLocation(),{token:c}=useAppSelector(d=>d.user);return(()=>c||getAuthCache(TOKEN_KEY))()?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:o}):a.includes(s)?jsxRuntimeExports.jsx(Navigate,{to:"/login",replace:!0}):jsxRuntimeExports.jsx(Navigate,{to:`/login?redirect=${s}`,replace:!0})},LayoutGuard=()=>jsxRuntimeExports.jsx(GuardRoute,{children:jsxRuntimeExports.jsx(BasicLayout,{})}),CompoRoute={path:"/compo",name:"Compo",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"组件",icon:"compo",orderNo:6},children:[{path:"image-upload",name:"ImageUpload",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../image-upload-606cc471.js"),["assets/image-upload-606cc471.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/websiteSetting-f431f8d1.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"图片上传",key:"imageUpload"}},{path:"drag",name:"Drag",meta:{title:"拖拽"},children:[{path:"drag-list",name:"DragList",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-list-ae49cfd4.js"),["assets/drag-list-ae49cfd4.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/websiteSetting-f431f8d1.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"列表拖拽",key:"dragList"}},{path:"drag-resize",name:"DragResize",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-resize-688f01ae.js"),["assets/drag-resize-688f01ae.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/websiteSetting-f431f8d1.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"组件拖拽",key:"dragResize"}}]},{path:"transfer",name:"Transfer",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-c347f4c7.js"),["assets/index-c347f4c7.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/websiteSetting-f431f8d1.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"穿梭框"}},{path:"count-up",name:"CountUp",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../count-up-8a403ad4.js"),["assets/count-up-8a403ad4.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/index-cf1f4c7e.js","assets/websiteSetting-f431f8d1.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"数字滚动",key:"countUp"}}]},__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:CompoRoute},Symbol.toStringTag,{value:"Module"}));var ExceptionEnum=(o=>(o[o.PAGE_NOT_ACCESS=403]="PAGE_NOT_ACCESS",o[o.PAGE_NOT_FOUND=404]="PAGE_NOT_FOUND",o[o.SERVER_ERROR=500]="SERVER_ERROR",o))(ExceptionEnum||{});const ExceptionRoute={path:"/exception",name:"ExceptionPage",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"异常页面",icon:"bug",orderNo:11},children:[{path:"page-403",name:"Page403",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"403页面",key:"page403"},loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!0})},{path:"page-404",name:"Page404",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"404页面",key:"page404"},loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!0})},{path:"page-500",name:"Page500",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"500页面",key:"page500"},loader:()=>({status:ExceptionEnum.SERVER_ERROR,withCard:!0})}]},__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:ExceptionRoute},Symbol.toStringTag,{value:"Module"})),FormRoute={path:"/form",name:"Form",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"表单",icon:"form",orderNo:3},children:[{path:"basic-form",name:"BasicForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-8f4985b6.js"),["assets/index-8f4985b6.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/websiteSetting-f431f8d1.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"基础表单",key:"basicForm"}},{path:"search-form",name:"SearchForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-9140f0f3.js"),["assets/index-9140f0f3.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/index-7c24f5a1.js","assets/websiteSetting-f431f8d1.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"查询表单",key:"searchForm"}}]},__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormRoute},Symbol.toStringTag,{value:"Module"})),HomePage=lazy$2(()=>__vitePreload(()=>import("../index-930d4838.js"),["assets/index-930d4838.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/index-b802f706.js","assets/Translatex-55ea8b90.js","assets/index-cf1f4c7e.js","assets/index-7c24f5a1.js"])),HomeRoute={path:"/home",element:jsxRuntimeExports.jsx(LayoutGuard,{}),loader:()=>null,meta:{title:"首页",icon:"home",affix:!0,orderNo:1,hideChildrenInMenu:!0},children:[{path:"",element:LazyLoad(HomePage),meta:{title:"首页",key:"home",icon:"home",orderNo:1,hideMenu:!0}}]},__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:HomeRoute},Symbol.toStringTag,{value:"Module"})),UserRoute={path:"/user",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"用户管理",icon:"ic_user",orderNo:2,iconSize:20},children:[{path:"profile",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-2f75a102.js"),["assets/index-2f75a102.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/Translatex-55ea8b90.js","assets/index-b802f706.js"]))),meta:{title:"个人中心",key:"profile"}},{path:"user-list",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-8336906c.js"),["assets/index-8336906c.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/index-b802f706.js","assets/Translatex-55ea8b90.js"]))),meta:{title:"用户列表",key:"userList"}},{path:"add-user",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-d1a5b8f7.js"),["assets/index-d1a5b8f7.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/Translatex-55ea8b90.js"]))),meta:{title:"添加用户",key:"addUser"}}]},__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:UserRoute},Symbol.toStringTag,{value:"Module"})),subTitleMap=new Map([[403,"对不起,您没有权限访问此页面。"],[404,"对不起,您访问的页面不存在。"],[500,"对不起,服务器发生错误。"]]),PageException=()=>{const o=useNavigate(),{status:a,withCard:s}=useLoaderData(),c=()=>{o("/home")},f=({children:d})=>s?jsxRuntimeExports.jsx(Card,{bordered:!1,children:d}):jsxRuntimeExports.jsx("div",{className:"flex-center",style:{height:"100vh"},children:d});return jsxRuntimeExports.jsx(f,{children:jsxRuntimeExports.jsx(Result,{title:a,icon:jsxRuntimeExports.jsx(SvgIcon,{size:380,name:a}),subTitle:subTitleMap.get(a),extra:jsxRuntimeExports.jsx(Button,{type:"primary",onClick:c,children:"返回首页"})})})},index=Object.freeze(Object.defineProperty({__proto__:null,default:PageException},Symbol.toStringTag,{value:"Module"})),illustrationDashboard="/react-antd-admin-pnpm/assets/illustration_dashboard-e36a7900.png",overlay="/react-antd-admin-pnpm/assets/overlay_2-613a921a.jpg",useStyles$1=createStyles(({token:o})=>({"login-container":{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center",height:"100vh"},"login-img":{maxWidth:"560px",height:"auto"},"login-form":{padding:`${o.paddingLG*7}px ${o.paddingLG*5}px`,".title":{margin:0},".login-info":{margin:`${o.marginLG}px 0`},".login-btn":{backgroundColor:o.colorDefault}},"login-left":{gap:"80px",flexGrow:1,height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",background:`linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)) center center / cover no-repeat, url(${overlay})`,".logo":{width:"100%",padding:o.paddingSM,position:"absolute",top:0,left:0,svg:{color:o.colorPrimary}}}})),{Title,Text}=Typography,LoginPage=()=>{const[o]=Form.useForm(),a=reactExports.useRef(null),[s,c]=reactExports.useState(!1),{styles:f}=useStyles$1(),d=useAppDispatch(),{token:y,sessionTimeout:g}=useAppSelector(E=>E.user),b=()=>y||getAuthCache(TOKEN_KEY),_=useNavigate(),[S]=useSearchParams(),x=E=>Ee(void 0,null,function*(){try{c(!0),(yield $({username:E.username,password:E.password}))&&message.success("登陆成功!")}catch(T){message.error(T.message)}finally{c(!1)}}),$=E=>Ee(void 0,null,function*(){try{const T=E,{goHome:j=!0}=T,R=Pe(T,["goHome"]),C=yield loginApi(R);return d(setToken(C==null?void 0:C.token)),yield A(j)}catch(j){return Promise.reject(j)}}),A=E=>Ee(void 0,null,function*(){if(!b())return null;const T=yield P();if(g)d(setSessionTimeout(!1));else{const j=S.get("redirect");j?_(j):E&&_((T==null?void 0:T.homePath)||"/home")}return T}),P=()=>Ee(void 0,null,function*(){if(!b())return null;const E=yield getUserInfo();return d(setUserInfo(E)),E});return jsxRuntimeExports.jsxs("div",{className:f["login-container"],children:[jsxRuntimeExports.jsxs("div",{className:f["login-left"],children:[jsxRuntimeExports.jsx(Title,{className:"logo",level:3,children:jsxRuntimeExports.jsx(SvgIcon,{name:"logo",size:30})}),jsxRuntimeExports.jsx(Title,{level:2,children:"Hi, 欢迎回来!"}),jsxRuntimeExports.jsx("img",{src:illustrationDashboard,alt:"",className:f["login-img"]})]}),jsxRuntimeExports.jsxs("div",{className:f["login-form"],children:[jsxRuntimeExports.jsxs("div",{className:"login-info",children:[jsxRuntimeExports.jsx(Title,{className:"title",level:3,children:"登录 Gbeata Admin"}),jsxRuntimeExports.jsxs(Text,{type:"secondary",children:[" ","新用户?",jsxRuntimeExports.jsx(Button,{type:"link",style:{padding:0},color:"primary",children:"立即注册"})]}),jsxRuntimeExports.jsx(Alert,{message:"登录信息: 用户名:admin 密码:123456",type:"info",showIcon:!0})]}),jsxRuntimeExports.jsxs(Form,{ref:a,form:o,initialValues:{username:"admin",password:"123456",remember:!0},className:"login-box-form",onFinish:x,children:[jsxRuntimeExports.jsx(Form.Item,{name:"username",rules:[{required:!0,message:"请输入账号"}],children:jsxRuntimeExports.jsx(Input,{placeholder:"请输入账号",size:"large",prefix:jsxRuntimeExports.jsx(UserOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsx(Form.Item,{name:"password",rules:[{required:!0,message:"请输入密码"}],children:jsxRuntimeExports.jsx(Input,{type:"password",placeholder:"请输入密码",size:"large",prefix:jsxRuntimeExports.jsx(LockOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsxs(Form.Item,{children:[jsxRuntimeExports.jsx(Form.Item,{name:"remember",className:classNames("fl","no-margin"),valuePropName:"checked",children:jsxRuntimeExports.jsx(Checkbox,{children:"记住我"})}),jsxRuntimeExports.jsx(Form.Item,{className:classNames("fr","no-margin"),children:jsxRuntimeExports.jsx("a",{href:"",children:"忘记密码?"})})]}),jsxRuntimeExports.jsx(Form.Item,{children:jsxRuntimeExports.jsx(Button,{type:"primary",block:!0,htmlType:"submit",size:"large",className:"login-btn",loading:s,children:"登 录"})})]})]})]})},metaRoutes=Object.assign({"./routes/compo.tsx":__vite_glob_0_0$1,"./routes/exception.tsx":__vite_glob_0_1$1,"./routes/form.tsx":__vite_glob_0_2$1,"./routes/home.tsx":__vite_glob_0_3,"./routes/user.tsx":__vite_glob_0_4}),routeList=[];Object.keys(metaRoutes).forEach(o=>{const a=metaRoutes[o].default||{},s=Array.isArray(a)?[...a]:[a];genFullPath(s),routeList.push(...s)});const rootRoutes=[{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/home"})},{path:"/login",element:jsxRuntimeExports.jsx(LoginPage,{}),meta:{title:"登录页",key:"login"},loader:()=>getAuthCache(TOKEN_KEY)?redirect("/"):null},...routeList,{path:"*",element:jsxRuntimeExports.jsx(Navigate,{to:"/404"})},{path:"/403",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!1})},{path:"/404",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!1})}],router=createHashRouter(rootRoutes),CustomGlobal=createGlobalStyle` +`):" "+renderReason(d[0]):"as no adapter specified";throw new AxiosError("There is no suitable adapter to dispatch the request "+y,"ERR_NOT_SUPPORT")}return c},adapters:knownAdapters};function throwIfCancellationRequested(o){if(o.cancelToken&&o.cancelToken.throwIfRequested(),o.signal&&o.signal.aborted)throw new CanceledError(null,o)}function dispatchRequest(o){return throwIfCancellationRequested(o),o.headers=AxiosHeaders$1.from(o.headers),o.data=transformData.call(o,o.transformRequest),["post","put","patch"].indexOf(o.method)!==-1&&o.headers.setContentType("application/x-www-form-urlencoded",!1),adapters.getAdapter(o.adapter||defaults$1.adapter)(o).then(function(c){return throwIfCancellationRequested(o),c.data=transformData.call(o,o.transformResponse,c),c.headers=AxiosHeaders$1.from(c.headers),c},function(c){return isCancel(c)||(throwIfCancellationRequested(o),c&&c.response&&(c.response.data=transformData.call(o,o.transformResponse,c.response),c.response.headers=AxiosHeaders$1.from(c.response.headers))),Promise.reject(c)})}const headersToObject=o=>o instanceof AxiosHeaders$1?o.toJSON():o;function mergeConfig(o,a){a=a||{};const s={};function c(_,S,x){return utils$1.isPlainObject(_)&&utils$1.isPlainObject(S)?utils$1.merge.call({caseless:x},_,S):utils$1.isPlainObject(S)?utils$1.merge({},S):utils$1.isArray(S)?S.slice():S}function f(_,S,x){if(utils$1.isUndefined(S)){if(!utils$1.isUndefined(_))return c(void 0,_,x)}else return c(_,S,x)}function d(_,S){if(!utils$1.isUndefined(S))return c(void 0,S)}function y(_,S){if(utils$1.isUndefined(S)){if(!utils$1.isUndefined(_))return c(void 0,_)}else return c(void 0,S)}function g(_,S,x){if(x in a)return c(_,S);if(x in o)return c(void 0,_)}const b={url:d,method:d,data:d,baseURL:y,transformRequest:y,transformResponse:y,paramsSerializer:y,timeout:y,timeoutMessage:y,withCredentials:y,withXSRFToken:y,adapter:y,responseType:y,xsrfCookieName:y,xsrfHeaderName:y,onUploadProgress:y,onDownloadProgress:y,decompress:y,maxContentLength:y,maxBodyLength:y,beforeRedirect:y,transport:y,httpAgent:y,httpsAgent:y,cancelToken:y,socketPath:y,responseEncoding:y,validateStatus:g,headers:(_,S)=>f(headersToObject(_),headersToObject(S),!0)};return utils$1.forEach(Object.keys(Object.assign({},o,a)),function(S){const x=b[S]||f,$=x(o[S],a[S],S);utils$1.isUndefined($)&&x!==g||(s[S]=$)}),s}const VERSION="1.6.5",validators$1={};["object","boolean","number","function","string","symbol"].forEach((o,a)=>{validators$1[o]=function(c){return typeof c===o||"a"+(a<1?"n ":" ")+o}});const deprecatedWarnings={};validators$1.transitional=function(a,s,c){function f(d,y){return"[Axios v"+VERSION+"] Transitional option '"+d+"'"+y+(c?". "+c:"")}return(d,y,g)=>{if(a===!1)throw new AxiosError(f(y," has been removed"+(s?" in "+s:"")),AxiosError.ERR_DEPRECATED);return s&&!deprecatedWarnings[y]&&(deprecatedWarnings[y]=!0),a?a(d,y,g):!0}};function assertOptions(o,a,s){if(typeof o!="object")throw new AxiosError("options must be an object",AxiosError.ERR_BAD_OPTION_VALUE);const c=Object.keys(o);let f=c.length;for(;f-- >0;){const d=c[f],y=a[d];if(y){const g=o[d],b=g===void 0||y(g,d,o);if(b!==!0)throw new AxiosError("option "+d+" must be "+b,AxiosError.ERR_BAD_OPTION_VALUE);continue}if(s!==!0)throw new AxiosError("Unknown option "+d,AxiosError.ERR_BAD_OPTION)}}const validator={assertOptions,validators:validators$1},validators=validator.validators;class Axios{constructor(a){this.defaults=a,this.interceptors={request:new InterceptorManager$1,response:new InterceptorManager$1}}request(a,s){typeof a=="string"?(s=s||{},s.url=a):s=a||{},s=mergeConfig(this.defaults,s);const{transitional:c,paramsSerializer:f,headers:d}=s;c!==void 0&&validator.assertOptions(c,{silentJSONParsing:validators.transitional(validators.boolean),forcedJSONParsing:validators.transitional(validators.boolean),clarifyTimeoutError:validators.transitional(validators.boolean)},!1),f!=null&&(utils$1.isFunction(f)?s.paramsSerializer={serialize:f}:validator.assertOptions(f,{encode:validators.function,serialize:validators.function},!0)),s.method=(s.method||this.defaults.method||"get").toLowerCase();let y=d&&utils$1.merge(d.common,d[s.method]);d&&utils$1.forEach(["delete","get","head","post","put","patch","common"],P=>{delete d[P]}),s.headers=AxiosHeaders$1.concat(y,d);const g=[];let b=!0;this.interceptors.request.forEach(function(E){typeof E.runWhen=="function"&&E.runWhen(s)===!1||(b=b&&E.synchronous,g.unshift(E.fulfilled,E.rejected))});const _=[];this.interceptors.response.forEach(function(E){_.push(E.fulfilled,E.rejected)});let S,x=0,$;if(!b){const P=[dispatchRequest.bind(this),void 0];for(P.unshift.apply(P,g),P.push.apply(P,_),$=P.length,S=Promise.resolve(s);x<$;)S=S.then(P[x++],P[x++]);return S}$=g.length;let A=s;for(x=0;x<$;){const P=g[x++],E=g[x++];try{A=P(A)}catch(T){E.call(this,T);break}}try{S=dispatchRequest.call(this,A)}catch(P){return Promise.reject(P)}for(x=0,$=_.length;x<$;)S=S.then(_[x++],_[x++]);return S}getUri(a){a=mergeConfig(this.defaults,a);const s=buildFullPath(a.baseURL,a.url);return buildURL(s,a.params,a.paramsSerializer)}}utils$1.forEach(["delete","get","head","options"],function(a){Axios.prototype[a]=function(s,c){return this.request(mergeConfig(c||{},{method:a,url:s,data:(c||{}).data}))}});utils$1.forEach(["post","put","patch"],function(a){function s(c){return function(d,y,g){return this.request(mergeConfig(g||{},{method:a,headers:c?{"Content-Type":"multipart/form-data"}:{},url:d,data:y}))}}Axios.prototype[a]=s(),Axios.prototype[a+"Form"]=s(!0)});const Axios$1=Axios;class CancelToken{constructor(a){if(typeof a!="function")throw new TypeError("executor must be a function.");let s;this.promise=new Promise(function(d){s=d});const c=this;this.promise.then(f=>{if(!c._listeners)return;let d=c._listeners.length;for(;d-- >0;)c._listeners[d](f);c._listeners=null}),this.promise.then=f=>{let d;const y=new Promise(g=>{c.subscribe(g),d=g}).then(f);return y.cancel=function(){c.unsubscribe(d)},y},a(function(d,y,g){c.reason||(c.reason=new CanceledError(d,y,g),s(c.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(a){if(this.reason){a(this.reason);return}this._listeners?this._listeners.push(a):this._listeners=[a]}unsubscribe(a){if(!this._listeners)return;const s=this._listeners.indexOf(a);s!==-1&&this._listeners.splice(s,1)}static source(){let a;return{token:new CancelToken(function(f){a=f}),cancel:a}}}const CancelToken$1=CancelToken;function spread(o){return function(s){return o.apply(null,s)}}function isAxiosError(o){return utils$1.isObject(o)&&o.isAxiosError===!0}const HttpStatusCode={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(HttpStatusCode).forEach(([o,a])=>{HttpStatusCode[a]=o});const HttpStatusCode$1=HttpStatusCode;function createInstance(o){const a=new Axios$1(o),s=bind(Axios$1.prototype.request,a);return utils$1.extend(s,Axios$1.prototype,a,{allOwnKeys:!0}),utils$1.extend(s,a,null,{allOwnKeys:!0}),s.create=function(f){return createInstance(mergeConfig(o,f))},s}const axios=createInstance(defaults$1);axios.Axios=Axios$1;axios.CanceledError=CanceledError;axios.CancelToken=CancelToken$1;axios.isCancel=isCancel;axios.VERSION=VERSION;axios.toFormData=toFormData;axios.AxiosError=AxiosError;axios.Cancel=axios.CanceledError;axios.all=function(a){return Promise.all(a)};axios.spread=spread;axios.isAxiosError=isAxiosError;axios.mergeConfig=mergeConfig;axios.AxiosHeaders=AxiosHeaders$1;axios.formToJSON=o=>formDataToJSON(utils$1.isHTMLForm(o)?new FormData(o):o);axios.getAdapter=adapters.getAdapter;axios.HttpStatusCode=HttpStatusCode$1;axios.default=axios;const axios$1=axios,service=axios$1.create({baseURL:"/api",timeout:10*1e3}),handleError=o=>{var a,s;return(((a=o.response)==null?void 0:a.status)===401||((s=o.response)==null?void 0:s.status)===504)&&(clearAuthCache(),location.href="/login"),message.error(o.message||"error"),Promise.reject(o)};service.interceptors.request.use(o=>{const a=getToken();return a&&(o.headers.Authorization=`${a}`),o.headers["Content-Type"]="application/json",o},handleError);service.interceptors.response.use(o=>{const{data:a}=o;return a.code===0?a.data:(message.error(a.message),Promise.reject("error"))},handleError);function loginApi(o){return service({url:"/login",method:"post",data:o})}function getUserInfo(){return service({url:"/getUserInfo",method:"get"})}function logoutApi(){return service({url:"/logout",method:"get"})}function getJueJinList(o){return service({url:"article/queryList",method:"post",data:o})}function getUsersList(){return service({url:"user/getUserList",method:"get"})}const headerImg="/react-antd-admin-pnpm/assets/avatar-9ee092e3.jpeg";function UserDropdown(){const{createConfirm:o,contextHolder:a}=useMessage(),s=[{key:"lock",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(LockOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:"锁定屏幕"})]})},{key:"logout",label:jsxRuntimeExports.jsxs(Space,{size:4,children:[jsxRuntimeExports.jsx(PoweroffOutlined,{rev:void 0}),jsxRuntimeExports.jsx("span",{children:"退出登录"})]})}],c=({key:S})=>{switch(S){case"lock":break;case"logout":b();break}},f=useNavigate(),d=useAppDispatch(),{token:y}=useAppSelector(S=>S.user),g=()=>y||getAuthCache(TOKEN_KEY),b=()=>{o({title:jsxRuntimeExports.jsx("span",{children:"温馨提醒"}),content:jsxRuntimeExports.jsx("span",{children:"是否确认退出系统?"}),onOk:()=>Ee(this,null,function*(){yield _(!0)})})},_=(S=!1)=>Ee(this,null,function*(){if(g())try{yield logoutApi()}catch(x){const{createMessage:$}=useMessage();$.error("注销失败!")}d(resetState()),clearAuthCache(),S&&f("/login")});return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[a,jsxRuntimeExports.jsx(Dropdown,{menu:{items:s,onClick:c},placement:"bottomRight",arrow:!0,children:jsxRuntimeExports.jsx("span",{className:"flex-center",style:{cursor:"pointer"},children:jsxRuntimeExports.jsx("img",{src:headerImg,style:{width:"24px",height:"24px",borderRadius:"50%"},alt:""})})})]})}function LayoutFeature(){return jsxRuntimeExports.jsxs(Space,{size:"middle",children:[jsxRuntimeExports.jsx(GlobalSearch,{}),jsxRuntimeExports.jsx(DocLink,{}),jsxRuntimeExports.jsx(GithubLink,{}),jsxRuntimeExports.jsx(Settings,{}),jsxRuntimeExports.jsx(UserDropdown,{})]})}const useStyles$5=createStyles(({token:o},a)=>{const{active:s}=a;return{"compo_tag-item":{display:"inline-block",verticalAlign:"top",height:"24px",margin:"0 2px",padding:"0 8px",borderRadius:"3px",lineHeight:"24px",color:s?"#fff":"#555",background:s?o.colorPrimary:"#fff",overflow:"hidden",cursor:"pointer","&__dot":{display:"inline-block",verticalAlign:"baseline",width:"8px",height:"8px",marginRight:"6px",borderRadius:"50%",background:s?"#fff":"#dcdee0"},"&__name":{fontSize:"12px"}},verticalAlign:"baseline",svg:{width:"8px",height:"8px"},active:{border:"none",color:"#fff",background:o.colorPrimary,".anticon-close":{color:"#fff"}}}}),TagItem=({name:o,fixed:a,active:s=!1,closeTag:c,onClick:f})=>{const{styles:d}=useStyles$5({active:s});return jsxRuntimeExports.jsxs(Tag,{className:classNames(d["compo_tag-item"],{[d.active]:s}),closable:!a,onClose:c,onClick:f,children:[jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__dot`}),jsxRuntimeExports.jsx("span",{className:`${d["compo_tag-item"]}__name`,children:o})]})},useStyles$4=createStyles(()=>({layout_tags:{zIndex:"299",display:"flex",justifyContent:"space-between",height:"32px",padding:"4px 12px",lineHeight:"32px","&__main":{position:"relative",width:"calc(100% - 116px)",height:"24px",overflow:"hidden","&-body":{position:"absolute",height:"100%",padding:"0 2px",overflow:"visible",whiteSpace:"nowrap",transition:"left .5s ease"}},"&__btn-space":{marginLeft:"4px"}}})),LayoutTags=()=>{const{styles:o}=useStyles$4(),a=[{key:"left",label:"关闭左侧"},{key:"right",label:"关闭右侧"},{key:"other",label:"关闭其它"},{key:"all",label:"关闭所有"}],s=({key:D})=>{D==="all"?S(closeAllTags()).then(({payload:I})=>{const L=I.slice(-1)[0];x!==(L==null?void 0:L.fullPath)&&b(L==null?void 0:L.fullPath)}):S(closeTagsByType({type:D,path:x}))},c=reactExports.useRef(null),f=reactExports.useRef(null),[d,y]=reactExports.useState(0),{pathname:g}=useLocation(),b=useNavigate(),_=useAppSelector(D=>D.tags.visitedTags),S=useAppDispatch(),[x,$]=reactExports.useState(g);reactExports.useEffect(()=>{A(routeList).forEach(I=>{S(addVisitedTags(I))})},[]),reactExports.useEffect(()=>{const D=searchRoute(g,routeList);D&&S(addVisitedTags(D)),$(g)},[g]),reactExports.useEffect(()=>{var L;const D=(L=f.current)==null?void 0:L.childNodes,I=Array.from(D).find(U=>U.dataset.path===x);P(I)},[x]);const A=(D,I="/")=>{const L=[],U=K=>{var H;if((H=K.meta)!=null&&H.affix){const N=K.path.startsWith("/")?K.path:I+K.path;L.push(_e(ie({},K),{path:N}))}K.children&&K.children.length&&K.children.forEach(N=>U(N))};return D.forEach(K=>U(K)),L},P=D=>{var H,N,X,Y,oe,ae,B,V,G,Z,te;let I=0;const L=4,U=(H=c.current)==null?void 0:H.offsetWidth;((N=f.current)==null?void 0:N.offsetWidth)-d&&((ae=D==null?void 0:D.offsetLeft)!=null?ae:0)+((B=D==null?void 0:D.offsetWidth)!=null?B:0)<-d+U?I=Math.min(0,U-((V=D==null?void 0:D.offsetWidth)!=null?V:0)-((G=D==null?void 0:D.offsetLeft)!=null?G:0)-L):I=-(((Z=D==null?void 0:D.offsetLeft)!=null?Z:0)-(U-L-((te=D==null?void 0:D.offsetWidth)!=null?te:0))),y(I)},E=D=>{var K,H;let I=0;const L=(K=c.current)==null?void 0:K.offsetWidth,U=(H=f.current)==null?void 0:H.offsetWidth;D>0?I=Math.min(0,d+D):L=-(U-L)&&(I=Math.max(d+D,L-U)):I=0,y(I)},T=D=>{const{type:I}=D;let L=0;I==="wheel"&&(L=D.deltaY?D.deltaY*2:-(D.detail||0)*2),E(L)},j=D=>{S(closeTagByKey(D)).then(({payload:I})=>{let L={};const{tagIndex:U,tagsList:K}=I,H=K.length;D===x&&(U<=H-1?L=K[U]:L=K[H-1],b(L==null?void 0:L.fullPath))})},R=D=>{$(D),b(D)};function C(){return new Date().getTime().toString()}const M=()=>{_.findIndex(I=>I.fullPath===x)>=0&&b(x,{replace:!0,state:{key:C()}})};return jsxRuntimeExports.jsxs("div",{className:o.layout_tags,children:[jsxRuntimeExports.jsx(Button,{className:`${o.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(LeftOutlined,{}),size:"small",onClick:()=>E(200)}),jsxRuntimeExports.jsx("div",{ref:c,className:`${o.layout_tags}__main`,onWheel:T,children:jsxRuntimeExports.jsx("div",{ref:f,className:`${o.layout_tags}__main-body`,style:{left:`${d}px`},children:_.map(D=>{var I,L;return jsxRuntimeExports.jsx("span",{"data-path":D.fullPath,children:jsxRuntimeExports.jsx(TagItem,{name:(I=D.meta)==null?void 0:I.title,active:x===D.fullPath,fixed:(L=D.meta)==null?void 0:L.affix,onClick:()=>R(D.fullPath),closeTag:()=>j(D.fullPath)},D.key)},D.fullPath)})})}),jsxRuntimeExports.jsx(Button,{className:`${o.layout_tags}__btn`,icon:jsxRuntimeExports.jsx(RightOutlined,{}),size:"small",onClick:()=>E(-200)}),jsxRuntimeExports.jsx(Button,{className:classNames(`${o.layout_tags}__btn`,`${o.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(RedoOutlined,{}),size:"small",onClick:()=>M()}),jsxRuntimeExports.jsx(Dropdown,{menu:{items:a,onClick:s},placement:"bottomLeft",children:jsxRuntimeExports.jsx(Button,{className:classNames(`${o.layout_tags}__btn`,`${o.layout_tags}__btn-space`),icon:jsxRuntimeExports.jsx(CloseOutlined,{}),size:"small"})})]})};function LayoutBreadcrumb(o){const{show:a=!0}=o;if(!a)return null;const[s,c]=reactExports.useState([]),{pathname:f}=useLocation(),d=useAppSelector(y=>y.menu.menuList);return reactExports.useEffect(()=>{const g=(matchRoutes(d,f)||[]).map(b=>{const{name:_,icon:S=""}=b==null?void 0:b.route;return{title:jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment,{children:[S&&jsxRuntimeExports.jsx(SvgIcon,{name:S,style:{marginRight:8}}),jsxRuntimeExports.jsx("span",{children:_})]})}});c(g)},[f]),jsxRuntimeExports.jsx("div",{className:"flex-center-v",style:{padding:"0 16px"},children:jsxRuntimeExports.jsx(Breadcrumb,{items:s})})}const unfold="_unfold_18kbu_6",style={"compo_fold-trigger":"_compo_fold-trigger_18kbu_1",unfold};function FoldTrigger(){const o=useAppSelector(c=>{var f,d;return(d=(f=c.app.appConfig)==null?void 0:f.menuSetting)==null?void 0:d.menuFold}),a=useAppDispatch();function s(){a(setAppConfig({menuSetting:{menuFold:!o}}))}return jsxRuntimeExports.jsx("span",{className:classNames(style["compo_fold-trigger"],{[style.unfold]:!o}),onClick:s,children:jsxRuntimeExports.jsx(SvgIcon,{name:"unfold",size:20})})}const useStyles$3=createStyles(({token:o})=>({"layout-header":{flexDirection:"column",height:"auto",background:o.colorBgBase,padding:0,boxShadow:o.boxShadowTertiary}})),LayoutHeader=o=>{const{Header:a}=Layout,{styles:s}=useStyles$3(),{hasCrumbs:c,hasTabs:f}=useGlobalStore();return jsxRuntimeExports.jsxs(a,{className:classNames("flex-between-h",s["layout-header"]),children:[jsxRuntimeExports.jsxs("div",{className:"flex-between-h",style:{padding:"0 12px"},children:[jsxRuntimeExports.jsxs("div",{className:"flex-center-v",children:[jsxRuntimeExports.jsx(FoldTrigger,{}),jsxRuntimeExports.jsx(LayoutBreadcrumb,{show:c})]}),jsxRuntimeExports.jsx(LayoutFeature,{})]}),f?jsxRuntimeExports.jsx(LayoutTags,{}):null]})},useStyles$2=createStyles(({token:o})=>({layout_wrapper:{display:"flex",width:"100%",height:"100vh",overflowX:"hidden",background:o.colorBgContainer,".ant-layout-content":{height:"calc(100vh - 48px)",boxSizing:"border-box",flex:"1",padding:o.paddingMD,overflowX:"hidden"},".ant-layout-sider":{height:"calc(100vh)",borderInlineEnd:"1px solid rgba(5, 5, 5, 0.06)",marginInlineEnd:"-1px"},".ant-layout":{background:o.colorBgContainer}}})),getOpenKeys=o=>{let a="";const s=[];return o.split("/").forEach(c=>{c&&(a+=`/${c}`,s.push(a))}),s.slice(0,-1)},getItem=(o,a,s,c,f)=>({label:o,key:a,icon:s,children:c,type:f}),LayoutMenu=o=>{const{pathname:a}=useLocation(),{setMenuList:s}=o,[c,f]=reactExports.useState(!1),[d,y]=reactExports.useState([]),[g,b]=reactExports.useState([]),[_,S]=reactExports.useState([a]);reactExports.useEffect(()=>{S([a]),b(getOpenKeys(a))},[a]);const x=(j,R)=>j?jsxRuntimeExports.jsx("span",{className:"anticon",children:jsxRuntimeExports.jsx(SvgIcon,{name:j,size:R||16})}):null,$=(j,R=[])=>(j.forEach(C=>{var M;if(!((M=C==null?void 0:C.children)!=null&&M.length))return R.push(getItem(C.name,C.path,x(C.icon,C.iconSize)));R.push(getItem(C.name,C.path,x(C.icon,C.iconSize),$(C.children)))}),R),A=()=>Ee(void 0,null,function*(){f(!0);try{const j=yield getAsyncMenus();y($(j)),s(j)}finally{f(!1)}});reactExports.useEffect(()=>{A()},[]);const P=j=>{if(j.length===0||j.length===1)return b(j);const R=j[j.length-1];if(R.includes(j[0]))return b(j);b([R])},E=useNavigate(),T=({key:j})=>{E(j)};return jsxRuntimeExports.jsx("div",{className:"layout_menu",children:jsxRuntimeExports.jsx(Spin,{spinning:c,tip:"Loading...",children:jsxRuntimeExports.jsx(Menu,{style:{border:"none"},mode:"inline",triggerSubMenuAction:"click",inlineIndent:20,subMenuOpenDelay:.2,openKeys:g,selectedKeys:_,items:d,onClick:T,onOpenChange:P})})})},mapStateToProps=o=>o.menu,mapDispatchToProps={setMenuList},LayoutMenu$1=connect(mapStateToProps,mapDispatchToProps)(LayoutMenu),BasicLayout=o=>{const{state:a}=useLocation(),{key:s="key"}=a||{};useTitle();const{Sider:c,Content:f}=Layout,{styles:d}=useStyles$2(),y=useAppSelector(g=>{var b,_;return(_=(b=g.app.appConfig)==null?void 0:b.menuSetting)==null?void 0:_.menuFold});return jsxRuntimeExports.jsxs(Layout,{className:d.layout_wrapper,children:[jsxRuntimeExports.jsxs(c,{width:240,trigger:null,theme:"light",collapsed:y,className:"ant-layout-sider",children:[jsxRuntimeExports.jsx(AppLogo,{}),jsxRuntimeExports.jsx(LayoutMenu$1,{})]}),jsxRuntimeExports.jsxs(Layout,{children:[jsxRuntimeExports.jsx(LayoutHeader,{}),jsxRuntimeExports.jsx(f,{children:jsxRuntimeExports.jsx(ErrorBoundary,{children:jsxRuntimeExports.jsx(Outlet,{},s)})})]})]})},GuardRoute=({children:o})=>{const a=["/","/home","/login"],{pathname:s}=useLocation(),{token:c}=useAppSelector(d=>d.user);return(()=>c||getAuthCache(TOKEN_KEY))()?jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment,{children:o}):a.includes(s)?jsxRuntimeExports.jsx(Navigate,{to:"/login",replace:!0}):jsxRuntimeExports.jsx(Navigate,{to:`/login?redirect=${s}`,replace:!0})},LayoutGuard=()=>jsxRuntimeExports.jsx(GuardRoute,{children:jsxRuntimeExports.jsx(BasicLayout,{})}),CompoRoute={path:"/compo",name:"Compo",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"组件",icon:"compo",orderNo:6},children:[{path:"image-upload",name:"ImageUpload",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../image-upload-a998b7bc.js"),["assets/image-upload-a998b7bc.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/websiteSetting-252d9417.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"图片上传",key:"imageUpload"}},{path:"drag",name:"Drag",meta:{title:"拖拽"},children:[{path:"drag-list",name:"DragList",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-list-510d34cf.js"),["assets/drag-list-510d34cf.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/websiteSetting-252d9417.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"列表拖拽",key:"dragList"}},{path:"drag-resize",name:"DragResize",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../drag-resize-b49efc9f.js"),["assets/drag-resize-b49efc9f.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/websiteSetting-252d9417.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"组件拖拽",key:"dragResize"}}]},{path:"transfer",name:"Transfer",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-253ec7c7.js"),["assets/index-253ec7c7.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/websiteSetting-252d9417.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"穿梭框"}},{path:"count-up",name:"CountUp",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../count-up-7eb21939.js"),["assets/count-up-7eb21939.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/index-cf1f4c7e.js","assets/websiteSetting-252d9417.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"数字滚动",key:"countUp"}}]},__vite_glob_0_0$1=Object.freeze(Object.defineProperty({__proto__:null,default:CompoRoute},Symbol.toStringTag,{value:"Module"}));var ExceptionEnum=(o=>(o[o.PAGE_NOT_ACCESS=403]="PAGE_NOT_ACCESS",o[o.PAGE_NOT_FOUND=404]="PAGE_NOT_FOUND",o[o.SERVER_ERROR=500]="SERVER_ERROR",o))(ExceptionEnum||{});const ExceptionRoute={path:"/exception",name:"ExceptionPage",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"异常页面",icon:"bug",orderNo:11},children:[{path:"page-403",name:"Page403",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"403页面",key:"page403"},loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!0})},{path:"page-404",name:"Page404",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"404页面",key:"page404"},loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!0})},{path:"page-500",name:"Page500",element:LazyLoad(lazy$2(()=>__vitePreload(()=>Promise.resolve().then(()=>index),void 0))),meta:{title:"500页面",key:"page500"},loader:()=>({status:ExceptionEnum.SERVER_ERROR,withCard:!0})}]},__vite_glob_0_1$1=Object.freeze(Object.defineProperty({__proto__:null,default:ExceptionRoute},Symbol.toStringTag,{value:"Module"})),FormRoute={path:"/form",name:"Form",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"表单",icon:"form",orderNo:3},children:[{path:"basic-form",name:"BasicForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-8dd9a033.js"),["assets/index-8dd9a033.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/websiteSetting-252d9417.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"基础表单",key:"basicForm"}},{path:"search-form",name:"SearchForm",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-681605cb.js"),["assets/index-681605cb.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/index-e2e572cb.js","assets/websiteSetting-252d9417.js","assets/websiteSetting-bd1a544f.css"]))),meta:{title:"查询表单",key:"searchForm"}}]},__vite_glob_0_2$1=Object.freeze(Object.defineProperty({__proto__:null,default:FormRoute},Symbol.toStringTag,{value:"Module"})),HomePage=lazy$2(()=>__vitePreload(()=>import("../index-c2ab742f.js"),["assets/index-c2ab742f.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/index-4bfef12d.js","assets/Translatex-54c367b9.js","assets/index-cf1f4c7e.js","assets/index-e2e572cb.js"])),HomeRoute={path:"/home",element:jsxRuntimeExports.jsx(LayoutGuard,{}),loader:()=>null,meta:{title:"首页",icon:"home",affix:!0,orderNo:1,hideChildrenInMenu:!0},children:[{path:"",element:LazyLoad(HomePage),meta:{title:"首页",key:"home",icon:"home",orderNo:1,hideMenu:!0}}]},__vite_glob_0_3=Object.freeze(Object.defineProperty({__proto__:null,default:HomeRoute},Symbol.toStringTag,{value:"Module"})),UserRoute={path:"/user",element:jsxRuntimeExports.jsx(LayoutGuard,{}),meta:{title:"用户管理",icon:"ic_user",orderNo:2,iconSize:20},children:[{path:"profile",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-cdb1e580.js"),["assets/index-cdb1e580.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/Translatex-54c367b9.js","assets/index-4bfef12d.js"]))),meta:{title:"个人中心",key:"profile"}},{path:"user-list",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-94ad670d.js"),["assets/index-94ad670d.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/index-4bfef12d.js","assets/Translatex-54c367b9.js"]))),meta:{title:"用户列表",key:"userList"}},{path:"add-user",element:LazyLoad(lazy$2(()=>__vitePreload(()=>import("../index-50b97fc4.js"),["assets/index-50b97fc4.js","assets/antd-f8926cfc.js","assets/react-360e162b.js","assets/Translatex-54c367b9.js"]))),meta:{title:"添加用户",key:"addUser"}}]},__vite_glob_0_4=Object.freeze(Object.defineProperty({__proto__:null,default:UserRoute},Symbol.toStringTag,{value:"Module"})),subTitleMap=new Map([[403,"对不起,您没有权限访问此页面。"],[404,"对不起,您访问的页面不存在。"],[500,"对不起,服务器发生错误。"]]),PageException=()=>{const o=useNavigate(),{status:a,withCard:s}=useLoaderData(),c=()=>{o("/home")},f=({children:d})=>s?jsxRuntimeExports.jsx(Card,{bordered:!1,children:d}):jsxRuntimeExports.jsx("div",{className:"flex-center",style:{height:"100vh"},children:d});return jsxRuntimeExports.jsx(f,{children:jsxRuntimeExports.jsx(Result,{title:a,icon:jsxRuntimeExports.jsx(SvgIcon,{size:380,name:a}),subTitle:subTitleMap.get(a),extra:jsxRuntimeExports.jsx(Button,{type:"primary",onClick:c,children:"返回首页"})})})},index=Object.freeze(Object.defineProperty({__proto__:null,default:PageException},Symbol.toStringTag,{value:"Module"})),illustrationDashboard="/react-antd-admin-pnpm/assets/illustration_dashboard-e36a7900.png",overlay="/react-antd-admin-pnpm/assets/overlay_2-613a921a.jpg",useStyles$1=createStyles(({token:o})=>({"login-container":{display:"flex",alignItems:"center",flexDirection:"row",justifyContent:"center",height:"100vh"},"login-img":{maxWidth:"560px",height:"auto"},"login-form":{padding:`${o.paddingLG*7}px ${o.paddingLG*5}px`,".title":{margin:0},".login-info":{margin:`${o.marginLG}px 0`},".login-btn":{backgroundColor:o.colorDefault}},"login-left":{gap:"80px",flexGrow:1,height:"100%",display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",position:"relative",background:`linear-gradient(rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.88)) center center / cover no-repeat, url(${overlay})`,".logo":{width:"100%",padding:o.paddingSM,position:"absolute",top:0,left:0,svg:{color:o.colorPrimary}}}})),{Title,Text}=Typography,LoginPage=()=>{const[o]=Form.useForm(),a=reactExports.useRef(null),[s,c]=reactExports.useState(!1),{styles:f}=useStyles$1(),d=useAppDispatch(),{token:y,sessionTimeout:g}=useAppSelector(E=>E.user),b=()=>y||getAuthCache(TOKEN_KEY),_=useNavigate(),[S]=useSearchParams(),x=E=>Ee(void 0,null,function*(){try{c(!0),(yield $({username:E.username,password:E.password}))&&message.success("登陆成功!")}catch(T){message.error(T.message)}finally{c(!1)}}),$=E=>Ee(void 0,null,function*(){try{const T=E,{goHome:j=!0}=T,R=Pe(T,["goHome"]),C=yield loginApi(R);return d(setToken(C==null?void 0:C.token)),yield A(j)}catch(j){return Promise.reject(j)}}),A=E=>Ee(void 0,null,function*(){if(!b())return null;const T=yield P();if(g)d(setSessionTimeout(!1));else{const j=S.get("redirect");j?_(j):E&&_((T==null?void 0:T.homePath)||"/home")}return T}),P=()=>Ee(void 0,null,function*(){if(!b())return null;const E=yield getUserInfo();return d(setUserInfo(E)),E});return jsxRuntimeExports.jsxs("div",{className:f["login-container"],children:[jsxRuntimeExports.jsxs("div",{className:f["login-left"],children:[jsxRuntimeExports.jsx(Title,{className:"logo",level:3,children:jsxRuntimeExports.jsx(SvgIcon,{name:"logo",size:30})}),jsxRuntimeExports.jsx(Title,{level:2,children:"Hi, 欢迎回来!"}),jsxRuntimeExports.jsx("img",{src:illustrationDashboard,alt:"",className:f["login-img"]})]}),jsxRuntimeExports.jsxs("div",{className:f["login-form"],children:[jsxRuntimeExports.jsxs("div",{className:"login-info",children:[jsxRuntimeExports.jsx(Title,{className:"title",level:3,children:"登录 Gbeata Admin"}),jsxRuntimeExports.jsxs(Text,{type:"secondary",children:[" ","新用户?",jsxRuntimeExports.jsx(Button,{type:"link",style:{padding:0},color:"primary",children:"立即注册"})]}),jsxRuntimeExports.jsx(Alert,{message:"登录信息: 用户名:admin 密码:123456",type:"info",showIcon:!0})]}),jsxRuntimeExports.jsxs(Form,{ref:a,form:o,initialValues:{username:"admin",password:"123456",remember:!0},className:"login-box-form",onFinish:x,children:[jsxRuntimeExports.jsx(Form.Item,{name:"username",rules:[{required:!0,message:"请输入账号"}],children:jsxRuntimeExports.jsx(Input,{placeholder:"请输入账号",size:"large",prefix:jsxRuntimeExports.jsx(UserOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsx(Form.Item,{name:"password",rules:[{required:!0,message:"请输入密码"}],children:jsxRuntimeExports.jsx(Input,{type:"password",placeholder:"请输入密码",size:"large",prefix:jsxRuntimeExports.jsx(LockOutlined,{style:{color:"rgba(0, 0, 0, 0.25)"},rev:void 0})})}),jsxRuntimeExports.jsxs(Form.Item,{children:[jsxRuntimeExports.jsx(Form.Item,{name:"remember",className:classNames("fl","no-margin"),valuePropName:"checked",children:jsxRuntimeExports.jsx(Checkbox,{children:"记住我"})}),jsxRuntimeExports.jsx(Form.Item,{className:classNames("fr","no-margin"),children:jsxRuntimeExports.jsx("a",{href:"",children:"忘记密码?"})})]}),jsxRuntimeExports.jsx(Form.Item,{children:jsxRuntimeExports.jsx(Button,{type:"primary",block:!0,htmlType:"submit",size:"large",className:"login-btn",loading:s,children:"登 录"})})]})]})]})},metaRoutes=Object.assign({"./routes/compo.tsx":__vite_glob_0_0$1,"./routes/exception.tsx":__vite_glob_0_1$1,"./routes/form.tsx":__vite_glob_0_2$1,"./routes/home.tsx":__vite_glob_0_3,"./routes/user.tsx":__vite_glob_0_4}),routeList=[];Object.keys(metaRoutes).forEach(o=>{const a=metaRoutes[o].default||{},s=Array.isArray(a)?[...a]:[a];genFullPath(s),routeList.push(...s)});const rootRoutes=[{path:"/",element:jsxRuntimeExports.jsx(Navigate,{to:"/home"})},{path:"/login",element:jsxRuntimeExports.jsx(LoginPage,{}),meta:{title:"登录页",key:"login"},loader:()=>getAuthCache(TOKEN_KEY)?redirect("/"):null},...routeList,{path:"*",element:jsxRuntimeExports.jsx(Navigate,{to:"/404"})},{path:"/403",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_ACCESS,withCard:!1})},{path:"/404",element:jsxRuntimeExports.jsx(PageException,{}),loader:()=>({status:ExceptionEnum.PAGE_NOT_FOUND,withCard:!1})}],router=createHashRouter(rootRoutes),CustomGlobal=createGlobalStyle` .g-paper { border-radius: ${o=>o.theme.borderRadius*2}px; } diff --git a/assets/image-upload-606cc471.js b/assets/image-upload-a998b7bc.js similarity index 97% rename from assets/image-upload-606cc471.js rename to assets/image-upload-a998b7bc.js index 41cd32e..2624c93 100644 --- a/assets/image-upload-606cc471.js +++ b/assets/image-upload-a998b7bc.js @@ -1 +1 @@ -var x=(o,c,i)=>new Promise((g,r)=>{var m=t=>{try{a(i.next(t))}catch(n){r(n)}},l=t=>{try{a(i.throw(t))}catch(n){r(n)}},a=t=>t.done?g(t.value):Promise.resolve(t.value).then(m,l);a((i=i.apply(o,c)).next())});import{j as e,H as I,J as u,n as h,an as b,ao as j,i as L,P as O,M as S}from"./antd-f8926cfc.js";import{r as p}from"./react-360e162b.js";import{P as k,U as N}from"./websiteSetting-f431f8d1.js";import"./entry/index-8ac660c5.1705658946162.js";const M=()=>{const{Dragger:o}=j,[c,i]=p.useState(!1),[g,r]=p.useState(""),[m,l]=p.useState(""),a=[{uid:"-1",name:"beautiful-girl.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg"}],[t,n]=p.useState([{uid:"-1",name:"beautiful-girl.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg"}]),v=s=>x(void 0,null,function*(){!s.url&&!s.preview&&(s.preview=yield w(s.originFileObj)),r(s.url||s.preview),i(!0),l(s.name||s.url.substring(s.url.lastIndexOf("/")+1))}),w=s=>new Promise((P,C)=>{const d=new FileReader;d.readAsDataURL(s),d.onload=()=>P(d.result),d.onerror=U=>C(U)}),f=({fileList:s})=>n(s),y=()=>{i(!1),l("")};return e.jsx(k,{plugin:N,children:e.jsxs(I,{gutter:12,children:[e.jsx(u,{span:8,children:e.jsx(h,{title:"拖拽上传",bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(o,{defaultFileList:a,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,children:[e.jsx("p",{className:"ant-upload-drag-icon",style:{marginBottom:0},children:e.jsx(b,{rev:void 0})}),e.jsxs("p",{children:["将图片拖到此处, 或",e.jsx("span",{style:{color:"#1890ff"},children:"点击上传"})]}),e.jsx("p",{className:"ant-upload-hint",children:"只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb"})]})})}),e.jsx(u,{span:8,children:e.jsx(h,{title:"列表样式",bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(j,{defaultFileList:[...t],action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture",className:"list-upload",children:[e.jsxs(L,{type:"primary",children:[e.jsx(b,{rev:void 0}),e.jsx("span",{children:"点击上传"})]}),e.jsx("p",{className:"ant-upload-hint",children:"只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb"})]})})}),e.jsxs(u,{span:8,children:[e.jsx(h,{title:"照片墙",bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(j,{fileList:t,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture-card",className:"list-upload",onPreview:v,onChange:f,children:e.jsxs("div",{children:[e.jsx(O,{rev:void 0}),e.jsx("div",{style:{marginTop:"8px"},children:"点击上传"})]})})}),e.jsx(S,{open:c,title:m,footer:null,onCancel:y,children:e.jsx("img",{src:g,style:{width:"100%"}})})]})]})})};export{M as default}; +var x=(o,c,i)=>new Promise((g,r)=>{var m=t=>{try{a(i.next(t))}catch(n){r(n)}},l=t=>{try{a(i.throw(t))}catch(n){r(n)}},a=t=>t.done?g(t.value):Promise.resolve(t.value).then(m,l);a((i=i.apply(o,c)).next())});import{j as e,H as I,J as u,n as h,an as b,ao as j,i as L,P as O,M as S}from"./antd-f8926cfc.js";import{r as p}from"./react-360e162b.js";import{P as k,U as N}from"./websiteSetting-252d9417.js";import"./entry/index-f446ec7a.1705681920479.js";const M=()=>{const{Dragger:o}=j,[c,i]=p.useState(!1),[g,r]=p.useState(""),[m,l]=p.useState(""),a=[{uid:"-1",name:"beautiful-girl.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg"}],[t,n]=p.useState([{uid:"-1",name:"beautiful-girl.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img04.jpg"},{uid:"-2",name:"beautiful-sunshine.jpg",status:"done",url:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg",thumbUrl:"https://cdn.jsdelivr.net/gh/baimingxuan/media-store/images/img03.jpg"}]),v=s=>x(void 0,null,function*(){!s.url&&!s.preview&&(s.preview=yield w(s.originFileObj)),r(s.url||s.preview),i(!0),l(s.name||s.url.substring(s.url.lastIndexOf("/")+1))}),w=s=>new Promise((P,C)=>{const d=new FileReader;d.readAsDataURL(s),d.onload=()=>P(d.result),d.onerror=U=>C(U)}),f=({fileList:s})=>n(s),y=()=>{i(!1),l("")};return e.jsx(k,{plugin:N,children:e.jsxs(I,{gutter:12,children:[e.jsx(u,{span:8,children:e.jsx(h,{title:"拖拽上传",bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(o,{defaultFileList:a,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,children:[e.jsx("p",{className:"ant-upload-drag-icon",style:{marginBottom:0},children:e.jsx(b,{rev:void 0})}),e.jsxs("p",{children:["将图片拖到此处, 或",e.jsx("span",{style:{color:"#1890ff"},children:"点击上传"})]}),e.jsx("p",{className:"ant-upload-hint",children:"只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb"})]})})}),e.jsx(u,{span:8,children:e.jsx(h,{title:"列表样式",bordered:!1,bodyStyle:{height:"300px"},children:e.jsxs(j,{defaultFileList:[...t],action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture",className:"list-upload",children:[e.jsxs(L,{type:"primary",children:[e.jsx(b,{rev:void 0}),e.jsx("span",{children:"点击上传"})]}),e.jsx("p",{className:"ant-upload-hint",children:"只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb"})]})})}),e.jsxs(u,{span:8,children:[e.jsx(h,{title:"照片墙",bordered:!1,bodyStyle:{height:"300px"},children:e.jsx(j,{fileList:t,action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",listType:"picture-card",className:"list-upload",onPreview:v,onChange:f,children:e.jsxs("div",{children:[e.jsx(O,{rev:void 0}),e.jsx("div",{style:{marginTop:"8px"},children:"点击上传"})]})})}),e.jsx(S,{open:c,title:m,footer:null,onCancel:y,children:e.jsx("img",{src:g,style:{width:"100%"}})})]})]})})};export{M as default}; diff --git a/assets/index-c347f4c7.js b/assets/index-253ec7c7.js similarity index 96% rename from assets/index-c347f4c7.js rename to assets/index-253ec7c7.js index f6b54fb..18d714c 100644 --- a/assets/index-c347f4c7.js +++ b/assets/index-253ec7c7.js @@ -1 +1 @@ -var D=Object.defineProperty,U=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var b=(e,t,l)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,w=(e,t)=>{for(var l in t||(t={}))C.call(t,l)&&b(e,l,t[l]);if(h)for(var l of h(t))T.call(t,l)&&b(e,l,t[l]);return e},R=(e,t)=>U(e,q(t));var E=(e,t)=>{var l={};for(var n in e)C.call(e,n)&&t.indexOf(n)<0&&(l[n]=e[n]);if(e!=null&&h)for(var n of h(e))t.indexOf(n)<0&&T.call(e,n)&&(l[n]=e[n]);return l};import{j as a,H as z,J as g,n as u,ap as S,aq as F,V as H}from"./antd-f8926cfc.js";import{r as f}from"./react-360e162b.js";import{P as M,T as V}from"./websiteSetting-f431f8d1.js";import"./entry/index-8ac660c5.1705658946162.js";const k=[];for(let e=1;e<10;e++)k.push({key:e.toString(),title:`备选项 ${e}`});const N=[{key:"1",title:"备选项 1"},{key:"2",title:"备选项 2",children:[{key:"2-1",title:"备选项 2-1"},{key:"2-2",title:"备选项 2-2"},{key:"2-3",title:"备选项 2-3"}]},{key:"3",title:"备选项 3-1"},{key:"4",title:"备选项 4",children:[{key:"4-1",title:"备选项 4-1"},{key:"4-2",title:"备选项 4-2",children:[{key:"4-2-1",title:"备选项 4-2-1"}]},{key:"4-3",title:"备选项 4-3"}]}],y=[];function A(e=[]){e.forEach(t=>{y==null||y.push(t),A(t.children)})}A(JSON.parse(JSON.stringify(N)));const L=()=>{const[e,t]=f.useState(["1","5"]),[l,n]=f.useState(["2","6"]),[p,O]=f.useState([]),j=s=>{t(s)},P=(s,i)=>{n([...s,...i])},m=(s,i)=>s.includes(i),K=(s=[],i=[])=>s.map(o=>{var c=o,{children:d}=c,r=E(c,["children"]);return R(w({},r),{disabled:i.includes(r.key),children:K(d,i)})}),J=s=>{O(s)},_=({selectedKeys:s,onItemSelectAll:i,onItemSelect:d})=>({onSelectAll(r,o){const c=o.filter(x=>!x.disabled).map(({key:x})=>x);i(c,r)},onSelect({key:r},o){d(r,o)},selectedRowKeys:s});return a.jsx(M,{plugin:V,children:a.jsxs(z,{gutter:12,children:[a.jsx(g,{span:8,children:a.jsx(u,{title:"基础用法",bordered:!1,bodyStyle:{height:"420px"},children:a.jsx(S,{targetKeys:e,selectedKeys:l,dataSource:k,render:s=>s.title,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:"项 "},onChange:j,onSelectChange:P})})}),a.jsx(g,{span:8,children:a.jsx(u,{title:"树穿梭框",bordered:!1,bodyStyle:{height:"420px"},children:a.jsx(S,{targetKeys:p,dataSource:y,render:s=>s.title,showSelectAll:!1,listStyle:{width:"230px",height:"360px"},onChange:J,children:({direction:s,selectedKeys:i,onItemSelect:d})=>{if(s==="left"){const r=[...i,...p];return a.jsx(F,{blockNode:!0,checkable:!0,checkStrictly:!0,defaultExpandAll:!0,checkedKeys:r,treeData:K(N,p),onCheck:(o,{node:{key:c}})=>{d(c,!m(r,c))},onSelect:(o,{node:{key:c}})=>{d(c,!m(r,c))}})}}})})}),a.jsx(g,{span:8,children:a.jsx(u,{title:"表格穿梭框",bordered:!1,bodyStyle:{height:"420px"},children:a.jsx(S,{targetKeys:e,dataSource:k,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:"项 "},onChange:j,children:({filteredItems:s,selectedKeys:i,onItemSelectAll:d,onItemSelect:r})=>a.jsx(H,{rowSelection:_({selectedKeys:i,onItemSelectAll:d,onItemSelect:r}),columns:[{dataIndex:"title",title:"Name"}],dataSource:s,size:"small",pagination:!1,onRow:({key:o})=>({onClick:()=>{r(o,!i.includes(o))}})})})})})]})})};export{L as default}; +var D=Object.defineProperty,U=Object.defineProperties;var q=Object.getOwnPropertyDescriptors;var h=Object.getOwnPropertySymbols;var C=Object.prototype.hasOwnProperty,T=Object.prototype.propertyIsEnumerable;var b=(e,t,l)=>t in e?D(e,t,{enumerable:!0,configurable:!0,writable:!0,value:l}):e[t]=l,w=(e,t)=>{for(var l in t||(t={}))C.call(t,l)&&b(e,l,t[l]);if(h)for(var l of h(t))T.call(t,l)&&b(e,l,t[l]);return e},R=(e,t)=>U(e,q(t));var E=(e,t)=>{var l={};for(var n in e)C.call(e,n)&&t.indexOf(n)<0&&(l[n]=e[n]);if(e!=null&&h)for(var n of h(e))t.indexOf(n)<0&&T.call(e,n)&&(l[n]=e[n]);return l};import{j as a,H as z,J as g,n as u,ap as S,aq as F,V as H}from"./antd-f8926cfc.js";import{r as f}from"./react-360e162b.js";import{P as M,T as V}from"./websiteSetting-252d9417.js";import"./entry/index-f446ec7a.1705681920479.js";const k=[];for(let e=1;e<10;e++)k.push({key:e.toString(),title:`备选项 ${e}`});const N=[{key:"1",title:"备选项 1"},{key:"2",title:"备选项 2",children:[{key:"2-1",title:"备选项 2-1"},{key:"2-2",title:"备选项 2-2"},{key:"2-3",title:"备选项 2-3"}]},{key:"3",title:"备选项 3-1"},{key:"4",title:"备选项 4",children:[{key:"4-1",title:"备选项 4-1"},{key:"4-2",title:"备选项 4-2",children:[{key:"4-2-1",title:"备选项 4-2-1"}]},{key:"4-3",title:"备选项 4-3"}]}],y=[];function A(e=[]){e.forEach(t=>{y==null||y.push(t),A(t.children)})}A(JSON.parse(JSON.stringify(N)));const L=()=>{const[e,t]=f.useState(["1","5"]),[l,n]=f.useState(["2","6"]),[p,O]=f.useState([]),j=s=>{t(s)},P=(s,i)=>{n([...s,...i])},m=(s,i)=>s.includes(i),K=(s=[],i=[])=>s.map(o=>{var c=o,{children:d}=c,r=E(c,["children"]);return R(w({},r),{disabled:i.includes(r.key),children:K(d,i)})}),J=s=>{O(s)},_=({selectedKeys:s,onItemSelectAll:i,onItemSelect:d})=>({onSelectAll(r,o){const c=o.filter(x=>!x.disabled).map(({key:x})=>x);i(c,r)},onSelect({key:r},o){d(r,o)},selectedRowKeys:s});return a.jsx(M,{plugin:V,children:a.jsxs(z,{gutter:12,children:[a.jsx(g,{span:8,children:a.jsx(u,{title:"基础用法",bordered:!1,bodyStyle:{height:"420px"},children:a.jsx(S,{targetKeys:e,selectedKeys:l,dataSource:k,render:s=>s.title,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:"项 "},onChange:j,onSelectChange:P})})}),a.jsx(g,{span:8,children:a.jsx(u,{title:"树穿梭框",bordered:!1,bodyStyle:{height:"420px"},children:a.jsx(S,{targetKeys:p,dataSource:y,render:s=>s.title,showSelectAll:!1,listStyle:{width:"230px",height:"360px"},onChange:J,children:({direction:s,selectedKeys:i,onItemSelect:d})=>{if(s==="left"){const r=[...i,...p];return a.jsx(F,{blockNode:!0,checkable:!0,checkStrictly:!0,defaultExpandAll:!0,checkedKeys:r,treeData:K(N,p),onCheck:(o,{node:{key:c}})=>{d(c,!m(r,c))},onSelect:(o,{node:{key:c}})=>{d(c,!m(r,c))}})}}})})}),a.jsx(g,{span:8,children:a.jsx(u,{title:"表格穿梭框",bordered:!1,bodyStyle:{height:"420px"},children:a.jsx(S,{targetKeys:e,dataSource:k,listStyle:{width:"230px",height:"360px"},locale:{itemsUnit:"项 "},onChange:j,children:({filteredItems:s,selectedKeys:i,onItemSelectAll:d,onItemSelect:r})=>a.jsx(H,{rowSelection:_({selectedKeys:i,onItemSelectAll:d,onItemSelect:r}),columns:[{dataIndex:"title",title:"Name"}],dataSource:s,size:"small",pagination:!1,onRow:({key:o})=>({onClick:()=>{r(o,!i.includes(o))}})})})})})]})})};export{L as default}; diff --git a/assets/index-b802f706.js b/assets/index-4bfef12d.js similarity index 95% rename from assets/index-b802f706.js rename to assets/index-4bfef12d.js index 970068b..1ff6413 100644 --- a/assets/index-b802f706.js +++ b/assets/index-4bfef12d.js @@ -1 +1 @@ -var p=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var x=(s,t)=>{var o={};for(var a in s)g.call(s,a)&&t.indexOf(a)<0&&(o[a]=s[a]);if(s!=null&&p)for(var a of p(s))t.indexOf(a)<0&&b.call(s,a)&&(o[a]=s[a]);return o};import{c as y,j as e,n as u,aL as r,aB as w,i,K as T}from"./antd-f8926cfc.js";import{a as h}from"./react-360e162b.js";import{S as n}from"./entry/index-8ac660c5.1705658946162.js";import{T as N}from"./Translatex-55ea8b90.js";const B="/react-antd-admin-pnpm/assets/avatar_2-ce7fcb30.jpg",F="/react-antd-admin-pnpm/assets/cover_5-5698cb6c.jpg",R=y(({token:s})=>({"user-card":{width:"100%",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-card-cover":{maxHeight:"200px",overflow:"hidden"},".cover":{position:"relative",filter:"blur(0)","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"relative",".info":{paddingTop:s.margin*2,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},".avatar-svg":{color:s.colorBgContainer,width:"144px !important",height:"62px !important",top:"-56px",position:"absolute",transform:"translateX(-50%)",left:"50%"},".avatar":{width:"64px",height:"64px",borderRadius:"50%",overflow:"hidden",position:"absolute",top:"-50px",transform:"translateX(-50%)",left:"50%"}}}})),{Text:j,Title:v}=T,c=({name:s,count:t})=>e.jsxs("div",{className:"footer",children:[e.jsx(j,{type:"secondary",children:s}),e.jsxs(v,{style:{margin:0},level:5,children:[t,"K"]})]}),G=a=>{var l=a,{data:s={id:1,name:"Gbeata",position:"Front-end",sex:"male",follwer:1341,mits:231,forbid:!1},index:t=1}=l,o=x(l,["data","index"]);const[d,f]=h.useState(!0),{styles:m}=R();return h.useEffect(()=>{setTimeout(()=>{f(!1)},500)},[]),e.jsxs(e.Fragment,{children:[d&&e.jsx(u,{className:m["user-card"],actions:[e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"})],cover:e.jsx(r.Image,{active:!0}),children:e.jsx(r,{loading:!0,avatar:!0,active:!0})}),e.jsx(N,{direction:"up",run:!d,delay:t*100,children:e.jsx(u,{className:m["user-card"],cover:e.jsx("span",{className:"cover",children:e.jsx("img",{alt:"example",src:F})}),actions:[e.jsx(c,{name:"Foloower",count:s.follwer}),e.jsx(c,{name:"Folowing",count:s.mits}),e.jsx(c,{name:"Total Post",count:s.total})],children:e.jsxs("div",{className:"user_info",children:[e.jsx(n,{className:"avatar-svg",name:"wave"}),e.jsx("div",{className:"avatar",children:e.jsx("img",{src:B})}),e.jsxs("div",{className:"info",children:[e.jsx(v,{style:{margin:0},level:5,children:s.name}),e.jsx(j,{type:"secondary",children:s.position}),e.jsxs(w,{style:{marginTop:8},gap:8,children:[e.jsx(i,{shape:"circle",icon:e.jsx(n,{style:{color:"#1890ff"},name:"github"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"message"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"like"})})]})]})]})})})]})};export{G as U,c as a,B as b,F as c}; +var p=Object.getOwnPropertySymbols;var g=Object.prototype.hasOwnProperty,b=Object.prototype.propertyIsEnumerable;var x=(s,t)=>{var o={};for(var a in s)g.call(s,a)&&t.indexOf(a)<0&&(o[a]=s[a]);if(s!=null&&p)for(var a of p(s))t.indexOf(a)<0&&b.call(s,a)&&(o[a]=s[a]);return o};import{c as y,j as e,n as u,aL as r,aB as w,i,K as T}from"./antd-f8926cfc.js";import{a as h}from"./react-360e162b.js";import{S as n}from"./entry/index-f446ec7a.1705681920479.js";import{T as N}from"./Translatex-54c367b9.js";const B="/react-antd-admin-pnpm/assets/avatar_2-ce7fcb30.jpg",F="/react-antd-admin-pnpm/assets/cover_5-5698cb6c.jpg",R=y(({token:s})=>({"user-card":{width:"100%",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-card-cover":{maxHeight:"200px",overflow:"hidden"},".cover":{position:"relative",filter:"blur(0)","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"relative",".info":{paddingTop:s.margin*2,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center"},".avatar-svg":{color:s.colorBgContainer,width:"144px !important",height:"62px !important",top:"-56px",position:"absolute",transform:"translateX(-50%)",left:"50%"},".avatar":{width:"64px",height:"64px",borderRadius:"50%",overflow:"hidden",position:"absolute",top:"-50px",transform:"translateX(-50%)",left:"50%"}}}})),{Text:j,Title:v}=T,c=({name:s,count:t})=>e.jsxs("div",{className:"footer",children:[e.jsx(j,{type:"secondary",children:s}),e.jsxs(v,{style:{margin:0},level:5,children:[t,"K"]})]}),G=a=>{var l=a,{data:s={id:1,name:"Gbeata",position:"Front-end",sex:"male",follwer:1341,mits:231,forbid:!1},index:t=1}=l,o=x(l,["data","index"]);const[d,f]=h.useState(!0),{styles:m}=R();return h.useEffect(()=>{setTimeout(()=>{f(!1)},500)},[]),e.jsxs(e.Fragment,{children:[d&&e.jsx(u,{className:m["user-card"],actions:[e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"}),e.jsx(r.Button,{active:!0,shape:"round"})],cover:e.jsx(r.Image,{active:!0}),children:e.jsx(r,{loading:!0,avatar:!0,active:!0})}),e.jsx(N,{direction:"up",run:!d,delay:t*100,children:e.jsx(u,{className:m["user-card"],cover:e.jsx("span",{className:"cover",children:e.jsx("img",{alt:"example",src:F})}),actions:[e.jsx(c,{name:"Foloower",count:s.follwer}),e.jsx(c,{name:"Folowing",count:s.mits}),e.jsx(c,{name:"Total Post",count:s.total})],children:e.jsxs("div",{className:"user_info",children:[e.jsx(n,{className:"avatar-svg",name:"wave"}),e.jsx("div",{className:"avatar",children:e.jsx("img",{src:B})}),e.jsxs("div",{className:"info",children:[e.jsx(v,{style:{margin:0},level:5,children:s.name}),e.jsx(j,{type:"secondary",children:s.position}),e.jsxs(w,{style:{marginTop:8},gap:8,children:[e.jsx(i,{shape:"circle",icon:e.jsx(n,{style:{color:"#1890ff"},name:"github"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"message"})}),e.jsx(i,{shape:"circle",icon:e.jsx(n,{name:"like"})})]})]})]})})})]})};export{G as U,c as a,B as b,F as c}; diff --git a/assets/index-d1a5b8f7.js b/assets/index-50b97fc4.js similarity index 95% rename from assets/index-d1a5b8f7.js rename to assets/index-50b97fc4.js index 0b22ffe..18aee6b 100644 --- a/assets/index-d1a5b8f7.js +++ b/assets/index-50b97fc4.js @@ -1 +1 @@ -import{c as n,j as e,H as c,J as s,n as t,aB as d,ao as p,T as u}from"./antd-f8926cfc.js";import{E as h,e as x,g as m}from"./entry/index-8ac660c5.1705658946162.js";import{h as g}from"./react-360e162b.js";import{T as b}from"./Translatex-55ea8b90.js";const j=n(({token:a})=>({"custom-upload-drag":{".ant-upload-drag":{background:"#fff",border:"none","&:hover":{".add-phone-box":{border:`1px dashed ${a.colorPrimary}`,".add-phone":{background:a.colorBgTextActive}}},".add-phone-box":{width:"144px",height:"144px",borderRadius:"50%",overflow:"hidden",cursor:"pointer",margin:"0 auto",padding:a.paddingSM,border:`1px dashed ${a.colorBorderSecondary}`,transition:"border-color .3s ease","&:hover":{border:`1px dashed ${a.colorPrimary}`},".add-phone":{width:"100%",height:"100%",background:a.colorBgContainerDisabled,borderRadius:"50%",color:a.colorTextDisabled,transition:"all .3s ease","&:hover":{background:a.colorBgTextActive}}}}},"add-user-form":{".ant-input":{borderRadius:a.borderRadiusLG}},"btn-submit":{width:"100%"}})),B=()=>{const a=g(),{Dragger:o}=p,{styles:r}=j(),l=[{title:"全名",key:"input",required:!0,defaultValue:"Gbeata"},{title:"密码",type:"password",key:"password",defaultValue:"gbeata"},{title:"城市",type:"select",key:"select",defaultValue:1,options:[{label:e.jsx(u,{children:"选项A"}),value:1},{label:"选项2",value:2}]},{title:"电话号码",key:"number",required:!0,defaultValue:15305999999},{title:"地址",type:"textarea",key:"textarea",defaultValue:"广东省深圳市南山区科技园",span:24}],i=f=>{a("/user/user-list")};return e.jsx(b,{direction:"left",run:!0,delay:100,children:e.jsxs(c,{gutter:[16,16],children:[e.jsx(s,{span:8,children:e.jsx(t,{children:e.jsxs(o,{action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,className:r["custom-upload-drag"],children:[e.jsx("div",{className:"add-phone-box",children:e.jsxs(d,{align:"center",vertical:!0,justify:"center",className:"add-phone",children:[e.jsx(h,{name:"camera",size:24}),e.jsx("span",{children:"upload phone"})]})}),e.jsxs("p",{children:["将图片拖到此处, 或",e.jsx("span",{style:{color:"#1890ff"},children:"点击上传"})]}),e.jsx("p",{className:"ant-upload-hint",children:"只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb"})]})})}),e.jsx(s,{span:16,children:e.jsx(t,{children:e.jsx(x,{fields:l,span:12,onConfirm:i,children:e.jsx(d,{justify:"end",className:r["btn-submit"],children:e.jsx(m,{type:"primary",htmlType:"submit",children:"创建用户"})})})})})]})})};export{B as default}; +import{c as n,j as e,H as c,J as s,n as t,aB as d,ao as p,T as u}from"./antd-f8926cfc.js";import{E as h,e as x,g as m}from"./entry/index-f446ec7a.1705681920479.js";import{h as g}from"./react-360e162b.js";import{T as b}from"./Translatex-54c367b9.js";const j=n(({token:a})=>({"custom-upload-drag":{".ant-upload-drag":{background:"#fff",border:"none","&:hover":{".add-phone-box":{border:`1px dashed ${a.colorPrimary}`,".add-phone":{background:a.colorBgTextActive}}},".add-phone-box":{width:"144px",height:"144px",borderRadius:"50%",overflow:"hidden",cursor:"pointer",margin:"0 auto",padding:a.paddingSM,border:`1px dashed ${a.colorBorderSecondary}`,transition:"border-color .3s ease","&:hover":{border:`1px dashed ${a.colorPrimary}`},".add-phone":{width:"100%",height:"100%",background:a.colorBgContainerDisabled,borderRadius:"50%",color:a.colorTextDisabled,transition:"all .3s ease","&:hover":{background:a.colorBgTextActive}}}}},"add-user-form":{".ant-input":{borderRadius:a.borderRadiusLG}},"btn-submit":{width:"100%"}})),B=()=>{const a=g(),{Dragger:o}=p,{styles:r}=j(),l=[{title:"全名",key:"input",required:!0,defaultValue:"Gbeata"},{title:"密码",type:"password",key:"password",defaultValue:"gbeata"},{title:"城市",type:"select",key:"select",defaultValue:1,options:[{label:e.jsx(u,{children:"选项A"}),value:1},{label:"选项2",value:2}]},{title:"电话号码",key:"number",required:!0,defaultValue:15305999999},{title:"地址",type:"textarea",key:"textarea",defaultValue:"广东省深圳市南山区科技园",span:24}],i=f=>{a("/user/user-list")};return e.jsx(b,{direction:"left",run:!0,delay:100,children:e.jsxs(c,{gutter:[16,16],children:[e.jsx(s,{span:8,children:e.jsx(t,{children:e.jsxs(o,{action:"https://www.mocky.io/v2/5cc8019d300000980a055e76",accept:".jpg, .jpeg, .gif, .png, .bmp",multiple:!0,className:r["custom-upload-drag"],children:[e.jsx("div",{className:"add-phone-box",children:e.jsxs(d,{align:"center",vertical:!0,justify:"center",className:"add-phone",children:[e.jsx(h,{name:"camera",size:24}),e.jsx("span",{children:"upload phone"})]})}),e.jsxs("p",{children:["将图片拖到此处, 或",e.jsx("span",{style:{color:"#1890ff"},children:"点击上传"})]}),e.jsx("p",{className:"ant-upload-hint",children:"只能上传jpg、jpeg、gif、png、bmp文件, 且不超过500kb"})]})})}),e.jsx(s,{span:16,children:e.jsx(t,{children:e.jsx(x,{fields:l,span:12,onConfirm:i,children:e.jsx(d,{justify:"end",className:r["btn-submit"],children:e.jsx(m,{type:"primary",htmlType:"submit",children:"创建用户"})})})})})]})})};export{B as default}; diff --git a/assets/index-9140f0f3.js b/assets/index-681605cb.js similarity index 91% rename from assets/index-9140f0f3.js rename to assets/index-681605cb.js index 77c4f76..ed0aa1d 100644 --- a/assets/index-9140f0f3.js +++ b/assets/index-681605cb.js @@ -1 +1 @@ -import{j as e,H as o,J as l,n,aj as a,z as r}from"./antd-f8926cfc.js";import"./entry/index-8ac660c5.1705658946162.js";import{r as x}from"./react-360e162b.js";import{G as d}from"./index-7c24f5a1.js";import{P as h,a as j}from"./websiteSetting-f431f8d1.js";const y=()=>{const[t,s]=x.useState(100),i=[{title:"第一个",key:"1",type:"date"},{title:"第二个",key:"2"},{title:"第三个",key:"3"},{title:"第四个",key:"4"},{title:"第五个",key:"5"},{title:"第六个",key:"6"},{title:"第七个",key:"7"},{title:"第八个",key:"8"},{title:"第九个",key:"9"},{title:"第十个",key:"10"}];return e.jsx(h,{plugin:j,children:e.jsxs(o,{gutter:[12,12],children:[e.jsx(l,{span:24,children:e.jsxs(n,{title:"基础用法",children:[e.jsx(a,{message:"拖拽我,看看我的变化:",type:"info",showIcon:!0}),e.jsx(r,{defaultValue:t,min:30,max:100,onChange:s}),e.jsx("div",{style:{width:`${t}%`},children:e.jsx(d,{fields:i})})]})}),e.jsx(l,{span:24,children:e.jsxs(n,{title:"超过一行就折叠",children:[e.jsx(a,{message:"设置openRow,控制超过几行就折叠:",type:"info",showIcon:!0}),e.jsx(r,{defaultValue:t,min:30,max:100,onChange:s}),e.jsx("div",{style:{width:`${t}%`},children:e.jsx(d,{fields:i,openRow:1})})]})}),e.jsx(l,{span:24,children:e.jsxs(n,{title:"默认展开全部",children:[e.jsx(a,{message:"设置defaultOpen",type:"info",showIcon:!0}),e.jsx(r,{defaultValue:t,min:30,max:100,onChange:s}),e.jsx("div",{style:{width:`${t}%`},children:e.jsx(d,{fields:i,defaultOpen:!0})})]})}),e.jsx(l,{span:24,children:e.jsxs(n,{title:"平铺展示",children:[e.jsx(a,{message:"inline 状态下,所有的查询项的 title 不再有效,且会变成 placeholder,不断地平铺下去。",type:"info",showIcon:!0}),e.jsx(r,{defaultValue:t,min:30,max:100,onChange:s}),e.jsx("div",{style:{width:`${t}%`},children:e.jsx(d,{fields:i,defaultOpen:!0,inline:!0,toggleVisible:!1})})]})}),e.jsx(l,{span:24,children:e.jsxs(n,{title:"跨格",children:[e.jsx(a,{message:"GSearch 的 span 值是无效的,请使用 grid 来指定占格",type:"info",showIcon:!0}),e.jsx(r,{defaultValue:t,min:30,max:100,onChange:s}),e.jsx("div",{style:{width:`${t}%`},children:e.jsx(d,{fields:i.concat([{title:"第一个",key:"1",grid:{large:12,middle:16,small:24,mini:24}}]),defaultOpen:!0})})]})})]})})};export{y as default}; +import{j as e,H as o,J as l,n,aj as a,z as r}from"./antd-f8926cfc.js";import"./entry/index-f446ec7a.1705681920479.js";import{r as x}from"./react-360e162b.js";import{G as d}from"./index-e2e572cb.js";import{P as h,a as j}from"./websiteSetting-252d9417.js";const y=()=>{const[t,s]=x.useState(100),i=[{title:"第一个",key:"1",type:"date"},{title:"第二个",key:"2"},{title:"第三个",key:"3"},{title:"第四个",key:"4"},{title:"第五个",key:"5"},{title:"第六个",key:"6"},{title:"第七个",key:"7"},{title:"第八个",key:"8"},{title:"第九个",key:"9"},{title:"第十个",key:"10"}];return e.jsx(h,{plugin:j,children:e.jsxs(o,{gutter:[12,12],children:[e.jsx(l,{span:24,children:e.jsxs(n,{title:"基础用法",children:[e.jsx(a,{message:"拖拽我,看看我的变化:",type:"info",showIcon:!0}),e.jsx(r,{defaultValue:t,min:30,max:100,onChange:s}),e.jsx("div",{style:{width:`${t}%`},children:e.jsx(d,{fields:i})})]})}),e.jsx(l,{span:24,children:e.jsxs(n,{title:"超过一行就折叠",children:[e.jsx(a,{message:"设置openRow,控制超过几行就折叠:",type:"info",showIcon:!0}),e.jsx(r,{defaultValue:t,min:30,max:100,onChange:s}),e.jsx("div",{style:{width:`${t}%`},children:e.jsx(d,{fields:i,openRow:1})})]})}),e.jsx(l,{span:24,children:e.jsxs(n,{title:"默认展开全部",children:[e.jsx(a,{message:"设置defaultOpen",type:"info",showIcon:!0}),e.jsx(r,{defaultValue:t,min:30,max:100,onChange:s}),e.jsx("div",{style:{width:`${t}%`},children:e.jsx(d,{fields:i,defaultOpen:!0})})]})}),e.jsx(l,{span:24,children:e.jsxs(n,{title:"平铺展示",children:[e.jsx(a,{message:"inline 状态下,所有的查询项的 title 不再有效,且会变成 placeholder,不断地平铺下去。",type:"info",showIcon:!0}),e.jsx(r,{defaultValue:t,min:30,max:100,onChange:s}),e.jsx("div",{style:{width:`${t}%`},children:e.jsx(d,{fields:i,defaultOpen:!0,inline:!0,toggleVisible:!1})})]})}),e.jsx(l,{span:24,children:e.jsxs(n,{title:"跨格",children:[e.jsx(a,{message:"GSearch 的 span 值是无效的,请使用 grid 来指定占格",type:"info",showIcon:!0}),e.jsx(r,{defaultValue:t,min:30,max:100,onChange:s}),e.jsx("div",{style:{width:`${t}%`},children:e.jsx(d,{fields:i.concat([{title:"第一个",key:"1",grid:{large:12,middle:16,small:24,mini:24}}]),defaultOpen:!0})})]})})]})})};export{y as default}; diff --git a/assets/index-8f4985b6.js b/assets/index-8dd9a033.js similarity index 99% rename from assets/index-8f4985b6.js rename to assets/index-8dd9a033.js index 925534c..cd307c5 100644 --- a/assets/index-8f4985b6.js +++ b/assets/index-8dd9a033.js @@ -1 +1 @@ -var F=Object.defineProperty;var j=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var f=(r,t,s)=>t in r?F(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,C=(r,t)=>{for(var s in t||(t={}))R.call(t,s)&&f(r,s,t[s]);if(j)for(var s of j(t))B.call(t,s)&&f(r,s,t[s]);return r};import{F as a,j as e,n as M,I as b,t as A,H as c,J as i,s as y,x as E,ar as O,u as W,z as Z,as as w,at as m,w as q,v as H,i as I}from"./antd-f8926cfc.js";import{r as p}from"./react-360e162b.js";import{P as J,F as _}from"./websiteSetting-f431f8d1.js";import"./entry/index-8ac660c5.1705658946162.js";const N=["guangdong","Zhejiang","Jiangsu"],v={guangdong:["guangzhou","shenzhen","foshan","dongguan","zhuhai"],Zhejiang:["Hangzhou","Ningbo","Wenzhou"],Jiangsu:["Nanjing","Suzhou","Zhenjiang","wuxi"]},G=[{value:"zhinan",label:"指南",children:[{value:"shejiyuanze",label:"设计原则",children:[{value:"yizhi",label:"一致"},{value:"fankui",label:"反馈"},{value:"xiaolv",label:"效率"},{value:"kekong",label:"可控"}]},{value:"daohang",label:"导航",children:[{value:"cexiangdaohang",label:"侧向导航"},{value:"dingbudaohang",label:"顶部导航"}]}]},{value:"zujian",label:"组件",children:[{value:"basic",label:"Basic",children:[{value:"layout",label:"layout 布局"},{value:"color",label:"Color 色彩"},{value:"typography",label:"Typography 字体"},{value:"icon",label:"Icon 图标"},{value:"button",label:"Button 按钮"}]},{value:"form",label:"Form",children:[{value:"radio",label:"Radio 单选框"},{value:"checkbox",label:"Checkbox 多选框"},{value:"input",label:"Input 输入框"},{value:"input-number",label:"InputNumber 计数器"},{value:"select",label:"Select 选择器"},{value:"cascader",label:"Cascader 级联选择器"},{value:"switch",label:"Switch 开关"},{value:"slider",label:"Slider 滑块"},{value:"time-picker",label:"TimePicker 时间选择器"},{value:"date-picker",label:"DatePicker 日期选择器"},{value:"datetime-picker",label:"DateTimePicker 日期时间选择器"},{value:"upload",label:"Upload 上传"},{value:"rate",label:"Rate 评分"},{value:"form",label:"Form 表单"}]},{value:"data",label:"Data",children:[{value:"table",label:"Table 表格"},{value:"tag",label:"Tag 标签"},{value:"progress",label:"Progress 进度条"},{value:"tree",label:"Tree 树形控件"},{value:"pagination",label:"Pagination 分页"},{value:"badge",label:"Badge 标记"}]},{value:"notice",label:"Notice",children:[{value:"alert",label:"Alert 警告"},{value:"loading",label:"Loading 加载"},{value:"message",label:"Message 消息提示"},{value:"message-box",label:"MessageBox 弹框"},{value:"notification",label:"Notification 通知"}]},{value:"navigation",label:"Navigation",children:[{value:"menu",label:"NavMenu 导航菜单"},{value:"tabs",label:"Tabs 标签页"},{value:"breadcrumb",label:"Breadcrumb 面包屑"},{value:"dropdown",label:"Dropdown 下拉菜单"},{value:"steps",label:"Steps 步骤条"}]},{value:"others",label:"Others",children:[{value:"dialog",label:"Dialog 对话框"},{value:"tooltip",label:"Tooltip 文字提示"},{value:"popover",label:"Popover 弹出框"},{value:"card",label:"Card 卡片"},{value:"carousel",label:"Carousel 走马灯"},{value:"collapse",label:"Collapse 折叠面板"}]}]},{value:"ziyuan",label:"资源",children:[{value:"axure",label:"Axure Components"},{value:"sketch",label:"Sketch Templates"},{value:"jiaohu",label:"组件交互文档"}]}],$=[{title:"Node1",value:"0-0",children:[{title:"Child Node1",value:"0-0-0",children:[{title:"Child Node6",value:"0-0-1"}]}]},{title:"Node2",value:"0-1",children:[{title:"Child Node3",value:"0-1-0",disabled:!0},{title:"Child Node4",value:"0-1-1"},{title:"Child Node5",value:"0-1-2"}]}],U=[{label:"免费",value:"free"},{label:"收费",value:"fee"},{label:"赞助",value:"sponsor"},{label:"线上",value:"online",disabled:!0},{label:"线下",value:"offline",disabled:!0}],K=[{label:"游泳",value:"swim"},{label:"跑步",value:"run"},{label:"健身",value:"fit"},{label:"阅读",value:"read",disabled:!0},{label:"音乐",value:"music",disabled:!0},{label:"电影",value:"movie"}],te=()=>{const[r]=a.useForm(),t=N[0],[s,Q]=p.useState({inputLimit:"",inputNum:"",password:"",selectProvince:t,selectCity:v[t][0],dateVal:"",timeVal:"",switchVal:!0,sliderVal:32,cascaderVal:[],cascaderLazy:[],treeVal:["0-0-1"],treeLazy:"1",radioVal:"offline",checkboxVal:["read"],textareaVal:""}),h={inputLimit:[{required:!0,message:"内容不能为空"}],inputNum:[{required:!0,message:"内容不能为空"},{type:"number",message:"内容必须为数字值"}],password:[{required:!0,message:"内容不能为空"},{min:6,max:16,message:"密码长度在 6 到 16 个字符"},{pattern:/^[a-zA-Z0-9_-]{6,16}$/,message:"密码只支持字母、数字和下划线"}]},k=a.useWatch("switchVal",r),[x,V]=p.useState([{value:1,label:"选项1",isLeaf:!1}]),[d,z]=p.useState([{id:1,pId:0,value:"1",title:"Expand to load"},{id:2,pId:0,value:"2",title:"Expand to load"},{id:3,pId:0,value:"3",title:"Tree Node",isLeaf:!0}]),T=l=>{r.setFieldsValue({selectCity:v[l][0]})},S=l=>{const n=l[l.length-1];n.loading=!0,setTimeout(()=>{n.loading=!1;let o=l.length;const u=l.length;n.children=Array.from({length:u+1}).map(()=>({value:++o,label:`选项${o}`,isLeaf:u>=2})),V([...x])},1e3)},L=({id:l})=>{const n=(o,u=!1)=>{const g=Math.random().toString(36).substring(2,6);return{id:g,pId:o,value:g,title:u?"Tree Node":"Expand to load",isLeaf:u}};return new Promise(o=>{setTimeout(()=>{z(d==null?void 0:d.concat([n(l,!1),n(l,!0),n(l,!0)])),o(void 0)},500)})},P=l=>{},D=()=>{r.resetFields()};return e.jsx(J,{plugin:_,children:e.jsx(M,{bordered:!1,children:e.jsxs(a,{form:r,labelCol:{span:6},wrapperCol:{span:18},initialValues:C({},s),style:{width:"40%",margin:"0 auto"},onFinish:P,children:[e.jsx(a.Item,{label:"输入框(长度限制):",name:"inputLimit",rules:h.inputLimit,children:e.jsx(b,{showCount:!0,maxLength:20,placeholder:"请输入内容"})}),e.jsx(a.Item,{label:"输入框(纯数字):",name:"inputNum",rules:h.inputNum,children:e.jsx(A,{style:{width:"100%"},placeholder:"请输入数字"})}),e.jsx(a.Item,{label:"输入框(密码隐藏):",name:"password",rules:h.password,children:e.jsx(b.Password,{maxLength:16,autoComplete:"off",placeholder:"请输入密码"})}),e.jsx(a.Item,{label:"select选择器(联动):",children:e.jsxs(c,{gutter:12,children:[e.jsx(i,{span:12,children:e.jsx(a.Item,{name:"selectProvince",children:e.jsx(y,{options:N.map(l=>({value:l})),onChange:T})})}),e.jsx(i,{span:12,children:e.jsx(a.Item,{name:"selectCity",children:e.jsx(y,{options:v[s.selectProvince].map(l=>({value:l}))})})})]})}),e.jsx(a.Item,{label:"日期和时间选择器:",name:"dateVal",children:e.jsxs(c,{gutter:12,children:[e.jsx(i,{span:12,children:e.jsx(E,{placeholder:"选择日期",style:{width:"100%"}})}),e.jsx(i,{span:12,children:e.jsx(a.Item,{name:"timeVal",children:e.jsx(O,{placeholder:"选择时间",style:{width:"100%"}})})})]})}),e.jsx(a.Item,{label:"switch开关(显示隐藏):",name:"switchVal",valuePropName:"checked",children:e.jsx(W,{})}),k?e.jsxs(e.Fragment,{children:[e.jsx(a.Item,{label:"滑块条(初始值):",name:"sliderVal",children:e.jsx(Z,{})}),e.jsx(a.Item,{label:"级联选择器:",children:e.jsxs(c,{gutter:12,children:[e.jsx(i,{span:12,children:e.jsx(a.Item,{name:"cascaderVal",children:e.jsx(w,{options:G,placeholder:"请选择"})})}),e.jsx(i,{span:12,children:e.jsx(a.Item,{name:"cascaderLazy",children:e.jsx(w,{options:x,loadData:S,changeOnSelect:!0,placeholder:"请输入"})})})]})}),e.jsx(a.Item,{label:"树选择器(可勾选):",name:"treeVal",children:e.jsxs(c,{gutter:12,children:[e.jsx(i,{span:12,children:e.jsx(m,{treeData:$,treeCheckable:!0,allowClear:!0,showCheckedStrategy:m.SHOW_PARENT,placeholder:"请选择"})}),e.jsx(i,{span:12,children:e.jsx(a.Item,{name:"treeLazy",children:e.jsx(m,{treeDataSimpleMode:!0,treeData:d,loadData:L,placeholder:"请选择"})})})]})}),e.jsx(a.Item,{label:"单选框(带禁止):",name:"radioVal",children:e.jsx(q.Group,{options:U})}),e.jsx(a.Item,{label:"多选框(带禁止):",name:"checkboxVal",children:e.jsx(H.Group,{options:K})}),e.jsx(a.Item,{label:"文本域(长度限制):",name:"textareaVal",children:e.jsx(b.TextArea,{maxLength:50,rows:3,placeholder:"请输入内容"})})]}):null,e.jsxs(a.Item,{wrapperCol:{span:12,offset:12},children:[e.jsx(I,{type:"primary",htmlType:"submit",children:"提交"}),e.jsx(I,{style:{marginLeft:"12px"},onClick:D,children:"重置"})]})]})})})};export{te as default}; +var F=Object.defineProperty;var j=Object.getOwnPropertySymbols;var R=Object.prototype.hasOwnProperty,B=Object.prototype.propertyIsEnumerable;var f=(r,t,s)=>t in r?F(r,t,{enumerable:!0,configurable:!0,writable:!0,value:s}):r[t]=s,C=(r,t)=>{for(var s in t||(t={}))R.call(t,s)&&f(r,s,t[s]);if(j)for(var s of j(t))B.call(t,s)&&f(r,s,t[s]);return r};import{F as a,j as e,n as M,I as b,t as A,H as c,J as i,s as y,x as E,ar as O,u as W,z as Z,as as w,at as m,w as q,v as H,i as I}from"./antd-f8926cfc.js";import{r as p}from"./react-360e162b.js";import{P as J,F as _}from"./websiteSetting-252d9417.js";import"./entry/index-f446ec7a.1705681920479.js";const N=["guangdong","Zhejiang","Jiangsu"],v={guangdong:["guangzhou","shenzhen","foshan","dongguan","zhuhai"],Zhejiang:["Hangzhou","Ningbo","Wenzhou"],Jiangsu:["Nanjing","Suzhou","Zhenjiang","wuxi"]},G=[{value:"zhinan",label:"指南",children:[{value:"shejiyuanze",label:"设计原则",children:[{value:"yizhi",label:"一致"},{value:"fankui",label:"反馈"},{value:"xiaolv",label:"效率"},{value:"kekong",label:"可控"}]},{value:"daohang",label:"导航",children:[{value:"cexiangdaohang",label:"侧向导航"},{value:"dingbudaohang",label:"顶部导航"}]}]},{value:"zujian",label:"组件",children:[{value:"basic",label:"Basic",children:[{value:"layout",label:"layout 布局"},{value:"color",label:"Color 色彩"},{value:"typography",label:"Typography 字体"},{value:"icon",label:"Icon 图标"},{value:"button",label:"Button 按钮"}]},{value:"form",label:"Form",children:[{value:"radio",label:"Radio 单选框"},{value:"checkbox",label:"Checkbox 多选框"},{value:"input",label:"Input 输入框"},{value:"input-number",label:"InputNumber 计数器"},{value:"select",label:"Select 选择器"},{value:"cascader",label:"Cascader 级联选择器"},{value:"switch",label:"Switch 开关"},{value:"slider",label:"Slider 滑块"},{value:"time-picker",label:"TimePicker 时间选择器"},{value:"date-picker",label:"DatePicker 日期选择器"},{value:"datetime-picker",label:"DateTimePicker 日期时间选择器"},{value:"upload",label:"Upload 上传"},{value:"rate",label:"Rate 评分"},{value:"form",label:"Form 表单"}]},{value:"data",label:"Data",children:[{value:"table",label:"Table 表格"},{value:"tag",label:"Tag 标签"},{value:"progress",label:"Progress 进度条"},{value:"tree",label:"Tree 树形控件"},{value:"pagination",label:"Pagination 分页"},{value:"badge",label:"Badge 标记"}]},{value:"notice",label:"Notice",children:[{value:"alert",label:"Alert 警告"},{value:"loading",label:"Loading 加载"},{value:"message",label:"Message 消息提示"},{value:"message-box",label:"MessageBox 弹框"},{value:"notification",label:"Notification 通知"}]},{value:"navigation",label:"Navigation",children:[{value:"menu",label:"NavMenu 导航菜单"},{value:"tabs",label:"Tabs 标签页"},{value:"breadcrumb",label:"Breadcrumb 面包屑"},{value:"dropdown",label:"Dropdown 下拉菜单"},{value:"steps",label:"Steps 步骤条"}]},{value:"others",label:"Others",children:[{value:"dialog",label:"Dialog 对话框"},{value:"tooltip",label:"Tooltip 文字提示"},{value:"popover",label:"Popover 弹出框"},{value:"card",label:"Card 卡片"},{value:"carousel",label:"Carousel 走马灯"},{value:"collapse",label:"Collapse 折叠面板"}]}]},{value:"ziyuan",label:"资源",children:[{value:"axure",label:"Axure Components"},{value:"sketch",label:"Sketch Templates"},{value:"jiaohu",label:"组件交互文档"}]}],$=[{title:"Node1",value:"0-0",children:[{title:"Child Node1",value:"0-0-0",children:[{title:"Child Node6",value:"0-0-1"}]}]},{title:"Node2",value:"0-1",children:[{title:"Child Node3",value:"0-1-0",disabled:!0},{title:"Child Node4",value:"0-1-1"},{title:"Child Node5",value:"0-1-2"}]}],U=[{label:"免费",value:"free"},{label:"收费",value:"fee"},{label:"赞助",value:"sponsor"},{label:"线上",value:"online",disabled:!0},{label:"线下",value:"offline",disabled:!0}],K=[{label:"游泳",value:"swim"},{label:"跑步",value:"run"},{label:"健身",value:"fit"},{label:"阅读",value:"read",disabled:!0},{label:"音乐",value:"music",disabled:!0},{label:"电影",value:"movie"}],te=()=>{const[r]=a.useForm(),t=N[0],[s,Q]=p.useState({inputLimit:"",inputNum:"",password:"",selectProvince:t,selectCity:v[t][0],dateVal:"",timeVal:"",switchVal:!0,sliderVal:32,cascaderVal:[],cascaderLazy:[],treeVal:["0-0-1"],treeLazy:"1",radioVal:"offline",checkboxVal:["read"],textareaVal:""}),h={inputLimit:[{required:!0,message:"内容不能为空"}],inputNum:[{required:!0,message:"内容不能为空"},{type:"number",message:"内容必须为数字值"}],password:[{required:!0,message:"内容不能为空"},{min:6,max:16,message:"密码长度在 6 到 16 个字符"},{pattern:/^[a-zA-Z0-9_-]{6,16}$/,message:"密码只支持字母、数字和下划线"}]},k=a.useWatch("switchVal",r),[x,V]=p.useState([{value:1,label:"选项1",isLeaf:!1}]),[d,z]=p.useState([{id:1,pId:0,value:"1",title:"Expand to load"},{id:2,pId:0,value:"2",title:"Expand to load"},{id:3,pId:0,value:"3",title:"Tree Node",isLeaf:!0}]),T=l=>{r.setFieldsValue({selectCity:v[l][0]})},S=l=>{const n=l[l.length-1];n.loading=!0,setTimeout(()=>{n.loading=!1;let o=l.length;const u=l.length;n.children=Array.from({length:u+1}).map(()=>({value:++o,label:`选项${o}`,isLeaf:u>=2})),V([...x])},1e3)},L=({id:l})=>{const n=(o,u=!1)=>{const g=Math.random().toString(36).substring(2,6);return{id:g,pId:o,value:g,title:u?"Tree Node":"Expand to load",isLeaf:u}};return new Promise(o=>{setTimeout(()=>{z(d==null?void 0:d.concat([n(l,!1),n(l,!0),n(l,!0)])),o(void 0)},500)})},P=l=>{},D=()=>{r.resetFields()};return e.jsx(J,{plugin:_,children:e.jsx(M,{bordered:!1,children:e.jsxs(a,{form:r,labelCol:{span:6},wrapperCol:{span:18},initialValues:C({},s),style:{width:"40%",margin:"0 auto"},onFinish:P,children:[e.jsx(a.Item,{label:"输入框(长度限制):",name:"inputLimit",rules:h.inputLimit,children:e.jsx(b,{showCount:!0,maxLength:20,placeholder:"请输入内容"})}),e.jsx(a.Item,{label:"输入框(纯数字):",name:"inputNum",rules:h.inputNum,children:e.jsx(A,{style:{width:"100%"},placeholder:"请输入数字"})}),e.jsx(a.Item,{label:"输入框(密码隐藏):",name:"password",rules:h.password,children:e.jsx(b.Password,{maxLength:16,autoComplete:"off",placeholder:"请输入密码"})}),e.jsx(a.Item,{label:"select选择器(联动):",children:e.jsxs(c,{gutter:12,children:[e.jsx(i,{span:12,children:e.jsx(a.Item,{name:"selectProvince",children:e.jsx(y,{options:N.map(l=>({value:l})),onChange:T})})}),e.jsx(i,{span:12,children:e.jsx(a.Item,{name:"selectCity",children:e.jsx(y,{options:v[s.selectProvince].map(l=>({value:l}))})})})]})}),e.jsx(a.Item,{label:"日期和时间选择器:",name:"dateVal",children:e.jsxs(c,{gutter:12,children:[e.jsx(i,{span:12,children:e.jsx(E,{placeholder:"选择日期",style:{width:"100%"}})}),e.jsx(i,{span:12,children:e.jsx(a.Item,{name:"timeVal",children:e.jsx(O,{placeholder:"选择时间",style:{width:"100%"}})})})]})}),e.jsx(a.Item,{label:"switch开关(显示隐藏):",name:"switchVal",valuePropName:"checked",children:e.jsx(W,{})}),k?e.jsxs(e.Fragment,{children:[e.jsx(a.Item,{label:"滑块条(初始值):",name:"sliderVal",children:e.jsx(Z,{})}),e.jsx(a.Item,{label:"级联选择器:",children:e.jsxs(c,{gutter:12,children:[e.jsx(i,{span:12,children:e.jsx(a.Item,{name:"cascaderVal",children:e.jsx(w,{options:G,placeholder:"请选择"})})}),e.jsx(i,{span:12,children:e.jsx(a.Item,{name:"cascaderLazy",children:e.jsx(w,{options:x,loadData:S,changeOnSelect:!0,placeholder:"请输入"})})})]})}),e.jsx(a.Item,{label:"树选择器(可勾选):",name:"treeVal",children:e.jsxs(c,{gutter:12,children:[e.jsx(i,{span:12,children:e.jsx(m,{treeData:$,treeCheckable:!0,allowClear:!0,showCheckedStrategy:m.SHOW_PARENT,placeholder:"请选择"})}),e.jsx(i,{span:12,children:e.jsx(a.Item,{name:"treeLazy",children:e.jsx(m,{treeDataSimpleMode:!0,treeData:d,loadData:L,placeholder:"请选择"})})})]})}),e.jsx(a.Item,{label:"单选框(带禁止):",name:"radioVal",children:e.jsx(q.Group,{options:U})}),e.jsx(a.Item,{label:"多选框(带禁止):",name:"checkboxVal",children:e.jsx(H.Group,{options:K})}),e.jsx(a.Item,{label:"文本域(长度限制):",name:"textareaVal",children:e.jsx(b.TextArea,{maxLength:50,rows:3,placeholder:"请输入内容"})})]}):null,e.jsxs(a.Item,{wrapperCol:{span:12,offset:12},children:[e.jsx(I,{type:"primary",htmlType:"submit",children:"提交"}),e.jsx(I,{style:{marginLeft:"12px"},onClick:D,children:"重置"})]})]})})})};export{te as default}; diff --git a/assets/index-8336906c.js b/assets/index-94ad670d.js similarity index 98% rename from assets/index-8336906c.js rename to assets/index-94ad670d.js index 72a9d9a..8d71ea9 100644 --- a/assets/index-8336906c.js +++ b/assets/index-94ad670d.js @@ -1 +1 @@ -import{c as Q,j as w,aB as U,i as X,P as Y,H as Z,J as k}from"./antd-f8926cfc.js";import{_ as p,y as b,H as y,z as H,x as I,I as F,J as ee,t as J,v as G,K as ne,L as re,M as K,w as te,N as T,O as ie}from"./entry/index-8ac660c5.1705658946162.js";import{r as h,h as ue}from"./react-360e162b.js";import{U as ae}from"./index-b802f706.js";import"./Translatex-55ea8b90.js";var oe=function(e){return function(r,n){var t=h.useRef(!1);e(function(){return function(){t.current=!1}},[]),e(function(){if(!t.current)t.current=!0;else return r()},n)}};const B=oe(h.useEffect);var V=function(e,r){var n=r.manual,t=r.ready,u=t===void 0?!0:t,o=r.defaultParams,a=o===void 0?[]:o,c=r.refreshDeps,s=c===void 0?[]:c,i=r.refreshDepsAction,v=h.useRef(!1);return v.current=!1,B(function(){!n&&u&&(v.current=!0,e.run.apply(e,p([],b(a),!1)))},[u]),B(function(){v.current||n||(v.current=!0,i?i():e.refresh())},p([],b(s),!1)),{onBefore:function(){if(!u)return{stopNow:!0}}}};V.onInit=function(e){var r=e.ready,n=r===void 0?!0:r,t=e.manual;return{loading:!t&&n}};const se=V;function ce(e,r){if(e===r)return!0;for(var n=0;n-1&&(u=setTimeout(function(){O.delete(e)},r)),O.set(e,y(y({},n),{timer:u}))},le=function(e){return O.get(e)},D=new Map,de=function(e){return D.get(e)},ve=function(e,r){D.set(e,r),r.then(function(n){return D.delete(e),n}).catch(function(){D.delete(e)})},C={},he=function(e,r){C[e]&&C[e].forEach(function(n){return n(r)})},$=function(e,r){return C[e]||(C[e]=[]),C[e].push(r),function(){var t=C[e].indexOf(r);C[e].splice(t,1)}},me=function(e,r){var n=r.cacheKey,t=r.cacheTime,u=t===void 0?5*60*1e3:t,o=r.staleTime,a=o===void 0?0:o,c=r.setCache,s=r.getCache,i=h.useRef(),v=h.useRef(),d=function(f,l){c?c(l):fe(f,u,l),he(f,l.data)},m=function(f,l){return l===void 0&&(l=[]),s?s(l):le(f)};return q(function(){if(n){var f=m(n);f&&Object.hasOwnProperty.call(f,"data")&&(e.state.data=f.data,e.state.params=f.params,(a===-1||new Date().getTime()-f.time<=a)&&(e.state.loading=!1)),i.current=$(n,function(l){e.setState({data:l})})}},[]),H(function(){var f;(f=i.current)===null||f===void 0||f.call(i)}),n?{onBefore:function(f){var l=m(n,f);return!l||!Object.hasOwnProperty.call(l,"data")?{}:a===-1||new Date().getTime()-l.time<=a?{loading:!1,data:l==null?void 0:l.data,error:void 0,returnNow:!0}:{data:l==null?void 0:l.data,error:void 0}},onRequest:function(f,l){var g=de(n);return g&&g!==v.current?{servicePromise:g}:(g=f.apply(void 0,p([],b(l),!1)),v.current=g,ve(n,g),{servicePromise:g})},onSuccess:function(f,l){var g;n&&((g=i.current)===null||g===void 0||g.call(i),d(n,{data:f,params:l,time:new Date().getTime()}),i.current=$(n,function(A){e.setState({data:A})}))},onMutate:function(f){var l;n&&((l=i.current)===null||l===void 0||l.call(i),d(n,{data:f,params:e.state.params,time:new Date().getTime()}),i.current=$(n,function(g){e.setState({data:g})}))}}:{}};const ge=me;var pe=function(e,r){var n=r.debounceWait,t=r.debounceLeading,u=r.debounceTrailing,o=r.debounceMaxWait,a=h.useRef(),c=h.useMemo(function(){var s={};return t!==void 0&&(s.leading=t),u!==void 0&&(s.trailing=u),o!==void 0&&(s.maxWait=o),s},[t,u,o]);return h.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=I(function(i){i()},n,c),e.runAsync=function(){for(var i=[],v=0;v-1&&j.splice(n,1)}}if(F){var z=function(){if(!(!W()||!Se()))for(var e=0;e({"add-button":{background:e.colorDefault}})),Qe=()=>{const{styles:e,theme:r,cx:n}=ze(),t=ue(),[u,o]=h.useState([]),{data:a,loading:c}=Ue(ie);return h.useEffect(()=>{o((a==null?void 0:a.list)||[])},[a]),w.jsxs(U,{gap:16,vertical:!0,children:[w.jsx(U,{justify:"end",children:w.jsx(X,{className:n(e["add-button"]),type:"primary",icon:w.jsx(Y,{}),onClick:()=>t("/user/add-user"),children:"新建"})}),w.jsx(Z,{gutter:[16,16],children:u==null?void 0:u.map((s,i)=>w.jsx(k,{span:8,children:w.jsx(ae,{data:s,index:i,loading:c})},s.id))})]})};export{Qe as default}; +import{c as Q,j as w,aB as U,i as X,P as Y,H as Z,J as k}from"./antd-f8926cfc.js";import{_ as p,y as b,H as y,z as H,x as I,I as F,J as ee,t as J,v as G,K as ne,L as re,M as K,w as te,N as T,O as ie}from"./entry/index-f446ec7a.1705681920479.js";import{r as h,h as ue}from"./react-360e162b.js";import{U as ae}from"./index-4bfef12d.js";import"./Translatex-54c367b9.js";var oe=function(e){return function(r,n){var t=h.useRef(!1);e(function(){return function(){t.current=!1}},[]),e(function(){if(!t.current)t.current=!0;else return r()},n)}};const B=oe(h.useEffect);var V=function(e,r){var n=r.manual,t=r.ready,u=t===void 0?!0:t,o=r.defaultParams,a=o===void 0?[]:o,c=r.refreshDeps,s=c===void 0?[]:c,i=r.refreshDepsAction,v=h.useRef(!1);return v.current=!1,B(function(){!n&&u&&(v.current=!0,e.run.apply(e,p([],b(a),!1)))},[u]),B(function(){v.current||n||(v.current=!0,i?i():e.refresh())},p([],b(s),!1)),{onBefore:function(){if(!u)return{stopNow:!0}}}};V.onInit=function(e){var r=e.ready,n=r===void 0?!0:r,t=e.manual;return{loading:!t&&n}};const se=V;function ce(e,r){if(e===r)return!0;for(var n=0;n-1&&(u=setTimeout(function(){O.delete(e)},r)),O.set(e,y(y({},n),{timer:u}))},le=function(e){return O.get(e)},D=new Map,de=function(e){return D.get(e)},ve=function(e,r){D.set(e,r),r.then(function(n){return D.delete(e),n}).catch(function(){D.delete(e)})},C={},he=function(e,r){C[e]&&C[e].forEach(function(n){return n(r)})},$=function(e,r){return C[e]||(C[e]=[]),C[e].push(r),function(){var t=C[e].indexOf(r);C[e].splice(t,1)}},me=function(e,r){var n=r.cacheKey,t=r.cacheTime,u=t===void 0?5*60*1e3:t,o=r.staleTime,a=o===void 0?0:o,c=r.setCache,s=r.getCache,i=h.useRef(),v=h.useRef(),d=function(f,l){c?c(l):fe(f,u,l),he(f,l.data)},m=function(f,l){return l===void 0&&(l=[]),s?s(l):le(f)};return q(function(){if(n){var f=m(n);f&&Object.hasOwnProperty.call(f,"data")&&(e.state.data=f.data,e.state.params=f.params,(a===-1||new Date().getTime()-f.time<=a)&&(e.state.loading=!1)),i.current=$(n,function(l){e.setState({data:l})})}},[]),H(function(){var f;(f=i.current)===null||f===void 0||f.call(i)}),n?{onBefore:function(f){var l=m(n,f);return!l||!Object.hasOwnProperty.call(l,"data")?{}:a===-1||new Date().getTime()-l.time<=a?{loading:!1,data:l==null?void 0:l.data,error:void 0,returnNow:!0}:{data:l==null?void 0:l.data,error:void 0}},onRequest:function(f,l){var g=de(n);return g&&g!==v.current?{servicePromise:g}:(g=f.apply(void 0,p([],b(l),!1)),v.current=g,ve(n,g),{servicePromise:g})},onSuccess:function(f,l){var g;n&&((g=i.current)===null||g===void 0||g.call(i),d(n,{data:f,params:l,time:new Date().getTime()}),i.current=$(n,function(A){e.setState({data:A})}))},onMutate:function(f){var l;n&&((l=i.current)===null||l===void 0||l.call(i),d(n,{data:f,params:e.state.params,time:new Date().getTime()}),i.current=$(n,function(g){e.setState({data:g})}))}}:{}};const ge=me;var pe=function(e,r){var n=r.debounceWait,t=r.debounceLeading,u=r.debounceTrailing,o=r.debounceMaxWait,a=h.useRef(),c=h.useMemo(function(){var s={};return t!==void 0&&(s.leading=t),u!==void 0&&(s.trailing=u),o!==void 0&&(s.maxWait=o),s},[t,u,o]);return h.useEffect(function(){if(n){var s=e.runAsync.bind(e);return a.current=I(function(i){i()},n,c),e.runAsync=function(){for(var i=[],v=0;v-1&&j.splice(n,1)}}if(F){var z=function(){if(!(!W()||!Se()))for(var e=0;e({"add-button":{background:e.colorDefault}})),Qe=()=>{const{styles:e,theme:r,cx:n}=ze(),t=ue(),[u,o]=h.useState([]),{data:a,loading:c}=Ue(ie);return h.useEffect(()=>{o((a==null?void 0:a.list)||[])},[a]),w.jsxs(U,{gap:16,vertical:!0,children:[w.jsx(U,{justify:"end",children:w.jsx(X,{className:n(e["add-button"]),type:"primary",icon:w.jsx(Y,{}),onClick:()=>t("/user/add-user"),children:"新建"})}),w.jsx(Z,{gutter:[16,16],children:u==null?void 0:u.map((s,i)=>w.jsx(k,{span:8,children:w.jsx(ae,{data:s,index:i,loading:c})},s.id))})]})};export{Qe as default}; diff --git a/assets/index-930d4838.js b/assets/index-c2ab742f.js similarity index 99% rename from assets/index-930d4838.js rename to assets/index-c2ab742f.js index d5c130f..81d2916 100644 --- a/assets/index-930d4838.js +++ b/assets/index-c2ab742f.js @@ -1,4 +1,4 @@ -var R8=Object.defineProperty,P8=Object.defineProperties;var D8=Object.getOwnPropertyDescriptors;var xm=Object.getOwnPropertySymbols;var TP=Object.prototype.hasOwnProperty,CP=Object.prototype.propertyIsEnumerable;var A1=Math.pow,bP=(n,e,t)=>e in n?R8(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Tt=(n,e)=>{for(var t in e||(e={}))TP.call(e,t)&&bP(n,t,e[t]);if(xm)for(var t of xm(e))CP.call(e,t)&&bP(n,t,e[t]);return n},yr=(n,e)=>P8(n,D8(e));var pi=(n,e)=>{var t={};for(var r in n)TP.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&xm)for(var r of xm(n))e.indexOf(r)<0&&CP.call(n,r)&&(t[r]=n[r]);return t};var gh=(n,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(u){i(u)}},o=l=>{try{s(t.throw(l))}catch(u){i(u)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);s((t=t.apply(n,e)).next())});import{j as ee,n as C3,ag as I8,S as E3,k as hc,au as L8,a7 as B8,ah as Sm,av as O8,Z as F8,$ as N8,v as k8,I as U8,aw as G8,ax as z8,a6 as H8,T as V8,L as W8,aj as X8,g as y0,a as ed,c as R3,X as P3,J as Oo,K as kT,H as EP,ay as Y8,i as j8}from"./antd-f8926cfc.js";import{r as X,a as At,g as D3}from"./react-360e162b.js";import{u as J8,a as Z8,b as K8,d as I3,G as L3,e as B3,f as O3,l as ar,g as pw,h as ps,i as q8,j as $8,k as Q8,m as e9,n as t9,q as n9,s as r9,t as i9,v as a9,w as o9,x as s9,_ as l9,y as u9,z as c9,A as h9,S as _0,B as f9}from"./entry/index-8ac660c5.1705658946162.js";import{c as d9,U as p9}from"./index-b802f706.js";import{_ as M1}from"./index-cf1f4c7e.js";import{T as ei}from"./Translatex-55ea8b90.js";import{G as v9}from"./index-7c24f5a1.js";function g9(n){const e=X.useRef(null),t=Tt({mass:1,tension:170,friction:26,clamp:!1,precision:.01,velocity:0},n.panelConfig),[{xys:r},i]=J8(()=>({xys:[0,0,1],config:t}),[t]),a=()=>i.start({xys:[0,0,1]}),o=s=>{var u;const l=(u=e.current)==null?void 0:u.getBoundingClientRect();i.start({xys:m9(s.clientX,s.clientY,l)})};return ee.jsx("div",{ref:e,children:ee.jsxs(Z8.div,{className:"border border-solid ",style:{transform:r.to(y9)},onMouseLeave:a,onMouseMove:o,children:[ee.jsxs("p",{className:"text-sm flex justify-between border-solid",children:[n.title," ",n.right]}),n.children]})})}const m9=(n,e,t)=>[-(e-t.top-t.height/2)/150,(n-t.left-t.width/2)/150,1],y9=(n,e,t)=>`perspective(600px) rotateX(${n}deg) rotateY(${e}deg) scale(${t})`,w1=n=>{const i=n,{loading:e=!0,delay:t=200}=i,r=pi(i,["loading","delay"]);return ee.jsx(ei,{direction:"top",delay:t,run:!0,children:ee.jsx(C3,yr(Tt({hoverable:!0,loading:e},r),{children:n.children}))})};function _9(n){const i=n,{sliderConfig:e,children:t}=i,r=pi(i,["sliderConfig","children"]);return ee.jsx(K8,yr(Tt(Tt({},r),e),{children:t}))}function sv(n){"@babel/helpers - typeof";return sv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sv(n)}function K0(){return K0=Object.assign?Object.assign.bind():function(n){for(var e=1;ee in n?R8(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,Tt=(n,e)=>{for(var t in e||(e={}))TP.call(e,t)&&bP(n,t,e[t]);if(xm)for(var t of xm(e))CP.call(e,t)&&bP(n,t,e[t]);return n},yr=(n,e)=>P8(n,D8(e));var pi=(n,e)=>{var t={};for(var r in n)TP.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&xm)for(var r of xm(n))e.indexOf(r)<0&&CP.call(n,r)&&(t[r]=n[r]);return t};var gh=(n,e,t)=>new Promise((r,i)=>{var a=l=>{try{s(t.next(l))}catch(u){i(u)}},o=l=>{try{s(t.throw(l))}catch(u){i(u)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,o);s((t=t.apply(n,e)).next())});import{j as ee,n as C3,ag as I8,S as E3,k as hc,au as L8,a7 as B8,ah as Sm,av as O8,Z as F8,$ as N8,v as k8,I as U8,aw as G8,ax as z8,a6 as H8,T as V8,L as W8,aj as X8,g as y0,a as ed,c as R3,X as P3,J as Oo,K as kT,H as EP,ay as Y8,i as j8}from"./antd-f8926cfc.js";import{r as X,a as At,g as D3}from"./react-360e162b.js";import{u as J8,a as Z8,b as K8,d as I3,G as L3,e as B3,f as O3,l as ar,g as pw,h as ps,i as q8,j as $8,k as Q8,m as e9,n as t9,q as n9,s as r9,t as i9,v as a9,w as o9,x as s9,_ as l9,y as u9,z as c9,A as h9,S as _0,B as f9}from"./entry/index-f446ec7a.1705681920479.js";import{c as d9,U as p9}from"./index-4bfef12d.js";import{_ as M1}from"./index-cf1f4c7e.js";import{T as ei}from"./Translatex-54c367b9.js";import{G as v9}from"./index-e2e572cb.js";function g9(n){const e=X.useRef(null),t=Tt({mass:1,tension:170,friction:26,clamp:!1,precision:.01,velocity:0},n.panelConfig),[{xys:r},i]=J8(()=>({xys:[0,0,1],config:t}),[t]),a=()=>i.start({xys:[0,0,1]}),o=s=>{var u;const l=(u=e.current)==null?void 0:u.getBoundingClientRect();i.start({xys:m9(s.clientX,s.clientY,l)})};return ee.jsx("div",{ref:e,children:ee.jsxs(Z8.div,{className:"border border-solid ",style:{transform:r.to(y9)},onMouseLeave:a,onMouseMove:o,children:[ee.jsxs("p",{className:"text-sm flex justify-between border-solid",children:[n.title," ",n.right]}),n.children]})})}const m9=(n,e,t)=>[-(e-t.top-t.height/2)/150,(n-t.left-t.width/2)/150,1],y9=(n,e,t)=>`perspective(600px) rotateX(${n}deg) rotateY(${e}deg) scale(${t})`,w1=n=>{const i=n,{loading:e=!0,delay:t=200}=i,r=pi(i,["loading","delay"]);return ee.jsx(ei,{direction:"top",delay:t,run:!0,children:ee.jsx(C3,yr(Tt({hoverable:!0,loading:e},r),{children:n.children}))})};function _9(n){const i=n,{sliderConfig:e,children:t}=i,r=pi(i,["sliderConfig","children"]);return ee.jsx(K8,yr(Tt(Tt({},r),e),{children:t}))}function sv(n){"@babel/helpers - typeof";return sv=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sv(n)}function K0(){return K0=Object.assign?Object.assign.bind():function(n){for(var e=1;en.length)&&(e=n.length);for(var t=0,r=new Array(e);te.jsx(e.Fragment,{children:e.jsxs(m,{gutter:[16,16],children:[e.jsx(h,{span:12,children:e.jsxs(c,{children:[e.jsx(f,{children:"Checkbox"}),e.jsx(k,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(F,{defaultChecked:!0})]})}),e.jsx(h,{span:12})]})}),p="/react-antd-admin-pnpm/assets/travel_3-0a78a2d4.jpg",T=g(({token:s})=>({"custom-image":{borderRadius:s.borderRadiusLG},"card-action":{position:"absolute",right:s.paddingSM,top:s.paddingSM}})),{Title:W,Text:Y}=y,Z=()=>{const{styles:s,cx:l}=T(),x=[{key:"1",label:e.jsxs(S,{size:8,children:[e.jsx(D,{rev:void 0}),e.jsx("span",{children:"删除"})]})},{key:"2",label:e.jsxs(S,{size:8,children:[e.jsx(I,{rev:void 0}),e.jsx("span",{children:"修改"})]})}],j=({key:t})=>{},a=[{avatar:p,name:"Gbeata",title:"来历不明"},{avatar:p,name:"Gbeata",title:"来历不明"},{avatar:p,name:"Gbeata",title:"来历不明"},{avatar:p,name:"Gbeata",title:"来历不明"}];return e.jsx(e.Fragment,{children:e.jsx(m,{gutter:[16,16],children:a.map((t,v)=>e.jsx(h,{span:8,children:e.jsxs(c,{children:[e.jsx(G,{menu:{items:x,onClick:j},placement:"bottomRight",arrow:!0,children:e.jsx(r,{className:l(s["card-action"]),shape:"circle",type:"text",icon:e.jsx(N,{})})}),e.jsxs(i,{gap:8,vertical:!0,align:"center",children:[e.jsx(o,{size:64,src:t.avatar}),e.jsx(W,{style:{margin:0},level:5,children:t.name}),e.jsx(Y,{type:"secondary",children:t.title}),e.jsxs(i,{style:{marginTop:8},gap:8,children:[e.jsx(r,{shape:"circle",icon:e.jsx(n,{style:{color:"#1890ff"},name:"github"})}),e.jsx(r,{shape:"circle",icon:e.jsx(n,{name:"message"})}),e.jsx(r,{shape:"circle",icon:e.jsx(n,{name:"like"})})]})]})]})},v))})})},q=()=>e.jsx(e.Fragment,{children:e.jsxs(m,{gutter:[16,16],children:[e.jsx(h,{span:12,children:e.jsxs(c,{children:[e.jsx(f,{children:"Checkbox"}),e.jsx(k,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(F,{defaultChecked:!0})]})}),e.jsx(h,{span:12,children:e.jsxs(c,{children:[e.jsx(f,{children:"Checkbox"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"})]})})]})}),Q="/react-antd-admin-pnpm/assets/avatar_1-329667d0.jpg",X="/react-antd-admin-pnpm/assets/avatar_4-2497c77c.jpg",C="/react-antd-admin-pnpm/assets/avatar_6-1e41071d.jpg",ee="/react-antd-admin-pnpm/assets/avatar_8-1956d908.jpg",se=g(({token:s})=>({"message-list":{".message_content":{flex:1,padding:s.paddingSM,backgroundColor:s.colorBgLayout,borderRadius:s.borderRadiusLG}}})),{Title:ae,Text:te}=y,ie=({avatar:s,time:l,content:x,user:j})=>{const{styles:a}=se();return e.jsxs(i,{gap:8,className:a["message-list"],children:[e.jsx("div",{children:s}),e.jsxs("div",{className:"message_content",children:[e.jsxs(i,{justify:"space-between",align:"center",children:[e.jsx(ae,{level:5,children:j}),e.jsx("div",{children:l})]}),e.jsx(te,{type:"secondary",children:x})]})]})},ne=g(({token:s})=>({"send-box":{".send-content":{flex:1,borderRadius:s.borderRadiusLG}}})),le=({avatar:s=C,time:l,content:x,user:j})=>{const{styles:a}=ne();return e.jsxs(i,{gap:8,align:"center",className:a["send-box"],children:[e.jsx(o,{src:s}),e.jsx("div",{className:"send-content",children:e.jsx(R,{placeholder:"请在这里输入您的留言",suffix:e.jsxs(i,{children:[e.jsx(r,{type:"text",shape:"circle",icon:e.jsx(n,{name:"picture"})}),e.jsx(r,{type:"text",shape:"circle",icon:e.jsx(n,{name:"express"})})]})})})]})},{Text:z}=y,re=()=>{const{styles:s}=T(),l=[{title:"深圳市",icon:e.jsx(n,{name:"point",size:24})},{title:"shoplazza.nyg@gmail.com",icon:e.jsx(n,{name:"email",size:24})},{title:"前端开发",icon:e.jsx(n,{name:"work",size:24})}],x=[{title:"https://github.com/anyone-yuren",icon:e.jsx(E,{style:{fontSize:24}})},{title:"nhf066901@sina.com",icon:e.jsx(H,{style:{fontSize:24}})},{title:"leio-forver",icon:e.jsx(P,{style:{fontSize:24}})},{title:"https://juejin.cn/user/2682464101469480/posts",icon:e.jsx(B,{style:{fontSize:24}})}],j=[{avatar:e.jsx(o,{src:X}),time:"2小时前",content:"做普通人,干正经事,可以爱小钱,但必有大胸怀。 ",user:"anyone"},{avatar:e.jsx(o,{src:Q}),time:"27 Dec 2023",content:"多年后,一个埋我的人被指定,这些年,我偶尔想一想死亡的事情,把活着,当成了一种习惯",user:"倾盆大雨"}];return e.jsx(e.Fragment,{children:e.jsxs(m,{gutter:[16,16],children:[e.jsx(h,{span:8,children:e.jsxs(i,{gap:16,vertical:!0,children:[e.jsx(c,{children:e.jsxs(i,{align:"middle",justify:"space-evenly",children:[e.jsx(w,{name:"Follower",count:12}),e.jsx(_,{style:{height:"auto"},type:"vertical"}),e.jsx(w,{name:"Following",count:112})]})}),e.jsxs(c,{title:"关于我",children:[e.jsx(z,{type:"secondary",children:"如果给你寄一本书, 我不会寄给你诗歌, 我要给你一本关于植物,关于庄稼的, 告诉你稻子和稗子的区别, 告诉你一棵稗子提心吊胆的春天。"}),e.jsx(d,{itemLayout:"horizontal",dataSource:l,renderItem:(a,t)=>e.jsx(d.Item,{children:e.jsx(d.Item.Meta,{avatar:a.icon,description:a.title})},t)})]}),e.jsx(c,{title:"社交",children:e.jsx(d,{itemLayout:"horizontal",dataSource:x,renderItem:(a,t)=>e.jsx(d.Item,{children:e.jsx(d.Item.Meta,{avatar:a.icon,description:a.title})},t)})})]})}),e.jsx(h,{span:16,children:e.jsxs(i,{gap:16,vertical:!0,children:[e.jsx(c,{children:e.jsxs(i,{gap:16,vertical:!0,children:[e.jsx(L,{rows:4,placeholder:"分享你想对我说的话",maxLength:6}),e.jsx(i,{justify:"end",children:e.jsx(r,{type:"primary",children:"发布"})})]})}),e.jsx(c,{title:e.jsxs(i,{justify:"space-between",align:"center",gap:16,children:[e.jsx(d,{children:e.jsx(d.Item,{children:e.jsx(d.Item.Meta,{avatar:e.jsx(o,{src:ee,size:48}),title:"Gbeata",description:"25 Dec 2023"})},"1")}),e.jsx(r,{shape:"circle",type:"text",icon:e.jsx(N,{})})]}),children:e.jsxs(i,{gap:16,vertical:!0,children:[e.jsx(z,{children:"我填平了山海,却发现你在云端。"}),e.jsx($,{className:s["custom-image"],width:"100%",height:400,src:p}),e.jsxs(i,{justify:"space-between",align:"content-center",children:[e.jsxs(i,{align:"center",children:[e.jsx(r,{id:"like",size:"small",type:"text",icon:e.jsx(n,{name:"love"}),children:"3"}),e.jsxs(o.Group,{maxCount:2,maxStyle:{color:"#f56a00",backgroundColor:"#fde3cf"},children:[e.jsx(o,{src:"https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"}),e.jsx(o,{src:C,style:{backgroundColor:"#f56a00"},children:"K"}),e.jsx(o,{style:{backgroundColor:"#1677ff"},icon:e.jsx(M,{})})]})]}),e.jsxs("div",{children:[e.jsx(r,{shape:"circle",type:"text",icon:e.jsx(O,{})}),e.jsx(r,{shape:"circle",type:"text",icon:e.jsx(A,{})})]})]}),j.map(a=>e.jsx(ie,{avatar:a.avatar,time:a.time,content:a.content,user:a.user})),e.jsx(le,{})]})})]})})]})})},ce=g(({token:s})=>({"user-card":{width:"100%",position:"relative",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-segmented-item-label":{lineHeight:"48px !important",minHeight:"48px !important",padding:"0 16px !important"},".profile":{verticalAlign:"-0.35em"},".ant-card-body":{padding:0,textAlign:"right"},".ant-card-cover":{minHeight:"200px",position:"relative",background:`url(${U})`,filter:"blur(0)",backgroundRepeat:"no-repeat",backgroundSize:"cover","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"absolute",display:"flex",flexDirection:"row",zIndex:2,bottom:"-24px",left:"24px",gap:"16px",".info":{display:"flex",flexDirection:"column",justifyContent:"center",color:"white"},".avatar":{width:"128px",height:"128px",borderRadius:"50%",overflow:"hidden"}}},translatex:{margin:`${s.marginSM}px 0`},content:{position:"relative"}})),{Text:de,Title:oe}=y,xe=s=>{const[l,x]=b.useState("Profile"),[j,a]=b.useState(!0),{styles:t}=ce();return b.useEffect(()=>{setTimeout(()=>{a(!1)},1500)},[]),e.jsxs("div",{className:t.content,children:[e.jsx(c,{hoverable:!0,className:t["user-card"],cover:e.jsx(e.Fragment,{children:e.jsxs("div",{className:"user_info",children:[e.jsx("div",{className:"avatar",children:e.jsx("img",{src:K})}),e.jsxs("div",{className:"info",children:[e.jsx(oe,{style:{margin:0,color:"inherit"},level:3,children:"Gbeata"}),e.jsx(de,{style:{color:"inherit",opacity:.7},children:"来历不明"})]})]})}),children:e.jsx(J,{size:"large",onChange:v=>{x(v)},value:l,options:[{label:"Profile",value:"Profile",icon:e.jsx(n,{className:"profile",name:"profile",size:24})},{label:"Followers",value:"Followers",icon:e.jsx(n,{className:"profile",name:"followers",size:24})},{label:"Friends",value:"Friends",icon:e.jsx(n,{className:"profile",name:"friends",size:24})},{label:"Gallery",value:"Gallery",icon:e.jsx(n,{className:"profile",name:"gallery",size:24})}]})}),e.jsx(u,{className:t.translatex,direction:"left",run:l==="Profile",delay:100,children:e.jsx(re,{})}),e.jsx(u,{className:t.translatex,direction:"left",run:l==="Gallery",delay:100,children:e.jsx(q,{})}),e.jsx(u,{className:t.translatex,direction:"left",run:l==="Followers",delay:100,children:e.jsx(V,{})}),e.jsx(u,{className:t.translatex,direction:"left",run:l==="Friends",delay:100,children:e.jsx(Z,{})})]})},ge=()=>e.jsx(xe,{});export{ge as default}; +import{j as e,H as m,J as h,n as c,v as f,s as k,u as F,c as g,a7 as G,i as r,aA as N,aB as i,aC as o,K as y,S,D,aD as I,I as R,ay as _,a2 as d,aE as L,U as $,aF as M,aG as O,aH as A,a0 as E,aI as H,aJ as P,aK as B,a3 as J}from"./antd-f8926cfc.js";import{a as b}from"./react-360e162b.js";import{E as n}from"./entry/index-f446ec7a.1705681920479.js";import{T as u}from"./Translatex-54c367b9.js";import{a as w,c as U,b as K}from"./index-4bfef12d.js";const V=()=>e.jsx(e.Fragment,{children:e.jsxs(m,{gutter:[16,16],children:[e.jsx(h,{span:12,children:e.jsxs(c,{children:[e.jsx(f,{children:"Checkbox"}),e.jsx(k,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(F,{defaultChecked:!0})]})}),e.jsx(h,{span:12})]})}),p="/react-antd-admin-pnpm/assets/travel_3-0a78a2d4.jpg",T=g(({token:s})=>({"custom-image":{borderRadius:s.borderRadiusLG},"card-action":{position:"absolute",right:s.paddingSM,top:s.paddingSM}})),{Title:W,Text:Y}=y,Z=()=>{const{styles:s,cx:l}=T(),x=[{key:"1",label:e.jsxs(S,{size:8,children:[e.jsx(D,{rev:void 0}),e.jsx("span",{children:"删除"})]})},{key:"2",label:e.jsxs(S,{size:8,children:[e.jsx(I,{rev:void 0}),e.jsx("span",{children:"修改"})]})}],j=({key:t})=>{},a=[{avatar:p,name:"Gbeata",title:"来历不明"},{avatar:p,name:"Gbeata",title:"来历不明"},{avatar:p,name:"Gbeata",title:"来历不明"},{avatar:p,name:"Gbeata",title:"来历不明"}];return e.jsx(e.Fragment,{children:e.jsx(m,{gutter:[16,16],children:a.map((t,v)=>e.jsx(h,{span:8,children:e.jsxs(c,{children:[e.jsx(G,{menu:{items:x,onClick:j},placement:"bottomRight",arrow:!0,children:e.jsx(r,{className:l(s["card-action"]),shape:"circle",type:"text",icon:e.jsx(N,{})})}),e.jsxs(i,{gap:8,vertical:!0,align:"center",children:[e.jsx(o,{size:64,src:t.avatar}),e.jsx(W,{style:{margin:0},level:5,children:t.name}),e.jsx(Y,{type:"secondary",children:t.title}),e.jsxs(i,{style:{marginTop:8},gap:8,children:[e.jsx(r,{shape:"circle",icon:e.jsx(n,{style:{color:"#1890ff"},name:"github"})}),e.jsx(r,{shape:"circle",icon:e.jsx(n,{name:"message"})}),e.jsx(r,{shape:"circle",icon:e.jsx(n,{name:"like"})})]})]})]})},v))})})},q=()=>e.jsx(e.Fragment,{children:e.jsxs(m,{gutter:[16,16],children:[e.jsx(h,{span:12,children:e.jsxs(c,{children:[e.jsx(f,{children:"Checkbox"}),e.jsx(k,{defaultValue:"lucy",style:{width:120},options:[{value:"jack",label:"Jack"},{value:"lucy",label:"Lucy"},{value:"Yiminghe",label:"yiminghe"},{value:"disabled",label:"Disabled",disabled:!0}]}),e.jsx(F,{defaultChecked:!0})]})}),e.jsx(h,{span:12,children:e.jsxs(c,{children:[e.jsx(f,{children:"Checkbox"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"}),e.jsx("p",{children:"sda"})]})})]})}),Q="/react-antd-admin-pnpm/assets/avatar_1-329667d0.jpg",X="/react-antd-admin-pnpm/assets/avatar_4-2497c77c.jpg",C="/react-antd-admin-pnpm/assets/avatar_6-1e41071d.jpg",ee="/react-antd-admin-pnpm/assets/avatar_8-1956d908.jpg",se=g(({token:s})=>({"message-list":{".message_content":{flex:1,padding:s.paddingSM,backgroundColor:s.colorBgLayout,borderRadius:s.borderRadiusLG}}})),{Title:ae,Text:te}=y,ie=({avatar:s,time:l,content:x,user:j})=>{const{styles:a}=se();return e.jsxs(i,{gap:8,className:a["message-list"],children:[e.jsx("div",{children:s}),e.jsxs("div",{className:"message_content",children:[e.jsxs(i,{justify:"space-between",align:"center",children:[e.jsx(ae,{level:5,children:j}),e.jsx("div",{children:l})]}),e.jsx(te,{type:"secondary",children:x})]})]})},ne=g(({token:s})=>({"send-box":{".send-content":{flex:1,borderRadius:s.borderRadiusLG}}})),le=({avatar:s=C,time:l,content:x,user:j})=>{const{styles:a}=ne();return e.jsxs(i,{gap:8,align:"center",className:a["send-box"],children:[e.jsx(o,{src:s}),e.jsx("div",{className:"send-content",children:e.jsx(R,{placeholder:"请在这里输入您的留言",suffix:e.jsxs(i,{children:[e.jsx(r,{type:"text",shape:"circle",icon:e.jsx(n,{name:"picture"})}),e.jsx(r,{type:"text",shape:"circle",icon:e.jsx(n,{name:"express"})})]})})})]})},{Text:z}=y,re=()=>{const{styles:s}=T(),l=[{title:"深圳市",icon:e.jsx(n,{name:"point",size:24})},{title:"shoplazza.nyg@gmail.com",icon:e.jsx(n,{name:"email",size:24})},{title:"前端开发",icon:e.jsx(n,{name:"work",size:24})}],x=[{title:"https://github.com/anyone-yuren",icon:e.jsx(E,{style:{fontSize:24}})},{title:"nhf066901@sina.com",icon:e.jsx(H,{style:{fontSize:24}})},{title:"leio-forver",icon:e.jsx(P,{style:{fontSize:24}})},{title:"https://juejin.cn/user/2682464101469480/posts",icon:e.jsx(B,{style:{fontSize:24}})}],j=[{avatar:e.jsx(o,{src:X}),time:"2小时前",content:"做普通人,干正经事,可以爱小钱,但必有大胸怀。 ",user:"anyone"},{avatar:e.jsx(o,{src:Q}),time:"27 Dec 2023",content:"多年后,一个埋我的人被指定,这些年,我偶尔想一想死亡的事情,把活着,当成了一种习惯",user:"倾盆大雨"}];return e.jsx(e.Fragment,{children:e.jsxs(m,{gutter:[16,16],children:[e.jsx(h,{span:8,children:e.jsxs(i,{gap:16,vertical:!0,children:[e.jsx(c,{children:e.jsxs(i,{align:"middle",justify:"space-evenly",children:[e.jsx(w,{name:"Follower",count:12}),e.jsx(_,{style:{height:"auto"},type:"vertical"}),e.jsx(w,{name:"Following",count:112})]})}),e.jsxs(c,{title:"关于我",children:[e.jsx(z,{type:"secondary",children:"如果给你寄一本书, 我不会寄给你诗歌, 我要给你一本关于植物,关于庄稼的, 告诉你稻子和稗子的区别, 告诉你一棵稗子提心吊胆的春天。"}),e.jsx(d,{itemLayout:"horizontal",dataSource:l,renderItem:(a,t)=>e.jsx(d.Item,{children:e.jsx(d.Item.Meta,{avatar:a.icon,description:a.title})},t)})]}),e.jsx(c,{title:"社交",children:e.jsx(d,{itemLayout:"horizontal",dataSource:x,renderItem:(a,t)=>e.jsx(d.Item,{children:e.jsx(d.Item.Meta,{avatar:a.icon,description:a.title})},t)})})]})}),e.jsx(h,{span:16,children:e.jsxs(i,{gap:16,vertical:!0,children:[e.jsx(c,{children:e.jsxs(i,{gap:16,vertical:!0,children:[e.jsx(L,{rows:4,placeholder:"分享你想对我说的话",maxLength:6}),e.jsx(i,{justify:"end",children:e.jsx(r,{type:"primary",children:"发布"})})]})}),e.jsx(c,{title:e.jsxs(i,{justify:"space-between",align:"center",gap:16,children:[e.jsx(d,{children:e.jsx(d.Item,{children:e.jsx(d.Item.Meta,{avatar:e.jsx(o,{src:ee,size:48}),title:"Gbeata",description:"25 Dec 2023"})},"1")}),e.jsx(r,{shape:"circle",type:"text",icon:e.jsx(N,{})})]}),children:e.jsxs(i,{gap:16,vertical:!0,children:[e.jsx(z,{children:"我填平了山海,却发现你在云端。"}),e.jsx($,{className:s["custom-image"],width:"100%",height:400,src:p}),e.jsxs(i,{justify:"space-between",align:"content-center",children:[e.jsxs(i,{align:"center",children:[e.jsx(r,{id:"like",size:"small",type:"text",icon:e.jsx(n,{name:"love"}),children:"3"}),e.jsxs(o.Group,{maxCount:2,maxStyle:{color:"#f56a00",backgroundColor:"#fde3cf"},children:[e.jsx(o,{src:"https://xsgames.co/randomusers/avatar.php?g=pixel&key=2"}),e.jsx(o,{src:C,style:{backgroundColor:"#f56a00"},children:"K"}),e.jsx(o,{style:{backgroundColor:"#1677ff"},icon:e.jsx(M,{})})]})]}),e.jsxs("div",{children:[e.jsx(r,{shape:"circle",type:"text",icon:e.jsx(O,{})}),e.jsx(r,{shape:"circle",type:"text",icon:e.jsx(A,{})})]})]}),j.map(a=>e.jsx(ie,{avatar:a.avatar,time:a.time,content:a.content,user:a.user})),e.jsx(le,{})]})})]})})]})})},ce=g(({token:s})=>({"user-card":{width:"100%",position:"relative",".ant-skeleton, .ant-skeleton-image":{width:"100% !important"},".ant-segmented-item-label":{lineHeight:"48px !important",minHeight:"48px !important",padding:"0 16px !important"},".profile":{verticalAlign:"-0.35em"},".ant-card-body":{padding:0,textAlign:"right"},".ant-card-cover":{minHeight:"200px",position:"relative",background:`url(${U})`,filter:"blur(0)",backgroundRepeat:"no-repeat",backgroundSize:"cover","&:before":{content:'""',top:0,left:0,width:"100%",height:" 100%",zIndex:1,position:"absolute",background:"rgba(22, 28, 36, 0.48)",borderRadius:`${s.borderRadiusLG}px ${s.borderRadiusLG}px 0 0`}},".user_info":{position:"absolute",display:"flex",flexDirection:"row",zIndex:2,bottom:"-24px",left:"24px",gap:"16px",".info":{display:"flex",flexDirection:"column",justifyContent:"center",color:"white"},".avatar":{width:"128px",height:"128px",borderRadius:"50%",overflow:"hidden"}}},translatex:{margin:`${s.marginSM}px 0`},content:{position:"relative"}})),{Text:de,Title:oe}=y,xe=s=>{const[l,x]=b.useState("Profile"),[j,a]=b.useState(!0),{styles:t}=ce();return b.useEffect(()=>{setTimeout(()=>{a(!1)},1500)},[]),e.jsxs("div",{className:t.content,children:[e.jsx(c,{hoverable:!0,className:t["user-card"],cover:e.jsx(e.Fragment,{children:e.jsxs("div",{className:"user_info",children:[e.jsx("div",{className:"avatar",children:e.jsx("img",{src:K})}),e.jsxs("div",{className:"info",children:[e.jsx(oe,{style:{margin:0,color:"inherit"},level:3,children:"Gbeata"}),e.jsx(de,{style:{color:"inherit",opacity:.7},children:"来历不明"})]})]})}),children:e.jsx(J,{size:"large",onChange:v=>{x(v)},value:l,options:[{label:"Profile",value:"Profile",icon:e.jsx(n,{className:"profile",name:"profile",size:24})},{label:"Followers",value:"Followers",icon:e.jsx(n,{className:"profile",name:"followers",size:24})},{label:"Friends",value:"Friends",icon:e.jsx(n,{className:"profile",name:"friends",size:24})},{label:"Gallery",value:"Gallery",icon:e.jsx(n,{className:"profile",name:"gallery",size:24})}]})}),e.jsx(u,{className:t.translatex,direction:"left",run:l==="Profile",delay:100,children:e.jsx(re,{})}),e.jsx(u,{className:t.translatex,direction:"left",run:l==="Gallery",delay:100,children:e.jsx(q,{})}),e.jsx(u,{className:t.translatex,direction:"left",run:l==="Followers",delay:100,children:e.jsx(V,{})}),e.jsx(u,{className:t.translatex,direction:"left",run:l==="Friends",delay:100,children:e.jsx(Z,{})})]})},ge=()=>e.jsx(xe,{});export{ge as default}; diff --git a/assets/index-7c24f5a1.js b/assets/index-e2e572cb.js similarity index 98% rename from assets/index-7c24f5a1.js rename to assets/index-e2e572cb.js index d432fb0..624594b 100644 --- a/assets/index-7c24f5a1.js +++ b/assets/index-e2e572cb.js @@ -1,2 +1,2 @@ -import{n as ie,g as ae,J as oe,F as le,S as ue,a1 as se,au as ce,o as fe,az as me}from"./antd-f8926cfc.js";import{r as m,a as c}from"./react-360e162b.js";import{C as de,e as pe,g as A,l as _,F as ye,D as ve}from"./entry/index-8ac660c5.1705658946162.js";var ge=["fields","onConfirm","onReset","formExtend","defaultOpen","toggleVisible","openRow","actionVisible","inline"];function E(t){"@babel/helpers - typeof";return E=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(t)}function x(){return x=Object.assign?Object.assign.bind():function(t){for(var e=1;et.length)&&(e=t.length);for(var r=0,n=new Array(e);r=0)&&Object.prototype.propertyIsEnumerable.call(t,n)&&(r[n]=t[n])}return r}function Ee(t,e){if(t==null)return{};var r={},n=Object.keys(t),a,s;for(s=0;s=0)&&(r[a]=t[a]);return r}function k(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(t,a).enumerable})),r.push.apply(r,n)}return r}function j(t){for(var e=1;e24?(p+=24-f,f=24-b):f+=b,f===24&&(f=0),p+=b,r&&p>s*24-a&&g!==0&&(u.hidden=!0),u.span=b,u}),{searchFields:y,span:p}},xe=function(e){return e?_.search.collapsed:_.search.expand},Ce=["getFieldValue","getFieldsValue","getFieldError","getFieldsError","isFieldTouched","isFieldsTouched","isFieldValidating","resetFields","scrollToField","setFields","setFieldsValue","submit","validateFields"],Ie=m.forwardRef(function(e,r){var n=e.fields,a=e.onConfirm,s=e.onReset,v=e.formExtend,p=e.defaultOpen,f=e.toggleVisible,y=e.openRow,o=y===void 0?Pe:y,g=e.actionVisible,u=e.inline,b=we(e,ge),H=de(),C=H.styles,P=m.useRef(),M=m.useRef(0),K=m.useState(!p),V=N(K,2),h=V[0],U=V[1],Y=m.useState("large"),D=N(Y,2),T=D[0],J=D[1],S=m.useMemo(function(){return _e[T]},[T]),I=Ae(n,h,T,S,o,u||!1),R=I.searchFields,O=I.span,L=m.useMemo(function(){if(!u){if(O<=18)return 6;var i=0,l=0,d=0;R.forEach(function(re,ne){var w=re.span||S;w+l>24?(i+=24-l,l=24-w):l+=w,l===24&&(l=0),i+w+S>o*24&&!d&&ne!==0&&(d=i),i+=w}),d===0&&(d=i);var B=24-(h?d:i)%24;return B}},[R,S,h,O,u]),z=m.useMemo(function(){return O>=24-S},[O]),q=m.useMemo(function(){var i={};return z?i.textAlign="right":i.paddingLeft=50,u&&(i={}),i},[z,u]),F=m.useRef(),G={resize:function(){return W()}};Ce.forEach(function(i){G[i]=function(){var l;return(l=F.current)[i].apply(l,arguments)}}),m.useImperativeHandle(r,function(){return G});var Q=function(){U(!h)},X=function(){try{var l=P.current.offsetWidth,d="large";l>1300?d="large":l>900?d="middle":l>700?d="small":d="mini",J(d)}catch(B){}},W=function(){var l=Date.now();l-M.current>100&&(X(),M.current=l)};m.useLayoutEffect(function(){var i=new window.ResizeObserver(function(){W()});return i.observe(P.current),function(){i.disconnect()}},[]);var Z=function(){F.current.resetFields(),F.current.submit(),s&&s()},ee=function(l){a&&a(l)},te=function(){return c.createElement(A,{type:"link",onClick:Q},xe(h),h?c.createElement(fe,null):c.createElement(me,null))};return c.createElement(ie,{className:ae(C.gSearch,u?"":"full-width",u?C.inline:"")},c.createElement("div",{className:"g-search-content",ref:P},c.createElement(pe,x({layout:{labelCol:{flex:"100px"}},ref:F,fields:R,span:S,gutter:u?0:16,formLayout:u?"inline":"horizontal",onConfirm:ee},b,v),g!==!1&&c.createElement(oe,{span:L,style:q},c.createElement(le.Item,null,c.createElement(ue,null,c.createElement(A,{htmlType:"submit",type:"primary",icon:c.createElement(se,null)},_.search.search),c.createElement(A,{icon:c.createElement(ce,null),onClick:Z},_.search.reset),f!==!1&&!u?O>o*24-(L||0)&&R.length>1&&c.createElement(te,null):null))))))});export{Ie as G}; diff --git a/assets/websiteSetting-f431f8d1.js b/assets/websiteSetting-252d9417.js similarity index 97% rename from assets/websiteSetting-f431f8d1.js rename to assets/websiteSetting-252d9417.js index 6db957b..80fa055 100644 --- a/assets/websiteSetting-f431f8d1.js +++ b/assets/websiteSetting-252d9417.js @@ -1 +1 @@ -import{j as e,i as o}from"./antd-f8926cfc.js";import{S as p,o as d}from"./entry/index-8ac660c5.1705658946162.js";const n={"compo_page-wrapper":"_compo_page-wrapper_s53in_1","page-header":"_page-header_s53in_1","page-header-name":"_page-header-name_s53in_9","page-content":"_page-content_s53in_17"},l=a=>{var s,t;function c(){var r;d((r=a.plugin)==null?void 0:r.url)}return e.jsxs("div",{className:n["compo_page-wrapper"],children:[e.jsxs("div",{className:n["page-header"],children:[e.jsxs("div",{className:n["page-header-name"],children:[e.jsx(p,{name:"hints",size:18}),e.jsx("span",{children:(s=a.plugin)==null?void 0:s.name})]}),e.jsx("p",{children:(t=a.plugin)==null?void 0:t.desc}),e.jsxs("p",{children:[e.jsx("span",{children:"github源码:"}),e.jsx(o,{type:"link",size:"small",onClick:c,children:"立即访问"})]})]}),e.jsx("div",{className:n["page-content"],children:a.children})]})},g={name:"Form表单",url:"https://www.antdv.com/components/form",desc:"ant-design-form: 使用 ant-design 的 form 组件, 可用以收集、校验和提交数据等操作。"},h={name:"Form查询表单",url:"暂未发布,可直接查看 /packages/gbeata 组件库",desc:"GSearchForm: 使用 ant-design 的 form 组件, 进行二次封装的组件,具体实现可查看 /packages/gbeata/src/GSearchForm 组件库"},u={name:"Transfer穿梭框",url:"https://ant-design.antgroup.com/components/transfer",desc:"ant-design-transfer: 使用 ant-design 的 transfer 组件, 可用于对列表数据进行选中、取消等操作。"},_={name:"Upload图片上传组件",url:"https://antdv.com/components/upload",desc:"ant-design-upload: 使用 ant-design 的 upload 组件, 并具有多种列表展示方式。"},R={name:"Sortable拖拽列表",url:"https://github.com/SortableJS/react-sortablejs",desc:"ReactSortable: 基于Sortable.js的react组件, 用以实现拖拽功能。"},b={name:"React-Rnd拖拽组件",url:"https://github.com/bokuweb/react-rnd",desc:"React-Rnd: 一款可调整大小和可拖拽的React组件。"},j={name:"CountUp数字滚动",url:"https://github.com/glennreyes/react-countup",desc:"React-CountUp: 一个无依赖、轻量级的react数字滚动插件, 以更有趣的方式显示数字数据。"};export{j as C,g as F,l as P,b as R,R as S,u as T,_ as U,h as a}; +import{j as e,i as o}from"./antd-f8926cfc.js";import{S as p,o as d}from"./entry/index-f446ec7a.1705681920479.js";const n={"compo_page-wrapper":"_compo_page-wrapper_s53in_1","page-header":"_page-header_s53in_1","page-header-name":"_page-header-name_s53in_9","page-content":"_page-content_s53in_17"},l=a=>{var s,t;function c(){var r;d((r=a.plugin)==null?void 0:r.url)}return e.jsxs("div",{className:n["compo_page-wrapper"],children:[e.jsxs("div",{className:n["page-header"],children:[e.jsxs("div",{className:n["page-header-name"],children:[e.jsx(p,{name:"hints",size:18}),e.jsx("span",{children:(s=a.plugin)==null?void 0:s.name})]}),e.jsx("p",{children:(t=a.plugin)==null?void 0:t.desc}),e.jsxs("p",{children:[e.jsx("span",{children:"github源码:"}),e.jsx(o,{type:"link",size:"small",onClick:c,children:"立即访问"})]})]}),e.jsx("div",{className:n["page-content"],children:a.children})]})},g={name:"Form表单",url:"https://www.antdv.com/components/form",desc:"ant-design-form: 使用 ant-design 的 form 组件, 可用以收集、校验和提交数据等操作。"},h={name:"Form查询表单",url:"暂未发布,可直接查看 /packages/gbeata 组件库",desc:"GSearchForm: 使用 ant-design 的 form 组件, 进行二次封装的组件,具体实现可查看 /packages/gbeata/src/GSearchForm 组件库"},u={name:"Transfer穿梭框",url:"https://ant-design.antgroup.com/components/transfer",desc:"ant-design-transfer: 使用 ant-design 的 transfer 组件, 可用于对列表数据进行选中、取消等操作。"},_={name:"Upload图片上传组件",url:"https://antdv.com/components/upload",desc:"ant-design-upload: 使用 ant-design 的 upload 组件, 并具有多种列表展示方式。"},R={name:"Sortable拖拽列表",url:"https://github.com/SortableJS/react-sortablejs",desc:"ReactSortable: 基于Sortable.js的react组件, 用以实现拖拽功能。"},b={name:"React-Rnd拖拽组件",url:"https://github.com/bokuweb/react-rnd",desc:"React-Rnd: 一款可调整大小和可拖拽的React组件。"},j={name:"CountUp数字滚动",url:"https://github.com/glennreyes/react-countup",desc:"React-CountUp: 一个无依赖、轻量级的react数字滚动插件, 以更有趣的方式显示数字数据。"};export{j as C,g as F,l as P,b as R,R as S,u as T,_ as U,h as a}; diff --git a/index.html b/index.html index ff0ca98..2cf5846 100644 --- a/index.html +++ b/index.html @@ -19,7 +19,7 @@ href="https://cdnjs.cloudflare.com/ajax/libs/slick-carousel/1.6.0/slick-theme.min.css" /> - +