@quicktvui/quicktvui3 0.0.11 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.css +24 -4
- package/dist/index.js +1 -1
- package/dist/src/index.d.ts +2 -0
- package/dist/src/list-view/core/QTIListView.d.ts +1 -1
- package/dist/src/nav-bar/QTINavBar.d.ts +1 -1
- package/dist/src/nav-bar/QTNavBar.d.ts +2 -0
- package/dist/src/nav-bar/QTNavBarItem.d.ts +5 -3
- package/dist/src/nav-bar/QTNavBarItemType.d.ts +3 -0
- package/dist/src/nav-bar/index.vue.d.ts +2 -3
- package/dist/src/tab/QTITab.d.ts +13 -1
- package/dist/src/tab/QTTab.d.ts +1 -1
- package/dist/src/tab/QTTabDataManager.d.ts +23 -0
- package/dist/src/tab/QTTabIndex.d.ts +7 -0
- package/dist/src/tab/QTTabPageData.d.ts +5 -0
- package/dist/src/tab/QTTabPageState.d.ts +6 -0
- package/dist/src/tab/index.vue.d.ts +16 -0
- package/dist/src/waterfall/core/QTIWaterfall.d.ts +5 -0
- package/dist/src/waterfall/core/QTWaterfallDataAdapter.d.ts +2 -2
- package/dist/src/waterfall/core/QTWaterfallDataManager.d.ts +6 -1
- package/dist/src/waterfall/core/QTWaterfallEvent.d.ts +8 -0
- package/dist/src/waterfall/core/QTWaterfallSection.d.ts +2 -1
- package/dist/src/waterfall/core/QTWaterfallSectionType.d.ts +3 -1
- package/dist/src/waterfall/index.vue.d.ts +13 -7
- package/dist/src/waterfall/section/blank-section.vue.d.ts +2 -0
- package/dist/src/waterfall/section/end-section.vue.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.css
CHANGED
|
@@ -240,8 +240,10 @@
|
|
|
240
240
|
|
|
241
241
|
.qt-ui-nav-bar-root-horizontal {
|
|
242
242
|
height: 72px;
|
|
243
|
+
background-color: transparent;
|
|
243
244
|
}
|
|
244
245
|
.qt-ui-nav-bar-root-vertical {
|
|
246
|
+
background-color: transparent;
|
|
245
247
|
}
|
|
246
248
|
.qt-ui-nav-bar-item-css {
|
|
247
249
|
padding-left: 40px;
|
|
@@ -313,6 +315,22 @@
|
|
|
313
315
|
|
|
314
316
|
|
|
315
317
|
|
|
318
|
+
.qt-waterfall-end-section-css[data-v-70b82c43] {
|
|
319
|
+
background-color: transparent;
|
|
320
|
+
align-items: center;
|
|
321
|
+
display: flex;
|
|
322
|
+
flex-direction: column;
|
|
323
|
+
justify-content: center;
|
|
324
|
+
}
|
|
325
|
+
.qt-waterfall-end-section-text-css[data-v-70b82c43] {
|
|
326
|
+
width: 500px;
|
|
327
|
+
height: 50px;
|
|
328
|
+
color: rgba(255, 255, 255, .5);
|
|
329
|
+
align-self: center;
|
|
330
|
+
background-color: transparent;
|
|
331
|
+
}
|
|
332
|
+
|
|
333
|
+
|
|
316
334
|
.section-title-css[data-v-20428d40] {
|
|
317
335
|
width: 1920px;
|
|
318
336
|
height: 60px;
|
|
@@ -330,7 +348,13 @@
|
|
|
330
348
|
|
|
331
349
|
|
|
332
350
|
|
|
351
|
+
.qt-ui-waterfall-blank-section[data-v-eeab4d88] {
|
|
352
|
+
background-color: transparent;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
|
|
333
356
|
.qt-waterfall-root-css[data-v-2e65df68] {
|
|
357
|
+
background-color: transparent;
|
|
334
358
|
}
|
|
335
359
|
|
|
336
360
|
|
|
@@ -341,8 +365,4 @@
|
|
|
341
365
|
.tab-nav-bar-root-css {
|
|
342
366
|
background-color: transparent;
|
|
343
367
|
}
|
|
344
|
-
.tab-content-css {
|
|
345
|
-
width: 1920px;
|
|
346
|
-
height: 1008px;
|
|
347
|
-
}
|
|
348
368
|
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Native as e}from"@extscreen/es3-vue";import{defineComponent as t,ref as o,resolveComponent as n,openBlock as a,createElementBlock as s,normalizeStyle as r,normalizeClass as l,createCommentVNode as i,withDirectives as c,vShow as u,createBlock as d,toDisplayString as p,renderSlot as f,watch as g,onMounted as h,onBeforeUnmount as m,withCtx as y,Fragment as v,createVNode as T,createElementVNode as b,pushScopeId as _,popScopeId as S,reactive as I,h as k}from"vue";import{useESToast as x,useES as F,useESLog as P,ESLogLevel as N}from"@extscreen/es3-core";var D=t({name:"qt-button",props:{type:{type:String,default:"default"},itemType:{type:Number,default:2e4},focusBorder:{type:Boolean,default:!1},focusScale:{type:Number,default:1.08},focusable:{type:Boolean,default:!0},enableFlexStyle:{type:Boolean,default:!1},icon:{type:String,default:null},focusIcon:{type:String,default:null},text:{type:String,default:""},gradientFocusBackground:{type:Object,default:()=>{}},gradientSelectedBackground:{type:Object,default:()=>null},gradientBackground:{type:Object,default:()=>null},size:String,disabled:Boolean,circle:Boolean,round:Boolean,square:Boolean,buttonStyle:Object,textStyle:Object,iconStyle:Object,focusIconStyle:Object,iconParentStyle:Object},setup(t,n){const a=o(),s=o(!1);return{focused:s,requestFocus:function(){e.callUIFunction(a.value,"requestFocus",[])},requestFocusDirectly:function(){e.callUIFunction(a.value,"requestFocusDirectly",[])},onFocus:function(e){s.value=e.isFocused,n.emit("focus",e.isFocused)},onClick:function(e){n.emit("click")}}}});const E=["focusable","enableFocusBorder","focusScale"],C=["gradientBackground"],R=["gradientBackground"],L=["gradientBackground"],w=["src"],O=["src"];D.render=function(e,t,o,g,h,m){const y=n("text-view");return a(),s("div",{ref:"buttonRef",clipChildren:!1,focusable:e.focusable,enableFocusBorder:e.focusBorder,focusScale:e.focusScale,onClick:t[0]||(t[0]=(...t)=>e.onClick&&e.onClick(...t)),name:"textButton",eventClick:"",eventFocus:"",onFocus:t[1]||(t[1]=(...t)=>e.onFocus&&e.onFocus(...t)),style:r(e.buttonStyle),class:l([e.type?"quick-button--"+e.type:"",e.size?"quick-button--"+e.size:"",{"is-disabled-button":e.disabled,"is-circle":e.circle,"is-round":e.round,"is-square":e.square}])},[i(" gradient "),e.gradientFocusBackground?(a(),s("div",{key:0,class:"button-gradient-background-css",gradientBackground:e.gradientFocusBackground,focusable:!1,showOnState:"focused"},null,8,C)):i("v-if",!0),e.gradientSelectedBackground?(a(),s("div",{key:1,class:"button-gradient-background-css",gradientBackground:e.gradientSelectedBackground,focusable:!1,showOnState:"selected"},null,8,R)):i("v-if",!0),e.gradientBackground?(a(),s("div",{key:2,class:"button-gradient-background-css",gradientBackground:e.gradientBackground,focusable:!1,showOnState:"normal"},null,8,L)):i("v-if",!0),i(" -----------------------------icon--------------------------------- "),!e.icon&&!e.focusIcon||e.$slots.default?i("v-if",!0):(a(),s("div",{key:3,duplicateParentState:!0,style:r(e.iconParentStyle),flexStyle:"${iconParentStyle}",class:l(["quick-button-icon-parent",e.size?"quick-button-icon--parent"+e.size:""])},[e.icon&&!e.$slots.default?c((a(),s("img",{key:0,style:r(e.iconStyle),flexStyle:"${iconStyle}",duplicateParentState:!0,class:l(["quick-button-icon",e.size?"quick-button-icon--"+e.size:"",{"is-square-icon":e.square}]),focusable:!1,src:e.enableFlexStyle?"${"+e.icon+"}":e.icon,showOnState:"normal"},null,14,w)),[[u,!e.focused]]):i("v-if",!0),e.focusIcon&&!e.$slots.default?c((a(),s("img",{key:1,style:r(e.focusIconStyle?e.focusIconStyle:e.iconStyle),flexStyle:"${iconStyle}",class:l(["quick-button-icon",e.size?"quick-button-icon--"+e.size:"",{"is-square-icon":e.square}]),focusable:!1,duplicateParentState:!0,src:e.enableFlexStyle?"${"+e.focusIcon+"}":e.focusIcon,showOnState:"focused"},null,14,O)),[[u,e.focused]]):i("v-if",!0)],6)),i(" ------------------------------------------------------------------- "),i(" text "),e.enableFlexStyle?(a(),d(y,{key:4,style:r(e.textStyle),duplicateParentState:"",class:l([e.type?"quick-button-text--"+e.type:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1,text:"${"+e.text+"}",autoWidth:"",autoHeight:""},null,8,["style","class","text"])):e.text&&!e.$slots.default?(a(),s("span",{key:5,style:r(e.textStyle),duplicateParentState:"",class:l([e.type?"quick-button-text--"+e.type:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1},p(e.text),7)):i("v-if",!0),f(e.$slots,"default")],46,E)},D.__scopeId="data-v-46a594e4",D.__file="src/button/index.vue";var A=t({name:"qt-grid-view",props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},spanCount:{type:Number,default:0},pageSize:{type:Number},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1},areaWidth:{type:Number,default:1200},blockFocusDirections:{type:Array,default:()=>[]}},setup(e,t){x();const n=F(),a=o(),s={apkVersion:String(n.getESSDKVersionCode()).slice(0,3),recordTarget:[],changeTarget:[],listResult:[],keyArr:[],type:"",pageNo:-1,isStopPage:!1,setListDataTimer:-1,stopPageTimer:-1,defaultFocusTimer:-1,pushDataTimer:-1};g((()=>e.openPage),((t,o)=>{1==t&&t&&(s.pageNo=1,s.isStopPage=!1,e.loadMore(s.pageNo))})),h((()=>{}));const r=t=>{0==s.recordTarget.length&&(s.recordTarget=i(t),s.changeTarget=t,"2.1"==s.apkVersion?(l(),e.openPage&&e.pageSize&&s.listResult.length>=e.pageSize/e.spanCount?a.value.setListData(s.listResult.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.listResult)):e.openPage&&e.pageSize&&s.recordTarget.length>=e.pageSize?a.value.setListData(s.recordTarget.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.recordTarget),e.defaultFocus>-1&&(s.defaultFocusTimer&&clearTimeout(s.defaultFocusTimer),s.defaultFocusTimer=setTimeout((()=>{a.value.scrollToPosition(e.defaultFocus),a.value.setItemFocused(e.defaultFocus)}),800)));let o={get(t,o,n){if("__ob__"!=o&&"symbol"!=typeof o&&"map"!=o&&"length"!=o&&"constructor"!=o&&"_isVue"!=o&&"valueOf"!=o&&"toString"!=o&&"observeArray"!=o&&"dep"!=o&&"notify"!=o&&"subs"!=o&&"slice"!=o)if(s.keyArr.push(o),-1!=s.keyArr.indexOf("push"))s.type="push";else{if(-1!=s.keyArr.indexOf("splice"))return s.type="splice",function(...e){if(t.splice(...e),"2.1"==s.apkVersion)if(1==e.length||2==e.length)s.recordTarget.splice(...e),l(),a.value.setListData(s.listResult);else if(t.splice(e[0],e[1],...e[2]),s.recordTarget.splice(e[0],e[1],...e[2]),l(),0==e[1])a.value.setListData(s.listResult);else{let t=-1,o=0,n=0;for(let a=0;a<s.listResult.length;a++){const r=s.listResult[a];if("1003"==r.type)t++,e[0]==t&&(o=a),e[0]+e[1]-1==t&&(n=a);else for(let s=0;s<r.list.length;s++)r.list[s],t++,e[0]==t&&(o=a),e[0]+e[1]-1==t&&(n=a)}a.value.updateItemRange(o,n-o+1,s.listResult.slice(o,n+1))}else 1==e.length?(a.value.deleteItemRange(Number(e[0]),s.recordTarget.length-e[0]),s.recordTarget.splice(...e)):2==e.length?(a.value.deleteItemRange(Number(e[0]),e[1]),s.recordTarget.splice(...e)):3==e.length&&(t.splice(e[0],e[1],...e[2]),s.recordTarget.splice(e[0],e[1],...e[2]),0==e[1]?Number(s.apkVersion)>2.2&&a.value.insertItemRange(e[0],e[2]):a.value.updateItemRange(e[0],e[1],e[2]));return s.keyArr=[],Reflect.get(t,o,n)};if(-1!=s.keyArr.indexOf("pop"))return s.type="pop",function(){return t.pop(),"2.1"==s.apkVersion?(s.listResult[s.listResult.length-1].list.length<1&&s.listResult.pop(),s.listResult[s.listResult.length-1].list.pop(),a.value.updateItem(Number(s.listResult.length-1),s.listResult[s.listResult.length-1])):a.value.deleteItemRange(Number(s.recordTarget.length-1),1),s.recordTarget.pop(),s.keyArr=[],Reflect.get(t,o,n)};if(-1!=s.keyArr.indexOf("forEach"))return s.type="forEach",function(r){return t.forEach((e=>{r(e)})),s.recordTarget=[],s.recordTarget=i(t),"2.1"==s.apkVersion?(l(),e.openPage&&e.pageSize&&s.listResult.length>=e.pageSize&&!s.isStopPage?a.value.setListData(s.listResult.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.listResult)):e.openPage&&e.pageSize&&s.recordTarget.length>=e.pageSize&&!s.isStopPage?a.value.setListData(s.recordTarget.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.recordTarget),s.keyArr=[],Reflect.get(t,o,n)};if(-1!=s.keyArr.indexOf("concat"))return s.type="concat",function(r){if("[object Array]"===Object.prototype.toString.call(r))if(t.concat(r),s.recordTarget.concat(r),"2.1"==s.apkVersion){s.pushDataTimer&&clearTimeout(s.pushDataTimer);let t=s.listResult.length,o=s.listResult.slice(s.listResult.length-1)[0];l();let n=s.listResult.slice(t);e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?0==n.length||"1003"!=o.type&&o.list.length<e.spanCount?(n=s.listResult.slice(t-1),s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(n.concat([{type:"1002",decoration:{top:15,left:30}}]),2)}),300)):s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(n.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(n.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):a.value.setListData(s.listResult)}else e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(r.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(r.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(r)}),300);else console.log("concat:参数类型必须为数组");return s.keyArr=[],Reflect.get(t,o,n)};if(-1!=s.keyArr.indexOf("deleteItem"))return function(...e){let r=!1;for(let o=0;o<s.recordTarget.length;o++){const n=s.recordTarget[o];0!=n.id&&!n.id||n.id!=e[0]||(r=!0,t.splice(Number(o),e[1]),s.recordTarget.splice(Number(o),e[1]),"2.1"==s.apkVersion?(l(),a.value.setListData(s.listResult)):a.value.deleteItemRange(Number(o),e[1]))}return r||console.log("deleteItem:没有找到相对应id"),s.keyArr=[],Reflect.get(t,o,n)};if(-1!=s.keyArr.indexOf("updateItemProps"))return s.type="updateItemProps",function(...e){let r=e[2];if(c(r))if(Object.keys(r).forEach((o=>{t[e[0]][`${o}`]=r[`${o}`],s.recordTarget[e[0]][`${o}`]=r[`${o}`]})),"2.1"==s.apkVersion){l();let t=-1,o=0,n=0;for(let a=0;a<s.listResult.length;a++){const r=s.listResult[a];if("1003"==r.type)t++,e[0]==t&&(o=a,n=0);else for(let s=0;s<r.list.length;s++)r.list[s],t++,e[0]==t&&(o=a,n=s)}a.value.dispatchItemFunction(o,"tv_list_inner","updateItemProps",[n,e[1],e[2]])}else a.value.updateItemProps(e[0],e[1],e[2]);return s.keyArr=[],Reflect.get(t,o,n)};s.type=""}const u=Reflect.get(t,o,n);return c(u)&&"__ob__"!=o&&"dep"!=o&&"subs"!=o?r(u):(-1==s.keyArr.indexOf("push")&&(s.keyArr=[]),u)},set(t,o,n,r){const i=t[o],u=Reflect.set(t,o,n,r);if((!c(i)&&i!==n||c(i))&&"push"!=s.type)if(s.keyArr.push(o),s.recordTarget[s.keyArr[0]]=s.changeTarget[s.keyArr[0]],"2.1"==s.apkVersion){let e=s.keyArr[0],t=-1;for(let o=0;o<s.listResult.length;o++){const n=s.listResult[o];if("1003"==n.type)t++,t==e&&(s.listResult[o]=s.recordTarget[s.keyArr[0]],a.value.updateItem(Number(o),s.listResult[o]));else for(let r=0;r<n.list.length;r++)if(n.list[r],t++,t==e){s.listResult[o].list[r]=s.recordTarget[s.keyArr[0]];let e=s.listResult[o].list[r];e.decoration&&(e.decoration.top&&(e.decoration.top=0),e.decoration.bottom&&(e.decoration.bottom=0)),a.value.updateItem(Number(o),s.listResult[o])}}}else a.value.updateItem(Number(s.keyArr[0]),s.changeTarget[s.keyArr[0]]);if(o&&"push"==s.type&&i!==n)s.keyArr.push(o),s.recordTarget.push(n);else{if("push"==s.type&&s.keyArr.length>1)if("2.1"==s.apkVersion){s.pushDataTimer&&clearTimeout(s.pushDataTimer);let t=s.listResult.length,o=s.listResult.slice(s.listResult.length-1)[0];l();let n=s.listResult.slice(t);e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?0==n.length||"1003"!=o.type&&o.list.length<e.spanCount?(n=s.listResult.slice(t-1),s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(n.concat([{type:"1002",decoration:{top:15,left:30}}]),2)}),300)):s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(n.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(n.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):a.value.setListData(s.listResult)}else{let t=s.recordTarget.slice(s.keyArr[1]);s.pushDataTimer&&clearTimeout(s.pushDataTimer),e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(t.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(t.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(t)}),300)}s.keyArr=[]}return u}};return new Proxy(t,o)},l=()=>{let t=i(s.recordTarget);s.listResult=[];let o=0,n=[];for(let e=0;e<t.length;e++){let o=t[e];if("1003"==o.type)n.push(o);else if(o.decoration.top&&(o.toCompatibleSaveTopVal=o.decoration.top,o.decoration.top=0),o.decoration.bottom&&(o.toCompatibleSaveBottompVal=o.decoration.bottom,o.decoration.bottom=0),n[n.length-1]&&1==n[n.length-1].type)n[n.length-1].list.push(o);else{let e={type:1,list:[]};e.list.push(o),n.push(e)}}for(let t=0;t<n.length;t++){const a=n[t];if("1003"==a.type)s.listResult.push(a);else for(let t=0;t<a.list.length;t+=e.spanCount){const n=a.list[t];let r={top:-1,bottom:-1};n.decoration&&(r.top=n.toCompatibleSaveTopVal?n.toCompatibleSaveTopVal:0,r.bottom=n.toCompatibleSaveBottompVal?n.toCompatibleSaveBottompVal:0);const l={type:1,decoration:r,name:"name"+o,list:a.list.slice(t,t+e.spanCount)};o++,s.listResult.push(l)}}},i=(e={})=>{let t=null;if("object"==typeof e&&null!==e)for(var o in t=e instanceof Array?[]:{},e)t[o]=i(e[o]);else t=e;return t},c=e=>null!==e&&"object"==typeof e,u=e=>{if("2.1"==s.apkVersion){let t=-1;for(let o=0;o<s.listResult.length;o++){const n=s.listResult[o];if("1003"==n.type)t++,t==e&&a.value.scrollToPosition(o);else for(let s=0;s<n.list.length;s++)n.list[s],t++,t==e&&a.value.scrollToPosition(o)}}else a.value.scrollToPosition(e)},d=e=>{if("2.1"==s.apkVersion){let t=-1,o=0,n=0;for(let a=0;a<s.listResult.length;a++){const r=s.listResult[a];if("1003"==r.type)t++;else for(let s=0;s<r.list.length;s++)r.list[s],t++,e==t&&(o=a,n=s)}a.value.dispatchItemFunction(o,"tv_list_inner","requestChildFocus",[n])}else a.value.requestChildFocus(e)},p=(e,t)=>{if("2.1"==s.apkVersion){let t=-1,o=0,n=0;for(let a=0;a<s.listResult.length;a++){const r=s.listResult[a];if("1003"==r.type)t++;else for(let s=0;s<r.list.length;s++)r.list[s],t++,e==t&&(o=a,n=s)}a.value.dispatchItemFunction(o,"tv_list_inner","setSelectChildPosition",[n])}else a.value.setSelectChildPosition(e,t)},f=()=>{a.value.destroy()};return m((()=>{s.recordTarget=[],s.listResult=[],s.changeTarget=null,s.isStopPage=!1,s.keyArr=[],s.pageNo=1,s.isStopPage=!1,s.type="",f(),s.setListDataTimer&&clearTimeout(s.setListDataTimer),s.pushDataTimer&&clearTimeout(s.pushDataTimer),s.stopPageTimer&&clearTimeout(s.stopPageTimer),s.defaultFocusTimer&&clearTimeout(s.defaultFocusTimer)})),{tv_list:a,...s,init:r,dealData:l,copyObj:i,isObject:c,hasChanged:(e,t)=>e!==t&&(e==e||t==t),hasOwn:(e,t)=>{Object.hasOwnProperty.call(e,t)},onItemClick:e=>{if("2.1"==s.apkVersion){let t=-1,o=e.position,n=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const r=s.listResult[a];if("1003"==r.type)t++;else for(let s=0;s<r.list.length;s++)t++,o==s&&n==a&&(e.position=t)}}t.emit("item-click",e)},onItemBind:o=>{"2.1"==s.apkVersion?s.isStopPage||o.position!=s.listResult.length-1-e.preloadNo/e.spanCount||(s.pageNo++,e.loadMore(s.pageNo)):s.isStopPage||o.position!=s.recordTarget.length-1-e.preloadNo||(s.pageNo++,e.loadMore(s.pageNo)),t.emit("item-bind",o)},onItemFocused:e=>{if("2.1"==s.apkVersion){let t=-1,o=e.position,n=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const r=s.listResult[a];if("1003"==r.type)t++;else for(let s=0;s<r.list.length;s++)t++,o==s&&n==a&&(e.position=t)}}t.emit("item-focused",e)},onItemUnbind:e=>{t.emit("item-unbind",e)},onScroll:e=>{t.emit("scroll",e)},onScrollStateChanged:e=>{t.emit("scroll-state-changed",e)},stopPage:t=>{s.stopPageTimer&&clearTimeout(s.stopPageTimer),s.stopPageTimer=setTimeout((()=>{"2.1"==s.apkVersion?e.pageSize?e.pageSize/e.spanCount<=s.listResult.length&&a.value.deleteItemRange(s.listResult.length,1):s.pageNo>2&&a.value.deleteItemRange(s.listResult.length,1):e.pageSize?e.pageSize<=s.recordTarget.length&&a.value.deleteItemRange(s.recordTarget.length,1):s.pageNo>2&&a.value.deleteItemRange(s.recordTarget.length,1)}),400),s.isStopPage=!0},scrollToTop:()=>{a.value.scrollToTop()},constclearFocus:()=>{a.value.clearFocus()},blockRootFocus:()=>{a.value.blockRootFocus()},unBlockRootFocus:()=>{a.value.unBlockRootFocus()},setDisplay:e=>{a.value.setDisplay(e)},scrollToPosition:u,scrollToIndex:(e,t,o)=>{if("2.1"==s.apkVersion){let n=-1;for(let r=0;r<s.listResult.length;r++){const l=s.listResult[r];if("1003"==l.type)n++,n==e&&a.value.scrollToIndex(0,r,t,o);else for(let s=0;s<l.list.length;s++)l.list[s],n++,n==e&&a.value.scrollToIndex(0,r,t,o)}}else a.value.scrollToIndex(0,e,t,o)},setItemFocused:d,scrollToFocused:e=>{u(e),d(e)},setItemSelected:p,scrollToSelected:(e,t)=>{u(e),p(e,t)},updateItemProps:(e,t,o)=>{a.value.updateItemProps(e,t,o)},setInitPosition:e=>{a.value.setInitPosition(e)},setListData:e=>{s.setListDataTimer&&clearTimeout(s.setListDataTimer),s.setListDataTimer=setTimeout((()=>{a.value.setListData(e)}),100)},insertItemRange:(e,t)=>{a.value.insertItemRange(e,t)},clearPostTask:()=>{a.value.clearPostTask()},destroy:f}}});function $(e,t){const o=Object.create(null),n=e.split(",");for(let e=0;e<n.length;e++)o[n[e]]=!0;return t?e=>!!o[e.toLowerCase()]:e=>!!o[e]}A.render=function(e,t,o,l,i,c){const u=n("tv-list");return a(),d(u,{class:"tv_list",ref:"tv_list",name:"tv_list",spanCount:"2.1"==e.apkVersion?"":e.spanCount,onItemBind:e.onItemBind,onItemClick:e.onItemClick,onItemFocused:e.onItemFocused,onItemUnbind:e.onItemUnbind,onScroll:e.onScroll,onScrollStateChanged:e.onScrollStateChanged,onSetListData:e.setListData,blockFocusDirections:e.blockFocusDirections},{default:y((()=>["2.1"==e.apkVersion?(a(),s(v,{key:0},[f(e.$slots,"header"),T(u,{class:"tv_list_inner",ref:"${name}",list:"${list}",name:"tv_list_inner",type:"1",clipChildren:!1,focusable:!1,horizontal:"",style:r({width:e.areaWidth+"px"}),endHintEnabled:!1,blockFocusDirections:e.blockFocusDirections},{default:y((()=>[f(e.$slots,"default")])),_:3},8,["style","blockFocusDirections"]),f(e.$slots,"loading")],64)):(a(),s(v,{key:1},[f(e.$slots,"header"),f(e.$slots,"default"),f(e.$slots,"loading")],64))])),_:3},8,["spanCount","onItemBind","onItemClick","onItemFocused","onItemUnbind","onScroll","onScrollStateChanged","onSetListData","blockFocusDirections"])},A.__file="src/grid-view/index.vue";const B="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const V=()=>{},z=/^on[^a-z]/,U=e=>z.test(e),q=Object.assign,j=(e,t)=>{const o=e.indexOf(t);o>-1&&e.splice(o,1)},M=Object.prototype.hasOwnProperty,W=(e,t)=>M.call(e,t),G=Array.isArray,Y=e=>"[object Map]"===te(e),Q=e=>"[object Set]"===te(e),H=e=>"function"==typeof e,K=e=>"string"==typeof e,X=e=>"symbol"==typeof e,J=e=>null!==e&&"object"==typeof e,Z=e=>J(e)&&H(e.then)&&H(e.catch),ee=Object.prototype.toString,te=e=>ee.call(e),oe=e=>te(e).slice(8,-1),ne=e=>"[object Object]"===te(e),ae=e=>K(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,se=(e=>{const t=Object.create(null);return o=>t[o]||(t[o]=e(o))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),re=(e,t)=>!Object.is(e,t),le=(e,t,o)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:o})};let ie;const ce=()=>ie||(ie="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function ue(e){if(G(e)){const t={};for(let o=0;o<e.length;o++){const n=e[o],a=K(n)?ge(n):ue(n);if(a)for(const e in a)t[e]=a[e]}return t}return K(e)||J(e)?e:void 0}const de=/;(?![^(]*\))/g,pe=/:([^]+)/,fe=/\/\*[^]*?\*\//g;function ge(e){const t={};return e.replace(fe,"").split(de).forEach((e=>{if(e){const o=e.split(pe);o.length>1&&(t[o[0].trim()]=o[1].trim())}})),t}function he(e){let t="";if(K(e))t=e;else if(G(e))for(let o=0;o<e.length;o++){const n=he(e[o]);n&&(t+=n+" ")}else if(J(e))for(const o in e)e[o]&&(t+=o+" ");return t.trim()}function me(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let ye;const ve=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Te=e=>(e.w&Ie)>0,be=e=>(e.n&Ie)>0,_e=new WeakMap;let Se=0,Ie=1;const ke=30;let xe;const Fe=Symbol("production"!==process.env.NODE_ENV?"iterate":""),Pe=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");class Ne{constructor(e,t=null,o){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=ye){t&&t.active&&t.effects.push(e)}(this,o)}run(){if(!this.active)return this.fn();let e=xe,t=Ee;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=xe,xe=this,Ee=!0,Ie=1<<++Se,Se<=ke?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ie})(this):De(this),this.fn()}finally{Se<=ke&&(e=>{const{deps:t}=e;if(t.length){let o=0;for(let n=0;n<t.length;n++){const a=t[n];Te(a)&&!be(a)?a.delete(e):t[o++]=a,a.w&=~Ie,a.n&=~Ie}t.length=o}})(this),Ie=1<<--Se,xe=this.parent,Ee=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){xe===this?this.deferStop=!0:this.active&&(De(this),this.onStop&&this.onStop(),this.active=!1)}}function De(e){const{deps:t}=e;if(t.length){for(let o=0;o<t.length;o++)t[o].delete(e);t.length=0}}let Ee=!0;const Ce=[];function Re(){Ce.push(Ee),Ee=!1}function Le(){const e=Ce.pop();Ee=void 0===e||e}function we(e,t,o){if(Ee&&xe){let n=_e.get(e);n||_e.set(e,n=new Map);let a=n.get(o);a||n.set(o,a=ve());!function(e,t){let o=!1;Se<=ke?be(e)||(e.n|=Ie,o=!Te(e)):o=!e.has(xe);o&&(e.add(xe),xe.deps.push(e),"production"!==process.env.NODE_ENV&&xe.onTrack&&xe.onTrack(q({effect:xe},t)))}(a,"production"!==process.env.NODE_ENV?{effect:xe,target:e,type:t,key:o}:void 0)}}function Oe(e,t,o,n,a,s){const r=_e.get(e);if(!r)return;let l=[];if("clear"===t)l=[...r.values()];else if("length"===o&&G(e)){const e=Number(n);r.forEach(((t,o)=>{("length"===o||o>=e)&&l.push(t)}))}else switch(void 0!==o&&l.push(r.get(o)),t){case"add":G(e)?ae(o)&&l.push(r.get("length")):(l.push(r.get(Fe)),Y(e)&&l.push(r.get(Pe)));break;case"delete":G(e)||(l.push(r.get(Fe)),Y(e)&&l.push(r.get(Pe)));break;case"set":Y(e)&&l.push(r.get(Fe))}const i="production"!==process.env.NODE_ENV?{target:e,type:t,key:o,newValue:n,oldValue:a,oldTarget:s}:void 0;if(1===l.length)l[0]&&("production"!==process.env.NODE_ENV?Ae(l[0],i):Ae(l[0]));else{const e=[];for(const t of l)t&&e.push(...t);"production"!==process.env.NODE_ENV?Ae(ve(e),i):Ae(ve(e))}}function Ae(e,t){const o=G(e)?e:[...e];for(const e of o)e.computed&&$e(e,t);for(const e of o)e.computed||$e(e,t)}function $e(e,t){(e!==xe||e.allowRecurse)&&("production"!==process.env.NODE_ENV&&e.onTrigger&&e.onTrigger(q({effect:e},t)),e.scheduler?e.scheduler():e.run())}const Be=$("__proto__,__v_isRef,__isVue"),Ve=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(X)),ze=Ge(),Ue=Ge(!0),qe=Ge(!0,!0),je=Me();function Me(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const o=Ct(this);for(let e=0,t=this.length;e<t;e++)we(o,"get",e+"");const n=o[t](...e);return-1===n||!1===n?o[t](...e.map(Ct)):n}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Re();const o=Ct(this)[t].apply(this,e);return Le(),o}})),e}function We(e){const t=Ct(this);return we(t,"has",e),t.hasOwnProperty(e)}function Ge(e=!1,t=!1){return function(o,n,a){if("__v_isReactive"===n)return!e;if("__v_isReadonly"===n)return e;if("__v_isShallow"===n)return t;if("__v_raw"===n&&a===(e?t?St:_t:t?bt:Tt).get(o))return o;const s=G(o);if(!e){if(s&&W(je,n))return Reflect.get(je,n,a);if("hasOwnProperty"===n)return We}const r=Reflect.get(o,n,a);return(X(n)?Ve.has(n):Be(n))?r:(e||we(o,"get",n),t?r:wt(r)?s&&ae(n)?r:r.value:J(r)?e?kt(r):It(r):r)}}function Ye(e=!1){return function(t,o,n,a){let s=t[o];if(Nt(s)&&wt(s)&&!wt(n))return!1;if(!e&&(Dt(n)||Nt(n)||(s=Ct(s),n=Ct(n)),!G(t)&&wt(s)&&!wt(n)))return s.value=n,!0;const r=G(t)&&ae(o)?Number(o)<t.length:W(t,o),l=Reflect.set(t,o,n,a);return t===Ct(a)&&(r?re(n,s)&&Oe(t,"set",o,n,s):Oe(t,"add",o,n)),l}}const Qe={get:ze,set:Ye(),deleteProperty:function(e,t){const o=W(e,t),n=e[t],a=Reflect.deleteProperty(e,t);return a&&o&&Oe(e,"delete",t,void 0,n),a},has:function(e,t){const o=Reflect.has(e,t);return X(t)&&Ve.has(t)||we(e,"has",t),o},ownKeys:function(e){return we(e,"iterate",G(e)?"length":Fe),Reflect.ownKeys(e)}},He={get:Ue,set:(e,t)=>("production"!==process.env.NODE_ENV&&me(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>("production"!==process.env.NODE_ENV&&me(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},Ke=q({},He,{get:qe}),Xe=e=>e,Je=e=>Reflect.getPrototypeOf(e);function Ze(e,t,o=!1,n=!1){const a=Ct(e=e.__v_raw),s=Ct(t);o||(t!==s&&we(a,"get",t),we(a,"get",s));const{has:r}=Je(a),l=n?Xe:o?Lt:Rt;return r.call(a,t)?l(e.get(t)):r.call(a,s)?l(e.get(s)):void(e!==a&&e.get(t))}function et(e,t=!1){const o=this.__v_raw,n=Ct(o),a=Ct(e);return t||(e!==a&&we(n,"has",e),we(n,"has",a)),e===a?o.has(e):o.has(e)||o.has(a)}function tt(e,t=!1){return e=e.__v_raw,!t&&we(Ct(e),"iterate",Fe),Reflect.get(e,"size",e)}function ot(e){e=Ct(e);const t=Ct(this);return Je(t).has.call(t,e)||(t.add(e),Oe(t,"add",e,e)),this}function nt(e,t){t=Ct(t);const o=Ct(this),{has:n,get:a}=Je(o);let s=n.call(o,e);s?"production"!==process.env.NODE_ENV&&vt(o,n,e):(e=Ct(e),s=n.call(o,e));const r=a.call(o,e);return o.set(e,t),s?re(t,r)&&Oe(o,"set",e,t,r):Oe(o,"add",e,t),this}function at(e){const t=Ct(this),{has:o,get:n}=Je(t);let a=o.call(t,e);a?"production"!==process.env.NODE_ENV&&vt(t,o,e):(e=Ct(e),a=o.call(t,e));const s=n?n.call(t,e):void 0,r=t.delete(e);return a&&Oe(t,"delete",e,void 0,s),r}function st(){const e=Ct(this),t=0!==e.size,o="production"!==process.env.NODE_ENV?Y(e)?new Map(e):new Set(e):void 0,n=e.clear();return t&&Oe(e,"clear",void 0,void 0,o),n}function rt(e,t){return function(o,n){const a=this,s=a.__v_raw,r=Ct(s),l=t?Xe:e?Lt:Rt;return!e&&we(r,"iterate",Fe),s.forEach(((e,t)=>o.call(n,l(e),l(t),a)))}}function lt(e,t,o){return function(...n){const a=this.__v_raw,s=Ct(a),r=Y(s),l="entries"===e||e===Symbol.iterator&&r,i="keys"===e&&r,c=a[e](...n),u=o?Xe:t?Lt:Rt;return!t&&we(s,"iterate",i?Pe:Fe),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function it(e){return function(...t){if("production"!==process.env.NODE_ENV){const o=t[0]?`on key "${t[0]}" `:"";console.warn(`${se(e)} operation ${o}failed: target is readonly.`,Ct(this))}return"delete"!==e&&this}}function ct(){const e={get(e){return Ze(this,e)},get size(){return tt(this)},has:et,add:ot,set:nt,delete:at,clear:st,forEach:rt(!1,!1)},t={get(e){return Ze(this,e,!1,!0)},get size(){return tt(this)},has:et,add:ot,set:nt,delete:at,clear:st,forEach:rt(!1,!0)},o={get(e){return Ze(this,e,!0)},get size(){return tt(this,!0)},has(e){return et.call(this,e,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:rt(!0,!1)},n={get(e){return Ze(this,e,!0,!0)},get size(){return tt(this,!0)},has(e){return et.call(this,e,!0)},add:it("add"),set:it("set"),delete:it("delete"),clear:it("clear"),forEach:rt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((a=>{e[a]=lt(a,!1,!1),o[a]=lt(a,!0,!1),t[a]=lt(a,!1,!0),n[a]=lt(a,!0,!0)})),[e,o,t,n]}const[ut,dt,pt,ft]=ct();function gt(e,t){const o=t?e?ft:pt:e?dt:ut;return(t,n,a)=>"__v_isReactive"===n?!e:"__v_isReadonly"===n?e:"__v_raw"===n?t:Reflect.get(W(o,n)&&n in t?o:t,n,a)}const ht={get:gt(!1,!1)},mt={get:gt(!0,!1)},yt={get:gt(!0,!0)};function vt(e,t,o){const n=Ct(o);if(n!==o&&t.call(e,n)){const t=oe(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const Tt=new WeakMap,bt=new WeakMap,_t=new WeakMap,St=new WeakMap;function It(e){return Nt(e)?e:Ft(e,!1,Qe,ht,Tt)}function kt(e){return Ft(e,!0,He,mt,_t)}function xt(e){return Ft(e,!0,Ke,yt,St)}function Ft(e,t,o,n,a){if(!J(e))return"production"!==process.env.NODE_ENV&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=a.get(e);if(s)return s;const r=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(oe(l));var l;if(0===r)return e;const i=new Proxy(e,2===r?n:o);return a.set(e,i),i}function Pt(e){return Nt(e)?Pt(e.__v_raw):!(!e||!e.__v_isReactive)}function Nt(e){return!(!e||!e.__v_isReadonly)}function Dt(e){return!(!e||!e.__v_isShallow)}function Et(e){return Pt(e)||Nt(e)}function Ct(e){const t=e&&e.__v_raw;return t?Ct(t):e}const Rt=e=>J(e)?It(e):e,Lt=e=>J(e)?kt(e):e;function wt(e){return!(!e||!0!==e.__v_isRef)}const Ot={get:(e,t,o)=>{return wt(n=Reflect.get(e,t,o))?n.value:n;var n},set:(e,t,o,n)=>{const a=e[t];return wt(a)&&!wt(o)?(a.value=o,!0):Reflect.set(e,t,o,n)}};const At=[];function $t(e,...t){if("production"===process.env.NODE_ENV)return;Re();const o=At.length?At[At.length-1].component:null,n=o&&o.appContext.config.warnHandler,a=function(){let e=At[At.length-1];if(!e)return[];const t=[];for(;e;){const o=t[0];o&&o.vnode===e?o.recurseCount++:t.push({vnode:e,recurseCount:0});const n=e.component&&e.component.parent;e=n&&n.vnode}return t}();if(n)Ut(n,o,11,[e+t.join(""),o&&o.proxy,a.map((({vnode:e})=>`at <${an(o,e.type)}>`)).join("\n"),a]);else{const o=[`[Vue warn]: ${e}`,...t];a.length&&o.push("\n",...function(e){const t=[];return e.forEach(((e,o)=>{t.push(...0===o?[]:["\n"],...function({vnode:e,recurseCount:t}){const o=t>0?`... (${t} recursive calls)`:"",n=!!e.component&&null==e.component.parent,a=` at <${an(e.component,e.type,n)}`,s=">"+o;return e.props?[a,...Bt(e.props),s]:[a+s]}(e))})),t}(a)),console.warn(...o)}Le()}function Bt(e){const t=[],o=Object.keys(e);return o.slice(0,3).forEach((o=>{t.push(...Vt(o,e[o]))})),o.length>3&&t.push(" ..."),t}function Vt(e,t,o){return K(t)?(t=JSON.stringify(t),o?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?o?t:[`${e}=${t}`]:wt(t)?(t=Vt(e,Ct(t.value),!0),o?t:[`${e}=Ref<`,t,">"]):H(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Ct(t),o?t:[`${e}=`,t])}const zt={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function Ut(e,t,o,n){let a;try{a=n?e(...n):e()}catch(e){jt(e,t,o)}return a}function qt(e,t,o,n){if(H(e)){const a=Ut(e,t,o,n);return a&&Z(a)&&a.catch((e=>{jt(e,t,o)})),a}const a=[];for(let s=0;s<e.length;s++)a.push(qt(e[s],t,o,n));return a}function jt(e,t,o,n=!0){const a=t?t.vnode:null;if(t){let n=t.parent;const a=t.proxy,s="production"!==process.env.NODE_ENV?zt[o]:o;for(;n;){const t=n.ec;if(t)for(let o=0;o<t.length;o++)if(!1===t[o](e,a,s))return;n=n.parent}const r=t.appContext.config.errorHandler;if(r)return void Ut(r,null,10,[e,a,s])}!function(e,t,o,n=!0){if("production"!==process.env.NODE_ENV){const s=zt[t];if(o&&(a=o,At.push(a)),$t("Unhandled error"+(s?` during execution of ${s}`:"")),o&&At.pop(),n)throw e;console.error(e)}else console.error(e);var a}(e,o,a,n)}let Mt=!1,Wt=!1;const Gt=[];let Yt=0;const Qt=[];let Ht=null,Kt=0;const Xt=Promise.resolve();let Jt=null;const Zt=100;function eo(e){const t=Jt||Xt;return e?t.then(this?e.bind(this):e):t}function to(e){Gt.length&&Gt.includes(e,Mt&&e.allowRecurse?Yt+1:Yt)||(null==e.id?Gt.push(e):Gt.splice(function(e){let t=Yt+1,o=Gt.length;for(;t<o;){const n=t+o>>>1;ao(Gt[n])<e?t=n+1:o=n}return t}(e.id),0,e),oo())}function oo(){Mt||Wt||(Wt=!0,Jt=Xt.then(ro))}function no(e){G(e)?Qt.push(...e):Ht&&Ht.includes(e,e.allowRecurse?Kt+1:Kt)||Qt.push(e),oo()}const ao=e=>null==e.id?1/0:e.id,so=(e,t)=>{const o=ao(e)-ao(t);if(0===o){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return o};function ro(e){Wt=!1,Mt=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Gt.sort(so);const t="production"!==process.env.NODE_ENV?t=>lo(e,t):V;try{for(Yt=0;Yt<Gt.length;Yt++){const e=Gt[Yt];if(e&&!1!==e.active){if("production"!==process.env.NODE_ENV&&t(e))continue;Ut(e,null,14)}}}finally{Yt=0,Gt.length=0,function(e){if(Qt.length){const t=[...new Set(Qt)];if(Qt.length=0,Ht)return void Ht.push(...t);for(Ht=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Ht.sort(((e,t)=>ao(e)-ao(t))),Kt=0;Kt<Ht.length;Kt++)"production"!==process.env.NODE_ENV&&lo(e,Ht[Kt])||Ht[Kt]();Ht=null,Kt=0}}(e),Mt=!1,Jt=null,(Gt.length||Qt.length)&&ro(e)}}function lo(e,t){if(e.has(t)){const o=e.get(t);if(o>Zt){const e=t.ownerInstance,o=e&&nn(e.type);return $t(`Maximum recursive updates exceeded${o?` in component <${o}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}e.set(t,o+1)}else e.set(t,1)}const io=new Set;"production"!==process.env.NODE_ENV&&(ce().__VUE_HMR_RUNTIME__={createRecord:fo((function(e,t){if(co.has(e))return!1;return co.set(e,{initialDef:uo(t),instances:new Set}),!0})),rerender:fo((function(e,t){const o=co.get(e);if(!o)return;o.initialDef.render=t,[...o.instances].forEach((e=>{t&&(e.render=t,uo(e.type).render=t),e.renderCache=[],e.update()}))})),reload:fo((function(e,t){const o=co.get(e);if(!o)return;t=uo(t),po(o.initialDef,t);const n=[...o.instances];for(const e of n){const n=uo(e.type);io.has(n)||(n!==o.initialDef&&po(n,t),io.add(n)),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(io.add(n),e.ceReload(t.styles),io.delete(n)):e.parent?to(e.parent.update):e.appContext.reload?e.appContext.reload():"undefined"!=typeof window?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}no((()=>{for(const e of n)io.delete(uo(e.type))}))}))});const co=new Map;function uo(e){return sn(e)?e.__vccOpts:e}function po(e,t){q(e,t);for(const o in e)"__file"===o||o in t||delete e[o]}function fo(e){return(t,o)=>{try{return e(t,o)}catch(e){console.error(e),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let go=null,ho=null;const mo={};function yo(e,t,{immediate:o,deep:n,flush:a,onTrack:s,onTrigger:r}=B){var l;"production"===process.env.NODE_ENV||t||(void 0!==o&&$t('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==n&&$t('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const i=e=>{$t("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=ye===(null==(l=Xo)?void 0:l.scope)?Xo:null;let u,d,p=!1,f=!1;if(wt(e)?(u=()=>e.value,p=Dt(e)):Pt(e)?(u=()=>e,n=!0):G(e)?(f=!0,p=e.some((e=>Pt(e)||Dt(e))),u=()=>e.map((e=>wt(e)?e.value:Pt(e)?To(e):H(e)?Ut(e,c,2):void("production"!==process.env.NODE_ENV&&i(e))))):H(e)?u=t?()=>Ut(e,c,2):()=>{if(!c||!c.isUnmounted)return d&&d(),qt(e,c,3,[g])}:(u=V,"production"!==process.env.NODE_ENV&&i(e)),t&&n){const e=u;u=()=>To(e())}let g=e=>{d=v.onStop=()=>{Ut(e,c,4)}},h=f?new Array(e.length).fill(mo):mo;const m=()=>{if(v.active)if(t){const e=v.run();(n||p||(f?e.some(((e,t)=>re(e,h[t]))):re(e,h)))&&(d&&d(),qt(t,c,3,[e,h===mo?void 0:f&&h[0]===mo?[]:h,g]),h=e)}else v.run()};let y;m.allowRecurse=!!t,"sync"===a?y=m:"post"===a?y=()=>Oo(m,c&&c.suspense):(m.pre=!0,c&&(m.id=c.uid),y=()=>to(m));const v=new Ne(u,y);"production"!==process.env.NODE_ENV&&(v.onTrack=s,v.onTrigger=r),t?o?m():h=v.run():"post"===a?Oo(v.run.bind(v),c&&c.suspense):v.run();return()=>{v.stop(),c&&c.scope&&j(c.scope.effects,v)}}function vo(e,t,o){const n=this.proxy,a=K(e)?e.includes(".")?function(e,t){const o=t.split(".");return()=>{let t=e;for(let e=0;e<o.length&&t;e++)t=t[o[e]];return t}}(n,e):()=>n[e]:e.bind(n,n);let s;H(t)?s=t:(s=t.handler,o=t);const r=Xo;Zo(this);const l=yo(a,s.bind(n),o);return r?Zo(r):en(),l}function To(e,t){if(!J(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),wt(e))To(e.value,t);else if(G(e))for(let o=0;o<e.length;o++)To(e[o],t);else if(Q(e)||Y(e))e.forEach((e=>{To(e,t)}));else if(ne(e))for(const o in e)To(e[o],t);return e}function bo(e,t){return H(e)?(()=>q({name:e.name},t,{setup:e}))():e}const _o=Symbol.for("v-ndc"),So=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((o=e.exposed,le(o,"__v_skip",!0),Pt(t=o)?t:new Proxy(t,Ot)),{get:(t,o)=>o in t?t[o]:o in Io?Io[o](e):void 0,has:(e,t)=>t in e||t in Io}));var t;var o}(e)||e.proxy:So(e.parent):null,Io=q(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?xt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?xt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?xt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?xt(e.refs):e.refs,$parent:e=>So(e.parent),$root:e=>So(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?function(e){const t=e.type,{mixins:o,extends:n}=t,{mixins:a,optionsCache:s,config:{optionMergeStrategies:r}}=e.appContext,l=s.get(t);let i;l?i=l:a.length||o||n?(i={},a.length&&a.forEach((e=>No(i,e,r,!0))),No(i,t,r)):i=t;J(t)&&s.set(t,i);return i}(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>to(e.update)),$nextTick:e=>e.n||(e.n=eo.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?vo.bind(e):V}),ko=(e,t)=>e!==B&&!e.__isScriptSetup&&W(e,t),xo={get({_:e},t){const{ctx:o,setupState:n,data:a,props:s,accessCache:r,type:l,appContext:i}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;let c;if("$"!==t[0]){const l=r[t];if(void 0!==l)switch(l){case 1:return n[t];case 2:return a[t];case 4:return o[t];case 3:return s[t]}else{if(ko(n,t))return r[t]=1,n[t];if(a!==B&&W(a,t))return r[t]=2,a[t];if((c=e.propsOptions[0])&&W(c,t))return r[t]=3,s[t];if(o!==B&&W(o,t))return r[t]=4,o[t];__VUE_OPTIONS_API__&&!Po||(r[t]=0)}}const u=Io[t];let d,p;return u?("$attrs"===t?(we(e,"get",t),process.env.NODE_ENV):"production"!==process.env.NODE_ENV&&"$slots"===t&&we(e,"get",t),u(e)):(d=l.__cssModules)&&(d=d[t])?d:o!==B&&W(o,t)?(r[t]=4,o[t]):(p=i.config.globalProperties,W(p,t)?p[t]:void("production"===process.env.NODE_ENV||!go||K(t)&&0===t.indexOf("__v")||(a!==B&&(e=>"_"===e||"$"===e)(t[0])&&W(a,t)?$t(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===go&&$t(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,o){const{data:n,setupState:a,ctx:s}=e;return ko(a,t)?(a[t]=o,!0):"production"!==process.env.NODE_ENV&&a.__isScriptSetup&&W(a,t)?($t(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):n!==B&&W(n,t)?(n[t]=o,!0):W(e.props,t)?("production"!==process.env.NODE_ENV&&$t(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&$t(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):("production"!==process.env.NODE_ENV&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:o}):s[t]=o,!0)},has({_:{data:e,setupState:t,accessCache:o,ctx:n,appContext:a,propsOptions:s}},r){let l;return!!o[r]||e!==B&&W(e,r)||ko(t,r)||(l=s[0])&&W(l,r)||W(n,r)||W(Io,r)||W(a.config.globalProperties,r)},defineProperty(e,t,o){return null!=o.get?e._.accessCache[t]=0:W(o,"value")&&this.set(e,t,o.value,null),Reflect.defineProperty(e,t,o)}};function Fo(e){return G(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}"production"!==process.env.NODE_ENV&&(xo.ownKeys=e=>($t("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));let Po=!0;function No(e,t,o,n=!1){const{mixins:a,extends:s}=t;s&&No(e,s,o,!0),a&&a.forEach((t=>No(e,t,o,!0)));for(const a in t)if(n&&"expose"===a)"production"!==process.env.NODE_ENV&&$t('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const n=Do[a]||o&&o[a];e[a]=n?n(e[a],t[a]):t[a]}return e}const Do={data:Eo,props:wo,emits:wo,methods:Lo,computed:Lo,beforeCreate:Ro,created:Ro,beforeMount:Ro,mounted:Ro,beforeUpdate:Ro,updated:Ro,beforeDestroy:Ro,beforeUnmount:Ro,destroyed:Ro,unmounted:Ro,activated:Ro,deactivated:Ro,errorCaptured:Ro,serverPrefetch:Ro,components:Lo,directives:Lo,watch:function(e,t){if(!e)return t;if(!t)return e;const o=q(Object.create(null),e);for(const n in t)o[n]=Ro(e[n],t[n]);return o},provide:Eo,inject:function(e,t){return Lo(Co(e),Co(t))}};function Eo(e,t){return t?e?function(){return q(H(e)?e.call(this,this):e,H(t)?t.call(this,this):t)}:t:e}function Co(e){if(G(e)){const t={};for(let o=0;o<e.length;o++)t[e[o]]=e[o];return t}return e}function Ro(e,t){return e?[...new Set([].concat(e,t))]:t}function Lo(e,t){return e?q(Object.create(null),e,t):t}function wo(e,t){return e?G(e)&&G(t)?[...new Set([...e,...t])]:q(Object.create(null),Fo(e),Fo(null!=t?t:{})):t}const Oo=function(e,t){t&&t.pendingBranch?G(e)?t.effects.push(...e):t.effects.push(e):no(e)},Ao=Symbol.for("v-fgt"),$o=Symbol.for("v-txt"),Bo=Symbol.for("v-cmt");let Vo=null;const zo="__vInternal",Uo=({key:e})=>null!=e?e:null,qo=({ref:e,ref_key:t,ref_for:o})=>("number"==typeof e&&(e=""+e),null!=e?K(e)||wt(e)||H(e)?{i:go,r:e,k:t,f:!!o}:e:null);const jo="production"!==process.env.NODE_ENV?(...e)=>Mo(...e):Mo;function Mo(e,t=null,o=null,n=0,a=null,s=!1){if(e&&e!==_o||("production"===process.env.NODE_ENV||e||$t(`Invalid vnode type when creating vnode: ${e}.`),e=Bo),(r=e)&&!0===r.__v_isVNode){const n=Wo(e,t,!0);return o&&Qo(n,o),!s&&Vo&&(6&n.shapeFlag?Vo[Vo.indexOf(e)]=n:Vo.push(n)),n.patchFlag|=-2,n}var r;if(sn(e)&&(e=e.__vccOpts),t){t=function(e){return e?Et(e)||zo in e?q({},e):e:null}(t);let{class:e,style:o}=t;e&&!K(e)&&(t.class=he(e)),J(o)&&(Et(o)&&!G(o)&&(o=q({},o)),t.style=ue(o))}const l=K(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:J(e)?4:H(e)?2:0;return"production"!==process.env.NODE_ENV&&4&l&&Et(e)&&$t("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=Ct(e)),function(e,t=null,o=null,n=0,a=null,s=(e===Ao?0:1),r=!1,l=!1){const i={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Uo(t),ref:t&&qo(t),scopeId:ho,slotScopeIds:null,children:o,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:n,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:go};return l?(Qo(i,o),128&s&&e.normalize(i)):o&&(i.shapeFlag|=K(o)?8:16),"production"!==process.env.NODE_ENV&&i.key!=i.key&&$t("VNode created with invalid key (NaN). VNode type:",i.type),!r&&Vo&&(i.patchFlag>0||6&s)&&32!==i.patchFlag&&Vo.push(i),i}(e,t,o,n,a,l,s,!0)}function Wo(e,t,o=!1){const{props:n,ref:a,patchFlag:s,children:r}=e,l=t?function(...e){const t={};for(let o=0;o<e.length;o++){const n=e[o];for(const e in n)if("class"===e)t.class!==n.class&&(t.class=he([t.class,n.class]));else if("style"===e)t.style=ue([t.style,n.style]);else if(U(e)){const o=t[e],a=n[e];!a||o===a||G(o)&&o.includes(a)||(t[e]=o?[].concat(o,a):a)}else""!==e&&(t[e]=n[e])}return t}(n||{},t):n;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&Uo(l),ref:t&&t.ref?o&&a?G(a)?a.concat(qo(t)):[a,qo(t)]:qo(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===s&&G(r)?r.map(Go):r,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ao?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Wo(e.ssContent),ssFallback:e.ssFallback&&Wo(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Go(e){const t=Wo(e);return G(e.children)&&(t.children=e.children.map(Go)),t}function Yo(e=" ",t=0){return jo($o,null,e,t)}function Qo(e,t){let o=0;const{shapeFlag:n}=e;if(null==t)t=null;else if(G(t))o=16;else if("object"==typeof t){if(65&n){const o=t.default;return void(o&&(o._c&&(o._d=!1),Qo(e,o()),o._c&&(o._d=!0)))}{o=32;const n=t._;n||zo in t?3===n&&go&&(1===go.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=go}}else H(t)?(t={default:t,_ctx:go},o=32):(t=String(t),64&n?(o=16,t=[Yo(t)]):o=8);e.children=t,e.shapeFlag|=o}let Ho,Ko,Xo=null,Jo="__VUE_INSTANCE_SETTERS__";(Ko=ce()[Jo])||(Ko=ce()[Jo]=[]),Ko.push((e=>Xo=e)),Ho=e=>{Ko.length>1?Ko.forEach((t=>t(e))):Ko[0](e)};const Zo=e=>{Ho(e),e.scope.on()},en=()=>{Xo&&Xo.scope.off(),Ho(null)};const tn=/(?:^|[-_])(\w)/g,on=e=>e.replace(tn,(e=>e.toUpperCase())).replace(/[-_]/g,"");function nn(e,t=!0){return H(e)?e.displayName||e.name:e.name||t&&e.__name}function an(e,t,o=!1){let n=nn(t);if(!n&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(n=e[1])}if(!n&&e&&e.parent){const o=e=>{for(const o in e)if(e[o]===t)return o};n=o(e.components||e.parent.type.components)||o(e.appContext.components)}return n?on(n):o?"App":"Anonymous"}function sn(e){return H(e)&&"__vccOpts"in e}var rn=bo({name:"qt-poster-focus-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const ln={class:"absoluteFocusTitleRoot",delayLoad:"400",flexStyle:"${titleFocusStyle}",autoHeight:"",focusable:!1},cn={class:"absoluteFocusMainBgRoot",duplicateParentState:!0,focusable:!1,showIf:"${title.enable}"};rn.render=function(e,t,o,r,l,c){const u=n("text-view");return a(),s("div",ln,[i(" 浮动标题"),T(u,{duplicateParentState:!0,focusable:!1,fontSize:26,ellipsizeMode:2,lines:1,paddingRect:[16,18,0,0],gradientBackground:"${floatTitle.background}",style:{height:"64px",color:"#ffffff"},flexStyle:"${floatTitle.style}",text:"${floatTitle}",showIf:"${floatTitle.enable}",gravity:"left",postDelay:"250"}),b("div",cn,[i(" 主标题 "),T(u,{duplicateParentState:!0,focusable:!1,fontSize:30,ellipsizeMode:2,autoHeight:"",maxLines:2,gravity:"left",paddingRect:[16,8,12,8],style:{"background-color":"transparent",color:"#000000"},flexStyle:"${title.style}",text:"${title.text}"}),i(" 副标题 "),T(u,{duplicateParentState:!0,focusable:!1,fontSize:24,ellipsizeMode:2,lines:1,autoHeight:"",gravity:"left|top",paddingRect:[16,0,0,16],style:{color:"rgba(0,0,0,.4)","background-color":"transparent"},flexStyle:"${subTitle.style}",text:"${subTitle.text}",visibility:"${subTitle}"})])])},rn.__scopeId="data-v-703673b8",rn.__file="src/poster/qt-poster-focus-title.vue";var un=bo({name:"qt-poster-corner-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const dn={class:"cornerRoot",focusable:!1};un.render=function(e,t,o,r,l,i){const c=n("text-view");return a(),s("div",dn,[T(c,{duplicateParentState:!0,focusable:!1,textSize:e.fontSize,ellipsizeMode:2,lines:1,typeface:"bold",gravity:"center",postDelay:"350",style:{color:"white",padding:"4px 8px",height:"36px"},gradientBackground:"${corner.background}",autoWidth:"",text:"${corner.text}",showIf:"${corner.enable}"},null,8,["textSize"])])},un.__scopeId="data-v-4b767ea2",un.__file="src/poster/qt-poster-corner-title.vue";var pn=bo({name:"qt-poster",components:{"qt-poster-corner-title":un,"qt-poster-focus-title":rn},props:{requestFirstFocus:{type:Boolean,default:!1},loadDelay:{type:Number,default:500},type:{type:Number,default:10001},templateKeyMap:{type:Object,default:()=>null},isFocusable:{type:Boolean,default:!0},enableFocusBorder:{type:Boolean,default:!0}},setup:(e,t)=>({mainTextShowOnState:["normal","selected"]})});const fn=["enableFocusBorder"],gn=["showOnState"],hn={flexStyle:"${floatTitle.style}",class:"qt-ui-poster-title-css",gradientBackground:{colors:["#e5000000","#00000000"],cornerRadii4:[0,0,8,8],orientation:4},duplicateParentState:!0,delayLoad:"500",focusable:!1,showIf:"${floatTitle.enable}"},mn={flexStyle:"${ripple.style}",class:"qt-ui-poster-ripple-view-root-css",showOnState:"focused",focusable:!1,clipChildren:!1},yn=(e=>(_("data-v-3c4765e9"),e=e(),S(),e))((()=>b("img",{src:"${ripple.src}",class:"qt-ui-ripple-img-css",focusable:!1,duplicateParentState:!0,showIf:"${true}",delayLoad:"800"},null,-1)));pn.render=function(e,t,o,s,r,l){const c=n("qt-poster-focus-title"),u=n("text-view"),p=n("ripple-view"),g=n("qt-poster-corner-title"),h=n("item-frame");return a(),d(h,{type:e.type,layout:"${layout}",flexStyle:"${style}",focusable:e.isFocusable,eventClick:"",eventFocus:"",name:"poster",class:"qt-ui-poster-root-css",itemShowShimmer:"${shimmer.enable}",hideShadow:"${shadow.enable}",shimmerSize:"${size}"},{default:y((()=>[i("封面"),b("img",{class:"qt-ui-poster-img-css",duplicateParentState:!0,postDelay:"300",focusable:!1,enableFocusBorder:e.enableFocusBorder,flexStyle:"${image.style}",src:"${image.src}"},null,8,fn),i(" 焦点选中时的标题 "),T(c,{focusable:!1,showOnState:"focused"}),b("div",{style:{"flex-direction":"column","background-color":"transparent","z-index":"999"},duplicateParentState:!0,focusable:!1,flexStyle:"${titleStyle}",showOnState:e.mainTextShowOnState},[i(" 浮动标题 "),b("div",hn,[T(u,{duplicateParentState:!0,focusable:!1,textSize:26,ellipsizeMode:2,enablePostTask:"",postDelay:"200",lines:1,gravity:"left",style:{"z-index":"999",height:"50px"},flexStyle:"${floatTitle.style}",text:"${floatTitle.text}"})]),i(" 主标题"),T(u,{duplicateParentState:!0,focusable:!1,textSize:30,ellipsizeMode:2,lines:1,delayLoad:"400",postDelay:"200",gravity:"left",paddingRect:[16,8,0,0],gradientBackground:"${title.background}",style:{"z-index":"999",height:"60px"},flexStyle:"${title.style}",text:"${title.text}",showIf:"${title.enable}"})],8,gn),b("div",mn,[T(p,{class:"qt-ui-ripple-view-css",delayLoad:"800",focusable:!1,duplicateParentState:!0,color:"#FF4E46",isShowRipple:"${ripple.enable}",rippleVisible:"invisible"}),yn]),T(g,{focusable:!1,delayLoad:"600",flexStyle:"${corner.style}",style:{"z-index":"1000",position:"absolute"}}),f(e.$slots,"default")])),_:3},8,["type","focusable"])},pn.__scopeId="data-v-3c4765e9",pn.__file="src/poster/index.vue";var vn=t({name:"qt-nav-bar",props:{textKey:{type:String,default:"text"},itemGap:{type:Number,default:0},horizontal:{type:Boolean,default:!0},initSelect:{type:Number,default:0},className:{type:String,default:"list_view"},size:{type:String,default:"medium"},navs:{type:Array,default:()=>[]}},setup(e,t){const n=o();let a=o("#f5f5f5"),s=I({normal:"#80ffffff",focused:"#000000",selected:"#F5F5F5"}),r=-1,l=-1;g((()=>e.navs),(e=>{e.length>0&&i(e)}));const i=t=>{t||(t=[]),t.forEach(((t,o)=>{0!==e.itemGap&&(e.horizontal?t.decoration={right:e.itemGap}:t.decoration={bottom:e.itemGap}),t.type||(t.type=2e4)})),n.value?.setListData(t),clearTimeout(l);let o=e.initSelect;o>-1&&(n.value?.scrollToPosition(o),l=setTimeout((()=>{n.value?.setSelectPosition(o,!0),c(o)}),300))},c=e=>{clearTimeout(r),r=setTimeout((()=>{t.emit("tab-select",{position:e})}),300)};return{navList:n,focusColor:a,textColor:s,bgPadding:[10,10],onTabChange:e=>{!0===e.hasFocus&&(t.emit("tab-focus",e),c(e.position))},scrollToPosition:e=>{n.value?.scrollToPosition(e)},scrollToTop:()=>{n.value?.scrollToTop()},initNavBar:()=>{},initNavBarItem:i}}});const Tn=["stateTextColor","sateBackgroundPadding"],bn=["stateTextColor","sateBackgroundPadding"];var _n,Sn;vn.render=function(e,t,o,s,i,c){const u=n("text-view"),p=n("qt-list-view");return e.horizontal?(a(),d(p,{key:0,class:l([e.className,"qt-ui-nav-bar-root-horizontal"]),ref:"navList",clipChildren:!1,clipPadding:!1,horizontal:"",onItemFocused:e.onTabChange},{default:y((()=>[b("div",{class:"qt-ui-nav-bar-item-css",type:2e4,autoWidth:"",focusable:!0,eventFocus:"",clipChildren:!1,style:r({focusBackgroundColor:e.focusColor}),stateTextColor:e.textColor,sateBackgroundPadding:e.bgPadding},[T(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,Tn),f(e.$slots,"default")])),_:3},8,["class","onItemFocused"])):(a(),d(p,{key:1,class:l([e.className,"qt-ui-nav-bar-root-vertical"]),ref:"navList",clipChildren:!1,clipPadding:!1,onItemFocused:e.onTabChange},{default:y((()=>[b("div",{class:"qt-ui-nav-bar-item-css",type:2e4,eventFocus:"",autoWidth:"",focusable:!0,stateTextColor:e.textColor,style:r({focusBackgroundColor:e.focusColor}),sateBackgroundPadding:e.bgPadding,clipChildren:!1},[T(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,bn),f(e.$slots,"default")])),_:3},8,["class","onItemFocused"]))},vn.__file="src/nav-bar/index.vue",function(e){e[e.QT_WATERFALL_SECTION_TYPE_LOADING=-1]="QT_WATERFALL_SECTION_TYPE_LOADING",e[e.QT_WATERFALL_SECTION_TYPE_TITLE=1e3]="QT_WATERFALL_SECTION_TYPE_TITLE",e[e.QT_WATERFALL_SECTION_TYPE_FLEX=1002]="QT_WATERFALL_SECTION_TYPE_FLEX",e[e.QT_WATERFALL_SECTION_TYPE_LIST=1003]="QT_WATERFALL_SECTION_TYPE_LIST",e[e.QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM=1004]="QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM",e[e.QT_WATERFALL_SECTION_TYPE_TAB_LIST=1005]="QT_WATERFALL_SECTION_TYPE_TAB_LIST"}(_n||(_n={})),function(e){e[e.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM=10001]="QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM",e[e.QT_WATERFALL_ITEM_TYPE_TAB=10002]="QT_WATERFALL_ITEM_TYPE_TAB"}(Sn||(Sn={}));var In=bo({name:"standard-section",props:{enablePlaceholder:{type:Boolean,default:!0},plateData:{type:String,default:""},useDiff:{type:Boolean,default:!0},cachePool:{type:Object,default:{}},sectionType:{type:Number,default:_n.QT_WATERFALL_SECTION_TYPE_FLEX},standItemType:{type:Number,default:Sn.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM},currentPageIndex:{type:Number,default:-1}}});const kn=["type"];In.render=function(e,t,o,r,l,i){const c=n("text-view"),u=n("qt-poster"),d=n("tv-flex");return a(),s("div",{class:"standard-section-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.sectionType,focusable:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[T(c,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),T(d,{class:"standard-section-css",name:"QUICKTVUI_WARTERFALL_LIST",blockFocusDirections:["left","right"],clipChildren:!1,bringFocusChildToFront:!0,cachePool:e.cachePool,useDiff:e.useDiff,keyName:"_id",enablePlaceholder:e.enablePlaceholder,flexStyle:"${sectionStyle}",focusScrollTarget:"${focusScrollTarget==true}",list:"${itemList}"},{default:y((()=>[T(u,{"load-delay":500,type:e.standItemType},null,8,["type"]),f(e.$slots,"default")])),_:3},8,["cachePool","useDiff","enablePlaceholder"])],8,kn)},In.__scopeId="data-v-d1c2a896",In.__file="src/waterfall/section/standard-section.vue";const xn="tab-list-section";var Fn=bo({name:"tabs-list-section",props:{enablePlaceholder:{type:Boolean,default:!0},isSwitchBgScroll:{type:Boolean,default:!1},standItemType:{type:Number,default:10001},tabItemType:{type:Number,default:10002},sectionType:{type:Number,default:_n.QT_WATERFALL_SECTION_TYPE_LIST},fetchPendingData:{type:Function,default:null},arrangeType:{type:String,default:"TB"}},setup(e,t){const o=P();return{blockDirections:["left","right"],onItemBind:function(e){o.isLoggable(N.DEBUG)&&o.d(xn,"----------onItemBind--------------\x3e>>",e)},onItemRecycled:function(e){o.isLoggable(N.DEBUG)&&o.d(xn,"----------onItemRecycled--------------\x3e>>",e)},onItemFocused:function(e){o.isLoggable(N.DEBUG)&&o.d(xn,"----------onItemFocused--------------\x3e>>",e)}}}});const Pn={class:"qt-ui-section-tab-list-root",focusable:!1,blockFocusDirections:["right"],clipChildren:!1,useAdvancedFocusSearch:!0,bringFocusChildToFront:!0},Nn=["type"];Fn.render=function(e,t,o,s,r,l){const i=n("text-view"),c=n("qt-poster"),u=n("tv-list"),p=n("tv-item");return a(),d(p,{type:e.sectionType,clipPadding:!1,clipChildren:!1,ref:"listSection",onItemBind:e.onItemBind,onItemUnbind:e.onItemRecycled,onItemFocused:e.onItemFocused},{default:y((()=>[b("div",Pn,[T(i,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),T(u,{list:"${itemList}",horizontal:"",flexStyle:"${style}",clipChildren:!1,focusable:!1,name:"QUICKTVUI_WARTERFALL_LIST",resetOnDetach:!0,enableKeepFocus:"${enableKeepFocus==true}",endHintEnabled:"${enableEndHit}",onScrollEnable:!1,setSelectChildPosition:0,enablePlaceholder:e.enablePlaceholder,cachePoolName:"HorizontalList",blockFocusDirections:e.blockDirections},{default:y((()=>[T(c,{type:e.standItemType},null,8,["type"]),b("div",{type:e.tabItemType,class:"qt-ui-section-tab-list-item",clipChildren:!1,style:{"padding-left":"24px","padding-right":"23px","justify-content":"center",height:"50px"},autoWidth:"",name:"QUICKTVUI_TAB_2",focusable:!0,eventFocus:""},[T(i,{class:"qt-ui-section-tab-list-item-text",autoWidth:"",gravity:"center",fontSize:36,lines:1,focusable:!1,duplicateParentState:!0,style:{height:"50px"},text:"${text}"})],8,Nn),f(e.$slots,"default")])),_:3},8,["enablePlaceholder","blockFocusDirections"])])])),_:3},8,["type","onItemBind","onItemUnbind","onItemFocused"])},Fn.__scopeId="data-v-88e60816",Fn.__file="src/waterfall/section/tabs-list-section.vue";var Dn=bo({name:"loading-section"});const En={focusable:!1,type:-1,class:"loading-section-css"};Dn.render=function(e,t,o,r,l,i){const c=n("qt-loading-view");return a(),s("div",En,[T(c,{class:"loading-section-loading-css"})])},Dn.__scopeId="data-v-48609f24",Dn.__file="src/waterfall/section/loading-section.vue";var Cn=bo({props:{plateTitleLeftMargin:{type:Number,default:0},type:{type:Number,default:_n.QT_WATERFALL_SECTION_TYPE_TITLE}},setup:(e,t)=>({})});const Rn=["type"];function Ln(e,t){const o=[];if(t&&t.length>0)for(let n=0;n<t.length;n++){let a=wn(e,t[n],n);o.push(a)}return o}function wn(e,t,o){let n=0;return t.itemList.length>0&&(n=function(e,t,o){const n=t.itemList,a=t.style?.spacing??0,s=t.titleStyle,r=s?.height??0,l=s?.marginTop??0,i=s?.marginBottom??0,c=s?.paddingTop??0,u=s?.paddingBottom??0;let d=0,p=0,f=0,g=0;for(let t=0;t<n.length;t++){const s=n[t];s._sectionIndex=o;const r=s.decoration,l=r?.left??0,i=r?.top??0,c=r?.right??0,u=r?.bottom??0;let h=s?.style.width??0,m=s?.style.height??0;d+h+c>=e&&(p+=f+a,f=0,d=0),s.layout||(s.layout=[0,0,h,m]),s.layout[0]=d+l,s.layout[1]=p+i,s.layout[1]+m+u>g&&(g=s.layout[1]+m+u),m+i+u>f&&(f=m+i+u),d+=h+a+l+c}return g+r+l+i+c+u}(e.width,t,o),t.style.height=n),{type:t.type,style:t.style,title:t.title,titleStyle:t.titleStyle,itemList:t.itemList}}function On(){let e=[];function t(e){return e.itemList.length}function o(o,n){console.log("----1--------getRangeSectionListItemCount-----------------\x3e>>>");const a=e.length;if(o<0||o>=a)return 0;console.log("----2--------getRangeSectionListItemCount-----------------\x3e>>>");let s=o+n;o+n>a&&(s=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let r=0;for(let n=o;n<s;n++){r+=t(e[n])}return r}return{addSectionList:function(n){console.log("----1--------addSectionList-----------------\x3e>>>");const a=e.length;console.log("-----2-------addSectionList-----------------\x3e>>>",a);const s=o(0,a);console.log("-----3-------addSectionList-----------------\x3e>>>",s);const r=function(e){if(e.length<=0)return 0;let o=0;for(let n=0;n<e.length;n++){o+=t(e[n])}return o}(n);return console.log("-----4-------addSectionList-----------------\x3e>>>",r),e.push(...n),{sectionIndex:a,sectionCount:n.length,itemIndex:s,itemCount:r}},deleteSection:function(t,n){const a=o(0,t-1),s=o(t,n);return e.splice(t,n),{sectionIndex:t,sectionCount:n,itemIndex:a,itemCount:s}},updateSection:function(n,a){const s=o(0,n-1),r=t(a);return e.splice(n,1,a),{sectionIndex:n,sectionCount:1,itemIndex:s,itemCount:r}},addItemList:function(t,o){const n=e.length;if(t<0||t>=n||o.length<=0)return{sectionIndex:-1,sectionCount:0,itemIndex:-1,itemCount:0};const a=e[t],s=a.itemList.length;return a.itemList.push(...o),{sectionIndex:t,sectionCount:1,itemIndex:s,itemCount:o.length}},deleteItem:function(t,o,n){return e[t].itemList.splice(o,n),{sectionIndex:t,sectionCount:1,itemIndex:o,itemCount:n}},updateItem:function(t,o,n){return e[t].itemList.splice(o,1,n),{sectionIndex:t,sectionCount:1,itemIndex:-1,itemCount:-1}},clear:function(){e=[]}}}Cn.render=function(e,t,o,l,i,c){const u=n("text-view");return a(),s("div",{class:"section-title-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.type,focusable:!1,bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[T(u,{class:"section-title-text-css",delayLoad:"200",postDelay:"300",style:r({marginLeft:e.plateTitleLeftMargin+"px"}),focusable:!1,textSize:50,text:"${title}"},null,8,["style"])],8,Rn)},Cn.__scopeId="data-v-20428d40",Cn.__file="src/waterfall/section/section-title.vue";const An="qt-waterfall";var $n=bo({name:"qt-waterfall",emits:["onScroll","onScrollStateChanged","onItemClick","onItemFocused","onItemBind","onItemAttached"],props:{enablePlaceholder:{type:Boolean,default:!0},prevLoadNumber:{type:Number,default:3},backTop:{type:Function,default:()=>{}},isLoadMore:{type:Boolean,default:!0},headBlank:{type:Number,default:90}},setup(e,t){const n=P(),a={name:"tvList"+Date.now(),size:{20008:10}},s=o();let r;const l=On();return{waterfallRef:s,init:function(e){r=e},setSectionList:function(e){if(!r)return;n.isLoggable(N.DEBUG)&&n.d(An,"-------1---setSectionList--------------\x3e>>"),l.clear(),n.isLoggable(N.DEBUG)&&n.d(An,"-------2---setSectionList--------------\x3e>>"),l.addSectionList(e);const t=Ln(r,e);n.isLoggable(N.DEBUG)&&n.d(An,"----------setSectionList-----最终数据---------\x3e>>",t),s.value?.setListData(t)},addSectionList:function(e){if(!r)return;const t=l.addSectionList(e);n.isLoggable(N.DEBUG)&&n.d(An,"----------addSectionList--------------\x3e>>",t);const o=Ln(r,e);s.value?.addListData(o)},deleteSection:function(e,t){const o=l.deleteSection(e,t);n.isLoggable(N.DEBUG)&&n.d(An,"----------deleteSection--------------\x3e>>",o),s.value?.deleteItem(e,t)},updateSection:function(e,t){const o=l.updateSection(e,t);o.itemIndex>=0&&o.itemCount>=0&&(n.isLoggable(N.DEBUG)&&n.d(An,"----------updateSection--------------\x3e>>",o),s.value?.updateItemList(o.itemIndex,o.itemCount,t.itemList))},addItemList:function(e,t){const o=l.addItemList(e,t);o.itemIndex>=0&&o.itemCount>=0&&(n.isLoggable(N.DEBUG)&&n.d(An,"----------addItemList--------------\x3e>>",o),s.value?.addItem(o.itemIndex,t))},deleteItem:function(e,t,o){const a=l.deleteItem(e,t,o);a.itemIndex>=0&&a.itemCount>=0&&(n.isLoggable(N.DEBUG)&&n.d(An,"----------deleteItem--------------\x3e>>",a),s.value?.deleteItem(a.itemIndex,a.itemCount))},updateItem:function(e,t,o){l.updateItem(e,t,o)},cachePool:a,flexCachePool:{name:"tvFlex",size:{1:50}},onScroll:function(e){e.stopPropagation();let o=e.offsetY,n=e.offsetX;t.emit("onScroll",n,o)},onItemClick:function(e){t.emit("onItemClick",e.item._sectionIndex,e.position,e.item)},onItemFocused:function(e){n.isLoggable(N.DEBUG)&&n.d(An,"----------onItemFocused--------------\x3e>>",e,"sectionIndex:"+e.item._sectionIndex+" position:"+e.position+" isFocused:"+e.isFocused+" "),t.emit("onItemFocused",e.item._sectionIndex,e.position,e.isFocused,e.item)},onItemBind:function(e){n.isLoggable(N.DEBUG)&&n.d(An,"----------onItemBind--------------\x3e>>",e),t.emit("onItemBind",e.position)},onItemAttached:function(e){t.emit("onItemAttached",e.position)},onScrollStateChanged:function(e){let o=e.offsetY,n=e.offsetX,a=e.newState;t.emit("onScrollStateChanged",n,o,a)},resumePostTask:function(){s.value?.pausePostTask()},pausePostTask:function(){s.value?.pausePostTask()},clearPostTask:function(){s.value?.clearPostTask()},destroy:function(){s.value?.destroy()},onListSectionItemBind:function(e,t){n.isLoggable(N.DEBUG)&&n.d(An,"----------onListSectionItemBind--------------\x3e>>",e,t),s.value?.updateItem(e,t)}}},components:{"standard-section":In,"tabs-list-section":Fn,"section-title":Cn,"loading-section":Dn}});const Bn=(e=>(_("data-v-2e65df68"),e=e(),S(),e))((()=>b("div",{focusable:!1,type:-1e3,style:{backgroundColor:"transparent"},flexStyle:"${sectionStyle}"},null,-1))),Vn={type:-1001,focusable:!1,flexStyle:"${sectionStyle}",style:{"background-color":"transparent","align-items":"center"}};$n.render=function(e,t,o,s,r,l){const c=n("standard-section"),u=n("tabs-list-section"),p=n("loading-section"),g=n("text-view"),h=n("tv-list");return a(),d(h,{ref:"waterfallRef",class:"qt-waterfall-root-css",clipChildren:!1,clipPadding:!1,listenBoundEvent:!0,negativeKeyTime:"30",postContentDelay:"500",onScroll:e.onScroll,onItemClick:e.onItemClick,onItemFocused:e.onItemFocused,onItemBind:e.onItemBind,onItemAttached:e.onItemAttached,focusMemory:!1,cachePool:e.cachePool,preload:1,checkScrollOffsetOnStateChanged:!0,makeChildVisibleType:"center",scrollThresholdVertical:50,scrollEventThrottle:16,enableSelectOnFocus:!1,advancedFocusSearchSpan:"1",scrollYLesserReferenceValue:30,scrollYGreaterReferenceValue:30,shakePreCheckNumber:"4",blockFocusDirections:["down"],onScrollStateChanged:e.onScrollStateChanged},{default:y((()=>[i(" 普通版块"),T(c,{useDiff:!1,"cache-pool":e.flexCachePool,enablePlaceholder:e.enablePlaceholder},{default:y((()=>[f(e.$slots,"item")])),_:3},8,["cache-pool","enablePlaceholder"]),i("一行滚动 多级tab"),T(u,{enablePlaceholder:e.enablePlaceholder},{default:y((()=>[f(e.$slots,"listItem")])),_:3},8,["enablePlaceholder"]),i(" loading"),T(p),Bn,b("div",Vn,[T(g,{focusable:!1,gravity:"center",style:{width:"500px",height:"50px",color:"rgba(255,255,255,.5)","margin-top":"55px","align-self":"center","background-color":"transparent"},fontSize:28,text:"${text}"})]),f(e.$slots,"section")])),_:3},8,["onScroll","onItemClick","onItemFocused","onItemBind","onItemAttached","cachePool","onScrollStateChanged"])},$n.__scopeId="data-v-2e65df68",$n.__file="src/waterfall/index.vue";var zn,Un,qn=bo({name:"qt-tab",props:{prevLoadNumber:{type:Number,default:3},topBlank:{type:Number,default:0},tabNavBarClass:{type:String,default:""},tabClass:{type:String,default:""},tabsDataStrategy:{type:String,default:"overTime"},tabContentClass:{type:String,default:""},horizontal:{type:Boolean,default:!0},pageTransform:{type:Boolean,default:!0},hideOnSingleTab:{type:Boolean,default:!0},floatNavBar:{type:Boolean,default:!0},arrangeType:{type:String,default:"TB"},decorationCreator:{type:Function,default:null},contentNextFocus:{type:Object,default:()=>({up:"tabList",left:"tabList"})},headBlank:{type:Number,default:0},nodeGap:{type:Number,default:36},enableLoadMore:{type:Boolean,default:!0},triggerTask:{type:Array,default:()=>[]},blockViewPager:{type:Array,default:()=>[]},blockViewPagerVertical:{type:Array,default:()=>[]}},setup(e,t){const n=o(),a=o(!0),s=o(300),r=o(500),l=o(1),i=o(!0),c=o();let u;return{tabs:n,ifTabs:a,navBarRef:c,initTab:function(e){let t={defaultIndex:e.defaultIndex,focusIndex:e.defaultFocusIndex,data:e.tabItemList};n.value?.setTabsData(t)},initWaterfall:function(e){u=e},setTabPageData:function(e,t){const o={data:Ln(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};n.value?.setPageData(e,o)},addPageData:function(e,t,o=0){const a={data:Ln(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};n.value?.addPageData(e,a,o)},updatePageData:function(e,t){const o={data:Ln(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};n.value?.updatePageData(e,o)},blockRootFocus:function(){n.value?.blockRootFocus()},unBlockRootFocus:function(){n.value?.unBlockRootFocus()},focusBackToTop:function(){n.value?.focusBackToTop()},requestNodeFocus:function(e){n.value?.requestNodeFocus(e)},reloadAll:function(e=!0){n.value?.reloadAll(e)},reloadPage:function(e){n.value?.reloadPage(e)},setCurrentPage:function(e){n.value?.setCurrentPage(e)},requestTabFocus:function(e){n.value?.requestTabFocus(e)},invokeContentFunction:function(e,t,o){n.value?.invokeContentFunction(e,t,o)},invokeContentFunctionDirect:function(e,t){n.value?.invokeContentFunctionDirect(e,t)},contentScrollToFocus:function(e){n.value?.contentScrollToFocus(e)},getRootNodeViewState:function(e,t,o){n.value?.getRootNodeViewState(e,t,o)},getChildNodeViewState:function(e,t,o,a,s){n.value?.getChildNodeViewState(e,t,o,a,s)},dispatchUIFunctionOnChildNode:function(e,t,o,a,s){n.value?.dispatchUIFunctionOnChildNode(e,t,o,a,s)},updateItemMatched:function(e="id",t,o){n.value?.updateItemMatched(e,t,o)},updateRootNode:function(e,t,o){n.value?.updateRootNode(e,t,o)},updateChildNode:function(e,t,o,a){n.value?.updateChildNode(e,t,o,a)},destroy:function(){n.value?.destroy()},pageSwitchDelay:s,pageResumeDelay:r,rootOpacity:l,isTabHorizontal:i,onLoadTabPageData:function(e){const o=e.pageIndex,n=e.useDiff;t.emit("onLoadTabPageData",o,n)},onTabPageChanged:function(e){const o=e.pageIndex,n=e.data;t.emit("onTabPageChanged",o,n)},onTabEvent:function(e){const o=e.params,n=e.eventName,a=e.params.itemPosition;t.emit("onTabEvent",a,n,o)}}}});function jn(e,t,o=!0){let n=e.length;o?e.map(((e,o)=>{o!==n-1&&(e.decoration={bottom:t})})):e.map(((e,o)=>{o!==n-1&&(e.decoration={right:t})}))}qn.render=function(e,t,o,s,r,c){const u=n("qt-nav-bar"),p=n("qt-waterfall"),g=n("recycler-view-pager"),h=n("tabs");return e.ifTabs?(a(),d(h,{key:0,ref:"tabs",class:l(["tabs-root-css",e.tabClass]),dataStrategy:e.tabsDataStrategy,hideOnSingleTab:this.hideOnSingleTab,pageSwitchDelay:e.pageSwitchDelay,resumeTaskDelay:e.pageResumeDelay,suspension:this.floatNavBar,clipChildren:!1,outOfDateTime:3e5,blockFocusDirections:["down"],onLoadPage:e.onLoadTabPageData,onPageChanged:e.onTabPageChanged,onTabEvent:e.onTabEvent},{default:y((()=>[T(u,{ref:"navBarRef",name:"tabList",focusable:!1,class:"tab-nav-bar-root-css","class-name":e.tabNavBarClass,"text-key":"text",clipChldren:!1,horizontal:e.isTabHorizontal},{default:y((()=>[f(e.$slots,"tabItem")])),_:3},8,["class-name","horizontal"]),T(g,{nextFocusName:e.contentNextFocus,ref:"viewPager",class:l([e.tabContentClass,"tab-content-css"]),name:"content",loadingItemType:-1,clipChldren:!1,opacity:e.rootOpacity,focusable:!1,enableTransform:e.pageTransform,triggerTask:e.triggerTask,direction:e.isTabHorizontal?"horizontal":"vertical",blockFocusDirections:e.isTabHorizontal?e.blockViewPager:e.blockViewPagerVertical},{default:y((()=>[T(p,null,{item:y((()=>[f(e.$slots,"waterfallItem")])),_:3})])),_:3},8,["nextFocusName","class","opacity","enableTransform","triggerTask","direction","blockFocusDirections"])])),_:3},8,["dataStrategy","hideOnSingleTab","pageSwitchDelay","resumeTaskDelay","suspension","class","onLoadPage","onPageChanged","onTabEvent"])):i("v-if",!0)},qn.__file="src/tab/index.vue",function(e){e.QT_DIRECTION_UP="up",e.QT_DIRECTION_DOWN="down",e.QT_DIRECTION_RIGHT="right",e.QT_DIRECTION_LEFT="left"}(zn||(zn={})),function(e){e[e.SCROLL_STATE_IDLE=0]="SCROLL_STATE_IDLE",e[e.SCROLL_STATE_DRAGGING=1]="SCROLL_STATE_DRAGGING",e[e.SCROLL_STATE_SETTLING=2]="SCROLL_STATE_SETTLING"}(Un||(Un={}));const Mn=[D,A,pn,vn,$n,qn],Wn=n=>{n.component("qt-loading-view",{setup(e,t){const n=o();return()=>k("LoadingViewComponent",{ref:n})}}),function(n){const a=t({props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1}},emits:["item-click","scroll","item-focused","item-attached","item-detached","item-bind","item-unbind","load-more","scroll-state-changed","focus-search-failed","scrollYGreaterReference","scrollYLesserReference"],setup(t,n){const a=o(),s=F(),r={apkVersion:String(s.getESSDKVersionCode()).slice(0,3),recordTarget:[],changeTarget:[],keyArr:[],type:"",pageNo:-1,isStopPage:!1,setListDataTimer:-1,stopPageTimer:-1,defaultFocusTimer:-1,pushDataTimer:-1};g((()=>t.openPage),((e,o)=>{1==e&&e&&(r.pageNo=1,r.isStopPage=!1,t.loadMore(r.pageNo))}));const l=e=>{0==r.recordTarget.length&&(r.recordTarget=c(e),i(r.recordTarget,-1),r.changeTarget=e,t.openPage?p(r.recordTarget.concat([{type:"1002",decoration:{top:18,bottom:18,right:30,left:30}}])):p(r.recordTarget),t.defaultFocus>-1&&(r.defaultFocusTimer&&clearTimeout(r.defaultFocusTimer),r.defaultFocusTimer=setTimeout((()=>{S(t.defaultFocus)}),500)));let o={get(e,o,n){if("__ob__"!=o&&"symbol"!=typeof o&&"map"!=o&&"length"!=o&&"constructor"!=o&&"_isVue"!=o&&"valueOf"!=o&&"toString"!=o&&"observeArray"!=o&&"dep"!=o&&"notify"!=o&&"subs"!=o&&"slice"!=o)if(r.keyArr.push(o),-1!=r.keyArr.indexOf("push"))r.type="push";else{if(-1!=r.keyArr.indexOf("splice"))return r.type="splice",function(...t){return e.splice(...t),-1!=r.keyArr.indexOf("list")?(r.recordTarget[r.keyArr[0]].list.splice(...t),v(Number(r.keyArr[0]),r.recordTarget[r.keyArr[0]])):1==t.length?(y(Number(t[0]),r.recordTarget.length-t[0]+1),r.recordTarget.splice(...t)):2==t.length?(y(Number(t[0]),t[1]),r.recordTarget.splice(...t)):3==t.length&&(e.splice(t[0],t[1],...t[2]),r.recordTarget.splice(t[0],t[1],...t[2]),0==t[1]?Number(r.apkVersion)>2.2&&_(t[0],t[2]):T(t[0],t[1],t[2])),r.keyArr=[],Reflect.get(e,o,n)};if(-1!=r.keyArr.indexOf("pop"))return r.type="pop",function(){return e.pop(),-1!=r.keyArr.lastIndexOf("list")?(r.recordTarget[r.keyArr[0]].list.pop(),v(Number(r.keyArr[0]),r.recordTarget[r.keyArr[0]])):(y(Number(r.recordTarget.length-1),1),r.recordTarget.pop()),r.keyArr=[],Reflect.get(e,o,n)};if(-1!=r.keyArr.indexOf("forEach"))return r.type="forEach",function(a){return e.forEach((e=>{a(e)})),r.recordTarget=[],r.recordTarget=c(e),t.openPage?p(r.recordTarget.concat([{type:"1002",decoration:{top:15,left:30}}])):p(r.recordTarget),r.keyArr=[],Reflect.get(e,o,n)};if(-1!=r.keyArr.indexOf("concat"))return r.type="concat",function(a){return e.concat(a),-1!=r.keyArr.lastIndexOf("list")?(r.recordTarget[r.keyArr[0]].list=r.recordTarget[r.keyArr[0]].list.concat(a),v(Number(r.keyArr[0]),r.recordTarget[r.keyArr[0]])):t.openPage&&!r.isStopPage?(r.recordTarget.concat(a),setTimeout((()=>{h(a.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300)):f(a),r.keyArr=[],Reflect.get(e,o,n)};if(-1!=r.keyArr.indexOf("deleteItem"))return function(...t){let a=!1;for(let o=0;o<r.recordTarget.length;o++){const n=r.recordTarget[o];if(n.id&&n.id==t[0])return a=!0,y(Number(o),t[1]),e.splice(Number(o),t[1]),r.recordTarget.splice(Number(o),t[1]),!1;if(n.list&&n.list.length>0)for(let s=0;s<n.list.length;s++){const l=n.list[s];if(l.id&&l.id==t[0])return a=!0,e[o].list.splice(Number(s),t[1]),r.recordTarget[o].list.splice(Number(s),t[1]),v(Number(o),r.recordTarget[o]),!1}}return a||console.log("deleteItem:没有找到相对应id"),r.keyArr=[],Reflect.get(e,o,n)};if(-1!=r.keyArr.indexOf("updateItemProps"))return r.type="updateItemProps",function(...t){let a=t[2];return u(a)&&(Object.keys(a).forEach((o=>{e[t[0]][`${o}`]=a[`${o}`],r.recordTarget[t[0]][`${o}`]=a[`${o}`]})),-1!=r.keyArr.indexOf("list")?console.log("updateItemProps: 不支持嵌套调用updateItemProps"):b(t[0],t[1],t[2])),r.keyArr=[],Reflect.get(e,o,n)};r.type=""}const a=Reflect.get(e,o,n);return u(a)&&"__ob__"!=o&&"dep"!=o&&"subs"!=o?l(a):(-1==r.keyArr.indexOf("push")&&(r.keyArr=[]),a)},set(e,o,n,a){const s=e[o];d(e,o);const l=Reflect.set(e,o,n,a);if((!u(s)&&s!==n||u(s))&&"push"!=r.type)if(r.keyArr.push(o),-1!=r.keyArr.lastIndexOf("list")){let e=r.keyArr.lastIndexOf("list"),t=r.keyArr.lastIndexOf("list")+2,o={};for(let e=0;e<t;e++){let t=r.keyArr[e];o=o?o[t]:r.changeTarget[t]}o.name="name"+r.keyArr[e-1]+r.keyArr[e+1],v(Number(r.keyArr[0]),r.changeTarget[r.keyArr[0]]),r.recordTarget[r.keyArr[0]].list[r.keyArr[e+1]]=r.changeTarget[r.keyArr[0]].list[r.keyArr[e+1]],r.recordTarget[r.keyArr[0]].list[r.keyArr[e+1]].name="name"+r.keyArr[e-1]+r.keyArr[e+1]}else r.recordTarget[r.keyArr[0]]=r.changeTarget[r.keyArr[0]],r.recordTarget[r.keyArr[0]].name="name"+r.keyArr[0],v(Number(r.keyArr[0]),r.changeTarget[r.keyArr[0]]);if(o&&"push"==r.type&&s!==n)-1!=r.keyArr.lastIndexOf("list")?(r.keyArr.push(o),r.recordTarget[r.keyArr[0]].list.push(n)):(r.keyArr.push(o),r.recordTarget.push(n));else{if("push"==r.type)if(-1!=r.keyArr.lastIndexOf("list"))v(Number(r.keyArr[0]),r.recordTarget[r.keyArr[0]]);else{let e=r.recordTarget.slice(r.keyArr[1]);r.pushDataTimer&&clearTimeout(r.pushDataTimer),t.openPage&&!r.isStopPage?r.pushDataTimer=setTimeout((()=>{h(e.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300):r.pushDataTimer=setTimeout((()=>{f(e)}),300)}r.keyArr=[]}return l}};return new Proxy(e,o)},i=(e,t)=>{for(let o=0;o<e.length;o++){const n=e[o];n.name=t>=0?"name"+t+o:"name"+o,n.list&&n.list.length>0&&i(n.list,o)}},c=(e={})=>{let t=null;if("object"==typeof e&&null!==e)for(var o in t=e instanceof Array?[]:{},e)t[o]=c(e[o]);else t=e;return t},u=e=>null!==e&&"object"==typeof e,d=(e,t)=>{Object.hasOwnProperty.call(e,t)},p=t=>{r.setListDataTimer&&clearTimeout(r.setListDataTimer),r.setListDataTimer=setTimeout((()=>{e.callUIFunction(a.value,"setListData",t)}),100)},f=t=>{e.callUIFunction(a.value,"addListData",t)},h=(t,o)=>{e.callUIFunction(a.value,"addListDataWithParams",[t,o])},y=(t,o)=>{e.callUIFunction(a.value,"deleteItemRange",[t,o])},v=(t,o)=>{e.callUIFunction(a.value,"updateItem",[t,o])},T=(t,o,n)=>{e.callUIFunction(a.value,"updateItemRange",[t,o,n])},b=(t,o,n)=>{e.callUIFunction(a.value,"updateItemProps",[o,t,n,!0])},_=(t,o)=>{e.callUIFunction(a.value,"insertItemRange",[t,o])},S=t=>{e.callUIFunction(a.value,"requestChildFocus",[t])};return m((()=>{r.recordTarget=[],r.changeTarget.length=0,r.keyArr=[],r.isStopPage=!1,r.pageNo=1,r.type="",r.setListDataTimer&&clearTimeout(r.setListDataTimer),r.defaultFocusTimer&&clearTimeout(r.defaultFocusTimer),r.pushDataTimer&&clearTimeout(r.pushDataTimer),r.stopPageTimer&&clearTimeout(r.stopPageTimer)})),n.expose({viewRef:a,init:l,...r,undataItemName:i,hasChanged:(e,t)=>e!==t&&(e==e||t==t),updateItem:v,updateItemList:T,hasFocus:t=>{e.callUIFunction(a.value,"hasFocus",(e=>{t(e)}))},updateItemProps:b,setListData:p,insertItem:_,addListData:f,addListDataWithParams:h,dispatchItemFunction:(t,o,n,s)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,o,n,s])},deleteItem:y,setBlockFocusDirectionsOnFail:t=>{e.callUIFunction(a.value,"setBlockFocusDirectionsOnFail",[t])},setListDataWithParams:(t,o)=>{e.callUIFunction(a.value,"setListDataWithParams",[t,o])},prepareForRecycle:()=>{e.callUIFunction(a.value,"prepareForRecycle",[])},setDisplay:t=>{e.callUIFunction(a.value,"setDisplay",[t])},scrollToTop:()=>{e.callUIFunction(a.value,"scrollToTop",[])},changeDisplayState:(t,o)=>{e.callUIFunction(a.value,"changeDisplayState",[t,o])},notifySaveInstance:()=>{e.callUIFunction(a.value,"notifySaveInstance",[])},notifyRestoreInstance:()=>{e.callUIFunction(a.value,"notifyRestoreInstance",[])},pausePostTask:()=>{e.callUIFunction(a.value,"pausePostTask",[])},resumePostTask:()=>{e.callUIFunction(a.value,"resumePostTask",[])},getScrollOffset:t=>{e.callUIFunction(a.value,"getScrollOffset",[],t)},scrollToPosition:t=>{e.callUIFunction(a.value,"scrollToPosition",[t])},scrollToPositionOffset:(t,o,n,s,r)=>{e.callUIFunction(a.value,"scrollToPositionWithOffset",[o,s,n])},destroy:()=>{e.callUIFunction(a.value,"destroy",[])},setInitPosition:t=>{e.callUIFunction(a.value,"setInitPosition",[t])},requestFocus:S,clearPostTask:()=>{e.callUIFunction(a.value,"clearAllPostTask",[])},clearFocus:()=>{e.callUIFunction(a.value,"clearFocus",[])},setSelectPosition:(t,o)=>{e.callUIFunction(a.value,"setSelectChildPosition",[t,o])},blockRootFocus:()=>{e.callUIFunction(a.value,"blockRootFocus",[])},unBlockRootFocus:()=>{e.callUIFunction(a.value,"unBlockRootFocus",[])},setBackgroundColor:t=>{e.callUIFunction(a.value,"setBackgroundColor",[t])},stopPage:()=>{r.stopPageTimer&&clearTimeout(r.stopPageTimer),r.stopPageTimer=setTimeout((()=>{y(r.recordTarget.length,1)}),400),r.isStopPage=!0}}),()=>{const e=n.slots.default&&n.slots.default();return k("FastListView",{ref:a,onItemClick:e=>{n.emit("item-click",e)},onScroll:e=>{n.emit("scroll",e)},onItemFocused:e=>{n.emit("item-focused",e)},onAttachedToWindow:e=>{n.emit("item-attached",e)},onDetachedFromWindow:e=>{n.emit("item-detached",e)},onBindItem:e=>{n.emit("item-bind",e)},onUnbindItem:e=>{n.emit("item-unbind",e)},onLoadMore:e=>{n.emit("load-more",e)},onScrollStateChanged:e=>{n.emit("scroll-state-changed",e)},onFocusSearchFailed:e=>{n.emit("focus-search-failed",e)},onScrollYGreaterReference:e=>{n.emit("scrollYGreaterReference",e)},onScrollYLesserReference:e=>{n.emit("scrollYLesserReference",e)}},e)}}});n.component("qt-list-view",a)}(n),function(n){const a=t({emits:["item-focused","item-attached","item-detached","item-bind","item-unbind"],setup(t,n){const a=o();return n.expose({viewRef:a,updateItem:(t,o)=>{e.callUIFunction(a.value,"updateItem",[t,o])},dispatchItemFunction:(t,o,n,s)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,o,n,s])},updateItemProps:(t,o,n)=>{e.callUIFunction(a.value,"updateItemProps",[o,t,n,!0])},batch:t=>{e.callUIFunction(a.value,"batch",[t])}}),()=>{const e=n.slots.default&&n.slots.default();return k("FastListView",{ref:a,onBindItem:e=>{n.emit("item-bind",e)},onItemFocused:e=>{n.emit("item-focused",e)},onAttachedToWindow:e=>{n.emit("item-attached",e)},onDetachedFromWindow:e=>{n.emit("item-detached",e)},onItemRecycled:e=>{n.emit("item-unbind",e)}},e)}}});n.component("qt-list-item",a)}(n);for(let e in Mn)n.component(Mn[e].name,Mn[e])};export{zn as QTDirections,Un as QTScrollState,Sn as QTWaterfallItemType,_n as QTWaterfallSectionType,Wn as QuickTVUI,jn as arrangeChildren4ListView};
|
|
1
|
+
import{Native as e}from"@extscreen/es3-vue";import{defineComponent as t,ref as n,resolveComponent as o,openBlock as a,createElementBlock as s,normalizeStyle as i,normalizeClass as l,createCommentVNode as r,withDirectives as c,vShow as u,createBlock as d,toDisplayString as p,renderSlot as f,watch as g,onMounted as m,onBeforeUnmount as h,withCtx as y,Fragment as T,createVNode as v,createElementVNode as b,pushScopeId as _,popScopeId as S,reactive as I,h as k}from"vue";import{useESToast as x,useES as E,useESLog as P,ESLogLevel as D}from"@extscreen/es3-core";var F=t({name:"qt-button",props:{type:{type:String,default:"default"},itemType:{type:Number,default:2e4},focusBorder:{type:Boolean,default:!1},focusScale:{type:Number,default:1.08},focusable:{type:Boolean,default:!0},enableFlexStyle:{type:Boolean,default:!1},icon:{type:String,default:null},focusIcon:{type:String,default:null},text:{type:String,default:""},gradientFocusBackground:{type:Object,default:()=>{}},gradientSelectedBackground:{type:Object,default:()=>null},gradientBackground:{type:Object,default:()=>null},size:String,disabled:Boolean,circle:Boolean,round:Boolean,square:Boolean,buttonStyle:Object,textStyle:Object,iconStyle:Object,focusIconStyle:Object,iconParentStyle:Object},setup(t,o){const a=n(),s=n(!1);return{focused:s,requestFocus:function(){e.callUIFunction(a.value,"requestFocus",[])},requestFocusDirectly:function(){e.callUIFunction(a.value,"requestFocusDirectly",[])},onFocus:function(e){s.value=e.isFocused,o.emit("focus",e.isFocused)},onClick:function(e){o.emit("click")}}}});const N=["focusable","enableFocusBorder","focusScale"],L=["gradientBackground"],A=["gradientBackground"],C=["gradientBackground"],R=["src"],O=["src"];F.render=function(e,t,n,g,m,h){const y=o("text-view");return a(),s("div",{ref:"buttonRef",clipChildren:!1,focusable:e.focusable,enableFocusBorder:e.focusBorder,focusScale:e.focusScale,onClick:t[0]||(t[0]=(...t)=>e.onClick&&e.onClick(...t)),name:"textButton",eventClick:"",eventFocus:"",onFocus:t[1]||(t[1]=(...t)=>e.onFocus&&e.onFocus(...t)),style:i(e.buttonStyle),class:l([e.type?"quick-button--"+e.type:"",e.size?"quick-button--"+e.size:"",{"is-disabled-button":e.disabled,"is-circle":e.circle,"is-round":e.round,"is-square":e.square}])},[r(" gradient "),e.gradientFocusBackground?(a(),s("div",{key:0,class:"button-gradient-background-css",gradientBackground:e.gradientFocusBackground,focusable:!1,showOnState:"focused"},null,8,L)):r("v-if",!0),e.gradientSelectedBackground?(a(),s("div",{key:1,class:"button-gradient-background-css",gradientBackground:e.gradientSelectedBackground,focusable:!1,showOnState:"selected"},null,8,A)):r("v-if",!0),e.gradientBackground?(a(),s("div",{key:2,class:"button-gradient-background-css",gradientBackground:e.gradientBackground,focusable:!1,showOnState:"normal"},null,8,C)):r("v-if",!0),r(" -----------------------------icon--------------------------------- "),!e.icon&&!e.focusIcon||e.$slots.default?r("v-if",!0):(a(),s("div",{key:3,duplicateParentState:!0,style:i(e.iconParentStyle),flexStyle:"${iconParentStyle}",class:l(["quick-button-icon-parent",e.size?"quick-button-icon--parent"+e.size:""])},[e.icon&&!e.$slots.default?c((a(),s("img",{key:0,style:i(e.iconStyle),flexStyle:"${iconStyle}",duplicateParentState:!0,class:l(["quick-button-icon",e.size?"quick-button-icon--"+e.size:"",{"is-square-icon":e.square}]),focusable:!1,src:e.enableFlexStyle?"${"+e.icon+"}":e.icon,showOnState:"normal"},null,14,R)),[[u,!e.focused]]):r("v-if",!0),e.focusIcon&&!e.$slots.default?c((a(),s("img",{key:1,style:i(e.focusIconStyle?e.focusIconStyle:e.iconStyle),flexStyle:"${iconStyle}",class:l(["quick-button-icon",e.size?"quick-button-icon--"+e.size:"",{"is-square-icon":e.square}]),focusable:!1,duplicateParentState:!0,src:e.enableFlexStyle?"${"+e.focusIcon+"}":e.focusIcon,showOnState:"focused"},null,14,O)),[[u,e.focused]]):r("v-if",!0)],6)),r(" ------------------------------------------------------------------- "),r(" text "),e.enableFlexStyle?(a(),d(y,{key:4,style:i(e.textStyle),duplicateParentState:"",class:l([e.type?"quick-button-text--"+e.type:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1,text:"${"+e.text+"}",autoWidth:"",autoHeight:""},null,8,["style","class","text"])):e.text&&!e.$slots.default?(a(),s("span",{key:5,style:i(e.textStyle),duplicateParentState:"",class:l([e.type?"quick-button-text--"+e.type:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1},p(e.text),7)):r("v-if",!0),f(e.$slots,"default")],46,N)},F.__scopeId="data-v-46a594e4",F.__file="src/button/index.vue";var w=t({name:"qt-grid-view",props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},spanCount:{type:Number,default:0},pageSize:{type:Number},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1},areaWidth:{type:Number,default:1200},blockFocusDirections:{type:Array,default:()=>[]}},setup(e,t){x();const o=E(),a=n(),s={apkVersion:String(o.getESSDKVersionCode()).slice(0,3),recordTarget:[],changeTarget:[],listResult:[],keyArr:[],type:"",pageNo:-1,isStopPage:!1,setListDataTimer:-1,stopPageTimer:-1,defaultFocusTimer:-1,pushDataTimer:-1};g((()=>e.openPage),((t,n)=>{1==t&&t&&(s.pageNo=1,s.isStopPage=!1,e.loadMore(s.pageNo))})),m((()=>{}));const i=t=>{0==s.recordTarget.length&&(s.recordTarget=r(t),s.changeTarget=t,"2.1"==s.apkVersion?(l(),e.openPage&&e.pageSize&&s.listResult.length>=e.pageSize/e.spanCount?a.value.setListData(s.listResult.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.listResult)):e.openPage&&e.pageSize&&s.recordTarget.length>=e.pageSize?a.value.setListData(s.recordTarget.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.recordTarget),e.defaultFocus>-1&&(s.defaultFocusTimer&&clearTimeout(s.defaultFocusTimer),s.defaultFocusTimer=setTimeout((()=>{a.value.scrollToPosition(e.defaultFocus),a.value.setItemFocused(e.defaultFocus)}),800)));let n={get(t,n,o){if("__ob__"!=n&&"symbol"!=typeof n&&"map"!=n&&"length"!=n&&"constructor"!=n&&"_isVue"!=n&&"valueOf"!=n&&"toString"!=n&&"observeArray"!=n&&"dep"!=n&&"notify"!=n&&"subs"!=n&&"slice"!=n)if(s.keyArr.push(n),-1!=s.keyArr.indexOf("push"))s.type="push";else{if(-1!=s.keyArr.indexOf("splice"))return s.type="splice",function(...e){if(t.splice(...e),"2.1"==s.apkVersion)if(1==e.length||2==e.length)s.recordTarget.splice(...e),l(),a.value.setListData(s.listResult);else if(t.splice(e[0],e[1],...e[2]),s.recordTarget.splice(e[0],e[1],...e[2]),l(),0==e[1])a.value.setListData(s.listResult);else{let t=-1,n=0,o=0;for(let a=0;a<s.listResult.length;a++){const i=s.listResult[a];if("1003"==i.type)t++,e[0]==t&&(n=a),e[0]+e[1]-1==t&&(o=a);else for(let s=0;s<i.list.length;s++)i.list[s],t++,e[0]==t&&(n=a),e[0]+e[1]-1==t&&(o=a)}a.value.updateItemRange(n,o-n+1,s.listResult.slice(n,o+1))}else 1==e.length?(a.value.deleteItemRange(Number(e[0]),s.recordTarget.length-e[0]),s.recordTarget.splice(...e)):2==e.length?(a.value.deleteItemRange(Number(e[0]),e[1]),s.recordTarget.splice(...e)):3==e.length&&(t.splice(e[0],e[1],...e[2]),s.recordTarget.splice(e[0],e[1],...e[2]),0==e[1]?Number(s.apkVersion)>2.2&&a.value.insertItemRange(e[0],e[2]):a.value.updateItemRange(e[0],e[1],e[2]));return s.keyArr=[],Reflect.get(t,n,o)};if(-1!=s.keyArr.indexOf("pop"))return s.type="pop",function(){return t.pop(),"2.1"==s.apkVersion?(s.listResult[s.listResult.length-1].list.length<1&&s.listResult.pop(),s.listResult[s.listResult.length-1].list.pop(),a.value.updateItem(Number(s.listResult.length-1),s.listResult[s.listResult.length-1])):a.value.deleteItemRange(Number(s.recordTarget.length-1),1),s.recordTarget.pop(),s.keyArr=[],Reflect.get(t,n,o)};if(-1!=s.keyArr.indexOf("forEach"))return s.type="forEach",function(i){return t.forEach((e=>{i(e)})),s.recordTarget=[],s.recordTarget=r(t),"2.1"==s.apkVersion?(l(),e.openPage&&e.pageSize&&s.listResult.length>=e.pageSize&&!s.isStopPage?a.value.setListData(s.listResult.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.listResult)):e.openPage&&e.pageSize&&s.recordTarget.length>=e.pageSize&&!s.isStopPage?a.value.setListData(s.recordTarget.concat([{type:"1002",decoration:{top:15,left:30}}])):a.value.setListData(s.recordTarget),s.keyArr=[],Reflect.get(t,n,o)};if(-1!=s.keyArr.indexOf("concat"))return s.type="concat",function(i){if("[object Array]"===Object.prototype.toString.call(i))if(t.concat(i),s.recordTarget.concat(i),"2.1"==s.apkVersion){s.pushDataTimer&&clearTimeout(s.pushDataTimer);let t=s.listResult.length,n=s.listResult.slice(s.listResult.length-1)[0];l();let o=s.listResult.slice(t);e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?0==o.length||"1003"!=n.type&&n.list.length<e.spanCount?(o=s.listResult.slice(t-1),s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(o.concat([{type:"1002",decoration:{top:15,left:30}}]),2)}),300)):s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(o.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(o.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):a.value.setListData(s.listResult)}else e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(i.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(i.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(i)}),300);else console.log("concat:参数类型必须为数组");return s.keyArr=[],Reflect.get(t,n,o)};if(-1!=s.keyArr.indexOf("deleteItem"))return function(...e){let i=!1;for(let n=0;n<s.recordTarget.length;n++){const o=s.recordTarget[n];0!=o.id&&!o.id||o.id!=e[0]||(i=!0,t.splice(Number(n),e[1]),s.recordTarget.splice(Number(n),e[1]),"2.1"==s.apkVersion?(l(),a.value.setListData(s.listResult)):a.value.deleteItemRange(Number(n),e[1]))}return i||console.log("deleteItem:没有找到相对应id"),s.keyArr=[],Reflect.get(t,n,o)};if(-1!=s.keyArr.indexOf("updateItemProps"))return s.type="updateItemProps",function(...e){let i=e[2];if(c(i))if(Object.keys(i).forEach((n=>{t[e[0]][`${n}`]=i[`${n}`],s.recordTarget[e[0]][`${n}`]=i[`${n}`]})),"2.1"==s.apkVersion){l();let t=-1,n=0,o=0;for(let a=0;a<s.listResult.length;a++){const i=s.listResult[a];if("1003"==i.type)t++,e[0]==t&&(n=a,o=0);else for(let s=0;s<i.list.length;s++)i.list[s],t++,e[0]==t&&(n=a,o=s)}a.value.dispatchItemFunction(n,"tv_list_inner","updateItemProps",[o,e[1],e[2]])}else a.value.updateItemProps(e[0],e[1],e[2]);return s.keyArr=[],Reflect.get(t,n,o)};s.type=""}const u=Reflect.get(t,n,o);return c(u)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?i(u):(-1==s.keyArr.indexOf("push")&&(s.keyArr=[]),u)},set(t,n,o,i){const r=t[n],u=Reflect.set(t,n,o,i);if((!c(r)&&r!==o||c(r))&&"push"!=s.type)if(s.keyArr.push(n),s.recordTarget[s.keyArr[0]]=s.changeTarget[s.keyArr[0]],"2.1"==s.apkVersion){let e=s.keyArr[0],t=-1;for(let n=0;n<s.listResult.length;n++){const o=s.listResult[n];if("1003"==o.type)t++,t==e&&(s.listResult[n]=s.recordTarget[s.keyArr[0]],a.value.updateItem(Number(n),s.listResult[n]));else for(let i=0;i<o.list.length;i++)if(o.list[i],t++,t==e){s.listResult[n].list[i]=s.recordTarget[s.keyArr[0]];let e=s.listResult[n].list[i];e.decoration&&(e.decoration.top&&(e.decoration.top=0),e.decoration.bottom&&(e.decoration.bottom=0)),a.value.updateItem(Number(n),s.listResult[n])}}}else a.value.updateItem(Number(s.keyArr[0]),s.changeTarget[s.keyArr[0]]);if(n&&"push"==s.type&&r!==o)s.keyArr.push(n),s.recordTarget.push(o);else{if("push"==s.type&&s.keyArr.length>1)if("2.1"==s.apkVersion){s.pushDataTimer&&clearTimeout(s.pushDataTimer);let t=s.listResult.length,n=s.listResult.slice(s.listResult.length-1)[0];l();let o=s.listResult.slice(t);e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?0==o.length||"1003"!=n.type&&n.list.length<e.spanCount?(o=s.listResult.slice(t-1),s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(o.concat([{type:"1002",decoration:{top:15,left:30}}]),2)}),300)):s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(o.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(o.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):a.value.setListData(s.listResult)}else{let t=s.recordTarget.slice(s.keyArr[1]);s.pushDataTimer&&clearTimeout(s.pushDataTimer),e.openPage&&!s.isStopPage?e.pageSize||2!=s.pageNo?s.pushDataTimer=setTimeout((()=>{a.value.addListDataWithParams(t.concat([{type:"1002",decoration:{top:15,left:30}}]),1)}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(t.concat([{type:"1002",decoration:{top:15,left:30}}]))}),300):s.pushDataTimer=setTimeout((()=>{a.value.addListData(t)}),300)}s.keyArr=[]}return u}};return new Proxy(t,n)},l=()=>{let t=r(s.recordTarget);s.listResult=[];let n=0,o=[];for(let e=0;e<t.length;e++){let n=t[e];if("1003"==n.type)o.push(n);else if(n.decoration.top&&(n.toCompatibleSaveTopVal=n.decoration.top,n.decoration.top=0),n.decoration.bottom&&(n.toCompatibleSaveBottompVal=n.decoration.bottom,n.decoration.bottom=0),o[o.length-1]&&1==o[o.length-1].type)o[o.length-1].list.push(n);else{let e={type:1,list:[]};e.list.push(n),o.push(e)}}for(let t=0;t<o.length;t++){const a=o[t];if("1003"==a.type)s.listResult.push(a);else for(let t=0;t<a.list.length;t+=e.spanCount){const o=a.list[t];let i={top:-1,bottom:-1};o.decoration&&(i.top=o.toCompatibleSaveTopVal?o.toCompatibleSaveTopVal:0,i.bottom=o.toCompatibleSaveBottompVal?o.toCompatibleSaveBottompVal:0);const l={type:1,decoration:i,name:"name"+n,list:a.list.slice(t,t+e.spanCount)};n++,s.listResult.push(l)}}},r=(e={})=>{let t=null;if("object"==typeof e&&null!==e)for(var n in t=e instanceof Array?[]:{},e)t[n]=r(e[n]);else t=e;return t},c=e=>null!==e&&"object"==typeof e,u=e=>{if("2.1"==s.apkVersion){let t=-1;for(let n=0;n<s.listResult.length;n++){const o=s.listResult[n];if("1003"==o.type)t++,t==e&&a.value.scrollToPosition(n);else for(let s=0;s<o.list.length;s++)o.list[s],t++,t==e&&a.value.scrollToPosition(n)}}else a.value.scrollToPosition(e)},d=e=>{if("2.1"==s.apkVersion){let t=-1,n=0,o=0;for(let a=0;a<s.listResult.length;a++){const i=s.listResult[a];if("1003"==i.type)t++;else for(let s=0;s<i.list.length;s++)i.list[s],t++,e==t&&(n=a,o=s)}a.value.dispatchItemFunction(n,"tv_list_inner","requestChildFocus",[o])}else a.value.requestChildFocus(e)},p=(e,t)=>{if("2.1"==s.apkVersion){let t=-1,n=0,o=0;for(let a=0;a<s.listResult.length;a++){const i=s.listResult[a];if("1003"==i.type)t++;else for(let s=0;s<i.list.length;s++)i.list[s],t++,e==t&&(n=a,o=s)}a.value.dispatchItemFunction(n,"tv_list_inner","setSelectChildPosition",[o])}else a.value.setSelectChildPosition(e,t)},f=()=>{a.value.destroy()};return h((()=>{s.recordTarget=[],s.listResult=[],s.changeTarget=null,s.isStopPage=!1,s.keyArr=[],s.pageNo=1,s.isStopPage=!1,s.type="",f(),s.setListDataTimer&&clearTimeout(s.setListDataTimer),s.pushDataTimer&&clearTimeout(s.pushDataTimer),s.stopPageTimer&&clearTimeout(s.stopPageTimer),s.defaultFocusTimer&&clearTimeout(s.defaultFocusTimer)})),{tv_list:a,...s,init:i,dealData:l,copyObj:r,isObject:c,hasChanged:(e,t)=>e!==t&&(e==e||t==t),hasOwn:(e,t)=>{Object.hasOwnProperty.call(e,t)},onItemClick:e=>{if("2.1"==s.apkVersion){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const i=s.listResult[a];if("1003"==i.type)t++;else for(let s=0;s<i.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}t.emit("item-click",e)},onItemBind:n=>{"2.1"==s.apkVersion?s.isStopPage||n.position!=s.listResult.length-1-e.preloadNo/e.spanCount||(s.pageNo++,e.loadMore(s.pageNo)):s.isStopPage||n.position!=s.recordTarget.length-1-e.preloadNo||(s.pageNo++,e.loadMore(s.pageNo)),t.emit("item-bind",n)},onItemFocused:e=>{if("2.1"==s.apkVersion){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const i=s.listResult[a];if("1003"==i.type)t++;else for(let s=0;s<i.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}t.emit("item-focused",e)},onItemUnbind:e=>{t.emit("item-unbind",e)},onScroll:e=>{t.emit("scroll",e)},onScrollStateChanged:e=>{t.emit("scroll-state-changed",e)},stopPage:t=>{s.stopPageTimer&&clearTimeout(s.stopPageTimer),s.stopPageTimer=setTimeout((()=>{"2.1"==s.apkVersion?e.pageSize?e.pageSize/e.spanCount<=s.listResult.length&&a.value.deleteItemRange(s.listResult.length,1):s.pageNo>2&&a.value.deleteItemRange(s.listResult.length,1):e.pageSize?e.pageSize<=s.recordTarget.length&&a.value.deleteItemRange(s.recordTarget.length,1):s.pageNo>2&&a.value.deleteItemRange(s.recordTarget.length,1)}),400),s.isStopPage=!0},scrollToTop:()=>{a.value.scrollToTop()},constclearFocus:()=>{a.value.clearFocus()},blockRootFocus:()=>{a.value.blockRootFocus()},unBlockRootFocus:()=>{a.value.unBlockRootFocus()},setDisplay:e=>{a.value.setDisplay(e)},scrollToPosition:u,scrollToIndex:(e,t,n)=>{if("2.1"==s.apkVersion){let o=-1;for(let i=0;i<s.listResult.length;i++){const l=s.listResult[i];if("1003"==l.type)o++,o==e&&a.value.scrollToIndex(0,i,t,n);else for(let s=0;s<l.list.length;s++)l.list[s],o++,o==e&&a.value.scrollToIndex(0,i,t,n)}}else a.value.scrollToIndex(0,e,t,n)},setItemFocused:d,scrollToFocused:e=>{u(e),d(e)},setItemSelected:p,scrollToSelected:(e,t)=>{u(e),p(e,t)},updateItemProps:(e,t,n)=>{a.value.updateItemProps(e,t,n)},setInitPosition:e=>{a.value.setInitPosition(e)},setListData:e=>{s.setListDataTimer&&clearTimeout(s.setListDataTimer),s.setListDataTimer=setTimeout((()=>{a.value.setListData(e)}),100)},insertItemRange:(e,t)=>{a.value.insertItemRange(e,t)},clearPostTask:()=>{a.value.clearPostTask()},destroy:f}}});function B(e,t){const n=Object.create(null),o=e.split(",");for(let e=0;e<o.length;e++)n[o[e]]=!0;return t?e=>!!n[e.toLowerCase()]:e=>!!n[e]}w.render=function(e,t,n,l,r,c){const u=o("tv-list");return a(),d(u,{class:"tv_list",ref:"tv_list",name:"tv_list",spanCount:"2.1"==e.apkVersion?"":e.spanCount,onItemBind:e.onItemBind,onItemClick:e.onItemClick,onItemFocused:e.onItemFocused,onItemUnbind:e.onItemUnbind,onScroll:e.onScroll,onScrollStateChanged:e.onScrollStateChanged,onSetListData:e.setListData,blockFocusDirections:e.blockFocusDirections},{default:y((()=>["2.1"==e.apkVersion?(a(),s(T,{key:0},[f(e.$slots,"header"),v(u,{class:"tv_list_inner",ref:"${name}",list:"${list}",name:"tv_list_inner",type:"1",clipChildren:!1,focusable:!1,horizontal:"",style:i({width:e.areaWidth+"px"}),endHintEnabled:!1,blockFocusDirections:e.blockFocusDirections},{default:y((()=>[f(e.$slots,"default")])),_:3},8,["style","blockFocusDirections"]),f(e.$slots,"loading")],64)):(a(),s(T,{key:1},[f(e.$slots,"header"),f(e.$slots,"default"),f(e.$slots,"loading")],64))])),_:3},8,["spanCount","onItemBind","onItemClick","onItemFocused","onItemUnbind","onScroll","onScrollStateChanged","onSetListData","blockFocusDirections"])},w.__file="src/grid-view/index.vue";const $="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const V=()=>{},U=/^on[^a-z]/,z=e=>U.test(e),q=Object.assign,W=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},M=Object.prototype.hasOwnProperty,G=(e,t)=>M.call(e,t),j=Array.isArray,Q=e=>"[object Map]"===te(e),Y=e=>"[object Set]"===te(e),H=e=>"function"==typeof e,K=e=>"string"==typeof e,X=e=>"symbol"==typeof e,J=e=>null!==e&&"object"==typeof e,Z=e=>J(e)&&H(e.then)&&H(e.catch),ee=Object.prototype.toString,te=e=>ee.call(e),ne=e=>te(e).slice(8,-1),oe=e=>"[object Object]"===te(e),ae=e=>K(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,se=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),ie=(e,t)=>!Object.is(e,t),le=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let re;const ce=()=>re||(re="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function ue(e){if(j(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],a=K(o)?ge(o):ue(o);if(a)for(const e in a)t[e]=a[e]}return t}return K(e)||J(e)?e:void 0}const de=/;(?![^(]*\))/g,pe=/:([^]+)/,fe=/\/\*[^]*?\*\//g;function ge(e){const t={};return e.replace(fe,"").split(de).forEach((e=>{if(e){const n=e.split(pe);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function me(e){let t="";if(K(e))t=e;else if(j(e))for(let n=0;n<e.length;n++){const o=me(e[n]);o&&(t+=o+" ")}else if(J(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function he(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let ye;const Te=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ve=e=>(e.w&Ie)>0,be=e=>(e.n&Ie)>0,_e=new WeakMap;let Se=0,Ie=1;const ke=30;let xe;const Ee=Symbol("production"!==process.env.NODE_ENV?"iterate":""),Pe=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");class De{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=ye){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=xe,t=Ne;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=xe,xe=this,Ne=!0,Ie=1<<++Se,Se<=ke?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Ie})(this):Fe(this),this.fn()}finally{Se<=ke&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const a=t[o];ve(a)&&!be(a)?a.delete(e):t[n++]=a,a.w&=~Ie,a.n&=~Ie}t.length=n}})(this),Ie=1<<--Se,xe=this.parent,Ne=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){xe===this?this.deferStop=!0:this.active&&(Fe(this),this.onStop&&this.onStop(),this.active=!1)}}function Fe(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Ne=!0;const Le=[];function Ae(){Le.push(Ne),Ne=!1}function Ce(){const e=Le.pop();Ne=void 0===e||e}function Re(e,t,n){if(Ne&&xe){let o=_e.get(e);o||_e.set(e,o=new Map);let a=o.get(n);a||o.set(n,a=Te());!function(e,t){let n=!1;Se<=ke?be(e)||(e.n|=Ie,n=!ve(e)):n=!e.has(xe);n&&(e.add(xe),xe.deps.push(e),"production"!==process.env.NODE_ENV&&xe.onTrack&&xe.onTrack(q({effect:xe},t)))}(a,"production"!==process.env.NODE_ENV?{effect:xe,target:e,type:t,key:n}:void 0)}}function Oe(e,t,n,o,a,s){const i=_e.get(e);if(!i)return;let l=[];if("clear"===t)l=[...i.values()];else if("length"===n&&j(e)){const e=Number(o);i.forEach(((t,n)=>{("length"===n||n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(i.get(n)),t){case"add":j(e)?ae(n)&&l.push(i.get("length")):(l.push(i.get(Ee)),Q(e)&&l.push(i.get(Pe)));break;case"delete":j(e)||(l.push(i.get(Ee)),Q(e)&&l.push(i.get(Pe)));break;case"set":Q(e)&&l.push(i.get(Ee))}const r="production"!==process.env.NODE_ENV?{target:e,type:t,key:n,newValue:o,oldValue:a,oldTarget:s}:void 0;if(1===l.length)l[0]&&("production"!==process.env.NODE_ENV?we(l[0],r):we(l[0]));else{const e=[];for(const t of l)t&&e.push(...t);"production"!==process.env.NODE_ENV?we(Te(e),r):we(Te(e))}}function we(e,t){const n=j(e)?e:[...e];for(const e of n)e.computed&&Be(e,t);for(const e of n)e.computed||Be(e,t)}function Be(e,t){(e!==xe||e.allowRecurse)&&("production"!==process.env.NODE_ENV&&e.onTrigger&&e.onTrigger(q({effect:e},t)),e.scheduler?e.scheduler():e.run())}const $e=B("__proto__,__v_isRef,__isVue"),Ve=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(X)),Ue=je(),ze=je(!0),qe=je(!0,!0),We=Me();function Me(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Lt(this);for(let e=0,t=this.length;e<t;e++)Re(n,"get",e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Lt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Ae();const n=Lt(this)[t].apply(this,e);return Ce(),n}})),e}function Ge(e){const t=Lt(this);return Re(t,"has",e),t.hasOwnProperty(e)}function je(e=!1,t=!1){return function(n,o,a){if("__v_isReactive"===o)return!e;if("__v_isReadonly"===o)return e;if("__v_isShallow"===o)return t;if("__v_raw"===o&&a===(e?t?St:_t:t?bt:vt).get(n))return n;const s=j(n);if(!e){if(s&&G(We,o))return Reflect.get(We,o,a);if("hasOwnProperty"===o)return Ge}const i=Reflect.get(n,o,a);return(X(o)?Ve.has(o):$e(o))?i:(e||Re(n,"get",o),t?i:Rt(i)?s&&ae(o)?i:i.value:J(i)?e?kt(i):It(i):i)}}function Qe(e=!1){return function(t,n,o,a){let s=t[n];if(Dt(s)&&Rt(s)&&!Rt(o))return!1;if(!e&&(Ft(o)||Dt(o)||(s=Lt(s),o=Lt(o)),!j(t)&&Rt(s)&&!Rt(o)))return s.value=o,!0;const i=j(t)&&ae(n)?Number(n)<t.length:G(t,n),l=Reflect.set(t,n,o,a);return t===Lt(a)&&(i?ie(o,s)&&Oe(t,"set",n,o,s):Oe(t,"add",n,o)),l}}const Ye={get:Ue,set:Qe(),deleteProperty:function(e,t){const n=G(e,t),o=e[t],a=Reflect.deleteProperty(e,t);return a&&n&&Oe(e,"delete",t,void 0,o),a},has:function(e,t){const n=Reflect.has(e,t);return X(t)&&Ve.has(t)||Re(e,"has",t),n},ownKeys:function(e){return Re(e,"iterate",j(e)?"length":Ee),Reflect.ownKeys(e)}},He={get:ze,set:(e,t)=>("production"!==process.env.NODE_ENV&&he(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>("production"!==process.env.NODE_ENV&&he(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},Ke=q({},He,{get:qe}),Xe=e=>e,Je=e=>Reflect.getPrototypeOf(e);function Ze(e,t,n=!1,o=!1){const a=Lt(e=e.__v_raw),s=Lt(t);n||(t!==s&&Re(a,"get",t),Re(a,"get",s));const{has:i}=Je(a),l=o?Xe:n?Ct:At;return i.call(a,t)?l(e.get(t)):i.call(a,s)?l(e.get(s)):void(e!==a&&e.get(t))}function et(e,t=!1){const n=this.__v_raw,o=Lt(n),a=Lt(e);return t||(e!==a&&Re(o,"has",e),Re(o,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function tt(e,t=!1){return e=e.__v_raw,!t&&Re(Lt(e),"iterate",Ee),Reflect.get(e,"size",e)}function nt(e){e=Lt(e);const t=Lt(this);return Je(t).has.call(t,e)||(t.add(e),Oe(t,"add",e,e)),this}function ot(e,t){t=Lt(t);const n=Lt(this),{has:o,get:a}=Je(n);let s=o.call(n,e);s?"production"!==process.env.NODE_ENV&&Tt(n,o,e):(e=Lt(e),s=o.call(n,e));const i=a.call(n,e);return n.set(e,t),s?ie(t,i)&&Oe(n,"set",e,t,i):Oe(n,"add",e,t),this}function at(e){const t=Lt(this),{has:n,get:o}=Je(t);let a=n.call(t,e);a?"production"!==process.env.NODE_ENV&&Tt(t,n,e):(e=Lt(e),a=n.call(t,e));const s=o?o.call(t,e):void 0,i=t.delete(e);return a&&Oe(t,"delete",e,void 0,s),i}function st(){const e=Lt(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?Q(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Oe(e,"clear",void 0,void 0,n),o}function it(e,t){return function(n,o){const a=this,s=a.__v_raw,i=Lt(s),l=t?Xe:e?Ct:At;return!e&&Re(i,"iterate",Ee),s.forEach(((e,t)=>n.call(o,l(e),l(t),a)))}}function lt(e,t,n){return function(...o){const a=this.__v_raw,s=Lt(a),i=Q(s),l="entries"===e||e===Symbol.iterator&&i,r="keys"===e&&i,c=a[e](...o),u=n?Xe:t?Ct:At;return!t&&Re(s,"iterate",r?Pe:Ee),{next(){const{value:e,done:t}=c.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function rt(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${se(e)} operation ${n}failed: target is readonly.`,Lt(this))}return"delete"!==e&&this}}function ct(){const e={get(e){return Ze(this,e)},get size(){return tt(this)},has:et,add:nt,set:ot,delete:at,clear:st,forEach:it(!1,!1)},t={get(e){return Ze(this,e,!1,!0)},get size(){return tt(this)},has:et,add:nt,set:ot,delete:at,clear:st,forEach:it(!1,!0)},n={get(e){return Ze(this,e,!0)},get size(){return tt(this,!0)},has(e){return et.call(this,e,!0)},add:rt("add"),set:rt("set"),delete:rt("delete"),clear:rt("clear"),forEach:it(!0,!1)},o={get(e){return Ze(this,e,!0,!0)},get size(){return tt(this,!0)},has(e){return et.call(this,e,!0)},add:rt("add"),set:rt("set"),delete:rt("delete"),clear:rt("clear"),forEach:it(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((a=>{e[a]=lt(a,!1,!1),n[a]=lt(a,!0,!1),t[a]=lt(a,!1,!0),o[a]=lt(a,!0,!0)})),[e,n,t,o]}const[ut,dt,pt,ft]=ct();function gt(e,t){const n=t?e?ft:pt:e?dt:ut;return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(G(n,o)&&o in t?n:t,o,a)}const mt={get:gt(!1,!1)},ht={get:gt(!0,!1)},yt={get:gt(!0,!0)};function Tt(e,t,n){const o=Lt(n);if(o!==n&&t.call(e,o)){const t=ne(e);console.warn(`Reactive ${t} contains both the raw and reactive versions of the same object${"Map"===t?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}const vt=new WeakMap,bt=new WeakMap,_t=new WeakMap,St=new WeakMap;function It(e){return Dt(e)?e:Et(e,!1,Ye,mt,vt)}function kt(e){return Et(e,!0,He,ht,_t)}function xt(e){return Et(e,!0,Ke,yt,St)}function Et(e,t,n,o,a){if(!J(e))return"production"!==process.env.NODE_ENV&&console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&(!t||!e.__v_isReactive))return e;const s=a.get(e);if(s)return s;const i=(l=e).__v_skip||!Object.isExtensible(l)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(ne(l));var l;if(0===i)return e;const r=new Proxy(e,2===i?o:n);return a.set(e,r),r}function Pt(e){return Dt(e)?Pt(e.__v_raw):!(!e||!e.__v_isReactive)}function Dt(e){return!(!e||!e.__v_isReadonly)}function Ft(e){return!(!e||!e.__v_isShallow)}function Nt(e){return Pt(e)||Dt(e)}function Lt(e){const t=e&&e.__v_raw;return t?Lt(t):e}const At=e=>J(e)?It(e):e,Ct=e=>J(e)?kt(e):e;function Rt(e){return!(!e||!0!==e.__v_isRef)}const Ot={get:(e,t,n)=>{return Rt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const a=e[t];return Rt(a)&&!Rt(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};const wt=[];function Bt(e,...t){if("production"===process.env.NODE_ENV)return;Ae();const n=wt.length?wt[wt.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=function(){let e=wt[wt.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const o=e.component&&e.component.parent;e=o&&o.vnode}return t}();if(o)zt(o,n,11,[e+t.join(""),n&&n.proxy,a.map((({vnode:e})=>`at <${ao(n,e.type)}>`)).join("\n"),a]);else{const n=[`[Vue warn]: ${e}`,...t];a.length&&n.push("\n",...function(e){const t=[];return e.forEach(((e,n)=>{t.push(...0===n?[]:["\n"],...function({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=!!e.component&&null==e.component.parent,a=` at <${ao(e.component,e.type,o)}`,s=">"+n;return e.props?[a,...$t(e.props),s]:[a+s]}(e))})),t}(a)),console.warn(...n)}Ce()}function $t(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Vt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Vt(e,t,n){return K(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:Rt(t)?(t=Vt(e,Lt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):H(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Lt(t),n?t:[`${e}=`,t])}const Ut={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function zt(e,t,n,o){let a;try{a=o?e(...o):e()}catch(e){Wt(e,t,n)}return a}function qt(e,t,n,o){if(H(e)){const a=zt(e,t,n,o);return a&&Z(a)&&a.catch((e=>{Wt(e,t,n)})),a}const a=[];for(let s=0;s<e.length;s++)a.push(qt(e[s],t,n,o));return a}function Wt(e,t,n,o=!0){const a=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,s="production"!==process.env.NODE_ENV?Ut[n]:n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,a,s))return;o=o.parent}const i=t.appContext.config.errorHandler;if(i)return void zt(i,null,10,[e,a,s])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const s=Ut[t];if(n&&(a=n,wt.push(a)),Bt("Unhandled error"+(s?` during execution of ${s}`:"")),n&&wt.pop(),o)throw e;console.error(e)}else console.error(e);var a}(e,n,a,o)}let Mt=!1,Gt=!1;const jt=[];let Qt=0;const Yt=[];let Ht=null,Kt=0;const Xt=Promise.resolve();let Jt=null;const Zt=100;function en(e){const t=Jt||Xt;return e?t.then(this?e.bind(this):e):t}function tn(e){jt.length&&jt.includes(e,Mt&&e.allowRecurse?Qt+1:Qt)||(null==e.id?jt.push(e):jt.splice(function(e){let t=Qt+1,n=jt.length;for(;t<n;){const o=t+n>>>1;an(jt[o])<e?t=o+1:n=o}return t}(e.id),0,e),nn())}function nn(){Mt||Gt||(Gt=!0,Jt=Xt.then(ln))}function on(e){j(e)?Yt.push(...e):Ht&&Ht.includes(e,e.allowRecurse?Kt+1:Kt)||Yt.push(e),nn()}const an=e=>null==e.id?1/0:e.id,sn=(e,t)=>{const n=an(e)-an(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function ln(e){Gt=!1,Mt=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),jt.sort(sn);const t="production"!==process.env.NODE_ENV?t=>rn(e,t):V;try{for(Qt=0;Qt<jt.length;Qt++){const e=jt[Qt];if(e&&!1!==e.active){if("production"!==process.env.NODE_ENV&&t(e))continue;zt(e,null,14)}}}finally{Qt=0,jt.length=0,function(e){if(Yt.length){const t=[...new Set(Yt)];if(Yt.length=0,Ht)return void Ht.push(...t);for(Ht=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Ht.sort(((e,t)=>an(e)-an(t))),Kt=0;Kt<Ht.length;Kt++)"production"!==process.env.NODE_ENV&&rn(e,Ht[Kt])||Ht[Kt]();Ht=null,Kt=0}}(e),Mt=!1,Jt=null,(jt.length||Yt.length)&&ln(e)}}function rn(e,t){if(e.has(t)){const n=e.get(t);if(n>Zt){const e=t.ownerInstance,n=e&&oo(e.type);return Bt(`Maximum recursive updates exceeded${n?` in component <${n}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}e.set(t,n+1)}else e.set(t,1)}const cn=new Set;"production"!==process.env.NODE_ENV&&(ce().__VUE_HMR_RUNTIME__={createRecord:fn((function(e,t){if(un.has(e))return!1;return un.set(e,{initialDef:dn(t),instances:new Set}),!0})),rerender:fn((function(e,t){const n=un.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach((e=>{t&&(e.render=t,dn(e.type).render=t),e.renderCache=[],e.update()}))})),reload:fn((function(e,t){const n=un.get(e);if(!n)return;t=dn(t),pn(n.initialDef,t);const o=[...n.instances];for(const e of o){const o=dn(e.type);cn.has(o)||(o!==n.initialDef&&pn(o,t),cn.add(o)),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(cn.add(o),e.ceReload(t.styles),cn.delete(o)):e.parent?tn(e.parent.update):e.appContext.reload?e.appContext.reload():"undefined"!=typeof window?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}on((()=>{for(const e of o)cn.delete(dn(e.type))}))}))});const un=new Map;function dn(e){return so(e)?e.__vccOpts:e}function pn(e,t){q(e,t);for(const n in e)"__file"===n||n in t||delete e[n]}function fn(e){return(t,n)=>{try{return e(t,n)}catch(e){console.error(e),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let gn=null,mn=null;const hn={};function yn(e,t,{immediate:n,deep:o,flush:a,onTrack:s,onTrigger:i}=$){var l;"production"===process.env.NODE_ENV||t||(void 0!==n&&Bt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&Bt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const r=e=>{Bt("Invalid watch source: ",e,"A watch source can only be a getter/effect function, a ref, a reactive object, or an array of these types.")},c=ye===(null==(l=Xn)?void 0:l.scope)?Xn:null;let u,d,p=!1,f=!1;if(Rt(e)?(u=()=>e.value,p=Ft(e)):Pt(e)?(u=()=>e,o=!0):j(e)?(f=!0,p=e.some((e=>Pt(e)||Ft(e))),u=()=>e.map((e=>Rt(e)?e.value:Pt(e)?vn(e):H(e)?zt(e,c,2):void("production"!==process.env.NODE_ENV&&r(e))))):H(e)?u=t?()=>zt(e,c,2):()=>{if(!c||!c.isUnmounted)return d&&d(),qt(e,c,3,[g])}:(u=V,"production"!==process.env.NODE_ENV&&r(e)),t&&o){const e=u;u=()=>vn(e())}let g=e=>{d=T.onStop=()=>{zt(e,c,4)}},m=f?new Array(e.length).fill(hn):hn;const h=()=>{if(T.active)if(t){const e=T.run();(o||p||(f?e.some(((e,t)=>ie(e,m[t]))):ie(e,m)))&&(d&&d(),qt(t,c,3,[e,m===hn?void 0:f&&m[0]===hn?[]:m,g]),m=e)}else T.run()};let y;h.allowRecurse=!!t,"sync"===a?y=h:"post"===a?y=()=>On(h,c&&c.suspense):(h.pre=!0,c&&(h.id=c.uid),y=()=>tn(h));const T=new De(u,y);"production"!==process.env.NODE_ENV&&(T.onTrack=s,T.onTrigger=i),t?n?h():m=T.run():"post"===a?On(T.run.bind(T),c&&c.suspense):T.run();return()=>{T.stop(),c&&c.scope&&W(c.scope.effects,T)}}function Tn(e,t,n){const o=this.proxy,a=K(e)?e.includes(".")?function(e,t){const n=t.split(".");return()=>{let t=e;for(let e=0;e<n.length&&t;e++)t=t[n[e]];return t}}(o,e):()=>o[e]:e.bind(o,o);let s;H(t)?s=t:(s=t.handler,n=t);const i=Xn;Zn(this);const l=yn(a,s.bind(o),n);return i?Zn(i):eo(),l}function vn(e,t){if(!J(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),Rt(e))vn(e.value,t);else if(j(e))for(let n=0;n<e.length;n++)vn(e[n],t);else if(Y(e)||Q(e))e.forEach((e=>{vn(e,t)}));else if(oe(e))for(const n in e)vn(e[n],t);return e}function bn(e,t){return H(e)?(()=>q({name:e.name},t,{setup:e}))():e}const _n=Symbol.for("v-ndc"),Sn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((n=e.exposed,le(n,"__v_skip",!0),Pt(t=n)?t:new Proxy(t,Ot)),{get:(t,n)=>n in t?t[n]:n in In?In[n](e):void 0,has:(e,t)=>t in e||t in In}));var t;var n}(e)||e.proxy:Sn(e.parent):null,In=q(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?xt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?xt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?xt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?xt(e.refs):e.refs,$parent:e=>Sn(e.parent),$root:e=>Sn(e.root),$emit:e=>e.emit,$options:e=>__VUE_OPTIONS_API__?function(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:a,optionsCache:s,config:{optionMergeStrategies:i}}=e.appContext,l=s.get(t);let r;l?r=l:a.length||n||o?(r={},a.length&&a.forEach((e=>Dn(r,e,i,!0))),Dn(r,t,i)):r=t;J(t)&&s.set(t,r);return r}(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>tn(e.update)),$nextTick:e=>e.n||(e.n=en.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?Tn.bind(e):V}),kn=(e,t)=>e!==$&&!e.__isScriptSetup&&G(e,t),xn={get({_:e},t){const{ctx:n,setupState:o,data:a,props:s,accessCache:i,type:l,appContext:r}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;let c;if("$"!==t[0]){const l=i[t];if(void 0!==l)switch(l){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return s[t]}else{if(kn(o,t))return i[t]=1,o[t];if(a!==$&&G(a,t))return i[t]=2,a[t];if((c=e.propsOptions[0])&&G(c,t))return i[t]=3,s[t];if(n!==$&&G(n,t))return i[t]=4,n[t];__VUE_OPTIONS_API__&&!Pn||(i[t]=0)}}const u=In[t];let d,p;return u?("$attrs"===t?(Re(e,"get",t),process.env.NODE_ENV):"production"!==process.env.NODE_ENV&&"$slots"===t&&Re(e,"get",t),u(e)):(d=l.__cssModules)&&(d=d[t])?d:n!==$&&G(n,t)?(i[t]=4,n[t]):(p=r.config.globalProperties,G(p,t)?p[t]:void("production"===process.env.NODE_ENV||!gn||K(t)&&0===t.indexOf("__v")||(a!==$&&(e=>"_"===e||"$"===e)(t[0])&&G(a,t)?Bt(`Property ${JSON.stringify(t)} must be accessed via $data because it starts with a reserved character ("$" or "_") and is not proxied on the render context.`):e===gn&&Bt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,n){const{data:o,setupState:a,ctx:s}=e;return kn(a,t)?(a[t]=n,!0):"production"!==process.env.NODE_ENV&&a.__isScriptSetup&&G(a,t)?(Bt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==$&&G(o,t)?(o[t]=n,!0):G(e.props,t)?("production"!==process.env.NODE_ENV&&Bt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&Bt(`Attempting to mutate public property "${t}". Properties starting with $ are reserved and readonly.`),!1):("production"!==process.env.NODE_ENV&&t in e.appContext.config.globalProperties?Object.defineProperty(s,t,{enumerable:!0,configurable:!0,value:n}):s[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,propsOptions:s}},i){let l;return!!n[i]||e!==$&&G(e,i)||kn(t,i)||(l=s[0])&&G(l,i)||G(o,i)||G(In,i)||G(a.config.globalProperties,i)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:G(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function En(e){return j(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}"production"!==process.env.NODE_ENV&&(xn.ownKeys=e=>(Bt("Avoid app logic that relies on enumerating keys on a component instance. The keys will be empty in production mode to avoid performance overhead."),Reflect.ownKeys(e)));let Pn=!0;function Dn(e,t,n,o=!1){const{mixins:a,extends:s}=t;s&&Dn(e,s,n,!0),a&&a.forEach((t=>Dn(e,t,n,!0)));for(const a in t)if(o&&"expose"===a)"production"!==process.env.NODE_ENV&&Bt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=Fn[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const Fn={data:Nn,props:Rn,emits:Rn,methods:Cn,computed:Cn,beforeCreate:An,created:An,beforeMount:An,mounted:An,beforeUpdate:An,updated:An,beforeDestroy:An,beforeUnmount:An,destroyed:An,unmounted:An,activated:An,deactivated:An,errorCaptured:An,serverPrefetch:An,components:Cn,directives:Cn,watch:function(e,t){if(!e)return t;if(!t)return e;const n=q(Object.create(null),e);for(const o in t)n[o]=An(e[o],t[o]);return n},provide:Nn,inject:function(e,t){return Cn(Ln(e),Ln(t))}};function Nn(e,t){return t?e?function(){return q(H(e)?e.call(this,this):e,H(t)?t.call(this,this):t)}:t:e}function Ln(e){if(j(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function An(e,t){return e?[...new Set([].concat(e,t))]:t}function Cn(e,t){return e?q(Object.create(null),e,t):t}function Rn(e,t){return e?j(e)&&j(t)?[...new Set([...e,...t])]:q(Object.create(null),En(e),En(null!=t?t:{})):t}const On=function(e,t){t&&t.pendingBranch?j(e)?t.effects.push(...e):t.effects.push(e):on(e)},wn=Symbol.for("v-fgt"),Bn=Symbol.for("v-txt"),$n=Symbol.for("v-cmt");let Vn=null;const Un="__vInternal",zn=({key:e})=>null!=e?e:null,qn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?K(e)||Rt(e)||H(e)?{i:gn,r:e,k:t,f:!!n}:e:null);const Wn="production"!==process.env.NODE_ENV?(...e)=>Mn(...e):Mn;function Mn(e,t=null,n=null,o=0,a=null,s=!1){if(e&&e!==_n||("production"===process.env.NODE_ENV||e||Bt(`Invalid vnode type when creating vnode: ${e}.`),e=$n),(i=e)&&!0===i.__v_isVNode){const o=Gn(e,t,!0);return n&&Yn(o,n),!s&&Vn&&(6&o.shapeFlag?Vn[Vn.indexOf(e)]=o:Vn.push(o)),o.patchFlag|=-2,o}var i;if(so(e)&&(e=e.__vccOpts),t){t=function(e){return e?Nt(e)||Un in e?q({},e):e:null}(t);let{class:e,style:n}=t;e&&!K(e)&&(t.class=me(e)),J(n)&&(Nt(n)&&!j(n)&&(n=q({},n)),t.style=ue(n))}const l=K(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:J(e)?4:H(e)?2:0;return"production"!==process.env.NODE_ENV&&4&l&&Nt(e)&&Bt("Vue received a Component which was made a reactive object. This can lead to unnecessary performance overhead, and should be avoided by marking the component with `markRaw` or using `shallowRef` instead of `ref`.","\nComponent that was made reactive: ",e=Lt(e)),function(e,t=null,n=null,o=0,a=null,s=(e===wn?0:1),i=!1,l=!1){const r={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&zn(t),ref:t&&qn(t),scopeId:mn,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:s,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:gn};return l?(Yn(r,n),128&s&&e.normalize(r)):n&&(r.shapeFlag|=K(n)?8:16),"production"!==process.env.NODE_ENV&&r.key!=r.key&&Bt("VNode created with invalid key (NaN). VNode type:",r.type),!i&&Vn&&(r.patchFlag>0||6&s)&&32!==r.patchFlag&&Vn.push(r),r}(e,t,n,o,a,l,s,!0)}function Gn(e,t,n=!1){const{props:o,ref:a,patchFlag:s,children:i}=e,l=t?function(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const e in o)if("class"===e)t.class!==o.class&&(t.class=me([t.class,o.class]));else if("style"===e)t.style=ue([t.style,o.style]);else if(z(e)){const n=t[e],a=o[e];!a||n===a||j(n)&&n.includes(a)||(t[e]=n?[].concat(n,a):a)}else""!==e&&(t[e]=o[e])}return t}(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:l,key:l&&zn(l),ref:t&&t.ref?n&&a?j(a)?a.concat(qn(t)):[a,qn(t)]:qn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===s&&j(i)?i.map(jn):i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==wn?-1===s?16:16|s:s,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Gn(e.ssContent),ssFallback:e.ssFallback&&Gn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function jn(e){const t=Gn(e);return j(e.children)&&(t.children=e.children.map(jn)),t}function Qn(e=" ",t=0){return Wn(Bn,null,e,t)}function Yn(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(j(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Yn(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Un in t?3===o&&gn&&(1===gn.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=gn}}else H(t)?(t={default:t,_ctx:gn},n=32):(t=String(t),64&o?(n=16,t=[Qn(t)]):n=8);e.children=t,e.shapeFlag|=n}let Hn,Kn,Xn=null,Jn="__VUE_INSTANCE_SETTERS__";(Kn=ce()[Jn])||(Kn=ce()[Jn]=[]),Kn.push((e=>Xn=e)),Hn=e=>{Kn.length>1?Kn.forEach((t=>t(e))):Kn[0](e)};const Zn=e=>{Hn(e),e.scope.on()},eo=()=>{Xn&&Xn.scope.off(),Hn(null)};const to=/(?:^|[-_])(\w)/g,no=e=>e.replace(to,(e=>e.toUpperCase())).replace(/[-_]/g,"");function oo(e,t=!0){return H(e)?e.displayName||e.name:e.name||t&&e.__name}function ao(e,t,n=!1){let o=oo(t);if(!o&&t.__file){const e=t.__file.match(/([^/\\]+)\.\w+$/);e&&(o=e[1])}if(!o&&e&&e.parent){const n=e=>{for(const n in e)if(e[n]===t)return n};o=n(e.components||e.parent.type.components)||n(e.appContext.components)}return o?no(o):n?"App":"Anonymous"}function so(e){return H(e)&&"__vccOpts"in e}var io=bn({name:"qt-poster-focus-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const lo={class:"absoluteFocusTitleRoot",delayLoad:"400",flexStyle:"${titleFocusStyle}",autoHeight:"",focusable:!1},ro={class:"absoluteFocusMainBgRoot",duplicateParentState:!0,focusable:!1,showIf:"${title.enable}"};io.render=function(e,t,n,i,l,c){const u=o("text-view");return a(),s("div",lo,[r(" 浮动标题"),v(u,{duplicateParentState:!0,focusable:!1,fontSize:26,ellipsizeMode:2,lines:1,paddingRect:[16,18,0,0],gradientBackground:"${floatTitle.background}",style:{height:"64px",color:"#ffffff"},flexStyle:"${floatTitle.style}",text:"${floatTitle}",showIf:"${floatTitle.enable}",gravity:"left",postDelay:"250"}),b("div",ro,[r(" 主标题 "),v(u,{duplicateParentState:!0,focusable:!1,fontSize:30,ellipsizeMode:2,autoHeight:"",maxLines:2,gravity:"left",paddingRect:[16,8,12,8],style:{"background-color":"transparent",color:"#000000"},flexStyle:"${title.style}",text:"${title.text}"}),r(" 副标题 "),v(u,{duplicateParentState:!0,focusable:!1,fontSize:24,ellipsizeMode:2,lines:1,autoHeight:"",gravity:"left|top",paddingRect:[16,0,0,16],style:{color:"rgba(0,0,0,.4)","background-color":"transparent"},flexStyle:"${subTitle.style}",text:"${subTitle.text}",visibility:"${subTitle}"})])])},io.__scopeId="data-v-703673b8",io.__file="src/poster/qt-poster-focus-title.vue";var co=bn({name:"qt-poster-corner-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const uo={class:"cornerRoot",focusable:!1};co.render=function(e,t,n,i,l,r){const c=o("text-view");return a(),s("div",uo,[v(c,{duplicateParentState:!0,focusable:!1,textSize:e.fontSize,ellipsizeMode:2,lines:1,typeface:"bold",gravity:"center",postDelay:"350",style:{color:"white",padding:"4px 8px",height:"36px"},gradientBackground:"${corner.background}",autoWidth:"",text:"${corner.text}",showIf:"${corner.enable}"},null,8,["textSize"])])},co.__scopeId="data-v-4b767ea2",co.__file="src/poster/qt-poster-corner-title.vue";var po=bn({name:"qt-poster",components:{"qt-poster-corner-title":co,"qt-poster-focus-title":io},props:{requestFirstFocus:{type:Boolean,default:!1},loadDelay:{type:Number,default:500},type:{type:Number,default:10001},templateKeyMap:{type:Object,default:()=>null},isFocusable:{type:Boolean,default:!0},enableFocusBorder:{type:Boolean,default:!0}},setup:(e,t)=>({mainTextShowOnState:["normal","selected"]})});const fo=["enableFocusBorder"],go=["showOnState"],mo={flexStyle:"${floatTitle.style}",class:"qt-ui-poster-title-css",gradientBackground:{colors:["#e5000000","#00000000"],cornerRadii4:[0,0,8,8],orientation:4},duplicateParentState:!0,delayLoad:"500",focusable:!1,showIf:"${floatTitle.enable}"},ho={flexStyle:"${ripple.style}",class:"qt-ui-poster-ripple-view-root-css",showOnState:"focused",focusable:!1,clipChildren:!1},yo=(e=>(_("data-v-3c4765e9"),e=e(),S(),e))((()=>b("img",{src:"${ripple.src}",class:"qt-ui-ripple-img-css",focusable:!1,duplicateParentState:!0,showIf:"${true}",delayLoad:"800"},null,-1)));po.render=function(e,t,n,s,i,l){const c=o("qt-poster-focus-title"),u=o("text-view"),p=o("ripple-view"),g=o("qt-poster-corner-title"),m=o("item-frame");return a(),d(m,{type:e.type,layout:"${layout}",flexStyle:"${style}",focusable:e.isFocusable,eventClick:"",eventFocus:"",name:"poster",class:"qt-ui-poster-root-css",itemShowShimmer:"${shimmer.enable}",hideShadow:"${shadow.enable}",shimmerSize:"${size}"},{default:y((()=>[r("封面"),b("img",{class:"qt-ui-poster-img-css",duplicateParentState:!0,postDelay:"300",focusable:!1,enableFocusBorder:e.enableFocusBorder,flexStyle:"${image.style}",src:"${image.src}"},null,8,fo),r(" 焦点选中时的标题 "),v(c,{focusable:!1,showOnState:"focused"}),b("div",{style:{"flex-direction":"column","background-color":"transparent","z-index":"999"},duplicateParentState:!0,focusable:!1,flexStyle:"${titleStyle}",showOnState:e.mainTextShowOnState},[r(" 浮动标题 "),b("div",mo,[v(u,{duplicateParentState:!0,focusable:!1,textSize:26,ellipsizeMode:2,enablePostTask:"",postDelay:"200",lines:1,gravity:"left",style:{"z-index":"999",height:"50px"},flexStyle:"${floatTitle.style}",text:"${floatTitle.text}"})]),r(" 主标题"),v(u,{duplicateParentState:!0,focusable:!1,textSize:30,ellipsizeMode:2,lines:1,delayLoad:"400",postDelay:"200",gravity:"left",paddingRect:[16,8,0,0],gradientBackground:"${title.background}",style:{"z-index":"999",height:"60px"},flexStyle:"${title.style}",text:"${title.text}",showIf:"${title.enable}"})],8,go),b("div",ho,[v(p,{class:"qt-ui-ripple-view-css",delayLoad:"800",focusable:!1,duplicateParentState:!0,color:"#FF4E46",isShowRipple:"${ripple.enable}",rippleVisible:"invisible"}),yo]),v(g,{focusable:!1,delayLoad:"600",flexStyle:"${corner.style}",style:{"z-index":"1000",position:"absolute"}}),f(e.$slots,"default")])),_:3},8,["type","focusable"])},po.__scopeId="data-v-3c4765e9",po.__file="src/poster/index.vue";var To=t({name:"qt-nav-bar",props:{textKey:{type:String,default:"text"},itemGap:{type:Number,default:0},horizontal:{type:Boolean,default:!0},initSelect:{type:Number,default:0},className:{type:String,default:"list_view"},size:{type:String,default:"medium"},navs:{type:Array,default:()=>[]}},setup(e,t){const o=n();let a=n("#f5f5f5"),s=I({normal:"#80ffffff",focused:"#000000",selected:"#F5F5F5"}),i=-1,l=-1;g((()=>e.navs),(e=>{e.length>0&&r(e)}));const r=t=>{t||(t=[]),t.forEach(((t,n)=>{0!==e.itemGap&&(e.horizontal?t.decoration={right:e.itemGap}:t.decoration={bottom:e.itemGap}),t.type||(t.type=2e4)})),o.value?.setListData(t),clearTimeout(l);let n=e.initSelect;n>-1&&(o.value?.scrollToPosition(n),l=setTimeout((()=>{o.value?.setSelectPosition(n,!0),c(n)}),300))},c=e=>{clearTimeout(i),i=setTimeout((()=>{t.emit("tab-select",{position:e})}),300)};return{navList:o,focusColor:a,textColor:s,bgPadding:[10,10],onTabChange:e=>{!0===e.hasFocus&&(t.emit("tab-focus",e),c(e.position))},scrollToPosition:e=>{o.value?.scrollToPosition(e)},scrollToTop:()=>{o.value?.scrollToTop()},init:e=>{r(e.data)}}}});const vo=["stateTextColor","sateBackgroundPadding"],bo=["stateTextColor","sateBackgroundPadding"];var _o,So;To.render=function(e,t,n,s,r,c){const u=o("text-view"),p=o("qt-list-view");return e.horizontal?(a(),d(p,{key:0,class:l([e.className,"qt-ui-nav-bar-root-horizontal"]),ref:"navList",clipChildren:!1,clipPadding:!1,horizontal:"",onItemFocused:e.onTabChange},{default:y((()=>[b("div",{class:"qt-ui-nav-bar-item-css",type:2e4,autoWidth:"",focusable:!0,eventFocus:"",flexStyle:"${style}",clipChildren:!1,style:i({focusBackgroundColor:e.focusColor}),stateTextColor:e.textColor,sateBackgroundPadding:e.bgPadding},[v(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,vo),f(e.$slots,"default")])),_:3},8,["class","onItemFocused"])):(a(),d(p,{key:1,class:l([e.className,"qt-ui-nav-bar-root-vertical"]),ref:"navList",clipChildren:!1,clipPadding:!1,onItemFocused:e.onTabChange},{default:y((()=>[b("div",{class:"qt-ui-nav-bar-item-css",type:2e4,flexStyle:"${style}",eventFocus:"",autoWidth:"",focusable:!0,stateTextColor:e.textColor,style:i({focusBackgroundColor:e.focusColor}),sateBackgroundPadding:e.bgPadding,clipChildren:!1},[v(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,bo),f(e.$slots,"default")])),_:3},8,["class","onItemFocused"]))},To.__file="src/nav-bar/index.vue",function(e){e[e.QT_WATERFALL_SECTION_TYPE_LOADING=-1]="QT_WATERFALL_SECTION_TYPE_LOADING",e[e.QT_WATERFALL_SECTION_TYPE_TITLE=1e3]="QT_WATERFALL_SECTION_TYPE_TITLE",e[e.QT_WATERFALL_SECTION_TYPE_FLEX=1002]="QT_WATERFALL_SECTION_TYPE_FLEX",e[e.QT_WATERFALL_SECTION_TYPE_LIST=1003]="QT_WATERFALL_SECTION_TYPE_LIST",e[e.QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM=1004]="QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM",e[e.QT_WATERFALL_SECTION_TYPE_TAB_LIST=1005]="QT_WATERFALL_SECTION_TYPE_TAB_LIST",e[e.QT_WATERFALL_SECTION_TYPE_END=-1001]="QT_WATERFALL_SECTION_TYPE_END",e[e.QT_WATERFALL_SECTION_TYPE_BLANK=-1e3]="QT_WATERFALL_SECTION_TYPE_BLANK"}(_o||(_o={})),function(e){e[e.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM=10001]="QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM",e[e.QT_WATERFALL_ITEM_TYPE_TAB=10002]="QT_WATERFALL_ITEM_TYPE_TAB"}(So||(So={}));var Io=bn({name:"standard-section",props:{enablePlaceholder:{type:Boolean,default:!0},plateData:{type:String,default:""},useDiff:{type:Boolean,default:!0},cachePool:{type:Object,default:{}},sectionType:{type:Number,default:_o.QT_WATERFALL_SECTION_TYPE_FLEX},standItemType:{type:Number,default:So.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM},currentPageIndex:{type:Number,default:-1}}});const ko=["type"];Io.render=function(e,t,n,i,l,r){const c=o("text-view"),u=o("qt-poster"),d=o("tv-flex");return a(),s("div",{class:"standard-section-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.sectionType,focusable:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[v(c,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(d,{class:"standard-section-css",name:"QUICKTVUI_WARTERFALL_LIST",blockFocusDirections:["left","right"],clipChildren:!1,bringFocusChildToFront:!0,cachePool:e.cachePool,useDiff:e.useDiff,keyName:"_id",enablePlaceholder:e.enablePlaceholder,flexStyle:"${sectionStyle}",focusScrollTarget:"${focusScrollTarget==true}",list:"${itemList}"},{default:y((()=>[v(u,{"load-delay":500,type:e.standItemType},null,8,["type"]),f(e.$slots,"default")])),_:3},8,["cachePool","useDiff","enablePlaceholder"])],8,ko)},Io.__scopeId="data-v-d1c2a896",Io.__file="src/waterfall/section/standard-section.vue";const xo="tab-list-section";var Eo=bn({name:"tabs-list-section",props:{enablePlaceholder:{type:Boolean,default:!0},isSwitchBgScroll:{type:Boolean,default:!1},standItemType:{type:Number,default:10001},tabItemType:{type:Number,default:10002},sectionType:{type:Number,default:_o.QT_WATERFALL_SECTION_TYPE_LIST},fetchPendingData:{type:Function,default:null},arrangeType:{type:String,default:"TB"}},setup(e,t){const n=P();return{blockDirections:["left","right"],onItemBind:function(e){n.isLoggable(D.DEBUG)&&n.d(xo,"----------onItemBind--------------\x3e>>",e)},onItemRecycled:function(e){n.isLoggable(D.DEBUG)&&n.d(xo,"----------onItemRecycled--------------\x3e>>",e)},onItemFocused:function(e){n.isLoggable(D.DEBUG)&&n.d(xo,"----------onItemFocused--------------\x3e>>",e)}}}});const Po={class:"qt-ui-section-tab-list-root",focusable:!1,blockFocusDirections:["right"],clipChildren:!1,useAdvancedFocusSearch:!0,bringFocusChildToFront:!0},Do=["type"];Eo.render=function(e,t,n,s,i,l){const r=o("text-view"),c=o("qt-poster"),u=o("tv-list"),p=o("tv-item");return a(),d(p,{type:e.sectionType,clipPadding:!1,clipChildren:!1,ref:"listSection",onItemBind:e.onItemBind,onItemUnbind:e.onItemRecycled,onItemFocused:e.onItemFocused},{default:y((()=>[b("div",Po,[v(r,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(u,{list:"${itemList}",horizontal:"",flexStyle:"${style}",clipChildren:!1,focusable:!1,name:"QUICKTVUI_WARTERFALL_LIST",resetOnDetach:!0,enableKeepFocus:"${enableKeepFocus==true}",endHintEnabled:"${enableEndHit}",onScrollEnable:!1,setSelectChildPosition:0,enablePlaceholder:e.enablePlaceholder,cachePoolName:"HorizontalList",blockFocusDirections:e.blockDirections},{default:y((()=>[v(c,{type:e.standItemType},null,8,["type"]),b("div",{type:e.tabItemType,class:"qt-ui-section-tab-list-item",clipChildren:!1,style:{"padding-left":"24px","padding-right":"23px","justify-content":"center",height:"50px"},autoWidth:"",name:"QUICKTVUI_TAB_2",focusable:!0,eventFocus:""},[v(r,{class:"qt-ui-section-tab-list-item-text",autoWidth:"",gravity:"center",fontSize:36,lines:1,focusable:!1,duplicateParentState:!0,style:{height:"50px"},text:"${text}"})],8,Do),f(e.$slots,"default")])),_:3},8,["enablePlaceholder","blockFocusDirections"])])])),_:3},8,["type","onItemBind","onItemUnbind","onItemFocused"])},Eo.__scopeId="data-v-88e60816",Eo.__file="src/waterfall/section/tabs-list-section.vue";var Fo=bn({name:"loading-section"});const No={focusable:!1,type:-1,class:"loading-section-css"};Fo.render=function(e,t,n,i,l,r){const c=o("qt-loading-view");return a(),s("div",No,[v(c,{class:"loading-section-loading-css"})])},Fo.__scopeId="data-v-48609f24",Fo.__file="src/waterfall/section/loading-section.vue";var Lo=bn({name:"end-section",setup:()=>({})});const Ao={type:-1001,focusable:!1,flexStyle:"${style}",class:"qt-waterfall-end-section-css"};Lo.render=function(e,t,n,i,l,r){const c=o("text-view");return a(),s("div",Ao,[v(c,{focusable:!1,gravity:"center",flexStyle:"${titleStyle}",class:"qt-waterfall-end-section-text-css",fontSize:28,text:"${title}"})])},Lo.__scopeId="data-v-70b82c43",Lo.__file="src/waterfall/section/end-section.vue";var Co=bn({props:{plateTitleLeftMargin:{type:Number,default:0},type:{type:Number,default:_o.QT_WATERFALL_SECTION_TYPE_TITLE}},setup:(e,t)=>({})});const Ro=["type"];Co.render=function(e,t,n,l,r,c){const u=o("text-view");return a(),s("div",{class:"section-title-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.type,focusable:!1,bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[v(u,{class:"section-title-text-css",delayLoad:"200",postDelay:"300",style:i({marginLeft:e.plateTitleLeftMargin+"px"}),focusable:!1,textSize:50,text:"${title}"},null,8,["style"])],8,Ro)},Co.__scopeId="data-v-20428d40",Co.__file="src/waterfall/section/section-title.vue";var Oo=bn({name:"blank-section",setup:()=>({})});const wo={focusable:!1,type:-1e3,flexStyle:"${style}",class:"qt-ui-waterfall-blank-section"};function Bo(e,t){const n=[];if(t&&t.length>0)for(let o=0;o<t.length;o++){let a=$o(e,t[o]);n.push(a)}return n}function $o(e,t){let n=0;return t.itemList.length>0&&(n=function(e,t){const n=t.itemList,o=t.style?.spacing??0,a=t.titleStyle,s=a?.height??0,i=a?.marginTop??0,l=a?.marginBottom??0,r=a?.paddingTop??0,c=a?.paddingBottom??0;let u=0,d=0,p=0,f=0;for(let t=0;t<n.length;t++){const a=n[t],s=a.decoration,i=s?.left??0,l=s?.top??0,r=s?.right??0,c=s?.bottom??0;let g=a?.style.width??0,m=a?.style.height??0;u+g+r>=e&&(d+=p+o,p=0,u=0),a.layout||(a.layout=[0,0,g,m]),a.layout[0]=u+i,a.layout[1]=d+l,a.layout[1]+m+c>f&&(f=a.layout[1]+m+c),m+l+c>p&&(p=m+l+c),u+=g+o+i+r}return f+s+i+l+r+c}(e.width,t),t.style.height=n),{type:t.type,style:t.style,title:t.title,titleStyle:t.titleStyle,itemList:t.itemList,decoration:t.decoration}}function Vo(){let e=[];function t(e){return e.itemList.length}function n(n,o){console.log("----1--------getRangeSectionListItemCount-----------------\x3e>>>");const a=e.length;if(n<0||n>=a)return 0;console.log("----2--------getRangeSectionListItemCount-----------------\x3e>>>");let s=n+o;n+o>a&&(s=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let i=0;for(let o=n;o<s;o++){i+=t(e[o])}return i}function o(){console.log("--------dumpWaterfallData---------\x3e>>>",e)}return{init:function(){},getSectionList:function(){return e},addSectionList:function(a){const s=e.length,i=n(0,s),l=function(e){if(e.length<=0)return 0;let n=0;for(let o=0;o<e.length;o++){n+=t(e[o])}return n}(a);return e.push(...a),o(),{sectionIndex:s,sectionCount:a.length,itemIndex:i,itemCount:l}},deleteSection:function(t,a){const s=n(0,t-1),i=n(t,a);return e.splice(t,a),o(),{sectionIndex:t,sectionCount:a,itemIndex:s,itemCount:i}},updateSection:function(a,s){const i=n(0,a-1),l=t(s);return e.splice(a,1,s),o(),{sectionIndex:a,sectionCount:1,itemIndex:i,itemCount:l}},getSection:function(t){if(!(t<0||t>=e.length||0==e.length))return e[t]},addItemList:function(t,n){const a=e.length;if(t<0||t>=a||n.length<=0)return{sectionIndex:-1,sectionCount:0,itemIndex:-1,itemCount:0};const s=e[t],i=s.itemList.length;return s.itemList.push(...n),o(),{sectionIndex:t,sectionCount:1,itemIndex:i,itemCount:n.length}},deleteItem:function(t,n,a){return e[t].itemList.splice(n,a),o(),{sectionIndex:t,sectionCount:1,itemIndex:n,itemCount:a}},updateItem:function(t,n,a){return e[t].itemList.splice(n,1,a),o(),{sectionIndex:t,sectionCount:1,itemIndex:n,itemCount:1}},updateItemList:function(t,n,a,s){return e[t].itemList.splice(n,a,...s),o(),{sectionIndex:t,sectionCount:1,itemIndex:n,itemCount:a}},getItem:function(t,n){const o=e[t];if(o&&o.itemList.length>0&&n>=0&&n<o.itemList.length){return o.itemList[n]}},destroy:function(){e=[]}}}Oo.render=function(e,t,n,o,i,l){return a(),s("div",wo)},Oo.__scopeId="data-v-eeab4d88",Oo.__file="src/waterfall/section/blank-section.vue";const Uo="qt-waterfall";var zo,qo=bn({name:"qt-waterfall",emits:["onScroll","onScrollStateChanged","onItemClick","onItemFocused","onSectionBind","onSectionAttached"],props:{enablePlaceholder:{type:Boolean,default:!0},prevLoadNumber:{type:Number,default:3},backTop:{type:Function,default:()=>{}},isLoadMore:{type:Boolean,default:!0},headBlank:{type:Number,default:90}},setup(e,t){const o=P(),a={name:"tvList"+Date.now(),size:{20008:10}},s=n();let i;const l=Vo();return{waterfallRef:s,init:function(e){i=e},getSectionList:function(){return l.getSectionList()},setSectionList:function(e){if(!i)return;o.isLoggable(D.DEBUG)&&o.d(Uo,"-------1---setSectionList--------------\x3e>>"),l.destroy();const t=l.addSectionList(e);o.isLoggable(D.DEBUG)&&o.d(Uo,"-------2---setSectionList--------------\x3e>>",t);const n=Bo(i,e);o.isLoggable(D.DEBUG)&&o.d(Uo,"----------setSectionList-----最终数据---------\x3e>>",n),s.value?.setListData(n)},addSectionList:function(e){if(!i)return;l.addSectionList(e);const t=Bo(i,e);o.isLoggable(D.DEBUG)&&o.d(Uo,"----------addSectionList-----最终数据---------\x3e>>",t),s.value?.addListData(t)},deleteSection:function(e,t){const n=l.deleteSection(e,t);o.isLoggable(D.DEBUG)&&o.d(Uo,"----------deleteSection-----最终数据---------\x3e>>",n),s.value?.deleteItem(e,t)},updateSection:function(e,t){l.updateSection(e,t);const n=$o(i,t);o.isLoggable(D.DEBUG)&&o.d(Uo,"----------updateSection-----最终数据---------\x3e>>sectionIndex:"+e+"updateSection:"+n),s.value?.updateItem(e,n)},updateSectionList:function(e,t,n){const o=[];for(let t=0;t<n.length;t++){const a=n[t];l.updateSection(e+t,a);const s=$o(i,a);s&&o.push(s)}s.value?.updateItemList(e,t,o)},getSection:function(e){return l.getSection(e)},addItemList:function(e,t){l.addItemList(e,t);const n=l.getSection(e);if(n){const t=$o(i,n);s.value?.updateItem(e,t)}},deleteItem:function(e,t,n){l.deleteItem(e,t,n);const o=l.getSection(e);if(o){const t=$o(i,o);s.value?.updateItem(e,t)}},updateItem:function(e,t,n){l.updateItem(e,t,n);const o=l.getSection(e);if(o){const t=$o(i,o);s.value?.updateItem(e,t)}},updateItemList:function(e,t,n,o){l.updateItemList(e,t,n,o);const a=l.getSection(e);if(a){const t=$o(i,a);s.value?.updateItem(e,t)}},getItem:function(e,t){return l.getItem(e,t)},cachePool:a,flexCachePool:{name:"tvFlex",size:{1:50}},onScroll:function(e){e.stopPropagation();let n=e.offsetY,o=e.offsetX;t.emit("onScroll",o,n)},onItemClick:function(e){o.isLoggable(D.DEBUG)&&o.d(Uo,"----------onItemClick--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" "),t.emit("onItemClick",e.parentPosition,e.position,e.item)},onItemFocused:function(e){o.isLoggable(D.DEBUG)&&o.d(Uo,"----------onItemFocused--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" isFocused:"+e.isFocused+" "),t.emit("onItemFocused",e.parentPosition,e.position,e.isFocused,e.item)},onSectionBind:function(e){o.isLoggable(D.DEBUG)&&o.d(Uo,"----------onSectionBind--------------\x3e>>",e);let n=e.pageIndex??0;t.emit("onSectionBind",n,e.position)},onSectionAttached:function(e){o.isLoggable(D.DEBUG)&&o.d(Uo,"----------onSectionAttached--------------\x3e>>",e);let n=e.pageIndex??0;t.emit("onSectionAttached",n,e.position)},onScrollStateChanged:function(e){let n=e.offsetY,o=e.offsetX,a=e.newState;t.emit("onScrollStateChanged",o,n,a)},resumePostTask:function(){s.value?.pausePostTask()},pausePostTask:function(){s.value?.pausePostTask()},clearPostTask:function(){s.value?.clearPostTask()},destroy:function(){s.value?.destroy()},onListSectionItemBind:function(e,t){o.isLoggable(D.DEBUG)&&o.d(Uo,"----------onListSectionItemBind--------------\x3e>>",e,t)}}},components:{"standard-section":Io,"tabs-list-section":Eo,"section-title":Co,"loading-section":Fo,"end-section":Lo,"blank-section":Oo}});function Wo(){const e=new Map,t=new Map;function n(n){const o={index:n,state:zo.QT_TAB_PAGE_STATE_IDLE};e.set(n,o),t.set(n,[])}function o(e){return e.itemList.length}function a(e,t,n){const a=e.length;if(t<0||t>=a)return 0;let s=t+n;t+n>a&&(s=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let i=0;for(let n=t;n<s;n++){i+=o(e[n])}return i}function s(){console.log("--------dumpTabWaterfallData---------\x3e>>>",t)}return{initTab:function(e){const t=e.itemList;for(let e=0;e<t.length;e++)n(e)},getTabPageData:function(t){return e.get(t)},setTabPageData:function(t,n){e.set(t,n)},getSectionList:function(e){return t.get(e)??[]},addSectionList:function(n,i){const l=t.get(n)??[],r=l.length,c=a(l,0,r),u=function(e){if(e.length<=0)return 0;let t=0;for(let n=0;n<e.length;n++){t+=o(e[n])}return t}(i);l.push(...i);const d=e.get(n);return d&&(d.state=zo.QT_TAB_PAGE_STATE_IDLE),s(),{pageIndex:n,sectionIndex:r,sectionCount:i.length,itemIndex:c,itemCount:u}},deleteSection:function(e,n,o){const i=t.get(e)??[],l=a(i,0,n-1),r=a(i,n,o);return i.splice(n,o),s(),{pageIndex:e,sectionIndex:n,sectionCount:o,itemIndex:l,itemCount:r}},updateSection:function(e,n,i){const l=t.get(e)??[],r=a(l,0,n-1),c=o(i);return l.splice(n,1,i),s(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:r,itemCount:c}},updateSectionList:function(e,n){return t.set(e,n),s(),{pageIndex:e,sectionIndex:0,sectionCount:n.length,itemIndex:-1,itemCount:-1}},getSection:function(e,n){const o=t.get(e)??[];if(!(n<0||n>=o.length||0==o.length))return o[n]},addItemList:function(e,n,o){const a=t.get(e)??[],i=a.length;if(n<0||n>=i||o.length<=0)return{pageIndex:e,sectionIndex:-1,sectionCount:0,itemIndex:-1,itemCount:0};const l=a[n],r=l.itemList.length;return l.itemList.push(...o),s(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:r,itemCount:o.length}},deleteItem:function(e,n,o,a){return(t.get(e)??[])[n].itemList.splice(o,a),s(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:a}},updateItem:function(e,n,o,a){return(t.get(e)??[])[n].itemList.splice(o,1,a),s(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:1}},updateItemList:function(e,n,o,a,i){return(t.get(e)??[])[n].itemList.splice(o,a,...i),s(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:a}},getItem:function(e,n,o){const a=(t.get(e)??[])[n];if(a&&a.itemList.length>0&&o>=0&&o<a.itemList.length){return a.itemList[o]}},destroy:function(){t.clear()}}}qo.render=function(e,t,n,s,i,l){const c=o("standard-section"),u=o("tabs-list-section"),p=o("loading-section"),g=o("end-section"),m=o("blank-section"),h=o("tv-list");return a(),d(h,{ref:"waterfallRef",class:"qt-waterfall-root-css",clipChildren:!1,clipPadding:!1,listenBoundEvent:!0,negativeKeyTime:"30",postContentDelay:"500",onScroll:e.onScroll,onItemClick:e.onItemClick,onItemFocused:e.onItemFocused,onItemBind:e.onSectionBind,onItemAttached:e.onSectionAttached,focusMemory:!1,cachePool:e.cachePool,preload:1,checkScrollOffsetOnStateChanged:!0,makeChildVisibleType:"center",scrollThresholdVertical:50,scrollEventThrottle:16,enableSelectOnFocus:!1,advancedFocusSearchSpan:"1",scrollYLesserReferenceValue:30,scrollYGreaterReferenceValue:30,shakePreCheckNumber:"4",blockFocusDirections:["down"],onScrollStateChanged:e.onScrollStateChanged},{default:y((()=>[r(" 普通版块"),v(c,{"cache-pool":e.flexCachePool,enablePlaceholder:e.enablePlaceholder},{default:y((()=>[f(e.$slots,"item")])),_:3},8,["cache-pool","enablePlaceholder"]),r("一行滚动 多级tab"),v(u,{enablePlaceholder:e.enablePlaceholder},{default:y((()=>[f(e.$slots,"listItem")])),_:3},8,["enablePlaceholder"]),r(" loading"),v(p),r(" end "),v(g),r(" blank "),v(m),f(e.$slots,"section")])),_:3},8,["onScroll","onItemClick","onItemFocused","onItemBind","onItemAttached","cachePool","onScrollStateChanged"])},qo.__scopeId="data-v-2e65df68",qo.__file="src/waterfall/index.vue",function(e){e[e.QT_TAB_PAGE_STATE_IDLE=0]="QT_TAB_PAGE_STATE_IDLE",e[e.QT_TAB_PAGE_STATE_BUSY=1]="QT_TAB_PAGE_STATE_BUSY",e[e.QT_TAB_PAGE_STATE_COMPLETE=2]="QT_TAB_PAGE_STATE_COMPLETE",e[e.QT_TAB_PAGE_STATE_ERROR=3]="QT_TAB_PAGE_STATE_ERROR"}(zo||(zo={}));const Mo="qt-tab";var Go,jo,Qo,Yo=bn({name:"qt-tab",props:{prevLoadNumber:{type:Number,default:3},topBlank:{type:Number,default:0},tabNavBarClass:{type:String,default:""},tabClass:{type:String,default:""},tabsDataStrategy:{type:String,default:"overTime"},tabContentClass:{type:String,default:""},horizontal:{type:Boolean,default:!0},pageTransform:{type:Boolean,default:!0},hideOnSingleTab:{type:Boolean,default:!0},floatNavBar:{type:Boolean,default:!0},arrangeType:{type:String,default:"TB"},decorationCreator:{type:Function,default:null},contentNextFocus:{type:Object,default:()=>({up:"tabList",left:"tabList"})},headBlank:{type:Number,default:0},nodeGap:{type:Number,default:36},enableLoadMore:{type:Boolean,default:!0},triggerTask:{type:Array,default:()=>[]},blockViewPager:{type:Array,default:()=>[]},blockViewPagerVertical:{type:Array,default:()=>[]}},setup(e,t){const o=n(),a=n(!0),s=n(300),i=n(500),l=n(1),r=n(!0),c=P(),u=n(),d=Wo();let p,f=-1;function g(e,t){const n=d.getTabPageData(e);n&&(n.state=t,d.setTabPageData(e,n))}function m(e,n){let o=d.getTabPageData(e);o&&o.state===zo.QT_TAB_PAGE_STATE_IDLE?(c.isLoggable(D.DEBUG)&&c.d(Mo,"----------loadPageData----加载数据--\x3e>>>",e),t.emit("onLoadTabPageData",e,n),g(e,zo.QT_TAB_PAGE_STATE_BUSY)):c.isLoggable(D.DEBUG)&&c.d(Mo,"----------loadPageData--状态不对--\x3e>>>",e)}return{tabs:o,ifTabs:a,navBarRef:u,initTab:function(e){let t={defaultIndex:e.defaultIndex,focusIndex:e.defaultFocusIndex,data:e.itemList};d.initTab(e),o.value?.setTabsData(t)},initWaterfall:function(e){p=e},setTagPageSate:g,setTabPageData:function(e,t){c.isLoggable(D.DEBUG)&&c.d(Mo,"----------loadPageData----setTabPageData--\x3e>>>pageIndex:"+e),d.addSectionList(e,t.data);const n={data:Bo(p,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};c.isLoggable(D.DEBUG)&&c.d(Mo,"------设置数据----setTabPageData------\x3e>>> pageIndex:"+e+" data:",n),o.value?.setPageData(e,n)},addPageData:function(e,t,n=0){c.isLoggable(D.DEBUG)&&c.d(Mo,"----------loadPageData----addPageData--\x3e>>>pageIndex:"+e),d.addSectionList(e,t.data);const a={data:Bo(p,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};c.isLoggable(D.DEBUG)&&c.d(Mo,"----设置数据------addPageData------\x3e>>> pageIndex:"+e+" data:",a," deleteCount:"+n),o.value?.addPageData(e,a,n)},updatePageData:function(e,t){d.updateSectionList(e,t.data);const n={data:Bo(p,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};o.value?.updatePageData(e,n)},updatePageSection:function(e,t,n){d.updateSection(e,t,n);const a=$o(p,n);o.value?.updateRootNode(e,t,a)},getPageSection:function(e,t){return d.getSection(e,t)},getPageSectionList:function(e){return d.getSectionList(e)},deletePageSection:function(e,t,n){d.deleteSection(e,t,n),o.value?.invokeContentFunction(e,"deleteItemRange",[t,n])},addPageItemList:function(e,t,n){d.addItemList(e,t,n);const a=d.getSection(e,t);if(a){const n=$o(p,a);o.value?.updateRootNode(e,t,n)}},getPageItem:function(e,t,n){return d.getItem(e,t,n)},updatePageItem:function(e,t,n,a){d.updateItem(e,t,n,a),o.value?.updateChildNode(e,t,n,a)},deletePageItem:function(e,t,n,a){d.deleteItem(e,t,n,a);const s=d.getSection(e,t);if(s){const n=$o(p,s);o.value?.updateRootNode(e,t,n)}},blockRootFocus:function(){o.value?.blockRootFocus()},unBlockRootFocus:function(){o.value?.unBlockRootFocus()},focusBackToTop:function(){o.value?.focusBackToTop()},requestNodeFocus:function(e){o.value?.requestNodeFocus(e)},reloadAll:function(e=!0){o.value?.reloadAll(e)},reloadPage:function(e){o.value?.reloadPage(e)},setCurrentPage:function(e){o.value?.setCurrentPage(e)},requestTabFocus:function(e){o.value?.requestTabFocus(e)},invokeContentFunction:function(e,t,n){o.value?.invokeContentFunction(e,t,n)},invokeContentFunctionDirect:function(e,t){o.value?.invokeContentFunctionDirect(e,t)},contentScrollToFocus:function(e){o.value?.contentScrollToFocus(e)},getRootNodeViewState:function(e,t,n){o.value?.getRootNodeViewState(e,t,n)},getChildNodeViewState:function(e,t,n,a,s){o.value?.getChildNodeViewState(e,t,n,a,s)},dispatchUIFunctionOnChildNode:function(e,t,n,a,s){o.value?.dispatchUIFunctionOnChildNode(e,t,n,a,s)},updateItemMatched:function(e="id",t,n){o.value?.updateItemMatched(e,t,n)},updateRootNode:function(e,t,n){o.value?.updateRootNode(e,t,n)},updateChildNode:function(e,t,n,a){o.value?.updateChildNode(e,t,n,a)},destroy:function(){o.value?.destroy()},pageSwitchDelay:s,pageResumeDelay:i,rootOpacity:l,isTabHorizontal:r,onLoadTabPageData:function(e){const t=e.pageIndex,n=e.useDiff;c.isLoggable(D.DEBUG)&&c.d(Mo,"----------loadPageData----android--\x3e>>>pageIndex:"+t),m(t,n)},onTabPageChanged:function(e){const n=e.pageIndex;f=n;const o=e.data;c.isLoggable(D.DEBUG)&&c.d(Mo,"----------onTabPageChanged------\x3e>>> pageIndex:"+n+" data:",o),t.emit("onTabPageChanged",n,o)},onTabEvent:function(e){const n=e.params,o=e.eventName,a=e.params.itemPosition;t.emit("onTabEvent",a,o,n)},onWaterfallItemClick:function(e,t,n){c.isLoggable(D.DEBUG)&&c.d(Mo,"-----------onWaterfallItemClick---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+t+" item:",n)},onWaterfallItemFocused:function(e,t,n,o){c.isLoggable(D.DEBUG)&&c.d(Mo,"-----------onWaterfallItemFocused---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+t+" isFocused:"+n+" item:",o)},onWaterfallSectionBind:function(e,t){c.isLoggable(D.DEBUG)&&c.d(Mo,"-----------onWaterfallSectionBind---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t),e===f&&(c.isLoggable(D.DEBUG)&&c.d(Mo,"----------loadPageData----bind--\x3e>>>pageIndex:"+e),m(e,!1))},onWaterfallSectionAttached:function(e,t){c.isLoggable(D.DEBUG)&&c.d(Mo,"-----------onWaterfallSectionAttached---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t)}}}});function Ho(e,t,n=!0){let o=e.length;n?e.map(((e,n)=>{n!==o-1&&(e.decoration={bottom:t})})):e.map(((e,n)=>{n!==o-1&&(e.decoration={right:t})}))}Yo.render=function(e,t,n,s,i,c){const u=o("qt-nav-bar"),p=o("qt-waterfall"),g=o("recycler-view-pager"),m=o("tabs");return e.ifTabs?(a(),d(m,{key:0,ref:"tabs",class:l(["tabs-root-css",e.tabClass]),dataStrategy:e.tabsDataStrategy,hideOnSingleTab:this.hideOnSingleTab,pageSwitchDelay:e.pageSwitchDelay,resumeTaskDelay:e.pageResumeDelay,suspension:this.floatNavBar,clipChildren:!1,outOfDateTime:3e5,blockFocusDirections:["down"],onLoadPage:e.onLoadTabPageData,onPageChanged:e.onTabPageChanged,onTabEvent:e.onTabEvent},{default:y((()=>[v(u,{ref:"navBarRef",name:"tabList",focusable:!1,class:"tab-nav-bar-root-css","class-name":e.tabNavBarClass,"text-key":"text",clipChldren:!1,horizontal:e.isTabHorizontal},{default:y((()=>[f(e.$slots,"tabItem")])),_:3},8,["class-name","horizontal"]),v(g,{nextFocusName:e.contentNextFocus,ref:"viewPager",class:l(e.tabContentClass),name:"content",loadingItemType:-1,clipChldren:!1,opacity:e.rootOpacity,focusable:!1,enableTransform:e.pageTransform,triggerTask:e.triggerTask,direction:e.isTabHorizontal?"horizontal":"vertical",blockFocusDirections:e.isTabHorizontal?e.blockViewPager:e.blockViewPagerVertical},{default:y((()=>[v(p,{onOnSectionBind:e.onWaterfallSectionBind,onOnSectionAttached:e.onWaterfallSectionAttached,onOnItemFocused:e.onWaterfallItemFocused,onOnItemClick:e.onWaterfallItemClick},{item:y((()=>[f(e.$slots,"waterfallItem")])),section:y((()=>[f(e.$slots,"waterfallSection")])),_:3},8,["onOnSectionBind","onOnSectionAttached","onOnItemFocused","onOnItemClick"])])),_:3},8,["nextFocusName","class","opacity","enableTransform","triggerTask","direction","blockFocusDirections"])])),_:3},8,["dataStrategy","hideOnSingleTab","pageSwitchDelay","resumeTaskDelay","suspension","class","onLoadPage","onPageChanged","onTabEvent"])):r("v-if",!0)},Yo.__file="src/tab/index.vue",function(e){e.QT_DIRECTION_UP="up",e.QT_DIRECTION_DOWN="down",e.QT_DIRECTION_RIGHT="right",e.QT_DIRECTION_LEFT="left"}(Go||(Go={})),function(e){e[e.SCROLL_STATE_IDLE=0]="SCROLL_STATE_IDLE",e[e.SCROLL_STATE_DRAGGING=1]="SCROLL_STATE_DRAGGING",e[e.SCROLL_STATE_SETTLING=2]="SCROLL_STATE_SETTLING"}(jo||(jo={})),function(e){e[e.QT_NAV_BAR_ITEM_TYPE_TEXT=2e4]="QT_NAV_BAR_ITEM_TYPE_TEXT"}(Qo||(Qo={}));const Ko=[F,w,po,To,qo,Yo],Xo=o=>{o.component("qt-loading-view",{setup(e,t){const o=n();return()=>k("LoadingViewComponent",{ref:o})}}),function(o){const a=t({props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1}},emits:["item-click","scroll","item-focused","item-attached","item-detached","item-bind","item-unbind","load-more","scroll-state-changed","focus-search-failed","scrollYGreaterReference","scrollYLesserReference"],setup(t,o){const a=n(),s=E(),i={apkVersion:String(s.getESSDKVersionCode()).slice(0,3),recordTarget:[],changeTarget:[],keyArr:[],type:"",pageNo:-1,isStopPage:!1,setListDataTimer:-1,stopPageTimer:-1,defaultFocusTimer:-1,pushDataTimer:-1};g((()=>t.openPage),((e,n)=>{1==e&&e&&(i.pageNo=1,i.isStopPage=!1,t.loadMore(i.pageNo))}));const l=e=>{0==i.recordTarget.length&&(i.recordTarget=c(e),r(i.recordTarget,-1),i.changeTarget=e,t.openPage?p(i.recordTarget.concat([{type:"1002",decoration:{top:18,bottom:18,right:30,left:30}}])):p(i.recordTarget),t.defaultFocus>-1&&(i.defaultFocusTimer&&clearTimeout(i.defaultFocusTimer),i.defaultFocusTimer=setTimeout((()=>{S(t.defaultFocus)}),500)));let n={get(e,n,o){if("__ob__"!=n&&"symbol"!=typeof n&&"map"!=n&&"length"!=n&&"constructor"!=n&&"_isVue"!=n&&"valueOf"!=n&&"toString"!=n&&"observeArray"!=n&&"dep"!=n&&"notify"!=n&&"subs"!=n&&"slice"!=n)if(i.keyArr.push(n),-1!=i.keyArr.indexOf("push"))i.type="push";else{if(-1!=i.keyArr.indexOf("splice"))return i.type="splice",function(...t){return e.splice(...t),-1!=i.keyArr.indexOf("list")?(i.recordTarget[i.keyArr[0]].list.splice(...t),T(Number(i.keyArr[0]),i.recordTarget[i.keyArr[0]])):1==t.length?(y(Number(t[0]),i.recordTarget.length-t[0]+1),i.recordTarget.splice(...t)):2==t.length?(y(Number(t[0]),t[1]),i.recordTarget.splice(...t)):3==t.length&&(e.splice(t[0],t[1],...t[2]),i.recordTarget.splice(t[0],t[1],...t[2]),0==t[1]?Number(i.apkVersion)>2.2&&_(t[0],t[2]):v(t[0],t[1],t[2])),i.keyArr=[],Reflect.get(e,n,o)};if(-1!=i.keyArr.indexOf("pop"))return i.type="pop",function(){return e.pop(),-1!=i.keyArr.lastIndexOf("list")?(i.recordTarget[i.keyArr[0]].list.pop(),T(Number(i.keyArr[0]),i.recordTarget[i.keyArr[0]])):(y(Number(i.recordTarget.length-1),1),i.recordTarget.pop()),i.keyArr=[],Reflect.get(e,n,o)};if(-1!=i.keyArr.indexOf("forEach"))return i.type="forEach",function(a){return e.forEach((e=>{a(e)})),i.recordTarget=[],i.recordTarget=c(e),t.openPage?p(i.recordTarget.concat([{type:"1002",decoration:{top:15,left:30}}])):p(i.recordTarget),i.keyArr=[],Reflect.get(e,n,o)};if(-1!=i.keyArr.indexOf("concat"))return i.type="concat",function(a){return e.concat(a),-1!=i.keyArr.lastIndexOf("list")?(i.recordTarget[i.keyArr[0]].list=i.recordTarget[i.keyArr[0]].list.concat(a),T(Number(i.keyArr[0]),i.recordTarget[i.keyArr[0]])):t.openPage&&!i.isStopPage?(i.recordTarget.concat(a),setTimeout((()=>{m(a.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300)):f(a),i.keyArr=[],Reflect.get(e,n,o)};if(-1!=i.keyArr.indexOf("deleteItem"))return function(...t){let a=!1;for(let n=0;n<i.recordTarget.length;n++){const o=i.recordTarget[n];if(o.id&&o.id==t[0])return a=!0,y(Number(n),t[1]),e.splice(Number(n),t[1]),i.recordTarget.splice(Number(n),t[1]),!1;if(o.list&&o.list.length>0)for(let s=0;s<o.list.length;s++){const l=o.list[s];if(l.id&&l.id==t[0])return a=!0,e[n].list.splice(Number(s),t[1]),i.recordTarget[n].list.splice(Number(s),t[1]),T(Number(n),i.recordTarget[n]),!1}}return a||console.log("deleteItem:没有找到相对应id"),i.keyArr=[],Reflect.get(e,n,o)};if(-1!=i.keyArr.indexOf("updateItemProps"))return i.type="updateItemProps",function(...t){let a=t[2];return u(a)&&(Object.keys(a).forEach((n=>{e[t[0]][`${n}`]=a[`${n}`],i.recordTarget[t[0]][`${n}`]=a[`${n}`]})),-1!=i.keyArr.indexOf("list")?console.log("updateItemProps: 不支持嵌套调用updateItemProps"):b(t[0],t[1],t[2])),i.keyArr=[],Reflect.get(e,n,o)};i.type=""}const a=Reflect.get(e,n,o);return u(a)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?l(a):(-1==i.keyArr.indexOf("push")&&(i.keyArr=[]),a)},set(e,n,o,a){const s=e[n];d(e,n);const l=Reflect.set(e,n,o,a);if((!u(s)&&s!==o||u(s))&&"push"!=i.type)if(i.keyArr.push(n),-1!=i.keyArr.lastIndexOf("list")){let e=i.keyArr.lastIndexOf("list"),t=i.keyArr.lastIndexOf("list")+2,n={};for(let e=0;e<t;e++){let t=i.keyArr[e];n=n?n[t]:i.changeTarget[t]}n.name="name"+i.keyArr[e-1]+i.keyArr[e+1],T(Number(i.keyArr[0]),i.changeTarget[i.keyArr[0]]),i.recordTarget[i.keyArr[0]].list[i.keyArr[e+1]]=i.changeTarget[i.keyArr[0]].list[i.keyArr[e+1]],i.recordTarget[i.keyArr[0]].list[i.keyArr[e+1]].name="name"+i.keyArr[e-1]+i.keyArr[e+1]}else i.recordTarget[i.keyArr[0]]=i.changeTarget[i.keyArr[0]],i.recordTarget[i.keyArr[0]].name="name"+i.keyArr[0],T(Number(i.keyArr[0]),i.changeTarget[i.keyArr[0]]);if(n&&"push"==i.type&&s!==o)-1!=i.keyArr.lastIndexOf("list")?(i.keyArr.push(n),i.recordTarget[i.keyArr[0]].list.push(o)):(i.keyArr.push(n),i.recordTarget.push(o));else{if("push"==i.type)if(-1!=i.keyArr.lastIndexOf("list"))T(Number(i.keyArr[0]),i.recordTarget[i.keyArr[0]]);else{let e=i.recordTarget.slice(i.keyArr[1]);i.pushDataTimer&&clearTimeout(i.pushDataTimer),t.openPage&&!i.isStopPage?i.pushDataTimer=setTimeout((()=>{m(e.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300):i.pushDataTimer=setTimeout((()=>{f(e)}),300)}i.keyArr=[]}return l}};return new Proxy(e,n)},r=(e,t)=>{for(let n=0;n<e.length;n++){const o=e[n];o.name=t>=0?"name"+t+n:"name"+n,o.list&&o.list.length>0&&r(o.list,n)}},c=(e={})=>{let t=null;if("object"==typeof e&&null!==e)for(var n in t=e instanceof Array?[]:{},e)t[n]=c(e[n]);else t=e;return t},u=e=>null!==e&&"object"==typeof e,d=(e,t)=>{Object.hasOwnProperty.call(e,t)},p=t=>{i.setListDataTimer&&clearTimeout(i.setListDataTimer),i.setListDataTimer=setTimeout((()=>{e.callUIFunction(a.value,"setListData",t)}),100)},f=t=>{e.callUIFunction(a.value,"addListData",t)},m=(t,n)=>{e.callUIFunction(a.value,"addListDataWithParams",[t,n])},y=(t,n)=>{e.callUIFunction(a.value,"deleteItemRange",[t,n])},T=(t,n)=>{e.callUIFunction(a.value,"updateItem",[t,n])},v=(t,n,o)=>{e.callUIFunction(a.value,"updateItemRange",[t,n,o])},b=(t,n,o)=>{e.callUIFunction(a.value,"updateItemProps",[n,t,o,!0])},_=(t,n)=>{e.callUIFunction(a.value,"insertItemRange",[t,n])},S=t=>{e.callUIFunction(a.value,"requestChildFocus",[t])};return h((()=>{i.recordTarget=[],i.changeTarget.length=0,i.keyArr=[],i.isStopPage=!1,i.pageNo=1,i.type="",i.setListDataTimer&&clearTimeout(i.setListDataTimer),i.defaultFocusTimer&&clearTimeout(i.defaultFocusTimer),i.pushDataTimer&&clearTimeout(i.pushDataTimer),i.stopPageTimer&&clearTimeout(i.stopPageTimer)})),o.expose({viewRef:a,init:l,...i,undataItemName:r,hasChanged:(e,t)=>e!==t&&(e==e||t==t),updateItem:T,updateItemList:v,hasFocus:t=>{e.callUIFunction(a.value,"hasFocus",(e=>{t(e)}))},updateItemProps:b,setListData:p,insertItem:_,addListData:f,addListDataWithParams:m,dispatchItemFunction:(t,n,o,s)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,n,o,s])},deleteItem:y,setBlockFocusDirectionsOnFail:t=>{e.callUIFunction(a.value,"setBlockFocusDirectionsOnFail",[t])},setListDataWithParams:(t,n)=>{e.callUIFunction(a.value,"setListDataWithParams",[t,n])},prepareForRecycle:()=>{e.callUIFunction(a.value,"prepareForRecycle",[])},setDisplay:t=>{e.callUIFunction(a.value,"setDisplay",[t])},scrollToTop:()=>{e.callUIFunction(a.value,"scrollToTop",[])},changeDisplayState:(t,n)=>{e.callUIFunction(a.value,"changeDisplayState",[t,n])},notifySaveInstance:()=>{e.callUIFunction(a.value,"notifySaveInstance",[])},notifyRestoreInstance:()=>{e.callUIFunction(a.value,"notifyRestoreInstance",[])},pausePostTask:()=>{e.callUIFunction(a.value,"pausePostTask",[])},resumePostTask:()=>{e.callUIFunction(a.value,"resumePostTask",[])},getScrollOffset:t=>{e.callUIFunction(a.value,"getScrollOffset",[],t)},scrollToPosition:t=>{e.callUIFunction(a.value,"scrollToPosition",[t])},scrollToPositionOffset:(t,n,o,s,i)=>{e.callUIFunction(a.value,"scrollToPositionWithOffset",[n,s,o])},destroy:()=>{e.callUIFunction(a.value,"destroy",[])},setInitPosition:t=>{e.callUIFunction(a.value,"setInitPosition",[t])},requestFocus:S,clearPostTask:()=>{e.callUIFunction(a.value,"clearAllPostTask",[])},clearFocus:()=>{e.callUIFunction(a.value,"clearFocus",[])},setSelectPosition:(t,n)=>{e.callUIFunction(a.value,"setSelectChildPosition",[t,n])},blockRootFocus:()=>{e.callUIFunction(a.value,"blockRootFocus",[])},unBlockRootFocus:()=>{e.callUIFunction(a.value,"unBlockRootFocus",[])},setBackgroundColor:t=>{e.callUIFunction(a.value,"setBackgroundColor",[t])},stopPage:()=>{i.stopPageTimer&&clearTimeout(i.stopPageTimer),i.stopPageTimer=setTimeout((()=>{y(i.recordTarget.length,1)}),400),i.isStopPage=!0}}),()=>{const e=o.slots.default&&o.slots.default();return k("FastListView",{ref:a,onItemClick:e=>{o.emit("item-click",e)},onScroll:e=>{o.emit("scroll",e)},onItemFocused:e=>{o.emit("item-focused",e)},onAttachedToWindow:e=>{o.emit("item-attached",e)},onDetachedFromWindow:e=>{o.emit("item-detached",e)},onBindItem:e=>{o.emit("item-bind",e)},onUnbindItem:e=>{o.emit("item-unbind",e)},onLoadMore:e=>{o.emit("load-more",e)},onScrollStateChanged:e=>{o.emit("scroll-state-changed",e)},onFocusSearchFailed:e=>{o.emit("focus-search-failed",e)},onScrollYGreaterReference:e=>{o.emit("scrollYGreaterReference",e)},onScrollYLesserReference:e=>{o.emit("scrollYLesserReference",e)}},e)}}});o.component("qt-list-view",a)}(o),function(o){const a=t({emits:["item-focused","item-attached","item-detached","item-bind","item-unbind"],setup(t,o){const a=n();return o.expose({viewRef:a,updateItem:(t,n)=>{e.callUIFunction(a.value,"updateItem",[t,n])},dispatchItemFunction:(t,n,o,s)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,n,o,s])},updateItemProps:(t,n,o)=>{e.callUIFunction(a.value,"updateItemProps",[n,t,o,!0])},batch:t=>{e.callUIFunction(a.value,"batch",[t])}}),()=>{const e=o.slots.default&&o.slots.default();return k("FastListView",{ref:a,onBindItem:e=>{o.emit("item-bind",e)},onItemFocused:e=>{o.emit("item-focused",e)},onAttachedToWindow:e=>{o.emit("item-attached",e)},onDetachedFromWindow:e=>{o.emit("item-detached",e)},onItemRecycled:e=>{o.emit("item-unbind",e)}},e)}}});o.component("qt-list-item",a)}(o);for(let e in Ko)o.component(Ko[e].name,Ko[e])};export{Go as QTDirections,Qo as QTNavBarItemType,jo as QTScrollState,zo as QTTabPageState,So as QTWaterfallItemType,_o as QTWaterfallSectionType,Xo as QuickTVUI,Ho as arrangeChildren4ListView};
|
package/dist/src/index.d.ts
CHANGED
|
@@ -32,8 +32,10 @@ export type { QTListViewItemFunctionParams } from './list-view/core/QTListViewIt
|
|
|
32
32
|
export type { QTNavBarItem } from './nav-bar/QTNavBarItem';
|
|
33
33
|
export type { QTINavBar } from './nav-bar/QTINavBar';
|
|
34
34
|
export type { QTNavBar } from './nav-bar/QTNavBar';
|
|
35
|
+
export { QTNavBarItemType } from './nav-bar/QTNavBarItemType';
|
|
35
36
|
export type { QTITab } from './tab/QTITab';
|
|
36
37
|
export type { QTTabPage } from './tab/QTTabPage';
|
|
37
38
|
export type { QTTab } from './tab/QTTab';
|
|
38
39
|
export type { QTTabItem } from './tab/QTTabItem';
|
|
40
|
+
export { QTTabPageState } from './tab/QTTabPageState';
|
|
39
41
|
export { arrangeChildren4ListView };
|
|
@@ -2,7 +2,7 @@ import { QTListViewItem } from "./QTListViewItem";
|
|
|
2
2
|
import { QTListViewItemFunctionParams } from "./QTListViewItemFunctionParams";
|
|
3
3
|
import { QTDirections } from "../../core/QTDirections";
|
|
4
4
|
export interface QTIListView {
|
|
5
|
-
init(target: Array<QTListViewItem>):
|
|
5
|
+
init(target: Array<QTListViewItem>): Array<QTListViewItem>;
|
|
6
6
|
setInitPosition(position: number): void;
|
|
7
7
|
setListData(itemList: Array<QTListViewItem>): void;
|
|
8
8
|
setListDataWithParams(data: Array<QTListViewItem>, autoChangeVisible: Boolean): void;
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import { ESTabItem } from "@extscreen/es3-component";
|
|
2
|
+
import { QTWaterfallFlexStyle } from "../waterfall/core/QTWaterfallFlexStyle";
|
|
3
|
+
export interface QTNavBarItem extends ESTabItem {
|
|
4
|
+
style?: QTWaterfallFlexStyle;
|
|
5
|
+
[prop: string]: any;
|
|
4
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QTIListView } from "../list-view/core/QTIListView";
|
|
2
|
-
import {
|
|
2
|
+
import { QTNavBar } from "./QTNavBar";
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
textKey: {
|
|
5
5
|
type: StringConstructor;
|
|
@@ -41,8 +41,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
41
41
|
onTabChange: (e: any) => void;
|
|
42
42
|
scrollToPosition: (index: any) => void;
|
|
43
43
|
scrollToTop: () => void;
|
|
44
|
-
|
|
45
|
-
initNavBarItem: (list: Array<QTNavBarItem>) => void;
|
|
44
|
+
init: (navBar: QTNavBar) => void;
|
|
46
45
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
47
46
|
textKey: {
|
|
48
47
|
type: StringConstructor;
|
package/dist/src/tab/QTITab.d.ts
CHANGED
|
@@ -2,12 +2,24 @@ import { QTTab } from "./QTTab";
|
|
|
2
2
|
import { QTTabPage } from "./QTTabPage";
|
|
3
3
|
import { QTWaterfall } from "../waterfall/core/QTWaterfall";
|
|
4
4
|
import { ESListViewItemFunctionParams, ESViewStateCallback } from "@extscreen/es3-component";
|
|
5
|
+
import { QTTabPageState } from "./QTTabPageState";
|
|
6
|
+
import { QTWaterfallSection } from "../waterfall/core/QTWaterfallSection";
|
|
7
|
+
import { QTWaterfallItem } from "../waterfall/core/QTWaterfallItem";
|
|
5
8
|
export interface QTITab {
|
|
6
9
|
initTab(tab: QTTab): void;
|
|
7
10
|
initWaterfall(waterfall: QTWaterfall): void;
|
|
11
|
+
setTagPageSate(pageIndex: number, state: QTTabPageState): void;
|
|
8
12
|
setTabPageData(pageIndex: number, tabPage: QTTabPage): void;
|
|
9
13
|
addPageData(pageIndex: number, tabPageData: QTTabPage, deleteCount: number): void;
|
|
10
14
|
updatePageData(pageIndex: number, tabPageData: QTTabPage): void;
|
|
15
|
+
updatePageSection(pageIndex: number, sectionIndex: number, section: QTWaterfallSection): void;
|
|
16
|
+
deletePageSection(pageIndex: number, sectionIndex: number, count: number): void;
|
|
17
|
+
getPageSection(pageIndex: number, sectionIndex: number): QTWaterfallSection | undefined;
|
|
18
|
+
getPageSectionList(pageIndex: number): Array<QTWaterfallSection>;
|
|
19
|
+
getPageItem(pageIndex: number, sectionIndex: number, itemIndex: number): QTWaterfallItem | undefined;
|
|
20
|
+
updatePageItem(pageIndex: number, sectionIndex: number, itemIndex: number, item: QTWaterfallItem): void;
|
|
21
|
+
addPageItemList(pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem>): void;
|
|
22
|
+
deletePageItem(pageIndex: number, sectionIndex: number, itemIndex: number, count: number): void;
|
|
11
23
|
blockRootFocus(): void;
|
|
12
24
|
unBlockRootFocus(): void;
|
|
13
25
|
focusBackToTop(): void;
|
|
@@ -24,6 +36,6 @@ export interface QTITab {
|
|
|
24
36
|
dispatchUIFunctionOnChildNode(page: number, position: number, childIndex: number, listViewName: string, functionParams: ESListViewItemFunctionParams): void;
|
|
25
37
|
updateItemMatched(key: string, id: any, newData: any): void;
|
|
26
38
|
updateChildNode(page: number, position: number, childIndex: number, data: any): void;
|
|
27
|
-
updateRootNode(page: number, position: number, data:
|
|
39
|
+
updateRootNode(page: number, position: number, data: any): void;
|
|
28
40
|
destroy(): void;
|
|
29
41
|
}
|
package/dist/src/tab/QTTab.d.ts
CHANGED
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { QTWaterfallSection } from "../waterfall/core/QTWaterfallSection";
|
|
2
|
+
import { QTWaterfallItem } from "../waterfall/core/QTWaterfallItem";
|
|
3
|
+
import { QTTabIndex } from "./QTTabIndex";
|
|
4
|
+
import { QTTabPageData } from "./QTTabPageData";
|
|
5
|
+
import { QTTab } from "./QTTab";
|
|
6
|
+
export interface QTTabDataManager {
|
|
7
|
+
initTab(tab: QTTab): void;
|
|
8
|
+
setTabPageData(pageIndex: number, page: QTTabPageData): void;
|
|
9
|
+
getTabPageData(pageIndex: number): QTTabPageData | undefined;
|
|
10
|
+
getSectionList(pageIndex: number): Array<QTWaterfallSection>;
|
|
11
|
+
addSectionList(pageIndex: number, sections: Array<QTWaterfallSection>): QTTabIndex;
|
|
12
|
+
deleteSection(pageIndex: number, sectionIndex: number, count: number): QTTabIndex;
|
|
13
|
+
updateSectionList(pageIndex: number, sectionList: Array<QTWaterfallSection>): QTTabIndex;
|
|
14
|
+
updateSection(pageIndex: number, sectionIndex: number, section: QTWaterfallSection): QTTabIndex;
|
|
15
|
+
getSection(pageIndex: number, sectionIndex: number): QTWaterfallSection | undefined;
|
|
16
|
+
addItemList(pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem>): QTTabIndex;
|
|
17
|
+
deleteItem(pageIndex: number, sectionIndex: number, itemIndex: number, count: number): QTTabIndex;
|
|
18
|
+
updateItem(pageIndex: number, sectionIndex: number, itemIndex: number, item: QTWaterfallItem): QTTabIndex;
|
|
19
|
+
updateItemList(pageIndex: number, sectionIndex: number, itemIndex: number, count: number, itemList: Array<QTWaterfallItem>): QTTabIndex;
|
|
20
|
+
getItem(pageIndex: number, sectionIndex: number, itemIndex: number): QTWaterfallItem | undefined;
|
|
21
|
+
destroy(): any;
|
|
22
|
+
}
|
|
23
|
+
export declare function createQTTabDataManager(): QTTabDataManager;
|
|
@@ -4,6 +4,9 @@ import { QTTabEvent } from "./QTTabEvent";
|
|
|
4
4
|
import { QTTabPage } from "./QTTabPage";
|
|
5
5
|
import { QTWaterfall } from "../waterfall/core/QTWaterfall";
|
|
6
6
|
import { ESITab, ESListViewItemFunctionParams, ESViewStateCallback } from "@extscreen/es3-component";
|
|
7
|
+
import { QTWaterfallItem } from "../waterfall/core/QTWaterfallItem";
|
|
8
|
+
import { QTTabPageState } from "./QTTabPageState";
|
|
9
|
+
import { QTWaterfallSection } from "../waterfall/core/QTWaterfallSection";
|
|
7
10
|
declare const _default: import("vue").DefineComponent<{
|
|
8
11
|
prevLoadNumber: {
|
|
9
12
|
type: NumberConstructor;
|
|
@@ -90,9 +93,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
90
93
|
navBarRef: import("vue").Ref<QTINavBar | undefined>;
|
|
91
94
|
initTab: (tab: QTTab) => void;
|
|
92
95
|
initWaterfall: (w: QTWaterfall) => void;
|
|
96
|
+
setTagPageSate: (pageIndex: number, state: QTTabPageState) => void;
|
|
93
97
|
setTabPageData: (pageIndex: number, tabPageData: QTTabPage) => void;
|
|
94
98
|
addPageData: (pageIndex: number, tabPageData: QTTabPage, deleteCount?: number) => void;
|
|
95
99
|
updatePageData: (pageIndex: number, tabPageData: QTTabPage) => void;
|
|
100
|
+
updatePageSection: (pageIndex: number, sectionIndex: number, section: QTWaterfallSection) => void;
|
|
101
|
+
getPageSection: (pageIndex: number, sectionIndex: number) => QTWaterfallSection | undefined;
|
|
102
|
+
getPageSectionList: (pageIndex: number) => Array<QTWaterfallSection>;
|
|
103
|
+
deletePageSection: (pageIndex: number, sectionIndex: number, count: number) => void;
|
|
104
|
+
addPageItemList: (pageIndex: number, sectionIndex: number, itemList: Array<QTWaterfallItem>) => void;
|
|
105
|
+
getPageItem: (pageIndex: number, sectionIndex: number, itemIndex: number) => QTWaterfallItem | undefined;
|
|
106
|
+
updatePageItem: (pageIndex: number, sectionIndex: number, itemIndex: number, item: QTWaterfallItem) => void;
|
|
107
|
+
deletePageItem: (pageIndex: number, sectionIndex: number, itemIndex: number, count: number) => void;
|
|
96
108
|
blockRootFocus: () => void;
|
|
97
109
|
unBlockRootFocus: () => void;
|
|
98
110
|
focusBackToTop: () => void;
|
|
@@ -118,6 +130,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
118
130
|
onLoadTabPageData: (e: QTTabEvent) => void;
|
|
119
131
|
onTabPageChanged: (e: QTTabEvent) => void;
|
|
120
132
|
onTabEvent: (e: QTTabEvent) => void;
|
|
133
|
+
onWaterfallItemClick: (sectionIndex: number, itemIndex: number, item: QTWaterfallItem) => void;
|
|
134
|
+
onWaterfallItemFocused: (sectionIndex: number, itemIndex: number, isFocused: boolean, item: QTWaterfallItem) => void;
|
|
135
|
+
onWaterfallSectionBind: (pageIndex: number, sectionIndex: number) => void;
|
|
136
|
+
onWaterfallSectionAttached: (pageIndex: number, sectionIndex: number) => void;
|
|
121
137
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
122
138
|
prevLoadNumber: {
|
|
123
139
|
type: NumberConstructor;
|
|
@@ -3,13 +3,18 @@ import { QTWaterfall } from "./QTWaterfall";
|
|
|
3
3
|
import { QTWaterfallItem } from "./QTWaterfallItem";
|
|
4
4
|
export interface QTIWaterfall {
|
|
5
5
|
init(waterfall: QTWaterfall): any;
|
|
6
|
+
getSectionList(): Array<QTWaterfallSection>;
|
|
6
7
|
setSectionList(sections: Array<QTWaterfallSection>): void;
|
|
7
8
|
addSectionList(sections: Array<QTWaterfallSection>): void;
|
|
8
9
|
deleteSection(sectionIndex: number, count: number): void;
|
|
9
10
|
updateSection(sectionIndex: number, section: QTWaterfallSection): void;
|
|
11
|
+
updateSectionList(sectionIndex: number, count: number, sectionList: Array<QTWaterfallSection>): void;
|
|
12
|
+
getSection(sectionIndex: number): QTWaterfallSection | undefined;
|
|
10
13
|
addItemList(sectionIndex: number, itemList: Array<QTWaterfallItem>): void;
|
|
11
14
|
deleteItem(sectionIndex: number, itemIndex: number, count: number): void;
|
|
12
15
|
updateItem(sectionIndex: number, itemIndex: number, item: QTWaterfallItem): void;
|
|
16
|
+
updateItemList(sectionIndex: number, itemIndex: number, count: number, itemList: Array<QTWaterfallItem>): void;
|
|
17
|
+
getItem(sectionIndex: number, itemIndex: number): QTWaterfallItem | undefined;
|
|
13
18
|
clearPostTask(): void;
|
|
14
19
|
pausePostTask(): void;
|
|
15
20
|
resumePostTask(): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { QTWaterfallItem } from "./QTWaterfallItem";
|
|
2
2
|
import { QTWaterfall } from "./QTWaterfall";
|
|
3
3
|
import { QTWaterfallSection } from "./QTWaterfallSection";
|
|
4
|
-
export declare function
|
|
5
|
-
export declare function generateSection(waterfall: QTWaterfall, section: QTWaterfallSection
|
|
4
|
+
export declare function generateSectionList(waterfall: QTWaterfall, sectionList: Array<QTWaterfallSection>): Array<QTWaterfallItem>;
|
|
5
|
+
export declare function generateSection(waterfall: QTWaterfall, section: QTWaterfallSection): QTWaterfallSection;
|
|
@@ -2,12 +2,17 @@ import { QTWaterfallSection } from "./QTWaterfallSection";
|
|
|
2
2
|
import { QTWaterfallItem } from "./QTWaterfallItem";
|
|
3
3
|
import { QTWaterfallIndex } from "./QTWaterfallIndex";
|
|
4
4
|
export interface QTWaterfallDataManager {
|
|
5
|
+
init(): void;
|
|
6
|
+
getSectionList(): Array<QTWaterfallSection>;
|
|
5
7
|
addSectionList(sections: Array<QTWaterfallSection>): QTWaterfallIndex;
|
|
6
8
|
deleteSection(sectionIndex: number, count: number): QTWaterfallIndex;
|
|
7
9
|
updateSection(sectionIndex: number, section: QTWaterfallSection): QTWaterfallIndex;
|
|
10
|
+
getSection(sectionIndex: number): QTWaterfallSection | undefined;
|
|
8
11
|
addItemList(sectionIndex: number, itemList: Array<QTWaterfallItem>): QTWaterfallIndex;
|
|
9
12
|
deleteItem(sectionIndex: number, itemIndex: number, count: number): QTWaterfallIndex;
|
|
10
13
|
updateItem(sectionIndex: number, itemIndex: number, item: QTWaterfallItem): QTWaterfallIndex;
|
|
11
|
-
|
|
14
|
+
updateItemList(sectionIndex: number, itemIndex: number, count: number, itemList: Array<QTWaterfallItem>): QTWaterfallIndex;
|
|
15
|
+
getItem(sectionIndex: number, itemIndex: number): QTWaterfallItem | undefined;
|
|
16
|
+
destroy(): any;
|
|
12
17
|
}
|
|
13
18
|
export declare function createQTWaterfallDataManager(): QTWaterfallDataManager;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { QTWaterfallItem } from "./QTWaterfallItem";
|
|
2
2
|
import { QTWaterfallFlexStyle } from "./QTWaterfallFlexStyle";
|
|
3
|
-
|
|
3
|
+
import { QTListViewItem } from "@quicktvui/quicktvui3";
|
|
4
|
+
export interface QTWaterfallSection extends QTListViewItem {
|
|
4
5
|
type: number;
|
|
5
6
|
title?: string;
|
|
6
7
|
titleStyle?: QTWaterfallFlexStyle;
|
|
@@ -4,5 +4,7 @@ export declare enum QTWaterfallSectionType {
|
|
|
4
4
|
QT_WATERFALL_SECTION_TYPE_FLEX = 1002,
|
|
5
5
|
QT_WATERFALL_SECTION_TYPE_LIST = 1003,
|
|
6
6
|
QT_WATERFALL_SECTION_TYPE_INDEPENDENT_ITEM = 1004,
|
|
7
|
-
QT_WATERFALL_SECTION_TYPE_TAB_LIST = 1005
|
|
7
|
+
QT_WATERFALL_SECTION_TYPE_TAB_LIST = 1005,
|
|
8
|
+
QT_WATERFALL_SECTION_TYPE_END = -1001,
|
|
9
|
+
QT_WATERFALL_SECTION_TYPE_BLANK = -1000
|
|
8
10
|
}
|
|
@@ -2,6 +2,7 @@ import { QTWaterfall } from "./core/QTWaterfall";
|
|
|
2
2
|
import { QTWaterfallSection } from "./core/QTWaterfallSection";
|
|
3
3
|
import { ESIListView } from "@extscreen/es3-component";
|
|
4
4
|
import { QTWaterfallItem } from "./core/QTWaterfallItem";
|
|
5
|
+
import { QTWaterfallEvent } from "./core/QTWaterfallEvent";
|
|
5
6
|
declare const _default: import("vue").DefineComponent<{
|
|
6
7
|
enablePlaceholder: {
|
|
7
8
|
type: BooleanConstructor;
|
|
@@ -26,13 +27,18 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
26
27
|
}, {
|
|
27
28
|
waterfallRef: import("vue").Ref<ESIListView | undefined>;
|
|
28
29
|
init: (data: QTWaterfall) => void;
|
|
30
|
+
getSectionList: () => Array<QTWaterfallSection>;
|
|
29
31
|
setSectionList: (sectionList: Array<QTWaterfallSection>) => void;
|
|
30
32
|
addSectionList: (sectionList: Array<QTWaterfallSection>) => void;
|
|
31
33
|
deleteSection: (position: number, count: number) => void;
|
|
32
34
|
updateSection: (sectionIndex: number, section: QTWaterfallSection) => void;
|
|
35
|
+
updateSectionList: (sectionIndex: number, count: number, sectionList: Array<QTWaterfallSection>) => void;
|
|
36
|
+
getSection: (sectionIndex: number) => QTWaterfallSection | undefined;
|
|
33
37
|
addItemList: (sectionIndex: number, itemList: Array<QTWaterfallItem>) => void;
|
|
34
38
|
deleteItem: (sectionIndex: number, position: number, count: number) => void;
|
|
35
39
|
updateItem: (sectionIndex: number, itemIndex: number, item: QTWaterfallItem) => void;
|
|
40
|
+
updateItemList: (sectionIndex: number, itemIndex: number, count: number, itemList: Array<QTWaterfallItem>) => void;
|
|
41
|
+
getItem: (sectionIndex: number, itemIndex: number) => QTWaterfallItem | undefined;
|
|
36
42
|
cachePool: {
|
|
37
43
|
name: string;
|
|
38
44
|
size: {
|
|
@@ -46,17 +52,17 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
52
|
};
|
|
47
53
|
};
|
|
48
54
|
onScroll: (e: any) => void;
|
|
49
|
-
onItemClick: (e:
|
|
50
|
-
onItemFocused: (e:
|
|
51
|
-
|
|
52
|
-
|
|
55
|
+
onItemClick: (e: QTWaterfallEvent) => void;
|
|
56
|
+
onItemFocused: (e: QTWaterfallEvent) => void;
|
|
57
|
+
onSectionBind: (e: any) => void;
|
|
58
|
+
onSectionAttached: (e: any) => void;
|
|
53
59
|
onScrollStateChanged: (e: any) => void;
|
|
54
60
|
resumePostTask: () => void;
|
|
55
61
|
pausePostTask: () => void;
|
|
56
62
|
clearPostTask: () => void;
|
|
57
63
|
destroy: () => void;
|
|
58
64
|
onListSectionItemBind: (index: number, section: QTWaterfallSection) => void;
|
|
59
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onScroll" | "onScrollStateChanged" | "onItemClick" | "onItemFocused" | "
|
|
65
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onScroll" | "onScrollStateChanged" | "onItemClick" | "onItemFocused" | "onSectionBind" | "onSectionAttached")[], "onScroll" | "onScrollStateChanged" | "onItemClick" | "onItemFocused" | "onSectionBind" | "onSectionAttached", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
60
66
|
enablePlaceholder: {
|
|
61
67
|
type: BooleanConstructor;
|
|
62
68
|
default: boolean;
|
|
@@ -82,8 +88,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
82
88
|
onOnScrollStateChanged?: ((...args: any[]) => any) | undefined;
|
|
83
89
|
onOnItemClick?: ((...args: any[]) => any) | undefined;
|
|
84
90
|
onOnItemFocused?: ((...args: any[]) => any) | undefined;
|
|
85
|
-
|
|
86
|
-
|
|
91
|
+
onOnSectionBind?: ((...args: any[]) => any) | undefined;
|
|
92
|
+
onOnSectionAttached?: ((...args: any[]) => any) | undefined;
|
|
87
93
|
}, {
|
|
88
94
|
enablePlaceholder: boolean;
|
|
89
95
|
prevLoadNumber: number;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|