"use strict";const e=require("../../../../common/vendor.js"),n=require("./i18n/index.js");let o;setTimeout((()=>{o=e.index.getDeviceInfo().platform}),16);const{t:t}=e.initVueI18n(n.messages),i={name:"UniLoadMore",emits:["clickLoadMore"],props:{status:{type:String,default:"more"},showIcon:{type:Boolean,default:!0},iconType:{type:String,default:"auto"},iconSize:{type:Number,default:24},color:{type:String,default:"#777777"},contentText:{type:Object,default:()=>({contentdown:"",contentrefresh:"",contentnomore:""})},showText:{type:Boolean,default:!0}},data:()=>({webviewHide:!1,platform:o,imgBase64:"data:image/png;base64,[encoded data, 6164 characters]"}),computed:{iconSnowWidth(){return 2*(Math.floor(this.iconSize/24)||1)},contentdownText(){return this.contentText.contentdown||t("uni-load-more.contentdown")},contentrefreshText(){return this.contentText.contentrefresh||t("uni-load-more.contentrefresh")},contentnomoreText(){return this.contentText.contentnomore||t("uni-load-more.contentnomore")}},mounted(){},methods:{onClick(){this.$emit("clickLoadMore",{detail:{status:this.status}})}}};const c=e._export_sfc(i,[["render",function(n,o,t,i,c,A){return e.e({a:!c.webviewHide&&("circle"===t.iconType||"auto"===t.iconType&&"android"===c.platform)&&"loading"===t.status&&t.showIcon},!c.webviewHide&&("circle"===t.iconType||"auto"===t.iconType&&"android"===c.platform)&&"loading"===t.status&&t.showIcon?{b:t.color,c:t.iconSize/12,d:t.color,e:t.iconSize/12,f:t.color,g:t.iconSize/12,h:t.iconSize+"px",i:t.iconSize+"px"}:!c.webviewHide&&"loading"===t.status&&t.showIcon?{k:c.imgBase64,l:t.iconSize+"px",m:t.iconSize+"px"}:{},{j:!c.webviewHide&&"loading"===t.status&&t.showIcon,n:t.showText},t.showText?{o:e.t("more"===t.status?A.contentdownText:"loading"===t.status?A.contentrefreshText:A.contentnomoreText),p:t.color}:{},{q:e.o(((...e)=>A.onClick&&A.onClick(...e)))})}]]);wx.createComponent(c);
