@quicktvui/quicktvui3 0.0.40 → 0.0.42
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 +262 -262
- package/dist/index.js +1 -1
- package/dist/src/button/index.vue.d.ts +5 -2
- package/dist/src/tab/index.vue.d.ts +6 -1
- package/package.json +24 -25
package/dist/index.css
CHANGED
|
@@ -1,410 +1,410 @@
|
|
|
1
1
|
/* ----------------Button---------------------- */
|
|
2
|
-
.quick-button--default[data-v-46a594e4] {
|
|
3
|
-
flex-direction: row;
|
|
4
|
-
width: 280px;
|
|
5
|
-
height: 80px;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
align-items: center;
|
|
8
|
-
background-color: rgba(240, 240, 242, 0.08);
|
|
9
|
-
border-radius: 4px;
|
|
2
|
+
.quick-button--default[data-v-46a594e4] {
|
|
3
|
+
flex-direction: row;
|
|
4
|
+
width: 280px;
|
|
5
|
+
height: 80px;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
align-items: center;
|
|
8
|
+
background-color: rgba(240, 240, 242, 0.08);
|
|
9
|
+
border-radius: 4px;
|
|
10
10
|
focus-background-color: #F0F0F2;
|
|
11
11
|
}
|
|
12
|
-
.quick-button--large[data-v-46a594e4] {
|
|
13
|
-
width: 380px;
|
|
12
|
+
.quick-button--large[data-v-46a594e4] {
|
|
13
|
+
width: 380px;
|
|
14
14
|
height: 80px;
|
|
15
15
|
}
|
|
16
|
-
.quick-button--medium[data-v-46a594e4] {
|
|
17
|
-
width: 280px;
|
|
16
|
+
.quick-button--medium[data-v-46a594e4] {
|
|
17
|
+
width: 280px;
|
|
18
18
|
height: 80px;
|
|
19
19
|
}
|
|
20
|
-
.quick-button--small[data-v-46a594e4] {
|
|
21
|
-
width: 200px;
|
|
20
|
+
.quick-button--small[data-v-46a594e4] {
|
|
21
|
+
width: 200px;
|
|
22
22
|
height: 64px;
|
|
23
23
|
}
|
|
24
|
-
.quick-button--mini[data-v-46a594e4] {
|
|
25
|
-
width: 160px;
|
|
24
|
+
.quick-button--mini[data-v-46a594e4] {
|
|
25
|
+
width: 160px;
|
|
26
26
|
height: 64px;
|
|
27
|
-
}
|
|
28
|
-
|
|
27
|
+
}
|
|
28
|
+
|
|
29
29
|
/* -----------------Text--------------------- */
|
|
30
|
-
.quick-button-text--default[data-v-46a594e4] {
|
|
31
|
-
font-size: 32px;
|
|
32
|
-
color: rgba(255, 255, 255, 0.7);
|
|
33
|
-
text-align: center;
|
|
34
|
-
text-align-vertical: center;
|
|
35
|
-
focus-color: rgba(0, 0, 0, 0.9);
|
|
36
|
-
margin-right: 8px;
|
|
30
|
+
.quick-button-text--default[data-v-46a594e4] {
|
|
31
|
+
font-size: 32px;
|
|
32
|
+
color: rgba(255, 255, 255, 0.7);
|
|
33
|
+
text-align: center;
|
|
34
|
+
text-align-vertical: center;
|
|
35
|
+
focus-color: rgba(0, 0, 0, 0.9);
|
|
36
|
+
margin-right: 8px;
|
|
37
37
|
margin-left: 8px;
|
|
38
38
|
}
|
|
39
|
-
.quick-button-text--large[data-v-46a594e4] {
|
|
40
|
-
font-size: 32px;
|
|
41
|
-
color: rgba(255, 255, 255, 0.7);
|
|
42
|
-
text-align: center;
|
|
43
|
-
text-align-vertical: center;
|
|
44
|
-
focus-color: rgba(0, 0, 0, 0.9);
|
|
45
|
-
margin-right: 12px;
|
|
39
|
+
.quick-button-text--large[data-v-46a594e4] {
|
|
40
|
+
font-size: 32px;
|
|
41
|
+
color: rgba(255, 255, 255, 0.7);
|
|
42
|
+
text-align: center;
|
|
43
|
+
text-align-vertical: center;
|
|
44
|
+
focus-color: rgba(0, 0, 0, 0.9);
|
|
45
|
+
margin-right: 12px;
|
|
46
46
|
margin-left: 12px;
|
|
47
47
|
}
|
|
48
|
-
.quick-button-text--medium[data-v-46a594e4] {
|
|
49
|
-
font-size: 32px;
|
|
50
|
-
color: rgba(255, 255, 255, 0.7);
|
|
51
|
-
text-align: center;
|
|
52
|
-
text-align-vertical: center;
|
|
53
|
-
focus-color: rgba(0, 0, 0, 0.9);
|
|
54
|
-
margin-right: 8px;
|
|
48
|
+
.quick-button-text--medium[data-v-46a594e4] {
|
|
49
|
+
font-size: 32px;
|
|
50
|
+
color: rgba(255, 255, 255, 0.7);
|
|
51
|
+
text-align: center;
|
|
52
|
+
text-align-vertical: center;
|
|
53
|
+
focus-color: rgba(0, 0, 0, 0.9);
|
|
54
|
+
margin-right: 8px;
|
|
55
55
|
margin-left: 8px;
|
|
56
56
|
}
|
|
57
|
-
.quick-button-text--small[data-v-46a594e4] {
|
|
58
|
-
font-size: 32px;
|
|
59
|
-
color: rgba(255, 255, 255, 0.7);
|
|
60
|
-
text-align: center;
|
|
61
|
-
text-align-vertical: center;
|
|
62
|
-
focus-color: rgba(0, 0, 0, 0.9);
|
|
63
|
-
margin-right: 8px;
|
|
57
|
+
.quick-button-text--small[data-v-46a594e4] {
|
|
58
|
+
font-size: 32px;
|
|
59
|
+
color: rgba(255, 255, 255, 0.7);
|
|
60
|
+
text-align: center;
|
|
61
|
+
text-align-vertical: center;
|
|
62
|
+
focus-color: rgba(0, 0, 0, 0.9);
|
|
63
|
+
margin-right: 8px;
|
|
64
64
|
margin-left: 8px;
|
|
65
65
|
}
|
|
66
|
-
.quick-button-text--mini[data-v-46a594e4] {
|
|
67
|
-
font-size: 32px;
|
|
68
|
-
color: rgba(255, 255, 255, 0.7);
|
|
69
|
-
text-align: center;
|
|
70
|
-
text-align-vertical: center;
|
|
71
|
-
focus-color: rgba(0, 0, 0, 0.9);
|
|
72
|
-
margin-right: 5px;
|
|
66
|
+
.quick-button-text--mini[data-v-46a594e4] {
|
|
67
|
+
font-size: 32px;
|
|
68
|
+
color: rgba(255, 255, 255, 0.7);
|
|
69
|
+
text-align: center;
|
|
70
|
+
text-align-vertical: center;
|
|
71
|
+
focus-color: rgba(0, 0, 0, 0.9);
|
|
72
|
+
margin-right: 5px;
|
|
73
73
|
margin-left: 5px;
|
|
74
|
-
}
|
|
75
|
-
|
|
74
|
+
}
|
|
75
|
+
|
|
76
76
|
/* -------------------------------------- */
|
|
77
|
-
.is-disabled-button[data-v-46a594e4] {
|
|
78
|
-
background-color: rgba(240, 240, 242, 0.04);
|
|
77
|
+
.is-disabled-button[data-v-46a594e4] {
|
|
78
|
+
background-color: rgba(240, 240, 242, 0.04);
|
|
79
79
|
focus-background-color: #F0F0F2;
|
|
80
80
|
}
|
|
81
|
-
.is-disabled-text[data-v-46a594e4] {
|
|
82
|
-
color: rgba(255, 255, 255, 0.2);
|
|
81
|
+
.is-disabled-text[data-v-46a594e4] {
|
|
82
|
+
color: rgba(255, 255, 255, 0.2);
|
|
83
83
|
focus-color: rgba(0, 0, 0, 0.2);
|
|
84
84
|
}
|
|
85
|
-
.is-square-text[data-v-46a594e4] {
|
|
85
|
+
.is-square-text[data-v-46a594e4] {
|
|
86
86
|
font-size: 28px;
|
|
87
|
-
}
|
|
88
|
-
|
|
87
|
+
}
|
|
88
|
+
|
|
89
89
|
/* -------------------------------------- */
|
|
90
|
-
.is-circle[data-v-46a594e4] {
|
|
90
|
+
.is-circle[data-v-46a594e4] {
|
|
91
91
|
border-radius: 50%;
|
|
92
92
|
}
|
|
93
|
-
.is-round[data-v-46a594e4] {
|
|
93
|
+
.is-round[data-v-46a594e4] {
|
|
94
94
|
border-radius: 100px;
|
|
95
95
|
}
|
|
96
|
-
.is-square[data-v-46a594e4] {
|
|
97
|
-
width: 173px;
|
|
98
|
-
height: 173px;
|
|
96
|
+
.is-square[data-v-46a594e4] {
|
|
97
|
+
width: 173px;
|
|
98
|
+
height: 173px;
|
|
99
99
|
flex-direction: column;
|
|
100
|
-
}
|
|
101
|
-
|
|
100
|
+
}
|
|
101
|
+
|
|
102
102
|
/* ---------------Gradient----------------------- */
|
|
103
|
-
.button-gradient-background-css[data-v-46a594e4] {
|
|
104
|
-
background-color: transparent;
|
|
105
|
-
position: absolute;
|
|
106
|
-
left: 0;
|
|
107
|
-
right: 0;
|
|
108
|
-
top: 0;
|
|
103
|
+
.button-gradient-background-css[data-v-46a594e4] {
|
|
104
|
+
background-color: transparent;
|
|
105
|
+
position: absolute;
|
|
106
|
+
left: 0;
|
|
107
|
+
right: 0;
|
|
108
|
+
top: 0;
|
|
109
109
|
bottom: 0;
|
|
110
|
-
}
|
|
111
|
-
|
|
110
|
+
}
|
|
111
|
+
|
|
112
112
|
/* ----------------ICON---PARENT------------------- */
|
|
113
|
-
.quick-button-icon-parent[data-v-46a594e4] {
|
|
114
|
-
width: 40px;
|
|
115
|
-
height: 40px;
|
|
116
|
-
background-color: transparent;
|
|
117
|
-
display: flex;
|
|
118
|
-
align-items: center;
|
|
113
|
+
.quick-button-icon-parent[data-v-46a594e4] {
|
|
114
|
+
width: 40px;
|
|
115
|
+
height: 40px;
|
|
116
|
+
background-color: transparent;
|
|
117
|
+
display: flex;
|
|
118
|
+
align-items: center;
|
|
119
119
|
justify-content: center;
|
|
120
120
|
}
|
|
121
|
-
.quick-button-icon-parent--large[data-v-46a594e4] {
|
|
122
|
-
width: 40px;
|
|
123
|
-
height: 40px;
|
|
124
|
-
margin-right: 12px;
|
|
121
|
+
.quick-button-icon-parent--large[data-v-46a594e4] {
|
|
122
|
+
width: 40px;
|
|
123
|
+
height: 40px;
|
|
124
|
+
margin-right: 12px;
|
|
125
125
|
margin-left: 12px;
|
|
126
126
|
}
|
|
127
|
-
.quick-button-icon-parent--medium[data-v-46a594e4] {
|
|
128
|
-
width: 40px;
|
|
129
|
-
height: 40px;
|
|
130
|
-
margin-right: 8px;
|
|
127
|
+
.quick-button-icon-parent--medium[data-v-46a594e4] {
|
|
128
|
+
width: 40px;
|
|
129
|
+
height: 40px;
|
|
130
|
+
margin-right: 8px;
|
|
131
131
|
margin-left: 8px;
|
|
132
132
|
}
|
|
133
|
-
.quick-button-icon-parent--small[data-v-46a594e4] {
|
|
134
|
-
width: 32px;
|
|
135
|
-
height: 32px;
|
|
136
|
-
margin-right: 8px;
|
|
133
|
+
.quick-button-icon-parent--small[data-v-46a594e4] {
|
|
134
|
+
width: 32px;
|
|
135
|
+
height: 32px;
|
|
136
|
+
margin-right: 8px;
|
|
137
137
|
margin-left: 8px;
|
|
138
138
|
}
|
|
139
|
-
.quick-button-icon-parent--mini[data-v-46a594e4] {
|
|
140
|
-
width: 30px;
|
|
141
|
-
height: 30px;
|
|
142
|
-
margin-right: 5px;
|
|
139
|
+
.quick-button-icon-parent--mini[data-v-46a594e4] {
|
|
140
|
+
width: 30px;
|
|
141
|
+
height: 30px;
|
|
142
|
+
margin-right: 5px;
|
|
143
143
|
margin-left: 5px;
|
|
144
|
-
}
|
|
145
|
-
|
|
144
|
+
}
|
|
145
|
+
|
|
146
146
|
/* ----------------ICON---------------------- */
|
|
147
|
-
.quick-button-icon[data-v-46a594e4] {
|
|
148
|
-
width: 40px;
|
|
149
|
-
height: 40px;
|
|
147
|
+
.quick-button-icon[data-v-46a594e4] {
|
|
148
|
+
width: 40px;
|
|
149
|
+
height: 40px;
|
|
150
150
|
position: absolute;
|
|
151
151
|
}
|
|
152
|
-
.quick-button-icon--large[data-v-46a594e4] {
|
|
153
|
-
width: 40px;
|
|
152
|
+
.quick-button-icon--large[data-v-46a594e4] {
|
|
153
|
+
width: 40px;
|
|
154
154
|
height: 40px;
|
|
155
155
|
}
|
|
156
|
-
.quick-button-icon--medium[data-v-46a594e4] {
|
|
157
|
-
width: 40px;
|
|
156
|
+
.quick-button-icon--medium[data-v-46a594e4] {
|
|
157
|
+
width: 40px;
|
|
158
158
|
height: 40px;
|
|
159
159
|
}
|
|
160
|
-
.quick-button-icon--small[data-v-46a594e4] {
|
|
161
|
-
width: 32px;
|
|
160
|
+
.quick-button-icon--small[data-v-46a594e4] {
|
|
161
|
+
width: 32px;
|
|
162
162
|
height: 32px;
|
|
163
163
|
}
|
|
164
|
-
.quick-button-icon--mini[data-v-46a594e4] {
|
|
165
|
-
width: 30px;
|
|
164
|
+
.quick-button-icon--mini[data-v-46a594e4] {
|
|
165
|
+
width: 30px;
|
|
166
166
|
height: 30px;
|
|
167
167
|
}
|
|
168
|
-
.is-square-icon[data-v-46a594e4] {
|
|
169
|
-
width: 64px;
|
|
170
|
-
height: 64px;
|
|
171
|
-
margin-bottom: 16px;
|
|
168
|
+
.is-square-icon[data-v-46a594e4] {
|
|
169
|
+
width: 64px;
|
|
170
|
+
height: 64px;
|
|
171
|
+
margin-bottom: 16px;
|
|
172
172
|
margin-right: 0;
|
|
173
|
-
}
|
|
173
|
+
}
|
|
174
174
|
|
|
175
175
|
|
|
176
|
-
.absoluteFocusTitleRoot[data-v-703673b8] {
|
|
177
|
-
position: absolute;
|
|
178
|
-
z-index: 999;
|
|
176
|
+
.absoluteFocusTitleRoot[data-v-703673b8] {
|
|
177
|
+
position: absolute;
|
|
178
|
+
z-index: 999;
|
|
179
179
|
background-color: transparent;
|
|
180
180
|
}
|
|
181
|
-
.absoluteFocusMainBgRoot[data-v-703673b8] {
|
|
182
|
-
border-bottom-left-radius: 8px;
|
|
183
|
-
border-bottom-right-radius: 8px;
|
|
181
|
+
.absoluteFocusMainBgRoot[data-v-703673b8] {
|
|
182
|
+
border-bottom-left-radius: 8px;
|
|
183
|
+
border-bottom-right-radius: 8px;
|
|
184
184
|
background-color: white;
|
|
185
|
-
}
|
|
185
|
+
}
|
|
186
186
|
|
|
187
187
|
|
|
188
|
-
.cornerRoot[data-v-4b767ea2] {
|
|
188
|
+
.cornerRoot[data-v-4b767ea2] {
|
|
189
189
|
flex-direction: row-reverse;
|
|
190
|
-
}
|
|
190
|
+
}
|
|
191
191
|
|
|
192
192
|
|
|
193
|
-
.qt-ui-poster-root-css[data-v-3c4765e9] {
|
|
194
|
-
position: absolute;
|
|
195
|
-
background-color: transparent;
|
|
196
|
-
focus-scale: 1.1;
|
|
193
|
+
.qt-ui-poster-root-css[data-v-3c4765e9] {
|
|
194
|
+
position: absolute;
|
|
195
|
+
background-color: transparent;
|
|
196
|
+
focus-scale: 1.1;
|
|
197
197
|
overflow: hidden;
|
|
198
198
|
}
|
|
199
|
-
.qt-ui-poster-img-css[data-v-3c4765e9] {
|
|
200
|
-
background-color: rgba(255, 255, 255, 0.1);
|
|
201
|
-
z-index: 1;
|
|
202
|
-
position: absolute;
|
|
203
|
-
focus-border-color: white;
|
|
204
|
-
focus-border-style: solid;
|
|
199
|
+
.qt-ui-poster-img-css[data-v-3c4765e9] {
|
|
200
|
+
background-color: rgba(255, 255, 255, 0.1);
|
|
201
|
+
z-index: 1;
|
|
202
|
+
position: absolute;
|
|
203
|
+
focus-border-color: white;
|
|
204
|
+
focus-border-style: solid;
|
|
205
205
|
border-radius: 8px;
|
|
206
206
|
}
|
|
207
|
-
.qt-ui-poster-title-css[data-v-3c4765e9] {
|
|
208
|
-
padding-left: 16px;
|
|
209
|
-
padding-top: 15px;
|
|
207
|
+
.qt-ui-poster-title-css[data-v-3c4765e9] {
|
|
208
|
+
padding-left: 16px;
|
|
209
|
+
padding-top: 15px;
|
|
210
210
|
background-color: transparent;
|
|
211
211
|
}
|
|
212
|
-
.qt-ui-ripple-img-css[data-v-3c4765e9] {
|
|
213
|
-
width: 60px;
|
|
214
|
-
height: 60px;
|
|
215
|
-
background-color: transparent;
|
|
216
|
-
position: absolute;
|
|
217
|
-
z-index: 1001;
|
|
218
|
-
right: 20px;
|
|
212
|
+
.qt-ui-ripple-img-css[data-v-3c4765e9] {
|
|
213
|
+
width: 60px;
|
|
214
|
+
height: 60px;
|
|
215
|
+
background-color: transparent;
|
|
216
|
+
position: absolute;
|
|
217
|
+
z-index: 1001;
|
|
218
|
+
right: 20px;
|
|
219
219
|
bottom: 20px;
|
|
220
220
|
}
|
|
221
|
-
.qt-ui-ripple-view-css[data-v-3c4765e9] {
|
|
222
|
-
width: 100px;
|
|
223
|
-
height: 100px;
|
|
224
|
-
z-index: 1000;
|
|
225
|
-
background-color: transparent;
|
|
221
|
+
.qt-ui-ripple-view-css[data-v-3c4765e9] {
|
|
222
|
+
width: 100px;
|
|
223
|
+
height: 100px;
|
|
224
|
+
z-index: 1000;
|
|
225
|
+
background-color: transparent;
|
|
226
226
|
position: absolute;
|
|
227
227
|
}
|
|
228
|
-
.qt-ui-poster-ripple-view-root-css[data-v-3c4765e9] {
|
|
229
|
-
width: 100px;
|
|
230
|
-
height: 100px;
|
|
231
|
-
right: 0;
|
|
232
|
-
bottom: 0;
|
|
233
|
-
margin-right: -12px;
|
|
234
|
-
z-index: 1000;
|
|
235
|
-
background-color: transparent;
|
|
228
|
+
.qt-ui-poster-ripple-view-root-css[data-v-3c4765e9] {
|
|
229
|
+
width: 100px;
|
|
230
|
+
height: 100px;
|
|
231
|
+
right: 0;
|
|
232
|
+
bottom: 0;
|
|
233
|
+
margin-right: -12px;
|
|
234
|
+
z-index: 1000;
|
|
235
|
+
background-color: transparent;
|
|
236
236
|
position: absolute;
|
|
237
|
-
}
|
|
238
|
-
|
|
237
|
+
}
|
|
239
238
|
|
|
240
239
|
|
|
241
|
-
|
|
242
|
-
|
|
240
|
+
|
|
241
|
+
.qt-ui-nav-bar-root-horizontal {
|
|
242
|
+
height: 72px;
|
|
243
243
|
background-color: transparent;
|
|
244
244
|
}
|
|
245
|
-
.qt-ui-nav-bar-root-vertical {
|
|
245
|
+
.qt-ui-nav-bar-root-vertical {
|
|
246
246
|
background-color: transparent;
|
|
247
247
|
}
|
|
248
|
-
.qt-ui-nav-bar-item-css {
|
|
249
|
-
padding-left: 40px;
|
|
250
|
-
padding-right: 40px;
|
|
251
|
-
height: 70px;
|
|
252
|
-
justify-content: center;
|
|
253
|
-
flex-direction: column;
|
|
254
|
-
display: flex;
|
|
255
|
-
align-items: center;
|
|
256
|
-
border-radius: 35px;
|
|
248
|
+
.qt-ui-nav-bar-item-css {
|
|
249
|
+
padding-left: 40px;
|
|
250
|
+
padding-right: 40px;
|
|
251
|
+
height: 70px;
|
|
252
|
+
justify-content: center;
|
|
253
|
+
flex-direction: column;
|
|
254
|
+
display: flex;
|
|
255
|
+
align-items: center;
|
|
256
|
+
border-radius: 35px;
|
|
257
257
|
background-color: transparent;
|
|
258
258
|
}
|
|
259
|
-
.qt-ui-nav-bar-item-text-css {
|
|
260
|
-
height: 60px;
|
|
261
|
-
color: rgba(255, 255, 255, 0.5);
|
|
262
|
-
focus-color: black;
|
|
263
|
-
background-color: transparent;
|
|
264
|
-
select-color: white;
|
|
259
|
+
.qt-ui-nav-bar-item-text-css {
|
|
260
|
+
height: 60px;
|
|
261
|
+
color: rgba(255, 255, 255, 0.5);
|
|
262
|
+
focus-color: black;
|
|
263
|
+
background-color: transparent;
|
|
264
|
+
select-color: white;
|
|
265
265
|
align-self: center;
|
|
266
|
-
}
|
|
267
|
-
|
|
266
|
+
}
|
|
267
|
+
|
|
268
268
|
|
|
269
269
|
|
|
270
|
-
.qt-ui-waterfall-card-item[data-v-599898aa] {
|
|
270
|
+
.qt-ui-waterfall-card-item[data-v-599898aa] {
|
|
271
271
|
background-color: transparent;
|
|
272
|
-
}
|
|
272
|
+
}
|
|
273
273
|
|
|
274
274
|
|
|
275
|
-
.standard-section-css[data-v-227e921e] {
|
|
276
|
-
display: flex;
|
|
277
|
-
background-color: transparent;
|
|
278
|
-
flex-direction: column;
|
|
279
|
-
align-items: flex-start;
|
|
275
|
+
.standard-section-css[data-v-227e921e] {
|
|
276
|
+
display: flex;
|
|
277
|
+
background-color: transparent;
|
|
278
|
+
flex-direction: column;
|
|
279
|
+
align-items: flex-start;
|
|
280
280
|
justify-content: flex-start;
|
|
281
281
|
}
|
|
282
|
-
.standard-section-title-text-css[data-v-227e921e] {
|
|
283
|
-
width: 1920px;
|
|
284
|
-
height: 60px;
|
|
285
|
-
color: #ffffff;
|
|
282
|
+
.standard-section-title-text-css[data-v-227e921e] {
|
|
283
|
+
width: 1920px;
|
|
284
|
+
height: 60px;
|
|
285
|
+
color: #ffffff;
|
|
286
286
|
background-color: transparent;
|
|
287
|
-
}
|
|
287
|
+
}
|
|
288
288
|
|
|
289
289
|
|
|
290
|
-
.qt-ui-section-tab-list-root[data-v-88e60816] {
|
|
291
|
-
background-color: transparent;
|
|
290
|
+
.qt-ui-section-tab-list-root[data-v-88e60816] {
|
|
291
|
+
background-color: transparent;
|
|
292
292
|
margin-left: 0px;
|
|
293
293
|
}
|
|
294
|
-
.qt-ui-section-tab-list-item-text[data-v-88e60816] {
|
|
295
|
-
focusColor: #000000;
|
|
296
|
-
selectColor: #ff0000;
|
|
294
|
+
.qt-ui-section-tab-list-item-text[data-v-88e60816] {
|
|
295
|
+
focusColor: #000000;
|
|
296
|
+
selectColor: #ff0000;
|
|
297
297
|
color: #ffffff80;
|
|
298
298
|
}
|
|
299
|
-
.qt-ui-section-tab-list-item[data-v-88e60816] {
|
|
300
|
-
border-radius: 99px;
|
|
301
|
-
padding-top: 5px;
|
|
302
|
-
padding-bottom: 8px;
|
|
303
|
-
background-color: transparent;
|
|
299
|
+
.qt-ui-section-tab-list-item[data-v-88e60816] {
|
|
300
|
+
border-radius: 99px;
|
|
301
|
+
padding-top: 5px;
|
|
302
|
+
padding-bottom: 8px;
|
|
303
|
+
background-color: transparent;
|
|
304
304
|
focus-background-color: #F5F5F5;
|
|
305
305
|
}
|
|
306
306
|
.tab-list-section-root-css[data-v-88e60816] {
|
|
307
307
|
}
|
|
308
308
|
.tab-list-section-list-css[data-v-88e60816] {
|
|
309
309
|
}
|
|
310
|
-
.tab-list-section-title-text-css[data-v-88e60816] {
|
|
311
|
-
width: 1920px;
|
|
312
|
-
height: 60px;
|
|
313
|
-
color: #ffffff;
|
|
310
|
+
.tab-list-section-title-text-css[data-v-88e60816] {
|
|
311
|
+
width: 1920px;
|
|
312
|
+
height: 60px;
|
|
313
|
+
color: #ffffff;
|
|
314
314
|
background-color: transparent;
|
|
315
|
-
}
|
|
316
|
-
|
|
315
|
+
}
|
|
317
316
|
|
|
318
317
|
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
318
|
+
|
|
319
|
+
.loading-section-css[data-v-48609f24] {
|
|
320
|
+
width: 1920px;
|
|
321
|
+
height: 1080px;
|
|
322
322
|
background-color: transparent;
|
|
323
323
|
}
|
|
324
|
-
.loading-section-loading-css[data-v-48609f24] {
|
|
325
|
-
width: 100px;
|
|
326
|
-
height: 100px;
|
|
327
|
-
align-self: center;
|
|
324
|
+
.loading-section-loading-css[data-v-48609f24] {
|
|
325
|
+
width: 100px;
|
|
326
|
+
height: 100px;
|
|
327
|
+
align-self: center;
|
|
328
328
|
margin-top: 550px
|
|
329
|
-
}
|
|
330
|
-
|
|
329
|
+
}
|
|
330
|
+
|
|
331
331
|
|
|
332
332
|
|
|
333
|
-
.qt-waterfall-end-section-css[data-v-70b82c43] {
|
|
334
|
-
background-color: transparent;
|
|
335
|
-
align-items: center;
|
|
336
|
-
display: flex;
|
|
337
|
-
flex-direction: column;
|
|
333
|
+
.qt-waterfall-end-section-css[data-v-70b82c43] {
|
|
334
|
+
background-color: transparent;
|
|
335
|
+
align-items: center;
|
|
336
|
+
display: flex;
|
|
337
|
+
flex-direction: column;
|
|
338
338
|
justify-content: center;
|
|
339
339
|
}
|
|
340
|
-
.qt-waterfall-end-section-text-css[data-v-70b82c43] {
|
|
341
|
-
width: 500px;
|
|
342
|
-
height: 50px;
|
|
343
|
-
color: rgba(255, 255, 255, .5);
|
|
344
|
-
align-self: center;
|
|
340
|
+
.qt-waterfall-end-section-text-css[data-v-70b82c43] {
|
|
341
|
+
width: 500px;
|
|
342
|
+
height: 50px;
|
|
343
|
+
color: rgba(255, 255, 255, .5);
|
|
344
|
+
align-self: center;
|
|
345
345
|
background-color: transparent;
|
|
346
|
-
}
|
|
346
|
+
}
|
|
347
347
|
|
|
348
348
|
|
|
349
|
-
.section-title-css[data-v-20428d40] {
|
|
350
|
-
width: 1920px;
|
|
351
|
-
height: 60px;
|
|
352
|
-
display: flex;
|
|
353
|
-
flex-direction: column;
|
|
349
|
+
.section-title-css[data-v-20428d40] {
|
|
350
|
+
width: 1920px;
|
|
351
|
+
height: 60px;
|
|
352
|
+
display: flex;
|
|
353
|
+
flex-direction: column;
|
|
354
354
|
background-color: transparent;
|
|
355
355
|
}
|
|
356
|
-
.section-title-text-css[data-v-20428d40] {
|
|
357
|
-
position: absolute;
|
|
358
|
-
width: 1920px;
|
|
359
|
-
height: 60px;
|
|
360
|
-
margin-left: 90px;
|
|
356
|
+
.section-title-text-css[data-v-20428d40] {
|
|
357
|
+
position: absolute;
|
|
358
|
+
width: 1920px;
|
|
359
|
+
height: 60px;
|
|
360
|
+
margin-left: 90px;
|
|
361
361
|
color: #ffffff;
|
|
362
|
-
}
|
|
363
|
-
|
|
362
|
+
}
|
|
363
|
+
|
|
364
364
|
|
|
365
365
|
|
|
366
|
-
.qt-ui-waterfall-blank-section[data-v-eeab4d88] {
|
|
366
|
+
.qt-ui-waterfall-blank-section[data-v-eeab4d88] {
|
|
367
367
|
background-color: transparent;
|
|
368
|
-
}
|
|
368
|
+
}
|
|
369
369
|
|
|
370
370
|
|
|
371
|
-
.qt-ui-waterfall-card-section-css[data-v-43a44788] {
|
|
371
|
+
.qt-ui-waterfall-card-section-css[data-v-43a44788] {
|
|
372
372
|
background-color: transparent;
|
|
373
373
|
}
|
|
374
|
-
.qt-ui-waterfall-card-section[data-v-43a44788] {
|
|
374
|
+
.qt-ui-waterfall-card-section[data-v-43a44788] {
|
|
375
375
|
background-color: transparent;
|
|
376
376
|
}
|
|
377
|
-
.qt-ui-waterfall-card-section-title-css[data-v-43a44788] {
|
|
378
|
-
width: 1920px;
|
|
379
|
-
height: 60px;
|
|
380
|
-
color: #ffffff;
|
|
377
|
+
.qt-ui-waterfall-card-section-title-css[data-v-43a44788] {
|
|
378
|
+
width: 1920px;
|
|
379
|
+
height: 60px;
|
|
380
|
+
color: #ffffff;
|
|
381
381
|
background-color: transparent;
|
|
382
|
-
}
|
|
383
|
-
|
|
382
|
+
}
|
|
383
|
+
|
|
384
384
|
|
|
385
385
|
|
|
386
|
-
.qt-ui-waterfall-vue-section[data-v-f8447724] {
|
|
386
|
+
.qt-ui-waterfall-vue-section[data-v-f8447724] {
|
|
387
387
|
background-color: transparent;
|
|
388
|
-
}
|
|
388
|
+
}
|
|
389
389
|
|
|
390
390
|
|
|
391
|
-
.qt-waterfall-root-css[data-v-2e65df68] {
|
|
391
|
+
.qt-waterfall-root-css[data-v-2e65df68] {
|
|
392
392
|
background-color: transparent;
|
|
393
|
-
}
|
|
394
|
-
|
|
393
|
+
}
|
|
395
394
|
|
|
396
395
|
|
|
397
|
-
|
|
396
|
+
|
|
397
|
+
.tabs-root-css {
|
|
398
398
|
background-color: transparent;
|
|
399
|
-
}
|
|
400
|
-
|
|
401
|
-
|
|
399
|
+
}
|
|
400
|
+
|
|
401
|
+
|
|
402
402
|
|
|
403
403
|
|
|
404
404
|
.content_list_view[data-v-cbd7c454]{width: 1920px;height: 200px;background-color: transparent;}
|
|
405
405
|
.clv_item[data-v-cbd7c454]{width: 316px;height: 178px;background-color: transparent;border-radius: 8px;}
|
|
406
406
|
.coverV[data-v-cbd7c454]{width: 316px;height: 178px;background-color: rgba(255,255,255,0.1);border-radius: 8px;}
|
|
407
|
-
.clv_item_text_box[data-v-cbd7c454]{width: 316px;height: 60px;background-color: rgba(255,255,255,0.1);
|
|
407
|
+
.clv_item_text_box[data-v-cbd7c454]{width: 316px;height: 60px;background-color: rgba(255,255,255,0.1);
|
|
408
408
|
position: absolute;left: 0;top: 118px;flex-direction: row;justify-content: flex-start;align-items: center;}
|
|
409
409
|
.titMask[data-v-cbd7c454]{position: absolute;width: 316px;height: 60px;top: 0;left: 0;}
|
|
410
410
|
.icon[data-v-cbd7c454]{width: 28px;height: 30px;background-color: rgba(255,255,255,0.1);margin-left: 16px;}
|
|
@@ -415,4 +415,4 @@
|
|
|
415
415
|
.nav_item_text[data-v-cbd7c454]{width: 168px;height: 80px;position: absolute;border-radius: 40px;background-color: transparent;}
|
|
416
416
|
.text[data-v-cbd7c454]{width: 168px;height: 80px;color: #fff;position: absolute;}
|
|
417
417
|
.text_selected[data-v-cbd7c454]{width: 168px;height: 80px;color:#0D71FF;position: absolute;}
|
|
418
|
-
.line[data-v-cbd7c454]{background-color:#0D71FF; width: 34px;height: 6px;position: absolute;left: 67px;top: 74px;}
|
|
418
|
+
.line[data-v-cbd7c454]{background-color:#0D71FF; width: 34px;height: 6px;position: absolute;left: 67px;top: 74px;}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{Native as e}from"@extscreen/es3-vue";import{defineComponent as t,ref as n,resolveComponent as o,openBlock as a,createElementBlock as i,normalizeStyle as s,normalizeClass as l,createCommentVNode as c,withDirectives as r,vShow as u,createBlock as d,toDisplayString as p,renderSlot as f,watchEffect as g,onBeforeUnmount as m,withCtx as h,Fragment as v,createVNode as _,createElementVNode as y,pushScopeId as b,popScopeId as T,reactive as S,watch as I,h as x}from"vue";import{useESToast as E,useES as F,useESLog as P,ESLogLevel as C}from"@extscreen/es3-core";var L=t({name:"qt-button",props:{size:{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},disabled:Boolean,circle:Boolean,round:Boolean,square:Boolean,buttonStyle:Object,textStyle:Object,iconStyle:Object,focusIconStyle:Object,iconParentStyle:Object},setup(t,o){const a=n(),i=n(!1);return{focused:i,requestFocus:function(){e.callUIFunction(a.value,"requestFocus",[])},requestFocusDirectly:function(){e.callUIFunction(a.value,"requestFocusDirectly",[])},onFocus:function(e){i.value=e.isFocused,o.emit("focus",e.isFocused)},onClick:function(e){o.emit("click")}}}});const k=["focusable","enableFocusBorder","focusScale"],D=["gradientBackground"],N=["gradientBackground"],w=["gradientBackground"],O=["src"],A=["src"];function R(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})}))}L.render=function(e,t,n,g,m,h){const v=o("text-view");return a(),i("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:s(e.buttonStyle),class:l(["quick-button--default",e.size?"quick-button--"+e.size:"",{"is-disabled-button":e.disabled,"is-circle":e.circle,"is-round":e.round,"is-square":e.square}])},[c(" gradient "),e.gradientFocusBackground?(a(),i("div",{key:0,class:"button-gradient-background-css",gradientBackground:e.gradientFocusBackground,focusable:!1,showOnState:"focused"},null,8,D)):c("v-if",!0),e.gradientSelectedBackground?(a(),i("div",{key:1,class:"button-gradient-background-css",gradientBackground:e.gradientSelectedBackground,focusable:!1,showOnState:"selected"},null,8,N)):c("v-if",!0),e.gradientBackground?(a(),i("div",{key:2,class:"button-gradient-background-css",gradientBackground:e.gradientBackground,focusable:!1,showOnState:"normal"},null,8,w)):c("v-if",!0),c(" -----------------------------icon--------------------------------- "),!e.icon&&!e.focusIcon||e.$slots.default?c("v-if",!0):(a(),i("div",{key:3,duplicateParentState:!0,style:s(e.iconParentStyle),flexStyle:"${iconParentStyle}",class:l(["quick-button-icon-parent",e.size?"quick-button-icon--parent"+e.size:""])},[e.icon&&!e.$slots.default?r((a(),i("img",{key:0,style:s(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,O)),[[u,!e.focused]]):c("v-if",!0),e.focusIcon&&!e.$slots.default?r((a(),i("img",{key:1,style:s(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,A)),[[u,e.focused]]):c("v-if",!0)],6)),c(" ------------------------------------------------------------------- "),c(" text "),e.enableFlexStyle?(a(),d(v,{key:4,style:s(e.textStyle),duplicateParentState:"",class:l([e.size?"quick-button-text--"+e.size:"",{"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(),i("span",{key:5,style:s(e.textStyle),duplicateParentState:"",class:l([e.size?"quick-button-text--"+e.size:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1},p(e.text),7)):c("v-if",!0),f(e.$slots,"default")],46,k)},L.__scopeId="data-v-46a594e4",L.__file="src/button/index.vue";const B=e=>e.map(V),$=e=>{const t=Object.keys(e),n={};return t.forEach((t=>{n[t]=V(e[t])})),n};function V(e){return e?"object"!=typeof e?e:Array.isArray(e)?B(e):$(e):e}var z=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:()=>[]}},emits:["item-click","scroll","item-unbind","scroll-state-changed","item-bind","item-focused"],setup(e,t){E(),F();const o=n();let a=n(2.5),i=[],s=[],l=[],c=[],r="",u=-1,d=!1,p=-1,f=-1,h=-1,v=-1;g((()=>{e.openPage&&(u=1,d=!1,e.loadMore(u))}));const _=t=>{0==i.length&&(i=V(t),s=t,a.value<2.2?(y(),e.openPage&&e.pageSize&&c.length>=e.pageSize/e.spanCount?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):e.openPage&&e.pageSize&&i.length>=e.pageSize?o.value.setListData(i.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(i),e.defaultFocus>-1&&(h&&clearTimeout(h),h=setTimeout((()=>{T(e.defaultFocus),S(e.defaultFocus)}),800)));let n={get(t,n,s){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(l.push(n),-1!=l.indexOf("push"))r="push";else{if(-1!=l.indexOf("splice"))return r="splice",function(...e){if(t.splice(...e),a.value<2.2)if(y(),1==e.length||2==e.length)o.value.setListData(c);else if(0==e[1])o.value.setListData(c);else{let t=-1,n=0,a=0;for(let o=0;o<c.length;o++){const i=c[o];if("1003"==i.type)t++,e[0]==t&&(n=o),e[0]+e[1]-1==t&&(a=o);else for(let s=0;s<i.list.length;s++)i.list[s],t++,e[0]==t&&(n=o),e[0]+e[1]-1==t&&(a=o)}o.value.updateItemList(n,a-n+1,c.slice(n,a+1))}else 1==e.length?o.value.deleteItem(Number(e[0]),i.length-e[0]):2==e.length?o.value.deleteItem(Number(e[0]),e[1]):e.length>2&&(0==e[1]?a.value>2.29&&x(e[0],e.slice(2)):o.value.updateItemList(e[0],e[1],e.slice(2)));return i.splice(e[0],...e.slice(1)),r="",l=[],Reflect.get(t,n,s)};if(-1!=l.indexOf("pop"))return r="pop",function(){return t.pop(),a.value<2.2?(c[c.length-1].list.length<1&&c.pop(),c[c.length-1].list.pop(),o.value.updateItem(Number(c.length-1),c[c.length-1])):o.value.deleteItem(Number(i.length-1),1),i.pop(),r="",l=[],Reflect.get(t,n,s)};if(-1!=l.indexOf("forEach"))return r="forEach",function(u){return t.forEach((e=>{u(e)})),i=[],i=V(t),a.value<2.2?(y(),e.openPage&&e.pageSize&&c.length>=e.pageSize&&!d?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):e.openPage&&e.pageSize&&i.length>=e.pageSize&&!d?o.value.setListData(i.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(i),r="",l=[],Reflect.get(t,n,s)};if(-1!=l.indexOf("concat"))return r="concat",function(p){if("[object Array]"===Object.prototype.toString.call(p))if(t=t.concat(p),i=i.concat(p),a.value<2.2){v&&clearTimeout(v);let t=c.length,n=c.slice(c.length-1)[0];y();let a=c.slice(t);e.openPage&&!d?e.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<e.spanCount?(a=c.slice(t-1),v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),2)}),300)):v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):v=setTimeout((()=>{o.value.addListData(a.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):o.value.setListData(c)}else v=e.openPage&&!d?e.pageSize||2!=u?setTimeout((()=>{o.value.addListDataWithParams(p.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{o.value.addListData(p.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{o.value.addListData(p)}),300);else console.log("concat:参数类型必须为数组");return r="",l=[],Reflect.get(t,n,s)};r=""}const p=Reflect.get(t,n,s);return b(p)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?_(p):(-1==l.indexOf("push")&&(l=[]),p)},set(t,n,p,f){const g=t[n],m=Reflect.set(t,n,p,f);if((!b(g)&&g!==p||b(g))&&"push"!=r)if(l.push(n),i[l[0]]=s[l[0]],a.value<2.2){let e=l[0],t=-1;for(let n=0;n<c.length;n++){const a=c[n];if("1003"==a.type)t++,t==e&&(c[n]=i[l[0]],o.value.updateItem(Number(n),c[n]));else for(let s=0;s<a.list.length;s++)if(a.list[s],t++,t==e){c[n].list[s]=i[l[0]];let e=c[n].list[s];e.decoration&&(e.decoration.top&&(e.decoration.top=0),e.decoration.bottom&&(e.decoration.bottom=0)),o.value.updateItem(Number(n),c[n])}}}else o.value.updateItem(Number(l[0]),s[l[0]]);if(n&&"push"==r&&g!==p)l.push(n),i.push(p);else{if("push"==r&&l.length>1)if(a.value<2.2){v&&clearTimeout(v);let t=c.length,n=c.slice(c.length-1)[0];y();let a=c.slice(t);e.openPage&&!d?e.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<e.spanCount?(a=c.slice(t-1),v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),2)}),300)):v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):v=setTimeout((()=>{o.value.addListData(a.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):o.value.setListData(c)}else{let t=i.slice(l[1]);v&&clearTimeout(v),v=e.openPage&&!d?e.pageSize||2!=u?setTimeout((()=>{o.value.addListDataWithParams(t.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{o.value.addListData(t.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{o.value.addListData(t)}),300)}r="",l=[]}return m}};return new Proxy(t,n)},y=()=>{let t=V(i);c=[];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)c.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 s={type:1,decoration:i,name:"name"+n,list:a.list.slice(t,t+e.spanCount)};n++,c.push(s)}}},b=e=>null!==e&&"object"==typeof e,T=e=>{if(a.value<2.2){let t=-1;for(let n=0;n<c.length;n++){const a=c[n];if("1003"==a.type)t++,t==e&&o.value.scrollToPosition(n);else for(let i=0;i<a.list.length;i++)a.list[i],t++,t==e&&o.value.scrollToPosition(n)}}else o.value.scrollToPosition(e)},S=e=>{if(a.value<2.2){let t=-1,n=0,a=0;for(let o=0;o<c.length;o++){const i=c[o];if("1003"==i.type)t++;else for(let s=0;s<i.list.length;s++)i.list[s],t++,e==t&&(n=o,a=s)}o.value.dispatchItemFunction(n,"tv_list_inner","requestChildFocus",[a])}else o.value.requestFocus(e)},I=(e,t)=>{if(a.value<2.2){let t=-1,n=0,a=0;for(let o=0;o<c.length;o++){const i=c[o];if("1003"==i.type)t++;else for(let s=0;s<i.list.length;s++)i.list[s],t++,e==t&&(n=o,a=s)}o.value.dispatchItemFunction(n,"tv_list_inner","setSelectChildPosition",[a])}else o.value.setSelectPosition(e,t)},x=(e,t)=>{o.value.addItem(e,t)},P=()=>{o.value.destroy()};return m((()=>{i=[],c=[],s.length=0,d=!1,l=[],u=1,d=!1,r="",P(),p&&clearTimeout(p),v&&clearTimeout(v),f&&clearTimeout(f),h&&clearTimeout(h)})),{tv_list:o,apkVersion:a,init:_,onItemClick:e=>{if(a.value<2.2){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const i=c[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=>{a.value<2.2?d||n.position!=c.length-1-e.preloadNo/e.spanCount||(u++,e.loadMore(u)):d||n.position!=i.length-1-e.preloadNo||(u++,e.loadMore(u)),t.emit("item-bind",n)},onItemFocused:e=>{if(a.value<2.2){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const i=c[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=>{f&&clearTimeout(f),f=setTimeout((()=>{a.value<2.2?e.pageSize?e.pageSize/e.spanCount<=c.length&&o.value.deleteItem(c.length,1):u>2&&o.value.deleteItem(c.length,1):e.pageSize?e.pageSize<=i.length&&o.value.deleteItem(i.length,1):u>2&&o.value.deleteItem(i.length,1)}),400),d=!0},scrollToTop:()=>{o.value.scrollToTop()},clearFocus:()=>{o.value.clearFocus()},blockRootFocus:()=>{o.value.blockRootFocus()},unBlockRootFocus:()=>{o.value.unBlockRootFocus()},setDisplay:e=>{o.value.setDisplay(e)},scrollToPosition:T,scrollToIndex:(e,t,n)=>{if(a.value<2.2){let a=-1;for(let i=0;i<c.length;i++){const s=c[i];if("1003"==s.type)a++,a==e&&o.value.scrollToIndex(0,i,t,n);else for(let l=0;l<s.list.length;l++)s.list[l],a++,a==e&&o.value.scrollToIndex(0,i,t,n)}}else o.value.scrollToIndex(0,e,t,n)},setItemFocused:S,scrollToFocused:e=>{T(e),S(e)},setItemSelected:I,scrollToSelected:(e,t)=>{T(e),I(e,t)},updateItemProps:(e,t,n)=>{o.value.updateItemProps(e,t,n)},setInitPosition:e=>{o.value.setInitPosition(e)},setListData:e=>{p&&clearTimeout(p),p=setTimeout((()=>{o.value.setListData(e)}),100)},insertItem:x,clearPostTask:()=>{o.value.clearPostTask()},destroy:P}}});function U(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]}z.render=function(e,t,n,l,c,r){const u=o("tv-list");return a(),d(u,{class:"tv_list",ref:"tv_list",name:"tv_list",spanCount:e.apkVersion<2.2?"":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:h((()=>[e.apkVersion<2.2?(a(),i(v,{key:0},[f(e.$slots,"header"),_(u,{class:"tv_list_inner",ref:"${name}",list:"${list}",name:"tv_list_inner",type:"1",clipChildren:!1,focusable:!1,horizontal:"",style:s({width:e.areaWidth+"px"}),endHintEnabled:!1,blockFocusDirections:e.blockFocusDirections},{default:h((()=>[f(e.$slots,"default")])),_:3},8,["style","blockFocusDirections"]),f(e.$slots,"loading")],64)):(a(),i(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"])},z.__file="src/grid-view/index.vue";const q="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const W=()=>{},M=/^on[^a-z]/,G=e=>M.test(e),Q=Object.assign,j=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Y=Object.prototype.hasOwnProperty,H=(e,t)=>Y.call(e,t),K=Array.isArray,X=e=>"[object Map]"===ie(e),J=e=>"[object Set]"===ie(e),Z=e=>"function"==typeof e,ee=e=>"string"==typeof e,te=e=>"symbol"==typeof e,ne=e=>null!==e&&"object"==typeof e,oe=e=>ne(e)&&Z(e.then)&&Z(e.catch),ae=Object.prototype.toString,ie=e=>ae.call(e),se=e=>ie(e).slice(8,-1),le=e=>"[object Object]"===ie(e),ce=e=>ee(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,re=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),ue=(e,t)=>!Object.is(e,t),de=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let pe;const fe=()=>pe||(pe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function ge(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],a=ee(o)?_e(o):ge(o);if(a)for(const e in a)t[e]=a[e]}return t}return ee(e)||ne(e)?e:void 0}const me=/;(?![^(]*\))/g,he=/:([^]+)/,ve=/\/\*[^]*?\*\//g;function _e(e){const t={};return e.replace(ve,"").split(me).forEach((e=>{if(e){const n=e.split(he);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ye(e){let t="";if(ee(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const o=ye(e[n]);o&&(t+=o+" ")}else if(ne(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function be(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Te;const Se=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ie=e=>(e.w&Pe)>0,xe=e=>(e.n&Pe)>0,Ee=new WeakMap;let Fe=0,Pe=1;const Ce=30;let Le;const ke=Symbol("production"!==process.env.NODE_ENV?"iterate":""),De=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");class Ne{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=Te){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=Le,t=Oe;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Le,Le=this,Oe=!0,Pe=1<<++Fe,Fe<=Ce?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Pe})(this):we(this),this.fn()}finally{Fe<=Ce&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const a=t[o];Ie(a)&&!xe(a)?a.delete(e):t[n++]=a,a.w&=~Pe,a.n&=~Pe}t.length=n}})(this),Pe=1<<--Fe,Le=this.parent,Oe=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Le===this?this.deferStop=!0:this.active&&(we(this),this.onStop&&this.onStop(),this.active=!1)}}function we(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Oe=!0;const Ae=[];function Re(){Ae.push(Oe),Oe=!1}function Be(){const e=Ae.pop();Oe=void 0===e||e}function $e(e,t,n){if(Oe&&Le){let o=Ee.get(e);o||Ee.set(e,o=new Map);let a=o.get(n);a||o.set(n,a=Se());!function(e,t){let n=!1;Fe<=Ce?xe(e)||(e.n|=Pe,n=!Ie(e)):n=!e.has(Le);n&&(e.add(Le),Le.deps.push(e),"production"!==process.env.NODE_ENV&&Le.onTrack&&Le.onTrack(Q({effect:Le},t)))}(a,"production"!==process.env.NODE_ENV?{effect:Le,target:e,type:t,key:n}:void 0)}}function Ve(e,t,n,o,a,i){const s=Ee.get(e);if(!s)return;let l=[];if("clear"===t)l=[...s.values()];else if("length"===n&&K(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||n>=e)&&l.push(t)}))}else switch(void 0!==n&&l.push(s.get(n)),t){case"add":K(e)?ce(n)&&l.push(s.get("length")):(l.push(s.get(ke)),X(e)&&l.push(s.get(De)));break;case"delete":K(e)||(l.push(s.get(ke)),X(e)&&l.push(s.get(De)));break;case"set":X(e)&&l.push(s.get(ke))}const c="production"!==process.env.NODE_ENV?{target:e,type:t,key:n,newValue:o,oldValue:a,oldTarget:i}:void 0;if(1===l.length)l[0]&&("production"!==process.env.NODE_ENV?ze(l[0],c):ze(l[0]));else{const e=[];for(const t of l)t&&e.push(...t);"production"!==process.env.NODE_ENV?ze(Se(e),c):ze(Se(e))}}function ze(e,t){const n=K(e)?e:[...e];for(const e of n)e.computed&&Ue(e,t);for(const e of n)e.computed||Ue(e,t)}function Ue(e,t){(e!==Le||e.allowRecurse)&&("production"!==process.env.NODE_ENV&&e.onTrigger&&e.onTrigger(Q({effect:e},t)),e.scheduler?e.scheduler():e.run())}const qe=U("__proto__,__v_isRef,__isVue"),We=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(te)),Me=Ke(),Ge=Ke(!0),Qe=Ke(!0,!0),je=Ye();function Ye(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=At(this);for(let e=0,t=this.length;e<t;e++)$e(n,"get",e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(At)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Re();const n=At(this)[t].apply(this,e);return Be(),n}})),e}function He(e){const t=At(this);return $e(t,"has",e),t.hasOwnProperty(e)}function Ke(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?Ft:Et:t?xt:It).get(n))return n;const i=K(n);if(!e){if(i&&H(je,o))return Reflect.get(je,o,a);if("hasOwnProperty"===o)return He}const s=Reflect.get(n,o,a);return(te(o)?We.has(o):qe(o))?s:(e||$e(n,"get",o),t?s:$t(s)?i&&ce(o)?s:s.value:ne(s)?e?Ct(s):Pt(s):s)}}function Xe(e=!1){return function(t,n,o,a){let i=t[n];if(Nt(i)&&$t(i)&&!$t(o))return!1;if(!e&&(wt(o)||Nt(o)||(i=At(i),o=At(o)),!K(t)&&$t(i)&&!$t(o)))return i.value=o,!0;const s=K(t)&&ce(n)?Number(n)<t.length:H(t,n),l=Reflect.set(t,n,o,a);return t===At(a)&&(s?ue(o,i)&&Ve(t,"set",n,o,i):Ve(t,"add",n,o)),l}}const Je={get:Me,set:Xe(),deleteProperty:function(e,t){const n=H(e,t),o=e[t],a=Reflect.deleteProperty(e,t);return a&&n&&Ve(e,"delete",t,void 0,o),a},has:function(e,t){const n=Reflect.has(e,t);return te(t)&&We.has(t)||$e(e,"has",t),n},ownKeys:function(e){return $e(e,"iterate",K(e)?"length":ke),Reflect.ownKeys(e)}},Ze={get:Ge,set:(e,t)=>("production"!==process.env.NODE_ENV&&be(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>("production"!==process.env.NODE_ENV&&be(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},et=Q({},Ze,{get:Qe}),tt=e=>e,nt=e=>Reflect.getPrototypeOf(e);function ot(e,t,n=!1,o=!1){const a=At(e=e.__v_raw),i=At(t);n||(t!==i&&$e(a,"get",t),$e(a,"get",i));const{has:s}=nt(a),l=o?tt:n?Bt:Rt;return s.call(a,t)?l(e.get(t)):s.call(a,i)?l(e.get(i)):void(e!==a&&e.get(t))}function at(e,t=!1){const n=this.__v_raw,o=At(n),a=At(e);return t||(e!==a&&$e(o,"has",e),$e(o,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function it(e,t=!1){return e=e.__v_raw,!t&&$e(At(e),"iterate",ke),Reflect.get(e,"size",e)}function st(e){e=At(e);const t=At(this);return nt(t).has.call(t,e)||(t.add(e),Ve(t,"add",e,e)),this}function lt(e,t){t=At(t);const n=At(this),{has:o,get:a}=nt(n);let i=o.call(n,e);i?"production"!==process.env.NODE_ENV&&St(n,o,e):(e=At(e),i=o.call(n,e));const s=a.call(n,e);return n.set(e,t),i?ue(t,s)&&Ve(n,"set",e,t,s):Ve(n,"add",e,t),this}function ct(e){const t=At(this),{has:n,get:o}=nt(t);let a=n.call(t,e);a?"production"!==process.env.NODE_ENV&&St(t,n,e):(e=At(e),a=n.call(t,e));const i=o?o.call(t,e):void 0,s=t.delete(e);return a&&Ve(t,"delete",e,void 0,i),s}function rt(){const e=At(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?X(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Ve(e,"clear",void 0,void 0,n),o}function ut(e,t){return function(n,o){const a=this,i=a.__v_raw,s=At(i),l=t?tt:e?Bt:Rt;return!e&&$e(s,"iterate",ke),i.forEach(((e,t)=>n.call(o,l(e),l(t),a)))}}function dt(e,t,n){return function(...o){const a=this.__v_raw,i=At(a),s=X(i),l="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,r=a[e](...o),u=n?tt:t?Bt:Rt;return!t&&$e(i,"iterate",c?De:ke),{next(){const{value:e,done:t}=r.next();return t?{value:e,done:t}:{value:l?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function pt(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${re(e)} operation ${n}failed: target is readonly.`,At(this))}return"delete"!==e&&this}}function ft(){const e={get(e){return ot(this,e)},get size(){return it(this)},has:at,add:st,set:lt,delete:ct,clear:rt,forEach:ut(!1,!1)},t={get(e){return ot(this,e,!1,!0)},get size(){return it(this)},has:at,add:st,set:lt,delete:ct,clear:rt,forEach:ut(!1,!0)},n={get(e){return ot(this,e,!0)},get size(){return it(this,!0)},has(e){return at.call(this,e,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:ut(!0,!1)},o={get(e){return ot(this,e,!0,!0)},get size(){return it(this,!0)},has(e){return at.call(this,e,!0)},add:pt("add"),set:pt("set"),delete:pt("delete"),clear:pt("clear"),forEach:ut(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((a=>{e[a]=dt(a,!1,!1),n[a]=dt(a,!0,!1),t[a]=dt(a,!1,!0),o[a]=dt(a,!0,!0)})),[e,n,t,o]}const[gt,mt,ht,vt]=ft();function _t(e,t){const n=t?e?vt:ht:e?mt:gt;return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(H(n,o)&&o in t?n:t,o,a)}const yt={get:_t(!1,!1)},bt={get:_t(!0,!1)},Tt={get:_t(!0,!0)};function St(e,t,n){const o=At(n);if(o!==n&&t.call(e,o)){const t=se(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 It=new WeakMap,xt=new WeakMap,Et=new WeakMap,Ft=new WeakMap;function Pt(e){return Nt(e)?e:kt(e,!1,Je,yt,It)}function Ct(e){return kt(e,!0,Ze,bt,Et)}function Lt(e){return kt(e,!0,et,Tt,Ft)}function kt(e,t,n,o,a){if(!ne(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 i=a.get(e);if(i)return i;const s=(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}}(se(l));var l;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return a.set(e,c),c}function Dt(e){return Nt(e)?Dt(e.__v_raw):!(!e||!e.__v_isReactive)}function Nt(e){return!(!e||!e.__v_isReadonly)}function wt(e){return!(!e||!e.__v_isShallow)}function Ot(e){return Dt(e)||Nt(e)}function At(e){const t=e&&e.__v_raw;return t?At(t):e}const Rt=e=>ne(e)?Pt(e):e,Bt=e=>ne(e)?Ct(e):e;function $t(e){return!(!e||!0!==e.__v_isRef)}const Vt={get:(e,t,n)=>{return $t(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const a=e[t];return $t(a)&&!$t(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};const zt=[];function Ut(e,...t){if("production"===process.env.NODE_ENV)return;Re();const n=zt.length?zt[zt.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=function(){let e=zt[zt.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)Gt(o,n,11,[e+t.join(""),n&&n.proxy,a.map((({vnode:e})=>`at <${co(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 <${co(e.component,e.type,o)}`,i=">"+n;return e.props?[a,...qt(e.props),i]:[a+i]}(e))})),t}(a)),console.warn(...n)}Be()}function qt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Wt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Wt(e,t,n){return ee(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:$t(t)?(t=Wt(e,At(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Z(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=At(t),n?t:[`${e}=`,t])}const Mt={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 Gt(e,t,n,o){let a;try{a=o?e(...o):e()}catch(e){jt(e,t,n)}return a}function Qt(e,t,n,o){if(Z(e)){const a=Gt(e,t,n,o);return a&&oe(a)&&a.catch((e=>{jt(e,t,n)})),a}const a=[];for(let i=0;i<e.length;i++)a.push(Qt(e[i],t,n,o));return a}function jt(e,t,n,o=!0){const a=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,i="production"!==process.env.NODE_ENV?Mt[n]:n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,a,i))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void Gt(s,null,10,[e,a,i])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const i=Mt[t];if(n&&(a=n,zt.push(a)),Ut("Unhandled error"+(i?` during execution of ${i}`:"")),n&&zt.pop(),o)throw e;console.error(e)}else console.error(e);var a}(e,n,a,o)}let Yt=!1,Ht=!1;const Kt=[];let Xt=0;const Jt=[];let Zt=null,en=0;const tn=Promise.resolve();let nn=null;const on=100;function an(e){const t=nn||tn;return e?t.then(this?e.bind(this):e):t}function sn(e){Kt.length&&Kt.includes(e,Yt&&e.allowRecurse?Xt+1:Xt)||(null==e.id?Kt.push(e):Kt.splice(function(e){let t=Xt+1,n=Kt.length;for(;t<n;){const o=t+n>>>1;rn(Kt[o])<e?t=o+1:n=o}return t}(e.id),0,e),ln())}function ln(){Yt||Ht||(Ht=!0,nn=tn.then(dn))}function cn(e){K(e)?Jt.push(...e):Zt&&Zt.includes(e,e.allowRecurse?en+1:en)||Jt.push(e),ln()}const rn=e=>null==e.id?1/0:e.id,un=(e,t)=>{const n=rn(e)-rn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function dn(e){Ht=!1,Yt=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Kt.sort(un);const t="production"!==process.env.NODE_ENV?t=>pn(e,t):W;try{for(Xt=0;Xt<Kt.length;Xt++){const e=Kt[Xt];if(e&&!1!==e.active){if("production"!==process.env.NODE_ENV&&t(e))continue;Gt(e,null,14)}}}finally{Xt=0,Kt.length=0,function(e){if(Jt.length){const t=[...new Set(Jt)];if(Jt.length=0,Zt)return void Zt.push(...t);for(Zt=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Zt.sort(((e,t)=>rn(e)-rn(t))),en=0;en<Zt.length;en++)"production"!==process.env.NODE_ENV&&pn(e,Zt[en])||Zt[en]();Zt=null,en=0}}(e),Yt=!1,nn=null,(Kt.length||Jt.length)&&dn(e)}}function pn(e,t){if(e.has(t)){const n=e.get(t);if(n>on){const e=t.ownerInstance,n=e&&lo(e.type);return Ut(`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 fn=new Set;"production"!==process.env.NODE_ENV&&(fe().__VUE_HMR_RUNTIME__={createRecord:vn((function(e,t){if(gn.has(e))return!1;return gn.set(e,{initialDef:mn(t),instances:new Set}),!0})),rerender:vn((function(e,t){const n=gn.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach((e=>{t&&(e.render=t,mn(e.type).render=t),e.renderCache=[],e.update()}))})),reload:vn((function(e,t){const n=gn.get(e);if(!n)return;t=mn(t),hn(n.initialDef,t);const o=[...n.instances];for(const e of o){const o=mn(e.type);fn.has(o)||(o!==n.initialDef&&hn(o,t),fn.add(o)),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(fn.add(o),e.ceReload(t.styles),fn.delete(o)):e.parent?sn(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.")}cn((()=>{for(const e of o)fn.delete(mn(e.type))}))}))});const gn=new Map;function mn(e){return ro(e)?e.__vccOpts:e}function hn(e,t){Q(e,t);for(const n in e)"__file"===n||n in t||delete e[n]}function vn(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 _n=null,yn=null;const bn={};function Tn(e,t,{immediate:n,deep:o,flush:a,onTrack:i,onTrigger:s}=q){var l;"production"===process.env.NODE_ENV||t||(void 0!==n&&Ut('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&Ut('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const c=e=>{Ut("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.")},r=Te===(null==(l=to)?void 0:l.scope)?to:null;let u,d,p=!1,f=!1;if($t(e)?(u=()=>e.value,p=wt(e)):Dt(e)?(u=()=>e,o=!0):K(e)?(f=!0,p=e.some((e=>Dt(e)||wt(e))),u=()=>e.map((e=>$t(e)?e.value:Dt(e)?In(e):Z(e)?Gt(e,r,2):void("production"!==process.env.NODE_ENV&&c(e))))):Z(e)?u=t?()=>Gt(e,r,2):()=>{if(!r||!r.isUnmounted)return d&&d(),Qt(e,r,3,[g])}:(u=W,"production"!==process.env.NODE_ENV&&c(e)),t&&o){const e=u;u=()=>In(e())}let g=e=>{d=_.onStop=()=>{Gt(e,r,4)}},m=f?new Array(e.length).fill(bn):bn;const h=()=>{if(_.active)if(t){const e=_.run();(o||p||(f?e.some(((e,t)=>ue(e,m[t]))):ue(e,m)))&&(d&&d(),Qt(t,r,3,[e,m===bn?void 0:f&&m[0]===bn?[]:m,g]),m=e)}else _.run()};let v;h.allowRecurse=!!t,"sync"===a?v=h:"post"===a?v=()=>Vn(h,r&&r.suspense):(h.pre=!0,r&&(h.id=r.uid),v=()=>sn(h));const _=new Ne(u,v);"production"!==process.env.NODE_ENV&&(_.onTrack=i,_.onTrigger=s),t?n?h():m=_.run():"post"===a?Vn(_.run.bind(_),r&&r.suspense):_.run();return()=>{_.stop(),r&&r.scope&&j(r.scope.effects,_)}}function Sn(e,t,n){const o=this.proxy,a=ee(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 i;Z(t)?i=t:(i=t.handler,n=t);const s=to;oo(this);const l=Tn(a,i.bind(o),n);return s?oo(s):ao(),l}function In(e,t){if(!ne(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),$t(e))In(e.value,t);else if(K(e))for(let n=0;n<e.length;n++)In(e[n],t);else if(J(e)||X(e))e.forEach((e=>{In(e,t)}));else if(le(e))for(const n in e)In(e[n],t);return e}function xn(e,t){return Z(e)?(()=>Q({name:e.name},t,{setup:e}))():e}const En=Symbol.for("v-ndc"),Fn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((n=e.exposed,de(n,"__v_skip",!0),Dt(t=n)?t:new Proxy(t,Vt)),{get:(t,n)=>n in t?t[n]:n in Pn?Pn[n](e):void 0,has:(e,t)=>t in e||t in Pn}));var t;var n}(e)||e.proxy:Fn(e.parent):null,Pn=Q(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?Lt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?Lt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?Lt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?Lt(e.refs):e.refs,$parent:e=>Fn(e.parent),$root:e=>Fn(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:i,config:{optionMergeStrategies:s}}=e.appContext,l=i.get(t);let c;l?c=l:a.length||n||o?(c={},a.length&&a.forEach((e=>Nn(c,e,s,!0))),Nn(c,t,s)):c=t;ne(t)&&i.set(t,c);return c}(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>sn(e.update)),$nextTick:e=>e.n||(e.n=an.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?Sn.bind(e):W}),Cn=(e,t)=>e!==q&&!e.__isScriptSetup&&H(e,t),Ln={get({_:e},t){const{ctx:n,setupState:o,data:a,props:i,accessCache:s,type:l,appContext:c}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;let r;if("$"!==t[0]){const l=s[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 i[t]}else{if(Cn(o,t))return s[t]=1,o[t];if(a!==q&&H(a,t))return s[t]=2,a[t];if((r=e.propsOptions[0])&&H(r,t))return s[t]=3,i[t];if(n!==q&&H(n,t))return s[t]=4,n[t];__VUE_OPTIONS_API__&&!Dn||(s[t]=0)}}const u=Pn[t];let d,p;return u?("$attrs"===t?($e(e,"get",t),process.env.NODE_ENV):"production"!==process.env.NODE_ENV&&"$slots"===t&&$e(e,"get",t),u(e)):(d=l.__cssModules)&&(d=d[t])?d:n!==q&&H(n,t)?(s[t]=4,n[t]):(p=c.config.globalProperties,H(p,t)?p[t]:void("production"===process.env.NODE_ENV||!_n||ee(t)&&0===t.indexOf("__v")||(a!==q&&(e=>"_"===e||"$"===e)(t[0])&&H(a,t)?Ut(`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===_n&&Ut(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,n){const{data:o,setupState:a,ctx:i}=e;return Cn(a,t)?(a[t]=n,!0):"production"!==process.env.NODE_ENV&&a.__isScriptSetup&&H(a,t)?(Ut(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==q&&H(o,t)?(o[t]=n,!0):H(e.props,t)?("production"!==process.env.NODE_ENV&&Ut(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&Ut(`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(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,propsOptions:i}},s){let l;return!!n[s]||e!==q&&H(e,s)||Cn(t,s)||(l=i[0])&&H(l,s)||H(o,s)||H(Pn,s)||H(a.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:H(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function kn(e){return K(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}"production"!==process.env.NODE_ENV&&(Ln.ownKeys=e=>(Ut("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 Dn=!0;function Nn(e,t,n,o=!1){const{mixins:a,extends:i}=t;i&&Nn(e,i,n,!0),a&&a.forEach((t=>Nn(e,t,n,!0)));for(const a in t)if(o&&"expose"===a)"production"!==process.env.NODE_ENV&&Ut('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=wn[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const wn={data:On,props:$n,emits:$n,methods:Bn,computed:Bn,beforeCreate:Rn,created:Rn,beforeMount:Rn,mounted:Rn,beforeUpdate:Rn,updated:Rn,beforeDestroy:Rn,beforeUnmount:Rn,destroyed:Rn,unmounted:Rn,activated:Rn,deactivated:Rn,errorCaptured:Rn,serverPrefetch:Rn,components:Bn,directives:Bn,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]=Rn(e[o],t[o]);return n},provide:On,inject:function(e,t){return Bn(An(e),An(t))}};function On(e,t){return t?e?function(){return Q(Z(e)?e.call(this,this):e,Z(t)?t.call(this,this):t)}:t:e}function An(e){if(K(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Rn(e,t){return e?[...new Set([].concat(e,t))]:t}function Bn(e,t){return e?Q(Object.create(null),e,t):t}function $n(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:Q(Object.create(null),kn(e),kn(null!=t?t:{})):t}const Vn=function(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):cn(e)},zn=Symbol.for("v-fgt"),Un=Symbol.for("v-txt"),qn=Symbol.for("v-cmt");let Wn=null;const Mn="__vInternal",Gn=({key:e})=>null!=e?e:null,Qn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?ee(e)||$t(e)||Z(e)?{i:_n,r:e,k:t,f:!!n}:e:null);const jn="production"!==process.env.NODE_ENV?(...e)=>Yn(...e):Yn;function Yn(e,t=null,n=null,o=0,a=null,i=!1){if(e&&e!==En||("production"===process.env.NODE_ENV||e||Ut(`Invalid vnode type when creating vnode: ${e}.`),e=qn),(s=e)&&!0===s.__v_isVNode){const o=Hn(e,t,!0);return n&&Jn(o,n),!i&&Wn&&(6&o.shapeFlag?Wn[Wn.indexOf(e)]=o:Wn.push(o)),o.patchFlag|=-2,o}var s;if(ro(e)&&(e=e.__vccOpts),t){t=function(e){return e?Ot(e)||Mn in e?Q({},e):e:null}(t);let{class:e,style:n}=t;e&&!ee(e)&&(t.class=ye(e)),ne(n)&&(Ot(n)&&!K(n)&&(n=Q({},n)),t.style=ge(n))}const l=ee(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:ne(e)?4:Z(e)?2:0;return"production"!==process.env.NODE_ENV&&4&l&&Ot(e)&&Ut("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=At(e)),function(e,t=null,n=null,o=0,a=null,i=(e===zn?0:1),s=!1,l=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gn(t),ref:t&&Qn(t),scopeId:yn,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:i,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:_n};return l?(Jn(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=ee(n)?8:16),"production"!==process.env.NODE_ENV&&c.key!=c.key&&Ut("VNode created with invalid key (NaN). VNode type:",c.type),!s&&Wn&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&Wn.push(c),c}(e,t,n,o,a,l,i,!0)}function Hn(e,t,n=!1){const{props:o,ref:a,patchFlag:i,children:s}=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=ye([t.class,o.class]));else if("style"===e)t.style=ge([t.style,o.style]);else if(G(e)){const n=t[e],a=o[e];!a||n===a||K(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&&Gn(l),ref:t&&t.ref?n&&a?K(a)?a.concat(Qn(t)):[a,Qn(t)]:Qn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===i&&K(s)?s.map(Kn):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==zn?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Hn(e.ssContent),ssFallback:e.ssFallback&&Hn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Kn(e){const t=Hn(e);return K(e.children)&&(t.children=e.children.map(Kn)),t}function Xn(e=" ",t=0){return jn(Un,null,e,t)}function Jn(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(K(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Jn(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Mn in t?3===o&&_n&&(1===_n.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=_n}}else Z(t)?(t={default:t,_ctx:_n},n=32):(t=String(t),64&o?(n=16,t=[Xn(t)]):n=8);e.children=t,e.shapeFlag|=n}let Zn,eo,to=null,no="__VUE_INSTANCE_SETTERS__";(eo=fe()[no])||(eo=fe()[no]=[]),eo.push((e=>to=e)),Zn=e=>{eo.length>1?eo.forEach((t=>t(e))):eo[0](e)};const oo=e=>{Zn(e),e.scope.on()},ao=()=>{to&&to.scope.off(),Zn(null)};const io=/(?:^|[-_])(\w)/g,so=e=>e.replace(io,(e=>e.toUpperCase())).replace(/[-_]/g,"");function lo(e,t=!0){return Z(e)?e.displayName||e.name:e.name||t&&e.__name}function co(e,t,n=!1){let o=lo(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?so(o):n?"App":"Anonymous"}function ro(e){return Z(e)&&"__vccOpts"in e}var uo=xn({name:"qt-poster-focus-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const po={class:"absoluteFocusTitleRoot",delayLoad:"400",flexStyle:"${titleFocusStyle}",autoHeight:"",focusable:!1},fo={class:"absoluteFocusMainBgRoot",duplicateParentState:!0,focusable:!1,showIf:"${title.enable}"};uo.render=function(e,t,n,s,l,r){const u=o("text-view");return a(),i("div",po,[c(" 浮动标题"),_(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"}),y("div",fo,[c(" 主标题 "),_(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}"}),c(" 副标题 "),_(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}"})])])},uo.__scopeId="data-v-703673b8",uo.__file="src/poster/qt-poster-focus-title.vue";var go=xn({name:"qt-poster-corner-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const mo={class:"cornerRoot",focusable:!1};go.render=function(e,t,n,s,l,c){const r=o("text-view");return a(),i("div",mo,[_(r,{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"])])},go.__scopeId="data-v-4b767ea2",go.__file="src/poster/qt-poster-corner-title.vue";var ho=xn({name:"qt-poster",components:{"qt-poster-corner-title":go,"qt-poster-focus-title":uo},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 vo=["enableFocusBorder"],_o=["showOnState"],yo={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}"},bo={flexStyle:"${ripple.style}",class:"qt-ui-poster-ripple-view-root-css",showOnState:"focused",focusable:!1,clipChildren:!1},To=(e=>(b("data-v-3c4765e9"),e=e(),T(),e))((()=>y("img",{src:"${ripple.src}",class:"qt-ui-ripple-img-css",focusable:!1,duplicateParentState:!0,showIf:"${true}",delayLoad:"800"},null,-1)));ho.render=function(e,t,n,i,s,l){const r=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:h((()=>[c("封面"),y("img",{class:"qt-ui-poster-img-css",duplicateParentState:!0,postDelay:"300",focusable:!1,enableFocusBorder:e.enableFocusBorder,flexStyle:"${image.style}",src:"${image.src}"},null,8,vo),c(" 焦点选中时的标题 "),_(r,{focusable:!1,showOnState:"focused"}),y("div",{style:{"flex-direction":"column","background-color":"transparent","z-index":"999"},duplicateParentState:!0,focusable:!1,flexStyle:"${titleStyle}",showOnState:e.mainTextShowOnState},[c(" 浮动标题 "),y("div",yo,[_(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}"})]),c(" 主标题"),_(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,_o),y("div",bo,[_(p,{class:"qt-ui-ripple-view-css",delayLoad:"800",focusable:!1,duplicateParentState:!0,color:"#FF4E46",isShowRipple:"${ripple.enable}",rippleVisible:"invisible"}),To]),_(g,{focusable:!1,delayLoad:"600",flexStyle:"${corner.style}",style:{"z-index":"1000",position:"absolute"}}),f(e.$slots,"default")])),_:3},8,["type","focusable"])},ho.__scopeId="data-v-3c4765e9",ho.__file="src/poster/index.vue";var So=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"),i=S({normal:"#80ffffff",focused:"#000000",selected:"#F5F5F5"}),s=-1,l=-1;I((()=>e.navs),(e=>{e.length>0&&c(e)}));const c=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?.setItemSelected(n,!0),r(n)}),300))},r=e=>{clearTimeout(s),s=setTimeout((()=>{t.emit("tab-select",{position:e})}),300)};return{navList:o,focusColor:a,textColor:i,bgPadding:[10,10],onTabChange:e=>{!0===e.hasFocus&&(t.emit("tab-focus",e),r(e.position))},scrollToPosition:e=>{o.value?.scrollToPosition(e)},scrollToTop:()=>{o.value?.scrollToTop()},init:e=>{c(e.data)}}}});const Io=["stateTextColor","sateBackgroundPadding"],xo=["stateTextColor","sateBackgroundPadding"];var Eo,Fo;So.render=function(e,t,n,i,c,r){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:h((()=>[y("div",{class:"qt-ui-nav-bar-item-css",type:2e4,autoWidth:"",focusable:!0,eventFocus:"",flexStyle:"${style}",clipChildren:!1,style:s({focusBackgroundColor:e.focusColor}),stateTextColor:e.textColor,sateBackgroundPadding:e.bgPadding},[_(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,Io),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:h((()=>[y("div",{class:"qt-ui-nav-bar-item-css",type:2e4,flexStyle:"${style}",eventFocus:"",autoWidth:"",focusable:!0,stateTextColor:e.textColor,style:s({focusBackgroundColor:e.focusColor}),sateBackgroundPadding:e.bgPadding,clipChildren:!1},[_(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,xo),f(e.$slots,"default")])),_:3},8,["class","onItemFocused"]))},So.__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_TAB=1003]="QT_WATERFALL_SECTION_TYPE_TAB",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_CARD=1006]="QT_WATERFALL_SECTION_TYPE_CARD",e[e.QT_WATERFALL_SECTION_TYPE_VUE=1007]="QT_WATERFALL_SECTION_TYPE_VUE",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"}(Eo||(Eo={})),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",e[e.QT_WATERFALL_ITEM_TYPE_CARD=10003]="QT_WATERFALL_ITEM_TYPE_CARD"}(Fo||(Fo={}));var Po=xn({name:"card-item",setup:()=>({})});Po.render=function(e,t,n,i,s,l){const c=o("es-card-vew");return a(),d(c,{clipChildren:!1,clipPadding:!1,autoRecycle:!0,focusable:!0,disablePlaceholderFocus:"",layout:"${layout}",flexStyle:"${style}",cardId:"${cardId}",type:10003,class:"qt-ui-waterfall-card-item"})},Po.__scopeId="data-v-599898aa",Po.__file="src/waterfall/item/card-item.vue";var Co=xn({name:"standard-section",components:{"card-item":Po},props:{enablePlaceholder:{type:Boolean,default:!0},plateData:{type:String,default:""},useDiff:{type:Boolean,default:!0},cachePool:{type:Object,default:{}},sectionType:{type:Number,default:Eo.QT_WATERFALL_SECTION_TYPE_FLEX},standItemType:{type:Number,default:Fo.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM},currentPageIndex:{type:Number,default:-1}}});const Lo=["type"];Co.render=function(e,t,n,s,l,r){const u=o("text-view"),d=o("qt-poster"),p=o("card-item"),g=o("tv-flex");return a(),i("div",{class:"standard-section-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.sectionType,focusable:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[_(u,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),_(g,{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,focusScrollTarget:"${focusScrollTarget==true}",list:"${itemList}"},{default:h((()=>[c(" poster "),_(d,{"load-delay":500,type:e.standItemType},null,8,["type"]),c(" card "),_(p),f(e.$slots,"default")])),_:3},8,["cachePool","useDiff","enablePlaceholder"])],8,Lo)},Co.__scopeId="data-v-227e921e",Co.__file="src/waterfall/section/flex-section.vue";const ko="tab-list-section";var Do=xn({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:Eo.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(C.DEBUG)&&n.d(ko,"----------onItemBind--------------\x3e>>",e)},onItemClick:function(e){n.isLoggable(C.DEBUG)&&n.d(ko,"----------onItemClick--------------\x3e>>",e)},onItemRecycled:function(e){n.isLoggable(C.DEBUG)&&n.d(ko,"----------onItemRecycled--------------\x3e>>",e)},onItemFocused:function(e){n.isLoggable(C.DEBUG)&&n.d(ko,"----------onItemFocused--------------\x3e>>",e)}}}});const No={class:"qt-ui-section-tab-list-root",focusable:!1,flexStyle:"${style}",blockFocusDirections:["right"],clipChildren:!1,useAdvancedFocusSearch:!0,bringFocusChildToFront:!0},wo=["type"];Do.render=function(e,t,n,i,s,l){const c=o("text-view"),r=o("qt-poster"),u=o("tv-list"),p=o("tv-item");return a(),d(p,{type:e.sectionType,clipPadding:!1,clipChildren:!1,ref:"listSection",class:"tab-list-section-root-css",onItemClick:e.onItemClick,onItemBind:e.onItemBind,onItemUnbind:e.onItemRecycled,onItemFocused:e.onItemFocused},{default:h((()=>[y("div",No,[_(c,{class:"tab-list-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),_(u,{list:"${itemList}",horizontal:"",clipChildren:!1,focusable:!1,class:"tab-list-section-list-css",name:"QUICKTVUI_WARTERFALL_LIST",resetOnDetach:!0,enableKeepFocus:"${enableKeepFocus==true}",endHintEnabled:"${enableEndHit}",onScrollEnable:!1,setSelectChildPosition:0,enablePlaceholder:e.enablePlaceholder,cachePoolName:"HorizontalList",blockFocusDirections:e.blockDirections},{default:h((()=>[_(r,{type:e.standItemType},null,8,["type"]),y("div",{type:e.tabItemType,class:"qt-ui-section-tab-list-item",clipChildren:!1,flexStyle:"${style}",style:{"padding-left":"24px","padding-right":"23px","justify-content":"center",height:"50px"},autoWidth:"",name:"QUICKTVUI_TAB_2",focusable:!0,eventClick:"",eventFocus:""},[_(c,{class:"qt-ui-section-tab-list-item-text",autoWidth:"",flexStyle:"${textStyle}",gravity:"center",fontSize:36,lines:1,focusable:!1,duplicateParentState:!0,style:{height:"50px"},text:"${text}"})],8,wo),f(e.$slots,"default")])),_:3},8,["enablePlaceholder","blockFocusDirections"])])])),_:3},8,["type","onItemClick","onItemBind","onItemUnbind","onItemFocused"])},Do.__scopeId="data-v-88e60816",Do.__file="src/waterfall/section/tabs-list-section.vue";var Oo=xn({name:"loading-section"});const Ao={focusable:!1,type:-1,class:"loading-section-css"};Oo.render=function(e,t,n,s,l,c){const r=o("qt-loading-view");return a(),i("div",Ao,[_(r,{class:"loading-section-loading-css"})])},Oo.__scopeId="data-v-48609f24",Oo.__file="src/waterfall/section/loading-section.vue";var Ro=xn({name:"end-section",setup:()=>({})});const Bo={type:-1001,focusable:!1,flexStyle:"${style}",class:"qt-waterfall-end-section-css"};Ro.render=function(e,t,n,s,l,c){const r=o("text-view");return a(),i("div",Bo,[_(r,{focusable:!1,gravity:"center",flexStyle:"${titleStyle}",class:"qt-waterfall-end-section-text-css",fontSize:28,text:"${title}"})])},Ro.__scopeId="data-v-70b82c43",Ro.__file="src/waterfall/section/end-section.vue";var $o=xn({props:{plateTitleLeftMargin:{type:Number,default:0},type:{type:Number,default:Eo.QT_WATERFALL_SECTION_TYPE_TITLE}},setup:(e,t)=>({})});const Vo=["type"];$o.render=function(e,t,n,l,c,r){const u=o("text-view");return a(),i("div",{class:"section-title-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.type,focusable:!1,bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[_(u,{class:"section-title-text-css",delayLoad:"200",postDelay:"300",style:s({marginLeft:e.plateTitleLeftMargin+"px"}),focusable:!1,textSize:50,text:"${title}"},null,8,["style"])],8,Vo)},$o.__scopeId="data-v-20428d40",$o.__file="src/waterfall/section/section-title.vue";var zo=xn({name:"blank-section",setup:()=>({})});const Uo={focusable:!1,type:-1e3,flexStyle:"${style}",class:"qt-ui-waterfall-blank-section"};zo.render=function(e,t,n,o,s,l){return a(),i("div",Uo)},zo.__scopeId="data-v-eeab4d88",zo.__file="src/waterfall/section/blank-section.vue";var qo=xn({name:"card-section",setup:()=>({})});const Wo={type:1006,class:"qt-ui-waterfall-card-section-css",clipChildren:!1,clipPadding:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0};qo.render=function(e,t,n,s,l,c){const r=o("text-view"),u=o("es-card-vew");return a(),i("div",Wo,[_(r,{class:"qt-ui-waterfall-card-section-title-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),_(u,{cardId:"${cardId}",clipChildren:!1,clipPadding:!1,autoRecycle:!0,focusable:!0,flexStyle:"${cardStyle}",class:"qt-ui-waterfall-card-section"})])},qo.__scopeId="data-v-43a44788",qo.__file="src/waterfall/section/card-section.vue";var Mo=xn({name:"vue-section",setup:(e,t)=>({onSectionBind:function(){}})});function Go(e,t){const n=[];if(t&&t.length>0)for(let o=0;o<t.length;o++){let a=Qo(e,t[o]);n.push(a)}return n}function Qo(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,i=a?.height??0,s=a?.marginTop??0,l=a?.marginBottom??0,c=a?.paddingTop??0,r=a?.paddingBottom??0;let u=0,d=0,p=0,f=0;for(let t=0;t<n.length;t++){const a=n[t],i=a.decoration,s=i?.left??0,l=i?.top??0,c=i?.right??0,r=i?.bottom??0;let g=a?.style.width??0,m=a?.style.height??0;u+g+c>=e&&(d+=p+o,p=0,u=0),a.layout||(a.layout=[0,0,g,m]),a.layout[0]=u+s,a.layout[1]=d+l,a.layout[1]+m+r>f&&(f=a.layout[1]+m+r),m+l+r>p&&(p=m+l+r),u+=g+o+s+c}return f+i+s+l+c+r}(e.width,t),t.style.height=n),t}function jo(){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 i=n+o;n+o>a&&(i=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let o=n;o<i;o++){s+=t(e[o])}return s}function o(){console.log("--------dumpWaterfallData---------\x3e>>>",e)}return{init:function(){},getSectionList:function(){return e},addSectionList:function(a){const i=e.length,s=n(0,i),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:i,sectionCount:a.length,itemIndex:s,itemCount:l}},deleteSection:function(t,a){const i=n(0,t-1),s=n(t,a);return e.splice(t,a),o(),{sectionIndex:t,sectionCount:a,itemIndex:i,itemCount:s}},updateSection:function(a,i){const s=n(0,a-1),l=t(i);return e.splice(a,1,i),o(),{sectionIndex:a,sectionCount:1,itemIndex:s,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 i=e[t],s=i.itemList.length;return i.itemList.push(...n),o(),{sectionIndex:t,sectionCount:1,itemIndex:s,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,i){return e[t].itemList.splice(n,a,...i),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=[]}}}Mo.render=function(e,t,n,i,s,l){const c=o("tv-item");return a(),d(c,{class:"qt-ui-waterfall-vue-section",type:1007,blockFocusDirections:["left","right"],clipChildren:!1,flexStyle:"${style}",singleton:"",onItemBind:e.onSectionBind},{default:h((()=>[f(e.$slots,"default")])),_:3},8,["onItemBind"])},Mo.__scopeId="data-v-f8447724",Mo.__file="src/waterfall/section/vue-section.vue";const Yo="qt-waterfall";var Ho,Ko=xn({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}},i=n();let s;const l=jo();return{waterfallRef:i,init:function(e){s=e},getSectionList:function(){return l.getSectionList()},setSectionList:function(e){if(!s)return;o.isLoggable(C.DEBUG)&&o.d(Yo,"-------1---setSectionList--------------\x3e>>"),l.destroy();const t=l.addSectionList(e);o.isLoggable(C.DEBUG)&&o.d(Yo,"-------2---setSectionList--------------\x3e>>",t);const n=Go(s,e);o.isLoggable(C.DEBUG)&&o.d(Yo,"----------setSectionList-----最终数据---------\x3e>>",n),i.value?.setListData(n)},addSectionList:function(e){if(!s)return;l.addSectionList(e);const t=Go(s,e);o.isLoggable(C.DEBUG)&&o.d(Yo,"----------addSectionList-----最终数据---------\x3e>>",t),i.value?.addListData(t)},deleteSection:function(e,t){const n=l.deleteSection(e,t);o.isLoggable(C.DEBUG)&&o.d(Yo,"----------deleteSection-----最终数据---------\x3e>>",n),i.value?.deleteItem(e,t)},updateSection:function(e,t){l.updateSection(e,t);const n=Qo(s,t);o.isLoggable(C.DEBUG)&&o.d(Yo,"----------updateSection-----最终数据---------\x3e>>sectionIndex:"+e+"updateSection:"+n),i.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 i=Qo(s,a);i&&o.push(i)}i.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=Qo(s,n);i.value?.updateItem(e,t)}},deleteItem:function(e,t,n){l.deleteItem(e,t,n);const o=l.getSection(e);if(o){const t=Qo(s,o);i.value?.updateItem(e,t)}},updateItem:function(e,t,n){l.updateItem(e,t,n);const o=l.getSection(e);if(o){const t=Qo(s,o);i.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=Qo(s,a);i.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(C.DEBUG)&&o.d(Yo,"----------onItemClick--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" "),t.emit("onItemClick",e.parentPosition,e.position,e.item)},onItemFocused:function(e){o.isLoggable(C.DEBUG)&&o.d(Yo,"----------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){if(e){o.isLoggable(C.DEBUG)&&o.d(Yo,"----------onSectionBind--------------\x3e>>",e);let n=e.pageIndex??0;t.emit("onSectionBind",n,e.position)}},onSectionAttached:function(e){if(e){o.isLoggable(C.DEBUG)&&o.d(Yo,"----------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(){i.value?.pausePostTask()},pausePostTask:function(){i.value?.pausePostTask()},clearPostTask:function(){i.value?.clearPostTask()},destroy:function(){i.value?.destroy()}}},components:{"flex-section":Co,"tabs-list-section":Do,"section-title":$o,"loading-section":Oo,"end-section":Ro,"blank-section":zo,"card-section":qo,"vue-section":Mo}});function Xo(){const e=new Map,t=new Map;function n(n){const o={index:n,state:Ho.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 i=t+n;t+n>a&&(i=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let n=t;n<i;n++){s+=o(e[n])}return s}function i(){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,s){const l=t.get(n)??[],c=l.length,r=a(l,0,c),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}(s);l.push(...s);const d=e.get(n);return d&&(d.state=Ho.QT_TAB_PAGE_STATE_IDLE),i(),{pageIndex:n,sectionIndex:c,sectionCount:s.length,itemIndex:r,itemCount:u}},deleteSection:function(e,n,o){const s=t.get(e)??[],l=a(s,0,n-1),c=a(s,n,o);return s.splice(n,o),i(),{pageIndex:e,sectionIndex:n,sectionCount:o,itemIndex:l,itemCount:c}},updateSection:function(e,n,s){const l=t.get(e)??[],c=a(l,0,n-1),r=o(s);return l.splice(n,1,s),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:r}},updateSectionList:function(e,n){return t.set(e,n),i(),{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)??[],s=a.length;if(n<0||n>=s||o.length<=0)return{pageIndex:e,sectionIndex:-1,sectionCount:0,itemIndex:-1,itemCount:0};const l=a[n],c=l.itemList.length;return l.itemList.push(...o),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:o.length}},deleteItem:function(e,n,o,a){return(t.get(e)??[])[n].itemList.splice(o,a),i(),{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),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:1}},updateItemList:function(e,n,o,a,s){return(t.get(e)??[])[n].itemList.splice(o,a,...s),i(),{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()}}}Ko.render=function(e,t,n,i,s,l){const r=o("flex-section"),u=o("tabs-list-section"),p=o("loading-section"),g=o("end-section"),m=o("blank-section"),v=o("card-section"),y=o("vue-section"),b=o("tv-list");return a(),d(b,{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:h((()=>[c(" 普通版块"),_(r,{"cache-pool":e.flexCachePool,enablePlaceholder:e.enablePlaceholder},{default:h((()=>[f(e.$slots,"item")])),_:3},8,["cache-pool","enablePlaceholder"]),c("一行滚动 多级tab"),_(u,{enablePlaceholder:e.enablePlaceholder},{default:h((()=>[f(e.$slots,"list-item")])),_:3},8,["enablePlaceholder"]),c(" loading"),_(p),c(" end "),_(g),c(" blank "),_(m),c(" card "),_(v),c(" vue "),_(y,null,{default:h((()=>[f(e.$slots,"vue-section")])),_:3}),f(e.$slots,"section")])),_:3},8,["onScroll","onItemClick","onItemFocused","onItemBind","onItemAttached","cachePool","onScrollStateChanged"])},Ko.__scopeId="data-v-2e65df68",Ko.__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"}(Ho||(Ho={}));const Jo="qt-tab";var Zo=xn({name:"qt-tab",emits:["onTabPageLoadData","onTabPageChanged","onTabEvent","onTabPageItemClick","onTabPageItemFocused"],props:{preloadNumber:{type:Number,default:3},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},contentNextFocus:{type:Object,default:()=>({up:"tabList",left:"tabList"})},triggerTask:{type:Array,default:()=>[]},blockViewPager:{type:Array,default:()=>[]},blockViewPagerVertical:{type:Array,default:()=>[]}},setup(e,t){const o=n(),a=n(!0),i=n(300),s=n(500),l=n(1),c=n(!0),r=P(),u=n(),d=Xo();let p,f=-1;function g(e,t){const n=d.getTabPageData(e);n&&(n.state=t,d.setTabPageData(e,n))}function m(n,o,a){let i=d.getTabPageData(n);if(i&&i.state===Ho.QT_TAB_PAGE_STATE_IDLE){a>=d.getSectionList(n).length-e.preloadNumber-1&&(r.isLoggable(C.DEBUG)&&r.d(Jo,"----------loadPageData----加载数加载据--\x3e>>> pageIndex:"+n+" sectionIndex:"+a),t.emit("onTabPageLoadData",n,o),g(n,Ho.QT_TAB_PAGE_STATE_BUSY))}else r.isLoggable(C.DEBUG)&&r.d(Jo,"----------loadPageData--状态不对--\x3e>>>",n)}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){r.isLoggable(C.DEBUG)&&r.d(Jo,"----------loadPageData----setTabPageData--\x3e>>>pageIndex:"+e),d.addSectionList(e,t.data);const n={data:Go(p,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};r.isLoggable(C.DEBUG)&&r.d(Jo,"------设置数据----setTabPageData------\x3e>>> pageIndex:"+e+" data:",n),o.value?.setPageData(e,n)},addPageData:function(e,t,n=0){r.isLoggable(C.DEBUG)&&r.d(Jo,"----------loadPageData----addPageData--\x3e>>>pageIndex:"+e),d.addSectionList(e,t.data);const a={data:Go(p,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};r.isLoggable(C.DEBUG)&&r.d(Jo,"----设置数据------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:Go(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=Qo(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=Qo(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 i=d.getSection(e,t);if(i){const n=Qo(p,i);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,i){o.value?.getChildNodeViewState(e,t,n,a,i)},dispatchUIFunctionOnChildNode:function(e,t,n,a,i){o.value?.dispatchUIFunctionOnChildNode(e,t,n,a,i)},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:i,pageResumeDelay:s,rootOpacity:l,isTabHorizontal:c,onTabPageLoadData:function(e){const t=e.pageIndex,n=e.useDiff;r.isLoggable(C.DEBUG)&&r.d(Jo,"----------loadPageData----android--\x3e>>>pageIndex:"+t),m(t,n,0)},onTabPageChanged:function(e){const n=e.pageIndex;f=n;const o=e.data;r.isLoggable(C.DEBUG)&&r.d(Jo,"----------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,n,o){r.isLoggable(C.DEBUG)&&r.d(Jo,"-----------onWaterfallItemClick---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+n+" item:",o),t.emit("onTabPageItemClick",f,e,n,o)},onWaterfallItemFocused:function(e,n,o,a){r.isLoggable(C.DEBUG)&&r.d(Jo,"-----------onWaterfallItemFocused---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+n+" isFocused:"+o+" item:",a),t.emit("onTabPageItemFocused",f,e,n,o,a)},onWaterfallSectionBind:function(e,t){r.isLoggable(C.DEBUG)&&r.d(Jo,"-----------onWaterfallSectionBind---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t),e===f&&(r.isLoggable(C.DEBUG)&&r.d(Jo,"----------loadPageData----bind--\x3e>>>pageIndex:"+e),m(e,!1,t))},onWaterfallSectionAttached:function(e,t){r.isLoggable(C.DEBUG)&&r.d(Jo,"-----------onWaterfallSectionAttached---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t)}}}});Zo.render=function(e,t,n,i,s,r){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.onTabPageLoadData,onPageChanged:e.onTabPageChanged,onTabEvent:e.onTabEvent},{default:h((()=>[_(u,{ref:"navBarRef",name:"tabList",focusable:!1,class:l(e.tabNavBarClass),"text-key":"text",clipChldren:!1,horizontal:e.isTabHorizontal},{default:h((()=>[f(e.$slots,"tab-item")])),_:3},8,["class","horizontal"]),_(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:h((()=>[_(p,{onOnSectionBind:e.onWaterfallSectionBind,onOnSectionAttached:e.onWaterfallSectionAttached,onOnItemFocused:e.onWaterfallItemFocused,onOnItemClick:e.onWaterfallItemClick},{item:h((()=>[f(e.$slots,"waterfall-item")])),section:h((()=>[f(e.$slots,"waterfall-section")])),_: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"])):c("v-if",!0)},Zo.__file="src/tab/index.vue";var ea=xn({name:"qt-classified-list-view",props:{className:{type:String,default:"content_list_view"},classNavName:{type:String,default:"nav_list_view"},currentFocusIndex:{type:Number,default:0}},emits:["item-click","item-focused"],setup(e,t){const o=n(),a=n();let i=[],s=-1,l=-1;let c=-1;let r=-1;return{content_list_view:o,nav_list_view:a,init:t=>{t.forEach(((e,t)=>{e.mask||(e.mask="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/mask.png"),e.icon||(e.icon="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/playing.png");let n=!1;for(let t=0;t<i.length;t++){const o=i[t];e.categoryname==o.categoryname&&(e.navIndex=t,n=!0)}n||(e.navIndex||(e.navIndex=i.length),i.push({type:e.type,decoration:{left:50},categoryname:e.categoryname,startIndex:t}))})),an((()=>{o.value?.setListData(t),a.value?.setListData(i),setTimeout((()=>{s=e.currentFocusIndex,l=t[e.currentFocusIndex].navIndex,o.value?.scrollToFocused(s),a.value?.scrollToSelected(l,!0)}),300)}))},onItemBind:()=>{},onSItemClick:e=>{t.emit("item-click",e)},onFItemClick:e=>{t.emit("item-click",e)},onSItemFocused:e=>{clearTimeout(c),c=setTimeout((()=>{e.hasFocus?(l!=e.item.navIndex&&(l=e.item.navIndex,a.value?.scrollToSelected(e.item.navIndex,!0)),t.emit("item-click",e)):(s=e.position,l=e.item.navIndex,a.value?.scrollToFocused(e.item.navIndex))}),300)},onFItemFocused:e=>{clearTimeout(r),r=setTimeout((()=>{e.hasFocus&&l!=e.position&&(e.position,o.value?.scrollToIndex(e.item.startIndex,!0,802),o.value?.setItemSelected(e.item.startIndex,!0))}),400)}}}});const ta=e=>(b("data-v-cbd7c454"),e=e(),T(),e),na={focusable:!1,clipChildren:!1},oa={type:10001,name:"clv_item",class:"clv_item",focusable:!0,enableFocusBorder:!0,clipChildren:!1,eventClick:"",eventFocus:"",focusScale:1},aa=ta((()=>y("img",{class:"coverV",src:"${coverV}",focusable:!1,postDelay:"300"},null,-1))),ia={duplicateParentState:!0,showOnState:["focused"],focusable:!1,class:"clv_item_text_box"},sa=ta((()=>y("img",{src:"${mask}",class:"titMask",focusable:"false",postDelay:"300",duplicateParentState:!0},null,-1))),la=ta((()=>y("img",{class:"icon",src:"${icon}",focusable:!1,postDelay:"300"},null,-1))),ca={type:10001,name:"nav_item",class:"nav_item",focusable:!0,enableFocusBorder:!1,focusScale:"1",eventClick:"",eventFocus:"",clipChildren:!1},ra=ta((()=>y("div",{class:"line",focusable:!1,showOnState:"selected",duplicateParentState:!0},null,-1))),ua=ta((()=>y("div",{duplicateParentState:!0,class:"nav_item_text_focused",showOnState:"focused",focusable:!1,gradientBackground:{colors:["#FF2F7CEB","#FF1163D8"],cornerRadius:40}},null,-1))),da={class:"nav_item_text",focusable:!1,duplicateParentState:!0};var pa,fa,ga;ea.render=function(e,t,n,s,r,u){const d=o("text-view"),p=o("qt-list-view");return a(),i("div",na,[c(" listview second nav "),_(p,{class:l(e.className),ref:"content_list_view",clipChildren:!1,clipPadding:!1,onItemClick:e.onSItemClick,horizontal:"",blockFocusDirections:["left","right"],onItemFocused:e.onSItemFocused},{default:h((()=>[y("div",oa,[aa,y("div",ia,[sa,la,_(d,{focusable:!1,ellipsizeMode:2,fontSize:30,gravity:"centerVertical",lines:1,maxLines:1,class:"clv_item_text",text:"${assetTitle}",paddingRect:[14,0,0,0]})])]),f(e.$slots,"item")])),_:3},8,["class","onItemClick","onItemFocused"]),c(" listview first nav "),_(p,{class:l(e.classNavName),ref:"nav_list_view",clipChildren:!1,clipPadding:!1,onItemClick:e.onFItemClick,horizontal:"",blockFocusDirections:["left","right"],onItemFocused:e.onFItemFocused},{default:h((()=>[y("div",ca,[ra,ua,y("div",da,[_(d,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text_selected",text:"${categoryname}",showOnState:["selected"]}),_(d,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,maxLines:1,class:"text",text:"${categoryname}",showOnState:"focused"}),_(d,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text",text:"${categoryname}",showOnState:["normal"]})])]),f(e.$slots,"navItem")])),_:3},8,["class","onItemClick","onItemFocused"])])},ea.__scopeId="data-v-cbd7c454",ea.__file="src/classified-list-view/index.vue",function(e){e.QT_DIRECTION_UP="up",e.QT_DIRECTION_DOWN="down",e.QT_DIRECTION_RIGHT="right",e.QT_DIRECTION_LEFT="left"}(pa||(pa={})),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"}(fa||(fa={})),function(e){e[e.QT_NAV_BAR_ITEM_TYPE_TEXT=2e4]="QT_NAV_BAR_ITEM_TYPE_TEXT"}(ga||(ga={}));const ma=[L,z,ho,So,Ko,Zo,ea],ha=o=>{o.component("qt-loading-view",{setup(e,t){const o=n();return()=>x("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();F();let i=[],s=[],l=[],c="",r=-1,u=!1,d=-1,p=-1,f=-1,h=-1;g((()=>{t.openPage&&(r=1,u=!1,t.loadMore(r))}));const v=e=>{0==i.length&&(i=V(e),_(i,-1),s=e,t.openPage?T(i.concat([{type:1002,decoration:{top:18,bottom:18,right:30,left:30}}])):T(i),t.defaultFocus>-1&&(f&&clearTimeout(f),f=setTimeout((()=>{N(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(l.push(n),-1!=l.indexOf("push"))c="push";else{if(-1!=l.indexOf("splice"))return c="splice",function(...t){return e.splice(...t),-1!=l.indexOf("list")?(i[l[0]].list.splice(...t),P(Number(l[0]),i[l[0]])):1==t.length?E(Number(t[0]),i.length-t[0]+1):2==t.length?E(Number(t[0]),t[1]):t.length>2&&(0==t[1]?L(t[0],t.slice(2)):C(t[0],t[1],t.slice(2))),i.splice(t[0],...t.slice(1)),c="",l=[],Reflect.get(e,n,o)};if(-1!=l.indexOf("pop"))return c="pop",function(){return e.pop(),-1!=l.lastIndexOf("list")?(i[l[0]].list.pop(),P(Number(l[0]),i[l[0]])):(E(Number(i.length-1),1),i.pop()),c="",l=[],Reflect.get(e,n,o)};if(-1!=l.indexOf("forEach"))return c="forEach",function(a){return e.forEach((e=>{a(e)})),i=[],i=V(e),t.openPage?T(i.concat([{type:1002,decoration:{top:15,left:30}}])):T(i),c="",l=[],Reflect.get(e,n,o)};if(-1!=l.indexOf("concat"))return c="concat",function(a){return e=e.concat(a),-1!=l.lastIndexOf("list")?(i[l[0]].list=i[l[0]].list.concat(a),P(Number(l[0]),i[l[0]])):(i=i.concat(a),t.openPage&&!u?setTimeout((()=>{I(a.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300):S(a)),c="",l=[],Reflect.get(e,n,o)};c=""}const a=Reflect.get(e,n,o);return y(a)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?v(a):(-1==l.indexOf("push")&&(l=[]),a)},set(e,n,o,a){const r=e[n];b(e,n);const d=Reflect.set(e,n,o,a);if((!y(r)&&r!==o||y(r))&&"push"!=c)if(l.push(n),-1!=l.lastIndexOf("list")){let e=l.lastIndexOf("list"),t=l.lastIndexOf("list")+2,n={};for(let e=0;e<t;e++){let t=l[e];n=n?n[t]:s[t]}n.name="name"+l[e-1]+l[e+1],P(Number(l[0]),s[l[0]]),i[l[0]].list[l[e+1]]=s[l[0]].list[l[e+1]],i[l[0]].list[l[e+1]].name="name"+l[e-1]+l[e+1]}else i[l[0]]=s[l[0]],i[l[0]].name="name"+l[0],P(Number(l[0]),s[l[0]]);if(n&&"push"==c&&r!==o)console.log(n,"listview push"),-1!=l.lastIndexOf("list")?(l.push(n),i[l[0]].list.push(o)):(l.push(n),i.push(o));else{if("push"==c)if(-1!=l.lastIndexOf("list"))P(Number(l[0]),i[l[0]]);else{console.log(l,"listview push222"),console.log(i,"listview push222");let e=i.slice(l[1]);console.log(e,"listview push222"),h&&clearTimeout(h),h=t.openPage&&!u?setTimeout((()=>{I(e.concat([{type:1002,decoration:{bottom:18,right:30,left:30}}]),1)}),300):setTimeout((()=>{S(e)}),300)}c="",l=[]}return d}};return new Proxy(e,n)},_=(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&&_(o.list,n)}},y=e=>null!==e&&"object"==typeof e,b=(e,t)=>{Object.hasOwnProperty.call(e,t)},T=t=>{d&&clearTimeout(d),d=setTimeout((()=>{e.callUIFunction(a.value,"setListData",t)}),100)},S=t=>{e.callUIFunction(a.value,"addListData",t)},I=(t,n)=>{e.callUIFunction(a.value,"addListDataWithParams",[t,n])},E=(t,n)=>{e.callUIFunction(a.value,"deleteItemRange",[t,n])},P=(t,n)=>{e.callUIFunction(a.value,"updateItem",[t,n])},C=(t,n,o)=>{e.callUIFunction(a.value,"updateItemRange",[t,n,o])},L=(t,n)=>{e.callUIFunction(a.value,"insertItemRange",[t,n])},k=(t,n)=>{e.callUIFunction(a.value,"setSelectChildPosition",[t,n])},D=t=>{e.callUIFunction(a.value,"scrollToPosition",[t])},N=t=>{e.callUIFunction(a.value,"requestChildFocus",[t])};return m((()=>{i=[],s.length=0,l=[],u=!1,r=1,c="",d&&clearTimeout(d),f&&clearTimeout(f),h&&clearTimeout(h),p&&clearTimeout(p)})),o.expose({viewRef:a,init:v,undataItemName:_,hasChanged:(e,t)=>e!==t&&(e==e||t==t),scrollToIndex:(t,n,o)=>{e.callUIFunction(a.value,"scrollToPositionWithOffset",[t,o,n])},updateItem:P,updateItemList:C,hasFocus:t=>{e.callUIFunction(a.value,"hasFocus",(e=>{t(e)}))},updateItemProps:(t,n,o)=>{e.callUIFunction(a.value,"updateItemProps",[n,t,o,!0])},setListData:T,insertItem:L,addListData:S,addListDataWithParams:I,dispatchItemFunction:(t,n,o,i)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,n,o,i])},deleteItem:E,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:D,scrollToFocused:e=>{D(e),N(e)},scrollToSelected:(e,t)=>{D(e),k(e,t)},scrollToPositionOffset:(t,n,o,i,s)=>{e.callUIFunction(a.value,"scrollToPositionWithOffset",[n,i,o])},destroy:()=>{e.callUIFunction(a.value,"destroy",[])},setInitPosition:t=>{e.callUIFunction(a.value,"setInitPosition",[t])},setItemFocused:N,clearPostTask:()=>{e.callUIFunction(a.value,"clearAllPostTask",[])},clearFocus:()=>{e.callUIFunction(a.value,"clearFocus",[])},setItemSelected:k,blockRootFocus:()=>{e.callUIFunction(a.value,"blockRootFocus",[])},unBlockRootFocus:()=>{e.callUIFunction(a.value,"unBlockRootFocus",[])},setBackgroundColor:t=>{e.callUIFunction(a.value,"setBackgroundColor",[t])},stopPage:()=>{p&&clearTimeout(p),p=setTimeout((()=>{E(i.length,1)}),400),u=!0}}),()=>{const e=o.slots.default&&o.slots.default();return x("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=>{e.position==i.length-1-t.preloadNo&&(r++,t.loadMore(r)),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,i)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,n,o,i])},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 x("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 ma)o.component(ma[e].name,ma[e])};export{pa as QTDirections,ga as QTNavBarItemType,fa as QTScrollState,Ho as QTTabPageState,Fo as QTWaterfallItemType,Eo as QTWaterfallSectionType,ha as QuickTVUI,R 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 i,normalizeStyle as l,normalizeClass as s,createCommentVNode as c,withDirectives as r,vShow as u,createBlock as d,toDisplayString as f,renderSlot as p,watchEffect as g,onBeforeUnmount as m,withCtx as h,Fragment as v,createVNode as _,createElementVNode as y,pushScopeId as b,popScopeId as S,reactive as T,watch as I,h as x}from"vue";import{useESToast as E,useES as F,useESLog as P,ESLogLevel as C}from"@extscreen/es3-core";var L=t({name:"qt-button",props:{size:{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},disabled:Boolean,circle:Boolean,round:Boolean,square:Boolean,buttonStyle:Object,textStyle:Object,iconStyle:Object,focusIconStyle:Object,iconParentStyle:Object},emits:["focus","click"],setup(t,o){const a=n(),i=n(!1);return{focused:i,requestFocus:function(){e.callUIFunction(a.value,"requestFocus",[])},requestFocusDirectly:function(){e.callUIFunction(a.value,"requestFocusDirectly",[])},onFocus:function(e){i.value=e.isFocused,o.emit("focus",e.isFocused)},onClick:function(e){o.emit("click")}}}});const k=["focusable","enableFocusBorder","focusScale"],D=["gradientBackground"],N=["gradientBackground"],w=["gradientBackground"],O=["src"],A=["src"];function R(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})}))}L.render=function(e,t,n,g,m,h){const v=o("text-view");return a(),i("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:l(e.buttonStyle),class:s(["quick-button--default",e.size?"quick-button--"+e.size:"",{"is-disabled-button":e.disabled,"is-circle":e.circle,"is-round":e.round,"is-square":e.square}])},[c(" gradient "),e.gradientFocusBackground?(a(),i("div",{key:0,class:"button-gradient-background-css",gradientBackground:e.gradientFocusBackground,focusable:!1,showOnState:"focused"},null,8,D)):c("v-if",!0),e.gradientSelectedBackground?(a(),i("div",{key:1,class:"button-gradient-background-css",gradientBackground:e.gradientSelectedBackground,focusable:!1,showOnState:"selected"},null,8,N)):c("v-if",!0),e.gradientBackground?(a(),i("div",{key:2,class:"button-gradient-background-css",gradientBackground:e.gradientBackground,focusable:!1,showOnState:"normal"},null,8,w)):c("v-if",!0),c(" -----------------------------icon--------------------------------- "),!e.icon&&!e.focusIcon||e.$slots.default?c("v-if",!0):(a(),i("div",{key:3,duplicateParentState:!0,style:l(e.iconParentStyle),flexStyle:"${iconParentStyle}",class:s(["quick-button-icon-parent",e.size?"quick-button-icon--parent"+e.size:""])},[e.icon&&!e.$slots.default?r((a(),i("img",{key:0,style:l(e.iconStyle),flexStyle:"${iconStyle}",duplicateParentState:!0,class:s(["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,O)),[[u,!e.focused]]):c("v-if",!0),e.focusIcon&&!e.$slots.default?r((a(),i("img",{key:1,style:l(e.focusIconStyle?e.focusIconStyle:e.iconStyle),flexStyle:"${iconStyle}",class:s(["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,A)),[[u,e.focused]]):c("v-if",!0)],6)),c(" ------------------------------------------------------------------- "),c(" text "),e.enableFlexStyle?(a(),d(v,{key:4,style:l(e.textStyle),duplicateParentState:"",class:s([e.size?"quick-button-text--"+e.size:"",{"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(),i("span",{key:5,style:l(e.textStyle),duplicateParentState:"",class:s([e.size?"quick-button-text--"+e.size:"",{"is-disabled-text":e.disabled,"is-square-text":e.square}]),focusable:!1},f(e.text),7)):c("v-if",!0),p(e.$slots,"default")],46,k)},L.__scopeId="data-v-46a594e4",L.__file="src/button/index.vue";const B=e=>e.map(V),$=e=>{const t=Object.keys(e),n={};return t.forEach((t=>{n[t]=V(e[t])})),n};function V(e){return e?"object"!=typeof e?e:Array.isArray(e)?B(e):$(e):e}var U=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:()=>[]}},emits:["item-click","scroll","item-unbind","scroll-state-changed","item-bind","item-focused"],setup(e,t){E(),F();const o=n();let a=n(2.5),i=[],l=[],s=[],c=[],r="",u=-1,d=!1,f=-1,p=-1,h=-1,v=-1;g((()=>{e.openPage&&(u=1,d=!1,e.loadMore(u))}));const _=t=>{0==i.length&&(i=V(t),l=t,a.value<2.2?(y(),e.openPage&&e.pageSize&&c.length>=e.pageSize/e.spanCount?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):e.openPage&&e.pageSize&&i.length>=e.pageSize?o.value.setListData(i.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(i),e.defaultFocus>-1&&(h&&clearTimeout(h),h=setTimeout((()=>{S(e.defaultFocus),T(e.defaultFocus)}),800)));let n={get(t,n,l){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.push(n),-1!=s.indexOf("push"))r="push";else{if(-1!=s.indexOf("splice"))return r="splice",function(...e){if(t.splice(...e),a.value<2.2)if(y(),1==e.length||2==e.length)o.value.setListData(c);else if(0==e[1])o.value.setListData(c);else{let t=-1,n=0,a=0;for(let o=0;o<c.length;o++){const i=c[o];if("1003"==i.type)t++,e[0]==t&&(n=o),e[0]+e[1]-1==t&&(a=o);else for(let l=0;l<i.list.length;l++)i.list[l],t++,e[0]==t&&(n=o),e[0]+e[1]-1==t&&(a=o)}o.value.updateItemList(n,a-n+1,c.slice(n,a+1))}else 1==e.length?o.value.deleteItem(Number(e[0]),i.length-e[0]):2==e.length?o.value.deleteItem(Number(e[0]),e[1]):e.length>2&&(0==e[1]?a.value>2.29&&x(e[0],e.slice(2)):o.value.updateItemList(e[0],e[1],e.slice(2)));return i.splice(e[0],...e.slice(1)),r="",s=[],Reflect.get(t,n,l)};if(-1!=s.indexOf("pop"))return r="pop",function(){return t.pop(),a.value<2.2?(c[c.length-1].list.length<1&&c.pop(),c[c.length-1].list.pop(),o.value.updateItem(Number(c.length-1),c[c.length-1])):o.value.deleteItem(Number(i.length-1),1),i.pop(),r="",s=[],Reflect.get(t,n,l)};if(-1!=s.indexOf("forEach"))return r="forEach",function(u){return t.forEach((e=>{u(e)})),i=[],i=V(t),a.value<2.2?(y(),e.openPage&&e.pageSize&&c.length>=e.pageSize&&!d?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):e.openPage&&e.pageSize&&i.length>=e.pageSize&&!d?o.value.setListData(i.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(i),r="",s=[],Reflect.get(t,n,l)};if(-1!=s.indexOf("concat"))return r="concat",function(f){if("[object Array]"===Object.prototype.toString.call(f))if(t=t.concat(f),i=i.concat(f),a.value<2.2){v&&clearTimeout(v);let t=c.length,n=c.slice(c.length-1)[0];y();let a=c.slice(t);e.openPage&&!d?e.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<e.spanCount?(a=c.slice(t-1),v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),2)}),300)):v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):v=setTimeout((()=>{o.value.addListData(a.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):o.value.setListData(c)}else v=e.openPage&&!d?e.pageSize||2!=u?setTimeout((()=>{o.value.addListDataWithParams(f.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{o.value.addListData(f.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{o.value.addListData(f)}),300);else console.log("concat:参数类型必须为数组");return r="",s=[],Reflect.get(t,n,l)};r=""}const f=Reflect.get(t,n,l);return b(f)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?_(f):(-1==s.indexOf("push")&&(s=[]),f)},set(t,n,f,p){const g=t[n],m=Reflect.set(t,n,f,p);if((!b(g)&&g!==f||b(g))&&"push"!=r)if(s.push(n),i[s[0]]=l[s[0]],a.value<2.2){let e=s[0],t=-1;for(let n=0;n<c.length;n++){const a=c[n];if("1003"==a.type)t++,t==e&&(c[n]=i[s[0]],o.value.updateItem(Number(n),c[n]));else for(let l=0;l<a.list.length;l++)if(a.list[l],t++,t==e){c[n].list[l]=i[s[0]];let e=c[n].list[l];e.decoration&&(e.decoration.top&&(e.decoration.top=0),e.decoration.bottom&&(e.decoration.bottom=0)),o.value.updateItem(Number(n),c[n])}}}else o.value.updateItem(Number(s[0]),l[s[0]]);if(n&&"push"==r&&g!==f)s.push(n),i.push(f);else{if("push"==r&&s.length>1)if(a.value<2.2){v&&clearTimeout(v);let t=c.length,n=c.slice(c.length-1)[0];y();let a=c.slice(t);e.openPage&&!d?e.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<e.spanCount?(a=c.slice(t-1),v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),2)}),300)):v=setTimeout((()=>{o.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):v=setTimeout((()=>{o.value.addListData(a.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):o.value.setListData(c)}else{let t=i.slice(s[1]);v&&clearTimeout(v),v=e.openPage&&!d?e.pageSize||2!=u?setTimeout((()=>{o.value.addListDataWithParams(t.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{o.value.addListData(t.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{o.value.addListData(t)}),300)}r="",s=[]}return m}};return new Proxy(t,n)},y=()=>{let t=V(i);c=[];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)c.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++,c.push(l)}}},b=e=>null!==e&&"object"==typeof e,S=e=>{if(a.value<2.2){let t=-1;for(let n=0;n<c.length;n++){const a=c[n];if("1003"==a.type)t++,t==e&&o.value.scrollToPosition(n);else for(let i=0;i<a.list.length;i++)a.list[i],t++,t==e&&o.value.scrollToPosition(n)}}else o.value.scrollToPosition(e)},T=e=>{if(a.value<2.2){let t=-1,n=0,a=0;for(let o=0;o<c.length;o++){const i=c[o];if("1003"==i.type)t++;else for(let l=0;l<i.list.length;l++)i.list[l],t++,e==t&&(n=o,a=l)}o.value.dispatchItemFunction(n,"tv_list_inner","requestChildFocus",[a])}else o.value.requestFocus(e)},I=(e,t)=>{if(a.value<2.2){let t=-1,n=0,a=0;for(let o=0;o<c.length;o++){const i=c[o];if("1003"==i.type)t++;else for(let l=0;l<i.list.length;l++)i.list[l],t++,e==t&&(n=o,a=l)}o.value.dispatchItemFunction(n,"tv_list_inner","setSelectChildPosition",[a])}else o.value.setSelectPosition(e,t)},x=(e,t)=>{o.value.addItem(e,t)},P=()=>{o.value.destroy()};return m((()=>{i=[],c=[],l.length=0,d=!1,s=[],u=1,d=!1,r="",P(),f&&clearTimeout(f),v&&clearTimeout(v),p&&clearTimeout(p),h&&clearTimeout(h)})),{tv_list:o,apkVersion:a,init:_,onItemClick:e=>{if(a.value<2.2){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const i=c[a];if("1003"==i.type)t++;else for(let l=0;l<i.list.length;l++)t++,n==l&&o==a&&(e.position=t)}}t.emit("item-click",e)},onItemBind:n=>{a.value<2.2?d||n.position!=c.length-1-e.preloadNo/e.spanCount||(u++,e.loadMore(u)):d||n.position!=i.length-1-e.preloadNo||(u++,e.loadMore(u)),t.emit("item-bind",n)},onItemFocused:e=>{if(a.value<2.2){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const i=c[a];if("1003"==i.type)t++;else for(let l=0;l<i.list.length;l++)t++,n==l&&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=>{p&&clearTimeout(p),p=setTimeout((()=>{a.value<2.2?e.pageSize?e.pageSize/e.spanCount<=c.length&&o.value.deleteItem(c.length,1):u>2&&o.value.deleteItem(c.length,1):e.pageSize?e.pageSize<=i.length&&o.value.deleteItem(i.length,1):u>2&&o.value.deleteItem(i.length,1)}),400),d=!0},scrollToTop:()=>{o.value.scrollToTop()},clearFocus:()=>{o.value.clearFocus()},blockRootFocus:()=>{o.value.blockRootFocus()},unBlockRootFocus:()=>{o.value.unBlockRootFocus()},setDisplay:e=>{o.value.setDisplay(e)},scrollToPosition:S,scrollToIndex:(e,t,n)=>{if(a.value<2.2){let a=-1;for(let i=0;i<c.length;i++){const l=c[i];if("1003"==l.type)a++,a==e&&o.value.scrollToIndex(0,i,t,n);else for(let s=0;s<l.list.length;s++)l.list[s],a++,a==e&&o.value.scrollToIndex(0,i,t,n)}}else o.value.scrollToIndex(0,e,t,n)},setItemFocused:T,scrollToFocused:e=>{S(e),T(e)},setItemSelected:I,scrollToSelected:(e,t)=>{S(e),I(e,t)},updateItemProps:(e,t,n)=>{o.value.updateItemProps(e,t,n)},setInitPosition:e=>{o.value.setInitPosition(e)},setListData:e=>{f&&clearTimeout(f),f=setTimeout((()=>{o.value.setListData(e)}),100)},insertItem:x,clearPostTask:()=>{o.value.clearPostTask()},destroy:P}}});function z(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]}U.render=function(e,t,n,s,c,r){const u=o("tv-list");return a(),d(u,{class:"tv_list",ref:"tv_list",name:"tv_list",spanCount:e.apkVersion<2.2?"":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:h((()=>[e.apkVersion<2.2?(a(),i(v,{key:0},[p(e.$slots,"header"),_(u,{class:"tv_list_inner",ref:"${name}",list:"${list}",name:"tv_list_inner",type:"1",clipChildren:!1,focusable:!1,horizontal:"",style:l({width:e.areaWidth+"px"}),endHintEnabled:!1,blockFocusDirections:e.blockFocusDirections},{default:h((()=>[p(e.$slots,"default")])),_:3},8,["style","blockFocusDirections"]),p(e.$slots,"loading")],64)):(a(),i(v,{key:1},[p(e.$slots,"header"),p(e.$slots,"default"),p(e.$slots,"loading")],64))])),_:3},8,["spanCount","onItemBind","onItemClick","onItemFocused","onItemUnbind","onScroll","onScrollStateChanged","onSetListData","blockFocusDirections"])},U.__file="src/grid-view/index.vue";const W="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const q=()=>{},M=/^on[^a-z]/,G=e=>M.test(e),Q=Object.assign,j=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},Y=Object.prototype.hasOwnProperty,H=(e,t)=>Y.call(e,t),K=Array.isArray,X=e=>"[object Map]"===ie(e),J=e=>"[object Set]"===ie(e),Z=e=>"function"==typeof e,ee=e=>"string"==typeof e,te=e=>"symbol"==typeof e,ne=e=>null!==e&&"object"==typeof e,oe=e=>ne(e)&&Z(e.then)&&Z(e.catch),ae=Object.prototype.toString,ie=e=>ae.call(e),le=e=>ie(e).slice(8,-1),se=e=>"[object Object]"===ie(e),ce=e=>ee(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,re=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),ue=(e,t)=>!Object.is(e,t),de=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let fe;const pe=()=>fe||(fe="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function ge(e){if(K(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],a=ee(o)?_e(o):ge(o);if(a)for(const e in a)t[e]=a[e]}return t}return ee(e)||ne(e)?e:void 0}const me=/;(?![^(]*\))/g,he=/:([^]+)/,ve=/\/\*[^]*?\*\//g;function _e(e){const t={};return e.replace(ve,"").split(me).forEach((e=>{if(e){const n=e.split(he);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ye(e){let t="";if(ee(e))t=e;else if(K(e))for(let n=0;n<e.length;n++){const o=ye(e[n]);o&&(t+=o+" ")}else if(ne(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function be(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let Se;const Te=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Ie=e=>(e.w&Pe)>0,xe=e=>(e.n&Pe)>0,Ee=new WeakMap;let Fe=0,Pe=1;const Ce=30;let Le;const ke=Symbol("production"!==process.env.NODE_ENV?"iterate":""),De=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");class Ne{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=Se){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=Le,t=Oe;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=Le,Le=this,Oe=!0,Pe=1<<++Fe,Fe<=Ce?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Pe})(this):we(this),this.fn()}finally{Fe<=Ce&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const a=t[o];Ie(a)&&!xe(a)?a.delete(e):t[n++]=a,a.w&=~Pe,a.n&=~Pe}t.length=n}})(this),Pe=1<<--Fe,Le=this.parent,Oe=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){Le===this?this.deferStop=!0:this.active&&(we(this),this.onStop&&this.onStop(),this.active=!1)}}function we(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Oe=!0;const Ae=[];function Re(){Ae.push(Oe),Oe=!1}function Be(){const e=Ae.pop();Oe=void 0===e||e}function $e(e,t,n){if(Oe&&Le){let o=Ee.get(e);o||Ee.set(e,o=new Map);let a=o.get(n);a||o.set(n,a=Te());!function(e,t){let n=!1;Fe<=Ce?xe(e)||(e.n|=Pe,n=!Ie(e)):n=!e.has(Le);n&&(e.add(Le),Le.deps.push(e),"production"!==process.env.NODE_ENV&&Le.onTrack&&Le.onTrack(Q({effect:Le},t)))}(a,"production"!==process.env.NODE_ENV?{effect:Le,target:e,type:t,key:n}:void 0)}}function Ve(e,t,n,o,a,i){const l=Ee.get(e);if(!l)return;let s=[];if("clear"===t)s=[...l.values()];else if("length"===n&&K(e)){const e=Number(o);l.forEach(((t,n)=>{("length"===n||n>=e)&&s.push(t)}))}else switch(void 0!==n&&s.push(l.get(n)),t){case"add":K(e)?ce(n)&&s.push(l.get("length")):(s.push(l.get(ke)),X(e)&&s.push(l.get(De)));break;case"delete":K(e)||(s.push(l.get(ke)),X(e)&&s.push(l.get(De)));break;case"set":X(e)&&s.push(l.get(ke))}const c="production"!==process.env.NODE_ENV?{target:e,type:t,key:n,newValue:o,oldValue:a,oldTarget:i}:void 0;if(1===s.length)s[0]&&("production"!==process.env.NODE_ENV?Ue(s[0],c):Ue(s[0]));else{const e=[];for(const t of s)t&&e.push(...t);"production"!==process.env.NODE_ENV?Ue(Te(e),c):Ue(Te(e))}}function Ue(e,t){const n=K(e)?e:[...e];for(const e of n)e.computed&&ze(e,t);for(const e of n)e.computed||ze(e,t)}function ze(e,t){(e!==Le||e.allowRecurse)&&("production"!==process.env.NODE_ENV&&e.onTrigger&&e.onTrigger(Q({effect:e},t)),e.scheduler?e.scheduler():e.run())}const We=z("__proto__,__v_isRef,__isVue"),qe=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(te)),Me=Ke(),Ge=Ke(!0),Qe=Ke(!0,!0),je=Ye();function Ye(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=At(this);for(let e=0,t=this.length;e<t;e++)$e(n,"get",e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(At)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){Re();const n=At(this)[t].apply(this,e);return Be(),n}})),e}function He(e){const t=At(this);return $e(t,"has",e),t.hasOwnProperty(e)}function Ke(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?Ft:Et:t?xt:It).get(n))return n;const i=K(n);if(!e){if(i&&H(je,o))return Reflect.get(je,o,a);if("hasOwnProperty"===o)return He}const l=Reflect.get(n,o,a);return(te(o)?qe.has(o):We(o))?l:(e||$e(n,"get",o),t?l:$t(l)?i&&ce(o)?l:l.value:ne(l)?e?Ct(l):Pt(l):l)}}function Xe(e=!1){return function(t,n,o,a){let i=t[n];if(Nt(i)&&$t(i)&&!$t(o))return!1;if(!e&&(wt(o)||Nt(o)||(i=At(i),o=At(o)),!K(t)&&$t(i)&&!$t(o)))return i.value=o,!0;const l=K(t)&&ce(n)?Number(n)<t.length:H(t,n),s=Reflect.set(t,n,o,a);return t===At(a)&&(l?ue(o,i)&&Ve(t,"set",n,o,i):Ve(t,"add",n,o)),s}}const Je={get:Me,set:Xe(),deleteProperty:function(e,t){const n=H(e,t),o=e[t],a=Reflect.deleteProperty(e,t);return a&&n&&Ve(e,"delete",t,void 0,o),a},has:function(e,t){const n=Reflect.has(e,t);return te(t)&&qe.has(t)||$e(e,"has",t),n},ownKeys:function(e){return $e(e,"iterate",K(e)?"length":ke),Reflect.ownKeys(e)}},Ze={get:Ge,set:(e,t)=>("production"!==process.env.NODE_ENV&&be(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0),deleteProperty:(e,t)=>("production"!==process.env.NODE_ENV&&be(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0)},et=Q({},Ze,{get:Qe}),tt=e=>e,nt=e=>Reflect.getPrototypeOf(e);function ot(e,t,n=!1,o=!1){const a=At(e=e.__v_raw),i=At(t);n||(t!==i&&$e(a,"get",t),$e(a,"get",i));const{has:l}=nt(a),s=o?tt:n?Bt:Rt;return l.call(a,t)?s(e.get(t)):l.call(a,i)?s(e.get(i)):void(e!==a&&e.get(t))}function at(e,t=!1){const n=this.__v_raw,o=At(n),a=At(e);return t||(e!==a&&$e(o,"has",e),$e(o,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function it(e,t=!1){return e=e.__v_raw,!t&&$e(At(e),"iterate",ke),Reflect.get(e,"size",e)}function lt(e){e=At(e);const t=At(this);return nt(t).has.call(t,e)||(t.add(e),Ve(t,"add",e,e)),this}function st(e,t){t=At(t);const n=At(this),{has:o,get:a}=nt(n);let i=o.call(n,e);i?"production"!==process.env.NODE_ENV&&Tt(n,o,e):(e=At(e),i=o.call(n,e));const l=a.call(n,e);return n.set(e,t),i?ue(t,l)&&Ve(n,"set",e,t,l):Ve(n,"add",e,t),this}function ct(e){const t=At(this),{has:n,get:o}=nt(t);let a=n.call(t,e);a?"production"!==process.env.NODE_ENV&&Tt(t,n,e):(e=At(e),a=n.call(t,e));const i=o?o.call(t,e):void 0,l=t.delete(e);return a&&Ve(t,"delete",e,void 0,i),l}function rt(){const e=At(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?X(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Ve(e,"clear",void 0,void 0,n),o}function ut(e,t){return function(n,o){const a=this,i=a.__v_raw,l=At(i),s=t?tt:e?Bt:Rt;return!e&&$e(l,"iterate",ke),i.forEach(((e,t)=>n.call(o,s(e),s(t),a)))}}function dt(e,t,n){return function(...o){const a=this.__v_raw,i=At(a),l=X(i),s="entries"===e||e===Symbol.iterator&&l,c="keys"===e&&l,r=a[e](...o),u=n?tt:t?Bt:Rt;return!t&&$e(i,"iterate",c?De:ke),{next(){const{value:e,done:t}=r.next();return t?{value:e,done:t}:{value:s?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function ft(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${re(e)} operation ${n}failed: target is readonly.`,At(this))}return"delete"!==e&&this}}function pt(){const e={get(e){return ot(this,e)},get size(){return it(this)},has:at,add:lt,set:st,delete:ct,clear:rt,forEach:ut(!1,!1)},t={get(e){return ot(this,e,!1,!0)},get size(){return it(this)},has:at,add:lt,set:st,delete:ct,clear:rt,forEach:ut(!1,!0)},n={get(e){return ot(this,e,!0)},get size(){return it(this,!0)},has(e){return at.call(this,e,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:ut(!0,!1)},o={get(e){return ot(this,e,!0,!0)},get size(){return it(this,!0)},has(e){return at.call(this,e,!0)},add:ft("add"),set:ft("set"),delete:ft("delete"),clear:ft("clear"),forEach:ut(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((a=>{e[a]=dt(a,!1,!1),n[a]=dt(a,!0,!1),t[a]=dt(a,!1,!0),o[a]=dt(a,!0,!0)})),[e,n,t,o]}const[gt,mt,ht,vt]=pt();function _t(e,t){const n=t?e?vt:ht:e?mt:gt;return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(H(n,o)&&o in t?n:t,o,a)}const yt={get:_t(!1,!1)},bt={get:_t(!0,!1)},St={get:_t(!0,!0)};function Tt(e,t,n){const o=At(n);if(o!==n&&t.call(e,o)){const t=le(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 It=new WeakMap,xt=new WeakMap,Et=new WeakMap,Ft=new WeakMap;function Pt(e){return Nt(e)?e:kt(e,!1,Je,yt,It)}function Ct(e){return kt(e,!0,Ze,bt,Et)}function Lt(e){return kt(e,!0,et,St,Ft)}function kt(e,t,n,o,a){if(!ne(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 i=a.get(e);if(i)return i;const l=(s=e).__v_skip||!Object.isExtensible(s)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(le(s));var s;if(0===l)return e;const c=new Proxy(e,2===l?o:n);return a.set(e,c),c}function Dt(e){return Nt(e)?Dt(e.__v_raw):!(!e||!e.__v_isReactive)}function Nt(e){return!(!e||!e.__v_isReadonly)}function wt(e){return!(!e||!e.__v_isShallow)}function Ot(e){return Dt(e)||Nt(e)}function At(e){const t=e&&e.__v_raw;return t?At(t):e}const Rt=e=>ne(e)?Pt(e):e,Bt=e=>ne(e)?Ct(e):e;function $t(e){return!(!e||!0!==e.__v_isRef)}const Vt={get:(e,t,n)=>{return $t(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const a=e[t];return $t(a)&&!$t(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};const Ut=[];function zt(e,...t){if("production"===process.env.NODE_ENV)return;Re();const n=Ut.length?Ut[Ut.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=function(){let e=Ut[Ut.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)Gt(o,n,11,[e+t.join(""),n&&n.proxy,a.map((({vnode:e})=>`at <${co(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 <${co(e.component,e.type,o)}`,i=">"+n;return e.props?[a,...Wt(e.props),i]:[a+i]}(e))})),t}(a)),console.warn(...n)}Be()}function Wt(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...qt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function qt(e,t,n){return ee(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:$t(t)?(t=qt(e,At(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):Z(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=At(t),n?t:[`${e}=`,t])}const Mt={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 Gt(e,t,n,o){let a;try{a=o?e(...o):e()}catch(e){jt(e,t,n)}return a}function Qt(e,t,n,o){if(Z(e)){const a=Gt(e,t,n,o);return a&&oe(a)&&a.catch((e=>{jt(e,t,n)})),a}const a=[];for(let i=0;i<e.length;i++)a.push(Qt(e[i],t,n,o));return a}function jt(e,t,n,o=!0){const a=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,i="production"!==process.env.NODE_ENV?Mt[n]:n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,a,i))return;o=o.parent}const l=t.appContext.config.errorHandler;if(l)return void Gt(l,null,10,[e,a,i])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const i=Mt[t];if(n&&(a=n,Ut.push(a)),zt("Unhandled error"+(i?` during execution of ${i}`:"")),n&&Ut.pop(),o)throw e;console.error(e)}else console.error(e);var a}(e,n,a,o)}let Yt=!1,Ht=!1;const Kt=[];let Xt=0;const Jt=[];let Zt=null,en=0;const tn=Promise.resolve();let nn=null;const on=100;function an(e){const t=nn||tn;return e?t.then(this?e.bind(this):e):t}function ln(e){Kt.length&&Kt.includes(e,Yt&&e.allowRecurse?Xt+1:Xt)||(null==e.id?Kt.push(e):Kt.splice(function(e){let t=Xt+1,n=Kt.length;for(;t<n;){const o=t+n>>>1;rn(Kt[o])<e?t=o+1:n=o}return t}(e.id),0,e),sn())}function sn(){Yt||Ht||(Ht=!0,nn=tn.then(dn))}function cn(e){K(e)?Jt.push(...e):Zt&&Zt.includes(e,e.allowRecurse?en+1:en)||Jt.push(e),sn()}const rn=e=>null==e.id?1/0:e.id,un=(e,t)=>{const n=rn(e)-rn(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function dn(e){Ht=!1,Yt=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Kt.sort(un);const t="production"!==process.env.NODE_ENV?t=>fn(e,t):q;try{for(Xt=0;Xt<Kt.length;Xt++){const e=Kt[Xt];if(e&&!1!==e.active){if("production"!==process.env.NODE_ENV&&t(e))continue;Gt(e,null,14)}}}finally{Xt=0,Kt.length=0,function(e){if(Jt.length){const t=[...new Set(Jt)];if(Jt.length=0,Zt)return void Zt.push(...t);for(Zt=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Zt.sort(((e,t)=>rn(e)-rn(t))),en=0;en<Zt.length;en++)"production"!==process.env.NODE_ENV&&fn(e,Zt[en])||Zt[en]();Zt=null,en=0}}(e),Yt=!1,nn=null,(Kt.length||Jt.length)&&dn(e)}}function fn(e,t){if(e.has(t)){const n=e.get(t);if(n>on){const e=t.ownerInstance,n=e&&so(e.type);return zt(`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 pn=new Set;"production"!==process.env.NODE_ENV&&(pe().__VUE_HMR_RUNTIME__={createRecord:vn((function(e,t){if(gn.has(e))return!1;return gn.set(e,{initialDef:mn(t),instances:new Set}),!0})),rerender:vn((function(e,t){const n=gn.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach((e=>{t&&(e.render=t,mn(e.type).render=t),e.renderCache=[],e.update()}))})),reload:vn((function(e,t){const n=gn.get(e);if(!n)return;t=mn(t),hn(n.initialDef,t);const o=[...n.instances];for(const e of o){const o=mn(e.type);pn.has(o)||(o!==n.initialDef&&hn(o,t),pn.add(o)),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(pn.add(o),e.ceReload(t.styles),pn.delete(o)):e.parent?ln(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.")}cn((()=>{for(const e of o)pn.delete(mn(e.type))}))}))});const gn=new Map;function mn(e){return ro(e)?e.__vccOpts:e}function hn(e,t){Q(e,t);for(const n in e)"__file"===n||n in t||delete e[n]}function vn(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 _n=null,yn=null;const bn={};function Sn(e,t,{immediate:n,deep:o,flush:a,onTrack:i,onTrigger:l}=W){var s;"production"===process.env.NODE_ENV||t||(void 0!==n&&zt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&zt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const c=e=>{zt("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.")},r=Se===(null==(s=to)?void 0:s.scope)?to:null;let u,d,f=!1,p=!1;if($t(e)?(u=()=>e.value,f=wt(e)):Dt(e)?(u=()=>e,o=!0):K(e)?(p=!0,f=e.some((e=>Dt(e)||wt(e))),u=()=>e.map((e=>$t(e)?e.value:Dt(e)?In(e):Z(e)?Gt(e,r,2):void("production"!==process.env.NODE_ENV&&c(e))))):Z(e)?u=t?()=>Gt(e,r,2):()=>{if(!r||!r.isUnmounted)return d&&d(),Qt(e,r,3,[g])}:(u=q,"production"!==process.env.NODE_ENV&&c(e)),t&&o){const e=u;u=()=>In(e())}let g=e=>{d=_.onStop=()=>{Gt(e,r,4)}},m=p?new Array(e.length).fill(bn):bn;const h=()=>{if(_.active)if(t){const e=_.run();(o||f||(p?e.some(((e,t)=>ue(e,m[t]))):ue(e,m)))&&(d&&d(),Qt(t,r,3,[e,m===bn?void 0:p&&m[0]===bn?[]:m,g]),m=e)}else _.run()};let v;h.allowRecurse=!!t,"sync"===a?v=h:"post"===a?v=()=>Vn(h,r&&r.suspense):(h.pre=!0,r&&(h.id=r.uid),v=()=>ln(h));const _=new Ne(u,v);"production"!==process.env.NODE_ENV&&(_.onTrack=i,_.onTrigger=l),t?n?h():m=_.run():"post"===a?Vn(_.run.bind(_),r&&r.suspense):_.run();return()=>{_.stop(),r&&r.scope&&j(r.scope.effects,_)}}function Tn(e,t,n){const o=this.proxy,a=ee(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 i;Z(t)?i=t:(i=t.handler,n=t);const l=to;oo(this);const s=Sn(a,i.bind(o),n);return l?oo(l):ao(),s}function In(e,t){if(!ne(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),$t(e))In(e.value,t);else if(K(e))for(let n=0;n<e.length;n++)In(e[n],t);else if(J(e)||X(e))e.forEach((e=>{In(e,t)}));else if(se(e))for(const n in e)In(e[n],t);return e}function xn(e,t){return Z(e)?(()=>Q({name:e.name},t,{setup:e}))():e}const En=Symbol.for("v-ndc"),Fn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((n=e.exposed,de(n,"__v_skip",!0),Dt(t=n)?t:new Proxy(t,Vt)),{get:(t,n)=>n in t?t[n]:n in Pn?Pn[n](e):void 0,has:(e,t)=>t in e||t in Pn}));var t;var n}(e)||e.proxy:Fn(e.parent):null,Pn=Q(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?Lt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?Lt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?Lt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?Lt(e.refs):e.refs,$parent:e=>Fn(e.parent),$root:e=>Fn(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:i,config:{optionMergeStrategies:l}}=e.appContext,s=i.get(t);let c;s?c=s:a.length||n||o?(c={},a.length&&a.forEach((e=>Nn(c,e,l,!0))),Nn(c,t,l)):c=t;ne(t)&&i.set(t,c);return c}(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>ln(e.update)),$nextTick:e=>e.n||(e.n=an.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?Tn.bind(e):q}),Cn=(e,t)=>e!==W&&!e.__isScriptSetup&&H(e,t),Ln={get({_:e},t){const{ctx:n,setupState:o,data:a,props:i,accessCache:l,type:s,appContext:c}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;let r;if("$"!==t[0]){const s=l[t];if(void 0!==s)switch(s){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return i[t]}else{if(Cn(o,t))return l[t]=1,o[t];if(a!==W&&H(a,t))return l[t]=2,a[t];if((r=e.propsOptions[0])&&H(r,t))return l[t]=3,i[t];if(n!==W&&H(n,t))return l[t]=4,n[t];__VUE_OPTIONS_API__&&!Dn||(l[t]=0)}}const u=Pn[t];let d,f;return u?("$attrs"===t?($e(e,"get",t),process.env.NODE_ENV):"production"!==process.env.NODE_ENV&&"$slots"===t&&$e(e,"get",t),u(e)):(d=s.__cssModules)&&(d=d[t])?d:n!==W&&H(n,t)?(l[t]=4,n[t]):(f=c.config.globalProperties,H(f,t)?f[t]:void("production"===process.env.NODE_ENV||!_n||ee(t)&&0===t.indexOf("__v")||(a!==W&&(e=>"_"===e||"$"===e)(t[0])&&H(a,t)?zt(`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===_n&&zt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,n){const{data:o,setupState:a,ctx:i}=e;return Cn(a,t)?(a[t]=n,!0):"production"!==process.env.NODE_ENV&&a.__isScriptSetup&&H(a,t)?(zt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==W&&H(o,t)?(o[t]=n,!0):H(e.props,t)?("production"!==process.env.NODE_ENV&&zt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&zt(`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(i,t,{enumerable:!0,configurable:!0,value:n}):i[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,propsOptions:i}},l){let s;return!!n[l]||e!==W&&H(e,l)||Cn(t,l)||(s=i[0])&&H(s,l)||H(o,l)||H(Pn,l)||H(a.config.globalProperties,l)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:H(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function kn(e){return K(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}"production"!==process.env.NODE_ENV&&(Ln.ownKeys=e=>(zt("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 Dn=!0;function Nn(e,t,n,o=!1){const{mixins:a,extends:i}=t;i&&Nn(e,i,n,!0),a&&a.forEach((t=>Nn(e,t,n,!0)));for(const a in t)if(o&&"expose"===a)"production"!==process.env.NODE_ENV&&zt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=wn[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const wn={data:On,props:$n,emits:$n,methods:Bn,computed:Bn,beforeCreate:Rn,created:Rn,beforeMount:Rn,mounted:Rn,beforeUpdate:Rn,updated:Rn,beforeDestroy:Rn,beforeUnmount:Rn,destroyed:Rn,unmounted:Rn,activated:Rn,deactivated:Rn,errorCaptured:Rn,serverPrefetch:Rn,components:Bn,directives:Bn,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]=Rn(e[o],t[o]);return n},provide:On,inject:function(e,t){return Bn(An(e),An(t))}};function On(e,t){return t?e?function(){return Q(Z(e)?e.call(this,this):e,Z(t)?t.call(this,this):t)}:t:e}function An(e){if(K(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Rn(e,t){return e?[...new Set([].concat(e,t))]:t}function Bn(e,t){return e?Q(Object.create(null),e,t):t}function $n(e,t){return e?K(e)&&K(t)?[...new Set([...e,...t])]:Q(Object.create(null),kn(e),kn(null!=t?t:{})):t}const Vn=function(e,t){t&&t.pendingBranch?K(e)?t.effects.push(...e):t.effects.push(e):cn(e)},Un=Symbol.for("v-fgt"),zn=Symbol.for("v-txt"),Wn=Symbol.for("v-cmt");let qn=null;const Mn="__vInternal",Gn=({key:e})=>null!=e?e:null,Qn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?ee(e)||$t(e)||Z(e)?{i:_n,r:e,k:t,f:!!n}:e:null);const jn="production"!==process.env.NODE_ENV?(...e)=>Yn(...e):Yn;function Yn(e,t=null,n=null,o=0,a=null,i=!1){if(e&&e!==En||("production"===process.env.NODE_ENV||e||zt(`Invalid vnode type when creating vnode: ${e}.`),e=Wn),(l=e)&&!0===l.__v_isVNode){const o=Hn(e,t,!0);return n&&Jn(o,n),!i&&qn&&(6&o.shapeFlag?qn[qn.indexOf(e)]=o:qn.push(o)),o.patchFlag|=-2,o}var l;if(ro(e)&&(e=e.__vccOpts),t){t=function(e){return e?Ot(e)||Mn in e?Q({},e):e:null}(t);let{class:e,style:n}=t;e&&!ee(e)&&(t.class=ye(e)),ne(n)&&(Ot(n)&&!K(n)&&(n=Q({},n)),t.style=ge(n))}const s=ee(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:ne(e)?4:Z(e)?2:0;return"production"!==process.env.NODE_ENV&&4&s&&Ot(e)&&zt("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=At(e)),function(e,t=null,n=null,o=0,a=null,i=(e===Un?0:1),l=!1,s=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Gn(t),ref:t&&Qn(t),scopeId:yn,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:i,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:_n};return s?(Jn(c,n),128&i&&e.normalize(c)):n&&(c.shapeFlag|=ee(n)?8:16),"production"!==process.env.NODE_ENV&&c.key!=c.key&&zt("VNode created with invalid key (NaN). VNode type:",c.type),!l&&qn&&(c.patchFlag>0||6&i)&&32!==c.patchFlag&&qn.push(c),c}(e,t,n,o,a,s,i,!0)}function Hn(e,t,n=!1){const{props:o,ref:a,patchFlag:i,children:l}=e,s=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=ye([t.class,o.class]));else if("style"===e)t.style=ge([t.style,o.style]);else if(G(e)){const n=t[e],a=o[e];!a||n===a||K(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:s,key:s&&Gn(s),ref:t&&t.ref?n&&a?K(a)?a.concat(Qn(t)):[a,Qn(t)]:Qn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===i&&K(l)?l.map(Kn):l,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Un?-1===i?16:16|i:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Hn(e.ssContent),ssFallback:e.ssFallback&&Hn(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Kn(e){const t=Hn(e);return K(e.children)&&(t.children=e.children.map(Kn)),t}function Xn(e=" ",t=0){return jn(zn,null,e,t)}function Jn(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if(K(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),Jn(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||Mn in t?3===o&&_n&&(1===_n.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=_n}}else Z(t)?(t={default:t,_ctx:_n},n=32):(t=String(t),64&o?(n=16,t=[Xn(t)]):n=8);e.children=t,e.shapeFlag|=n}let Zn,eo,to=null,no="__VUE_INSTANCE_SETTERS__";(eo=pe()[no])||(eo=pe()[no]=[]),eo.push((e=>to=e)),Zn=e=>{eo.length>1?eo.forEach((t=>t(e))):eo[0](e)};const oo=e=>{Zn(e),e.scope.on()},ao=()=>{to&&to.scope.off(),Zn(null)};const io=/(?:^|[-_])(\w)/g,lo=e=>e.replace(io,(e=>e.toUpperCase())).replace(/[-_]/g,"");function so(e,t=!0){return Z(e)?e.displayName||e.name:e.name||t&&e.__name}function co(e,t,n=!1){let o=so(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?lo(o):n?"App":"Anonymous"}function ro(e){return Z(e)&&"__vccOpts"in e}var uo=xn({name:"qt-poster-focus-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const fo={class:"absoluteFocusTitleRoot",delayLoad:"400",flexStyle:"${titleFocusStyle}",autoHeight:"",focusable:!1},po={class:"absoluteFocusMainBgRoot",duplicateParentState:!0,focusable:!1,showIf:"${title.enable}"};uo.render=function(e,t,n,l,s,r){const u=o("text-view");return a(),i("div",fo,[c(" 浮动标题"),_(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"}),y("div",po,[c(" 主标题 "),_(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}"}),c(" 副标题 "),_(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}"})])])},uo.__scopeId="data-v-703673b8",uo.__file="src/poster/qt-poster-focus-title.vue";var go=xn({name:"qt-poster-corner-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const mo={class:"cornerRoot",focusable:!1};go.render=function(e,t,n,l,s,c){const r=o("text-view");return a(),i("div",mo,[_(r,{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"])])},go.__scopeId="data-v-4b767ea2",go.__file="src/poster/qt-poster-corner-title.vue";var ho=xn({name:"qt-poster",components:{"qt-poster-corner-title":go,"qt-poster-focus-title":uo},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 vo=["enableFocusBorder"],_o=["showOnState"],yo={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}"},bo={flexStyle:"${ripple.style}",class:"qt-ui-poster-ripple-view-root-css",showOnState:"focused",focusable:!1,clipChildren:!1},So=(e=>(b("data-v-3c4765e9"),e=e(),S(),e))((()=>y("img",{src:"${ripple.src}",class:"qt-ui-ripple-img-css",focusable:!1,duplicateParentState:!0,showIf:"${true}",delayLoad:"800"},null,-1)));ho.render=function(e,t,n,i,l,s){const r=o("qt-poster-focus-title"),u=o("text-view"),f=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:h((()=>[c("封面"),y("img",{class:"qt-ui-poster-img-css",duplicateParentState:!0,postDelay:"300",focusable:!1,enableFocusBorder:e.enableFocusBorder,flexStyle:"${image.style}",src:"${image.src}"},null,8,vo),c(" 焦点选中时的标题 "),_(r,{focusable:!1,showOnState:"focused"}),y("div",{style:{"flex-direction":"column","background-color":"transparent","z-index":"999"},duplicateParentState:!0,focusable:!1,flexStyle:"${titleStyle}",showOnState:e.mainTextShowOnState},[c(" 浮动标题 "),y("div",yo,[_(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}"})]),c(" 主标题"),_(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,_o),y("div",bo,[_(f,{class:"qt-ui-ripple-view-css",delayLoad:"800",focusable:!1,duplicateParentState:!0,color:"#FF4E46",isShowRipple:"${ripple.enable}",rippleVisible:"invisible"}),So]),_(g,{focusable:!1,delayLoad:"600",flexStyle:"${corner.style}",style:{"z-index":"1000",position:"absolute"}}),p(e.$slots,"default")])),_:3},8,["type","focusable"])},ho.__scopeId="data-v-3c4765e9",ho.__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"),i=T({normal:"#80ffffff",focused:"#000000",selected:"#F5F5F5"}),l=-1,s=-1;I((()=>e.navs),(e=>{e.length>0&&c(e)}));const c=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(s);let n=e.initSelect;n>-1&&(o.value?.scrollToPosition(n),s=setTimeout((()=>{o.value?.setItemSelected(n,!0),r(n)}),300))},r=e=>{clearTimeout(l),l=setTimeout((()=>{t.emit("tab-select",{position:e})}),300)};return{navList:o,focusColor:a,textColor:i,bgPadding:[10,10],onTabChange:e=>{!0===e.hasFocus&&(t.emit("tab-focus",e),r(e.position))},scrollToPosition:e=>{o.value?.scrollToPosition(e)},scrollToTop:()=>{o.value?.scrollToTop()},init:e=>{c(e.data)}}}});const Io=["stateTextColor","sateBackgroundPadding"],xo=["stateTextColor","sateBackgroundPadding"];var Eo,Fo;To.render=function(e,t,n,i,c,r){const u=o("text-view"),f=o("qt-list-view");return e.horizontal?(a(),d(f,{key:0,class:s([e.className,"qt-ui-nav-bar-root-horizontal"]),ref:"navList",clipChildren:!1,clipPadding:!1,horizontal:"",onItemFocused:e.onTabChange},{default:h((()=>[y("div",{class:"qt-ui-nav-bar-item-css",type:2e4,autoWidth:"",focusable:!0,eventFocus:"",flexStyle:"${style}",clipChildren:!1,style:l({focusBackgroundColor:e.focusColor}),stateTextColor:e.textColor,sateBackgroundPadding:e.bgPadding},[_(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,Io),p(e.$slots,"default")])),_:3},8,["class","onItemFocused"])):(a(),d(f,{key:1,class:s([e.className,"qt-ui-nav-bar-root-vertical"]),ref:"navList",clipChildren:!1,clipPadding:!1,onItemFocused:e.onTabChange},{default:h((()=>[y("div",{class:"qt-ui-nav-bar-item-css",type:2e4,flexStyle:"${style}",eventFocus:"",autoWidth:"",focusable:!0,stateTextColor:e.textColor,style:l({focusBackgroundColor:e.focusColor}),sateBackgroundPadding:e.bgPadding,clipChildren:!1},[_(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,xo),p(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_TAB=1003]="QT_WATERFALL_SECTION_TYPE_TAB",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_CARD=1006]="QT_WATERFALL_SECTION_TYPE_CARD",e[e.QT_WATERFALL_SECTION_TYPE_VUE=1007]="QT_WATERFALL_SECTION_TYPE_VUE",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"}(Eo||(Eo={})),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",e[e.QT_WATERFALL_ITEM_TYPE_CARD=10003]="QT_WATERFALL_ITEM_TYPE_CARD"}(Fo||(Fo={}));var Po=xn({name:"card-item",setup:()=>({})});Po.render=function(e,t,n,i,l,s){const c=o("es-card-container");return a(),d(c,{clipChildren:!1,clipPadding:!1,autoRecycle:!0,focusable:!0,disablePlaceholderFocus:"",layout:"${layout}",flexStyle:"${style}",cardId:"${cardId}",type:10003,class:"qt-ui-waterfall-card-item"})},Po.__scopeId="data-v-599898aa",Po.__file="src/waterfall/item/card-item.vue";var Co=xn({name:"standard-section",components:{"card-item":Po},props:{enablePlaceholder:{type:Boolean,default:!0},plateData:{type:String,default:""},useDiff:{type:Boolean,default:!0},cachePool:{type:Object,default:{}},sectionType:{type:Number,default:Eo.QT_WATERFALL_SECTION_TYPE_FLEX},standItemType:{type:Number,default:Fo.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM},currentPageIndex:{type:Number,default:-1}}});const Lo=["type"];Co.render=function(e,t,n,l,s,r){const u=o("text-view"),d=o("qt-poster"),f=o("card-item"),g=o("tv-flex");return a(),i("div",{class:"standard-section-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.sectionType,focusable:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[_(u,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),_(g,{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,focusScrollTarget:"${focusScrollTarget==true}",list:"${itemList}"},{default:h((()=>[c(" poster "),_(d,{"load-delay":500,type:e.standItemType},null,8,["type"]),c(" card "),_(f),p(e.$slots,"default")])),_:3},8,["cachePool","useDiff","enablePlaceholder"])],8,Lo)},Co.__scopeId="data-v-227e921e",Co.__file="src/waterfall/section/flex-section.vue";const ko="tab-list-section";var Do=xn({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:Eo.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(C.DEBUG)&&n.d(ko,"----------onItemBind--------------\x3e>>",e)},onItemClick:function(e){n.isLoggable(C.DEBUG)&&n.d(ko,"----------onItemClick--------------\x3e>>",e)},onItemRecycled:function(e){n.isLoggable(C.DEBUG)&&n.d(ko,"----------onItemRecycled--------------\x3e>>",e)},onItemFocused:function(e){n.isLoggable(C.DEBUG)&&n.d(ko,"----------onItemFocused--------------\x3e>>",e)}}}});const No={class:"qt-ui-section-tab-list-root",focusable:!1,flexStyle:"${style}",blockFocusDirections:["right"],clipChildren:!1,useAdvancedFocusSearch:!0,bringFocusChildToFront:!0},wo=["type"];Do.render=function(e,t,n,i,l,s){const c=o("text-view"),r=o("qt-poster"),u=o("tv-list"),f=o("tv-item");return a(),d(f,{type:e.sectionType,clipPadding:!1,clipChildren:!1,ref:"listSection",class:"tab-list-section-root-css",onItemClick:e.onItemClick,onItemBind:e.onItemBind,onItemUnbind:e.onItemRecycled,onItemFocused:e.onItemFocused},{default:h((()=>[y("div",No,[_(c,{class:"tab-list-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),_(u,{list:"${itemList}",horizontal:"",clipChildren:!1,focusable:!1,class:"tab-list-section-list-css",name:"QUICKTVUI_WARTERFALL_LIST",resetOnDetach:!0,enableKeepFocus:"${enableKeepFocus==true}",endHintEnabled:"${enableEndHit}",onScrollEnable:!1,setSelectChildPosition:0,enablePlaceholder:e.enablePlaceholder,cachePoolName:"HorizontalList",blockFocusDirections:e.blockDirections},{default:h((()=>[_(r,{type:e.standItemType},null,8,["type"]),y("div",{type:e.tabItemType,class:"qt-ui-section-tab-list-item",clipChildren:!1,flexStyle:"${style}",style:{"padding-left":"24px","padding-right":"23px","justify-content":"center",height:"50px"},autoWidth:"",name:"QUICKTVUI_TAB_2",focusable:!0,eventClick:"",eventFocus:""},[_(c,{class:"qt-ui-section-tab-list-item-text",autoWidth:"",flexStyle:"${textStyle}",gravity:"center",fontSize:36,lines:1,focusable:!1,duplicateParentState:!0,style:{height:"50px"},text:"${text}"})],8,wo),p(e.$slots,"default")])),_:3},8,["enablePlaceholder","blockFocusDirections"])])])),_:3},8,["type","onItemClick","onItemBind","onItemUnbind","onItemFocused"])},Do.__scopeId="data-v-88e60816",Do.__file="src/waterfall/section/tabs-list-section.vue";var Oo=xn({name:"loading-section"});const Ao={focusable:!1,type:-1,class:"loading-section-css"};Oo.render=function(e,t,n,l,s,c){const r=o("qt-loading-view");return a(),i("div",Ao,[_(r,{class:"loading-section-loading-css"})])},Oo.__scopeId="data-v-48609f24",Oo.__file="src/waterfall/section/loading-section.vue";var Ro=xn({name:"end-section",setup:()=>({})});const Bo={type:-1001,focusable:!1,flexStyle:"${style}",class:"qt-waterfall-end-section-css"};Ro.render=function(e,t,n,l,s,c){const r=o("text-view");return a(),i("div",Bo,[_(r,{focusable:!1,gravity:"center",flexStyle:"${titleStyle}",class:"qt-waterfall-end-section-text-css",fontSize:28,text:"${title}"})])},Ro.__scopeId="data-v-70b82c43",Ro.__file="src/waterfall/section/end-section.vue";var $o=xn({props:{plateTitleLeftMargin:{type:Number,default:0},type:{type:Number,default:Eo.QT_WATERFALL_SECTION_TYPE_TITLE}},setup:(e,t)=>({})});const Vo=["type"];$o.render=function(e,t,n,s,c,r){const u=o("text-view");return a(),i("div",{class:"section-title-css",blockFocusDirections:["left","right"],clipChildren:!1,type:e.type,focusable:!1,bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[_(u,{class:"section-title-text-css",delayLoad:"200",postDelay:"300",style:l({marginLeft:e.plateTitleLeftMargin+"px"}),focusable:!1,textSize:50,text:"${title}"},null,8,["style"])],8,Vo)},$o.__scopeId="data-v-20428d40",$o.__file="src/waterfall/section/section-title.vue";var Uo=xn({name:"blank-section",setup:()=>({})});const zo={focusable:!1,type:-1e3,flexStyle:"${style}",class:"qt-ui-waterfall-blank-section"};Uo.render=function(e,t,n,o,l,s){return a(),i("div",zo)},Uo.__scopeId="data-v-eeab4d88",Uo.__file="src/waterfall/section/blank-section.vue";var Wo=xn({name:"card-section",setup:()=>({})});const qo={type:1006,class:"qt-ui-waterfall-card-section-css",clipChildren:!1,clipPadding:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0};Wo.render=function(e,t,n,l,s,c){const r=o("text-view"),u=o("es-card-container");return a(),i("div",qo,[_(r,{class:"qt-ui-waterfall-card-section-title-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),_(u,{cardId:"${cardId}",clipChildren:!1,clipPadding:!1,autoRecycle:!0,focusable:!0,flexStyle:"${cardStyle}",class:"qt-ui-waterfall-card-section"})])},Wo.__scopeId="data-v-43a44788",Wo.__file="src/waterfall/section/card-section.vue";var Mo=xn({name:"vue-section",setup:(e,t)=>({onSectionBind:function(){}})});function Go(e,t){const n=[];if(t&&t.length>0)for(let o=0;o<t.length;o++){let a=Qo(e,t[o]);n.push(a)}return n}function Qo(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,i=a?.height??0,l=a?.marginTop??0,s=a?.marginBottom??0,c=a?.paddingTop??0,r=a?.paddingBottom??0;let u=0,d=0,f=0,p=0;for(let t=0;t<n.length;t++){const a=n[t],i=a.decoration,l=i?.left??0,s=i?.top??0,c=i?.right??0,r=i?.bottom??0;let g=a?.style.width??0,m=a?.style.height??0;u+g+c>=e&&(d+=f+o,f=0,u=0),a.layout||(a.layout=[0,0,g,m]),a.layout[0]=u+l,a.layout[1]=d+s,a.layout[1]+m+r>p&&(p=a.layout[1]+m+r),m+s+r>f&&(f=m+s+r),u+=g+o+l+c}return p+i+l+s+c+r}(e.width,t),t.style.height=n),t}function jo(){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 i=n+o;n+o>a&&(i=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let l=0;for(let o=n;o<i;o++){l+=t(e[o])}return l}function o(){console.log("--------dumpWaterfallData---------\x3e>>>",e)}return{init:function(){},getSectionList:function(){return e},addSectionList:function(a){const i=e.length,l=n(0,i),s=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:i,sectionCount:a.length,itemIndex:l,itemCount:s}},deleteSection:function(t,a){const i=n(0,t-1),l=n(t,a);return e.splice(t,a),o(),{sectionIndex:t,sectionCount:a,itemIndex:i,itemCount:l}},updateSection:function(a,i){const l=n(0,a-1),s=t(i);return e.splice(a,1,i),o(),{sectionIndex:a,sectionCount:1,itemIndex:l,itemCount:s}},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 i=e[t],l=i.itemList.length;return i.itemList.push(...n),o(),{sectionIndex:t,sectionCount:1,itemIndex:l,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,i){return e[t].itemList.splice(n,a,...i),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=[]}}}Mo.render=function(e,t,n,i,l,s){const c=o("tv-item");return a(),d(c,{class:"qt-ui-waterfall-vue-section",type:1007,blockFocusDirections:["left","right"],clipChildren:!1,flexStyle:"${style}",singleton:"",onItemBind:e.onSectionBind},{default:h((()=>[p(e.$slots,"default")])),_:3},8,["onItemBind"])},Mo.__scopeId="data-v-f8447724",Mo.__file="src/waterfall/section/vue-section.vue";const Yo="qt-waterfall";var Ho,Ko=xn({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}},i=n();let l;const s=jo();return{waterfallRef:i,init:function(e){l=e},getSectionList:function(){return s.getSectionList()},setSectionList:function(e){if(!l)return;o.isLoggable(C.DEBUG)&&o.d(Yo,"-------1---setSectionList--------------\x3e>>"),s.destroy();const t=s.addSectionList(e);o.isLoggable(C.DEBUG)&&o.d(Yo,"-------2---setSectionList--------------\x3e>>",t);const n=Go(l,e);o.isLoggable(C.DEBUG)&&o.d(Yo,"----------setSectionList-----最终数据---------\x3e>>",n),i.value?.setListData(n)},addSectionList:function(e){if(!l)return;s.addSectionList(e);const t=Go(l,e);o.isLoggable(C.DEBUG)&&o.d(Yo,"----------addSectionList-----最终数据---------\x3e>>",t),i.value?.addListData(t)},deleteSection:function(e,t){const n=s.deleteSection(e,t);o.isLoggable(C.DEBUG)&&o.d(Yo,"----------deleteSection-----最终数据---------\x3e>>",n),i.value?.deleteItem(e,t)},updateSection:function(e,t){s.updateSection(e,t);const n=Qo(l,t);o.isLoggable(C.DEBUG)&&o.d(Yo,"----------updateSection-----最终数据---------\x3e>>sectionIndex:"+e+"updateSection:"+n),i.value?.updateItem(e,n)},updateSectionList:function(e,t,n){const o=[];for(let t=0;t<n.length;t++){const a=n[t];s.updateSection(e+t,a);const i=Qo(l,a);i&&o.push(i)}i.value?.updateItemList(e,t,o)},getSection:function(e){return s.getSection(e)},addItemList:function(e,t){s.addItemList(e,t);const n=s.getSection(e);if(n){const t=Qo(l,n);i.value?.updateItem(e,t)}},deleteItem:function(e,t,n){s.deleteItem(e,t,n);const o=s.getSection(e);if(o){const t=Qo(l,o);i.value?.updateItem(e,t)}},updateItem:function(e,t,n){s.updateItem(e,t,n);const o=s.getSection(e);if(o){const t=Qo(l,o);i.value?.updateItem(e,t)}},updateItemList:function(e,t,n,o){s.updateItemList(e,t,n,o);const a=s.getSection(e);if(a){const t=Qo(l,a);i.value?.updateItem(e,t)}},getItem:function(e,t){return s.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(C.DEBUG)&&o.d(Yo,"----------onItemClick--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" "),t.emit("onItemClick",e.parentPosition,e.position,e.item)},onItemFocused:function(e){o.isLoggable(C.DEBUG)&&o.d(Yo,"----------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){if(e){o.isLoggable(C.DEBUG)&&o.d(Yo,"----------onSectionBind--------------\x3e>>",e);let n=e.pageIndex??0;t.emit("onSectionBind",n,e.position)}},onSectionAttached:function(e){if(e){o.isLoggable(C.DEBUG)&&o.d(Yo,"----------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(){i.value?.pausePostTask()},pausePostTask:function(){i.value?.pausePostTask()},clearPostTask:function(){i.value?.clearPostTask()},destroy:function(){i.value?.destroy()}}},components:{"flex-section":Co,"tabs-list-section":Do,"section-title":$o,"loading-section":Oo,"end-section":Ro,"blank-section":Uo,"card-section":Wo,"vue-section":Mo}});function Xo(){const e=new Map,t=new Map;function n(n){const o={index:n,state:Ho.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 i=t+n;t+n>a&&(i=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let l=0;for(let n=t;n<i;n++){l+=o(e[n])}return l}function i(){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,l){const s=t.get(n)??[],c=s.length,r=a(s,0,c),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}(l);s.push(...l);const d=e.get(n);return d&&(d.state=Ho.QT_TAB_PAGE_STATE_IDLE),i(),{pageIndex:n,sectionIndex:c,sectionCount:l.length,itemIndex:r,itemCount:u}},deleteSection:function(e,n,o){const l=t.get(e)??[],s=a(l,0,n-1),c=a(l,n,o);return l.splice(n,o),i(),{pageIndex:e,sectionIndex:n,sectionCount:o,itemIndex:s,itemCount:c}},updateSection:function(e,n,l){const s=t.get(e)??[],c=a(s,0,n-1),r=o(l);return s.splice(n,1,l),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:r}},updateSectionList:function(e,n){return t.set(e,n),i(),{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)??[],l=a.length;if(n<0||n>=l||o.length<=0)return{pageIndex:e,sectionIndex:-1,sectionCount:0,itemIndex:-1,itemCount:0};const s=a[n],c=s.itemList.length;return s.itemList.push(...o),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:o.length}},deleteItem:function(e,n,o,a){return(t.get(e)??[])[n].itemList.splice(o,a),i(),{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),i(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:o,itemCount:1}},updateItemList:function(e,n,o,a,l){return(t.get(e)??[])[n].itemList.splice(o,a,...l),i(),{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()}}}Ko.render=function(e,t,n,i,l,s){const r=o("flex-section"),u=o("tabs-list-section"),f=o("loading-section"),g=o("end-section"),m=o("blank-section"),v=o("card-section"),y=o("vue-section"),b=o("tv-list");return a(),d(b,{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:h((()=>[c(" 普通版块"),_(r,{"cache-pool":e.flexCachePool,enablePlaceholder:e.enablePlaceholder},{default:h((()=>[p(e.$slots,"item")])),_:3},8,["cache-pool","enablePlaceholder"]),c("一行滚动 多级tab"),_(u,{enablePlaceholder:e.enablePlaceholder},{default:h((()=>[p(e.$slots,"list-item")])),_:3},8,["enablePlaceholder"]),c(" loading"),_(f),c(" end "),_(g),c(" blank "),_(m),c(" card "),_(v),c(" vue "),_(y,null,{default:h((()=>[p(e.$slots,"vue-section")])),_:3}),p(e.$slots,"section")])),_:3},8,["onScroll","onItemClick","onItemFocused","onItemBind","onItemAttached","cachePool","onScrollStateChanged"])},Ko.__scopeId="data-v-2e65df68",Ko.__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"}(Ho||(Ho={}));const Jo="qt-tab";var Zo=xn({name:"qt-tab",emits:["onTabPageLoadData","onTabPageChanged","onTabEvent","onTabPageItemClick","onTabPageItemFocused","onTabPageSectionAttached","onTabPageScroll","onTabPageScrollStateChanged"],props:{preloadNumber:{type:Number,default:3},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},contentNextFocus:{type:Object,default:()=>({up:"tabList",left:"tabList"})},triggerTask:{type:Array,default:()=>[]},blockViewPager:{type:Array,default:()=>[]},blockViewPagerVertical:{type:Array,default:()=>[]}},setup(e,t){const o=n(),a=n(!0),i=n(300),l=n(500),s=n(1),c=n(!0),r=P(),u=n(),d=Xo();let f,p=-1;function g(e,t){const n=d.getTabPageData(e);n&&(n.state=t,d.setTabPageData(e,n))}function m(n,o,a){let i=d.getTabPageData(n);if(i&&i.state===Ho.QT_TAB_PAGE_STATE_IDLE){a>=d.getSectionList(n).length-e.preloadNumber-1&&(r.isLoggable(C.DEBUG)&&r.d(Jo,"----------loadPageData----加载数加载据--\x3e>>> pageIndex:"+n+" sectionIndex:"+a),t.emit("onTabPageLoadData",n,o),g(n,Ho.QT_TAB_PAGE_STATE_BUSY))}else r.isLoggable(C.DEBUG)&&r.d(Jo,"----------loadPageData--状态不对--\x3e>>>",n)}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){f=e},setTagPageSate:g,setTabPageData:function(e,t){r.isLoggable(C.DEBUG)&&r.d(Jo,"----------loadPageData----setTabPageData--\x3e>>>pageIndex:"+e),d.addSectionList(e,t.data);const n={data:Go(f,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};r.isLoggable(C.DEBUG)&&r.d(Jo,"------设置数据----setTabPageData------\x3e>>> pageIndex:"+e+" data:",n),o.value?.setPageData(e,n)},addPageData:function(e,t,n=0){r.isLoggable(C.DEBUG)&&r.d(Jo,"----------loadPageData----addPageData--\x3e>>>pageIndex:"+e),d.addSectionList(e,t.data);const a={data:Go(f,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};r.isLoggable(C.DEBUG)&&r.d(Jo,"----设置数据------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:Go(f,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=Qo(f,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=Qo(f,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 i=d.getSection(e,t);if(i){const n=Qo(f,i);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,i){o.value?.getChildNodeViewState(e,t,n,a,i)},dispatchUIFunctionOnChildNode:function(e,t,n,a,i){o.value?.dispatchUIFunctionOnChildNode(e,t,n,a,i)},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:i,pageResumeDelay:l,rootOpacity:s,isTabHorizontal:c,onTabPageLoadData:function(e){const t=e.pageIndex,n=e.useDiff;r.isLoggable(C.DEBUG)&&r.d(Jo,"----------loadPageData----android--\x3e>>>pageIndex:"+t),m(t,n,0)},onTabPageChanged:function(e){const n=e.pageIndex;p=n;const o=e.data;r.isLoggable(C.DEBUG)&&r.d(Jo,"----------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,n,o){r.isLoggable(C.DEBUG)&&r.d(Jo,"-----------onWaterfallItemClick---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+n+" item:",o),t.emit("onTabPageItemClick",p,e,n,o)},onWaterfallItemFocused:function(e,n,o,a){r.isLoggable(C.DEBUG)&&r.d(Jo,"-----------onWaterfallItemFocused---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+n+" isFocused:"+o+" item:",a),t.emit("onTabPageItemFocused",p,e,n,o,a)},onWaterfallSectionBind:function(e,t){r.isLoggable(C.DEBUG)&&r.d(Jo,"-----------onWaterfallSectionBind---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t),e===p&&(r.isLoggable(C.DEBUG)&&r.d(Jo,"----------loadPageData----bind--\x3e>>>pageIndex:"+e),m(e,!1,t))},onWaterfallSectionAttached:function(e,n){r.isLoggable(C.DEBUG)&&r.d(Jo,"-----------onWaterfallSectionAttached---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+n),t.emit("onTabPageSectionAttached",e,n)},onWaterfallScroll:function(e,n){r.isLoggable(C.DEBUG)&&r.d(Jo,"----------onWaterfallScroll----\x3e>>> offsetX:"+e+" scrollY:"+n),t.emit("onTabPageScroll",e,n)},onWaterfallScrollStateChanged:function(e,n,o){r.isLoggable(C.DEBUG)&&r.d(Jo,"----------onWaterfallScrollStateChanged----\x3e>>> offsetX:"+e+" scrollY:"+n+" newState:"+o),t.emit("onTabPageScrollStateChanged",e,n,o)}}}});Zo.render=function(e,t,n,i,l,r){const u=o("qt-nav-bar"),f=o("qt-waterfall"),g=o("recycler-view-pager"),m=o("tabs");return e.ifTabs?(a(),d(m,{key:0,ref:"tabs",class:s(["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.onTabPageLoadData,onPageChanged:e.onTabPageChanged,onTabEvent:e.onTabEvent},{default:h((()=>[_(u,{ref:"navBarRef",name:"tabList",focusable:!1,class:s(e.tabNavBarClass),"text-key":"text",clipChldren:!1,horizontal:e.isTabHorizontal},{default:h((()=>[p(e.$slots,"tab-item")])),_:3},8,["class","horizontal"]),_(g,{nextFocusName:e.contentNextFocus,ref:"viewPager",class:s(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:h((()=>[_(f,{onOnScrollStateChanged:e.onWaterfallScrollStateChanged,onOnScroll:e.onWaterfallScroll,onOnSectionBind:e.onWaterfallSectionBind,onOnSectionAttached:e.onWaterfallSectionAttached,onOnItemFocused:e.onWaterfallItemFocused,onOnItemClick:e.onWaterfallItemClick},{item:h((()=>[p(e.$slots,"waterfall-item")])),section:h((()=>[p(e.$slots,"waterfall-section")])),_:3},8,["onOnScrollStateChanged","onOnScroll","onOnSectionBind","onOnSectionAttached","onOnItemFocused","onOnItemClick"])])),_:3},8,["nextFocusName","class","opacity","enableTransform","triggerTask","direction","blockFocusDirections"])])),_:3},8,["dataStrategy","hideOnSingleTab","pageSwitchDelay","resumeTaskDelay","suspension","class","onLoadPage","onPageChanged","onTabEvent"])):c("v-if",!0)},Zo.__file="src/tab/index.vue";var ea=xn({name:"qt-classified-list-view",props:{className:{type:String,default:"content_list_view"},classNavName:{type:String,default:"nav_list_view"},currentFocusIndex:{type:Number,default:0}},emits:["item-click","item-focused"],setup(e,t){const o=n(),a=n();let i=[],l=-1,s=-1;let c=-1;let r=-1;return{content_list_view:o,nav_list_view:a,init:t=>{t.forEach(((e,t)=>{e.mask||(e.mask="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/mask.png"),e.icon||(e.icon="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/playing.png");let n=!1;for(let t=0;t<i.length;t++){const o=i[t];e.categoryname==o.categoryname&&(e.navIndex=t,n=!0)}n||(e.navIndex||(e.navIndex=i.length),i.push({type:e.type,decoration:{left:50},categoryname:e.categoryname,startIndex:t}))})),an((()=>{o.value?.setListData(t),a.value?.setListData(i),setTimeout((()=>{l=e.currentFocusIndex,s=t[e.currentFocusIndex].navIndex,o.value?.scrollToFocused(l),a.value?.scrollToSelected(s,!0)}),300)}))},onItemBind:()=>{},onSItemClick:e=>{t.emit("item-click",e)},onFItemClick:e=>{t.emit("item-click",e)},onSItemFocused:e=>{clearTimeout(c),c=setTimeout((()=>{e.hasFocus?(s!=e.item.navIndex&&(s=e.item.navIndex,a.value?.scrollToSelected(e.item.navIndex,!0)),t.emit("item-click",e)):(l=e.position,s=e.item.navIndex,a.value?.scrollToFocused(e.item.navIndex))}),300)},onFItemFocused:e=>{clearTimeout(r),r=setTimeout((()=>{e.hasFocus&&s!=e.position&&(e.position,o.value?.scrollToIndex(e.item.startIndex,!0,802),o.value?.setItemSelected(e.item.startIndex,!0))}),400)}}}});const ta=e=>(b("data-v-cbd7c454"),e=e(),S(),e),na={focusable:!1,clipChildren:!1},oa={type:10001,name:"clv_item",class:"clv_item",focusable:!0,enableFocusBorder:!0,clipChildren:!1,eventClick:"",eventFocus:"",focusScale:1},aa=ta((()=>y("img",{class:"coverV",src:"${coverV}",focusable:!1,postDelay:"300"},null,-1))),ia={duplicateParentState:!0,showOnState:["focused"],focusable:!1,class:"clv_item_text_box"},la=ta((()=>y("img",{src:"${mask}",class:"titMask",focusable:"false",postDelay:"300",duplicateParentState:!0},null,-1))),sa=ta((()=>y("img",{class:"icon",src:"${icon}",focusable:!1,postDelay:"300"},null,-1))),ca={type:10001,name:"nav_item",class:"nav_item",focusable:!0,enableFocusBorder:!1,focusScale:"1",eventClick:"",eventFocus:"",clipChildren:!1},ra=ta((()=>y("div",{class:"line",focusable:!1,showOnState:"selected",duplicateParentState:!0},null,-1))),ua=ta((()=>y("div",{duplicateParentState:!0,class:"nav_item_text_focused",showOnState:"focused",focusable:!1,gradientBackground:{colors:["#FF2F7CEB","#FF1163D8"],cornerRadius:40}},null,-1))),da={class:"nav_item_text",focusable:!1,duplicateParentState:!0};var fa,pa,ga;ea.render=function(e,t,n,l,r,u){const d=o("text-view"),f=o("qt-list-view");return a(),i("div",na,[c(" listview second nav "),_(f,{class:s(e.className),ref:"content_list_view",clipChildren:!1,clipPadding:!1,onItemClick:e.onSItemClick,horizontal:"",blockFocusDirections:["left","right"],onItemFocused:e.onSItemFocused},{default:h((()=>[y("div",oa,[aa,y("div",ia,[la,sa,_(d,{focusable:!1,ellipsizeMode:2,fontSize:30,gravity:"centerVertical",lines:1,maxLines:1,class:"clv_item_text",text:"${assetTitle}",paddingRect:[14,0,0,0]})])]),p(e.$slots,"item")])),_:3},8,["class","onItemClick","onItemFocused"]),c(" listview first nav "),_(f,{class:s(e.classNavName),ref:"nav_list_view",clipChildren:!1,clipPadding:!1,onItemClick:e.onFItemClick,horizontal:"",blockFocusDirections:["left","right"],onItemFocused:e.onFItemFocused},{default:h((()=>[y("div",ca,[ra,ua,y("div",da,[_(d,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text_selected",text:"${categoryname}",showOnState:["selected"]}),_(d,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,maxLines:1,class:"text",text:"${categoryname}",showOnState:"focused"}),_(d,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text",text:"${categoryname}",showOnState:["normal"]})])]),p(e.$slots,"navItem")])),_:3},8,["class","onItemClick","onItemFocused"])])},ea.__scopeId="data-v-cbd7c454",ea.__file="src/classified-list-view/index.vue",function(e){e.QT_DIRECTION_UP="up",e.QT_DIRECTION_DOWN="down",e.QT_DIRECTION_RIGHT="right",e.QT_DIRECTION_LEFT="left"}(fa||(fa={})),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"}(pa||(pa={})),function(e){e[e.QT_NAV_BAR_ITEM_TYPE_TEXT=2e4]="QT_NAV_BAR_ITEM_TYPE_TEXT"}(ga||(ga={}));const ma=[L,U,ho,To,Ko,Zo,ea],ha=o=>{o.component("qt-loading-view",{setup(e,t){const o=n();return()=>x("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();F();let i=[],l=[],s=[],c="",r=-1,u=!1,d=-1,f=-1,p=-1,h=-1;g((()=>{t.openPage&&(r=1,u=!1,t.loadMore(r))}));const v=e=>{0==i.length&&(i=V(e),_(i,-1),l=e,t.openPage?S(i.concat([{type:1002,decoration:{top:18,bottom:18,right:30,left:30}}])):S(i),t.defaultFocus>-1&&(p&&clearTimeout(p),p=setTimeout((()=>{N(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(s.push(n),-1!=s.indexOf("push"))c="push";else{if(-1!=s.indexOf("splice"))return c="splice",function(...t){return e.splice(...t),-1!=s.indexOf("list")?(i[s[0]].list.splice(...t),P(Number(s[0]),i[s[0]])):1==t.length?E(Number(t[0]),i.length-t[0]+1):2==t.length?E(Number(t[0]),t[1]):t.length>2&&(0==t[1]?L(t[0],t.slice(2)):C(t[0],t[1],t.slice(2))),i.splice(t[0],...t.slice(1)),c="",s=[],Reflect.get(e,n,o)};if(-1!=s.indexOf("pop"))return c="pop",function(){return e.pop(),-1!=s.lastIndexOf("list")?(i[s[0]].list.pop(),P(Number(s[0]),i[s[0]])):(E(Number(i.length-1),1),i.pop()),c="",s=[],Reflect.get(e,n,o)};if(-1!=s.indexOf("forEach"))return c="forEach",function(a){return e.forEach((e=>{a(e)})),i=[],i=V(e),t.openPage?S(i.concat([{type:1002,decoration:{top:15,left:30}}])):S(i),c="",s=[],Reflect.get(e,n,o)};if(-1!=s.indexOf("concat"))return c="concat",function(a){return e=e.concat(a),-1!=s.lastIndexOf("list")?(i[s[0]].list=i[s[0]].list.concat(a),P(Number(s[0]),i[s[0]])):(i=i.concat(a),t.openPage&&!u?setTimeout((()=>{I(a.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300):T(a)),c="",s=[],Reflect.get(e,n,o)};c=""}const a=Reflect.get(e,n,o);return y(a)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?v(a):(-1==s.indexOf("push")&&(s=[]),a)},set(e,n,o,a){const r=e[n];b(e,n);const d=Reflect.set(e,n,o,a);if((!y(r)&&r!==o||y(r))&&"push"!=c)if(s.push(n),-1!=s.lastIndexOf("list")){let e=s.lastIndexOf("list"),t=s.lastIndexOf("list")+2,n={};for(let e=0;e<t;e++){let t=s[e];n=n?n[t]:l[t]}n.name="name"+s[e-1]+s[e+1],P(Number(s[0]),l[s[0]]),i[s[0]].list[s[e+1]]=l[s[0]].list[s[e+1]],i[s[0]].list[s[e+1]].name="name"+s[e-1]+s[e+1]}else i[s[0]]=l[s[0]],i[s[0]].name="name"+s[0],P(Number(s[0]),l[s[0]]);if(n&&"push"==c&&r!==o)-1!=s.lastIndexOf("list")?(s.push(n),i[s[0]].list.push(o)):(s.push(n),i.push(o));else{if("push"==c)if(-1!=s.lastIndexOf("list"))P(Number(s[0]),i[s[0]]);else{let e=i.slice(s[1]);h&&clearTimeout(h),h=t.openPage&&!u?setTimeout((()=>{I(e.concat([{type:1002,decoration:{bottom:18,right:30,left:30}}]),1)}),300):setTimeout((()=>{T(e)}),300)}c="",s=[]}return d}};return new Proxy(e,n)},_=(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&&_(o.list,n)}},y=e=>null!==e&&"object"==typeof e,b=(e,t)=>{Object.hasOwnProperty.call(e,t)},S=t=>{d&&clearTimeout(d),d=setTimeout((()=>{e.callUIFunction(a.value,"setListData",t)}),100)},T=t=>{e.callUIFunction(a.value,"addListData",t)},I=(t,n)=>{e.callUIFunction(a.value,"addListDataWithParams",[t,n])},E=(t,n)=>{e.callUIFunction(a.value,"deleteItemRange",[t,n])},P=(t,n)=>{e.callUIFunction(a.value,"updateItem",[t,n])},C=(t,n,o)=>{e.callUIFunction(a.value,"updateItemRange",[t,n,o])},L=(t,n)=>{e.callUIFunction(a.value,"insertItemRange",[t,n])},k=(t,n)=>{e.callUIFunction(a.value,"setSelectChildPosition",[t,n])},D=t=>{e.callUIFunction(a.value,"scrollToPosition",[t])},N=t=>{e.callUIFunction(a.value,"requestChildFocus",[t])};return m((()=>{i=[],l.length=0,s=[],u=!1,r=1,c="",d&&clearTimeout(d),p&&clearTimeout(p),h&&clearTimeout(h),f&&clearTimeout(f)})),o.expose({viewRef:a,init:v,undataItemName:_,hasChanged:(e,t)=>e!==t&&(e==e||t==t),scrollToIndex:(t,n,o)=>{e.callUIFunction(a.value,"scrollToPositionWithOffset",[t,o,n])},updateItem:P,updateItemList:C,hasFocus:t=>{e.callUIFunction(a.value,"hasFocus",(e=>{t(e)}))},updateItemProps:(t,n,o)=>{e.callUIFunction(a.value,"updateItemProps",[n,t,o,!0])},setListData:S,insertItem:L,addListData:T,addListDataWithParams:I,dispatchItemFunction:(t,n,o,i)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,n,o,i])},deleteItem:E,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:D,scrollToFocused:e=>{D(e),N(e)},scrollToSelected:(e,t)=>{D(e),k(e,t)},scrollToPositionOffset:(t,n,o,i,l)=>{e.callUIFunction(a.value,"scrollToPositionWithOffset",[n,i,o])},destroy:()=>{e.callUIFunction(a.value,"destroy",[])},setInitPosition:t=>{e.callUIFunction(a.value,"setInitPosition",[t])},setItemFocused:N,clearPostTask:()=>{e.callUIFunction(a.value,"clearAllPostTask",[])},clearFocus:()=>{e.callUIFunction(a.value,"clearFocus",[])},setItemSelected:k,blockRootFocus:()=>{e.callUIFunction(a.value,"blockRootFocus",[])},unBlockRootFocus:()=>{e.callUIFunction(a.value,"unBlockRootFocus",[])},setBackgroundColor:t=>{e.callUIFunction(a.value,"setBackgroundColor",[t])},stopPage:()=>{f&&clearTimeout(f),f=setTimeout((()=>{E(i.length,1)}),400),u=!0}}),()=>{const e=o.slots.default&&o.slots.default();return x("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=>{e.position==i.length-1-t.preloadNo&&(r++,t.loadMore(r)),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,i)=>{e.callUIFunction(a.value,"dispatchItemFunction",[t,n,o,i])},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 x("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 ma)o.component(ma[e].name,ma[e])};export{fa as QTDirections,ga as QTNavBarItemType,pa as QTScrollState,Ho as QTTabPageState,Fo as QTWaterfallItemType,Eo as QTWaterfallSectionType,ha as QuickTVUI,R as arrangeChildren4ListView};
|
|
@@ -62,7 +62,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
62
62
|
requestFocusDirectly: () => void;
|
|
63
63
|
onFocus: (e: any) => void;
|
|
64
64
|
onClick: (e: any) => void;
|
|
65
|
-
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin,
|
|
65
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("focus" | "click")[], "focus" | "click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
66
66
|
size: {
|
|
67
67
|
type: StringConstructor;
|
|
68
68
|
default: string;
|
|
@@ -120,7 +120,10 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
120
120
|
iconStyle: ObjectConstructor;
|
|
121
121
|
focusIconStyle: ObjectConstructor;
|
|
122
122
|
iconParentStyle: ObjectConstructor;
|
|
123
|
-
}
|
|
123
|
+
}>> & {
|
|
124
|
+
onFocus?: ((...args: any[]) => any) | undefined;
|
|
125
|
+
onClick?: ((...args: any[]) => any) | undefined;
|
|
126
|
+
}, {
|
|
124
127
|
size: string;
|
|
125
128
|
itemType: number;
|
|
126
129
|
focusBorder: boolean;
|
|
@@ -110,7 +110,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
110
110
|
onWaterfallItemFocused: (sectionIndex: number, itemIndex: number, isFocused: boolean, item: QTWaterfallItem) => void;
|
|
111
111
|
onWaterfallSectionBind: (pageIndex: number, sectionIndex: number) => void;
|
|
112
112
|
onWaterfallSectionAttached: (pageIndex: number, sectionIndex: number) => void;
|
|
113
|
-
|
|
113
|
+
onWaterfallScroll: (offsetX: number, scrollY: number) => void;
|
|
114
|
+
onWaterfallScrollStateChanged: (offsetX: number, scrollY: number, newState: number) => void;
|
|
115
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onTabPageLoadData" | "onTabPageChanged" | "onTabEvent" | "onTabPageItemClick" | "onTabPageItemFocused" | "onTabPageSectionAttached" | "onTabPageScroll" | "onTabPageScrollStateChanged")[], "onTabPageLoadData" | "onTabPageChanged" | "onTabEvent" | "onTabPageItemClick" | "onTabPageItemFocused" | "onTabPageSectionAttached" | "onTabPageScroll" | "onTabPageScrollStateChanged", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
114
116
|
preloadNumber: {
|
|
115
117
|
type: NumberConstructor;
|
|
116
118
|
default: number;
|
|
@@ -172,6 +174,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
172
174
|
onOnTabEvent?: ((...args: any[]) => any) | undefined;
|
|
173
175
|
onOnTabPageItemClick?: ((...args: any[]) => any) | undefined;
|
|
174
176
|
onOnTabPageItemFocused?: ((...args: any[]) => any) | undefined;
|
|
177
|
+
onOnTabPageSectionAttached?: ((...args: any[]) => any) | undefined;
|
|
178
|
+
onOnTabPageScroll?: ((...args: any[]) => any) | undefined;
|
|
179
|
+
onOnTabPageScrollStateChanged?: ((...args: any[]) => any) | undefined;
|
|
175
180
|
}, {
|
|
176
181
|
preloadNumber: number;
|
|
177
182
|
tabNavBarClass: string;
|
package/package.json
CHANGED
|
@@ -1,25 +1,24 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@quicktvui/quicktvui3",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"description": "ExtScreen framework",
|
|
5
|
-
"author": "ExtScreen Team",
|
|
6
|
-
"homepage": "http://extscreen.com",
|
|
7
|
-
"license": "Apache-2.0",
|
|
8
|
-
"entry": "dist/index.js",
|
|
9
|
-
"main": "dist/index.js",
|
|
10
|
-
"module": "dist/index.js",
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@quicktvui/quicktvui3",
|
|
3
|
+
"version": "0.0.42",
|
|
4
|
+
"description": "ExtScreen framework",
|
|
5
|
+
"author": "ExtScreen Team",
|
|
6
|
+
"homepage": "http://extscreen.com",
|
|
7
|
+
"license": "Apache-2.0",
|
|
8
|
+
"entry": "dist/index.js",
|
|
9
|
+
"main": "dist/index.js",
|
|
10
|
+
"module": "dist/index.js",
|
|
11
|
+
"types": "dist/src/index.d.ts",
|
|
12
|
+
"keywords": [
|
|
13
|
+
"native",
|
|
14
|
+
"web",
|
|
15
|
+
"framework",
|
|
16
|
+
"compiler"
|
|
17
|
+
],
|
|
18
|
+
"files": [
|
|
19
|
+
"dist"
|
|
20
|
+
],
|
|
21
|
+
"devDependencies": {
|
|
22
|
+
"rollup": "^4.3.0"
|
|
23
|
+
}
|
|
24
|
+
}
|