1 |
- import{s as f,E as I,G as w,v as E,w as F,f as r,af as N,ag as P,ad as v,y as l,ae as G,z as g,P as R,Q as h,D as A,ah as K}from"./index-DT8qTvyx.js";var U=function(t){f(a,t);function a(e){return t.call(this,e)||this}return a.prototype.handleCollapseChange=function(e,i,p){return I(this,void 0,void 0,function(){var o,d,n,s;return w(this,function(c){switch(c.label){case 0:return o=this.props,d=o.dispatchEvent,n=o.onCollapse,[4,d("change",K(this.props,{activeKeys:e,collapseId:i,collapsed:p}))];case 1:return s=c.sent(),s!=null&&s.prevented?[2]:(n==null||n(e,i,p),[2])}})})},a.prototype.render=function(){var e=this.props,i=e.defaultActiveKey,p=e.accordion,o=e.expandIcon,d=e.expandIconPosition,n=e.body,s=e.className,c=e.style,b=e.render,S=e.mobileUI,_=e.data,m=e.id,y=e.themeCss,C=e.wrapperCustomStyle,x=e.env,u=this.props.enableFieldSetStyle;return E(u)&&(u=F(u,_,"| raw")),r.createElement(r.Fragment,null,r.createElement(N,{defaultActiveKey:i,accordion:p,expandIcon:o,expandIconPosition:d,className:P(s,v(l(l({},this.props),{name:"className",id:m,themeCss:y})),v(l(l({},this.props),{name:"wrapperCustomStyle",id:m,themeCss:C}))),style:c,mobileUI:S,onCollapseChange:this.handleCollapseChange},b("body",n||"",{enableFieldSetStyle:u})),r.createElement(G,l({},this.props,{config:{wrapperCustomStyle:C,id:m,themeCss:y,classNames:[{key:"className"}]},env:x})))},a.defaultProps={enableFieldSetStyle:!0},g([R,h("design:type",Function),h("design:paramtypes",[Array,Object,Boolean]),h("design:returntype",Promise)],a.prototype,"handleCollapseChange",null),a}(r.Component),V=function(t){f(a,t);function a(){return t!==null&&t.apply(this,arguments)||this}return a=g([A({type:"collapse-group"})],a),a}(U);export{U as CollapseGroupRender,V as CollapseGroupRenderer};
|