"use strict";const e=require("../common/src/instantiationDecorator.js"),t=require("../common/config.js"),i=require("./props.js"),s=require("../common/utils.wxs.js"),a=require("../../../../common/vendor.js"),n=`${t.prefix}-loading`,o=e.uniComponent({name:n,options:{multipleSlots:!0,styleIsolation:"shared"},externalClasses:[`${t.prefix}-class`,`${t.prefix}-class-text`,`${t.prefix}-class-indicator`],props:{...i.props},data:()=>({prefix:t.prefix,classPrefix:n,show:!0,tools:s.tools}),watch:{loading:{handler(e){const{delay:t}=this;this.timer&&clearTimeout(this.timer),e&&t?this.timer=setTimeout((()=>{this.show=e,this.timer=null}),t):this.show=e},immediate:!0}},beforeUnMount(){clearTimeout(this.timer)},methods:{refreshPage(){this.$emit("reload")}}});const r=a._export_sfc(o,[["render",function(e,t,i,s,n,o){return a.e({a:e.indicator},e.indicator?a.e({b:"spinner"===e.theme},"spinner"===e.theme?{c:a.f(12,((t,i,s)=>({a:i,b:a.n(e.classPrefix+"__dot "+e.classPrefix+"__dot-"+i)})))}:{},{d:"circular"===e.theme},"circular"===e.theme?{e:a.n(e.classPrefix+"__circular")}:{},{f:"dots"===e.theme},"dots"===e.theme?{g:a.n(e.classPrefix+"__dot"),h:a.s((e.duration?"animation-duration: "+e.duration/1e3+"s; animation-delay:0s;":"")+" animation-play-state: "+(e.pause?"paused":"running")+";"),i:a.n(e.classPrefix+"__dot"),j:a.s((e.duration?"animation-duration: "+e.duration/1e3+"s; animation-delay:"+1*e.duration/3e3+"s;":"")+" animation-play-state: "+(e.pause?"paused":"running")+";"),k:a.n(e.classPrefix+"__dot"),l:a.s((e.duration?"animation-duration: "+e.duration/1e3+"s; animation-delay:"+2*e.duration/3e3+"s;":"")+" animation-play-state: "+(e.pause?"paused":"running")+";")}:{},{m:a.n(e.tClassIndicator),n:a.n(e.classPrefix+"__spinner "+e.classPrefix+"__spinner--"+e.theme+" "+(e.reverse?"reverse":"")),o:a.s("width: "+e.tools.addUnit(e.size)+"; height: "+e.tools.addUnit(e.size)+"; "+(e.inheritColor?"color: inherit;":"")+" "+(e.indicator?"":"display: none;")+" "+(e.duration?"animation-duration: "+e.duration/1e3+"s;":"")+" animation-play-state: "+(e.pause?"paused":"running")+";"),p:e.ariaRole||"img",q:e.ariaLabel||e.text||"加载中"}):{},{r:e.text},e.text?{s:a.t(e.text)}:{},{t:a.n(e.tools.cls(e.classPrefix+"__text",[e.layout])),v:a.n(e.tClassText),w:e.indicator,x:e.ariaLabel||e.text,y:a.s(e.tools._style([e.customStyle,e.show?"":"display: none",e.inheritColor?"color: inherit":""])),z:a.n(e.tClass),A:a.n(e.classPrefix+" "+e.classPrefix+"--"+e.layout+" "+(e.fullscreen?e.classPrefix+"--fullscreen":""))})}],["__scopeId","data-v-3e29eb03"]]);wx.createComponent(r);
