mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-15 03:38:04 +00:00
1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[6766],{55439:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(73743),s=r(44194),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"},l=r(54183),a=function(e,t){return s.createElement(l.Z,(0,n.Z)({},e,{ref:t,icon:c}))};var o=s.forwardRef(a)},10162:function(e,t,r){r.d(t,{Z:function(){return o}});var n=r(73743),s=r(44194),c={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},l=r(54183),a=function(e,t){return s.createElement(l.Z,(0,n.Z)({},e,{ref:t,icon:c}))};var o=s.forwardRef(a)},72393:function(e,t,r){r.r(t),r.d(t,{default:function(){return C}});var n=r(14458),s=r(43906),c=r(68060),l=r(64827),a=r(60762),o=r(99098),i=r(39038),f=r(99898),u=r(90879),d=r(73743),h=r(44194),m={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M548 818v126a16 16 0 01-16 16h-40a16 16 0 01-16-16V818c15.85 1.64 27.84 2.46 36 2.46 8.15 0 20.16-.82 36-2.46m205.25-115.66l89.1 89.1a16 16 0 010 22.62l-28.29 28.29a16 16 0 01-22.62 0l-89.1-89.1c12.37-10.04 21.43-17.95 27.2-23.71 5.76-5.77 13.67-14.84 23.71-27.2m-482.5 0c10.04 12.36 17.95 21.43 23.71 27.2 5.77 5.76 14.84 13.67 27.2 23.71l-89.1 89.1a16 16 0 01-22.62 0l-28.29-28.29a16 16 0 010-22.63zM512 278c129.24 0 234 104.77 234 234S641.24 746 512 746 278 641.24 278 512s104.77-234 234-234m0 72c-89.47 0-162 72.53-162 162s72.53 162 162 162 162-72.53 162-162-72.53-162-162-162M206 476c-1.64 15.85-2.46 27.84-2.46 36 0 8.15.82 20.16 2.46 36H80a16 16 0 01-16-16v-40a16 16 0 0116-16zm738 0a16 16 0 0116 16v40a16 16 0 01-16 16H818c1.64-15.85 2.46-27.84 2.46-36 0-8.15-.82-20.16-2.46-36zM814.06 180.65l28.29 28.29a16 16 0 010 22.63l-89.1 89.09c-10.04-12.37-17.95-21.43-23.71-27.2-5.77-5.76-14.84-13.67-27.2-23.71l89.1-89.1a16 16 0 0122.62 0m-581.5 0l89.1 89.1c-12.37 10.04-21.43 17.95-27.2 23.71-5.76 5.77-13.67 14.84-23.71 27.2l-89.1-89.1a16 16 0 010-22.62l28.29-28.29a16 16 0 0122.62 0M532 64a16 16 0 0116 16v126c-15.85-1.64-27.84-2.46-36-2.46-8.15 0-20.16.82-36 2.46V80a16 16 0 0116-16z"}}]},name:"sun",theme:"outlined"},g=r(54183),p=function(e,t){return h.createElement(g.Z,(0,d.Z)({},e,{ref:t,icon:m}))};var x=h.forwardRef(p),v={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M489.5 111.66c30.65-1.8 45.98 36.44 22.58 56.33A243.35 243.35 0 00426 354c0 134.76 109.24 244 244 244 72.58 0 139.9-31.83 186.01-86.08 19.87-23.38 58.07-8.1 56.34 22.53C900.4 745.82 725.15 912 512.5 912 291.31 912 112 732.69 112 511.5c0-211.39 164.29-386.02 374.2-399.65l.2-.01zm-81.15 79.75l-4.11 1.36C271.1 237.94 176 364.09 176 511.5 176 697.34 326.66 848 512.5 848c148.28 0 274.94-96.2 319.45-230.41l.63-1.93-.11.07a307.06 307.06 0 01-159.73 46.26L670 662c-170.1 0-308-137.9-308-308 0-58.6 16.48-114.54 46.27-162.47z"}}]},name:"moon",theme:"outlined"},$=function(e,t){return h.createElement(g.Z,(0,d.Z)({},e,{ref:t,icon:v}))};var j=h.forwardRef($),b={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 140H96c-17.7 0-32 14.3-32 32v496c0 17.7 14.3 32 32 32h380v112H304c-8.8 0-16 7.2-16 16v48c0 4.4 3.6 8 8 8h432c4.4 0 8-3.6 8-8v-48c0-8.8-7.2-16-16-16H548V700h380c17.7 0 32-14.3 32-32V172c0-17.7-14.3-32-32-32zm-40 488H136V212h752v416z"}}]},name:"desktop",theme:"outlined"},Z=function(e,t){return h.createElement(g.Z,(0,d.Z)({},e,{ref:t,icon:b}))};var y=h.forwardRef(Z),w=r(55439),M=r(31549),z=c.Z.Title,O=c.Z.Text,C=function(){var e=(0,s.useIntl)(),t=(0,n.Z)(),r=t.isDarkMode,c=t.themeMode,d=t.setThemeMode,h=(0,s.getLocale)();return(0,M.jsx)("div",{style:{padding:"24px",backgroundColor:r?"#1f1f1f":"#f0f2f5",minHeight:"100vh"},children:(0,M.jsxs)(l.Z,{variant:"borderless",style:{maxWidth:800,margin:"0 auto",borderRadius:"12px",boxShadow:r?"0 2px 8px rgba(255, 255, 255, 0.05)":"0 2px 8px rgba(0, 0, 0, 0.1)"},children:[(0,M.jsxs)(z,{level:2,style:{marginBottom:"24px",textAlign:"center"},children:[(0,M.jsx)(u.Z,{style:{marginRight:"8px",color:"#1890ff"}}),e.formatMessage({id:"basic.settings.title",defaultMessage:"基本设置"})]}),(0,M.jsx)(l.Z,{title:(0,M.jsxs)(O,{strong:!0,style:{fontSize:"16px"},children:[(0,M.jsx)(u.Z,{style:{marginRight:"8px",color:"#722ed1"}}),e.formatMessage({id:"theme.title",defaultMessage:"主题模式"})]}),size:"small",style:{marginBottom:"24px",backgroundColor:r?"#262626":void 0},children:(0,M.jsx)(a.Z,{children:(0,M.jsx)(o.Z,{span:24,children:(0,M.jsx)(i.ZP.Group,{onChange:function(e){console.log("radio checked",e.target.value),d(e.target.value),window.location.reload()},value:c,size:"large",children:(0,M.jsxs)(f.Z,{direction:"vertical",size:"middle",children:[(0,M.jsx)(i.ZP,{value:"light",children:(0,M.jsxs)(f.Z,{children:[(0,M.jsx)(x,{style:{color:"#faad14"}}),(0,M.jsx)(s.FormattedMessage,{id:"theme.light"})]})}),(0,M.jsx)(i.ZP,{value:"dark",children:(0,M.jsxs)(f.Z,{children:[(0,M.jsx)(j,{style:{color:"#722ed1"}}),(0,M.jsx)(s.FormattedMessage,{id:"theme.dark"})]})}),(0,M.jsx)(i.ZP,{value:"system",children:(0,M.jsxs)(f.Z,{children:[(0,M.jsx)(y,{style:{color:"#52c41a"}}),(0,M.jsx)(s.FormattedMessage,{id:"theme.system"})]})})]})})})})}),(0,M.jsx)(l.Z,{title:(0,M.jsxs)(O,{strong:!0,style:{fontSize:"16px"},children:[(0,M.jsx)(w.Z,{style:{marginRight:"8px",color:"#13c2c2"}}),e.formatMessage({id:"language.title",defaultMessage:"语言设置"})]}),size:"small",style:{backgroundColor:r?"#262626":void 0},children:(0,M.jsx)(a.Z,{children:(0,M.jsx)(o.Z,{span:24,children:(0,M.jsx)(i.ZP.Group,{value:h,onChange:function(e){var t=e.target.value;console.log("localeValue:",t),(0,s.setLocale)(t)},size:"large",children:(0,M.jsxs)(f.Z,{size:"middle",children:[(0,M.jsx)(i.ZP.Button,{value:"en-US",children:"🇺🇸 English"}),(0,M.jsx)(i.ZP.Button,{value:"zh-CN",children:"🇨🇳 简体中文"}),(0,M.jsx)(i.ZP.Button,{value:"zh-TW",children:"🇹🇼 繁体中文"})]})})})})})]})})}},26373:function(e,t,r){r.d(t,{Z:function(){return s}});var n=r(44194);function s(){const[,e]=n.useReducer((e=>e+1),0);return e}},65094:function(e,t,r){r.d(t,{c4:function(){return l},m9:function(){return a}});var n=r(44194),s=r(41588),c=r(29301);const l=["xxl","xl","lg","md","sm","xs"],a=(e,t)=>{if(t)for(const r of l)if(e[r]&&void 0!==(null==t?void 0:t[r]))return t[r]};t.ZP=()=>{const[,e]=(0,s.ZP)(),t=(e=>({xs:`(max-width: ${e.screenXSMax}px)`,sm:`(min-width: ${e.screenSM}px)`,md:`(min-width: ${e.screenMD}px)`,lg:`(min-width: ${e.screenLG}px)`,xl:`(min-width: ${e.screenXL}px)`,xxl:`(min-width: ${e.screenXXL}px)`}))((e=>{const t=e,r=[].concat(l).reverse();return r.forEach(((e,n)=>{const s=e.toUpperCase(),c=`screen${s}Min`,l=`screen${s}`;if(!(t[c]<=t[l]))throw new Error(`${c}<=${l} fails : !(${t[c]}<=${t[l]})`);if(n<r.length-1){const e=`screen${s}Max`;if(!(t[l]<=t[e]))throw new Error(`${l}<=${e} fails : !(${t[l]}<=${t[e]})`);const c=`screen${r[n+1].toUpperCase()}Min`;if(!(t[e]<=t[c]))throw new Error(`${e}<=${c} fails : !(${t[e]}<=${t[c]})`)}})),e})(e));return n.useMemo((()=>{const e=new Map;let r=-1,n={};return{responsiveMap:t,matchHandlers:{},dispatch(t){return n=t,e.forEach((e=>e(n))),e.size>=1},subscribe(t){return e.size||this.register(),r+=1,e.set(r,t),t(n),r},unsubscribe(t){e.delete(t),e.size||this.unregister()},register(){Object.entries(t).forEach((([e,t])=>{const r=({matches:t})=>{this.dispatch(Object.assign(Object.assign({},n),{[e]:t}))},s=window.matchMedia(t);(0,c.x)(s,r),this.matchHandlers[t]={mql:s,listener:r},r(s)}))},unregister(){Object.values(t).forEach((e=>{const t=this.matchHandlers[e];(0,c.h)(null==t?void 0:t.mql,null==t?void 0:t.listener)})),e.clear()}}}),[e])}},99098:function(e,t,r){var n=r(87913);t.Z=n.Z},88538:function(e,t,r){const n=(0,r(44194).createContext)({});t.Z=n},87913:function(e,t,r){var n=r(44194),s=r(51865),c=r.n(s),l=r(6661),a=r(88538),o=r(73206),i=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r};function f(e){return"number"==typeof e?`${e} ${e} auto`:/^\d+(\.\d+)?(px|em|rem|%)$/.test(e)?`0 0 ${e}`:e}const u=["xs","sm","md","lg","xl","xxl"],d=n.forwardRef(((e,t)=>{const{getPrefixCls:r,direction:s}=n.useContext(l.E_),{gutter:d,wrap:h}=n.useContext(a.Z),{prefixCls:m,span:g,order:p,offset:x,push:v,pull:$,className:j,children:b,flex:Z,style:y}=e,w=i(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),M=r("col",m),[z,O,C]=(0,o.cG)(M),E={};let P={};u.forEach((t=>{let r={};const n=e[t];"number"==typeof n?r.span=n:"object"==typeof n&&(r=n||{}),delete w[t],P=Object.assign(Object.assign({},P),{[`${M}-${t}-${r.span}`]:void 0!==r.span,[`${M}-${t}-order-${r.order}`]:r.order||0===r.order,[`${M}-${t}-offset-${r.offset}`]:r.offset||0===r.offset,[`${M}-${t}-push-${r.push}`]:r.push||0===r.push,[`${M}-${t}-pull-${r.pull}`]:r.pull||0===r.pull,[`${M}-rtl`]:"rtl"===s}),r.flex&&(P[`${M}-${t}-flex`]=!0,E[`--${M}-${t}-flex`]=f(r.flex))}));const H=c()(M,{[`${M}-${g}`]:void 0!==g,[`${M}-order-${p}`]:p,[`${M}-offset-${x}`]:x,[`${M}-push-${v}`]:v,[`${M}-pull-${$}`]:$},j,P,O,C),R={};if(d&&d[0]>0){const e=d[0]/2;R.paddingLeft=e,R.paddingRight=e}return Z&&(R.flex=f(Z),!1!==h||R.minWidth||(R.minWidth=0)),z(n.createElement("div",Object.assign({},w,{style:Object.assign(Object.assign(Object.assign({},R),y),E),className:H,ref:t}),b))}));t.Z=d},74001:function(e,t,r){var n=r(44194),s=r(99047),c=r(26373),l=r(65094);t.Z=function(e=!0,t={}){const r=(0,n.useRef)(t),a=(0,c.Z)(),o=(0,l.ZP)();return(0,s.Z)((()=>{const t=o.subscribe((t=>{r.current=t,e&&a()}));return()=>o.unsubscribe(t)}),[]),r.current}},49926:function(e,t,r){r.d(t,{Z:function(){return h}});var n=r(44194),s=r(51865),c=r.n(s),l=r(65094),a=r(6661),o=r(74001);var i=r(88538),f=r(73206),u=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(n=Object.getOwnPropertySymbols(e);s<n.length;s++)t.indexOf(n[s])<0&&Object.prototype.propertyIsEnumerable.call(e,n[s])&&(r[n[s]]=e[n[s]])}return r};function d(e,t){const[r,s]=n.useState("string"==typeof e?e:"");return n.useEffect((()=>{(()=>{if("string"==typeof e&&s(e),"object"==typeof e)for(let r=0;r<l.c4.length;r++){const n=l.c4[r];if(!t||!t[n])continue;const c=e[n];if(void 0!==c)return void s(c)}})()}),[JSON.stringify(e),t]),r}var h=n.forwardRef(((e,t)=>{const{prefixCls:r,justify:s,align:h,className:m,style:g,children:p,gutter:x=0,wrap:v}=e,$=u(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:j,direction:b}=n.useContext(a.E_),Z=(0,o.Z)(!0,null),y=d(h,Z),w=d(s,Z),M=j("row",r),[z,O,C]=(0,f.VM)(M),E=function(e,t){const r=[void 0,void 0],n=Array.isArray(e)?e:[e,void 0],s=t||{xs:!0,sm:!0,md:!0,lg:!0,xl:!0,xxl:!0};return n.forEach(((e,t)=>{if("object"==typeof e&&null!==e)for(let n=0;n<l.c4.length;n++){const c=l.c4[n];if(s[c]&&void 0!==e[c]){r[t]=e[c];break}}else r[t]=e})),r}(x,Z),P=c()(M,{[`${M}-no-wrap`]:!1===v,[`${M}-${w}`]:w,[`${M}-${y}`]:y,[`${M}-rtl`]:"rtl"===b},m,O,C),H={},R=null!=E[0]&&E[0]>0?E[0]/-2:void 0;R&&(H.marginLeft=R,H.marginRight=R);const[V,k]=E;H.rowGap=k;const S=n.useMemo((()=>({gutter:[V,k],wrap:v})),[V,k,v]);return z(n.createElement(i.Z.Provider,{value:S},n.createElement("div",Object.assign({},$,{className:P,style:Object.assign(Object.assign({},H),g),ref:t}),p)))}))},60762:function(e,t,r){var n=r(49926);t.Z=n.Z}}]); |