@lazycatcloud/lzc-toolkit 0.0.133 → 0.0.135

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 CHANGED
@@ -613,7 +613,7 @@ function Mt({
613
613
  O.sheet.insertRule(ht, oe);
614
614
  }
615
615
  function I(T, w) {
616
- M.value = !0, y.value = !0, v.value.height ? v.value.sync() : v.value.sync(!0);
616
+ M.value = !0, y.value = !0, v.value.sync(!0);
617
617
  const Q = w + v.value.top;
618
618
  g.value.x = T, g.value.y = Q, u.value.x = T, u.value.y = Q, d.value?.classList.add("disable-scroll-behavior"), r.clear();
619
619
  }
@@ -1013,7 +1013,7 @@ const hn = "data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4Ii
1013
1013
  }));
1014
1014
  }
1015
1015
  });
1016
- const En = /* @__PURE__ */ H(In, [["__scopeId", "data-v-ef098d79"]]);
1016
+ const En = /* @__PURE__ */ H(In, [["__scopeId", "data-v-466df114"]]);
1017
1017
  class An {
1018
1018
  loadingToast;
1019
1019
  el;
package/dist/index.umd.js CHANGED
@@ -1,4 +1,4 @@
1
- (function(N,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(N=typeof globalThis<"u"?globalThis:N||self,e(N.ui={},N.Vue))})(this,function(N,e){"use strict";const me={created(n,t){let o,l;function s(a){a.button==0&&(o=a.clientX,l=a.clientY)}function r(a){if(a.button!=0||o===void 0)return;const c=a.clientX,d=a.clientY,u=Math.abs(c-o),M=Math.abs(d-l);u>5||M>5||t.value&&t.value(a)}n.__mouse_down__=s,n.__mouse_up__=r,n.addEventListener("mousedown",s),n.addEventListener("mouseup",r)},unmounted(n){n.removeEventListener("mousedown",n.__mouse_down__),n.removeEventListener("mouseup",n.__mouse_up__)}},Ue={created(n,t){const{fn:o,ms:l=1500}=t.value;let s=null;function r(a){s||(o(a),s=setTimeout(()=>{s=null},l))}n.addEventListener("click",r)}};var Pe=Object.defineProperty,Ye=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,ye=(n,t,o)=>t in n?Pe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,Ve=(n,t)=>{for(var o in t||(t={}))Re.call(t,o)&&ye(n,o,t[o]);if(pe)for(var o of pe(t))Fe.call(t,o)&&ye(n,o,t[o]);return n},He=(n,t)=>Ye(n,$e(t));function We(n,t){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=n()},He(Ve({},t),{flush:(o=t?.flush)!=null?o:"sync"})),e.readonly(l)}var he;const se=typeof window<"u",Ne=n=>typeof n=="function";se&&((he=window?.navigator)==null?void 0:he.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K(n){return typeof n=="function"?n():e.unref(n)}function De(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function Ze(n,t={}){let o,l;return r=>{const a=K(n),c=K(t.maxWait);if(o&&clearTimeout(o),a<=0||c!==void 0&&c<=0)return l&&(clearTimeout(l),l=null),r();c&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,r()},c)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,r()},a)}}function Ke(n,t=!0,o=!0){let l=0,s,r=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return d=>{const u=K(n),M=Date.now()-l;if(a(),u<=0)return l=Date.now(),d();M>u&&(o||!r)?(l=Date.now(),d()):t&&(s=setTimeout(()=>{l=Date.now(),r=!0,a(),d()},u)),!o&&!s&&(s=setTimeout(()=>r=!0,u)),r=!1}}function Ge(n){return n}function Xe(n,t){let o,l,s;const r=e.ref(!0),a=()=>{r.value=!0,s()};e.watch(n,a,{flush:"sync"});const c=Ne(t)?t:t.get,d=Ne(t)?void 0:t.set,u=e.customRef((M,f)=>(l=M,s=f,{get(){return r.value&&(o=c(),r.value=!1),l(),o},set(p){d?.(p)}}));return Object.isExtensible(u)&&(u.trigger=a),u}function Te(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function we(n,t=200,o={}){return De(Ze(t,o),n)}function Ee(n,t=200,o=!1,l=!0){return De(Ke(t,o,l),n)}function Ie(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function ze(n){var t;const o=K(n);return(t=o?.$el)!=null?t:o}const qe=se?window:void 0,Je=se?window.document:void 0;function et(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),Ie(l,t),o}const ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},re="__vueuse_ssr_handlers__";ae[re]=ae[re]||{},ae[re];function tt(){const n=e.getCurrentInstance(),t=Xe(()=>null,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var je=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,lt=(n,t)=>{var o={};for(var l in n)nt.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&je)for(var l of je(n))t.indexOf(l)<0&&ot.call(n,l)&&(o[l]=n[l]);return o};function st(n,t,o={}){const l=o,{window:s=qe}=l,r=lt(l,["window"]);let a;const c=et(()=>s&&"ResizeObserver"in s),d=()=>{a&&(a.disconnect(),a=void 0)},u=e.watch(()=>ze(n),f=>{d(),c.value&&s&&f&&(a=new ResizeObserver(t),a.observe(f,r))},{immediate:!0,flush:"post"}),M=()=>{d(),u()};return Te(M),{isSupported:c,stop:M}}function at(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,s=e.ref(t.width),r=e.ref(t.height);return st(n,([a])=>{const c=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;c?(s.value=c.reduce((d,{inlineSize:u})=>d+u,0),r.value=c.reduce((d,{blockSize:u})=>d+u,0)):(s.value=a.contentRect.width,r.value=a.contentRect.height)},o),e.watch(()=>ze(n),a=>{s.value=a?t.width:0,r.value=a?t.height:0}),{width:s,height:r}}var Ae;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(Ae||(Ae={}));let rt=0;function ie(n,t={}){const o=e.ref(!1),{document:l=Je,immediate:s=!0,manual:r=!1,id:a=`vueuse_styletag_${++rt}`}=t,c=e.ref(n);let d=()=>{};const u=()=>{if(!l)return;const f=l.getElementById(a)||l.createElement("style");f.type="text/css",f.id=a,t.media&&(f.media=t.media),l.head.appendChild(f),!o.value&&(d=e.watch(c,p=>{f.innerText=p},{immediate:!0}),o.value=!0)},M=()=>{!l||!o.value||(d(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return s&&!r&&Ie(u),r||Te(M),{id:a,css:c,unload:M,load:u,isLoaded:e.readonly(o)}}var it=Object.defineProperty,Le=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,Ce=(n,t,o)=>t in n?it(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,dt=(n,t)=>{for(var o in t||(t={}))ct.call(t,o)&&Ce(n,o,t[o]);if(Le)for(var o of Le(t))ut.call(t,o)&&Ce(n,o,t[o]);return n};dt({linear:Ge},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function ve(n,t){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=t,r=e.ref(null),a=at(r),c=e.ref(!0),d=we(U,100);let u;const M=e.shallowRef(n),f=e.ref(0),p=e.ref({start:0,end:10}),m=e.ref({start:0,end:s});let i=0;const D=e.ref([]),y=e.computed(()=>{let{sum:z,height:E}={sum:0,height:0};return M.value.map((O,x)=>(typeof l=="number"?E=l:E=l(x),z+=E,{height:E,sum:z}))}),g=e.computed(()=>Y(p.value.start)),h=e.computed(()=>typeof l=="number"?y.value.length*l:y.value[y.value.length-1]?.sum||0),I=e.computed(()=>{const{start:z,end:E}=m.value;return D.value.slice(z,E)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(u)),e.watch(M,()=>{(a.width.value||a.height.value)&&C()},{deep:!0}),e.watch([a.width,a.height],([z,E])=>{(z||E)&&C()},{deep:!0}),e.watch(f,()=>{b(),d()});function b(){c.value=!1}function U(){c.value=!0,o?.()}function C(){cancelAnimationFrame(u),u=requestAnimationFrame(j)}function j(){if(r.value){f.value=r.value.scrollTop;let z=v(f.value);i=P(z);let E=Math.max(0,z-s),O=Math.min(z+i+s,M.value.length);p.value={start:E,end:O},D.value=M.value.slice(E,O).map((x,L)=>({data:x,index:L+E})),m.value.start=z-E,m.value.end=m.value.start+i}}function v(z){let E=0,O=y.value.length-1,x=-1;for(;E<=O;){const L=Math.floor((E+O)/2);y.value[L].sum>=z?(x=L,O=L-1):E=L+1}return Math.max(0,x)}function P(z){let E=0,O=0;for(let x=z;x<y.value.length&&(E++,O+=y.value[x].height,!(O>=a.height.value));x++);return E}function Y(z){if(typeof l=="number")return z*l;let E=y.value[z];return E?E.sum-E.height:0}function B(z){return y.value[z]||{sum:0,height:0}}function F(z){if(r.value){const E=B(z);r.value.scrollTop=E.sum-E.height,j()}}const Z=e.computed(()=>({style:{width:"100%",height:`${h.value}px`,pointerEvents:c.value?void 0:"none"}})),V=e.computed(()=>({style:{transform:`translate3d(0, ${g.value}px, 0)`,"will-change":"transform"}})),$={overflowY:"auto"};return{list:D,visiableList:I,getItemHeightData:B,getoffsetTopIndex:v,totalHeight:h,clientHeight:a.height,scrollTo:F,scrollTop:f,isScrollEnd:c,containerProps:{ref:r,onScroll:()=>{C()},style:$},wrapperProps:Z,innerProps:V}}const G=Symbol(),X=Symbol(),q=Symbol(),J=Symbol(),ee=Symbol(),te=Symbol(),ne=Symbol(),oe=Symbol(),R=Symbol(),le=Symbol();function Mt(){const{voidFn:n,boolFn:t,boolRef:o,numberRef:l,arrayRef:s}={voidFn:D=>{},boolFn:D=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},r=e.inject(J,s),a=e.inject(q,t),c=e.inject(oe,o),d=e.inject(X,n),u=e.inject(G,n),M=e.inject(ee,n),f=e.inject(te,n),p=e.inject(ne,n),m=e.inject(R,n),i=e.inject(le,l);return{selected:r,isSelected:a,isAllSelected:c,toggle:d,toggleAll:u,select:M,selectAll:f,unselect:p,unselectAll:m,selectedCount:i}}function ft(n,t,o={deep:!0}){const l=e.ref(!1),s=e.ref(new Set),r=e.ref(new Map);e.watch(n,g=>{r.value=g.reduce((h,I)=>(h.set(I[t],I),h),new Map)},{deep:o.deep,immediate:!0});const a=e.computed(()=>{let g=[];if(l.value!=null)l.value&&(g=Array.from(r.value.values()));else if(s.value.size){let h;s.value.forEach(I=>{h=r.value.get(I),h&&g.push(h)})}return g}),c=e.computed(()=>{let g=0;return l.value!=null?l.value&&(g=r.value.size):g=s.value.size,g}),d=e.computed(()=>{let g;if(l.value!=null)g=l.value;else{const h=s.value.size,I=r.value.size;g=h==I}return g});function u(){l.value=!0}function M(){l.value=!1}function f(g){i(()=>{g.forEach(h=>{s.value.add(h[t])})})}function p(g){i(()=>{g.forEach(h=>{s.value.delete(h[t])})})}function m(g){return l.value!=null?l.value:s.value.has(g[t])}function i(g){l.value!=null&&(l.value?s.value=new Set(Array.from(r.value.keys())):s.value=new Set),g(),s.value.size==0?l.value=!1:s.value.size==r.value.size?l.value=!0:l.value=null}function D(g){i(()=>{g.forEach(h=>{m(h)?s.value.delete(h[t]):s.value.add(h[t])})})}function y(){const{value:g}=d;g?M():u()}return e.provide(G,y),e.provide(X,D),e.provide(q,m),e.provide(J,a),e.provide(ee,f),e.provide(te,u),e.provide(ne,p),e.provide(oe,d),e.provide(R,M),e.provide(R,M),e.provide(le,c),{selected:a,select:f,selectAll:u,unselect:p,unselectAll:M,toggle:D,toggleAll:y,isSelected:m,isAllSelected:d,selectedCount:c}}function gt(n){const t=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let i=[];return t.value!=null?t.value&&(i=n.value):o.value.size&&(i=Array.from(o.value.values())),i}),s=e.computed(()=>{let i=0;return t.value!=null?t.value&&(i=n.value.length):i=o.value.size,i}),r=e.computed(()=>{let i;if(t.value!=null)i=t.value;else{const D=o.value.size,y=n.value.length;i=D==y}return i});function a(){t.value=!0}function c(){t.value=!1}function d(i){f(()=>{i.forEach(D=>{o.value.add(D)})})}function u(i){f(()=>{i.forEach(D=>{o.value.delete(D)})})}function M(i){return t.value!=null?t.value:o.value.has(i)}function f(i){t.value!=null&&(t.value?o.value=new Set(Array.from(n.value)):o.value=new Set),i(),o.value.size==0?t.value=!1:o.value.size==n.value.length?t.value=!0:t.value=null}function p(i){f(()=>{i.forEach(D=>{M(D)?o.value.delete(D):o.value.add(D)})})}function m(){const{value:i}=r;i?c():a()}return e.provide(G,m),e.provide(X,p),e.provide(q,M),e.provide(J,l),e.provide(ee,d),e.provide(te,a),e.provide(ne,u),e.provide(oe,r),e.provide(R,c),e.provide(R,c),e.provide(le,s),{selected:l,select:d,selectAll:a,unselect:u,unselectAll:c,toggle:p,toggleAll:m,isSelected:M,isAllSelected:r,selectedCount:s}}function ce(n){return()=>{console.debug(`\u9ED8\u8BA4${n}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ue({attribute:n,selectWay:t="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=ce("\u9009\u62E9"),unselect:r=ce("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ce("\u53D6\u6D88\u5168\u9009")}=l();let c={};const d=e.computed(()=>Ee(t==="colum"?Sn:_n,50)),u=new Set,M=e.ref(!0),f=e.ref(),p=e.ref(!1),m=e.ref({x:0,y:0}),i=e.ref({x:0,y:0,scrollTop:0}),D=new ResizeObserver(T=>y.value=T[0].target.getBoundingClientRect()),y=e.ref({}),g=e.ref({top:0,height:0,sync(T=!1){g.value.top=f.value?.scrollTop||0,T&&(g.value.height=f.value?.scrollHeight||0)}}),h=e.computed(()=>p.value?{left:Math.min(m.value.x,i.value.x)-y.value.left,top:Math.min(m.value.y,i.value.y)-y.value.top,width:Math.abs(m.value.x-i.value.x),height:Math.abs(m.value.y-i.value.y)}:{left:0,top:0,width:0,height:0}),{margin:I=50,startSpeed:b=30,maxSpeed:U=30}=o;let C;const j=I,v=b,P=U,Y=T=>T**1;let B=0;function F(T){if(cancelAnimationFrame(C),B=Z(T),B=Math.max(Math.min(B,P),-P),B!==0){const w=f.value;if(!w||!p.value)return;const S=g.value.height-y.value.height;let A=g.value.top+Number(B);A=Math.min(Math.max(0,A),S),w.scrollTop=A,$(),C=requestAnimationFrame(()=>F(T))}}function Z(T){if(f.value){const S=y.value,A=S.bottom-T;if(A<j)return v*Y(1-A/j);const Q=T-S.top;if(Q<j)return-v*Y(1-Q/j)}return 0}function V(T){const w={...h.value,right:0,bottom:0};return w.left+=y.value.left,w.top+=y.value.top-g.value.top,w.right=w.width+w.left,w.bottom=w.height+w.top,w.left<T.right&&w.right>T.left&&w.top<T.bottom&&w.bottom>T.top}function $(){g.value.sync();const{top:T,height:w}=g.value;i.value.y=Math.min(w+y.value.top,i.value.y+T-i.value.scrollTop),i.value.scrollTop=T}function z(T,w,S="dynamic-styles"){let A=document.getElementById(S);A||(A=document.createElement("style"),A.id=S,document.head.appendChild(A));const Q=A.sheet.cssRules,H=Q.length,xn=`${T} { ${w} }`;for(let ge=0;ge<H;ge++){const Qe=Q[ge];if(Qe.selectorText===T&&Qe.style.cssText===w)return}A.sheet.insertRule(xn,H)}function E(T,w){M.value=!0,p.value=!0,g.value.height?g.value.sync():g.value.sync(!0);const S=w+g.value.top;m.value.x=T,m.value.y=S,i.value.x=T,i.value.y=S,f.value?.classList.add("disable-scroll-behavior"),u.clear()}function O(T,w,S){!p.value||(M.value&&t==="colum"&&!_()&&(a(),M.value=!1),S?.(),F(w),i.value.x=Math.max(T,y.value.left),i.value.y=Math.min(w+g.value.top,g.value.height+y.value.top),i.value.scrollTop=g.value.top,d.value())}function x(){p.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function L(){!p.value||(B||$(),d.value())}function _(){if(!p.value)return!1;const{width:T,height:w}=h.value;return!(Math.max(T,w)>5)}function fe(){_()&&a()}function Sn(){_()||f.value?.querySelectorAll(`[${n}]`).forEach(T=>{c[`${n}`]=T.getAttribute(`${n}`),V(T.getBoundingClientRect())?s([c]):r([c])})}function _n(){const T=[];let w=null,S=0;f.value?.querySelectorAll(`[${n}]`).forEach((A,Q)=>{const H=A.getAttribute(`${n}`);T.push(H),V(A.getBoundingClientRect())?(w===null&&(w=Q),w=Math.min(w,Q),S=Math.max(S,Q)):(c[`${n}`]=H,u.has(H)&&r([c]))});for(let A=w;A<S+1;A++)c[`${n}`]=T[A],s([c]),u.add(T[A])}function On(T){return!T?.value||(f.value=T.value,!f?.value)?!1:(D.observe(f.value),z(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:On,dragStart:E,dragMove:O,dragEnd:x,onScroll:L,isSingleClick:_,cancelSelectAllBySingleClick:fe,selectFn:d,selectRange:h,isPressing:p,containerEl:f,observer:D}}function mt(n){const t=ue(n),{observer:o,selectRange:l}=t,{onScroll:s,dragStart:r,dragMove:a,dragEnd:c,cancelSelectAllBySingleClick:d}=t,u=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 {
1
+ (function(N,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue")):typeof define=="function"&&define.amd?define(["exports","vue"],e):(N=typeof globalThis<"u"?globalThis:N||self,e(N.ui={},N.Vue))})(this,function(N,e){"use strict";const me={created(n,t){let o,l;function s(a){a.button==0&&(o=a.clientX,l=a.clientY)}function r(a){if(a.button!=0||o===void 0)return;const c=a.clientX,d=a.clientY,u=Math.abs(c-o),M=Math.abs(d-l);u>5||M>5||t.value&&t.value(a)}n.__mouse_down__=s,n.__mouse_up__=r,n.addEventListener("mousedown",s),n.addEventListener("mouseup",r)},unmounted(n){n.removeEventListener("mousedown",n.__mouse_down__),n.removeEventListener("mouseup",n.__mouse_up__)}},Ue={created(n,t){const{fn:o,ms:l=1500}=t.value;let s=null;function r(a){s||(o(a),s=setTimeout(()=>{s=null},l))}n.addEventListener("click",r)}};var Pe=Object.defineProperty,Ye=Object.defineProperties,$e=Object.getOwnPropertyDescriptors,pe=Object.getOwnPropertySymbols,Re=Object.prototype.hasOwnProperty,Fe=Object.prototype.propertyIsEnumerable,ye=(n,t,o)=>t in n?Pe(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,Ve=(n,t)=>{for(var o in t||(t={}))Re.call(t,o)&&ye(n,o,t[o]);if(pe)for(var o of pe(t))Fe.call(t,o)&&ye(n,o,t[o]);return n},He=(n,t)=>Ye(n,$e(t));function We(n,t){var o;const l=e.shallowRef();return e.watchEffect(()=>{l.value=n()},He(Ve({},t),{flush:(o=t?.flush)!=null?o:"sync"})),e.readonly(l)}var he;const se=typeof window<"u",Ne=n=>typeof n=="function";se&&((he=window?.navigator)==null?void 0:he.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function K(n){return typeof n=="function"?n():e.unref(n)}function De(n,t){function o(...l){n(()=>t.apply(this,l),{fn:t,thisArg:this,args:l})}return o}function Ze(n,t={}){let o,l;return r=>{const a=K(n),c=K(t.maxWait);if(o&&clearTimeout(o),a<=0||c!==void 0&&c<=0)return l&&(clearTimeout(l),l=null),r();c&&!l&&(l=setTimeout(()=>{o&&clearTimeout(o),l=null,r()},c)),o=setTimeout(()=>{l&&clearTimeout(l),l=null,r()},a)}}function Ke(n,t=!0,o=!0){let l=0,s,r=!0;const a=()=>{s&&(clearTimeout(s),s=void 0)};return d=>{const u=K(n),M=Date.now()-l;if(a(),u<=0)return l=Date.now(),d();M>u&&(o||!r)?(l=Date.now(),d()):t&&(s=setTimeout(()=>{l=Date.now(),r=!0,a(),d()},u)),!o&&!s&&(s=setTimeout(()=>r=!0,u)),r=!1}}function Ge(n){return n}function Xe(n,t){let o,l,s;const r=e.ref(!0),a=()=>{r.value=!0,s()};e.watch(n,a,{flush:"sync"});const c=Ne(t)?t:t.get,d=Ne(t)?void 0:t.set,u=e.customRef((M,f)=>(l=M,s=f,{get(){return r.value&&(o=c(),r.value=!1),l(),o},set(p){d?.(p)}}));return Object.isExtensible(u)&&(u.trigger=a),u}function Te(n){return e.getCurrentScope()?(e.onScopeDispose(n),!0):!1}function we(n,t=200,o={}){return De(Ze(t,o),n)}function Ee(n,t=200,o=!1,l=!0){return De(Ke(t,o,l),n)}function Ie(n,t=!0){e.getCurrentInstance()?e.onMounted(n):t?n():e.nextTick(n)}function ze(n){var t;const o=K(n);return(t=o?.$el)!=null?t:o}const qe=se?window:void 0,Je=se?window.document:void 0;function et(n,t=!1){const o=e.ref(),l=()=>o.value=Boolean(n());return l(),Ie(l,t),o}const ae=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},re="__vueuse_ssr_handlers__";ae[re]=ae[re]||{},ae[re];function tt(){const n=e.getCurrentInstance(),t=Xe(()=>null,()=>n.proxy.$el);return e.onUpdated(t.trigger),e.onMounted(t.trigger),t}var je=Object.getOwnPropertySymbols,nt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable,lt=(n,t)=>{var o={};for(var l in n)nt.call(n,l)&&t.indexOf(l)<0&&(o[l]=n[l]);if(n!=null&&je)for(var l of je(n))t.indexOf(l)<0&&ot.call(n,l)&&(o[l]=n[l]);return o};function st(n,t,o={}){const l=o,{window:s=qe}=l,r=lt(l,["window"]);let a;const c=et(()=>s&&"ResizeObserver"in s),d=()=>{a&&(a.disconnect(),a=void 0)},u=e.watch(()=>ze(n),f=>{d(),c.value&&s&&f&&(a=new ResizeObserver(t),a.observe(f,r))},{immediate:!0,flush:"post"}),M=()=>{d(),u()};return Te(M),{isSupported:c,stop:M}}function at(n,t={width:0,height:0},o={}){const{box:l="content-box"}=o,s=e.ref(t.width),r=e.ref(t.height);return st(n,([a])=>{const c=l==="border-box"?a.borderBoxSize:l==="content-box"?a.contentBoxSize:a.devicePixelContentBoxSize;c?(s.value=c.reduce((d,{inlineSize:u})=>d+u,0),r.value=c.reduce((d,{blockSize:u})=>d+u,0)):(s.value=a.contentRect.width,r.value=a.contentRect.height)},o),e.watch(()=>ze(n),a=>{s.value=a?t.width:0,r.value=a?t.height:0}),{width:s,height:r}}var Ae;(function(n){n.UP="UP",n.RIGHT="RIGHT",n.DOWN="DOWN",n.LEFT="LEFT",n.NONE="NONE"})(Ae||(Ae={}));let rt=0;function ie(n,t={}){const o=e.ref(!1),{document:l=Je,immediate:s=!0,manual:r=!1,id:a=`vueuse_styletag_${++rt}`}=t,c=e.ref(n);let d=()=>{};const u=()=>{if(!l)return;const f=l.getElementById(a)||l.createElement("style");f.type="text/css",f.id=a,t.media&&(f.media=t.media),l.head.appendChild(f),!o.value&&(d=e.watch(c,p=>{f.innerText=p},{immediate:!0}),o.value=!0)},M=()=>{!l||!o.value||(d(),l.head.removeChild(l.getElementById(a)),o.value=!1)};return s&&!r&&Ie(u),r||Te(M),{id:a,css:c,unload:M,load:u,isLoaded:e.readonly(o)}}var it=Object.defineProperty,Le=Object.getOwnPropertySymbols,ct=Object.prototype.hasOwnProperty,ut=Object.prototype.propertyIsEnumerable,Ce=(n,t,o)=>t in n?it(n,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):n[t]=o,dt=(n,t)=>{for(var o in t||(t={}))ct.call(t,o)&&Ce(n,o,t[o]);if(Le)for(var o of Le(t))ut.call(t,o)&&Ce(n,o,t[o]);return n};dt({linear:Ge},{easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]});function ve(n,t){const{scrollEndHook:o,itemHeight:l,overscan:s=5}=t,r=e.ref(null),a=at(r),c=e.ref(!0),d=we(U,100);let u;const M=e.shallowRef(n),f=e.ref(0),p=e.ref({start:0,end:10}),m=e.ref({start:0,end:s});let i=0;const D=e.ref([]),y=e.computed(()=>{let{sum:z,height:E}={sum:0,height:0};return M.value.map((O,x)=>(typeof l=="number"?E=l:E=l(x),z+=E,{height:E,sum:z}))}),g=e.computed(()=>Y(p.value.start)),h=e.computed(()=>typeof l=="number"?y.value.length*l:y.value[y.value.length-1]?.sum||0),I=e.computed(()=>{const{start:z,end:E}=m.value;return D.value.slice(z,E)});e.onMounted(()=>{}),e.onUnmounted(()=>cancelAnimationFrame(u)),e.watch(M,()=>{(a.width.value||a.height.value)&&C()},{deep:!0}),e.watch([a.width,a.height],([z,E])=>{(z||E)&&C()},{deep:!0}),e.watch(f,()=>{b(),d()});function b(){c.value=!1}function U(){c.value=!0,o?.()}function C(){cancelAnimationFrame(u),u=requestAnimationFrame(j)}function j(){if(r.value){f.value=r.value.scrollTop;let z=v(f.value);i=P(z);let E=Math.max(0,z-s),O=Math.min(z+i+s,M.value.length);p.value={start:E,end:O},D.value=M.value.slice(E,O).map((x,L)=>({data:x,index:L+E})),m.value.start=z-E,m.value.end=m.value.start+i}}function v(z){let E=0,O=y.value.length-1,x=-1;for(;E<=O;){const L=Math.floor((E+O)/2);y.value[L].sum>=z?(x=L,O=L-1):E=L+1}return Math.max(0,x)}function P(z){let E=0,O=0;for(let x=z;x<y.value.length&&(E++,O+=y.value[x].height,!(O>=a.height.value));x++);return E}function Y(z){if(typeof l=="number")return z*l;let E=y.value[z];return E?E.sum-E.height:0}function B(z){return y.value[z]||{sum:0,height:0}}function F(z){if(r.value){const E=B(z);r.value.scrollTop=E.sum-E.height,j()}}const Z=e.computed(()=>({style:{width:"100%",height:`${h.value}px`,pointerEvents:c.value?void 0:"none"}})),V=e.computed(()=>({style:{transform:`translate3d(0, ${g.value}px, 0)`,"will-change":"transform"}})),$={overflowY:"auto"};return{list:D,visiableList:I,getItemHeightData:B,getoffsetTopIndex:v,totalHeight:h,clientHeight:a.height,scrollTo:F,scrollTop:f,isScrollEnd:c,containerProps:{ref:r,onScroll:()=>{C()},style:$},wrapperProps:Z,innerProps:V}}const G=Symbol(),X=Symbol(),q=Symbol(),J=Symbol(),ee=Symbol(),te=Symbol(),ne=Symbol(),oe=Symbol(),R=Symbol(),le=Symbol();function Mt(){const{voidFn:n,boolFn:t,boolRef:o,numberRef:l,arrayRef:s}={voidFn:D=>{},boolFn:D=>!1,boolRef:e.computed(()=>!1),numberRef:e.computed(()=>0),arrayRef:e.computed(()=>[])},r=e.inject(J,s),a=e.inject(q,t),c=e.inject(oe,o),d=e.inject(X,n),u=e.inject(G,n),M=e.inject(ee,n),f=e.inject(te,n),p=e.inject(ne,n),m=e.inject(R,n),i=e.inject(le,l);return{selected:r,isSelected:a,isAllSelected:c,toggle:d,toggleAll:u,select:M,selectAll:f,unselect:p,unselectAll:m,selectedCount:i}}function ft(n,t,o={deep:!0}){const l=e.ref(!1),s=e.ref(new Set),r=e.ref(new Map);e.watch(n,g=>{r.value=g.reduce((h,I)=>(h.set(I[t],I),h),new Map)},{deep:o.deep,immediate:!0});const a=e.computed(()=>{let g=[];if(l.value!=null)l.value&&(g=Array.from(r.value.values()));else if(s.value.size){let h;s.value.forEach(I=>{h=r.value.get(I),h&&g.push(h)})}return g}),c=e.computed(()=>{let g=0;return l.value!=null?l.value&&(g=r.value.size):g=s.value.size,g}),d=e.computed(()=>{let g;if(l.value!=null)g=l.value;else{const h=s.value.size,I=r.value.size;g=h==I}return g});function u(){l.value=!0}function M(){l.value=!1}function f(g){i(()=>{g.forEach(h=>{s.value.add(h[t])})})}function p(g){i(()=>{g.forEach(h=>{s.value.delete(h[t])})})}function m(g){return l.value!=null?l.value:s.value.has(g[t])}function i(g){l.value!=null&&(l.value?s.value=new Set(Array.from(r.value.keys())):s.value=new Set),g(),s.value.size==0?l.value=!1:s.value.size==r.value.size?l.value=!0:l.value=null}function D(g){i(()=>{g.forEach(h=>{m(h)?s.value.delete(h[t]):s.value.add(h[t])})})}function y(){const{value:g}=d;g?M():u()}return e.provide(G,y),e.provide(X,D),e.provide(q,m),e.provide(J,a),e.provide(ee,f),e.provide(te,u),e.provide(ne,p),e.provide(oe,d),e.provide(R,M),e.provide(R,M),e.provide(le,c),{selected:a,select:f,selectAll:u,unselect:p,unselectAll:M,toggle:D,toggleAll:y,isSelected:m,isAllSelected:d,selectedCount:c}}function gt(n){const t=e.ref(!1),o=e.ref(new Set),l=e.computed(()=>{let i=[];return t.value!=null?t.value&&(i=n.value):o.value.size&&(i=Array.from(o.value.values())),i}),s=e.computed(()=>{let i=0;return t.value!=null?t.value&&(i=n.value.length):i=o.value.size,i}),r=e.computed(()=>{let i;if(t.value!=null)i=t.value;else{const D=o.value.size,y=n.value.length;i=D==y}return i});function a(){t.value=!0}function c(){t.value=!1}function d(i){f(()=>{i.forEach(D=>{o.value.add(D)})})}function u(i){f(()=>{i.forEach(D=>{o.value.delete(D)})})}function M(i){return t.value!=null?t.value:o.value.has(i)}function f(i){t.value!=null&&(t.value?o.value=new Set(Array.from(n.value)):o.value=new Set),i(),o.value.size==0?t.value=!1:o.value.size==n.value.length?t.value=!0:t.value=null}function p(i){f(()=>{i.forEach(D=>{M(D)?o.value.delete(D):o.value.add(D)})})}function m(){const{value:i}=r;i?c():a()}return e.provide(G,m),e.provide(X,p),e.provide(q,M),e.provide(J,l),e.provide(ee,d),e.provide(te,a),e.provide(ne,u),e.provide(oe,r),e.provide(R,c),e.provide(R,c),e.provide(le,s),{selected:l,select:d,selectAll:a,unselect:u,unselectAll:c,toggle:p,toggleAll:m,isSelected:M,isAllSelected:r,selectedCount:s}}function ce(n){return()=>{console.debug(`\u9ED8\u8BA4${n}\u65B9\u6CD5,\u9700\u8981\u81EA\u5B9A\u4E49\u751F\u6548`)}}function ue({attribute:n,selectWay:t="colum",scrollOptions:o={},getSelectMap:l=()=>({})}){const{select:s=ce("\u9009\u62E9"),unselect:r=ce("\u53D6\u6D88\u9009\u62E9"),unselectAll:a=ce("\u53D6\u6D88\u5168\u9009")}=l();let c={};const d=e.computed(()=>Ee(t==="colum"?Sn:_n,50)),u=new Set,M=e.ref(!0),f=e.ref(),p=e.ref(!1),m=e.ref({x:0,y:0}),i=e.ref({x:0,y:0,scrollTop:0}),D=new ResizeObserver(T=>y.value=T[0].target.getBoundingClientRect()),y=e.ref({}),g=e.ref({top:0,height:0,sync(T=!1){g.value.top=f.value?.scrollTop||0,T&&(g.value.height=f.value?.scrollHeight||0)}}),h=e.computed(()=>p.value?{left:Math.min(m.value.x,i.value.x)-y.value.left,top:Math.min(m.value.y,i.value.y)-y.value.top,width:Math.abs(m.value.x-i.value.x),height:Math.abs(m.value.y-i.value.y)}:{left:0,top:0,width:0,height:0}),{margin:I=50,startSpeed:b=30,maxSpeed:U=30}=o;let C;const j=I,v=b,P=U,Y=T=>T**1;let B=0;function F(T){if(cancelAnimationFrame(C),B=Z(T),B=Math.max(Math.min(B,P),-P),B!==0){const w=f.value;if(!w||!p.value)return;const S=g.value.height-y.value.height;let A=g.value.top+Number(B);A=Math.min(Math.max(0,A),S),w.scrollTop=A,$(),C=requestAnimationFrame(()=>F(T))}}function Z(T){if(f.value){const S=y.value,A=S.bottom-T;if(A<j)return v*Y(1-A/j);const Q=T-S.top;if(Q<j)return-v*Y(1-Q/j)}return 0}function V(T){const w={...h.value,right:0,bottom:0};return w.left+=y.value.left,w.top+=y.value.top-g.value.top,w.right=w.width+w.left,w.bottom=w.height+w.top,w.left<T.right&&w.right>T.left&&w.top<T.bottom&&w.bottom>T.top}function $(){g.value.sync();const{top:T,height:w}=g.value;i.value.y=Math.min(w+y.value.top,i.value.y+T-i.value.scrollTop),i.value.scrollTop=T}function z(T,w,S="dynamic-styles"){let A=document.getElementById(S);A||(A=document.createElement("style"),A.id=S,document.head.appendChild(A));const Q=A.sheet.cssRules,H=Q.length,xn=`${T} { ${w} }`;for(let ge=0;ge<H;ge++){const Qe=Q[ge];if(Qe.selectorText===T&&Qe.style.cssText===w)return}A.sheet.insertRule(xn,H)}function E(T,w){M.value=!0,p.value=!0,g.value.sync(!0);const S=w+g.value.top;m.value.x=T,m.value.y=S,i.value.x=T,i.value.y=S,f.value?.classList.add("disable-scroll-behavior"),u.clear()}function O(T,w,S){!p.value||(M.value&&t==="colum"&&!_()&&(a(),M.value=!1),S?.(),F(w),i.value.x=Math.max(T,y.value.left),i.value.y=Math.min(w+g.value.top,g.value.height+y.value.top),i.value.scrollTop=g.value.top,d.value())}function x(){p.value=!1,f.value?.classList.remove("disable-scroll-behavior")}function L(){!p.value||(B||$(),d.value())}function _(){if(!p.value)return!1;const{width:T,height:w}=h.value;return!(Math.max(T,w)>5)}function fe(){_()&&a()}function Sn(){_()||f.value?.querySelectorAll(`[${n}]`).forEach(T=>{c[`${n}`]=T.getAttribute(`${n}`),V(T.getBoundingClientRect())?s([c]):r([c])})}function _n(){const T=[];let w=null,S=0;f.value?.querySelectorAll(`[${n}]`).forEach((A,Q)=>{const H=A.getAttribute(`${n}`);T.push(H),V(A.getBoundingClientRect())?(w===null&&(w=Q),w=Math.min(w,Q),S=Math.max(S,Q)):(c[`${n}`]=H,u.has(H)&&r([c]))});for(let A=w;A<S+1;A++)c[`${n}`]=T[A],s([c]),u.add(T[A])}function On(T){return!T?.value||(f.value=T.value,!f?.value)?!1:(D.observe(f.value),z(".disable-scroll-behavior","scroll-behavior: unset !important;"),!0)}return{init:On,dragStart:E,dragMove:O,dragEnd:x,onScroll:L,isSingleClick:_,cancelSelectAllBySingleClick:fe,selectFn:d,selectRange:h,isPressing:p,containerEl:f,observer:D}}function mt(n){const t=ue(n),{observer:o,selectRange:l}=t,{onScroll:s,dragStart:r,dragMove:a,dragEnd:c,cancelSelectAllBySingleClick:d}=t,u=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);
@@ -11,7 +11,7 @@
11
11
  .${s} {
12
12
  opacity: 0;
13
13
  animation: lzcDelayLoad 0s ${r} forwards;
14
- }`),{LoadingComp:e.defineComponent({setup(){const c=tt();return e.onMounted(()=>{c.value.classList.add(s)}),()=>e.h(n,t)}})}}function Tt({component:n,componentProps:t,delay:o=300}){const{LoadingComp:l}=de({component:n,componentProps:t,delay:o}),s=e.ref(!1);function r(){s.value=!0}function a(){s.value=!1}return{LoadingComp:l,loading:s,load:r,unload:a}}const wt=[(n=>(e.pushScopeId("data-v-9a328d05"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],Et=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(n){return e.useCssVars(t=>({eebbc516:n.width+"px","5323c3d0":n.height+"px"})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),wt,16))}}),Un="",_e=k(Et,[["__scopeId","data-v-9a328d05"]]),It="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",zt={class:"loading-wrap"},jt=["src"],At=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(n){const t=n;e.useCssVars(l=>({e4aa7b1e:n.delay}));const o=e.computed(()=>{const l={};return t.size==="mini"?(l.width="22px",l.height="22px"):t.size==="large"&&(l.width="28px",l.height="28px"),l});return(l,s)=>(e.openBlock(),e.createElementBlock("div",zt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(It),style:e.normalizeStyle(e.unref(o))},null,12,jt)]))}}),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w3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",_t=["onClick"],Ot=["onClick"],xt=["src"],bt=["src"],kt=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(n,{emit:t}){const o=n,l="lzc-loading-toast",s=e.computed(()=>{let u={};return o.captureEventP&&(u.pointerEvents="none"),u}),r=e.computed(()=>{let u={padding:"12px"};return(o.icon||o.showIcon)&&(u.padding="20px"),o.width&&(u.width=o.width),o.maxWidth&&(u.maxWidth=o.maxWidth),o.overlayContentStyle&&(u={...u,...o.overlayContentStyle}),u}),a=e.computed(()=>{let u={};return o.showClose&&!o.icon&&(u.paddingRight="16px"),u});function c(){o.closeOnClickOverlay&&t("close")}function d(){o.closeOnClick&&t("close")}return(u,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(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${n.className}`),onClick:e.withModifiers(c,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(d,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(r))},[n.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:M[0]||(M[0]=e.withModifiers(f=>t("close"),["stop"])),src:e.unref(vt),class:e.normalizeClass(`${l}-close`)},null,10,xt)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(St),class:e.normalizeClass(`${l}-icon`)},null,10,bt)):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(a))},e.toDisplayString(n.message),7)):e.createCommentVNode("",!0)],6)],10,Ot)],10,_t),[[e.vShow,n.visible]])],4)]),_:1}))}}),Yn="",$n="",Bt=k(kt,[["__scopeId","data-v-ef098d79"]]);class Oe{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(t){this.options={...t,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=Bt}async show(){const t=this.options,l={...t,onClose:()=>{this.close(),t?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,t.duration!==0&&setTimeout(()=>{this.destory()},t.duration),await Ct(t.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(t=>{setTimeout(()=>{if(!this.el){t();return}document.body.removeChild(this.el),t()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Qt(n,t){const o=!!t?.debug,l=t?.printErrorLog!==!1,s=t?.loading!==!1,r=t?.autoClose!==!1,a=t?.delay!=null?t.delay:300,c={...t,showIcon:t?.showIcon!==!1,captureEventP:t?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,r,a,c);const d=e.ref(!1);let u=null;const M=new Oe(c);async function f(...m){if(o&&console.log(`useDelayAsync - handler - processing: ${d.value}`),!d.value){d.value=!0,u=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,d.value),s&&(!d.value||M.show())},a);try{o&&console.time("useDelayAsync - handler-execute-time");const i=await n(...m);o&&console.log("useDelayAsync - execute res: ",i),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await p(r),await t?.onSuccess?.(i)}catch(i){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(i),await p(r),await t?.onError?.(i)}}}async function p(m=!0){o&&console.log("useDelayAsync - close - closeLoading: ",m),d.value=!1,u&&clearTimeout(u),u=null,m&&await M.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),p()}),{processing:d,handler:f,close:p}}const Ut=["onClick"],Pt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(n){const t=n,o=e.ref(),l=e.ref(),s=e.ref(),r=e.computed(()=>{switch(t.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),a=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${r.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),c=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function d(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(u,M)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(c))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],12,Ut))}}),Rn="",Yt=k(Pt,[["__scopeId","data-v-533e986b"]]),xe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class $t{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(Yt),{...xe,...this.options});e.render(t,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 t=this.container.querySelector("#toastWrapper");t.style.opacity="0",t.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Rt=["xlink:href","fill","color"],W=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(n){const t=n,o=e.computed(()=>`#${t.prefix}-${t.name}`),l=e.computed(()=>({width:`${t.width??t.height}px`,height:`${t.height??t.width}px`,aspectRatio:t.width&&t.height?void 0:"1/1"}));function s(r){const{style:a}=r;return typeof a=="object"?a:{}}return(r,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(r.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:n.color,color:n.color},null,8,Rt)],4))}});function Ft(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:r=.9,observeMethod:a="classList"}=n,c=e.ref(!0),d=we(Y,100);let u,M="";const f=e.ref(0),p=e.ref(0),m=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),D=e.ref({clientHeight:0}),y=e.computed(()=>!!p.value),g=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),h=e.computed(()=>l?i.value.clientHeight-U.value:i.value.clientHeight-D.value.clientHeight),I=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),b=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),U=e.computed(()=>b.value>r?0:b.value*i.value.clientHeight),C=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${m.value}px,0)`,height:l?`${U.value}px`:void 0}));function j(L){P(),p.value=L.clientY-o.value.getBoundingClientRect().top||1,M=getComputedStyle(t.value).scrollBehavior,M==="smooth"&&(t.value.style.scrollBehavior="unset")}function v(){t.value.style.scrollBehavior=M,p.value=0,d()}function P(){c.value=!1}function Y(){y.value||(c.value=!0)}function B(L){if(!y.value)return;let _=L.clientY-i.value.top-p.value;_<0?m.value=0:_>=h.value?m.value=h.value:m.value=_,t.value.scrollTo({top:m.value/h.value*I.value})}function F(){y.value||Z()}function Z(){cancelAnimationFrame(u),u=requestAnimationFrame(V)}function V(){t.value&&(f.value=s.scrollTop?.value??t.value.scrollTop,m.value=f.value/I.value*h.value)}function $(L){let _="addEventListener";L==="add"?_="addEventListener":_="removeEventListener",o.value?.[_]("pointerdown",j,{passive:!0}),window[_]("pointermove",B,{passive:!0}),window[_]("pointerup",v,{passive:!0})}const z=new MutationObserver(L=>{(a=="classList"||L.map(fe=>fe.oldValue).join().includes("height"))&&E()});function E(){i.value.top=t.value?.getBoundingClientRect().top??0,i.value.scrollHeight=t.value?.scrollHeight??0,i.value.clientHeight=t.value?.clientHeight??0}function O(){P(),setTimeout(()=>{D.value.clientHeight=o.value?.clientHeight??0,Y()},150)}function x(){if(t.value&&o.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",F,{passive:!0}),$("add");const L={};a==="classList"?Object.assign(L,{subtree:!0,childList:!0}):Object.assign(L,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),z.observe(t.value,L),setTimeout(()=>{E()},100),O()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(f,()=>{P(),d()}),{isScrollEnd:c,isDragSlider:y,offsetTop:m,scrollTop:f,scrollable:g,sliderPos:C,init:x,modifySliderEventListener:$}}const Vt=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Ht=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(n,{expose:t}){const o=n,l=!!e.useSlots().default,s=e.ref(null),r=e.computed(()=>o.containerEl),a=Ft({containerEl:r,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:c,isScrollEnd:d,sliderPos:u}=a,M=e.ref(!1),f=o.autoHide?e.computed(()=>M.value||!d.value):e.computed(()=>c.value),{load:p}=ie(`.hide-scrollbar {
14
+ }`),{LoadingComp:e.defineComponent({setup(){const c=tt();return e.onMounted(()=>{c.value.classList.add(s)}),()=>e.h(n,t)}})}}function Tt({component:n,componentProps:t,delay:o=300}){const{LoadingComp:l}=de({component:n,componentProps:t,delay:o}),s=e.ref(!1);function r(){s.value=!0}function a(){s.value=!1}return{LoadingComp:l,loading:s,load:r,unload:a}}const wt=[(n=>(e.pushScopeId("data-v-9a328d05"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"ldio-mm5gwljcryb"},[e.createElementVNode("div")],-1))],Et=e.defineComponent({__name:"DefaultLoading",props:{width:{default:24},height:{default:24}},setup(n){return e.useCssVars(t=>({eebbc516:n.width+"px","5323c3d0":n.height+"px"})),(t,o)=>(e.openBlock(),e.createElementBlock("div",e.normalizeProps(e.guardReactiveProps(t.$attrs)),wt,16))}}),Un="",_e=k(Et,[["__scopeId","data-v-9a328d05"]]),It="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAQAAAC0jZKKAAAAAnNCSVQICFXsRgQAAAABc1JHQgCuzhzpAAAEMklEQVRIx62XzW9VZRDGn2fmPff23qYtlvIRqVVQICgGoS21wYUGEA0x0YUYE/8BNTHujBsNiS5cGBeujAtXLiTGjUnFjRKNQWgJVoqxC/m2RMpX7cf9OOedcXFrg1qutPc+ZzM5b84vc+bNZOYh6sp5tKWQr2qmBZ/Biqxq03Eybsh6I63+l7z90Wirts0VoyU2bYm1ZdFXZtf9shUMWckL8XGrBw+Lvx7pqHTN5Toy9cQSZMgtnLR7m19Hj//i9TNeBDyU7+jOWj2mDgBVlqXqRmHOgXZPvNOLXsHzSwW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jJf73ALWF00xVE/3HdsGc605vk6Nydb0GN38y4UqV7BjE/ggv48NfZE3UH2F3Kp4Zn6aTweAAAAAElFTkSuQmCC",zt={class:"loading-wrap"},jt=["src"],At=e.defineComponent({__name:"PageLoading",props:{delay:{default:"0.15s"},size:{default:"mini"}},setup(n){const t=n;e.useCssVars(l=>({e4aa7b1e:n.delay}));const o=e.computed(()=>{const l={};return t.size==="mini"?(l.width="22px",l.height="22px"):t.size==="large"&&(l.width="28px",l.height="28px"),l});return(l,s)=>(e.openBlock(),e.createElementBlock("div",zt,[e.createElementVNode("img",{class:"loading-circle",src:e.unref(It),style:e.normalizeStyle(e.unref(o))},null,12,jt)]))}}),Pn="",Lt=k(At,[["__scopeId","data-v-1703c303"]]);async function Ct(n){return new Promise(t=>setTimeout(()=>t(),n))}const vt="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTJweCIgaGVpZ2h0PSIxMnB4IiB2aWV3Qm94PSIwIDAgMTIgMTIiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxnIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0xMTAyLjAwMDAwMCwgLTQwNi4wMDAwMDApIiBmaWxsPSIjOTk5OTk5IiBmaWxsLXJ1bGU9Im5vbnplcm8iPgogICAgICAgIDxnIHRyYW5zZm9ybT0idHJhbnNsYXRlKDc5MC4wMDAwMDAsIDM5MC4wMDAwMDApIj4KICAgICAgICAgICAgPGcgdHJhbnNmb3JtPSJ0cmFuc2xhdGUoMzEyLjAwMDAwMCwgMTYuMDAwMDAwKSI+CiAgICAgICAgICAgIDxwYXRoIGQ9Ik0wLjU0NjQyODU3MiwwLjA5NjM0MjU1MTMgTDYuMDEsNS41NTUgTDExLjQ1MzU3MT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g5MywxNC4zMTUzOTIyIDE0LjU4Njk2NTUsMTQuNTg2OTY1NSBDMTQuMzE1MzkyMiwxNC44NTg1ODkzIDEzLjk0NzAyOTQsMTUuMDExMTkwMiAxMy41NjI5MzEsMTUuMDExMTkwMiBDMTMuMTc4ODMyNywxNS4wMTExOTAyIDEyLjgxMDQ2OTksMTQuODU4NTg5MyAxMi41Mzg4OTY2LDE0LjU4Njk2NTUgTDcuMjcyMTM3OTMsOS4zMjAyMDY5IEM3LjAwMDUxNDE0LDkuMDQ4NjMzNTYgNi44NDc5MTMyNCw4LjY4MDI3MDc5IDYuODQ3OTEzMjQsOC4yOTYxNzI0MSBDNi44NDc5MTMyNCw3LjkxMjA3NDA0IDcuMDAwNTE0MTQsNy41NDM3MTEyNyA3LjI3MjEzNzkzLDcuMjcyMTM3OTMgWiI+PC9wYXRoPgogICAgICAgICAgICA8L2c+CiAgICAgICAgPC9nPgogICAgICAgIDwvZz4KICAgIDwvZz4KPC9zdmc+",_t=["onClick"],Ot=["onClick"],xt=["src"],bt=["src"],kt=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(n,{emit:t}){const o=n,l="lzc-loading-toast",s=e.computed(()=>{let u={};return o.captureEventP&&(u.pointerEvents="none"),u}),r=e.computed(()=>{let u={padding:"12px"};return(o.icon||o.showIcon)&&(u.padding="20px"),o.width&&(u.width=o.width),o.maxWidth&&(u.maxWidth=o.maxWidth),o.overlayContentStyle&&(u={...u,...o.overlayContentStyle}),u}),a=e.computed(()=>{let u={};return o.showClose&&!o.icon&&(u.paddingRight="16px"),u});function c(){o.closeOnClickOverlay&&t("close")}function d(){o.closeOnClick&&t("close")}return(u,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(s))},[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(`${l} ${n.className}`),onClick:e.withModifiers(c,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-wrap`),onClick:e.withModifiers(d,["stop"])},[e.createElementVNode("div",{class:e.normalizeClass(`${l}-content`),style:e.normalizeStyle(e.unref(r))},[n.showClose?(e.openBlock(),e.createElementBlock("img",{key:0,onClick:M[0]||(M[0]=e.withModifiers(f=>t("close"),["stop"])),src:e.unref(vt),class:e.normalizeClass(`${l}-close`)},null,10,xt)):e.createCommentVNode("",!0),n.showIcon?(e.openBlock(),e.createElementBlock("img",{key:1,src:n.icon||e.unref(St),class:e.normalizeClass(`${l}-icon`)},null,10,bt)):e.createCommentVNode("",!0),n.message?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(`${l}-message`),style:e.normalizeStyle(e.unref(a))},e.toDisplayString(n.message),7)):e.createCommentVNode("",!0)],6)],10,Ot)],10,_t),[[e.vShow,n.visible]])],4)]),_:1}))}}),Yn="",$n="",Bt=k(kt,[["__scopeId","data-v-466df114"]]);class Oe{loadingToast;el;options;visible=e.ref(!1);animateDuration=300;constructor(t){this.options={...t,visible:this.visible},this.options.duration==null&&(this.options.duration=60*10*1e3),this.el=document.createElement("div"),this.loadingToast=Bt}async show(){const t=this.options,l={...t,onClose:()=>{this.close(),t?.onClose?.()}},s=e.createVNode(this.loadingToast,l);e.render(s,this.el),document.body.insertBefore(this.el,document.body.firstChild),this.visible.value=!0,t.duration!==0&&setTimeout(()=>{this.destory()},t.duration),await Ct(t.duration+this.animateDuration)}async destory(){!this.visible.value||(this.visible.value=!1,await new Promise(t=>{setTimeout(()=>{if(!this.el){t();return}document.body.removeChild(this.el),t()},this.animateDuration-10)}))}close(){document.querySelector("#lzc-loading-toast")?.remove()}}function Qt(n,t){const o=!!t?.debug,l=t?.printErrorLog!==!1,s=t?.loading!==!1,r=t?.autoClose!==!1,a=t?.delay!=null?t.delay:300,c={...t,showIcon:t?.showIcon!==!1,captureEventP:t?.captureEventP===!0};o&&console.log("useDelayAsync - loading: %s autoClose: %s delay: %s loadingToastOptions: %o",s,r,a,c);const d=e.ref(!1);let u=null;const M=new Oe(c);async function f(...m){if(o&&console.log(`useDelayAsync - handler - processing: ${d.value}`),!d.value){d.value=!0,u=setTimeout(()=>{o&&console.log("useDelayAsync - handler - setTimeout - loading: %s processing: %s",s,d.value),s&&(!d.value||M.show())},a);try{o&&console.time("useDelayAsync - handler-execute-time");const i=await n(...m);o&&console.log("useDelayAsync - execute res: ",i),o&&console.timeEnd("useDelayAsync - handler-execute-time"),await p(r),await t?.onSuccess?.(i)}catch(i){o&&console.timeEnd("useDelayAsync - handler-execute-time"),l&&console.error(i),await p(r),await t?.onError?.(i)}}}async function p(m=!0){o&&console.log("useDelayAsync - close - closeLoading: ",m),d.value=!1,u&&clearTimeout(u),u=null,m&&await M.destory()}return e.onBeforeUnmount(()=>{o&&console.log("useDelayAsync - onBeforeUnmount - close"),p()}),{processing:d,handler:f,close:p}}const Ut=["onClick"],Pt=e.defineComponent({__name:"Toast",props:{message:null,position:null,buttonClickEvent:null},setup(n){const t=n,o=e.ref(),l=e.ref(),s=e.ref(),r=e.computed(()=>{switch(t.position){case"top":return 10;case"middle":return 50;case"bottom":return 85}}),a=e.computed(()=>({position:"absolute",borderRadius:"10px",backgroundColor:"rgba(0, 0, 0, 0.8)",padding:"14px 19px",top:`calc(${r.value}% - ${s.value}px)`,left:`calc(50% - ${l.value}px)`})),c=e.computed(()=>({width:"fit-content",display:"flex",justifyContent:"center",alignItems:"center",color:"white",fontSize:"14px"}));function d(){!t.buttonClickEvent||t.buttonClickEvent()}return e.nextTick(()=>{l.value=o.value.offsetWidth/2,s.value=o.value.offsetHeight/2}),(u,M)=>(e.openBlock(),e.createElementBlock("div",{onClick:e.withModifiers(d,["stop"]),id:"toastWrapper",ref_key:"toastWrapper",ref:o,class:"toastWrapper",style:e.normalizeStyle([e.unref(a),{zIndex:9999999}])},[e.createElementVNode("div",{style:e.normalizeStyle(e.unref(c))},[e.createElementVNode("span",null,e.toDisplayString(n.message),1)],4)],12,Ut))}}),Rn="",Yt=k(Pt,[["__scopeId","data-v-533e986b"]]),xe={message:"\u61D2\u732B\u4E91 Yes!!!",position:"middle",duration:1500,buttonClickEvent:()=>{}};class $t{options;container;constructor(t){this.options=t,this.container=document.createElement("div")}present(){const t=e.h(e.h(Yt),{...xe,...this.options});e.render(t,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 t=this.container.querySelector("#toastWrapper");t.style.opacity="0",t.style.transition="opacity 0.4s ease-in",setTimeout(()=>{this.container&&(e.render(null,this.container),document.body.removeChild(this.container))},500)}}}const Rt=["xlink:href","fill","color"],W=e.defineComponent({__name:"SvgIcon",props:{name:null,prefix:{default:"icon"},color:{default:"#FFF"},width:null,height:null},setup(n){const t=n,o=e.computed(()=>`#${t.prefix}-${t.name}`),l=e.computed(()=>({width:`${t.width??t.height}px`,height:`${t.height??t.width}px`,aspectRatio:t.width&&t.height?void 0:"1/1"}));function s(r){const{style:a}=r;return typeof a=="object"?a:{}}return(r,a)=>(e.openBlock(),e.createElementBlock("svg",{"aria-hidden":"",style:e.normalizeStyle({...e.unref(l),...s(r.$attrs)})},[e.createElementVNode("use",{"xlink:href":e.unref(o),fill:n.color,color:n.color},null,8,Rt)],4))}});function Ft(n){const{containerEl:t,sliderEl:o,autoHeight:l,performance:s={},maxHeightRatio:r=.9,observeMethod:a="classList"}=n,c=e.ref(!0),d=we(Y,100);let u,M="";const f=e.ref(0),p=e.ref(0),m=e.ref(0),i=e.ref({top:0,scrollTop:0,scrollHeight:0,clientHeight:0}),D=e.ref({clientHeight:0}),y=e.computed(()=>!!p.value),g=e.computed(()=>i.value.scrollHeight>i.value.clientHeight),h=e.computed(()=>l?i.value.clientHeight-U.value:i.value.clientHeight-D.value.clientHeight),I=e.computed(()=>i.value.scrollHeight-i.value.clientHeight),b=e.computed(()=>Math.max(i.value.clientHeight/i.value.scrollHeight,.05)),U=e.computed(()=>b.value>r?0:b.value*i.value.clientHeight),C=e.computed(()=>({willChange:"transform",transform:`translate3d(0,${m.value}px,0)`,height:l?`${U.value}px`:void 0}));function j(L){P(),p.value=L.clientY-o.value.getBoundingClientRect().top||1,M=getComputedStyle(t.value).scrollBehavior,M==="smooth"&&(t.value.style.scrollBehavior="unset")}function v(){t.value.style.scrollBehavior=M,p.value=0,d()}function P(){c.value=!1}function Y(){y.value||(c.value=!0)}function B(L){if(!y.value)return;let _=L.clientY-i.value.top-p.value;_<0?m.value=0:_>=h.value?m.value=h.value:m.value=_,t.value.scrollTo({top:m.value/h.value*I.value})}function F(){y.value||Z()}function Z(){cancelAnimationFrame(u),u=requestAnimationFrame(V)}function V(){t.value&&(f.value=s.scrollTop?.value??t.value.scrollTop,m.value=f.value/I.value*h.value)}function $(L){let _="addEventListener";L==="add"?_="addEventListener":_="removeEventListener",o.value?.[_]("pointerdown",j,{passive:!0}),window[_]("pointermove",B,{passive:!0}),window[_]("pointerup",v,{passive:!0})}const z=new MutationObserver(L=>{(a=="classList"||L.map(fe=>fe.oldValue).join().includes("height"))&&E()});function E(){i.value.top=t.value?.getBoundingClientRect().top??0,i.value.scrollHeight=t.value?.scrollHeight??0,i.value.clientHeight=t.value?.clientHeight??0}function O(){P(),setTimeout(()=>{D.value.clientHeight=o.value?.clientHeight??0,Y()},150)}function x(){if(t.value&&o.value){t.value.classList.add("hide-scrollbar"),t.value.addEventListener("scroll",F,{passive:!0}),$("add");const L={};a==="classList"?Object.assign(L,{subtree:!0,childList:!0}):Object.assign(L,{subtree:!0,attributeOldValue:!0,attributeFilter:["style"]}),z.observe(t.value,L),setTimeout(()=>{E()},100),O()}else console.error("useScrollBar:","\u521D\u59CB\u5316\u5931\u8D25!",{containerEl:t,sliderEl:o})}return e.watch(f,()=>{P(),d()}),{isScrollEnd:c,isDragSlider:y,offsetTop:m,scrollTop:f,scrollable:g,sliderPos:C,init:x,modifySliderEventListener:$}}const Vt=(n=>(e.pushScopeId("data-v-efefe52c"),n=n(),e.popScopeId(),n))(()=>e.createElementVNode("div",{class:"default-slider"},null,-1)),Ht=e.defineComponent({__name:"ScrollBar",props:{containerEl:null,autoHide:{type:Boolean},autoHeight:{type:Boolean},observeMethod:null,performance:null},setup(n,{expose:t}){const o=n,l=!!e.useSlots().default,s=e.ref(null),r=e.computed(()=>o.containerEl),a=Ft({containerEl:r,sliderEl:s,autoHeight:l?o.autoHeight:!0,performance:o.performance,observeMethod:o.observeMethod}),{scrollable:c,isScrollEnd:d,sliderPos:u}=a,M=e.ref(!1),f=o.autoHide?e.computed(()=>M.value||!d.value):e.computed(()=>c.value),{load:p}=ie(`.hide-scrollbar {
15
15
  scrollbar-width: none;
16
16
  -ms-overflow-style: none;
17
17
  }
package/dist/style.css CHANGED
@@ -1 +1 @@
1
- .lzc-modal[data-v-4ff684af]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-4ff684af]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-9a328d05]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-9a328d05]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--eebbc516);height:var(--5323c3d0);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-9a328d05 .7s linear infinite}@keyframes ldio-mm5gwljcryb-9a328d05{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-9a328d05]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-1703c303]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-1703c303]{opacity:0;animation:loading-spin-1703c303 .8s var(--e4aa7b1e) linear infinite}@keyframes loading-spin-1703c303{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-ef098d79]{display:flex;position:fixed;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-ef098d79]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-ef098d79]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;box-sizing:border-box}.lzc-loading-toast-content[data-v-ef098d79]>:not([hidden])~:not([hidden]){margin-top:4px;margin-bottom:0}.lzc-loading-toast-close[data-v-ef098d79]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-ef098d79]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-ef098d79 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-ef098d79]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;box-sizing:border-box;white-space:pre-wrap;line-height:26px}@keyframes lzc-spin-ef098d79{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lzc-fade-in{0%{opacity:0}to{opacity:1}}.lzc-animate-fade-in{animation:lzc-fade-in 1s linear 1}.lzc-animate-duration-300{animation-duration:.3s}@keyframes lzc-fade-out{0%{opacity:1}to{opacity:0}}.lzc-animate-fade-out{animation:lzc-fade-out 1s linear 1}@keyframes slide-533e986b{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-533e986b]{animation:slide-533e986b .3s linear}.v-leave-active[data-v-efefe52c]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-efefe52c]{opacity:0}.slider-wrapper[data-v-efefe52c]{position:absolute;right:0;touch-action:none}.default-slider[data-v-efefe52c]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-18377f18]{position:relative}.pull-refresh-box[data-v-18377f18]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-18377f18]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-18377f18]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-18377f18 3s infinite linear forwards}@keyframes boxs-18377f18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-18377f18]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-18377f18 3s infinite linear forwards}@keyframes pr1A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-18377f18]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-18377f18 3s infinite linear forwards}@keyframes pr2A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-18377f18]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-18377f18]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-18377f18]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-18377f18]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-18377f18]{opacity:1}.left-item[data-v-18377f18]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-18377f18]{color:#e93b3d}.virtualList[data-v-76b1f71d]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-76b1f71d]{width:100%;height:100%;position:relative}@keyframes loading-rotate-c986249d{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-c986249d]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-c986249d var(--5e400569) linear infinite}.v-enter-active[data-v-d85c1bee],.v-leave-active[data-v-d85c1bee]{transition:opacity .6s ease}.v-enter-from[data-v-d85c1bee],.v-leave-to[data-v-d85c1bee]{opacity:0}img[data-v-d85c1bee]{pointer-events:none}.tip[data-v-d85c1bee]{font-size:14px;color:#aeaeae}.tip-wrap[data-v-d85c1bee]{display:flex;flex-direction:column;align-items:center;justify-content:center}.no-support-icon[data-v-d85c1bee]{width:162px;height:134px}.bad-image[data-v-d85c1bee]{width:92px;height:92px}.preview-class[data-v-d85c1bee]{filter:blur(1px)}.src-class[data-v-d85c1bee]{filter:blur(0px)}img[data-v-9fad8239]{pointer-events:none}.icon-wrap[data-v-9fad8239]{display:flex;align-items:center;justify-content:center}.icon[data-v-9fad8239]{width:100%;height:100%}
1
+ .lzc-modal[data-v-4ff684af]{position:absolute;inset:0;display:flex;z-index:999;background-color:#1c191780}.lzc-dialog[data-v-4ff684af]{margin:auto;display:flex;flex-direction:column}.ldio-mm5gwljcryb[data-v-9a328d05]{width:100%;height:100%;position:relative;transform:translateZ(0) scale(1);backface-visibility:hidden;transform-origin:0 0}.ldio-mm5gwljcryb div[data-v-9a328d05]{box-sizing:content-box;position:absolute;top:50%;left:50%;width:var(--eebbc516);height:var(--5323c3d0);border:3px solid #dfdfdf;border-top-color:transparent;border-radius:50%;animation:ldio-mm5gwljcryb-9a328d05 .7s linear infinite}@keyframes ldio-mm5gwljcryb-9a328d05{0%{transform:translate(-50%,-50%) rotate(0)}to{transform:translate(-50%,-50%) rotate(360deg)}}.loadingio-spinner-rolling-5kajof80q6w[data-v-9a328d05]{width:100%;height:100%;display:inline-block;overflow:hidden;background:#ffffff}.loading-wrap[data-v-1703c303]{display:flex;align-items:center;justify-content:center;width:100%;transform:rotateY(180deg)}.loading-circle[data-v-1703c303]{opacity:0;animation:loading-spin-1703c303 .8s var(--e4aa7b1e) linear infinite}@keyframes loading-spin-1703c303{0%{opacity:1}to{opacity:1;transform:rotate(-360deg)}}.lzc-loading-toast[data-v-466df114]{display:flex;position:fixed;top:0;width:100%;height:100%;z-index:2147483647;box-sizing:border-box}.lzc-loading-toast-wrap[data-v-466df114]{margin:auto;text-align:center;box-sizing:border-box}.lzc-loading-toast-content[data-v-466df114]{display:flex;flex-direction:column;border-radius:8px;position:relative;pointer-events:auto;background-color:#000c;box-sizing:border-box}.lzc-loading-toast-content[data-v-466df114]>:not([hidden])~:not([hidden]){margin-top:4px;margin-bottom:0}.lzc-loading-toast-close[data-v-466df114]{height:10px;width:10px;position:absolute;right:12px;top:12px;cursor:pointer;box-sizing:border-box}.lzc-loading-toast-icon[data-v-466df114]{width:35px;height:35px;margin:0 auto;border-radius:9999px;animation:lzc-spin-466df114 1s linear infinite;box-sizing:border-box}.lzc-loading-toast-message[data-v-466df114]{display:flex;flex-wrap:wrap;font-size:16px;color:#fff;margin-left:auto;margin-right:auto;box-sizing:border-box;white-space:pre-wrap;line-height:26px}@keyframes lzc-spin-466df114{0%{transform:rotate(0)}to{transform:rotate(360deg)}}@keyframes lzc-fade-in{0%{opacity:0}to{opacity:1}}.lzc-animate-fade-in{animation:lzc-fade-in 1s linear 1}.lzc-animate-duration-300{animation-duration:.3s}@keyframes lzc-fade-out{0%{opacity:1}to{opacity:0}}.lzc-animate-fade-out{animation:lzc-fade-out 1s linear 1}@keyframes slide-533e986b{0%{opacity:1}to{opacity:0}}.animate-toastAnimation[data-v-533e986b]{animation:slide-533e986b .3s linear}.v-leave-active[data-v-efefe52c]{transition:all .15s ease-out;transition-delay:.9s}.v-leave-to[data-v-efefe52c]{opacity:0}.slider-wrapper[data-v-efefe52c]{position:absolute;right:0;touch-action:none}.default-slider[data-v-efefe52c]{width:6px;height:100%;background-color:#0003;border-radius:3px;margin-right:3px}.pull-refresh[data-v-18377f18]{position:relative}.pull-refresh-box[data-v-18377f18]{position:absolute;display:flex;justify-content:center;width:100%;font-size:14px;color:#85898b99;text-align:center;z-index:500}.pull-arrow-circle[data-v-18377f18]{position:relative;width:30px;height:30px;border-radius:50%;background-color:#fff;display:flex;justify-content:center;align-items:center}.box-load[data-v-18377f18]{position:relative;width:18px;height:18px;border-radius:50%;overflow:hidden;animation:boxs-18377f18 3s infinite linear forwards}@keyframes boxs-18377f18{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.left-load[data-v-18377f18]{position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.left-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:18px 0 0 18px;transform:rotate(-180deg);transform-origin:9px 9px;animation:pr1A-18377f18 3s infinite linear forwards}@keyframes pr1A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(-180deg)}50%{transform:rotate(0)}75%{transform:rotate(0)}to{transform:rotate(180deg)}}.right-load[data-v-18377f18]{left:9px;position:absolute;width:50%;height:18px;background:#fff;overflow:hidden}.right-circle[data-v-18377f18]{position:absolute;width:9px;height:18px;border-radius:0 18px 18px 0;transform:rotate(-180deg);transform-origin:0px 9px;animation:pr2A-18377f18 3s infinite linear forwards}@keyframes pr2A-18377f18{0%{transform:rotate(-180deg)}25%{transform:rotate(0)}50%{transform:rotate(0)}75%{transform:rotate(180deg)}to{transform:rotate(180deg)}}.among-load[data-v-18377f18]{top:2px;left:2px;width:14px;height:14px;border-radius:50%;position:absolute;background:#fff;z-index:5;overflow:hidden}.pull-circle-line[data-v-18377f18]{position:relative;width:15px;height:15px;border-radius:50%;background-color:#fff;box-sizing:border-box;border-width:2px;border-style:solid;display:flex;align-items:center;justify-content:center}.pull-arrow[data-v-18377f18]{position:absolute;left:-3px;transform:rotate(120deg);background-color:#fff;width:4px;height:6px}.arrows[data-v-18377f18]{width:0;height:0;position:absolute;right:-4px;bottom:4px;transform:rotate(-30deg);border-bottom-width:6px;border-bottom-style:solid;border-right:6px solid transparent;transition:.5s;opacity:0}.opacity[data-v-18377f18]{opacity:1}.left-item[data-v-18377f18]{text-align:center;height:100px;line-height:100px;color:#333}.left-item-active[data-v-18377f18]{color:#e93b3d}.virtualList[data-v-76b1f71d]{width:100%;height:100%;position:absolute;overflow-y:auto;scroll-behavior:smooth;user-select:none}.virtualListWrapper[data-v-76b1f71d]{width:100%;height:100%;position:relative}@keyframes loading-rotate-c986249d{to{transform:rotate(360deg);-ms-transform:rotate(360deg);-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);-o-transform:rotate(360deg)}}.wrapper[data-v-c986249d]{width:100%;height:100%;border-radius:100%;background:conic-gradient(from .25turn at 50% 50%,rgba(255,255,255,0),240deg,#2ec1cc);position:absolute;top:0;animation:loading-rotate-c986249d var(--5e400569) linear infinite}.v-enter-active[data-v-d85c1bee],.v-leave-active[data-v-d85c1bee]{transition:opacity .6s ease}.v-enter-from[data-v-d85c1bee],.v-leave-to[data-v-d85c1bee]{opacity:0}img[data-v-d85c1bee]{pointer-events:none}.tip[data-v-d85c1bee]{font-size:14px;color:#aeaeae}.tip-wrap[data-v-d85c1bee]{display:flex;flex-direction:column;align-items:center;justify-content:center}.no-support-icon[data-v-d85c1bee]{width:162px;height:134px}.bad-image[data-v-d85c1bee]{width:92px;height:92px}.preview-class[data-v-d85c1bee]{filter:blur(1px)}.src-class[data-v-d85c1bee]{filter:blur(0px)}img[data-v-9fad8239]{pointer-events:none}.icon-wrap[data-v-9fad8239]{display:flex;align-items:center;justify-content:center}.icon[data-v-9fad8239]{width:100%;height:100%}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lazycatcloud/lzc-toolkit",
3
- "version": "0.0.133",
3
+ "version": "0.0.135",
4
4
  "description": "lazycat ui toolkits",
5
5
  "main": "./dist/index.umd.js",
6
6
  "module": "./dist/index.es.js",