@lazycatcloud/lzc-toolkit 0.0.213 → 0.0.215
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 +681 -678
- package/dist/index.es.js.map +1 -1
- package/dist/index.umd.js +4 -4
- package/dist/index.umd.js.map +1 -1
- 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&&l==="colum"&&!he()&&(C.value||c(),N.value=!1),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(z,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(z=typeof globalThis<"u"?globalThis:z||self,e(z.ui={},z.Vue))})(this,function(z,e){"use strict";const be={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__)}},Je={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)}},Te={beforeMount(t,n){n.value()}};function et(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 tt(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 Ne(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function V(t){return typeof t=="function"?t():e.unref(t)}const Oe=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;const nt=Object.prototype.toString,ot=t=>nt.call(t)==="[object Object]",J=()=>{};function _e(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 lt(t,n={}){let o,l,a=J;const s=u=>{clearTimeout(u),a(),a=J};return u=>{const c=V(t),f=V(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 at(...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=V(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,v)=>{a=f?v: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 st(t){return t||e.getCurrentInstance()}function le(t,n=200,o={}){return _e(lt(n,o),t)}function we(t,n=200,o=!1,l=!0,a=!1){return _e(at(n,o,l,a),t)}function ve(t,n=!0,o){st()?e.onMounted(t,o):n?t():e.nextTick(t)}function G(t){var n;const o=V(t);return(n=o?.$el)!=null?n:o}const ae=Oe?window:void 0,it=Oe?window.document:void 0;function se(...t){let n,o,l,a;if(typeof t[0]=="string"||Array.isArray(t[0])?([o,l,a]=t,n=ae):[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(()=>[G(n),V(a)],([M,d])=>{if(i(),!M)return;const m=ot(d)?{...d}:d;s.push(...o.flatMap(g=>l.map(r=>u(M,g,r,m))))},{immediate:!0,flush:"post"}),f=()=>{c(),i()};return Ne(f),f}function rt(){const t=e.ref(!1),n=e.getCurrentInstance();return n&&e.onMounted(()=>{t.value=!0},n),t}function ct(t){const n=rt();return e.computed(()=>(n.value,Boolean(t())))}function ut(t){const n=e.getCurrentInstance(),o=tt(()=>null,()=>t?G(t):n.proxy.$el);return e.onUpdated(o.trigger),e.onMounted(o.trigger),o}function Ee(t,n,o={}){const{window:l=ae,...a}=o;let s;const i=ct(()=>l&&"ResizeObserver"in l),u=()=>{s&&(s.disconnect(),s=void 0)},c=e.computed(()=>Array.isArray(t)?t.map(d=>G(d)):[G(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 Ne(M),{isSupported:i,stop:M}}function dt(t,n={width:0,height:0},o={}){const{window:l=ae,box:a="content-box"}=o,s=e.computed(()=>{var d,m;return(m=(d=G(t))==null?void 0:d.namespaceURI)==null?void 0:m.includes("svg")}),i=e.ref(n.width),u=e.ref(n.height),{stop:c}=Ee(t,([d])=>{const m=a==="border-box"?d.borderBoxSize:a==="content-box"?d.contentBoxSize:d.devicePixelContentBoxSize;if(l&&s.value){const g=G(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);ve(()=>{const d=G(t);d&&(i.value="offsetWidth"in d?d.offsetWidth:n.width,u.value="offsetHeight"in d?d.offsetHeight:n.height)});const f=e.watch(()=>G(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 ke=1;function ft(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=ae,onError:M=T=>{console.error(T)}}=n,d=e.ref(0),m=e.ref(0),g=e.computed({get(){return d.value},set(T){y(T,void 0)}}),r=e.computed({get(){return m.value},set(T){y(void 0,T)}});function y(T,C){var k,P,H;if(!f)return;const D=V(t);!D||(H=D instanceof Document?f.document.body:D)==null||H.scrollTo({top:(k=V(C))!=null?k:r.value,left:(P=V(T))!=null?P:g.value,behavior:V(c)})}const N=e.ref(!1),v=e.reactive({left:!0,right:!1,top:!0,bottom:!1}),I=e.reactive({left:!1,right:!1,top:!1,bottom:!1}),A=T=>{!N.value||(N.value=!1,I.left=!1,I.right=!1,I.top=!1,I.bottom=!1,a(T))},h=le(A,o+l),p=T=>{var C;if(!f)return;const k=((C=T?.document)==null?void 0:C.documentElement)||T?.documentElement||G(T),{display:P,flexDirection:H}=getComputedStyle(k),D=k.scrollLeft;I.left=D<d.value,I.right=D>d.value;const S=Math.abs(D)<=(i.left||0),x=Math.abs(D)+k.clientWidth>=k.scrollWidth-(i.right||0)-ke;P==="flex"&&H==="row-reverse"?(v.left=x,v.right=S):(v.left=S,v.right=x),d.value=D;let O=k.scrollTop;T===f.document&&!O&&(O=f.document.body.scrollTop),I.top=O<m.value,I.bottom=O>m.value;const L=Math.abs(O)<=(i.top||0),E=Math.abs(O)+k.clientHeight>=k.scrollHeight-(i.bottom||0)-ke;P==="flex"&&H==="column-reverse"?(v.top=E,v.bottom=L):(v.top=L,v.bottom=E),m.value=O},w=T=>{var C;if(!f)return;const k=(C=T.target.documentElement)!=null?C:T.target;p(k),N.value=!0,h(T),s(T)};return se(t,"scroll",o?we(w,o,!0,!1):w,u),ve(()=>{try{const T=V(t);if(!T)return;p(T)}catch(T){M(T)}}),se(t,"scrollend",A,u),{x:g,y:r,isScrolling:N,arrivedState:v,directions:I,measure(){const T=V(t);f&&T&&p(T)}}}let Mt=0;function Ie(t,n={}){const o=e.ref(!1),{document:l=it,immediate:a=!0,manual:s=!1,id:i=`vueuse_styletag_${++Mt}`}=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&&ve(f),s||Ne(M),{id:i,css:u,unload:M,load:f,isLoaded:e.readonly(o)}}function gt(t,n,o){const l=t.style[n];return l!=o&&(t.style[n]=o),{reset(){l!=o&&(t.style[n]=l)}}}function Be(t,n){const{scrollEndHook:o,itemHeight:l,overscan:a=5}=n,s=e.ref(null),i=dt(s),u=e.ref(!0),c=le(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:L,height:E}={sum:0,height:0};return M.value.map((B,Q)=>(typeof l=="number"?E=l:E=l(Q),L+=E,{height:E,sum:L}))}),v=e.computed(()=>P(m.value.start)),I=e.computed(()=>typeof l=="number"?N.value.length*l:N.value[N.value.length-1]?.sum||0),A=e.computed(()=>{const{start:L,end:E}=g.value;return y.value.slice(L,E)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(f)),e.watch(M,()=>{(i.width.value||i.height.value)&&w()},{deep:!0}),e.watch([i.width,i.height],([L,E])=>{(L||E)&&w()},{deep:!0}),e.watch(d,()=>{h(),c()});function h(){u.value=!1}function p(){u.value=!0,o?.()}function w(){cancelAnimationFrame(f),f=requestAnimationFrame(T)}function T(){if(s.value){d.value=s.value.scrollTop;let L=C(d.value);r=k(L);let E=Math.max(0,L-a),B=Math.min(L+r+a,M.value.length);m.value={start:E,end:B},y.value=M.value.slice(E,B).map((Q,_)=>({data:Q,index:_+E})),g.value.start=L-E,g.value.end=g.value.start+r}}function C(L){let E=0,B=N.value.length-1,Q=-1;for(;E<=B;){const _=Math.floor((E+B)/2);N.value[_].sum>=L?(Q=_,B=_-1):E=_+1}return Math.max(0,Q)}function k(L){let E=0,B=0;for(let Q=L;Q<N.value.length&&(E++,B+=N.value[Q].height,!(B>=i.height.value));Q++);return E}function P(L){if(typeof l=="number")return L*l;let E=N.value[L];return E?E.sum-E.height:0}function H(L){return N.value[L]||{sum:0,height:0}}function D(L,E="smooth"){if(s.value){const{reset:B}=gt(s.value,"scrollBehavior",E),Q=H(L);s.value.scrollTop=Q.sum-Q.height,T(),B()}if(s.value){const B=H(L);s.value.scrollTop=B.sum-B.height,T()}}const S=e.computed(()=>({style:{width:"100%",height:`${I.value}px`,pointerEvents:u.value?void 0:"none"}})),x=e.computed(()=>({style:{transform:`translate3d(0, ${v.value}px, 0)`,"will-change":"transform"}})),O={overflowY:"auto"};return{list:y,visiableList:A,getItemHeightData:H,getoffsetTopIndex:C,totalHeight:I,clientHeight:i.height,scrollTo:D,scrollTop:d,isScrollEnd:u,containerProps:{ref:s,onScroll:()=>{w()},style:O},wrapperProps:S,innerProps:x}}const ze=Symbol(),ie=Symbol(),re=Symbol(),ce=Symbol(),ue=Symbol(),de=Symbol(),fe=Symbol(),Me=Symbol(),ge=Symbol(),ee=Symbol(),me=Symbol();function mt(){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(ze,"id"),i=e.inject(ue,a),u=e.inject(ce,n),c=e.inject(ge,o),f=e.inject(re,t),M=e.inject(ie,t),d=e.inject(de,t),m=e.inject(fe,t),g=e.inject(Me,t),r=e.inject(ee,t),y=e.inject(me,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 ht(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)}),A()}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(w=>{p=s.get(w),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,w=s.size;h=p==w}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 v(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 A(){const h=[];a.value.forEach(p=>{s.get(p)||h.push(p)}),h.forEach(p=>a.value.delete(p))}return e.provide(ze,n),e.provide(ie,I),e.provide(re,v),e.provide(ce,y),e.provide(ue,u),e.provide(de,g),e.provide(fe,M),e.provide(Me,r),e.provide(ge,f),e.provide(ee,d),e.provide(ee,d),e.provide(me,c),{selected:u,select:g,selectAll:M,unselect:r,unselectAll:d,toggle:v,toggleAll:I,isSelected:y,isAllSelected:f,selectedCount:c}}function pt(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(ie,g),e.provide(re,m),e.provide(ce,M),e.provide(ue,l),e.provide(de,c),e.provide(fe,i),e.provide(Me,f),e.provide(ge,s),e.provide(ee,u),e.provide(ee,u),e.provide(me,a),{selected:l,select:c,selectAll:i,unselect:f,unselectAll:u,toggle:m,toggleAll:g,isSelected:M,isAllSelected:s,selectedCount:a}}function yt(t,n){return t>n?"horizontal":n>t?"vertical":""}function Dt(){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=yt(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 Ae(t){return()=>{console.debug(`\u9ED8\u8BA4${t}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function Le({key:t,customAttributeValue:n,attribute:o,selectWay:l="colum",scrollOptions:a={},getSelectMap:s=()=>({})}){const{select:i=Ae("\u9009\u62E9"),unselect:u=Ae("\u53D6\u6D88\u9009\u62E9"),unselectAll:c=Ae("\u53D6\u6D88\u5168\u9009"),selected:f=e.computed(()=>[])}=s();let M={};const d=e.computed(()=>we(l==="colum"?Wn:Xn,50)),m=e.computed(()=>t??o),g=(()=>n?b=>n(b):b=>b)(),r=new Set;let y=new Set;const N=e.ref(!0),v=e.ref(),I=e.ref(!1),A=e.ref({x:0,y:0}),h=e.ref({x:0,y:0,scrollTop:0}),p=e.ref({}),w=e.ref({top:0,height:0,sync(b=!1){w.value.top=v.value?.scrollTop||0,b&&(w.value.height=v.value?.scrollHeight||0)}}),T=e.computed(()=>I.value?{left:Math.min(A.value.x,h.value.x)-p.value.left,top:Math.min(A.value.y,h.value.y)-p.value.top,width:Math.abs(A.value.x-h.value.x),height:Math.abs(A.value.y-h.value.y)}:{left:0,top:0,width:0,height:0}),C=e.ref(!1),{margin:k=50,startSpeed:P=30,maxSpeed:H=30}=a;let D;const S=k,x=P,O=H,L=b=>b**1;let E=0;function B(b){if(cancelAnimationFrame(D),E=Q(b),E=Math.max(Math.min(E,O),-O),E!==0){const j=v.value;if(!j||!I.value)return;const R=w.value.height-p.value.height;let U=w.value.top+Number(E);U=Math.min(Math.max(0,U),R),j.scrollTop=U,Y(),D=requestAnimationFrame(()=>B(b))}}function Q(b){if(v.value){const R=p.value,U=R.bottom-b;if(U<S)return x*L(1-U/S);const F=b-R.top;if(F<S)return-x*L(1-F/S)}return 0}function _(b){const j={...T.value,right:0,bottom:0};return j.left+=p.value.left,j.top+=p.value.top-w.value.top,j.right=j.width+j.left,j.bottom=j.height+j.top,j.left<b.right&&j.right>b.left&&j.top<b.bottom&&j.bottom>b.top}function Y(){w.value.sync();const{top:b,height:j}=w.value;h.value.y=Math.min(j+p.value.top,h.value.y+b-h.value.scrollTop),h.value.scrollTop=b}function X(b,j,R="dynamic-styles"){let U=document.getElementById(R);U||(U=document.createElement("style"),U.id=R,document.head.appendChild(U));const F=U.sheet.cssRules,Z=F.length,De=`${b} { ${j} }`;for(let ne=0;ne<Z;ne++){const xe=F[ne];if(xe.selectorText===b&&xe.style.cssText===j)return}U.sheet.insertRule(De,Z)}function K(b,j){N.value=!0,I.value=!0,w.value.sync(!0);const R=j+w.value.top;A.value.x=b,A.value.y=R,h.value.x=b,h.value.y=R,v.value?.classList.add("disable-scroll-behavior"),r.clear();const U=f.value;y=new Set(U.map(F=>F[m.value])),qe()}function $(b,j,R){!I.value||(N.value&&(N.value=!1,l==="colum"&&!C.value&&!ye()&&c()),R?.(),B(j),h.value.x=Math.max(b,p.value.left),h.value.y=Math.min(j+w.value.top,w.value.height+p.value.top),h.value.scrollTop=w.value.top,d.value())}function te(){I.value=!1,v.value?.classList.remove("disable-scroll-behavior")}function Fn(){!I.value||(E||Y(),d.value())}function ye(){if(!I.value)return!1;const{width:b,height:j}=T.value;return!(Math.max(b,j)>5)}function Vn(){ye()&&c()}function Wn(){ye()||v.value?.querySelectorAll(`[${o}]`).forEach(b=>{const j=g(b.getAttribute(`${o}`));M[m.value]=j;const R=y.has(j),U=r.has(j);_(b.getBoundingClientRect())?U||(R?u([M]):i([M]),r.add(j)):U&&(R?i([M]):u([M]),r.delete(j))})}function Xn(){const b=[];let j=null,R=0;v.value?.querySelectorAll(`[${o}]`).forEach((U,F)=>{const Z=g(U.getAttribute(`${o}`));b.push(Z),_(U.getBoundingClientRect())&&(j===null&&(j=F),j=Math.min(j,F),R=Math.max(R,F))}),v.value?.querySelectorAll(`[${o}]`).forEach((U,F)=>{const Z=b[F],De=y.has(Z),ne=r.has(Z);j!==null&&F>=j&&F<=R?ne||(M[m.value]=Z,De?u([M]):i([M]),r.add(Z)):ne&&(M[m.value]=Z,De?i([M]):u([M]),r.delete(Z))})}function qe(){!v.value||(p.value=v.value.getBoundingClientRect())}function Kn(b){return!b?.value||(v.value=b.value,!v?.value)?!1:(qe(),X(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:Kn,dragStart:K,dragMove:$,dragEnd:te,onScroll:Fn,isSingleClick:ye,cancelSelectAllBySingleClick:Vn,selectFn:d,getAttributeValue:g,incrementalSelect:C,selectRange:T,isPressing:I,containerEl:v}}function Tt(t,n=!1){const o=Le(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}=Ie(`.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}),d=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:f.value})}});function m(
|
|
6
|
+
}`,{id:"styletag_lzc_dragselect",manual:!0}),d=e.defineComponent({render(){return e.h("div",{id:"selectBoxEl",class:"drag-select-box",style:f.value})}});function m(v){v.button===0&&(v.ctrlKey||v.metaKey?o.incrementalSelect.value=!0:o.incrementalSelect.value=!1,s(v.x,v.y),window.addEventListener("mousemove",g),window.addEventListener("mouseup",r))}function g(v){i(v.x,v.y)}function r(v){window.removeEventListener("mousemove",g),window.removeEventListener("mouseup",r),v.composedPath().some(A=>o.getAttributeValue(A?.getAttribute?.(t.attribute)))||c(),u(),o.incrementalSelect.value=!1}function y(v){try{if(!o.init(v))throw"\u521D\u59CB\u5316\u5931\u8D25,Ref\u5143\u7D20\u4E0D\u6B63\u786E";if(!o.containerEl?.value)return!1;e.render(e.h(d),o.containerEl.value),M(),o.containerEl.value?.addEventListener("scroll",a),o.containerEl.value?.addEventListener("mousedown",m)}catch(I){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",I)}}function N(){o.containerEl.value?.removeEventListener("scroll",a),o.containerEl.value?.removeEventListener("mousedown",m)}return{init:y,unMount:N}}function Nt(t,n={}){const{joinSelectMode:o,pressTime:l=600,selectModeRef:a}=n,s=Le({...t,selectWay:"row",scrollOptions:{startSpeed:5,maxSpeed:5}}),{onScroll:i,dragStart:u,dragMove:c,dragEnd:f}=s;let M;const d=Dt();function m(){clearTimeout(M)}function g(p){return p.composedPath().some(w=>!!w?.getAttribute?.(t.attribute))}function r(){return a?.value&&!s.isPressing.value&&d.isHorizontal()}function y(p,w,T){(w==null||T==null)&&(w=p.targetTouches[0].clientX,T=p.targetTouches[0].clientY),u(w,T),o?.(),c(w,T,()=>p.preventDefault())}function N(p){const{clientX:w,clientY:T}=p.targetTouches[0];d.start(w,T),m(),g(p)&&(M=setTimeout(()=>{y(p),p.preventDefault()},l))}function v(p){m();const{clientX:w,clientY:T}=p.targetTouches[0];if(d.move(w,T),r()){y(p,d.startX.value,d.startY.value);return}c(w,T,()=>p.preventDefault())}function I(){m(),f()}function A(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 w=s.containerEl.value;w.addEventListener("scroll",i),w.addEventListener("touchstart",N),w.addEventListener("touchmove",v),window.addEventListener("pointerup",I)}catch(w){console.error("\u62D6\u9009\u529F\u80FD\u521D\u59CB\u5316\u5931\u8D25",w)}}function h(){if(!s.containerEl?.value)return;const p=s.containerEl.value;p.removeEventListener("scroll",i),p.removeEventListener("touchstart",N),p.removeEventListener("touchmove",v),window.removeEventListener("pointerup",I)}return{init:A,unMount:h}}const Qe=Symbol(),wt=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(Qe,()=>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(be),()=>l()]]):e.createCommentVNode("",!0)]),_:3}))}}),Zn="",W=(t,n)=>{const o=t.__vccOpts||t;for(const[l,a]of n)o[l]=a;return o},vt=W(wt,[["__scopeId","data-v-3d61e60a"]]);function Et(t){function n(o,l){const a=document.createElement("div"),s={setup(){return()=>e.h(vt,{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 Se({component:t,componentProps:n,delay:o=300}){const a=`lzc-delay-loading-${`${new Date().getTime()}`}`,s=`${o}ms`;return Ie(`@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/4VlsSeLTb17ojkpkESwlPrDhTLmn6VXbQACd4RFbhBoElgEfur6y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QmCC",Lt={class:"loading-wrap"},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+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MTQsMC4xMTc3NTIwMTEgQzExLjU4MjE0MjksLTAuMDEwNzA0NzIzNyAxMS43NzUsLTAuMDEwNzA0NzIzN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zIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+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=ut();return e.onMounted(()=>{u.value?.classList?.add(a)}),()=>e.h(t,n)}})}}function It({component:t,componentProps:n,delay:o=300}){const{LoadingComp:l}=Se({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 zt=[(t=>(e.pushScopeId("data-v-92a1804d"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],At=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)),zt,16))}}),Jn="",Ye=W(At,[["__scopeId","data-v-92a1804d"]]),Lt="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",St={class:"loading-wrap"},Ct=["src"],jt=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",St,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(Lt),style:e.normalizeStyle(e.unref(o))},null,12,Ct)]))}}),eo="",xt=W(jt,[["__scopeId","data-v-3c54972f"]]);async function he(t){return new Promise(n=>setTimeout(()=>n(),t))}const bt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MTQsMC4xMTc3NTIwMTEgQzExLjU4MjE0MjksLTAuMDEwNzA0NzIzNyAxMS43NzUsLTAuMDEwNzA0NzIzNyAxMS45MDM1NzE0LDAuMTE3NzUyMDExIEMxMi4wMzIxNDI5LDAuMjQ2MjA4NzQ2IDEyLjAzMjE0MjksMC40Mzg4OTM4NDkgMTEuOTAzNTcxNCwwLjU2NzM1MDU4NCBMNi40Niw2LjAwNSBMMTEuOTAzNTcxNCwxMS40NDMzNTQxIEMxMi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M3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",_t=["onClick"],kt=["onClick"],Bt=["src"],Qt=["src"],Yt=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(bt),class:e.normalizeClass(`${l}-close`)},null,10,Bt)):e.createCommentVNode("",!0),t.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:t.icon||e.unref(Ot),class:e.normalizeClass(`${l}-icon`)},null,10,Qt)):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,kt)],10,_t),[[e.vShow,t.visible]])],4)]),_:1}))}}),to="",no="",Ut=W(Yt,[["__scopeId","data-v-0947d1e3"]]);class Ue{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(n){this.options={...n,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=Ut}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 he(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 Rt(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 Ue(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 Pt(t,n){return t>n?"horizontal":n>t?"vertical":""}function $t(){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=Pt(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 Re=250,Pe=5,Ht=500;function Ft(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<Pe&&u<Pe&&(c<Re?n?l?(clearTimeout(l),l=null,t.onDoubleTap?.()):l=setTimeout(async()=>{t.onTap?.(),l=null},Re):t.onTap?.():c>Ht&&t.onLongPress?.())}return{startTap:a,checkTap:s}}function Vt(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 Wt(t,n,o,l){var a=Math.min(o/t,l/n),s=t*a,i=n*a;return{width:q(s),height:q(i)}}function Xt(t){return t<3?"444ms":t<6?"555ms":"666ms"}function Ce(t,n,o){return Math.min(Math.max(t,n),o)}function q(t,n=2){return parseFloat(t.toFixed(n))}function pe(t,n,o){return t=q(t),n=q(n),`translate3d(${t}px, ${n}px, 0) scale3d(${o},${o},${o})`}function $e(t){return Math.sqrt((t[0].clientX-t[1].clientX)**2+(t[0].clientY-t[1].clientY)**2)}function Kt(t){return{x:(t[0].clientX+t[1].clientX)/2,y:(t[0].clientY+t[1].clientY)/2}}function He(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=$t(),d=Vt(s,{onComplate(){c.preview||N()}}),m=Ft({onTap(){t.onTap?.()},onDoubleTap(){t.onDoubleTap?.()},onLongPress(){t.onLongPress?.()}});Ee(s,D=>g(D)),e.watch([a,s],([D,S])=>{r(D,S)},{immediate:!0});async function g(D){const[S]=D;S.contentRect.width==u.value.width&&S.contentRect.height==u.value.height||(await r(a.value),await N(c.level,!0))}async function r(D,S){await k(D,S),D&&P()}async function y(D){if(!c.preview)return;c.preview=!1,D=D??c.level;const S=s.value;if(!S)return;const{scrollTop:x,scrollLeft:O}=S,{width:L,height:E}=i.value,{scaleW:B,scaleH:Q}=T(D),{top:_,left:Y}=C(B,Q),X=Y!=0?Y:O*-1,K=_!=0?_:x*-1;S.scrollTop=0,S.scrollLeft=0;const{value:$}=f;$.width=`${L}px`,$.height=`${E}px`,$.maxHeight="none",$.transitionDuration="0s",$.transform=pe(X,K,D),f.value=$,await e.nextTick(),c.offsetX=X,c.offsetY=K,await he(20)}async function N(D,S){if(!S&&c.preview)return;c.preview=!0,D=D??c.level;const{value:x}=f,{scaleW:O,scaleH:L}=T(D),{left:E,top:B}=C(O,L);D===1&&(x.maxHeight="100%"),x.width=`${O}px`,x.height=`${L}px`,x.transitionDuration="0s",x.filter="blur(0.1px)",x.transform=pe(E,B,1),f.value=x,await e.nextTick();const Q=s.value;if(!Q)return;const{offsetX:_,offsetY:Y}=c;_<0&&(Q.scrollLeft=Math.abs(_)),Y<0&&(Q.scrollTop=Math.abs(Y)),await v()}async function v(){await he(15),delete f.value.filter}async function I(D,S,x){if(n.value||(D=q(D),D=Ce(D,o.value-o.value*.5,l.value+l.value*.5),D==c.level))return;c.preview&&await y(),S||(S={x:M.startX.value,y:M.startY.value});const{value:O}=f,{width:L,height:E}=i.value,{scaleW:B,scaleH:Q}=T(D),{top:_,left:Y}=C(B,Q),X=D/c.level,K={left:Math.abs(L*D-u.value.width)*-1,top:Math.abs(E*D-u.value.height)*-1,right:Y,bottom:_};let $=Y!=0?Y:(c.offsetX-S.x)*X+S.x,te=_!=0?_:(c.offsetY-S.y)*X+S.y;$=q(Ce($,K.left,K.right)),te=q(Ce(te,K.top,K.bottom)),O.width=`${L}px`,O.height=`${E}px`,O.transitionDuration=x?Xt(D):"0s",O.transform=pe($,te,D),c.offsetX=$,c.offsetY=te,c.level=D,f.value=O,await e.nextTick(),x&&d.startTransition(),t.onScale?.(D)}function A(){const D=c.level>1?1:w();I(D,void 0,!0)}function h(D,S){if(!c.preview)return;const x=s.value;!x||x.scrollTo({left:c.offsetX-D,top:c.offsetY-S})}async function p(){c.level>=o.value&&c.level<=l.value?c.zooming&&await N():c.level<o.value?await I(o.value,void 0,!0):c.level>l.value&&await I(l.value,c.lastCenter,!0),c.zooming=!1}function w(){const{width:D,height:S}=i.value,{width:x,height:O}=u.value,L=2.5;let E;return S==O?(E=x/D,E-1<.1&&(E=L)):E=Math.max(L,x/D,O/S),E}function T(D){const{width:S,height:x}=i.value;return{scaleW:q(D*S),scaleH:q(D*x)}}function C(D,S){const{width:x,height:O}=u.value,L=Math.max(0,(O-S)*.5),E=Math.max(0,(x-D)*.5);return{top:L,left:E}}async function k(D,S){if(D=D??a.value,S=S??s.value,!S)return;let x,{clientWidth:O=0,clientHeight:L=0}=D||{};const{clientWidth:E,clientHeight:B}=S;if(D instanceof HTMLImageElement?x={width:D.naturalWidth,height:D.naturalHeight}:D instanceof HTMLVideoElement&&(x={width:D.videoWidth,height:D.videoHeight}),x){const Q=Wt(x.width,x.height,E,B);O=Q.width,L=Q.height}(O===0||L===0)&&(O=i.value.width||E,L=i.value.height||B),i.value={width:Math.min(O,E),height:Math.min(L,B)},u.value={width:E,height:B},N(void 0,!0)}function P(){const D=w();l.value=Math.max(l.value,D*2)}function H(D){n.value=D}return{touch:M,state:c,style:f,gesture:m,transition:d,imageRef:a,containerRef:s,switchToZoom:y,switchToPreview:N,panTo:h,zoomTo:I,zoomFinished:p,toggleZoom:A,setDisableZoom:H}}function Fe(t,n){const{state:o,touch:l,transition:a,containerRef:s}=t,i=ft(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:v,right:I,bottom:A}=i.arrivedState;if(m=="start")c=N||v||I||A;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||A&&!h}else if(l.direction.value=="horizontal"){const h=l.startX.value<g;c=v&&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 Zt(t){const n=He({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=le(N,150),{onSwipeEdge:M}=Fe(n,t.onSwipeEdge),d=e.ref({top:0,left:0});se("keyup",I),se("keydown",v);function m(A){const h=n.containerRef.value;if(!h)return;const{left:p,top:w}=h.getBoundingClientRect();d.value.left=p,d.value.top=w,a.startTap();let T=A.clientX-p,C=A.clientY-w;l.start(T,C),M("start",T,C,A),s.transitioning.value||(i=!0,c.left=p,c.top=w,o.offsetX=h.scrollLeft,o.offsetY=h.scrollTop),window.addEventListener("pointermove",g),window.addEventListener("pointerup",r)}function g(A){if(!i)return;let h=A.clientX,p=A.clientY;l.move(h,p),M("move",h-d.value.left,p-d.value.top,A),o.level!==1&&n.panTo(l.deltaX.value-c.left,l.deltaY.value-c.top)}function r(A){M("end",l.offsetX.value,l.offsetY.value,A),a.checkTap(l.offsetX.value,l.offsetY.value),l.reset(),i=!1,window.removeEventListener("pointermove",g),window.removeEventListener("pointerup",r)}function y(A){if(!A.ctrlKey)return;o.zooming||(o.zooming=!0,u=="Control"&&window.addEventListener("keyup",N)),A.preventDefault();let h=-A.deltaY;A.deltaMode===1?h*=.05:h*=A.deltaMode?1:.002,u!="Control"&&(h*=10),h=2**h;const p=o.level*h;o.lastCenter={x:A.clientX-d.value.left,y:A.clientY-d.value.top},n.zoomTo(p,o.lastCenter),u!="Control"&&f()}function N(){n.zoomFinished(),window.removeEventListener("keyup",N)}function v(A){u=A.key}function I(){u=null}return{core:n,onPointerDown:m,onWheel:y}}function Gt(t){const n=He({onDoubleTap(){n.toggleZoom()},...t}),{state:o,touch:l,gesture:a}=n,{setFingerNum:s,onSwipeEdge:i,isEqualFingerNum:u}=Fe(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=$e(r),await n.switchToZoom(),o.lastCenter=Kt(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 v=$e(r),I=c*v/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 qt(){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 Ve(){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 We(t){let n=!1;return()=>{n||(t(),n=!0)}}function Jt(t){let n=null;const{isActivated:o}=Ve(),l=We(()=>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 en=["onClick"],tn=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,en))}}),oo="",nn=W(tn,[["__scopeId","data-v-25d39b90"]]),Xe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class on{options;container;constructor(n){this.options=n,this.container=document.createElement("div")}present(){const n=e.h(e.h(nn),{...Xe,...this.options});e.render(n,this.container),document.body.insertBefore(this.container,document.body.firstChild);const o=this.options.duration||Xe.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 ln=["xlink:href","fill","color"],oe=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,ln)],4))}});function an(t){const{containerEl:n,sliderEl:o,autoHeight:l,performance:a={},maxHeightRatio:s=.9,observeMethod:i="classList"}=t,u=e.ref(!0),c=le(P,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),v=e.computed(()=>r.value.scrollHeight>r.value.clientHeight),I=e.computed(()=>l?r.value.clientHeight-p.value:r.value.clientHeight-y.value.clientHeight),A=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),w=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${g.value}px,0)`,height:l?`${p.value}px`:void 0}));Ee(n,()=>E());function T(_){k(),m.value=_.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 k(){u.value=!1}function P(){N.value||(u.value=!0)}function H(_){if(!N.value)return;let Y=_.clientY-r.value.top-m.value;Y<0?g.value=0:Y>=I.value?g.value=I.value:g.value=Y,n.value.scrollTo({top:g.value/I.value*A.value})}function D(){N.value||S()}function S(){cancelAnimationFrame(f),f=requestAnimationFrame(x)}function x(){n.value&&(d.value=a.scrollTop?.value??n.value.scrollTop,g.value=d.value/A.value*I.value)}function O(_){let Y="addEventListener";_==="add"?Y="addEventListener":Y="removeEventListener",o.value?.[Y]("pointerdown",T,{passive:!0}),window[Y]("pointermove",H,{passive:!0}),window[Y]("pointerup",C,{passive:!0})}const L=new MutationObserver(_=>{(i=="classList"||_.map(X=>X.oldValue).join().includes("height"))&&E()});function E(){r.value.top=n.value?.getBoundingClientRect().top??0;const{scrollHeight:_=0,clientHeight:Y=0}=n.value||{},{scrollHeight:X,clientHeight:K}=r.value;_!=X&&(r.value.scrollHeight=_,x()),Y!=K&&(r.value.clientHeight=Y,x());const{clientHeight:$=0}=o.value||{};$!=y.value.clientHeight&&(y.value.clientHeight=$)}function B(){k(),setTimeout(()=>{y.value.clientHeight=o.value?.clientHeight??0,P()},150)}function Q(){if(n.value&&o.value){n.value.classList.add("hide-scrollbar"),n.value.addEventListener("scroll",D,{passive:!0}),O("add");const _={};i==="classList"?Object.assign(_,{subtree:!0,childList:!0}):Object.assign(_,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),L.observe(n.value,_),setTimeout(()=>{E()},100),B()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:n,sliderEl:o})}return e.watch(d,()=>{k(),c()}),{isScrollEnd:u,isDragSlider:N,offsetTop:g,scrollTop:d,scrollable:v,sliderPos:w,sliderRollableHeight:I,init:Q,modifySliderEventListener:O,heightRatio:h}}const sn=(t=>(e.pushScopeId("data-v-7fd39e51"),t=t(),e.popScopeId(),t))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),rn=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=an({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}=Ie(`.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(()=>{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,v)=>(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",{},()=>[sn],!0)],36),[[e.vShow,e.unref(m)]])]),_:3}))}}),ao="",cn=W(rn,[["__scopeId","data-v-7fd39e51"]]),un=t=>(e.pushScopeId("data-v-df5da876"),t=t(),e.popScopeId(),t),dn={class:"pull-refresh"},fn={key:0,class:"pull-arrow-circle"},Mn={key:0,class:"box-load"},gn={class:"left-load"},mn={class:"right-load"},hn=un(()=>e.createElementVNode("div",{class:"among-load"},null,-1)),pn={class:"pull-arrow"},yn={key:1},Dn=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})`})),v=e.computed(()=>({borderColor:l,transition:m.value,transform:`rotate(${100+i.value}deg)`,opacity:u.value}));e.watch(g,T=>{T===0&&(a.value=-50,u.value=.3)}),e.watch(M,T=>{if(g.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?c.value=!0:c.value=!1),C>50&&(a.value=5,u.value=1,g.value)});const I=e.ref(0),A=T=>{I.value=T.touches[0].pageY},h=T=>{const C=T.touches[0].pageY-I.value;I.value=T.touches[0].pageY,!n.refreshOff&&(!n?.refresh||g.value!==2&&y.value===0&&(f.value===0&&(f.value=T.touches[0].pageY),d.value=0,w.value.style.transition=`${d.value}ms`,m.value=0,M.value=T.touches[0].pageY-f.value,w.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,C>0&&T.preventDefault()))},p=()=>{if(n.refreshOff||!n?.refresh||g.value===2)return;f.value=0,d.value=300;const T=Math.pow(M.value,o);w.value.style.transition=`${d.value}ms`,T>50?(g.value=2,M.value=Math.pow(50,1/o),w.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,w.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`,setTimeout(()=>{r.value=void 0},m.value)},600)})):(M.value=0,w.value.style.transform=`translate3d(0, ${Math.pow(M.value,o)}px, 0)`)},w=e.ref(null);return e.onMounted(()=>{n?.refreshOff||(w.value=document.querySelector(n.pullRefreshContainer),w.value?.addEventListener("touchstart",A),w.value?.addEventListener("touchmove",h),w.value?.addEventListener("touchend",p))}),(T,C)=>(e.openBlock(),e.createElementBlock("div",dn,[e.createElementVNode("div",{class:"pull-refresh-box",style:e.normalizeStyle(e.unref(N))},[r.value?(e.openBlock(),e.createElementBlock("div",yn,e.toDisplayString(r.value),1)):(e.openBlock(),e.createElementBlock("div",fn,[g.value==2?(e.openBlock(),e.createElementBlock("div",Mn,[e.createElementVNode("div",gn,[e.createElementVNode("div",{class:"left-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),e.createElementVNode("div",mn,[e.createElementVNode("div",{class:"right-circle",style:e.normalizeStyle({backgroundColor:l})},null,4)]),hn])):(e.openBlock(),e.createElementBlock("div",{key:1,class:"pull-circle-line",style:e.normalizeStyle(e.unref(v))},[e.createElementVNode("div",pn,[e.createElementVNode("div",{class:e.normalizeClass(["arrows",{opacity:c.value}]),style:e.normalizeStyle({borderBottomColor:l})},null,6)])],4))]))],4)]))}}),so="",Ke=W(Dn,[["__scopeId","data-v-df5da876"]]),Tn=["data-key"],Nn={inheritAttrs:!1},wn=e.defineComponent({...Nn,__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=Be(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(Ke,{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,Tn))),128))],16)],16)],16)])],64))}}),io="",vn=W(wn,[["__scopeId","data-v-dfe60586"]]),je=t=>(e.pushScopeId("data-v-33519afd"),t=t(),e.popScopeId(),t),En={style:{position:"absolute"}},In=je(()=>e.createElementVNode("div",{class:"wrapper"},null,-1)),zn=["width","height"],An=[je(()=>e.createElementVNode("title",null,"logo",-1)),je(()=>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))],Ln=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",En,[In,(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"},An,8,zn))]))}}),uo="",Sn=W(Ln,[["__scopeId","data-v-33519afd"]]),Cn=["image/vnd.adobe.photoshop","image/x-photoshop","image/jp2","image/pcx"];function Ze(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:!Cn.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 Ge(){return{vImageCancel:{beforeUnmount(n){!n||(n.src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7")}}}}const jn=["title"],xn={class:"tip"},bn=[e.createTextVNode("\u5F53\u524D\u683C\u5F0F\u4E0D\u652F\u6301")],On=["src"],_n=["src"],kn=["title"],Bn={inheritAttrs:!1},Qn=e.defineComponent({...Bn,__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}=Ze(c,f),{vImageCancel:r}=Ge(),{LoadingComp:y}=Se({component:Ye,delay:300}),N=et(()=>u.value&&o.autoRemoveThumbnail?!1:o.thumbnail&&!u.value);function v(){i.value=!0}function I(){i.value&&(u.value=!0)}async function A(){v(),N.value?(l.value?.addEventListener("animationend",h),l.value?.classList.add("showing"),await he(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?A():a.value&&n("load",a.value),s.value=!0}function w(C){C?(g(),n("loadError")):v(),s.value=!0}function T(){n("noSupport")}return(C,k)=>(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(oe,{class:"bad-image",name:t.badImageIconName},null,8,["name"])],16,kn)):e.renderSlot(C.$slots,"default",{key:2,src:e.unref(M),onLoad:p,onError:w,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:k[0]||(k[0]=P=>p()),onError:k[1]||(k[1]=P=>w()),src:t.thumbnail}),null,16,On)),[[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:k[2]||(k[2]=P=>p(!0)),onError:k[3]||(k[3]=P=>w(!0)),src:e.unref(M)}),null,16,_n)),[[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(oe,{class:"no-support-icon",name:t.noSupportIconName},null,8,["name"]),e.withDirectives((e.openBlock(),e.createElementBlock("span",xn,bn)),[[e.unref(Te),T]])],16,jn))],64))}}),Mo="",Yn=W(Qn,[["__scopeId","data-v-bfec1a6b"]]),Un=["title"],Rn=["src"],Pn=["title"],$n=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}=Ze(a,s),{vImageCancel:M}=Ge();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(oe,{class:"icon",name:"\u56FE\u7247\u635F\u574F"})],8,Pn)],!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,Rn)),[[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(oe,{class:"icon",name:"\u672A\u77E5\u7C7B\u578B"},null,512),[[e.unref(Te),d]])],8,Un)],!0)}}),go="",Hn=W($n,[["__scopeId","data-v-ab86da1e"]]);z.DefaultLoading=Ye,z.Image=Yn,z.Loading=Sn,z.LoadingToast=Ue,z.PageLoading=xt,z.PullRefresh=Ke,z.ScrollBar=cn,z.SvgIcon=oe,z.Thumbnail=Hn,z.ToastCreator=on,z.VirtualList=vn,z.allSelectedKey=ue,z.closeDialogKey=Qe,z.dialogController=Et,z.getTransform=pe,z.isAllSelectedKey=ge,z.isSelectedKey=ce,z.itemKeyKey=ze,z.once=We,z.selectAllKey=fe,z.selectKey=de,z.selectedCountKey=me,z.toggleAllKey=ie,z.toggleKey=re,z.unselectAllKey=ee,z.unselectKey=Me,z.useBackPress=Jt,z.useDelayAsync=Rt,z.useDelayLoad=It,z.useDelayLoadComp=Se,z.useDownDrag=qt,z.useDragSelect=Le,z.useDragSelectByMobile=Nt,z.useDragSelectByPc=Tt,z.useRouterActivated=Ve,z.useScaleImageByMobile=Gt,z.useScaleImageByPc=Zt,z.useSelectable=ht,z.useSelectableByBase=pt,z.useSelectableInjectors=mt,z.useVirtualList=Be,z.vDebounceClick=Je,z.vEnter=Te,z.vSingleClick=be,Object.defineProperties(z,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
21
21
|
//# sourceMappingURL=index.umd.js.map
|