Files
weiyu/deploy/server/admin/p__Dashboard__Super__License__index.92ad831e.async.js
2025-06-19 18:34:11 +08:00

1 line
16 KiB
JavaScript

"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9324],{40439:function(e,n,t){t.d(n,{Z:function(){return s}});var o=t(11757),r=t(44194),i={icon:{tag:"svg",attrs:{"fill-rule":"evenodd",viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64c247.4 0 448 200.6 448 448S759.4 960 512 960 64 759.4 64 512 264.6 64 512 64zm0 76c-205.4 0-372 166.6-372 372s166.6 372 372 372 372-166.6 372-372-166.6-372-372-372zm128.01 198.83c.03 0 .05.01.09.06l45.02 45.01a.2.2 0 01.05.09.12.12 0 010 .07c0 .02-.01.04-.05.08L557.25 512l127.87 127.86a.27.27 0 01.05.06v.02a.12.12 0 010 .07c0 .03-.01.05-.05.09l-45.02 45.02a.2.2 0 01-.09.05.12.12 0 01-.07 0c-.02 0-.04-.01-.08-.05L512 557.25 384.14 685.12c-.04.04-.06.05-.08.05a.12.12 0 01-.07 0c-.03 0-.05-.01-.09-.05l-45.02-45.02a.2.2 0 01-.05-.09.12.12 0 010-.07c0-.02.01-.04.06-.08L466.75 512 338.88 384.14a.27.27 0 01-.05-.06l-.01-.02a.12.12 0 010-.07c0-.03.01-.05.05-.09l45.02-45.02a.2.2 0 01.09-.05.12.12 0 01.07 0c.02 0 .04.01.08.06L512 466.75l127.86-127.86c.04-.05.06-.06.08-.06a.12.12 0 01.07 0z"}}]},name:"close-circle",theme:"outlined"},l=t(54183),a=function(e,n){return r.createElement(l.Z,(0,o.Z)({},e,{ref:n,icon:i}))};var s=r.forwardRef(a)},37665:function(e,n,t){t.r(n),t.d(n,{default:function(){return S}});var o=t(45332),r=t.n(o),i=t(44194),l=t(32327),a=t(29266),s=t(32943),c=t(88201),d=t(5602),u=t(62673),m=t(38775),f=t(19116),p=t(9452),g=t(40269),h=t(93689),x=t(40439),b=t(88008),v=t(36310),$=t(55735),y="licenseContainer___vEcmL",j=t(31549),I=l.Z.Title,Z=l.Z.Text,w=l.Z.Paragraph,S=function(){var e=(0,i.useState)(null),n=r()(e,2),t=n[0],o=n[1];(0,i.useEffect)((function(){var e=(0,v.xn)();o(e)}),[]);var l=function(e){switch(e){case $.RxZ:return"blue";case $.RG5:return"purple";case $.p_L:return"gold";default:return"default"}},S=function(e){return"paid"===e?(0,j.jsx)(a.Z,{color:"green",children:"付费版"}):(0,j.jsx)(a.Z,{color:"orange",children:"试用版"})},C=function(){return t?t.isValid?(0,j.jsx)(a.Z,{color:"success",icon:(0,j.jsx)(h.Z,{}),children:"有效"}):(0,j.jsx)(a.Z,{color:"error",icon:(0,j.jsx)(x.Z,{}),children:"已过期"}):(0,j.jsx)(a.Z,{color:"default",children:"未知"})};if(!t)return(0,j.jsx)(s.Z,{message:"正在加载许可证信息...",type:"info"});var E=function(){if(!t||!t.expiryDate)return null;var e=new Date(t.expiryDate),n=new Date,o=e.getTime()-n.getTime(),r=Math.ceil(o/864e5);return Math.max(0,r)}();return(0,j.jsx)("div",{className:y||"",children:(0,j.jsx)(c.Z,{gutter:[16,16],children:(0,j.jsx)(d.Z,{span:24,children:(0,j.jsxs)(u.Z,{children:[(0,j.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:16},children:[(0,j.jsx)(b.Z,{style:{fontSize:24,color:"#faad14",marginRight:8}}),(0,j.jsx)(I,{level:3,style:{margin:0},children:"微语 AI 许可证信息"})]}),(0,j.jsx)(s.Z,{message:(0,j.jsxs)("div",{children:[(0,j.jsx)("span",{children:"当前版本: "}),(0,j.jsxs)(a.Z,{color:l(t.edition),children:[t.edition===$.RxZ&&"社区版",t.edition===$.RG5&&"企业版",t.edition===$.p_L&&"平台版"]}),"paid"===t.userType?(0,j.jsxs)("span",{children:[S(t.userType),null!==E&&t.edition!==$.RxZ&&(0,j.jsxs)("span",{style:{color:E<=7?"#ff4d4f":E<=15?"#faad14":"#52c41a"},children:["(剩余 ",E," 天)"]})]}):S(t.userType),C()]}),type:t.isValid?"success":"warning",showIcon:!0}),(0,j.jsx)(m.Z,{}),(0,j.jsxs)(f.Z,{bordered:!0,column:{xxl:3,xl:3,lg:2,md:2,sm:1,xs:1},children:[(0,j.jsx)(f.Z.Item,{label:"许可证版本",children:(0,j.jsxs)(a.Z,{color:l(t.edition),children:[t.edition===$.RxZ&&"社区版",t.edition===$.RG5&&"企业版",t.edition===$.p_L&&"平台版"]})}),(0,j.jsx)(f.Z.Item,{label:"许可证类型",children:S(t.userType)}),(0,j.jsx)(f.Z.Item,{label:"许可证状态",children:C()}),t.edition!==$.RxZ&&(0,j.jsxs)(f.Z.Item,{label:"过期日期",children:[t.expiryDate||"未设置",null!==E&&(0,j.jsxs)(Z,{style:{marginLeft:8,color:E<=7?"#ff4d4f":E<=15?"#faad14":"#52c41a"},children:["(剩余 ",E," 天)"]})]})]}),(0,j.jsx)(m.Z,{children:"授权信息"}),(0,j.jsxs)(c.Z,{gutter:[16,16],children:[(0,j.jsx)(d.Z,{xs:24,md:12,children:(0,j.jsx)(u.Z,{title:"授权服务器IP",size:"small",children:t.serverIps&&t.serverIps.length>0?(0,j.jsx)(p.Z,{size:"small",dataSource:t.serverIps,renderItem:function(e){return(0,j.jsx)(p.Z.Item,{children:(0,j.jsx)(g.Z,{status:"processing",text:e})})}}):(0,j.jsx)(s.Z,{message:"未设置授权IP限制",type:"info",showIcon:!0})})}),(0,j.jsx)(d.Z,{xs:24,md:12,children:(0,j.jsx)(u.Z,{title:"授权域名",size:"small",children:t.serverDomains&&t.serverDomains.length>0?(0,j.jsx)(p.Z,{size:"small",dataSource:t.serverDomains,renderItem:function(e){return(0,j.jsx)(p.Z.Item,{children:(0,j.jsx)(g.Z,{status:"processing",text:e})})}}):(0,j.jsx)(s.Z,{message:"未设置授权域名限制",type:"info",showIcon:!0})})})]}),(0,j.jsx)(m.Z,{}),(0,j.jsx)(s.Z,{message:"授权说明",description:(0,j.jsxs)("div",{children:[(0,j.jsx)(w,{children:"1. 社区版:适用于个人或小型组织,基础功能免费使用"}),(0,j.jsx)(w,{children:"2. 企业版:适用于中型组织,包含高级功能和优先支持"}),(0,j.jsx)(w,{children:"3. 平台版:适用于大型企业或平台型业务,提供定制化功能和专属支持"}),(0,j.jsxs)(w,{children:["如需升级许可证或了解更多信息,请访问 ",(0,j.jsx)("a",{href:"https://www.weiyuai.cn",target:"_blank",rel:"noopener noreferrer",children:"官方网站"})]})]}),type:"info"})]})})})})}},32943:function(e,n,t){t.d(n,{Z:function(){return L}});var o=t(44194),r=t(58644),i=t(92520),l=t(14377),a=t(64985),s=t(18701),c=t(51865),d=t.n(c),u=t(77588),m=t(67762),f=t(34221),p=t(79145),g=t(37167),h=t(47825),x=t(88874),b=t(65759);const v=(e,n,t,o,r)=>({background:e,border:`${(0,h.bf)(o.lineWidth)} ${o.lineType} ${n}`,[`${r}-icon`]:{color:t}}),$=e=>{const{componentCls:n,motionDurationSlow:t,marginXS:o,marginSM:r,fontSize:i,fontSizeLG:l,lineHeight:a,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:d,colorText:u,colorTextHeading:m,withDescriptionPadding:f,defaultPadding:p}=e;return{[n]:Object.assign(Object.assign({},(0,x.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:p,wordWrap:"break-word",borderRadius:s,[`&${n}-rtl`]:{direction:"rtl"},[`${n}-content`]:{flex:1,minWidth:0},[`${n}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:a},"&-message":{color:m},[`&${n}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${t} ${c}, opacity ${t} ${c},\n padding-top ${t} ${c}, padding-bottom ${t} ${c},\n margin-bottom ${t} ${c}`},[`&${n}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${n}-with-description`]:{alignItems:"flex-start",padding:f,[`${n}-icon`]:{marginInlineEnd:r,fontSize:d,lineHeight:0},[`${n}-message`]:{display:"block",marginBottom:o,color:m,fontSize:l},[`${n}-description`]:{display:"block",color:u}},[`${n}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},y=e=>{const{componentCls:n,colorSuccess:t,colorSuccessBorder:o,colorSuccessBg:r,colorWarning:i,colorWarningBorder:l,colorWarningBg:a,colorError:s,colorErrorBorder:c,colorErrorBg:d,colorInfo:u,colorInfoBorder:m,colorInfoBg:f}=e;return{[n]:{"&-success":v(r,o,t,e,n),"&-info":v(f,m,u,e,n),"&-warning":v(a,l,i,e,n),"&-error":Object.assign(Object.assign({},v(d,c,s,e,n)),{[`${n}-description > pre`]:{margin:0,padding:0}})}}},j=e=>{const{componentCls:n,iconCls:t,motionDurationMid:o,marginXS:r,fontSizeIcon:i,colorIcon:l,colorIconHover:a}=e;return{[n]:{"&-action":{marginInlineStart:r},[`${n}-close-icon`]:{marginInlineStart:r,padding:0,overflow:"hidden",fontSize:i,lineHeight:(0,h.bf)(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${t}-close`]:{color:l,transition:`color ${o}`,"&:hover":{color:a}}},"&-close-text":{color:l,transition:`color ${o}`,"&:hover":{color:a}}}}};var I=(0,b.I$)("Alert",(e=>[$(e),y(e),j(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}))),Z=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};const w={success:r.Z,info:s.Z,error:i.Z,warning:a.Z},S=e=>{const{icon:n,prefixCls:t,type:r}=e,i=w[r]||null;return n?(0,p.wm)(n,o.createElement("span",{className:`${t}-icon`},n),(()=>({className:d()(`${t}-icon`,n.props.className)}))):o.createElement(i,{className:`${t}-icon`})},C=e=>{const{isClosable:n,prefixCls:t,closeIcon:r,handleClose:i,ariaProps:a}=e,s=!0===r||void 0===r?o.createElement(l.Z,null):r;return n?o.createElement("button",Object.assign({type:"button",onClick:i,className:`${t}-close-icon`,tabIndex:0},a),s):null},E=o.forwardRef(((e,n)=>{const{description:t,prefixCls:r,message:i,banner:l,className:a,rootClassName:s,style:c,onMouseEnter:p,onMouseLeave:h,onClick:x,afterClose:b,showIcon:v,closable:$,closeText:y,closeIcon:j,action:w,id:E}=e,z=Z(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[O,k]=o.useState(!1);const M=o.useRef(null);o.useImperativeHandle(n,(()=>({nativeElement:M.current})));const{getPrefixCls:B,direction:N,alert:P}=o.useContext(g.E_),H=B("alert",r),[L,T,W]=I(H),D=n=>{var t;k(!0),null===(t=e.onClose)||void 0===t||t.call(e,n)},R=o.useMemo((()=>void 0!==e.type?e.type:l?"warning":"info"),[e.type,l]),G=o.useMemo((()=>!("object"!=typeof $||!$.closeIcon)||(!!y||("boolean"==typeof $?$:!1!==j&&null!=j||!!(null==P?void 0:P.closable)))),[y,j,$,null==P?void 0:P.closable]),_=!(!l||void 0!==v)||v,A=d()(H,`${H}-${R}`,{[`${H}-with-description`]:!!t,[`${H}-no-icon`]:!_,[`${H}-banner`]:!!l,[`${H}-rtl`]:"rtl"===N},null==P?void 0:P.className,a,s,W,T),X=(0,m.Z)(z,{aria:!0,data:!0}),V=o.useMemo((()=>{var e,n;return"object"==typeof $&&$.closeIcon?$.closeIcon:y||(void 0!==j?j:"object"==typeof(null==P?void 0:P.closable)&&(null===(e=null==P?void 0:P.closable)||void 0===e?void 0:e.closeIcon)?null===(n=null==P?void 0:P.closable)||void 0===n?void 0:n.closeIcon:null==P?void 0:P.closeIcon)}),[j,$,y,null==P?void 0:P.closeIcon]),Q=o.useMemo((()=>{const e=null!=$?$:null==P?void 0:P.closable;if("object"==typeof e){const{closeIcon:n}=e;return Z(e,["closeIcon"])}return{}}),[$,null==P?void 0:P.closable]);return L(o.createElement(u.ZP,{visible:!O,motionName:`${H}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:b},((n,r)=>{let{className:l,style:a}=n;return o.createElement("div",Object.assign({id:E,ref:(0,f.sQ)(M,r),"data-show":!O,className:d()(A,l),style:Object.assign(Object.assign(Object.assign({},null==P?void 0:P.style),c),a),onMouseEnter:p,onMouseLeave:h,onClick:x,role:"alert"},X),_?o.createElement(S,{description:t,icon:e.icon,prefixCls:H,type:R}):null,o.createElement("div",{className:`${H}-content`},i?o.createElement("div",{className:`${H}-message`},i):null,t?o.createElement("div",{className:`${H}-description`},t):null),w?o.createElement("div",{className:`${H}-action`},w):null,o.createElement(C,{isClosable:G,prefixCls:H,closeIcon:V,handleClose:D,ariaProps:Q}))})))}));var z=E,O=t(74592),k=t(32099),M=t(67019),B=t(14755);let N=function(e){function n(){var e;return(0,O.Z)(this,n),(e=(0,M.Z)(this,n,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,B.Z)(n,e),(0,k.Z)(n,[{key:"componentDidCatch",value:function(e,n){this.setState({error:e,info:n})}},{key:"render",value:function(){const{message:e,description:n,id:t,children:r}=this.props,{error:i,info:l}=this.state,a=(null==l?void 0:l.componentStack)||null,s=void 0===e?(i||"").toString():e,c=void 0===n?a:n;return i?o.createElement(z,{id:t,type:"error",message:s,description:o.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},c)}):r}}])}(o.Component);var P=N;const H=z;H.ErrorBoundary=P;var L=H},38775:function(e,n,t){t.d(n,{Z:function(){return p}});var o=t(44194),r=t(51865),i=t.n(r),l=t(37167),a=t(47825),s=t(88874),c=t(65759),d=t(77167);const u=e=>{const{componentCls:n,sizePaddingEdgeHorizontal:t,colorSplit:o,lineWidth:r,textPaddingInline:i,orientationMargin:l,verticalMarginInline:c}=e;return{[n]:Object.assign(Object.assign({},(0,s.Wf)(e)),{borderBlockStart:`${(0,a.bf)(r)} solid ${o}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:c,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,a.bf)(r)} solid ${o}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,a.bf)(e.dividerHorizontalGutterMargin)} 0`},[`&-horizontal${n}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,a.bf)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${o}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,a.bf)(r)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${n}-with-text-left`]:{"&::before":{width:`calc(${l} * 100%)`},"&::after":{width:`calc(100% - ${l} * 100%)`}},[`&-horizontal${n}-with-text-right`]:{"&::before":{width:`calc(100% - ${l} * 100%)`},"&::after":{width:`calc(${l} * 100%)`}},[`${n}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:o,borderStyle:"dashed",borderWidth:`${(0,a.bf)(r)} 0 0`},[`&-horizontal${n}-with-text${n}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${n}-dashed`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:o,borderStyle:"dotted",borderWidth:`${(0,a.bf)(r)} 0 0`},[`&-horizontal${n}-with-text${n}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${n}-dotted`]:{borderInlineStartWidth:r,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${n}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${n}-with-text-left${n}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${n}-inner-text`]:{paddingInlineStart:t}},[`&-horizontal${n}-with-text-right${n}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${n}-inner-text`]:{paddingInlineEnd:t}}})}};var m=(0,c.I$)("Divider",(e=>{const n=(0,d.IX)(e,{dividerHorizontalWithTextGutterMargin:e.margin,dividerHorizontalGutterMargin:e.marginLG,sizePaddingEdgeHorizontal:0});return[u(n)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}}),f=function(e,n){var t={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&n.indexOf(o)<0&&(t[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var r=0;for(o=Object.getOwnPropertySymbols(e);r<o.length;r++)n.indexOf(o[r])<0&&Object.prototype.propertyIsEnumerable.call(e,o[r])&&(t[o[r]]=e[o[r]])}return t};var p=e=>{const{getPrefixCls:n,direction:t,divider:r}=o.useContext(l.E_),{prefixCls:a,type:s="horizontal",orientation:c="center",orientationMargin:d,className:u,rootClassName:p,children:g,dashed:h,variant:x="solid",plain:b,style:v}=e,$=f(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style"]),y=n("divider",a),[j,I,Z]=m(y),w=!!g,S="left"===c&&null!=d,C="right"===c&&null!=d,E=i()(y,null==r?void 0:r.className,I,Z,`${y}-${s}`,{[`${y}-with-text`]:w,[`${y}-with-text-${c}`]:w,[`${y}-dashed`]:!!h,[`${y}-${x}`]:"solid"!==x,[`${y}-plain`]:!!b,[`${y}-rtl`]:"rtl"===t,[`${y}-no-default-orientation-margin-left`]:S,[`${y}-no-default-orientation-margin-right`]:C},u,p),z=o.useMemo((()=>"number"==typeof d?d:/^\d+$/.test(d)?Number(d):d),[d]),O=Object.assign(Object.assign({},S&&{marginLeft:z}),C&&{marginRight:z});return j(o.createElement("div",Object.assign({className:E,style:Object.assign(Object.assign({},null==r?void 0:r.style),v)},$,{role:"separator"}),g&&"vertical"!==s&&o.createElement("span",{className:`${y}-inner-text`,style:O},g)))}},67019:function(e,n,t){t.d(n,{Z:function(){return l}});var o=t(42885),r=t(19567),i=t(27842);function l(e,n,t){return n=(0,o.Z)(n),(0,i.Z)(e,(0,r.Z)()?Reflect.construct(n,t||[],(0,o.Z)(e).constructor):n.apply(e,t))}}}]);