@lazycatcloud/lzc-toolkit 0.0.143 → 0.0.145
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 +1188 -1099
- package/dist/index.umd.js +4 -4
- package/dist/style.css +1 -1
- package/dist/types/useScaleImage/index.d.ts +3147 -1540
- 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,9 +1,9 @@
|
|
|
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((N,h)=>{s=a?h:N,o=setTimeout(()=>{n=Date.now(),l=!0,N(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 N=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=>{!N.value||(N.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(_),N.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:N,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([]),N=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"?N.value.length*l:N.value[N.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=N.value.length-1,P=-1;for(;j<=B;){const b=Math.floor((j+B)/2);N.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<N.value.length&&(j++,B+=N.value[P].height,!(B>=r.height.value));P++);return j}function V(S){if(typeof l=="number")return S*l;let j=N.value[S];return j?j.sum-j.height:0}function Q(S){return N.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 N(){const{value:h}=g;h?f():a()}return e.provide(re,N),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:N,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,N=t.value.length;u=E==N}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:D,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=>N.value=p[0].target.getBoundingClientRect()),N=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)-N.value.left,top:Math.min(M.value.y,u.value.y)-N.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 T=c.value;if(!T||!m.value)return;const C=h.value.height-N.value.height;let z=h.value.top+Number(Q);z=Math.min(Math.max(0,z),C),T.scrollTop=z,Y(),x=requestAnimationFrame(()=>R(p))}}function K(p){if(c.value){const C=N.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 T={...w.value,right:0,bottom:0};return T.left+=N.value.left,T.top+=N.value.top-h.value.top,T.right=T.width+T.left,T.bottom=T.height+T.top,T.left<p.right&&T.right>p.left&&T.top<p.bottom&&T.bottom>p.top}function Y(){h.value.sync();const{top:p,height:T}=h.value;u.value.y=Math.min(T+N.value.top,u.value.y+p-u.value.scrollTop),u.value.scrollTop=p}function S(p,T,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} { ${T} }`;for(let q=0;q<H;q++){const te=O[q];if(te.selectorText===p&&te.style.cssText===T)return}z.sheet.insertRule(F,H)}function j(p,T){f.value=!0,m.value=!0,h.value.sync(!0);const C=T+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,T,C){!m.value||(f.value&&n==="colum"&&!$()&&(r(),f.value=!1),C?.(),R(T),u.value.x=Math.max(p,N.value.left),u.value.y=Math.min(T+h.value.top,h.value.height+N.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:T}=w.value;return!(Math.max(p,T)>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 D(){const p=[];let T=null,C=0;c.value?.querySelectorAll(`[${t}]`).forEach((z,O)=>{const H=z.getAttribute(`${t}`);p.push(H),W(z.getBoundingClientRect())?(T===null&&(T=O),T=Math.min(T,O),C=Math.max(C,O)):(d[`${t}`]=H,a.has(H)&&i([d]))});for(let z=T;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(E,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(E=typeof globalThis<"u"?globalThis:E||self,e(E.ui={},E.Vue))})(this,function(E,e){"use strict";const ve={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 a=r.clientX,f=r.clientY,M=Math.abs(a-o),g=Math.abs(f-l);M>5||g>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__)}},Pe={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 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 i=e.ref(!0),r=()=>{i.value=!0,s()};e.watch(t,r,{flush:"sync"});const a=typeof n=="function"?n:n.get,f=typeof n=="function"?void 0:n.set,M=e.customRef((g,c)=>(l=g,s=c,{get(){return i.value&&(o=a(),i.value=!1),l(),o},set(h){f?.(h)}}));return Object.isExtensible(M)&&(M.trigger=r),M}function Me(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function F(t){return typeof t=="function"?t():e.unref(t)}const Ie=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 ze(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 Xe(t,n={}){let o,l,s=K;const i=a=>{clearTimeout(a),s(),s=K};return a=>{const f=F(t),M=F(n.maxWait);return o&&i(o),f<=0||M!==void 0&&M<=0?(l&&(i(l),l=null),Promise.resolve(a())):new Promise((g,c)=>{s=n.rejectOnCancel?c:g,M&&!l&&(l=setTimeout(()=>{o&&i(o),l=null,g(a())},M)),o=setTimeout(()=>{l&&i(l),l=null,g(a())},f)})}}function Ze(...t){let n=0,o,l=!0,s=K,i,r,a,f,M;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:r,trailing:a=!0,leading:f=!0,rejectOnCancel:M=!1}=t[0]:[r,a=!0,f=!0,M=!1]=t;const g=()=>{o&&(clearTimeout(o),o=void 0,s(),s=K)};return h=>{const m=F(r),u=Date.now()-n,N=()=>i=h();return g(),m<=0?(n=Date.now(),N()):(u>m&&(f||!l)?(n=Date.now(),N()):a&&(i=new Promise((p,d)=>{s=M?d:p,o=setTimeout(()=>{n=Date.now(),l=!0,p(N()),g()},Math.max(0,m-u))})),!f&&!o&&(o=setTimeout(()=>l=!0,m)),l=!1,i)}}function Ke(t){return t||e.getCurrentInstance()}function ee(t,n=200,o={}){return ze(Xe(n,o),t)}function ge(t,n=200,o=!1,l=!0,s=!1){return ze(Ze(n,o,l,s),t)}function me(t,n=!0,o){Ke()?e.onMounted(t,o):n?t():e.nextTick(t)}function V(t){var n;const o=F(t);return(n=o?.$el)!=null?n:o}const te=Ie?window:void 0,Ge=Ie?window.document:void 0;function ne(...t){let n,o,l,s;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,s]=t,n=te):[n,o,l,s]=t,!n)return K;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const i=[],r=()=>{i.forEach(g=>g()),i.length=0},a=(g,c,h,m)=>(g.addEventListener(c,h,m),()=>g.removeEventListener(c,h,m)),f=e.watch(()=>[V(n),F(s)],([g,c])=>{if(r(),!g)return;const h=We(c)?{...c}:c;i.push(...o.flatMap(m=>l.map(u=>a(g,m,u,h))))},{immediate:!0,flush:"post"}),M=()=>{f(),r()};return Me(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?V(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function Ae(t,n,o={}){const{window:l=te,...s}=o;let i;const r=Je(()=>l&&"ResizeObserver"in l),a=()=>{i&&(i.disconnect(),i=void 0)},f=e.computed(()=>Array.isArray(t)?t.map(c=>V(c)):[V(t)]),M=e.watch(f,c=>{if(a(),r.value&&l){i=new ResizeObserver(n);for(const h of c)h&&i.observe(h,s)}},{immediate:!0,flush:"post"}),g=()=>{a(),M()};return Me(g),{isSupported:r,stop:g}}function tt(t,n={width:0,height:0},o={}){const{window:l=te,box:s="content-box"}=o,i=e.computed(()=>{var c,h;return(h=(c=V(t))==null?void 0:c.namespaceURI)==null?void 0:h.includes("svg")}),r=e.ref(n.width),a=e.ref(n.height),{stop:f}=Ae(t,([c])=>{const h=s==="border-box"?c.borderBoxSize:s==="content-box"?c.contentBoxSize:c.devicePixelContentBoxSize;if(l&&i.value){const m=V(t);if(m){const u=l.getComputedStyle(m);r.value=Number.parseFloat(u.width),a.value=Number.parseFloat(u.height)}}else if(h){const m=Array.isArray(h)?h:[h];r.value=m.reduce((u,{inlineSize:N})=>u+N,0),a.value=m.reduce((u,{blockSize:N})=>u+N,0)}else r.value=c.contentRect.width,a.value=c.contentRect.height},o);me(()=>{const c=V(t);c&&(r.value="offsetWidth"in c?c.offsetWidth:n.width,a.value="offsetHeight"in c?c.offsetHeight:n.height)});const M=e.watch(()=>V(t),c=>{r.value=c?n.width:0,a.value=c?n.height:0});function g(){f(),M()}return{width:r,height:a,stop:g}}const Le=1;function nt(t,n={}){const{throttle:o=0,idle:l=200,onStop:s=K,onScroll:i=K,offset:r={left:0,right:0,top:0,bottom:0},eventListenerOptions:a={capture:!1,passive:!0},behavior:f="auto",window:M=te,onError:g=T=>{console.error(T)}}=n,c=e.ref(0),h=e.ref(0),m=e.computed({get(){return c.value},set(T){N(T,void 0)}}),u=e.computed({get(){return h.value},set(T){N(void 0,T)}});function N(T,z){var y,w,I;if(!M)return;const j=F(t);!j||(I=j instanceof Document?M.document.body:j)==null||I.scrollTo({top:(y=F(z))!=null?y:u.value,left:(w=F(T))!=null?w:m.value,behavior:F(f)})}const p=e.ref(!1),d=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),D=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),L=T=>{!p.value||(p.value=!1,D.left=!1,D.right=!1,D.top=!1,D.bottom=!1,s(T))},U=ee(L,o+l),Y=T=>{var z;if(!M)return;const y=((z=T?.document)==null?void 0:z.documentElement)||T?.documentElement||V(T),{display:w,flexDirection:I}=getComputedStyle(y),j=y.scrollLeft;D.left=j<c.value,D.right=j>c.value;const O=Math.abs(j)<=(r.left||0),_=Math.abs(j)+y.clientWidth>=y.scrollWidth-(r.right||0)-Le;w==="flex"&&I==="row-reverse"?(d.left=_,d.right=O):(d.left=O,d.right=_),c.value=j;let B=y.scrollTop;T===M.document&&!B&&(B=M.document.body.scrollTop),D.top=B<h.value,D.bottom=B>h.value;const C=Math.abs(B)<=(r.top||0),v=Math.abs(B)+y.clientHeight>=y.scrollHeight-(r.bottom||0)-Le;w==="flex"&&I==="column-reverse"?(d.top=v,d.bottom=C):(d.top=C,d.bottom=v),h.value=B},x=T=>{var z;if(!M)return;const y=(z=T.target.documentElement)!=null?z:T.target;Y(y),p.value=!0,U(T),i(T)};return ne(t,"scroll",o?ge(x,o,!0,!1):x,a),me(()=>{try{const T=F(t);if(!T)return;Y(T)}catch(T){g(T)}}),ne(t,"scrollend",L,a),{x:m,y:u,isScrolling:p,arrivedState:d,directions:D,measure(){const T=F(t);M&&T&&Y(T)}}}let ot=0;function he(t,n={}){const o=e.ref(!1),{document:l=Ge,immediate:s=!0,manual:i=!1,id:r=`vueuse_styletag_${++ot}`}=n,a=e.ref(t);let f=()=>{};const M=()=>{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&&(f=e.watch(a,h=>{c.textContent=h},{immediate:!0}),o.value=!0)},g=()=>{!l||!o.value||(f(),l.head.removeChild(l.getElementById(r)),o.value=!1)};return s&&!i&&me(M),i||Me(g),{id:r,css:a,unload:g,load:M,isLoaded:e.readonly(o)}}function je(t,n){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=n,i=e.ref(null),r=tt(i),a=e.ref(!0),f=ee(Y,100);let M;const g=e.shallowRef(t),c=e.ref(0),h=e.ref({start:0,end:10}),m=e.ref({start:0,end:s});let u=0;const N=e.ref([]),p=e.computed(()=>{let{sum:C,height:v}={sum:0,height:0};return g.value.map((Q,$)=>(typeof l=="number"?v=l:v=l($),C+=v,{height:v,sum:C}))}),d=e.computed(()=>w(h.value.start)),D=e.computed(()=>typeof l=="number"?p.value.length*l:p.value[p.value.length-1]?.sum||0),L=e.computed(()=>{const{start:C,end:v}=m.value;return N.value.slice(C,v)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(M)),e.watch(g,()=>{(r.width.value||r.height.value)&&x()},{deep:!0}),e.watch([r.width,r.height],([C,v])=>{(C||v)&&x()},{deep:!0}),e.watch(c,()=>{U(),f()});function U(){a.value=!1}function Y(){a.value=!0,o?.()}function x(){cancelAnimationFrame(M),M=requestAnimationFrame(T)}function T(){if(i.value){c.value=i.value.scrollTop;let C=z(c.value);u=y(C);let v=Math.max(0,C-s),Q=Math.min(C+u+s,g.value.length);h.value={start:v,end:Q},N.value=g.value.slice(v,Q).map(($,b)=>({data:$,index:b+v})),m.value.start=C-v,m.value.end=m.value.start+u}}function z(C){let v=0,Q=p.value.length-1,$=-1;for(;v<=Q;){const b=Math.floor((v+Q)/2);p.value[b].sum>=C?($=b,Q=b-1):v=b+1}return Math.max(0,$)}function y(C){let v=0,Q=0;for(let $=C;$<p.value.length&&(v++,Q+=p.value[$].height,!(Q>=r.height.value));$++);return v}function w(C){if(typeof l=="number")return C*l;let v=p.value[C];return v?v.sum-v.height:0}function I(C){return p.value[C]||{sum:0,height:0}}function j(C){if(i.value){const v=I(C);i.value.scrollTop=v.sum-v.height,T()}}const O=e.computed(()=>({style:{width:"100%",height:`${D.value}px`,pointerEvents:a.value?void 0:"none"}})),_=e.computed(()=>({style:{transform:`translate3d(0, ${d.value}px, 0)`,"will-change":"transform"}})),B={overflowY:"auto"};return{list:N,visiableList:L,getItemHeightData:I,getoffsetTopIndex:z,totalHeight:D,clientHeight:r.height,scrollTo:j,scrollTop:c,isScrollEnd:a,containerProps:{ref:i,onScroll:()=>{x()},style:B},wrapperProps:O,innerProps:_}}const oe=Symbol(),le=Symbol(),se=Symbol(),ae=Symbol(),ie=Symbol(),re=Symbol(),ce=Symbol(),ue=Symbol(),G=Symbol(),de=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(()=>[])},i=e.inject(ae,s),r=e.inject(se,n),a=e.inject(ue,o),f=e.inject(le,t),M=e.inject(oe,t),g=e.inject(ie,t),c=e.inject(re,t),h=e.inject(ce,t),m=e.inject(G,t),u=e.inject(de,l);return{selected:i,isSelected:r,isAllSelected:a,toggle:f,toggleAll:M,select:g,selectAll:c,unselect:h,unselectAll:m,selectedCount:u}}function st(t,n,o={deep:!0}){const l=e.ref(!1),s=e.ref(new Set),i=e.ref(new Map);e.watch(t,d=>{i.value=d.reduce((D,L)=>(D.set(L[n],L),D),new Map)},{deep:o.deep,immediate:!0});const r=e.computed(()=>{let d=[];if(l.value!=null)l.value&&(d=Array.from(i.value.values()));else if(s.value.size){let D;s.value.forEach(L=>{D=i.value.get(L),D&&d.push(D)})}return d}),a=e.computed(()=>{let d=0;return l.value!=null?l.value&&(d=i.value.size):d=s.value.size,d}),f=e.computed(()=>{let d;if(l.value!=null)d=l.value;else{const D=s.value.size,L=i.value.size;d=D==L}return d});function M(){l.value=!0}function g(){l.value=!1}function c(d){u(()=>{d.forEach(D=>{s.value.add(D[n])})})}function h(d){u(()=>{d.forEach(D=>{s.value.delete(D[n])})})}function m(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(i.value.keys())):s.value=new Set),d(),s.value.size==0?l.value=!1:s.value.size==i.value.size?l.value=!0:l.value=null}function N(d){u(()=>{d.forEach(D=>{m(D)?s.value.delete(D[n]):s.value.add(D[n])})})}function p(){const{value:d}=f;d?g():M()}return e.provide(oe,p),e.provide(le,N),e.provide(se,m),e.provide(ae,r),e.provide(ie,c),e.provide(re,M),e.provide(ce,h),e.provide(ue,f),e.provide(G,g),e.provide(G,g),e.provide(de,a),{selected:r,select:c,selectAll:M,unselect:h,unselectAll:g,toggle:N,toggleAll:p,isSelected:m,isAllSelected:f,selectedCount:a}}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}),i=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 r(){n.value=!0}function a(){n.value=!1}function f(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 h(u){c(()=>{u.forEach(N=>{g(N)?o.value.delete(N):o.value.add(N)})})}function m(){const{value:u}=i;u?a():r()}return e.provide(oe,m),e.provide(le,h),e.provide(se,g),e.provide(ae,l),e.provide(ie,f),e.provide(re,r),e.provide(ce,M),e.provide(ue,i),e.provide(G,a),e.provide(G,a),e.provide(de,s),{selected:l,select:f,selectAll:r,unselect:M,unselectAll:a,toggle:h,toggleAll:m,isSelected:g,isAllSelected:i,selectedCount:s}}function pe(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ye({attribute:t,selectWay:n="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=pe("\u9009\u62E9"),unselect:i=pe("\u53D6\u6D88\u9009\u62E9"),unselectAll:r=pe("\u53D6\u6D88\u5168\u9009")}=l();let a={};const f=e.computed(()=>ge(n==="colum"?xn:_n,50)),M=new Set,g=e.ref(!0),c=e.ref(),h=e.ref(!1),m=e.ref({x:0,y:0}),u=e.ref({x:0,y:0,scrollTop:0}),N=new ResizeObserver(A=>p.value=A[0].target.getBoundingClientRect()),p=e.ref({}),d=e.ref({top:0,height:0,sync(A=!1){d.value.top=c.value?.scrollTop||0,A&&(d.value.height=c.value?.scrollHeight||0)}}),D=e.computed(()=>h.value?{left:Math.min(m.value.x,u.value.x)-p.value.left,top:Math.min(m.value.y,u.value.y)-p.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:U=30,maxSpeed:Y=30}=o;let x;const T=L,z=U,y=Y,w=A=>A**1;let I=0;function j(A){if(cancelAnimationFrame(x),I=O(A),I=Math.max(Math.min(I,y),-y),I!==0){const S=c.value;if(!S||!h.value)return;const P=d.value.height-p.value.height;let R=d.value.top+Number(I);R=Math.min(Math.max(0,R),P),S.scrollTop=R,B(),x=requestAnimationFrame(()=>j(A))}}function O(A){if(c.value){const P=p.value,R=P.bottom-A;if(R<T)return z*w(1-R/T);const X=A-P.top;if(X<T)return-z*w(1-X/T)}return 0}function _(A){const S={...D.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<A.right&&S.right>A.left&&S.top<A.bottom&&S.bottom>A.top}function B(){d.value.sync();const{top:A,height:S}=d.value;u.value.y=Math.min(S+p.value.top,u.value.y+A-u.value.scrollTop),u.value.scrollTop=A}function C(A,S,P="dynamic-styles"){let R=document.getElementById(P);R||(R=document.createElement("style"),R.id=P,document.head.appendChild(R));const X=R.sheet.cssRules,q=X.length,On=`${A} { ${S} }`;for(let Ee=0;Ee<q;Ee++){const $e=X[Ee];if($e.selectorText===A&&$e.style.cssText===S)return}R.sheet.insertRule(On,q)}function v(A,S){g.value=!0,h.value=!0,d.value.sync(!0);const P=S+d.value.top;m.value.x=A,m.value.y=P,u.value.x=A,u.value.y=P,c.value?.classList.add("disable-scroll-behavior"),M.clear()}function Q(A,S,P){!h.value||(g.value&&n==="colum"&&!k()&&(r(),g.value=!1),P?.(),j(S),u.value.x=Math.max(A,p.value.left),u.value.y=Math.min(S+d.value.top,d.value.height+p.value.top),u.value.scrollTop=d.value.top,f.value())}function $(){h.value=!1,c.value?.classList.remove("disable-scroll-behavior")}function b(){!h.value||(I||B(),f.value())}function k(){if(!h.value)return!1;const{width:A,height:S}=D.value;return!(Math.max(A,S)>5)}function Z(){k()&&r()}function xn(){k()||c.value?.querySelectorAll(`[${t}]`).forEach(A=>{a[`${t}`]=A.getAttribute(`${t}`),_(A.getBoundingClientRect())?s([a]):i([a])})}function _n(){const A=[];let S=null,P=0;c.value?.querySelectorAll(`[${t}]`).forEach((R,X)=>{const q=R.getAttribute(`${t}`);A.push(q),_(R.getBoundingClientRect())?(S===null&&(S=X),S=Math.min(S,X),P=Math.max(P,X)):(a[`${t}`]=q,M.has(q)&&i([a]))});for(let R=S;R<P+1;R++)a[`${t}`]=A[R],s([a]),M.add(A[R])}function bn(A){return!A?.value||(c.value=A.value,!c?.value)?!1:(N.observe(c.value),C(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:bn,dragStart:v,dragMove:Q,dragEnd:$,onScroll:b,isSingleClick:k,cancelSelectAllBySingleClick:Z,selectFn:f,selectRange:D,isPressing:h,containerEl:c,observer:N}}function it(t){const n=ye(t),{observer:o,selectRange:l}=n,{onScroll:s,dragStart:i,dragMove:r,dragEnd:a,cancelSelectAllBySingleClick:f}=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}=he(`.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 h(d){d.button===0&&i(d.x,d.y)}function m(d){r(d.x,d.y)}function u(d){d.composedPath().some(L=>L?.getAttribute?.(t.attribute))||f(),a()}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",h),window.addEventListener("mousemove",m),window.addEventListener("mouseup",u)}catch(D){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",D)}}function p(){o.disconnect(),n.containerEl.value?.removeEventListener("scroll",s),n.containerEl.value?.removeEventListener("mousedown",h),window.removeEventListener("mousemove",m),window.removeEventListener("mouseup",u)}return{init:N,unMount:p}}function rt(t,n,o=600){const l=ye({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{observer:s}=l,{onScroll:i,dragStart:r,dragMove:a,dragEnd:f}=l;let M;function g(){clearTimeout(M)}function c(p){g(),p.composedPath().some(D=>!!D?.getAttribute?.(t.attribute))&&(M=setTimeout(()=>{const{clientX:D,clientY:L}=p.targetTouches[0];r(D,L),n?.(),a(D,L,()=>p.preventDefault()),p.preventDefault()},o))}function h(p){g();const{clientX:d,clientY:D}=p.targetTouches[0];a(d,D,()=>p.preventDefault())}function m(){g(),f()}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",i),l.containerEl.value?.addEventListener("touchstart",c),l.containerEl.value?.addEventListener("touchmove",h),window.addEventListener("touchcancel",m),window.addEventListener("touchend",m)}catch(d){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",d)}}function N(){s.disconnect(),l.containerEl.value?.removeEventListener("scroll",i),l.containerEl.value?.removeEventListener("touchstart",c),l.containerEl.value?.removeEventListener("touchmove",h),window.removeEventListener("touchcancel",m),window.removeEventListener("touchEnd",m)}return{init:u,unMount:N}}const Ce=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(Ce,()=>n("update:visiable",!1)),(s,i)=>(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:i[0]||(i[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(s.$slots,"default",{},void 0,!0)],34)])),[[e.unref(ve),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),kn="",H=(t,n)=>{const o=t.__vccOpts||t;for(const[l,s]of n)o[l]=s;return o},dt=H(ut,[["__scopeId","data-v-14584295"]]);function ft(t){function n(o,l){const s=document.createElement("div"),i={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(i),s),{close:()=>s?.remove()}}return{create:n}}function De({component:t,componentProps:n,delay:o=300}){const s=`lzc-delay-loading-${`${new Date().getTime()}`}`,i=`${o}ms`;return he(`@keyframes lzcDelayLoad {
|
|
7
7
|
to {
|
|
8
8
|
opacity: 1;
|
|
9
9
|
}
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
.${s} {
|
|
12
12
|
opacity: 0;
|
|
13
13
|
animation: lzcDelayLoad 0s ${i} forwards;
|
|
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+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MTQsMC4xMTc3NTIwMTEgQzExLjU4MjE0MjksLTAuMDEwNzA0NzIzNyAxMS43NzUsLTAuMDEwNzA0NzIzNyAxMS45MDM1NzE0LDAuMTE3NzUyMDExIEMxMi4wMzIxNDI5LDAuMjQ2MjA4NzQ2IDEyLjAzMjE0MjksMC40Mzg4OTM4NDkgMTEuOTAzNTcxNCwwLjU2NzM1MDU4NCBMNi40Niw2LjAwNSBMMTEuOTAzNTcxNCwxMS40NDMzNTQxIEMxMi4wMzIxNDI5LDExLjU3MTgxMD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NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+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,N,h,w,L,k;e.watch([i,r],([D,v])=>{U(D,v)},{immediate:!0});async function U(D,v){await x(D,v),D&&y()}async function x(D,v){if(D=D??i.value,v=v??r.value,!v)return;let{clientWidth:p=0,clientHeight:T=0}=D||{};const{clientWidth:C,clientHeight:z}=v;if(D instanceof HTMLImageElement){const O=Yt(D.naturalWidth||C,D.naturalHeight||z,C,z);p=O.width,T=O.height}(p===0||T===0)&&(p=d.value.width||C,T=d.value.height||z),d.value={width:Math.min(p,C),height:Math.min(T,z)},g.value={width:C,height:z}}function y(){const D=P();o.value=Math.max(o.value,D*2)}function A(D,v){const{width:p,height:T}=g.value,C=Math.max(0,(T-v)*.5),z=Math.max(0,(p-D)*.5);return{top:C,left:z}}async function _(D){const{touches:v}=D;M=v.length,!(M===2&&l.value)&&(a.zooming=M===2,N=Date.now(),c.start(D),Y("start",D),a.zooming&&(D.preventDefault(),u=a.scale,E=Pe(v),await W(a.scale),k||(k=Fe(v))),a.touched||(a.touched=!0))}async function V(D){const{touches:v}=D;if(M=v.length,c.move(D),Y("move",D),a.zooming&&M==2){D.preventDefault(),w=!1;const p=Pe(v),T=u*p/E;k&&B(T,k)}}async function Q(D){D.touches.length||(Y("end",D),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(D){if(a.preview)return;a.preview=!0;const{value:v}=f,{scaleW:p,scaleH:T}=S(D),{left:C,top:z}=A(p,T);D===1&&(v.maxHeight="100%"),v.width=`${p}px`,v.height=`${T}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(D){if(!a.preview)return;a.preview=!1;const v=r.value;if(!v)return;const{scrollTop:p,scrollLeft:T}=v,{width:C,height:z}=d.value,{scaleW:O,scaleH:H}=S(D),{top:F,left:q}=A(O,H),te=q!=0?q:T*-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,D),f.value=G,await e.nextTick(),a.offsetX=te,a.offsetY=oe,await je(20)}function Y(D,v){m.measure();let{clientX:p,clientY:T}=v.touches.length!=0?v.touches[0]:v.changedTouches[0];const{top:C,left:z,right:O,bottom:H}=m.arrivedState;if(D=="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<T;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()),D=="end"&&!L&&(p=c.startX.value,T=c.startY.value,L=!0),(D!="move"||L)&&t.onSwipeEdge?.(D,c.direction.value,p,T)}function S(D){const{width:v,height:p}=d.value;return{scaleW:ee(D*v),scaleH:ee(D*p)}}function j(){w||(w=!0,r.value?.addEventListener("transitionend",$))}async function B(D,v,p){if(D=ee(D),D=pe(D,n.value-n.value*.5,o.value+o.value*.5),D!==a.scale){a.preview&&await W(a.scale),v||(v={x:c.startX.value,y:c.startY.value});const{value:T}=f,{width:C,height:z}=d.value,{scaleW:O,scaleH:H}=S(D),{top:F,left:q}=A(O,H),te=D/a.scale,oe={top:Math.abs(z*D-g.value.height)*-1,bottom:F,left:Math.abs(C*D-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)),T.width=`${C}px`,T.height=`${z}px`,T.transitionDuration=p?Ut(D):"0s",T.transform=ye(G,De,D),a.offsetX=G,a.offsetY=De,a.scale=D,f.value=T,await e.nextTick(),p&&j(),t.onScale?.()}}function P(){const{width:D,height:v}=d.value,{width:p,height:T}=g.value,C=2.5;let z;return v==T?(z=p/D,z-1<.1&&(z=C)):z=Math.max(C,p/D,T/v),z}function b(){const D=a.scale>1?1:P();B(D,D!=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(D){if(M>1)return;const{offsetX:v,offsetY:p}=c,T=Date.now()-N;v.value<Le&&p.value<Le&&(T<Re?s.value?h?(clearTimeout(h),h=null,b()):h=setTimeout(async()=>{t.onTap?.(),h=null},Re):t.onTap?.():T>$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}),N=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(){N.value||(d.value=!0)}function Q(b){if(!N.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(){N.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:N,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 {
|
|
14
|
+
}`),{LoadingComp:e.defineComponent({setup(){const a=et();return e.onMounted(()=>{a.value?.classList?.add(s)}),()=>e.h(t,n)}})}}function Mt({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=De({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 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="",Se=H(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=H(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jA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+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}),i=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}),r=e.computed(()=>{let M={};return o.showClose&&!o.icon&&(M.paddingRight="16px"),M});function a(){o.closeOnClickOverlay&&n("close")}function f(){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(a,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(f,["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: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(r))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,vt)],10,Et),[[e.vShow,t.visible]])],4)]),_:1}))}}),Rn="",$n="",Lt=H(At,[["__scopeId","data-v-0947d1e3"]]);class xe{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 Te(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,i=n?.autoClose!==!1,r=n?.delay!=null?n.delay:300,a={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,i,r,a);const f=e.ref(!1);let M=null;const g=new xe(a);async function c(...m){if(o&&console.log(`useDelayAsync - handler - processing: ${f.value}`),!f.value){f.value=!0,M=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,f.value),s&&(!f.value||g.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 h(i),await n?.onSuccess?.(u)}catch(u){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(u),await h(i),await n?.onError?.(u)}}}async function h(m=!0){o&&console.log("useDelayAsync - close - closeLoading: ",m),f.value=!1,M&&clearTimeout(M),M=null,m&&await g.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),h()}),{processing:f,handler:c,close:h}}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),i=e.ref(0),r=e.ref(""),a=()=>r.value==="vertical",f=()=>r.value==="horizontal",M=()=>{o.value=0,l.value=0,s.value=0,i.value=0,r.value=""};function g(h,m){M(),t.value=h,n.value=m}function c(h,m){o.value=(h<0?0:h)-t.value,l.value=m-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=Ct(s.value,i.value))}return{move:c,start:g,reset:M,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:s,offsetY:i,direction:r,isVertical:a,isHorizontal:f}}const _e=250,be=5,xt=500;function _t(t){const{isDouble:n=!0}=t;let o,l;function s(){o=Date.now()}async function i(r,a){const f=Date.now()-o;r<be&&a<be&&(f<_e?n?l?(clearTimeout(l),l=null,t.onDoubleTap?.()):l=setTimeout(async()=>{t.onTap?.(),l=null},_e):t.onTap?.():f>xt&&t.onLongPress?.())}return{startTap:s,checkTap:i}}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),i=t*s,r=n*s;return{width:W(i),height:W(r)}}function kt(t){return t<3?"444ms":t<6?"555ms":"666ms"}function Ne(t,n,o){return Math.min(Math.max(t,n),o)}function W(t,n=2){return parseFloat(t.toFixed(n))}function fe(t,n,o){return t=W(t),n=W(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function Oe(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function ke(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Be(t){const n=e.ref(1),o=e.ref(9),l=e.ref(),s=e.ref(),i=e.ref({width:0,height:0}),r=e.ref({width:0,height:0}),a=e.reactive({level:1,offsetX:0,offsetY:0,zooming:!1,preview:!0,lastCenter:{x:0,y:0}}),f=e.ref({}),M=St(),g=bt(s,{onComplate(){a.preview||N()}}),c=_t({onTap(){t.onTap?.()},onDoubleTap(){t.onDoubleTap?.()},onLongPress(){t.onLongPress?.()}});Ae(s,y=>h(y)),e.watch([l,s],([y,w])=>{m(y,w)},{immediate:!0});async function h(y){const[w]=y;w.contentRect.width==r.value.width&&w.contentRect.height==r.value.height||(await m(l.value),await N(a.level,!0))}async function m(y,w){await T(y,w),y&&z()}async function u(y){if(!a.preview)return;a.preview=!1,y=y??a.level;const w=s.value;if(!w)return;const{scrollTop:I,scrollLeft:j}=w,{width:O,height:_}=i.value,{scaleW:B,scaleH:C}=Y(y),{top:v,left:Q}=x(B,C),$=Q!=0?Q:j*-1,b=v!=0?v:I*-1;w.scrollTop=0,w.scrollLeft=0;const{value:k}=f;k.width=`${O}px`,k.height=`${_}px`,k.maxHeight="none",k.transitionDuration="0s",k.transform=fe($,b,y),f.value=k,await e.nextTick(),a.offsetX=$,a.offsetY=b,await Te(20)}async function N(y,w){if(!w&&a.preview)return;a.preview=!0,y=y??a.level;const{value:I}=f,{scaleW:j,scaleH:O}=Y(y),{left:_,top:B}=x(j,O);y===1&&(I.maxHeight="100%"),I.width=`${j}px`,I.height=`${O}px`,I.transitionDuration="0s",I.transform=fe(_,B,1),f.value=I,await e.nextTick();const C=s.value;if(!C)return;const{offsetX:v,offsetY:Q}=a;v<0&&(C.scrollLeft=Math.abs(v)),Q<0&&(C.scrollTop=Math.abs(Q))}async function p(y,w,I){if(y=W(y),y=Ne(y,n.value-n.value*.5,o.value+o.value*.5),y==a.level)return;a.preview&&await u(),w||(w={x:M.startX.value,y:M.startY.value});const{value:j}=f,{width:O,height:_}=i.value,{scaleW:B,scaleH:C}=Y(y),{top:v,left:Q}=x(B,C),$=y/a.level,b={left:Math.abs(O*y-r.value.width)*-1,top:Math.abs(_*y-r.value.height)*-1,right:Q,bottom:v};let k=Q!=0?Q:(a.offsetX-w.x)*$+w.x,Z=v!=0?v:(a.offsetY-w.y)*$+w.y;k=W(Ne(k,b.left,b.right)),Z=W(Ne(Z,b.top,b.bottom)),j.width=`${O}px`,j.height=`${_}px`,j.transitionDuration=I?kt(y):"0s",j.transform=fe(k,Z,y),a.offsetX=k,a.offsetY=Z,a.level=y,f.value=j,await e.nextTick(),I&&g.startTransition(),t.onScale?.(y)}function d(){const y=a.level>1?1:U();p(y,void 0,!0)}function D(y,w){if(!a.preview)return;const I=s.value;!I||I.scrollTo({left:a.offsetX-y,top:a.offsetY-w})}async function L(){a.level>=n.value&&a.level<=o.value?a.zooming&&await N():a.level<n.value?await p(n.value,void 0,!0):a.level>o.value&&await p(o.value,a.lastCenter,!0),a.zooming=!1}function U(){const{width:y,height:w}=i.value,{width:I,height:j}=r.value,O=2.5;let _;return w==j?(_=I/y,_-1<.1&&(_=O)):_=Math.max(O,I/y,j/w),_}function Y(y){const{width:w,height:I}=i.value;return{scaleW:W(y*w),scaleH:W(y*I)}}function x(y,w){const{width:I,height:j}=r.value,O=Math.max(0,(j-w)*.5),_=Math.max(0,(I-y)*.5);return{top:O,left:_}}async function T(y,w){if(y=y??l.value,w=w??s.value,!w)return;let{clientWidth:I=0,clientHeight:j=0}=y||{};const{clientWidth:O,clientHeight:_}=w;if(y instanceof HTMLImageElement){const B=Ot(y.naturalWidth||O,y.naturalHeight||_,O,_);I=B.width,j=B.height}(I===0||j===0)&&(I=i.value.width||O,j=i.value.height||_),i.value={width:Math.min(I,O),height:Math.min(j,_)},r.value={width:O,height:_}}function z(){const y=U();o.value=Math.max(o.value,y*2)}return{touch:M,state:a,style:f,gesture:c,transition:g,imageRef:l,containerRef:s,switchToZoom:u,switchToPreview:N,panTo:D,zoomTo:p,zoomFinished:L,toggleZoom:d}}function Bt(t){const n=Be({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:i}=n;let r=!1,a=null;const f={top:0,left:0},M=ee(u,150);ne("keyup",p),ne("keydown",N);function g(d){const D=n.containerRef.value;if(!D)return;const{left:L,top:U}=D.getBoundingClientRect();s.startTap(),l.start(d.clientX-L,d.clientY-U),i.transitioning.value||(r=!0,f.left=L,f.top=U,o.offsetX=D.scrollLeft,o.offsetY=D.scrollTop),window.addEventListener("pointermove",c),window.addEventListener("pointerup",h)}function c(d){!r||(l.move(d.clientX,d.clientY),o.level!==1&&n.panTo(l.deltaX.value-f.left,l.deltaY.value-f.top))}function h(d){s.checkTap(l.offsetX.value,l.offsetY.value),l.reset(),r=!1,window.removeEventListener("pointermove",c),window.removeEventListener("pointerup",h)}function m(d){if(!d.ctrlKey)return;o.zooming||(o.zooming=!0,a=="Control"&&window.addEventListener("keyup",u)),d.preventDefault();let D=-d.deltaY;d.deltaMode===1?D*=.05:D*=d.deltaMode?1:.002,a!="Control"&&(D*=10),D=2**D;const L=o.level*D;o.lastCenter={x:d.offsetX,y:d.offsetY},n.zoomTo(L,o.lastCenter),a!="Control"&&M()}function u(){n.zoomFinished(),window.removeEventListener("keyup",u)}function N(d){a=d.key}function p(){a=null}return{core:n,onPointerDown:g,onWheel:m}}function Qt(t){const n=Be({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:s,transition:i,containerRef:r}=n,a=nt(r);let f,M,g,c;async function h(p){const{touches:d}=p;f=d.length,o.zooming=f===2,s.startTap(),l.start(d[0].clientX,d[0].clientY),N("start",p),o.zooming&&(p.preventDefault(),M=o.level,g=Oe(d),await n.switchToZoom(),o.lastCenter=ke(d))}async function m(p){const{touches:d}=p;if(f=d.length,l.move(d[0].clientX,d[0].clientY),N("move",p),o.zooming&&f==2){p.preventDefault();const D=Oe(d),L=M*D/g;n.zoomTo(L,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){a.measure();let{clientX:D,clientY:L}=d.touches.length!=0?d.touches[0]:d.changedTouches[0];const{top:U,left:Y,right:x,bottom:T}=a.arrivedState;if(p=="start")c=U||Y||x||T;else if(f==2)c=!1;else if(c){if(l.direction.value=="vertical")if(o.level!=1)c=!1;else{const z=l.startY.value<L;c=U&&z||T&&!z}else if(l.direction.value=="horizontal"){const z=l.startX.value<D;c=Y&&z||x&&!z}}c&&i.transitioning.value&&(c=!1,d.preventDefault()),p=="end"&&!c&&(D=l.startX.value,L=l.startY.value,c=!0),(p!="move"||c)&&t.onSwipeEdge?.(p,l.direction.value,D,L)}return{core:n,onTouchStart:h,onTouchMove:m,onTouchEnd:u}}function Yt(){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 Ut=["onClick"],Rt=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)`})),a=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function f(){!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(f,["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(a))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,Ut))}}),Pn="",$t=H(Rt,[["__scopeId","data-v-25d39b90"]]),Qe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class Pt{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h($t),{...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 Ft=["xlink:href","fill","color"],J=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,Ft)],4))}});function Ht(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:i=.9,observeMethod:r="classList"}=t,a=e.ref(!0),f=ee(w,100);let M,g="";const c=e.ref(0),h=e.ref(0),m=e.ref(0),u=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),N=e.ref({clientHeight:0}),p=e.computed(()=>!!h.value),d=e.computed(()=>u.value.scrollHeight>u.value.clientHeight),D=e.computed(()=>l?u.value.clientHeight-Y.value:u.value.clientHeight-N.value.clientHeight),L=e.computed(()=>u.value.scrollHeight-u.value.clientHeight),U=e.computed(()=>Math.max(u.value.clientHeight/u.value.scrollHeight,.05)),Y=e.computed(()=>U.value>i?0:U.value*u.value.clientHeight),x=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${m.value}px,0)`,height:l?`${Y.value}px`:void 0}));function T(b){y(),h.value=b.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,h.value=0,f()}function y(){a.value=!1}function w(){p.value||(a.value=!0)}function I(b){if(!p.value)return;let k=b.clientY-u.value.top-h.value;k<0?m.value=0:k>=D.value?m.value=D.value:m.value=k,n.value.scrollTo({top:m.value/D.value*L.value})}function j(){p.value||O()}function O(){cancelAnimationFrame(M),M=requestAnimationFrame(_)}function _(){n.value&&(c.value=s.scrollTop?.value??n.value.scrollTop,m.value=c.value/L.value*D.value)}function B(b){let k="addEventListener";b==="add"?k="addEventListener":k="removeEventListener",o.value?.[k]("pointerdown",T,{passive:!0}),window[k]("pointermove",I,{passive:!0}),window[k]("pointerup",z,{passive:!0})}const C=new MutationObserver(b=>{(r=="classList"||b.map(Z=>Z.oldValue).join().includes("height"))&&v()});function v(){u.value.top=n.value?.getBoundingClientRect().top??0,u.value.scrollHeight=n.value?.scrollHeight??0,u.value.clientHeight=n.value?.clientHeight??0}function Q(){y(),setTimeout(()=>{N.value.clientHeight=o.value?.clientHeight??0,w()},150)}function $(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",j,{passive:!0}),B("add");const b={};r==="classList"?Object.assign(b,{subtree:!0,childList:!0}):Object.assign(b,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),C.observe(n.value,b),setTimeout(()=>{v()},100),Q()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(c,()=>{y(),f()}),{isScrollEnd:a,isDragSlider:p,offsetTop:m,scrollTop:c,scrollable:d,sliderPos:x,init:$,modifySliderEventListener:B}}const Vt=(t=>(e.pushScopeId("data-v-405c22cf"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Wt=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=Ht({containerEl:i,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:a,isScrollEnd:f,sliderPos:M}=r,g=e.ref(!1),c=o.autoHide?e.computed(()=>g.value||!f.value):e.computed(()=>a.value),{load:h}=he(`.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,N)=>(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),N=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(N))},[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:N})=>(e.openBlock(),e.createElementBlock("div",{key:m(E,N),"data-key":m(E,N),style:e.normalizeStyle({height:`${e.unref(a)(N).height}px`,display:"flex"})},[e.renderSlot(M.$slots,"default",{data:E,index:N},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-dea30fb7"),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}),N=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(),l.value?.addEventListener("animationend",k),l.value?.classList.add("showing"),await je(10),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(N)?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-dea30fb7"]]),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(()=>{h(),e.nextTick(()=>{r.init()})}),e.onUnmounted(()=>{r.modifySliderEventListener("remove")});function m(){g.value=!0}function u(){g.value=!1}return n({uScrollBarReturn:r}),(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:m,onMouseleave:u,style:e.normalizeStyle(e.unref(M))},[e.renderSlot(N.$slots,"default",{},()=>[Vt],!0)],36),[[e.vShow,e.unref(c)]])]),_:3}))}}),Hn="",Xt=H(Wt,[["__scopeId","data-v-405c22cf"]]),Zt=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),Kt={class:"pull-refresh"},Gt={key:0,class:"pull-arrow-circle"},qt={key:0,class:"box-load"},Jt={class:"left-load"},en={class:"right-load"},tn=Zt(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),nn={class:"pull-arrow"},on={key:1},ln=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),a=e.ref(.3),f=e.ref(!1),M=e.ref(0),g=e.ref(0),c=e.ref(0),h=e.ref(0),m=e.ref(0),u=e.ref(),N=e.computed(()=>n.scrollTop),p=e.computed(()=>({transition:`${h.value}ms`,transform:`translate3d(0,${s.value}px, 0) scale(${i.value})`})),d=e.computed(()=>({borderColor:l,transition:h.value,transform:`rotate(${100+r.value}deg)`,opacity:a.value}));e.watch(m,T=>{T===0&&(s.value=-50,a.value=.3)}),e.watch(g,T=>{if(m.value===2)return;const z=Math.pow(T,o);z===0&&(s.value=-50),z<=50&&z>0&&(s.value=z-45,r.value=Math.pow(z,1.5),z>15?f.value=!0:f.value=!1),z>50&&(s.value=5,a.value=1,m.value)});const D=e.ref(0),L=T=>{D.value=T.touches[0].pageY},U=T=>{const z=T.touches[0].pageY-D.value;D.value=T.touches[0].pageY,!n.refreshOff&&(!n?.refresh||m.value!==2&&N.value===0&&(M.value===0&&(M.value=T.touches[0].pageY),c.value=0,x.value.style.transition=`${c.value}ms`,h.value=0,g.value=T.touches[0].pageY-M.value,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,z>0&&T.preventDefault()))},Y=()=>{if(n.refreshOff||!n?.refresh||m.value===2)return;M.value=0,c.value=300;const T=Math.pow(g.value,o);x.value.style.transition=`${c.value}ms`,T>50?(m.value=2,g.value=Math.pow(50,1/o),x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,h.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,g.value=0,x.value.style.transform=`translate3d(0, ${Math.pow(g.value,o)}px, 0)`,setTimeout(()=>{u.value=void 0},h.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",L),x.value?.addEventListener("touchmove",U),x.value?.addEventListener("touchend",Y))}),(T,z)=>(e.openBlock(),e.createElementBlock("div",Kt,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(p))},[u.value?(e.openBlock(),e.createElementBlock("div",on,e.toDisplayString(u.value),1)):(e.openBlock(),e.createElementBlock("div",Gt,[m.value==2?(e.openBlock(),e.createElementBlock("div",qt,[e.createElementVNode("div",Jt,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",en,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),tn])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(d))},[e.createElementVNode("div",nn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:f.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),Vn="",Ye=H(ln,[["__scopeId","data-v-df5da876"]]),sn=["data-key"],an={inheritAttrs:!1},rn=e.defineComponent({...an,__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=je(e.toRef(l,"data"),{itemHeight:m=>l.itemHeight(l.data[m]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:i,containerProps:r,wrapperProps:a,innerProps:f,getItemHeightData:M,scrollTop:g}=s;n({vListReturn:s});const c="virtualListWrapper"+new Date().getTime();function h(m,u){return l.getItemKey?l.getItemKey(m,u):`${u}`}return(m,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(r).onScroll&&e.unref(r).onScroll(...N)),ref:e.unref(r).ref,class:"virtualList"},m.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(a))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(f))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(i),({data:N,index:p})=>(e.openBlock(),e.createElementBlock("div",{key:h(N,p),"data-key":h(N,p),style:e.normalizeStyle({height:`${e.unref(M)(p).height}px`,display:"flex"})},[e.renderSlot(m.$slots,"default",{data:N,index:p},void 0,!0)],12,sn))),128))],16)],16)],16)])],64))}}),Wn="",cn=H(rn,[["__scopeId","data-v-dfe60586"]]),we=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),un={style:{position:"absolute"}},dn=we(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),fn=["width","height"],Mn=[we(()=>e.createElementVNode("title",null,"logo",-1)),we(()=>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))],gn=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",un,[dn,(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"},Mn,8,fn))]))}}),Kn="",mn=H(gn,[["__scopeId","data-v-33519afd"]]),hn=["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"],pn=["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),i=e.computed(()=>s.value),r=e.computed(()=>{const f=n?.value;return!f||f.startsWith("video/")?!0:f.startsWith("image/")?l.value?hn.includes(f):pn.includes(f):!1});t&&e.watch(t,f=>{o.value=f,s.value=!1});function a(){s.value=!0}return{imgSrc:o,isError:s,hasError:i,isSupport:r,handleError:a}}function Re(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const yn=t=>(e.pushScopeId("data-v-774cb54a"),t=t(),e.popScopeId(),t),Dn=["title"],Tn=yn(()=>e.createElementVNode("span",{class:"tip"},"\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301",-1)),Nn=["src"],wn=["src"],En=["title"],vn={inheritAttrs:!1},In=e.defineComponent({...vn,__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),a=e.ref(!1),{src:f,mime:M}=e.toRefs(o),{imgSrc:g,isSupport:c,hasError:h,handleError:m}=Ue(f,M),{vImageCancel:u}=Re(),{LoadingComp:N}=De({component:Se,delay:300}),p=Fe(()=>a.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!a.value);function d(){r.value=!0}function D(){r.value&&(a.value=!0)}async function L(){d(),p.value?(l.value?.addEventListener("animationend",U),l.value?.classList.add("showing"),await Te(10)):l.value&&n("load",l.value),l.value?.classList.remove("src-class")}function U(){l.value?.removeEventListener("animationend",U),l.value?.classList.remove("showing"),l.value&&n("load",l.value),D()}async function Y(T){T?L():s.value&&n("load",s.value),i.value=!0}function x(T){T?m():d(),i.value=!0}return(T,z)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[i.value?e.createCommentVNode("",!0):(e.openBlock(),e.createBlock(e.unref(N),{key:0})),e.unref(c)?e.unref(h)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},T.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(J,{class:"bad-image",name:"\u56FE\u7247\u635F\u574F"})],16,En)):e.renderSlot(T.$slots,"default",{key:2,src:e.unref(g),onLoad:Y,onError:x},()=>[e.unref(p)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},T.$attrs,{ref_key:"thumbnailRef",ref:s,onLoad:z[0]||(z[0]=y=>Y()),onError:z[1]||(z[1]=y=>x()),src:t.thumbnail}),null,16,Nn)),[[e.unref(u)]]):e.createCommentVNode("",!0),t.isShowSrc||r.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},T.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:z[2]||(z[2]=y=>Y(!0)),onError:z[3]||(z[3]=y=>x(!0)),src:e.unref(g)}),null,16,wn)),[[e.unref(u)],[e.vShow,r.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},T.$attrs,{title:e.unref(g),class:"tip-wrap"}),[e.createVNode(J,{class:"no-support-icon",name:"\u4E0D\u652F\u6301\u663E\u793A"}),Tn],16,Dn))],64))}}),Gn="",zn=H(In,[["__scopeId","data-v-774cb54a"]]),An=["title"],Ln=["src"],jn=["title"],Cn=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:a,handleError:f}=Ue(l,s),{vImageCancel:M}=Re();return(g,c)=>e.unref(a)?e.unref(r)?(e.openBlock(),e.createElementBlock("div",{key:2,title:e.unref(i),class:"icon-wrap"},[e.createVNode(J,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,jn)):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:c[0]||(c[0]=h=>o.value=!0),onError:c[1]||(c[1]=(...h)=>e.unref(f)&&e.unref(f)(...h)),src:e.unref(i)},null,40,Ln)),[[e.unref(M)],[e.vShow,o.value]]):(e.openBlock(),e.createElementBlock("div",{key:0,title:e.unref(i),class:"icon-wrap"},[e.createVNode(J,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"})],8,An))}}),qn="",Sn=H(Cn,[["__scopeId","data-v-5a7af152"]]);E.DefaultLoading=Se,E.Image=zn,E.Loading=mn,E.LoadingToast=xe,E.PageLoading=Tt,E.PullRefresh=Ye,E.ScrollBar=Xt,E.SvgIcon=J,E.Thumbnail=Sn,E.ToastCreator=Pt,E.VirtualList=cn,E.allSelectedKey=ae,E.closeDialogKey=Ce,E.dialogController=ft,E.getCenter=ke,E.getTransform=fe,E.isAllSelectedKey=ue,E.isSelectedKey=se,E.selectAllKey=re,E.selectKey=ie,E.selectedCountKey=de,E.toggleAllKey=oe,E.toggleKey=le,E.unselectAllKey=G,E.unselectKey=ce,E.useDelayAsync=jt,E.useDelayLoad=Mt,E.useDelayLoadComp=De,E.useDownDrag=Yt,E.useDragSelect=ye,E.useDragSelectByMobile=rt,E.useDragSelectByPc=it,E.useScaleImageByMobile=Qt,E.useScaleImageByPc=Bt,E.useSelectable=st,E.useSelectableByBase=at,E.useSelectableInjectors=lt,E.useVirtualList=je,E.vDebounceClick=Pe,E.vSingleClick=ve,Object.defineProperties(E,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
package/dist/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.lzc-modal[data-v-14584295]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-14584295]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-92a1804d]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-92a1804d]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--4e4a9ce4);height:var(--e56fe5c2);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-92a1804d .7s linear infinite}@keyframes ldio-mm5gwljcryb-92a1804d{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-92a1804d]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-3c54972f]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-3c54972f]{opacity:0;animation:loading-spin-3c54972f .8s var(--b1cf73a8) linear infinite}@keyframes loading-spin-3c54972f{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-0947d1e3]{display:flex;position:fixed;top:0;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-0947d1e3]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]>:not([hidden])~:not([hidden]){margin-top:4px;margin-bottom:0}.lzc-loading-toast-close[data-v-0947d1e3]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-0947d1e3]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-0947d1e3 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-0947d1e3]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;box-sizing:border-box;white-space:pre-wrap;line-height:26px}@keyframes lzc-spin-0947d1e3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lzc-fade-in{0%{opacity:0}to{opacity:1}}.lzc-animate-fade-in{animation:lzc-fade-in 1s linear 1}.lzc-animate-duration-300{animation-duration:.3s}@keyframes lzc-fade-out{0%{opacity:1}to{opacity:0}}.lzc-animate-fade-out{animation:lzc-fade-out 1s linear 1}@keyframes slide-25d39b90{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-25d39b90]{animation:slide-25d39b90 .3s linear}.v-leave-active[data-v-405c22cf]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-405c22cf]{opacity:0}.slider-wrapper[data-v-405c22cf]{position:absolute;right:0;touch-action:none}.default-slider[data-v-405c22cf]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-df5da876]{position:relative}.pull-refresh-box[data-v-df5da876]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-df5da876]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-df5da876]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-df5da876 3s infinite linear forwards}@keyframes boxs-df5da876{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-df5da876]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-df5da876 3s infinite linear forwards}@keyframes pr1A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-df5da876]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-df5da876 3s infinite linear forwards}@keyframes pr2A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-df5da876]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-df5da876]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-df5da876]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-df5da876]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-df5da876]{opacity:1}.left-item[data-v-df5da876]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-df5da876]{color:#e93b3d}.virtualList[data-v-dfe60586]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-dfe60586]{width:100%;height:100%;position:relative}@keyframes loading-rotate-33519afd{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-33519afd]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-33519afd var(--312487ac) linear infinite}.v-enter-active[data-v-
|
|
1
|
+
.lzc-modal[data-v-14584295]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-14584295]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-92a1804d]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-92a1804d]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--4e4a9ce4);height:var(--e56fe5c2);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-92a1804d .7s linear infinite}@keyframes ldio-mm5gwljcryb-92a1804d{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-92a1804d]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-3c54972f]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-3c54972f]{opacity:0;animation:loading-spin-3c54972f .8s var(--b1cf73a8) linear infinite}@keyframes loading-spin-3c54972f{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-0947d1e3]{display:flex;position:fixed;top:0;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-0947d1e3]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;box-sizing:border-box}.lzc-loading-toast-content[data-v-0947d1e3]>:not([hidden])~:not([hidden]){margin-top:4px;margin-bottom:0}.lzc-loading-toast-close[data-v-0947d1e3]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-0947d1e3]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-0947d1e3 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-0947d1e3]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;box-sizing:border-box;white-space:pre-wrap;line-height:26px}@keyframes lzc-spin-0947d1e3{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lzc-fade-in{0%{opacity:0}to{opacity:1}}.lzc-animate-fade-in{animation:lzc-fade-in 1s linear 1}.lzc-animate-duration-300{animation-duration:.3s}@keyframes lzc-fade-out{0%{opacity:1}to{opacity:0}}.lzc-animate-fade-out{animation:lzc-fade-out 1s linear 1}@keyframes slide-25d39b90{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-25d39b90]{animation:slide-25d39b90 .3s linear}.v-leave-active[data-v-405c22cf]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-405c22cf]{opacity:0}.slider-wrapper[data-v-405c22cf]{position:absolute;right:0;touch-action:none}.default-slider[data-v-405c22cf]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-df5da876]{position:relative}.pull-refresh-box[data-v-df5da876]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-df5da876]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-df5da876]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-df5da876 3s infinite linear forwards}@keyframes boxs-df5da876{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-df5da876]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-df5da876 3s infinite linear forwards}@keyframes pr1A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-df5da876]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-df5da876]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-df5da876 3s infinite linear forwards}@keyframes pr2A-df5da876{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-df5da876]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-df5da876]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-df5da876]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-df5da876]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-df5da876]{opacity:1}.left-item[data-v-df5da876]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-df5da876]{color:#e93b3d}.virtualList[data-v-dfe60586]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-dfe60586]{width:100%;height:100%;position:relative}@keyframes loading-rotate-33519afd{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-33519afd]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-33519afd var(--312487ac) linear infinite}.v-enter-active[data-v-774cb54a],.v-leave-active[data-v-774cb54a]{transition:opacity .6s ease}.v-enter-from[data-v-774cb54a],.v-leave-to[data-v-774cb54a]{opacity:0}.tip[data-v-774cb54a]{font-size:14px;color:#aeaeae}.tip-wrap[data-v-774cb54a]{display:flex;flex-direction:column;align-items:center;justify-content:center}.no-support-icon[data-v-774cb54a]{width:162px;height:134px}.bad-image[data-v-774cb54a]{width:92px;height:92px}.src-class[data-v-774cb54a]{width:unset!important;height:unset!important;max-width:none!important;max-height:none!important;transform:scale(0);opacity:.00001}@keyframes fadeIn-774cb54a{0%{opacity:0}to{opacity:1}}.showing[data-v-774cb54a]{animation:fadeIn-774cb54a .35s linear}img[data-v-774cb54a]{user-select:none;pointer-events:none}img[data-v-5a7af152]{pointer-events:none}.icon-wrap[data-v-5a7af152]{display:flex;align-items:center;justify-content:center}.icon[data-v-5a7af152]{width:100%;height:100%}
|