"use strict";(this.webpackChunk_lingxiteam_pcfactory=this.webpackChunk_lingxiteam_pcfactory||[]).push([[873],{84803:function(e,t,n){n.r(t),n.d(t,{formGroupPrefixCls:function(){return x}});var o=n(7896),c=n(33028),i=n(31461),l=n(69517),a=n(72779),r=n.n(a),s=n(97745),d=n(90359),p=n.n(d),m=n(80693),y=n(8263),u=n(70247),f=n(37913),g=n(72594),I=n(5417),h=["style","title","className","backgroundType","getEngineApis","appId","fold","onFoldChange","children","titleStyle"],E=["titleColor","titleFontSize","titleFontWeight","titleLineHeight"],v="formGroup",S="ued-form-group",x=S,F=u.Collapse.Panel,b=(0,l.UB)((function(e){var t=e.style,n=void 0===t?{}:t,l=e.title,a=e.className,x=e.backgroundType,b=e.getEngineApis,A=e.appId,C=e.fold,N=e.onFoldChange,Z=e.children,$=e.titleStyle,k=(0,i.Z)(e,h),w=(null==b?void 0:b())||{},T=(0,d.useState)([v]),K=T[0],L=T[1],_=(0,m.Z)({engineApis:w,backgroundType:x,appId:A,mode:"engine"}).backgroundStyle,z=(0,y.cI)(),G=z.colSpan,H=z.rowSpace,P=z.layout,W=z.colSpace,B=(0,d.useMemo)((function(){var e=n.titleColor,t=n.titleFontSize,o=n.titleFontWeight,l=n.titleLineHeight,a=(0,i.Z)(n,E),r=(0,c.Z)({},_||{}),s={color:e,fontSize:t,fontWeight:o,lineHeight:l},d=(0,c.Z)({},a),p=["margin","border"];return Object.keys(d).forEach((function(e){var t=e.toLocaleLowerCase()||"";p.find((function(e){return t&&0===t.indexOf(e)}))&&(r[e]=d[e],delete d[e])})),{containerStyle:r,headStyle:s,bodyStyle:d}}),[_,n]),M=B.containerStyle,O=B.headStyle,j=B.bodyStyle,D=(0,I.Z)((0,c.Z)((0,c.Z)({},e),{},{prefixCls:S})).renderExtendBtn;return p().createElement("div",{"data-compid":null==e?void 0:e["data-compid"],className:r()(S,a),style:M},p().createElement(u.Collapse,(0,o.Z)({},k,{expandIconPosition:"end",activeKey:C?K:[v],expandIcon:function(e){var t=e.isActive;return C&&p().createElement("div",{className:"".concat(S,"-fold"),onClick:function(){C&&(null==N||N(!((null==K?void 0:K.length)>0)),L(null!=K&&K.length?[]:[v]))}},p().createElement(s.Sxr,{rotate:t?0:-90}))}}),p().createElement(F,{key:"formGroup",className:r()("".concat(S,"-body-wrap"),"".concat(S,"-body-wrap-").concat($)),header:p().createElement("div",{className:r()("".concat(S,"-head-wrap"),a),style:O},p().createElement("div",{className:"".concat(S,"-title-box")},p().createElement(g.Z,{title:l,getEngineApis:b,$$componentItem:null==e?void 0:e.$$componentItem,prefixCls:S,iconType:e.iconType,hasIcon:e.hasIcon,prefixIcon:e.prefixIcon})),D())},p().createElement("div",{className:"".concat(S,"-body"),style:j},p().createElement(f.LM,{rowSpace:H,layout:P,colSpace:W,colSpan:G,engineApis:w},Z)))))}));t.default=b},72594:function(e,t,n){var o=n(90359),c=n.n(o),i=n(64596),l=n(6648);t.Z=function(e){var t=e||{},n=t.iconType,o=t.hasIcon,a=t.title,r=t.prefixCls,s=t.prefixIcon,d=void 0===s?{}:s,p=t.isED,m=t.getEdEngineApi,y=t.getEngineApis,u=t.$$componentItem,f=t.titleStyle,g=void 0===f?{}:f,I="".concat(r,"-title");return function(){if(!o&&!n)return c().createElement("div",{className:"".concat(I),style:g},a);switch(n){case"line":return c().createElement("div",{className:"".concat(I," ").concat(I,"-icon-line"),style:g},a);case"auto":var t=d.prefixIconIsIconFont,r=d.prefixIconFontAddress,s=d.prefixIconTheme,f=d.prefixIconType,h=d.prefixIconiconFile,E=d.prefixIconIconFileInfo,v=null;return!p&&y?v=c().createElement(l.Z,{icon:{type:f,theme:s,isIconFont:t,fontAddress:r,iconFile:h,iconFileInfo:E,isSystem:d.isSystem,systemIconKey:d.systemIconKey},engineApis:null==y?void 0:y(),getEngineApis:y,$$componentItem:u,className:""}):m&&(v=c().createElement(i.Z,{icon:{type:f,theme:s,isIconFont:t,fontAddress:r,iconFile:h,iconFileInfo:E,isSystem:d.isSystem,systemIconKey:d.systemIconKey},getEdEngineApi:m,$$componentItem:e.$$componentItem})),c().createElement("div",{className:"".concat(I," ").concat(I,"-icon-auto"),style:g},v,a);case"circle":return c().createElement("div",{className:"".concat(I," ").concat(I,"-circle"),style:g},a);default:return c().createElement("div",{className:"".concat(I),style:g},a)}}()}}}]);