mirror of
https://gitee.com/270580156/weiyu.git
synced 2026-05-17 04:37:53 +00:00
1 line
22 KiB
JavaScript
1 line
22 KiB
JavaScript
"use strict";(self.webpackChunkadmin=self.webpackChunkadmin||[]).push([[8374],{16829:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(77260),l=n(44194),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"},i=n(5901),a=function(e,t){return l.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var s=l.forwardRef(a)},83381:function(e,t,n){n.d(t,{Z:function(){return s}});var o=n(77260),l=n(44194),r={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"},i=n(5901),a=function(e,t){return l.createElement(i.Z,(0,o.Z)({},e,{ref:t,icon:r}))};var s=l.forwardRef(a)},31051:function(e,t,n){var o=n(39328),l=n(17323),r=n(90098),i=n(44194),a=n(17881),s=n(8598),c=n(31549),d=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","showSearch","options"],p=["fieldProps","children","params","proFieldProps","mode","valueEnum","request","options"],u=function(e,t){var n=e.fieldProps,p=e.children,u=e.params,m=e.proFieldProps,g=e.mode,f=e.valueEnum,b=e.request,v=e.showSearch,h=e.options,y=(0,l.Z)(e,d),$=(0,i.useContext)(a.Z);return(0,c.jsx)(s.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,r.h)(f),request:b,params:u,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({options:h,mode:g,showSearch:v,getPopupContainer:$.getPopupContainer},n),ref:t,proFieldProps:m},y),{},{children:p}))},m=i.forwardRef((function(e,t){var n=e.fieldProps,d=e.children,u=e.params,m=e.proFieldProps,g=e.mode,f=e.valueEnum,b=e.request,v=e.options,h=(0,l.Z)(e,p),y=(0,o.Z)({options:v,mode:g||"multiple",labelInValue:!0,showSearch:!0,suffixIcon:null,autoClearSearchValue:!0,optionLabelProp:"label"},n),$=(0,i.useContext)(a.Z);return(0,c.jsx)(s.Z,(0,o.Z)((0,o.Z)({valueEnum:(0,r.h)(f),request:b,params:u,valueType:"select",filedConfig:{customLightMode:!0},fieldProps:(0,o.Z)({getPopupContainer:$.getPopupContainer},y),ref:t,proFieldProps:m},h),{},{children:d}))})),g=i.forwardRef(u);g.SearchSelect=m,g.displayName="ProFormComponent",t.Z=g},22766:function(e,t,n){var o=n(76285),l=n(39328),r=n(17323),i=n(92032),a=n(34651),s=n(72583),c=n(21762),d=n(44194),p=n(8598),u=n(31549),m=["fieldProps","proFieldProps"],g=["fieldProps","proFieldProps"],f="text",b=function(e){var t=(0,i.Z)(e.open||!1,{value:e.open,onChange:e.onOpenChange}),n=(0,o.Z)(t,2),r=n[0],c=n[1];return(0,u.jsx)(a.Z.Item,{shouldUpdate:!0,noStyle:!0,children:function(t){var n,o=t.getFieldValue(e.name||[]);return(0,u.jsx)(s.Z,(0,l.Z)((0,l.Z)({getPopupContainer:function(e){return e&&e.parentNode?e.parentNode:e},onOpenChange:function(e){return c(e)},content:(0,u.jsxs)("div",{style:{padding:"4px 0"},children:[null===(n=e.statusRender)||void 0===n?void 0:n.call(e,o),e.strengthText?(0,u.jsx)("div",{style:{marginTop:10},children:(0,u.jsx)("span",{children:e.strengthText})}):null]}),overlayStyle:{width:240},placement:"rightTop"},e.popoverProps),{},{open:r,children:e.children}))}})},v=function(e){var t=e.fieldProps,n=e.proFieldProps,o=(0,r.Z)(e,m);return(0,u.jsx)(p.Z,(0,l.Z)({valueType:f,fieldProps:t,filedConfig:{valueType:f},proFieldProps:n},o))};v.Password=function(e){var t=e.fieldProps,n=e.proFieldProps,i=(0,r.Z)(e,g),a=(0,d.useState)(!1),s=(0,o.Z)(a,2),m=s[0],v=s[1];return null!=t&&t.statusRender&&i.name?(0,u.jsx)(b,{name:i.name,statusRender:null==t?void 0:t.statusRender,popoverProps:null==t?void 0:t.popoverProps,strengthText:null==t?void 0:t.strengthText,open:m,onOpenChange:v,children:(0,u.jsx)("div",{children:(0,u.jsx)(p.Z,(0,l.Z)({valueType:"password",fieldProps:(0,l.Z)((0,l.Z)({},(0,c.Z)(t,["statusRender","popoverProps","strengthText"])),{},{onBlur:function(e){var n;null==t||null===(n=t.onBlur)||void 0===n||n.call(t,e),v(!1)},onClick:function(e){var n;null==t||null===(n=t.onClick)||void 0===n||n.call(t,e),v(!0)}}),proFieldProps:n,filedConfig:{valueType:f}},i))})}):(0,u.jsx)(p.Z,(0,l.Z)({valueType:"password",fieldProps:t,proFieldProps:n,filedConfig:{valueType:f}},i))},v.displayName="ProFormComponent",t.Z=v},12581:function(e,t,n){var o=n(39328),l=n(17323),r=n(44194),i=n(8598),a=n(31549),s=["fieldProps","proFieldProps"],c=function(e,t){var n=e.fieldProps,r=e.proFieldProps,c=(0,l.Z)(e,s);return(0,a.jsx)(i.Z,(0,o.Z)({ref:t,valueType:"textarea",fieldProps:n,proFieldProps:r},c))};t.Z=r.forwardRef(c)},79640:function(e,t,n){n.d(t,{Z:function(){return L}});var o=n(44194),l=n(57507),r=n(61823),i=n(39567),a=n(50010),s=n(80153),c=n(51865),d=n.n(c),p=n(57736),u=n(53230),m=n(9473),g=n(26867),f=n(81424),b=n(23490),v=n(15273),h=n(81254);const y=(e,t,n,o,l)=>({background:e,border:`${(0,b.bf)(o.lineWidth)} ${o.lineType} ${t}`,[`${l}-icon`]:{color:n}}),$=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:o,marginSM:l,fontSize:r,fontSizeLG:i,lineHeight:a,borderRadiusLG:s,motionEaseInOutCirc:c,withDescriptionIconSize:d,colorText:p,colorTextHeading:u,withDescriptionPadding:m,defaultPadding:g}=e;return{[t]:Object.assign(Object.assign({},(0,v.Wf)(e)),{position:"relative",display:"flex",alignItems:"center",padding:g,wordWrap:"break-word",borderRadius:s,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:o,lineHeight:0},"&-description":{display:"none",fontSize:r,lineHeight:a},"&-message":{color:u},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${c}, opacity ${n} ${c},\n padding-top ${n} ${c}, padding-bottom ${n} ${c},\n margin-bottom ${n} ${c}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:m,[`${t}-icon`]:{marginInlineEnd:l,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:o,color:u,fontSize:i},[`${t}-description`]:{display:"block",color:p}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},O=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:o,colorSuccessBg:l,colorWarning:r,colorWarningBorder:i,colorWarningBg:a,colorError:s,colorErrorBorder:c,colorErrorBg:d,colorInfo:p,colorInfoBorder:u,colorInfoBg:m}=e;return{[t]:{"&-success":y(l,o,n,e,t),"&-info":y(m,u,p,e,t),"&-warning":y(a,i,r,e,t),"&-error":Object.assign(Object.assign({},y(d,c,s,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},j=e=>{const{componentCls:t,iconCls:n,motionDurationMid:o,marginXS:l,fontSizeIcon:r,colorIcon:i,colorIconHover:a}=e;return{[t]:{"&-action":{marginInlineStart:l},[`${t}-close-icon`]:{marginInlineStart:l,padding:0,overflow:"hidden",fontSize:r,lineHeight:(0,b.bf)(r),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:i,transition:`color ${o}`,"&:hover":{color:a}}},"&-close-text":{color:i,transition:`color ${o}`,"&:hover":{color:a}}}}};var x=(0,h.I$)("Alert",(e=>[$(e),O(e),j(e)]),(e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}))),S=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]])}return n};const C={success:l.Z,info:s.Z,error:r.Z,warning:a.Z},w=e=>{const{icon:t,prefixCls:n,type:l}=e,r=C[l]||null;return t?(0,g.wm)(t,o.createElement("span",{className:`${n}-icon`},t),(()=>({className:d()(`${n}-icon`,t.props.className)}))):o.createElement(r,{className:`${n}-icon`})},P=e=>{const{isClosable:t,prefixCls:n,closeIcon:l,handleClose:r,ariaProps:a}=e,s=!0===l||void 0===l?o.createElement(i.Z,null):l;return t?o.createElement("button",Object.assign({type:"button",onClick:r,className:`${n}-close-icon`,tabIndex:0},a),s):null},E=o.forwardRef(((e,t)=>{const{description:n,prefixCls:l,message:r,banner:i,className:a,rootClassName:s,style:c,onMouseEnter:g,onMouseLeave:b,onClick:v,afterClose:h,showIcon:y,closable:$,closeText:O,closeIcon:j,action:C,id:E}=e,Z=S(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[I,N]=o.useState(!1);const M=o.useRef(null);o.useImperativeHandle(t,(()=>({nativeElement:M.current})));const{getPrefixCls:k,direction:B,closable:T,closeIcon:z,className:L,style:R}=(0,f.dj)("alert"),F=k("alert",l),[H,W,G]=x(F),D=t=>{var n;N(!0),null===(n=e.onClose)||void 0===n||n.call(e,t)},X=o.useMemo((()=>void 0!==e.type?e.type:i?"warning":"info"),[e.type,i]),q=o.useMemo((()=>!("object"!=typeof $||!$.closeIcon)||(!!O||("boolean"==typeof $?$:!1!==j&&null!=j||!!T))),[O,j,$,T]),A=!(!i||void 0!==y)||y,V=d()(F,`${F}-${X}`,{[`${F}-with-description`]:!!n,[`${F}-no-icon`]:!A,[`${F}-banner`]:!!i,[`${F}-rtl`]:"rtl"===B},L,a,s,G,W),Q=(0,u.Z)(Z,{aria:!0,data:!0}),U=o.useMemo((()=>"object"==typeof $&&$.closeIcon?$.closeIcon:O||(void 0!==j?j:"object"==typeof T&&T.closeIcon?T.closeIcon:z)),[j,$,O,z]),J=o.useMemo((()=>{const e=null!=$?$:T;if("object"==typeof e){const{closeIcon:t}=e;return S(e,["closeIcon"])}return{}}),[$,T]);return H(o.createElement(p.ZP,{visible:!I,motionName:`${F}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:e=>({maxHeight:e.offsetHeight}),onLeaveEnd:h},(({className:t,style:l},i)=>o.createElement("div",Object.assign({id:E,ref:(0,m.sQ)(M,i),"data-show":!I,className:d()(V,t),style:Object.assign(Object.assign(Object.assign({},R),c),l),onMouseEnter:g,onMouseLeave:b,onClick:v,role:"alert"},Q),A?o.createElement(w,{description:n,icon:e.icon,prefixCls:F,type:X}):null,o.createElement("div",{className:`${F}-content`},r?o.createElement("div",{className:`${F}-message`},r):null,n?o.createElement("div",{className:`${F}-description`},n):null),C?o.createElement("div",{className:`${F}-action`},C):null,o.createElement(P,{isClosable:q,prefixCls:F,closeIcon:U,handleClose:D,ariaProps:J})))))}));var Z=E,I=n(40730),N=n(22633),M=n(81880),k=n(18232);let B=function(e){function t(){var e;return(0,I.Z)(this,t),(e=(0,M.Z)(this,t,arguments)).state={error:void 0,info:{componentStack:""}},e}return(0,k.Z)(t,e),(0,N.Z)(t,[{key:"componentDidCatch",value:function(e,t){this.setState({error:e,info:t})}},{key:"render",value:function(){const{message:e,description:t,id:n,children:l}=this.props,{error:r,info:i}=this.state,a=(null==i?void 0:i.componentStack)||null,s=void 0===e?(r||"").toString():e,c=void 0===t?a:t;return r?o.createElement(Z,{id:n,type:"error",message:s,description:o.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},c)}):l}}])}(o.Component);var T=B;const z=Z;z.ErrorBoundary=T;var L=z},61629:function(e,t,n){n.d(t,{Z:function(){return I}});var o=n(44194),l=n(51865),r=n.n(l),i=n(45425),a=n(81424),s=n(38879),c=n(30033);var d={xxl:3,xl:3,lg:3,md:3,sm:2,xs:1};var p=o.createContext({}),u=n(27079),m=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]])}return n};function g(e,t,n){const l=o.useMemo((()=>{return t||(e=n,(0,u.Z)(e).map((e=>Object.assign(Object.assign({},null==e?void 0:e.props),{key:e.key}))));var e}),[t,n]);return o.useMemo((()=>l.map((t=>{var{span:n}=t,o=m(t,["span"]);return"filled"===n?Object.assign(Object.assign({},o),{filled:!0}):Object.assign(Object.assign({},o),{span:"number"==typeof n?n:(0,i.m9)(e,n)})}))),[l,e])}var f=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]])}return n};var b=(e,t)=>{const[n,l]=(0,o.useMemo)((()=>function(e,t){let n=[],o=[],l=!1,r=0;return e.filter((e=>e)).forEach((e=>{const{filled:i}=e,a=f(e,["filled"]);if(i)return o.push(a),n.push(o),o=[],void(r=0);const s=t-r;r+=e.span||1,r>=t?(r>t?(l=!0,o.push(Object.assign(Object.assign({},a),{span:s}))):o.push(a),n.push(o),o=[],r=0):o.push(a)})),o.length>0&&n.push(o),n=n.map((e=>{const n=e.reduce(((e,t)=>e+(t.span||1)),0);if(n<t){const o=e[e.length-1];return o.span=t-(n-(o.span||1)),e}return e})),[n,l]}(t,e)),[t,e]);return n};var v=({children:e})=>e;function h(e){return null!=e}var y=e=>{const{itemPrefixCls:t,component:n,span:l,className:i,style:a,labelStyle:s,contentStyle:c,bordered:d,label:u,content:m,colon:g,type:f,styles:b}=e,v=n,y=o.useContext(p),{classNames:$}=y;return d?o.createElement(v,{className:r()({[`${t}-item-label`]:"label"===f,[`${t}-item-content`]:"content"===f,[`${null==$?void 0:$.label}`]:"label"===f,[`${null==$?void 0:$.content}`]:"content"===f},i),style:a,colSpan:l},h(u)&&o.createElement("span",{style:Object.assign(Object.assign({},s),null==b?void 0:b.label)},u),h(m)&&o.createElement("span",{style:Object.assign(Object.assign({},s),null==b?void 0:b.content)},m)):o.createElement(v,{className:r()(`${t}-item`,i),style:a,colSpan:l},o.createElement("div",{className:`${t}-item-container`},(u||0===u)&&o.createElement("span",{className:r()(`${t}-item-label`,null==$?void 0:$.label,{[`${t}-item-no-colon`]:!g}),style:Object.assign(Object.assign({},s),null==b?void 0:b.label)},u),(m||0===m)&&o.createElement("span",{className:r()(`${t}-item-content`,null==$?void 0:$.content),style:Object.assign(Object.assign({},c),null==b?void 0:b.content)},m)))};function $(e,{colon:t,prefixCls:n,bordered:l},{component:r,type:i,showLabel:a,showContent:s,labelStyle:c,contentStyle:d,styles:p}){return e.map((({label:e,children:u,prefixCls:m=n,className:g,style:f,labelStyle:b,contentStyle:v,span:h=1,key:$,styles:O},j)=>"string"==typeof r?o.createElement(y,{key:`${i}-${$||j}`,className:g,style:f,styles:{label:Object.assign(Object.assign(Object.assign(Object.assign({},c),null==p?void 0:p.label),b),null==O?void 0:O.label),content:Object.assign(Object.assign(Object.assign(Object.assign({},d),null==p?void 0:p.content),v),null==O?void 0:O.content)},span:h,colon:t,component:r,itemPrefixCls:m,bordered:l,label:a?e:null,content:s?u:null,type:i}):[o.createElement(y,{key:`label-${$||j}`,className:g,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c),null==p?void 0:p.label),f),b),null==O?void 0:O.label),span:1,colon:t,component:r[0],itemPrefixCls:m,bordered:l,label:e,type:"label"}),o.createElement(y,{key:`content-${$||j}`,className:g,style:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},d),null==p?void 0:p.content),f),v),null==O?void 0:O.content),span:2*h-1,component:r[1],itemPrefixCls:m,bordered:l,content:u,type:"content"})]))}var O=e=>{const t=o.useContext(p),{prefixCls:n,vertical:l,row:r,index:i,bordered:a}=e;return l?o.createElement(o.Fragment,null,o.createElement("tr",{key:`label-${i}`,className:`${n}-row`},$(r,e,Object.assign({component:"th",type:"label",showLabel:!0},t))),o.createElement("tr",{key:`content-${i}`,className:`${n}-row`},$(r,e,Object.assign({component:"td",type:"content",showContent:!0},t)))):o.createElement("tr",{key:i,className:`${n}-row`},$(r,e,Object.assign({component:a?["th","td"]:"td",type:"item",showLabel:!0,showContent:!0},t)))},j=n(23490),x=n(15273),S=n(81254),C=n(10750);const w=e=>{const{componentCls:t,labelBg:n}=e;return{[`&${t}-bordered`]:{[`> ${t}-view`]:{border:`${(0,j.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"> table":{tableLayout:"auto"},[`${t}-row`]:{borderBottom:`${(0,j.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:first-child":{"> th:first-child, > td:first-child":{borderStartStartRadius:e.borderRadiusLG}},"&:last-child":{borderBottom:"none","> th:first-child, > td:first-child":{borderEndStartRadius:e.borderRadiusLG}},[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,j.bf)(e.padding)} ${(0,j.bf)(e.paddingLG)}`,borderInlineEnd:`${(0,j.bf)(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderInlineEnd:"none"}},[`> ${t}-item-label`]:{color:e.colorTextSecondary,backgroundColor:n,"&::after":{display:"none"}}}},[`&${t}-middle`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,j.bf)(e.paddingSM)} ${(0,j.bf)(e.paddingLG)}`}}},[`&${t}-small`]:{[`${t}-row`]:{[`> ${t}-item-label, > ${t}-item-content`]:{padding:`${(0,j.bf)(e.paddingXS)} ${(0,j.bf)(e.padding)}`}}}}}};var P=(0,S.I$)("Descriptions",(e=>(e=>{const{componentCls:t,extraColor:n,itemPaddingBottom:o,itemPaddingEnd:l,colonMarginRight:r,colonMarginLeft:i,titleMarginBottom:a}=e;return{[t]:Object.assign(Object.assign(Object.assign({},(0,x.Wf)(e)),w(e)),{"&-rtl":{direction:"rtl"},[`${t}-header`]:{display:"flex",alignItems:"center",marginBottom:a},[`${t}-title`]:Object.assign(Object.assign({},x.vS),{flex:"auto",color:e.titleColor,fontWeight:e.fontWeightStrong,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}),[`${t}-extra`]:{marginInlineStart:"auto",color:n,fontSize:e.fontSize},[`${t}-view`]:{width:"100%",borderRadius:e.borderRadiusLG,table:{width:"100%",tableLayout:"fixed",borderCollapse:"collapse"}},[`${t}-row`]:{"> th, > td":{paddingBottom:o,paddingInlineEnd:l},"> th:last-child, > td:last-child":{paddingInlineEnd:0},"&:last-child":{borderBottom:"none","> th, > td":{paddingBottom:0}}},[`${t}-item-label`]:{color:e.labelColor,fontWeight:"normal",fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"start","&::after":{content:'":"',position:"relative",top:-.5,marginInline:`${(0,j.bf)(i)} ${(0,j.bf)(r)}`},[`&${t}-item-no-colon::after`]:{content:'""'}},[`${t}-item-no-label`]:{"&::after":{margin:0,content:'""'}},[`${t}-item-content`]:{display:"table-cell",flex:1,color:e.contentColor,fontSize:e.fontSize,lineHeight:e.lineHeight,wordBreak:"break-word",overflowWrap:"break-word"},[`${t}-item`]:{paddingBottom:0,verticalAlign:"top","&-container":{display:"flex",[`${t}-item-label`]:{display:"inline-flex",alignItems:"baseline"},[`${t}-item-content`]:{display:"inline-flex",alignItems:"baseline",minWidth:"1em"}}},"&-middle":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingSM}}},"&-small":{[`${t}-row`]:{"> th, > td":{paddingBottom:e.paddingXS}}}})}})((0,C.IX)(e,{}))),(e=>({labelBg:e.colorFillAlter,labelColor:e.colorTextTertiary,titleColor:e.colorText,titleMarginBottom:e.fontSizeSM*e.lineHeightSM,itemPaddingBottom:e.padding,itemPaddingEnd:e.padding,colonMarginRight:e.marginXS,colonMarginLeft:e.marginXXS/2,contentColor:e.colorText,extraColor:e.colorText}))),E=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var l=0;for(o=Object.getOwnPropertySymbols(e);l<o.length;l++)t.indexOf(o[l])<0&&Object.prototype.propertyIsEnumerable.call(e,o[l])&&(n[o[l]]=e[o[l]])}return n};const Z=e=>{const{prefixCls:t,title:n,extra:l,column:u,colon:m=!0,bordered:f,layout:v,children:h,className:y,rootClassName:$,style:j,size:x,labelStyle:S,contentStyle:C,styles:w,items:Z,classNames:I}=e,N=E(e,["prefixCls","title","extra","column","colon","bordered","layout","children","className","rootClassName","style","size","labelStyle","contentStyle","styles","items","classNames"]),{getPrefixCls:M,direction:k,className:B,style:T,classNames:z,styles:L}=(0,a.dj)("descriptions"),R=M("descriptions",t),F=(0,c.Z)();const H=o.useMemo((()=>{var e;return"number"==typeof u?u:null!==(e=(0,i.m9)(F,Object.assign(Object.assign({},d),u)))&&void 0!==e?e:3}),[F,u]),W=g(F,Z,h),G=(0,s.Z)(x),D=b(H,W),[X,q,A]=P(R),V=o.useMemo((()=>({labelStyle:S,contentStyle:C,styles:{content:Object.assign(Object.assign({},L.content),null==w?void 0:w.content),label:Object.assign(Object.assign({},L.label),null==w?void 0:w.label)},classNames:{label:r()(z.label,null==I?void 0:I.label),content:r()(z.content,null==I?void 0:I.content)}})),[S,C,w,I,z,L]);return X(o.createElement(p.Provider,{value:V},o.createElement("div",Object.assign({className:r()(R,B,z.root,null==I?void 0:I.root,{[`${R}-${G}`]:G&&"default"!==G,[`${R}-bordered`]:!!f,[`${R}-rtl`]:"rtl"===k},y,$,q,A),style:Object.assign(Object.assign(Object.assign(Object.assign({},T),L.root),null==w?void 0:w.root),j)},N),(n||l)&&o.createElement("div",{className:r()(`${R}-header`,z.header,null==I?void 0:I.header),style:Object.assign(Object.assign({},L.header),null==w?void 0:w.header)},n&&o.createElement("div",{className:r()(`${R}-title`,z.title,null==I?void 0:I.title),style:Object.assign(Object.assign({},L.title),null==w?void 0:w.title)},n),l&&o.createElement("div",{className:r()(`${R}-extra`,z.extra,null==I?void 0:I.extra),style:Object.assign(Object.assign({},L.extra),null==w?void 0:w.extra)},l)),o.createElement("div",{className:`${R}-view`},o.createElement("table",null,o.createElement("tbody",null,D.map(((e,t)=>o.createElement(O,{key:t,index:t,colon:m,prefixCls:R,vertical:"vertical"===v,bordered:f,row:e})))))))))};Z.Item=v;var I=Z},81880:function(e,t,n){n.d(t,{Z:function(){return i}});var o=n(88126),l=n(49717),r=n(98277);function i(e,t,n){return t=(0,o.Z)(t),(0,r.Z)(e,(0,l.Z)()?Reflect.construct(t,n||[],(0,o.Z)(e).constructor):t.apply(e,n))}}}]); |