@quicktvui/quicktvui3 0.0.82 → 0.0.83
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 +270 -270
- package/dist/index.js +2 -2
- package/dist/src/image/index.vue.d.ts +2 -0
- package/dist/src/text/index.vue.d.ts +2 -0
- package/dist/src/view/index.vue.d.ts +7 -1
- package/package.json +21 -21
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{openBlock as e,createElementBlock as t,renderSlot as n,defineComponent as o,ref as a,resolveComponent as l,normalizeStyle as s,normalizeClass as i,createCommentVNode as c,withDirectives as r,vShow as u,createBlock as d,toDisplayString as f,watchEffect as p,onBeforeUnmount as g,withCtx as m,Fragment as h,createVNode as v,createElementVNode as b,pushScopeId as _,popScopeId as y,reactive as T,watch as S,h as I}from"vue";import{Native as x}from"@extscreen/es3-vue";import{useESToast as E,useES as F,useESLog as P,ESLogLevel as C}from"@extscreen/es3-core";function L(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]}const k="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const D=()=>{},N=/^on[^a-z]/,w=e=>N.test(e),O=Object.assign,A=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},R=Object.prototype.hasOwnProperty,B=(e,t)=>R.call(e,t),$=Array.isArray,U=e=>"[object Map]"===j(e),V=e=>"[object Set]"===j(e),z=e=>"function"==typeof e,q=e=>"string"==typeof e,W=e=>"symbol"==typeof e,M=e=>null!==e&&"object"==typeof e,G=e=>(M(e)||z(e))&&z(e.then)&&z(e.catch),Q=Object.prototype.toString,j=e=>Q.call(e),Y=e=>j(e).slice(8,-1),H=e=>"[object Object]"===j(e),X=e=>q(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,K=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),J=(e,t)=>!Object.is(e,t),Z=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let ee;const te=()=>ee||(ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function ne(e){if($(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],a=q(o)?se(o):ne(o);if(a)for(const e in a)t[e]=a[e]}return t}if(q(e)||M(e))return e}const oe=/;(?![^(]*\))/g,ae=/:([^]+)/,le=/\/\*[^]*?\*\//g;function se(e){const t={};return e.replace(le,"").split(oe).forEach((e=>{if(e){const n=e.split(ae);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ie(e){let t="";if(q(e))t=e;else if($(e))for(let n=0;n<e.length;n++){const o=ie(e[n]);o&&(t+=o+" ")}else if(M(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ce(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let re;const ue=e=>{const t=new Set(e);return t.w=0,t.n=0,t},de=e=>(e.w&me)>0,fe=e=>(e.n&me)>0,pe=new WeakMap;let ge=0,me=1;const he=30;let ve;const be=Symbol("production"!==process.env.NODE_ENV?"iterate":""),_e=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");class ye{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=re){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=ve,t=Se;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ve,ve=this,Se=!0,me=1<<++ge,ge<=he?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=me})(this):Te(this),this.fn()}finally{ge<=he&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const a=t[o];de(a)&&!fe(a)?a.delete(e):t[n++]=a,a.w&=~me,a.n&=~me}t.length=n}})(this),me=1<<--ge,ve=this.parent,Se=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ve===this?this.deferStop=!0:this.active&&(Te(this),this.onStop&&this.onStop(),this.active=!1)}}function Te(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Se=!0;const Ie=[];function xe(){Ie.push(Se),Se=!1}function Ee(){const e=Ie.pop();Se=void 0===e||e}function Fe(e,t,n){if(Se&&ve){let o=pe.get(e);o||pe.set(e,o=new Map);let a=o.get(n);a||o.set(n,a=ue());!function(e,t){let n=!1;ge<=he?fe(e)||(e.n|=me,n=!de(e)):n=!e.has(ve);n&&(e.add(ve),ve.deps.push(e),"production"!==process.env.NODE_ENV&&ve.onTrack&&ve.onTrack(O({effect:ve},t)))}(a,"production"!==process.env.NODE_ENV?{effect:ve,target:e,type:t,key:n}:void 0)}}function Pe(e,t,n,o,a,l){const s=pe.get(e);if(!s)return;let i=[];if("clear"===t)i=[...s.values()];else if("length"===n&&$(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!W(n)&&n>=e)&&i.push(t)}))}else switch(void 0!==n&&i.push(s.get(n)),t){case"add":$(e)?X(n)&&i.push(s.get("length")):(i.push(s.get(be)),U(e)&&i.push(s.get(_e)));break;case"delete":$(e)||(i.push(s.get(be)),U(e)&&i.push(s.get(_e)));break;case"set":U(e)&&i.push(s.get(be))}const c="production"!==process.env.NODE_ENV?{target:e,type:t,key:n,newValue:o,oldValue:a,oldTarget:l}:void 0;if(1===i.length)i[0]&&("production"!==process.env.NODE_ENV?Ce(i[0],c):Ce(i[0]));else{const e=[];for(const t of i)t&&e.push(...t);"production"!==process.env.NODE_ENV?Ce(ue(e),c):Ce(ue(e))}}function Ce(e,t){const n=$(e)?e:[...e];for(const e of n)e.computed&&Le(e,t);for(const e of n)e.computed||Le(e,t)}function Le(e,t){(e!==ve||e.allowRecurse)&&("production"!==process.env.NODE_ENV&&e.onTrigger&&e.onTrigger(O({effect:e},t)),e.scheduler?e.scheduler():e.run())}const ke=L("__proto__,__v_isRef,__isVue"),De=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(W)),Ne=we();function we(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Tt(this);for(let e=0,t=this.length;e<t;e++)Fe(n,"get",e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Tt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){xe();const n=Tt(this)[t].apply(this,e);return Ee(),n}})),e}function Oe(e){const t=Tt(this);return Fe(t,"has",e),t.hasOwnProperty(e)}class Ae{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const o=this._isReadonly,a=this._shallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return a;if("__v_raw"===t&&n===(o?a?ft:dt:a?ut:rt).get(e))return e;const l=$(e);if(!o){if(l&&B(Ne,t))return Reflect.get(Ne,t,n);if("hasOwnProperty"===t)return Oe}const s=Reflect.get(e,t,n);return(W(t)?De.has(t):ke(t))?s:(o||Fe(e,"get",t),a?s:xt(s)?l&&X(t)?s:s.value:M(s)?o?gt(s):pt(s):s)}}class Re extends Ae{constructor(e=!1){super(!1,e)}set(e,t,n,o){let a=e[t];if(bt(a)&&xt(a)&&!xt(n))return!1;if(!this._shallow&&(_t(n)||bt(n)||(a=Tt(a),n=Tt(n)),!$(e)&&xt(a)&&!xt(n)))return a.value=n,!0;const l=$(e)&&X(t)?Number(t)<e.length:B(e,t),s=Reflect.set(e,t,n,o);return e===Tt(o)&&(l?J(n,a)&&Pe(e,"set",t,n,a):Pe(e,"add",t,n)),s}deleteProperty(e,t){const n=B(e,t),o=e[t],a=Reflect.deleteProperty(e,t);return a&&n&&Pe(e,"delete",t,void 0,o),a}has(e,t){const n=Reflect.has(e,t);return W(t)&&De.has(t)||Fe(e,"has",t),n}ownKeys(e){return Fe(e,"iterate",$(e)?"length":be),Reflect.ownKeys(e)}}class Be extends Ae{constructor(e=!1){super(!0,e)}set(e,t){return"production"!==process.env.NODE_ENV&&ce(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return"production"!==process.env.NODE_ENV&&ce(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}}const $e=new Re,Ue=new Be,Ve=new Be(!0),ze=e=>e,qe=e=>Reflect.getPrototypeOf(e);function We(e,t,n=!1,o=!1){const a=Tt(e=e.__v_raw),l=Tt(t);n||(J(t,l)&&Fe(a,"get",t),Fe(a,"get",l));const{has:s}=qe(a),i=o?ze:n?It:St;return s.call(a,t)?i(e.get(t)):s.call(a,l)?i(e.get(l)):void(e!==a&&e.get(t))}function Me(e,t=!1){const n=this.__v_raw,o=Tt(n),a=Tt(e);return t||(J(e,a)&&Fe(o,"has",e),Fe(o,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function Ge(e,t=!1){return e=e.__v_raw,!t&&Fe(Tt(e),"iterate",be),Reflect.get(e,"size",e)}function Qe(e){e=Tt(e);const t=Tt(this);return qe(t).has.call(t,e)||(t.add(e),Pe(t,"add",e,e)),this}function je(e,t){t=Tt(t);const n=Tt(this),{has:o,get:a}=qe(n);let l=o.call(n,e);l?"production"!==process.env.NODE_ENV&&ct(n,o,e):(e=Tt(e),l=o.call(n,e));const s=a.call(n,e);return n.set(e,t),l?J(t,s)&&Pe(n,"set",e,t,s):Pe(n,"add",e,t),this}function Ye(e){const t=Tt(this),{has:n,get:o}=qe(t);let a=n.call(t,e);a?"production"!==process.env.NODE_ENV&&ct(t,n,e):(e=Tt(e),a=n.call(t,e));const l=o?o.call(t,e):void 0,s=t.delete(e);return a&&Pe(t,"delete",e,void 0,l),s}function He(){const e=Tt(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?U(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Pe(e,"clear",void 0,void 0,n),o}function Xe(e,t){return function(n,o){const a=this,l=a.__v_raw,s=Tt(l),i=t?ze:e?It:St;return!e&&Fe(s,"iterate",be),l.forEach(((e,t)=>n.call(o,i(e),i(t),a)))}}function Ke(e,t,n){return function(...o){const a=this.__v_raw,l=Tt(a),s=U(l),i="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,r=a[e](...o),u=n?ze:t?It:St;return!t&&Fe(l,"iterate",c?_e:be),{next(){const{value:e,done:t}=r.next();return t?{value:e,done:t}:{value:i?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Je(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${K(e)} operation ${n}failed: target is readonly.`,Tt(this))}return"delete"!==e&&this}}function Ze(){const e={get(e){return We(this,e)},get size(){return Ge(this)},has:Me,add:Qe,set:je,delete:Ye,clear:He,forEach:Xe(!1,!1)},t={get(e){return We(this,e,!1,!0)},get size(){return Ge(this)},has:Me,add:Qe,set:je,delete:Ye,clear:He,forEach:Xe(!1,!0)},n={get(e){return We(this,e,!0)},get size(){return Ge(this,!0)},has(e){return Me.call(this,e,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Xe(!0,!1)},o={get(e){return We(this,e,!0,!0)},get size(){return Ge(this,!0)},has(e){return Me.call(this,e,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Xe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((a=>{e[a]=Ke(a,!1,!1),n[a]=Ke(a,!0,!1),t[a]=Ke(a,!1,!0),o[a]=Ke(a,!0,!0)})),[e,n,t,o]}const[et,tt,nt,ot]=Ze();function at(e,t){const n=t?e?ot:nt:e?tt:et;return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(B(n,o)&&o in t?n:t,o,a)}const lt={get:at(!1,!1)},st={get:at(!0,!1)},it={get:at(!0,!0)};function ct(e,t,n){const o=Tt(n);if(o!==n&&t.call(e,o)){const t=Y(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 rt=new WeakMap,ut=new WeakMap,dt=new WeakMap,ft=new WeakMap;function pt(e){return bt(e)?e:ht(e,!1,$e,lt,rt)}function gt(e){return ht(e,!0,Ue,st,dt)}function mt(e){return ht(e,!0,Ve,it,ft)}function ht(e,t,n,o,a){if(!M(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 l=a.get(e);if(l)return l;const s=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Y(i));var i;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return a.set(e,c),c}function vt(e){return bt(e)?vt(e.__v_raw):!(!e||!e.__v_isReactive)}function bt(e){return!(!e||!e.__v_isReadonly)}function _t(e){return!(!e||!e.__v_isShallow)}function yt(e){return vt(e)||bt(e)}function Tt(e){const t=e&&e.__v_raw;return t?Tt(t):e}const St=e=>M(e)?pt(e):e,It=e=>M(e)?gt(e):e;function xt(e){return!(!e||!0!==e.__v_isRef)}const Et={get:(e,t,n)=>{return xt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const a=e[t];return xt(a)&&!xt(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};const Ft=[];function Pt(e,...t){if("production"===process.env.NODE_ENV)return;xe();const n=Ft.length?Ft[Ft.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=function(){let e=Ft[Ft.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)Dt(o,n,11,[e+t.join(""),n&&n.proxy,a.map((({vnode:e})=>`at <${Yn(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 <${Yn(e.component,e.type,o)}`,l=">"+n;return e.props?[a,...Ct(e.props),l]:[a+l]}(e))})),t}(a)),console.warn(...n)}Ee()}function Ct(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Lt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Lt(e,t,n){return q(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:xt(t)?(t=Lt(e,Tt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):z(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Tt(t),n?t:[`${e}=`,t])}const kt={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 Dt(e,t,n,o){let a;try{a=o?e(...o):e()}catch(e){wt(e,t,n)}return a}function Nt(e,t,n,o){if(z(e)){const a=Dt(e,t,n,o);return a&&G(a)&&a.catch((e=>{wt(e,t,n)})),a}const a=[];for(let l=0;l<e.length;l++)a.push(Nt(e[l],t,n,o));return a}function wt(e,t,n,o=!0){const a=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,l="production"!==process.env.NODE_ENV?kt[n]:n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,a,l))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void Dt(s,null,10,[e,a,l])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const l=kt[t];if(n&&(a=n,Ft.push(a)),Pt("Unhandled error"+(l?` during execution of ${l}`:"")),n&&Ft.pop(),o)throw e;console.error(e)}else console.error(e);var a}(e,n,a,o)}let Ot=!1,At=!1;const Rt=[];let Bt=0;const $t=[];let Ut=null,Vt=0;const zt=Promise.resolve();let qt=null;const Wt=100;function Mt(e){const t=qt||zt;return e?t.then(this?e.bind(this):e):t}function Gt(e){Rt.length&&Rt.includes(e,Ot&&e.allowRecurse?Bt+1:Bt)||(null==e.id?Rt.push(e):Rt.splice(function(e){let t=Bt+1,n=Rt.length;for(;t<n;){const o=t+n>>>1,a=Rt[o],l=Yt(a);l<e||l===e&&a.pre?t=o+1:n=o}return t}(e.id),0,e),Qt())}function Qt(){Ot||At||(At=!0,qt=zt.then(Xt))}function jt(e){$(e)?$t.push(...e):Ut&&Ut.includes(e,e.allowRecurse?Vt+1:Vt)||$t.push(e),Qt()}const Yt=e=>null==e.id?1/0:e.id,Ht=(e,t)=>{const n=Yt(e)-Yt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Xt(e){At=!1,Ot=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Rt.sort(Ht);const t="production"!==process.env.NODE_ENV?t=>Kt(e,t):D;try{for(Bt=0;Bt<Rt.length;Bt++){const e=Rt[Bt];if(e&&!1!==e.active){if("production"!==process.env.NODE_ENV&&t(e))continue;Dt(e,null,14)}}}finally{Bt=0,Rt.length=0,function(e){if($t.length){const t=[...new Set($t)];if($t.length=0,Ut)return void Ut.push(...t);for(Ut=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Ut.sort(((e,t)=>Yt(e)-Yt(t))),Vt=0;Vt<Ut.length;Vt++)"production"!==process.env.NODE_ENV&&Kt(e,Ut[Vt])||Ut[Vt]();Ut=null,Vt=0}}(e),Ot=!1,qt=null,(Rt.length||$t.length)&&Xt(e)}}function Kt(e,t){if(e.has(t)){const n=e.get(t);if(n>Wt){const e=t.ownerInstance,n=e&&jn(e.type);return Pt(`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 Jt=new Set;"production"!==process.env.NODE_ENV&&(te().__VUE_HMR_RUNTIME__={createRecord:nn((function(e,t){if(Zt.has(e))return!1;return Zt.set(e,{initialDef:en(t),instances:new Set}),!0})),rerender:nn((function(e,t){const n=Zt.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach((e=>{t&&(e.render=t,en(e.type).render=t),e.renderCache=[],e.update()}))})),reload:nn((function(e,t){const n=Zt.get(e);if(!n)return;t=en(t),tn(n.initialDef,t);const o=[...n.instances];for(const e of o){const o=en(e.type);Jt.has(o)||(o!==n.initialDef&&tn(o,t),Jt.add(o)),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(Jt.add(o),e.ceReload(t.styles),Jt.delete(o)):e.parent?Gt(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.")}jt((()=>{for(const e of o)Jt.delete(en(e.type))}))}))});const Zt=new Map;function en(e){return Hn(e)?e.__vccOpts:e}function tn(e,t){O(e,t);for(const n in e)"__file"===n||n in t||delete e[n]}function nn(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 on=null,an=null;const ln=Symbol.for("v-ndc");const sn={};function cn(e,t,{immediate:n,deep:o,flush:a,onTrack:l,onTrigger:s}=k){var i;"production"===process.env.NODE_ENV||t||(void 0!==n&&Pt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&Pt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const c=e=>{Pt("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=re===(null==(i=zn)?void 0:i.scope)?zn:null;let u,d,f=!1,p=!1;if(xt(e)?(u=()=>e.value,f=_t(e)):vt(e)?(u=()=>e,o=!0):$(e)?(p=!0,f=e.some((e=>vt(e)||_t(e))),u=()=>e.map((e=>xt(e)?e.value:vt(e)?un(e):z(e)?Dt(e,r,2):void("production"!==process.env.NODE_ENV&&c(e))))):z(e)?u=t?()=>Dt(e,r,2):()=>{if(!r||!r.isUnmounted)return d&&d(),Nt(e,r,3,[g])}:(u=D,"production"!==process.env.NODE_ENV&&c(e)),t&&o){const e=u;u=()=>un(e())}let g=e=>{d=b.onStop=()=>{Dt(e,r,4)}},m=p?new Array(e.length).fill(sn):sn;const h=()=>{if(b.active)if(t){const e=b.run();(o||f||(p?e.some(((e,t)=>J(e,m[t]))):J(e,m)))&&(d&&d(),Nt(t,r,3,[e,m===sn?void 0:p&&m[0]===sn?[]:m,g]),m=e)}else b.run()};let v;h.allowRecurse=!!t,"sync"===a?v=h:"post"===a?v=()=>En(h,r&&r.suspense):(h.pre=!0,r&&(h.id=r.uid),v=()=>Gt(h));const b=new ye(u,v);"production"!==process.env.NODE_ENV&&(b.onTrack=l,b.onTrigger=s),t?n?h():m=b.run():"post"===a?En(b.run.bind(b),r&&r.suspense):b.run();return()=>{b.stop(),r&&r.scope&&A(r.scope.effects,b)}}function rn(e,t,n){const o=this.proxy,a=q(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 l;z(t)?l=t:(l=t.handler,n=t);const s=zn;Wn(this);const i=cn(a,l.bind(o),n);return s?Wn(s):Mn(),i}function un(e,t){if(!M(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),xt(e))un(e.value,t);else if($(e))for(let n=0;n<e.length;n++)un(e[n],t);else if(V(e)||U(e))e.forEach((e=>{un(e,t)}));else if(H(e))for(const n in e)un(e[n],t);return e}
|
|
2
|
-
/*! #__NO_SIDE_EFFECTS__ */function dn(e,t){return z(e)?(()=>O({name:e.name},t,{setup:e}))():e}const fn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((n=e.exposed,Z(n,"__v_skip",!0),vt(t=n)?t:new Proxy(t,Et)),{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=O(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?mt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?mt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?mt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?mt(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:l,config:{optionMergeStrategies:s}}=e.appContext,i=l.get(t);let c;i?c=i:a.length||n||o?(c={},a.length&&a.forEach((e=>bn(c,e,s,!0))),bn(c,t,s)):c=t;M(t)&&l.set(t,c);return c}(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>Gt(e.update)),$nextTick:e=>e.n||(e.n=Mt.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?rn.bind(e):D}),gn=(e,t)=>e!==k&&!e.__isScriptSetup&&B(e,t),mn={get({_:e},t){const{ctx:n,setupState:o,data:a,props:l,accessCache:s,type:i,appContext:c}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;let r;if("$"!==t[0]){const i=s[t];if(void 0!==i)switch(i){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return l[t]}else{if(gn(o,t))return s[t]=1,o[t];if(a!==k&&B(a,t))return s[t]=2,a[t];if((r=e.propsOptions[0])&&B(r,t))return s[t]=3,l[t];if(n!==k&&B(n,t))return s[t]=4,n[t];__VUE_OPTIONS_API__&&!vn||(s[t]=0)}}const u=pn[t];let d,f;return u?("$attrs"===t?(Fe(e,"get",t),process.env.NODE_ENV):"production"!==process.env.NODE_ENV&&"$slots"===t&&Fe(e,"get",t),u(e)):(d=i.__cssModules)&&(d=d[t])?d:n!==k&&B(n,t)?(s[t]=4,n[t]):(f=c.config.globalProperties,B(f,t)?f[t]:void("production"===process.env.NODE_ENV||!on||q(t)&&0===t.indexOf("__v")||(a!==k&&(e=>"_"===e||"$"===e)(t[0])&&B(a,t)?Pt(`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===on&&Pt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,n){const{data:o,setupState:a,ctx:l}=e;return gn(a,t)?(a[t]=n,!0):"production"!==process.env.NODE_ENV&&a.__isScriptSetup&&B(a,t)?(Pt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==k&&B(o,t)?(o[t]=n,!0):B(e.props,t)?("production"!==process.env.NODE_ENV&&Pt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&Pt(`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(l,t,{enumerable:!0,configurable:!0,value:n}):l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,propsOptions:l}},s){let i;return!!n[s]||e!==k&&B(e,s)||gn(t,s)||(i=l[0])&&B(i,s)||B(o,s)||B(pn,s)||B(a.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:B(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hn(e){return $(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}"production"!==process.env.NODE_ENV&&(mn.ownKeys=e=>(Pt("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 vn=!0;function bn(e,t,n,o=!1){const{mixins:a,extends:l}=t;l&&bn(e,l,n,!0),a&&a.forEach((t=>bn(e,t,n,!0)));for(const a in t)if(o&&"expose"===a)"production"!==process.env.NODE_ENV&&Pt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=_n[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const _n={data:yn,props:xn,emits:xn,methods:In,computed:In,beforeCreate:Sn,created:Sn,beforeMount:Sn,mounted:Sn,beforeUpdate:Sn,updated:Sn,beforeDestroy:Sn,beforeUnmount:Sn,destroyed:Sn,unmounted:Sn,activated:Sn,deactivated:Sn,errorCaptured:Sn,serverPrefetch:Sn,components:In,directives:In,watch:function(e,t){if(!e)return t;if(!t)return e;const n=O(Object.create(null),e);for(const o in t)n[o]=Sn(e[o],t[o]);return n},provide:yn,inject:function(e,t){return In(Tn(e),Tn(t))}};function yn(e,t){return t?e?function(){return O(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function Tn(e){if($(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Sn(e,t){return e?[...new Set([].concat(e,t))]:t}function In(e,t){return e?O(Object.create(null),e,t):t}function xn(e,t){return e?$(e)&&$(t)?[...new Set([...e,...t])]:O(Object.create(null),hn(e),hn(null!=t?t:{})):t}const En=function(e,t){t&&t.pendingBranch?$(e)?t.effects.push(...e):t.effects.push(e):jt(e)},Fn=Symbol.for("v-fgt"),Pn=Symbol.for("v-txt"),Cn=Symbol.for("v-cmt");let Ln=null;const kn="__vInternal",Dn=({key:e})=>null!=e?e:null,Nn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?q(e)||xt(e)||z(e)?{i:on,r:e,k:t,f:!!n}:e:null);const wn="production"!==process.env.NODE_ENV?(...e)=>On(...e):On;function On(e,t=null,n=null,o=0,a=null,l=!1){if(e&&e!==ln||("production"===process.env.NODE_ENV||e||Pt(`Invalid vnode type when creating vnode: ${e}.`),e=Cn),(s=e)&&!0===s.__v_isVNode){const o=An(e,t,!0);return n&&$n(o,n),!l&&Ln&&(6&o.shapeFlag?Ln[Ln.indexOf(e)]=o:Ln.push(o)),o.patchFlag|=-2,o}var s;if(Hn(e)&&(e=e.__vccOpts),t){t=function(e){return e?yt(e)||kn in e?O({},e):e:null}(t);let{class:e,style:n}=t;e&&!q(e)&&(t.class=ie(e)),M(n)&&(yt(n)&&!$(n)&&(n=O({},n)),t.style=ne(n))}const i=q(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:M(e)?4:z(e)?2:0;return"production"!==process.env.NODE_ENV&&4&i&&yt(e)&&Pt("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=Tt(e)),function(e,t=null,n=null,o=0,a=null,l=(e===Fn?0:1),s=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Dn(t),ref:t&&Nn(t),scopeId:an,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:l,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:on};return i?($n(c,n),128&l&&e.normalize(c)):n&&(c.shapeFlag|=q(n)?8:16),"production"!==process.env.NODE_ENV&&c.key!=c.key&&Pt("VNode created with invalid key (NaN). VNode type:",c.type),!s&&Ln&&(c.patchFlag>0||6&l)&&32!==c.patchFlag&&Ln.push(c),c}(e,t,n,o,a,i,l,!0)}function An(e,t,n=!1){const{props:o,ref:a,patchFlag:l,children:s}=e,i=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=ie([t.class,o.class]));else if("style"===e)t.style=ne([t.style,o.style]);else if(w(e)){const n=t[e],a=o[e];!a||n===a||$(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:i,key:i&&Dn(i),ref:t&&t.ref?n&&a?$(a)?a.concat(Nn(t)):[a,Nn(t)]:Nn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===l&&$(s)?s.map(Rn):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Fn?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&An(e.ssContent),ssFallback:e.ssFallback&&An(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Rn(e){const t=An(e);return $(e.children)&&(t.children=e.children.map(Rn)),t}function Bn(e=" ",t=0){return wn(Pn,null,e,t)}function $n(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if($(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),$n(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||kn in t?3===o&&on&&(1===on.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=on}}else z(t)?(t={default:t,_ctx:on},n=32):(t=String(t),64&o?(n=16,t=[Bn(t)]):n=8);e.children=t,e.shapeFlag|=n}let Un,Vn,zn=null,qn="__VUE_INSTANCE_SETTERS__";(Vn=te()[qn])||(Vn=te()[qn]=[]),Vn.push((e=>zn=e)),Un=e=>{Vn.length>1?Vn.forEach((t=>t(e))):Vn[0](e)};const Wn=e=>{Un(e),e.scope.on()},Mn=()=>{zn&&zn.scope.off(),Un(null)};const Gn=/(?:^|[-_])(\w)/g,Qn=e=>e.replace(Gn,(e=>e.toUpperCase())).replace(/[-_]/g,"");function jn(e,t=!0){return z(e)?e.displayName||e.name:e.name||t&&e.__name}function Yn(e,t,n=!1){let o=jn(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?Qn(o):n?"App":"Anonymous"}function Hn(e){return z(e)&&"__vccOpts"in e}var Xn=dn({name:"qt-view"});const Kn={clipChildren:!1};Xn.render=function(o,a,l,s,i,c){return e(),t("div",Kn,[n(o.$slots,"default")])},Xn.__file="src/view/index.vue";var Jn=dn({name:"qt-column"});const Zn={class:"qt-ui-row-css",clipChildren:!1};Jn.render=function(o,a,l,s,i,c){return e(),t("div",Zn,[n(o.$slots,"default")])},Jn.__scopeId="data-v-734c04b2",Jn.__file="src/column/index.vue";var eo=dn({name:"qt-row"});const to={class:"qt-ui-row-css",clipChildren:!1};eo.render=function(o,a,l,s,i,c){return e(),t("div",to,[n(o.$slots,"default")])},eo.__scopeId="data-v-9c454b58",eo.__file="src/row/index.vue";var no=o({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(e,t){const n=a(),o=a(!1);return{focused:o,requestFocus:function(){x.callUIFunction(n.value,"requestFocus",[])},requestFocusDirectly:function(){x.callUIFunction(n.value,"requestFocusDirectly",[])},onFocus:function(e){console.log("--------XXXXXXXXXXXXXXXXX--------------\x3e>>",o.value),o.value=e.isFocused,t.emit("focus",e.isFocused)},onClick:function(e){t.emit("click")}}}});const oo=["focusable","enableFocusBorder","focusScale"],ao=["gradientBackground"],lo=["gradientBackground"],so=["gradientBackground"],io=["src"],co=["src"];function ro(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})}))}no.render=function(o,a,p,g,m,h){const v=l("text-view");return e(),t("div",{ref:"buttonRef",clipChildren:!1,focusable:o.focusable,enableFocusBorder:o.focusBorder,focusScale:o.focusScale,onClick:a[0]||(a[0]=(...e)=>o.onClick&&o.onClick(...e)),name:"textButton",eventClick:"",eventFocus:"",onFocus:a[1]||(a[1]=(...e)=>o.onFocus&&o.onFocus(...e)),style:s(o.buttonStyle),class:i(["quick-button--default",o.size?"quick-button--"+o.size:"",{"is-disabled-button":o.disabled,"is-circle":o.circle,"is-round":o.round,"is-square":o.square}])},[c(" gradient "),o.gradientFocusBackground?(e(),t("div",{key:0,class:"button-gradient-background-css",gradientBackground:o.gradientFocusBackground,focusable:!1,showOnState:"focused"},null,8,ao)):c("v-if",!0),o.gradientSelectedBackground?(e(),t("div",{key:1,class:"button-gradient-background-css",gradientBackground:o.gradientSelectedBackground,focusable:!1,showOnState:"selected"},null,8,lo)):c("v-if",!0),o.gradientBackground?(e(),t("div",{key:2,class:"button-gradient-background-css",gradientBackground:o.gradientBackground,focusable:!1,showOnState:"normal"},null,8,so)):c("v-if",!0),c(" -----------------------------icon--------------------------------- "),!o.icon&&!o.focusIcon||o.$slots.default?c("v-if",!0):(e(),t("div",{key:3,duplicateParentState:!0,style:s(o.iconParentStyle),flexStyle:"${iconParentStyle}",class:i(["quick-button-icon-parent",o.size?"quick-button-icon--parent"+o.size:""])},[o.icon&&!o.$slots.default?r((e(),t("img",{key:0,style:s(o.iconStyle),flexStyle:"${iconStyle}",duplicateParentState:!0,class:i(["quick-button-icon",o.size?"quick-button-icon--"+o.size:"",{"is-square-icon":o.square}]),focusable:!1,src:o.enableFlexStyle?"${"+o.icon+"}":o.icon,showOnState:"normal"},null,14,io)),[[u,!o.focused]]):c("v-if",!0),o.focusIcon&&!o.$slots.default?r((e(),t("img",{key:1,style:s(o.focusIconStyle?o.focusIconStyle:o.iconStyle),flexStyle:"${iconStyle}",class:i(["quick-button-icon",o.size?"quick-button-icon--"+o.size:"",{"is-square-icon":o.square}]),focusable:!1,duplicateParentState:!0,src:o.enableFlexStyle?"${"+o.focusIcon+"}":o.focusIcon,showOnState:"focused"},null,14,co)),[[u,o.focused]]):c("v-if",!0)],6)),c(" ------------------------------------------------------------------- "),c(" text "),o.enableFlexStyle?(e(),d(v,{key:4,style:s(o.textStyle),duplicateParentState:"",class:i([o.size?"quick-button-text--"+o.size:"",{"is-disabled-text":o.disabled,"is-square-text":o.square}]),focusable:!1,text:"${"+o.text+"}",autoWidth:"",autoHeight:""},null,8,["style","class","text"])):o.text&&!o.$slots.default?(e(),t("span",{key:5,style:s(o.textStyle),duplicateParentState:"",class:i([o.size?"quick-button-text--"+o.size:"",{"is-disabled-text":o.disabled,"is-square-text":o.square}]),focusable:!1},f(o.text),7)):c("v-if",!0),n(o.$slots,"default")],46,oo)},no.__scopeId="data-v-46a594e4",no.__file="src/button/index.vue";const uo=e=>e.map(po),fo=e=>{const t=Object.keys(e),n={};return t.forEach((t=>{n[t]=po(e[t])})),n};function po(e){return e?"object"!=typeof e?e:Array.isArray(e)?uo(e):fo(e):e}var go=o({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 n=a();let o=a(2.5),l=[],s=[],i=[],c=[],r="",u=-1,d=!1,f=-1,m=-1,h=-1,v=-1;p((()=>{e.openPage&&(u=1,d=!1,e.loadMore(u))}));const b=t=>{0==l.length&&(l=po(t),s=t,o.value<2.2?(_(),e.openPage&&e.pageSize&&c.length>=e.pageSize/e.spanCount?n.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):n.value.setListData(c)):e.openPage&&e.pageSize&&l.length>=e.pageSize?n.value.setListData(l.concat([{type:1002,decoration:{top:15,left:30}}])):n.value.setListData(l),e.defaultFocus>-1&&(h&&clearTimeout(h),h=setTimeout((()=>{T(e.defaultFocus),S(e.defaultFocus)}),800)));let a={get(t,a,s){if("__ob__"!=a&&"symbol"!=typeof a&&"map"!=a&&"length"!=a&&"constructor"!=a&&"_isVue"!=a&&"valueOf"!=a&&"toString"!=a&&"observeArray"!=a&&"dep"!=a&&"notify"!=a&&"subs"!=a&&"slice"!=a)if(i.push(a),-1!=i.indexOf("push"))r="push";else{if(-1!=i.indexOf("splice"))return r="splice",function(...e){if(t.splice(...e),o.value<2.2)if(_(),1==e.length||2==e.length)n.value.setListData(c);else if(0==e[1])n.value.setListData(c);else{let t=-1,o=0,a=0;for(let n=0;n<c.length;n++){const l=c[n];if("1003"==l.type)t++,e[0]==t&&(o=n),e[0]+e[1]-1==t&&(a=n);else for(let s=0;s<l.list.length;s++)l.list[s],t++,e[0]==t&&(o=n),e[0]+e[1]-1==t&&(a=n)}n.value.updateItemList(o,a-o+1,c.slice(o,a+1))}else 1==e.length?n.value.deleteItem(Number(e[0]),l.length-e[0]):2==e.length?n.value.deleteItem(Number(e[0]),e[1]):e.length>2&&(0==e[1]?o.value>2.29&&x(e[0],e.slice(2)):n.value.updateItemList(e[0],e[1],e.slice(2)));return l.splice(e[0],...e.slice(1)),r="",i=[],Reflect.get(t,a,s)};if(-1!=i.indexOf("pop"))return r="pop",function(){return t.pop(),o.value<2.2?(c[c.length-1].list.length<1&&c.pop(),c[c.length-1].list.pop(),n.value.updateItem(Number(c.length-1),c[c.length-1])):n.value.deleteItem(Number(l.length-1),1),l.pop(),r="",i=[],Reflect.get(t,a,s)};if(-1!=i.indexOf("forEach"))return r="forEach",function(u){return t.forEach((e=>{u(e)})),l=[],l=po(t),o.value<2.2?(_(),e.openPage&&e.pageSize&&c.length>=e.pageSize&&!d?n.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):n.value.setListData(c)):e.openPage&&e.pageSize&&l.length>=e.pageSize&&!d?n.value.setListData(l.concat([{type:1002,decoration:{top:15,left:30}}])):n.value.setListData(l),r="",i=[],Reflect.get(t,a,s)};if(-1!=i.indexOf("concat"))return r="concat",function(f){if("[object Array]"===Object.prototype.toString.call(f))if(t=t.concat(f),l=l.concat(f),o.value<2.2){v&&clearTimeout(v);let t=c.length,o=c.slice(c.length-1)[0];_();let a=c.slice(t);e.openPage&&!d?e.pageSize||2!=u?0==a.length||"1003"!=o.type&&o.list.length<e.spanCount?(a=c.slice(t-1),v=setTimeout((()=>{n.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),2)}),300)):v=setTimeout((()=>{n.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):v=setTimeout((()=>{n.value.addListData(a.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):n.value.setListData(c)}else v=e.openPage&&!d?e.pageSize||2!=u?setTimeout((()=>{n.value.addListDataWithParams(f.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{n.value.addListData(f.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{n.value.addListData(f)}),300);else console.log("concat:参数类型必须为数组");return r="",i=[],Reflect.get(t,a,s)};r=""}const f=Reflect.get(t,a,s);return y(f)&&"__ob__"!=a&&"dep"!=a&&"subs"!=a?b(f):(-1==i.indexOf("push")&&(i=[]),f)},set(t,a,f,p){const g=t[a],m=Reflect.set(t,a,f,p);if((!y(g)&&g!==f||y(g))&&"push"!=r)if(i.push(a),l[i[0]]=s[i[0]],o.value<2.2){let e=i[0],t=-1;for(let o=0;o<c.length;o++){const a=c[o];if("1003"==a.type)t++,t==e&&(c[o]=l[i[0]],n.value.updateItem(Number(o),c[o]));else for(let s=0;s<a.list.length;s++)if(a.list[s],t++,t==e){c[o].list[s]=l[i[0]];let e=c[o].list[s];e.decoration&&(e.decoration.top&&(e.decoration.top=0),e.decoration.bottom&&(e.decoration.bottom=0)),n.value.updateItem(Number(o),c[o])}}}else n.value.updateItem(Number(i[0]),s[i[0]]);if(a&&"push"==r&&g!==f)i.push(a),l.push(f);else{if("push"==r&&i.length>1)if(o.value<2.2){v&&clearTimeout(v);let t=c.length,o=c.slice(c.length-1)[0];_();let a=c.slice(t);e.openPage&&!d?e.pageSize||2!=u?0==a.length||"1003"!=o.type&&o.list.length<e.spanCount?(a=c.slice(t-1),v=setTimeout((()=>{n.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),2)}),300)):v=setTimeout((()=>{n.value.addListDataWithParams(a.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):v=setTimeout((()=>{n.value.addListData(a.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):n.value.setListData(c)}else{let t=l.slice(i[1]);v&&clearTimeout(v),v=e.openPage&&!d?e.pageSize||2!=u?setTimeout((()=>{n.value.addListDataWithParams(t.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{n.value.addListData(t.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{n.value.addListData(t)}),300)}r="",i=[]}return m}};return new Proxy(t,a)},_=()=>{let t=po(l);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 l={top:-1,bottom:-1};o.decoration&&(l.top=o.toCompatibleSaveTopVal?o.toCompatibleSaveTopVal:0,l.bottom=o.toCompatibleSaveBottompVal?o.toCompatibleSaveBottompVal:0);const s={type:1,decoration:l,name:"name"+n,list:a.list.slice(t,t+e.spanCount)};n++,c.push(s)}}},y=e=>null!==e&&"object"==typeof e,T=e=>{if(o.value<2.2){let t=-1;for(let o=0;o<c.length;o++){const a=c[o];if("1003"==a.type)t++,t==e&&n.value.scrollToPosition(o);else for(let l=0;l<a.list.length;l++)a.list[l],t++,t==e&&n.value.scrollToPosition(o)}}else n.value.scrollToPosition(e)},S=e=>{if(o.value<2.2){let t=-1,o=0,a=0;for(let n=0;n<c.length;n++){const l=c[n];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)l.list[s],t++,e==t&&(o=n,a=s)}n.value.dispatchItemFunction(o,"tv_list_inner","requestChildFocus",[a])}else n.value.requestFocus(e)},I=(e,t)=>{if(o.value<2.2){let t=-1,o=0,a=0;for(let n=0;n<c.length;n++){const l=c[n];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)l.list[s],t++,e==t&&(o=n,a=s)}n.value.dispatchItemFunction(o,"tv_list_inner","setSelectChildPosition",[a])}else n.value.setSelectPosition(e,t)},x=(e,t)=>{n.value.addItem(e,t)},P=()=>{n.value.destroy()};return g((()=>{l=[],c=[],s.length=0,d=!1,i=[],u=1,d=!1,r="",P(),f&&clearTimeout(f),v&&clearTimeout(v),m&&clearTimeout(m),h&&clearTimeout(h)})),{tv_list:n,apkVersion:o,init:b,onItemClick:e=>{if(o.value<2.2){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const l=c[a];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}t.emit("item-click",e)},onItemBind:n=>{o.value<2.2?d||n.position!=c.length-1-e.preloadNo/e.spanCount||(u++,e.loadMore(u)):d||n.position!=l.length-1-e.preloadNo||(u++,e.loadMore(u)),t.emit("item-bind",n)},onItemFocused:e=>{if(o.value<2.2){let t=-1,n=e.position,o=e.parentPosition;for(let a=0;a<e.parentPosition+1;a++){const l=c[a];if("1003"==l.type)t++;else for(let s=0;s<l.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=>{m&&clearTimeout(m),m=setTimeout((()=>{o.value<2.2?e.pageSize?e.pageSize/e.spanCount<=c.length&&n.value.deleteItem(c.length,1):u>2&&n.value.deleteItem(c.length,1):e.pageSize?e.pageSize<=l.length&&n.value.deleteItem(l.length,1):u>2&&n.value.deleteItem(l.length,1)}),400),d=!0},scrollToTop:()=>{n.value.scrollToTop()},clearFocus:()=>{n.value.clearFocus()},blockRootFocus:()=>{n.value.blockRootFocus()},unBlockRootFocus:()=>{n.value.unBlockRootFocus()},setDisplay:e=>{n.value.setDisplay(e)},scrollToPosition:T,scrollToIndex:(e,t,a)=>{if(o.value<2.2){let o=-1;for(let l=0;l<c.length;l++){const s=c[l];if("1003"==s.type)o++,o==e&&n.value.scrollToIndex(0,l,t,a);else for(let i=0;i<s.list.length;i++)s.list[i],o++,o==e&&n.value.scrollToIndex(0,l,t,a)}}else n.value.scrollToIndex(0,e,t,a)},setItemFocused:S,scrollToFocused:e=>{T(e),S(e)},setItemSelected:I,scrollToSelected:(e,t)=>{T(e),I(e,t)},updateItemProps:(e,t,o)=>{n.value.updateItemProps(e,t,o)},setInitPosition:e=>{n.value.setInitPosition(e)},setListData:e=>{f&&clearTimeout(f),f=setTimeout((()=>{n.value.setListData(e)}),100)},insertItem:x,clearPostTask:()=>{n.value.clearPostTask()},destroy:P}}});go.render=function(o,a,i,c,r,u){const f=l("tv-list");return e(),d(f,{class:"tv_list",ref:"tv_list",name:"tv_list",spanCount:o.apkVersion<2.2?"":o.spanCount,onItemBind:o.onItemBind,onItemClick:o.onItemClick,onItemFocused:o.onItemFocused,onItemUnbind:o.onItemUnbind,onScroll:o.onScroll,onScrollStateChanged:o.onScrollStateChanged,onSetListData:o.setListData,blockFocusDirections:o.blockFocusDirections},{default:m((()=>[o.apkVersion<2.2?(e(),t(h,{key:0},[n(o.$slots,"header"),v(f,{class:"tv_list_inner",ref:"${name}",list:"${list}",name:"tv_list_inner",type:"1",clipChildren:!1,focusable:!1,horizontal:"",style:s({width:o.areaWidth+"px"}),endHintEnabled:!1,blockFocusDirections:o.blockFocusDirections},{default:m((()=>[n(o.$slots,"default")])),_:3},8,["style","blockFocusDirections"]),n(o.$slots,"footer"),n(o.$slots,"loading")],64)):(e(),t(h,{key:1},[n(o.$slots,"header"),n(o.$slots,"default"),n(o.$slots,"footer"),n(o.$slots,"loading")],64))])),_:3},8,["spanCount","onItemBind","onItemClick","onItemFocused","onItemUnbind","onScroll","onScrollStateChanged","onSetListData","blockFocusDirections"])},go.__file="src/grid-view/index.vue";var mo=dn({name:"qt-poster-focus-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const ho={class:"absoluteFocusTitleRoot",delayLoad:"400",flexStyle:"${titleFocusStyle}",autoHeight:"",focusable:!1},vo={class:"absoluteFocusMainBgRoot",duplicateParentState:!0,focusable:!1,showIf:"${title.enable}"};mo.render=function(n,o,a,s,i,r){const u=l("text-view");return e(),t("div",ho,[c(" 浮动标题"),v(u,{duplicateParentState:!0,focusable:!1,fontSize:26,ellipsizeMode:2,lines:1,paddingRect:[16,18,0,0],gradientBackground:"${floatTitle.background}",style:{height:"64px",color:"#ffffff"},flexStyle:"${floatTitle.style}",text:"${floatTitle}",showIf:"${floatTitle.enable}",gravity:"left",postDelay:"250"}),b("div",vo,[c(" 主标题 "),v(u,{duplicateParentState:!0,focusable:!1,fontSize:30,ellipsizeMode:2,autoHeight:"",maxLines:2,gravity:"left",paddingRect:[16,8,12,8],style:{"background-color":"transparent",color:"#000000"},flexStyle:"${title.style}",text:"${title.text}"}),c(" 副标题 "),v(u,{duplicateParentState:!0,focusable:!1,fontSize:24,ellipsizeMode:2,lines:1,autoHeight:"",gravity:"left|top",paddingRect:[16,0,0,16],style:{color:"rgba(0,0,0,.4)","background-color":"transparent"},flexStyle:"${subTitle.style}",text:"${subTitle.text}",visibility:"${subTitle}"})])])},mo.__scopeId="data-v-703673b8",mo.__file="src/poster/qt-poster-focus-title.vue";var bo=dn({name:"qt-poster-corner-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const _o={class:"cornerRoot",focusable:!1};bo.render=function(n,o,a,s,i,c){const r=l("text-view");return e(),t("div",_o,[v(r,{duplicateParentState:!0,focusable:!1,textSize:n.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"])])},bo.__scopeId="data-v-4b767ea2",bo.__file="src/poster/qt-poster-corner-title.vue";var yo=dn({name:"qt-poster",components:{"qt-poster-corner-title":bo,"qt-poster-focus-title":mo},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 To=["enableFocusBorder"],So=["showOnState"],Io={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}"},xo={flexStyle:"${ripple.style}",class:"qt-ui-poster-ripple-view-root-css",showOnState:"focused",focusable:!1,clipChildren:!1},Eo=(e=>(_("data-v-3c4765e9"),e=e(),y(),e))((()=>b("img",{src:"${ripple.src}",class:"qt-ui-ripple-img-css",focusable:!1,duplicateParentState:!0,showIf:"${true}",delayLoad:"800"},null,-1)));yo.render=function(t,o,a,s,i,r){const u=l("qt-poster-focus-title"),f=l("text-view"),p=l("ripple-view"),g=l("qt-poster-corner-title"),h=l("item-frame");return e(),d(h,{type:t.type,layout:"${layout}",flexStyle:"${style}",focusable:t.isFocusable,eventClick:"",eventFocus:"",name:"poster",class:"qt-ui-poster-root-css",itemShowShimmer:"${shimmer.enable}",hideShadow:"${shadow.enable}",shimmerSize:"${size}"},{default:m((()=>[c("封面"),b("img",{class:"qt-ui-poster-img-css",duplicateParentState:!0,postDelay:"300",focusable:!1,enableFocusBorder:t.enableFocusBorder,flexStyle:"${image.style}",src:"${image.src}"},null,8,To),c(" 焦点选中时的标题 "),v(u,{focusable:!1,showOnState:"focused"}),b("div",{style:{"flex-direction":"column","background-color":"transparent","z-index":"999"},duplicateParentState:!0,focusable:!1,flexStyle:"${titleStyle}",showOnState:t.mainTextShowOnState},[c(" 浮动标题 "),b("div",Io,[v(f,{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(" 主标题"),v(f,{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,So),b("div",xo,[v(p,{class:"qt-ui-ripple-view-css",delayLoad:"800",focusable:!1,duplicateParentState:!0,color:"#FF4E46",isShowRipple:"${ripple.enable}",rippleVisible:"invisible"}),Eo]),v(g,{focusable:!1,delayLoad:"600",flexStyle:"${corner.style}",style:{"z-index":"1000",position:"absolute"}}),n(t.$slots,"default")])),_:3},8,["type","focusable"])},yo.__scopeId="data-v-3c4765e9",yo.__file="src/poster/index.vue";var Fo=o({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},size:{type:String,default:"medium"},navs:{type:Array,default:()=>[]}},setup(e,t){const n=a();let o=a("#f5f5f5"),l=T({normal:"#80ffffff",focused:"#000000",selected:"#F5F5F5"}),s=-1,i=-1;S((()=>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)})),n.value?.setListData(t),clearTimeout(i);let o=e.initSelect;o>-1&&(n.value?.scrollToPosition(o),i=setTimeout((()=>{n.value?.setItemSelected(o,!0),r(o)}),300))},r=e=>{clearTimeout(s),s=setTimeout((()=>{t.emit("tab-select",{position:e})}),300)};return{navList:n,focusColor:o,textColor:l,bgPadding:[10,10],onTabChange:e=>{!0===e.hasFocus&&(t.emit("tab-focus",e),r(e.position))},scrollToPosition:e=>{n.value?.scrollToPosition(e)},scrollToTop:()=>{n.value?.scrollToTop()},init:e=>{c(e.data)}}}});const Po=["stateTextColor","sateBackgroundPadding"],Co=["stateTextColor","sateBackgroundPadding"];var Lo,ko;Fo.render=function(t,o,a,i,c,r){const u=l("text-view"),f=l("qt-list-view");return t.horizontal?(e(),d(f,{key:0,ref:"navList",clipChildren:!1,clipPadding:!1,horizontal:"",class:"qt-ui-nav-bar-root-horizontal",onItemFocused:t.onTabChange},{default:m((()=>[b("div",{class:"qt-ui-nav-bar-item-css",type:2e4,autoWidth:"",focusable:!0,eventFocus:"",flexStyle:"${style}",clipChildren:!1,style:s({focusBackgroundColor:t.focusColor}),stateTextColor:t.textColor,sateBackgroundPadding:t.bgPadding},[v(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,Po),n(t.$slots,"default")])),_:3},8,["onItemFocused"])):(e(),d(f,{key:1,ref:"navList",clipChildren:!1,clipPadding:!1,class:"qt-ui-nav-bar-root-vertical",onItemFocused:t.onTabChange},{default:m((()=>[b("div",{class:"qt-ui-nav-bar-item-css",type:2e4,flexStyle:"${style}",eventFocus:"",autoWidth:"",focusable:!0,stateTextColor:t.textColor,style:s({focusBackgroundColor:t.focusColor}),sateBackgroundPadding:t.bgPadding,clipChildren:!1},[v(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,Co),n(t.$slots,"default")])),_:3},8,["onItemFocused"]))},Fo.__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"}(Lo||(Lo={})),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"}(ko||(ko={}));var Do=dn({name:"card-item",setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-item","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});Do.render=function(t,n,o,a,s,i){const c=l("es-card-container");return e(),d(c,{clipChildren:!1,clipPadding:!1,autoRecycle:!0,disablePlaceholder:"",layout:"${layout}",flexStyle:"${style}",cardId:"${cardId}",focusScale:"${cardPlaceHolder.focusScale}",focusable:"${cardPlaceHolder.focusable}",showPlaceHolder:"${cardPlaceHolder.enable}",placeHolderRadius:"${cardPlaceHolder.radius}",placeHolderRect:"${cardPlaceHolder.rect}",type:10003,onFocus:t.onFocus,class:"qt-ui-waterfall-card-item"},null,8,["onFocus"])},Do.__scopeId="data-v-599898aa",Do.__file="src/waterfall/item/card-item.vue";var No=dn({name:"standard-section",components:{"card-item":Do},props:{enablePlaceholder:{type:Boolean,default:!0},plateData:{type:String,default:""},useDiff:{type:Boolean,default:!0},cachePool:{type:Object,default:{}},sectionType:{type:Number,default:Lo.QT_WATERFALL_SECTION_TYPE_FLEX},standItemType:{type:Number,default:ko.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM},currentPageIndex:{type:Number,default:-1}},setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-item","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});const wo=["type"];No.render=function(o,a,s,i,r,u){const d=l("text-view"),f=l("qt-poster"),p=l("card-item"),g=l("tv-flex");return e(),t("div",{class:"standard-section-css",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,type:o.sectionType,focusable:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[v(d,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(g,{class:"standard-section-css",name:"QUICKTVUI_WARTERFALL_LIST",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,bringFocusChildToFront:!0,cachePool:o.cachePool,useDiff:o.useDiff,keyName:"_id",enablePlaceholder:o.enablePlaceholder,focusScrollTarget:"${focusScrollTarget==true}",list:"${itemList}"},{default:m((()=>[c(" poster "),v(f,{"load-delay":500,type:o.standItemType},null,8,["type"]),c(" card "),v(p,{onFocus:o.onFocus},null,8,["onFocus"]),n(o.$slots,"default")])),_:3},8,["cachePool","useDiff","enablePlaceholder"])],8,wo)},No.__scopeId="data-v-227e921e",No.__file="src/waterfall/section/flex-section.vue";const Oo="tab-list-section";var Ao=dn({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:Lo.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(Oo,"----------onItemBind--------------\x3e>>",e)},onItemClick:function(e){n.isLoggable(C.DEBUG)&&n.d(Oo,"----------onItemClick--------------\x3e>>",e)},onItemRecycled:function(e){n.isLoggable(C.DEBUG)&&n.d(Oo,"----------onItemRecycled--------------\x3e>>",e)},onItemFocused:function(e){n.isLoggable(C.DEBUG)&&n.d(Oo,"----------onItemFocused--------------\x3e>>",e)}}}});const Ro={class:"qt-ui-section-tab-list-root",focusable:!1,flexStyle:"${style}",blockFocusDirections:["right"],clipChildren:!1,useAdvancedFocusSearch:!0,bringFocusChildToFront:!0},Bo=["type"];Ao.render=function(t,o,a,s,i,c){const r=l("text-view"),u=l("qt-poster"),f=l("tv-list"),p=l("tv-item");return e(),d(p,{type:t.sectionType,clipPadding:!1,clipChildren:!1,ref:"listSection",class:"tab-list-section-root-css",onItemClick:t.onItemClick,onItemBind:t.onItemBind,onItemUnbind:t.onItemRecycled,onItemFocused:t.onItemFocused},{default:m((()=>[b("div",Ro,[v(r,{class:"tab-list-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(f,{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:t.enablePlaceholder,cachePoolName:"HorizontalList",blockFocusDirections:t.blockDirections},{default:m((()=>[v(u,{type:t.standItemType},null,8,["type"]),b("div",{type:t.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:""},[v(r,{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,Bo),n(t.$slots,"default")])),_:3},8,["enablePlaceholder","blockFocusDirections"])])])),_:3},8,["type","onItemClick","onItemBind","onItemUnbind","onItemFocused"])},Ao.__scopeId="data-v-88e60816",Ao.__file="src/waterfall/section/tabs-list-section.vue";var $o=dn({name:"loading-section"});const Uo={focusable:!1,type:-1,class:"loading-section-css"};$o.render=function(n,o,a,s,i,c){const r=l("qt-loading-view");return e(),t("div",Uo,[v(r,{class:"loading-section-loading-css"})])},$o.__scopeId="data-v-48609f24",$o.__file="src/waterfall/section/loading-section.vue";var Vo=dn({name:"end-section",setup:()=>({})});const zo={type:-1001,focusable:!1,flexStyle:"${style}",class:"qt-waterfall-end-section-css"};Vo.render=function(n,o,a,s,i,c){const r=l("text-view");return e(),t("div",zo,[v(r,{focusable:!1,gravity:"center",flexStyle:"${titleStyle}",class:"qt-waterfall-end-section-text-css",fontSize:28,text:"${title}"})])},Vo.__scopeId="data-v-70b82c43",Vo.__file="src/waterfall/section/end-section.vue";var qo=dn({props:{plateTitleLeftMargin:{type:Number,default:0},type:{type:Number,default:Lo.QT_WATERFALL_SECTION_TYPE_TITLE}},setup:(e,t)=>({})});const Wo=["type"];qo.render=function(n,o,a,i,c,r){const u=l("text-view");return e(),t("div",{class:"section-title-css",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,type:n.type,focusable:!1,bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[v(u,{class:"section-title-text-css",delayLoad:"200",postDelay:"300",style:s({marginLeft:n.plateTitleLeftMargin+"px"}),focusable:!1,textSize:50,text:"${title}"},null,8,["style"])],8,Wo)},qo.__scopeId="data-v-20428d40",qo.__file="src/waterfall/section/section-title.vue";var Mo=dn({name:"blank-section",setup:()=>({})});const Go={focusable:!1,type:-1e3,flexStyle:"${style}",class:"qt-ui-waterfall-blank-section"};Mo.render=function(n,o,a,l,s,i){return e(),t("div",Go)},Mo.__scopeId="data-v-eeab4d88",Mo.__file="src/waterfall/section/blank-section.vue";var Qo=dn({name:"card-section",setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-section","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});const jo={type:1006,class:"qt-ui-waterfall-card-section-css",clipChildren:!1,clipPadding:!1,focusScrollTarget:"${isFocusScrollTarget}",keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0};Qo.render=function(n,o,a,s,i,c){const r=l("text-view"),u=l("es-card-container");return e(),t("div",jo,[v(r,{class:"qt-ui-waterfall-card-section-title-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(u,{cardId:"${cardId}",onFocus:n.onFocus,clipChildren:!1,clipPadding:!1,autoRecycle:!0,focusScale:"${cardPlaceHolder.focusScale}",focusable:"${cardPlaceHolder.focusable}",showPlaceHolder:"${cardPlaceHolder.enable}",placeHolderRadius:"${cardPlaceHolder.radius}",placeHolderRect:"${cardPlaceHolder.rect}",flexStyle:"${cardStyle}",class:"qt-ui-waterfall-card-section"},null,8,["onFocus"])])},Qo.__scopeId="data-v-43a44788",Qo.__file="src/waterfall/section/card-section.vue";var Yo=dn({name:"vue-section",setup:(e,t)=>({onSectionBind:function(){}})});function Ho(e,t){const n=[];if(t&&t.length>0)for(let o=0;o<t.length;o++){let a=Xo(e,t[o]);n.push(a)}return n}function Xo(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,l=a?.height??0,s=a?.marginTop??0,i=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],l=a.decoration,s=l?.left??0,i=l?.top??0,c=l?.right??0,r=l?.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+s,a.layout[1]=d+i,a.layout[1]+m+r>p&&(p=a.layout[1]+m+r),m+i+r>f&&(f=m+i+r),u+=g+o+s+c}return p+l+s+i+c+r}(e.width,t),t.style.height=n),t}function Ko(){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 l=n+o;n+o>a&&(l=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let o=n;o<l;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 l=e.length,s=n(0,l),i=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:l,sectionCount:a.length,itemIndex:s,itemCount:i}},deleteSection:function(t,a){const l=n(0,t-1),s=n(t,a);return e.splice(t,a),o(),{sectionIndex:t,sectionCount:a,itemIndex:l,itemCount:s}},updateSection:function(a,l){const s=n(0,a-1),i=t(l);return e.splice(a,1,l),o(),{sectionIndex:a,sectionCount:1,itemIndex:s,itemCount:i}},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 l=e[t],s=l.itemList.length;return l.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,l){return e[t].itemList.splice(n,a,...l),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=[]}}}Yo.render=function(t,o,a,s,i,c){const r=l("tv-item");return e(),d(r,{class:"qt-ui-waterfall-vue-section",type:1007,blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,flexStyle:"${style}",singleton:"",onItemBind:t.onSectionBind},{default:m((()=>[n(t.$slots,"default")])),_:3},8,["onItemBind"])},Yo.__scopeId="data-v-f8447724",Yo.__file="src/waterfall/section/vue-section.vue";const Jo="qt-waterfall";var Zo,ea=dn({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},blockFocusDirections:{type:Array,default:()=>["down"]}},setup(e,t){const n=P(),o={name:"tvList"+Date.now(),size:{20008:10}},l=a();let s;const i=Ko();return{waterfallRef:l,init:function(e){s=e},setAutoFocus:function(e,t){l.value?.setAutoFocus(e,t)},getSectionList:function(){return i.getSectionList()},setSectionList:function(e){if(!s)return;n.isLoggable(C.DEBUG)&&n.d(Jo,"-------1---setSectionList--------------\x3e>>"),i.destroy();const t=i.addSectionList(e);n.isLoggable(C.DEBUG)&&n.d(Jo,"-------2---setSectionList--------------\x3e>>",t);const o=Ho(s,e);n.isLoggable(C.DEBUG)&&n.d(Jo,"----------setSectionList-----最终数据---------\x3e>>",o),l.value?.setListData(o)},addSectionList:function(e){if(!s)return;i.addSectionList(e);const t=Ho(s,e);n.isLoggable(C.DEBUG)&&n.d(Jo,"----------addSectionList-----最终数据---------\x3e>>",t),l.value?.addListData(t)},deleteSection:function(e,t){const o=i.deleteSection(e,t);n.isLoggable(C.DEBUG)&&n.d(Jo,"----------deleteSection-----最终数据---------\x3e>>",o),l.value?.deleteItem(e,t)},updateSection:function(e,t){i.updateSection(e,t);const o=Xo(s,t);n.isLoggable(C.DEBUG)&&n.d(Jo,"----------updateSection-----最终数据---------\x3e>>sectionIndex:"+e+"updateSection:"+o),l.value?.updateItem(e,o)},updateSectionList:function(e,t,n){const o=[];for(let t=0;t<n.length;t++){const a=n[t];i.updateSection(e+t,a);const l=Xo(s,a);l&&o.push(l)}l.value?.updateItemList(e,t,o)},getSection:function(e){return i.getSection(e)},addItemList:function(e,t){i.addItemList(e,t);const n=i.getSection(e);if(n){const t=Xo(s,n);l.value?.updateItem(e,t)}},deleteItem:function(e,t,n){i.deleteItem(e,t,n);const o=i.getSection(e);if(o){const t=Xo(s,o);l.value?.updateItem(e,t)}},updateItem:function(e,t,n){i.updateItem(e,t,n);const o=i.getSection(e);if(o){const t=Xo(s,o);l.value?.updateItem(e,t)}},updateItemList:function(e,t,n,o){i.updateItemList(e,t,n,o);const a=i.getSection(e);if(a){const t=Xo(s,a);l.value?.updateItem(e,t)}},getItem:function(e,t){return i.getItem(e,t)},cachePool:o,flexCachePool:{name:"tvFlex",size:{1:50}},onScroll:function(e){e.stopPropagation();let n=e.offsetX,o=e.offsetY;t.emit("onScroll",n,o)},onItemClick:function(e){n.isLoggable(C.DEBUG)&&n.d(Jo,"----------onItemClick--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" "),t.emit("onItemClick",e.parentPosition,e.position,e.item)},onItemFocused:function(e){n.isLoggable(C.DEBUG)&&n.d(Jo,"----------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){n.isLoggable(C.DEBUG)&&n.d(Jo,"----------onSectionBind--------------\x3e>>",e);let o=e.pageIndex??0;t.emit("onSectionBind",o,e.position)}},onSectionAttached:function(e){if(e){n.isLoggable(C.DEBUG)&&n.d(Jo,"----------onSectionAttached--------------\x3e>>",e);let o=e.pageIndex??0;t.emit("onSectionAttached",o,e.position)}},onScrollStateChanged:function(e){let n=e.offsetY,o=e.offsetX,a=e.newState;t.emit("onScrollStateChanged",o,n,a)},resumePostTask:function(){l.value?.pausePostTask()},pausePostTask:function(){l.value?.pausePostTask()},clearPostTask:function(){l.value?.clearPostTask()},destroy:function(){l.value?.destroy()},scrollToTop:function(){l.value?.scrollToTop()}}},components:{"flex-section":No,"tabs-list-section":Ao,"section-title":qo,"loading-section":$o,"end-section":Vo,"blank-section":Mo,"card-section":Qo,"vue-section":Yo}});function ta(){const e=new Map,t=new Map;function n(n){const o={index:n,state:Zo.QT_TAB_PAGE_STATE_IDLE};e.set(n,o),t.set(n,[])}function o(e){return e.itemList.length}function a(e,t,n){const a=e.length;if(t<0||t>=a)return 0;let l=t+n;t+n>a&&(l=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let n=t;n<l;n++){s+=o(e[n])}return s}function l(){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 i=t.get(n)??[],c=i.length,r=a(i,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);i.push(...s);const d=e.get(n);return d&&(d.state=Zo.QT_TAB_PAGE_STATE_IDLE),l(),{pageIndex:n,sectionIndex:c,sectionCount:s.length,itemIndex:r,itemCount:u}},deleteSection:function(e,n,o){const s=t.get(e)??[],i=a(s,0,n-1),c=a(s,n,o);return s.splice(n,o),l(),{pageIndex:e,sectionIndex:n,sectionCount:o,itemIndex:i,itemCount:c}},updateSection:function(e,n,s){const i=t.get(e)??[],c=a(i,0,n-1),r=o(s);return i.splice(n,1,s),l(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:r}},updateSectionList:function(e,n){return t.set(e,n),l(),{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 i=a[n],c=i.itemList.length;return i.itemList.push(...o),l(),{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),l(),{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),l(),{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),l(),{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()}}}ea.render=function(t,o,a,s,i,r){const u=l("flex-section"),f=l("tabs-list-section"),p=l("loading-section"),g=l("end-section"),h=l("blank-section"),b=l("card-section"),_=l("vue-section"),y=l("tv-list");return e(),d(y,{ref:"waterfallRef",class:"qt-waterfall-root-css",clipChildren:!1,clipPadding:!1,listenBoundEvent:!0,negativeKeyTime:"30",postContentDelay:"500",onScroll:t.onScroll,onItemClick:t.onItemClick,onItemFocused:t.onItemFocused,onItemBind:t.onSectionBind,onItemAttached:t.onSectionAttached,focusMemory:!1,cachePool:t.cachePool,preload:1,checkScrollOffsetOnStateChanged:!0,makeChildVisibleType:"center",scrollThresholdVertical:50,scrollEventThrottle:16,enableSelectOnFocus:!1,advancedFocusSearchSpan:"1",scrollYLesserReferenceValue:30,scrollYGreaterReferenceValue:30,shakePreCheckNumber:"4",blockFocusDirections:t.blockFocusDirections,onScrollStateChanged:t.onScrollStateChanged},{default:m((()=>[c(" 普通版块"),v(u,{"cache-pool":t.flexCachePool,enablePlaceholder:t.enablePlaceholder,onFocus:t.onItemFocused},{default:m((()=>[n(t.$slots,"item")])),_:3},8,["cache-pool","enablePlaceholder","onFocus"]),c("一行滚动 多级tab"),v(f,{enablePlaceholder:t.enablePlaceholder},{default:m((()=>[n(t.$slots,"list-item")])),_:3},8,["enablePlaceholder"]),c(" loading"),v(p),c(" end "),v(g),c(" blank "),v(h),c(" card "),v(b,{onFocus:t.onItemFocused},null,8,["onFocus"]),c(" vue "),v(_,null,{default:m((()=>[n(t.$slots,"vue-section")])),_:3}),n(t.$slots,"section")])),_:3},8,["onScroll","onItemClick","onItemFocused","onItemBind","onItemAttached","cachePool","blockFocusDirections","onScrollStateChanged"])},ea.__file="src/waterfall/index.vue",function(e){e[e.QT_TAB_PAGE_STATE_IDLE=0]="QT_TAB_PAGE_STATE_IDLE",e[e.QT_TAB_PAGE_STATE_BUSY=1]="QT_TAB_PAGE_STATE_BUSY",e[e.QT_TAB_PAGE_STATE_COMPLETE=2]="QT_TAB_PAGE_STATE_COMPLETE",e[e.QT_TAB_PAGE_STATE_ERROR=3]="QT_TAB_PAGE_STATE_ERROR"}(Zo||(Zo={}));const na="qt-tab";var oa=dn({name:"qt-tab",emits:["onTabPageLoadData","onTabPageChanged","onTabEvent","onTabPageItemClick","onTabPageItemFocused","onTabPageSectionAttached","onTabPageScroll","onTabPageScrollStateChanged","onTabMoveToTopStart","onTabMoveToTopEnd","onTabMoveToBottomStart","onTabMoveToBottomEnd","onTabChanged","onTabPageScrollToEnd","onTabPageScrollToStart"],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:()=>[]},tabContentBlockFocusDirections:{type:Array,default:()=>["down"]},tabContentResumeDelay:{type:Number,default:500},tabContentSwitchDelay:{type:Number,default:300}},setup(e,t){const n=a(),o=a(!0),l=a(1),s=a(!0),i=P(),c=a(),r=ta();let u,d=-1;function f(e,t){const n=r.getTabPageData(e);n&&(n.state=t,r.setTabPageData(e,n))}function p(n,o,a){let l=r.getTabPageData(n);if(l&&l.state===Zo.QT_TAB_PAGE_STATE_IDLE){a>=r.getSectionList(n).length-e.preloadNumber-1&&(i.isLoggable(C.DEBUG)&&i.d(na,"----------loadPageData----加载数加载据--\x3e>>> pageIndex:"+n+" sectionIndex:"+a),t.emit("onTabPageLoadData",n,o),f(n,Zo.QT_TAB_PAGE_STATE_BUSY))}else i.isLoggable(C.DEBUG)&&i.d(na,"----------loadPageData--状态不对--\x3e>>>",n)}function g(e,n){i.isLoggable(C.DEBUG)&&i.d(na,"----------onWaterfallScroll----\x3e>>> offsetX:"+e+" scrollY:"+n),t.emit("onTabPageScroll",e,n)}function m(e,n,o){i.isLoggable(C.DEBUG)&&i.d(na,"----------onWaterfallScrollStateChanged----\x3e>>> offsetX:"+e+" scrollY:"+n+" newState:"+o),t.emit("onTabPageScrollStateChanged",e,n,o)}return{tabs:n,ifTabs:o,navBarRef:c,initTab:function(e){let t={defaultIndex:e.defaultIndex,focusIndex:e.defaultFocusIndex,data:e.itemList};r.initTab(e),n.value?.setTabsData(t)},setAutoFocus:function(e,t){n.value?.setAutoFocus(e,t)},initWaterfall:function(e){u=e},setTagPageSate:f,setTabPageData:function(e,t){i.isLoggable(C.DEBUG)&&i.d(na,"----------loadPageData----setTabPageData--\x3e>>>pageIndex:"+e),r.addSectionList(e,t.data);const o={data:Ho(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};i.isLoggable(C.DEBUG)&&i.d(na,"------设置数据----setTabPageData------\x3e>>> pageIndex:"+e+" data:",o),n.value?.setPageData(e,o)},addPageData:function(e,t,o=0){i.isLoggable(C.DEBUG)&&i.d(na,"----------loadPageData----addPageData--\x3e>>>pageIndex:"+e),r.addSectionList(e,t.data);const a={data:Ho(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};i.isLoggable(C.DEBUG)&&i.d(na,"----设置数据------addPageData------\x3e>>> pageIndex:"+e+" data:",a," deleteCount:"+o),n.value?.addPageData(e,a,o)},updatePageData:function(e,t){r.updateSectionList(e,t.data);const o={data:Ho(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};n.value?.updatePageData(e,o)},updatePageSection:function(e,t,o){r.updateSection(e,t,o);const a=Xo(u,o);n.value?.updateRootNode(e,t,a)},getPageSection:function(e,t){return r.getSection(e,t)},getPageSectionList:function(e){return r.getSectionList(e)},deletePageSection:function(e,t,o){r.deleteSection(e,t,o),n.value?.invokeContentFunction(e,"deleteItemRange",[t,o])},addPageItemList:function(e,t,o){r.addItemList(e,t,o);const a=r.getSection(e,t);if(a){const o=Xo(u,a);n.value?.updateRootNode(e,t,o)}},getPageItem:function(e,t,n){return r.getItem(e,t,n)},updatePageItem:function(e,t,o,a){r.updateItem(e,t,o,a),n.value?.updateChildNode(e,t,o,a)},deletePageItem:function(e,t,o,a){r.deleteItem(e,t,o,a);const l=r.getSection(e,t);if(l){const o=Xo(u,l);n.value?.updateRootNode(e,t,o)}},blockRootFocus:function(){n.value?.blockRootFocus()},unBlockRootFocus:function(){n.value?.unBlockRootFocus()},focusBackToTop:function(){n.value?.focusBackToTop()},requestNodeFocus:function(e){n.value?.requestNodeFocus(e)},reloadAll:function(e=!0){n.value?.reloadAll(e)},reloadPage:function(e){n.value?.reloadPage(e)},setCurrentPage:function(e){n.value?.setCurrentPage(e)},requestTabFocus:function(e){n.value?.requestTabFocus(e)},invokeContentFunction:function(e,t,o){n.value?.invokeContentFunction(e,t,o)},invokeContentFunctionDirect:function(e,t){n.value?.invokeContentFunctionDirect(e,t)},contentScrollToFocus:function(e){n.value?.contentScrollToFocus(e)},getRootNodeViewState:function(e,t,o){n.value?.getRootNodeViewState(e,t,o)},getChildNodeViewState:function(e,t,o,a,l){n.value?.getChildNodeViewState(e,t,o,a,l)},dispatchUIFunctionOnChildNode:function(e,t,o,a,l){n.value?.dispatchUIFunctionOnChildNode(e,t,o,a,l)},updateItemMatched:function(e="id",t,o){n.value?.updateItemMatched(e,t,o)},updateRootNode:function(e,t,o){n.value?.updateRootNode(e,t,o)},updateChildNode:function(e,t,o,a){n.value?.updateChildNode(e,t,o,a)},destroy:function(){n.value?.destroy()},rootOpacity:l,isTabHorizontal:s,onTabPageLoadData:function(e){const t=e.pageIndex,n=e.useDiff;i.isLoggable(C.DEBUG)&&i.d(na,"----------loadPageData----android--\x3e>>>pageIndex:"+t),p(t,n,0)},onTabPageChanged:function(e){const n=e.pageIndex;d=n;const o=e.data;i.isLoggable(C.DEBUG)&&i.d(na,"----------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,l=e.params.x,s=e.params.y,c=e.params.contentOffset,r=e.params.state;switch(i.isLoggable(C.DEBUG)&&i.d(na,"----------onTabEvent------\x3e>>> eventName:"+o+" tabIndex:"+a+" params:",n),t.emit("onTabEvent",a,o,n),o){case"onMoveToTopStart":t.emit("onTabMoveToTopStart",a,o,n);break;case"onMoveToTopEnd":t.emit("onTabMoveToTopEnd",a,o,n);break;case"onMoveToBottomStart":t.emit("onTabMoveToBottomStart",a,o,n);break;case"onMoveToBottomEnd":t.emit("onTabMoveToBottomEnd",a,o,n);break;case"onTabChanged":t.emit("onTabChanged",a,o,n);break;case"onScroll":g(l,s);break;case"onScrollStateChanged":m(c.x,c.y,r.newState)}},onWaterfallItemClick:function(e,n,o){i.isLoggable(C.DEBUG)&&i.d(na,"-----------onWaterfallItemClick---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+n+" item:",o),t.emit("onTabPageItemClick",d,e,n,o)},onWaterfallItemFocused:function(e,n,o,a){i.isLoggable(C.DEBUG)&&i.d(na,"-----------onWaterfallItemFocused---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+n+" isFocused:"+o+" item:",a),t.emit("onTabPageItemFocused",d,e,n,o,a)},onWaterfallSectionBind:function(e,t){i.isLoggable(C.DEBUG)&&i.d(na,"-----------onWaterfallSectionBind---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t),e===d&&(i.isLoggable(C.DEBUG)&&i.d(na,"----------loadPageData----bind--\x3e>>>pageIndex:"+e),p(e,!1,t))},onWaterfallSectionAttached:function(e,n){i.isLoggable(C.DEBUG)&&i.d(na,"-----------onWaterfallSectionAttached---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+n),t.emit("onTabPageSectionAttached",e,n)},onWaterfallScroll:g,onWaterfallScrollStateChanged:m,onTabPageScrollToStart:function(e){const n=e.pageIndex;t.emit("onTabPageScrollToStart",n),i.isLoggable(C.DEBUG)&&i.d(na,"----------onTabPageScrollToStart------\x3e>>> pageIndex:"+n)},onTabPageScrollToEnd:function(e){const n=e.pageIndex;t.emit("onTabPageScrollToEnd",n),i.isLoggable(C.DEBUG)&&i.d(na,"----------onTabPageScrollToEnd------\x3e>>> pageIndex:"+n)}}}});oa.render=function(t,o,a,s,r,u){const f=l("qt-nav-bar"),p=l("qt-waterfall"),g=l("recycler-view-pager"),h=l("tabs");return t.ifTabs?(e(),d(h,{key:0,ref:"tabs",class:i(["tabs-root-css",t.tabClass]),dataStrategy:t.tabsDataStrategy,hideOnSingleTab:this.hideOnSingleTab,pageSwitchDelay:t.tabContentSwitchDelay,resumeTaskDelay:t.tabContentResumeDelay,suspension:this.floatNavBar,clipChildren:!1,outOfDateTime:3e5,blockFocusDirections:t.tabContentBlockFocusDirections,onScrollToStart:t.onTabPageScrollToStart,onScrollToEnd:t.onTabPageScrollToEnd,onLoadPage:t.onTabPageLoadData,onPageChanged:t.onTabPageChanged,onTabEvent:t.onTabEvent},{default:m((()=>[v(f,{ref:"navBarRef",name:"tabList",focusable:!1,class:i(t.tabNavBarClass),"text-key":"text",clipChldren:!1,horizontal:t.isTabHorizontal},{default:m((()=>[n(t.$slots,"tab-item")])),_:3},8,["class","horizontal"]),v(g,{nextFocusName:t.contentNextFocus,ref:"viewPager",class:i(t.tabContentClass),name:"content",loadingItemType:-1,clipChldren:!1,opacity:t.rootOpacity,focusable:!1,enableTransform:t.pageTransform,triggerTask:t.triggerTask,direction:t.isTabHorizontal?"horizontal":"vertical",blockFocusDirections:t.isTabHorizontal?t.blockViewPager:t.blockViewPagerVertical},{default:m((()=>[v(p,{onOnScrollStateChanged:t.onWaterfallScrollStateChanged,onOnScroll:t.onWaterfallScroll,onOnSectionBind:t.onWaterfallSectionBind,onOnSectionAttached:t.onWaterfallSectionAttached,onOnItemFocused:t.onWaterfallItemFocused,onOnItemClick:t.onWaterfallItemClick},{item:m((()=>[n(t.$slots,"waterfall-item")])),section:m((()=>[n(t.$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","blockFocusDirections","onScrollToStart","onScrollToEnd","onLoadPage","onPageChanged","onTabEvent"])):c("v-if",!0)},oa.__file="src/tab/index.vue";var aa=dn({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},focusScale:{type:Number,default:1.15},navType:{type:Number,default:10001},yOffest:{type:Number,default:802}},emits:["item-click","item-focused"],setup(e,t){let n=a(1);const o=a(),l=a();let s=[],i=-1,c=-1,r=[];let u=-1;let d=-1;return{descendantFocusability:n,content_list_view:o,nav_list_view:l,init:t=>{t.forEach(((n,o)=>{n.mask||(n.mask="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/mask.png"),n.icon||(n.icon="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/playing.png"),n.isPlaying=!1,e.currentFocusIndex==o&&(n.isPlaying=!0);let a=!1;for(let e=0;e<s.length;e++){const t=s[e];n.categoryname==t.categoryname&&(n.navIndex=e,a=!0)}a||(n.navIndex||(n.navIndex=s.length),s.push({type:n.type,decoration:{left:50},categoryname:n.categoryname,startIndex:o,isNeedFocus:!0})),r=t})),Mt((()=>{o.value?.setListData(t),l.value?.setListData(s),setTimeout((()=>{i=e.currentFocusIndex,c=t[e.currentFocusIndex].navIndex,o.value?.scrollToFocused(i),l.value?.scrollToSelected(c,!0)}),300)}))},onItemBind:()=>{},onSItemClick:e=>{t.emit("item-click",e)},onFItemClick:e=>{t.emit("item-click",e)},scrollToIndex:(e,t=!0,n=802)=>{o.value?.scrollToIndex(e,t,n)},scrollToFocused:e=>{n.value=1,o.value?.scrollToFocused(e)},setItemFocused:e=>{n.value=1,o.value?.setItemFocused(e)},scrollToSelected:(e,t=!0)=>{o.value?.scrollToSelected(e,t)},setItemSelected:(e,t=!0)=>{o.value?.setItemSelected(e,!0)},onSItemFocused:e=>{clearTimeout(u),u=setTimeout((()=>{if(e.hasFocus){if(i!=e.position){if(i>-1){let e=r[i];e.isPlaying=!1,o.value?.updateItem(i,e)}let t=r[e.position];t.isPlaying=!0,o.value?.updateItem(e.position,t)}i=e.position,c!=e.item.navIndex&&(c=e.item.navIndex,l.value?.scrollToSelected(e.item.navIndex,!0)),t.emit("item-focused",e)}else c=e.item.navIndex}),300)},onFItemFocused:t=>{clearTimeout(d),t.hasFocus&&(c!=t.position&&(n.value=2,c=t.position,r[t.item.startIndex].isNeedFocus?(o.value?.scrollToIndex(t.item.startIndex,!0,e.yOffest),o.value?.setItemSelected(t.item.startIndex,!0)):(o.value?.scrollToIndex(t.item.startIndex+1,!0,e.yOffest),o.value?.setItemSelected(t.item.startIndex+1,!0))),d=setTimeout((()=>{n.value=1}),400))},updateItem:(e,t)=>{r[e]=t,r.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");for(let t=0;t<s.length;t++){const n=s[t];e.categoryname==n.categoryname&&(e.navIndex=t)}})),o.value?.updateItem(e,r[e])}}}});const la={focusable:!1,clipChildren:!1},sa=["focusScale"],ia=b("img",{class:"coverV",src:"${coverV}",focusable:!1,postDelay:"300"},null,-1),ca=b("img",{src:"${mask}",class:"titMask",focusable:"false",postDelay:"300",showIf:"${isPlaying}"},null,-1),ra={focusable:!1,class:"clv_item_text_box",showIf:"${isPlaying}"},ua={class:"playMark",focusable:!1},da=["type"],fa=b("div",{class:"line",focusable:!1,showOnState:"selected",duplicateParentState:!0},null,-1),pa=b("div",{duplicateParentState:!0,class:"nav_item_text_focused",showOnState:"focused",focusable:!1,gradientBackground:{colors:["#FF2F7CEB","#FF1163D8"],cornerRadius:40}},null,-1),ga={class:"nav_item_text",focusable:!1,duplicateParentState:!0};var ma,ha,va;aa.render=function(o,a,r,u,d,f){const p=l("play-mark"),g=l("text-view"),h=l("qt-list-view");return e(),t("div",la,[c(" listview second nav "),v(h,{class:i(o.className),ref:"content_list_view",clipChildren:!1,clipPadding:!1,onItemClick:o.onSItemClick,horizontal:"",blockFocusDirections:["left","right"],descendantFocusability:o.descendantFocusability,onItemFocused:o.onSItemFocused},{default:m((()=>[b("div",{type:10001,name:"clv_item",class:"clv_item",focusable:!0,enableFocusBorder:!0,clipChildren:!1,eventClick:"",eventFocus:"",focusScale:o.focusScale},[ia,ca,b("div",ra,[b("div",ua,[v(p,{style:s([{width:"28px",height:"20px"},{"margin-left":"16px"}]),markColor:"#ffffff",gap:-1,focusable:!1})]),v(g,{focusable:!1,ellipsizeMode:2,fontSize:30,gravity:"centerVertical",lines:1,maxLines:1,class:"clv_item_text",text:"${assetTitle}",paddingRect:[6,0,0,0]})]),c(' <div showIf="${isPlaying==false}" :focusable="false" class="clv_item_text_box1">\n <text-view :focusable="false" :ellipsizeMode="2" :fontSize="30" gravity="centerVertical" :lines="1" :maxLines="1"\n :duplicateParentState="true" class="clv_item_selected_text" text="${assetTitle}" :paddingRect="[16,0,0,0]" \n :showOnState="[\'selected\']"/>\n <text-view :focusable="false" :ellipsizeMode="2" :fontSize="30" gravity="centerVertical" :lines="1" :maxLines="1"\n :duplicateParentState="true" class="clv_item_selected_text" text="" :paddingRect="[16,0,0,0]" \n :showOnState="[\'focused\',\'normal\']" />\n </div> ')],8,sa),n(o.$slots,"item")])),_:3},8,["class","onItemClick","descendantFocusability","onItemFocused"]),c(" listview first nav "),v(h,{class:i(o.classNavName),ref:"nav_list_view",clipChildren:!1,clipPadding:!1,onItemClick:o.onFItemClick,horizontal:"",blockFocusDirections:["left","right"],onItemFocused:o.onFItemFocused},{default:m((()=>[b("div",{type:o.navType,name:"nav_item",class:"nav_item",focusable:!0,enableFocusBorder:!1,focusScale:"1",eventClick:"",eventFocus:"",clipChildren:!1},[fa,pa,b("div",ga,[v(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text_selected",text:"${categoryname}",showOnState:["selected"]}),v(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,maxLines:1,class:"text",text:"${categoryname}",showOnState:"focused"}),v(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text",text:"${categoryname}",showOnState:["normal"]})])],8,da),n(o.$slots,"navItem")])),_:3},8,["class","onItemClick","onItemFocused"])])},aa.__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"}(ma||(ma={})),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"}(ha||(ha={})),function(e){e[e.QT_NAV_BAR_ITEM_TYPE_TEXT=2e4]="QT_NAV_BAR_ITEM_TYPE_TEXT"}(va||(va={}));const ba=[Xn,Jn,eo,no,go,yo,Fo,ea,oa,aa],_a=e=>{e.component("qt-loading-view",{setup(e,t){const n=a();return()=>I("LoadingViewComponent",{ref:n})}}),function(e){const t=o({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(e,t){const n=a();F();let o=[],l=[],s=[],i="",c=-1,r=!1,u=-1,d=-1,f=-1,m=-1;p((()=>{e.openPage&&(c=1,r=!1,e.loadMore(c))}));const h=t=>{0==o.length&&(o=po(t),v(o,-1),l=t,e.openPage?y(o.concat([{_id:"",type:1002,decoration:{top:18,bottom:18,right:30,left:30}}])):y(o),e.defaultFocus>-1&&(f&&clearTimeout(f),f=setTimeout((()=>{N(e.defaultFocus)}),500)));let n={get(t,n,a){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"))i="push";else{if(-1!=s.indexOf("splice"))return i="splice",function(...e){return t.splice(...e),-1!=s.indexOf("list")?(o[s[0]].list.splice(...e),P(Number(s[0]),o[s[0]])):1==e.length?E(Number(e[0]),o.length-e[0]+1):2==e.length?E(Number(e[0]),e[1]):e.length>2&&(0==e[1]?L(e[0],e.slice(2)):C(e[0],e[1],e.slice(2))),o.splice(e[0],...e.slice(1)),i="",s=[],Reflect.get(t,n,a)};if(-1!=s.indexOf("pop"))return i="pop",function(){return t.pop(),-1!=s.lastIndexOf("list")?(o[s[0]].list.pop(),P(Number(s[0]),o[s[0]])):(E(Number(o.length-1),1),o.pop()),i="",s=[],Reflect.get(t,n,a)};if(-1!=s.indexOf("forEach"))return i="forEach",function(l){return t.forEach((e=>{l(e)})),o=[],o=po(t),e.openPage?y(o.concat([{_id:"",type:1002,decoration:{top:15,left:30}}])):y(o),i="",s=[],Reflect.get(t,n,a)};if(-1!=s.indexOf("concat"))return i="concat",function(l){return t=t.concat(l),-1!=s.lastIndexOf("list")?(o[s[0]].list=o[s[0]].list.concat(l),P(Number(s[0]),o[s[0]])):(o=o.concat(l),e.openPage&&!r?setTimeout((()=>{S(l.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300):T(l)),i="",s=[],Reflect.get(t,n,a)};i=""}const l=Reflect.get(t,n,a);return b(l)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?h(l):(-1==s.indexOf("push")&&(s=[]),l)},set(t,n,a,c){const u=t[n];_(t,n);const d=Reflect.set(t,n,a,c);if((!b(u)&&u!==a||b(u))&&"push"!=i)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]]),o[s[0]].list[s[e+1]]=l[s[0]].list[s[e+1]],o[s[0]].list[s[e+1]].name="name"+s[e-1]+s[e+1]}else o[s[0]]=l[s[0]],o[s[0]].name="name"+s[0],P(Number(s[0]),l[s[0]]);if(n&&"push"==i&&u!==a)-1!=s.lastIndexOf("list")?(s.push(n),o[s[0]].list.push(a)):(s.push(n),o.push(a));else{if("push"==i)if(-1!=s.lastIndexOf("list"))P(Number(s[0]),o[s[0]]);else{let t=o.slice(s[1]);m&&clearTimeout(m),m=e.openPage&&!r?setTimeout((()=>{S(t.concat([{_id:"",type:1002,decoration:{bottom:18,right:30,left:30}}]),1)}),300):setTimeout((()=>{T(t)}),300)}i="",s=[]}return d}};return new Proxy(t,n)},v=(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&&v(o.list,n)}},b=e=>null!==e&&"object"==typeof e,_=(e,t)=>{Object.hasOwnProperty.call(e,t)},y=e=>{u&&clearTimeout(u),u=setTimeout((()=>{x.callUIFunction(n.value,"setListData",e)}),100)},T=e=>{x.callUIFunction(n.value,"addListData",e)},S=(e,t)=>{x.callUIFunction(n.value,"addListDataWithParams",[e,t])},E=(e,t)=>{x.callUIFunction(n.value,"deleteItemRange",[e,t])},P=(e,t)=>{x.callUIFunction(n.value,"updateItem",[e,t])},C=(e,t,o)=>{x.callUIFunction(n.value,"updateItemRange",[e,t,o])},L=(e,t)=>{x.callUIFunction(n.value,"insertItemRange",[e,t])},k=(e,t)=>{x.callUIFunction(n.value,"setSelectChildPosition",[e,t])},D=e=>{x.callUIFunction(n.value,"scrollToPosition",[e])},N=e=>{x.callUIFunction(n.value,"requestChildFocus",[e])};return g((()=>{o=[],l.length=0,s=[],r=!1,c=1,i="",u&&clearTimeout(u),f&&clearTimeout(f),m&&clearTimeout(m),d&&clearTimeout(d)})),t.expose({viewRef:n,init:h,undataItemName:v,hasChanged:(e,t)=>e!==t&&(e==e||t==t),scrollToIndex:(e,t,o)=>{x.callUIFunction(n.value,"scrollToPositionWithOffset",[e,o,t])},updateItem:P,updateItemList:C,hasFocus:e=>{x.callUIFunction(n.value,"hasFocus",(t=>{e(t)}))},updateItemProps:(e,t,o)=>{x.callUIFunction(n.value,"updateItemProps",[t,e,o,!0])},setListData:y,insertItem:L,addListData:T,addListDataWithParams:S,dispatchItemFunction:(e,t,o,a)=>{x.callUIFunction(n.value,"dispatchItemFunction",[e,t,o,a])},deleteItem:E,setBlockFocusDirectionsOnFail:e=>{x.callUIFunction(n.value,"setBlockFocusDirectionsOnFail",[e])},setListDataWithParams:(e,t)=>{x.callUIFunction(n.value,"setListDataWithParams",[e,t])},prepareForRecycle:()=>{x.callUIFunction(n.value,"prepareForRecycle",[])},setDisplay:e=>{x.callUIFunction(n.value,"setDisplay",[e])},scrollToTop:()=>{x.callUIFunction(n.value,"scrollToTop",[])},changeDisplayState:(e,t)=>{x.callUIFunction(n.value,"changeDisplayState",[e,t])},notifySaveInstance:()=>{x.callUIFunction(n.value,"notifySaveInstance",[])},notifyRestoreInstance:()=>{x.callUIFunction(n.value,"notifyRestoreInstance",[])},pausePostTask:()=>{x.callUIFunction(n.value,"pausePostTask",[])},resumePostTask:()=>{x.callUIFunction(n.value,"resumePostTask",[])},getScrollOffset:e=>{x.callUIFunction(n.value,"getScrollOffset",[],e)},scrollToPosition:D,scrollToFocused:e=>{D(e),N(e)},scrollToSelected:(e,t)=>{D(e),k(e,t)},scrollToPositionOffset:(e,t,o,a,l)=>{x.callUIFunction(n.value,"scrollToPositionWithOffset",[t,a,o])},destroy:()=>{x.callUIFunction(n.value,"destroy",[])},setInitPosition:e=>{x.callUIFunction(n.value,"setInitPosition",[e])},setItemFocused:N,clearPostTask:()=>{x.callUIFunction(n.value,"clearAllPostTask",[])},clearFocus:()=>{x.callUIFunction(n.value,"clearFocus",[])},setItemSelected:k,blockRootFocus:()=>{x.callUIFunction(n.value,"blockRootFocus",[])},unBlockRootFocus:()=>{x.callUIFunction(n.value,"unBlockRootFocus",[])},setBackgroundColor:e=>{x.callUIFunction(n.value,"setBackgroundColor",[e])},stopPage:()=>{d&&clearTimeout(d),d=setTimeout((()=>{E(o.length,1)}),400),r=!0},setAutoFocus:function(e,t){x.callUIFunction(n.value,"setAutoFocus",[e,t])}}),()=>{const a=t.slots.default&&t.slots.default();return I("FastListView",{ref:n,onItemClick:e=>{t.emit("item-click",e)},onScroll:e=>{t.emit("scroll",e)},onItemFocused:e=>{t.emit("item-focused",e)},onAttachedToWindow:e=>{t.emit("item-attached",e)},onDetachedFromWindow:e=>{t.emit("item-detached",e)},onBindItem:n=>{n.position==o.length-1-e.preloadNo&&(c++,e.loadMore(c)),t.emit("item-bind",n)},onUnbindItem:e=>{t.emit("item-unbind",e)},onLoadMore:e=>{t.emit("load-more",e)},onScrollStateChanged:e=>{t.emit("scroll-state-changed",e)},onFocusSearchFailed:e=>{t.emit("focus-search-failed",e)},onScrollYGreaterReference:e=>{t.emit("scrollYGreaterReference",e)},onScrollYLesserReference:e=>{t.emit("scrollYLesserReference",e)}},a)}}});e.component("qt-list-view",t)}(e),function(e){const t=o({emits:["item-focused","item-attached","item-detached","item-bind","item-unbind"],setup(e,t){const n=a();return t.expose({viewRef:n,updateItem:(e,t)=>{x.callUIFunction(n.value,"updateItem",[e,t])},dispatchItemFunction:(e,t,o,a)=>{x.callUIFunction(n.value,"dispatchItemFunction",[e,t,o,a])},updateItemProps:(e,t,o)=>{x.callUIFunction(n.value,"updateItemProps",[t,e,o,!0])},batch:e=>{x.callUIFunction(n.value,"batch",[e])}}),()=>{const e=t.slots.default&&t.slots.default();return I("FastListView",{ref:n,onBindItem:e=>{t.emit("item-bind",e)},onItemFocused:e=>{t.emit("item-focused",e)},onAttachedToWindow:e=>{t.emit("item-attached",e)},onDetachedFromWindow:e=>{t.emit("item-detached",e)},onItemRecycled:e=>{t.emit("item-unbind",e)}},e)}}});e.component("qt-list-item",t)}(e);for(let t in ba)e.component(ba[t].name,ba[t])};export{ma as QTDirections,va as QTNavBarItemType,ha as QTScrollState,Zo as QTTabPageState,ko as QTWaterfallItemType,Lo as QTWaterfallSectionType,_a as QuickTVUI,ro as arrangeChildren4ListView};
|
|
1
|
+
import{ref as e,openBlock as t,createElementBlock as n,renderSlot as o,defineComponent as a,resolveComponent as l,normalizeStyle as s,normalizeClass as i,createCommentVNode as c,withDirectives as r,vShow as u,createBlock as d,toDisplayString as f,watchEffect as p,onBeforeUnmount as g,withCtx as m,Fragment as h,createVNode as v,createElementVNode as b,pushScopeId as _,popScopeId as y,reactive as T,watch as S,h as I}from"vue";import{Native as x}from"@extscreen/es3-vue";import{useESToast as F,useES as E,useESLog as P,ESLogLevel as C}from"@extscreen/es3-core";function L(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]}const k="production"!==process.env.NODE_ENV?Object.freeze({}):{};"production"===process.env.NODE_ENV||Object.freeze([]);const D=()=>{},N=/^on[^a-z]/,w=e=>N.test(e),O=Object.assign,A=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},R=Object.prototype.hasOwnProperty,B=(e,t)=>R.call(e,t),$=Array.isArray,U=e=>"[object Map]"===j(e),V=e=>"[object Set]"===j(e),z=e=>"function"==typeof e,q=e=>"string"==typeof e,W=e=>"symbol"==typeof e,M=e=>null!==e&&"object"==typeof e,G=e=>(M(e)||z(e))&&z(e.then)&&z(e.catch),Q=Object.prototype.toString,j=e=>Q.call(e),Y=e=>j(e).slice(8,-1),H=e=>"[object Object]"===j(e),X=e=>q(e)&&"NaN"!==e&&"-"!==e[0]&&""+parseInt(e,10)===e,K=(e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))})((e=>e.charAt(0).toUpperCase()+e.slice(1))),J=(e,t)=>!Object.is(e,t),Z=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})};let ee;const te=()=>ee||(ee="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{});function ne(e){if($(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],a=q(o)?se(o):ne(o);if(a)for(const e in a)t[e]=a[e]}return t}if(q(e)||M(e))return e}const oe=/;(?![^(]*\))/g,ae=/:([^]+)/,le=/\/\*[^]*?\*\//g;function se(e){const t={};return e.replace(le,"").split(oe).forEach((e=>{if(e){const n=e.split(ae);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}function ie(e){let t="";if(q(e))t=e;else if($(e))for(let n=0;n<e.length;n++){const o=ie(e[n]);o&&(t+=o+" ")}else if(M(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function ce(e,...t){console.warn(`[Vue warn] ${e}`,...t)}let re;const ue=e=>{const t=new Set(e);return t.w=0,t.n=0,t},de=e=>(e.w&me)>0,fe=e=>(e.n&me)>0,pe=new WeakMap;let ge=0,me=1;const he=30;let ve;const be=Symbol("production"!==process.env.NODE_ENV?"iterate":""),_e=Symbol("production"!==process.env.NODE_ENV?"Map key iterate":"");class ye{constructor(e,t=null,n){this.fn=e,this.scheduler=t,this.active=!0,this.deps=[],this.parent=void 0,function(e,t=re){t&&t.active&&t.effects.push(e)}(this,n)}run(){if(!this.active)return this.fn();let e=ve,t=Se;for(;e;){if(e===this)return;e=e.parent}try{return this.parent=ve,ve=this,Se=!0,me=1<<++ge,ge<=he?(({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=me})(this):Te(this),this.fn()}finally{ge<=he&&(e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const a=t[o];de(a)&&!fe(a)?a.delete(e):t[n++]=a,a.w&=~me,a.n&=~me}t.length=n}})(this),me=1<<--ge,ve=this.parent,Se=t,this.parent=void 0,this.deferStop&&this.stop()}}stop(){ve===this?this.deferStop=!0:this.active&&(Te(this),this.onStop&&this.onStop(),this.active=!1)}}function Te(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}let Se=!0;const Ie=[];function xe(){Ie.push(Se),Se=!1}function Fe(){const e=Ie.pop();Se=void 0===e||e}function Ee(e,t,n){if(Se&&ve){let o=pe.get(e);o||pe.set(e,o=new Map);let a=o.get(n);a||o.set(n,a=ue());!function(e,t){let n=!1;ge<=he?fe(e)||(e.n|=me,n=!de(e)):n=!e.has(ve);n&&(e.add(ve),ve.deps.push(e),"production"!==process.env.NODE_ENV&&ve.onTrack&&ve.onTrack(O({effect:ve},t)))}(a,"production"!==process.env.NODE_ENV?{effect:ve,target:e,type:t,key:n}:void 0)}}function Pe(e,t,n,o,a,l){const s=pe.get(e);if(!s)return;let i=[];if("clear"===t)i=[...s.values()];else if("length"===n&&$(e)){const e=Number(o);s.forEach(((t,n)=>{("length"===n||!W(n)&&n>=e)&&i.push(t)}))}else switch(void 0!==n&&i.push(s.get(n)),t){case"add":$(e)?X(n)&&i.push(s.get("length")):(i.push(s.get(be)),U(e)&&i.push(s.get(_e)));break;case"delete":$(e)||(i.push(s.get(be)),U(e)&&i.push(s.get(_e)));break;case"set":U(e)&&i.push(s.get(be))}const c="production"!==process.env.NODE_ENV?{target:e,type:t,key:n,newValue:o,oldValue:a,oldTarget:l}:void 0;if(1===i.length)i[0]&&("production"!==process.env.NODE_ENV?Ce(i[0],c):Ce(i[0]));else{const e=[];for(const t of i)t&&e.push(...t);"production"!==process.env.NODE_ENV?Ce(ue(e),c):Ce(ue(e))}}function Ce(e,t){const n=$(e)?e:[...e];for(const e of n)e.computed&&Le(e,t);for(const e of n)e.computed||Le(e,t)}function Le(e,t){(e!==ve||e.allowRecurse)&&("production"!==process.env.NODE_ENV&&e.onTrigger&&e.onTrigger(O({effect:e},t)),e.scheduler?e.scheduler():e.run())}const ke=L("__proto__,__v_isRef,__isVue"),De=new Set(Object.getOwnPropertyNames(Symbol).filter((e=>"arguments"!==e&&"caller"!==e)).map((e=>Symbol[e])).filter(W)),Ne=we();function we(){const e={};return["includes","indexOf","lastIndexOf"].forEach((t=>{e[t]=function(...e){const n=Tt(this);for(let e=0,t=this.length;e<t;e++)Ee(n,"get",e+"");const o=n[t](...e);return-1===o||!1===o?n[t](...e.map(Tt)):o}})),["push","pop","shift","unshift","splice"].forEach((t=>{e[t]=function(...e){xe();const n=Tt(this)[t].apply(this,e);return Fe(),n}})),e}function Oe(e){const t=Tt(this);return Ee(t,"has",e),t.hasOwnProperty(e)}class Ae{constructor(e=!1,t=!1){this._isReadonly=e,this._shallow=t}get(e,t,n){const o=this._isReadonly,a=this._shallow;if("__v_isReactive"===t)return!o;if("__v_isReadonly"===t)return o;if("__v_isShallow"===t)return a;if("__v_raw"===t&&n===(o?a?ft:dt:a?ut:rt).get(e))return e;const l=$(e);if(!o){if(l&&B(Ne,t))return Reflect.get(Ne,t,n);if("hasOwnProperty"===t)return Oe}const s=Reflect.get(e,t,n);return(W(t)?De.has(t):ke(t))?s:(o||Ee(e,"get",t),a?s:xt(s)?l&&X(t)?s:s.value:M(s)?o?gt(s):pt(s):s)}}class Re extends Ae{constructor(e=!1){super(!1,e)}set(e,t,n,o){let a=e[t];if(bt(a)&&xt(a)&&!xt(n))return!1;if(!this._shallow&&(_t(n)||bt(n)||(a=Tt(a),n=Tt(n)),!$(e)&&xt(a)&&!xt(n)))return a.value=n,!0;const l=$(e)&&X(t)?Number(t)<e.length:B(e,t),s=Reflect.set(e,t,n,o);return e===Tt(o)&&(l?J(n,a)&&Pe(e,"set",t,n,a):Pe(e,"add",t,n)),s}deleteProperty(e,t){const n=B(e,t),o=e[t],a=Reflect.deleteProperty(e,t);return a&&n&&Pe(e,"delete",t,void 0,o),a}has(e,t){const n=Reflect.has(e,t);return W(t)&&De.has(t)||Ee(e,"has",t),n}ownKeys(e){return Ee(e,"iterate",$(e)?"length":be),Reflect.ownKeys(e)}}class Be extends Ae{constructor(e=!1){super(!0,e)}set(e,t){return"production"!==process.env.NODE_ENV&&ce(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0}deleteProperty(e,t){return"production"!==process.env.NODE_ENV&&ce(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}}const $e=new Re,Ue=new Be,Ve=new Be(!0),ze=e=>e,qe=e=>Reflect.getPrototypeOf(e);function We(e,t,n=!1,o=!1){const a=Tt(e=e.__v_raw),l=Tt(t);n||(J(t,l)&&Ee(a,"get",t),Ee(a,"get",l));const{has:s}=qe(a),i=o?ze:n?It:St;return s.call(a,t)?i(e.get(t)):s.call(a,l)?i(e.get(l)):void(e!==a&&e.get(t))}function Me(e,t=!1){const n=this.__v_raw,o=Tt(n),a=Tt(e);return t||(J(e,a)&&Ee(o,"has",e),Ee(o,"has",a)),e===a?n.has(e):n.has(e)||n.has(a)}function Ge(e,t=!1){return e=e.__v_raw,!t&&Ee(Tt(e),"iterate",be),Reflect.get(e,"size",e)}function Qe(e){e=Tt(e);const t=Tt(this);return qe(t).has.call(t,e)||(t.add(e),Pe(t,"add",e,e)),this}function je(e,t){t=Tt(t);const n=Tt(this),{has:o,get:a}=qe(n);let l=o.call(n,e);l?"production"!==process.env.NODE_ENV&&ct(n,o,e):(e=Tt(e),l=o.call(n,e));const s=a.call(n,e);return n.set(e,t),l?J(t,s)&&Pe(n,"set",e,t,s):Pe(n,"add",e,t),this}function Ye(e){const t=Tt(this),{has:n,get:o}=qe(t);let a=n.call(t,e);a?"production"!==process.env.NODE_ENV&&ct(t,n,e):(e=Tt(e),a=n.call(t,e));const l=o?o.call(t,e):void 0,s=t.delete(e);return a&&Pe(t,"delete",e,void 0,l),s}function He(){const e=Tt(this),t=0!==e.size,n="production"!==process.env.NODE_ENV?U(e)?new Map(e):new Set(e):void 0,o=e.clear();return t&&Pe(e,"clear",void 0,void 0,n),o}function Xe(e,t){return function(n,o){const a=this,l=a.__v_raw,s=Tt(l),i=t?ze:e?It:St;return!e&&Ee(s,"iterate",be),l.forEach(((e,t)=>n.call(o,i(e),i(t),a)))}}function Ke(e,t,n){return function(...o){const a=this.__v_raw,l=Tt(a),s=U(l),i="entries"===e||e===Symbol.iterator&&s,c="keys"===e&&s,r=a[e](...o),u=n?ze:t?It:St;return!t&&Ee(l,"iterate",c?_e:be),{next(){const{value:e,done:t}=r.next();return t?{value:e,done:t}:{value:i?[u(e[0]),u(e[1])]:u(e),done:t}},[Symbol.iterator](){return this}}}}function Je(e){return function(...t){if("production"!==process.env.NODE_ENV){const n=t[0]?`on key "${t[0]}" `:"";console.warn(`${K(e)} operation ${n}failed: target is readonly.`,Tt(this))}return"delete"!==e&&this}}function Ze(){const e={get(e){return We(this,e)},get size(){return Ge(this)},has:Me,add:Qe,set:je,delete:Ye,clear:He,forEach:Xe(!1,!1)},t={get(e){return We(this,e,!1,!0)},get size(){return Ge(this)},has:Me,add:Qe,set:je,delete:Ye,clear:He,forEach:Xe(!1,!0)},n={get(e){return We(this,e,!0)},get size(){return Ge(this,!0)},has(e){return Me.call(this,e,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Xe(!0,!1)},o={get(e){return We(this,e,!0,!0)},get size(){return Ge(this,!0)},has(e){return Me.call(this,e,!0)},add:Je("add"),set:Je("set"),delete:Je("delete"),clear:Je("clear"),forEach:Xe(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach((a=>{e[a]=Ke(a,!1,!1),n[a]=Ke(a,!0,!1),t[a]=Ke(a,!1,!0),o[a]=Ke(a,!0,!0)})),[e,n,t,o]}const[et,tt,nt,ot]=Ze();function at(e,t){const n=t?e?ot:nt:e?tt:et;return(t,o,a)=>"__v_isReactive"===o?!e:"__v_isReadonly"===o?e:"__v_raw"===o?t:Reflect.get(B(n,o)&&o in t?n:t,o,a)}const lt={get:at(!1,!1)},st={get:at(!0,!1)},it={get:at(!0,!0)};function ct(e,t,n){const o=Tt(n);if(o!==n&&t.call(e,o)){const t=Y(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 rt=new WeakMap,ut=new WeakMap,dt=new WeakMap,ft=new WeakMap;function pt(e){return bt(e)?e:ht(e,!1,$e,lt,rt)}function gt(e){return ht(e,!0,Ue,st,dt)}function mt(e){return ht(e,!0,Ve,it,ft)}function ht(e,t,n,o,a){if(!M(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 l=a.get(e);if(l)return l;const s=(i=e).__v_skip||!Object.isExtensible(i)?0:function(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}(Y(i));var i;if(0===s)return e;const c=new Proxy(e,2===s?o:n);return a.set(e,c),c}function vt(e){return bt(e)?vt(e.__v_raw):!(!e||!e.__v_isReactive)}function bt(e){return!(!e||!e.__v_isReadonly)}function _t(e){return!(!e||!e.__v_isShallow)}function yt(e){return vt(e)||bt(e)}function Tt(e){const t=e&&e.__v_raw;return t?Tt(t):e}const St=e=>M(e)?pt(e):e,It=e=>M(e)?gt(e):e;function xt(e){return!(!e||!0!==e.__v_isRef)}const Ft={get:(e,t,n)=>{return xt(o=Reflect.get(e,t,n))?o.value:o;var o},set:(e,t,n,o)=>{const a=e[t];return xt(a)&&!xt(n)?(a.value=n,!0):Reflect.set(e,t,n,o)}};const Et=[];function Pt(e,...t){if("production"===process.env.NODE_ENV)return;xe();const n=Et.length?Et[Et.length-1].component:null,o=n&&n.appContext.config.warnHandler,a=function(){let e=Et[Et.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)Dt(o,n,11,[e+t.join(""),n&&n.proxy,a.map((({vnode:e})=>`at <${Yn(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 <${Yn(e.component,e.type,o)}`,l=">"+n;return e.props?[a,...Ct(e.props),l]:[a+l]}(e))})),t}(a)),console.warn(...n)}Fe()}function Ct(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach((n=>{t.push(...Lt(n,e[n]))})),n.length>3&&t.push(" ..."),t}function Lt(e,t,n){return q(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):"number"==typeof t||"boolean"==typeof t||null==t?n?t:[`${e}=${t}`]:xt(t)?(t=Lt(e,Tt(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):z(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=Tt(t),n?t:[`${e}=`,t])}const kt={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 Dt(e,t,n,o){let a;try{a=o?e(...o):e()}catch(e){wt(e,t,n)}return a}function Nt(e,t,n,o){if(z(e)){const a=Dt(e,t,n,o);return a&&G(a)&&a.catch((e=>{wt(e,t,n)})),a}const a=[];for(let l=0;l<e.length;l++)a.push(Nt(e[l],t,n,o));return a}function wt(e,t,n,o=!0){const a=t?t.vnode:null;if(t){let o=t.parent;const a=t.proxy,l="production"!==process.env.NODE_ENV?kt[n]:n;for(;o;){const t=o.ec;if(t)for(let n=0;n<t.length;n++)if(!1===t[n](e,a,l))return;o=o.parent}const s=t.appContext.config.errorHandler;if(s)return void Dt(s,null,10,[e,a,l])}!function(e,t,n,o=!0){if("production"!==process.env.NODE_ENV){const l=kt[t];if(n&&(a=n,Et.push(a)),Pt("Unhandled error"+(l?` during execution of ${l}`:"")),n&&Et.pop(),o)throw e;console.error(e)}else console.error(e);var a}(e,n,a,o)}let Ot=!1,At=!1;const Rt=[];let Bt=0;const $t=[];let Ut=null,Vt=0;const zt=Promise.resolve();let qt=null;const Wt=100;function Mt(e){const t=qt||zt;return e?t.then(this?e.bind(this):e):t}function Gt(e){Rt.length&&Rt.includes(e,Ot&&e.allowRecurse?Bt+1:Bt)||(null==e.id?Rt.push(e):Rt.splice(function(e){let t=Bt+1,n=Rt.length;for(;t<n;){const o=t+n>>>1,a=Rt[o],l=Yt(a);l<e||l===e&&a.pre?t=o+1:n=o}return t}(e.id),0,e),Qt())}function Qt(){Ot||At||(At=!0,qt=zt.then(Xt))}function jt(e){$(e)?$t.push(...e):Ut&&Ut.includes(e,e.allowRecurse?Vt+1:Vt)||$t.push(e),Qt()}const Yt=e=>null==e.id?1/0:e.id,Ht=(e,t)=>{const n=Yt(e)-Yt(t);if(0===n){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function Xt(e){At=!1,Ot=!0,"production"!==process.env.NODE_ENV&&(e=e||new Map),Rt.sort(Ht);const t="production"!==process.env.NODE_ENV?t=>Kt(e,t):D;try{for(Bt=0;Bt<Rt.length;Bt++){const e=Rt[Bt];if(e&&!1!==e.active){if("production"!==process.env.NODE_ENV&&t(e))continue;Dt(e,null,14)}}}finally{Bt=0,Rt.length=0,function(e){if($t.length){const t=[...new Set($t)];if($t.length=0,Ut)return void Ut.push(...t);for(Ut=t,"production"!==process.env.NODE_ENV&&(e=e||new Map),Ut.sort(((e,t)=>Yt(e)-Yt(t))),Vt=0;Vt<Ut.length;Vt++)"production"!==process.env.NODE_ENV&&Kt(e,Ut[Vt])||Ut[Vt]();Ut=null,Vt=0}}(e),Ot=!1,qt=null,(Rt.length||$t.length)&&Xt(e)}}function Kt(e,t){if(e.has(t)){const n=e.get(t);if(n>Wt){const e=t.ownerInstance,n=e&&jn(e.type);return Pt(`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 Jt=new Set;"production"!==process.env.NODE_ENV&&(te().__VUE_HMR_RUNTIME__={createRecord:nn((function(e,t){if(Zt.has(e))return!1;return Zt.set(e,{initialDef:en(t),instances:new Set}),!0})),rerender:nn((function(e,t){const n=Zt.get(e);if(!n)return;n.initialDef.render=t,[...n.instances].forEach((e=>{t&&(e.render=t,en(e.type).render=t),e.renderCache=[],e.update()}))})),reload:nn((function(e,t){const n=Zt.get(e);if(!n)return;t=en(t),tn(n.initialDef,t);const o=[...n.instances];for(const e of o){const o=en(e.type);Jt.has(o)||(o!==n.initialDef&&tn(o,t),Jt.add(o)),e.appContext.propsCache.delete(e.type),e.appContext.emitsCache.delete(e.type),e.appContext.optionsCache.delete(e.type),e.ceReload?(Jt.add(o),e.ceReload(t.styles),Jt.delete(o)):e.parent?Gt(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.")}jt((()=>{for(const e of o)Jt.delete(en(e.type))}))}))});const Zt=new Map;function en(e){return Hn(e)?e.__vccOpts:e}function tn(e,t){O(e,t);for(const n in e)"__file"===n||n in t||delete e[n]}function nn(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 on=null,an=null;const ln=Symbol.for("v-ndc");const sn={};function cn(e,t,{immediate:n,deep:o,flush:a,onTrack:l,onTrigger:s}=k){var i;"production"===process.env.NODE_ENV||t||(void 0!==n&&Pt('watch() "immediate" option is only respected when using the watch(source, callback, options?) signature.'),void 0!==o&&Pt('watch() "deep" option is only respected when using the watch(source, callback, options?) signature.'));const c=e=>{Pt("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=re===(null==(i=zn)?void 0:i.scope)?zn:null;let u,d,f=!1,p=!1;if(xt(e)?(u=()=>e.value,f=_t(e)):vt(e)?(u=()=>e,o=!0):$(e)?(p=!0,f=e.some((e=>vt(e)||_t(e))),u=()=>e.map((e=>xt(e)?e.value:vt(e)?un(e):z(e)?Dt(e,r,2):void("production"!==process.env.NODE_ENV&&c(e))))):z(e)?u=t?()=>Dt(e,r,2):()=>{if(!r||!r.isUnmounted)return d&&d(),Nt(e,r,3,[g])}:(u=D,"production"!==process.env.NODE_ENV&&c(e)),t&&o){const e=u;u=()=>un(e())}let g=e=>{d=b.onStop=()=>{Dt(e,r,4)}},m=p?new Array(e.length).fill(sn):sn;const h=()=>{if(b.active)if(t){const e=b.run();(o||f||(p?e.some(((e,t)=>J(e,m[t]))):J(e,m)))&&(d&&d(),Nt(t,r,3,[e,m===sn?void 0:p&&m[0]===sn?[]:m,g]),m=e)}else b.run()};let v;h.allowRecurse=!!t,"sync"===a?v=h:"post"===a?v=()=>Fn(h,r&&r.suspense):(h.pre=!0,r&&(h.id=r.uid),v=()=>Gt(h));const b=new ye(u,v);"production"!==process.env.NODE_ENV&&(b.onTrack=l,b.onTrigger=s),t?n?h():m=b.run():"post"===a?Fn(b.run.bind(b),r&&r.suspense):b.run();return()=>{b.stop(),r&&r.scope&&A(r.scope.effects,b)}}function rn(e,t,n){const o=this.proxy,a=q(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 l;z(t)?l=t:(l=t.handler,n=t);const s=zn;Wn(this);const i=cn(a,l.bind(o),n);return s?Wn(s):Mn(),i}function un(e,t){if(!M(e)||e.__v_skip)return e;if((t=t||new Set).has(e))return e;if(t.add(e),xt(e))un(e.value,t);else if($(e))for(let n=0;n<e.length;n++)un(e[n],t);else if(V(e)||U(e))e.forEach((e=>{un(e,t)}));else if(H(e))for(const n in e)un(e[n],t);return e}
|
|
2
|
+
/*! #__NO_SIDE_EFFECTS__ */function dn(e,t){return z(e)?(()=>O({name:e.name},t,{setup:e}))():e}const fn=e=>e?4&e.vnode.shapeFlag?function(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy((n=e.exposed,Z(n,"__v_skip",!0),vt(t=n)?t:new Proxy(t,Ft)),{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=O(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>"production"!==process.env.NODE_ENV?mt(e.props):e.props,$attrs:e=>"production"!==process.env.NODE_ENV?mt(e.attrs):e.attrs,$slots:e=>"production"!==process.env.NODE_ENV?mt(e.slots):e.slots,$refs:e=>"production"!==process.env.NODE_ENV?mt(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:l,config:{optionMergeStrategies:s}}=e.appContext,i=l.get(t);let c;i?c=i:a.length||n||o?(c={},a.length&&a.forEach((e=>bn(c,e,s,!0))),bn(c,t,s)):c=t;M(t)&&l.set(t,c);return c}(e):e.type,$forceUpdate:e=>e.f||(e.f=()=>Gt(e.update)),$nextTick:e=>e.n||(e.n=Mt.bind(e.proxy)),$watch:e=>__VUE_OPTIONS_API__?rn.bind(e):D}),gn=(e,t)=>e!==k&&!e.__isScriptSetup&&B(e,t),mn={get({_:e},t){const{ctx:n,setupState:o,data:a,props:l,accessCache:s,type:i,appContext:c}=e;if("production"!==process.env.NODE_ENV&&"__isVue"===t)return!0;let r;if("$"!==t[0]){const i=s[t];if(void 0!==i)switch(i){case 1:return o[t];case 2:return a[t];case 4:return n[t];case 3:return l[t]}else{if(gn(o,t))return s[t]=1,o[t];if(a!==k&&B(a,t))return s[t]=2,a[t];if((r=e.propsOptions[0])&&B(r,t))return s[t]=3,l[t];if(n!==k&&B(n,t))return s[t]=4,n[t];__VUE_OPTIONS_API__&&!vn||(s[t]=0)}}const u=pn[t];let d,f;return u?("$attrs"===t?(Ee(e,"get",t),process.env.NODE_ENV):"production"!==process.env.NODE_ENV&&"$slots"===t&&Ee(e,"get",t),u(e)):(d=i.__cssModules)&&(d=d[t])?d:n!==k&&B(n,t)?(s[t]=4,n[t]):(f=c.config.globalProperties,B(f,t)?f[t]:void("production"===process.env.NODE_ENV||!on||q(t)&&0===t.indexOf("__v")||(a!==k&&(e=>"_"===e||"$"===e)(t[0])&&B(a,t)?Pt(`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===on&&Pt(`Property ${JSON.stringify(t)} was accessed during render but is not defined on instance.`))))},set({_:e},t,n){const{data:o,setupState:a,ctx:l}=e;return gn(a,t)?(a[t]=n,!0):"production"!==process.env.NODE_ENV&&a.__isScriptSetup&&B(a,t)?(Pt(`Cannot mutate <script setup> binding "${t}" from Options API.`),!1):o!==k&&B(o,t)?(o[t]=n,!0):B(e.props,t)?("production"!==process.env.NODE_ENV&&Pt(`Attempting to mutate prop "${t}". Props are readonly.`),!1):"$"===t[0]&&t.slice(1)in e?("production"!==process.env.NODE_ENV&&Pt(`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(l,t,{enumerable:!0,configurable:!0,value:n}):l[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:a,propsOptions:l}},s){let i;return!!n[s]||e!==k&&B(e,s)||gn(t,s)||(i=l[0])&&B(i,s)||B(o,s)||B(pn,s)||B(a.config.globalProperties,s)},defineProperty(e,t,n){return null!=n.get?e._.accessCache[t]=0:B(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function hn(e){return $(e)?e.reduce(((e,t)=>(e[t]=null,e)),{}):e}"production"!==process.env.NODE_ENV&&(mn.ownKeys=e=>(Pt("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 vn=!0;function bn(e,t,n,o=!1){const{mixins:a,extends:l}=t;l&&bn(e,l,n,!0),a&&a.forEach((t=>bn(e,t,n,!0)));for(const a in t)if(o&&"expose"===a)"production"!==process.env.NODE_ENV&&Pt('"expose" option is ignored when declared in mixins or extends. It should only be declared in the base component itself.');else{const o=_n[a]||n&&n[a];e[a]=o?o(e[a],t[a]):t[a]}return e}const _n={data:yn,props:xn,emits:xn,methods:In,computed:In,beforeCreate:Sn,created:Sn,beforeMount:Sn,mounted:Sn,beforeUpdate:Sn,updated:Sn,beforeDestroy:Sn,beforeUnmount:Sn,destroyed:Sn,unmounted:Sn,activated:Sn,deactivated:Sn,errorCaptured:Sn,serverPrefetch:Sn,components:In,directives:In,watch:function(e,t){if(!e)return t;if(!t)return e;const n=O(Object.create(null),e);for(const o in t)n[o]=Sn(e[o],t[o]);return n},provide:yn,inject:function(e,t){return In(Tn(e),Tn(t))}};function yn(e,t){return t?e?function(){return O(z(e)?e.call(this,this):e,z(t)?t.call(this,this):t)}:t:e}function Tn(e){if($(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Sn(e,t){return e?[...new Set([].concat(e,t))]:t}function In(e,t){return e?O(Object.create(null),e,t):t}function xn(e,t){return e?$(e)&&$(t)?[...new Set([...e,...t])]:O(Object.create(null),hn(e),hn(null!=t?t:{})):t}const Fn=function(e,t){t&&t.pendingBranch?$(e)?t.effects.push(...e):t.effects.push(e):jt(e)},En=Symbol.for("v-fgt"),Pn=Symbol.for("v-txt"),Cn=Symbol.for("v-cmt");let Ln=null;const kn="__vInternal",Dn=({key:e})=>null!=e?e:null,Nn=({ref:e,ref_key:t,ref_for:n})=>("number"==typeof e&&(e=""+e),null!=e?q(e)||xt(e)||z(e)?{i:on,r:e,k:t,f:!!n}:e:null);const wn="production"!==process.env.NODE_ENV?(...e)=>On(...e):On;function On(e,t=null,n=null,o=0,a=null,l=!1){if(e&&e!==ln||("production"===process.env.NODE_ENV||e||Pt(`Invalid vnode type when creating vnode: ${e}.`),e=Cn),(s=e)&&!0===s.__v_isVNode){const o=An(e,t,!0);return n&&$n(o,n),!l&&Ln&&(6&o.shapeFlag?Ln[Ln.indexOf(e)]=o:Ln.push(o)),o.patchFlag|=-2,o}var s;if(Hn(e)&&(e=e.__vccOpts),t){t=function(e){return e?yt(e)||kn in e?O({},e):e:null}(t);let{class:e,style:n}=t;e&&!q(e)&&(t.class=ie(e)),M(n)&&(yt(n)&&!$(n)&&(n=O({},n)),t.style=ne(n))}const i=q(e)?1:(e=>e.__isSuspense)(e)?128:(e=>e.__isTeleport)(e)?64:M(e)?4:z(e)?2:0;return"production"!==process.env.NODE_ENV&&4&i&&yt(e)&&Pt("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=Tt(e)),function(e,t=null,n=null,o=0,a=null,l=(e===En?0:1),s=!1,i=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&Dn(t),ref:t&&Nn(t),scopeId:an,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:l,patchFlag:o,dynamicProps:a,dynamicChildren:null,appContext:null,ctx:on};return i?($n(c,n),128&l&&e.normalize(c)):n&&(c.shapeFlag|=q(n)?8:16),"production"!==process.env.NODE_ENV&&c.key!=c.key&&Pt("VNode created with invalid key (NaN). VNode type:",c.type),!s&&Ln&&(c.patchFlag>0||6&l)&&32!==c.patchFlag&&Ln.push(c),c}(e,t,n,o,a,i,l,!0)}function An(e,t,n=!1){const{props:o,ref:a,patchFlag:l,children:s}=e,i=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=ie([t.class,o.class]));else if("style"===e)t.style=ne([t.style,o.style]);else if(w(e)){const n=t[e],a=o[e];!a||n===a||$(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:i,key:i&&Dn(i),ref:t&&t.ref?n&&a?$(a)?a.concat(Nn(t)):[a,Nn(t)]:Nn(t):a,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:"production"!==process.env.NODE_ENV&&-1===l&&$(s)?s.map(Rn):s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==En?-1===l?16:16|l:l,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&An(e.ssContent),ssFallback:e.ssFallback&&An(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function Rn(e){const t=An(e);return $(e.children)&&(t.children=e.children.map(Rn)),t}function Bn(e=" ",t=0){return wn(Pn,null,e,t)}function $n(e,t){let n=0;const{shapeFlag:o}=e;if(null==t)t=null;else if($(t))n=16;else if("object"==typeof t){if(65&o){const n=t.default;return void(n&&(n._c&&(n._d=!1),$n(e,n()),n._c&&(n._d=!0)))}{n=32;const o=t._;o||kn in t?3===o&&on&&(1===on.slots._?t._=1:(t._=2,e.patchFlag|=1024)):t._ctx=on}}else z(t)?(t={default:t,_ctx:on},n=32):(t=String(t),64&o?(n=16,t=[Bn(t)]):n=8);e.children=t,e.shapeFlag|=n}let Un,Vn,zn=null,qn="__VUE_INSTANCE_SETTERS__";(Vn=te()[qn])||(Vn=te()[qn]=[]),Vn.push((e=>zn=e)),Un=e=>{Vn.length>1?Vn.forEach((t=>t(e))):Vn[0](e)};const Wn=e=>{Un(e),e.scope.on()},Mn=()=>{zn&&zn.scope.off(),Un(null)};const Gn=/(?:^|[-_])(\w)/g,Qn=e=>e.replace(Gn,(e=>e.toUpperCase())).replace(/[-_]/g,"");function jn(e,t=!0){return z(e)?e.displayName||e.name:e.name||t&&e.__name}function Yn(e,t,n=!1){let o=jn(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?Qn(o):n?"App":"Anonymous"}function Hn(e){return z(e)&&"__vccOpts"in e}var Xn=dn({name:"qt-view",emits:["clearFocus"],setup(t,n){const o=e();return{clearFocus:()=>{o.value.clearFocus()},requestFocus:()=>{o.value.requestFocus()},qt_div_ref:o}}});const Kn={clipChildren:!1,ref:"qt_div_ref"};Xn.render=function(e,a,l,s,i,c){return t(),n("div",Kn,[o(e.$slots,"default")],512)},Xn.__file="src/view/index.vue";var Jn=dn({name:"qt-text"});const Zn={clipChildren:!1};Jn.render=function(e,a,l,s,i,c){return t(),n("span",Zn,[o(e.$slots,"default")])},Jn.__file="src/text/index.vue";var eo=dn({name:"qt-image"});const to={src:"",alt:"",clipChildren:!1};eo.render=function(e,o,a,l,s,i){return t(),n("img",to)},eo.__file="src/image/index.vue";var no=dn({name:"qt-column"});const oo={class:"qt-ui-row-css",clipChildren:!1};no.render=function(e,a,l,s,i,c){return t(),n("div",oo,[o(e.$slots,"default")])},no.__scopeId="data-v-734c04b2",no.__file="src/column/index.vue";var ao=dn({name:"qt-row"});const lo={class:"qt-ui-row-css",clipChildren:!1};ao.render=function(e,a,l,s,i,c){return t(),n("div",lo,[o(e.$slots,"default")])},ao.__scopeId="data-v-9c454b58",ao.__file="src/row/index.vue";var so=a({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,n){const o=e(),a=e(!1);return{focused:a,requestFocus:function(){x.callUIFunction(o.value,"requestFocus",[])},requestFocusDirectly:function(){x.callUIFunction(o.value,"requestFocusDirectly",[])},onFocus:function(e){console.log("--------XXXXXXXXXXXXXXXXX--------------\x3e>>",a.value),a.value=e.isFocused,n.emit("focus",e.isFocused)},onClick:function(e){n.emit("click")}}}});const io=["focusable","enableFocusBorder","focusScale"],co=["gradientBackground"],ro=["gradientBackground"],uo=["gradientBackground"],fo=["src"],po=["src"];function go(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})}))}so.render=function(e,a,p,g,m,h){const v=l("text-view");return t(),n("div",{ref:"buttonRef",clipChildren:!1,focusable:e.focusable,enableFocusBorder:e.focusBorder,focusScale:e.focusScale,onClick:a[0]||(a[0]=(...t)=>e.onClick&&e.onClick(...t)),name:"textButton",eventClick:"",eventFocus:"",onFocus:a[1]||(a[1]=(...t)=>e.onFocus&&e.onFocus(...t)),style:s(e.buttonStyle),class:i(["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?(t(),n("div",{key:0,class:"button-gradient-background-css",gradientBackground:e.gradientFocusBackground,focusable:!1,showOnState:"focused"},null,8,co)):c("v-if",!0),e.gradientSelectedBackground?(t(),n("div",{key:1,class:"button-gradient-background-css",gradientBackground:e.gradientSelectedBackground,focusable:!1,showOnState:"selected"},null,8,ro)):c("v-if",!0),e.gradientBackground?(t(),n("div",{key:2,class:"button-gradient-background-css",gradientBackground:e.gradientBackground,focusable:!1,showOnState:"normal"},null,8,uo)):c("v-if",!0),c(" -----------------------------icon--------------------------------- "),!e.icon&&!e.focusIcon||e.$slots.default?c("v-if",!0):(t(),n("div",{key:3,duplicateParentState:!0,style:s(e.iconParentStyle),flexStyle:"${iconParentStyle}",class:i(["quick-button-icon-parent",e.size?"quick-button-icon--parent"+e.size:""])},[e.icon&&!e.$slots.default?r((t(),n("img",{key:0,style:s(e.iconStyle),flexStyle:"${iconStyle}",duplicateParentState:!0,class:i(["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,fo)),[[u,!e.focused]]):c("v-if",!0),e.focusIcon&&!e.$slots.default?r((t(),n("img",{key:1,style:s(e.focusIconStyle?e.focusIconStyle:e.iconStyle),flexStyle:"${iconStyle}",class:i(["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,po)),[[u,e.focused]]):c("v-if",!0)],6)),c(" ------------------------------------------------------------------- "),c(" text "),e.enableFlexStyle?(t(),d(v,{key:4,style:s(e.textStyle),duplicateParentState:"",class:i([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?(t(),n("span",{key:5,style:s(e.textStyle),duplicateParentState:"",class:i([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),o(e.$slots,"default")],46,io)},so.__scopeId="data-v-46a594e4",so.__file="src/button/index.vue";const mo=e=>e.map(vo),ho=e=>{const t=Object.keys(e),n={};return t.forEach((t=>{n[t]=vo(e[t])})),n};function vo(e){return e?"object"!=typeof e?e:Array.isArray(e)?mo(e):ho(e):e}var bo=a({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(t,n){F(),E();const o=e();let a=e(2.5),l=[],s=[],i=[],c=[],r="",u=-1,d=!1,f=-1,m=-1,h=-1,v=-1;p((()=>{t.openPage&&(u=1,d=!1,t.loadMore(u))}));const b=e=>{0==l.length&&(l=vo(e),s=e,a.value<2.2?(_(),t.openPage&&t.pageSize&&c.length>=t.pageSize/t.spanCount?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):t.openPage&&t.pageSize&&l.length>=t.pageSize?o.value.setListData(l.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(l),t.defaultFocus>-1&&(h&&clearTimeout(h),h=setTimeout((()=>{T(t.defaultFocus),S(t.defaultFocus)}),800)));let n={get(e,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(i.push(n),-1!=i.indexOf("push"))r="push";else{if(-1!=i.indexOf("splice"))return r="splice",function(...t){if(e.splice(...t),a.value<2.2)if(_(),1==t.length||2==t.length)o.value.setListData(c);else if(0==t[1])o.value.setListData(c);else{let e=-1,n=0,a=0;for(let o=0;o<c.length;o++){const l=c[o];if("1003"==l.type)e++,t[0]==e&&(n=o),t[0]+t[1]-1==e&&(a=o);else for(let s=0;s<l.list.length;s++)l.list[s],e++,t[0]==e&&(n=o),t[0]+t[1]-1==e&&(a=o)}o.value.updateItemList(n,a-n+1,c.slice(n,a+1))}else 1==t.length?o.value.deleteItem(Number(t[0]),l.length-t[0]):2==t.length?o.value.deleteItem(Number(t[0]),t[1]):t.length>2&&(0==t[1]?a.value>2.29&&x(t[0],t.slice(2)):o.value.updateItemList(t[0],t[1],t.slice(2)));return l.splice(t[0],...t.slice(1)),r="",i=[],Reflect.get(e,n,s)};if(-1!=i.indexOf("pop"))return r="pop",function(){return e.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(l.length-1),1),l.pop(),r="",i=[],Reflect.get(e,n,s)};if(-1!=i.indexOf("forEach"))return r="forEach",function(u){return e.forEach((e=>{u(e)})),l=[],l=vo(e),a.value<2.2?(_(),t.openPage&&t.pageSize&&c.length>=t.pageSize&&!d?o.value.setListData(c.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(c)):t.openPage&&t.pageSize&&l.length>=t.pageSize&&!d?o.value.setListData(l.concat([{type:1002,decoration:{top:15,left:30}}])):o.value.setListData(l),r="",i=[],Reflect.get(e,n,s)};if(-1!=i.indexOf("concat"))return r="concat",function(f){if("[object Array]"===Object.prototype.toString.call(f))if(e=e.concat(f),l=l.concat(f),a.value<2.2){v&&clearTimeout(v);let e=c.length,n=c.slice(c.length-1)[0];_();let a=c.slice(e);t.openPage&&!d?t.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<t.spanCount?(a=c.slice(e-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=t.openPage&&!d?t.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="",i=[],Reflect.get(e,n,s)};r=""}const f=Reflect.get(e,n,s);return y(f)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?b(f):(-1==i.indexOf("push")&&(i=[]),f)},set(e,n,f,p){const g=e[n],m=Reflect.set(e,n,f,p);if((!y(g)&&g!==f||y(g))&&"push"!=r)if(i.push(n),l[i[0]]=s[i[0]],a.value<2.2){let e=i[0],t=-1;for(let n=0;n<c.length;n++){const a=c[n];if("1003"==a.type)t++,t==e&&(c[n]=l[i[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]=l[i[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(i[0]),s[i[0]]);if(n&&"push"==r&&g!==f)i.push(n),l.push(f);else{if("push"==r&&i.length>1)if(a.value<2.2){v&&clearTimeout(v);let e=c.length,n=c.slice(c.length-1)[0];_();let a=c.slice(e);t.openPage&&!d?t.pageSize||2!=u?0==a.length||"1003"!=n.type&&n.list.length<t.spanCount?(a=c.slice(e-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 e=l.slice(i[1]);v&&clearTimeout(v),v=t.openPage&&!d?t.pageSize||2!=u?setTimeout((()=>{o.value.addListDataWithParams(e.concat([{type:1002,decoration:{top:15,left:30}}]),1)}),300):setTimeout((()=>{o.value.addListData(e.concat([{type:1002,decoration:{top:15,left:30}}]))}),300):setTimeout((()=>{o.value.addListData(e)}),300)}r="",i=[]}return m}};return new Proxy(e,n)},_=()=>{let e=vo(l);c=[];let n=0,o=[];for(let t=0;t<e.length;t++){let n=e[t];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 e=0;e<o.length;e++){const a=o[e];if("1003"==a.type)c.push(a);else for(let e=0;e<a.list.length;e+=t.spanCount){const o=a.list[e];let l={top:-1,bottom:-1};o.decoration&&(l.top=o.toCompatibleSaveTopVal?o.toCompatibleSaveTopVal:0,l.bottom=o.toCompatibleSaveBottompVal?o.toCompatibleSaveBottompVal:0);const s={type:1,decoration:l,name:"name"+n,list:a.list.slice(e,e+t.spanCount)};n++,c.push(s)}}},y=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 l=0;l<a.list.length;l++)a.list[l],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 l=c[o];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)l.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 l=c[o];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)l.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 g((()=>{l=[],c=[],s.length=0,d=!1,i=[],u=1,d=!1,r="",P(),f&&clearTimeout(f),v&&clearTimeout(v),m&&clearTimeout(m),h&&clearTimeout(h)})),{tv_list:o,apkVersion:a,init:b,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 l=c[a];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}n.emit("item-click",e)},onItemBind:e=>{a.value<2.2?d||e.position!=c.length-1-t.preloadNo/t.spanCount||(u++,t.loadMore(u)):d||e.position!=l.length-1-t.preloadNo||(u++,t.loadMore(u)),n.emit("item-bind",e)},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 l=c[a];if("1003"==l.type)t++;else for(let s=0;s<l.list.length;s++)t++,n==s&&o==a&&(e.position=t)}}n.emit("item-focused",e)},onItemUnbind:e=>{n.emit("item-unbind",e)},onScroll:e=>{n.emit("scroll",e)},onScrollStateChanged:e=>{n.emit("scroll-state-changed",e)},stopPage:e=>{m&&clearTimeout(m),m=setTimeout((()=>{a.value<2.2?t.pageSize?t.pageSize/t.spanCount<=c.length&&o.value.deleteItem(c.length,1):u>2&&o.value.deleteItem(c.length,1):t.pageSize?t.pageSize<=l.length&&o.value.deleteItem(l.length,1):u>2&&o.value.deleteItem(l.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 l=0;l<c.length;l++){const s=c[l];if("1003"==s.type)a++,a==e&&o.value.scrollToIndex(0,l,t,n);else for(let i=0;i<s.list.length;i++)s.list[i],a++,a==e&&o.value.scrollToIndex(0,l,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=>{f&&clearTimeout(f),f=setTimeout((()=>{o.value.setListData(e)}),100)},insertItem:x,clearPostTask:()=>{o.value.clearPostTask()},destroy:P}}});bo.render=function(e,a,i,c,r,u){const f=l("tv-list");return t(),d(f,{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:m((()=>[e.apkVersion<2.2?(t(),n(h,{key:0},[o(e.$slots,"header"),v(f,{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:m((()=>[o(e.$slots,"default")])),_:3},8,["style","blockFocusDirections"]),o(e.$slots,"footer"),o(e.$slots,"loading")],64)):(t(),n(h,{key:1},[o(e.$slots,"header"),o(e.$slots,"default"),o(e.$slots,"footer"),o(e.$slots,"loading")],64))])),_:3},8,["spanCount","onItemBind","onItemClick","onItemFocused","onItemUnbind","onScroll","onScrollStateChanged","onSetListData","blockFocusDirections"])},bo.__file="src/grid-view/index.vue";var _o=dn({name:"qt-poster-focus-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const yo={class:"absoluteFocusTitleRoot",delayLoad:"400",flexStyle:"${titleFocusStyle}",autoHeight:"",focusable:!1},To={class:"absoluteFocusMainBgRoot",duplicateParentState:!0,focusable:!1,showIf:"${title.enable}"};_o.render=function(e,o,a,s,i,r){const u=l("text-view");return t(),n("div",yo,[c(" 浮动标题"),v(u,{duplicateParentState:!0,focusable:!1,fontSize:26,ellipsizeMode:2,lines:1,paddingRect:[16,18,0,0],gradientBackground:"${floatTitle.background}",style:{height:"64px",color:"#ffffff"},flexStyle:"${floatTitle.style}",text:"${floatTitle}",showIf:"${floatTitle.enable}",gravity:"left",postDelay:"250"}),b("div",To,[c(" 主标题 "),v(u,{duplicateParentState:!0,focusable:!1,fontSize:30,ellipsizeMode:2,autoHeight:"",maxLines:2,gravity:"left",paddingRect:[16,8,12,8],style:{"background-color":"transparent",color:"#000000"},flexStyle:"${title.style}",text:"${title.text}"}),c(" 副标题 "),v(u,{duplicateParentState:!0,focusable:!1,fontSize:24,ellipsizeMode:2,lines:1,autoHeight:"",gravity:"left|top",paddingRect:[16,0,0,16],style:{color:"rgba(0,0,0,.4)","background-color":"transparent"},flexStyle:"${subTitle.style}",text:"${subTitle.text}",visibility:"${subTitle}"})])])},_o.__scopeId="data-v-703673b8",_o.__file="src/poster/qt-poster-focus-title.vue";var So=dn({name:"qt-poster-corner-title",props:{fontSize:{type:Number,default:20}},setup(e,t){}});const Io={class:"cornerRoot",focusable:!1};So.render=function(e,o,a,s,i,c){const r=l("text-view");return t(),n("div",Io,[v(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"])])},So.__scopeId="data-v-4b767ea2",So.__file="src/poster/qt-poster-corner-title.vue";var xo=dn({name:"qt-poster",components:{"qt-poster-corner-title":So,"qt-poster-focus-title":_o},props:{requestFirstFocus:{type:Boolean,default:!1},loadDelay:{type:Number,default:500},type:{type:Number,default:10001},templateKeyMap:{type:Object,default:()=>null},isFocusable:{type:Boolean,default:!0},enableFocusBorder:{type:Boolean,default:!0}},setup:(e,t)=>({mainTextShowOnState:["normal","selected"]})});const Fo=["enableFocusBorder"],Eo=["showOnState"],Po={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}"},Co={flexStyle:"${ripple.style}",class:"qt-ui-poster-ripple-view-root-css",showOnState:"focused",focusable:!1,clipChildren:!1},Lo=(e=>(_("data-v-3c4765e9"),e=e(),y(),e))((()=>b("img",{src:"${ripple.src}",class:"qt-ui-ripple-img-css",focusable:!1,duplicateParentState:!0,showIf:"${true}",delayLoad:"800"},null,-1)));xo.render=function(e,n,a,s,i,r){const u=l("qt-poster-focus-title"),f=l("text-view"),p=l("ripple-view"),g=l("qt-poster-corner-title"),h=l("item-frame");return t(),d(h,{type:e.type,layout:"${layout}",flexStyle:"${style}",focusable:e.isFocusable,eventClick:"",eventFocus:"",name:"poster",class:"qt-ui-poster-root-css",itemShowShimmer:"${shimmer.enable}",hideShadow:"${shadow.enable}",shimmerSize:"${size}"},{default:m((()=>[c("封面"),b("img",{class:"qt-ui-poster-img-css",duplicateParentState:!0,postDelay:"300",focusable:!1,enableFocusBorder:e.enableFocusBorder,flexStyle:"${image.style}",src:"${image.src}"},null,8,Fo),c(" 焦点选中时的标题 "),v(u,{focusable:!1,showOnState:"focused"}),b("div",{style:{"flex-direction":"column","background-color":"transparent","z-index":"999"},duplicateParentState:!0,focusable:!1,flexStyle:"${titleStyle}",showOnState:e.mainTextShowOnState},[c(" 浮动标题 "),b("div",Po,[v(f,{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(" 主标题"),v(f,{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,Eo),b("div",Co,[v(p,{class:"qt-ui-ripple-view-css",delayLoad:"800",focusable:!1,duplicateParentState:!0,color:"#FF4E46",isShowRipple:"${ripple.enable}",rippleVisible:"invisible"}),Lo]),v(g,{focusable:!1,delayLoad:"600",flexStyle:"${corner.style}",style:{"z-index":"1000",position:"absolute"}}),o(e.$slots,"default")])),_:3},8,["type","focusable"])},xo.__scopeId="data-v-3c4765e9",xo.__file="src/poster/index.vue";var ko=a({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},size:{type:String,default:"medium"},navs:{type:Array,default:()=>[]}},setup(t,n){const o=e();let a=e("#f5f5f5"),l=T({normal:"#80ffffff",focused:"#000000",selected:"#F5F5F5"}),s=-1,i=-1;S((()=>t.navs),(e=>{e.length>0&&c(e)}));const c=e=>{e||(e=[]),e.forEach(((e,n)=>{0!==t.itemGap&&(t.horizontal?e.decoration={right:t.itemGap}:e.decoration={bottom:t.itemGap}),e.type||(e.type=2e4)})),o.value?.setListData(e),clearTimeout(i);let n=t.initSelect;n>-1&&(o.value?.scrollToPosition(n),i=setTimeout((()=>{o.value?.setItemSelected(n,!0),r(n)}),300))},r=e=>{clearTimeout(s),s=setTimeout((()=>{n.emit("tab-select",{position:e})}),300)};return{navList:o,focusColor:a,textColor:l,bgPadding:[10,10],onTabChange:e=>{!0===e.hasFocus&&(n.emit("tab-focus",e),r(e.position))},scrollToPosition:e=>{o.value?.scrollToPosition(e)},scrollToTop:()=>{o.value?.scrollToTop()},init:e=>{c(e.data)}}}});const Do=["stateTextColor","sateBackgroundPadding"],No=["stateTextColor","sateBackgroundPadding"];var wo,Oo;ko.render=function(e,n,a,i,c,r){const u=l("text-view"),f=l("qt-list-view");return e.horizontal?(t(),d(f,{key:0,ref:"navList",clipChildren:!1,clipPadding:!1,horizontal:"",class:"qt-ui-nav-bar-root-horizontal",onItemFocused:e.onTabChange},{default:m((()=>[b("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},[v(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,Do),o(e.$slots,"default")])),_:3},8,["onItemFocused"])):(t(),d(f,{key:1,ref:"navList",clipChildren:!1,clipPadding:!1,class:"qt-ui-nav-bar-root-vertical",onItemFocused:e.onTabChange},{default:m((()=>[b("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},[v(u,{autoWidth:"",gravity:"center",lines:1,fontSize:44,class:"qt-ui-nav-bar-item-text-css",duplicateParentState:!0,text:"${text}"})],12,No),o(e.$slots,"default")])),_:3},8,["onItemFocused"]))},ko.__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"}(wo||(wo={})),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"}(Oo||(Oo={}));var Ao=dn({name:"card-item",setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-item","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});Ao.render=function(e,n,o,a,s,i){const c=l("es-card-container");return t(),d(c,{clipChildren:!1,clipPadding:!1,autoRecycle:!0,disablePlaceholder:"",layout:"${layout}",flexStyle:"${style}",cardId:"${cardId}",focusScale:"${cardPlaceHolder.focusScale}",focusable:"${cardPlaceHolder.focusable}",showPlaceHolder:"${cardPlaceHolder.enable}",placeHolderRadius:"${cardPlaceHolder.radius}",placeHolderRect:"${cardPlaceHolder.rect}",type:10003,onFocus:e.onFocus,class:"qt-ui-waterfall-card-item"},null,8,["onFocus"])},Ao.__scopeId="data-v-599898aa",Ao.__file="src/waterfall/item/card-item.vue";var Ro=dn({name:"standard-section",components:{"card-item":Ao},props:{enablePlaceholder:{type:Boolean,default:!0},plateData:{type:String,default:""},useDiff:{type:Boolean,default:!0},cachePool:{type:Object,default:{}},sectionType:{type:Number,default:wo.QT_WATERFALL_SECTION_TYPE_FLEX},standItemType:{type:Number,default:Oo.QT_WATERFALL_ITEM_TYPE_STANDARD_ITEM},currentPageIndex:{type:Number,default:-1}},setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-item","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});const Bo=["type"];Ro.render=function(e,a,s,i,r,u){const d=l("text-view"),f=l("qt-poster"),p=l("card-item"),g=l("tv-flex");return t(),n("div",{class:"standard-section-css",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,type:e.sectionType,focusable:!1,keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[v(d,{class:"standard-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(g,{class:"standard-section-css",name:"QUICKTVUI_WARTERFALL_LIST",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,bringFocusChildToFront:!0,cachePool:e.cachePool,useDiff:e.useDiff,keyName:"_id",enablePlaceholder:e.enablePlaceholder,focusScrollTarget:"${focusScrollTarget==true}",list:"${itemList}"},{default:m((()=>[c(" poster "),v(f,{"load-delay":500,type:e.standItemType},null,8,["type"]),c(" card "),v(p,{onFocus:e.onFocus},null,8,["onFocus"]),o(e.$slots,"default")])),_:3},8,["cachePool","useDiff","enablePlaceholder"])],8,Bo)},Ro.__scopeId="data-v-227e921e",Ro.__file="src/waterfall/section/flex-section.vue";const $o="tab-list-section";var Uo=dn({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:wo.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($o,"----------onItemBind--------------\x3e>>",e)},onItemClick:function(e){n.isLoggable(C.DEBUG)&&n.d($o,"----------onItemClick--------------\x3e>>",e)},onItemRecycled:function(e){n.isLoggable(C.DEBUG)&&n.d($o,"----------onItemRecycled--------------\x3e>>",e)},onItemFocused:function(e){n.isLoggable(C.DEBUG)&&n.d($o,"----------onItemFocused--------------\x3e>>",e)}}}});const Vo={class:"qt-ui-section-tab-list-root",focusable:!1,flexStyle:"${style}",blockFocusDirections:["right"],clipChildren:!1,useAdvancedFocusSearch:!0,bringFocusChildToFront:!0},zo=["type"];Uo.render=function(e,n,a,s,i,c){const r=l("text-view"),u=l("qt-poster"),f=l("tv-list"),p=l("tv-item");return t(),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:m((()=>[b("div",Vo,[v(r,{class:"tab-list-section-title-text-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(f,{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:m((()=>[v(u,{type:e.standItemType},null,8,["type"]),b("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:""},[v(r,{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,zo),o(e.$slots,"default")])),_:3},8,["enablePlaceholder","blockFocusDirections"])])])),_:3},8,["type","onItemClick","onItemBind","onItemUnbind","onItemFocused"])},Uo.__scopeId="data-v-88e60816",Uo.__file="src/waterfall/section/tabs-list-section.vue";var qo=dn({name:"loading-section"});const Wo={focusable:!1,type:-1,class:"loading-section-css"};qo.render=function(e,o,a,s,i,c){const r=l("qt-loading-view");return t(),n("div",Wo,[v(r,{class:"loading-section-loading-css"})])},qo.__scopeId="data-v-48609f24",qo.__file="src/waterfall/section/loading-section.vue";var Mo=dn({name:"end-section",setup:()=>({})});const Go={type:-1001,focusable:!1,flexStyle:"${style}",class:"qt-waterfall-end-section-css"};Mo.render=function(e,o,a,s,i,c){const r=l("text-view");return t(),n("div",Go,[v(r,{focusable:!1,gravity:"center",flexStyle:"${titleStyle}",class:"qt-waterfall-end-section-text-css",fontSize:28,text:"${title}"})])},Mo.__scopeId="data-v-70b82c43",Mo.__file="src/waterfall/section/end-section.vue";var Qo=dn({props:{plateTitleLeftMargin:{type:Number,default:0},type:{type:Number,default:wo.QT_WATERFALL_SECTION_TYPE_TITLE}},setup:(e,t)=>({})});const jo=["type"];Qo.render=function(e,o,a,i,c,r){const u=l("text-view");return t(),n("div",{class:"section-title-css",blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,type:e.type,focusable:!1,bringFocusChildToFront:!0,useAdvancedFocusSearch:!0},[v(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,jo)},Qo.__scopeId="data-v-20428d40",Qo.__file="src/waterfall/section/section-title.vue";var Yo=dn({name:"blank-section",setup:()=>({})});const Ho={focusable:!1,type:-1e3,flexStyle:"${style}",class:"qt-ui-waterfall-blank-section"};Yo.render=function(e,o,a,l,s,i){return t(),n("div",Ho)},Yo.__scopeId="data-v-eeab4d88",Yo.__file="src/waterfall/section/blank-section.vue";var Xo=dn({name:"card-section",setup(e,t){const n=P();return{onFocus:function(e){n.isLoggable(C.DEBUG)&&n.d("card-section","------onFocus---------\x3e>>>",e),t.emit("focus",e)}}}});const Ko={type:1006,class:"qt-ui-waterfall-card-section-css",clipChildren:!1,clipPadding:!1,focusScrollTarget:"${isFocusScrollTarget}",keyName:"_id",flexStyle:"${style}",bringFocusChildToFront:!0,useAdvancedFocusSearch:!0};Xo.render=function(e,o,a,s,i,c){const r=l("text-view"),u=l("es-card-container");return t(),n("div",Ko,[v(r,{class:"qt-ui-waterfall-card-section-title-css",delayLoad:"200",postDelay:"300",flexStyle:"${titleStyle}",focusable:!1,textSize:50,text:"${title}"}),v(u,{cardId:"${cardId}",onFocus:e.onFocus,clipChildren:!1,clipPadding:!1,autoRecycle:!0,focusScale:"${cardPlaceHolder.focusScale}",focusable:"${cardPlaceHolder.focusable}",showPlaceHolder:"${cardPlaceHolder.enable}",placeHolderRadius:"${cardPlaceHolder.radius}",placeHolderRect:"${cardPlaceHolder.rect}",flexStyle:"${cardStyle}",class:"qt-ui-waterfall-card-section"},null,8,["onFocus"])])},Xo.__scopeId="data-v-43a44788",Xo.__file="src/waterfall/section/card-section.vue";var Jo=dn({name:"vue-section",setup:(e,t)=>({onSectionBind:function(){}})});function Zo(e,t){const n=[];if(t&&t.length>0)for(let o=0;o<t.length;o++){let a=ea(e,t[o]);n.push(a)}return n}function ea(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,l=a?.height??0,s=a?.marginTop??0,i=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],l=a.decoration,s=l?.left??0,i=l?.top??0,c=l?.right??0,r=l?.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+s,a.layout[1]=d+i,a.layout[1]+m+r>p&&(p=a.layout[1]+m+r),m+i+r>f&&(f=m+i+r),u+=g+o+s+c}return p+l+s+i+c+r}(e.width,t),t.style.height=n),t}function ta(){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 l=n+o;n+o>a&&(l=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let o=n;o<l;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 l=e.length,s=n(0,l),i=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:l,sectionCount:a.length,itemIndex:s,itemCount:i}},deleteSection:function(t,a){const l=n(0,t-1),s=n(t,a);return e.splice(t,a),o(),{sectionIndex:t,sectionCount:a,itemIndex:l,itemCount:s}},updateSection:function(a,l){const s=n(0,a-1),i=t(l);return e.splice(a,1,l),o(),{sectionIndex:a,sectionCount:1,itemIndex:s,itemCount:i}},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 l=e[t],s=l.itemList.length;return l.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,l){return e[t].itemList.splice(n,a,...l),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=[]}}}Jo.render=function(e,n,a,s,i,c){const r=l("tv-item");return t(),d(r,{class:"qt-ui-waterfall-vue-section",type:1007,blockFocusDirections:["left","right"],clipChildren:!1,clipPadding:!1,flexStyle:"${style}",singleton:"",onItemBind:e.onSectionBind},{default:m((()=>[o(e.$slots,"default")])),_:3},8,["onItemBind"])},Jo.__scopeId="data-v-f8447724",Jo.__file="src/waterfall/section/vue-section.vue";const na="qt-waterfall";var oa,aa=dn({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},blockFocusDirections:{type:Array,default:()=>["down"]}},setup(t,n){const o=P(),a={name:"tvList"+Date.now(),size:{20008:10}},l=e();let s;const i=ta();return{waterfallRef:l,init:function(e){s=e},setAutoFocus:function(e,t){l.value?.setAutoFocus(e,t)},getSectionList:function(){return i.getSectionList()},setSectionList:function(e){if(!s)return;o.isLoggable(C.DEBUG)&&o.d(na,"-------1---setSectionList--------------\x3e>>"),i.destroy();const t=i.addSectionList(e);o.isLoggable(C.DEBUG)&&o.d(na,"-------2---setSectionList--------------\x3e>>",t);const n=Zo(s,e);o.isLoggable(C.DEBUG)&&o.d(na,"----------setSectionList-----最终数据---------\x3e>>",n),l.value?.setListData(n)},addSectionList:function(e){if(!s)return;i.addSectionList(e);const t=Zo(s,e);o.isLoggable(C.DEBUG)&&o.d(na,"----------addSectionList-----最终数据---------\x3e>>",t),l.value?.addListData(t)},deleteSection:function(e,t){const n=i.deleteSection(e,t);o.isLoggable(C.DEBUG)&&o.d(na,"----------deleteSection-----最终数据---------\x3e>>",n),l.value?.deleteItem(e,t)},updateSection:function(e,t){i.updateSection(e,t);const n=ea(s,t);o.isLoggable(C.DEBUG)&&o.d(na,"----------updateSection-----最终数据---------\x3e>>sectionIndex:"+e+"updateSection:"+n),l.value?.updateItem(e,n)},updateSectionList:function(e,t,n){const o=[];for(let t=0;t<n.length;t++){const a=n[t];i.updateSection(e+t,a);const l=ea(s,a);l&&o.push(l)}l.value?.updateItemList(e,t,o)},getSection:function(e){return i.getSection(e)},addItemList:function(e,t){i.addItemList(e,t);const n=i.getSection(e);if(n){const t=ea(s,n);l.value?.updateItem(e,t)}},deleteItem:function(e,t,n){i.deleteItem(e,t,n);const o=i.getSection(e);if(o){const t=ea(s,o);l.value?.updateItem(e,t)}},updateItem:function(e,t,n){i.updateItem(e,t,n);const o=i.getSection(e);if(o){const t=ea(s,o);l.value?.updateItem(e,t)}},updateItemList:function(e,t,n,o){i.updateItemList(e,t,n,o);const a=i.getSection(e);if(a){const t=ea(s,a);l.value?.updateItem(e,t)}},getItem:function(e,t){return i.getItem(e,t)},cachePool:a,flexCachePool:{name:"tvFlex",size:{1:50}},onScroll:function(e){e.stopPropagation();let t=e.offsetX,o=e.offsetY;n.emit("onScroll",t,o)},onItemClick:function(e){o.isLoggable(C.DEBUG)&&o.d(na,"----------onItemClick--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" "),n.emit("onItemClick",e.parentPosition,e.position,e.item)},onItemFocused:function(e){o.isLoggable(C.DEBUG)&&o.d(na,"----------onItemFocused--------------\x3e>>",e,"sectionIndex:"+e.parentPosition+" position:"+e.position+" isFocused:"+e.isFocused+" "),n.emit("onItemFocused",e.parentPosition,e.position,e.isFocused,e.item)},onSectionBind:function(e){if(e){o.isLoggable(C.DEBUG)&&o.d(na,"----------onSectionBind--------------\x3e>>",e);let t=e.pageIndex??0;n.emit("onSectionBind",t,e.position)}},onSectionAttached:function(e){if(e){o.isLoggable(C.DEBUG)&&o.d(na,"----------onSectionAttached--------------\x3e>>",e);let t=e.pageIndex??0;n.emit("onSectionAttached",t,e.position)}},onScrollStateChanged:function(e){let t=e.offsetY,o=e.offsetX,a=e.newState;n.emit("onScrollStateChanged",o,t,a)},resumePostTask:function(){l.value?.pausePostTask()},pausePostTask:function(){l.value?.pausePostTask()},clearPostTask:function(){l.value?.clearPostTask()},destroy:function(){l.value?.destroy()},scrollToTop:function(){l.value?.scrollToTop()}}},components:{"flex-section":Ro,"tabs-list-section":Uo,"section-title":Qo,"loading-section":qo,"end-section":Mo,"blank-section":Yo,"card-section":Xo,"vue-section":Jo}});function la(){const e=new Map,t=new Map;function n(n){const o={index:n,state:oa.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 l=t+n;t+n>a&&(l=a),console.log("----3--------getRangeSectionListItemCount-----------------\x3e>>>");let s=0;for(let n=t;n<l;n++){s+=o(e[n])}return s}function l(){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 i=t.get(n)??[],c=i.length,r=a(i,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);i.push(...s);const d=e.get(n);return d&&(d.state=oa.QT_TAB_PAGE_STATE_IDLE),l(),{pageIndex:n,sectionIndex:c,sectionCount:s.length,itemIndex:r,itemCount:u}},deleteSection:function(e,n,o){const s=t.get(e)??[],i=a(s,0,n-1),c=a(s,n,o);return s.splice(n,o),l(),{pageIndex:e,sectionIndex:n,sectionCount:o,itemIndex:i,itemCount:c}},updateSection:function(e,n,s){const i=t.get(e)??[],c=a(i,0,n-1),r=o(s);return i.splice(n,1,s),l(),{pageIndex:e,sectionIndex:n,sectionCount:1,itemIndex:c,itemCount:r}},updateSectionList:function(e,n){return t.set(e,n),l(),{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 i=a[n],c=i.itemList.length;return i.itemList.push(...o),l(),{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),l(),{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),l(),{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),l(),{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()}}}aa.render=function(e,n,a,s,i,r){const u=l("flex-section"),f=l("tabs-list-section"),p=l("loading-section"),g=l("end-section"),h=l("blank-section"),b=l("card-section"),_=l("vue-section"),y=l("tv-list");return t(),d(y,{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:e.blockFocusDirections,onScrollStateChanged:e.onScrollStateChanged},{default:m((()=>[c(" 普通版块"),v(u,{"cache-pool":e.flexCachePool,enablePlaceholder:e.enablePlaceholder,onFocus:e.onItemFocused},{default:m((()=>[o(e.$slots,"item")])),_:3},8,["cache-pool","enablePlaceholder","onFocus"]),c("一行滚动 多级tab"),v(f,{enablePlaceholder:e.enablePlaceholder},{default:m((()=>[o(e.$slots,"list-item")])),_:3},8,["enablePlaceholder"]),c(" loading"),v(p),c(" end "),v(g),c(" blank "),v(h),c(" card "),v(b,{onFocus:e.onItemFocused},null,8,["onFocus"]),c(" vue "),v(_,null,{default:m((()=>[o(e.$slots,"vue-section")])),_:3}),o(e.$slots,"section")])),_:3},8,["onScroll","onItemClick","onItemFocused","onItemBind","onItemAttached","cachePool","blockFocusDirections","onScrollStateChanged"])},aa.__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"}(oa||(oa={}));const sa="qt-tab";var ia=dn({name:"qt-tab",emits:["onTabPageLoadData","onTabPageChanged","onTabEvent","onTabPageItemClick","onTabPageItemFocused","onTabPageSectionAttached","onTabPageScroll","onTabPageScrollStateChanged","onTabMoveToTopStart","onTabMoveToTopEnd","onTabMoveToBottomStart","onTabMoveToBottomEnd","onTabChanged","onTabPageScrollToEnd","onTabPageScrollToStart"],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:()=>[]},tabContentBlockFocusDirections:{type:Array,default:()=>["down"]},tabContentResumeDelay:{type:Number,default:500},tabContentSwitchDelay:{type:Number,default:300}},setup(t,n){const o=e(),a=e(!0),l=e(1),s=e(!0),i=P(),c=e(),r=la();let u,d=-1;function f(e,t){const n=r.getTabPageData(e);n&&(n.state=t,r.setTabPageData(e,n))}function p(e,o,a){let l=r.getTabPageData(e);if(l&&l.state===oa.QT_TAB_PAGE_STATE_IDLE){a>=r.getSectionList(e).length-t.preloadNumber-1&&(i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData----加载数加载据--\x3e>>> pageIndex:"+e+" sectionIndex:"+a),n.emit("onTabPageLoadData",e,o),f(e,oa.QT_TAB_PAGE_STATE_BUSY))}else i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData--状态不对--\x3e>>>",e)}function g(e,t){i.isLoggable(C.DEBUG)&&i.d(sa,"----------onWaterfallScroll----\x3e>>> offsetX:"+e+" scrollY:"+t),n.emit("onTabPageScroll",e,t)}function m(e,t,o){i.isLoggable(C.DEBUG)&&i.d(sa,"----------onWaterfallScrollStateChanged----\x3e>>> offsetX:"+e+" scrollY:"+t+" newState:"+o),n.emit("onTabPageScrollStateChanged",e,t,o)}return{tabs:o,ifTabs:a,navBarRef:c,initTab:function(e){let t={defaultIndex:e.defaultIndex,focusIndex:e.defaultFocusIndex,data:e.itemList};r.initTab(e),o.value?.setTabsData(t)},setAutoFocus:function(e,t){o.value?.setAutoFocus(e,t)},initWaterfall:function(e){u=e},setTagPageSate:f,setTabPageData:function(e,t){i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData----setTabPageData--\x3e>>>pageIndex:"+e),r.addSectionList(e,t.data);const n={data:Zo(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};i.isLoggable(C.DEBUG)&&i.d(sa,"------设置数据----setTabPageData------\x3e>>> pageIndex:"+e+" data:",n),o.value?.setPageData(e,n)},addPageData:function(e,t,n=0){i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData----addPageData--\x3e>>>pageIndex:"+e),r.addSectionList(e,t.data);const a={data:Zo(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};i.isLoggable(C.DEBUG)&&i.d(sa,"----设置数据------addPageData------\x3e>>> pageIndex:"+e+" data:",a," deleteCount:"+n),o.value?.addPageData(e,a,n)},updatePageData:function(e,t){r.updateSectionList(e,t.data);const n={data:Zo(u,t.data),disableScrollOnFirstScreen:t.disableScrollOnFirstScreen??!1,firstFocusTargetID:t.firstFocusTargetID??"",useDiff:t.useDiff};o.value?.updatePageData(e,n)},updatePageSection:function(e,t,n){r.updateSection(e,t,n);const a=ea(u,n);o.value?.updateRootNode(e,t,a)},getPageSection:function(e,t){return r.getSection(e,t)},getPageSectionList:function(e){return r.getSectionList(e)},deletePageSection:function(e,t,n){r.deleteSection(e,t,n),o.value?.invokeContentFunction(e,"deleteItemRange",[t,n])},addPageItemList:function(e,t,n){r.addItemList(e,t,n);const a=r.getSection(e,t);if(a){const n=ea(u,a);o.value?.updateRootNode(e,t,n)}},getPageItem:function(e,t,n){return r.getItem(e,t,n)},updatePageItem:function(e,t,n,a){r.updateItem(e,t,n,a),o.value?.updateChildNode(e,t,n,a)},deletePageItem:function(e,t,n,a){r.deleteItem(e,t,n,a);const l=r.getSection(e,t);if(l){const n=ea(u,l);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,l){o.value?.getChildNodeViewState(e,t,n,a,l)},dispatchUIFunctionOnChildNode:function(e,t,n,a,l){o.value?.dispatchUIFunctionOnChildNode(e,t,n,a,l)},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()},rootOpacity:l,isTabHorizontal:s,onTabPageLoadData:function(e){const t=e.pageIndex,n=e.useDiff;i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData----android--\x3e>>>pageIndex:"+t),p(t,n,0)},onTabPageChanged:function(e){const t=e.pageIndex;d=t;const o=e.data;i.isLoggable(C.DEBUG)&&i.d(sa,"----------onTabPageChanged------\x3e>>> pageIndex:"+t+" data:",o),n.emit("onTabPageChanged",t,o)},onTabEvent:function(e){const t=e.params,o=e.eventName,a=e.params.itemPosition,l=e.params.x,s=e.params.y,c=e.params.contentOffset,r=e.params.state;switch(i.isLoggable(C.DEBUG)&&i.d(sa,"----------onTabEvent------\x3e>>> eventName:"+o+" tabIndex:"+a+" params:",t),n.emit("onTabEvent",a,o,t),o){case"onMoveToTopStart":n.emit("onTabMoveToTopStart",a,o,t);break;case"onMoveToTopEnd":n.emit("onTabMoveToTopEnd",a,o,t);break;case"onMoveToBottomStart":n.emit("onTabMoveToBottomStart",a,o,t);break;case"onMoveToBottomEnd":n.emit("onTabMoveToBottomEnd",a,o,t);break;case"onTabChanged":n.emit("onTabChanged",a,o,t);break;case"onScroll":g(l,s);break;case"onScrollStateChanged":m(c.x,c.y,r.newState)}},onWaterfallItemClick:function(e,t,o){i.isLoggable(C.DEBUG)&&i.d(sa,"-----------onWaterfallItemClick---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+t+" item:",o),n.emit("onTabPageItemClick",d,e,t,o)},onWaterfallItemFocused:function(e,t,o,a){i.isLoggable(C.DEBUG)&&i.d(sa,"-----------onWaterfallItemFocused---------------\x3e>>> sectionIndex:"+e+" itemIndex:"+t+" isFocused:"+o+" item:",a),n.emit("onTabPageItemFocused",d,e,t,o,a)},onWaterfallSectionBind:function(e,t){i.isLoggable(C.DEBUG)&&i.d(sa,"-----------onWaterfallSectionBind---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t),e===d&&(i.isLoggable(C.DEBUG)&&i.d(sa,"----------loadPageData----bind--\x3e>>>pageIndex:"+e),p(e,!1,t))},onWaterfallSectionAttached:function(e,t){i.isLoggable(C.DEBUG)&&i.d(sa,"-----------onWaterfallSectionAttached---------------\x3e>>> pageIndex:"+e+" sectionIndex:"+t),n.emit("onTabPageSectionAttached",e,t)},onWaterfallScroll:g,onWaterfallScrollStateChanged:m,onTabPageScrollToStart:function(e){const t=e.pageIndex;n.emit("onTabPageScrollToStart",t),i.isLoggable(C.DEBUG)&&i.d(sa,"----------onTabPageScrollToStart------\x3e>>> pageIndex:"+t)},onTabPageScrollToEnd:function(e){const t=e.pageIndex;n.emit("onTabPageScrollToEnd",t),i.isLoggable(C.DEBUG)&&i.d(sa,"----------onTabPageScrollToEnd------\x3e>>> pageIndex:"+t)}}}});ia.render=function(e,n,a,s,r,u){const f=l("qt-nav-bar"),p=l("qt-waterfall"),g=l("recycler-view-pager"),h=l("tabs");return e.ifTabs?(t(),d(h,{key:0,ref:"tabs",class:i(["tabs-root-css",e.tabClass]),dataStrategy:e.tabsDataStrategy,hideOnSingleTab:this.hideOnSingleTab,pageSwitchDelay:e.tabContentSwitchDelay,resumeTaskDelay:e.tabContentResumeDelay,suspension:this.floatNavBar,clipChildren:!1,outOfDateTime:3e5,blockFocusDirections:e.tabContentBlockFocusDirections,onScrollToStart:e.onTabPageScrollToStart,onScrollToEnd:e.onTabPageScrollToEnd,onLoadPage:e.onTabPageLoadData,onPageChanged:e.onTabPageChanged,onTabEvent:e.onTabEvent},{default:m((()=>[v(f,{ref:"navBarRef",name:"tabList",focusable:!1,class:i(e.tabNavBarClass),"text-key":"text",clipChldren:!1,horizontal:e.isTabHorizontal},{default:m((()=>[o(e.$slots,"tab-item")])),_:3},8,["class","horizontal"]),v(g,{nextFocusName:e.contentNextFocus,ref:"viewPager",class:i(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:m((()=>[v(p,{onOnScrollStateChanged:e.onWaterfallScrollStateChanged,onOnScroll:e.onWaterfallScroll,onOnSectionBind:e.onWaterfallSectionBind,onOnSectionAttached:e.onWaterfallSectionAttached,onOnItemFocused:e.onWaterfallItemFocused,onOnItemClick:e.onWaterfallItemClick},{item:m((()=>[o(e.$slots,"waterfall-item")])),section:m((()=>[o(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","blockFocusDirections","onScrollToStart","onScrollToEnd","onLoadPage","onPageChanged","onTabEvent"])):c("v-if",!0)},ia.__file="src/tab/index.vue";var ca=dn({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},focusScale:{type:Number,default:1.15},navType:{type:Number,default:10001},yOffest:{type:Number,default:802}},emits:["item-click","item-focused"],setup(t,n){let o=e(1);const a=e(),l=e();let s=[],i=-1,c=-1,r=[];let u=-1;let d=-1,f=-1;return{descendantFocusability:o,content_list_view:a,nav_list_view:l,init:e=>{e.forEach(((n,o)=>{n.mask||(n.mask="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/mask.png"),n.icon||(n.icon="http://qcloudcdn.a311.ottcn.com/channelzero_image/web_static/extend_screen/mood/playing.png"),n.isPlaying=!1,t.currentFocusIndex==o&&(n.isPlaying=!0);let a=!1;for(let e=0;e<s.length;e++){const t=s[e];n.categoryname==t.categoryname&&(n.navIndex=e,a=!0)}a||(n.navIndex||(n.navIndex=s.length),s.push({type:n.type,decoration:{left:50},categoryname:n.categoryname,startIndex:o,isNeedFocus:!0})),r=e})),Mt((()=>{a.value?.setListData(e),l.value?.setListData(s),setTimeout((()=>{i=t.currentFocusIndex,c=e[t.currentFocusIndex].navIndex,a.value?.scrollToFocused(i),l.value?.scrollToSelected(c,!0)}),300)}))},onItemBind:()=>{},onSItemClick:e=>{n.emit("item-click",e)},onFItemClick:e=>{n.emit("item-click",e)},scrollToIndex:(e,t=!0,n=802)=>{a.value?.scrollToIndex(e,t,n)},scrollToFocused:e=>{o.value=1,a.value?.scrollToFocused(e)},setItemFocused:e=>{o.value=1,a.value?.setItemFocused(e)},scrollToSelected:(e,t=!0)=>{a.value?.scrollToSelected(e,t)},setItemSelected:(e,t=!0)=>{a.value?.setItemSelected(e,!0)},onSItemFocused:e=>{clearTimeout(u),u=setTimeout((()=>{if(e.hasFocus){if(i!=e.position){if(i>-1){let e=r[i];e.isPlaying=!1,a.value?.updateItem(i,e)}let t=r[e.position];t.isPlaying=!0,a.value?.updateItem(e.position,t)}i=e.position,c!=e.item.navIndex&&(c=e.item.navIndex,l.value?.scrollToSelected(e.item.navIndex,!0)),n.emit("item-focused",e)}else c=e.item.navIndex}),300)},onFItemFocused:e=>{clearTimeout(d),clearTimeout(f),e.hasFocus&&c!=e.position&&(o.value=2,c=e.position,r[e.item.startIndex].isNeedFocus?(a.value?.scrollToIndex(e.item.startIndex,!0,t.yOffest),f=setTimeout((()=>{a.value?.setItemSelected(e.item.startIndex,!0),d=setTimeout((()=>{o.value=1}),200)}),300)):(a.value?.scrollToIndex(e.item.startIndex+1,!0,t.yOffest),f=setTimeout((()=>{a.value?.setItemSelected(e.item.startIndex+1,!0),d=setTimeout((()=>{o.value=1}),200)}),300)))},updateItem:(e,t)=>{r[e]=t,r.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");for(let t=0;t<s.length;t++){const n=s[t];e.categoryname==n.categoryname&&(e.navIndex=t)}})),a.value?.updateItem(e,r[e])}}}});const ra={focusable:!1,clipChildren:!1},ua=["focusScale"],da=b("img",{class:"coverV",src:"${coverV}",focusable:!1,postDelay:"300"},null,-1),fa=b("img",{src:"${mask}",class:"titMask",focusable:!1,postDelay:"300",showIf:"${isPlaying}"},null,-1),pa={focusable:!1,class:"clv_item_text_box",showIf:"${isPlaying}"},ga={class:"playMark",focusable:!1},ma=["type"],ha=b("div",{class:"line",focusable:!1,showOnState:"selected",duplicateParentState:!0},null,-1),va=b("div",{duplicateParentState:!0,class:"nav_item_text_focused",showOnState:"focused",focusable:!1,gradientBackground:{colors:["#FF2F7CEB","#FF1163D8"],cornerRadius:40}},null,-1),ba={class:"nav_item_text",focusable:!1,duplicateParentState:!0};var _a,ya,Ta;ca.render=function(e,a,r,u,d,f){const p=l("play-mark"),g=l("text-view"),h=l("qt-list-view");return t(),n("div",ra,[c(" listview second nav "),v(h,{class:i(e.className),ref:"content_list_view",clipChildren:!1,clipPadding:!1,onItemClick:e.onSItemClick,horizontal:"",blockFocusDirections:["left","right"],descendantFocusability:e.descendantFocusability,onItemFocused:e.onSItemFocused},{default:m((()=>[b("div",{type:10001,name:"clv_item",class:"clv_item",focusable:!0,enableFocusBorder:!0,clipChildren:!1,eventClick:"",eventFocus:"",focusScale:e.focusScale},[da,fa,b("div",pa,[b("div",ga,[v(p,{style:s([{width:"28px",height:"20px"},{"margin-left":"16px"}]),markColor:"#ffffff",gap:-1,focusable:!1})]),v(g,{focusable:!1,ellipsizeMode:2,fontSize:30,gravity:"centerVertical",lines:1,maxLines:1,class:"clv_item_text",text:"${assetTitle}",paddingRect:[6,0,0,0]})]),c(' <div showIf="${isPlaying==false}" :focusable="false" class="clv_item_text_box1">\r\n <text-view :focusable="false" :ellipsizeMode="2" :fontSize="30" gravity="centerVertical" :lines="1" :maxLines="1"\r\n :duplicateParentState="true" class="clv_item_selected_text" text="${assetTitle}" :paddingRect="[16,0,0,0]" \r\n :showOnState="[\'selected\']"/>\r\n <text-view :focusable="false" :ellipsizeMode="2" :fontSize="30" gravity="centerVertical" :lines="1" :maxLines="1"\r\n :duplicateParentState="true" class="clv_item_selected_text" text="" :paddingRect="[16,0,0,0]" \r\n :showOnState="[\'focused\',\'normal\']" />\r\n </div> ')],8,ua),o(e.$slots,"item")])),_:3},8,["class","onItemClick","descendantFocusability","onItemFocused"]),c(" listview first nav "),v(h,{class:i(e.classNavName),ref:"nav_list_view",clipChildren:!1,clipPadding:!1,onItemClick:e.onFItemClick,horizontal:"",blockFocusDirections:["left","right"],onItemFocused:e.onFItemFocused},{default:m((()=>[b("div",{type:e.navType,name:"nav_item",class:"nav_item",focusable:!0,enableFocusBorder:!1,focusScale:"1",eventClick:"",eventFocus:"",clipChildren:!1},[ha,va,b("div",ba,[v(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text_selected",text:"${categoryname}",showOnState:["selected"]}),v(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,maxLines:1,class:"text",text:"${categoryname}",showOnState:"focused"}),v(g,{focusable:!1,ellipsizeMode:2,duplicateParentState:!0,fontSize:44,gravity:"center",lines:1,class:"text",text:"${categoryname}",showOnState:["normal"]})])],8,ma),o(e.$slots,"navItem")])),_:3},8,["class","onItemClick","onItemFocused"])])},ca.__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"}(_a||(_a={})),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"}(ya||(ya={})),function(e){e[e.QT_NAV_BAR_ITEM_TYPE_TEXT=2e4]="QT_NAV_BAR_ITEM_TYPE_TEXT"}(Ta||(Ta={}));const Sa=[Xn,Jn,eo,no,ao,so,bo,xo,ko,aa,ia,ca],Ia=t=>{t.component("qt-loading-view",{setup(t,n){const o=e();return()=>I("LoadingViewComponent",{ref:o})}}),function(t){const n=a({props:{loadMore:{type:Function,default:function(){return[1,1]}},openPage:{type:Boolean,default:!1},preloadNo:{type:Number,default:0},defaultFocus:{type:Number,default:-1}},emits:["item-click","scroll","item-focused","item-attached","item-detached","item-bind","item-unbind","load-more","scroll-state-changed","focus-search-failed","scrollYGreaterReference","scrollYLesserReference"],setup(t,n){const o=e();E();let a=[],l=[],s=[],i="",c=-1,r=!1,u=-1,d=-1,f=-1,m=-1;p((()=>{t.openPage&&(c=1,r=!1,t.loadMore(c))}));const h=e=>{0==a.length&&(a=vo(e),v(a,-1),l=e,t.openPage?y(a.concat([{_id:"",type:1002,decoration:{top:18,bottom:18,right:30,left:30}}])):y(a),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(s.push(n),-1!=s.indexOf("push"))i="push";else{if(-1!=s.indexOf("splice"))return i="splice",function(...t){return e.splice(...t),-1!=s.indexOf("list")?(a[s[0]].list.splice(...t),P(Number(s[0]),a[s[0]])):1==t.length?F(Number(t[0]),a.length-t[0]+1):2==t.length?F(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))),a.splice(t[0],...t.slice(1)),i="",s=[],Reflect.get(e,n,o)};if(-1!=s.indexOf("pop"))return i="pop",function(){return e.pop(),-1!=s.lastIndexOf("list")?(a[s[0]].list.pop(),P(Number(s[0]),a[s[0]])):(F(Number(a.length-1),1),a.pop()),i="",s=[],Reflect.get(e,n,o)};if(-1!=s.indexOf("forEach"))return i="forEach",function(l){return e.forEach((e=>{l(e)})),a=[],a=vo(e),t.openPage?y(a.concat([{_id:"",type:1002,decoration:{top:15,left:30}}])):y(a),i="",s=[],Reflect.get(e,n,o)};if(-1!=s.indexOf("concat"))return i="concat",function(l){return e=e.concat(l),-1!=s.lastIndexOf("list")?(a[s[0]].list=a[s[0]].list.concat(l),P(Number(s[0]),a[s[0]])):(a=a.concat(l),t.openPage&&!r?setTimeout((()=>{S(l.concat([{type:"1002",decoration:{bottom:18,right:30,left:30}}]),1)}),300):T(l)),i="",s=[],Reflect.get(e,n,o)};i=""}const l=Reflect.get(e,n,o);return b(l)&&"__ob__"!=n&&"dep"!=n&&"subs"!=n?h(l):(-1==s.indexOf("push")&&(s=[]),l)},set(e,n,o,c){const u=e[n];_(e,n);const d=Reflect.set(e,n,o,c);if((!b(u)&&u!==o||b(u))&&"push"!=i)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]]),a[s[0]].list[s[e+1]]=l[s[0]].list[s[e+1]],a[s[0]].list[s[e+1]].name="name"+s[e-1]+s[e+1]}else a[s[0]]=l[s[0]],a[s[0]].name="name"+s[0],P(Number(s[0]),l[s[0]]);if(n&&"push"==i&&u!==o)-1!=s.lastIndexOf("list")?(s.push(n),a[s[0]].list.push(o)):(s.push(n),a.push(o));else{if("push"==i)if(-1!=s.lastIndexOf("list"))P(Number(s[0]),a[s[0]]);else{let e=a.slice(s[1]);m&&clearTimeout(m),m=t.openPage&&!r?setTimeout((()=>{S(e.concat([{_id:"",type:1002,decoration:{bottom:18,right:30,left:30}}]),1)}),300):setTimeout((()=>{T(e)}),300)}i="",s=[]}return d}};return new Proxy(e,n)},v=(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&&v(o.list,n)}},b=e=>null!==e&&"object"==typeof e,_=(e,t)=>{Object.hasOwnProperty.call(e,t)},y=e=>{u&&clearTimeout(u),u=setTimeout((()=>{x.callUIFunction(o.value,"setListData",e)}),100)},T=e=>{x.callUIFunction(o.value,"addListData",e)},S=(e,t)=>{x.callUIFunction(o.value,"addListDataWithParams",[e,t])},F=(e,t)=>{x.callUIFunction(o.value,"deleteItemRange",[e,t])},P=(e,t)=>{x.callUIFunction(o.value,"updateItem",[e,t])},C=(e,t,n)=>{x.callUIFunction(o.value,"updateItemRange",[e,t,n])},L=(e,t)=>{x.callUIFunction(o.value,"insertItemRange",[e,t])},k=(e,t)=>{x.callUIFunction(o.value,"setSelectChildPosition",[e,t])},D=e=>{x.callUIFunction(o.value,"scrollToPosition",[e])},N=e=>{x.callUIFunction(o.value,"requestChildFocus",[e])};return g((()=>{a=[],l.length=0,s=[],r=!1,c=1,i="",u&&clearTimeout(u),f&&clearTimeout(f),m&&clearTimeout(m),d&&clearTimeout(d)})),n.expose({viewRef:o,init:h,undataItemName:v,hasChanged:(e,t)=>e!==t&&(e==e||t==t),scrollToIndex:(e,t,n)=>{x.callUIFunction(o.value,"scrollToPositionWithOffset",[e,n,t])},updateItem:P,updateItemList:C,hasFocus:e=>{x.callUIFunction(o.value,"hasFocus",(t=>{e(t)}))},updateItemProps:(e,t,n)=>{x.callUIFunction(o.value,"updateItemProps",[t,e,n,!0])},setListData:y,insertItem:L,addListData:T,addListDataWithParams:S,dispatchItemFunction:(e,t,n,a)=>{x.callUIFunction(o.value,"dispatchItemFunction",[e,t,n,a])},deleteItem:F,setBlockFocusDirectionsOnFail:e=>{x.callUIFunction(o.value,"setBlockFocusDirectionsOnFail",[e])},setListDataWithParams:(e,t)=>{x.callUIFunction(o.value,"setListDataWithParams",[e,t])},prepareForRecycle:()=>{x.callUIFunction(o.value,"prepareForRecycle",[])},setDisplay:e=>{x.callUIFunction(o.value,"setDisplay",[e])},scrollToTop:()=>{x.callUIFunction(o.value,"scrollToTop",[])},changeDisplayState:(e,t)=>{x.callUIFunction(o.value,"changeDisplayState",[e,t])},notifySaveInstance:()=>{x.callUIFunction(o.value,"notifySaveInstance",[])},notifyRestoreInstance:()=>{x.callUIFunction(o.value,"notifyRestoreInstance",[])},pausePostTask:()=>{x.callUIFunction(o.value,"pausePostTask",[])},resumePostTask:()=>{x.callUIFunction(o.value,"resumePostTask",[])},getScrollOffset:e=>{x.callUIFunction(o.value,"getScrollOffset",[],e)},scrollToPosition:D,scrollToFocused:e=>{D(e),N(e)},scrollToSelected:(e,t)=>{D(e),k(e,t)},scrollToPositionOffset:(e,t,n,a,l)=>{x.callUIFunction(o.value,"scrollToPositionWithOffset",[t,a,n])},destroy:()=>{x.callUIFunction(o.value,"destroy",[])},setInitPosition:e=>{x.callUIFunction(o.value,"setInitPosition",[e])},setItemFocused:N,clearPostTask:()=>{x.callUIFunction(o.value,"clearAllPostTask",[])},clearFocus:()=>{x.callUIFunction(o.value,"clearFocus",[])},setItemSelected:k,blockRootFocus:()=>{x.callUIFunction(o.value,"blockRootFocus",[])},unBlockRootFocus:()=>{x.callUIFunction(o.value,"unBlockRootFocus",[])},setBackgroundColor:e=>{x.callUIFunction(o.value,"setBackgroundColor",[e])},stopPage:()=>{d&&clearTimeout(d),d=setTimeout((()=>{F(a.length,1)}),400),r=!0},setAutoFocus:function(e,t){x.callUIFunction(o.value,"setAutoFocus",[e,t])}}),()=>{const e=n.slots.default&&n.slots.default();return I("FastListView",{ref:o,onItemClick:e=>{n.emit("item-click",e)},onScroll:e=>{n.emit("scroll",e)},onItemFocused:e=>{n.emit("item-focused",e)},onAttachedToWindow:e=>{n.emit("item-attached",e)},onDetachedFromWindow:e=>{n.emit("item-detached",e)},onBindItem:e=>{e.position==a.length-1-t.preloadNo&&(c++,t.loadMore(c)),n.emit("item-bind",e)},onUnbindItem:e=>{n.emit("item-unbind",e)},onLoadMore:e=>{n.emit("load-more",e)},onScrollStateChanged:e=>{n.emit("scroll-state-changed",e)},onFocusSearchFailed:e=>{n.emit("focus-search-failed",e)},onScrollYGreaterReference:e=>{n.emit("scrollYGreaterReference",e)},onScrollYLesserReference:e=>{n.emit("scrollYLesserReference",e)}},e)}}});t.component("qt-list-view",n)}(t),function(t){const n=a({emits:["item-focused","item-attached","item-detached","item-bind","item-unbind"],setup(t,n){const o=e();return n.expose({viewRef:o,updateItem:(e,t)=>{x.callUIFunction(o.value,"updateItem",[e,t])},dispatchItemFunction:(e,t,n,a)=>{x.callUIFunction(o.value,"dispatchItemFunction",[e,t,n,a])},updateItemProps:(e,t,n)=>{x.callUIFunction(o.value,"updateItemProps",[t,e,n,!0])},batch:e=>{x.callUIFunction(o.value,"batch",[e])}}),()=>{const e=n.slots.default&&n.slots.default();return I("FastListView",{ref:o,onBindItem:e=>{n.emit("item-bind",e)},onItemFocused:e=>{n.emit("item-focused",e)},onAttachedToWindow:e=>{n.emit("item-attached",e)},onDetachedFromWindow:e=>{n.emit("item-detached",e)},onItemRecycled:e=>{n.emit("item-unbind",e)}},e)}}});t.component("qt-list-item",n)}(t);for(let e in Sa)t.component(Sa[e].name,Sa[e])};export{_a as QTDirections,Ta as QTNavBarItemType,ya as QTScrollState,oa as QTTabPageState,Oo as QTWaterfallItemType,wo as QTWaterfallSectionType,Ia as QuickTVUI,go as arrangeChildren4ListView};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("@vue/runtime-core").DefineComponent<{}, {}, {}, {}, {}, import("@vue/runtime-core").ComponentOptionsMixin, import("@vue/runtime-core").ComponentOptionsMixin, {}, string, import("@vue/runtime-core").VNodeProps & import("@vue/runtime-core").AllowedComponentProps & import("@vue/runtime-core").ComponentCustomProps, Readonly<import("@vue/runtime-core").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -1,2 +1,8 @@
|
|
|
1
|
-
declare const _default: import("
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
2
|
+
clearFocus: () => void;
|
|
3
|
+
requestFocus: () => void;
|
|
4
|
+
qt_div_ref: import("vue").Ref<any>;
|
|
5
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "clearFocus"[], "clearFocus", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>> & {
|
|
6
|
+
onClearFocus?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
}, {}, {}>;
|
|
2
8
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
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
|
-
"types": "dist/src/index.d.ts",
|
|
12
|
-
"keywords": [
|
|
13
|
-
"native",
|
|
14
|
-
"web",
|
|
15
|
-
"framework",
|
|
16
|
-
"compiler"
|
|
17
|
-
],
|
|
18
|
-
"files": [
|
|
19
|
-
"dist"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@quicktvui/quicktvui3",
|
|
3
|
+
"version": "0.0.83",
|
|
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
|
+
}
|