@lazycatcloud/lzc-toolkit 0.0.144 → 0.0.146
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.es.js +1259 -1171
- package/dist/index.umd.js +5 -5
- package/dist/types/useScaleImage/index.d.ts +3146 -1542
- package/dist/types/useScaleImage/useGesture.d.ts +13 -0
- package/dist/types/useScaleImage/useTouch.d.ts +2 -2
- package/dist/types/useScaleImage/useTransition.d.ts +9 -0
- package/package.json +1 -1
- package/dist/types/useScaleImage/useRect.d.ts +0 -2
package/dist/index.umd.js
CHANGED
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
(function(I,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(I=typeof globalThis<"u"?globalThis:I||self,e(I.ui={},I.Vue))})(this,function(I,e){"use strict";const xe={created(t,n){let o,l;function s(r){r.button==0&&(o=r.clientX,l=r.clientY)}function i(r){if(r.button!=0||o===void 0)return;const d=r.clientX,g=r.clientY,a=Math.abs(d-o),f=Math.abs(g-l);a>5||f>5||n.value&&n.value(r)}t.__mouse_down__=s,t.__mouse_up__=i,t.addEventListener("mousedown",s),t.addEventListener("mouseup",i)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},Ze={created(t,n){const{fn:o,ms:l=1500}=n.value;let s=null;function i(r){s||(o(r),s=setTimeout(()=>{s=null},l))}t.addEventListener("click",i)}};function Ke(t,n){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=t()},{...n,flush:(o=n?.flush)!=null?o:"sync"}),e.readonly(l)}function Ge(t,n){let o,l,s;const i=e.ref(!0),r=()=>{i.value=!0,s()};e.watch(t,r,{flush:"sync"});const d=typeof n=="function"?n:n.get,g=typeof n=="function"?void 0:n.set,a=e.customRef((f,c)=>(l=f,s=c,{get(){return i.value&&(o=d(),i.value=!1),l(),o},set(m){g?.(m)}}));return Object.isExtensible(a)&&(a.trigger=r),a}function Te(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function X(t){return typeof t=="function"?t():e.unref(t)}const _e=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const qe=Object.prototype.toString,Je=t=>qe.call(t)==="[object Object]",ne=()=>{};function Oe(t,n){function o(...l){return new Promise((s,i)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(s).catch(i)})}return o}function et(t,n={}){let o,l,s=ne;const i=d=>{clearTimeout(d),s(),s=ne};return d=>{const g=X(t),a=X(n.maxWait);return o&&i(o),g<=0||a!==void 0&&a<=0?(l&&(i(l),l=null),Promise.resolve(d())):new Promise((f,c)=>{s=n.rejectOnCancel?c:f,a&&!l&&(l=setTimeout(()=>{o&&i(o),l=null,f(d())},a)),o=setTimeout(()=>{l&&i(l),l=null,f(d())},g)})}}function tt(...t){let n=0,o,l=!0,s=ne,i,r,d,g,a;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:r,trailing:d=!0,leading:g=!0,rejectOnCancel:a=!1}=t[0]:[r,d=!0,g=!0,a=!1]=t;const f=()=>{o&&(clearTimeout(o),o=void 0,s(),s=ne)};return m=>{const M=X(r),u=Date.now()-n,E=()=>i=m();return f(),M<=0?(n=Date.now(),E()):(u>M&&(g||!l)?(n=Date.now(),E()):d&&(i=new Promise((D,h)=>{s=a?h:D,o=setTimeout(()=>{n=Date.now(),l=!0,D(E()),f()},Math.max(0,M-u))})),!g&&!o&&(o=setTimeout(()=>l=!0,M)),l=!1,i)}}function nt(t){return t||e.getCurrentInstance()}function Ne(t,n=200,o={}){return Oe(et(n,o),t)}function we(t,n=200,o=!1,l=!0,s=!1){return Oe(tt(n,o,l,s),t)}function Ee(t,n=!0,o){nt()?e.onMounted(t,o):n?t():e.nextTick(t)}function J(t){var n;const o=X(t);return(n=o?.$el)!=null?n:o}const ie=_e?window:void 0,ot=_e?window.document:void 0;function be(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=ie):[n,o,l,s]=t,!n)return ne;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const i=[],r=()=>{i.forEach(f=>f()),i.length=0},d=(f,c,m,M)=>(f.addEventListener(c,m,M),()=>f.removeEventListener(c,m,M)),g=e.watch(()=>[J(n),X(s)],([f,c])=>{if(r(),!f)return;const m=Je(c)?{...c}:c;i.push(...o.flatMap(M=>l.map(u=>d(f,M,u,m))))},{immediate:!0,flush:"post"}),a=()=>{g(),r()};return Te(a),a}function lt(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function st(t){const n=lt();return e.computed(()=>(n.value,Boolean(t())))}function at(t){const n=e.getCurrentInstance(),o=Ge(()=>null,()=>t?J(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function it(t,n,o={}){const{window:l=ie,...s}=o;let i;const r=st(()=>l&&"ResizeObserver"in l),d=()=>{i&&(i.disconnect(),i=void 0)},g=e.computed(()=>Array.isArray(t)?t.map(c=>J(c)):[J(t)]),a=e.watch(g,c=>{if(d(),r.value&&l){i=new ResizeObserver(n);for(const m of c)m&&i.observe(m,s)}},{immediate:!0,flush:"post"}),f=()=>{d(),a()};return Te(f),{isSupported:r,stop:f}}function rt(t,n={width:0,height:0},o={}){const{window:l=ie,box:s="content-box"}=o,i=e.computed(()=>{var c,m;return(m=(c=J(t))==null?void 0:c.namespaceURI)==null?void 0:m.includes("svg")}),r=e.ref(n.width),d=e.ref(n.height),{stop:g}=it(t,([c])=>{const m=s==="border-box"?c.borderBoxSize:s==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(l&&i.value){const M=J(t);if(M){const u=l.getComputedStyle(M);r.value=Number.parseFloat(u.width),d.value=Number.parseFloat(u.height)}}else if(m){const M=Array.isArray(m)?m:[m];r.value=M.reduce((u,{inlineSize:E})=>u+E,0),d.value=M.reduce((u,{blockSize:E})=>u+E,0)}else r.value=c.contentRect.width,d.value=c.contentRect.height},o);Ee(()=>{const c=J(t);c&&(r.value="offsetWidth"in c?c.offsetWidth:n.width,d.value="offsetHeight"in c?c.offsetHeight:n.height)});const a=e.watch(()=>J(t),c=>{r.value=c?n.width:0,d.value=c?n.height:0});function f(){g(),a()}return{width:r,height:d,stop:f}}const ke=1;function ct(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=ne,onScroll:i=ne,offset:r={left:0,right:0,top:0,bottom:0},eventListenerOptions:d={capture:!1,passive:!0},behavior:g="auto",window:a=ie,onError:f=y=>{console.error(y)}}=n,c=e.ref(0),m=e.ref(0),M=e.computed({get(){return c.value},set(y){E(y,void 0)}}),u=e.computed({get(){return m.value},set(y){E(void 0,y)}});function E(y,A){var _,V,Q;if(!a)return;const R=X(t);!R||(Q=R instanceof Document?a.document.body:R)==null||Q.scrollTo({top:(_=X(A))!=null?_:u.value,left:(V=X(y))!=null?V:M.value,behavior:X(g)})}const D=e.ref(!1),h=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),w=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),L=y=>{!D.value||(D.value=!1,w.left=!1,w.right=!1,w.top=!1,w.bottom=!1,s(y))},k=Ne(L,o+l),U=y=>{var A;if(!a)return;const _=((A=y?.document)==null?void 0:A.documentElement)||y?.documentElement||J(y),{display:V,flexDirection:Q}=getComputedStyle(_),R=_.scrollLeft;w.left=R<c.value,w.right=R>c.value;const K=Math.abs(R)<=(r.left||0),W=Math.abs(R)+_.clientWidth>=_.scrollWidth-(r.right||0)-ke;V==="flex"&&Q==="row-reverse"?(h.left=W,h.right=K):(h.left=K,h.right=W),c.value=R;let Y=_.scrollTop;y===a.document&&!Y&&(Y=a.document.body.scrollTop),w.top=Y<m.value,w.bottom=Y>m.value;const S=Math.abs(Y)<=(r.top||0),j=Math.abs(Y)+_.clientHeight>=_.scrollHeight-(r.bottom||0)-ke;V==="flex"&&Q==="column-reverse"?(h.top=j,h.bottom=S):(h.top=S,h.bottom=j),m.value=Y},x=y=>{var A;if(!a)return;const _=(A=y.target.documentElement)!=null?A:y.target;U(_),D.value=!0,k(y),i(y)};return be(t,"scroll",o?we(x,o,!0,!1):x,d),Ee(()=>{try{const y=X(t);if(!y)return;U(y)}catch(y){f(y)}}),be(t,"scrollend",L,d),{x:M,y:u,isScrolling:D,arrivedState:h,directions:w,measure(){const y=X(t);a&&y&&U(y)}}}let ut=0;function ve(t,n={}){const o=e.ref(!1),{document:l=ot,immediate:s=!0,manual:i=!1,id:r=`vueuse_styletag_${++ut}`}=n,d=e.ref(t);let g=()=>{};const a=()=>{if(!l)return;const c=l.getElementById(r)||l.createElement("style");c.isConnected||(c.id=r,n.media&&(c.media=n.media),l.head.appendChild(c)),!o.value&&(g=e.watch(d,m=>{c.textContent=m},{immediate:!0}),o.value=!0)},f=()=>{!l||!o.value||(g(),l.head.removeChild(l.getElementById(r)),o.value=!1)};return s&&!i&&Ee(a),i||Te(f),{id:r,css:d,unload:f,load:a,isLoaded:e.readonly(o)}}function Be(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,i=e.ref(null),r=rt(i),d=e.ref(!0),g=Ne(U,100);let a;const f=e.shallowRef(t),c=e.ref(0),m=e.ref({start:0,end:10}),M=e.ref({start:0,end:s});let u=0;const E=e.ref([]),D=e.computed(()=>{let{sum:S,height:j}={sum:0,height:0};return f.value.map((B,P)=>(typeof l=="number"?j=l:j=l(P),S+=j,{height:j,sum:S}))}),h=e.computed(()=>V(m.value.start)),w=e.computed(()=>typeof l=="number"?D.value.length*l:D.value[D.value.length-1]?.sum||0),L=e.computed(()=>{const{start:S,end:j}=M.value;return E.value.slice(S,j)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(a)),e.watch(f,()=>{(r.width.value||r.height.value)&&x()},{deep:!0}),e.watch([r.width,r.height],([S,j])=>{(S||j)&&x()},{deep:!0}),e.watch(c,()=>{k(),g()});function k(){d.value=!1}function U(){d.value=!0,o?.()}function x(){cancelAnimationFrame(a),a=requestAnimationFrame(y)}function y(){if(i.value){c.value=i.value.scrollTop;let S=A(c.value);u=_(S);let j=Math.max(0,S-s),B=Math.min(S+u+s,f.value.length);m.value={start:j,end:B},E.value=f.value.slice(j,B).map((P,b)=>({data:P,index:b+j})),M.value.start=S-j,M.value.end=M.value.start+u}}function A(S){let j=0,B=D.value.length-1,P=-1;for(;j<=B;){const b=Math.floor((j+B)/2);D.value[b].sum>=S?(P=b,B=b-1):j=b+1}return Math.max(0,P)}function _(S){let j=0,B=0;for(let P=S;P<D.value.length&&(j++,B+=D.value[P].height,!(B>=r.height.value));P++);return j}function V(S){if(typeof l=="number")return S*l;let j=D.value[S];return j?j.sum-j.height:0}function Q(S){return D.value[S]||{sum:0,height:0}}function R(S){if(i.value){const j=Q(S);i.value.scrollTop=j.sum-j.height,y()}}const K=e.computed(()=>({style:{width:"100%",height:`${w.value}px`,pointerEvents:d.value?void 0:"none"}})),W=e.computed(()=>({style:{transform:`translate3d(0, ${h.value}px, 0)`,"will-change":"transform"}})),Y={overflowY:"auto"};return{list:E,visiableList:L,getItemHeightData:Q,getoffsetTopIndex:A,totalHeight:w,clientHeight:r.height,scrollTo:R,scrollTop:c,isScrollEnd:d,containerProps:{ref:i,onScroll:()=>{x()},style:Y},wrapperProps:K,innerProps:W}}const re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),fe=Symbol(),Me=Symbol(),ge=Symbol(),me=Symbol(),le=Symbol(),he=Symbol();function dt(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:s}={voidFn:E=>{},boolFn:E=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},i=e.inject(de,s),r=e.inject(ue,n),d=e.inject(me,o),g=e.inject(ce,t),a=e.inject(re,t),f=e.inject(fe,t),c=e.inject(Me,t),m=e.inject(ge,t),M=e.inject(le,t),u=e.inject(he,l);return{selected:i,isSelected:r,isAllSelected:d,toggle:g,toggleAll:a,select:f,selectAll:c,unselect:m,unselectAll:M,selectedCount:u}}function ft(t,n,o={deep:!0}){const l=e.ref(!1),s=e.ref(new Set),i=e.ref(new Map);e.watch(t,h=>{i.value=h.reduce((w,L)=>(w.set(L[n],L),w),new Map)},{deep:o.deep,immediate:!0});const r=e.computed(()=>{let h=[];if(l.value!=null)l.value&&(h=Array.from(i.value.values()));else if(s.value.size){let w;s.value.forEach(L=>{w=i.value.get(L),w&&h.push(w)})}return h}),d=e.computed(()=>{let h=0;return l.value!=null?l.value&&(h=i.value.size):h=s.value.size,h}),g=e.computed(()=>{let h;if(l.value!=null)h=l.value;else{const w=s.value.size,L=i.value.size;h=w==L}return h});function a(){l.value=!0}function f(){l.value=!1}function c(h){u(()=>{h.forEach(w=>{s.value.add(w[n])})})}function m(h){u(()=>{h.forEach(w=>{s.value.delete(w[n])})})}function M(h){return l.value!=null?l.value:s.value.has(h[n])}function u(h){l.value!=null&&(l.value?s.value=new Set(Array.from(i.value.keys())):s.value=new Set),h(),s.value.size==0?l.value=!1:s.value.size==i.value.size?l.value=!0:l.value=null}function E(h){u(()=>{h.forEach(w=>{M(w)?s.value.delete(w[n]):s.value.add(w[n])})})}function D(){const{value:h}=g;h?f():a()}return e.provide(re,D),e.provide(ce,E),e.provide(ue,M),e.provide(de,r),e.provide(fe,c),e.provide(Me,a),e.provide(ge,m),e.provide(me,g),e.provide(le,f),e.provide(le,f),e.provide(he,d),{selected:r,select:c,selectAll:a,unselect:m,unselectAll:f,toggle:E,toggleAll:D,isSelected:M,isAllSelected:g,selectedCount:d}}function Mt(t){const n=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let u=[];return n.value!=null?n.value&&(u=t.value):o.value.size&&(u=Array.from(o.value.values())),u}),s=e.computed(()=>{let u=0;return n.value!=null?n.value&&(u=t.value.length):u=o.value.size,u}),i=e.computed(()=>{let u;if(n.value!=null)u=n.value;else{const E=o.value.size,D=t.value.length;u=E==D}return u});function r(){n.value=!0}function d(){n.value=!1}function g(u){c(()=>{u.forEach(E=>{o.value.add(E)})})}function a(u){c(()=>{u.forEach(E=>{o.value.delete(E)})})}function f(u){return n.value!=null?n.value:o.value.has(u)}function c(u){n.value!=null&&(n.value?o.value=new Set(Array.from(t.value)):o.value=new Set),u(),o.value.size==0?n.value=!1:o.value.size==t.value.length?n.value=!0:n.value=null}function m(u){c(()=>{u.forEach(E=>{f(E)?o.value.delete(E):o.value.add(E)})})}function M(){const{value:u}=i;u?d():r()}return e.provide(re,M),e.provide(ce,m),e.provide(ue,f),e.provide(de,l),e.provide(fe,g),e.provide(Me,r),e.provide(ge,a),e.provide(me,i),e.provide(le,d),e.provide(le,d),e.provide(he,s),{selected:l,select:g,selectAll:r,unselect:a,unselectAll:d,toggle:m,toggleAll:M,isSelected:f,isAllSelected:i,selectedCount:s}}function Ie(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ze({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=Ie("\u9009\u62E9"),unselect:i=Ie("\u53D6\u6D88\u9009\u62E9"),unselectAll:r=Ie("\u53D6\u6D88\u5168\u9009")}=l();let d={};const g=e.computed(()=>we(n==="colum"?Se:T,50)),a=new Set,f=e.ref(!0),c=e.ref(),m=e.ref(!1),M=e.ref({x:0,y:0}),u=e.ref({x:0,y:0,scrollTop:0}),E=new ResizeObserver(p=>D.value=p[0].target.getBoundingClientRect()),D=e.ref({}),h=e.ref({top:0,height:0,sync(p=!1){h.value.top=c.value?.scrollTop||0,p&&(h.value.height=c.value?.scrollHeight||0)}}),w=e.computed(()=>m.value?{left:Math.min(M.value.x,u.value.x)-D.value.left,top:Math.min(M.value.y,u.value.y)-D.value.top,width:Math.abs(M.value.x-u.value.x),height:Math.abs(M.value.y-u.value.y)}:{left:0,top:0,width:0,height:0}),{margin:L=50,startSpeed:k=30,maxSpeed:U=30}=o;let x;const y=L,A=k,_=U,V=p=>p**1;let Q=0;function R(p){if(cancelAnimationFrame(x),Q=K(p),Q=Math.max(Math.min(Q,_),-_),Q!==0){const N=c.value;if(!N||!m.value)return;const C=h.value.height-D.value.height;let z=h.value.top+Number(Q);z=Math.min(Math.max(0,z),C),N.scrollTop=z,Y(),x=requestAnimationFrame(()=>R(p))}}function K(p){if(c.value){const C=D.value,z=C.bottom-p;if(z<y)return A*V(1-z/y);const O=p-C.top;if(O<y)return-A*V(1-O/y)}return 0}function W(p){const N={...w.value,right:0,bottom:0};return N.left+=D.value.left,N.top+=D.value.top-h.value.top,N.right=N.width+N.left,N.bottom=N.height+N.top,N.left<p.right&&N.right>p.left&&N.top<p.bottom&&N.bottom>p.top}function Y(){h.value.sync();const{top:p,height:N}=h.value;u.value.y=Math.min(N+D.value.top,u.value.y+p-u.value.scrollTop),u.value.scrollTop=p}function S(p,N,C="dynamic-styles"){let z=document.getElementById(C);z||(z=document.createElement("style"),z.id=C,document.head.appendChild(z));const O=z.sheet.cssRules,H=O.length,F=`${p} { ${N} }`;for(let q=0;q<H;q++){const te=O[q];if(te.selectorText===p&&te.style.cssText===N)return}z.sheet.insertRule(F,H)}function j(p,N){f.value=!0,m.value=!0,h.value.sync(!0);const C=N+h.value.top;M.value.x=p,M.value.y=C,u.value.x=p,u.value.y=C,c.value?.classList.add("disable-scroll-behavior"),a.clear()}function B(p,N,C){!m.value||(f.value&&n==="colum"&&!$()&&(r(),f.value=!1),C?.(),R(N),u.value.x=Math.max(p,D.value.left),u.value.y=Math.min(N+h.value.top,h.value.height+D.value.top),u.value.scrollTop=h.value.top,g.value())}function P(){m.value=!1,c.value?.classList.remove("disable-scroll-behavior")}function b(){!m.value||(Q||Y(),g.value())}function $(){if(!m.value)return!1;const{width:p,height:N}=w.value;return!(Math.max(p,N)>5)}function ae(){$()&&r()}function Se(){$()||c.value?.querySelectorAll(`[${t}]`).forEach(p=>{d[`${t}`]=p.getAttribute(`${t}`),W(p.getBoundingClientRect())?s([d]):i([d])})}function T(){const p=[];let N=null,C=0;c.value?.querySelectorAll(`[${t}]`).forEach((z,O)=>{const H=z.getAttribute(`${t}`);p.push(H),W(z.getBoundingClientRect())?(N===null&&(N=O),N=Math.min(N,O),C=Math.max(C,O)):(d[`${t}`]=H,a.has(H)&&i([d]))});for(let z=N;z<C+1;z++)d[`${t}`]=p[z],s([d]),a.add(p[z])}function v(p){return!p?.value||(c.value=p.value,!c?.value)?!1:(E.observe(c.value),S(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:v,dragStart:j,dragMove:B,dragEnd:P,onScroll:b,isSingleClick:$,cancelSelectAllBySingleClick:ae,selectFn:g,selectRange:w,isPressing:m,containerEl:c,observer:E}}function gt(t){const n=ze(t),{observer:o,selectRange:l}=n,{onScroll:s,dragStart:i,dragMove:r,dragEnd:d,cancelSelectAllBySingleClick:g}=n,a=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:f}=ve(`.drag-select-box {
|
|
1
|
+
(function(v,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(v=typeof globalThis<"u"?globalThis:v||self,e(v.ui={},v.Vue))})(this,function(v,e){"use strict";const Ie={created(t,n){let o,l;function s(i){i.button==0&&(o=i.clientX,l=i.clientY)}function a(i){if(i.button!=0||o===void 0)return;const f=i.clientX,r=i.clientY,M=Math.abs(f-o),g=Math.abs(r-l);M>5||g>5||n.value&&n.value(i)}t.__mouse_down__=s,t.__mouse_up__=a,t.addEventListener("mousedown",s),t.addEventListener("mouseup",a)},unmounted(t){t.removeEventListener("mousedown",t.__mouse_down__),t.removeEventListener("mouseup",t.__mouse_up__)}},Pe={created(t,n){const{fn:o,ms:l=1500}=n.value;let s=null;function a(i){s||(o(i),s=setTimeout(()=>{s=null},l))}t.addEventListener("click",a)}};function Fe(t,n){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=t()},{...n,flush:(o=n?.flush)!=null?o:"sync"}),e.readonly(l)}function He(t,n){let o,l,s;const a=e.ref(!0),i=()=>{a.value=!0,s()};e.watch(t,i,{flush:"sync"});const f=typeof n=="function"?n:n.get,r=typeof n=="function"?void 0:n.set,M=e.customRef((g,c)=>(l=g,s=c,{get(){return a.value&&(o=f(),a.value=!1),l(),o},set(m){r?.(m)}}));return Object.isExtensible(M)&&(M.trigger=i),M}function ge(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function H(t){return typeof t=="function"?t():e.unref(t)}const ze=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const Ve=Object.prototype.toString,We=t=>Ve.call(t)==="[object Object]",K=()=>{};function Ae(t,n){function o(...l){return new Promise((s,a)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(s).catch(a)})}return o}function Xe(t,n={}){let o,l,s=K;const a=f=>{clearTimeout(f),s(),s=K};return f=>{const r=H(t),M=H(n.maxWait);return o&&a(o),r<=0||M!==void 0&&M<=0?(l&&(a(l),l=null),Promise.resolve(f())):new Promise((g,c)=>{s=n.rejectOnCancel?c:g,M&&!l&&(l=setTimeout(()=>{o&&a(o),l=null,g(f())},M)),o=setTimeout(()=>{l&&a(l),l=null,g(f())},r)})}}function Ze(...t){let n=0,o,l=!0,s=K,a,i,f,r,M;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:i,trailing:f=!0,leading:r=!0,rejectOnCancel:M=!1}=t[0]:[i,f=!0,r=!0,M=!1]=t;const g=()=>{o&&(clearTimeout(o),o=void 0,s(),s=K)};return m=>{const h=H(i),u=Date.now()-n,N=()=>a=m();return g(),h<=0?(n=Date.now(),N()):(u>h&&(r||!l)?(n=Date.now(),N()):f&&(a=new Promise((p,d)=>{s=M?d:p,o=setTimeout(()=>{n=Date.now(),l=!0,p(N()),g()},Math.max(0,h-u))})),!r&&!o&&(o=setTimeout(()=>l=!0,h)),l=!1,a)}}function Ke(t){return t||e.getCurrentInstance()}function te(t,n=200,o={}){return Ae(Xe(n,o),t)}function me(t,n=200,o=!1,l=!0,s=!1){return Ae(Ze(n,o,l,s),t)}function he(t,n=!0,o){Ke()?e.onMounted(t,o):n?t():e.nextTick(t)}function W(t){var n;const o=H(t);return(n=o?.$el)!=null?n:o}const ne=ze?window:void 0,Ge=ze?window.document:void 0;function oe(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=ne):[n,o,l,s]=t,!n)return K;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const a=[],i=()=>{a.forEach(g=>g()),a.length=0},f=(g,c,m,h)=>(g.addEventListener(c,m,h),()=>g.removeEventListener(c,m,h)),r=e.watch(()=>[W(n),H(s)],([g,c])=>{if(i(),!g)return;const m=We(c)?{...c}:c;a.push(...o.flatMap(h=>l.map(u=>f(g,h,u,m))))},{immediate:!0,flush:"post"}),M=()=>{r(),i()};return ge(M),M}function qe(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function Je(t){const n=qe();return e.computed(()=>(n.value,Boolean(t())))}function et(t){const n=e.getCurrentInstance(),o=He(()=>null,()=>t?W(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function Le(t,n,o={}){const{window:l=ne,...s}=o;let a;const i=Je(()=>l&&"ResizeObserver"in l),f=()=>{a&&(a.disconnect(),a=void 0)},r=e.computed(()=>Array.isArray(t)?t.map(c=>W(c)):[W(t)]),M=e.watch(r,c=>{if(f(),i.value&&l){a=new ResizeObserver(n);for(const m of c)m&&a.observe(m,s)}},{immediate:!0,flush:"post"}),g=()=>{f(),M()};return ge(g),{isSupported:i,stop:g}}function tt(t,n={width:0,height:0},o={}){const{window:l=ne,box:s="content-box"}=o,a=e.computed(()=>{var c,m;return(m=(c=W(t))==null?void 0:c.namespaceURI)==null?void 0:m.includes("svg")}),i=e.ref(n.width),f=e.ref(n.height),{stop:r}=Le(t,([c])=>{const m=s==="border-box"?c.borderBoxSize:s==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(l&&a.value){const h=W(t);if(h){const u=l.getComputedStyle(h);i.value=Number.parseFloat(u.width),f.value=Number.parseFloat(u.height)}}else if(m){const h=Array.isArray(m)?m:[m];i.value=h.reduce((u,{inlineSize:N})=>u+N,0),f.value=h.reduce((u,{blockSize:N})=>u+N,0)}else i.value=c.contentRect.width,f.value=c.contentRect.height},o);he(()=>{const c=W(t);c&&(i.value="offsetWidth"in c?c.offsetWidth:n.width,f.value="offsetHeight"in c?c.offsetHeight:n.height)});const M=e.watch(()=>W(t),c=>{i.value=c?n.width:0,f.value=c?n.height:0});function g(){r(),M()}return{width:i,height:f,stop:g}}const je=1;function nt(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=K,onScroll:a=K,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:f={capture:!1,passive:!0},behavior:r="auto",window:M=ne,onError:g=D=>{console.error(D)}}=n,c=e.ref(0),m=e.ref(0),h=e.computed({get(){return c.value},set(D){N(D,void 0)}}),u=e.computed({get(){return m.value},set(D){N(void 0,D)}});function N(D,z){var b,T,w;if(!M)return;const I=H(t);!I||(w=I instanceof Document?M.document.body:I)==null||w.scrollTo({top:(b=H(z))!=null?b:u.value,left:(T=H(D))!=null?T:h.value,behavior:H(r)})}const p=e.ref(!1),d=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),y=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),j=D=>{!p.value||(p.value=!1,y.left=!1,y.right=!1,y.top=!1,y.bottom=!1,s(D))},R=te(j,o+l),U=D=>{var z;if(!M)return;const b=((z=D?.document)==null?void 0:z.documentElement)||D?.documentElement||W(D),{display:T,flexDirection:w}=getComputedStyle(b),I=b.scrollLeft;y.left=I<c.value,y.right=I>c.value;const _=Math.abs(I)<=(i.left||0),O=Math.abs(I)+b.clientWidth>=b.scrollWidth-(i.right||0)-je;T==="flex"&&w==="row-reverse"?(d.left=O,d.right=_):(d.left=_,d.right=O),c.value=I;let C=b.scrollTop;D===M.document&&!C&&(C=M.document.body.scrollTop),y.top=C<m.value,y.bottom=C>m.value;const A=Math.abs(C)<=(i.top||0),E=Math.abs(C)+b.clientHeight>=b.scrollHeight-(i.bottom||0)-je;T==="flex"&&w==="column-reverse"?(d.top=E,d.bottom=A):(d.top=A,d.bottom=E),m.value=C},x=D=>{var z;if(!M)return;const b=(z=D.target.documentElement)!=null?z:D.target;U(b),p.value=!0,R(D),a(D)};return oe(t,"scroll",o?me(x,o,!0,!1):x,f),he(()=>{try{const D=H(t);if(!D)return;U(D)}catch(D){g(D)}}),oe(t,"scrollend",j,f),{x:h,y:u,isScrolling:p,arrivedState:d,directions:y,measure(){const D=H(t);M&&D&&U(D)}}}let ot=0;function pe(t,n={}){const o=e.ref(!1),{document:l=Ge,immediate:s=!0,manual:a=!1,id:i=`vueuse_styletag_${++ot}`}=n,f=e.ref(t);let r=()=>{};const M=()=>{if(!l)return;const c=l.getElementById(i)||l.createElement("style");c.isConnected||(c.id=i,n.media&&(c.media=n.media),l.head.appendChild(c)),!o.value&&(r=e.watch(f,m=>{c.textContent=m},{immediate:!0}),o.value=!0)},g=()=>{!l||!o.value||(r(),l.head.removeChild(l.getElementById(i)),o.value=!1)};return s&&!a&&he(M),a||ge(g),{id:i,css:f,unload:g,load:M,isLoaded:e.readonly(o)}}function Ce(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,a=e.ref(null),i=tt(a),f=e.ref(!0),r=te(U,100);let M;const g=e.shallowRef(t),c=e.ref(0),m=e.ref({start:0,end:10}),h=e.ref({start:0,end:s});let u=0;const N=e.ref([]),p=e.computed(()=>{let{sum:A,height:E}={sum:0,height:0};return g.value.map((B,Q)=>(typeof l=="number"?E=l:E=l(Q),A+=E,{height:E,sum:A}))}),d=e.computed(()=>T(m.value.start)),y=e.computed(()=>typeof l=="number"?p.value.length*l:p.value[p.value.length-1]?.sum||0),j=e.computed(()=>{const{start:A,end:E}=h.value;return N.value.slice(A,E)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(M)),e.watch(g,()=>{(i.width.value||i.height.value)&&x()},{deep:!0}),e.watch([i.width,i.height],([A,E])=>{(A||E)&&x()},{deep:!0}),e.watch(c,()=>{R(),r()});function R(){f.value=!1}function U(){f.value=!0,o?.()}function x(){cancelAnimationFrame(M),M=requestAnimationFrame(D)}function D(){if(a.value){c.value=a.value.scrollTop;let A=z(c.value);u=b(A);let E=Math.max(0,A-s),B=Math.min(A+u+s,g.value.length);m.value={start:E,end:B},N.value=g.value.slice(E,B).map((Q,k)=>({data:Q,index:k+E})),h.value.start=A-E,h.value.end=h.value.start+u}}function z(A){let E=0,B=p.value.length-1,Q=-1;for(;E<=B;){const k=Math.floor((E+B)/2);p.value[k].sum>=A?(Q=k,B=k-1):E=k+1}return Math.max(0,Q)}function b(A){let E=0,B=0;for(let Q=A;Q<p.value.length&&(E++,B+=p.value[Q].height,!(B>=i.height.value));Q++);return E}function T(A){if(typeof l=="number")return A*l;let E=p.value[A];return E?E.sum-E.height:0}function w(A){return p.value[A]||{sum:0,height:0}}function I(A){if(a.value){const E=w(A);a.value.scrollTop=E.sum-E.height,D()}}const _=e.computed(()=>({style:{width:"100%",height:`${y.value}px`,pointerEvents:f.value?void 0:"none"}})),O=e.computed(()=>({style:{transform:`translate3d(0, ${d.value}px, 0)`,"will-change":"transform"}})),C={overflowY:"auto"};return{list:N,visiableList:j,getItemHeightData:w,getoffsetTopIndex:z,totalHeight:y,clientHeight:i.height,scrollTo:I,scrollTop:c,isScrollEnd:f,containerProps:{ref:a,onScroll:()=>{x()},style:C},wrapperProps:_,innerProps:O}}const le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),G=Symbol(),fe=Symbol();function lt(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:s}={voidFn:N=>{},boolFn:N=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},a=e.inject(ie,s),i=e.inject(ae,n),f=e.inject(de,o),r=e.inject(se,t),M=e.inject(le,t),g=e.inject(re,t),c=e.inject(ce,t),m=e.inject(ue,t),h=e.inject(G,t),u=e.inject(fe,l);return{selected:a,isSelected:i,isAllSelected:f,toggle:r,toggleAll:M,select:g,selectAll:c,unselect:m,unselectAll:h,selectedCount:u}}function st(t,n,o={deep:!0}){const l=e.ref(!1),s=e.ref(new Set),a=e.ref(new Map);e.watch(t,d=>{a.value=d.reduce((y,j)=>(y.set(j[n],j),y),new Map)},{deep:o.deep,immediate:!0});const i=e.computed(()=>{let d=[];if(l.value!=null)l.value&&(d=Array.from(a.value.values()));else if(s.value.size){let y;s.value.forEach(j=>{y=a.value.get(j),y&&d.push(y)})}return d}),f=e.computed(()=>{let d=0;return l.value!=null?l.value&&(d=a.value.size):d=s.value.size,d}),r=e.computed(()=>{let d;if(l.value!=null)d=l.value;else{const y=s.value.size,j=a.value.size;d=y==j}return d});function M(){l.value=!0}function g(){l.value=!1}function c(d){u(()=>{d.forEach(y=>{s.value.add(y[n])})})}function m(d){u(()=>{d.forEach(y=>{s.value.delete(y[n])})})}function h(d){return l.value!=null?l.value:s.value.has(d[n])}function u(d){l.value!=null&&(l.value?s.value=new Set(Array.from(a.value.keys())):s.value=new Set),d(),s.value.size==0?l.value=!1:s.value.size==a.value.size?l.value=!0:l.value=null}function N(d){u(()=>{d.forEach(y=>{h(y)?s.value.delete(y[n]):s.value.add(y[n])})})}function p(){const{value:d}=r;d?g():M()}return e.provide(le,p),e.provide(se,N),e.provide(ae,h),e.provide(ie,i),e.provide(re,c),e.provide(ce,M),e.provide(ue,m),e.provide(de,r),e.provide(G,g),e.provide(G,g),e.provide(fe,f),{selected:i,select:c,selectAll:M,unselect:m,unselectAll:g,toggle:N,toggleAll:p,isSelected:h,isAllSelected:r,selectedCount:f}}function at(t){const n=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let u=[];return n.value!=null?n.value&&(u=t.value):o.value.size&&(u=Array.from(o.value.values())),u}),s=e.computed(()=>{let u=0;return n.value!=null?n.value&&(u=t.value.length):u=o.value.size,u}),a=e.computed(()=>{let u;if(n.value!=null)u=n.value;else{const N=o.value.size,p=t.value.length;u=N==p}return u});function i(){n.value=!0}function f(){n.value=!1}function r(u){c(()=>{u.forEach(N=>{o.value.add(N)})})}function M(u){c(()=>{u.forEach(N=>{o.value.delete(N)})})}function g(u){return n.value!=null?n.value:o.value.has(u)}function c(u){n.value!=null&&(n.value?o.value=new Set(Array.from(t.value)):o.value=new Set),u(),o.value.size==0?n.value=!1:o.value.size==t.value.length?n.value=!0:n.value=null}function m(u){c(()=>{u.forEach(N=>{g(N)?o.value.delete(N):o.value.add(N)})})}function h(){const{value:u}=a;u?f():i()}return e.provide(le,h),e.provide(se,m),e.provide(ae,g),e.provide(ie,l),e.provide(re,r),e.provide(ce,i),e.provide(ue,M),e.provide(de,a),e.provide(G,f),e.provide(G,f),e.provide(fe,s),{selected:l,select:r,selectAll:i,unselect:M,unselectAll:f,toggle:m,toggleAll:h,isSelected:g,isAllSelected:a,selectedCount:s}}function ye(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function De({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=ye("\u9009\u62E9"),unselect:a=ye("\u53D6\u6D88\u9009\u62E9"),unselectAll:i=ye("\u53D6\u6D88\u5168\u9009")}=l();let f={};const r=e.computed(()=>me(n==="colum"?q:_n,50)),M=new Set,g=e.ref(!0),c=e.ref(),m=e.ref(!1),h=e.ref({x:0,y:0}),u=e.ref({x:0,y:0,scrollTop:0}),N=new ResizeObserver(L=>p.value=L[0].target.getBoundingClientRect()),p=e.ref({}),d=e.ref({top:0,height:0,sync(L=!1){d.value.top=c.value?.scrollTop||0,L&&(d.value.height=c.value?.scrollHeight||0)}}),y=e.computed(()=>m.value?{left:Math.min(h.value.x,u.value.x)-p.value.left,top:Math.min(h.value.y,u.value.y)-p.value.top,width:Math.abs(h.value.x-u.value.x),height:Math.abs(h.value.y-u.value.y)}:{left:0,top:0,width:0,height:0}),{margin:j=50,startSpeed:R=30,maxSpeed:U=30}=o;let x;const D=j,z=R,b=U,T=L=>L**1;let w=0;function I(L){if(cancelAnimationFrame(x),w=_(L),w=Math.max(Math.min(w,b),-b),w!==0){const S=c.value;if(!S||!m.value)return;const P=d.value.height-p.value.height;let $=d.value.top+Number(w);$=Math.min(Math.max(0,$),P),S.scrollTop=$,C(),x=requestAnimationFrame(()=>I(L))}}function _(L){if(c.value){const P=p.value,$=P.bottom-L;if($<D)return z*T(1-$/D);const Z=L-P.top;if(Z<D)return-z*T(1-Z/D)}return 0}function O(L){const S={...y.value,right:0,bottom:0};return S.left+=p.value.left,S.top+=p.value.top-d.value.top,S.right=S.width+S.left,S.bottom=S.height+S.top,S.left<L.right&&S.right>L.left&&S.top<L.bottom&&S.bottom>L.top}function C(){d.value.sync();const{top:L,height:S}=d.value;u.value.y=Math.min(S+p.value.top,u.value.y+L-u.value.scrollTop),u.value.scrollTop=L}function A(L,S,P="dynamic-styles"){let $=document.getElementById(P);$||($=document.createElement("style"),$.id=P,document.head.appendChild($));const Z=$.sheet.cssRules,J=Z.length,On=`${L} { ${S} }`;for(let ve=0;ve<J;ve++){const $e=Z[ve];if($e.selectorText===L&&$e.style.cssText===S)return}$.sheet.insertRule(On,J)}function E(L,S){g.value=!0,m.value=!0,d.value.sync(!0);const P=S+d.value.top;h.value.x=L,h.value.y=P,u.value.x=L,u.value.y=P,c.value?.classList.add("disable-scroll-behavior"),M.clear()}function B(L,S,P){!m.value||(g.value&&n==="colum"&&!Y()&&(i(),g.value=!1),P?.(),I(S),u.value.x=Math.max(L,p.value.left),u.value.y=Math.min(S+d.value.top,d.value.height+p.value.top),u.value.scrollTop=d.value.top,r.value())}function Q(){m.value=!1,c.value?.classList.remove("disable-scroll-behavior")}function k(){!m.value||(w||C(),r.value())}function Y(){if(!m.value)return!1;const{width:L,height:S}=y.value;return!(Math.max(L,S)>5)}function F(){Y()&&i()}function q(){Y()||c.value?.querySelectorAll(`[${t}]`).forEach(L=>{f[`${t}`]=L.getAttribute(`${t}`),O(L.getBoundingClientRect())?s([f]):a([f])})}function _n(){const L=[];let S=null,P=0;c.value?.querySelectorAll(`[${t}]`).forEach(($,Z)=>{const J=$.getAttribute(`${t}`);L.push(J),O($.getBoundingClientRect())?(S===null&&(S=Z),S=Math.min(S,Z),P=Math.max(P,Z)):(f[`${t}`]=J,M.has(J)&&a([f]))});for(let $=S;$<P+1;$++)f[`${t}`]=L[$],s([f]),M.add(L[$])}function bn(L){return!L?.value||(c.value=L.value,!c?.value)?!1:(N.observe(c.value),A(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:bn,dragStart:E,dragMove:B,dragEnd:Q,onScroll:k,isSingleClick:Y,cancelSelectAllBySingleClick:F,selectFn:r,selectRange:y,isPressing:m,containerEl:c,observer:N}}function it(t){const n=De(t),{observer:o,selectRange:l}=n,{onScroll:s,dragStart:a,dragMove:i,dragEnd:f,cancelSelectAllBySingleClick:r}=n,M=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:g}=pe(`.drag-select-box {
|
|
2
2
|
position: absolute;
|
|
3
3
|
z-index: 99999;
|
|
4
4
|
background-color: rgb(191 219 254);
|
|
5
5
|
opacity: 0.5;
|
|
6
|
-
}`,{id:"styletag_lzc_dragselect",manual:!0}),c=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:
|
|
6
|
+
}`,{id:"styletag_lzc_dragselect",manual:!0}),c=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:M.value})}});function m(d){d.button===0&&a(d.x,d.y)}function h(d){i(d.x,d.y)}function u(d){d.composedPath().some(j=>j?.getAttribute?.(t.attribute))||r(),f()}function N(d){try{if(!n.init(d))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!n.containerEl?.value)return!1;e.render(e.h(c),n.containerEl.value),g(),n.containerEl.value?.addEventListener("scroll",s),n.containerEl.value?.addEventListener("mousedown",m),window.addEventListener("mousemove",h),window.addEventListener("mouseup",u)}catch(y){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",y)}}function p(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",s),n.containerEl.value?.removeEventListener("mousedown",m),window.removeEventListener("mousemove",h),window.removeEventListener("mouseup",u)}return{init:N,unMount:p}}function rt(t,n,o=600){const l=De({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:a,dragStart:i,dragMove:f,dragEnd:r}=l;let M;function g(){clearTimeout(M)}function c(p){g(),p.composedPath().some(y=>!!y?.getAttribute?.(t.attribute))&&(M=setTimeout(()=>{const{clientX:y,clientY:j}=p.targetTouches[0];i(y,j),n?.(),f(y,j,()=>p.preventDefault()),p.preventDefault()},o))}function m(p){g();const{clientX:d,clientY:y}=p.targetTouches[0];f(d,y,()=>p.preventDefault())}function h(){g(),r()}function u(p){try{if(!l.init(p))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!l.containerEl?.value)return!1;l.containerEl.value?.addEventListener("scroll",a),l.containerEl.value?.addEventListener("touchstart",c),l.containerEl.value?.addEventListener("touchmove",m),window.addEventListener("touchcancel",h),window.addEventListener("touchend",h)}catch(d){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",d)}}function N(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",a),l.containerEl.value?.removeEventListener("touchstart",c),l.containerEl.value?.removeEventListener("touchmove",m),window.removeEventListener("touchcancel",h),window.removeEventListener("touchEnd",h)}return{init:u,unMount:N}}const Se=Symbol(),ct={key:0,class:"lzc-modal"},ut=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},dialogClass:{default:""}},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Se,()=>n("update:visiable",!1)),(s,a)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",ct,[e.createElementVNode("div",{onMousedown:a[0]||(a[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)])),[[e.unref(Ie),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),kn="",V=(t,n)=>{const o=t.__vccOpts||t;for(const[l,s]of n)o[l]=s;return o},dt=V(ut,[["__scopeId","data-v-14584295"]]);function ft(t){function n(o,l){const s=document.createElement("div"),a={setup(){return()=>e.h(dt,{visiable:!0,"onUpdate:visiable":()=>{s?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(s),e.render(e.h(a),s),{close:()=>s?.remove()}}return{create:n}}function Te({component:t,componentProps:n,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,a=`${o}ms`;return pe(`@keyframes lzcDelayLoad {
|
|
7
7
|
to {
|
|
8
8
|
opacity: 1;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
.${s} {
|
|
12
12
|
opacity: 0;
|
|
13
|
-
animation: lzcDelayLoad 0s ${
|
|
14
|
-
}`),{LoadingComp:e.defineComponent({setup(){const d=at();return e.onMounted(()=>{d.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function Tt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Ae({component:t,componentProps:n,delay:o}),s=e.ref(!1);function i(){s.value=!0}function r(){s.value=!1}return{LoadingComp:l,loading:s,load:i,unload:r}}const Nt=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],wt=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({"4e4a9ce4":t.width+"px",e56fe5c2:t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),Nt,16))}}),Qn="",Ye=Z(wt,[["__scopeId","data-v-92a1804d"]]),Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",vt={class:"loading-wrap"},It=["src"],zt=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(t){const n=t;e.useCssVars(l=>({b1cf73a8:t.delay}));const o=e.computed(()=>{const l={};return n.size==="mini"?(l.width="22px",l.height="22px"):n.size==="large"&&(l.width="28px",l.height="28px"),l});return(l,s)=>(e.openBlock(),e.createElementBlock("div",vt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(Et),style:e.normalizeStyle(e.unref(o))},null,12,It)]))}}),Yn="",At=Z(zt,[["__scopeId","data-v-3c54972f"]]);async function je(t){return new Promise(n=>setTimeout(()=>n(),t))}const jt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MTQsMC4xMTc3NTIwMTEgQzExLjU4MjE0MjksLTAuMDEwNzA0NzIzNyAxMS43NzUsLTAuMDEwNzA0NzIzNyAxMS45MDM1NzE0LDAuMTE3NzUyMDExIEMxMi4wMzIxNDI5LDAuMjQ2MjA4NzQ2IDEyLjAzMjE0MjksMC40Mzg4OTM4NDkgMTEuOTAzNTcxNCwwLjU2NzM1MDU4NCBMNi40Niw2LjAwNSBMMTEuOTAzNTcxNCwxMS40NDMzNTQxIEMxMi4wMzIxNDI5LDExLjU3MTgxMDkgMTIuMDMyMTQyOSwxMS43NjQ0OTYgMTEuOTA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YuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",Ct=["onClick"],St=["onClick"],xt=["src"],_t=["src"],Ot=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:n}){const o=t,l="lzc-loading-toast",s=e.computed(()=>{let a={};return o.captureEventP&&(a.pointerEvents="none"),a}),i=e.computed(()=>{let a={padding:"12px"};return(o.icon||o.showIcon)&&(a.padding="20px"),o.width&&(a.width=o.width),o.maxWidth&&(a.maxWidth=o.maxWidth),o.overlayContentStyle&&(a={...a,...o.overlayContentStyle}),a}),r=e.computed(()=>{let a={};return o.showClose&&!o.icon&&(a.paddingRight="16px"),a});function d(){o.closeOnClickOverlay&&n("close")}function g(){o.closeOnClick&&n("close")}return(a,f)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${t.className}`),onClick:e.withModifiers(d,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(g,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(i))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:f[0]||(f[0]=e.withModifiers(c=>n("close"),["stop"])),src:e.unref(jt),class:e.normalizeClass(`${l}-close`)},null,10,xt)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(Lt),class:e.normalizeClass(`${l}-icon`)},null,10,_t)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(r))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,St)],10,Ct),[[e.vShow,t.visible]])],4)]),_:1}))}}),Un="",Rn="",bt=Z(Ot,[["__scopeId","data-v-0947d1e3"]]);class Ue{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(n){this.options={...n,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=bt}async show(){const n=this.options,l={...n,onClose:()=>{this.close(),n?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await je(n.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(n=>{setTimeout(()=>{if(!this.el){n();return}document.body.removeChild(this.el),n()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function kt(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,s=n?.loading!==!1,i=n?.autoClose!==!1,r=n?.delay!=null?n.delay:300,d={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,i,r,d);const g=e.ref(!1);let a=null;const f=new Ue(d);async function c(...M){if(o&&console.log(`useDelayAsync - handler - processing: ${g.value}`),!g.value){g.value=!0,a=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,g.value),s&&(!g.value||f.show())},r);try{o&&console.time("useDelayAsync - handler-execute-time");const u=await t(...M);o&&console.log("useDelayAsync - execute res: ",u),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await m(i),await n?.onSuccess?.(u)}catch(u){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(u),await m(i),await n?.onError?.(u)}}}async function m(M=!0){o&&console.log("useDelayAsync - close - closeLoading: ",M),g.value=!1,a&&clearTimeout(a),a=null,M&&await f.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),m()}),{processing:g,handler:c,close:m}}function Bt(t,n){return t>n?"horizontal":n>t?"vertical":""}function Qt(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),s=e.ref(0),i=e.ref(0),r=e.ref(""),d=()=>r.value==="vertical",g=()=>r.value==="horizontal",a=()=>{o.value=0,l.value=0,s.value=0,i.value=0,r.value=""};return{move:m=>{const M=m.touches[0];o.value=(M.clientX<0?0:M.clientX)-t.value,l.value=M.clientY-n.value,s.value=Math.abs(o.value),i.value=Math.abs(l.value);const u=10;(!r.value||s.value<u&&i.value<u)&&(r.value=Bt(s.value,i.value))},start:m=>{a(),t.value=m.touches[0].clientX,n.value=m.touches[0].clientY},reset:a,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:i,direction:r,isVertical:d,isHorizontal:g}}const Re=250,Le=5,$e=500;function Yt(t,n,o,l){var s=Math.min(o/t,l/n),i=t*s,r=n*s;return{width:ee(i),height:ee(r)}}function Ut(t){return t<3?"444ms":t<6?"555ms":"666ms"}function pe(t,n,o){return Math.min(Math.max(t,n),o)}function ee(t,n=2){return parseFloat(t.toFixed(n))}function ye(t,n,o){return t=ee(t),n=ee(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function Pe(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Fe(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Rt(t){const n=e.ref(1),o=e.ref(6),l=e.ref(!1),s=e.ref(!0),i=e.ref(),r=e.ref(),d=e.ref({width:0,height:0}),g=e.ref({width:0,height:0}),a=e.reactive({scale:1,offsetX:0,offsetY:0,touched:!1,zooming:!1,preview:!0}),f=e.ref({}),c=Qt(),m=ct(r);let M,u,E,D,h,w,L,k;e.watch([i,r],([T,v])=>{U(T,v)},{immediate:!0});async function U(T,v){await x(T,v),T&&y()}async function x(T,v){if(T=T??i.value,v=v??r.value,!v)return;let{clientWidth:p=0,clientHeight:N=0}=T||{};const{clientWidth:C,clientHeight:z}=v;if(T instanceof HTMLImageElement){const O=Yt(T.naturalWidth||C,T.naturalHeight||z,C,z);p=O.width,N=O.height}(p===0||N===0)&&(p=d.value.width||C,N=d.value.height||z),d.value={width:Math.min(p,C),height:Math.min(N,z)},g.value={width:C,height:z}}function y(){const T=P();o.value=Math.max(o.value,T*2)}function A(T,v){const{width:p,height:N}=g.value,C=Math.max(0,(N-v)*.5),z=Math.max(0,(p-T)*.5);return{top:C,left:z}}async function _(T){const{touches:v}=T;M=v.length,!(M===2&&l.value)&&(a.zooming=M===2,D=Date.now(),c.start(T),Y("start",T),a.zooming&&(T.preventDefault(),u=a.scale,E=Pe(v),await W(a.scale),k||(k=Fe(v))),a.touched||(a.touched=!0))}async function V(T){const{touches:v}=T;if(M=v.length,c.move(T),Y("move",T),a.zooming&&M==2){T.preventDefault(),w=!1;const p=Pe(v),N=u*p/E;k&&B(N,k)}}async function Q(T){T.touches.length||(Y("end",T),ae(),a.scale>=n.value&&a.scale<=o.value?a.zooming&&await K(a.scale):(a.zooming=!1,a.scale<n.value?await B(n.value,void 0,!0):a.scale>o.value&&await B(o.value,k,!0)),c.reset(),R())}function R(){k=void 0,a.touched=!1}async function K(T){if(a.preview)return;a.preview=!0;const{value:v}=f,{scaleW:p,scaleH:N}=S(T),{left:C,top:z}=A(p,N);T===1&&(v.maxHeight="100%"),v.width=`${p}px`,v.height=`${N}px`,v.transitionDuration="0s",v.transform=ye(C,z,1),f.value=v,await e.nextTick();const O=r.value;if(!O)return;const{offsetX:H,offsetY:F}=a;H<0&&(O.scrollLeft=Math.abs(H)),F<0&&(O.scrollTop=Math.abs(F))}async function W(T){if(!a.preview)return;a.preview=!1;const v=r.value;if(!v)return;const{scrollTop:p,scrollLeft:N}=v,{width:C,height:z}=d.value,{scaleW:O,scaleH:H}=S(T),{top:F,left:q}=A(O,H),te=q!=0?q:N*-1,oe=F!=0?F:p*-1;v.scrollTop=0,v.scrollLeft=0;const{value:G}=f;G.width=`${C}px`,G.height=`${z}px`,G.maxHeight="none",G.transitionDuration="0s",G.transform=ye(te,oe,T),f.value=G,await e.nextTick(),a.offsetX=te,a.offsetY=oe,await je(20)}function Y(T,v){m.measure();let{clientX:p,clientY:N}=v.touches.length!=0?v.touches[0]:v.changedTouches[0];const{top:C,left:z,right:O,bottom:H}=m.arrivedState;if(T=="start")L=C||z||O||H;else if(M==2)L=!1;else if(L){if(c.direction.value=="vertical")if(a.scale!=1)L=!1;else{const F=c.startY.value<N;L=C&&F||H&&!F}else if(c.direction.value=="horizontal"){const F=c.startX.value<p;L=z&&F||O&&!F}}L&&w&&(L=!1,v.preventDefault()),T=="end"&&!L&&(p=c.startX.value,N=c.startY.value,L=!0),(T!="move"||L)&&t.onSwipeEdge?.(T,c.direction.value,p,N)}function S(T){const{width:v,height:p}=d.value;return{scaleW:ee(T*v),scaleH:ee(T*p)}}function j(){w||(w=!0,r.value?.addEventListener("transitionend",$))}async function B(T,v,p){if(T=ee(T),T=pe(T,n.value-n.value*.5,o.value+o.value*.5),T!==a.scale){a.preview&&await W(a.scale),v||(v={x:c.startX.value,y:c.startY.value});const{value:N}=f,{width:C,height:z}=d.value,{scaleW:O,scaleH:H}=S(T),{top:F,left:q}=A(O,H),te=T/a.scale,oe={top:Math.abs(z*T-g.value.height)*-1,bottom:F,left:Math.abs(C*T-g.value.width)*-1,right:q};let G=q!=0?q:(a.offsetX-v.x)*te+v.x,De=F!=0?F:(a.offsetY-v.y)*te+v.y;G=ee(pe(G,oe.left,oe.right)),De=ee(pe(De,oe.top,oe.bottom)),N.width=`${C}px`,N.height=`${z}px`,N.transitionDuration=p?Ut(T):"0s",N.transform=ye(G,De,T),a.offsetX=G,a.offsetY=De,a.scale=T,f.value=N,await e.nextTick(),p&&j(),t.onScale?.()}}function P(){const{width:T,height:v}=d.value,{width:p,height:N}=g.value,C=2.5;let z;return v==N?(z=p/T,z-1<.1&&(z=C)):z=Math.max(C,p/T,N/v),z}function b(){const T=a.scale>1?1:P();B(T,T!=1?{x:c.startX.value,y:c.startY.value}:void 0,!0)}async function $(){r.value?.removeEventListener("transitionend",$),w=!1,a.preview||await K(a.scale)}async function ae(T){if(M>1)return;const{offsetX:v,offsetY:p}=c,N=Date.now()-D;v.value<Le&&p.value<Le&&(N<Re?s.value?h?(clearTimeout(h),h=null,b()):h=setTimeout(async()=>{t.onTap?.(),h=null},Re):t.onTap?.():N>$e&&t.onLongPress?.())}function Se(){B(1,void 0,!0)}return{imageRef:i,containerRef:r,state:a,style:f,resetScale:Se,onTouchStart:_,onTouchMove:V,onTouchEnd:Q}}function $t(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,i){t.startX=s,t.startY=i,t.scale=1}function o(s,i){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=i-t.startY,t.scale=1-Math.abs(t.offsetY/i*.4)}function l(){!t.dragging||(Math.abs(t.offsetY)>window.innerHeight*.14?t.scale=.3:t.scale=1,t.dragging=!1,t.offsetX=0,t.offsetY=0)}return{state:t,dragStart:n,dragMove:o,dragEnd:l}}const Pt=["onClick"],Ft=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),s=e.ref(),i=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),r=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${i.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),d=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function g(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(a,f)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(g,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(r),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(d))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,Pt))}}),$n="",Ht=Z(Ft,[["__scopeId","data-v-25d39b90"]]),He={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Vt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(Ht),{...He,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||He.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Wt=["xlink:href","fill","color"],se=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));function s(i){const{style:r}=i;return typeof r=="object"?r:{}}return(i,r)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(i.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,Wt)],4))}});function Xt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:r="classList"}=t,d=e.ref(!0),g=Ne(V,100);let a,f="";const c=e.ref(0),m=e.ref(0),M=e.ref(0),u=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),E=e.ref({clientHeight:0}),D=e.computed(()=>!!m.value),h=e.computed(()=>u.value.scrollHeight>u.value.clientHeight),w=e.computed(()=>l?u.value.clientHeight-U.value:u.value.clientHeight-E.value.clientHeight),L=e.computed(()=>u.value.scrollHeight-u.value.clientHeight),k=e.computed(()=>Math.max(u.value.clientHeight/u.value.scrollHeight,.05)),U=e.computed(()=>k.value>i?0:k.value*u.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${M.value}px,0)`,height:l?`${U.value}px`:void 0}));function y(b){_(),m.value=b.clientY-o.value.getBoundingClientRect().top||1,f=getComputedStyle(n.value).scrollBehavior,f==="smooth"&&(n.value.style.scrollBehavior="unset")}function A(){n.value.style.scrollBehavior=f,m.value=0,g()}function _(){d.value=!1}function V(){D.value||(d.value=!0)}function Q(b){if(!D.value)return;let $=b.clientY-u.value.top-m.value;$<0?M.value=0:$>=w.value?M.value=w.value:M.value=$,n.value.scrollTo({top:M.value/w.value*L.value})}function R(){D.value||K()}function K(){cancelAnimationFrame(a),a=requestAnimationFrame(W)}function W(){n.value&&(c.value=s.scrollTop?.value??n.value.scrollTop,M.value=c.value/L.value*w.value)}function Y(b){let $="addEventListener";b==="add"?$="addEventListener":$="removeEventListener",o.value?.[$]("pointerdown",y,{passive:!0}),window[$]("pointermove",Q,{passive:!0}),window[$]("pointerup",A,{passive:!0})}const S=new MutationObserver(b=>{(r=="classList"||b.map(ae=>ae.oldValue).join().includes("height"))&&j()});function j(){u.value.top=n.value?.getBoundingClientRect().top??0,u.value.scrollHeight=n.value?.scrollHeight??0,u.value.clientHeight=n.value?.clientHeight??0}function B(){_(),setTimeout(()=>{E.value.clientHeight=o.value?.clientHeight??0,V()},150)}function P(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",R,{passive:!0}),Y("add");const b={};r==="classList"?Object.assign(b,{subtree:!0,childList:!0}):Object.assign(b,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),S.observe(n.value,b),setTimeout(()=>{j()},100),B()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(c,()=>{_(),g()}),{isScrollEnd:d,isDragSlider:D,offsetTop:M,scrollTop:c,scrollable:h,sliderPos:x,init:P,modifySliderEventListener:Y}}const Zt=(t=>(e.pushScopeId("data-v-405c22cf"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Kt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,s=e.ref(null),i=e.computed(()=>o.containerEl),r=Xt({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:d,isScrollEnd:g,sliderPos:a}=r,f=e.ref(!1),c=o.autoHide?e.computed(()=>f.value||!g.value):e.computed(()=>d.value),{load:m}=ve(`.hide-scrollbar {
|
|
13
|
+
animation: lzcDelayLoad 0s ${a} forwards;
|
|
14
|
+
}`),{LoadingComp:e.defineComponent({setup(){const f=et();return e.onMounted(()=>{f.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function Mt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Te({component:t,componentProps:n,delay:o}),s=e.ref(!1);function a(){s.value=!0}function i(){s.value=!1}return{LoadingComp:l,loading:s,load:a,unload:i}}const gt=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],mt=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(t){return e.useCssVars(n=>({"4e4a9ce4":t.width+"px",e56fe5c2:t.height+"px"})),(n,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(n.$attrs)),gt,16))}}),Yn="",xe=V(mt,[["__scopeId","data-v-92a1804d"]]),ht="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP+7a4TDcgW4Bn7wPax05VpGnQ6u4NPgnlq0F8Ojq6n2puxehXkFydeAsDWgYfLFwcYtLztQjieLv2y6hQc2DJx5qSYAUZJV+rr9hLCAAcGoNu6oSSZrI5K7zaIICAJQ2iwZGuGHuwjiaIgFGV2sHmQpIJr8eiM0BB6Byr6i7OBAmd0yiSRJXWQeQFDA5g6YpDK+SxB2As7z1SvPA0rKKJElQ/qA3MeNyp4Raxuk1NFGBHSZwcUFhqqlgKZgAjoj8bFPBlhephQ+kDdM4vKkWmAdXE0DRjL4YCfiiFmk1MGPemEFxJIdyg+QO3zQ/+q8FTa1VCER2tDUM7kE2v1BcEUyBoItLpavRUtiDNNSeccFNBARqIi3dDXfbIFJkyBD9tJQmMq1lbBvelkawrthDh8Hd9XvJT+Qi1NUSa9+3oRHw8T2+0iNNImbtqPSl6VkToVAlP9BQIV6hubuZyVDfnAA4LSoaNaqv/3HjsvPdLb3IkDFjhk8BAQbOZpNGpRCUp8dyy8GOtspBczgNjtO938wP08IP1BiyQJWVc88uB1x5F+sYEd0Y/f2FKb1tPJ4nhVFMuO34niW38mu639ycRuN3/UMLYCAbktSFKkrVvcf2LQV74lW8jChRMzOfxpv/2uhHHrYDokYVYab4acWhjZU7yLWIt3w/1Uklo+D1nV/+xyqc3Bt3O11JCMmb9nn/WH3s8C68Id0QV9CV9I/6P1jUg5x4Tgar6hLoQgX9nH69/dRiy+Eh3fhofMl7QSoE4qT6Z/0Hb2tuTjyFJ10gLlTSleKzPMXx7FL75OUSUCjm11TW6yMYRBfpAURwUZroxzs+rOuaRnb4C1Ks/ZoFCNUFAZTg4oFiQeiJi4gJlOJKasnf6T38v3ZspAsv2hYq6YFCqZXFEsyDhAguVK/FiuPxvZ0X79DnDW/nM94DodRu/G+wEOriAQIlqfjNP+n7dokGcnirPma93jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",pt={class:"loading-wrap"},yt=["src"],Dt=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(t){const n=t;e.useCssVars(l=>({b1cf73a8:t.delay}));const o=e.computed(()=>{const l={};return n.size==="mini"?(l.width="22px",l.height="22px"):n.size==="large"&&(l.width="28px",l.height="28px"),l});return(l,s)=>(e.openBlock(),e.createElementBlock("div",pt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(ht),style:e.normalizeStyle(e.unref(o))},null,12,yt)]))}}),Un="",Tt=V(Dt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A3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",Et=["onClick"],vt=["onClick"],It=["src"],zt=["src"],At=e.defineComponent({__name:"index",props:{visible:null,message:{default:""},duration:{default:2e3},width:{default:void 0},maxWidth:{default:void 0},showIcon:{type:Boolean,default:!1},icon:{default:void 0},showClose:{type:Boolean,default:!1},closeOnClick:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!1},className:{default:""},overlayContentStyle:{default:void 0},captureEventP:{type:Boolean,default:!0}},emits:["close"],setup(t,{emit:n}){const o=t,l="lzc-loading-toast",s=e.computed(()=>{let M={};return o.captureEventP&&(M.pointerEvents="none"),M}),a=e.computed(()=>{let M={padding:"12px"};return(o.icon||o.showIcon)&&(M.padding="20px"),o.width&&(M.width=o.width),o.maxWidth&&(M.maxWidth=o.maxWidth),o.overlayContentStyle&&(M={...M,...o.overlayContentStyle}),M}),i=e.computed(()=>{let M={};return o.showClose&&!o.icon&&(M.paddingRight="16px"),M});function f(){o.closeOnClickOverlay&&n("close")}function r(){o.closeOnClick&&n("close")}return(M,g)=>(e.openBlock(),e.createBlock(e.Transition,{"enter-active-class":"lzc-animate-fade-in lzc-animate-duration-300","leave-active-class":"lzc-animate-fade-out lzc-animate-duration-300"},{default:e.withCtx(()=>[e.createElementVNode("div",{id:l,style:e.normalizeStyle(e.unref(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${t.className}`),onClick:e.withModifiers(f,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(r,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(a))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:g[0]||(g[0]=e.withModifiers(c=>n("close"),["stop"])),src:e.unref(Nt),class:e.normalizeClass(`${l}-close`)},null,10,It)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(wt),class:e.normalizeClass(`${l}-icon`)},null,10,zt)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(i))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,vt)],10,Et),[[e.vShow,t.visible]])],4)]),_:1}))}}),Rn="",$n="",Lt=V(At,[["__scopeId","data-v-0947d1e3"]]);class _e{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(n){this.options={...n,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=Lt}async show(){const n=this.options,l={...n,onClose:()=>{this.close(),n?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await Ne(n.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(n=>{setTimeout(()=>{if(!this.el){n();return}document.body.removeChild(this.el),n()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function jt(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,s=n?.loading!==!1,a=n?.autoClose!==!1,i=n?.delay!=null?n.delay:300,f={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,a,i,f);const r=e.ref(!1);let M=null;const g=new _e(f);async function c(...h){if(o&&console.log(`useDelayAsync - handler - processing: ${r.value}`),!r.value){r.value=!0,M=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,r.value),s&&(!r.value||g.show())},i);try{o&&console.time("useDelayAsync - handler-execute-time");const u=await t(...h);o&&console.log("useDelayAsync - execute res: ",u),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await m(a),await n?.onSuccess?.(u)}catch(u){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(u),await m(a),await n?.onError?.(u)}}}async function m(h=!0){o&&console.log("useDelayAsync - close - closeLoading: ",h),r.value=!1,M&&clearTimeout(M),M=null,h&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),m()}),{processing:r,handler:c,close:m}}function Ct(t,n){return t>n?"horizontal":n>t?"vertical":""}function St(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),s=e.ref(0),a=e.ref(0),i=e.ref(""),f=()=>i.value==="vertical",r=()=>i.value==="horizontal",M=()=>{o.value=0,l.value=0,s.value=0,a.value=0,i.value=""};function g(m,h){M(),t.value=m,n.value=h}function c(m,h){o.value=(m<0?0:m)-t.value,l.value=h-n.value,s.value=Math.abs(o.value),a.value=Math.abs(l.value);const u=10;(!i.value||s.value<u&&a.value<u)&&(i.value=Ct(s.value,a.value))}return{move:c,start:g,reset:M,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:a,direction:i,isVertical:f,isHorizontal:r}}const be=250,Oe=5,xt=500;function _t(t){const{isDouble:n=!0}=t;let o,l;function s(){o=Date.now()}async function a(i,f){const r=Date.now()-o;i<Oe&&f<Oe&&(r<be?n?l?(clearTimeout(l),l=null,t.onDoubleTap?.()):l=setTimeout(async()=>{t.onTap?.(),l=null},be):t.onTap?.():r>xt&&t.onLongPress?.())}return{startTap:s,checkTap:a}}function bt(t,n){const o=e.ref(!1);function l(){o.value||(o.value=!0,e.unref(t)?.addEventListener("transitionend",s))}function s(){e.unref(t)?.removeEventListener("transitionend",s),o.value=!1,n.onComplate?.()}return{transitioning:o,startTransition:l}}function Ot(t,n,o,l){var s=Math.min(o/t,l/n),a=t*s,i=n*s;return{width:X(a),height:X(i)}}function kt(t){return t<3?"444ms":t<6?"555ms":"666ms"}function we(t,n,o){return Math.min(Math.max(t,n),o)}function X(t,n=2){return parseFloat(t.toFixed(n))}function Me(t,n,o){return t=X(t),n=X(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function ke(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Bt(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Be(t){const{disableZoom:n}=t,o=e.ref(1),l=e.ref(9),s=e.ref(),a=e.ref(),i=e.ref({width:0,height:0}),f=e.ref({width:0,height:0}),r=e.reactive({level:1,offsetX:0,offsetY:0,zooming:!1,preview:!0,lastCenter:{x:0,y:0}}),M=e.ref({}),g=St(),c=bt(a,{onComplate(){r.preview||p()}}),m=_t({onTap(){t.onTap?.()},onDoubleTap(){t.onDoubleTap?.()},onLongPress(){t.onLongPress?.()}});Le(a,T=>h(T)),e.watch([s,a],([T,w])=>{u(T,w)},{immediate:!0});async function h(T){const[w]=T;w.contentRect.width==f.value.width&&w.contentRect.height==f.value.height||(await u(s.value),await p(r.level,!0))}async function u(T,w){await z(T,w),T&&b()}async function N(T){if(!r.preview)return;r.preview=!1,T=T??r.level;const w=a.value;if(!w)return;const{scrollTop:I,scrollLeft:_}=w,{width:O,height:C}=i.value,{scaleW:A,scaleH:E}=x(T),{top:B,left:Q}=D(A,E),k=Q!=0?Q:_*-1,Y=B!=0?B:I*-1;w.scrollTop=0,w.scrollLeft=0;const{value:F}=M;F.width=`${O}px`,F.height=`${C}px`,F.maxHeight="none",F.transitionDuration="0s",F.transform=Me(k,Y,T),M.value=F,await e.nextTick(),r.offsetX=k,r.offsetY=Y,await Ne(20)}async function p(T,w){if(!w&&r.preview)return;r.preview=!0,T=T??r.level;const{value:I}=M,{scaleW:_,scaleH:O}=x(T),{left:C,top:A}=D(_,O);T===1&&(I.maxHeight="100%"),I.width=`${_}px`,I.height=`${O}px`,I.transitionDuration="0s",I.transform=Me(C,A,1),M.value=I,await e.nextTick();const E=a.value;if(!E)return;const{offsetX:B,offsetY:Q}=r;B<0&&(E.scrollLeft=Math.abs(B)),Q<0&&(E.scrollTop=Math.abs(Q))}async function d(T,w,I){if(n||(T=X(T),T=we(T,o.value-o.value*.5,l.value+l.value*.5),T==r.level))return;r.preview&&await N(),w||(w={x:g.startX.value,y:g.startY.value});const{value:_}=M,{width:O,height:C}=i.value,{scaleW:A,scaleH:E}=x(T),{top:B,left:Q}=D(A,E),k=T/r.level,Y={left:Math.abs(O*T-f.value.width)*-1,top:Math.abs(C*T-f.value.height)*-1,right:Q,bottom:B};let F=Q!=0?Q:(r.offsetX-w.x)*k+w.x,q=B!=0?B:(r.offsetY-w.y)*k+w.y;F=X(we(F,Y.left,Y.right)),q=X(we(q,Y.top,Y.bottom)),_.width=`${O}px`,_.height=`${C}px`,_.transitionDuration=I?kt(T):"0s",_.transform=Me(F,q,T),r.offsetX=F,r.offsetY=q,r.level=T,M.value=_,await e.nextTick(),I&&c.startTransition(),t.onScale?.(T)}function y(){const T=r.level>1?1:U();d(T,void 0,!0)}function j(T,w){if(!r.preview)return;const I=a.value;!I||I.scrollTo({left:r.offsetX-T,top:r.offsetY-w})}async function R(){r.level>=o.value&&r.level<=l.value?r.zooming&&await p():r.level<o.value?await d(o.value,void 0,!0):r.level>l.value&&await d(l.value,r.lastCenter,!0),r.zooming=!1}function U(){const{width:T,height:w}=i.value,{width:I,height:_}=f.value,O=2.5;let C;return w==_?(C=I/T,C-1<.1&&(C=O)):C=Math.max(O,I/T,_/w),C}function x(T){const{width:w,height:I}=i.value;return{scaleW:X(T*w),scaleH:X(T*I)}}function D(T,w){const{width:I,height:_}=f.value,O=Math.max(0,(_-w)*.5),C=Math.max(0,(I-T)*.5);return{top:O,left:C}}async function z(T,w){if(T=T??s.value,w=w??a.value,!w)return;let I,{clientWidth:_=0,clientHeight:O=0}=T||{};const{clientWidth:C,clientHeight:A}=w;if(T instanceof HTMLImageElement?I={width:T.naturalWidth,height:T.naturalHeight}:T instanceof HTMLVideoElement&&(I={width:T.videoWidth,height:T.videoHeight}),I){const E=Ot(I.width,I.height,C,A);_=E.width,O=E.height}(_===0||O===0)&&(_=i.value.width||C,O=i.value.height||A),i.value={width:Math.min(_,C),height:Math.min(O,A)},f.value={width:C,height:A}}function b(){const T=U();l.value=Math.max(l.value,T*2)}return{touch:g,state:r,style:M,gesture:m,transition:c,imageRef:s,containerRef:a,switchToZoom:N,switchToPreview:p,panTo:j,zoomTo:d,zoomFinished:R,toggleZoom:y}}function Qt(t){const n=Be({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:a}=n;let i=!1,f=null;const r={top:0,left:0},M=te(u,150);oe("keyup",p),oe("keydown",N);function g(d){const y=n.containerRef.value;if(!y)return;const{left:j,top:R}=y.getBoundingClientRect();s.startTap(),l.start(d.clientX-j,d.clientY-R),a.transitioning.value||(i=!0,r.left=j,r.top=R,o.offsetX=y.scrollLeft,o.offsetY=y.scrollTop),window.addEventListener("pointermove",c),window.addEventListener("pointerup",m)}function c(d){!i||(l.move(d.clientX,d.clientY),o.level!==1&&n.panTo(l.deltaX.value-r.left,l.deltaY.value-r.top))}function m(d){s.checkTap(l.offsetX.value,l.offsetY.value),l.reset(),i=!1,window.removeEventListener("pointermove",c),window.removeEventListener("pointerup",m)}function h(d){if(!d.ctrlKey)return;o.zooming||(o.zooming=!0,f=="Control"&&window.addEventListener("keyup",u)),d.preventDefault();let y=-d.deltaY;d.deltaMode===1?y*=.05:y*=d.deltaMode?1:.002,f!="Control"&&(y*=10),y=2**y;const j=o.level*y;o.lastCenter={x:d.offsetX,y:d.offsetY},n.zoomTo(j,o.lastCenter),f!="Control"&&M()}function u(){n.zoomFinished(),window.removeEventListener("keyup",u)}function N(d){f=d.key}function p(){f=null}return{core:n,onPointerDown:g,onWheel:h}}function Yt(t){const n=Be({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:a,containerRef:i}=n,f=nt(i);let r,M,g,c;async function m(p){const{touches:d}=p;r=d.length,o.zooming=r===2,s.startTap(),l.start(d[0].clientX,d[0].clientY),N("start",p),o.zooming&&(p.preventDefault(),M=o.level,g=ke(d),await n.switchToZoom(),o.lastCenter=Bt(d))}async function h(p){const{touches:d}=p;if(r=d.length,l.move(d[0].clientX,d[0].clientY),N("move",p),o.zooming&&r==2){p.preventDefault();const y=ke(d),j=M*y/g;n.zoomTo(j,o.lastCenter)}}async function u(p){p.touches.length||(N("end",p),s.checkTap(l.offsetX.value,l.offsetY.value),n.zoomFinished(),l.reset())}function N(p,d){f.measure();let{clientX:y,clientY:j}=d.touches.length!=0?d.touches[0]:d.changedTouches[0];const{top:R,left:U,right:x,bottom:D}=f.arrivedState;if(p=="start")c=R||U||x||D;else if(r==2)c=!1;else if(c){if(l.direction.value=="vertical")if(o.level!=1)c=!1;else{const z=l.startY.value<j;c=R&&z||D&&!z}else if(l.direction.value=="horizontal"){const z=l.startX.value<y;c=U&&z||x&&!z}}c&&a.transitioning.value&&(c=!1,d.preventDefault()),p=="end"&&!c&&(y=l.startX.value,j=l.startY.value,c=!0),(p!="move"||c)&&t.onSwipeEdge?.(p,l.direction.value,y,j)}return{core:n,onTouchStart:m,onTouchMove:h,onTouchEnd:u}}function Ut(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(s,a){t.startX=s,t.startY=a,t.scale=1}function o(s,a){t.started=!0,t.dragging=!0,t.offsetX=s-t.startX,t.offsetY=a-t.startY,t.scale=1-Math.abs(t.offsetY/a*.4)}function l(){!t.dragging||(Math.abs(t.offsetY)>window.innerHeight*.14?t.scale=.3:t.scale=1,t.dragging=!1,t.offsetX=0,t.offsetY=0)}return{state:t,dragStart:n,dragMove:o,dragEnd:l}}const Rt=["onClick"],$t=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),s=e.ref(),a=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),i=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${a.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),f=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function r(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(M,g)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(r,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(i),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(f))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,Rt))}}),Pn="",Pt=V($t,[["__scopeId","data-v-25d39b90"]]),Qe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Ft{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(Pt),{...Qe,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Qe.duration;setTimeout(()=>{this.dismiss()},o)}dismiss(){if(this.container){const n=this.container.querySelector("#toastWrapper");n.style.opacity="0",n.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Ht=["xlink:href","fill","color"],ee=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(t){const n=t,o=e.computed(()=>`#${n.prefix}-${n.name}`),l=e.computed(()=>({width:`${n.width??n.height}px`,height:`${n.height??n.width}px`,aspectRatio:n.width&&n.height?void 0:"1/1"}));function s(a){const{style:i}=a;return typeof i=="object"?i:{}}return(a,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(a.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,Ht)],4))}});function Vt(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:a=.9,observeMethod:i="classList"}=t,f=e.ref(!0),r=te(T,100);let M,g="";const c=e.ref(0),m=e.ref(0),h=e.ref(0),u=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),N=e.ref({clientHeight:0}),p=e.computed(()=>!!m.value),d=e.computed(()=>u.value.scrollHeight>u.value.clientHeight),y=e.computed(()=>l?u.value.clientHeight-U.value:u.value.clientHeight-N.value.clientHeight),j=e.computed(()=>u.value.scrollHeight-u.value.clientHeight),R=e.computed(()=>Math.max(u.value.clientHeight/u.value.scrollHeight,.05)),U=e.computed(()=>R.value>a?0:R.value*u.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${h.value}px,0)`,height:l?`${U.value}px`:void 0}));function D(k){b(),m.value=k.clientY-o.value.getBoundingClientRect().top||1,g=getComputedStyle(n.value).scrollBehavior,g==="smooth"&&(n.value.style.scrollBehavior="unset")}function z(){n.value.style.scrollBehavior=g,m.value=0,r()}function b(){f.value=!1}function T(){p.value||(f.value=!0)}function w(k){if(!p.value)return;let Y=k.clientY-u.value.top-m.value;Y<0?h.value=0:Y>=y.value?h.value=y.value:h.value=Y,n.value.scrollTo({top:h.value/y.value*j.value})}function I(){p.value||_()}function _(){cancelAnimationFrame(M),M=requestAnimationFrame(O)}function O(){n.value&&(c.value=s.scrollTop?.value??n.value.scrollTop,h.value=c.value/j.value*y.value)}function C(k){let Y="addEventListener";k==="add"?Y="addEventListener":Y="removeEventListener",o.value?.[Y]("pointerdown",D,{passive:!0}),window[Y]("pointermove",w,{passive:!0}),window[Y]("pointerup",z,{passive:!0})}const A=new MutationObserver(k=>{(i=="classList"||k.map(F=>F.oldValue).join().includes("height"))&&E()});function E(){u.value.top=n.value?.getBoundingClientRect().top??0,u.value.scrollHeight=n.value?.scrollHeight??0,u.value.clientHeight=n.value?.clientHeight??0}function B(){b(),setTimeout(()=>{N.value.clientHeight=o.value?.clientHeight??0,T()},150)}function Q(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",I,{passive:!0}),C("add");const k={};i==="classList"?Object.assign(k,{subtree:!0,childList:!0}):Object.assign(k,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),A.observe(n.value,k),setTimeout(()=>{E()},100),B()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(c,()=>{b(),r()}),{isScrollEnd:f,isDragSlider:p,offsetTop:h,scrollTop:c,scrollable:d,sliderPos:x,init:Q,modifySliderEventListener:C}}const Wt=(t=>(e.pushScopeId("data-v-405c22cf"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Xt=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,s=e.ref(null),a=e.computed(()=>o.containerEl),i=Vt({containerEl:a,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:f,isScrollEnd:r,sliderPos:M}=i,g=e.ref(!1),c=o.autoHide?e.computed(()=>g.value||!r.value):e.computed(()=>f.value),{load:m}=pe(`.hide-scrollbar {
|
|
15
15
|
scrollbar-width: none;
|
|
16
16
|
-ms-overflow-style: none;
|
|
17
17
|
}
|
|
18
18
|
.hide-scrollbar::-webkit-scrollbar {
|
|
19
19
|
display: none;
|
|
20
|
-
}`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{m(),e.nextTick(()=>{r.init()})}),e.onUnmounted(()=>{r.modifySliderEventListener("remove")});function M(){f.value=!0}function u(){f.value=!1}return n({uScrollBarReturn:r}),(E,D)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:M,onMouseleave:u,style:e.normalizeStyle(e.unref(a))},[e.renderSlot(E.$slots,"default",{},()=>[Zt],!0)],36),[[e.vShow,e.unref(c)]])]),_:3}))}}),Fn="",Gt=Z(Kt,[["__scopeId","data-v-405c22cf"]]),qt=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),Jt={class:"pull-refresh"},en={key:0,class:"pull-arrow-circle"},tn={key:0,class:"box-load"},nn={class:"left-load"},on={class:"right-load"},ln=qt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),sn={class:"pull-arrow"},an={key:1},rn=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",s=e.ref(-999),i=e.ref(1),r=e.ref(0),d=e.ref(.3),g=e.ref(!1),a=e.ref(0),f=e.ref(0),c=e.ref(0),m=e.ref(0),M=e.ref(0),u=e.ref(),E=e.computed(()=>n.scrollTop),D=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),h=e.computed(()=>({borderColor:l,transition:m.value,transform:`rotate(${100+r.value}deg)`,opacity:d.value}));e.watch(M,y=>{y===0&&(s.value=-50,d.value=.3)}),e.watch(f,y=>{if(M.value===2)return;const A=Math.pow(y,o);A===0&&(s.value=-50),A<=50&&A>0&&(s.value=A-45,r.value=Math.pow(A,1.5),A>15?g.value=!0:g.value=!1),A>50&&(s.value=5,d.value=1,M.value)});const w=e.ref(0),L=y=>{w.value=y.touches[0].pageY},k=y=>{const A=y.touches[0].pageY-w.value;w.value=y.touches[0].pageY,!n.refreshOff&&(!n?.refresh||M.value!==2&&E.value===0&&(a.value===0&&(a.value=y.touches[0].pageY),c.value=0,x.value.style.transition=`${c.value}ms`,m.value=0,f.value=y.touches[0].pageY-a.value,x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,A>0&&y.preventDefault()))},U=()=>{if(n.refreshOff||!n?.refresh||M.value===2)return;a.value=0,c.value=300;const y=Math.pow(f.value,o);x.value.style.transition=`${c.value}ms`,y>50?(M.value=2,f.value=Math.pow(50,1/o),x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,m.value=300,n?.refresh&&n?.refresh().then(()=>{u.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{u.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{M.value=0,f.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`,setTimeout(()=>{u.value=void 0},m.value)},600)})):(f.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(f.value,o)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(x.value=document.querySelector(n.pullRefreshContainer),x.value?.addEventListener("touchstart",L),x.value?.addEventListener("touchmove",k),x.value?.addEventListener("touchend",U))}),(y,A)=>(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(D))},[u.value?(e.openBlock(),e.createElementBlock("div",an,e.toDisplayString(u.value),1)):(e.openBlock(),e.createElementBlock("div",en,[M.value==2?(e.openBlock(),e.createElementBlock("div",tn,[e.createElementVNode("div",nn,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",on,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),ln])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(h))},[e.createElementVNode("div",sn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:g.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Hn="",Ve=Z(rn,[["__scopeId","data-v-df5da876"]]),cn=["data-key"],un={inheritAttrs:!1},dn=e.defineComponent({...un,__name:"VirtualList",props:{data:null,getItemKey:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,s=Be(e.toRef(l,"data"),{itemHeight:M=>l.itemHeight(l.data[M]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:i,containerProps:r,wrapperProps:d,innerProps:g,getItemHeightData:a,scrollTop:f}=s;n({vListReturn:s});const c="virtualListWrapper"+new Date().getTime();function m(M,u){return l.getItemKey?l.getItemKey(M,u):`${u}`}return(M,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Ve,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(f),pullRefreshContainer:"#"+c},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:c},[e.createElementVNode("div",e.mergeProps({onScrollPassive:u[0]||(u[0]=(...E)=>e.unref(r).onScroll&&e.unref(r).onScroll(...E)),ref:e.unref(r).ref,class:"virtualList"},M.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(d))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(g))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({data:E,index:D})=>(e.openBlock(),e.createElementBlock("div",{key:m(E,D),"data-key":m(E,D),style:e.normalizeStyle({height:`${e.unref(a)(D).height}px`,display:"flex"})},[e.renderSlot(M.$slots,"default",{data:E,index:D},void 0,!0)],12,cn))),128))],16)],16)],16)])],64))}}),Vn="",fn=Z(dn,[["__scopeId","data-v-dfe60586"]]),Ce=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),Mn={style:{position:"absolute"}},gn=Ce(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),mn=["width","height"],hn=[Ce(()=>e.createElementVNode("title",null,"logo",-1)),Ce(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],pn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"312487ac":o}));const o=`${n.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",Mn,[gn,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},hn,8,mn))]))}}),Zn="",yn=Z(pn,[["__scopeId","data-v-33519afd"]]),Dn=["image/avif","image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/webp","image/wbmp","image/svg+xml"],Tn=["image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];function We(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),i=e.computed(()=>s.value),r=e.computed(()=>{const g=n?.value;return!g||g.startsWith("video/")?!0:g.startsWith("image/")?l.value?Dn.includes(g):Tn.includes(g):!1});t&&e.watch(t,g=>{o.value=g,s.value=!1});function d(){s.value=!0}return{imgSrc:o,isError:s,hasError:i,isSupport:r,handleError:d}}function Xe(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const Nn=t=>(e.pushScopeId("data-v-774cb54a"),t=t(),e.popScopeId(),t),wn=["title"],En=Nn(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),vn=["src"],In=["src"],zn=["title"],An={inheritAttrs:!1},jn=e.defineComponent({...An,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean}},emits:["load"],setup(t,{emit:n}){const o=t,l=e.ref(),s=e.ref(),i=e.ref(!1),r=e.ref(!1),d=e.ref(!1),{src:g,mime:a}=e.toRefs(o),{imgSrc:f,isSupport:c,hasError:m,handleError:M}=We(g,a),{vImageCancel:u}=Xe(),{LoadingComp:E}=Ae({component:Ye,delay:300}),D=Ke(()=>d.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!d.value);function h(){r.value=!0}function w(){r.value&&(d.value=!0)}async function L(){h(),D.value?(l.value?.addEventListener("animationend",k),l.value?.classList.add("showing"),await je(10)):l.value&&n("load",l.value),l.value?.classList.remove("src-class")}function k(){l.value?.removeEventListener("animationend",k),l.value?.classList.remove("showing"),l.value&&n("load",l.value),w()}async function U(y){y?L():s.value&&n("load",s.value),i.value=!0}function x(y){y?M():h(),i.value=!0}return(y,A)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(E),{key:0})),e.unref(c)?e.unref(m)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},y.$attrs,{title:e.unref(f),class:"tip-wrap"}),[e.createVNode(se,{class:"bad-image",name:"\u56FE\u7247\u635F\u574F"})],16,zn)):e.renderSlot(y.$slots,"default",{key:2,src:e.unref(f),onLoad:U,onError:x},()=>[e.unref(D)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},y.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:A[0]||(A[0]=_=>U()),onError:A[1]||(A[1]=_=>x()),src:t.thumbnail}),null,16,vn)),[[e.unref(u)]]):e.createCommentVNode("",!0),t.isShowSrc||r.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},y.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:A[2]||(A[2]=_=>U(!0)),onError:A[3]||(A[3]=_=>x(!0)),src:e.unref(f)}),null,16,In)),[[e.unref(u)],[e.vShow,r.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},y.$attrs,{title:e.unref(f),class:"tip-wrap"}),[e.createVNode(se,{class:"no-support-icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),En],16,wn))],64))}}),Kn="",Ln=Z(jn,[["__scopeId","data-v-774cb54a"]]),Cn=["title"],Sn=["src"],xn=["title"],_n=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},setup(t){const n=t,o=e.ref(!1),{src:l,mime:s}=e.toRefs(n),{imgSrc:i,hasError:r,isSupport:d,handleError:g}=We(l,s),{vImageCancel:a}=Xe();return(f,c)=>e.unref(d)?e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(i),class:"icon-wrap"},[e.createVNode(se,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,xn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:c[0]||(c[0]=m=>o.value=!0),onError:c[1]||(c[1]=(...m)=>e.unref(g)&&e.unref(g)(...m)),src:e.unref(i)},null,40,Sn)),[[e.unref(a)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(i),class:"icon-wrap"},[e.createVNode(se,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,Cn))}}),Gn="",On=Z(_n,[["__scopeId","data-v-5a7af152"]]);I.DefaultLoading=Ye,I.Image=Ln,I.LONG_PRESS_START_TIME=$e,I.Loading=yn,I.LoadingToast=Ue,I.PageLoading=At,I.PullRefresh=Ve,I.ScrollBar=Gt,I.SvgIcon=se,I.TAP_OFFSET=Le,I.Thumbnail=On,I.ToastCreator=Vt,I.VirtualList=fn,I.allSelectedKey=de,I.clamp=pe,I.closeDialogKey=Qe,I.dialogController=Dt,I.getCenter=Fe,I.getTransform=ye,I.isAllSelectedKey=me,I.isSelectedKey=ue,I.selectAllKey=Me,I.selectKey=fe,I.selectedCountKey=he,I.toggleAllKey=re,I.toggleKey=ce,I.unselectAllKey=le,I.unselectKey=ge,I.useDelayAsync=kt,I.useDelayLoad=Tt,I.useDelayLoadComp=Ae,I.useDownDrag=$t,I.useDragSelect=ze,I.useDragSelectByMobile=mt,I.useDragSelectByPc=gt,I.useScaleImage=Rt,I.useSelectable=ft,I.useSelectableByBase=Mt,I.useSelectableInjectors=dt,I.useVirtualList=Be,I.vDebounceClick=Ze,I.vSingleClick=xe,Object.defineProperties(I,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
20
|
+
}`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{m(),e.nextTick(()=>{i.init()})}),e.onUnmounted(()=>{i.modifySliderEventListener("remove")});function h(){g.value=!0}function u(){g.value=!1}return n({uScrollBarReturn:i}),(N,p)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:s,class:"slider-wrapper",onMouseenter:h,onMouseleave:u,style:e.normalizeStyle(e.unref(M))},[e.renderSlot(N.$slots,"default",{},()=>[Wt],!0)],36),[[e.vShow,e.unref(c)]])]),_:3}))}}),Hn="",Zt=V(Xt,[["__scopeId","data-v-405c22cf"]]),Kt=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),Gt={class:"pull-refresh"},qt={key:0,class:"pull-arrow-circle"},Jt={key:0,class:"box-load"},en={class:"left-load"},tn={class:"right-load"},nn=Kt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),on={class:"pull-arrow"},ln={key:1},sn=e.defineComponent({__name:"PullRefresh",props:{refresh:null,refreshOff:{type:Boolean,default:!1},scrollTop:null,pullRefreshContainer:null},setup(t){const n=t,o=.7,l="#2EC1CC",s=e.ref(-999),a=e.ref(1),i=e.ref(0),f=e.ref(.3),r=e.ref(!1),M=e.ref(0),g=e.ref(0),c=e.ref(0),m=e.ref(0),h=e.ref(0),u=e.ref(),N=e.computed(()=>n.scrollTop),p=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${a.value})`})),d=e.computed(()=>({borderColor:l,transition:m.value,transform:`rotate(${100+i.value}deg)`,opacity:f.value}));e.watch(h,D=>{D===0&&(s.value=-50,f.value=.3)}),e.watch(g,D=>{if(h.value===2)return;const z=Math.pow(D,o);z===0&&(s.value=-50),z<=50&&z>0&&(s.value=z-45,i.value=Math.pow(z,1.5),z>15?r.value=!0:r.value=!1),z>50&&(s.value=5,f.value=1,h.value)});const y=e.ref(0),j=D=>{y.value=D.touches[0].pageY},R=D=>{const z=D.touches[0].pageY-y.value;y.value=D.touches[0].pageY,!n.refreshOff&&(!n?.refresh||h.value!==2&&N.value===0&&(M.value===0&&(M.value=D.touches[0].pageY),c.value=0,x.value.style.transition=`${c.value}ms`,m.value=0,g.value=D.touches[0].pageY-M.value,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,z>0&&D.preventDefault()))},U=()=>{if(n.refreshOff||!n?.refresh||h.value===2)return;M.value=0,c.value=300;const D=Math.pow(g.value,o);x.value.style.transition=`${c.value}ms`,D>50?(h.value=2,g.value=Math.pow(50,1/o),x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,m.value=300,n?.refresh&&n?.refresh().then(()=>{u.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{u.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{h.value=0,g.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,setTimeout(()=>{u.value=void 0},m.value)},600)})):(g.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`)},x=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(x.value=document.querySelector(n.pullRefreshContainer),x.value?.addEventListener("touchstart",j),x.value?.addEventListener("touchmove",R),x.value?.addEventListener("touchend",U))}),(D,z)=>(e.openBlock(),e.createElementBlock("div",Gt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(p))},[u.value?(e.openBlock(),e.createElementBlock("div",ln,e.toDisplayString(u.value),1)):(e.openBlock(),e.createElementBlock("div",qt,[h.value==2?(e.openBlock(),e.createElementBlock("div",Jt,[e.createElementVNode("div",en,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",tn,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),nn])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(d))},[e.createElementVNode("div",on,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:r.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Vn="",Ye=V(sn,[["__scopeId","data-v-df5da876"]]),an=["data-key"],rn={inheritAttrs:!1},cn=e.defineComponent({...rn,__name:"VirtualList",props:{data:null,getItemKey:null,itemHeight:null,overscan:{default:10},refresh:null,refreshOff:{type:Boolean,default:!1}},emits:["scrollEnd"],setup(t,{expose:n,emit:o}){const l=t,s=Ce(e.toRef(l,"data"),{itemHeight:h=>l.itemHeight(l.data[h]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:a,containerProps:i,wrapperProps:f,innerProps:r,getItemHeightData:M,scrollTop:g}=s;n({vListReturn:s});const c="virtualListWrapper"+new Date().getTime();function m(h,u){return l.getItemKey?l.getItemKey(h,u):`${u}`}return(h,u)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Ye,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(g),pullRefreshContainer:"#"+c},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:c},[e.createElementVNode("div",e.mergeProps({onScrollPassive:u[0]||(u[0]=(...N)=>e.unref(i).onScroll&&e.unref(i).onScroll(...N)),ref:e.unref(i).ref,class:"virtualList"},h.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(f))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(r))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(a),({data:N,index:p})=>(e.openBlock(),e.createElementBlock("div",{key:m(N,p),"data-key":m(N,p),style:e.normalizeStyle({height:`${e.unref(M)(p).height}px`,display:"flex"})},[e.renderSlot(h.$slots,"default",{data:N,index:p},void 0,!0)],12,an))),128))],16)],16)],16)])],64))}}),Wn="",un=V(cn,[["__scopeId","data-v-dfe60586"]]),Ee=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),dn={style:{position:"absolute"}},fn=Ee(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Mn=["width","height"],gn=[Ee(()=>e.createElementVNode("title",null,"logo",-1)),Ee(()=>e.createElementVNode("g",{id:"group-1",stroke:"none","stroke-width":"1",fill:"none","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M260,0 L260,260 L0,260 L0,0 L260,0 Z M173.523673,59.478426 L168.543315,62.4752911 C160.9116,67.0675753 153.089651,71.6349169 145.95806,75.5800674 C142.130471,77.697465 141.695584,77.8197038 137.842227,77.8197038 L123.620155,77.8194132 C120.16747,77.8127705 119.807362,77.673506 116.200006,75.5626777 L115.86045,75.3641139 C113.295911,73.8653877 110.281688,72.1255413 103.60737,68.2932221 C100.032855,66.2486474 96.3694634,64.1645054 92.8123362,62.1486494 L88.1098826,59.4837265 L86.4238232,64.6191026 C83.7525911,72.7551036 81.4062856,80.7653112 79.9222326,87.4417622 C78.9474243,91.8460343 78.2380884,93.2327734 74.2195073,98.9752733 C73.3694777,100.207223 72.630007,101.343155 72.0710109,102.283257 C67.5201215,110.313953 65.2975905,119.339776 65.6004928,128.457001 C66.1750084,143.318086 73.5375842,157.955758 85.6992798,168.473706 C96.9509724,178.204645 111.5737,183.826593 127.858154,184.209647 L130.088901,184.229303 C130.3376,186.684365 130.531293,189.982467 130.67329,193.770543 L130.951876,201.202421 L137.351863,197.414204 C154.766094,187.106546 169.345402,176.172255 180.160428,163.526119 C190.679421,151.226139 196.179795,138.745301 195.345608,125.762609 C194.727393,116.39373 192.289395,107.848059 187.082918,99.046007 C186.275378,97.7498121 185.738167,97.0056347 184.495395,95.37077 C181.975467,92.0558065 181.159964,90.5424149 180.493634,87.4039653 C178.713605,78.9218624 176.863265,71.4211865 175.088993,65.0761883 L173.523673,59.478426 Z M93.177,72.537 L93.8226224,72.9040486 C95.6240552,73.9292933 97.4266638,74.9575498 99.2051531,75.9748184 C106.15023,79.9626119 109.111289,81.6727026 111.728598,83.2042091 C116.752992,86.1442112 118.538634,86.6733184 123.964152,86.6733184 L137.842227,86.6733184 C143.264867,86.6733184 145.156143,86.1417146 150.243765,83.3272749 L153.915953,81.276117 C157.635687,79.179445 161.486156,76.9543599 165.360239,74.6740288 L168.062636,73.0710869 L168.527808,74.8705095 C169.630114,79.2468106 170.742831,84.0476913 171.830914,89.2325336 C172.820403,93.8931438 174.207097,96.4665356 177.447051,100.728693 C178.530829,102.154402 178.952253,102.738183 179.517404,103.643654 C183.925243,111.098001 185.980436,118.301862 186.51071,126.337939 C187.173867,136.658947 182.587388,147.066077 173.431821,157.771787 L171.503004,159.959402 C163.609627,168.649028 153.591728,176.617571 141.90907,184.187495 L139.123121,185.960576 L139.113767,185.819152 C139.047016,184.932364 138.975009,184.102769 138.897435,183.336992 C138.769034,182.069465 138.589718,180.629122 138.367155,179.053334 L137.795381,175.005053 L133.714496,175.253822 C132.500079,175.327852 131.274186,175.368647 130.037423,175.375838 C114.999567,175.463276 101.629066,170.545082 91.4908024,161.777083 C81.1421175,152.827103 74.9249947,140.466728 74.4483613,128.138982 C74.2004611,120.675327 76.0261036,113.26129 79.7275986,106.727863 C80.126032,106.059698 80.7615655,105.083428 81.4902403,104.02721 C86.0997527,97.4404488 87.2937074,95.1062887 88.5657754,89.358959 C89.6596645,84.4377825 91.2792852,78.6447463 93.1627518,72.6043699 L93.177,72.537 Z",id:"path-1",fill:"#FFF"})],-1))],mn=e.defineComponent({__name:"Loading",props:{width:{default:"90"},height:{default:"90"},duration:{default:1300}},setup(t){const n=t;e.useCssVars(l=>({"312487ac":o}));const o=`${n.duration}ms`;return(l,s)=>(e.openBlock(),e.createElementBlock("div",dn,[fn,(e.openBlock(),e.createElementBlock("svg",{style:{position:"relative"},width:t.width,height:t.height,viewBox:"0 0 260 260",version:"1.1",xmlns:"http://www.w3.org/2000/svg"},gn,8,Mn))]))}}),Kn="",hn=V(mn,[["__scopeId","data-v-33519afd"]]),pn=["image/avif","image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/tga","image/webp","image/wbmp","image/svg+xml"],yn=["image/bmp","image/jpg","image/jpeg","image/gif","image/heic","image/heif","image/png","image/webp","image/svg+xml"];function Ue(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),s=e.ref(!1),a=e.computed(()=>s.value),i=e.computed(()=>{const r=n?.value;return!r||r.startsWith("video/")?!0:r.startsWith("image/")?l.value?pn.includes(r):yn.includes(r):!1});t&&e.watch(t,r=>{o.value=r,s.value=!1});function f(){s.value=!0}return{imgSrc:o,isError:s,hasError:a,isSupport:i,handleError:f}}function Re(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const Dn=t=>(e.pushScopeId("data-v-774cb54a"),t=t(),e.popScopeId(),t),Tn=["title"],Nn=Dn(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),wn=["src"],En=["src"],vn=["title"],In={inheritAttrs:!1},zn=e.defineComponent({...In,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean}},emits:["load"],setup(t,{emit:n}){const o=t,l=e.ref(),s=e.ref(),a=e.ref(!1),i=e.ref(!1),f=e.ref(!1),{src:r,mime:M}=e.toRefs(o),{imgSrc:g,isSupport:c,hasError:m,handleError:h}=Ue(r,M),{vImageCancel:u}=Re(),{LoadingComp:N}=Te({component:xe,delay:300}),p=Fe(()=>f.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!f.value);function d(){i.value=!0}function y(){i.value&&(f.value=!0)}async function j(){d(),p.value?(l.value?.addEventListener("animationend",R),l.value?.classList.add("showing"),await Ne(10)):l.value&&n("load",l.value),l.value?.classList.remove("src-class")}function R(){l.value?.removeEventListener("animationend",R),l.value?.classList.remove("showing"),l.value&&n("load",l.value),y()}async function U(D){D?j():s.value&&n("load",s.value),a.value=!0}function x(D){D?h():d(),a.value=!0}return(D,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[a.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(N),{key:0})),e.unref(c)?e.unref(m)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},D.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(ee,{class:"bad-image",name:"\u56FE\u7247\u635F\u574F"})],16,vn)):e.renderSlot(D.$slots,"default",{key:2,src:e.unref(g),onLoad:U,onError:x},()=>[e.unref(p)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},D.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:z[0]||(z[0]=b=>U()),onError:z[1]||(z[1]=b=>x()),src:t.thumbnail}),null,16,wn)),[[e.unref(u)]]):e.createCommentVNode("",!0),t.isShowSrc||i.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},D.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:z[2]||(z[2]=b=>U(!0)),onError:z[3]||(z[3]=b=>x(!0)),src:e.unref(g)}),null,16,En)),[[e.unref(u)],[e.vShow,i.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},D.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(ee,{class:"no-support-icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),Nn],16,Tn))],64))}}),Gn="",An=V(zn,[["__scopeId","data-v-774cb54a"]]),Ln=["title"],jn=["src"],Cn=["title"],Sn=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},setup(t){const n=t,o=e.ref(!1),{src:l,mime:s}=e.toRefs(n),{imgSrc:a,hasError:i,isSupport:f,handleError:r}=Ue(l,s),{vImageCancel:M}=Re();return(g,c)=>e.unref(f)?e.unref(i)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(a),class:"icon-wrap"},[e.createVNode(ee,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,Cn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:c[0]||(c[0]=m=>o.value=!0),onError:c[1]||(c[1]=(...m)=>e.unref(r)&&e.unref(r)(...m)),src:e.unref(a)},null,40,jn)),[[e.unref(M)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(a),class:"icon-wrap"},[e.createVNode(ee,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,Ln))}}),qn="",xn=V(Sn,[["__scopeId","data-v-5a7af152"]]);v.DefaultLoading=xe,v.Image=An,v.Loading=hn,v.LoadingToast=_e,v.PageLoading=Tt,v.PullRefresh=Ye,v.ScrollBar=Zt,v.SvgIcon=ee,v.Thumbnail=xn,v.ToastCreator=Ft,v.VirtualList=un,v.allSelectedKey=ie,v.closeDialogKey=Se,v.dialogController=ft,v.getTransform=Me,v.isAllSelectedKey=de,v.isSelectedKey=ae,v.selectAllKey=ce,v.selectKey=re,v.selectedCountKey=fe,v.toggleAllKey=le,v.toggleKey=se,v.unselectAllKey=G,v.unselectKey=ue,v.useDelayAsync=jt,v.useDelayLoad=Mt,v.useDelayLoadComp=Te,v.useDownDrag=Ut,v.useDragSelect=De,v.useDragSelectByMobile=rt,v.useDragSelectByPc=it,v.useScaleImageByMobile=Yt,v.useScaleImageByPc=Qt,v.useSelectable=st,v.useSelectableByBase=at,v.useSelectableInjectors=lt,v.useVirtualList=Ce,v.vDebounceClick=Pe,v.vSingleClick=Ie,Object.defineProperties(v,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|