"use strict";const e=require("../common/src/instantiationDecorator.js"),t=require("./props.js"),a=require("../common/config.js"),i=require("../common/utils.wxs.js"),s=require("../common/relation/parent-map.js"),n=require("../common/relation/relation.js"),r=require("../../../../common/vendor.js"),o=`${a.prefix}-tab-panel`,l=e.uniComponent({name:o,options:{styleIsolation:"shared",virtualHost:!0},externalClasses:[`${a.prefix}-class`],mixins:[n.ChildrenMixin(s.RELATION_MAP.TabPanel)],props:{...t.props},data:()=>({prefix:a.prefix,classPrefix:o,active:!1,hide:!0,id:"",hasActivated:!1,tools:i.tools}),watch:{label:"update",badgeProps:{handler(){this.update()},deep:!0},disabled:"update",icon:"update",panel:"update",value:"update",lazy:"update"},methods:{setParent(e){this[s.RELATION_MAP.TabPanel]=e,e.children.includes(this)||e.children.push(this),e.innerAfterLinked(this)},setId(e){this.id=e},getComputedName(){return null!=this.value?`${this.value}`:`${this.dataIndex}`},update(){var e;null==(e=this[s.RELATION_MAP.TabPanel])||e.updateTabs()},render(e,t){this.initialized=this.initialized||e,e&&!this.hasActivated&&(this.hasActivated=!0),this.active=e,this.hide=!t.animation&&!e}}});const d=r._export_sfc(l,[["render",function(e,t,a,i,s,n){return r.e({a:!e.lazy||e.hasActivated},!e.lazy||e.hasActivated?r.e({b:e.panel},e.panel?{c:r.t(e.panel)}:{},{d:e.id,e:r.n(e.tClass+" "+e.classPrefix+" "+(e.active?e.classPrefix+"--active":e.classPrefix+"--inactive")),f:r.s(e.tools._style([e.customStyle,e.hide?"display: none":""]))}):{})}],["__scopeId","data-v-a6b1077e"]]);wx.createComponent(d);
