"use strict";const s=require("../common/src/instantiationDecorator.js"),e=require("./props.js"),i=require("../common/config.js"),o=require("../common/utils.js"),a=require("../common/utils.wxs.js"),n=require("../common/version.js"),t=require("../../../../common/vendor.js"),c=`${i.prefix}-empty`,r=s.uniComponent({name:c,options:{styleIsolation:"shared"},externalClasses:[`${i.prefix}-class`,`${i.prefix}-class-description`,`${i.prefix}-class-image`,`${i.prefix}-class-actions`],components:{TIcon:()=>"../icon/icon.js",TImage:()=>"../image/image.js"},props:{...e.props},data:()=>({prefix:i.prefix,classPrefix:c,iconName:"",iconData:{},tools:a.tools}),computed:{iconTClass(){return n.canUseVirtualHost()?this.iconRealClass:""},iconClass(){return n.canUseVirtualHost()?"":this.iconRealClass},iconRealClass(){const{classPrefix:s,iconData:e}=this;return`${s}__icon ${s}__icon--${e.activeIdx==e.index?"active ":" "}`}},watch:{icon:{handler(s){const e=o.setIcon("icon",s,"");Object.keys(e).forEach((s=>{this[s]=e[s]}))},immediate:!0}},mounted(){},methods:{}});if(!Array){(t.resolveComponent("t-image")+t.resolveComponent("t-icon"))()}Math||((()=>"../image/image.js")+(()=>"../icon/icon.js"))();const l=t._export_sfc(r,[["render",function(s,e,i,o,a,n){return t.e({a:s.image},s.image?{b:t.p({"t-class":s.tClassImage,src:s.image,mode:"aspectFit"})}:s.iconName||s.tools.isNoEmptyObj(s.iconData)?{d:t.n(s.iconClass),e:t.p({"custom-style":s.iconData.style||"","t-class":s.iconTClass,prefix:s.iconData.prefix,name:s.iconName||s.iconData.name,size:s.iconData.size,color:s.iconData.color,"aria-hidden":!!s.iconData.ariaHidden,"aria-label":s.iconData.ariaLabel,"aria-role":s.iconData.ariaRole})}:{},{c:s.iconName||s.tools.isNoEmptyObj(s.iconData),f:t.n(s.classPrefix+"__thumb"),g:s.description},s.description?{h:t.t(s.description)}:{},{i:t.n(s.classPrefix+"__description "),j:t.n(s.tClassDescription),k:t.n(s.classPrefix+"__actions "),l:t.n(s.tClassActions),m:t.s(s.tools._style([s.customStyle])),n:t.n(s.tClass),o:t.n(s.classPrefix)})}],["__scopeId","data-v-e1b48b1d"]]);wx.createComponent(l);
