"use strict";const n=require("../../../../../../common/vendor.js"),o=require("../../i18n/index.js"),s=require("../z-paging-interceptor.js"),{t:r}=n.initVueI18n(o.messages),g=n.index.getSystemInfoSync().language,l={data(){return{language:g}},computed:{finalLanguage(){try{const t=n.index.getLocale(),e=this.language;return t==="auto"?s.interceptor._handleLanguage2Local(e,this._language2Local(e)):t}catch{return"zh-Hans"}},finalRefresherDefaultText(){return this._getI18nText("zp.refresher.default",this.refresherDefaultText)},finalRefresherPullingText(){return this._getI18nText("zp.refresher.pulling",this.refresherPullingText)},finalRefresherRefreshingText(){return this._getI18nText("zp.refresher.refreshing",this.refresherRefreshingText)},finalRefresherCompleteText(){return this._getI18nText("zp.refresher.complete",this.refresherCompleteText)},finalRefresherUpdateTimeTextMap(){return{title:r("zp.refresherUpdateTime.title"),none:r("zp.refresherUpdateTime.none"),today:r("zp.refresherUpdateTime.today"),yesterday:r("zp.refresherUpdateTime.yesterday")}},finalRefresherGoF2Text(){return this._getI18nText("zp.refresher.f2",this.refresherGoF2Text)},finalLoadingMoreDefaultText(){return this._getI18nText("zp.loadingMore.default",this.loadingMoreDefaultText)},finalLoadingMoreLoadingText(){return this._getI18nText("zp.loadingMore.loading",this.loadingMoreLoadingText)},finalLoadingMoreNoMoreText(){return this._getI18nText("zp.loadingMore.noMore",this.loadingMoreNoMoreText)},finalLoadingMoreFailText(){return this._getI18nText("zp.loadingMore.fail",this.loadingMoreFailText)},finalEmptyViewText(){return this.isLoadFailed?this.finalEmptyViewErrorText:this._getI18nText("zp.emptyView.title",this.emptyViewText)},finalEmptyViewReloadText(){return this._getI18nText("zp.emptyView.reload",this.emptyViewReloadText)},finalEmptyViewErrorText(){return this.customerEmptyViewErrorText||this._getI18nText("zp.emptyView.error",this.emptyViewErrorText)},finalSystemLoadingText(){return this._getI18nText("zp.systemLoading.title",this.systemLoadingText)}},methods:{getLanguage(){return this.finalLanguage},_getI18nText(t,e){const i=Object.prototype.toString.call(e);if(i==="[object Object]"){const a=e[this.finalLanguage];if(a)return a}else if(i==="[object String]")return e;return r(t)},_language2Local(t){const e=t.toLowerCase().replace(new RegExp("_",""),"-");return e.indexOf("zh")!==-1?e==="zh"||e==="zh-cn"||e.indexOf("zh-hans")!==-1?"zh-Hans":"zh-Hant":e.indexOf("en")!==-1?"en":t}}};exports.i18nModule=l;
