Files
weiyu/deploy/server/admin/p__Dashboard__Super__License__index.90e7dac0.async.js
2025-07-03 10:41:41 +08:00

1 line
13 KiB
JavaScript

"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[9324],{40439:function(e,t,s){s.d(t,{Z:function(){return d}});var i=s(73743),n=s(44194),r={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"},a=s(54183),l=function(e,t){return n.createElement(a.Z,(0,i.Z)({},e,{ref:t,icon:r}))};var d=n.forwardRef(l)},36422:function(e,t,s){s.r(t),s.d(t,{default:function(){return F}});var i=s(45332),n=s.n(i),r=s(44194),a=s(68060),l=s(41313),d=s(64890),o=s(60762),c=s(99098),g=s(64827),m=s(1867),f=s(93383),x=s(29513),u=s(86675),h=s(93689),j=s(40439),p=s(88008),M=s(43906),b=s(81343),v=s(18232),y="licenseContainer___vEcmL",Z=s(31549),$=a.Z.Title,w=a.Z.Text,I=a.Z.Paragraph,F=function(){(0,M.useIntl)();var e=(0,r.useState)(null),t=n()(e,2),s=t[0],i=t[1];(0,r.useEffect)((function(){var e=(0,b.xn)();i(e)}),[]);var a=function(e){switch(e){case v.RxZ:return"blue";case v.RG5:return"purple";case v.p_L:return"gold";default:return"default"}},F=function(e){return"paid"===e?(0,Z.jsx)(l.Z,{color:"green",children:(0,Z.jsx)(M.FormattedMessage,{id:"license.type.paid",defaultMessage:"付费版"})}):(0,Z.jsx)(l.Z,{color:"orange",children:(0,Z.jsx)(M.FormattedMessage,{id:"license.type.trial",defaultMessage:"试用版"})})},z=function(){return s?s.isValid?(0,Z.jsx)(l.Z,{color:"success",icon:(0,Z.jsx)(h.Z,{}),children:(0,Z.jsx)(M.FormattedMessage,{id:"license.status.valid",defaultMessage:"有效"})}):(0,Z.jsx)(l.Z,{color:"error",icon:(0,Z.jsx)(j.Z,{}),children:(0,Z.jsx)(M.FormattedMessage,{id:"license.status.expired",defaultMessage:"已过期"})}):(0,Z.jsx)(l.Z,{color:"default",children:(0,Z.jsx)(M.FormattedMessage,{id:"license.status.unknown",defaultMessage:"未知"})})};if(!s)return(0,Z.jsx)(d.Z,{message:(0,Z.jsx)(M.FormattedMessage,{id:"license.loading",defaultMessage:"正在加载许可证信息..."}),type:"info"});var S=function(){if(!s||!s.expiryDate)return null;var e=new Date(s.expiryDate),t=new Date,i=e.getTime()-t.getTime(),n=Math.ceil(i/864e5);return Math.max(0,n)}();return(0,Z.jsx)("div",{className:y||"",children:(0,Z.jsx)(o.Z,{gutter:[16,16],children:(0,Z.jsx)(c.Z,{span:24,children:(0,Z.jsxs)(g.Z,{children:[(0,Z.jsxs)("div",{style:{display:"flex",alignItems:"center",marginBottom:16},children:[(0,Z.jsx)(p.Z,{style:{fontSize:24,color:"#faad14",marginRight:8}}),(0,Z.jsx)($,{level:3,style:{margin:0},children:(0,Z.jsx)(M.FormattedMessage,{id:"license.title",defaultMessage:"微语 AI 许可证信息"})})]}),(0,Z.jsx)(d.Z,{message:(0,Z.jsxs)("div",{children:[(0,Z.jsxs)("span",{children:[(0,Z.jsx)(M.FormattedMessage,{id:"license.current.version",defaultMessage:"当前版本"}),": "]}),(0,Z.jsxs)(l.Z,{color:a(s.edition),children:[s.edition===v.RxZ&&(0,Z.jsx)(M.FormattedMessage,{id:"license.edition.community",defaultMessage:"社区版"}),s.edition===v.RG5&&(0,Z.jsx)(M.FormattedMessage,{id:"license.edition.enterprise",defaultMessage:"企业版"}),s.edition===v.p_L&&(0,Z.jsx)(M.FormattedMessage,{id:"license.edition.platform",defaultMessage:"平台版"})]}),"paid"===s.userType?(0,Z.jsxs)("span",{children:[F(s.userType),null!==S&&s.edition!==v.RxZ&&(0,Z.jsxs)("span",{style:{color:S<=7?"#ff4d4f":S<=15?"#faad14":"#52c41a"},children:["(",(0,Z.jsx)(M.FormattedMessage,{id:"license.remaining.days",defaultMessage:"剩余 {days} 天",values:{days:S}}),")"]})]}):F(s.userType),z()]}),type:s.isValid?"success":"warning",showIcon:!0}),(0,Z.jsx)(m.Z,{}),(0,Z.jsxs)(f.Z,{bordered:!0,column:{xxl:3,xl:3,lg:2,md:2,sm:1,xs:1},children:[(0,Z.jsx)(f.Z.Item,{label:(0,Z.jsx)(M.FormattedMessage,{id:"license.field.version",defaultMessage:"许可证版本"}),children:(0,Z.jsxs)(l.Z,{color:a(s.edition),children:[s.edition===v.RxZ&&(0,Z.jsx)(M.FormattedMessage,{id:"license.edition.community",defaultMessage:"社区版"}),s.edition===v.RG5&&(0,Z.jsx)(M.FormattedMessage,{id:"license.edition.enterprise",defaultMessage:"企业版"}),s.edition===v.p_L&&(0,Z.jsx)(M.FormattedMessage,{id:"license.edition.platform",defaultMessage:"平台版"})]})}),(0,Z.jsx)(f.Z.Item,{label:(0,Z.jsx)(M.FormattedMessage,{id:"license.field.type",defaultMessage:"许可证类型"}),children:F(s.userType)}),(0,Z.jsx)(f.Z.Item,{label:(0,Z.jsx)(M.FormattedMessage,{id:"license.field.status",defaultMessage:"许可证状态"}),children:z()}),s.edition!==v.RxZ&&(0,Z.jsxs)(f.Z.Item,{label:(0,Z.jsx)(M.FormattedMessage,{id:"license.field.expiry.date",defaultMessage:"过期日期"}),children:[s.expiryDate||(0,Z.jsx)(M.FormattedMessage,{id:"license.field.not.set",defaultMessage:"未设置"}),null!==S&&(0,Z.jsxs)(w,{style:{marginLeft:8,color:S<=7?"#ff4d4f":S<=15?"#faad14":"#52c41a"},children:["(",(0,Z.jsx)(M.FormattedMessage,{id:"license.remaining.days",defaultMessage:"剩余 {days} 天",values:{days:S}}),")"]})]})]}),(0,Z.jsx)(m.Z,{children:(0,Z.jsx)(M.FormattedMessage,{id:"license.authorization.info",defaultMessage:"授权信息"})}),(0,Z.jsxs)(o.Z,{gutter:[16,16],children:[(0,Z.jsx)(c.Z,{xs:24,md:24,children:(0,Z.jsx)(g.Z,{title:(0,Z.jsx)(M.FormattedMessage,{id:"license.licensee.info",defaultMessage:"被授权人信息"}),size:"small",children:(0,Z.jsxs)(f.Z,{size:"small",column:1,children:[(0,Z.jsx)(f.Z.Item,{label:(0,Z.jsx)(M.FormattedMessage,{id:"license.field.licensee",defaultMessage:"被授权人"}),children:(0,Z.jsx)(w,{strong:!0,children:null==s?void 0:s.name})}),(0,Z.jsx)(f.Z.Item,{label:(0,Z.jsx)(M.FormattedMessage,{id:"license.field.description",defaultMessage:"授权描述"}),children:(0,Z.jsx)(w,{children:null==s?void 0:s.description})})]})})}),(0,Z.jsx)(c.Z,{xs:24,md:12,children:(0,Z.jsx)(g.Z,{title:(0,Z.jsx)(M.FormattedMessage,{id:"license.server.ips",defaultMessage:"授权服务器IP"}),size:"small",children:s.serverIps&&s.serverIps.length>0?(0,Z.jsx)(x.Z,{size:"small",dataSource:s.serverIps,renderItem:function(e){return(0,Z.jsx)(x.Z.Item,{children:(0,Z.jsx)(u.Z,{status:"processing",text:e})})}}):(0,Z.jsx)(d.Z,{message:(0,Z.jsx)(M.FormattedMessage,{id:"license.no.ip.restriction",defaultMessage:"未设置授权IP限制"}),type:"info",showIcon:!0})})}),(0,Z.jsx)(c.Z,{xs:24,md:12,children:(0,Z.jsx)(g.Z,{title:(0,Z.jsx)(M.FormattedMessage,{id:"license.server.domains",defaultMessage:"授权域名"}),size:"small",children:s.serverDomains&&s.serverDomains.length>0?(0,Z.jsx)(x.Z,{size:"small",dataSource:s.serverDomains,renderItem:function(e){return(0,Z.jsx)(x.Z.Item,{children:(0,Z.jsx)(u.Z,{status:"processing",text:e})})}}):(0,Z.jsx)(d.Z,{message:(0,Z.jsx)(M.FormattedMessage,{id:"license.no.domain.restriction",defaultMessage:"未设置授权域名限制"}),type:"info",showIcon:!0})})})]}),(0,Z.jsx)(m.Z,{}),(0,Z.jsx)(d.Z,{message:(0,Z.jsx)(M.FormattedMessage,{id:"license.description.title",defaultMessage:"授权说明"}),description:(0,Z.jsxs)("div",{children:[(0,Z.jsxs)(I,{children:["1. ",(0,Z.jsx)(M.FormattedMessage,{id:"license.description.community",defaultMessage:"社区版:适用于个人或小型组织,基础功能免费使用"})]}),(0,Z.jsxs)(I,{children:["2. ",(0,Z.jsx)(M.FormattedMessage,{id:"license.description.enterprise",defaultMessage:"企业版:适用于中型组织,包含高级功能和优先支持"})]}),(0,Z.jsxs)(I,{children:["3. ",(0,Z.jsx)(M.FormattedMessage,{id:"license.description.platform",defaultMessage:"平台版:适用于大型企业或平台型业务,提供定制化功能和专属支持"})]}),(0,Z.jsxs)(I,{children:[(0,Z.jsx)(M.FormattedMessage,{id:"license.description.upgrade",defaultMessage:"如需升级许可证或了解更多信息,请访问"})," ",(0,Z.jsx)("a",{href:"https://www.weiyuai.cn",target:"_blank",rel:"noopener noreferrer",children:(0,Z.jsx)(M.FormattedMessage,{id:"license.official.website",defaultMessage:"官方网站"})})]})]}),type:"info"})]})})})})}},1867:function(e,t,s){s.d(t,{Z:function(){return j}});var i=s(44194),n=s(51865),r=s.n(n),a=s(6661),l=s(2304),d=s(2345),o=s(68397),c=s(99741),g=s(77167);const m=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},f=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:s,colorSplit:i,lineWidth:n,textPaddingInline:r,orientationMargin:a,verticalMarginInline:l}=e;return{[t]:Object.assign(Object.assign({},(0,o.Wf)(e)),{borderBlockStart:`${(0,d.bf)(n)} solid ${i}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:l,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${(0,d.bf)(n)} solid ${i}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${(0,d.bf)(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${(0,d.bf)(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${i}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${(0,d.bf)(n)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:r},"&-dashed":{background:"none",borderColor:i,borderStyle:"dashed",borderWidth:`${(0,d.bf)(n)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:i,borderStyle:"dotted",borderWidth:`${(0,d.bf)(n)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:n,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:s}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:s}}})}};var x=(0,c.I$)("Divider",(e=>{const t=(0,g.IX)(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[f(t),m(t)]}),(e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS})),{unitless:{orientationMargin:!0}}),u=function(e,t){var s={};for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.indexOf(i)<0&&(s[i]=e[i]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(i=Object.getOwnPropertySymbols(e);n<i.length;n++)t.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(e,i[n])&&(s[i[n]]=e[i[n]])}return s};const h={small:"sm",middle:"md"};var j=e=>{const{getPrefixCls:t,direction:s,className:n,style:d}=(0,a.dj)("divider"),{prefixCls:o,type:c="horizontal",orientation:g="center",orientationMargin:m,className:f,rootClassName:j,children:p,dashed:M,variant:b="solid",plain:v,style:y,size:Z}=e,$=u(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),w=t("divider",o),[I,F,z]=x(w),S=(0,l.Z)(Z),k=h[S],B=!!p,E=i.useMemo((()=>"left"===g?"rtl"===s?"end":"start":"right"===g?"rtl"===s?"start":"end":g),[s,g]),O="start"===E&&null!=m,C="end"===E&&null!=m,T=r()(w,n,F,z,`${w}-${c}`,{[`${w}-with-text`]:B,[`${w}-with-text-${E}`]:B,[`${w}-dashed`]:!!M,[`${w}-${b}`]:"solid"!==b,[`${w}-plain`]:!!v,[`${w}-rtl`]:"rtl"===s,[`${w}-no-default-orientation-margin-start`]:O,[`${w}-no-default-orientation-margin-end`]:C,[`${w}-${k}`]:!!k},f,j),L=i.useMemo((()=>"number"==typeof m?m:/^\d+$/.test(m)?Number(m):m),[m]),P={marginInlineStart:O?L:void 0,marginInlineEnd:C?L:void 0};return I(i.createElement("div",Object.assign({className:T,style:Object.assign(Object.assign({},d),y)},$,{role:"separator"}),p&&"vertical"!==c&&i.createElement("span",{className:`${w}-inner-text`,style:P},p)))}}}]);