import{__decorate}from"tslib";import{SuperComponent,wxComponent}from"../common/src/index";import config from"../common/config";import props from"./props";const{prefix:prefix}=config,name=`${prefix}-chat-thinking`;let ChatThinking=class extends SuperComponent{constructor(){super(...arguments),this.options={multipleSlots:!0},this.properties=props,this.data={localCollapsed:!1,contentStyle:"",classPrefix:name},this.observers={maxHeight(){this.setContentStyle()}},this.methods={handleCollapse(){this.setData({localCollapsed:!this.data.localCollapsed}),this.triggerEvent("collapsedChange",this.data.localCollapsed)},setContentStyle(){this.data.maxHeight?this.setData({contentStyle:`max-height: ${this.data.maxHeight}px;`}):this.setData({contentStyle:""})}},this.lifetimes={created(){this.data.handleCollapse=this.handleCollapse.bind(this)},attached(){(function(){this.setData({localCollapsed:this.properties.collapsed||!1})}).call(this),this.setContentStyle()},detached(){}}}};ChatThinking=__decorate([wxComponent()],ChatThinking);export default ChatThinking;