@lazycatcloud/lzc-toolkit 0.0.214 → 0.0.216
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 +984 -971
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- package/dist/types/useScaleImage/index.d.ts +4 -0
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
(function(L,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(L=typeof globalThis<"u"?globalThis:L||self,e(L.ui={},L.Vue))})(this,function(L,e){"use strict";const xe={created(t,n){let o,l,a;function s(u){u.button==0&&(o=Date.now(),l=u.clientX,a=u.clientY,n.modifiers?.stop&&u.stopPropagation())}function i(u){if(u.button!=0||l===void 0)return;const c=u.clientX,f=u.clientY,M=Math.abs(c-l),d=Math.abs(f-a);M>5||d>5||Date.now()-o>300||n.value?.(u)}t._down__=s,t._up__=i,t.addEventListener("pointerdown",s),t.addEventListener("pointerup",i)},unmounted(t){t.removeEventListener("pointerdown",t._down__),t.removeEventListener("pointerup",t._up__)}},qe={created(t,n){const{fn:o,ms:l=1500}=n.value;let a=null;function s(i){a||(o(i),a=setTimeout(()=>{a=null},l))}t.addEventListener("click",s)}},ye={beforeMount(t,n){n.value()}};function Je(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 et(t,n){let o,l,a;const s=e.ref(!0),i=()=>{s.value=!0,a()};e.watch(t,i,{flush:"sync"});const u=typeof n=="function"?n:n.get,c=typeof n=="function"?void 0:n.set,f=e.customRef((M,d)=>(l=M,a=d,{get(){return s.value&&(o=u(),s.value=!1),l(),o},set(m){c?.(m)}}));return Object.isExtensible(f)&&(f.trigger=i),f}function De(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function W(t){return typeof t=="function"?t():e.unref(t)}const be=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const tt=Object.prototype.toString,nt=t=>tt.call(t)==="[object Object]",J=()=>{};function Oe(t,n){function o(...l){return new Promise((a,s)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(a).catch(s)})}return o}function ot(t,n={}){let o,l,a=J;const s=u=>{clearTimeout(u),a(),a=J};return u=>{const c=W(t),f=W(n.maxWait);return o&&s(o),c<=0||f!==void 0&&f<=0?(l&&(s(l),l=null),Promise.resolve(u())):new Promise((M,d)=>{a=n.rejectOnCancel?d:M,f&&!l&&(l=setTimeout(()=>{o&&s(o),l=null,M(u())},f)),o=setTimeout(()=>{l&&s(l),l=null,M(u())},c)})}}function lt(...t){let n=0,o,l=!0,a=J,s,i,u,c,f;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:i,trailing:u=!0,leading:c=!0,rejectOnCancel:f=!1}=t[0]:[i,u=!0,c=!0,f=!1]=t;const M=()=>{o&&(clearTimeout(o),o=void 0,a(),a=J)};return m=>{const g=W(i),r=Date.now()-n,y=()=>s=m();return M(),g<=0?(n=Date.now(),y()):(r>g&&(c||!l)?(n=Date.now(),y()):u&&(s=new Promise((N,w)=>{a=f?w:N,o=setTimeout(()=>{n=Date.now(),l=!0,N(y()),M()},Math.max(0,g-r))})),!c&&!o&&(o=setTimeout(()=>l=!0,g)),l=!1,s)}}function at(t){return t||e.getCurrentInstance()}function oe(t,n=200,o={}){return Oe(ot(n,o),t)}function Te(t,n=200,o=!1,l=!0,a=!1){return Oe(lt(n,o,l,a),t)}function Ne(t,n=!0,o){at()?e.onMounted(t,o):n?t():e.nextTick(t)}function Z(t){var n;const o=W(t);return(n=o?.$el)!=null?n:o}const le=be?window:void 0,st=be?window.document:void 0;function ae(...t){let n,o,l,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,a]=t,n=le):[n,o,l,a]=t,!n)return J;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const s=[],i=()=>{s.forEach(M=>M()),s.length=0},u=(M,d,m,g)=>(M.addEventListener(d,m,g),()=>M.removeEventListener(d,m,g)),c=e.watch(()=>[Z(n),W(a)],([M,d])=>{if(i(),!M)return;const m=nt(d)?{...d}:d;s.push(...o.flatMap(g=>l.map(r=>u(M,g,r,m))))},{immediate:!0,flush:"post"}),f=()=>{c(),i()};return De(f),f}function it(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function rt(t){const n=it();return e.computed(()=>(n.value,Boolean(t())))}function ct(t){const n=e.getCurrentInstance(),o=et(()=>null,()=>t?Z(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function we(t,n,o={}){const{window:l=le,...a}=o;let s;const i=rt(()=>l&&"ResizeObserver"in l),u=()=>{s&&(s.disconnect(),s=void 0)},c=e.computed(()=>Array.isArray(t)?t.map(d=>Z(d)):[Z(t)]),f=e.watch(c,d=>{if(u(),i.value&&l){s=new ResizeObserver(n);for(const m of d)m&&s.observe(m,a)}},{immediate:!0,flush:"post"}),M=()=>{u(),f()};return De(M),{isSupported:i,stop:M}}function ut(t,n={width:0,height:0},o={}){const{window:l=le,box:a="content-box"}=o,s=e.computed(()=>{var d,m;return(m=(d=Z(t))==null?void 0:d.namespaceURI)==null?void 0:m.includes("svg")}),i=e.ref(n.width),u=e.ref(n.height),{stop:c}=we(t,([d])=>{const m=a==="border-box"?d.borderBoxSize:a==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(l&&s.value){const g=Z(t);if(g){const r=l.getComputedStyle(g);i.value=Number.parseFloat(r.width),u.value=Number.parseFloat(r.height)}}else if(m){const g=Array.isArray(m)?m:[m];i.value=g.reduce((r,{inlineSize:y})=>r+y,0),u.value=g.reduce((r,{blockSize:y})=>r+y,0)}else i.value=d.contentRect.width,u.value=d.contentRect.height},o);Ne(()=>{const d=Z(t);d&&(i.value="offsetWidth"in d?d.offsetWidth:n.width,u.value="offsetHeight"in d?d.offsetHeight:n.height)});const f=e.watch(()=>Z(t),d=>{i.value=d?n.width:0,u.value=d?n.height:0});function M(){c(),f()}return{width:i,height:u,stop:M}}const _e=1;function dt(t,n={}){const{throttle:o=0,idle:l=200,onStop:a=J,onScroll:s=J,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:u={capture:!1,passive:!0},behavior:c="auto",window:f=le,onError:M=D=>{console.error(D)}}=n,d=e.ref(0),m=e.ref(0),g=e.computed({get(){return d.value},set(D){y(D,void 0)}}),r=e.computed({get(){return m.value},set(D){y(void 0,D)}});function y(D,C){var B,$,T;if(!f)return;const z=W(t);!z||(T=z instanceof Document?f.document.body:z)==null||T.scrollTo({top:(B=W(C))!=null?B:r.value,left:($=W(D))!=null?$:g.value,behavior:W(c)})}const N=e.ref(!1),w=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),I=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),S=D=>{!N.value||(N.value=!1,I.left=!1,I.right=!1,I.top=!1,I.bottom=!1,a(D))},h=oe(S,o+l),p=D=>{var C;if(!f)return;const B=((C=D?.document)==null?void 0:C.documentElement)||D?.documentElement||Z(D),{display:$,flexDirection:T}=getComputedStyle(B),z=B.scrollLeft;I.left=z<d.value,I.right=z>d.value;const b=Math.abs(z)<=(i.left||0),k=Math.abs(z)+B.clientWidth>=B.scrollWidth-(i.right||0)-_e;$==="flex"&&T==="row-reverse"?(w.left=k,w.right=b):(w.left=b,w.right=k),d.value=z;let _=B.scrollTop;D===f.document&&!_&&(_=f.document.body.scrollTop),I.top=_<m.value,I.bottom=_>m.value;const A=Math.abs(_)<=(i.top||0),E=Math.abs(_)+B.clientHeight>=B.scrollHeight-(i.bottom||0)-_e;$==="flex"&&T==="column-reverse"?(w.top=E,w.bottom=A):(w.top=A,w.bottom=E),m.value=_},v=D=>{var C;if(!f)return;const B=(C=D.target.documentElement)!=null?C:D.target;p(B),N.value=!0,h(D),s(D)};return ae(t,"scroll",o?Te(v,o,!0,!1):v,u),Ne(()=>{try{const D=W(t);if(!D)return;p(D)}catch(D){M(D)}}),ae(t,"scrollend",S,u),{x:g,y:r,isScrolling:N,arrivedState:w,directions:I,measure(){const D=W(t);f&&D&&p(D)}}}let ft=0;function ve(t,n={}){const o=e.ref(!1),{document:l=st,immediate:a=!0,manual:s=!1,id:i=`vueuse_styletag_${++ft}`}=n,u=e.ref(t);let c=()=>{};const f=()=>{if(!l)return;const d=l.getElementById(i)||l.createElement("style");d.isConnected||(d.id=i,n.media&&(d.media=n.media),l.head.appendChild(d)),!o.value&&(c=e.watch(u,m=>{d.textContent=m},{immediate:!0}),o.value=!0)},M=()=>{!l||!o.value||(c(),l.head.removeChild(l.getElementById(i)),o.value=!1)};return a&&!s&&Ne(f),s||De(M),{id:i,css:u,unload:M,load:f,isLoaded:e.readonly(o)}}function Mt(t,n,o){const l=t.style[n];return l!=o&&(t.style[n]=o),{reset(){l!=o&&(t.style[n]=l)}}}function ke(t,n){const{scrollEndHook:o,itemHeight:l,overscan:a=5}=n,s=e.ref(null),i=ut(s),u=e.ref(!0),c=oe(p,100);let f;const M=e.shallowRef(t),d=e.ref(0),m=e.ref({start:0,end:10}),g=e.ref({start:0,end:a});let r=0;const y=e.ref([]),N=e.computed(()=>{let{sum:A,height:E}={sum:0,height:0};return M.value.map((Q,Y)=>(typeof l=="number"?E=l:E=l(Y),A+=E,{height:E,sum:A}))}),w=e.computed(()=>$(m.value.start)),I=e.computed(()=>typeof l=="number"?N.value.length*l:N.value[N.value.length-1]?.sum||0),S=e.computed(()=>{const{start:A,end:E}=g.value;return y.value.slice(A,E)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(f)),e.watch(M,()=>{(i.width.value||i.height.value)&&v()},{deep:!0}),e.watch([i.width,i.height],([A,E])=>{(A||E)&&v()},{deep:!0}),e.watch(d,()=>{h(),c()});function h(){u.value=!1}function p(){u.value=!0,o?.()}function v(){cancelAnimationFrame(f),f=requestAnimationFrame(D)}function D(){if(s.value){d.value=s.value.scrollTop;let A=C(d.value);r=B(A);let E=Math.max(0,A-a),Q=Math.min(A+r+a,M.value.length);m.value={start:E,end:Q},y.value=M.value.slice(E,Q).map((Y,O)=>({data:Y,index:O+E})),g.value.start=A-E,g.value.end=g.value.start+r}}function C(A){let E=0,Q=N.value.length-1,Y=-1;for(;E<=Q;){const O=Math.floor((E+Q)/2);N.value[O].sum>=A?(Y=O,Q=O-1):E=O+1}return Math.max(0,Y)}function B(A){let E=0,Q=0;for(let Y=A;Y<N.value.length&&(E++,Q+=N.value[Y].height,!(Q>=i.height.value));Y++);return E}function $(A){if(typeof l=="number")return A*l;let E=N.value[A];return E?E.sum-E.height:0}function T(A){return N.value[A]||{sum:0,height:0}}function z(A,E="smooth"){if(s.value){const{reset:Q}=Mt(s.value,"scrollBehavior",E),Y=T(A);s.value.scrollTop=Y.sum-Y.height,D(),Q()}if(s.value){const Q=T(A);s.value.scrollTop=Q.sum-Q.height,D()}}const b=e.computed(()=>({style:{width:"100%",height:`${I.value}px`,pointerEvents:u.value?void 0:"none"}})),k=e.computed(()=>({style:{transform:`translate3d(0, ${w.value}px, 0)`,"will-change":"transform"}})),_={overflowY:"auto"};return{list:y,visiableList:S,getItemHeightData:T,getoffsetTopIndex:C,totalHeight:I,clientHeight:i.height,scrollTo:z,scrollTop:d,isScrollEnd:u,containerProps:{ref:s,onScroll:()=>{v()},style:_},wrapperProps:b,innerProps:k}}const Ee=Symbol(),se=Symbol(),ie=Symbol(),re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),fe=Symbol(),Me=Symbol(),ee=Symbol(),ge=Symbol();function gt(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:a}={voidFn:N=>{},boolFn:N=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},s=e.inject(Ee,"id"),i=e.inject(ce,a),u=e.inject(re,n),c=e.inject(Me,o),f=e.inject(ie,t),M=e.inject(se,t),d=e.inject(ue,t),m=e.inject(de,t),g=e.inject(fe,t),r=e.inject(ee,t),y=e.inject(ge,l);return{itemKey:s,selected:i,isSelected:u,isAllSelected:c,toggle:f,toggleAll:M,select:d,selectAll:m,unselect:g,unselectAll:r,selectedCount:y}}function mt(t,n,o={deep:!0,useAllFlagOptimizatiofn:!0}){const l=e.ref(!1),a=e.ref(new Set),s=e.reactive(new Map);e.watch(t,h=>{i(h)},{deep:o.deep,immediate:!0}),e.watch(()=>t.value.length,()=>{i(t.value)}),e.onScopeDispose(()=>{l.value=!1,a.value.clear(),s.clear()});function i(h){s.clear(),h.forEach(p=>{s.has(p[n])||s.set(p[n],p)}),S()}const u=e.computed(()=>{let h=[];if(l.value!=null)l.value&&(h=Array.from(s.values()));else if(a.value.size){let p;a.value.forEach(v=>{p=s.get(v),p&&h.push(p)})}return h}),c=e.computed(()=>{let h=0;return l.value!=null?l.value&&(h=s.size):h=a.value.size,h}),f=e.computed(()=>{let h;if(l.value!=null)h=l.value;else{const p=a.value.size,v=s.size;h=p==v}return h});function M(){l.value=!0}function d(){l.value=!1}function m(h){s.has(h)&&a.value.add(h)}function g(h){N(()=>{h.forEach(p=>{m(p[n])})})}function r(h){N(()=>{h.forEach(p=>{a.value.delete(p[n])})})}function y(h){return l.value!=null?l.value:a.value.has(h[n])}function N(h){l.value!=null&&(l.value?a.value=new Set(Array.from(s.keys())):a.value=new Set),h(),o.useAllFlagOptimizatiofn?a.value.size==0?l.value=!1:a.value.size==s.size?l.value=!0:l.value=null:l.value=null}function w(h){N(()=>{h.forEach(p=>{y(p)?a.value.delete(p[n]):m(p[n])})})}function I(){const{value:h}=f;h?d():M()}function S(){const h=[];a.value.forEach(p=>{s.get(p)||h.push(p)}),h.forEach(p=>a.value.delete(p))}return e.provide(Ee,n),e.provide(se,I),e.provide(ie,w),e.provide(re,y),e.provide(ce,u),e.provide(ue,g),e.provide(de,M),e.provide(fe,r),e.provide(Me,f),e.provide(ee,d),e.provide(ee,d),e.provide(ge,c),{selected:u,select:g,selectAll:M,unselect:r,unselectAll:d,toggle:w,toggleAll:I,isSelected:y,isAllSelected:f,selectedCount:c}}function ht(t){const n=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let r=[];return n.value!=null?n.value&&(r=t.value):o.value.size&&(r=Array.from(o.value.values())),r}),a=e.computed(()=>{let r=0;return n.value!=null?n.value&&(r=t.value.length):r=o.value.size,r}),s=e.computed(()=>{let r;if(n.value!=null)r=n.value;else{const y=o.value.size,N=t.value.length;r=y==N}return r});function i(){n.value=!0}function u(){n.value=!1}function c(r){d(()=>{r.forEach(y=>{o.value.add(y)})})}function f(r){d(()=>{r.forEach(y=>{o.value.delete(y)})})}function M(r){return n.value!=null?n.value:o.value.has(r)}function d(r){n.value!=null&&(n.value?o.value=new Set(Array.from(t.value)):o.value=new Set),r(),o.value.size==0?n.value=!1:o.value.size==t.value.length?n.value=!0:n.value=null}function m(r){d(()=>{r.forEach(y=>{M(y)?o.value.delete(y):o.value.add(y)})})}function g(){const{value:r}=s;r?u():i()}return e.provide(se,g),e.provide(ie,m),e.provide(re,M),e.provide(ce,l),e.provide(ue,c),e.provide(de,i),e.provide(fe,f),e.provide(Me,s),e.provide(ee,u),e.provide(ee,u),e.provide(ge,a),{selected:l,select:c,selectAll:i,unselect:f,unselectAll:u,toggle:m,toggleAll:g,isSelected:M,isAllSelected:s,selectedCount:a}}function pt(t,n){return t>n?"horizontal":n>t?"vertical":""}function yt(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),a=e.ref(0),s=e.ref(0),i=e.ref(""),u=()=>i.value==="vertical",c=()=>i.value==="horizontal",f=()=>{o.value=0,l.value=0,a.value=0,s.value=0,i.value=""};return{move:(m,g)=>{o.value=(m<0?0:m)-t.value,l.value=g-n.value,a.value=Math.abs(o.value),s.value=Math.abs(l.value);const r=10;(!i.value||a.value<r&&s.value<r)&&(i.value=pt(a.value,s.value))},start:(m,g)=>{f(),t.value=m,n.value=g},reset:f,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:a,offsetY:s,direction:i,isVertical:u,isHorizontal:c}}function Ie(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ze({key:t,customAttributeValue:n,attribute:o,selectWay:l="colum",scrollOptions:a={},getSelectMap:s=()=>({})}){const{select:i=Ie("\u9009\u62E9"),unselect:u=Ie("\u53D6\u6D88\u9009\u62E9"),unselectAll:c=Ie("\u53D6\u6D88\u5168\u9009"),selected:f=e.computed(()=>[])}=s();let M={};const d=e.computed(()=>Te(l==="colum"?Wn:Xn,50)),m=e.computed(()=>t??o),g=(()=>n?x=>n(x):x=>x)(),r=new Set;let y=new Set;const N=e.ref(!0),w=e.ref(),I=e.ref(!1),S=e.ref({x:0,y:0}),h=e.ref({x:0,y:0,scrollTop:0}),p=e.ref({}),v=e.ref({top:0,height:0,sync(x=!1){v.value.top=w.value?.scrollTop||0,x&&(v.value.height=w.value?.scrollHeight||0)}}),D=e.computed(()=>I.value?{left:Math.min(S.value.x,h.value.x)-p.value.left,top:Math.min(S.value.y,h.value.y)-p.value.top,width:Math.abs(S.value.x-h.value.x),height:Math.abs(S.value.y-h.value.y)}:{left:0,top:0,width:0,height:0}),C=e.ref(!1),{margin:B=50,startSpeed:$=30,maxSpeed:T=30}=a;let z;const b=B,k=$,_=T,A=x=>x**1;let E=0;function Q(x){if(cancelAnimationFrame(z),E=Y(x),E=Math.max(Math.min(E,_),-_),E!==0){const j=w.value;if(!j||!I.value)return;const P=v.value.height-p.value.height;let R=v.value.top+Number(E);R=Math.min(Math.max(0,R),P),j.scrollTop=R,U(),z=requestAnimationFrame(()=>Q(x))}}function Y(x){if(w.value){const P=p.value,R=P.bottom-x;if(R<b)return k*A(1-R/b);const F=x-P.top;if(F<b)return-k*A(1-F/b)}return 0}function O(x){const j={...D.value,right:0,bottom:0};return j.left+=p.value.left,j.top+=p.value.top-v.value.top,j.right=j.width+j.left,j.bottom=j.height+j.top,j.left<x.right&&j.right>x.left&&j.top<x.bottom&&j.bottom>x.top}function U(){v.value.sync();const{top:x,height:j}=v.value;h.value.y=Math.min(j+p.value.top,h.value.y+x-h.value.scrollTop),h.value.scrollTop=x}function V(x,j,P="dynamic-styles"){let R=document.getElementById(P);R||(R=document.createElement("style"),R.id=P,document.head.appendChild(R));const F=R.sheet.cssRules,K=F.length,pe=`${x} { ${j} }`;for(let te=0;te<K;te++){const je=F[te];if(je.selectorText===x&&je.style.cssText===j)return}R.sheet.insertRule(pe,K)}function H(x,j){N.value=!0,I.value=!0,v.value.sync(!0);const P=j+v.value.top;S.value.x=x,S.value.y=P,h.value.x=x,h.value.y=P,w.value?.classList.add("disable-scroll-behavior"),r.clear();const R=f.value;y=new Set(R.map(F=>F[m.value])),Ge()}function q(x,j,P){!I.value||(N.value&&(N.value=!1,l==="colum"&&!C.value&&!he()&&c()),P?.(),Q(j),h.value.x=Math.max(x,p.value.left),h.value.y=Math.min(j+v.value.top,v.value.height+p.value.top),h.value.scrollTop=v.value.top,d.value())}function Hn(){I.value=!1,w.value?.classList.remove("disable-scroll-behavior")}function Fn(){!I.value||(E||U(),d.value())}function he(){if(!I.value)return!1;const{width:x,height:j}=D.value;return!(Math.max(x,j)>5)}function Vn(){he()&&c()}function Wn(){he()||w.value?.querySelectorAll(`[${o}]`).forEach(x=>{const j=g(x.getAttribute(`${o}`));M[m.value]=j;const P=y.has(j),R=r.has(j);O(x.getBoundingClientRect())?R||(P?u([M]):i([M]),r.add(j)):R&&(P?i([M]):u([M]),r.delete(j))})}function Xn(){const x=[];let j=null,P=0;w.value?.querySelectorAll(`[${o}]`).forEach((R,F)=>{const K=g(R.getAttribute(`${o}`));x.push(K),O(R.getBoundingClientRect())&&(j===null&&(j=F),j=Math.min(j,F),P=Math.max(P,F))}),w.value?.querySelectorAll(`[${o}]`).forEach((R,F)=>{const K=x[F],pe=y.has(K),te=r.has(K);j!==null&&F>=j&&F<=P?te||(M[m.value]=K,pe?u([M]):i([M]),r.add(K)):te&&(M[m.value]=K,pe?i([M]):u([M]),r.delete(K))})}function Ge(){!w.value||(p.value=w.value.getBoundingClientRect())}function Kn(x){return!x?.value||(w.value=x.value,!w?.value)?!1:(Ge(),V(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Kn,dragStart:H,dragMove:q,dragEnd:Hn,onScroll:Fn,isSingleClick:he,cancelSelectAllBySingleClick:Vn,selectFn:d,getAttributeValue:g,incrementalSelect:C,selectRange:D,isPressing:I,containerEl:w}}function Dt(t,n=!1){const o=ze(t),{selectRange:l}=o,{onScroll:a,dragStart:s,dragMove:i,dragEnd:u,cancelSelectAllBySingleClick:c}=o,f=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:M}=ve(`.drag-select-box {
|
|
1
|
+
(function(L,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(L=typeof globalThis<"u"?globalThis:L||self,e(L.ui={},L.Vue))})(this,function(L,e){"use strict";const _e={created(t,n){let o,l,a;function s(u){u.button==0&&(o=Date.now(),l=u.clientX,a=u.clientY,n.modifiers?.stop&&u.stopPropagation())}function i(u){if(u.button!=0||l===void 0)return;const g=u.clientX,r=u.clientY,d=Math.abs(g-l),f=Math.abs(r-a);d>5||f>5||Date.now()-o>300||n.value?.(u)}t._down__=s,t._up__=i,t.addEventListener("pointerdown",s),t.addEventListener("pointerup",i)},unmounted(t){t.removeEventListener("pointerdown",t._down__),t.removeEventListener("pointerup",t._up__)}},tt={created(t,n){const{fn:o,ms:l=1500}=n.value;let a=null;function s(i){a||(o(i),a=setTimeout(()=>{a=null},l))}t.addEventListener("click",s)}},we={beforeMount(t,n){n.value()}};function nt(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 ot(t,n){let o,l,a;const s=e.ref(!0),i=()=>{s.value=!0,a()};e.watch(t,i,{flush:"sync"});const u=typeof n=="function"?n:n.get,g=typeof n=="function"?void 0:n.set,r=e.customRef((d,f)=>(l=d,a=f,{get(){return s.value&&(o=u(),s.value=!1),l(),o},set(m){g?.(m)}}));return Object.isExtensible(r)&&(r.trigger=i),r}function ve(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function K(t){return typeof t=="function"?t():e.unref(t)}const ke=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const lt=Object.prototype.toString,at=t=>lt.call(t)==="[object Object]",te=()=>{};function Be(t,n){function o(...l){return new Promise((a,s)=>{Promise.resolve(t(()=>n.apply(this,l),{fn:n,thisArg:this,args:l})).then(a).catch(s)})}return o}function st(t,n={}){let o,l,a=te;const s=u=>{clearTimeout(u),a(),a=te};return u=>{const g=K(t),r=K(n.maxWait);return o&&s(o),g<=0||r!==void 0&&r<=0?(l&&(s(l),l=null),Promise.resolve(u())):new Promise((d,f)=>{a=n.rejectOnCancel?f:d,r&&!l&&(l=setTimeout(()=>{o&&s(o),l=null,d(u())},r)),o=setTimeout(()=>{l&&s(l),l=null,d(u())},g)})}}function it(...t){let n=0,o,l=!0,a=te,s,i,u,g,r;!e.isRef(t[0])&&typeof t[0]=="object"?{delay:i,trailing:u=!0,leading:g=!0,rejectOnCancel:r=!1}=t[0]:[i,u=!0,g=!0,r=!1]=t;const d=()=>{o&&(clearTimeout(o),o=void 0,a(),a=te)};return m=>{const M=K(i),c=Date.now()-n,y=()=>s=m();return d(),M<=0?(n=Date.now(),y()):(c>M&&(g||!l)?(n=Date.now(),y()):u&&(s=new Promise((v,w)=>{a=r?w:v,o=setTimeout(()=>{n=Date.now(),l=!0,v(y()),d()},Math.max(0,M-c))})),!g&&!o&&(o=setTimeout(()=>l=!0,M)),l=!1,s)}}function rt(t){return t||e.getCurrentInstance()}function ie(t,n=200,o={}){return Be(st(n,o),t)}function Ee(t,n=200,o=!1,l=!0,a=!1){return Be(it(n,o,l,a),t)}function Ie(t,n=!0,o){rt()?e.onMounted(t,o):n?t():e.nextTick(t)}function q(t){var n;const o=K(t);return(n=o?.$el)!=null?n:o}const re=ke?window:void 0,ct=ke?window.document:void 0;function ce(...t){let n,o,l,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,a]=t,n=re):[n,o,l,a]=t,!n)return te;Array.isArray(o)||(o=[o]),Array.isArray(l)||(l=[l]);const s=[],i=()=>{s.forEach(d=>d()),s.length=0},u=(d,f,m,M)=>(d.addEventListener(f,m,M),()=>d.removeEventListener(f,m,M)),g=e.watch(()=>[q(n),K(a)],([d,f])=>{if(i(),!d)return;const m=at(f)?{...f}:f;s.push(...o.flatMap(M=>l.map(c=>u(d,M,c,m))))},{immediate:!0,flush:"post"}),r=()=>{g(),i()};return ve(r),r}function ut(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function ft(t){const n=ut();return e.computed(()=>(n.value,Boolean(t())))}function dt(t){const n=e.getCurrentInstance(),o=ot(()=>null,()=>t?q(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function ze(t,n,o={}){const{window:l=re,...a}=o;let s;const i=ft(()=>l&&"ResizeObserver"in l),u=()=>{s&&(s.disconnect(),s=void 0)},g=e.computed(()=>Array.isArray(t)?t.map(f=>q(f)):[q(t)]),r=e.watch(g,f=>{if(u(),i.value&&l){s=new ResizeObserver(n);for(const m of f)m&&s.observe(m,a)}},{immediate:!0,flush:"post"}),d=()=>{u(),r()};return ve(d),{isSupported:i,stop:d}}function Mt(t,n={width:0,height:0},o={}){const{window:l=re,box:a="content-box"}=o,s=e.computed(()=>{var f,m;return(m=(f=q(t))==null?void 0:f.namespaceURI)==null?void 0:m.includes("svg")}),i=e.ref(n.width),u=e.ref(n.height),{stop:g}=ze(t,([f])=>{const m=a==="border-box"?f.borderBoxSize:a==="content-box"?f.contentBoxSize:f.devicePixelContentBoxSize;if(l&&s.value){const M=q(t);if(M){const c=l.getComputedStyle(M);i.value=Number.parseFloat(c.width),u.value=Number.parseFloat(c.height)}}else if(m){const M=Array.isArray(m)?m:[m];i.value=M.reduce((c,{inlineSize:y})=>c+y,0),u.value=M.reduce((c,{blockSize:y})=>c+y,0)}else i.value=f.contentRect.width,u.value=f.contentRect.height},o);Ie(()=>{const f=q(t);f&&(i.value="offsetWidth"in f?f.offsetWidth:n.width,u.value="offsetHeight"in f?f.offsetHeight:n.height)});const r=e.watch(()=>q(t),f=>{i.value=f?n.width:0,u.value=f?n.height:0});function d(){g(),r()}return{width:i,height:u,stop:d}}const Qe=1;function gt(t,n={}){const{throttle:o=0,idle:l=200,onStop:a=te,onScroll:s=te,offset:i={left:0,right:0,top:0,bottom:0},eventListenerOptions:u={capture:!1,passive:!0},behavior:g="auto",window:r=re,onError:d=T=>{console.error(T)}}=n,f=e.ref(0),m=e.ref(0),M=e.computed({get(){return f.value},set(T){y(T,void 0)}}),c=e.computed({get(){return m.value},set(T){y(void 0,T)}});function y(T,C){var _,Y,$;if(!r)return;const U=K(t);!U||($=U instanceof Document?r.document.body:U)==null||$.scrollTo({top:(_=K(C))!=null?_:c.value,left:(Y=K(T))!=null?Y:M.value,behavior:K(g)})}const v=e.ref(!1),w=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),A=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),z=T=>{!v.value||(v.value=!1,A.left=!1,A.right=!1,A.top=!1,A.bottom=!1,a(T))},h=ie(z,o+l),p=T=>{var C;if(!r)return;const _=((C=T?.document)==null?void 0:C.documentElement)||T?.documentElement||q(T),{display:Y,flexDirection:$}=getComputedStyle(_),U=_.scrollLeft;A.left=U<f.value,A.right=U>f.value;const V=Math.abs(U)<=(i.left||0),W=Math.abs(U)+_.clientWidth>=_.scrollWidth-(i.right||0)-Qe;Y==="flex"&&$==="row-reverse"?(w.left=W,w.right=V):(w.left=V,w.right=W),f.value=U;let D=_.scrollTop;T===r.document&&!D&&(D=r.document.body.scrollTop),A.top=D<m.value,A.bottom=D>m.value;const E=Math.abs(D)<=(i.top||0),N=Math.abs(D)+_.clientHeight>=_.scrollHeight-(i.bottom||0)-Qe;Y==="flex"&&$==="column-reverse"?(w.top=N,w.bottom=E):(w.top=E,w.bottom=N),m.value=D},I=T=>{var C;if(!r)return;const _=(C=T.target.documentElement)!=null?C:T.target;p(_),v.value=!0,h(T),s(T)};return ce(t,"scroll",o?Ee(I,o,!0,!1):I,u),Ie(()=>{try{const T=K(t);if(!T)return;p(T)}catch(T){d(T)}}),ce(t,"scrollend",z,u),{x:M,y:c,isScrolling:v,arrivedState:w,directions:A,measure(){const T=K(t);r&&T&&p(T)}}}let mt=0;function Ae(t,n={}){const o=e.ref(!1),{document:l=ct,immediate:a=!0,manual:s=!1,id:i=`vueuse_styletag_${++mt}`}=n,u=e.ref(t);let g=()=>{};const r=()=>{if(!l)return;const f=l.getElementById(i)||l.createElement("style");f.isConnected||(f.id=i,n.media&&(f.media=n.media),l.head.appendChild(f)),!o.value&&(g=e.watch(u,m=>{f.textContent=m},{immediate:!0}),o.value=!0)},d=()=>{!l||!o.value||(g(),l.head.removeChild(l.getElementById(i)),o.value=!1)};return a&&!s&&Ie(r),s||ve(d),{id:i,css:u,unload:d,load:r,isLoaded:e.readonly(o)}}function ht(t,n,o){const l=t.style[n];return l!=o&&(t.style[n]=o),{reset(){l!=o&&(t.style[n]=l)}}}function Ye(t,n){const{scrollEndHook:o,itemHeight:l,overscan:a=5}=n,s=e.ref(null),i=Mt(s),u=e.ref(!0),g=ie(p,100);let r;const d=e.shallowRef(t),f=e.ref(0),m=e.ref({start:0,end:10}),M=e.ref({start:0,end:a});let c=0;const y=e.ref([]),v=e.computed(()=>{let{sum:E,height:N}={sum:0,height:0};return d.value.map((j,O)=>(typeof l=="number"?N=l:N=l(O),E+=N,{height:N,sum:E}))}),w=e.computed(()=>Y(m.value.start)),A=e.computed(()=>typeof l=="number"?v.value.length*l:v.value[v.value.length-1]?.sum||0),z=e.computed(()=>{const{start:E,end:N}=M.value;return y.value.slice(E,N)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(r)),e.watch(d,()=>{(i.width.value||i.height.value)&&I()},{deep:!0}),e.watch([i.width,i.height],([E,N])=>{(E||N)&&I()},{deep:!0}),e.watch(f,()=>{h(),g()});function h(){u.value=!1}function p(){u.value=!0,o?.()}function I(){cancelAnimationFrame(r),r=requestAnimationFrame(T)}function T(){if(s.value){f.value=s.value.scrollTop;let E=C(f.value);c=_(E);let N=Math.max(0,E-a),j=Math.min(E+c+a,d.value.length);m.value={start:N,end:j},y.value=d.value.slice(N,j).map((O,S)=>({data:O,index:S+N})),M.value.start=E-N,M.value.end=M.value.start+c}}function C(E){let N=0,j=v.value.length-1,O=-1;for(;N<=j;){const S=Math.floor((N+j)/2);v.value[S].sum>=E?(O=S,j=S-1):N=S+1}return Math.max(0,O)}function _(E){let N=0,j=0;for(let O=E;O<v.value.length&&(N++,j+=v.value[O].height,!(j>=i.height.value));O++);return N}function Y(E){if(typeof l=="number")return E*l;let N=v.value[E];return N?N.sum-N.height:0}function $(E){return v.value[E]||{sum:0,height:0}}function U(E,N="smooth"){if(s.value){const{reset:j}=ht(s.value,"scrollBehavior",N),O=$(E);s.value.scrollTop=O.sum-O.height,T(),j()}if(s.value){const j=$(E);s.value.scrollTop=j.sum-j.height,T()}}const V=e.computed(()=>({style:{width:"100%",height:`${A.value}px`,pointerEvents:u.value?void 0:"none"}})),W=e.computed(()=>({style:{transform:`translate3d(0, ${w.value}px, 0)`,"will-change":"transform"}})),D={overflowY:"auto"};return{list:y,visiableList:z,getItemHeightData:$,getoffsetTopIndex:C,totalHeight:A,clientHeight:i.height,scrollTo:U,scrollTop:f,isScrollEnd:u,containerProps:{ref:s,onScroll:()=>{I()},style:D},wrapperProps:V,innerProps:W}}const Le=Symbol(),ue=Symbol(),fe=Symbol(),de=Symbol(),Me=Symbol(),ge=Symbol(),me=Symbol(),he=Symbol(),pe=Symbol(),oe=Symbol(),ye=Symbol();function pt(){const{voidFn:t,boolFn:n,boolRef:o,numberRef:l,arrayRef:a}={voidFn:v=>{},boolFn:v=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},s=e.inject(Le,"id"),i=e.inject(Me,a),u=e.inject(de,n),g=e.inject(pe,o),r=e.inject(fe,t),d=e.inject(ue,t),f=e.inject(ge,t),m=e.inject(me,t),M=e.inject(he,t),c=e.inject(oe,t),y=e.inject(ye,l);return{itemKey:s,selected:i,isSelected:u,isAllSelected:g,toggle:r,toggleAll:d,select:f,selectAll:m,unselect:M,unselectAll:c,selectedCount:y}}function yt(t,n,o={deep:!0,useAllFlagOptimizatiofn:!0}){const l=e.ref(!1),a=e.ref(new Set),s=e.reactive(new Map);e.watch(t,h=>{i(h)},{deep:o.deep,immediate:!0}),e.watch(()=>t.value.length,()=>{i(t.value)}),e.onScopeDispose(()=>{l.value=!1,a.value.clear(),s.clear()});function i(h){s.clear(),h.forEach(p=>{s.has(p[n])||s.set(p[n],p)}),z()}const u=e.computed(()=>{let h=[];if(l.value!=null)l.value&&(h=Array.from(s.values()));else if(a.value.size){let p;a.value.forEach(I=>{p=s.get(I),p&&h.push(p)})}return h}),g=e.computed(()=>{let h=0;return l.value!=null?l.value&&(h=s.size):h=a.value.size,h}),r=e.computed(()=>{let h;if(l.value!=null)h=l.value;else{const p=a.value.size,I=s.size;h=p==I}return h});function d(){l.value=!0}function f(){l.value=!1}function m(h){s.has(h)&&a.value.add(h)}function M(h){v(()=>{h.forEach(p=>{m(p[n])})})}function c(h){v(()=>{h.forEach(p=>{a.value.delete(p[n])})})}function y(h){return l.value!=null?l.value:a.value.has(h[n])}function v(h){l.value!=null&&(l.value?a.value=new Set(Array.from(s.keys())):a.value=new Set),h(),o.useAllFlagOptimizatiofn?a.value.size==0?l.value=!1:a.value.size==s.size?l.value=!0:l.value=null:l.value=null}function w(h){v(()=>{h.forEach(p=>{y(p)?a.value.delete(p[n]):m(p[n])})})}function A(){const{value:h}=r;h?f():d()}function z(){const h=[];a.value.forEach(p=>{s.get(p)||h.push(p)}),h.forEach(p=>a.value.delete(p))}return e.provide(Le,n),e.provide(ue,A),e.provide(fe,w),e.provide(de,y),e.provide(Me,u),e.provide(ge,M),e.provide(me,d),e.provide(he,c),e.provide(pe,r),e.provide(oe,f),e.provide(oe,f),e.provide(ye,g),{selected:u,select:M,selectAll:d,unselect:c,unselectAll:f,toggle:w,toggleAll:A,isSelected:y,isAllSelected:r,selectedCount:g}}function Dt(t){const n=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let c=[];return n.value!=null?n.value&&(c=t.value):o.value.size&&(c=Array.from(o.value.values())),c}),a=e.computed(()=>{let c=0;return n.value!=null?n.value&&(c=t.value.length):c=o.value.size,c}),s=e.computed(()=>{let c;if(n.value!=null)c=n.value;else{const y=o.value.size,v=t.value.length;c=y==v}return c});function i(){n.value=!0}function u(){n.value=!1}function g(c){f(()=>{c.forEach(y=>{o.value.add(y)})})}function r(c){f(()=>{c.forEach(y=>{o.value.delete(y)})})}function d(c){return n.value!=null?n.value:o.value.has(c)}function f(c){n.value!=null&&(n.value?o.value=new Set(Array.from(t.value)):o.value=new Set),c(),o.value.size==0?n.value=!1:o.value.size==t.value.length?n.value=!0:n.value=null}function m(c){f(()=>{c.forEach(y=>{d(y)?o.value.delete(y):o.value.add(y)})})}function M(){const{value:c}=s;c?u():i()}return e.provide(ue,M),e.provide(fe,m),e.provide(de,d),e.provide(Me,l),e.provide(ge,g),e.provide(me,i),e.provide(he,r),e.provide(pe,s),e.provide(oe,u),e.provide(oe,u),e.provide(ye,a),{selected:l,select:g,selectAll:i,unselect:r,unselectAll:u,toggle:m,toggleAll:M,isSelected:d,isAllSelected:s,selectedCount:a}}function Tt(t,n){return t>n?"horizontal":n>t?"vertical":""}function Nt(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),a=e.ref(0),s=e.ref(0),i=e.ref(""),u=()=>i.value==="vertical",g=()=>i.value==="horizontal",r=()=>{o.value=0,l.value=0,a.value=0,s.value=0,i.value=""};return{move:(m,M)=>{o.value=(m<0?0:m)-t.value,l.value=M-n.value,a.value=Math.abs(o.value),s.value=Math.abs(l.value);const c=10;(!i.value||a.value<c&&s.value<c)&&(i.value=Tt(a.value,s.value))},start:(m,M)=>{r(),t.value=m,n.value=M},reset:r,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:a,offsetY:s,direction:i,isVertical:u,isHorizontal:g}}function Se(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function Ce({key:t,customAttributeValue:n,attribute:o,selectWay:l="colum",scrollOptions:a={},getSelectMap:s=()=>({})}){const{select:i=Se("\u9009\u62E9"),unselect:u=Se("\u53D6\u6D88\u9009\u62E9"),unselectAll:g=Se("\u53D6\u6D88\u5168\u9009"),selected:r=e.computed(()=>[])}=s();let d={};const f=e.computed(()=>Ee(l==="colum"?Wn:Xn,50)),m=e.computed(()=>t??o),M=(()=>n?b=>n(b):b=>b)(),c=new Set;let y=new Set;const v=e.ref(!0),w=e.ref(),A=e.ref(!1),z=e.ref({x:0,y:0}),h=e.ref({x:0,y:0,scrollTop:0}),p=e.ref({}),I=e.ref({top:0,height:0,sync(b=!1){I.value.top=w.value?.scrollTop||0,b&&(I.value.height=w.value?.scrollHeight||0)}}),T=e.computed(()=>A.value?{left:Math.min(z.value.x,h.value.x)-p.value.left,top:Math.min(z.value.y,h.value.y)-p.value.top,width:Math.abs(z.value.x-h.value.x),height:Math.abs(z.value.y-h.value.y)}:{left:0,top:0,width:0,height:0}),C=e.ref(!1),{margin:_=50,startSpeed:Y=30,maxSpeed:$=30}=a;let U;const V=_,W=Y,D=$,E=b=>b**1;let N=0;function j(b){if(cancelAnimationFrame(U),N=O(b),N=Math.max(Math.min(N,D),-D),N!==0){const x=w.value;if(!x||!A.value)return;const Q=I.value.height-p.value.height;let B=I.value.top+Number(N);B=Math.min(Math.max(0,B),Q),x.scrollTop=B,k(),U=requestAnimationFrame(()=>j(b))}}function O(b){if(w.value){const Q=p.value,B=Q.bottom-b;if(B<V)return W*E(1-B/V);const H=b-Q.top;if(H<V)return-W*E(1-H/V)}return 0}function S(b){const x={...T.value,right:0,bottom:0};return x.left+=p.value.left,x.top+=p.value.top-I.value.top,x.right=x.width+x.left,x.bottom=x.height+x.top,x.left<b.right&&x.right>b.left&&x.top<b.bottom&&x.bottom>b.top}function k(){I.value.sync();const{top:b,height:x}=I.value;h.value.y=Math.min(x+p.value.top,h.value.y+b-h.value.scrollTop),h.value.scrollTop=b}function R(b,x,Q="dynamic-styles"){let B=document.getElementById(Q);B||(B=document.createElement("style"),B.id=Q,document.head.appendChild(B));const H=B.sheet.cssRules,G=H.length,Ne=`${b} { ${x} }`;for(let ae=0;ae<G;ae++){const Oe=H[ae];if(Oe.selectorText===b&&Oe.style.cssText===x)return}B.sheet.insertRule(Ne,G)}function X(b,x){v.value=!0,A.value=!0,I.value.sync(!0);const Q=x+I.value.top;z.value.x=b,z.value.y=Q,h.value.x=b,h.value.y=Q,w.value?.classList.add("disable-scroll-behavior"),c.clear();const B=r.value;y=new Set(B.map(H=>H[m.value])),et()}function F(b,x,Q){!A.value||(v.value&&(v.value=!1,l==="colum"&&!C.value&&!P()&&g()),Q?.(),j(x),h.value.x=Math.max(b,p.value.left),h.value.y=Math.min(x+I.value.top,I.value.height+p.value.top),h.value.scrollTop=I.value.top,f.value())}function ne(){A.value=!1,w.value?.classList.remove("disable-scroll-behavior")}function ee(){!A.value||(N||k(),f.value())}function P(){if(!A.value)return!1;const{width:b,height:x}=T.value;return!(Math.max(b,x)>5)}function le(){P()&&g()}function Wn(){P()||w.value?.querySelectorAll(`[${o}]`).forEach(b=>{const x=M(b.getAttribute(`${o}`));d[m.value]=x;const Q=y.has(x),B=c.has(x);S(b.getBoundingClientRect())?B||(Q?u([d]):i([d]),c.add(x)):B&&(Q?i([d]):u([d]),c.delete(x))})}function Xn(){const b=[];let x=null,Q=0;w.value?.querySelectorAll(`[${o}]`).forEach((B,H)=>{const G=M(B.getAttribute(`${o}`));b.push(G),S(B.getBoundingClientRect())&&(x===null&&(x=H),x=Math.min(x,H),Q=Math.max(Q,H))}),w.value?.querySelectorAll(`[${o}]`).forEach((B,H)=>{const G=b[H],Ne=y.has(G),ae=c.has(G);x!==null&&H>=x&&H<=Q?ae||(d[m.value]=G,Ne?u([d]):i([d]),c.add(G)):ae&&(d[m.value]=G,Ne?i([d]):u([d]),c.delete(G))})}function et(){!w.value||(p.value=w.value.getBoundingClientRect())}function Kn(b){return!b?.value||(w.value=b.value,!w?.value)?!1:(et(),R(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Kn,dragStart:X,dragMove:F,dragEnd:ne,onScroll:ee,isSingleClick:P,cancelSelectAllBySingleClick:le,selectFn:f,getAttributeValue:M,incrementalSelect:C,selectRange:T,isPressing:A,containerEl:w}}function wt(t,n=!1){const o=Ce(t),{selectRange:l}=o,{onScroll:a,dragStart:s,dragMove:i,dragEnd:u,cancelSelectAllBySingleClick:g}=o,r=e.computed(()=>({left:`${l.value.left}px`,top:`${l.value.top}px`,width:`${l.value.width}px`,height:`${l.value.height}px`})),{load:d}=Ae(`.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}),
|
|
6
|
+
}`,{id:"styletag_lzc_dragselect",manual:!0}),f=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:r.value})}});function m(w){w.button===0&&(w.ctrlKey||w.metaKey?o.incrementalSelect.value=!0:o.incrementalSelect.value=!1,s(w.x,w.y),window.addEventListener("mousemove",M),window.addEventListener("mouseup",c))}function M(w){i(w.x,w.y)}function c(w){window.removeEventListener("mousemove",M),window.removeEventListener("mouseup",c),w.composedPath().some(z=>o.getAttributeValue(z?.getAttribute?.(t.attribute)))||g(),u(),o.incrementalSelect.value=!1}function y(w){try{if(!o.init(w))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!o.containerEl?.value)return!1;e.render(e.h(f),o.containerEl.value),d(),o.containerEl.value?.addEventListener("scroll",a),o.containerEl.value?.addEventListener("mousedown",m)}catch(A){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",A)}}function v(){o.containerEl.value?.removeEventListener("scroll",a),o.containerEl.value?.removeEventListener("mousedown",m)}return{init:y,unMount:v}}function vt(t,n={}){const{joinSelectMode:o,pressTime:l=600,selectModeRef:a}=n,s=Ce({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{onScroll:i,dragStart:u,dragMove:g,dragEnd:r}=s;let d;const f=Nt();function m(){clearTimeout(d)}function M(p){return p.composedPath().some(I=>!!I?.getAttribute?.(t.attribute))}function c(){return a?.value&&!s.isPressing.value&&f.isHorizontal()}function y(p,I,T){(I==null||T==null)&&(I=p.targetTouches[0].clientX,T=p.targetTouches[0].clientY),u(I,T),o?.(),g(I,T,()=>p.preventDefault())}function v(p){const{clientX:I,clientY:T}=p.targetTouches[0];f.start(I,T),m(),M(p)&&(d=setTimeout(()=>{y(p),p.preventDefault()},l))}function w(p){m();const{clientX:I,clientY:T}=p.targetTouches[0];if(f.move(I,T),c()){y(p,f.startX.value,f.startY.value);return}g(I,T,()=>p.preventDefault())}function A(){m(),r()}function z(p){try{if(!s.init(p))throw new Error("\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E");if(!s.containerEl?.value)return!1;const I=s.containerEl.value;I.addEventListener("scroll",i),I.addEventListener("touchstart",v),I.addEventListener("touchmove",w),window.addEventListener("pointerup",A)}catch(I){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",I)}}function h(){if(!s.containerEl?.value)return;const p=s.containerEl.value;p.removeEventListener("scroll",i),p.removeEventListener("touchstart",v),p.removeEventListener("touchmove",w),window.removeEventListener("pointerup",A)}return{init:z,unMount:h}}const Ue=Symbol(),Et=e.defineComponent({__name:"Dialog",props:{visiable:{type:Boolean,default:!1},closeOnClickOverlay:{type:Boolean,default:!0},hiddenOverlay:{type:Boolean},dialogClass:{default:""},modalClass:{default:""},onClickOverlay:null},emits:["update:visiable"],setup(t,{emit:n}){const o=t,l=()=>{o.onClickOverlay?.(),o.closeOnClickOverlay&&n("update:visiable",!1)};return e.provide(Ue,()=>n("update:visiable",!1)),(a,s)=>(e.openBlock(),e.createBlock(e.Transition,{name:"modal"},{default:e.withCtx(()=>[t.visiable?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass([t.hiddenOverlay?"no-overlay-modal":"lzc-modal",t.modalClass])},[e.createElementVNode("div",{onMousedown:s[0]||(s[0]=e.withModifiers(()=>{},["stop"])),class:e.normalizeClass(["lzc-dialog",t.dialogClass])},[e.renderSlot(a.$slots,"default",{},void 0,!0)],34)],2)),[[e.unref(_e),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),Zn="",Z=(t,n)=>{const o=t.__vccOpts||t;for(const[l,a]of n)o[l]=a;return o},It=Z(Et,[["__scopeId","data-v-3d61e60a"]]);function zt(t){function n(o,l){const a=document.createElement("div"),s={setup(){return()=>e.h(It,{visiable:!0,"onUpdate:visiable":()=>{a?.remove()},...t},{default:()=>e.h(o,l)})}};return document.body.appendChild(a),e.render(e.h(s),a),{close:()=>a?.remove()}}return{create:n}}function je({component:t,componentProps:n,delay:o=300}){const a=`lzc-delay-loading-${`${new Date().getTime()}`}`,s=`${o}ms`;return Ae(`@keyframes lzcDelayLoad {
|
|
7
7
|
to {
|
|
8
8
|
opacity: 1;
|
|
9
9
|
}
|
|
@@ -11,11 +11,11 @@
|
|
|
11
11
|
.${a} {
|
|
12
12
|
opacity: 0;
|
|
13
13
|
animation: lzcDelayLoad 0s ${s} forwards;
|
|
14
|
-
}`),{LoadingComp:e.defineComponent({setup(){const u=ct();return e.onMounted(()=>{u.value?.classList?.add(a)}),()=>e.h(t,n)}})}}function Et({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Ae({component:t,componentProps:n,delay:o}),a=e.ref(!1);function s(){a.value=!0}function i(){a.value=!1}return{LoadingComp:l,loading:a,load:s,unload:i}}const It=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],zt=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)),It,16))}}),Jn="",Qe=X(zt,[["__scopeId","data-v-92a1804d"]]),At="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwWPdeKelMEiDKlkThMIhSVGTqGKaZRxxm/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6yJMXhE9Aoz+mz56sDMP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"},St=["src"],Ct=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,a)=>(e.openBlock(),e.createElementBlock("div",Lt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(At),style:e.normalizeStyle(e.unref(o))},null,12,St)]))}}),eo="",jt=X(Ct,[["__scopeId","data-v-3c54972f"]]);async function Le(t){return new Promise(n=>setTimeout(()=>n(),t))}const xt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MTQsMC4xMTc3NTIwMTEgQzExLjU4MjE0MjksLTAuMDEwNzA0NzIzNyAxMS43NzUsLTAuMDEwNzA0NzIzNyAxMS45MDM1NzE0LDAu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TUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",Ot=["onClick"],_t=["onClick"],kt=["src"],Bt=["src"],Qt=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",a=e.computed(()=>{let f={};return o.captureEventP&&(f.pointerEvents="none"),f}),s=e.computed(()=>{let f={padding:"12px"};return(o.icon||o.showIcon)&&(f.padding="20px"),o.width&&(f.width=o.width),o.maxWidth&&(f.maxWidth=o.maxWidth),o.overlayContentStyle&&(f={...f,...o.overlayContentStyle}),f}),i=e.computed(()=>{let f={};return o.showClose&&!o.icon&&(f.paddingRight="16px"),f});function u(){o.closeOnClickOverlay&&n("close")}function c(){o.closeOnClick&&n("close")}return(f,M)=>(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(a))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${t.className}`),onClick:e.withModifiers(u,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(c,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(s))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:M[0]||(M[0]=e.withModifiers(d=>n("close"),["stop"])),src:e.unref(xt),class:e.normalizeClass(`${l}-close`)},null,10,kt)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(bt),class:e.normalizeClass(`${l}-icon`)},null,10,Bt)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(i))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,_t)],10,Ot),[[e.vShow,t.visible]])],4)]),_:1}))}}),to="",no="",Yt=X(Qt,[["__scopeId","data-v-0947d1e3"]]);class Ye{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=Yt}async show(){const n=this.options,l={...n,onClose:()=>{this.close(),n?.onClose?.()}},a=e.createVNode(this.loadingToast,l);e.render(a,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await Le(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 Ut(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,a=n?.loading!==!1,s=n?.autoClose!==!1,i=n?.delay!==void 0?n.delay:300,u=n?.hook!==void 0?n.hook:!0,c={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",a,s,i,c);const f=e.ref(!1);let M=null;const d=new Ye(c);async function m(...r){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",a,f.value),a&&(!f.value||d.show())},i);try{o&&console.time("useDelayAsync - handler-execute-time");const y=await t(...r);return o&&console.log("useDelayAsync - execute res: ",y),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await g(s),await n?.onSuccess?.(y,[...r]),y}catch(y){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(y),await g(s),await n?.onError?.(y,[...r])}}}async function g(r=!0){o&&console.log("useDelayAsync - close - closeLoading: ",r),f.value=!1,M&&clearTimeout(M),M=null,r&&await d.destory()}return u&&e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),g()}),{processing:f,handler:m,close:g}}function Rt(t,n){return t>n?"horizontal":n>t?"vertical":""}function Pt(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),a=e.ref(0),s=e.ref(0),i=e.ref(""),u=()=>i.value==="vertical",c=()=>i.value==="horizontal",f=()=>{o.value=0,l.value=0,a.value=0,s.value=0,i.value=""};function M(m,g){f(),t.value=m,n.value=g}function d(m,g){o.value=(m<0?0:m)-t.value,l.value=g-n.value,a.value=Math.abs(o.value),s.value=Math.abs(l.value);const r=10;(!i.value||a.value<r&&s.value<r)&&(i.value=Rt(a.value,s.value))}return{move:d,start:M,reset:f,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:a,offsetY:s,direction:i,isVertical:u,isHorizontal:c}}const Ue=250,Re=5,$t=500;function Ht(t){const{isDouble:n=!0}=t;let o,l;function a(){o=Date.now()}async function s(i,u){const c=Date.now()-o;i<Re&&u<Re&&(c<Ue?n?l?(clearTimeout(l),l=null,t.onDoubleTap?.()):l=setTimeout(async()=>{t.onTap?.(),l=null},Ue):t.onTap?.():c>$t&&t.onLongPress?.())}return{startTap:a,checkTap:s}}function Ft(t,n){const o=e.ref(!1);function l(){o.value||(o.value=!0,e.unref(t)?.addEventListener("transitionend",a))}function a(){e.unref(t)?.removeEventListener("transitionend",a),o.value=!1,n.onComplate?.()}return{transitioning:o,startTransition:l}}function Vt(t,n,o,l){var a=Math.min(o/t,l/n),s=t*a,i=n*a;return{width:G(s),height:G(i)}}function Wt(t){return t<3?"444ms":t<6?"555ms":"666ms"}function Se(t,n,o){return Math.min(Math.max(t,n),o)}function G(t,n=2){return parseFloat(t.toFixed(n))}function me(t,n,o){return t=G(t),n=G(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 Xt(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function $e(t){const n=e.ref(!1),o=e.ref(1),l=e.ref(9),a=e.ref(),s=e.ref(),i=e.ref({width:0,height:0}),u=e.ref({width:0,height:0}),c=e.reactive({level:1,offsetX:0,offsetY:0,zooming:!1,preview:!0,lastCenter:{x:0,y:0}}),f=e.ref({}),M=Pt(),d=Ft(s,{onComplate(){c.preview||N()}}),m=Ht({onTap(){t.onTap?.()},onDoubleTap(){t.onDoubleTap?.()},onLongPress(){t.onLongPress?.()}});we(s,T=>g(T)),e.watch([a,s],([T,z])=>{r(T,z)},{immediate:!0});async function g(T){const[z]=T;z.contentRect.width==u.value.width&&z.contentRect.height==u.value.height||(await r(a.value),await N(c.level,!0))}async function r(T,z){await C(T,z),T&&B()}async function y(T){if(!c.preview)return;c.preview=!1,T=T??c.level;const z=s.value;if(!z)return;const{scrollTop:b,scrollLeft:k}=z,{width:_,height:A}=i.value,{scaleW:E,scaleH:Q}=v(T),{top:Y,left:O}=D(E,Q),U=O!=0?O:k*-1,V=Y!=0?Y:b*-1;z.scrollTop=0,z.scrollLeft=0;const{value:H}=f;H.width=`${_}px`,H.height=`${A}px`,H.maxHeight="none",H.transitionDuration="0s",H.transform=me(U,V,T),f.value=H,await e.nextTick(),c.offsetX=U,c.offsetY=V,await Le(20)}async function N(T,z){if(!z&&c.preview)return;c.preview=!0,T=T??c.level;const{value:b}=f,{scaleW:k,scaleH:_}=v(T),{left:A,top:E}=D(k,_);T===1&&(b.maxHeight="100%"),b.width=`${k}px`,b.height=`${_}px`,b.transitionDuration="0s",b.transform=me(A,E,1),f.value=b,await e.nextTick();const Q=s.value;if(!Q)return;const{offsetX:Y,offsetY:O}=c;Y<0&&(Q.scrollLeft=Math.abs(Y)),O<0&&(Q.scrollTop=Math.abs(O))}async function w(T,z,b){if(n.value||(T=G(T),T=Se(T,o.value-o.value*.5,l.value+l.value*.5),T==c.level))return;c.preview&&await y(),z||(z={x:M.startX.value,y:M.startY.value});const{value:k}=f,{width:_,height:A}=i.value,{scaleW:E,scaleH:Q}=v(T),{top:Y,left:O}=D(E,Q),U=T/c.level,V={left:Math.abs(_*T-u.value.width)*-1,top:Math.abs(A*T-u.value.height)*-1,right:O,bottom:Y};let H=O!=0?O:(c.offsetX-z.x)*U+z.x,q=Y!=0?Y:(c.offsetY-z.y)*U+z.y;H=G(Se(H,V.left,V.right)),q=G(Se(q,V.top,V.bottom)),k.width=`${_}px`,k.height=`${A}px`,k.transitionDuration=b?Wt(T):"0s",k.transform=me(H,q,T),c.offsetX=H,c.offsetY=q,c.level=T,f.value=k,await e.nextTick(),b&&d.startTransition(),t.onScale?.(T)}function I(){const T=c.level>1?1:p();w(T,void 0,!0)}function S(T,z){if(!c.preview)return;const b=s.value;!b||b.scrollTo({left:c.offsetX-T,top:c.offsetY-z})}async function h(){c.level>=o.value&&c.level<=l.value?c.zooming&&await N():c.level<o.value?await w(o.value,void 0,!0):c.level>l.value&&await w(l.value,c.lastCenter,!0),c.zooming=!1}function p(){const{width:T,height:z}=i.value,{width:b,height:k}=u.value,_=2.5;let A;return z==k?(A=b/T,A-1<.1&&(A=_)):A=Math.max(_,b/T,k/z),A}function v(T){const{width:z,height:b}=i.value;return{scaleW:G(T*z),scaleH:G(T*b)}}function D(T,z){const{width:b,height:k}=u.value,_=Math.max(0,(k-z)*.5),A=Math.max(0,(b-T)*.5);return{top:_,left:A}}async function C(T,z){if(T=T??a.value,z=z??s.value,!z)return;let b,{clientWidth:k=0,clientHeight:_=0}=T||{};const{clientWidth:A,clientHeight:E}=z;if(T instanceof HTMLImageElement?b={width:T.naturalWidth,height:T.naturalHeight}:T instanceof HTMLVideoElement&&(b={width:T.videoWidth,height:T.videoHeight}),b){const Q=Vt(b.width,b.height,A,E);k=Q.width,_=Q.height}(k===0||_===0)&&(k=i.value.width||A,_=i.value.height||E),i.value={width:Math.min(k,A),height:Math.min(_,E)},u.value={width:A,height:E},N(void 0,!0)}function B(){const T=p();l.value=Math.max(l.value,T*2)}function $(T){n.value=T}return{touch:M,state:c,style:f,gesture:m,transition:d,imageRef:a,containerRef:s,switchToZoom:y,switchToPreview:N,panTo:S,zoomTo:w,zoomFinished:h,toggleZoom:I,setDisableZoom:$}}function He(t,n){const{state:o,touch:l,transition:a,containerRef:s}=t,i=dt(s);let u,c;function f(m){u=m}function M(m){return u==m}function d(m,g,r,y){i.measure();const{top:N,left:w,right:I,bottom:S}=i.arrivedState;if(m=="start")c=N||w||I||S;else if(u==2)c=!1;else if(c){if(l.direction.value=="vertical")if(o.level!=1)c=!1;else{const h=l.startY.value<r;c=N&&h||S&&!h}else if(l.direction.value=="horizontal"){const h=l.startX.value<g;c=w&&h||I&&!h}}c&&a.transitioning.value&&(c=!1,y?.preventDefault()),m=="end"&&!c&&(g=l.startX.value,r=l.startY.value,c=!0),(m!="move"||c)&&n?.(m,l.direction.value,g,r,y)}return{onSwipeEdge:d,setFingerNum:f,isEqualFingerNum:M}}function Kt(t){const n=$e({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:a,transition:s}=n;let i=!1,u=null;const c={top:0,left:0},f=oe(N,150),{onSwipeEdge:M}=He(n,t.onSwipeEdge),d=e.ref({top:0,left:0});ae("keyup",I),ae("keydown",w);function m(S){const h=n.containerRef.value;if(!h)return;const{left:p,top:v}=h.getBoundingClientRect();d.value.left=p,d.value.top=v,a.startTap();let D=S.clientX-p,C=S.clientY-v;l.start(D,C),M("start",D,C,S),s.transitioning.value||(i=!0,c.left=p,c.top=v,o.offsetX=h.scrollLeft,o.offsetY=h.scrollTop),window.addEventListener("pointermove",g),window.addEventListener("pointerup",r)}function g(S){if(!i)return;let h=S.clientX,p=S.clientY;l.move(h,p),M("move",h-d.value.left,p-d.value.top,S),o.level!==1&&n.panTo(l.deltaX.value-c.left,l.deltaY.value-c.top)}function r(S){M("end",l.offsetX.value,l.offsetY.value,S),a.checkTap(l.offsetX.value,l.offsetY.value),l.reset(),i=!1,window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",r)}function y(S){if(!S.ctrlKey)return;o.zooming||(o.zooming=!0,u=="Control"&&window.addEventListener("keyup",N)),S.preventDefault();let h=-S.deltaY;S.deltaMode===1?h*=.05:h*=S.deltaMode?1:.002,u!="Control"&&(h*=10),h=2**h;const p=o.level*h;o.lastCenter={x:S.clientX-d.value.left,y:S.clientY-d.value.top},n.zoomTo(p,o.lastCenter),u!="Control"&&f()}function N(){n.zoomFinished(),window.removeEventListener("keyup",N)}function w(S){u=S.key}function I(){u=null}return{core:n,onPointerDown:m,onWheel:y}}function Zt(t){const n=$e({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:a}=n,{setFingerNum:s,onSwipeEdge:i,isEqualFingerNum:u}=He(n,t.onSwipeEdge);let c,f;async function M(g){const{touches:r}=g;s(r.length),o.zooming=u(2),a.startTap();const{clientX:y,clientY:N}=r[0];l.start(y,N),i("start",y,N,g),o.zooming&&(g.preventDefault(),c=o.level,f=Pe(r),await n.switchToZoom(),o.lastCenter=Xt(r))}async function d(g){const{touches:r}=g;s(r.length);const{clientX:y,clientY:N}=r[0];if(l.move(y,N),i("move",y,N,g),o.zooming&&u(2)){g.preventDefault();const w=Pe(r),I=c*w/f;n.zoomTo(I,o.lastCenter)}}async function m(g){if(g.touches.length)return;const{clientX:r,clientY:y}=g.changedTouches[0];i("end",r,y,g),a.checkTap(l.offsetX.value,l.offsetY.value),n.zoomFinished(),l.reset()}return{core:n,onTouchStart:M,onTouchMove:d,onTouchEnd:m}}function Gt(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(a,s){t.startX=a,t.startY=s,t.scale=1}function o(a,s){t.started=!0,t.dragging=!0,t.offsetX=a-t.startX,t.offsetY=s-t.startY,t.scale=1-Math.abs(t.offsetY/s*.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}}function Fe(){const t=e.ref(!1),n=e.ref(!1);return e.onActivated(()=>{!n.value||(t.value=!0)}),e.onMounted(()=>{n.value=!1,setTimeout(()=>{n.value=!0})}),{isActivated:t}}function Ve(t){let n=!1;return()=>{n||(t(),n=!0)}}function qt(t){let n=null;const{isActivated:o}=Fe(),l=Ve(()=>n=window.onBackPress);function a(){l(),window.onBackPress=()=>t()}function s(){window.onBackPress=n}return e.onActivated(()=>{!o.value||a()}),e.onBeforeMount(()=>{a()}),e.onBeforeUnmount(()=>{s()}),e.onDeactivated(()=>{s()}),{register:a,unregister:s}}const Jt=["onClick"],en=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),a=e.ref(),s=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),i=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${s.value}% - ${a.value}px)`,left:`calc(50% - ${l.value}px)`})),u=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function c(){!n.buttonClickEvent||n.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,a.value=o.value.offsetHeight/2}),(f,M)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(c,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(i),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,Jt))}}),oo="",tn=X(en,[["__scopeId","data-v-25d39b90"]]),We={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class nn{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(tn),{...We,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||We.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 on=["xlink:href","fill","color"],ne=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 a(s){const{style:i}=s;return typeof i=="object"?i:{}}return(s,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...a(s.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,on)],4))}});function ln(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:a={},maxHeightRatio:s=.9,observeMethod:i="classList"}=t,u=e.ref(!0),c=oe($,100);let f,M="";const d=e.ref(0),m=e.ref(0),g=e.ref(0),r=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),y=e.ref({clientHeight:0}),N=e.computed(()=>!!m.value),w=e.computed(()=>r.value.scrollHeight>r.value.clientHeight),I=e.computed(()=>l?r.value.clientHeight-p.value:r.value.clientHeight-y.value.clientHeight),S=e.computed(()=>r.value.scrollHeight-r.value.clientHeight),h=e.computed(()=>!r.value.clientHeight&&!r.value.scrollHeight?1:Math.max(r.value.clientHeight/r.value.scrollHeight,.05)),p=e.computed(()=>h.value>s?0:h.value*r.value.clientHeight),v=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${g.value}px,0)`,height:l?`${p.value}px`:void 0}));we(n,()=>E());function D(O){B(),m.value=O.clientY-o.value.getBoundingClientRect().top||1,M=getComputedStyle(n.value).scrollBehavior,M==="smooth"&&(n.value.style.scrollBehavior="unset")}function C(){n.value.style.scrollBehavior=M,m.value=0,c()}function B(){u.value=!1}function $(){N.value||(u.value=!0)}function T(O){if(!N.value)return;let U=O.clientY-r.value.top-m.value;U<0?g.value=0:U>=I.value?g.value=I.value:g.value=U,n.value.scrollTo({top:g.value/I.value*S.value})}function z(){N.value||b()}function b(){cancelAnimationFrame(f),f=requestAnimationFrame(k)}function k(){n.value&&(d.value=a.scrollTop?.value??n.value.scrollTop,g.value=d.value/S.value*I.value)}function _(O){let U="addEventListener";O==="add"?U="addEventListener":U="removeEventListener",o.value?.[U]("pointerdown",D,{passive:!0}),window[U]("pointermove",T,{passive:!0}),window[U]("pointerup",C,{passive:!0})}const A=new MutationObserver(O=>{(i=="classList"||O.map(V=>V.oldValue).join().includes("height"))&&E()});function E(){r.value.top=n.value?.getBoundingClientRect().top??0;const{scrollHeight:O=0,clientHeight:U=0}=n.value||{},{scrollHeight:V,clientHeight:H}=r.value;O!=V&&(r.value.scrollHeight=O,k()),U!=H&&(r.value.clientHeight=U,k());const{clientHeight:q=0}=o.value||{};q!=y.value.clientHeight&&(y.value.clientHeight=q)}function Q(){B(),setTimeout(()=>{y.value.clientHeight=o.value?.clientHeight??0,$()},150)}function Y(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",z,{passive:!0}),_("add");const O={};i==="classList"?Object.assign(O,{subtree:!0,childList:!0}):Object.assign(O,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),A.observe(n.value,O),setTimeout(()=>{E()},100),Q()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(d,()=>{B(),c()}),{isScrollEnd:u,isDragSlider:N,offsetTop:g,scrollTop:d,scrollable:w,sliderPos:v,sliderRollableHeight:I,init:Y,modifySliderEventListener:_,heightRatio:h}}const an=(t=>(e.pushScopeId("data-v-7fd39e51"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),sn=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null,maxHeightRatio:{default:.9}},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,a=e.ref(null),s=e.computed(()=>o.containerEl),i=ln({containerEl:s,sliderEl:a,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:u,isScrollEnd:c,sliderPos:f,heightRatio:M}=i,d=e.ref(!1),m=o.autoHide?e.computed(()=>o.maxHeightRatio<M.value?!1:d.value||!c.value):e.computed(()=>o.maxHeightRatio<M.value?!1:u.value),{load:g}=ve(`.hide-scrollbar {
|
|
14
|
+
}`),{LoadingComp:e.defineComponent({setup(){const u=dt();return e.onMounted(()=>{u.value?.classList?.add(a)}),()=>e.h(t,n)}})}}function At({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=je({component:t,componentProps:n,delay:o}),a=e.ref(!1);function s(){a.value=!0}function i(){a.value=!1}return{LoadingComp:l,loading:a,load:s,unload:i}}const Lt=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],St=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)),Lt,16))}}),Jn="",Re=Z(St,[["__scopeId","data-v-92a1804d"]]),Ct="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",jt={class:"loading-wrap"},xt=["src"],bt=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,a)=>(e.openBlock(),e.createElementBlock("div",jt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(Ct),style:e.normalizeStyle(e.unref(o))},null,12,xt)]))}}),eo="",Ot=Z(bt,[["__scopeId","data-v-3c54972f"]]);async function De(t){return new Promise(n=>setTimeout(()=>n(),t))}const _t="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MTQsMC4xMTc3NTIwMTEgQzExLjU4MjE0MjksLTAuMDEwNzA0NzIzNyAxMS43NzUsLTAuMDEwNzA0NzIzNyAxMS45MDM1NzE0LDAuMTE3NzUyMDExIEMxMi4wMzIxNDI5LDAuMjQ2MjA4NzQ2IDEyLjAzMjE0MjksMC40Mzg4OTM4NDkgMTEuOTAzNTcxNCwwLjU2NzM1MDU4NCBMNi40Niw2LjAwNSBMMTEuOTAzNTcxNCwxMS40NDMzNTQxIEMxMi4wMzIxNDI5LDExLj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kuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",Bt=["onClick"],Qt=["onClick"],Yt=["src"],Ut=["src"],Rt=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",a=e.computed(()=>{let r={};return o.captureEventP&&(r.pointerEvents="none"),r}),s=e.computed(()=>{let r={padding:"12px"};return(o.icon||o.showIcon)&&(r.padding="20px"),o.width&&(r.width=o.width),o.maxWidth&&(r.maxWidth=o.maxWidth),o.overlayContentStyle&&(r={...r,...o.overlayContentStyle}),r}),i=e.computed(()=>{let r={};return o.showClose&&!o.icon&&(r.paddingRight="16px"),r});function u(){o.closeOnClickOverlay&&n("close")}function g(){o.closeOnClick&&n("close")}return(r,d)=>(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(a))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${t.className}`),onClick:e.withModifiers(u,["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(s))},[t.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:d[0]||(d[0]=e.withModifiers(f=>n("close"),["stop"])),src:e.unref(_t),class:e.normalizeClass(`${l}-close`)},null,10,Yt)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(kt),class:e.normalizeClass(`${l}-icon`)},null,10,Ut)):e.createCommentVNode("",!0),t.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(i))},e.toDisplayString(t.message),7)):e.createCommentVNode("",!0)],6)],10,Qt)],10,Bt),[[e.vShow,t.visible]])],4)]),_:1}))}}),to="",no="",Pt=Z(Rt,[["__scopeId","data-v-0947d1e3"]]);class Pe{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=Pt}async show(){const n=this.options,l={...n,onClose:()=>{this.close(),n?.onClose?.()}},a=e.createVNode(this.loadingToast,l);e.render(a,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,n.duration!==0&&setTimeout(()=>{this.destory()},n.duration),await De(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 $t(t,n){const o=!!n?.debug,l=n?.printErrorLog!==!1,a=n?.loading!==!1,s=n?.autoClose!==!1,i=n?.delay!==void 0?n.delay:300,u=n?.hook!==void 0?n.hook:!0,g={...n,showIcon:n?.showIcon!==!1,captureEventP:n?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",a,s,i,g);const r=e.ref(!1);let d=null;const f=new Pe(g);async function m(...c){if(o&&console.log(`useDelayAsync - handler - processing: ${r.value}`),!r.value){r.value=!0,d=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",a,r.value),a&&(!r.value||f.show())},i);try{o&&console.time("useDelayAsync - handler-execute-time");const y=await t(...c);return o&&console.log("useDelayAsync - execute res: ",y),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await M(s),await n?.onSuccess?.(y,[...c]),y}catch(y){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(y),await M(s),await n?.onError?.(y,[...c])}}}async function M(c=!0){o&&console.log("useDelayAsync - close - closeLoading: ",c),r.value=!1,d&&clearTimeout(d),d=null,c&&await f.destory()}return u&&e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),M()}),{processing:r,handler:m,close:M}}function Ht(t,n){return t>n?"horizontal":n>t?"vertical":""}function Ft(){const t=e.ref(0),n=e.ref(0),o=e.ref(0),l=e.ref(0),a=e.ref(0),s=e.ref(0),i=e.ref(""),u=()=>i.value==="vertical",g=()=>i.value==="horizontal",r=()=>{o.value=0,l.value=0,a.value=0,s.value=0,i.value=""};function d(m,M){r(),t.value=m,n.value=M}function f(m,M){o.value=(m<0?0:m)-t.value,l.value=M-n.value,a.value=Math.abs(o.value),s.value=Math.abs(l.value);const c=10;(!i.value||a.value<c&&s.value<c)&&(i.value=Ht(a.value,s.value))}return{move:f,start:d,reset:r,startX:t,startY:n,deltaX:o,deltaY:l,offsetX:a,offsetY:s,direction:i,isVertical:u,isHorizontal:g}}const $e=250,He=5,Vt=500;function Wt(t){const{isDouble:n=!0}=t;let o,l;function a(){o=Date.now()}async function s(i,u){const g=Date.now()-o;i<He&&u<He&&(g<$e?n?l?(clearTimeout(l),l=null,t.onDoubleTap?.()):l=setTimeout(async()=>{t.onTap?.(),l=null},$e):t.onTap?.():g>Vt&&t.onLongPress?.())}return{startTap:a,checkTap:s}}function Xt(t,n){const o=e.ref(!1);function l(){o.value||(o.value=!0,e.unref(t)?.addEventListener("transitionend",a))}function a(){e.unref(t)?.removeEventListener("transitionend",a),o.value=!1,n.onComplate?.()}return{transitioning:o,startTransition:l}}function Kt(t,n,o,l){var a=Math.min(o/t,l/n),s=t*a,i=n*a;return{width:J(s),height:J(i)}}function Zt(t){return t<3?"444ms":t<6?"555ms":"666ms"}function xe(t,n,o){return Math.min(Math.max(t,n),o)}function J(t,n=2){return parseFloat(t.toFixed(n))}function Te(t,n,o){return t=J(t),n=J(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function Fe(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Gt(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function Ve(t){const n=e.ref(!1),o=e.ref(!1),l=e.ref(1),a=e.ref(9),s=e.ref(),i=e.ref(),u=e.ref({width:0,height:0}),g=e.ref({width:0,height:0}),r=e.reactive({level:1,offsetX:0,offsetY:0,zooming:!1,preview:!0,lastCenter:{x:0,y:0}}),d=e.ref({}),f=Ft(),m=Xt(i,{onComplate(){r.preview||w()}}),M=Wt({onTap(){t.onTap?.()},onDoubleTap(){t.onDoubleTap?.()},onLongPress(){t.onLongPress?.()}});ze(i,D=>c(D)),e.watch([s,i],([D,E])=>{y(D,E)},{immediate:!0});async function c(D){const[E]=D;E.contentRect.width==g.value.width&&E.contentRect.height==g.value.height||(await y(s.value),await w(r.level,!0))}async function y(D,E){await Y(D,E),D&&$()}async function v(D){if(!r.preview)return;r.preview=!1,D=D??r.level;const E=i.value;if(!E)return;const{scrollTop:N,scrollLeft:j}=E,{width:O,height:S}=u.value,{scaleW:k,scaleH:R}=C(D),{top:X,left:F}=_(k,R),ne=F!=0?F:j*-1,ee=X!=0?X:N*-1;E.scrollTop=0,E.scrollLeft=0;const{value:P}=d;P.width=`${O}px`,P.height=`${S}px`,P.maxHeight="none",P.transitionDuration="0s",P.transform=Te(ne,ee,D),d.value=P,await e.nextTick(),r.offsetX=ne,r.offsetY=ee,await De(20)}async function w(D,E){if(!E&&r.preview)return;r.preview=!0,D=D??r.level;const{value:N}=d,{scaleW:j,scaleH:O}=C(D),{left:S,top:k}=_(j,O);D===1&&(N.maxHeight="100%"),N.width=`${j}px`,N.height=`${O}px`,N.transitionDuration="0s",N.filter="blur(0.1px)",N.transform=Te(S,k,1),d.value=N,await e.nextTick();const R=i.value;if(!R)return;const{offsetX:X,offsetY:F}=r;X<0&&(R.scrollLeft=Math.abs(X)),F<0&&(R.scrollTop=Math.abs(F)),await A()}async function A(){await De(15),delete d.value.filter}async function z(D,E,N){if(n.value||(D=J(D),D=xe(D,l.value-l.value*.5,a.value+a.value*.5),D==r.level))return;r.preview&&await v(),E||(E={x:f.startX.value,y:f.startY.value});const{value:j}=d,{width:O,height:S}=u.value,{scaleW:k,scaleH:R}=C(D),{top:X,left:F}=_(k,R),ne=D/r.level,ee={left:Math.abs(O*D-g.value.width)*-1,top:Math.abs(S*D-g.value.height)*-1,right:F,bottom:X};let P=F!=0?F:(r.offsetX-E.x)*ne+E.x,le=X!=0?X:(r.offsetY-E.y)*ne+E.y;P=J(xe(P,ee.left,ee.right)),le=J(xe(le,ee.top,ee.bottom)),j.width=`${O}px`,j.height=`${S}px`,j.transitionDuration=N?Zt(D):"0s",j.transform=Te(P,le,D),r.offsetX=P,r.offsetY=le,r.level=D,d.value=j,await e.nextTick(),N&&m.startTransition(),t.onScale?.(D)}function h(){const D=r.level>1?1:T();z(D,void 0,!0)}function p(D,E){if(!r.preview)return;const N=i.value;!N||N.scrollTo({left:r.offsetX-D,top:r.offsetY-E})}async function I(){r.level>=l.value&&r.level<=a.value?r.zooming&&await w():r.level<l.value?await z(l.value,void 0,!0):r.level>a.value&&await z(a.value,r.lastCenter,!0),r.zooming=!1}function T(){const{width:D,height:E}=u.value,{width:N,height:j}=g.value,O=2.5;let S;return E==j?(S=N/D,S-1<.1&&(S=O)):S=Math.max(O,N/D,j/E),S}function C(D){const{width:E,height:N}=u.value;return{scaleW:J(D*E),scaleH:J(D*N)}}function _(D,E){const{width:N,height:j}=g.value,O=Math.max(0,(j-E)*.5),S=Math.max(0,(N-D)*.5);return{top:O,left:S}}async function Y(D,E){if(D=D??s.value,E=E??i.value,!E)return;let N,{clientWidth:j=0,clientHeight:O=0}=D||{};const{clientWidth:S,clientHeight:k}=E;if(D instanceof HTMLImageElement?N={width:D.naturalWidth,height:D.naturalHeight}:D instanceof HTMLVideoElement&&(N={width:D.videoWidth,height:D.videoHeight}),N){const R=Kt(N.width,N.height,S,k);j=R.width,O=R.height}(j===0||O===0)&&(j=u.value.width||S,O=u.value.height||k),u.value={width:Math.min(j,S),height:Math.min(O,k)},g.value={width:S,height:k},w(void 0,!0)}function $(){const D=T();a.value=Math.max(a.value,D*2)}function U(D){n.value=D}function V(){return o.value}function W(D){o.value=D}return{touch:f,state:r,style:d,gesture:M,transition:m,imageRef:s,containerRef:i,switchToZoom:v,switchToPreview:w,panTo:p,zoomTo:z,zoomFinished:I,toggleZoom:h,setDisableZoom:U,setDisableMove:W,getDisableMove:V}}function We(t,n){const{state:o,touch:l,transition:a,containerRef:s}=t,i=gt(s);let u,g;function r(m){u=m}function d(m){return u==m}function f(m,M,c,y){i.measure();const{top:v,left:w,right:A,bottom:z}=i.arrivedState;if(m=="start")g=v||w||A||z;else if(u==2)g=!1;else if(g){if(l.direction.value=="vertical")if(o.level!=1)g=!1;else{const h=l.startY.value<c;g=v&&h||z&&!h}else if(l.direction.value=="horizontal"){const h=l.startX.value<M;g=w&&h||A&&!h}}g&&a.transitioning.value&&(g=!1,y?.preventDefault()),m=="end"&&!g&&(M=l.startX.value,c=l.startY.value,g=!0),(m!="move"||g)&&n?.(m,l.direction.value,M,c,y)}return{onSwipeEdge:f,setFingerNum:r,isEqualFingerNum:d}}function qt(t){const n=Ve({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:a,transition:s}=n;let i=!1,u=null;const g={top:0,left:0},r=ie(v,150),{onSwipeEdge:d}=We(n,t.onSwipeEdge),f=e.ref({top:0,left:0});ce("keyup",A),ce("keydown",w);function m(z){const h=n.containerRef.value;if(!h)return;const{left:p,top:I}=h.getBoundingClientRect();f.value.left=p,f.value.top=I,a.startTap();let T=z.clientX-p,C=z.clientY-I;l.start(T,C),d("start",T,C,z),s.transitioning.value||(i=!0,g.left=p,g.top=I,o.offsetX=h.scrollLeft,o.offsetY=h.scrollTop),window.addEventListener("pointermove",M),window.addEventListener("pointerup",c)}function M(z){if(!i||n.getDisableMove())return;let h=z.clientX,p=z.clientY;l.move(h,p),d("move",h-f.value.left,p-f.value.top,z),o.level!==1&&n.panTo(l.deltaX.value-g.left,l.deltaY.value-g.top)}function c(z){d("end",l.offsetX.value,l.offsetY.value,z),a.checkTap(l.offsetX.value,l.offsetY.value),l.reset(),i=!1,window.removeEventListener("pointermove",M),window.removeEventListener("pointerup",c)}function y(z){if(!z.ctrlKey)return;o.zooming||(o.zooming=!0,u=="Control"&&window.addEventListener("keyup",v)),z.preventDefault();let h=-z.deltaY;z.deltaMode===1?h*=.05:h*=z.deltaMode?1:.002,u!="Control"&&(h*=10),h=2**h;const p=o.level*h;o.lastCenter={x:z.clientX-f.value.left,y:z.clientY-f.value.top},n.zoomTo(p,o.lastCenter),u!="Control"&&r()}function v(){n.zoomFinished(),window.removeEventListener("keyup",v)}function w(z){u=z.key}function A(){u=null}return{core:n,onPointerDown:m,onWheel:y}}function Jt(t){const n=Ve({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:a}=n,{setFingerNum:s,onSwipeEdge:i,isEqualFingerNum:u}=We(n,t.onSwipeEdge);let g,r;async function d(M){const{touches:c}=M;s(c.length),o.zooming=u(2),a.startTap();const{clientX:y,clientY:v}=c[0];l.start(y,v),i("start",y,v,M),o.zooming&&(M.preventDefault(),g=o.level,r=Fe(c),await n.switchToZoom(),o.lastCenter=Gt(c))}async function f(M){if(n.getDisableMove())return;const{touches:c}=M;s(c.length);const{clientX:y,clientY:v}=c[0];if(l.move(y,v),i("move",y,v,M),o.zooming&&u(2)){M.preventDefault();const w=Fe(c),A=g*w/r;n.zoomTo(A,o.lastCenter)}}async function m(M){if(M.touches.length)return;const{clientX:c,clientY:y}=M.changedTouches[0];i("end",c,y,M),a.checkTap(l.offsetX.value,l.offsetY.value),n.zoomFinished(),l.reset()}return{core:n,onTouchStart:d,onTouchMove:f,onTouchEnd:m}}function en(){const t=e.reactive({scale:1,startX:0,startY:0,offsetX:0,offsetY:0,dragging:!1,started:!1});function n(a,s){t.startX=a,t.startY=s,t.scale=1}function o(a,s){t.started=!0,t.dragging=!0,t.offsetX=a-t.startX,t.offsetY=s-t.startY,t.scale=1-Math.abs(t.offsetY/s*.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}}function Xe(){const t=e.ref(!1),n=e.ref(!1);return e.onActivated(()=>{!n.value||(t.value=!0)}),e.onMounted(()=>{n.value=!1,setTimeout(()=>{n.value=!0})}),{isActivated:t}}function Ke(t){let n=!1;return()=>{n||(t(),n=!0)}}function tn(t){let n=null;const{isActivated:o}=Xe(),l=Ke(()=>n=window.onBackPress);function a(){l(),window.onBackPress=()=>t()}function s(){window.onBackPress=n}return e.onActivated(()=>{!o.value||a()}),e.onBeforeMount(()=>{a()}),e.onBeforeUnmount(()=>{s()}),e.onDeactivated(()=>{s()}),{register:a,unregister:s}}const nn=["onClick"],on=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(t){const n=t,o=e.ref(),l=e.ref(),a=e.ref(),s=e.computed(()=>{switch(n.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),i=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${s.value}% - ${a.value}px)`,left:`calc(50% - ${l.value}px)`})),u=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,a.value=o.value.offsetHeight/2}),(r,d)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(g,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(i),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(u))},[e.createElementVNode("span",null,e.toDisplayString(t.message),1)],4)],12,nn))}}),oo="",ln=Z(on,[["__scopeId","data-v-25d39b90"]]),Ze={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class an{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(ln),{...Ze,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Ze.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 sn=["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 a(s){const{style:i}=s;return typeof i=="object"?i:{}}return(s,i)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...a(s.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:t.color,color:t.color},null,8,sn)],4))}});function rn(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:a={},maxHeightRatio:s=.9,observeMethod:i="classList"}=t,u=e.ref(!0),g=ie(Y,100);let r,d="";const f=e.ref(0),m=e.ref(0),M=e.ref(0),c=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),y=e.ref({clientHeight:0}),v=e.computed(()=>!!m.value),w=e.computed(()=>c.value.scrollHeight>c.value.clientHeight),A=e.computed(()=>l?c.value.clientHeight-p.value:c.value.clientHeight-y.value.clientHeight),z=e.computed(()=>c.value.scrollHeight-c.value.clientHeight),h=e.computed(()=>!c.value.clientHeight&&!c.value.scrollHeight?1:Math.max(c.value.clientHeight/c.value.scrollHeight,.05)),p=e.computed(()=>h.value>s?0:h.value*c.value.clientHeight),I=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${M.value}px,0)`,height:l?`${p.value}px`:void 0}));ze(n,()=>N());function T(S){_(),m.value=S.clientY-o.value.getBoundingClientRect().top||1,d=getComputedStyle(n.value).scrollBehavior,d==="smooth"&&(n.value.style.scrollBehavior="unset")}function C(){n.value.style.scrollBehavior=d,m.value=0,g()}function _(){u.value=!1}function Y(){v.value||(u.value=!0)}function $(S){if(!v.value)return;let k=S.clientY-c.value.top-m.value;k<0?M.value=0:k>=A.value?M.value=A.value:M.value=k,n.value.scrollTo({top:M.value/A.value*z.value})}function U(){v.value||V()}function V(){cancelAnimationFrame(r),r=requestAnimationFrame(W)}function W(){n.value&&(f.value=a.scrollTop?.value??n.value.scrollTop,M.value=f.value/z.value*A.value)}function D(S){let k="addEventListener";S==="add"?k="addEventListener":k="removeEventListener",o.value?.[k]("pointerdown",T,{passive:!0}),window[k]("pointermove",$,{passive:!0}),window[k]("pointerup",C,{passive:!0})}const E=new MutationObserver(S=>{(i=="classList"||S.map(R=>R.oldValue).join().includes("height"))&&N()});function N(){c.value.top=n.value?.getBoundingClientRect().top??0;const{scrollHeight:S=0,clientHeight:k=0}=n.value||{},{scrollHeight:R,clientHeight:X}=c.value;S!=R&&(c.value.scrollHeight=S,W()),k!=X&&(c.value.clientHeight=k,W());const{clientHeight:F=0}=o.value||{};F!=y.value.clientHeight&&(y.value.clientHeight=F)}function j(){_(),setTimeout(()=>{y.value.clientHeight=o.value?.clientHeight??0,Y()},150)}function O(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",U,{passive:!0}),D("add");const S={};i==="classList"?Object.assign(S,{subtree:!0,childList:!0}):Object.assign(S,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),E.observe(n.value,S),setTimeout(()=>{N()},100),j()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(f,()=>{_(),g()}),{isScrollEnd:u,isDragSlider:v,offsetTop:M,scrollTop:f,scrollable:w,sliderPos:I,sliderRollableHeight:A,init:O,modifySliderEventListener:D,heightRatio:h}}const cn=(t=>(e.pushScopeId("data-v-7fd39e51"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),un=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null,maxHeightRatio:{default:.9}},setup(t,{expose:n}){const o=t,l=!!e.useSlots().default,a=e.ref(null),s=e.computed(()=>o.containerEl),i=rn({containerEl:s,sliderEl:a,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:u,isScrollEnd:g,sliderPos:r,heightRatio:d}=i,f=e.ref(!1),m=o.autoHide?e.computed(()=>o.maxHeightRatio<d.value?!1:f.value||!g.value):e.computed(()=>o.maxHeightRatio<d.value?!1:u.value),{load:M}=Ae(`.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(()=>{g(),e.nextTick(()=>{i.init()})}),e.onUnmounted(()=>{i.modifySliderEventListener("remove")});function r(){d.value=!0}function y(){d.value=!1}return n({uScrollBarReturn:i}),(N,w)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:a,class:"slider-wrapper",onMouseenter:r,onMouseleave:y,style:e.normalizeStyle(e.unref(f))},[e.renderSlot(N.$slots,"default",{},()=>[an],!0)],36),[[e.vShow,e.unref(m)]])]),_:3}))}}),ao="",rn=X(sn,[["__scopeId","data-v-7fd39e51"]]),cn=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),un={class:"pull-refresh"},dn={key:0,class:"pull-arrow-circle"},fn={key:0,class:"box-load"},Mn={class:"left-load"},gn={class:"right-load"},mn=cn(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),hn={class:"pull-arrow"},pn={key:1},yn=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",a=e.ref(-999),s=e.ref(1),i=e.ref(0),u=e.ref(.3),c=e.ref(!1),f=e.ref(0),M=e.ref(0),d=e.ref(0),m=e.ref(0),g=e.ref(0),r=e.ref(),y=e.computed(()=>n.scrollTop),N=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${a.value}px, 0) scale(${s.value})`})),w=e.computed(()=>({borderColor:l,transition:m.value,transform:`rotate(${100+i.value}deg)`,opacity:u.value}));e.watch(g,D=>{D===0&&(a.value=-50,u.value=.3)}),e.watch(M,D=>{if(g.value===2)return;const C=Math.pow(D,o);C===0&&(a.value=-50),C<=50&&C>0&&(a.value=C-45,i.value=Math.pow(C,1.5),C>15?c.value=!0:c.value=!1),C>50&&(a.value=5,u.value=1,g.value)});const I=e.ref(0),S=D=>{I.value=D.touches[0].pageY},h=D=>{const C=D.touches[0].pageY-I.value;I.value=D.touches[0].pageY,!n.refreshOff&&(!n?.refresh||g.value!==2&&y.value===0&&(f.value===0&&(f.value=D.touches[0].pageY),d.value=0,v.value.style.transition=`${d.value}ms`,m.value=0,M.value=D.touches[0].pageY-f.value,v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,C>0&&D.preventDefault()))},p=()=>{if(n.refreshOff||!n?.refresh||g.value===2)return;f.value=0,d.value=300;const D=Math.pow(M.value,o);v.value.style.transition=`${d.value}ms`,D>50?(g.value=2,M.value=Math.pow(50,1/o),v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,m.value=300,n?.refresh&&n?.refresh().then(()=>{r.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{r.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{g.value=0,M.value=0,v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,setTimeout(()=>{r.value=void 0},m.value)},600)})):(M.value=0,v.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`)},v=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(v.value=document.querySelector(n.pullRefreshContainer),v.value?.addEventListener("touchstart",S),v.value?.addEventListener("touchmove",h),v.value?.addEventListener("touchend",p))}),(D,C)=>(e.openBlock(),e.createElementBlock("div",un,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(N))},[r.value?(e.openBlock(),e.createElementBlock("div",pn,e.toDisplayString(r.value),1)):(e.openBlock(),e.createElementBlock("div",dn,[g.value==2?(e.openBlock(),e.createElementBlock("div",fn,[e.createElementVNode("div",Mn,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",gn,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),mn])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(w))},[e.createElementVNode("div",hn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:c.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),so="",Xe=X(yn,[["__scopeId","data-v-df5da876"]]),Dn=["data-key"],Tn={inheritAttrs:!1},Nn=e.defineComponent({...Tn,__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,a=ke(e.toRef(l,"data"),{itemHeight:g=>l.itemHeight(l.data[g]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:s,containerProps:i,wrapperProps:u,innerProps:c,getItemHeightData:f,scrollTop:M}=a;n({vListReturn:a});const d="virtualListWrapper"+new Date().getTime();function m(g,r){return l.getItemKey?l.getItemKey(g,r):`${r}`}return(g,r)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Xe,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(M),pullRefreshContainer:"#"+d},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:d},[e.createElementVNode("div",e.mergeProps({onScrollPassive:r[0]||(r[0]=(...y)=>e.unref(i).onScroll&&e.unref(i).onScroll(...y)),ref:e.unref(i).ref,class:"virtualList"},g.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(c))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),({data:y,index:N})=>(e.openBlock(),e.createElementBlock("div",{key:m(y,N),"data-key":m(y,N),style:e.normalizeStyle({height:`${e.unref(f)(N).height}px`,display:"flex"})},[e.renderSlot(g.$slots,"default",{data:y,index:N},void 0,!0)],12,Dn))),128))],16)],16)],16)])],64))}}),io="",wn=X(Nn,[["__scopeId","data-v-dfe60586"]]),Ce=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),vn={style:{position:"absolute"}},En=Ce(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),In=["width","height"],zn=[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))],An=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,a)=>(e.openBlock(),e.createElementBlock("div",vn,[En,(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"},zn,8,In))]))}}),uo="",Ln=X(An,[["__scopeId","data-v-33519afd"]]),Sn=["image/vnd.adobe.photoshop","image/x-photoshop","image/jp2","image/pcx"];function Ke(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),a=e.ref(!1),s=e.computed(()=>a.value),i=e.computed(()=>{const c=n?.value;return!c||c.startsWith("video/")?!0:c.startsWith("image/")?l.value?!0:!Sn.includes(c):!1});t&&e.watch(t,c=>{o.value=c,a.value=!1});function u(){a.value=!0}return{imgSrc:o,isError:a,hasError:s,isSupport:i,handleError:u}}function Ze(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const Cn=["title"],jn={class:"tip"},xn=[e.createTextVNode("\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301")],bn=["src"],On=["src"],_n=["title"],kn={inheritAttrs:!1},Bn=e.defineComponent({...kn,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean},noSupportIconName:{default:"\u4E0D\u652F\u6301\u663E\u793A"},badImageIconName:{default:"\u56FE\u7247\u635F\u574F"}},emits:["load","noSupport","loadError"],setup(t,{emit:n}){const o=t,l=e.ref(),a=e.ref(),s=e.ref(!1),i=e.ref(!1),u=e.ref(!1),{src:c,mime:f}=e.toRefs(o),{imgSrc:M,isSupport:d,hasError:m,handleError:g}=Ke(c,f),{vImageCancel:r}=Ze(),{LoadingComp:y}=Ae({component:Qe,delay:300}),N=Je(()=>u.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!u.value);function w(){i.value=!0}function I(){i.value&&(u.value=!0)}async function S(){w(),N.value?(l.value?.addEventListener("animationend",h),l.value?.classList.add("showing"),await Le(10)):l.value&&n("load",l.value),l.value?.classList.remove("src-class")}function h(){l.value?.removeEventListener("animationend",h),l.value?.classList.remove("showing"),l.value&&n("load",l.value),I()}async function p(C){C?S():a.value&&n("load",a.value),s.value=!0}function v(C){C?(g(),n("loadError")):w(),s.value=!0}function D(){n("noSupport")}return(C,B)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(d)&&!s.value?(e.openBlock(),e.createBlock(e.unref(y),{key:0})):e.createCommentVNode("",!0),e.unref(d)?e.unref(m)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},C.$attrs,{title:e.unref(M),class:"tip-wrap"}),[e.createVNode(ne,{class:"bad-image",name:t.badImageIconName},null,8,["name"])],16,_n)):e.renderSlot(C.$slots,"default",{key:2,src:e.unref(M),onLoad:p,onError:v,vImageCancel:e.unref(r)},()=>[e.unref(N)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},C.$attrs,{ref_key:"thumbnailRef",ref:a,onLoad:B[0]||(B[0]=$=>p()),onError:B[1]||(B[1]=$=>v()),src:t.thumbnail}),null,16,bn)),[[e.unref(r)]]):e.createCommentVNode("",!0),t.isShowSrc||i.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},C.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:B[2]||(B[2]=$=>p(!0)),onError:B[3]||(B[3]=$=>v(!0)),src:e.unref(M)}),null,16,On)),[[e.unref(r)],[e.vShow,i.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},C.$attrs,{title:e.unref(M),class:"tip-wrap"}),[e.createVNode(ne,{class:"no-support-icon",name:t.noSupportIconName},null,8,["name"]),e.withDirectives((e.openBlock(),e.createElementBlock("span",jn,xn)),[[e.unref(ye),D]])],16,Cn))],64))}}),Mo="",Qn=X(Bn,[["__scopeId","data-v-bfec1a6b"]]),Yn=["title"],Un=["src"],Rn=["title"],Pn=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},emits:["noSupport"],setup(t,{emit:n}){const o=t,l=e.ref(!1),{src:a,mime:s}=e.toRefs(o),{imgSrc:i,hasError:u,isSupport:c,handleError:f}=Ke(a,s),{vImageCancel:M}=Ze();function d(){n("noSupport")}return(m,g)=>e.unref(c)?e.unref(u)?e.renderSlot(m.$slots,"imageError",{key:2},()=>[e.createElementVNode("div",{title:e.unref(i),class:"icon-wrap"},[e.createVNode(ne,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,Rn)],!0):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:g[0]||(g[0]=r=>l.value=!0),onError:g[1]||(g[1]=(...r)=>e.unref(f)&&e.unref(f)(...r)),src:e.unref(i)},null,40,Un)),[[e.unref(M)],[e.vShow,l.value]]):e.renderSlot(m.$slots,"noSupport",{key:0},()=>[e.createElementVNode("div",{title:e.unref(i),class:"icon-wrap"},[e.withDirectives(e.createVNode(ne,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"},null,512),[[e.unref(ye),d]])],8,Yn)],!0)}}),go="",$n=X(Pn,[["__scopeId","data-v-ab86da1e"]]);L.DefaultLoading=Qe,L.Image=Qn,L.Loading=Ln,L.LoadingToast=Ye,L.PageLoading=jt,L.PullRefresh=Xe,L.ScrollBar=rn,L.SvgIcon=ne,L.Thumbnail=$n,L.ToastCreator=nn,L.VirtualList=wn,L.allSelectedKey=ce,L.closeDialogKey=Be,L.dialogController=vt,L.getTransform=me,L.isAllSelectedKey=Me,L.isSelectedKey=re,L.itemKeyKey=Ee,L.once=Ve,L.selectAllKey=de,L.selectKey=ue,L.selectedCountKey=ge,L.toggleAllKey=se,L.toggleKey=ie,L.unselectAllKey=ee,L.unselectKey=fe,L.useBackPress=qt,L.useDelayAsync=Ut,L.useDelayLoad=Et,L.useDelayLoadComp=Ae,L.useDownDrag=Gt,L.useDragSelect=ze,L.useDragSelectByMobile=Tt,L.useDragSelectByPc=Dt,L.useRouterActivated=Fe,L.useScaleImageByMobile=Zt,L.useScaleImageByPc=Kt,L.useSelectable=mt,L.useSelectableByBase=ht,L.useSelectableInjectors=gt,L.useVirtualList=ke,L.vDebounceClick=qe,L.vEnter=ye,L.vSingleClick=xe,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
20
|
+
}`,{id:"styletag_lzc_scrollbar",manual:!0});e.onMounted(()=>{M(),e.nextTick(()=>{i.init()})}),e.onUnmounted(()=>{i.modifySliderEventListener("remove")});function c(){f.value=!0}function y(){f.value=!1}return n({uScrollBarReturn:i}),(v,w)=>(e.openBlock(),e.createBlock(e.Transition,null,{default:e.withCtx(()=>[e.withDirectives(e.createElementVNode("div",{ref_key:"sliderRef",ref:a,class:"slider-wrapper",onMouseenter:c,onMouseleave:y,style:e.normalizeStyle(e.unref(r))},[e.renderSlot(v.$slots,"default",{},()=>[cn],!0)],36),[[e.vShow,e.unref(m)]])]),_:3}))}}),ao="",fn=Z(un,[["__scopeId","data-v-7fd39e51"]]),dn=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),Mn={class:"pull-refresh"},gn={key:0,class:"pull-arrow-circle"},mn={key:0,class:"box-load"},hn={class:"left-load"},pn={class:"right-load"},yn=dn(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),Dn={class:"pull-arrow"},Tn={key:1},Nn=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",a=e.ref(-999),s=e.ref(1),i=e.ref(0),u=e.ref(.3),g=e.ref(!1),r=e.ref(0),d=e.ref(0),f=e.ref(0),m=e.ref(0),M=e.ref(0),c=e.ref(),y=e.computed(()=>n.scrollTop),v=e.computed(()=>({transition:`${m.value}ms`,transform:`translate3d(0,${a.value}px, 0) scale(${s.value})`})),w=e.computed(()=>({borderColor:l,transition:m.value,transform:`rotate(${100+i.value}deg)`,opacity:u.value}));e.watch(M,T=>{T===0&&(a.value=-50,u.value=.3)}),e.watch(d,T=>{if(M.value===2)return;const C=Math.pow(T,o);C===0&&(a.value=-50),C<=50&&C>0&&(a.value=C-45,i.value=Math.pow(C,1.5),C>15?g.value=!0:g.value=!1),C>50&&(a.value=5,u.value=1,M.value)});const A=e.ref(0),z=T=>{A.value=T.touches[0].pageY},h=T=>{const C=T.touches[0].pageY-A.value;A.value=T.touches[0].pageY,!n.refreshOff&&(!n?.refresh||M.value!==2&&y.value===0&&(r.value===0&&(r.value=T.touches[0].pageY),f.value=0,I.value.style.transition=`${f.value}ms`,m.value=0,d.value=T.touches[0].pageY-r.value,I.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,C>0&&T.preventDefault()))},p=()=>{if(n.refreshOff||!n?.refresh||M.value===2)return;r.value=0,f.value=300;const T=Math.pow(d.value,o);I.value.style.transition=`${f.value}ms`,T>50?(M.value=2,d.value=Math.pow(50,1/o),I.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,m.value=300,n?.refresh&&n?.refresh().then(()=>{c.value="\u5237\u65B0\u6210\u529F"}).catch(()=>{c.value="\u5237\u65B0\u5931\u8D25"}).finally(()=>{setTimeout(()=>{M.value=0,d.value=0,I.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`,setTimeout(()=>{c.value=void 0},m.value)},600)})):(d.value=0,I.value.style.transform=`translate3d(0, ${Math.pow(d.value,o)}px, 0)`)},I=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(I.value=document.querySelector(n.pullRefreshContainer),I.value?.addEventListener("touchstart",z),I.value?.addEventListener("touchmove",h),I.value?.addEventListener("touchend",p))}),(T,C)=>(e.openBlock(),e.createElementBlock("div",Mn,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(v))},[c.value?(e.openBlock(),e.createElementBlock("div",Tn,e.toDisplayString(c.value),1)):(e.openBlock(),e.createElementBlock("div",gn,[M.value==2?(e.openBlock(),e.createElementBlock("div",mn,[e.createElementVNode("div",hn,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",pn,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),yn])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(w))},[e.createElementVNode("div",Dn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:g.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),so="",Ge=Z(Nn,[["__scopeId","data-v-df5da876"]]),wn=["data-key"],vn={inheritAttrs:!1},En=e.defineComponent({...vn,__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,a=Ye(e.toRef(l,"data"),{itemHeight:M=>l.itemHeight(l.data[M]),overscan:l.overscan,scrollEndHook:()=>{o("scrollEnd")}}),{list:s,containerProps:i,wrapperProps:u,innerProps:g,getItemHeightData:r,scrollTop:d}=a;n({vListReturn:a});const f="virtualListWrapper"+new Date().getTime();function m(M,c){return l.getItemKey?l.getItemKey(M,c):`${c}`}return(M,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.createVNode(Ge,{refresh:t.refresh,refreshOff:t.refreshOff,scrollTop:e.unref(d),pullRefreshContainer:"#"+f},null,8,["refresh","refreshOff","scrollTop","pullRefreshContainer"]),e.createElementVNode("div",{class:"virtualListWrapper",id:f},[e.createElementVNode("div",e.mergeProps({onScrollPassive:c[0]||(c[0]=(...y)=>e.unref(i).onScroll&&e.unref(i).onScroll(...y)),ref:e.unref(i).ref,class:"virtualList"},M.$attrs),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(u))),[e.createElementVNode("div",e.normalizeProps(e.guardReactiveProps(e.unref(g))),[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(s),({data:y,index:v})=>(e.openBlock(),e.createElementBlock("div",{key:m(y,v),"data-key":m(y,v),style:e.normalizeStyle({height:`${e.unref(r)(v).height}px`,display:"flex"})},[e.renderSlot(M.$slots,"default",{data:y,index:v},void 0,!0)],12,wn))),128))],16)],16)],16)])],64))}}),io="",In=Z(En,[["__scopeId","data-v-dfe60586"]]),be=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),zn={style:{position:"absolute"}},An=be(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),Ln=["width","height"],Sn=[be(()=>e.createElementVNode("title",null,"logo",-1)),be(()=>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))],Cn=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,a)=>(e.openBlock(),e.createElementBlock("div",zn,[An,(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"},Sn,8,Ln))]))}}),uo="",jn=Z(Cn,[["__scopeId","data-v-33519afd"]]),xn=["image/vnd.adobe.photoshop","image/x-photoshop","image/jp2","image/pcx"];function qe(t,n){const o=e.ref(t?.value),l=e.computed(()=>o.value?.startsWith("/_lzc")),a=e.ref(!1),s=e.computed(()=>a.value),i=e.computed(()=>{const g=n?.value;return!g||g.startsWith("video/")?!0:g.startsWith("image/")?l.value?!0:!xn.includes(g):!1});t&&e.watch(t,g=>{o.value=g,a.value=!1});function u(){a.value=!0}return{imgSrc:o,isError:a,hasError:s,isSupport:i,handleError:u}}function Je(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const bn=["title"],On={class:"tip"},_n=[e.createTextVNode("\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301")],kn=["src"],Bn=["src"],Qn=["title"],Yn={inheritAttrs:!1},Un=e.defineComponent({...Yn,__name:"Image",props:{src:null,mime:null,thumbnail:null,isShowSrc:{type:Boolean},autoRemoveThumbnail:{type:Boolean},noSupportIconName:{default:"\u4E0D\u652F\u6301\u663E\u793A"},badImageIconName:{default:"\u56FE\u7247\u635F\u574F"}},emits:["load","noSupport","loadError"],setup(t,{emit:n}){const o=t,l=e.ref(),a=e.ref(),s=e.ref(!1),i=e.ref(!1),u=e.ref(!1),{src:g,mime:r}=e.toRefs(o),{imgSrc:d,isSupport:f,hasError:m,handleError:M}=qe(g,r),{vImageCancel:c}=Je(),{LoadingComp:y}=je({component:Re,delay:300}),v=nt(()=>u.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!u.value);function w(){i.value=!0}function A(){i.value&&(u.value=!0)}async function z(){w(),v.value?(l.value?.addEventListener("animationend",h),l.value?.classList.add("showing"),await De(10)):l.value&&n("load",l.value),l.value?.classList.remove("src-class")}function h(){l.value?.removeEventListener("animationend",h),l.value?.classList.remove("showing"),l.value&&n("load",l.value),A()}async function p(C){C?z():a.value&&n("load",a.value),s.value=!0}function I(C){C?(M(),n("loadError")):w(),s.value=!0}function T(){n("noSupport")}return(C,_)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.unref(f)&&!s.value?(e.openBlock(),e.createBlock(e.unref(y),{key:0})):e.createCommentVNode("",!0),e.unref(f)?e.unref(m)?(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:3},C.$attrs,{title:e.unref(d),class:"tip-wrap"}),[e.createVNode(se,{class:"bad-image",name:t.badImageIconName},null,8,["name"])],16,Qn)):e.renderSlot(C.$slots,"default",{key:2,src:e.unref(d),onLoad:p,onError:I,vImageCancel:e.unref(c)},()=>[e.unref(v)?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:0},C.$attrs,{ref_key:"thumbnailRef",ref:a,onLoad:_[0]||(_[0]=Y=>p()),onError:_[1]||(_[1]=Y=>I()),src:t.thumbnail}),null,16,kn)),[[e.unref(c)]]):e.createCommentVNode("",!0),t.isShowSrc||i.value?e.withDirectives((e.openBlock(),e.createElementBlock("img",e.mergeProps({key:1},C.$attrs,{ref_key:"srcRef",ref:l,class:"src-class",onLoad:_[2]||(_[2]=Y=>p(!0)),onError:_[3]||(_[3]=Y=>I(!0)),src:e.unref(d)}),null,16,Bn)),[[e.unref(c)],[e.vShow,i.value]]):e.createCommentVNode("",!0)],!0):(e.openBlock(),e.createElementBlock("div",e.mergeProps({key:1},C.$attrs,{title:e.unref(d),class:"tip-wrap"}),[e.createVNode(se,{class:"no-support-icon",name:t.noSupportIconName},null,8,["name"]),e.withDirectives((e.openBlock(),e.createElementBlock("span",On,_n)),[[e.unref(we),T]])],16,bn))],64))}}),Mo="",Rn=Z(Un,[["__scopeId","data-v-bfec1a6b"]]),Pn=["title"],$n=["src"],Hn=["title"],Fn=e.defineComponent({__name:"Thumbnail",props:{src:null,mime:null},emits:["noSupport"],setup(t,{emit:n}){const o=t,l=e.ref(!1),{src:a,mime:s}=e.toRefs(o),{imgSrc:i,hasError:u,isSupport:g,handleError:r}=qe(a,s),{vImageCancel:d}=Je();function f(){n("noSupport")}return(m,M)=>e.unref(g)?e.unref(u)?e.renderSlot(m.$slots,"imageError",{key:2},()=>[e.createElementVNode("div",{title:e.unref(i),class:"icon-wrap"},[e.createVNode(se,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,Hn)],!0):e.withDirectives((e.openBlock(),e.createElementBlock("img",{key:1,fetchpriority:"high",onLoad:M[0]||(M[0]=c=>l.value=!0),onError:M[1]||(M[1]=(...c)=>e.unref(r)&&e.unref(r)(...c)),src:e.unref(i)},null,40,$n)),[[e.unref(d)],[e.vShow,l.value]]):e.renderSlot(m.$slots,"noSupport",{key:0},()=>[e.createElementVNode("div",{title:e.unref(i),class:"icon-wrap"},[e.withDirectives(e.createVNode(se,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"},null,512),[[e.unref(we),f]])],8,Pn)],!0)}}),go="",Vn=Z(Fn,[["__scopeId","data-v-ab86da1e"]]);L.DefaultLoading=Re,L.Image=Rn,L.Loading=jn,L.LoadingToast=Pe,L.PageLoading=Ot,L.PullRefresh=Ge,L.ScrollBar=fn,L.SvgIcon=se,L.Thumbnail=Vn,L.ToastCreator=an,L.VirtualList=In,L.allSelectedKey=Me,L.closeDialogKey=Ue,L.dialogController=zt,L.getTransform=Te,L.isAllSelectedKey=pe,L.isSelectedKey=de,L.itemKeyKey=Le,L.once=Ke,L.selectAllKey=me,L.selectKey=ge,L.selectedCountKey=ye,L.toggleAllKey=ue,L.toggleKey=fe,L.unselectAllKey=oe,L.unselectKey=he,L.useBackPress=tn,L.useDelayAsync=$t,L.useDelayLoad=At,L.useDelayLoadComp=je,L.useDownDrag=en,L.useDragSelect=Ce,L.useDragSelectByMobile=vt,L.useDragSelectByPc=wt,L.useRouterActivated=Xe,L.useScaleImageByMobile=Jt,L.useScaleImageByPc=qt,L.useSelectable=yt,L.useSelectableByBase=Dt,L.useSelectableInjectors=pt,L.useVirtualList=Ye,L.vDebounceClick=tt,L.vEnter=we,L.vSingleClick=_e,Object.defineProperties(L,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
21
21
|
//# sourceMappingURL=index.umd.js.map
|