"use strict";const l=require("./props.js"),u=require("../../libs/mixin/mpMixin.js"),a=require("../../libs/mixin/mixin.js"),t=require("../../libs/function/index.js"),m=require("../../libs/function/colorGradient.js"),i=require("../../../../common/vendor.js"),c={name:"u-loading-icon",mixins:[u.mpMixin,a.mixin,l.props],data(){return{array12:Array.from({length:12}),aniAngel:360,webviewHide:!1,loading:!1}},computed:{otherBorderColor(){const e=m.colorGradient$1(this.color,"#ffffff",100)[80];return this.mode==="circle"?this.inactiveColor?this.inactiveColor:e:"transparent"}},watch:{show(e){}},mounted(){this.init()},methods:{addUnit:t.addUnit,addStyle:t.addStyle,init(){setTimeout(()=>{},20)},addEventListenerToWebview(){const e=getCurrentPages(),r=e[e.length-1].$getAppWebview();r.addEventListener("hide",()=>{this.webviewHide=!0}),r.addEventListener("show",()=>{this.webviewHide=!1})}}};function w(e,s,r,v,o,n){return i.e({a:e.show},e.show?i.e({b:!o.webviewHide},o.webviewHide?{}:i.e({c:e.mode==="spinner"},e.mode==="spinner"?{d:i.f(o.array12,(f,d,p)=>({a:d}))}:{},{e:i.n(`u-loading-icon__spinner--${e.mode}`),f:e.color,g:n.addUnit(e.size),h:n.addUnit(e.size),i:e.color,j:n.otherBorderColor,k:n.otherBorderColor,l:n.otherBorderColor,m:`${e.duration}ms`,n:e.mode==="semicircle"||e.mode==="circle"?e.timingFunction:""}),{o:e.text},e.text?{p:i.t(e.text),q:n.addUnit(e.textSize),r:e.textColor}:{},{s:i.s(n.addStyle(e.customStyle)),t:i.n(e.vertical&&"u-loading-icon--vertical")}):{})}const h=i._export_sfc(c,[["render",w],["__scopeId","data-v-2af81691"]]);wx.createComponent(h);
