zhxy-jsd/dist/build/h5/assets/useLayout.9cce4498.js
2025-05-21 02:44:13 +08:00

2 lines
100 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import{b as e,e as t,w as i,g as o,N as a,y as s,z as r,ai as l,q as n,_ as h,F as d,G as c,l as g,aE as u,aF as p,ab as f,aa as m,v as T,Q as y,aG as S,a2 as w,aH as R,a3 as C,al as A,am as x,aI as M,aJ as I,aK as L,a9 as v,aL as b,aM as k,ak as B,j as P,k as D,O as V,a0 as E,a6 as z,d as H,r as _,h as N,aN as F,aO as U,m as O,D as Q,a7 as W,E as j,au as K}from"./index-f6e54d8f.js";import{_ as J}from"./Loading.7fe45b05.js";import{_ as G}from"./Search.vue_vue_type_script_setup_true_lang.fed60e7a.js";import{_ as Z}from"./_plugin-vue_export-helper.1b428a4d.js";const Y="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAD1BMVEVHcExRUVFMTExRUVFRUVE9CdWsAAAABHRSTlMAjjrY9ZnUjwAAAQFJREFUWMPt2MsNgzAMgGEEE1B1gKJmAIRYoCH7z9RCXrabh33iYktcIv35EEg5ZBh07pvxJU6MFSPOSRnjnBUjUsaciRUjMsb4xIoRCWNiYsUInzE5sWKEyxiYWDbyefqHx1zIeiYTk7mQYziTYecxHvEJjwmIT3hMQELCYSISEg4TkZj0mYTEpM8kJCU9JiMp6TEZyUmbAUhO2gxAQNJiIAKSFgMRmNQZhMCkziAEJTUGIyipMRjBSZkhCE7KDEFIUmTeGCHJxWz0zXaE0GTCG8ZFtEaS347r/1fe11YyHYVfubxayfjoHmc0YYwmmmiiiSaaaKLJ7ckyz5ve+dw3Xw2emdwm9xSbAAAAAElFTkSuQmCC",$="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAElBMVEVHcEz///////////////////+IGTx/AAA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ACCzIhnAAAAElBMVEX///9HcEz///////////////84chYNAAAABnRSTlP/AGzCOYZj5g1nAAACfklEQVRYw+2YTVPDIBCGtza9Jw25a0bvcax30o73OOr//yvma2F3YWlpPTijXNpAHrK8LLALVPFium2vNIFSbwGKTGQA2GUiHcD29yDNy3sMIdUBQl7r2H8mOEVqAHgPkYZUS6Qc2zYhQqtjyDZEximCZwWZLIBeIgYShs2NzxKpSUehYpMJhURGb+O+w5BpMCAREKPnCDHbIY20SzhM5yxziAXpOiBXydrekT9i5XDEq4NIIHHgyU5mRGqviII4mREJJA4QJzMiILwlRJzpKxJKvCBm8OsBBbLux0tsPl4RKYm5aPu6jw1U4mGxEUR9g8M1PcqBEp/WJliNgYOXueBzS4jZSIcgY5lCtevgDSgyzE+rAfuOTQMq0yzvoGH18qju27Mayzs4fPyMziCx81NJa5RNfW7vPYK9KOfDiVkBxFHG8hAj9txuoBuSWORsFfkpBf7xKFLSeaOefEojh5jz22DJEqMP8fUyaKdQx+RnG+yXMpe8Aars8ueR1pVH/bW3FyyvPRw90upLDHwpgBDtg4aUBNkxRLXMAi03IhcZtr1m+FeI/O/JNyDmmL1djLOauSlNflBpW18RQ2bPqXI22MXXEk75KRHTnkPkYbESbdKP2ZFk0r5sIwffAjy1lx+vx7NLjB6/E7Jfv5ERKhzpN0w8IDE8IGFDv5dhz10s7GFiXRZcUeLCEG5P5nDq9k4PFDcoMpE3GY4OuxuCXhmuyNB6k0RsLIAvqp9NE5r8ZCSS8gxnUp7ODdYhZTqxuiJ9uyJJtPmpqJ7wVj+XVieS903iViHziqAhchLEJAyb7jWU647EpUofQ0ziUuXXXhDddtlllSwjgSQu7r4BRWhQqfDPMVwAAAAASUVORK5CYII=",ee="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkBAMAAACCzIhnAAAAElBMVEVRUVFHcExTU1NRUVFRUVFRUVFOSlSUAAAABnRSTlP/AI6+VySB3ZENAAACcElEQVRYw+2YyYKCMAyGI8hdpdxdZu7g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TKRMgYYillImQMMZQyFTKB2EmZCplAuFLIHT8TMoWwpQwiIVMIUwqpZP5bp5CCvCTiQKr5f5lCQN+tPCBn2ZvVDFJwIDUP0m1BYAfZYRNSsCB7BqTbhoARePIxtZ9tgwWkoJcwCalmv3MBAemtO4R6dah2HaKQqj8Zvp9sQDjvJ21+SPCBHPJDDk6QITekEV7gqCC19CpKAym9IMfckKv4olMBCeIrWwVEfvkshzQekO9r9P1/ALk+IG1eSPCDiCJfyG+FyU+A6ZCa/piZDinpz7LpkCv5gdkAEshP5emQhv7onw6pGeULyZCSUYiRDAmMkpJkCKs4JhFSq8p8hJBSVbAkhARV6ZUQoisik0FqXTmcDHLVFfbJIEFXoiiCNMpiSxGkVJaNiiBBWQArgTTaUl4JpNQWJUsgQVteXQg+AKkLxQWFGKW+5J2+eVp4S168X3CF1CltCKdTJ8lb84YK2bUBO+wZW0Pqv9nk4tKu49N45NJC5dMM5tLW5tOg59Jq6NM06dL+abFXwr/RkuvTXJwae1abtE/Dt0/ruksTvs84AZ/BCC4jHnyGVfiM3VBQFANEXEah+Ax18RlP4zNox2dkkM/wI58xTn8yDCXGYCDV3W5RGSajtXyGhG1jbpbjzpwGt/0MJft8jqC7iUbQ/QZaxdnKqcIftwAAAABJRU5ErkJggg==";const se=Z({name:"z-paging-empty-view",data:()=>({}),props:{emptyViewText:{type:String,default:"没有数据哦~"},emptyViewImg:{type:String,default:""},showEmptyViewReload:{type:Boolean,default:!1},emptyViewReloadText:{type:String,default:"重新加载"},isLoadFailed:{type:Boolean,default:!1},emptyViewStyle:{type:Object,default:function(){return{}}},emptyViewImgStyle:{type:Object,default:function(){return{}}},emptyViewTitleStyle:{type:Object,default:function(){return{}}},emptyViewReloadStyle:{type:Object,default:function(){return{}}},emptyViewZIndex:{type:Number,default:9},emptyViewFixed:{type:Boolean,default:!0}},computed:{emptyImg(){return this.isLoadFailed?oe:ie},finalEmptyViewStyle(){return this.emptyViewStyle["z-index"]=this.emptyViewZIndex,this.emptyViewStyle}},methods:{reloadClick(){this.$emit("reload")},emptyViewClick(){this.$emit("viewClick")}}},[["render",function(u,p,f,m,T,y){const S=d,w=c,R=g;return e(),t(R,{class:h({"zp-container":!0,"zp-container-fixed":f.emptyViewFixed}),style:a([y.finalEmptyViewStyle]),onClick:y.emptyViewClick},{default:i((()=>[o(R,{class:"zp-main"},{default:i((()=>[f.emptyViewImg.length?(e(),t(S,{key:1,class:"zp-main-image",mode:"aspectFit",style:a([f.emptyViewImgStyle]),src:f.emptyViewImg},null,8,["style","src"])):(e(),t(S,{key:0,class:"zp-main-image",style:a([f.emptyViewImgStyle]),src:y.emptyImg},null,8,["style","src"])),o(w,{class:"zp-main-title",style:a([f.emptyViewTitleStyle])},{default:i((()=>[s(r(f.emptyViewText),1)])),_:1},8,["style"]),f.showEmptyViewReload?(e(),t(w,{key:2,class:"zp-main-error-btn",style:a([f.emptyViewReloadStyle]),onClick:l(y.reloadClick,["stop"])},{default:i((()=>[s(r(f.emptyViewReloadText),1)])),_:1},8,["style","onClick"])):n("v-if",!0)])),_:1})])),_:1},8,["class","style","onClick"])}],["__scopeId","data-v-3823d26e"]]),re="2.5.3",le=100,ne="z-paging-error-emit",he="z-paging-complete-emit",de="z-paging-cache",ce="zp_index",ge="zp_unique_index";let ue=null,pe=!1;const fe="Z-PAGING-CONFIG-STORAGE-KEY";const me={setConfig:function(e){u(fe,e)},getConfig:function(){return pe||(ue=p(fe),pe=!0),ue}},Te={},ye="Z-PAGING-REFRESHER-TIME-STORAGE-KEY";let Se=null;function we(){return p(ye)}function Re(){return(new Date).getTime()}function Ce(e){return 1===(e=e.toString()).length?"0"+e:e}const Ae={gc:function(e,t){if(!Se)if(Te&&Object.keys(Te).length)Se=Te;else{const e=me.getConfig();me&&e&&(Se=e)}if(!Se)return t;const i=Se[function(e){return e.replace(/([A-Z])/g,"-$1").toLowerCase()}(e)];return void 0===i?t:i},setRefesrherTime:function(e,t){const i=we()||{};i[t]=e,u(ye,i)},getRefesrherFormatTimeByKey:function(e,t){const i=function(e){const t=we();return t&&t[e]?t[e]:null}(e),o=i?function(e,t){const i=new Date(e),o=new Date,a=new Date(e).setHours(0,0,0,0),s=(new Date).setHours(0,0,0,0),r=a-s;let l="";const n=function(e){const t=e.getHours(),i=e.getMinutes();return`${Ce(t)}:${Ce(i)}`}(i);l=0===r?t.today:-864e5===r?t.yesterday:function(e,t=!0){const i=e.getFullYear(),o=e.getMonth()+1,a=e.getDate();return t?`${i}-${Ce(o)}-${Ce(a)}`:`${Ce(o)}-${Ce(a)}`}(i,i.getFullYear()!==o.getFullYear());return`${l} ${n}`}(i,t):t.none;return`${t.title}${o}`},getTouch:function(e){let t=null;if(e.touches&&e.touches.length)t=e.touches[0];else if(e.changedTouches&&e.changedTouches.length)t=e.changedTouches[0];else{if(!e.datail||e.datail=={})return{touchX:0,touchY:0};t=e.datail}return{touchX:t.clientX,touchY:t.clientY}},getTouchFromZPaging:function e(t){if(t&&t.tagName&&"BODY"!==t.tagName&&"UNI-PAGE-BODY"!==t.tagName){const i=t.classList;return i&&i.contains("z-paging-content")?{isFromZp:!0,isPageScroll:i.contains("z-paging-content-page"),isReachedTop:i.contains("z-paging-reached-top")}:e(t.parentNode)}return{isFromZp:!1}},getParent:function e(t){return t?t.$refs.paging?t:e(t.$parent):null},convertToPx:function(e){if("[object Number]"===Object.prototype.toString.call(e))return e;let t=!1;return-1!==e.indexOf("rpx")||-1!==e.indexOf("upx")?(e=e.replace("rpx","").replace("upx",""),t=!0):-1!==e.indexOf("px")&&(e=e.replace("px","")),isNaN(e)?0:Number(t?f(e):e)},getTime:Re,getInstanceId:function(){const e=[];for(let t=0;t<10;t++)e[t]="0123456789abcdef".substr(Math.floor(16*Math.random()),1);return e.join("")+Re()},consoleErr:function(e){console.error(`[z-paging]${e}`)}},xe={LoadingType:{Refresher:0,LoadingMore:1},Refresher:{Default:0,ReleaseToRefresh:1,Loading:2,Complete:3},More:{Default:0,Loading:1,NoMore:2,Fail:3},QueryFrom:{UserPullDown:0,Reload:1,Refresh:2,LoadingMore:3},CellHeightMode:{Fixed:"fixed",Dynamic:"dynamic"},CacheMode:{Default:"default",Always:"always"}};const Me=Z({name:"z-paging-refresh",data:()=>({R:xe.Refresher,isIos:"ios"===m().platform,refresherTimeText:"",zTheme:{title:{white:"#efefef",black:"#555555"},arrow:{white:$,black:Y},flower:{white:X,black:q},success:{white:te,black:ee},indicator:{white:"#eeeeee",black:"#777777"}}}),props:["status","defaultThemeStyle","defaultText","pullingText","refreshingText","completeText","defaultImg","pullingImg","refreshingImg","completeImg","showUpdateTime","updateTimeKey","imgStyle","titleStyle","updateTimeStyle","updateTimeTextMap"],computed:{ts(){return this.defaultThemeStyle},statusTextArr(){return this.updateTime(),[this.defaultText,this.pullingText,this.refreshingText,this.completeText]},currentTitle(){return this.statusTextArr[this.status]||this.defaultText},leftImageClass(){return this.status===this.R.Complete?"zp-r-left-image-pre-size":"zp-r-left-image zp-r-left-image-pre-size "+(this.status===this.R.Default?"zp-r-arrow-down":"zp-r-arrow-top")},leftImageStyle(){const e=this.showUpdateTime,t=e?"36rpx":"30rpx";return{width:t,height:t,"margin-right":e?"20rpx":"9rpx"}},leftImageSrc(){const e=this.R,t=this.status;return t===e.Default?this.defaultImg?this.defaultImg:this.zTheme.arrow[this.ts]:t===e.ReleaseToRefresh?this.pullingImg?this.pullingImg:this.defaultImg?this.defaultImg:this.zTheme.arrow[this.ts]:t===e.Loading?this.refreshingImg?this.refreshingImg:this.zTheme.flower[this.ts]:t===e.Complete?this.completeImg?this.completeImg:this.zTheme.success[this.ts]:""},rightTextStyle(){let e={};return e.color=this.zTheme.title[this.ts],e}},methods:{updateTime(){this.showUpdateTime&&(this.refresherTimeText=Ae.getRefesrherFormatTimeByKey(this.updateTimeKey,this.updateTimeTextMap))}}},[["render",function(l,u,p,f,m,T){const y=d,S=g,w=c;return e(),t(S,{style:{height:"100%"}},{default:i((()=>[o(S,{class:h(p.showUpdateTime?"zp-r-container zp-r-container-padding":"zp-r-container")},{default:i((()=>[o(S,{class:"zp-r-left"},{default:i((()=>[p.status!==m.R.Loading?(e(),t(y,{key:0,class:h(T.leftImageClass),style:a([T.leftImageStyle,p.imgStyle]),src:T.leftImageSrc},null,8,["class","style","src"])):(e(),t(y,{key:1,class:"zp-line-loading-image zp-r-left-image",style:a([T.leftImageStyle,p.imgStyle]),src:T.leftImageSrc},null,8,["style","src"]))])),_:1}),o(S,{class:"zp-r-right"},{default:i((()=>[o(w,{class:"zp-r-right-text",style:a([T.rightTextStyle,p.titleStyle])},{default:i((()=>[s(r(T.currentTitle),1)])),_:1},8,["style"]),p.showUpdateTime&&m.refresherTimeText.length?(e(),t(w,{key:0,class:"zp-r-right-text zp-r-right-time-text",style:a([T.rightTextStyle,p.updateTimeStyle])},{default:i((()=>[s(r(m.refresherTimeText),1)])),_:1},8,["style"])):n("v-if",!0)])),_:1})])),_:1},8,["class"])])),_:1})}],["__scopeId","data-v-cb9bc3be"]]);const Ie=Z({name:"z-paging-load-more",data:()=>({M:xe.More,zTheme:{title:{white:"#efefef",black:"#a4a4a4"},line:{white:"#efefef",black:"#eeeeee"},circleBorder:{white:"#aaaaaa",black:"#c8c8c8"},circleBorderTop:{white:"#ffffff",black:"#444444"},flower:{white:X,black:q},indicator:{white:"#eeeeee",black:"#777777"}}}),props:["zConfig"],computed:{ts(){return this.c.defaultThemeStyle},c(){return this.zConfig},ownLoadingMoreText(){return[this.c.defaultText,this.c.loadingText,this.c.noMoreText,this.c.failText][this.finalStatus]},finalStatus(){return this.c.defaultAsLoading&&this.c.status===this.M.Default?this.M.Loading:this.c.status},finalLoadingIconType(){return this.c.loadingIconType}},methods:{doClick(){this.$emit("doClick")}}},[["render",function(l,u,p,f,m,S){const w=c,R=d,C=g;return e(),t(C,{class:"zp-l-container",style:a([S.c.customStyle]),onClick:S.doClick},{default:i((()=>[S.c.hideContent?n("v-if",!0):(e(),T(y,{key:0},[S.c.showNoMoreLine&&S.finalStatus===m.M.NoMore?(e(),t(w,{key:0,class:"zp-l-line",style:a([{backgroundColor:m.zTheme.line[S.ts]},S.c.noMoreLineCustomStyle])},null,8,["style"])):n("v-if",!0),S.finalStatus===m.M.Loading&&S.c.loadingIconCustomImage?(e(),t(R,{key:1,src:S.c.loadingIconCustomImage,style:a([S.c.iconCustomStyle]),class:h({"zp-l-line-loading-custom-image":!0,"zp-l-line-loading-custom-image-animated":S.c.loadingAnimated})},null,8,["src","style","class"])):n("v-if",!0),S.finalStatus!==m.M.Loading||"flower"!==S.finalLoadingIconType||S.c.loadingIconCustomImage.length?n("v-if",!0):(e(),t(R,{key:2,class:"zp-line-loading-image",style:a([S.c.iconCustomStyle]),src:m.zTheme.flower[S.ts]},null,8,["style","src"])),S.finalStatus!==m.M.Loading||"circle"!==S.finalLoadingIconType||S.c.loadingIconCustomImage.length?n("v-if",!0):(e(),t(w,{key:3,class:"zp-l-circle-loading-view",style:a([{borderColor:m.zTheme.circleBorder[S.ts],borderTopColor:m.zTheme.circleBorderTop[S.ts]},S.c.iconCustomStyle])},null,8,["style"])),o(w,{class:"zp-l-text",style:a([{color:m.zTheme.title[S.ts]},S.c.titleCustomStyle])},{default:i((()=>[s(r(S.ownLoadingMoreText),1)])),_:1},8,["style"]),S.c.showNoMoreLine&&S.finalStatus===m.M.NoMore?(e(),t(w,{key:4,class:"zp-l-line",style:a([{backgroundColor:m.zTheme.line[S.ts]},S.c.noMoreLineCustomStyle])},null,8,["style"])):n("v-if",!0)],64))])),_:1},8,["style","onClick"])}],["__scopeId","data-v-661f8591"]]);function Le(){return S()}const ve={handleQuery:function(e){try{setTimeout((function(){Le().globalData.zp_handleQueryCallback=e}),1)}catch(t){}},_handleQuery:function(e,t,i){const o=Le().globalData.zp_handleQueryCallback;return o?o(e,t,i):[e,t,i]},handleLanguage2Local:function(e){try{setTimeout((function(){Le().globalData.zp_handleLanguage2LocalCallback=e}),1)}catch(t){}},_handleLanguage2Local:function(e,t){const i=Le().globalData.zp_handleLanguage2LocalCallback;return i?i(e,t):t}},be={props:{defaultPageNo:{type:[Number,String],default:Ae.gc("defaultPageNo",1),observer:function(e){this.pageNo=e}},defaultPageSize:{type:[Number,String],default:Ae.gc("defaultPageSize",10),validator:e=>(e<=0&&Ae.consoleErr("default-page-size必须大于0"),e>0)},dataKey:{type:[Number,String,Object],default:function(){return Ae.gc("dataKey",null)}},useCache:{type:Boolean,default:Ae.gc("useCache",!1)},cacheKey:{type:String,default:Ae.gc("cacheKey",null)},cacheMode:{type:String,default:Ae.gc("cacheMode",xe.CacheMode.Default)},autowireListName:{type:String,default:Ae.gc("autowireListName","")},autowireQueryName:{type:String,default:Ae.gc("autowireQueryName","")},auto:{type:Boolean,default:Ae.gc("auto",!0)},reloadWhenRefresh:{type:Boolean,default:Ae.gc("reloadWhenRefresh",!0)},autoScrollToTopWhenReload:{type:Boolean,default:Ae.gc("autoScrollToTopWhenReload",!0)},autoCleanListWhenReload:{type:Boolean,default:Ae.gc("autoCleanListWhenReload",!0)},showRefresherWhenReload:{type:Boolean,default:Ae.gc("showRefresherWhenReload",!1)},showLoadingMoreWhenReload:{type:Boolean,default:Ae.gc("showLoadingMoreWhenReload",!1)},createdReload:{type:Boolean,default:Ae.gc("createdReload",!1)},localPagingLoadingTime:{type:[Number,String],default:Ae.gc("localPagingLoadingTime",200)},useChatRecordMode:{type:Boolean,default:Ae.gc("useChatRecordMode",!1)},autoHideKeyboardWhenChat:{type:Boolean,default:Ae.gc("autoHideKeyboardWhenChat",!0)},concat:{type:Boolean,default:Ae.gc("concat",!0)},value:{type:Array,default:function(){return[]}},modelValue:{type:Array,default:function(){return[]}}},data:()=>({currentData:[],totalData:[],realTotalData:[],totalLocalPagingList:[],dataPromiseResultMap:{reload:null,complete:null,localPaging:null},isSettingCacheList:!1,pageNo:1,currentRefreshPageSize:0,isLocalPaging:!1,isAddedData:!1,isTotalChangeFromAddData:!1,privateConcat:!0,myParentQuery:-1,firstPageLoaded:!1,pagingLoaded:!1,loaded:!1,isUserReload:!0,fromEmptyViewReload:!1,queryFrom:"",listRendering:!1,listRenderingTimeout:null}),computed:{pageSize(){return this.defaultPageSize},finalConcat(){return this.concat&&this.privateConcat},finalUseCache(){return this.useCache&&!this.cacheKey&&Ae.consoleErr("use-cache为true时必须设置cache-key否则缓存无效"),this.useCache&&!!this.cacheKey},finalCacheKey(){return this.cacheKey?`${de}-${this.cacheKey}`:null},isFirstPage(){return this.pageNo===this.defaultPageNo}},watch:{totalData(e,t){this._totalDataChange(e,t)},currentData(e,t){this._currentDataChange(e,t)},useChatRecordMode(e,t){e&&(this.nLoadingMoreFixedHeight=!1)},value:{handler(e){this.realTotalData=e},immediate:!0},modelValue:{handler(e){this.realTotalData=e},immediate:!0}},methods:{complete(e,t=!0){return this.customNoMore=-1,this.addData(e,t)},completeByKey(e,t=null,i=!0){return null!==t&&null!==this.dataKey&&t!==this.dataKey?(this.isFirstPage&&this.endRefresh(),new Promise((e=>e()))):(this.customNoMore=-1,this.addData(e,i))},completeByTotal(e,t,i=!0){if("undefined"==t)this.customNoMore=-1;else{const o=this._checkDataType(e,i,!1);if(e=o.data,i=o.success,t>=0&&i)return new Promise(((o,a)=>{this.$nextTick((()=>{let s=!1,r=this.realTotalData.length;this.pageNo==this.defaultPageNo&&(r=0);let l=r+(this.privateConcat?e.length:0)-t;l>=0&&(s=!0,l=this.defaultPageSize-l,l>0&&l<e.length&&this.privateConcat&&(e=e.splice(0,l))),this.completeByNoMore(e,s,i).then((e=>o(e))).catch((()=>a()))}))}))}return this.addData(e,i)},completeByNoMore(e,t,i=!0){return"undefined"!=t&&(this.customNoMore=1==t?1:0),this.addData(e,i)},addData(e,t=!0){this.fromCompleteEmit||(this.disabledCompleteEmit=!0,this.fromCompleteEmit=!1);const i=Ae.getTime()-this.requestTimeStamp;let o=this.minDelay;this.isFirstPage&&this.finalShowRefresherWhenReload&&(o=Math.max(400,o));const a=this.requestTimeStamp>0&&i<o?o-i:0;return this.$nextTick((()=>{setTimeout((()=>{this._addData(e,t,!1)}),this.delay>0?this.delay:a)})),new Promise(((e,t)=>{this.dataPromiseResultMap.complete={resolve:e,reject:t}}))},addDataFromTop(e,t=!0,i=!0){"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),this.totalData=[...e,...this.totalData],t&&setTimeout((()=>{this._scrollToTop(i)}),le)},resetTotalData(e){this.isTotalChangeFromAddData=!0,"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),this.totalData=e},addChatRecordData(e,t=!0,i=!0){"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),this.useChatRecordMode&&(this.isTotalChangeFromAddData=!0,this.totalData=[...this.totalData,...e],t&&setTimeout((()=>{this._scrollToBottom(i)}),le))},setLocalPaging(e,t=!0){return this.isLocalPaging=!0,this.$nextTick((()=>{this._addData(e,t,!0)})),new Promise(((e,t)=>{this.dataPromiseResultMap.localPaging={resolve:e,reject:t}}))},reload(e=this.showRefresherWhenReload){return e&&(this.privateShowRefresherWhenReload=e,this.isUserPullDown=!0),this.listRendering=!0,this.$nextTick((()=>{this._preReload(e,!1)})),new Promise(((e,t)=>{this.dataPromiseResultMap.reload={resolve:e,reject:t}}))},refresh(){if(!this.realTotalData.length)return this.reload();const e=this.pageNo-this.defaultPageNo+1;if(e>=1){this.loading=!0,this.privateConcat=!1;const t=e*this.pageSize;this.currentRefreshPageSize=t,this._emitQuery(this.defaultPageNo,t,xe.QueryFrom.Refresh),this._callMyParentQuery(this.defaultPageNo,t)}return new Promise(((e,t)=>{this.dataPromiseResultMap.reload={resolve:e,reject:t}}))},updateCache(){this.finalUseCache&&this.totalData.length&&this._saveLocalCache(this.totalData.slice(0,Math.min(this.totalData.length,this.pageSize)))},clean(){this._reload(!0),this._addData([],!0,!1)},clear(){this.clean()},doChatRecordLoadMore(){this.useChatRecordMode&&this._onLoadingMore("click")},_preReload(e=this.showRefresherWhenReload,t=!0){this.isUserReload=!0,this.loadingType=xe.LoadingType.Refresher,e?(this.privateShowRefresherWhenReload=e,this.useCustomRefresher?this._doRefresherRefreshAnimate():this.refresherTriggered=!0):this._refresherEnd(!1,!1,!1,!1),this._reload(!1,t)},_reload(e=!1,t=!1,i=!1){if(this.isAddedData=!1,this.insideOfPaging=-1,this.cacheScrollNodeHeight=-1,this.pageNo=this.defaultPageNo,this._cleanRefresherEndTimeout(),!this.privateShowRefresherWhenReload&&!e&&this._startLoading(!0),this.firstPageLoaded=!0,this.isTotalChangeFromAddData=!1,this.isSettingCacheList||(this.totalData=[]),!e){this._emitQuery(this.pageNo,this.defaultPageSize,i?xe.QueryFrom.UserPullDown:xe.QueryFrom.Reload),setTimeout((()=>{this._callMyParentQuery()}),0),!t&&this.autoScrollToTopWhenReload&&this._scrollToTop(!1)}this.$nextTick((()=>{}))},_addData(e,t,i){this.isAddedData=!0,this.fromEmptyViewReload=!1,this.isTotalChangeFromAddData=!0,this.refresherTriggered=!1,this._endSystemLoadingAndRefresh();const o=this.isUserPullDown;this.showRefresherUpdateTime&&this.isFirstPage&&(Ae.setRefesrherTime(Ae.getTime(),this.refresherUpdateTimeKey),this.$refs.refresh&&this.$refs.refresh.updateTime()),!i&&o&&this.isFirstPage&&(this.isUserPullDown=!1);let a=this._checkDataType(e,t,i);e=a.data,t=a.success;let s=le;if(this.loadingForNow=!1,setTimeout((()=>{this.pagingLoaded=!0,this.$nextTick((()=>{!i&&this._refresherEnd(s>0,!0,o)}))}),s),this.isFirstPage&&(this.isLoadFailed=!t,this.$emit("isLoadFailedChange",this.isLoadFailed),this.finalUseCache&&t&&(this.cacheMode===xe.CacheMode.Always||this.isSettingCacheList)&&this._saveLocalCache(e)),this.isSettingCacheList=!1,t)if(!1===this.privateConcat&&this.loadingStatus===xe.More.NoMore||(this.loadingStatus=xe.More.Default),i){this.totalLocalPagingList=e;const t=this.defaultPageNo,i=this.queryFrom!==xe.QueryFrom.Refresh?this.defaultPageSize:this.currentRefreshPageSize;this._localPagingQueryList(t,i,0,(e=>{this.completeByTotal(e,this.totalLocalPagingList.length)}))}else{setTimeout((()=>{this._currentDataChange(e,this.currentData),this._callDataPromise(!0,this.totalData)}),0)}else this._currentDataChange(e,this.currentData),this._callDataPromise(!1),this.loadingStatus=xe.More.Fail,this.loadingType===xe.LoadingType.LoadingMore&&this.pageNo--},_totalDataChange(e,t,i=!0){(this.isUserReload&&this.autoCleanListWhenReload||!this.firstPageLoaded||e.length||!t.length)&&(this._doCheckScrollViewShouldFullHeight(e),this.realTotalData.length||e.length||(i=!1),this.realTotalData=e,i&&(this.$emit("input",e),this.$emit("update:modelValue",e),this.$emit("update:list",e),this.$emit("listChange",e),this._callMyParentList(e)),this.firstPageLoaded=!1,this.isTotalChangeFromAddData=!1,this.$nextTick((()=>{setTimeout((()=>{this._getNodeClientRect(".zp-paging-container-content").then((e=>{e&&this.$emit("contentHeightChanged",e[0].height)}))}),this.isIos?100:300)})))},_currentDataChange(e,t){if(e=[...e],this.isFirstPage?this.listRendering=!1:(this.listRendering=!0,this.listRenderingTimeout&&clearTimeout(this.listRenderingTimeout),this.$nextTick((()=>{this.listRenderingTimeout=setTimeout((()=>{this.listRendering=!1}),le)}))),this.finalUseVirtualList&&this._setCellIndex(e,0===this.totalData.length),this.useChatRecordMode&&e.reverse(),this.isFirstPage&&this.finalConcat&&(this.totalData=[]),-1!==this.customNoMore?1!==this.customNoMore&&e.length||(this.loadingStatus=xe.More.NoMore):(!e.length||e.length&&e.length<this.defaultPageSize)&&(this.loadingStatus=xe.More.NoMore),this.totalData.length)if(this.useChatRecordMode){const t=e.length;let i=`z-paging-${t}`;this.totalData=[...e,...this.totalData],this.pageNo!==this.defaultPageNo?(this.privateScrollWithAnimation=0,this.$emit("update:chatIndex",t),setTimeout((()=>{this._scrollIntoView(i,30+Math.max(0,this.cacheTopHeight),!1,(()=>{this.$emit("update:chatIndex",0)}))}),this.usePageScroll?this.isIos?50:100:200)):this.$nextTick((()=>{this._scrollToBottom(!1)}))}else this.finalConcat?(this.oldScrollTop,this.totalData=[...this.totalData,...e]):this.totalData=e;else this.finalConcat&&(this.totalData=e),this.useChatRecordMode&&this.$nextTick((()=>{this._scrollToBottom(!1)}));this.privateConcat=!0},_localPagingQueryList(e,t,i,o){e=Math.max(1,e),t=Math.max(1,t);const a=[...this.totalLocalPagingList],s=(e-1)*t,r=Math.min(a.length,s+t),l=a.splice(s,r-s);setTimeout((()=>o(l)),i)},_saveLocalCache(e){u(this.finalCacheKey,e)},_setListByLocalCache(){this.totalData=p(this.finalCacheKey)||[],this.isSettingCacheList=!0},_callMyParentList(e){if(this.autowireListName.length){const t=Ae.getParent(this.$parent);t&&t[this.autowireListName]&&(t[this.autowireListName]=e)}},_callMyParentQuery(e=0,t=0){if(this.autowireQueryName){if(-1===this.myParentQuery){const e=Ae.getParent(this.$parent);e&&e[this.autowireQueryName]&&(this.myParentQuery=e[this.autowireQueryName])}-1!==this.myParentQuery&&(t>0?this.myParentQuery(e,t):this.myParentQuery(this.pageNo,this.defaultPageSize))}},_emitQuery(e,t,i){this.queryFrom=i,this.requestTimeStamp=Ae.getTime(),this.$emit("query",...ve._handleQuery(e,t,i))},_callDataPromise(e,t){for(const i in this.dataPromiseResultMap){const o=this.dataPromiseResultMap[i];e?o&&o.resolve({totalList:t,noMore:this.loadingStatus===xe.More.NoMore}):o&&o.reject()}},_checkDataType(e,t,i){const o=Object.prototype.toString.call(e);return"[object Boolean]"===o?(t=e,e=[]):"[object Null]"===o?e=[]:"[object Array]"!==o&&(e=[],"[object Undefined]"!==o&&Ae.consoleErr((i?"setLocalPaging":"complete")+"参数类型不正确第一个参数类型必须为Array!")),{data:e,success:t}}}},ke={en:{"zp.refresher.default":"Pull down to refresh","zp.refresher.pulling":"Release to refresh","zp.refresher.refreshing":"Refreshing...","zp.refresher.complete":"Refresh succeeded","zp.loadingMore.default":"Click to load more","zp.loadingMore.loading":"Loading...","zp.loadingMore.noMore":"No more data","zp.loadingMore.fail":"Load failed,click to reload","zp.emptyView.title":"No data","zp.emptyView.reload":"Reload","zp.emptyView.error":"Sorry,load failed","zp.refresherUpdateTime.title":"Last update: ","zp.refresherUpdateTime.none":"None","zp.refresherUpdateTime.today":"Today","zp.refresherUpdateTime.yesterday":"Yesterday","zp.systemLoading.title":"Loading..."},"zh-Hans":{"zp.refresher.default":"继续下拉刷新","zp.refresher.pulling":"松开立即刷新","zp.refresher.refreshing":"正在刷新...","zp.refresher.complete":"刷新成功","zp.loadingMore.default":"点击加载更多","zp.loadingMore.loading":"正在加载...","zp.loadingMore.noMore":"没有更多了","zp.loadingMore.fail":"加载失败,点击重新加载","zp.emptyView.title":"没有数据哦~","zp.emptyView.reload":"重新加载","zp.emptyView.error":"很抱歉,加载失败","zp.refresherUpdateTime.title":"最后更新:","zp.refresherUpdateTime.none":"无","zp.refresherUpdateTime.today":"今天","zp.refresherUpdateTime.yesterday":"昨天","zp.systemLoading.title":"加载中..."},"zh-Hant":{"zp.refresher.default":"繼續下拉重繪","zp.refresher.pulling":"鬆開立即重繪","zp.refresher.refreshing":"正在重繪...","zp.refresher.complete":"重繪成功","zp.loadingMore.default":"點擊加載更多","zp.loadingMore.loading":"正在加載...","zp.loadingMore.noMore":"沒有更多了","zp.loadingMore.fail":"加載失敗,點擊重新加載","zp.emptyView.title":"沒有數據哦~","zp.emptyView.reload":"重新加載","zp.emptyView.error":"很抱歉,加載失敗","zp.refresherUpdateTime.title":"最後更新:","zp.refresherUpdateTime.none":"無","zp.refresherUpdateTime.today":"今天","zp.refresherUpdateTime.yesterday":"昨天","zp.systemLoading.title":"加載中..."}},{t:Be}=w(ke),Pe={data:()=>({language:m().language}),computed:{finalLanguage(){try{const e=R(),t=this.language;return"auto"===e?ve._handleLanguage2Local(t,this._language2Local(t)):e}catch(e){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:()=>({title:Be("zp.refresherUpdateTime.title"),none:Be("zp.refresherUpdateTime.none"),today:Be("zp.refresherUpdateTime.today"),yesterday:Be("zp.refresherUpdateTime.yesterday")}),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._getI18nText("zp.emptyView.error",this.emptyViewErrorText)},finalSystemLoadingText(){return this._getI18nText("zp.systemLoading.title",this.systemLoadingText)}},methods:{getLanguage(){return this.finalLanguage},_getI18nText(e,t){const i=Object.prototype.toString.call(t);if("[object Object]"===i){const e=t[this.finalLanguage];if(e)return e}else if("[object String]"===i)return t;return Be(e)},_language2Local(e){const t=e.toLowerCase().replace(new RegExp("_",""),"-");return-1!==t.indexOf("zh")?"zh"===t||"zh-cn"===t||-1!==t.indexOf("zh-hans")?"zh-Hans":"zh-Hant":-1!==t.indexOf("en")?"en":e}}},De={props:{},data:()=>({nRefresherLoading:!1,nListIsDragging:!1,nShowBottom:!0,nFixFreezing:!1,nShowRefresherReveal:!1,nIsFirstPageAndNoMore:!1,nFirstPageAndNoMoreChecked:!1,nLoadingMoreFixedHeight:!1,nShowRefresherRevealHeight:0,nOldShowRefresherRevealHeight:-1,nRefresherWidth:f(750)}),watch:{nIsFirstPageAndNoMore:{handler(e){const t=!this.useChatRecordMode||e?{}:{transform:"rotate(180deg)"};this.$emit("update:cellStyle",t),this.$emit("cellStyleChange",t)},immediate:!0}},computed:{},mounted(){},methods:{}},Ve={props:{hideEmptyView:{type:Boolean,default:Ae.gc("hideEmptyView",!1)},emptyViewText:{type:[String,Object],default:Ae.gc("emptyViewText",null)},showEmptyViewReload:{type:Boolean,default:Ae.gc("showEmptyViewReload",!1)},showEmptyViewReloadWhenError:{type:Boolean,default:Ae.gc("showEmptyViewReloadWhenError",!0)},emptyViewReloadText:{type:[String,Object],default:Ae.gc("emptyViewReloadText",null)},emptyViewImg:{type:String,default:Ae.gc("emptyViewImg","")},emptyViewErrorText:{type:[String,Object],default:Ae.gc("emptyViewErrorText",null)},emptyViewErrorImg:{type:String,default:Ae.gc("emptyViewErrorImg","")},emptyViewStyle:{type:Object,default:function(){return Ae.gc("emptyViewStyle",{})}},emptyViewSuperStyle:{type:Object,default:function(){return Ae.gc("emptyViewSuperStyle",{})}},emptyViewImgStyle:{type:Object,default:function(){return Ae.gc("emptyViewImgStyle",{})}},emptyViewTitleStyle:{type:Object,default:function(){return Ae.gc("emptyViewTitleStyle",{})}},emptyViewReloadStyle:{type:Object,default:function(){return Ae.gc("emptyViewReloadStyle",{})}},emptyViewFixed:{type:Boolean,default:Ae.gc("emptyViewFixed",!1)},emptyViewCenter:{type:Boolean,default:Ae.gc("emptyViewCenter",!0)},autoHideEmptyViewWhenLoading:{type:Boolean,default:Ae.gc("autoHideEmptyViewWhenLoading",!0)},autoHideEmptyViewWhenPull:{type:Boolean,default:Ae.gc("autoHideEmptyViewWhenPull",!0)},emptyViewZIndex:{type:Number,default:Ae.gc("emptyViewZIndex",9)}},computed:{finalEmptyViewImg(){return this.isLoadFailed?this.emptyViewErrorImg:this.emptyViewImg},finalShowEmptyViewReload(){return this.isLoadFailed?this.showEmptyViewReloadWhenError:this.showEmptyViewReload},showEmpty(){return!(this.refresherOnly||this.hideEmptyView||this.realTotalData.length)&&(!this.autoHideEmptyViewWhenLoading||(!(!this.isAddedData||this.firstPageLoaded||this.loading)||!this.autoHideEmptyViewWhenPull&&!this.isUserReload))}},methods:{_emptyViewReload(){let e=!1;this.$emit("emptyViewReload",(t=>{void 0!==t&&!0!==t||(this.fromEmptyViewReload=!0,this.reload()),e=!0})),this.$nextTick((()=>{e||(this.fromEmptyViewReload=!0,this.reload())}))},_emptyViewClick(){this.$emit("emptyViewClick")}}},Ee={props:{refresherThemeStyle:{type:String,default:Ae.gc("refresherThemeStyle","")},refresherImgStyle:{type:Object,default:function(){return Ae.gc("refresherImgStyle",{})}},refresherTitleStyle:{type:Object,default:function(){return Ae.gc("refresherTitleStyle",{})}},refresherUpdateTimeStyle:{type:Object,default:function(){return Ae.gc("refresherUpdateTimeStyle",{})}},watchRefresherTouchmove:{type:Boolean,default:Ae.gc("watchRefresherTouchmove",!1)},loadingMoreThemeStyle:{type:String,default:Ae.gc("loadingMoreThemeStyle","")},refresherOnly:{type:Boolean,default:Ae.gc("refresherOnly",!1)},refresherDefaultDuration:{type:[Number,String],default:Ae.gc("refresherDefaultDuration",100)},refresherCompleteDelay:{type:[Number,String],default:Ae.gc("refresherCompleteDelay",0)},refresherCompleteDuration:{type:[Number,String],default:Ae.gc("refresherCompleteDuration",300)},refresherCompleteScrollable:{type:Boolean,default:Ae.gc("refresherCompleteScrollable",!1)},useCustomRefresher:{type:Boolean,default:Ae.gc("useCustomRefresher",!0)},refresherFps:{type:[Number,String],default:Ae.gc("refresherFps",40)},refresherMaxAngle:{type:[Number,String],default:Ae.gc("refresherMaxAngle",40)},refresherAngleEnableChangeContinued:{type:Boolean,default:Ae.gc("refresherAngleEnableChangeContinued",!1)},refresherDefaultText:{type:[String,Object],default:Ae.gc("refresherDefaultText",null)},refresherPullingText:{type:[String,Object],default:Ae.gc("refresherPullingText",null)},refresherRefreshingText:{type:[String,Object],default:Ae.gc("refresherRefreshingText",null)},refresherCompleteText:{type:[String,Object],default:Ae.gc("refresherCompleteText",null)},refresherDefaultImg:{type:String,default:Ae.gc("refresherDefaultImg",null)},refresherPullingImg:{type:String,default:Ae.gc("refresherPullingImg",null)},refresherRefreshingImg:{type:String,default:Ae.gc("refresherRefreshingImg",null)},refresherCompleteImg:{type:String,default:Ae.gc("refresherCompleteImg",null)},refresherEndBounceEnabled:{type:Boolean,default:Ae.gc("refresherEndBounceEnabled",!0)},refresherEnabled:{type:Boolean,default:Ae.gc("refresherEnabled",!0)},refresherThreshold:{type:[Number,String],default:Ae.gc("refresherThreshold","80rpx")},refresherDefaultStyle:{type:String,default:Ae.gc("refresherDefaultStyle","black")},refresherBackground:{type:String,default:Ae.gc("refresherBackground","transparent")},refresherFixedBackground:{type:String,default:Ae.gc("refresherFixedBackground","transparent")},refresherFixedBacHeight:{type:[Number,String],default:Ae.gc("refresherFixedBacHeight",0)},refresherOutRate:{type:Number,default:Ae.gc("refresherOutRate",.65)},refresherPullRate:{type:Number,default:Ae.gc("refresherPullRate",.75)},showRefresherUpdateTime:{type:Boolean,default:Ae.gc("showRefresherUpdateTime",!1)},refresherUpdateTimeKey:{type:String,default:Ae.gc("refresherUpdateTimeKey","default")},refresherVibrate:{type:Boolean,default:Ae.gc("refresherVibrate",!1)}},data:()=>({R:xe.Refresher,refresherStatus:xe.Refresher.Default,refresherTouchstartY:0,lastRefresherTouchmove:null,refresherReachMaxAngle:!0,refresherTransform:"translateY(0px)",refresherTransition:"",finalRefresherDefaultStyle:"black",refresherRevealStackCount:0,refresherCompleteTimeout:null,refresherCompleteSubTimeout:null,refresherEndTimeout:null,isTouchmovingTimeout:null,refresherTriggered:!1,isTouchmoving:!1,isTouchEnded:!1,isUserPullDown:!1,privateRefresherEnabled:-1,privateShowRefresherWhenReload:!1,customRefresherHeight:-1,showCustomRefresher:!1,doRefreshAnimateAfter:!1,isRefresherInComplete:!1,pullDownTimeStamp:0,moveDis:0,oldMoveDis:0,currentDis:0,oldCurrentMoveDis:0,oldRefresherTouchmoveY:0,oldTouchDirection:"",oldPullingDistance:-1}),watch:{refresherDefaultStyle:{handler(e){e.length&&(this.finalRefresherDefaultStyle=e)},immediate:!0},refresherStatus(e){e===xe.Refresher.Loading&&this._cleanRefresherEndTimeout(),this.refresherVibrate&&e===xe.Refresher.ReleaseToRefresh&&this._doVibrateShort(),this.$emit("refresherStatusChange",e),this.$emit("update:refresherStatus",e)}},computed:{pullDownDisTimeStamp(){return 1e3/this.refresherFps},finalRefresherEnabled(){return!this.useChatRecordMode&&(-1===this.privateRefresherEnabled?this.refresherEnabled:1===this.privateRefresherEnabled)},finalRefresherThreshold(){let e=this.refresherThreshold,t=!1;return"80rpx"===e&&(t=!0,this.showRefresherUpdateTime&&(e="120rpx")),t&&this.customRefresherHeight>0?this.customRefresherHeight:Ae.convertToPx(e)},finalRefresherFixedBacHeight(){return Ae.convertToPx(this.refresherFixedBacHeight)},finalRefresherThemeStyle(){return this.refresherThemeStyle.length?this.refresherThemeStyle:this.defaultThemeStyle},finalRefresherOutRate(){let e=this.refresherOutRate;return e=Math.max(0,e),e=Math.min(1,e),e},finalRefresherPullRate(){let e=this.refresherPullRate;return e=Math.max(0,e),e},finalRefresherTransform(){return"translateY(0px)"===this.refresherTransform?"none":this.refresherTransform},finalShowRefresherWhenReload(){return this.showRefresherWhenReload||this.privateShowRefresherWhenReload},finalRefresherTriggered(){return!(!this.finalRefresherEnabled||this.useCustomRefresher)&&this.refresherTriggered},showRefresher(){const e=this.finalRefresherEnabled&&this.useCustomRefresher;return-1===this.customRefresherHeight&&e&&setTimeout((()=>{this.$nextTick((()=>{this._updateCustomRefresherHeight()}))}),le),e},hasTouchmove(){return this.watchRefresherTouchmove}},methods:{endRefresh(){this.totalData=this.realTotalData,this._refresherEnd(),this._endSystemLoadingAndRefresh()},handleRefresherStatusChanged(e){this.refresherStatusChangedFunc=e},_onRefresh(e=!1,t=!0){(!e||this.finalRefresherEnabled&&!this.useCustomRefresher)&&(this.$emit("onRefresh"),this.$emit("Refresh"),this.loading||this.isRefresherInComplete||(this.loadingType=xe.LoadingType.Refresher,this.nShowRefresherReveal||(this.isUserPullDown=t,this.isUserReload=!t,this._startLoading(!0),this.refresherTriggered=!0,this.reloadWhenRefresh&&t&&(this.useChatRecordMode?this._onLoadingMore("click"):this._reload(!1,!1,t)))))},_onRestore(){this.refresherTriggered="restore",this.$emit("onRestore"),this.$emit("Restore")},_handleRefresherTouchstart(e){!this.loading&&this.isTouchEnded&&(this.isTouchmoving=!1),this.loadingType=xe.LoadingType.Refresher,this.isTouchmovingTimeout&&clearTimeout(this.isTouchmovingTimeout),this.isTouchEnded=!1,this.refresherTransition="",this.refresherTouchstartY=e.touchY,this.$emit("refresherTouchstart",this.refresherTouchstartY),this.lastRefresherTouchmove=e,this._cleanRefresherCompleteTimeout(),this._cleanRefresherEndTimeout()},_handleRefresherTouchmove(e,t){this.refresherReachMaxAngle=!0,this.isTouchmovingTimeout&&clearTimeout(this.isTouchmovingTimeout),this.isTouchmoving=!0,this.isTouchEnded=!1,this.refresherStatus=e>=this.finalRefresherThreshold?xe.Refresher.ReleaseToRefresh:this.refresherStatus=xe.Refresher.Default,this.moveDis=e},_handleRefresherTouchend(e){this.isTouchmovingTimeout&&clearTimeout(this.isTouchmovingTimeout),this.refresherReachMaxAngle=!0,this.isTouchEnded=!0;const t=this.finalRefresherThreshold;e>=t&&this.refresherStatus===xe.Refresher.ReleaseToRefresh?(setTimeout((()=>{this._emitTouchmove({pullingDistance:t,dy:this.moveDis-t})}),.1),this.moveDis=t,this.refresherStatus=xe.Refresher.Loading,this._doRefresherLoad()):(this._refresherEnd(),this.isTouchmovingTimeout=setTimeout((()=>{this.isTouchmoving=!1}),this.refresherDefaultDuration)),this.scrollEnable=!0,this.$emit("refresherTouchend",e)},_handleListTouchstart(){this.useChatRecordMode&&this.autoHideKeyboardWhenChat&&(C(),this.$emit("hidedKeyboard"))},_handleScrollViewDisableBounce({bounce:e}){this.usePageScroll||this.scrollToTopBounceEnabled||(this.refresherTransition="",this.scrollEnable=e)},_handleWxsPullingDownStatusChange(e){this.wxsOnPullingDown=e,e&&!this.useChatRecordMode&&(this.renderPropScrollTop=0)},_handleWxsPullingDown({moveDis:e,diffDis:t}){this._emitTouchmove({pullingDistance:e,dy:t})},_handleTouchDirectionChange({direction:e}){this.$emit("touchDirectionChange",e)},_handlePropUpdate(){this.wxsPropType=Ae.getTime().toString()},_refresherEnd(e=!0,t=!1,i=!1,o=!0){if(this.loadingType===xe.LoadingType.Refresher){const e=t&&(i||this.showRefresherWhenReload)?this.refresherCompleteDelay:0,o=e>0?xe.Refresher.Complete:xe.Refresher.Default;if(this.finalShowRefresherWhenReload){const e=this.refresherRevealStackCount;if(this.refresherRevealStackCount--,e>1)return}this._cleanRefresherEndTimeout(),this.refresherEndTimeout=setTimeout((()=>{this.refresherStatus=o}),this.refresherStatus!==xe.Refresher.Default&&o===xe.Refresher.Default?this.refresherCompleteDuration:0),e>0&&(this.isRefresherInComplete=!0),this._cleanRefresherCompleteTimeout(),this.refresherCompleteTimeout=setTimeout((()=>{let e=1;const i=this.refresherEndBounceEnabled&&t?"cubic-bezier(0.19,1.64,0.42,0.72)":"linear";t&&(e=this.refresherEndBounceEnabled?this.refresherCompleteDuration/1e3:this.refresherCompleteDuration/3e3),this.refresherTransition=`transform ${t?e:this.refresherDefaultDuration/1e3}s ${i}`,this.wxsPropType=this.refresherTransition+"end"+Ae.getTime(),this.moveDis=0,o===xe.Refresher.Complete&&(this.refresherCompleteSubTimeout&&(clearTimeout(this.refresherCompleteSubTimeout),this.refresherCompleteSubTimeout=null),this.refresherCompleteSubTimeout=setTimeout((()=>{this.$nextTick((()=>{this.refresherStatus=xe.Refresher.Default,this.isRefresherInComplete=!1}))}),800*e)),this._emitTouchmove({pullingDistance:0,dy:this.moveDis})}),e)}o&&(setTimeout((()=>{this.loading=!1}),e?le:0),i&&this._onRestore())},_doRefresherRefreshAnimate(){this._cleanRefresherCompleteTimeout();!this.doRefreshAnimateAfter&&this.finalShowRefresherWhenReload&&-1===this.customRefresherHeight&&"80rpx"===this.refresherThreshold?this.doRefreshAnimateAfter=!0:(this.refresherRevealStackCount++,this.wxsPropType="begin"+Ae.getTime(),this.moveDis=this.finalRefresherThreshold,this.refresherStatus=xe.Refresher.Loading,this.isTouchmoving=!0,this.isTouchmovingTimeout&&clearTimeout(this.isTouchmovingTimeout),this._doRefresherLoad(!1))},_doRefresherLoad(e=!0){this._onRefresh(!1,e),this.loading=!0},_updateCustomRefresherHeight(){this._getNodeClientRect(".zp-custom-refresher-slot-view").then((e=>{this.customRefresherHeight=e?e[0].height:0,this.showCustomRefresher=this.customRefresherHeight>0,this.doRefreshAnimateAfter&&(this.doRefreshAnimateAfter=!1,this._doRefresherRefreshAnimate())}))},_emitTouchmove(e){e.viewHeight=this.finalRefresherThreshold,e.rate=e.viewHeight>0?e.pullingDistance/e.viewHeight:0,this.hasTouchmove&&this.oldPullingDistance!==e.pullingDistance&&this.$emit("refresherTouchmove",e),this.oldPullingDistance=e.pullingDistance},_cleanRefresherCompleteTimeout(){this.refresherCompleteTimeout=this._cleanTimeout(this.refresherCompleteTimeout)},_cleanRefresherEndTimeout(){this.refresherEndTimeout=this._cleanTimeout(this.refresherEndTimeout)}}},ze={props:{loadingMoreCustomStyle:{type:Object,default:function(){return Ae.gc("loadingMoreCustomStyle",{})}},loadingMoreTitleCustomStyle:{type:Object,default:function(){return Ae.gc("loadingMoreTitleCustomStyle",{})}},loadingMoreLoadingIconCustomStyle:{type:Object,default:function(){return Ae.gc("loadingMoreLoadingIconCustomStyle",{})}},loadingMoreLoadingIconType:{type:String,default:Ae.gc("loadingMoreLoadingIconType","flower")},loadingMoreLoadingIconCustomImage:{type:String,default:Ae.gc("loadingMoreLoadingIconCustomImage","")},loadingMoreLoadingAnimated:{type:Boolean,default:Ae.gc("loadingMoreLoadingAnimated",!0)},loadingMoreEnabled:{type:Boolean,default:Ae.gc("loadingMoreEnabled",!0)},toBottomLoadingMoreEnabled:{type:Boolean,default:Ae.gc("toBottomLoadingMoreEnabled",!0)},loadingMoreDefaultAsLoading:{type:[Boolean],default:Ae.gc("loadingMoreDefaultAsLoading",!1)},loadingMoreDefaultText:{type:[String,Object],default:Ae.gc("loadingMoreDefaultText",null)},loadingMoreLoadingText:{type:[String,Object],default:Ae.gc("loadingMoreLoadingText",null)},loadingMoreNoMoreText:{type:[String,Object],default:Ae.gc("loadingMoreNoMoreText",null)},loadingMoreFailText:{type:[String,Object],default:Ae.gc("loadingMoreFailText",null)},hideNoMoreInside:{type:Boolean,default:Ae.gc("hideNoMoreInside",!1)},hideNoMoreByLimit:{type:Number,default:Ae.gc("hideNoMoreByLimit",0)},showDefaultLoadingMoreText:{type:Boolean,default:Ae.gc("showDefaultLoadingMoreText",!0)},showLoadingMoreNoMoreView:{type:Boolean,default:Ae.gc("showLoadingMoreNoMoreView",!0)},showLoadingMoreNoMoreLine:{type:Boolean,default:Ae.gc("showLoadingMoreNoMoreLine",!0)},loadingMoreNoMoreLineCustomStyle:{type:Object,default:function(){return Ae.gc("loadingMoreNoMoreLineCustomStyle",{})}},insideMore:{type:Boolean,default:Ae.gc("insideMore",!1)},lowerThreshold:{type:[Number,String],default:Ae.gc("lowerThreshold","100rpx")}},data:()=>({M:xe.More,loadingStatus:xe.More.Default,loadingStatusAfterRender:xe.More.Default,loadingMoreTimeStamp:0,loadingMoreDefaultSlot:null,showLoadingMore:!1,customNoMore:-1}),computed:{zLoadMoreConfig(){return{status:this.loadingStatusAfterRender,defaultAsLoading:this.loadingMoreDefaultAsLoading,defaultThemeStyle:this.finalLoadingMoreThemeStyle,customStyle:this.loadingMoreCustomStyle,titleCustomStyle:this.loadingMoreTitleCustomStyle,iconCustomStyle:this.loadingMoreLoadingIconCustomStyle,loadingIconType:this.loadingMoreLoadingIconType,loadingIconCustomImage:this.loadingMoreLoadingIconCustomImage,loadingAnimated:this.loadingMoreLoadingAnimated,showNoMoreLine:this.showLoadingMoreNoMoreLine,noMoreLineCustomStyle:this.loadingMoreNoMoreLineCustomStyle,defaultText:this.finalLoadingMoreDefaultText,loadingText:this.finalLoadingMoreLoadingText,noMoreText:this.finalLoadingMoreNoMoreText,failText:this.finalLoadingMoreFailText,hideContent:!this.loadingMoreDefaultAsLoading&&this.listRendering}},finalLoadingMoreThemeStyle(){return this.loadingMoreThemeStyle.length?this.loadingMoreThemeStyle:this.defaultThemeStyle},showLoadingMoreDefault(){return this._showLoadingMore("Default")},showLoadingMoreLoading(){return this._showLoadingMore("Loading")},showLoadingMoreNoMore(){return this._showLoadingMore("NoMore")},showLoadingMoreFail(){return this._showLoadingMore("Fail")},showLoadingMoreCustom(){return this._showLoadingMore("Custom")}},methods:{pageReachBottom(){!this.useChatRecordMode&&this._onLoadingMore("toBottom")},doLoadMore(e){this._onLoadingMore(e)},_checkScrolledToBottom(e,t=!1){this.checkScrolledToBottomTimeOut&&(clearTimeout(this.checkScrolledToBottomTimeOut),this.checkScrolledToBottomTimeOut=null),-1===this.cacheScrollNodeHeight?this._getNodeClientRect(".zp-scroll-view").then((t=>{if(t){let i=t[0].height;this.cacheScrollNodeHeight=i,e-i<=this.finalLowerThreshold&&this._onLoadingMore("toBottom")}})):e-this.cacheScrollNodeHeight<=this.finalLowerThreshold?this._onLoadingMore("toBottom"):e-this.cacheScrollNodeHeight<=500&&!t&&(this.checkScrolledToBottomTimeOut=setTimeout((()=>{this._getNodeClientRect(".zp-scroll-view",!0,!0).then((e=>{this.oldScrollTop=e[0].scrollTop;const t=e[0].scrollHeight-this.oldScrollTop;this._checkScrolledToBottom(t,!0)}))}),150))},_onLoadingMore(e="click"){"toBottom"===e&&!this.scrollToBottomBounceEnabled&&this.scrollEnable&&(this.scrollEnable=!1,this.$nextTick((()=>{this.scrollEnable=!0}))),this.$emit("scrolltolower",e),("toBottom"!==e||this.toBottomLoadingMoreEnabled&&!this.useChatRecordMode)&&(this.refresherOnly||!this.loadingMoreEnabled||this.loadingStatus!==xe.More.Default&&this.loadingStatus!==xe.More.Fail||this.loading||this._doLoadingMore())},_doLoadingMore(){this.pageNo>=this.defaultPageNo&&this.loadingStatus!==xe.More.NoMore&&(this.pageNo++,this._startLoading(!1),this.isLocalPaging?this._localPagingQueryList(this.pageNo,this.defaultPageSize,this.localPagingLoadingTime,(e=>{this.completeByTotal(e,this.totalLocalPagingList.length)})):(this._emitQuery(this.pageNo,this.defaultPageSize,xe.QueryFrom.LoadingMore),this._callMyParentQuery()),this.loadingType=xe.LoadingType.LoadingMore)},_preCheckShowNoMoreInside(e,t,i){this.loadingStatus===xe.More.NoMore&&this.hideNoMoreByLimit>0&&e.length?this.showLoadingMore=e.length>this.hideNoMoreByLimit:this.loadingStatus===xe.More.NoMore&&this.hideNoMoreInside&&e.length||this.insideMore&&!1!==this.insideOfPaging&&e.length?(this.$nextTick((()=>{this._checkShowNoMoreInside(e,t,i)})),this.insideMore&&!1!==this.insideOfPaging&&e.length&&(this.showLoadingMore=e.length)):this.showLoadingMore=e.length},async _checkShowNoMoreInside(e,t,i){try{const e=t||await this._getNodeClientRect(".zp-scroll-view");if(this.usePageScroll){if(e){const t=e[0].top+e[0].height;this.insideOfPaging=t<this.windowHeight,this.hideNoMoreInside&&(this.showLoadingMore=!this.insideOfPaging),this._updateInsideOfPaging()}}else{const t=i||await this._getNodeClientRect(".zp-paging-container-content"),o=t?t[0].height:0,a=e?e[0].height:0;this.insideOfPaging=o<a,this.hideNoMoreInside&&(this.showLoadingMore=!this.insideOfPaging),this._updateInsideOfPaging()}}catch(o){this.insideOfPaging=!e.length,this.hideNoMoreInside&&(this.showLoadingMore=!this.insideOfPaging),this._updateInsideOfPaging()}},_showLoadingMore(e){if(!this.showLoadingMoreWhenReload&&(this.loadingStatus===xe.More.Default&&!this.nShowBottom||!this.realTotalData.length))return!1;if((!this.showLoadingMoreWhenReload||this.isUserPullDown||this.loadingStatus!==xe.More.Loading)&&!this.showLoadingMore||!this.loadingMoreEnabled&&(!this.showLoadingMoreWhenReload||this.isUserPullDown||this.loadingStatus!==xe.More.Loading)||this.refresherOnly)return!1;if(this.useChatRecordMode&&"Loading"!==e)return!1;if(!this.$slots)return!1;if("Custom"===e)return this.showDefaultLoadingMoreText&&!(this.loadingStatus===xe.More.NoMore&&!this.showLoadingMoreNoMoreView);return this.loadingStatus===xe.More[e]&&this.$slots[`loadingMore${e}`]&&("NoMore"!==e||this.showLoadingMoreNoMoreView)}}},He={props:{autoHideLoadingAfterFirstLoaded:{type:Boolean,default:Ae.gc("autoHideLoadingAfterFirstLoaded",!0)},loadingFullFixed:{type:Boolean,default:Ae.gc("loadingFullFixed",!1)},autoShowSystemLoading:{type:Boolean,default:Ae.gc("autoShowSystemLoading",!1)},systemLoadingMask:{type:Boolean,default:Ae.gc("systemLoadingMask",!0)},systemLoadingText:{type:[String,Object],default:Ae.gc("systemLoadingText",null)}},data:()=>({loading:!1,loadingForNow:!1}),watch:{loadingStatus(e){this.$emit("loadingStatusChange",e),this.$nextTick((()=>{this.loadingStatusAfterRender=e}))},loading(e){e&&(this.loadingForNow=e)}},computed:{showLoading(){return!(this.firstPageLoaded||!this.loading||!this.loadingForNow)&&(this.finalShowSystemLoading&&A({title:this.finalSystemLoadingText,mask:this.systemLoadingMask}),this.autoHideLoadingAfterFirstLoaded?!!this.fromEmptyViewReload||!this.pagingLoaded:this.loadingType===xe.LoadingType.Refresher)},finalShowSystemLoading(){return this.autoShowSystemLoading&&this.loadingType===xe.LoadingType.Refresher}},methods:{_startLoading(e=!1){(this.showLoadingMoreWhenReload&&!this.isUserPullDown||!e)&&(this.loadingStatus=xe.More.Loading),this.loading=!0},_endSystemLoadingAndRefresh(){this.finalShowSystemLoading&&x(),!this.useCustomRefresher&&M()}}},_e={props:{usePageScroll:{type:Boolean,default:Ae.gc("usePageScroll",!1)},scrollable:{type:Boolean,default:Ae.gc("scrollable",!0)},showScrollbar:{type:Boolean,default:Ae.gc("showScrollbar",!0)},scrollX:{type:Boolean,default:Ae.gc("scrollX",!1)},scrollToTopBounceEnabled:{type:Boolean,default:Ae.gc("scrollToTopBounceEnabled",!1)},scrollToBottomBounceEnabled:{type:Boolean,default:Ae.gc("scrollToBottomBounceEnabled",!0)},scrollWithAnimation:{type:Boolean,default:Ae.gc("scrollWithAnimation",!1)},scrollIntoView:{type:String,default:Ae.gc("scrollIntoView","")}},data:()=>({scrollTop:0,oldScrollTop:0,scrollViewStyle:{},scrollViewContainerStyle:{},scrollViewInStyle:{},pageScrollTop:-1,scrollEnable:!0,privateScrollWithAnimation:-1,cacheScrollNodeHeight:-1}),watch:{oldScrollTop(e){!this.usePageScroll&&this._scrollTopChange(e,!1)},pageScrollTop(e){this.usePageScroll&&this._scrollTopChange(e,!0)},usePageScroll:{handler(e){this.loaded&&this.autoHeight&&this._setAutoHeight(!e),e&&this.$nextTick((()=>{const e=this.$refs["zp-scroll-view"].$refs.main;e&&(e.style={})}))},immediate:!0},finalScrollTop(e){this.useChatRecordMode||(this.renderPropScrollTop=e<6?0:10)}},computed:{finalScrollWithAnimation(){if(-1!==this.privateScrollWithAnimation){const e=1===this.privateScrollWithAnimation;return this.privateScrollWithAnimation=-1,e}return this.scrollWithAnimation},finalScrollViewStyle(){return 1!=this.superContentZIndex&&(this.scrollViewStyle["z-index"]=this.superContentZIndex,this.scrollViewStyle.position="relative"),this.scrollViewStyle},finalScrollTop(){return this.usePageScroll?this.pageScrollTop:this.oldScrollTop},finalIsOldWebView(){return this.isOldWebView&&!this.usePageScroll}},methods:{scrollToTop(e,t=!0){this.$nextTick((()=>{this._scrollToTop(e,!1)}))},scrollToBottom(e,t=!0){this.$nextTick((()=>{this._scrollToBottom(e)}))},scrollIntoViewById(e,t,i){this._scrollIntoView(e,t,i)},scrollIntoViewByNodeTop(e,t,i){this.scrollTop=this.oldScrollTop,this.$nextTick((()=>{this._scrollIntoViewByNodeTop(e,t,i)}))},scrollToY(e,t,i){this.scrollTop=this.oldScrollTop,this.$nextTick((()=>{this._scrollToY(e,t,i)}))},scrollIntoViewByIndex(e,t,i){this._scrollIntoView(e,t,i)},scrollIntoViewByView(e,t,i){this._scrollIntoView(e,t,i)},updatePageScrollTop(e){this.pageScrollTop=e},updatePageScrollTopHeight(){this._updatePageScrollTopOrBottomHeight("top")},updatePageScrollBottomHeight(){this._updatePageScrollTopOrBottomHeight("bottom")},updateLeftAndRightWidth(){this.$nextTick((()=>{this._updateLeftAndRightWidth()}))},updateScrollViewScrollTop(e,t=!0){this.privateScrollWithAnimation=t?1:0,this.scrollTop=this.oldScrollTop,this.$nextTick((()=>{this.scrollTop=e,this.oldScrollTop=this.scrollTop}))},_onScrollToUpper(){this.$emit("scrolltoupper"),this.$emit("scrollTopChange",0),this.$nextTick((()=>{this.oldScrollTop=0})),this.useChatRecordMode&&this.loadingStatus!==xe.More.NoMore&&this._onLoadingMore("click")},_onScrollToLower(e){(!e.detail||!e.detail.direction||"bottom"===e.detail.direction)&&this._onLoadingMore("toBottom")},_scrollToTop(e=!0,t=!0){this.usePageScroll?this.$nextTick((()=>{I({scrollTop:0,duration:e?100:0})})):(this.privateScrollWithAnimation=e?1:0,this.scrollTop=this.oldScrollTop,this.$nextTick((()=>{this.scrollTop=0,this.oldScrollTop=this.scrollTop})))},async _scrollToBottom(e=!0){if(this.usePageScroll)this.$nextTick((()=>{I({scrollTop:Number.MAX_VALUE,duration:e?100:0})}));else try{this.privateScrollWithAnimation=e?1:0;const t=await this._getNodeClientRect(".zp-paging-container"),i=await this._getNodeClientRect(".zp-scroll-view"),o=t?t[0].height:0,a=i?i[0].height:0;o>a&&(this.scrollTop=this.oldScrollTop,this.$nextTick((()=>{this.scrollTop=o-a+this.virtualPlaceholderTopHeight,this.oldScrollTop=this.scrollTop})))}catch(t){}},_scrollIntoView(e,t=0,i=!1,o){try{this.scrollTop=this.oldScrollTop,this.$nextTick((()=>{this._getNodeClientRect("#"+e.replace("#",""),this.$parent).then((e=>{if(e){let a=e[0].top;this._scrollIntoViewByNodeTop(a,t,i),o&&o()}}))}))}catch(a){}},_scrollIntoViewByNodeTop(e,t=0,i=!1){this._scrollToY(e,t,i,!0)},_scrollToY(e,t=0,i=!1,o=!1){this.privateScrollWithAnimation=i?1:0,this.usePageScroll?I({scrollTop:e-t,duration:i?100:0}):(o&&(e+=this.oldScrollTop),this.scrollTop=e-t,this.oldScrollTop=this.scrollTop)},_scroll(e){this.$emit("scroll",e);const t=e.detail.scrollTop;this.finalUseVirtualList&&this._updateVirtualScroll(t,this.oldScrollTop-t),this.oldScrollTop=t;const i=e.detail.scrollHeight-this.oldScrollTop;!this.isIos&&this._checkScrolledToBottom(i)},_doCheckScrollViewShouldFullHeight(e){this.autoFullHeight&&this.usePageScroll&&this.isTotalChangeFromAddData?this.$nextTick((()=>{this._checkScrollViewShouldFullHeight(((t,i)=>{this._preCheckShowNoMoreInside(e,t,i)}))})):this._preCheckShowNoMoreInside(e)},async _checkScrollViewShouldFullHeight(e){try{const t=await this._getNodeClientRect(".zp-scroll-view"),i=await this._getNodeClientRect(".zp-paging-container-content");if(!t||!i)return;const o=i[0].height,a=t[0].top;this.isAddedData&&o+a<=this.windowHeight?(this._setAutoHeight(!0,t),e(t,i)):(this._setAutoHeight(!1),e(null,null))}catch(t){e(null,null)}},_scrollTopChange(e,t){this.$emit("scrollTopChange",e),this.$emit("update:scrollTop",e),this._checkShouldShowBackToTop(e);const i=this.isIos?e>5?6:0:e;t?this.wxsPageScrollTop=i:this.wxsScrollTop=i},_updatePageScrollTopOrBottomHeight(e){if(!this.usePageScroll)return;this._doCheckScrollViewShouldFullHeight(this.realTotalData);const t=`.zp-page-${e}`,i=`margin${e.slice(0,1).toUpperCase()+e.slice(1)}`;let o=this.safeAreaInsetBottom;this.$nextTick((()=>{setTimeout((()=>{this._getNodeClientRect(t).then((t=>{if(t){let a=t[0].height;"bottom"===e?o&&(a+=this.safeAreaBottom):this.cacheTopHeight=a,this.$set(this.scrollViewStyle,i,`${a}px`)}else o&&this.$set(this.scrollViewStyle,i,`${this.safeAreaBottom}px`)}))}),0)}))},_updateLeftAndRightWidth(){this.finalIsOldWebView&&this.$nextTick((()=>{setTimeout((()=>{["left","right"].map((e=>{this._getNodeClientRect(`.zp-page-${e}`).then((t=>{this.$set(this.scrollViewContainerStyle,e,t?t[0].width+"px":"0px")}))}))}),0)}))}}},Ne={props:{autoShowBackToTop:{type:Boolean,default:Ae.gc("autoShowBackToTop",!1)},backToTopThreshold:{type:[Number,String],default:Ae.gc("backToTopThreshold","400rpx")},backToTopImg:{type:String,default:Ae.gc("backToTopImg","")},backToTopWithAnimate:{type:Boolean,default:Ae.gc("backToTopWithAnimate",!0)},backToTopBottom:{type:[Number,String],default:Ae.gc("backToTopBottom","160rpx")},backToTopStyle:{type:Object,default:function(){return Ae.gc("backToTopStyle",{})}},enableBackToTop:{type:Boolean,default:Ae.gc("enableBackToTop",!0)}},data:()=>({backToTopClass:"zp-back-to-top zp-back-to-top-hide",lastBackToTopShowTime:0,showBackToTopClass:!1}),computed:{finalEnableBackToTop(){return!this.usePageScroll&&this.enableBackToTop},finalBackToTopThreshold(){return Ae.convertToPx(this.backToTopThreshold)},finalBackToTopStyle(){const e=this.backToTopStyle;return e.bottom||(e.bottom=this.windowBottom+Ae.convertToPx(this.backToTopBottom)+"px"),e.position||(e.position=this.usePageScroll?"fixed":"absolute"),e}},methods:{_backToTopClick(){!this.backToTopWithAnimate&&this._checkShouldShowBackToTop(0),this.scrollToTop(this.backToTopWithAnimate)},_checkShouldShowBackToTop(e){this.autoShowBackToTop?e>this.finalBackToTopThreshold?this.showBackToTopClass||(this.showBackToTopClass=!0,this.lastBackToTopShowTime=(new Date).getTime(),setTimeout((()=>{this.backToTopClass="zp-back-to-top zp-back-to-top-show"}),300)):this.showBackToTopClass&&(this.backToTopClass="zp-back-to-top zp-back-to-top-hide",setTimeout((()=>{this.showBackToTopClass=!1}),(new Date).getTime()-this.lastBackToTopShowTime<500?0:300)):this.showBackToTopClass=!1}}},Fe={props:{useVirtualList:{type:Boolean,default:Ae.gc("useVirtualList",!1)},useCompatibilityMode:{type:Boolean,default:Ae.gc("useCompatibilityMode",!1)},extraData:{type:Object,default:function(){return Ae.gc("extraData",{})}},useInnerList:{type:Boolean,default:Ae.gc("useInnerList",!1)},forceCloseInnerList:{type:Boolean,default:Ae.gc("forceCloseInnerList",!1)},cellKeyName:{type:String,default:Ae.gc("cellKeyName","")},innerListStyle:{type:Object,default:function(){return Ae.gc("innerListStyle",{})}},innerCellStyle:{type:Object,default:function(){return Ae.gc("innerCellStyle",{})}},preloadPage:{type:[Number,String],default:Ae.gc("preloadPage",7),validator:e=>(e<=0&&Ae.consoleErr("preload-page必须大于0"),e>0)},cellHeightMode:{type:String,default:Ae.gc("cellHeightMode",xe.CellHeightMode.Fixed)},virtualListCol:{type:[Number,String],default:Ae.gc("virtualListCol",1)},virtualScrollFps:{type:[Number,String],default:Ae.gc("virtualScrollFps",80)}},data:()=>({virtualListKey:Ae.getInstanceId(),virtualPageHeight:0,virtualCellHeight:0,virtualScrollTimeStamp:0,virtualList:[],virtualPlaceholderTopHeight:0,virtualPlaceholderBottomHeight:0,virtualTopRangeIndex:0,virtualBottomRangeIndex:0,lastVirtualTopRangeIndex:0,lastVirtualBottomRangeIndex:0,virtualHeightCacheList:[],getCellHeightRetryCount:{fixed:0,dynamic:0},pagingOrgTop:-1,updateVirtualListFromDataChange:!1}),watch:{realTotalData(e){this.finalUseVirtualList&&(this.updateVirtualListFromDataChange=!0,this.$nextTick((()=>{e.length||this._resetDynamicListState(!this.isUserPullDown),this.getCellHeightRetryCount.fixed=0,e.length&&this.cellHeightMode===xe.CellHeightMode.Fixed&&this.isFirstPage&&this._updateFixedCellHeight(),this._updateVirtualScroll(this.oldScrollTop)})))},virtualList(e){this.$emit("update:virtualList",e),this.$emit("virtualListChange",e)}},computed:{finalUseVirtualList(){return this.useVirtualList&&this.usePageScroll&&Ae.consoleErr("使用页面滚动时,开启虚拟列表无效!"),this.useVirtualList&&!this.usePageScroll},finalUseInnerList(){return this.useInnerList||this.finalUseVirtualList&&!this.forceCloseInnerList},finalCellKeyName(){return this.cellKeyName},finalVirtualPageHeight(){return this.virtualPageHeight>0?this.virtualPageHeight:this.windowHeight},virtualRangePageHeight(){return this.finalVirtualPageHeight*this.preloadPage},virtualScrollDisTimeStamp(){return 1e3/this.virtualScrollFps}},methods:{didUpdateVirtualListCell(e){if(this.cellHeightMode!==xe.CellHeightMode.Dynamic)return;const t=this.virtualHeightCacheList[e];this._getNodeClientRect(`#zp-id-${e}`,this.finalUseInnerList).then((i=>{const o=i?i[0].height:0,a=o-t.height;t.height=o,t.totalHeight=t.lastHeight+o;for(let t=e+1;t<this.virtualHeightCacheList.length;t++){const i=this.virtualHeightCacheList[t];t===e+1&&(i.lastHeight=o),i.totalHeight+=a}}))},didDeleteVirtualListCell(e){if(this.cellHeightMode!==xe.CellHeightMode.Dynamic)return;const t=this.virtualHeightCacheList[e];for(let i=e+1;i<this.virtualHeightCacheList.length;i++){const o=this.virtualHeightCacheList[i];i===e+1&&(o.lastHeight=t.lastHeight),o.totalHeight-=t.height}this.virtualHeightCacheList.splice(e,1)},_virtualListInit(){this.$nextTick((()=>{setTimeout((()=>{this._getNodeClientRect(".zp-scroll-view").then((e=>{e&&(this.pagingOrgTop=e[0].top,this.virtualPageHeight=e[0].height)}))}),le)}))},_updateFixedCellHeight(){this.$nextTick((()=>{const e=setTimeout((()=>{this._getNodeClientRect("#zp-id-0",this.finalUseInnerList).then((t=>{if(t)this.virtualCellHeight=t[0].height,this._updateVirtualScroll(this.oldScrollTop);else{if(clearTimeout(e),this.getCellHeightRetryCount.fixed>10)return;this.getCellHeightRetryCount.fixed++,this._updateFixedCellHeight()}}))}),le)}))},_updateDynamicCellHeight(e){this.$nextTick((()=>{const t=setTimeout((async()=>{for(let i=0;i<e.length;i++){let o=e[i];const a=await this._getNodeClientRect(`#zp-id-${o[ce]}`,this.finalUseInnerList),s=a?a[0].height:0;if(!a){if(clearTimeout(t),this.virtualHeightCacheList=this.virtualHeightCacheList.slice(-i),this.getCellHeightRetryCount.dynamic>10)return;this.getCellHeightRetryCount.dynamic++,this._updateDynamicCellHeight(e);break}const r=this.virtualHeightCacheList.length?this.virtualHeightCacheList.slice(-1)[0]:null,l=r?r.totalHeight:0;this.virtualHeightCacheList.push({height:s,lastHeight:l,totalHeight:l+s})}this._updateVirtualScroll(this.oldScrollTop)}),le)}))},_setCellIndex(e,t){let i=0;if(t)this._resetDynamicListState();else{i=this.realTotalData.length;const e=this.realTotalData.length?this.realTotalData.slice(-1)[0]:null;e&&void 0!==e[ce]&&(i=e[ce]+1)}for(let o=0;o<e.length;o++){let t=e[o];t&&"[object Object]"===Object.prototype.toString.call(t)||(t={item:t}),t[ce]=i+o,t[ge]=`${this.virtualListKey}-${t[ce]}`,e[o]=t}this.getCellHeightRetryCount.dynamic=0,this.cellHeightMode===xe.CellHeightMode.Dynamic&&this._updateDynamicCellHeight(e)},_updateVirtualScroll(e,t=0){const i=Ae.getTime();if(0===e&&this._resetTopRange(),0!==e&&this.virtualScrollTimeStamp&&i-this.virtualScrollTimeStamp<=this.virtualScrollDisTimeStamp)return;this.virtualScrollTimeStamp=i;let o=0;const a=this.cellHeightMode;if(a===xe.CellHeightMode.Fixed)o=parseInt(e/this.virtualCellHeight)||0,this._updateFixedTopRangeIndex(o),this._updateFixedBottomRangeIndex(o);else if(a===xe.CellHeightMode.Dynamic){const i=t>0?"top":"bottom",o=this.virtualRangePageHeight,a=e-o,s=e+this.finalVirtualPageHeight+o;let r=0,l=0,n=!1;const h=this.virtualHeightCacheList,d=h?h.slice(-1)[0]:null;let c=this.virtualTopRangeIndex;if("bottom"===i)for(let e=c;e<h.length;e++){const t=h[e];if(t&&t.totalHeight>a){this.virtualTopRangeIndex=e,this.virtualPlaceholderTopHeight=t.lastHeight;break}}else{let e=!1;for(let t=c;t>=0;t--){const i=h[t];if(i&&i.totalHeight<a){this.virtualTopRangeIndex=t,this.virtualPlaceholderTopHeight=i.lastHeight,e=!0;break}}!e&&this._resetTopRange()}for(let e=this.virtualTopRangeIndex;e<h.length;e++){const t=h[e];if(t&&t.totalHeight>s){r=e,l=d.totalHeight-t.totalHeight,n=!0;break}}n&&0!==this.virtualBottomRangeIndex?(this.virtualBottomRangeIndex=r,this.virtualPlaceholderBottomHeight=l):(this.virtualBottomRangeIndex=this.realTotalData.length?this.realTotalData.length-1:this.pageSize,this.virtualPlaceholderBottomHeight=0),this._updateVirtualList()}},_updateFixedTopRangeIndex(e){let t=0===this.virtualCellHeight?0:e-parseInt(this.finalVirtualPageHeight/this.virtualCellHeight)*this.preloadPage;t*=this.virtualListCol,t=Math.max(0,t),this.virtualTopRangeIndex=t,this.virtualPlaceholderTopHeight=t/this.virtualListCol*this.virtualCellHeight},_updateFixedBottomRangeIndex(e){let t=0===this.virtualCellHeight?this.pageSize:e+parseInt(this.finalVirtualPageHeight/this.virtualCellHeight)*(this.preloadPage+1);t*=this.virtualListCol,t=Math.min(this.realTotalData.length,t),this.virtualBottomRangeIndex=t,this.virtualPlaceholderBottomHeight=(this.realTotalData.length-t)*this.virtualCellHeight/this.virtualListCol,this._updateVirtualList()},_updateVirtualList(){(this.updateVirtualListFromDataChange||this.lastVirtualTopRangeIndex!==this.virtualTopRangeIndex||this.lastVirtualBottomRangeIndex!==this.virtualBottomRangeIndex)&&(this.updateVirtualListFromDataChange=!1,this.lastVirtualTopRangeIndex=this.virtualTopRangeIndex,this.lastVirtualBottomRangeIndex=this.virtualBottomRangeIndex,this.virtualList=this.realTotalData.slice(this.virtualTopRangeIndex,this.virtualBottomRangeIndex+1))},_resetDynamicListState(e=!1){this.virtualHeightCacheList=[],e&&(this.virtualList=[]),this.virtualTopRangeIndex=0,this.virtualPlaceholderTopHeight=0},_resetTopRange(){this.virtualTopRangeIndex=0,this.virtualPlaceholderTopHeight=0,this._updateVirtualList()},_checkVirtualListScroll(){this.finalUseVirtualList&&this.$nextTick((()=>{this._getNodeClientRect(".zp-paging-touch-view").then((e=>{const t=e?e[0].top:0;(!e||t===this.pagingOrgTop&&0!==this.virtualPlaceholderTopHeight)&&this._updateVirtualScroll(0)}))}))},_innerCellClick(e,t){this.$emit("innerCellClick",e,t)}}},Ue=m(),Oe={name:"z-paging",components:{zPagingRefresh:Me,zPagingLoadMore:Ie,zPagingEmptyView:se},mixins:[be,Pe,De,Ve,Ee,ze,He,_e,Ne,Fe],data:()=>({base64Arrow:Y,base64Flower:q,base64BackToTop:ae,loadingType:xe.LoadingType.Refresher,requestTimeStamp:0,chatRecordLoadingMoreText:"",wxsPropType:"",renderPropScrollTop:-1,checkScrolledToBottomTimeOut:null,systemInfo:null,cssSafeAreaInsetBottom:-1,cacheTopHeight:-1,insideOfPaging:-1,isLoadFailed:!1,isIos:"ios"===Ue.platform,disabledBounce:!1,fromCompleteEmit:!1,disabledCompleteEmit:!1,wxsIsScrollTopInTopRange:!0,wxsScrollTop:0,wxsPageScrollTop:0,wxsOnPullingDown:!1}),props:{delay:{type:[Number,String],default:Ae.gc("delay",0)},minDelay:{type:[Number,String],default:Ae.gc("minDelay",0)},pagingStyle:{type:Object,default:function(){return Ae.gc("pagingStyle",{})}},height:{type:String,default:Ae.gc("height","")},width:{type:String,default:Ae.gc("width","")},bgColor:{type:String,default:Ae.gc("bgColor","")},pagingContentStyle:{type:Object,default:function(){return Ae.gc("pagingContentStyle",{})}},autoHeight:{type:Boolean,default:Ae.gc("autoHeight",!1)},autoHeightAddition:{type:[Number,String],default:Ae.gc("autoHeightAddition","0px")},defaultThemeStyle:{type:String,default:Ae.gc("defaultThemeStyle","black")},fixed:{type:Boolean,default:Ae.gc("fixed",!0)},safeAreaInsetBottom:{type:Boolean,default:Ae.gc("safeAreaInsetBottom",!1)},useSafeAreaPlaceholder:{type:Boolean,default:Ae.gc("useSafeAreaPlaceholder",!1)},topZIndex:{type:Number,default:Ae.gc("topZIndex",99)},superContentZIndex:{type:Number,default:Ae.gc("superContentZIndex",1)},contentZIndex:{type:Number,default:Ae.gc("contentZIndex",10)},autoFullHeight:{type:Boolean,default:Ae.gc("autoFullHeight",!0)},watchTouchDirectionChange:{type:Boolean,default:Ae.gc("watchTouchDirectionChange",!1)}},created(){this.createdReload&&!this.refresherOnly&&this.auto&&(this._startLoading(),this._preReload())},mounted(){this.wxsPropType=Ae.getTime().toString(),this.renderJsIgnore,this.createdReload||this.refresherOnly||!this.auto||this.$nextTick((()=>{this._preReload()})),this.finalUseCache&&this._setListByLocalCache();let e=0;e=100,this.$nextTick((()=>{this.systemInfo=m(),!this.usePageScroll&&this.autoHeight&&this._setAutoHeight(),this.loaded=!0})),this.updatePageScrollTopHeight(),this.updatePageScrollBottomHeight(),this._updateLeftAndRightWidth(),this.finalRefresherEnabled&&this.useCustomRefresher&&this.$nextTick((()=>{this.isTouchmoving=!0})),this._onEmit(),this.finalUseVirtualList&&this._virtualListInit(),this.$nextTick((()=>{setTimeout((()=>{this._getCssSafeAreaInsetBottom()}),100)}))},destroyed(){this._offEmit()},unmounted(){this._offEmit()},watch:{defaultThemeStyle:{handler(e){e.length&&(this.finalRefresherDefaultStyle=e)},immediate:!0},autoHeight(e){this.loaded&&!this.usePageScroll&&this._setAutoHeight(e)},autoHeightAddition(e){this.loaded&&!this.usePageScroll&&this.autoHeight&&this._setAutoHeight(e)}},computed:{finalPagingStyle(){const e=this.pagingStyle;if(!this.systemInfo)return e;const t=this.windowTop,i=this.windowBottom;return!this.usePageScroll&&this.fixed&&(t&&!e.top&&(e.top=t+"px"),i&&!e.bottom&&(e.bottom=i+"px")),this.bgColor.length&&!e.background&&(e.background=this.bgColor),this.height.length&&!e.height&&(e.height=this.height),this.width.length&&!e.width&&(e.width=this.width),e},finalLowerThreshold(){return Ae.convertToPx(this.lowerThreshold)},finalPagingContentStyle(){return 1!=this.contentZIndex&&(this.pagingContentStyle["z-index"]=this.contentZIndex,this.pagingContentStyle.position="relative"),this.pagingContentStyle},safeAreaBottom(){if(!this.systemInfo)return 0;let e=0;return e=-1===this.cssSafeAreaInsetBottom?0:this.cssSafeAreaInsetBottom,e},renderJsIgnore(){return(this.usePageScroll&&this.useChatRecordMode||!this.refresherEnabled||!this.useCustomRefresher)&&this.$nextTick((()=>{this.renderPropScrollTop=10})),0},windowHeight(){return this.systemInfo&&this.systemInfo.windowHeight||0},windowTop(){return document.getElementsByTagName("uni-page-head").length&&this.systemInfo&&this.systemInfo.windowTop||0},windowBottom(){if(!this.systemInfo)return 0;let e=this.systemInfo.windowBottom||0;return this.safeAreaInsetBottom&&!this.useSafeAreaPlaceholder&&(e+=this.safeAreaBottom),e},isOldWebView(){try{const e=Ue.system.split(" "),t=e[0],i=parseInt(e[1].slice(0,1));if("iOS"===t&&i<=10||"Android"===t&&i<=6)return!0}catch(e){return!1}return!1},isIosAndH5(){return this.isIos},zSlots(){return this.$slots}},methods:{getVersion:()=>`z-paging v${re}`,setSpecialEffects(e){this.setListSpecialEffects(e)},setListSpecialEffects(e){this.nFixFreezing=e&&Object.keys(e).length,this.isIos&&(this.privateRefresherEnabled=0),this.usePageScroll||this.$refs["zp-n-list"].setSpecialEffects(e)},_doVibrateShort(){L()},async _setAutoHeight(e=!0,t=null){let i="min-height";i="min-height";try{if(e){let e=t||await this._getNodeClientRect(".zp-scroll-view"),o=await this._getNodeClientRect(".zp-page-bottom");if(e){const t=e[0].top;let a=this.windowHeight-t;o&&(a-=o[0].height);const s=a+Ae.convertToPx(this.autoHeightAddition)-(this.insideMore?1:0)+"px !important";this.$set(this.scrollViewStyle,i,s),this.$set(this.scrollViewInStyle,i,s)}}else this.$delete(this.scrollViewStyle,i),this.$delete(this.scrollViewInStyle,i)}catch(o){}},_getCssSafeAreaInsetBottom(){this._getNodeClientRect(".zp-safe-area-inset-bottom").then((e=>{e&&(this.cssSafeAreaInsetBottom=e[0].height,this.safeAreaInsetBottom&&this.updatePageScrollBottomHeight())}))},_updateInsideOfPaging(){this.insideMore&&!0===this.insideOfPaging&&setTimeout((()=>{this.doLoadMore()}),200)},_getNodeClientRect(e,t=!0,i=!1){let o=t?v().in(!0===t?this:t):v();return i?o.select(e).scrollOffset():o.select(e).boundingClientRect(),new Promise(((e,t)=>{o.exec((t=>{e(!(!t||""==t||null==t||!t.length)&&t)}))}))},_cleanTimeout:e=>(e&&(clearTimeout(e),e=null),e),_onEmit(){b(ne,(()=>{this.loading&&this.complete(!1)})),b(he,(e=>{setTimeout((()=>{if(this.loading)if(this.disabledCompleteEmit)this.disabledCompleteEmit=!1;else{const t=e.type||"normal",i=e.list||e,o=e.rule;switch(this.fromCompleteEmit=!0,t){case"normal":this.complete(i);break;case"total":this.completeByTotal(i,o);break;case"nomore":this.completeByNoMore(i,o);break;case"key":this.completeByKey(i,o)}}}),1)}))},_offEmit(){k(ne),k(he)}}};var Qe=0,We=-1,je=-1;function Ke(e,t){var i=tt(t),o={},a={};if(t.callMethod("_handleListTouchstart"),!i||(o=i.getState(),a=i.getDataset(),!it(e,i,0))){var s=o.isTouchEnded;o.oldMoveDis=0;var r=et(e),l=at(a.loading);o.startY=r.touchY,je=o.startY,o.lastTouch=r,!l&&s&&(o.isTouchmoving=!1),o.isTouchEnded=!1,t.callMethod("_handleRefresherTouchstart",r)}}function Je(e,t){var i=et(e),o=tt(t),a=o.getDataset(),s=a.refresherthreshold,r=at(a.isios),l=o.getState(),n={},h=0,d=!1;if(at(a.watchtouchdirectionchange)&&(h=(n=Xe(e,o)).currentDis,d=n.isDown,l.oldAcceptedIsDown==d&&(t.callMethod("_handleTouchDirectionChange",{direction:d?"top":"bottom"}),l.oldIsDown=d),l.oldAcceptedIsDown=d),it(e,o,1))return ot(l,t,!1),!0;if(!function(e,t,i,o){var a=o.refreshermaxangle,s=at(o.refresheraecc),r=i.lastTouch,l=i.reachMaxAngle,n=i.oldMoveDis;if(!r)return!0;if(a>=0&&a<=90&&r){if((!n||n<1)&&!s&&null!=l&&!l)return!1;var h=Math.abs(t.touchX-r.touchX),d=Math.abs(t.touchY-r.touchY),c=Math.sqrt(Math.pow(h,2)+Math.pow(d,2));if((h||d)&&h>1)if(Math.asin(d/c)/Math.PI*180<a){var g=i.hitReachMaxAngleCount||0;return i.hitReachMaxAngleCount=++g,i.hitReachMaxAngleCount>2&&(i.lastTouch=t,i.reachMaxAngle=!1),!1}}return i.lastTouch=t,!0}(0,i,l,a))return ot(l,t,!1),!0;if(h=(n=Xe(e,o)).currentDis,d=n.isDown,h<0)return $e(0,o,l,!1),ot(l,t,!1),!0;if(d&&!l.disabledBounce)return r&&t.callMethod("_handleScrollViewDisableBounce",{bounce:!1}),l.disabledBounce=!0,ot(l,t,d),!d;$e(h,o,l,!1);var c=l.refresherStatus,g=at(a.oldistouchmoving),u=at(a.hastouchmove),p=l.isTouchmoving;return l.refresherStatus=h>=s?1:0,p||(l.isTouchmoving=!0,p=!0),l.isTouchEnded&&(l.isTouchEnded=!1),u&&t.callMethod("_handleWxsPullingDown",{moveDis:h,diffDis:n.diffDis}),null!=c&&c==l.refresherStatus&&g==p||t.callMethod("_handleRefresherTouchmove",h,i),ot(l,t,d),!d}function Ge(e,t){et(e);var i=tt(t);i.getDataset();var o=i.getState();if(!it(e,i,2)&&(o.reachMaxAngle=!0,o.hitReachMaxAngleCount=0,o.disabledBounce=!1,o.fixedIsTopHitCount=0,o.isTouchmoving)){var a=o.refresherStatus,s=o.moveDis,r=i.getDataset().refresherthreshold,l=Xe(e,i).currentDis;if(l>=r&&1===a||(o.isTouchmoving=!1),t.callMethod("_handleRefresherTouchend",l),o.isTouchEnded=!0,!(s<r)){var n=!1;l>=r&&(l=r,n=!0),$e(l,i,o,n)}}}function Ze(){if(!navigator)return!1;if(-1!=We)return We;for(var e=navigator.userAgent,t=["Android","iPhone","SymbianOS","Windows Phone","iPad","iPod"],i=!0,o=0;o<t.length;o++)if(e.indexOf(t[o])>0){i=!1;break}return We=i}var Ye=!1;function $e(e,t,i,o){e=e||0,i.moveDis!=e&&(i.moveDis=e,qe("translateY("+e+"px)",t,o,""))}function qe(e,t,i,o){"translateY(0px)"==e&&(e="none"),t.requestAnimationFrame((function(){var a={transform:e};i&&(a.transition="transform .1s linear"),o.length&&(a.transition=o),t.setStyle(a)}))}function Xe(e,t){var i=t.getState(),o=parseFloat(t.getDataset().refresherthreshold),a=parseFloat(t.getDataset().refresheroutrate),s=parseFloat(t.getDataset().refresherpullrate),r=et(e),l=i.startY&&"NaN"!=i.startY?i.startY:je,n=r.touchY-l,h=i.oldMoveDis||0;i.oldMoveDis=n;var d=n-h;return d>0&&(d*=s,Qe>o&&(d*=1-a)),Qe+=d=d>100?d/100:d,{currentDis:Qe=Math.max(0,Qe),diffDis:d,isDown:d>0}}function et(e){var t=e;return e.touches&&e.touches.length?t=e.touches[0]:e.changedTouches&&e.changedTouches.length?t=e.changedTouches[0]:e.datail&&e.datail!={}&&(t=e.datail),{touchX:t.clientX,touchY:t.clientY}}function tt(e){var t=e.getState().currentIns;return t||e.callMethod("_handlePropUpdate"),t}function it(e,t,i){var o=t.getDataset(),a=t.getState(),s=at(o.loading),r=at(o.usechatrecordmode),l=at(o.refresherenabled),n=at(o.usecustomrefresher),h=at(o.usepagescroll),d=parseFloat(o.pagescrolltop),c=parseFloat(o.scrolltop),g=h?d:c,u=!1,p=at(o.isios);!p&&g==(a.startScrollTop||0)&&g<=105&&(u=!0);var f=a.fixedIsTopHitCount||0;return u?(++f<=3&&(u=!1),a.fixedIsTopHitCount=f):a.fixedIsTopHitCount=0,p||0!==i||(a.startScrollTop=g||0),p||2!==i||(u=!0),s||r||!l||!n||h&&n&&d>5&&!u||!h&&n&&c>5&&!u}function ot(e,t,i){(e.onPullingDown||!1)!=i&&t.callMethod("_handleWxsPullingDownStatusChange",i),e.onPullingDown=i}function at(e){return 1==(e=("string"==typeof e?JSON.parse(e):e)||!1)||"true"==e}const st={touchstart:Ke,touchmove:Je,touchend:Ge,mousedown:function(e,t){Ze()&&(Ke(e,t),Ye=!0)},mousemove:function(e,t){Ze()&&Ye&&Je(e,t)},mouseup:function(e,t){Ze()&&(Ge(e,t),Ye=!1)},mouseleave:function(e,t){Ze()&&(Ye=!1)},propObserver:function(e,t,i,o){var a=i.getState()||{};if(a.currentIns=o,o.getDataset().loading,e&&-1!=e.indexOf("end"))qe("translateY(0px)",o,!1,e.split("end")[0]),a.moveDis=0,a.oldMoveDis=0,Qe=0;else if(e&&-1!=e.indexOf("begin")){$e(o.getDataset().refresherthreshold,o,a,!1)}}},rt=e=>{e.$wxs||(e.$wxs=[]),e.$wxs.push("pagingWxs"),e.mixins||(e.mixins=[]),e.mixins.push({beforeCreate(){this.pagingWxs=st}})};var lt={startY:0,isTouchFromZPaging:!1,isUsePageScroll:!1,isReachedTop:!0,isIosAndH5:!1};const nt={name:"z-paging",mixins:[{mounted(){this._handleTouch()},methods:{renderPropIsIosAndH5Change(e){-1!==e&&(lt.isIosAndH5=e)},_handleTouch(){window&&!window.$zPagingRenderJsInited&&(window.$zPagingRenderJsInited=!0,window.addEventListener("touchstart",this._handleTouchstart,{passive:!0}),window.addEventListener("touchmove",this._handleTouchmove,{passive:!1}))},_handleTouchstart(e){const t=Ae.getTouch(e);lt.startY=t.touchY;const i=Ae.getTouchFromZPaging(e.target);lt.isTouchFromZPaging=i.isFromZp,lt.isUsePageScroll=i.isPageScroll,lt.isReachedTop=i.isReachedTop},_handleTouchmove(e){var t=Ae.getTouch(e).touchY-lt.startY;lt.isTouchFromZPaging&&(lt.isReachedTop&&t>0||lt.isIosAndH5&&!lt.isUsePageScroll&&t<0)&&e.cancelable&&!e.defaultPrevented&&e.preventDefault()},_removeAllEventListener(){window.removeEventListener("touchstart"),window.removeEventListener("touchmove")}}}]},ht=e=>{e.$renderjs||(e.$renderjs=[]),e.$renderjs.push("pagingRenderjs"),e.mixins||(e.mixins=[]),e.mixins.push({beforeCreate(){this.pagingRenderjs=this},mounted(){this.$ownerInstance=this.$gcd(this,!0)}}),e.mixins.push(nt)};rt(Oe),ht(Oe);const dt=Z(Oe,[["render",function(u,p,f,m,S,w){const R=g,C=B("z-paging-refresh"),A=c,x=d,M=B("z-paging-load-more"),I=P(D("z-paging-empty-view"),se),L=z;return e(),t(R,{class:h({"z-paging-content":!0,"z-paging-content-fixed":!u.usePageScroll&&u.fixed,"z-paging-content-page":u.usePageScroll,"z-paging-reached-top":u.renderPropScrollTop<1}),style:a([u.finalPagingStyle])},{default:i((()=>[-1===u.cssSafeAreaInsetBottom?(e(),t(R,{key:0,class:"zp-safe-area-inset-bottom"})):n("v-if",!0),n(" 顶部固定的slot "),!u.usePageScroll&&u.zSlots.top?V(u.$slots,"top",{key:1},void 0,!0):u.usePageScroll&&u.zSlots.top?(e(),t(R,{key:2,class:"zp-page-top",style:a([{top:`${u.windowTop}px`,"z-index":u.topZIndex}])},{default:i((()=>[V(u.$slots,"top",{},void 0,!0)])),_:3},8,["style"])):n("v-if",!0),o(R,{class:h({"zp-view-super":!0,"zp-scroll-view-super":!u.usePageScroll}),style:a([u.finalScrollViewStyle])},{default:i((()=>[u.zSlots.left?(e(),t(R,{key:0,class:h({"zp-page-left":!0,"zp-absoulte":u.finalIsOldWebView})},{default:i((()=>[V(u.$slots,"left",{},void 0,!0)])),_:3},8,["class"])):n("v-if",!0),o(R,{class:h({"zp-scroll-view-container":!0,"zp-absoulte":u.finalIsOldWebView}),style:a([u.scrollViewContainerStyle])},{default:i((()=>[o(L,{ref:"zp-scroll-view",class:h({"zp-scroll-view":!0,"zp-scroll-view-absolute":!u.usePageScroll,"zp-scroll-view-hide-scrollbar":!u.showScrollbar}),"scroll-top":u.scrollTop,"scroll-x":u.scrollX,"scroll-y":u.scrollable&&!u.usePageScroll&&u.scrollEnable&&(!!u.refresherCompleteScrollable||u.refresherStatus!==u.R.Complete),"enable-back-to-top":u.finalEnableBackToTop,"show-scrollbar":u.showScrollbar,"scroll-with-animation":u.finalScrollWithAnimation,"scroll-into-view":u.scrollIntoView,"lower-threshold":u.finalLowerThreshold,"upper-threshold":5,"refresher-enabled":u.finalRefresherEnabled&&!u.useCustomRefresher,"refresher-threshold":u.finalRefresherThreshold,"refresher-default-style":u.finalRefresherDefaultStyle,"refresher-background":u.refresherBackground,"refresher-triggered":u.finalRefresherTriggered,onScroll:u._scroll,onScrolltolower:u._onScrollToLower,onScrolltoupper:u._onScrollToUpper,onRefresherrestore:u._onRestore,onRefresherrefresh:p[1]||(p[1]=e=>u._onRefresh(!0))},{default:i((()=>[o(R,{class:"zp-paging-touch-view",onTouchstart:u.pagingWxs.touchstart,onTouchmove:u.pagingWxs.touchmove,onTouchend:u.pagingWxs.touchend,onTouchcancel:u.pagingWxs.touchend,onMousedown:u.pagingWxs.mousedown,onMousemove:u.pagingWxs.mousemove,onMouseup:u.pagingWxs.mouseup,onMouseleave:u.pagingWxs.mouseleave},{default:i((()=>[u.finalRefresherFixedBacHeight>0?(e(),t(R,{key:0,class:"zp-fixed-bac-view",style:a([{background:u.refresherFixedBackground,height:`${u.finalRefresherFixedBacHeight}px`}])},null,8,["style"])):n("v-if",!0),o(R,{class:"zp-paging-main",style:a([u.scrollViewInStyle,{transform:u.finalRefresherTransform,transition:u.refresherTransition}]),"change:prop":u.pagingWxs.propObserver,prop:u.wxsPropType,"data-refresherThreshold":u.finalRefresherThreshold,"data-isIos":u.isIos,"data-loading":u.loading||u.isRefresherInComplete,"data-useChatRecordMode":u.useChatRecordMode,"data-refresherEnabled":u.refresherEnabled,"data-useCustomRefresher":u.useCustomRefresher,"data-pageScrollTop":u.wxsPageScrollTop,"data-scrollTop":u.wxsScrollTop,"data-refresherMaxAngle":u.refresherMaxAngle,"data-refresherAecc":u.refresherAngleEnableChangeContinued,"data-usePageScroll":u.usePageScroll,"data-watchTouchDirectionChange":u.watchTouchDirectionChange,"data-oldIsTouchmoving":u.isTouchmoving,"data-refresherOutRate":u.finalRefresherOutRate,"data-refresherPullRate":u.finalRefresherPullRate,"data-hasTouchmove":u.hasTouchmove,"change:renderPropIsIosAndH5":u.pagingRenderjs.renderPropIsIosAndH5Change,renderPropIsIosAndH5:u.isIosAndH5},{default:i((()=>[u.showRefresher?(e(),t(R,{key:0,class:"zp-custom-refresher-view",style:a([{"margin-top":`-${u.finalRefresherThreshold}px`,background:u.refresherBackground,opacity:u.isTouchmoving?1:0}])},{default:i((()=>[o(R,{class:"zp-custom-refresher-container",style:a([{height:`${u.finalRefresherThreshold}px`,background:u.refresherBackground}])},{default:i((()=>[n(" 下拉刷新view "),o(R,{class:"zp-custom-refresher-slot-view"},{default:i((()=>[u.zSlots.refresherComplete&&u.refresherStatus===u.R.Complete?n("v-if",!0):V(u.$slots,"refresher",{key:0,refresherStatus:u.refresherStatus},void 0,!0)])),_:3}),u.zSlots.refresherComplete&&u.refresherStatus===u.R.Complete?V(u.$slots,"refresherComplete",{key:0},void 0,!0):u.showCustomRefresher?n("v-if",!0):(e(),t(C,{key:1,ref:"refresh",style:a([{height:`${u.finalRefresherThreshold}px`}]),status:u.refresherStatus,defaultThemeStyle:u.finalRefresherThemeStyle,defaultText:u.finalRefresherDefaultText,pullingText:u.finalRefresherPullingText,refreshingText:u.finalRefresherRefreshingText,completeText:u.finalRefresherCompleteText,defaultImg:u.refresherDefaultImg,pullingImg:u.refresherPullingImg,refreshingImg:u.refresherRefreshingImg,completeImg:u.refresherCompleteImg,showUpdateTime:u.showRefresherUpdateTime,updateTimeKey:u.refresherUpdateTimeKey,updateTimeTextMap:u.finalRefresherUpdateTimeTextMap,imgStyle:u.refresherImgStyle,titleStyle:u.refresherTitleStyle,updateTimeStyle:u.refresherUpdateTimeStyle},null,8,["style","status","defaultThemeStyle","defaultText","pullingText","refreshingText","completeText","defaultImg","pullingImg","refreshingImg","completeImg","showUpdateTime","updateTimeKey","updateTimeTextMap","imgStyle","titleStyle","updateTimeStyle"]))])),_:3},8,["style"])])),_:3},8,["style"])):n("v-if",!0),o(R,{class:"zp-paging-container"},{default:i((()=>[u.useChatRecordMode&&u.zSlots.chatLoading&&u.loadingStatus!==u.M.NoMore&&u.realTotalData.length?V(u.$slots,"chatLoading",{key:0},void 0,!0):u.useChatRecordMode&&u.loadingStatus!==u.M.NoMore&&u.realTotalData.length?(e(),t(R,{key:1,class:"zp-chat-record-loading-container"},{default:i((()=>[u.loadingStatus!==u.M.Loading?(e(),t(A,{key:0,onClick:u._onScrollToUpper,class:h("white"===u.defaultThemeStyle?"zp-loading-more-text zp-loading-more-text-white":"zp-loading-more-text zp-loading-more-text-black")},{default:i((()=>[s(r(u.chatRecordLoadingMoreText),1)])),_:1},8,["onClick","class"])):(e(),t(x,{key:1,src:u.base64Flower,class:"zp-chat-record-loading-custom-image"},null,8,["src"]))])),_:1})):n("v-if",!0),n(" 全屏Loading "),u.showLoading&&u.zSlots.loading&&!u.loadingFullFixed?V(u.$slots,"loading",{key:2},void 0,!0):n("v-if",!0),n(" 主体内容 "),o(R,{class:"zp-paging-container-content",style:a([{transform:u.virtualPlaceholderTopHeight>0?`translateY(${u.virtualPlaceholderTopHeight}px)`:"none"},u.finalPagingContentStyle])},{default:i((()=>[V(u.$slots,"default",{},void 0,!0),n(" 内置列表&虚拟列表 "),u.finalUseInnerList?(e(),T(y,{key:0},[V(u.$slots,"header",{},void 0,!0),o(R,{class:"zp-list-container",style:a([u.innerListStyle])},{default:i((()=>[u.finalUseVirtualList?(e(!0),T(y,{key:0},E(u.virtualList,((o,r)=>(e(),t(R,{class:"zp-list-cell",style:a([u.innerCellStyle]),id:`zp-id-${o.zp_index}`,key:o.zp_unique_index,onClick:e=>u._innerCellClick(o,u.virtualTopRangeIndex+r)},{default:i((()=>[u.useCompatibilityMode?(e(),t(R,{key:0},{default:i((()=>[s("使用兼容模式请在组件源码z-paging.vue第99行中注释这一行并打开下面一行注释")])),_:1})):(e(),T(y,{key:1},[n(' <zp-public-virtual-cell v-if="useCompatibilityMode" :extraData="extraData" :item="item" :index="virtualTopRangeIndex+index" /> '),V(u.$slots,"cell",{item:o,index:u.virtualTopRangeIndex+r},void 0,!0)],2112))])),_:2},1032,["style","id","onClick"])))),128)):(e(!0),T(y,{key:1},E(u.realTotalData,((o,a)=>(e(),t(R,{class:"zp-list-cell",key:a,onClick:e=>u._innerCellClick(o,a)},{default:i((()=>[V(u.$slots,"cell",{item:o,index:a},void 0,!0)])),_:2},1032,["onClick"])))),128))])),_:3},8,["style"]),V(u.$slots,"footer",{},void 0,!0)],64)):n("v-if",!0),u.useVirtualList?(e(),t(R,{key:1,class:"zp-virtual-placeholder",style:a([{height:u.virtualPlaceholderBottomHeight+"px"}])},null,8,["style"])):n("v-if",!0),n(" 上拉加载更多view "),u.showLoadingMoreDefault?V(u.$slots,"loadingMoreDefault",{key:2},void 0,!0):u.showLoadingMoreLoading?V(u.$slots,"loadingMoreLoading",{key:3},void 0,!0):u.showLoadingMoreNoMore?V(u.$slots,"loadingMoreNoMore",{key:4},void 0,!0):u.showLoadingMoreFail?V(u.$slots,"loadingMoreFail",{key:5},void 0,!0):u.showLoadingMoreCustom?(e(),t(M,{key:6,onDoClick:p[0]||(p[0]=e=>u._onLoadingMore("click")),zConfig:u.zLoadMoreConfig},null,8,["zConfig"])):n("v-if",!0),u.safeAreaInsetBottom&&u.useSafeAreaPlaceholder?(e(),t(R,{key:7,class:"zp-safe-area-placeholder",style:a([{height:u.safeAreaBottom+"px"}])},null,8,["style"])):n("v-if",!0)])),_:3},8,["style"]),n(" 空数据图 "),u.showEmpty?(e(),t(R,{key:3,class:h({"zp-empty-view":!0,"zp-empty-view-center":u.emptyViewCenter}),style:a([{emptyViewSuperStyle:u.emptyViewSuperStyle}])},{default:i((()=>[u.zSlots.empty?V(u.$slots,"empty",{key:0,isLoadFailed:u.isLoadFailed},void 0,!0):(e(),t(I,{key:1,emptyViewImg:u.finalEmptyViewImg,emptyViewText:u.finalEmptyViewText,showEmptyViewReload:u.finalShowEmptyViewReload,emptyViewReloadText:u.finalEmptyViewReloadText,isLoadFailed:u.isLoadFailed,emptyViewStyle:u.emptyViewStyle,emptyViewTitleStyle:u.emptyViewTitleStyle,emptyViewImgStyle:u.emptyViewImgStyle,emptyViewReloadStyle:u.emptyViewReloadStyle,emptyViewZIndex:u.emptyViewZIndex,emptyViewFixed:u.emptyViewFixed,onReload:u._emptyViewReload,onViewClick:u._emptyViewClick},null,8,["emptyViewImg","emptyViewText","showEmptyViewReload","emptyViewReloadText","isLoadFailed","emptyViewStyle","emptyViewTitleStyle","emptyViewImgStyle","emptyViewReloadStyle","emptyViewZIndex","emptyViewFixed","onReload","onViewClick"]))])),_:3},8,["class","style"])):n("v-if",!0)])),_:3})])),_:3},8,["style","change:prop","prop","data-refresherThreshold","data-isIos","data-loading","data-useChatRecordMode","data-refresherEnabled","data-useCustomRefresher","data-pageScrollTop","data-scrollTop","data-refresherMaxAngle","data-refresherAecc","data-usePageScroll","data-watchTouchDirectionChange","data-oldIsTouchmoving","data-refresherOutRate","data-refresherPullRate","data-hasTouchmove","change:renderPropIsIosAndH5","renderPropIsIosAndH5"])])),_:3},8,["onTouchstart","onTouchmove","onTouchend","onTouchcancel","onMousedown","onMousemove","onMouseup","onMouseleave"])])),_:3},8,["class","scroll-top","scroll-x","scroll-y","enable-back-to-top","show-scrollbar","scroll-with-animation","scroll-into-view","lower-threshold","refresher-enabled","refresher-threshold","refresher-default-style","refresher-background","refresher-triggered","onScroll","onScrolltolower","onScrolltoupper","onRefresherrestore"])])),_:3},8,["class","style"]),u.zSlots.right?(e(),t(R,{key:1,class:h({"zp-page-right":!0,"zp-absoulte zp-right":u.finalIsOldWebView})},{default:i((()=>[V(u.$slots,"right",{},void 0,!0)])),_:3},8,["class"])):n("v-if",!0)])),_:3},8,["class","style"]),n(" 底部固定的slot "),!u.usePageScroll&&u.zSlots.bottom?V(u.$slots,"bottom",{key:3},void 0,!0):u.usePageScroll&&u.zSlots.bottom?(e(),t(R,{key:4,class:"zp-page-bottom",style:a([{bottom:`${u.windowBottom}px`}])},{default:i((()=>[V(u.$slots,"bottom",{},void 0,!0)])),_:3},8,["style"])):n("v-if",!0),n(" 点击返回顶部view "),u.showBackToTopClass?(e(),t(R,{key:5,class:h(u.backToTopClass),style:a([u.finalBackToTopStyle]),onClick:l(u._backToTopClick,["stop"])},{default:i((()=>[u.zSlots.backToTop?V(u.$slots,"backToTop",{key:0},void 0,!0):(e(),t(x,{key:1,class:"zp-back-to-top-img",src:u.backToTopImg.length?u.backToTopImg:u.base64BackToTop},null,8,["src"]))])),_:3},8,["class","style","onClick"])):n("v-if",!0),n(" 全屏Loading(铺满z-paging并固定) "),u.showLoading&&u.zSlots.loading&&u.loadingFullFixed?(e(),t(R,{key:6,class:"zp-loading-fixed"},{default:i((()=>[V(u.$slots,"loading",{},void 0,!0)])),_:3})):n("v-if",!0)])),_:3},8,["class","style"])}],["__scopeId","data-v-076a65d5"]]),ct=H({__name:"ListLayout",emits:["register"],setup(a,{emit:r}){const l=_([]);_(!1);const h=_(null),c={"auto-clean-list-when-reload":!1,"loading-full-fixed":!0};let u,p=_({});async function f(e,t){if(!u.query)throw new Error("Query Function not implemented.");u.query(e,t)}function m(e){var t;if(u.param=Object.assign({},u.param,{[u.searchKey||"keywords"]:e}),!u.query)throw new Error("Query Function not implemented.");u.query(1,(null==(t=u.componentProps)?void 0:t.defaultPageSize)||10)}return r("register",(e=>{p.value=e.componentProps?e.componentProps:{},u=O(e)}),h),(a,r)=>{const S=P(D("BasicLoading"),J),w=d,R=g,C=P(D("BasicSearch"),G),A=P(D("z-paging"),dt);return e(),t(A,F({ref_key:"pagingRef",ref:h,modelValue:N(l),"onUpdate:modelValue":r[0]||(r[0]=e=>U(l)?l.value=e:null),onQuery:f},Object.assign({},c,N(p))),{loading:i((()=>[o(S,{isShow:!0,bgColor:"#fff"})])),empty:i((()=>[o(R,{class:"flex-col-center"},{default:i((()=>[o(R,{style:{width:"300rpx",height:"300rpx"}},{default:i((()=>[o(w,{src:"/zhxy-jsd/assets/zwjl-7ebe02a1.png",class:"wh-full"})])),_:1}),o(R,{class:"color-9"},{default:i((()=>[s("暂无数据...")])),_:1})])),_:1})])),top:i((()=>[V(a.$slots,"top"),N(u).showSearch?(e(),t(R,{key:0,class:"px-15 pt-15"},{default:i((()=>[o(C,{bgColor:"#fff",placeholder:N(u).placeholder,onChange:m,inputStyle:{height:"37px"}},null,8,["placeholder"])])),_:1})):n("v-if",!0)])),bottom:i((()=>[V(a.$slots,"bottom")])),default:i((()=>[o(R,{class:"p-15"},{default:i((()=>[(e(!0),T(y,null,E(N(l),((o,s)=>(e(),t(R,{key:o.id||s},{default:i((()=>[V(a.$slots,"default",{data:o,index:s,list:N(l)})])),_:2},1024)))),128))])),_:3})])),_:3},16,["modelValue"])}}});function gt(e){let t;e.query||(e.query=async function(i,o){if(K.isFunction(e.api))try{const a=await e.api(Object.assign({},{rows:o,page:i},e.param));await W(),t.value&&await t.value.complete(a[e.resultKey||"rows"])}catch(a){console.log("err",a),t.value&&await t.value.complete(!1)}});return[(i,o)=>{t=o,i(e)},{reload:async(e=!1)=>{e&&Q({title:"加载中..."}),await W(),t.value&&await t.value.reload(!1),j()},setParam:t=>{e.param=Object.assign({},e.param,t)}}]}export{ct as _,gt as u};