@dolusoft/vue3-datatable 1.7.30 → 1.7.31
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/vue3-datatable.cjs +1 -1
- package/dist/vue3-datatable.css +1 -1
- package/dist/vue3-datatable.js +70 -75
- package/package.json +1 -1
package/dist/vue3-datatable.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const e=require("vue");function dn(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function fn(t){return typeof t=="function"?t():e.unref(t)}const hn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function mn(t){return e.getCurrentInstance()}function pn(t,l=!0,o){mn()?e.onMounted(t,o):l?t():e.nextTick(t)}function ae(t){var l;const o=fn(t);return(l=o==null?void 0:o.$el)!=null?l:o}const Mt=hn?window:void 0;function vn(){const t=e.ref(!1),l=e.getCurrentInstance();return l&&e.onMounted(()=>{t.value=!0},l),t}function gn(t){const l=vn();return e.computed(()=>(l.value,!!t()))}function bn(t,l,o={}){const{window:i=Mt,...n}=o;let r;const s=gn(()=>i&&"ResizeObserver"in i),a=()=>{r&&(r.disconnect(),r=void 0)},u=e.computed(()=>Array.isArray(t)?t.map(p=>ae(p)):[ae(t)]),h=e.watch(u,p=>{if(a(),s.value&&i){r=new ResizeObserver(l);for(const E of p)E&&r.observe(E,n)}},{immediate:!0,flush:"post"}),f=()=>{a(),h()};return dn(f),{isSupported:s,stop:f}}function yn(t,l={width:0,height:0},o={}){const{window:i=Mt,box:n="content-box"}=o,r=e.computed(()=>{var p,E;return(E=(p=ae(t))==null?void 0:p.namespaceURI)==null?void 0:E.includes("svg")}),s=e.ref(l.width),a=e.ref(l.height),{stop:u}=bn(t,([p])=>{const E=n==="border-box"?p.borderBoxSize:n==="content-box"?p.contentBoxSize:p.devicePixelContentBoxSize;if(i&&r.value){const N=ae(t);if(N){const L=N.getBoundingClientRect();s.value=L.width,a.value=L.height}}else if(E){const N=Array.isArray(E)?E:[E];s.value=N.reduce((L,{inlineSize:T})=>L+T,0),a.value=N.reduce((L,{blockSize:T})=>L+T,0)}else s.value=p.contentRect.width,a.value=p.contentRect.height},o);pn(()=>{const p=ae(t);p&&(s.value="offsetWidth"in p?p.offsetWidth:l.width,a.value="offsetHeight"in p?p.offsetHeight:l.height)});const h=e.watch(()=>ae(t),p=>{s.value=p?l.width:0,a.value=p?l.height:0});function f(){u(),h()}return{width:s,height:a,stop:f}}var kn=typeof global=="object"&&global&&global.Object===Object&&global,wn=typeof self=="object"&&self&&self.Object===Object&&self,Ft=kn||wn||Function("return this")(),Le=Ft.Symbol,Tt=Object.prototype,Cn=Tt.hasOwnProperty,xn=Tt.toString,ce=Le?Le.toStringTag:void 0;function Sn(t){var l=Cn.call(t,ce),o=t[ce];try{t[ce]=void 0;var i=!0}catch{}var n=xn.call(t);return i&&(l?t[ce]=o:delete t[ce]),n}var En=Object.prototype,zn=En.toString;function Bn(t){return zn.call(t)}var Nn="[object Null]",Ln="[object Undefined]",ct=Le?Le.toStringTag:void 0;function Mn(t){return t==null?t===void 0?Ln:Nn:ct&&ct in Object(t)?Sn(t):Bn(t)}function Fn(t){return t!=null&&typeof t=="object"}var Tn="[object Symbol]";function Pn(t){return typeof t=="symbol"||Fn(t)&&Mn(t)==Tn}var _n=/\s/;function In(t){for(var l=t.length;l--&&_n.test(t.charAt(l)););return l}var Vn=/^\s+/;function On(t){return t&&t.slice(0,In(t)+1).replace(Vn,"")}function Me(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}var ut=NaN,$n=/^[-+]0x[0-9a-f]+$/i,Rn=/^0b[01]+$/i,Dn=/^0o[0-7]+$/i,An=parseInt;function de(t){if(typeof t=="number")return t;if(Pn(t))return ut;if(Me(t)){var l=typeof t.valueOf=="function"?t.valueOf():t;t=Me(l)?l+"":l}if(typeof t!="string")return t===0?t:+t;t=On(t);var o=Rn.test(t);return o||Dn.test(t)?An(t.slice(2),o?2:8):$n.test(t)?ut:+t}function Wn(t,l,o){return t===t&&(o!==void 0&&(t=t<=o?t:o),l!==void 0&&(t=t>=l?t:l)),t}function Se(t,l,o){return o===void 0&&(o=l,l=void 0),o!==void 0&&(o=de(o),o=o===o?o:0),l!==void 0&&(l=de(l),l=l===l?l:0),Wn(de(t),l,o)}var De=function(){return Ft.Date.now()},Hn="Expected a function",qn=Math.max,jn=Math.min;function Pt(t,l,o){var i,n,r,s,a,u,h=0,f=!1,p=!1,E=!0;if(typeof t!="function")throw new TypeError(Hn);l=de(l)||0,Me(o)&&(f=!!o.leading,p="maxWait"in o,r=p?qn(de(o.maxWait)||0,l):r,E="trailing"in o?!!o.trailing:E);function N(w){var C=i,I=n;return i=n=void 0,h=w,s=t.apply(I,C),s}function L(w){return h=w,a=setTimeout(_,l),f?N(w):s}function T(w){var C=w-u,I=w-h,R=l-C;return p?jn(R,r-I):R}function y(w){var C=w-u,I=w-h;return u===void 0||C>=l||C<0||p&&I>=r}function _(){var w=De();if(y(w))return O(w);a=setTimeout(_,T(w))}function O(w){return a=void 0,E&&i?N(w):(i=n=void 0,s)}function $(){a!==void 0&&clearTimeout(a),h=0,i=u=n=a=void 0}function F(){return a===void 0?s:O(De())}function W(){var w=De(),C=y(w);if(i=arguments,n=this,u=w,C){if(a===void 0)return L(u);if(p)return clearTimeout(a),a=setTimeout(_,l),N(u)}return a===void 0&&(a=setTimeout(_,l)),s}return W.cancel=$,W.flush=F,W}var Un="Expected a function";function _t(t,l,o){var i=!0,n=!0;if(typeof t!="function")throw new TypeError(Un);return Me(o)&&(i="leading"in o?!!o.leading:i,n="trailing"in o?!!o.trailing:n),Pt(t,l,{leading:i,maxWait:l,trailing:n})}var Gn=Object.defineProperty,Qn=Object.defineProperties,Kn=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty,Yn=Object.prototype.propertyIsEnumerable,ft=(t,l,o)=>l in t?Gn(t,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[l]=o,Fe=(t,l)=>{for(var o in l||(l={}))Xn.call(l,o)&&ft(t,o,l[o]);if(dt)for(var o of dt(l))Yn.call(l,o)&&ft(t,o,l[o]);return t},It=(t,l)=>Qn(t,Kn(l));const Jn=["onPointerdown"],Zn={name:"ScrollbarThumb"};function eo(t,{expose:l}){const o=t;e.useCssVars(C=>({"1fb98f78":e.unref(i)}));const i=e.computed(()=>{var C;return`${(C=o.thumbWidth)!=null?C:12}px`});let n=null,r=e.shallowRef(null);const s={pageX:0,pageY:0,scrollPos:0};let a=null;const u=()=>{n=setTimeout(()=>{r.value&&r.value.classList.remove("scrollbar__thumbPlaceholder--scrolling"),n=null},o.autoHideDelay)},h=()=>{n!==null&&clearTimeout(n)};e.onUnmounted(h);const f=_t(C=>{C.stopPropagation(),C.preventDefault();const I=o.type==="horizontal"?"pageX":"pageY",R=(C[I]-s[I])/o.scrollInfo.wrapperMainSize*o.scrollInfo.contentMainSize;o.wrapperEl.scrollTo({[o.type==="horizontal"?"left":"top"]:s.scrollPos+R,behavior:"auto"})},16),p=()=>{u(),r.value.removeEventListener("pointermove",f),r.value.removeEventListener("pointerup",p),r.value.removeEventListener("pointercancel",p),r.value.removeEventListener("mousewheel",p),document.removeEventListener("mousewheel",p),typeof a=="number"&&r.value.releasePointerCapture(a),a=null},E=C=>{C.ctrlKey||C.button!==0||(h(),s.pageX=C.pageX,s.pageY=C.pageY,s.scrollPos=o.wrapperEl[o.type==="horizontal"?"scrollLeft":"scrollTop"],a=C==null?void 0:C.pointerId,r.value.setPointerCapture(a),r.value.addEventListener("pointermove",f),r.value.addEventListener("pointerup",p),r.value.addEventListener("pointercancel",p),r.value.addEventListener("mousewheel",p,{passive:!1}),document.addEventListener("mousewheel",p,{passive:!1}),r.value.classList.add("scrollbar__thumbPlaceholder--scrolling"))};l({autoHideAfterScroll:()=>{h(),r.value&&r.value.classList.add("scrollbar__thumbPlaceholder--scrolling"),u()}});let L=e.shallowRef(!1),T=e.shallowRef(!1),y=e.shallowRef(null),_=null,O=null,$=e.computed(()=>o.fixedThumb&&!T.value);const F=([C])=>T.value=C.isIntersecting,W=([C])=>L.value=C.isIntersecting,w=()=>{_&&(_.disconnect(),_=null),O&&(O.disconnect(),O=null)};return e.watch(()=>[o.fixedThumb,o.wrapperEl],()=>{if(!o.fixedThumb||!o.wrapperEl)return w();w(),O=new IntersectionObserver(W,{threshold:[0,.5]}),O.observe(o.wrapperEl),_=new IntersectionObserver(F),_.observe(y.value)}),e.onUnmounted(w),(C,I)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["scrollbar__thumbPlaceholder",`scrollbar__thumbPlaceholder--${t.type}`,{"scrollbar__thumbPlaceholder--autoHide":t.autoHide,"scrollbar__thumbPlaceholder--autoExpand":t.autoExpand}]),style:e.normalizeStyle({width:t.type==="horizontal"?`${t.scrollInfo.thumbSize}px`:"",height:t.type==="vertical"?`${t.scrollInfo.thumbSize}px`:"",position:$.value?"fixed":"absolute",[t.type==="vertical"?"top":"left"]:$.value?`${t.scrollInfo.boundaryDistance+3}px`:"3px"}),ref:(R,q)=>{q.thumbEl=R,r.value=R},onPointerdown:e.withModifiers(E,["stop"])},[I[0]||(e.setBlockTracking(-1),I[0]=e.createElementVNode("div",{class:e.normalizeClass(["scrollbar__thumb",`scrollbar__thumb--${t.type}`])},null,2),e.setBlockTracking(1),I[0])],46,Jn),[[e.vShow,!!t.scrollInfo.thumbSize&&(t.fixedThumb?L.value:!0)]]),o.fixedThumb?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref:(R,q)=>{q.shepherdEl=R,y.value=R},class:e.normalizeClass(["scrollbar__shepherd",`scrollbar__shepherd--${t.type}`])},null,2)),[[e.vShow,!!t.scrollInfo.thumbSize]]):e.createCommentVNode("",!0)],64))}const to=e.defineComponent(It(Fe({},Zn),{props:{type:null,autoExpand:null,autoHide:null,autoHideDelay:null,fixedThumb:null,scrollInfo:null,thumbWidth:null,wrapperEl:null},setup:eo})),no={wait:333,type:"debounce"};function ht(...t){const l="value"in(t==null?void 0:t[0]);let o;l?o=t==null?void 0:t[1]:o=t==null?void 0:t[0];const{wait:i,type:n,callback:r}=Fe(Fe({},no),o),s=l?t[0]:e.shallowRef(null),a=e.reactive({left:0,top:0,right:0,bottom:0,width:0,height:0,x:0,y:0}),u=()=>{const E=s.value.getBoundingClientRect();a.left=E.left,a.top=E.top,a.right=E.right,a.bottom=E.bottom,a.width=E.width,a.height=E.height,a.x=E.x,a.y=E.y,r==null||r()};let h=null,f=null;const p=()=>{h&&window.removeEventListener("resize",h),f&&(f.disconnect(),f=null)};return e.watchEffect(()=>{s.value&&(p(),h=u,n==="throttle"&&i>=4?h=_t(h,i):n==="debounce"&&i>=4&&(h=Pt(h,i)),window.addEventListener("resize",h),f=new ResizeObserver(h),f.observe(s.value))}),e.onUnmounted(p),l?a:[s,a]}const oo={name:"CustomScrollbar",inheritAttrs:!1};function lo(t,{expose:l,emit:o}){const i=t,n={horizontal:{el:null,instance:null},vertical:{el:null,instance:null}},r=(F,W)=>{n[W].instance||(n[W].instance=F)};let s=e.shallowRef(null),a=e.shallowRef(null);e.onMounted(()=>{var F;const W=Array.from((F=s.value.parentElement)==null?void 0:F.childNodes);for(const w in n)n[w].el=W.find(C=>{var I;return(I=C==null?void 0:C.classList)==null?void 0:I.contains(`scrollbar__thumbPlaceholder--${w}`)})});const u=ht(s,{wait:i.throttleWait,type:i.throttleType,callback:E}),h=ht(a,{wait:i.throttleWait,type:i.throttleType,callback:E});let f=e.shallowRef(0),p=e.shallowRef(0);function E(){f.value=Math.max(s.value.scrollHeight-u.height|0,0),p.value=Math.max(s.value.scrollWidth-u.width|0,0)}let N=e.computed(()=>({thumbSize:p.value?Se(u.width/s.value.scrollWidth*u.width,i.thumbMinSize>u.width?48:i.thumbMinSize,i.thumbMaxSize):0,contentMainSize:h.width,wrapperMainSize:u.width,boundaryDistance:Math.abs(u.left)})),L=e.computed(()=>({thumbSize:f.value?Se(u.height/s.value.scrollHeight*u.height,i.thumbMinSize>u.height?48:i.thumbMinSize,i.thumbMaxSize):0,contentMainSize:h.height,wrapperMainSize:u.height,boundaryDistance:Math.abs(u.top)})),T=e.computed(()=>u.height-L.value.thumbSize-5),y=e.computed(()=>u.width-N.value.thumbSize-5);const _=()=>{p.value&&(n.horizontal.el.style.transform=`translate3d(${s.value.scrollLeft/p.value*y.value}px, 0, 0)`,n.horizontal.instance.autoHideAfterScroll()),f.value&&(n.vertical.el.style.transform=`translate3d(0, ${s.value.scrollTop/f.value*T.value}px, 0)`,n.vertical.instance.autoHideAfterScroll())};e.watch(()=>[p.value,f.value],_);const O=F=>{F.stopPropagation();const W=s.value.scrollLeft,w=s.value.scrollTop,C=Se(W+((F==null?void 0:F.deltaX)||0),0,p.value)|0,I=Se(w+((F==null?void 0:F.deltaY)||0),0,f.value)|0;s.value.scrollLeft=C,s.value.scrollTop=I,p.value&&(n.horizontal.el.style.transform=`translate3d(${C/p.value*y.value}px, 0, 0)`,n.horizontal.instance.autoHideAfterScroll()),f.value&&(n.vertical.el.style.transform=`translate3d(0, ${I/f.value*T.value}px, 0)`,n.vertical.instance.autoHideAfterScroll()),o("scroll",{target:s.value,scrollLeft:C,scrollTop:I})},$=F=>{i.simulateScroll?O(F):_()};return e.watch(u,()=>o("wrapperResize",u)),e.watch(h,()=>o("contentResize",h)),l({scrollEl:s}),(F,W)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["scrollbar__wrapper",t.wrapperClass]),style:e.normalizeStyle(t.wrapperStyle)},[e.createElementVNode("div",e.mergeProps({ref:(w,C)=>{C.wrapperEl=w,s.value=w},class:"scrollbar__scroller"},F.$attrs,{onWheel:$,onScroll:$}),[e.createElementVNode("div",{ref:(w,C)=>{C.contentEl=w,a.value=w},class:e.normalizeClass(["scrollbar__content",t.contentClass,{"scrollbar__content--fixedThumb":t.fixedThumb,[`scrollbar__content--${t.direction}`]:t.direction}]),style:e.normalizeStyle(t.contentStyle)},[e.renderSlot(F.$slots,"default")],6)],16),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,(w,C)=>e.createVNode(to,{ref:I=>r(I,C),key:C,autoExpand:t.autoExpand,autoHide:t.autoHide,autoHideDelay:t.autoHideDelay,fixedThumb:C===t.direction?!1:t.fixedThumb,type:C,scrollInfo:C==="vertical"?L.value:N.value,thumbWidth:t.thumbWidth,wrapperEl:s.value},null,8,["autoExpand","autoHide","autoHideDelay","fixedThumb","type","scrollInfo","thumbWidth","wrapperEl"])),64))],6))}const io=e.defineComponent(It(Fe({},oo),{props:{wrapperClass:null,wrapperStyle:null,contentClass:null,contentStyle:null,direction:{default:"vertical"},thumbMinSize:{default:48},thumbMaxSize:{default:1/0},thumbWidth:{default:12},autoHide:{default:!0},autoHideDelay:{default:900},autoExpand:{default:!0},fixedThumb:null,throttleType:{default:"debounce"},throttleWait:{default:333},simulateScroll:null},emits:["wrapperResize","contentResize","scroll"],setup:lo})),mt={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(t,{emit:l}){const o=l,i=t,n=e.useSlots(),r=e.ref([]),s=e.computed(()=>r.value.reduce((d,g)=>(d[~~g.id]=g)&&d,{})),a=e.computed(()=>r.value.length),u=e.ref(null),h=e.ref(!1),f=e.ref({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),p=e.ref({splitter:null,timeoutId:null}),E=e.computed(()=>({[`splitpanes splitpanes--${i.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":f.value.dragging})),N=()=>{document.addEventListener("mousemove",y,{passive:!1}),document.addEventListener("mouseup",_),"ontouchstart"in window&&(document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",_))},L=()=>{document.removeEventListener("mousemove",y,{passive:!1}),document.removeEventListener("mouseup",_),"ontouchstart"in window&&(document.removeEventListener("touchmove",y,{passive:!1}),document.removeEventListener("touchend",_))},T=(d,g)=>{const S=d.target.closest(".splitpanes__splitter");if(S){const{left:b,top:k}=S.getBoundingClientRect(),{clientX:z,clientY:P}="ontouchstart"in window&&d.touches?d.touches[0]:d;f.value.cursorOffset=i.horizontal?P-k:z-b}N(),f.value.mouseDown=!0,f.value.activeSplitter=g},y=d=>{f.value.mouseDown&&(d.preventDefault(),f.value.dragging=!0,requestAnimationFrame(()=>{C(W(d)),Q("resize",{event:d},!0)}))},_=d=>{f.value.dragging&&Q("resized",{event:d},!0),f.value.mouseDown=!1,f.value.activeSplitter=null,setTimeout(()=>{f.value.dragging=!1,L()},100)},O=(d,g)=>{"ontouchstart"in window&&(d.preventDefault(),p.value.splitter===g?(clearTimeout(p.value.timeoutId),p.value.timeoutId=null,$(d,g),p.value.splitter=null):(p.value.splitter=g,p.value.timeoutId=setTimeout(()=>p.value.splitter=null,500))),f.value.dragging||Q("splitter-click",{event:d,index:g},!0)},$=(d,g)=>{if(Q("splitter-dblclick",{event:d,index:g},!0),i.maximizePanes){let S=0;r.value=r.value.map((b,k)=>(b.size=k===g?b.max:b.min,k!==g&&(S+=b.min),b)),r.value[g].size-=S,Q("pane-maximize",{event:d,index:g,pane:r.value[g]}),Q("resized",{event:d,index:g},!0)}},F=(d,g)=>{Q("pane-click",{event:d,index:s.value[g].index,pane:s.value[g]})},W=d=>{const g=u.value.getBoundingClientRect(),{clientX:S,clientY:b}="ontouchstart"in window&&d.touches?d.touches[0]:d;return{x:S-(i.horizontal?0:f.value.cursorOffset)-g.left,y:b-(i.horizontal?f.value.cursorOffset:0)-g.top}},w=d=>{d=d[i.horizontal?"y":"x"];const g=u.value[i.horizontal?"clientHeight":"clientWidth"];return i.rtl&&!i.horizontal&&(d=g-d),d*100/g},C=d=>{const g=f.value.activeSplitter;let S={prevPanesSize:R(g),nextPanesSize:q(g),prevReachedMinPanes:0,nextReachedMinPanes:0};const b=0+(i.pushOtherPanes?0:S.prevPanesSize),k=100-(i.pushOtherPanes?0:S.nextPanesSize),z=Math.max(Math.min(w(d),k),b);let P=[g,g+1],U=r.value[P[0]]||null,M=r.value[P[1]]||null;const ne=U.max<100&&z>=U.max+S.prevPanesSize,we=M.max<100&&z<=100-(M.max+q(g+1));if(ne||we){ne?(U.size=U.max,M.size=Math.max(100-U.max-S.prevPanesSize-S.nextPanesSize,0)):(U.size=Math.max(100-M.max-S.prevPanesSize-q(g+1),0),M.size=M.max);return}if(i.pushOtherPanes){const J=I(S,z);if(!J)return;({sums:S,panesToResize:P}=J),U=r.value[P[0]]||null,M=r.value[P[1]]||null}U!==null&&(U.size=Math.min(Math.max(z-S.prevPanesSize-S.prevReachedMinPanes,U.min),U.max)),M!==null&&(M.size=Math.min(Math.max(100-z-S.nextPanesSize-S.nextReachedMinPanes,M.min),M.max))},I=(d,g)=>{const S=f.value.activeSplitter,b=[S,S+1];return g<d.prevPanesSize+r.value[b[0]].min&&(b[0]=Ve(S).index,d.prevReachedMinPanes=0,b[0]<S&&r.value.forEach((k,z)=>{z>b[0]&&z<=S&&(k.size=k.min,d.prevReachedMinPanes+=k.min)}),d.prevPanesSize=R(b[0]),b[0]===void 0)?(d.prevReachedMinPanes=0,r.value[0].size=r.value[0].min,r.value.forEach((k,z)=>{z>0&&z<=S&&(k.size=k.min,d.prevReachedMinPanes+=k.min)}),r.value[b[1]].size=100-d.prevReachedMinPanes-r.value[0].min-d.prevPanesSize-d.nextPanesSize,null):g>100-d.nextPanesSize-r.value[b[1]].min&&(b[1]=G(S).index,d.nextReachedMinPanes=0,b[1]>S+1&&r.value.forEach((k,z)=>{z>S&&z<b[1]&&(k.size=k.min,d.nextReachedMinPanes+=k.min)}),d.nextPanesSize=q(b[1]-1),b[1]===void 0)?(d.nextReachedMinPanes=0,r.value.forEach((k,z)=>{z<a.value-1&&z>=S+1&&(k.size=k.min,d.nextReachedMinPanes+=k.min)}),r.value[b[0]].size=100-d.prevPanesSize-q(b[0]-1),null):{sums:d,panesToResize:b}},R=d=>r.value.reduce((g,S,b)=>g+(b<d?S.size:0),0),q=d=>r.value.reduce((g,S,b)=>g+(b>d+1?S.size:0),0),Ve=d=>[...r.value].reverse().find(g=>g.index<d&&g.size>g.min)||{},G=d=>r.value.find(g=>g.index>d+1&&g.size>g.min)||{},ve=()=>{var d;const g=Array.from(((d=u.value)==null?void 0:d.children)||[]);for(const S of g){const b=S.classList.contains("splitpanes__pane"),k=S.classList.contains("splitpanes__splitter");!b&&!k&&(S.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},H=(d,g,S=!1)=>{const b=d-1,k=document.createElement("div");k.classList.add("splitpanes__splitter"),S||(k.onmousedown=z=>T(z,b),typeof window<"u"&&"ontouchstart"in window&&(k.ontouchstart=z=>T(z,b)),k.onclick=z=>O(z,b+1)),k.ondblclick=z=>$(z,b+1),g.parentNode.insertBefore(k,g)},K=d=>{d.onmousedown=void 0,d.onclick=void 0,d.ondblclick=void 0,d.remove()},ee=()=>{var d;const g=Array.from(((d=u.value)==null?void 0:d.children)||[]);for(const b of g)b.className.includes("splitpanes__splitter")&&K(b);let S=0;for(const b of g)b.className.includes("splitpanes__pane")&&(!S&&i.firstSplitter?H(S,b,!0):S&&H(S,b),S++)},se=({uid:d,...g})=>{const S=s.value[d];for(const[b,k]of Object.entries(g))S[b]=k},ge=d=>{var g;let S=-1;Array.from(((g=u.value)==null?void 0:g.children)||[]).some(b=>(b.className.includes("splitpanes__pane")&&S++,b.isSameNode(d.el))),r.value.splice(S,0,{...d,index:S}),r.value.forEach((b,k)=>b.index=k),h.value&&e.nextTick(()=>{ee(),Y({addedPane:r.value[S]}),Q("pane-add",{pane:r.value[S]})})},be=d=>{const g=r.value.findIndex(b=>b.id===d);r.value[g].el=null;const S=r.value.splice(g,1)[0];r.value.forEach((b,k)=>b.index=k),e.nextTick(()=>{ee(),Q("pane-remove",{pane:S}),Y({removedPane:{...S}})})},Y=(d={})=>{!d.addedPane&&!d.removedPane?ye():r.value.some(g=>g.givenSize!==null||g.min||g.max<100)?ke(d):X(),h.value&&Q("resized")},X=()=>{const d=100/a.value;let g=0;const S=[],b=[];for(const k of r.value)k.size=Math.max(Math.min(d,k.max),k.min),g-=k.size,k.size>=k.max&&S.push(k.id),k.size<=k.min&&b.push(k.id);g>.1&&re(g,S,b)},ye=()=>{let d=100;const g=[],S=[];let b=0;for(const z of r.value)d-=z.size,z.givenSize!==null&&b++,z.size>=z.max&&g.push(z.id),z.size<=z.min&&S.push(z.id);let k=100;if(d>.1){for(const z of r.value)z.givenSize===null&&(z.size=Math.max(Math.min(d/(a.value-b),z.max),z.min)),k-=z.size;k>.1&&re(k,g,S)}},ke=({addedPane:d,removedPane:g}={})=>{let S=100/a.value,b=0;const k=[],z=[];((d==null?void 0:d.givenSize)??null)!==null&&(S=(100-d.givenSize)/(a.value-1));for(const P of r.value)b-=P.size,P.size>=P.max&&k.push(P.id),P.size<=P.min&&z.push(P.id);if(!(Math.abs(b)<.1)){for(const P of r.value)(d==null?void 0:d.givenSize)!==null&&(d==null?void 0:d.id)===P.id||(P.size=Math.max(Math.min(S,P.max),P.min)),b-=P.size,P.size>=P.max&&k.push(P.id),P.size<=P.min&&z.push(P.id);b>.1&&re(b,k,z)}},re=(d,g,S)=>{let b;d>0?b=d/(a.value-g.length):b=d/(a.value-S.length),r.value.forEach((k,z)=>{if(d>0&&!g.includes(k.id)){const P=Math.max(Math.min(k.size+b,k.max),k.min),U=P-k.size;d-=U,k.size=P}else if(!S.includes(k.id)){const P=Math.max(Math.min(k.size+b,k.max),k.min),U=P-k.size;d-=U,k.size=P}}),Math.abs(d)>.1&&e.nextTick(()=>{h.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Q=(d,g=void 0,S=!1)=>{const b=(g==null?void 0:g.index)??f.value.activeSplitter??null;o(d,{...g,...b!==null&&{index:b},...S&&b!==null&&{prevPane:r.value[b-(i.firstSplitter?1:0)],nextPane:r.value[b+(i.firstSplitter?0:1)]},panes:r.value.map(k=>({min:k.min,max:k.max,size:k.size}))})};e.watch(()=>i.firstSplitter,()=>ee()),e.onMounted(()=>{ve(),ee(),Y(),Q("ready"),h.value=!0}),e.onBeforeUnmount(()=>h.value=!1);const Oe=()=>{var d;return e.h("div",{ref:u,class:E.value},(d=n.default)==null?void 0:d.call(n))};return e.provide("panes",r),e.provide("indexedPanes",s),e.provide("horizontal",e.computed(()=>i.horizontal)),e.provide("requestUpdate",se),e.provide("onPaneAdd",ge),e.provide("onPaneRemove",be),e.provide("onPaneClick",F),(d,g)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Oe)))}},Ae={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){var l;const o=t,i=e.inject("requestUpdate"),n=e.inject("onPaneAdd"),r=e.inject("horizontal"),s=e.inject("onPaneRemove"),a=e.inject("onPaneClick"),u=(l=e.getCurrentInstance())==null?void 0:l.uid,h=e.inject("indexedPanes"),f=e.computed(()=>h.value[u]),p=e.ref(null),E=e.computed(()=>{const y=isNaN(o.size)||o.size===void 0?0:parseFloat(o.size);return Math.max(Math.min(y,L.value),N.value)}),N=e.computed(()=>{const y=parseFloat(o.minSize);return isNaN(y)?0:y}),L=e.computed(()=>{const y=parseFloat(o.maxSize);return isNaN(y)?100:y}),T=e.computed(()=>{var y;return`${r.value?"height":"width"}: ${(y=f.value)==null?void 0:y.size}%`});return e.watch(()=>E.value,y=>i({uid:u,size:y})),e.watch(()=>N.value,y=>i({uid:u,min:y})),e.watch(()=>L.value,y=>i({uid:u,max:y})),e.onMounted(()=>{n({id:u,el:p.value,min:N.value,max:L.value,givenSize:o.size===void 0?null:E.value,size:E.value})}),e.onBeforeUnmount(()=>s(u)),(y,_)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"paneEl",ref:p,class:"splitpanes__pane",onClick:_[0]||(_[0]=O=>e.unref(a)(O,y._.uid)),style:e.normalizeStyle(T.value)},[e.renderSlot(y.$slots,"default")],4))}},fe=/^[a-z0-9]+(-[a-z0-9]+)*$/,Pe=(t,l,o,i="")=>{const n=t.split(":");if(t.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const a=n.pop(),u=n.pop(),h={provider:n.length>0?n[0]:i,prefix:u,name:a};return l&&!ze(h)?null:h}const r=n[0],s=r.split("-");if(s.length>1){const a={provider:i,prefix:s.shift(),name:s.join("-")};return l&&!ze(a)?null:a}if(o&&i===""){const a={provider:i,prefix:"",name:r};return l&&!ze(a,o)?null:a}return null},ze=(t,l)=>t?!!((t.provider===""||t.provider.match(fe))&&(l&&t.prefix===""||t.prefix.match(fe))&&t.name.match(fe)):!1,Vt=Object.freeze({left:0,top:0,width:16,height:16}),Te=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_e=Object.freeze({...Vt,...Te}),qe=Object.freeze({..._e,body:"",hidden:!1});function ro(t,l){const o={};!t.hFlip!=!l.hFlip&&(o.hFlip=!0),!t.vFlip!=!l.vFlip&&(o.vFlip=!0);const i=((t.rotate||0)+(l.rotate||0))%4;return i&&(o.rotate=i),o}function pt(t,l){const o=ro(t,l);for(const i in qe)i in Te?i in t&&!(i in o)&&(o[i]=Te[i]):i in l?o[i]=l[i]:i in t&&(o[i]=t[i]);return o}function ao(t,l){const o=t.icons,i=t.aliases||Object.create(null),n=Object.create(null);function r(s){if(o[s])return n[s]=[];if(!(s in n)){n[s]=null;const a=i[s]&&i[s].parent,u=a&&r(a);u&&(n[s]=[a].concat(u))}return n[s]}return Object.keys(o).concat(Object.keys(i)).forEach(r),n}function so(t,l,o){const i=t.icons,n=t.aliases||Object.create(null);let r={};function s(a){r=pt(i[a]||n[a],r)}return s(l),o.forEach(s),pt(t,r)}function Ot(t,l){const o=[];if(typeof t!="object"||typeof t.icons!="object")return o;t.not_found instanceof Array&&t.not_found.forEach(n=>{l(n,null),o.push(n)});const i=ao(t);for(const n in i){const r=i[n];r&&(l(n,so(t,n,r)),o.push(n))}return o}const co={provider:"",aliases:{},not_found:{},...Vt};function We(t,l){for(const o in l)if(o in t&&typeof t[o]!=typeof l[o])return!1;return!0}function $t(t){if(typeof t!="object"||t===null)return null;const l=t;if(typeof l.prefix!="string"||!t.icons||typeof t.icons!="object"||!We(t,co))return null;const o=l.icons;for(const n in o){const r=o[n];if(!n.match(fe)||typeof r.body!="string"||!We(r,qe))return null}const i=l.aliases||Object.create(null);for(const n in i){const r=i[n],s=r.parent;if(!n.match(fe)||typeof s!="string"||!o[s]&&!i[s]||!We(r,qe))return null}return l}const vt=Object.create(null);function uo(t,l){return{provider:t,prefix:l,icons:Object.create(null),missing:new Set}}function ie(t,l){const o=vt[t]||(vt[t]=Object.create(null));return o[l]||(o[l]=uo(t,l))}function Ye(t,l){return $t(l)?Ot(l,(o,i)=>{i?t.icons[o]=i:t.missing.add(o)}):[]}function fo(t,l,o){try{if(typeof o.body=="string")return t.icons[l]={...o},!0}catch{}return!1}let he=!1;function Rt(t){return typeof t=="boolean"&&(he=t),he}function ho(t){const l=typeof t=="string"?Pe(t,!0,he):t;if(l){const o=ie(l.provider,l.prefix),i=l.name;return o.icons[i]||(o.missing.has(i)?null:void 0)}}function mo(t,l){const o=Pe(t,!0,he);if(!o)return!1;const i=ie(o.provider,o.prefix);return fo(i,o.name,l)}function po(t,l){if(typeof t!="object")return!1;if(typeof l!="string"&&(l=t.provider||""),he&&!l&&!t.prefix){let n=!1;return $t(t)&&(t.prefix="",Ot(t,(r,s)=>{s&&mo(r,s)&&(n=!0)})),n}const o=t.prefix;if(!ze({provider:l,prefix:o,name:"a"}))return!1;const i=ie(l,o);return!!Ye(i,t)}const Dt=Object.freeze({width:null,height:null}),At=Object.freeze({...Dt,...Te}),vo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,go=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function gt(t,l,o){if(l===1)return t;if(o=o||100,typeof t=="number")return Math.ceil(t*l*o)/o;if(typeof t!="string")return t;const i=t.split(vo);if(i===null||!i.length)return t;const n=[];let r=i.shift(),s=go.test(r);for(;;){if(s){const a=parseFloat(r);isNaN(a)?n.push(r):n.push(Math.ceil(a*l*o)/o)}else n.push(r);if(r=i.shift(),r===void 0)return n.join("");s=!s}}function bo(t,l="defs"){let o="";const i=t.indexOf("<"+l);for(;i>=0;){const n=t.indexOf(">",i),r=t.indexOf("</"+l);if(n===-1||r===-1)break;const s=t.indexOf(">",r);if(s===-1)break;o+=t.slice(n+1,r).trim(),t=t.slice(0,i).trim()+t.slice(s+1)}return{defs:o,content:t}}function yo(t,l){return t?"<defs>"+t+"</defs>"+l:l}function ko(t,l,o){const i=bo(t);return yo(i.defs,l+i.content+o)}const wo=t=>t==="unset"||t==="undefined"||t==="none";function Co(t,l){const o={..._e,...t},i={...At,...l},n={left:o.left,top:o.top,width:o.width,height:o.height};let r=o.body;[o,i].forEach(T=>{const y=[],_=T.hFlip,O=T.vFlip;let $=T.rotate;_?O?$+=2:(y.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),y.push("scale(-1 1)"),n.top=n.left=0):O&&(y.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),y.push("scale(1 -1)"),n.top=n.left=0);let F;switch($<0&&($-=Math.floor($/4)*4),$=$%4,$){case 1:F=n.height/2+n.top,y.unshift("rotate(90 "+F.toString()+" "+F.toString()+")");break;case 2:y.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:F=n.width/2+n.left,y.unshift("rotate(-90 "+F.toString()+" "+F.toString()+")");break}$%2===1&&(n.left!==n.top&&(F=n.left,n.left=n.top,n.top=F),n.width!==n.height&&(F=n.width,n.width=n.height,n.height=F)),y.length&&(r=ko(r,'<g transform="'+y.join(" ")+'">',"</g>"))});const s=i.width,a=i.height,u=n.width,h=n.height;let f,p;s===null?(p=a===null?"1em":a==="auto"?h:a,f=gt(p,u/h)):(f=s==="auto"?u:s,p=a===null?gt(f,h/u):a==="auto"?h:a);const E={},N=(T,y)=>{wo(y)||(E[T]=y.toString())};N("width",f),N("height",p);const L=[n.left,n.top,u,h];return E.viewBox=L.join(" "),{attributes:E,viewBox:L,body:r}}const xo=/\sid="(\S+)"/g,So="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Eo=0;function zo(t,l=So){const o=[];let i;for(;i=xo.exec(t);)o.push(i[1]);if(!o.length)return t;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(r=>{const s=typeof l=="function"?l(r):l+(Eo++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+n+"$3")}),t=t.replace(new RegExp(n,"g"),""),t}const je=Object.create(null);function Bo(t,l){je[t]=l}function Ue(t){return je[t]||je[""]}function Je(t){let l;if(typeof t.resources=="string")l=[t.resources];else if(l=t.resources,!(l instanceof Array)||!l.length)return null;return{resources:l,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const Ze=Object.create(null),ue=["https://api.simplesvg.com","https://api.unisvg.com"],Be=[];for(;ue.length>0;)ue.length===1||Math.random()>.5?Be.push(ue.shift()):Be.push(ue.pop());Ze[""]=Je({resources:["https://api.iconify.design"].concat(Be)});function No(t,l){const o=Je(l);return o===null?!1:(Ze[t]=o,!0)}function et(t){return Ze[t]}const Lo=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let bt=Lo();function Mo(t,l){const o=et(t);if(!o)return 0;let i;if(!o.maxURL)i=0;else{let n=0;o.resources.forEach(s=>{n=Math.max(n,s.length)});const r=l+".json?icons=";i=o.maxURL-n-o.path.length-r.length}return i}function Fo(t){return t===404}const To=(t,l,o)=>{const i=[],n=Mo(t,l),r="icons";let s={type:r,provider:t,prefix:l,icons:[]},a=0;return o.forEach((u,h)=>{a+=u.length+1,a>=n&&h>0&&(i.push(s),s={type:r,provider:t,prefix:l,icons:[]},a=u.length),s.icons.push(u)}),i.push(s),i};function Po(t){if(typeof t=="string"){const l=et(t);if(l)return l.path}return"/"}const _o=(t,l,o)=>{if(!bt){o("abort",424);return}let i=Po(l.provider);switch(l.type){case"icons":{const r=l.prefix,a=l.icons.join(","),u=new URLSearchParams({icons:a});i+=r+".json?"+u.toString();break}case"custom":{const r=l.uri;i+=r.slice(0,1)==="/"?r.slice(1):r;break}default:o("abort",400);return}let n=503;bt(t+i).then(r=>{const s=r.status;if(s!==200){setTimeout(()=>{o(Fo(s)?"abort":"next",s)});return}return n=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?o("abort",r):o("next",n)});return}setTimeout(()=>{o("success",r)})}).catch(()=>{o("next",n)})},Io={prepare:To,send:_o};function Vo(t){const l={loaded:[],missing:[],pending:[]},o=Object.create(null);t.sort((n,r)=>n.provider!==r.provider?n.provider.localeCompare(r.provider):n.prefix!==r.prefix?n.prefix.localeCompare(r.prefix):n.name.localeCompare(r.name));let i={provider:"",prefix:"",name:""};return t.forEach(n=>{if(i.name===n.name&&i.prefix===n.prefix&&i.provider===n.provider)return;i=n;const r=n.provider,s=n.prefix,a=n.name,u=o[r]||(o[r]=Object.create(null)),h=u[s]||(u[s]=ie(r,s));let f;a in h.icons?f=l.loaded:s===""||h.missing.has(a)?f=l.missing:f=l.pending;const p={provider:r,prefix:s,name:a};f.push(p)}),l}function Wt(t,l){t.forEach(o=>{const i=o.loaderCallbacks;i&&(o.loaderCallbacks=i.filter(n=>n.id!==l))})}function Oo(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const l=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!l.length)return;let o=!1;const i=t.provider,n=t.prefix;l.forEach(r=>{const s=r.icons,a=s.pending.length;s.pending=s.pending.filter(u=>{if(u.prefix!==n)return!0;const h=u.name;if(t.icons[h])s.loaded.push({provider:i,prefix:n,name:h});else if(t.missing.has(h))s.missing.push({provider:i,prefix:n,name:h});else return o=!0,!0;return!1}),s.pending.length!==a&&(o||Wt([t],r.id),r.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),r.abort))})}))}let $o=0;function Ro(t,l,o){const i=$o++,n=Wt.bind(null,o,i);if(!l.pending.length)return n;const r={id:i,icons:l,callback:t,abort:n};return o.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(r)}),n}function Do(t,l=!0,o=!1){const i=[];return t.forEach(n=>{const r=typeof n=="string"?Pe(n,l,o):n;r&&i.push(r)}),i}var Ao={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Wo(t,l,o,i){const n=t.resources.length,r=t.random?Math.floor(Math.random()*n):t.index;let s;if(t.random){let w=t.resources.slice(0);for(s=[];w.length>1;){const C=Math.floor(Math.random()*w.length);s.push(w[C]),w=w.slice(0,C).concat(w.slice(C+1))}s=s.concat(w)}else s=t.resources.slice(r).concat(t.resources.slice(0,r));const a=Date.now();let u="pending",h=0,f,p=null,E=[],N=[];typeof i=="function"&&N.push(i);function L(){p&&(clearTimeout(p),p=null)}function T(){u==="pending"&&(u="aborted"),L(),E.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),E=[]}function y(w,C){C&&(N=[]),typeof w=="function"&&N.push(w)}function _(){return{startTime:a,payload:l,status:u,queriesSent:h,queriesPending:E.length,subscribe:y,abort:T}}function O(){u="failed",N.forEach(w=>{w(void 0,f)})}function $(){E.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),E=[]}function F(w,C,I){const R=C!=="success";switch(E=E.filter(q=>q!==w),u){case"pending":break;case"failed":if(R||!t.dataAfterTimeout)return;break;default:return}if(C==="abort"){f=I,O();return}if(R){f=I,E.length||(s.length?W():O());return}if(L(),$(),!t.random){const q=t.resources.indexOf(w.resource);q!==-1&&q!==t.index&&(t.index=q)}u="completed",N.forEach(q=>{q(I)})}function W(){if(u!=="pending")return;L();const w=s.shift();if(w===void 0){if(E.length){p=setTimeout(()=>{L(),u==="pending"&&($(),O())},t.timeout);return}O();return}const C={status:"pending",resource:w,callback:(I,R)=>{F(C,I,R)}};E.push(C),h++,p=setTimeout(W,t.rotate),o(w,l,C.callback)}return setTimeout(W),_}function Ht(t){const l={...Ao,...t};let o=[];function i(){o=o.filter(a=>a().status==="pending")}function n(a,u,h){const f=Wo(l,a,u,(p,E)=>{i(),h&&h(p,E)});return o.push(f),f}function r(a){return o.find(u=>a(u))||null}return{query:n,find:r,setIndex:a=>{l.index=a},getIndex:()=>l.index,cleanup:i}}function yt(){}const He=Object.create(null);function Ho(t){if(!He[t]){const l=et(t);if(!l)return;const o=Ht(l),i={config:l,redundancy:o};He[t]=i}return He[t]}function qo(t,l,o){let i,n;if(typeof t=="string"){const r=Ue(t);if(!r)return o(void 0,424),yt;n=r.send;const s=Ho(t);s&&(i=s.redundancy)}else{const r=Je(t);if(r){i=Ht(r);const s=t.resources?t.resources[0]:"",a=Ue(s);a&&(n=a.send)}}return!i||!n?(o(void 0,424),yt):i.query(l,n,o)().abort}const kt="iconify2",me="iconify",qt=me+"-count",wt=me+"-version",jt=36e5,jo=168,Uo=50;function Ge(t,l){try{return t.getItem(l)}catch{}}function tt(t,l,o){try{return t.setItem(l,o),!0}catch{}}function Ct(t,l){try{t.removeItem(l)}catch{}}function Qe(t,l){return tt(t,qt,l.toString())}function Ke(t){return parseInt(Ge(t,qt))||0}const Ie={local:!0,session:!0},Ut={local:new Set,session:new Set};let nt=!1;function Go(t){nt=t}let Ee=typeof window>"u"?{}:window;function Gt(t){const l=t+"Storage";try{if(Ee&&Ee[l]&&typeof Ee[l].length=="number")return Ee[l]}catch{}Ie[t]=!1}function Qt(t,l){const o=Gt(t);if(!o)return;const i=Ge(o,wt);if(i!==kt){if(i){const a=Ke(o);for(let u=0;u<a;u++)Ct(o,me+u.toString())}tt(o,wt,kt),Qe(o,0);return}const n=Math.floor(Date.now()/jt)-jo,r=a=>{const u=me+a.toString(),h=Ge(o,u);if(typeof h=="string"){try{const f=JSON.parse(h);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>n&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&l(f,a))return!0}catch{}Ct(o,u)}};let s=Ke(o);for(let a=s-1;a>=0;a--)r(a)||(a===s-1?(s--,Qe(o,s)):Ut[t].add(a))}function Kt(){if(!nt){Go(!0);for(const t in Ie)Qt(t,l=>{const o=l.data,i=l.provider,n=o.prefix,r=ie(i,n);if(!Ye(r,o).length)return!1;const s=o.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,s):s,!0})}}function Qo(t,l){const o=t.lastModifiedCached;if(o&&o>=l)return o===l;if(t.lastModifiedCached=l,o)for(const i in Ie)Qt(i,n=>{const r=n.data;return n.provider!==t.provider||r.prefix!==t.prefix||r.lastModified===l});return!0}function Ko(t,l){nt||Kt();function o(i){let n;if(!Ie[i]||!(n=Gt(i)))return;const r=Ut[i];let s;if(r.size)r.delete(s=Array.from(r).shift());else if(s=Ke(n),s>=Uo||!Qe(n,s+1))return;const a={cached:Math.floor(Date.now()/jt),provider:t.provider,data:l};return tt(n,me+s.toString(),JSON.stringify(a))}l.lastModified&&!Qo(t,l.lastModified)||Object.keys(l.icons).length&&(l.not_found&&(l=Object.assign({},l),delete l.not_found),o("local")||o("session"))}function xt(){}function Xo(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Oo(t)}))}function Yo(t,l){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(l).sort():t.iconsToLoad=l,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:o,prefix:i}=t,n=t.iconsToLoad;delete t.iconsToLoad;let r;if(!n||!(r=Ue(o)))return;r.prepare(o,i,n).forEach(a=>{qo(o,a,u=>{if(typeof u!="object")a.icons.forEach(h=>{t.missing.add(h)});else try{const h=Ye(t,u);if(!h.length)return;const f=t.pendingIcons;f&&h.forEach(p=>{f.delete(p)}),Ko(t,u)}catch(h){console.error(h)}Xo(t)})})}))}const Jo=(t,l)=>{const o=Do(t,!0,Rt()),i=Vo(o);if(!i.pending.length){let u=!0;return l&&setTimeout(()=>{u&&l(i.loaded,i.missing,i.pending,xt)}),()=>{u=!1}}const n=Object.create(null),r=[];let s,a;return i.pending.forEach(u=>{const{provider:h,prefix:f}=u;if(f===a&&h===s)return;s=h,a=f,r.push(ie(h,f));const p=n[h]||(n[h]=Object.create(null));p[f]||(p[f]=[])}),i.pending.forEach(u=>{const{provider:h,prefix:f,name:p}=u,E=ie(h,f),N=E.pendingIcons||(E.pendingIcons=new Set);N.has(p)||(N.add(p),n[h][f].push(p))}),r.forEach(u=>{const{provider:h,prefix:f}=u;n[h][f].length&&Yo(u,n[h][f])}),l?Ro(l,i,r):xt};function Zo(t,l){const o={...t};for(const i in l){const n=l[i],r=typeof n;i in Dt?(n===null||n&&(r==="string"||r==="number"))&&(o[i]=n):r===typeof o[i]&&(o[i]=i==="rotate"?n%4:n)}return o}const el=/[\s,]+/;function tl(t,l){l.split(el).forEach(o=>{switch(o.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function nl(t,l=0){const o=t.replace(/^-?[0-9.]*/,"");function i(n){for(;n<0;)n+=4;return n%4}if(o===""){const n=parseInt(t);return isNaN(n)?0:i(n)}else if(o!==t){let n=0;switch(o){case"%":n=25;break;case"deg":n=90}if(n){let r=parseFloat(t.slice(0,t.length-o.length));return isNaN(r)?0:(r=r/n,r%1===0?i(r):0)}}return l}function ol(t,l){let o=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in l)o+=" "+i+'="'+l[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}function ll(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function il(t){return"data:image/svg+xml,"+ll(t)}function rl(t){return'url("'+il(t)+'")'}const St={...At,inline:!1},al={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},sl={display:"inline-block"},Xe={backgroundColor:"currentColor"},Xt={backgroundColor:"transparent"},Et={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},zt={webkitMask:Xe,mask:Xe,background:Xt};for(const t in zt){const l=zt[t];for(const o in Et)l[t+o]=Et[o]}const Ne={};["horizontal","vertical"].forEach(t=>{const l=t.slice(0,1)+"Flip";Ne[t+"-flip"]=l,Ne[t.slice(0,1)+"-flip"]=l,Ne[t+"Flip"]=l});function Bt(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const Nt=(t,l)=>{const o=Zo(St,l),i={...al},n=l.mode||"svg",r={},s=l.style,a=typeof s=="object"&&!(s instanceof Array)?s:{};for(let T in l){const y=l[T];if(y!==void 0)switch(T){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[T]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&tl(o,y);break;case"color":r.color=y;break;case"rotate":typeof y=="string"?o[T]=nl(y):typeof y=="number"&&(o[T]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete i["aria-hidden"];break;default:{const _=Ne[T];_?(y===!0||y==="true"||y===1)&&(o[_]=!0):St[T]===void 0&&(i[T]=y)}}}const u=Co(t,o),h=u.attributes;if(o.inline&&(r.verticalAlign="-0.125em"),n==="svg"){i.style={...r,...a},Object.assign(i,h);let T=0,y=l.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),i.innerHTML=zo(u.body,y?()=>y+"ID"+T++:"iconifyVue"),e.h("svg",i)}const{body:f,width:p,height:E}=t,N=n==="mask"||(n==="bg"?!1:f.indexOf("currentColor")!==-1),L=ol(f,{...h,width:p+"",height:E+""});return i.style={...r,"--svg":rl(L),width:Bt(h.width),height:Bt(h.height),...sl,...N?Xe:Xt,...a},e.h("span",i)};Rt(!0);Bo("",Io);if(typeof document<"u"&&typeof window<"u"){Kt();const t=window;if(t.IconifyPreload!==void 0){const l=t.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof l=="object"&&l!==null&&(l instanceof Array?l:[l]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!po(i))&&console.error(o)}catch{console.error(o)}})}if(t.IconifyProviders!==void 0){const l=t.IconifyProviders;if(typeof l=="object"&&l!==null)for(let o in l){const i="IconifyProviders["+o+"] is invalid.";try{const n=l[o];if(typeof n!="object"||!n||n.resources===void 0)continue;No(o,n)||console.error(i)}catch{console.error(i)}}}}const cl={..._e,body:""},te=e.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,l){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let o;if(typeof t!="string"||(o=Pe(t,!1,!0))===null)return this.abortLoading(),null;const i=ho(o);if(!i)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",i!==null&&(this._loadingIcon={name:t,abort:Jo([o],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,l&&l(t));const n=["iconify"];return o.prefix!==""&&n.push("iconify--"+o.prefix),o.provider!==""&&n.push("iconify--"+o.provider),{data:i,classes:n}}},render(){this.counter;const t=this.$attrs,l=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad):null;if(!l)return Nt(cl,t);let o=t;return l.classes&&(o={...t,class:(typeof t.class=="string"?t.class+" ":"")+l.classes.join(" ")}),Nt({..._e,...l.data},o)}}),ul={name:"buttonExpand"},dl=e.defineComponent({...ul,props:{item:{default:[]},expandedrows:{default:()=>[]},expandall:{type:Boolean,default:!1}},setup(t){const l=t,o=e.toRef(l,"expandedrows"),i=e.ref(!1);function n(s){if(l.expandall)i.value=!i.value,o.value.forEach(a=>{a.isExpanded=i.value});else{const a=o.value.find(u=>u.id==s);a?a.isExpanded=!a.isExpanded:o.value.push({id:s,isExpanded:!0})}}const r=e.ref(-1);return e.watch(()=>o.value,(s,a)=>{var u;new Set(o.value.map(h=>h.isExpanded)).size>1?(r.value=-1,i.value=!0):(u=o.value.at(0))!=null&&u.isExpanded?(r.value=0,i.value=!0):(r.value=1,i.value=!1)},{deep:!0}),(s,a)=>{var u,h;return e.openBlock(),e.createElementBlock("button",{class:"expandbtn",onClick:a[0]||(a[0]=f=>n(s.item.id))},[(((u=o.value.find(f=>f.id==s.item.id))==null?void 0:u.isExpanded)==null?i.value:(h=o.value.find(f=>f.id==s.item.id))!=null&&h.isExpanded)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.expandall?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[r.value?(e.openBlock(),e.createBlock(e.unref(te),{key:0,icon:"fluent:chevron-down-up-16-filled"})):(e.openBlock(),e.createBlock(e.unref(te),{key:1,icon:"mdi:chevron-down"}))],64)):(e.openBlock(),e.createBlock(e.unref(te),{key:1,icon:"mdi:chevron-down"}))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.expandall?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[r.value==-1?(e.openBlock(),e.createBlock(e.unref(te),{key:0,icon:"ion:chevron-expand"})):r.value==0?(e.openBlock(),e.createBlock(e.unref(te),{key:1,icon:"mdi:chevron-down"})):(e.openBlock(),e.createBlock(e.unref(te),{key:2,icon:"mdi:chevron-right"}))],64)):(e.openBlock(),e.createBlock(e.unref(te),{key:1,icon:"mdi:chevron-right"}))],64))])}}}),pe=(t,l)=>{const o=t.__vccOpts||t;for(const[i,n]of l)o[i]=n;return o},Yt=pe(dl,[["__scopeId","data-v-8bd9f848"]]),fl={name:"ButtonRightPanel"},hl=e.defineComponent({...fl,props:{item:{default:[]}},emits:["rightPanelClick"],setup(t,{emit:l}){const o=t,i=l;function n(){i("rightPanelClick",o.item)}return(r,s)=>(e.openBlock(),e.createElementBlock("button",{class:"rightpanelbtn",onClick:e.withModifiers(n,["stop"])},[e.createVNode(e.unref(te),{icon:"lucide:plus"})]))}}),ml=pe(hl,[["__scopeId","data-v-d739c6bf"]]),pl={class:"bh-filter-menu bh-absolute bh-z-[1] bh-bg-white bh-shadow-md bh-rounded-md bh-top-full bh-right-0 bh-w-32 bh-mt-1"},vl={name:"columnFilter"},gl=e.defineComponent({...vl,props:["column","columnFilterLang"],emits:["close","filterChange"],setup(t,{emit:l}){const o=t;e.onBeforeUnmount(()=>{document.removeEventListener("click",n)}),e.onMounted(()=>{document.addEventListener("click",n)});const i=l,n=()=>{i("close")},r=s=>{o.column.condition=s,s===""&&(o.column.value=""),i("filterChange",o.column)};return(s,a)=>(e.openBlock(),e.createElementBlock("div",pl,[e.createElementVNode("div",{class:"bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden",onClick:e.withModifiers(n,["stop"])},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition===""}),onClick:a[0]||(a[0]=u=>r(""))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NoFilter)??"No filter"),3),o.column.type==="string"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Contains"}),onClick:a[1]||(a[1]=u=>r("Contains"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Contains)??"Contains"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotContains"}),onClick:a[2]||(a[2]=u=>r("NotContains"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotContains)??"NotContains"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Equal"}),onClick:a[3]||(a[3]=u=>r("Equal"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Equal)??"Equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotEqual"}),onClick:a[4]||(a[4]=u=>r("NotEqual"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotEqual)??"NotEqual"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="StartsWith"}),onClick:a[5]||(a[5]=u=>r("StartsWith"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.StartsWith)??"StartsWith"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="EndsWith"}),onClick:a[6]||(a[6]=u=>r("EndsWith"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.EndsWith)??"EndsWith"),3)],64)):o.column.type==="number"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Equal"}),onClick:a[7]||(a[7]=u=>r("Equal"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Equal)??"Equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotEqual"}),onClick:a[8]||(a[8]=u=>r("NotEqual"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotEqual)??"NotEqual"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="GreaterThan"}),onClick:a[9]||(a[9]=u=>r("GreaterThan"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.GreaterThan)??"GreaterThan"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="GreaterThanOrEqual"}),onClick:a[10]||(a[10]=u=>r("GreaterThanOrEqual"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.GreaterThanOrEqual)??"GreaterThanOrEqual"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="LessThan"}),onClick:a[11]||(a[11]=u=>r("LessThan"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.LessThan)??"LessThan"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="LessThanOrEqual"}),onClick:a[12]||(a[12]=u=>r("LessThanOrEqual"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.LessThanOrEqual)??"LessThanOrEqual"),3)],64)):o.column.type==="date"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Equal"}),onClick:a[13]||(a[13]=u=>r("Equal"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Equal)??"Equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotEqual"}),onClick:a[14]||(a[14]=u=>r("NotEqual"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotEqual)??"Not equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="GreaterThan"}),onClick:a[15]||(a[15]=u=>r("GreaterThan"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.GreaterThan)??"GreaterThan"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="LessThan"}),onClick:a[16]||(a[16]=u=>r("LessThan"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.LessThan)??"LessThan"),3)],64)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="IsNull"}),onClick:a[17]||(a[17]=u=>r("IsNull"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.IsNull)??"IsNull"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="IsNotNull"}),onClick:a[18]||(a[18]=u=>r("IsNotNull"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.IsNotNull)??"IsNotNull"),3)])]))}}),bl={},yl={version:"1.1",viewBox:"0 0 17 12",xmlns:"http://www.w3.org/2000/svg"},kl=e.createElementVNode("g",{fill:"none","fill-rule":"evenodd"},[e.createElementVNode("g",{transform:"translate(-9 -11)",fill:"currentColor","fill-rule":"nonzero"},[e.createElementVNode("path",{d:"m25.576 11.414c0.56558 0.55188 0.56558 1.4439 0 1.9961l-9.404 9.176c-0.28213 0.27529-0.65247 0.41385-1.0228 0.41385-0.37034 0-0.74068-0.13855-1.0228-0.41385l-4.7019-4.588c-0.56584-0.55188-0.56584-1.4442 0-1.9961 0.56558-0.55214 1.4798-0.55214 2.0456 0l3.679 3.5899 8.3812-8.1779c0.56558-0.55214 1.4798-0.55214 2.0456 0z"})])],-1),wl=[kl];function Cl(t,l){return e.openBlock(),e.createElementBlock("svg",yl,wl)}const Jt=pe(bl,[["render",Cl]]),xl={},Sl={viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor","stroke-width":"3",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:"css-i6dzq1"},El=e.createElementVNode("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),zl=[El];function Bl(t,l){return e.openBlock(),e.createElementBlock("svg",Sl,zl)}const Nl=pe(xl,[["render",Bl]]),Ll={},Ml={viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor","stroke-width":"1.5",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:"css-i6dzq1"},Fl=e.createElementVNode("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"},null,-1),Tl=[Fl];function Pl(t,l){return e.openBlock(),e.createElementBlock("svg",Ml,Tl)}const _l=pe(Ll,[["render",Pl]]),Il={key:"hdrrow"},Vl={class:"bh-checkbox"},Ol=["onClick"],$l={width:"16",height:"16",viewBox:"0 0 14 14",fill:"none"},Rl={key:0,class:"bh-filter bh-relative"},Dl=["onUpdate:modelValue"],Al=["onUpdate:modelValue"],Wl=["onUpdate:modelValue"],Hl=["onUpdate:modelValue"],ql=e.createElementVNode("option",{value:void 0},"All",-1),jl=e.createElementVNode("option",{value:!0},"True",-1),Ul=e.createElementVNode("option",{value:!1},"False",-1),Gl=[ql,jl,Ul],Ql=["onClick"],Kl={name:"columnHeader"},Lt=e.defineComponent({...Kl,props:["all","expandedrows","currentSortColumn","currentSortDirection","isOpenFilter","isFooter","checkAll","columnFilterLang"],emits:["selectAll","sortChange","filterChange","toggleFilterMenu"],setup(t,{emit:l}){const o=e.ref(null),i=t,n=l,r=()=>{o.value&&(o.value.indeterminate=i.checkAll!==0?!i.checkAll:!1,o.value.checked=i.checkAll)};return e.watch(()=>i.checkAll,r),(s,a)=>(e.openBlock(),e.createElementBlock("tr",Il,[i.all.hasCheckbox?(e.openBlock(),e.createElementBlock("th",{key:"chkall",style:e.normalizeStyle({width:i.all.checkboxColumnWidth+" !important",minWidth:i.all.checkboxColumnWidth+" !important"}),class:e.normalizeClass({"bh-sticky bh-bg-blue-light bh-z-[1]":i.all.stickyHeader||i.all.stickyFirstColumn,"bh-top-0":i.all.stickyHeader,"bh-left-0":i.all.stickyFirstColumn})},[e.createElementVNode("div",Vl,[e.createElementVNode("input",{ref_key:"selectedAll",ref:o,type:"checkbox",onClick:a[0]||(a[0]=e.withModifiers(u=>{var h;return n("selectAll",(h=u==null?void 0:u.target)==null?void 0:h.checked)},["stop"]))},null,512),e.createElementVNode("div",null,[e.createVNode(Jt,{class:"check"}),e.createVNode(Nl,{class:"intermediate"})])])],6)):e.createCommentVNode("",!0),i.all.hasRightPanel?(e.openBlock(),e.createElementBlock("th",{key:1,style:e.normalizeStyle({width:i.all.rightPanelColumnWidth+" !important",minWidth:i.all.rightPanelColumnWidth+" !important"}),class:e.normalizeClass({"bh-sticky bh-bg-blue-light bh-z-[1]":i.all.stickyHeader||i.all.stickyFirstColumn,"bh-top-0":i.all.stickyHeader,"bh-left-0":i.all.stickyFirstColumn})},null,6)):e.createCommentVNode("",!0),i.all.hasSubtable?(e.openBlock(),e.createElementBlock("th",{key:2,style:e.normalizeStyle({width:i.all.subtableColumnWidth+" !important",minWidth:i.all.subtableColumnWidth+" !important"})},[i.all.expandall?(e.openBlock(),e.createBlock(Yt,{key:0,expandedrows:i.expandedrows,expandall:i.all.expandall},null,8,["expandedrows","expandall"])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.all.columns,(u,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[u.hide?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("th",{key:u.field,class:e.normalizeClass(["bh-select-none bh-z-[1]",[i.all.sortable&&u.sort?"bh-cursor-pointer":"",h===0&&i.all.stickyFirstColumn?"bh-sticky bh-left-0 bh-bg-blue-light":"",i.all.hasCheckbox&&h===0&&i.all.stickyFirstColumn?"bh-left-[52px]":""]]),style:e.normalizeStyle({width:u.width,"min-width":u.minWidth,"max-width":u.maxWidth})},[e.createElementVNode("div",{class:e.normalizeClass(["bh-flex bh-items-center",[u.headerClass?u.headerClass:""]]),onClick:f=>i.all.sortable&&u.sort&&n("sortChange",u.field)},[e.createTextVNode(e.toDisplayString(u.title)+" ",1),i.all.sortable&&u.sort?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["bh-ml-3 bh-sort bh-flex bh-items-center",[i.currentSortColumn,i.currentSortDirection]])},[(e.openBlock(),e.createElementBlock("svg",$l,[e.createElementVNode("polygon",{points:"3.11,6.25 10.89,6.25 7,1.75 ",fill:"currentColor",class:e.normalizeClass(["bh-text-black/20",[t.currentSortColumn===u.field&&t.currentSortDirection==="asc"?"!bh-text-primary":""]])},null,2),e.createElementVNode("polygon",{points:"7,12.25 10.89,7.75 3.11,7.75 ",fill:"currentColor",class:e.normalizeClass(["bh-text-black/20",[t.currentSortColumn===u.field&&t.currentSortDirection==="desc"?"!bh-text-primary":""]])},null,2)]))],2)):e.createCommentVNode("",!0)],10,Ol),i.all.columnFilter&&!i.isFooter?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[u.filter?(e.openBlock(),e.createElementBlock("div",Rl,[u.type==="string"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":f=>u.value=f,type:"text",class:"bh-form-control",onKeyup:a[1]||(a[1]=f=>n("filterChange"))},null,40,Dl)),[[e.vModelText,u.value,void 0,{trim:!0}]]):e.createCommentVNode("",!0),u.type==="number"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":f=>u.value=f,type:"number",class:"bh-form-control",onKeyup:a[2]||(a[2]=f=>n("filterChange"))},null,40,Al)),[[e.vModelText,u.value,void 0,{number:!0,trim:!0}]]):u.type==="date"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,"onUpdate:modelValue":f=>u.value=f,type:"date",class:"bh-form-control",onChange:a[3]||(a[3]=f=>n("filterChange"))},null,40,Wl)),[[e.vModelText,u.value]]):u.type==="bool"?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:3,"onUpdate:modelValue":f=>u.value=f,class:"bh-form-control",onChange:a[4]||(a[4]=f=>n("filterChange")),onClick:a[5]||(a[5]=(...f)=>i.isOpenFilter&&i.isOpenFilter(...f))},Gl,40,Hl)),[[e.vModelSelect,u.value]]):e.createCommentVNode("",!0),u.type!=="bool"?(e.openBlock(),e.createElementBlock("button",{key:4,type:"button",onClick:e.withModifiers(f=>n("toggleFilterMenu",u),["stop"])},[e.createVNode(_l,{class:"bh-w-4"})],8,Ql)):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(gl,{column:u,type:u.type,columnFilterLang:i.columnFilterLang,onClose:a[6]||(a[6]=f=>n("toggleFilterMenu",null)),onFilterChange:a[7]||(a[7]=f=>n("filterChange"))},null,8,["column","type","columnFilterLang"]),[[e.vShow,i.isOpenFilter===u.field]])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],6))],64))),256))]))}}),Xl={class:"bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal"},Yl={class:"bh-flex bh-h-full"},Jl=e.createElementVNode("span",null,"##Left Menu Slot##",-1),Zl={class:"menu-resize-controls bh-absolute bh-right-0 bh-top-1/2 bh-transform -bh-translate-y-1/2 bh-z-10 bh-bg-gray-100 bh-rounded-l bh-shadow-md bh-select-none"},ei=e.createElementVNode("path",{d:"M7 1L1 6L7 11",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),ti=[ei],ni={class:"bh-flex-1",style:{overflow:"auto","min-width":"0",width:"100%"}},oi=e.createElementVNode("span",null,"##Top Menu Slot##",-1),li=e.createElementVNode("span",null,"##Table Header Area Slot##",-1),ii=e.createElementVNode("span",null,"##Table Action Header Slot##",-1),ri=["onClick"],ai={class:"bh-checkbox"},si=["value"],ci=["innerHTML"],ui=["onClick"],di=["colspan"],fi=["colspan"],hi=e.createElementVNode("div",{class:"bh-skeleton-box bh-h-8"},null,-1),mi=[hi],pi=["colspan"],vi={class:"bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4"},gi={class:"bh-pagination-info bh-flex bh-items-center"},bi={class:"bh-mr-2"},yi=["value"],ki={class:"bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1"},wi=["innerHTML"],Ci={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},xi=e.createElementVNode("g",{fill:"currentColor","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"}),e.createElementVNode("path",{d:"M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"})],-1),Si=[xi],Ei=["innerHTML"],zi={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Bi=e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"},null,-1),Ni=[Bi],Li=["onClick"],Mi=["innerHTML"],Fi={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Ti=e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8L4.646 2.354a.5.5 0 0 1 0-.708z"},null,-1),Pi=[Ti],_i=["innerHTML"],Ii={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Vi=e.createElementVNode("g",{fill:"currentColor","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8L3.646 2.354a.5.5 0 0 1 0-.708z"}),e.createElementVNode("path",{d:"M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8L7.646 2.354a.5.5 0 0 1 0-.708z"})],-1),Oi=[Vi],$i={name:"Vue3Datatable"},Ri=e.defineComponent({...$i,props:{loading:{type:Boolean,default:!1},isServerMode:{type:Boolean,default:!1},skin:{default:"bh-table-striped bh-table-hover"},totalRows:{default:0},rows:{default:()=>[]},footerRows:{default:()=>[]},columns:{default:()=>[]},hasCheckbox:{type:Boolean,default:!1},hasSubtable:{type:Boolean,default:!1},hasRightPanel:{type:Boolean,default:!1},checkboxColumnWidth:{default:"40px"},rightPanelColumnWidth:{default:"40px"},subtableColumnWidth:{default:"40px"},expandall:{type:Boolean,default:!1},search:{default:""},columnChooser:{type:Boolean,default:!1},page:{default:1},pageSize:{default:10},pageSizeOptions:{default:()=>[10,20,30,50,100]},showPageSize:{type:Boolean,default:!0},rowClass:{default:[]},cellClass:{default:[]},sortable:{type:Boolean,default:!1},sortColumn:{default:"id"},sortDirection:{default:"asc"},columnFilter:{type:Boolean,default:!1},columnFilterLang:{default:null},pagination:{type:Boolean,default:!0},showNumbers:{type:Boolean,default:!0},showNumbersCount:{default:5},showFirstPage:{type:Boolean,default:!0},showLastPage:{type:Boolean,default:!0},firstArrow:{default:""},lastArrow:{default:""},nextArrow:{default:""},previousArrow:{default:""},paginationInfo:{default:"Showing {0} to {1} of {2} entries"},noDataContent:{default:"There is no data that match your query."},stickyHeader:{type:Boolean,default:!1},stickyFooter:{type:Boolean,default:!1},height:{default:"500px"},stickyFirstColumn:{type:Boolean,default:!1},cloneHeaderInFooter:{type:Boolean,default:!1},selectRowOnClick:{type:Boolean,default:!1},scrollbarstyle:{},scrollbarautohide:{type:Boolean,default:!0},scrollbarfixedthumb:{type:Boolean,default:!1},scrollbarautoexpand:{type:Boolean,default:!1},scrollbardirection:{default:"both"},enableleftmenu:{type:Boolean},enabletopmenu:{type:Boolean},enableHeaderArea:{type:Boolean,default:!1},headerAreaHeight:{default:"80px"},leftmenuMinWidth:{default:50},leftmenuDefaultWidth:{default:250},topmenusize:{},topmenumax:{},topmenumin:{},skeletonloader:{type:Boolean},enableloadinganimation:{type:Boolean},enablefooterpagination:{type:Boolean},footerOffset:{default:0},tableRightOffset:{default:0},tableLeftOffset:{default:5},initialLeftMenuState:{type:Boolean,default:void 0}},emits:["change","sortChange","searchChange","pageChange","pageSizeChange","rowSelect","filterChange","rowClick","rowDBClick","currentTopMenuSize","currentLeftMenuSize","rowRightPanelClick"],setup(t,{expose:l,emit:o}){var it,rt;const i=e.useSlots(),n=t;for(const c of n.columns||[]){const v=((it=c.type)==null?void 0:it.toLowerCase())||"string";c.type=v,c.isUnique=c.isUnique!==void 0?c.isUnique:!1,c.hide=c.hide!==void 0?c.hide:!1,c.filter=c.filter!==void 0?c.filter:!0,c.search=c.search!==void 0?c.search:!0,c.sort=c.sort!==void 0?c.sort:!0,c.html=c.html!==void 0?c.html:!1,c.condition=!v||v==="string"?"Contains":"Equal"}const r=e.ref([]),s=e.ref(n.page),a=e.ref(n.pagination?n.pageSize:(rt=n.rows)==null?void 0:rt.length),u=n.pageSize,h=e.ref(n.sortColumn),f=n.sortColumn,p=e.ref(n.sortDirection),E=n.sortDirection,N=e.ref(n.totalRows),L=e.ref([]),T=e.ref(null),y=e.ref(n.loading),_=e.ref(n.search);JSON.parse(JSON.stringify(n.columns));const O=e.ref(null),$=e.ref(null);let F=e.ref(0);const W=e.ref(230),w=e.ref(n.leftmenuDefaultWidth),C=e.ref(!1),I=e.ref(null),R=()=>{if(I.value){const c=C.value?n.leftmenuMinWidth:n.leftmenuDefaultWidth;I.value.style.cssText=`
|
|
1
|
+
"use strict";const e=require("vue");function dn(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function fn(t){return typeof t=="function"?t():e.unref(t)}const hn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function mn(t){return e.getCurrentInstance()}function pn(t,l=!0,o){mn()?e.onMounted(t,o):l?t():e.nextTick(t)}function ae(t){var l;const o=fn(t);return(l=o==null?void 0:o.$el)!=null?l:o}const Mt=hn?window:void 0;function vn(){const t=e.ref(!1),l=e.getCurrentInstance();return l&&e.onMounted(()=>{t.value=!0},l),t}function gn(t){const l=vn();return e.computed(()=>(l.value,!!t()))}function bn(t,l,o={}){const{window:i=Mt,...n}=o;let r;const s=gn(()=>i&&"ResizeObserver"in i),a=()=>{r&&(r.disconnect(),r=void 0)},u=e.computed(()=>Array.isArray(t)?t.map(p=>ae(p)):[ae(t)]),h=e.watch(u,p=>{if(a(),s.value&&i){r=new ResizeObserver(l);for(const E of p)E&&r.observe(E,n)}},{immediate:!0,flush:"post"}),f=()=>{a(),h()};return dn(f),{isSupported:s,stop:f}}function yn(t,l={width:0,height:0},o={}){const{window:i=Mt,box:n="content-box"}=o,r=e.computed(()=>{var p,E;return(E=(p=ae(t))==null?void 0:p.namespaceURI)==null?void 0:E.includes("svg")}),s=e.ref(l.width),a=e.ref(l.height),{stop:u}=bn(t,([p])=>{const E=n==="border-box"?p.borderBoxSize:n==="content-box"?p.contentBoxSize:p.devicePixelContentBoxSize;if(i&&r.value){const N=ae(t);if(N){const L=N.getBoundingClientRect();s.value=L.width,a.value=L.height}}else if(E){const N=Array.isArray(E)?E:[E];s.value=N.reduce((L,{inlineSize:T})=>L+T,0),a.value=N.reduce((L,{blockSize:T})=>L+T,0)}else s.value=p.contentRect.width,a.value=p.contentRect.height},o);pn(()=>{const p=ae(t);p&&(s.value="offsetWidth"in p?p.offsetWidth:l.width,a.value="offsetHeight"in p?p.offsetHeight:l.height)});const h=e.watch(()=>ae(t),p=>{s.value=p?l.width:0,a.value=p?l.height:0});function f(){u(),h()}return{width:s,height:a,stop:f}}var kn=typeof global=="object"&&global&&global.Object===Object&&global,wn=typeof self=="object"&&self&&self.Object===Object&&self,Ft=kn||wn||Function("return this")(),Le=Ft.Symbol,Tt=Object.prototype,Cn=Tt.hasOwnProperty,xn=Tt.toString,ce=Le?Le.toStringTag:void 0;function Sn(t){var l=Cn.call(t,ce),o=t[ce];try{t[ce]=void 0;var i=!0}catch{}var n=xn.call(t);return i&&(l?t[ce]=o:delete t[ce]),n}var En=Object.prototype,zn=En.toString;function Bn(t){return zn.call(t)}var Nn="[object Null]",Ln="[object Undefined]",ct=Le?Le.toStringTag:void 0;function Mn(t){return t==null?t===void 0?Ln:Nn:ct&&ct in Object(t)?Sn(t):Bn(t)}function Fn(t){return t!=null&&typeof t=="object"}var Tn="[object Symbol]";function Pn(t){return typeof t=="symbol"||Fn(t)&&Mn(t)==Tn}var _n=/\s/;function In(t){for(var l=t.length;l--&&_n.test(t.charAt(l)););return l}var Vn=/^\s+/;function On(t){return t&&t.slice(0,In(t)+1).replace(Vn,"")}function Me(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}var ut=NaN,$n=/^[-+]0x[0-9a-f]+$/i,Rn=/^0b[01]+$/i,Dn=/^0o[0-7]+$/i,An=parseInt;function de(t){if(typeof t=="number")return t;if(Pn(t))return ut;if(Me(t)){var l=typeof t.valueOf=="function"?t.valueOf():t;t=Me(l)?l+"":l}if(typeof t!="string")return t===0?t:+t;t=On(t);var o=Rn.test(t);return o||Dn.test(t)?An(t.slice(2),o?2:8):$n.test(t)?ut:+t}function Wn(t,l,o){return t===t&&(o!==void 0&&(t=t<=o?t:o),l!==void 0&&(t=t>=l?t:l)),t}function Se(t,l,o){return o===void 0&&(o=l,l=void 0),o!==void 0&&(o=de(o),o=o===o?o:0),l!==void 0&&(l=de(l),l=l===l?l:0),Wn(de(t),l,o)}var De=function(){return Ft.Date.now()},Hn="Expected a function",qn=Math.max,jn=Math.min;function Pt(t,l,o){var i,n,r,s,a,u,h=0,f=!1,p=!1,E=!0;if(typeof t!="function")throw new TypeError(Hn);l=de(l)||0,Me(o)&&(f=!!o.leading,p="maxWait"in o,r=p?qn(de(o.maxWait)||0,l):r,E="trailing"in o?!!o.trailing:E);function N(w){var C=i,I=n;return i=n=void 0,h=w,s=t.apply(I,C),s}function L(w){return h=w,a=setTimeout(_,l),f?N(w):s}function T(w){var C=w-u,I=w-h,R=l-C;return p?jn(R,r-I):R}function y(w){var C=w-u,I=w-h;return u===void 0||C>=l||C<0||p&&I>=r}function _(){var w=De();if(y(w))return O(w);a=setTimeout(_,T(w))}function O(w){return a=void 0,E&&i?N(w):(i=n=void 0,s)}function $(){a!==void 0&&clearTimeout(a),h=0,i=u=n=a=void 0}function F(){return a===void 0?s:O(De())}function W(){var w=De(),C=y(w);if(i=arguments,n=this,u=w,C){if(a===void 0)return L(u);if(p)return clearTimeout(a),a=setTimeout(_,l),N(u)}return a===void 0&&(a=setTimeout(_,l)),s}return W.cancel=$,W.flush=F,W}var Un="Expected a function";function _t(t,l,o){var i=!0,n=!0;if(typeof t!="function")throw new TypeError(Un);return Me(o)&&(i="leading"in o?!!o.leading:i,n="trailing"in o?!!o.trailing:n),Pt(t,l,{leading:i,maxWait:l,trailing:n})}var Gn=Object.defineProperty,Qn=Object.defineProperties,Kn=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty,Yn=Object.prototype.propertyIsEnumerable,ft=(t,l,o)=>l in t?Gn(t,l,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[l]=o,Fe=(t,l)=>{for(var o in l||(l={}))Xn.call(l,o)&&ft(t,o,l[o]);if(dt)for(var o of dt(l))Yn.call(l,o)&&ft(t,o,l[o]);return t},It=(t,l)=>Qn(t,Kn(l));const Jn=["onPointerdown"],Zn={name:"ScrollbarThumb"};function eo(t,{expose:l}){const o=t;e.useCssVars(C=>({"1fb98f78":e.unref(i)}));const i=e.computed(()=>{var C;return`${(C=o.thumbWidth)!=null?C:12}px`});let n=null,r=e.shallowRef(null);const s={pageX:0,pageY:0,scrollPos:0};let a=null;const u=()=>{n=setTimeout(()=>{r.value&&r.value.classList.remove("scrollbar__thumbPlaceholder--scrolling"),n=null},o.autoHideDelay)},h=()=>{n!==null&&clearTimeout(n)};e.onUnmounted(h);const f=_t(C=>{C.stopPropagation(),C.preventDefault();const I=o.type==="horizontal"?"pageX":"pageY",R=(C[I]-s[I])/o.scrollInfo.wrapperMainSize*o.scrollInfo.contentMainSize;o.wrapperEl.scrollTo({[o.type==="horizontal"?"left":"top"]:s.scrollPos+R,behavior:"auto"})},16),p=()=>{u(),r.value.removeEventListener("pointermove",f),r.value.removeEventListener("pointerup",p),r.value.removeEventListener("pointercancel",p),r.value.removeEventListener("mousewheel",p),document.removeEventListener("mousewheel",p),typeof a=="number"&&r.value.releasePointerCapture(a),a=null},E=C=>{C.ctrlKey||C.button!==0||(h(),s.pageX=C.pageX,s.pageY=C.pageY,s.scrollPos=o.wrapperEl[o.type==="horizontal"?"scrollLeft":"scrollTop"],a=C==null?void 0:C.pointerId,r.value.setPointerCapture(a),r.value.addEventListener("pointermove",f),r.value.addEventListener("pointerup",p),r.value.addEventListener("pointercancel",p),r.value.addEventListener("mousewheel",p,{passive:!1}),document.addEventListener("mousewheel",p,{passive:!1}),r.value.classList.add("scrollbar__thumbPlaceholder--scrolling"))};l({autoHideAfterScroll:()=>{h(),r.value&&r.value.classList.add("scrollbar__thumbPlaceholder--scrolling"),u()}});let L=e.shallowRef(!1),T=e.shallowRef(!1),y=e.shallowRef(null),_=null,O=null,$=e.computed(()=>o.fixedThumb&&!T.value);const F=([C])=>T.value=C.isIntersecting,W=([C])=>L.value=C.isIntersecting,w=()=>{_&&(_.disconnect(),_=null),O&&(O.disconnect(),O=null)};return e.watch(()=>[o.fixedThumb,o.wrapperEl],()=>{if(!o.fixedThumb||!o.wrapperEl)return w();w(),O=new IntersectionObserver(W,{threshold:[0,.5]}),O.observe(o.wrapperEl),_=new IntersectionObserver(F),_.observe(y.value)}),e.onUnmounted(w),(C,I)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[e.withDirectives(e.createElementVNode("div",{class:e.normalizeClass(["scrollbar__thumbPlaceholder",`scrollbar__thumbPlaceholder--${t.type}`,{"scrollbar__thumbPlaceholder--autoHide":t.autoHide,"scrollbar__thumbPlaceholder--autoExpand":t.autoExpand}]),style:e.normalizeStyle({width:t.type==="horizontal"?`${t.scrollInfo.thumbSize}px`:"",height:t.type==="vertical"?`${t.scrollInfo.thumbSize}px`:"",position:$.value?"fixed":"absolute",[t.type==="vertical"?"top":"left"]:$.value?`${t.scrollInfo.boundaryDistance+3}px`:"3px"}),ref:(R,q)=>{q.thumbEl=R,r.value=R},onPointerdown:e.withModifiers(E,["stop"])},[I[0]||(e.setBlockTracking(-1),I[0]=e.createElementVNode("div",{class:e.normalizeClass(["scrollbar__thumb",`scrollbar__thumb--${t.type}`])},null,2),e.setBlockTracking(1),I[0])],46,Jn),[[e.vShow,!!t.scrollInfo.thumbSize&&(t.fixedThumb?L.value:!0)]]),o.fixedThumb?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref:(R,q)=>{q.shepherdEl=R,y.value=R},class:e.normalizeClass(["scrollbar__shepherd",`scrollbar__shepherd--${t.type}`])},null,2)),[[e.vShow,!!t.scrollInfo.thumbSize]]):e.createCommentVNode("",!0)],64))}const to=e.defineComponent(It(Fe({},Zn),{props:{type:null,autoExpand:null,autoHide:null,autoHideDelay:null,fixedThumb:null,scrollInfo:null,thumbWidth:null,wrapperEl:null},setup:eo})),no={wait:333,type:"debounce"};function ht(...t){const l="value"in(t==null?void 0:t[0]);let o;l?o=t==null?void 0:t[1]:o=t==null?void 0:t[0];const{wait:i,type:n,callback:r}=Fe(Fe({},no),o),s=l?t[0]:e.shallowRef(null),a=e.reactive({left:0,top:0,right:0,bottom:0,width:0,height:0,x:0,y:0}),u=()=>{const E=s.value.getBoundingClientRect();a.left=E.left,a.top=E.top,a.right=E.right,a.bottom=E.bottom,a.width=E.width,a.height=E.height,a.x=E.x,a.y=E.y,r==null||r()};let h=null,f=null;const p=()=>{h&&window.removeEventListener("resize",h),f&&(f.disconnect(),f=null)};return e.watchEffect(()=>{s.value&&(p(),h=u,n==="throttle"&&i>=4?h=_t(h,i):n==="debounce"&&i>=4&&(h=Pt(h,i)),window.addEventListener("resize",h),f=new ResizeObserver(h),f.observe(s.value))}),e.onUnmounted(p),l?a:[s,a]}const oo={name:"CustomScrollbar",inheritAttrs:!1};function lo(t,{expose:l,emit:o}){const i=t,n={horizontal:{el:null,instance:null},vertical:{el:null,instance:null}},r=(F,W)=>{n[W].instance||(n[W].instance=F)};let s=e.shallowRef(null),a=e.shallowRef(null);e.onMounted(()=>{var F;const W=Array.from((F=s.value.parentElement)==null?void 0:F.childNodes);for(const w in n)n[w].el=W.find(C=>{var I;return(I=C==null?void 0:C.classList)==null?void 0:I.contains(`scrollbar__thumbPlaceholder--${w}`)})});const u=ht(s,{wait:i.throttleWait,type:i.throttleType,callback:E}),h=ht(a,{wait:i.throttleWait,type:i.throttleType,callback:E});let f=e.shallowRef(0),p=e.shallowRef(0);function E(){f.value=Math.max(s.value.scrollHeight-u.height|0,0),p.value=Math.max(s.value.scrollWidth-u.width|0,0)}let N=e.computed(()=>({thumbSize:p.value?Se(u.width/s.value.scrollWidth*u.width,i.thumbMinSize>u.width?48:i.thumbMinSize,i.thumbMaxSize):0,contentMainSize:h.width,wrapperMainSize:u.width,boundaryDistance:Math.abs(u.left)})),L=e.computed(()=>({thumbSize:f.value?Se(u.height/s.value.scrollHeight*u.height,i.thumbMinSize>u.height?48:i.thumbMinSize,i.thumbMaxSize):0,contentMainSize:h.height,wrapperMainSize:u.height,boundaryDistance:Math.abs(u.top)})),T=e.computed(()=>u.height-L.value.thumbSize-5),y=e.computed(()=>u.width-N.value.thumbSize-5);const _=()=>{p.value&&(n.horizontal.el.style.transform=`translate3d(${s.value.scrollLeft/p.value*y.value}px, 0, 0)`,n.horizontal.instance.autoHideAfterScroll()),f.value&&(n.vertical.el.style.transform=`translate3d(0, ${s.value.scrollTop/f.value*T.value}px, 0)`,n.vertical.instance.autoHideAfterScroll())};e.watch(()=>[p.value,f.value],_);const O=F=>{F.stopPropagation();const W=s.value.scrollLeft,w=s.value.scrollTop,C=Se(W+((F==null?void 0:F.deltaX)||0),0,p.value)|0,I=Se(w+((F==null?void 0:F.deltaY)||0),0,f.value)|0;s.value.scrollLeft=C,s.value.scrollTop=I,p.value&&(n.horizontal.el.style.transform=`translate3d(${C/p.value*y.value}px, 0, 0)`,n.horizontal.instance.autoHideAfterScroll()),f.value&&(n.vertical.el.style.transform=`translate3d(0, ${I/f.value*T.value}px, 0)`,n.vertical.instance.autoHideAfterScroll()),o("scroll",{target:s.value,scrollLeft:C,scrollTop:I})},$=F=>{i.simulateScroll?O(F):_()};return e.watch(u,()=>o("wrapperResize",u)),e.watch(h,()=>o("contentResize",h)),l({scrollEl:s}),(F,W)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["scrollbar__wrapper",t.wrapperClass]),style:e.normalizeStyle(t.wrapperStyle)},[e.createElementVNode("div",e.mergeProps({ref:(w,C)=>{C.wrapperEl=w,s.value=w},class:"scrollbar__scroller"},F.$attrs,{onWheel:$,onScroll:$}),[e.createElementVNode("div",{ref:(w,C)=>{C.contentEl=w,a.value=w},class:e.normalizeClass(["scrollbar__content",t.contentClass,{"scrollbar__content--fixedThumb":t.fixedThumb,[`scrollbar__content--${t.direction}`]:t.direction}]),style:e.normalizeStyle(t.contentStyle)},[e.renderSlot(F.$slots,"default")],6)],16),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(n,(w,C)=>e.createVNode(to,{ref:I=>r(I,C),key:C,autoExpand:t.autoExpand,autoHide:t.autoHide,autoHideDelay:t.autoHideDelay,fixedThumb:C===t.direction?!1:t.fixedThumb,type:C,scrollInfo:C==="vertical"?L.value:N.value,thumbWidth:t.thumbWidth,wrapperEl:s.value},null,8,["autoExpand","autoHide","autoHideDelay","fixedThumb","type","scrollInfo","thumbWidth","wrapperEl"])),64))],6))}const io=e.defineComponent(It(Fe({},oo),{props:{wrapperClass:null,wrapperStyle:null,contentClass:null,contentStyle:null,direction:{default:"vertical"},thumbMinSize:{default:48},thumbMaxSize:{default:1/0},thumbWidth:{default:12},autoHide:{default:!0},autoHideDelay:{default:900},autoExpand:{default:!0},fixedThumb:null,throttleType:{default:"debounce"},throttleWait:{default:333},simulateScroll:null},emits:["wrapperResize","contentResize","scroll"],setup:lo})),mt={__name:"splitpanes",props:{horizontal:{type:Boolean,default:!1},pushOtherPanes:{type:Boolean,default:!0},maximizePanes:{type:Boolean,default:!0},rtl:{type:Boolean,default:!1},firstSplitter:{type:Boolean,default:!1}},emits:["ready","resize","resized","pane-click","pane-maximize","pane-add","pane-remove","splitter-click","splitter-dblclick"],setup(t,{emit:l}){const o=l,i=t,n=e.useSlots(),r=e.ref([]),s=e.computed(()=>r.value.reduce((d,g)=>(d[~~g.id]=g)&&d,{})),a=e.computed(()=>r.value.length),u=e.ref(null),h=e.ref(!1),f=e.ref({mouseDown:!1,dragging:!1,activeSplitter:null,cursorOffset:0}),p=e.ref({splitter:null,timeoutId:null}),E=e.computed(()=>({[`splitpanes splitpanes--${i.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":f.value.dragging})),N=()=>{document.addEventListener("mousemove",y,{passive:!1}),document.addEventListener("mouseup",_),"ontouchstart"in window&&(document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",_))},L=()=>{document.removeEventListener("mousemove",y,{passive:!1}),document.removeEventListener("mouseup",_),"ontouchstart"in window&&(document.removeEventListener("touchmove",y,{passive:!1}),document.removeEventListener("touchend",_))},T=(d,g)=>{const S=d.target.closest(".splitpanes__splitter");if(S){const{left:b,top:k}=S.getBoundingClientRect(),{clientX:z,clientY:P}="ontouchstart"in window&&d.touches?d.touches[0]:d;f.value.cursorOffset=i.horizontal?P-k:z-b}N(),f.value.mouseDown=!0,f.value.activeSplitter=g},y=d=>{f.value.mouseDown&&(d.preventDefault(),f.value.dragging=!0,requestAnimationFrame(()=>{C(W(d)),Q("resize",{event:d},!0)}))},_=d=>{f.value.dragging&&Q("resized",{event:d},!0),f.value.mouseDown=!1,f.value.activeSplitter=null,setTimeout(()=>{f.value.dragging=!1,L()},100)},O=(d,g)=>{"ontouchstart"in window&&(d.preventDefault(),p.value.splitter===g?(clearTimeout(p.value.timeoutId),p.value.timeoutId=null,$(d,g),p.value.splitter=null):(p.value.splitter=g,p.value.timeoutId=setTimeout(()=>p.value.splitter=null,500))),f.value.dragging||Q("splitter-click",{event:d,index:g},!0)},$=(d,g)=>{if(Q("splitter-dblclick",{event:d,index:g},!0),i.maximizePanes){let S=0;r.value=r.value.map((b,k)=>(b.size=k===g?b.max:b.min,k!==g&&(S+=b.min),b)),r.value[g].size-=S,Q("pane-maximize",{event:d,index:g,pane:r.value[g]}),Q("resized",{event:d,index:g},!0)}},F=(d,g)=>{Q("pane-click",{event:d,index:s.value[g].index,pane:s.value[g]})},W=d=>{const g=u.value.getBoundingClientRect(),{clientX:S,clientY:b}="ontouchstart"in window&&d.touches?d.touches[0]:d;return{x:S-(i.horizontal?0:f.value.cursorOffset)-g.left,y:b-(i.horizontal?f.value.cursorOffset:0)-g.top}},w=d=>{d=d[i.horizontal?"y":"x"];const g=u.value[i.horizontal?"clientHeight":"clientWidth"];return i.rtl&&!i.horizontal&&(d=g-d),d*100/g},C=d=>{const g=f.value.activeSplitter;let S={prevPanesSize:R(g),nextPanesSize:q(g),prevReachedMinPanes:0,nextReachedMinPanes:0};const b=0+(i.pushOtherPanes?0:S.prevPanesSize),k=100-(i.pushOtherPanes?0:S.nextPanesSize),z=Math.max(Math.min(w(d),k),b);let P=[g,g+1],U=r.value[P[0]]||null,M=r.value[P[1]]||null;const ne=U.max<100&&z>=U.max+S.prevPanesSize,we=M.max<100&&z<=100-(M.max+q(g+1));if(ne||we){ne?(U.size=U.max,M.size=Math.max(100-U.max-S.prevPanesSize-S.nextPanesSize,0)):(U.size=Math.max(100-M.max-S.prevPanesSize-q(g+1),0),M.size=M.max);return}if(i.pushOtherPanes){const J=I(S,z);if(!J)return;({sums:S,panesToResize:P}=J),U=r.value[P[0]]||null,M=r.value[P[1]]||null}U!==null&&(U.size=Math.min(Math.max(z-S.prevPanesSize-S.prevReachedMinPanes,U.min),U.max)),M!==null&&(M.size=Math.min(Math.max(100-z-S.nextPanesSize-S.nextReachedMinPanes,M.min),M.max))},I=(d,g)=>{const S=f.value.activeSplitter,b=[S,S+1];return g<d.prevPanesSize+r.value[b[0]].min&&(b[0]=Ve(S).index,d.prevReachedMinPanes=0,b[0]<S&&r.value.forEach((k,z)=>{z>b[0]&&z<=S&&(k.size=k.min,d.prevReachedMinPanes+=k.min)}),d.prevPanesSize=R(b[0]),b[0]===void 0)?(d.prevReachedMinPanes=0,r.value[0].size=r.value[0].min,r.value.forEach((k,z)=>{z>0&&z<=S&&(k.size=k.min,d.prevReachedMinPanes+=k.min)}),r.value[b[1]].size=100-d.prevReachedMinPanes-r.value[0].min-d.prevPanesSize-d.nextPanesSize,null):g>100-d.nextPanesSize-r.value[b[1]].min&&(b[1]=G(S).index,d.nextReachedMinPanes=0,b[1]>S+1&&r.value.forEach((k,z)=>{z>S&&z<b[1]&&(k.size=k.min,d.nextReachedMinPanes+=k.min)}),d.nextPanesSize=q(b[1]-1),b[1]===void 0)?(d.nextReachedMinPanes=0,r.value.forEach((k,z)=>{z<a.value-1&&z>=S+1&&(k.size=k.min,d.nextReachedMinPanes+=k.min)}),r.value[b[0]].size=100-d.prevPanesSize-q(b[0]-1),null):{sums:d,panesToResize:b}},R=d=>r.value.reduce((g,S,b)=>g+(b<d?S.size:0),0),q=d=>r.value.reduce((g,S,b)=>g+(b>d+1?S.size:0),0),Ve=d=>[...r.value].reverse().find(g=>g.index<d&&g.size>g.min)||{},G=d=>r.value.find(g=>g.index>d+1&&g.size>g.min)||{},ve=()=>{var d;const g=Array.from(((d=u.value)==null?void 0:d.children)||[]);for(const S of g){const b=S.classList.contains("splitpanes__pane"),k=S.classList.contains("splitpanes__splitter");!b&&!k&&(S.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},H=(d,g,S=!1)=>{const b=d-1,k=document.createElement("div");k.classList.add("splitpanes__splitter"),S||(k.onmousedown=z=>T(z,b),typeof window<"u"&&"ontouchstart"in window&&(k.ontouchstart=z=>T(z,b)),k.onclick=z=>O(z,b+1)),k.ondblclick=z=>$(z,b+1),g.parentNode.insertBefore(k,g)},K=d=>{d.onmousedown=void 0,d.onclick=void 0,d.ondblclick=void 0,d.remove()},ee=()=>{var d;const g=Array.from(((d=u.value)==null?void 0:d.children)||[]);for(const b of g)b.className.includes("splitpanes__splitter")&&K(b);let S=0;for(const b of g)b.className.includes("splitpanes__pane")&&(!S&&i.firstSplitter?H(S,b,!0):S&&H(S,b),S++)},se=({uid:d,...g})=>{const S=s.value[d];for(const[b,k]of Object.entries(g))S[b]=k},ge=d=>{var g;let S=-1;Array.from(((g=u.value)==null?void 0:g.children)||[]).some(b=>(b.className.includes("splitpanes__pane")&&S++,b.isSameNode(d.el))),r.value.splice(S,0,{...d,index:S}),r.value.forEach((b,k)=>b.index=k),h.value&&e.nextTick(()=>{ee(),Y({addedPane:r.value[S]}),Q("pane-add",{pane:r.value[S]})})},be=d=>{const g=r.value.findIndex(b=>b.id===d);r.value[g].el=null;const S=r.value.splice(g,1)[0];r.value.forEach((b,k)=>b.index=k),e.nextTick(()=>{ee(),Q("pane-remove",{pane:S}),Y({removedPane:{...S}})})},Y=(d={})=>{!d.addedPane&&!d.removedPane?ye():r.value.some(g=>g.givenSize!==null||g.min||g.max<100)?ke(d):X(),h.value&&Q("resized")},X=()=>{const d=100/a.value;let g=0;const S=[],b=[];for(const k of r.value)k.size=Math.max(Math.min(d,k.max),k.min),g-=k.size,k.size>=k.max&&S.push(k.id),k.size<=k.min&&b.push(k.id);g>.1&&re(g,S,b)},ye=()=>{let d=100;const g=[],S=[];let b=0;for(const z of r.value)d-=z.size,z.givenSize!==null&&b++,z.size>=z.max&&g.push(z.id),z.size<=z.min&&S.push(z.id);let k=100;if(d>.1){for(const z of r.value)z.givenSize===null&&(z.size=Math.max(Math.min(d/(a.value-b),z.max),z.min)),k-=z.size;k>.1&&re(k,g,S)}},ke=({addedPane:d,removedPane:g}={})=>{let S=100/a.value,b=0;const k=[],z=[];((d==null?void 0:d.givenSize)??null)!==null&&(S=(100-d.givenSize)/(a.value-1));for(const P of r.value)b-=P.size,P.size>=P.max&&k.push(P.id),P.size<=P.min&&z.push(P.id);if(!(Math.abs(b)<.1)){for(const P of r.value)(d==null?void 0:d.givenSize)!==null&&(d==null?void 0:d.id)===P.id||(P.size=Math.max(Math.min(S,P.max),P.min)),b-=P.size,P.size>=P.max&&k.push(P.id),P.size<=P.min&&z.push(P.id);b>.1&&re(b,k,z)}},re=(d,g,S)=>{let b;d>0?b=d/(a.value-g.length):b=d/(a.value-S.length),r.value.forEach((k,z)=>{if(d>0&&!g.includes(k.id)){const P=Math.max(Math.min(k.size+b,k.max),k.min),U=P-k.size;d-=U,k.size=P}else if(!S.includes(k.id)){const P=Math.max(Math.min(k.size+b,k.max),k.min),U=P-k.size;d-=U,k.size=P}}),Math.abs(d)>.1&&e.nextTick(()=>{h.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},Q=(d,g=void 0,S=!1)=>{const b=(g==null?void 0:g.index)??f.value.activeSplitter??null;o(d,{...g,...b!==null&&{index:b},...S&&b!==null&&{prevPane:r.value[b-(i.firstSplitter?1:0)],nextPane:r.value[b+(i.firstSplitter?0:1)]},panes:r.value.map(k=>({min:k.min,max:k.max,size:k.size}))})};e.watch(()=>i.firstSplitter,()=>ee()),e.onMounted(()=>{ve(),ee(),Y(),Q("ready"),h.value=!0}),e.onBeforeUnmount(()=>h.value=!1);const Oe=()=>{var d;return e.h("div",{ref:u,class:E.value},(d=n.default)==null?void 0:d.call(n))};return e.provide("panes",r),e.provide("indexedPanes",s),e.provide("horizontal",e.computed(()=>i.horizontal)),e.provide("requestUpdate",se),e.provide("onPaneAdd",ge),e.provide("onPaneRemove",be),e.provide("onPaneClick",F),(d,g)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Oe)))}},Ae={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){var l;const o=t,i=e.inject("requestUpdate"),n=e.inject("onPaneAdd"),r=e.inject("horizontal"),s=e.inject("onPaneRemove"),a=e.inject("onPaneClick"),u=(l=e.getCurrentInstance())==null?void 0:l.uid,h=e.inject("indexedPanes"),f=e.computed(()=>h.value[u]),p=e.ref(null),E=e.computed(()=>{const y=isNaN(o.size)||o.size===void 0?0:parseFloat(o.size);return Math.max(Math.min(y,L.value),N.value)}),N=e.computed(()=>{const y=parseFloat(o.minSize);return isNaN(y)?0:y}),L=e.computed(()=>{const y=parseFloat(o.maxSize);return isNaN(y)?100:y}),T=e.computed(()=>{var y;return`${r.value?"height":"width"}: ${(y=f.value)==null?void 0:y.size}%`});return e.watch(()=>E.value,y=>i({uid:u,size:y})),e.watch(()=>N.value,y=>i({uid:u,min:y})),e.watch(()=>L.value,y=>i({uid:u,max:y})),e.onMounted(()=>{n({id:u,el:p.value,min:N.value,max:L.value,givenSize:o.size===void 0?null:E.value,size:E.value})}),e.onBeforeUnmount(()=>s(u)),(y,_)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"paneEl",ref:p,class:"splitpanes__pane",onClick:_[0]||(_[0]=O=>e.unref(a)(O,y._.uid)),style:e.normalizeStyle(T.value)},[e.renderSlot(y.$slots,"default")],4))}},fe=/^[a-z0-9]+(-[a-z0-9]+)*$/,Pe=(t,l,o,i="")=>{const n=t.split(":");if(t.slice(0,1)==="@"){if(n.length<2||n.length>3)return null;i=n.shift().slice(1)}if(n.length>3||!n.length)return null;if(n.length>1){const a=n.pop(),u=n.pop(),h={provider:n.length>0?n[0]:i,prefix:u,name:a};return l&&!ze(h)?null:h}const r=n[0],s=r.split("-");if(s.length>1){const a={provider:i,prefix:s.shift(),name:s.join("-")};return l&&!ze(a)?null:a}if(o&&i===""){const a={provider:i,prefix:"",name:r};return l&&!ze(a,o)?null:a}return null},ze=(t,l)=>t?!!((t.provider===""||t.provider.match(fe))&&(l&&t.prefix===""||t.prefix.match(fe))&&t.name.match(fe)):!1,Vt=Object.freeze({left:0,top:0,width:16,height:16}),Te=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),_e=Object.freeze({...Vt,...Te}),qe=Object.freeze({..._e,body:"",hidden:!1});function ro(t,l){const o={};!t.hFlip!=!l.hFlip&&(o.hFlip=!0),!t.vFlip!=!l.vFlip&&(o.vFlip=!0);const i=((t.rotate||0)+(l.rotate||0))%4;return i&&(o.rotate=i),o}function pt(t,l){const o=ro(t,l);for(const i in qe)i in Te?i in t&&!(i in o)&&(o[i]=Te[i]):i in l?o[i]=l[i]:i in t&&(o[i]=t[i]);return o}function ao(t,l){const o=t.icons,i=t.aliases||Object.create(null),n=Object.create(null);function r(s){if(o[s])return n[s]=[];if(!(s in n)){n[s]=null;const a=i[s]&&i[s].parent,u=a&&r(a);u&&(n[s]=[a].concat(u))}return n[s]}return Object.keys(o).concat(Object.keys(i)).forEach(r),n}function so(t,l,o){const i=t.icons,n=t.aliases||Object.create(null);let r={};function s(a){r=pt(i[a]||n[a],r)}return s(l),o.forEach(s),pt(t,r)}function Ot(t,l){const o=[];if(typeof t!="object"||typeof t.icons!="object")return o;t.not_found instanceof Array&&t.not_found.forEach(n=>{l(n,null),o.push(n)});const i=ao(t);for(const n in i){const r=i[n];r&&(l(n,so(t,n,r)),o.push(n))}return o}const co={provider:"",aliases:{},not_found:{},...Vt};function We(t,l){for(const o in l)if(o in t&&typeof t[o]!=typeof l[o])return!1;return!0}function $t(t){if(typeof t!="object"||t===null)return null;const l=t;if(typeof l.prefix!="string"||!t.icons||typeof t.icons!="object"||!We(t,co))return null;const o=l.icons;for(const n in o){const r=o[n];if(!n.match(fe)||typeof r.body!="string"||!We(r,qe))return null}const i=l.aliases||Object.create(null);for(const n in i){const r=i[n],s=r.parent;if(!n.match(fe)||typeof s!="string"||!o[s]&&!i[s]||!We(r,qe))return null}return l}const vt=Object.create(null);function uo(t,l){return{provider:t,prefix:l,icons:Object.create(null),missing:new Set}}function ie(t,l){const o=vt[t]||(vt[t]=Object.create(null));return o[l]||(o[l]=uo(t,l))}function Ye(t,l){return $t(l)?Ot(l,(o,i)=>{i?t.icons[o]=i:t.missing.add(o)}):[]}function fo(t,l,o){try{if(typeof o.body=="string")return t.icons[l]={...o},!0}catch{}return!1}let he=!1;function Rt(t){return typeof t=="boolean"&&(he=t),he}function ho(t){const l=typeof t=="string"?Pe(t,!0,he):t;if(l){const o=ie(l.provider,l.prefix),i=l.name;return o.icons[i]||(o.missing.has(i)?null:void 0)}}function mo(t,l){const o=Pe(t,!0,he);if(!o)return!1;const i=ie(o.provider,o.prefix);return fo(i,o.name,l)}function po(t,l){if(typeof t!="object")return!1;if(typeof l!="string"&&(l=t.provider||""),he&&!l&&!t.prefix){let n=!1;return $t(t)&&(t.prefix="",Ot(t,(r,s)=>{s&&mo(r,s)&&(n=!0)})),n}const o=t.prefix;if(!ze({provider:l,prefix:o,name:"a"}))return!1;const i=ie(l,o);return!!Ye(i,t)}const Dt=Object.freeze({width:null,height:null}),At=Object.freeze({...Dt,...Te}),vo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,go=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function gt(t,l,o){if(l===1)return t;if(o=o||100,typeof t=="number")return Math.ceil(t*l*o)/o;if(typeof t!="string")return t;const i=t.split(vo);if(i===null||!i.length)return t;const n=[];let r=i.shift(),s=go.test(r);for(;;){if(s){const a=parseFloat(r);isNaN(a)?n.push(r):n.push(Math.ceil(a*l*o)/o)}else n.push(r);if(r=i.shift(),r===void 0)return n.join("");s=!s}}function bo(t,l="defs"){let o="";const i=t.indexOf("<"+l);for(;i>=0;){const n=t.indexOf(">",i),r=t.indexOf("</"+l);if(n===-1||r===-1)break;const s=t.indexOf(">",r);if(s===-1)break;o+=t.slice(n+1,r).trim(),t=t.slice(0,i).trim()+t.slice(s+1)}return{defs:o,content:t}}function yo(t,l){return t?"<defs>"+t+"</defs>"+l:l}function ko(t,l,o){const i=bo(t);return yo(i.defs,l+i.content+o)}const wo=t=>t==="unset"||t==="undefined"||t==="none";function Co(t,l){const o={..._e,...t},i={...At,...l},n={left:o.left,top:o.top,width:o.width,height:o.height};let r=o.body;[o,i].forEach(T=>{const y=[],_=T.hFlip,O=T.vFlip;let $=T.rotate;_?O?$+=2:(y.push("translate("+(n.width+n.left).toString()+" "+(0-n.top).toString()+")"),y.push("scale(-1 1)"),n.top=n.left=0):O&&(y.push("translate("+(0-n.left).toString()+" "+(n.height+n.top).toString()+")"),y.push("scale(1 -1)"),n.top=n.left=0);let F;switch($<0&&($-=Math.floor($/4)*4),$=$%4,$){case 1:F=n.height/2+n.top,y.unshift("rotate(90 "+F.toString()+" "+F.toString()+")");break;case 2:y.unshift("rotate(180 "+(n.width/2+n.left).toString()+" "+(n.height/2+n.top).toString()+")");break;case 3:F=n.width/2+n.left,y.unshift("rotate(-90 "+F.toString()+" "+F.toString()+")");break}$%2===1&&(n.left!==n.top&&(F=n.left,n.left=n.top,n.top=F),n.width!==n.height&&(F=n.width,n.width=n.height,n.height=F)),y.length&&(r=ko(r,'<g transform="'+y.join(" ")+'">',"</g>"))});const s=i.width,a=i.height,u=n.width,h=n.height;let f,p;s===null?(p=a===null?"1em":a==="auto"?h:a,f=gt(p,u/h)):(f=s==="auto"?u:s,p=a===null?gt(f,h/u):a==="auto"?h:a);const E={},N=(T,y)=>{wo(y)||(E[T]=y.toString())};N("width",f),N("height",p);const L=[n.left,n.top,u,h];return E.viewBox=L.join(" "),{attributes:E,viewBox:L,body:r}}const xo=/\sid="(\S+)"/g,So="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let Eo=0;function zo(t,l=So){const o=[];let i;for(;i=xo.exec(t);)o.push(i[1]);if(!o.length)return t;const n="suffix"+(Math.random()*16777216|Date.now()).toString(16);return o.forEach(r=>{const s=typeof l=="function"?l(r):l+(Eo++).toString(),a=r.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+n+"$3")}),t=t.replace(new RegExp(n,"g"),""),t}const je=Object.create(null);function Bo(t,l){je[t]=l}function Ue(t){return je[t]||je[""]}function Je(t){let l;if(typeof t.resources=="string")l=[t.resources];else if(l=t.resources,!(l instanceof Array)||!l.length)return null;return{resources:l,path:t.path||"/",maxURL:t.maxURL||500,rotate:t.rotate||750,timeout:t.timeout||5e3,random:t.random===!0,index:t.index||0,dataAfterTimeout:t.dataAfterTimeout!==!1}}const Ze=Object.create(null),ue=["https://api.simplesvg.com","https://api.unisvg.com"],Be=[];for(;ue.length>0;)ue.length===1||Math.random()>.5?Be.push(ue.shift()):Be.push(ue.pop());Ze[""]=Je({resources:["https://api.iconify.design"].concat(Be)});function No(t,l){const o=Je(l);return o===null?!1:(Ze[t]=o,!0)}function et(t){return Ze[t]}const Lo=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let bt=Lo();function Mo(t,l){const o=et(t);if(!o)return 0;let i;if(!o.maxURL)i=0;else{let n=0;o.resources.forEach(s=>{n=Math.max(n,s.length)});const r=l+".json?icons=";i=o.maxURL-n-o.path.length-r.length}return i}function Fo(t){return t===404}const To=(t,l,o)=>{const i=[],n=Mo(t,l),r="icons";let s={type:r,provider:t,prefix:l,icons:[]},a=0;return o.forEach((u,h)=>{a+=u.length+1,a>=n&&h>0&&(i.push(s),s={type:r,provider:t,prefix:l,icons:[]},a=u.length),s.icons.push(u)}),i.push(s),i};function Po(t){if(typeof t=="string"){const l=et(t);if(l)return l.path}return"/"}const _o=(t,l,o)=>{if(!bt){o("abort",424);return}let i=Po(l.provider);switch(l.type){case"icons":{const r=l.prefix,a=l.icons.join(","),u=new URLSearchParams({icons:a});i+=r+".json?"+u.toString();break}case"custom":{const r=l.uri;i+=r.slice(0,1)==="/"?r.slice(1):r;break}default:o("abort",400);return}let n=503;bt(t+i).then(r=>{const s=r.status;if(s!==200){setTimeout(()=>{o(Fo(s)?"abort":"next",s)});return}return n=501,r.json()}).then(r=>{if(typeof r!="object"||r===null){setTimeout(()=>{r===404?o("abort",r):o("next",n)});return}setTimeout(()=>{o("success",r)})}).catch(()=>{o("next",n)})},Io={prepare:To,send:_o};function Vo(t){const l={loaded:[],missing:[],pending:[]},o=Object.create(null);t.sort((n,r)=>n.provider!==r.provider?n.provider.localeCompare(r.provider):n.prefix!==r.prefix?n.prefix.localeCompare(r.prefix):n.name.localeCompare(r.name));let i={provider:"",prefix:"",name:""};return t.forEach(n=>{if(i.name===n.name&&i.prefix===n.prefix&&i.provider===n.provider)return;i=n;const r=n.provider,s=n.prefix,a=n.name,u=o[r]||(o[r]=Object.create(null)),h=u[s]||(u[s]=ie(r,s));let f;a in h.icons?f=l.loaded:s===""||h.missing.has(a)?f=l.missing:f=l.pending;const p={provider:r,prefix:s,name:a};f.push(p)}),l}function Wt(t,l){t.forEach(o=>{const i=o.loaderCallbacks;i&&(o.loaderCallbacks=i.filter(n=>n.id!==l))})}function Oo(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const l=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!l.length)return;let o=!1;const i=t.provider,n=t.prefix;l.forEach(r=>{const s=r.icons,a=s.pending.length;s.pending=s.pending.filter(u=>{if(u.prefix!==n)return!0;const h=u.name;if(t.icons[h])s.loaded.push({provider:i,prefix:n,name:h});else if(t.missing.has(h))s.missing.push({provider:i,prefix:n,name:h});else return o=!0,!0;return!1}),s.pending.length!==a&&(o||Wt([t],r.id),r.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),r.abort))})}))}let $o=0;function Ro(t,l,o){const i=$o++,n=Wt.bind(null,o,i);if(!l.pending.length)return n;const r={id:i,icons:l,callback:t,abort:n};return o.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(r)}),n}function Do(t,l=!0,o=!1){const i=[];return t.forEach(n=>{const r=typeof n=="string"?Pe(n,l,o):n;r&&i.push(r)}),i}var Ao={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Wo(t,l,o,i){const n=t.resources.length,r=t.random?Math.floor(Math.random()*n):t.index;let s;if(t.random){let w=t.resources.slice(0);for(s=[];w.length>1;){const C=Math.floor(Math.random()*w.length);s.push(w[C]),w=w.slice(0,C).concat(w.slice(C+1))}s=s.concat(w)}else s=t.resources.slice(r).concat(t.resources.slice(0,r));const a=Date.now();let u="pending",h=0,f,p=null,E=[],N=[];typeof i=="function"&&N.push(i);function L(){p&&(clearTimeout(p),p=null)}function T(){u==="pending"&&(u="aborted"),L(),E.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),E=[]}function y(w,C){C&&(N=[]),typeof w=="function"&&N.push(w)}function _(){return{startTime:a,payload:l,status:u,queriesSent:h,queriesPending:E.length,subscribe:y,abort:T}}function O(){u="failed",N.forEach(w=>{w(void 0,f)})}function $(){E.forEach(w=>{w.status==="pending"&&(w.status="aborted")}),E=[]}function F(w,C,I){const R=C!=="success";switch(E=E.filter(q=>q!==w),u){case"pending":break;case"failed":if(R||!t.dataAfterTimeout)return;break;default:return}if(C==="abort"){f=I,O();return}if(R){f=I,E.length||(s.length?W():O());return}if(L(),$(),!t.random){const q=t.resources.indexOf(w.resource);q!==-1&&q!==t.index&&(t.index=q)}u="completed",N.forEach(q=>{q(I)})}function W(){if(u!=="pending")return;L();const w=s.shift();if(w===void 0){if(E.length){p=setTimeout(()=>{L(),u==="pending"&&($(),O())},t.timeout);return}O();return}const C={status:"pending",resource:w,callback:(I,R)=>{F(C,I,R)}};E.push(C),h++,p=setTimeout(W,t.rotate),o(w,l,C.callback)}return setTimeout(W),_}function Ht(t){const l={...Ao,...t};let o=[];function i(){o=o.filter(a=>a().status==="pending")}function n(a,u,h){const f=Wo(l,a,u,(p,E)=>{i(),h&&h(p,E)});return o.push(f),f}function r(a){return o.find(u=>a(u))||null}return{query:n,find:r,setIndex:a=>{l.index=a},getIndex:()=>l.index,cleanup:i}}function yt(){}const He=Object.create(null);function Ho(t){if(!He[t]){const l=et(t);if(!l)return;const o=Ht(l),i={config:l,redundancy:o};He[t]=i}return He[t]}function qo(t,l,o){let i,n;if(typeof t=="string"){const r=Ue(t);if(!r)return o(void 0,424),yt;n=r.send;const s=Ho(t);s&&(i=s.redundancy)}else{const r=Je(t);if(r){i=Ht(r);const s=t.resources?t.resources[0]:"",a=Ue(s);a&&(n=a.send)}}return!i||!n?(o(void 0,424),yt):i.query(l,n,o)().abort}const kt="iconify2",me="iconify",qt=me+"-count",wt=me+"-version",jt=36e5,jo=168,Uo=50;function Ge(t,l){try{return t.getItem(l)}catch{}}function tt(t,l,o){try{return t.setItem(l,o),!0}catch{}}function Ct(t,l){try{t.removeItem(l)}catch{}}function Qe(t,l){return tt(t,qt,l.toString())}function Ke(t){return parseInt(Ge(t,qt))||0}const Ie={local:!0,session:!0},Ut={local:new Set,session:new Set};let nt=!1;function Go(t){nt=t}let Ee=typeof window>"u"?{}:window;function Gt(t){const l=t+"Storage";try{if(Ee&&Ee[l]&&typeof Ee[l].length=="number")return Ee[l]}catch{}Ie[t]=!1}function Qt(t,l){const o=Gt(t);if(!o)return;const i=Ge(o,wt);if(i!==kt){if(i){const a=Ke(o);for(let u=0;u<a;u++)Ct(o,me+u.toString())}tt(o,wt,kt),Qe(o,0);return}const n=Math.floor(Date.now()/jt)-jo,r=a=>{const u=me+a.toString(),h=Ge(o,u);if(typeof h=="string"){try{const f=JSON.parse(h);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>n&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&l(f,a))return!0}catch{}Ct(o,u)}};let s=Ke(o);for(let a=s-1;a>=0;a--)r(a)||(a===s-1?(s--,Qe(o,s)):Ut[t].add(a))}function Kt(){if(!nt){Go(!0);for(const t in Ie)Qt(t,l=>{const o=l.data,i=l.provider,n=o.prefix,r=ie(i,n);if(!Ye(r,o).length)return!1;const s=o.lastModified||-1;return r.lastModifiedCached=r.lastModifiedCached?Math.min(r.lastModifiedCached,s):s,!0})}}function Qo(t,l){const o=t.lastModifiedCached;if(o&&o>=l)return o===l;if(t.lastModifiedCached=l,o)for(const i in Ie)Qt(i,n=>{const r=n.data;return n.provider!==t.provider||r.prefix!==t.prefix||r.lastModified===l});return!0}function Ko(t,l){nt||Kt();function o(i){let n;if(!Ie[i]||!(n=Gt(i)))return;const r=Ut[i];let s;if(r.size)r.delete(s=Array.from(r).shift());else if(s=Ke(n),s>=Uo||!Qe(n,s+1))return;const a={cached:Math.floor(Date.now()/jt),provider:t.provider,data:l};return tt(n,me+s.toString(),JSON.stringify(a))}l.lastModified&&!Qo(t,l.lastModified)||Object.keys(l.icons).length&&(l.not_found&&(l=Object.assign({},l),delete l.not_found),o("local")||o("session"))}function xt(){}function Xo(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Oo(t)}))}function Yo(t,l){t.iconsToLoad?t.iconsToLoad=t.iconsToLoad.concat(l).sort():t.iconsToLoad=l,t.iconsQueueFlag||(t.iconsQueueFlag=!0,setTimeout(()=>{t.iconsQueueFlag=!1;const{provider:o,prefix:i}=t,n=t.iconsToLoad;delete t.iconsToLoad;let r;if(!n||!(r=Ue(o)))return;r.prepare(o,i,n).forEach(a=>{qo(o,a,u=>{if(typeof u!="object")a.icons.forEach(h=>{t.missing.add(h)});else try{const h=Ye(t,u);if(!h.length)return;const f=t.pendingIcons;f&&h.forEach(p=>{f.delete(p)}),Ko(t,u)}catch(h){console.error(h)}Xo(t)})})}))}const Jo=(t,l)=>{const o=Do(t,!0,Rt()),i=Vo(o);if(!i.pending.length){let u=!0;return l&&setTimeout(()=>{u&&l(i.loaded,i.missing,i.pending,xt)}),()=>{u=!1}}const n=Object.create(null),r=[];let s,a;return i.pending.forEach(u=>{const{provider:h,prefix:f}=u;if(f===a&&h===s)return;s=h,a=f,r.push(ie(h,f));const p=n[h]||(n[h]=Object.create(null));p[f]||(p[f]=[])}),i.pending.forEach(u=>{const{provider:h,prefix:f,name:p}=u,E=ie(h,f),N=E.pendingIcons||(E.pendingIcons=new Set);N.has(p)||(N.add(p),n[h][f].push(p))}),r.forEach(u=>{const{provider:h,prefix:f}=u;n[h][f].length&&Yo(u,n[h][f])}),l?Ro(l,i,r):xt};function Zo(t,l){const o={...t};for(const i in l){const n=l[i],r=typeof n;i in Dt?(n===null||n&&(r==="string"||r==="number"))&&(o[i]=n):r===typeof o[i]&&(o[i]=i==="rotate"?n%4:n)}return o}const el=/[\s,]+/;function tl(t,l){l.split(el).forEach(o=>{switch(o.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function nl(t,l=0){const o=t.replace(/^-?[0-9.]*/,"");function i(n){for(;n<0;)n+=4;return n%4}if(o===""){const n=parseInt(t);return isNaN(n)?0:i(n)}else if(o!==t){let n=0;switch(o){case"%":n=25;break;case"deg":n=90}if(n){let r=parseFloat(t.slice(0,t.length-o.length));return isNaN(r)?0:(r=r/n,r%1===0?i(r):0)}}return l}function ol(t,l){let o=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const i in l)o+=" "+i+'="'+l[i]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+o+">"+t+"</svg>"}function ll(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function il(t){return"data:image/svg+xml,"+ll(t)}function rl(t){return'url("'+il(t)+'")'}const St={...At,inline:!1},al={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},sl={display:"inline-block"},Xe={backgroundColor:"currentColor"},Xt={backgroundColor:"transparent"},Et={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},zt={webkitMask:Xe,mask:Xe,background:Xt};for(const t in zt){const l=zt[t];for(const o in Et)l[t+o]=Et[o]}const Ne={};["horizontal","vertical"].forEach(t=>{const l=t.slice(0,1)+"Flip";Ne[t+"-flip"]=l,Ne[t.slice(0,1)+"-flip"]=l,Ne[t+"Flip"]=l});function Bt(t){return t+(t.match(/^[-0-9.]+$/)?"px":"")}const Nt=(t,l)=>{const o=Zo(St,l),i={...al},n=l.mode||"svg",r={},s=l.style,a=typeof s=="object"&&!(s instanceof Array)?s:{};for(let T in l){const y=l[T];if(y!==void 0)switch(T){case"icon":case"style":case"onLoad":case"mode":break;case"inline":case"hFlip":case"vFlip":o[T]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&tl(o,y);break;case"color":r.color=y;break;case"rotate":typeof y=="string"?o[T]=nl(y):typeof y=="number"&&(o[T]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete i["aria-hidden"];break;default:{const _=Ne[T];_?(y===!0||y==="true"||y===1)&&(o[_]=!0):St[T]===void 0&&(i[T]=y)}}}const u=Co(t,o),h=u.attributes;if(o.inline&&(r.verticalAlign="-0.125em"),n==="svg"){i.style={...r,...a},Object.assign(i,h);let T=0,y=l.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),i.innerHTML=zo(u.body,y?()=>y+"ID"+T++:"iconifyVue"),e.h("svg",i)}const{body:f,width:p,height:E}=t,N=n==="mask"||(n==="bg"?!1:f.indexOf("currentColor")!==-1),L=ol(f,{...h,width:p+"",height:E+""});return i.style={...r,"--svg":rl(L),width:Bt(h.width),height:Bt(h.height),...sl,...N?Xe:Xt,...a},e.h("span",i)};Rt(!0);Bo("",Io);if(typeof document<"u"&&typeof window<"u"){Kt();const t=window;if(t.IconifyPreload!==void 0){const l=t.IconifyPreload,o="Invalid IconifyPreload syntax.";typeof l=="object"&&l!==null&&(l instanceof Array?l:[l]).forEach(i=>{try{(typeof i!="object"||i===null||i instanceof Array||typeof i.icons!="object"||typeof i.prefix!="string"||!po(i))&&console.error(o)}catch{console.error(o)}})}if(t.IconifyProviders!==void 0){const l=t.IconifyProviders;if(typeof l=="object"&&l!==null)for(let o in l){const i="IconifyProviders["+o+"] is invalid.";try{const n=l[o];if(typeof n!="object"||!n||n.resources===void 0)continue;No(o,n)||console.error(i)}catch{console.error(i)}}}}const cl={..._e,body:""},te=e.defineComponent({inheritAttrs:!1,data(){return{_name:"",_loadingIcon:null,iconMounted:!1,counter:0}},mounted(){this.iconMounted=!0},unmounted(){this.abortLoading()},methods:{abortLoading(){this._loadingIcon&&(this._loadingIcon.abort(),this._loadingIcon=null)},getIcon(t,l){if(typeof t=="object"&&t!==null&&typeof t.body=="string")return this._name="",this.abortLoading(),{data:t};let o;if(typeof t!="string"||(o=Pe(t,!1,!0))===null)return this.abortLoading(),null;const i=ho(o);if(!i)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",i!==null&&(this._loadingIcon={name:t,abort:Jo([o],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,l&&l(t));const n=["iconify"];return o.prefix!==""&&n.push("iconify--"+o.prefix),o.provider!==""&&n.push("iconify--"+o.provider),{data:i,classes:n}}},render(){this.counter;const t=this.$attrs,l=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad):null;if(!l)return Nt(cl,t);let o=t;return l.classes&&(o={...t,class:(typeof t.class=="string"?t.class+" ":"")+l.classes.join(" ")}),Nt({..._e,...l.data},o)}}),ul={name:"buttonExpand"},dl=e.defineComponent({...ul,props:{item:{default:[]},expandedrows:{default:()=>[]},expandall:{type:Boolean,default:!1}},setup(t){const l=t,o=e.toRef(l,"expandedrows"),i=e.ref(!1);function n(s){if(l.expandall)i.value=!i.value,o.value.forEach(a=>{a.isExpanded=i.value});else{const a=o.value.find(u=>u.id==s);a?a.isExpanded=!a.isExpanded:o.value.push({id:s,isExpanded:!0})}}const r=e.ref(-1);return e.watch(()=>o.value,()=>{l.expandall&&new Set(o.value.map(s=>s.isExpanded)).size>1&&(r.value=-1,i.value=!0)},{deep:!0}),(s,a)=>{var u,h;return e.openBlock(),e.createElementBlock("button",{class:"expandbtn",onClick:a[0]||(a[0]=f=>n(s.item.id))},[(((u=o.value.find(f=>f.id==s.item.id))==null?void 0:u.isExpanded)==null?i.value:(h=o.value.find(f=>f.id==s.item.id))!=null&&h.isExpanded)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[l.expandall?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[r.value?(e.openBlock(),e.createBlock(e.unref(te),{key:0,icon:"fluent:chevron-down-up-16-filled"})):(e.openBlock(),e.createBlock(e.unref(te),{key:1,icon:"mdi:chevron-down"}))],64)):(e.openBlock(),e.createBlock(e.unref(te),{key:1,icon:"mdi:chevron-down"}))],64)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[l.expandall?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[r.value==-1?(e.openBlock(),e.createBlock(e.unref(te),{key:0,icon:"ion:chevron-expand"})):r.value==0?(e.openBlock(),e.createBlock(e.unref(te),{key:1,icon:"mdi:chevron-down"})):(e.openBlock(),e.createBlock(e.unref(te),{key:2,icon:"mdi:chevron-right"}))],64)):(e.openBlock(),e.createBlock(e.unref(te),{key:1,icon:"mdi:chevron-right"}))],64))])}}}),pe=(t,l)=>{const o=t.__vccOpts||t;for(const[i,n]of l)o[i]=n;return o},Yt=pe(dl,[["__scopeId","data-v-96f3f821"]]),fl={name:"ButtonRightPanel"},hl=e.defineComponent({...fl,props:{item:{default:[]}},emits:["rightPanelClick"],setup(t,{emit:l}){const o=t,i=l;function n(){i("rightPanelClick",o.item)}return(r,s)=>(e.openBlock(),e.createElementBlock("button",{class:"rightpanelbtn",onClick:e.withModifiers(n,["stop"])},[e.createVNode(e.unref(te),{icon:"lucide:plus"})]))}}),ml=pe(hl,[["__scopeId","data-v-d739c6bf"]]),pl={class:"bh-filter-menu bh-absolute bh-z-[1] bh-bg-white bh-shadow-md bh-rounded-md bh-top-full bh-right-0 bh-w-32 bh-mt-1"},vl={name:"columnFilter"},gl=e.defineComponent({...vl,props:["column","columnFilterLang"],emits:["close","filterChange"],setup(t,{emit:l}){const o=t;e.onBeforeUnmount(()=>{document.removeEventListener("click",n)}),e.onMounted(()=>{document.addEventListener("click",n)});const i=l,n=()=>{i("close")},r=s=>{o.column.condition=s,s===""&&(o.column.value=""),i("filterChange",o.column)};return(s,a)=>(e.openBlock(),e.createElementBlock("div",pl,[e.createElementVNode("div",{class:"bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden",onClick:e.withModifiers(n,["stop"])},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition===""}),onClick:a[0]||(a[0]=u=>r(""))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NoFilter)??"No filter"),3),o.column.type==="string"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Contains"}),onClick:a[1]||(a[1]=u=>r("Contains"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Contains)??"Contains"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotContains"}),onClick:a[2]||(a[2]=u=>r("NotContains"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotContains)??"NotContains"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Equal"}),onClick:a[3]||(a[3]=u=>r("Equal"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Equal)??"Equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotEqual"}),onClick:a[4]||(a[4]=u=>r("NotEqual"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotEqual)??"NotEqual"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="StartsWith"}),onClick:a[5]||(a[5]=u=>r("StartsWith"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.StartsWith)??"StartsWith"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="EndsWith"}),onClick:a[6]||(a[6]=u=>r("EndsWith"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.EndsWith)??"EndsWith"),3)],64)):o.column.type==="number"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Equal"}),onClick:a[7]||(a[7]=u=>r("Equal"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Equal)??"Equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotEqual"}),onClick:a[8]||(a[8]=u=>r("NotEqual"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotEqual)??"NotEqual"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="GreaterThan"}),onClick:a[9]||(a[9]=u=>r("GreaterThan"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.GreaterThan)??"GreaterThan"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="GreaterThanOrEqual"}),onClick:a[10]||(a[10]=u=>r("GreaterThanOrEqual"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.GreaterThanOrEqual)??"GreaterThanOrEqual"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="LessThan"}),onClick:a[11]||(a[11]=u=>r("LessThan"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.LessThan)??"LessThan"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="LessThanOrEqual"}),onClick:a[12]||(a[12]=u=>r("LessThanOrEqual"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.LessThanOrEqual)??"LessThanOrEqual"),3)],64)):o.column.type==="date"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="Equal"}),onClick:a[13]||(a[13]=u=>r("Equal"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.Equal)??"Equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="NotEqual"}),onClick:a[14]||(a[14]=u=>r("NotEqual"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.NotEqual)??"Not equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="GreaterThan"}),onClick:a[15]||(a[15]=u=>r("GreaterThan"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.GreaterThan)??"GreaterThan"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="LessThan"}),onClick:a[16]||(a[16]=u=>r("LessThan"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.LessThan)??"LessThan"),3)],64)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="IsNull"}),onClick:a[17]||(a[17]=u=>r("IsNull"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.IsNull)??"IsNull"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:o.column.condition==="IsNotNull"}),onClick:a[18]||(a[18]=u=>r("IsNotNull"))},e.toDisplayString((o.columnFilterLang&&o.columnFilterLang.IsNotNull)??"IsNotNull"),3)])]))}}),bl={},yl={version:"1.1",viewBox:"0 0 17 12",xmlns:"http://www.w3.org/2000/svg"},kl=e.createElementVNode("g",{fill:"none","fill-rule":"evenodd"},[e.createElementVNode("g",{transform:"translate(-9 -11)",fill:"currentColor","fill-rule":"nonzero"},[e.createElementVNode("path",{d:"m25.576 11.414c0.56558 0.55188 0.56558 1.4439 0 1.9961l-9.404 9.176c-0.28213 0.27529-0.65247 0.41385-1.0228 0.41385-0.37034 0-0.74068-0.13855-1.0228-0.41385l-4.7019-4.588c-0.56584-0.55188-0.56584-1.4442 0-1.9961 0.56558-0.55214 1.4798-0.55214 2.0456 0l3.679 3.5899 8.3812-8.1779c0.56558-0.55214 1.4798-0.55214 2.0456 0z"})])],-1),wl=[kl];function Cl(t,l){return e.openBlock(),e.createElementBlock("svg",yl,wl)}const Jt=pe(bl,[["render",Cl]]),xl={},Sl={viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor","stroke-width":"3",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:"css-i6dzq1"},El=e.createElementVNode("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),zl=[El];function Bl(t,l){return e.openBlock(),e.createElementBlock("svg",Sl,zl)}const Nl=pe(xl,[["render",Bl]]),Ll={},Ml={viewBox:"0 0 24 24",width:"24",height:"24",stroke:"currentColor","stroke-width":"1.5",fill:"none","stroke-linecap":"round","stroke-linejoin":"round",class:"css-i6dzq1"},Fl=e.createElementVNode("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"},null,-1),Tl=[Fl];function Pl(t,l){return e.openBlock(),e.createElementBlock("svg",Ml,Tl)}const _l=pe(Ll,[["render",Pl]]),Il={key:"hdrrow"},Vl={class:"bh-checkbox"},Ol=["onClick"],$l={width:"16",height:"16",viewBox:"0 0 14 14",fill:"none"},Rl={key:0,class:"bh-filter bh-relative"},Dl=["onUpdate:modelValue"],Al=["onUpdate:modelValue"],Wl=["onUpdate:modelValue"],Hl=["onUpdate:modelValue"],ql=e.createElementVNode("option",{value:void 0},"All",-1),jl=e.createElementVNode("option",{value:!0},"True",-1),Ul=e.createElementVNode("option",{value:!1},"False",-1),Gl=[ql,jl,Ul],Ql=["onClick"],Kl={name:"columnHeader"},Lt=e.defineComponent({...Kl,props:["all","expandedrows","currentSortColumn","currentSortDirection","isOpenFilter","isFooter","checkAll","columnFilterLang"],emits:["selectAll","sortChange","filterChange","toggleFilterMenu"],setup(t,{emit:l}){const o=e.ref(null),i=t,n=l,r=()=>{o.value&&(o.value.indeterminate=i.checkAll!==0?!i.checkAll:!1,o.value.checked=i.checkAll)};return e.watch(()=>i.checkAll,r),(s,a)=>(e.openBlock(),e.createElementBlock("tr",Il,[i.all.hasCheckbox?(e.openBlock(),e.createElementBlock("th",{key:"chkall",style:e.normalizeStyle({width:i.all.checkboxColumnWidth+" !important",minWidth:i.all.checkboxColumnWidth+" !important"}),class:e.normalizeClass({"bh-sticky bh-bg-blue-light bh-z-[1]":i.all.stickyHeader||i.all.stickyFirstColumn,"bh-top-0":i.all.stickyHeader,"bh-left-0":i.all.stickyFirstColumn})},[e.createElementVNode("div",Vl,[e.createElementVNode("input",{ref_key:"selectedAll",ref:o,type:"checkbox",onClick:a[0]||(a[0]=e.withModifiers(u=>{var h;return n("selectAll",(h=u==null?void 0:u.target)==null?void 0:h.checked)},["stop"]))},null,512),e.createElementVNode("div",null,[e.createVNode(Jt,{class:"check"}),e.createVNode(Nl,{class:"intermediate"})])])],6)):e.createCommentVNode("",!0),i.all.hasRightPanel?(e.openBlock(),e.createElementBlock("th",{key:1,style:e.normalizeStyle({width:i.all.rightPanelColumnWidth+" !important",minWidth:i.all.rightPanelColumnWidth+" !important"}),class:e.normalizeClass({"bh-sticky bh-bg-blue-light bh-z-[1]":i.all.stickyHeader||i.all.stickyFirstColumn,"bh-top-0":i.all.stickyHeader,"bh-left-0":i.all.stickyFirstColumn})},null,6)):e.createCommentVNode("",!0),i.all.hasSubtable?(e.openBlock(),e.createElementBlock("th",{key:2,style:e.normalizeStyle({width:i.all.subtableColumnWidth+" !important",minWidth:i.all.subtableColumnWidth+" !important"})},[i.all.expandall?(e.openBlock(),e.createBlock(Yt,{key:0,expandedrows:i.expandedrows,expandall:i.all.expandall},null,8,["expandedrows","expandall"])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.all.columns,(u,h)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[u.hide?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("th",{key:u.field,class:e.normalizeClass(["bh-select-none bh-z-[1]",[i.all.sortable&&u.sort?"bh-cursor-pointer":"",h===0&&i.all.stickyFirstColumn?"bh-sticky bh-left-0 bh-bg-blue-light":"",i.all.hasCheckbox&&h===0&&i.all.stickyFirstColumn?"bh-left-[52px]":""]]),style:e.normalizeStyle({width:u.width,"min-width":u.minWidth,"max-width":u.maxWidth})},[e.createElementVNode("div",{class:e.normalizeClass(["bh-flex bh-items-center",[u.headerClass?u.headerClass:""]]),onClick:f=>i.all.sortable&&u.sort&&n("sortChange",u.field)},[e.createTextVNode(e.toDisplayString(u.title)+" ",1),i.all.sortable&&u.sort?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["bh-ml-3 bh-sort bh-flex bh-items-center",[i.currentSortColumn,i.currentSortDirection]])},[(e.openBlock(),e.createElementBlock("svg",$l,[e.createElementVNode("polygon",{points:"3.11,6.25 10.89,6.25 7,1.75 ",fill:"currentColor",class:e.normalizeClass(["bh-text-black/20",[t.currentSortColumn===u.field&&t.currentSortDirection==="asc"?"!bh-text-primary":""]])},null,2),e.createElementVNode("polygon",{points:"7,12.25 10.89,7.75 3.11,7.75 ",fill:"currentColor",class:e.normalizeClass(["bh-text-black/20",[t.currentSortColumn===u.field&&t.currentSortDirection==="desc"?"!bh-text-primary":""]])},null,2)]))],2)):e.createCommentVNode("",!0)],10,Ol),i.all.columnFilter&&!i.isFooter?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[u.filter?(e.openBlock(),e.createElementBlock("div",Rl,[u.type==="string"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:0,"onUpdate:modelValue":f=>u.value=f,type:"text",class:"bh-form-control",onKeyup:a[1]||(a[1]=f=>n("filterChange"))},null,40,Dl)),[[e.vModelText,u.value,void 0,{trim:!0}]]):e.createCommentVNode("",!0),u.type==="number"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:1,"onUpdate:modelValue":f=>u.value=f,type:"number",class:"bh-form-control",onKeyup:a[2]||(a[2]=f=>n("filterChange"))},null,40,Al)),[[e.vModelText,u.value,void 0,{number:!0,trim:!0}]]):u.type==="date"?e.withDirectives((e.openBlock(),e.createElementBlock("input",{key:2,"onUpdate:modelValue":f=>u.value=f,type:"date",class:"bh-form-control",onChange:a[3]||(a[3]=f=>n("filterChange"))},null,40,Wl)),[[e.vModelText,u.value]]):u.type==="bool"?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:3,"onUpdate:modelValue":f=>u.value=f,class:"bh-form-control",onChange:a[4]||(a[4]=f=>n("filterChange")),onClick:a[5]||(a[5]=(...f)=>i.isOpenFilter&&i.isOpenFilter(...f))},Gl,40,Hl)),[[e.vModelSelect,u.value]]):e.createCommentVNode("",!0),u.type!=="bool"?(e.openBlock(),e.createElementBlock("button",{key:4,type:"button",onClick:e.withModifiers(f=>n("toggleFilterMenu",u),["stop"])},[e.createVNode(_l,{class:"bh-w-4"})],8,Ql)):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(gl,{column:u,type:u.type,columnFilterLang:i.columnFilterLang,onClose:a[6]||(a[6]=f=>n("toggleFilterMenu",null)),onFilterChange:a[7]||(a[7]=f=>n("filterChange"))},null,8,["column","type","columnFilterLang"]),[[e.vShow,i.isOpenFilter===u.field]])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],6))],64))),256))]))}}),Xl={class:"bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal"},Yl={class:"bh-flex bh-h-full"},Jl=e.createElementVNode("span",null,"##Left Menu Slot##",-1),Zl={class:"menu-resize-controls bh-absolute bh-right-0 bh-top-1/2 bh-transform -bh-translate-y-1/2 bh-z-10 bh-bg-gray-100 bh-rounded-l bh-shadow-md bh-select-none"},ei=e.createElementVNode("path",{d:"M7 1L1 6L7 11",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),ti=[ei],ni={class:"bh-flex-1",style:{overflow:"auto","min-width":"0",width:"100%"}},oi=e.createElementVNode("span",null,"##Top Menu Slot##",-1),li=e.createElementVNode("span",null,"##Table Header Area Slot##",-1),ii=e.createElementVNode("span",null,"##Table Action Header Slot##",-1),ri=["onClick"],ai={class:"bh-checkbox"},si=["value"],ci=["innerHTML"],ui=["onClick"],di=["colspan"],fi=["colspan"],hi=e.createElementVNode("div",{class:"bh-skeleton-box bh-h-8"},null,-1),mi=[hi],pi=["colspan"],vi={class:"bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4"},gi={class:"bh-pagination-info bh-flex bh-items-center"},bi={class:"bh-mr-2"},yi=["value"],ki={class:"bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1"},wi=["innerHTML"],Ci={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},xi=e.createElementVNode("g",{fill:"currentColor","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M8.354 1.646a.5.5 0 0 1 0 .708L2.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"}),e.createElementVNode("path",{d:"M12.354 1.646a.5.5 0 0 1 0 .708L6.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"})],-1),Si=[xi],Ei=["innerHTML"],zi={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Bi=e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z"},null,-1),Ni=[Bi],Li=["onClick"],Mi=["innerHTML"],Fi={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Ti=e.createElementVNode("path",{fill:"currentColor","fill-rule":"evenodd",d:"M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8L4.646 2.354a.5.5 0 0 1 0-.708z"},null,-1),Pi=[Ti],_i=["innerHTML"],Ii={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Vi=e.createElementVNode("g",{fill:"currentColor","fill-rule":"evenodd"},[e.createElementVNode("path",{d:"M3.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L9.293 8L3.646 2.354a.5.5 0 0 1 0-.708z"}),e.createElementVNode("path",{d:"M7.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L13.293 8L7.646 2.354a.5.5 0 0 1 0-.708z"})],-1),Oi=[Vi],$i={name:"Vue3Datatable"},Ri=e.defineComponent({...$i,props:{loading:{type:Boolean,default:!1},isServerMode:{type:Boolean,default:!1},skin:{default:"bh-table-striped bh-table-hover"},totalRows:{default:0},rows:{default:()=>[]},footerRows:{default:()=>[]},columns:{default:()=>[]},hasCheckbox:{type:Boolean,default:!1},hasSubtable:{type:Boolean,default:!1},hasRightPanel:{type:Boolean,default:!1},checkboxColumnWidth:{default:"40px"},rightPanelColumnWidth:{default:"40px"},subtableColumnWidth:{default:"40px"},expandall:{type:Boolean,default:!1},search:{default:""},columnChooser:{type:Boolean,default:!1},page:{default:1},pageSize:{default:10},pageSizeOptions:{default:()=>[10,20,30,50,100]},showPageSize:{type:Boolean,default:!0},rowClass:{default:[]},cellClass:{default:[]},sortable:{type:Boolean,default:!1},sortColumn:{default:"id"},sortDirection:{default:"asc"},columnFilter:{type:Boolean,default:!1},columnFilterLang:{default:null},pagination:{type:Boolean,default:!0},showNumbers:{type:Boolean,default:!0},showNumbersCount:{default:5},showFirstPage:{type:Boolean,default:!0},showLastPage:{type:Boolean,default:!0},firstArrow:{default:""},lastArrow:{default:""},nextArrow:{default:""},previousArrow:{default:""},paginationInfo:{default:"Showing {0} to {1} of {2} entries"},noDataContent:{default:"There is no data that match your query."},stickyHeader:{type:Boolean,default:!1},stickyFooter:{type:Boolean,default:!1},height:{default:"500px"},stickyFirstColumn:{type:Boolean,default:!1},cloneHeaderInFooter:{type:Boolean,default:!1},selectRowOnClick:{type:Boolean,default:!1},scrollbarstyle:{},scrollbarautohide:{type:Boolean,default:!0},scrollbarfixedthumb:{type:Boolean,default:!1},scrollbarautoexpand:{type:Boolean,default:!1},scrollbardirection:{default:"both"},enableleftmenu:{type:Boolean},enabletopmenu:{type:Boolean},enableHeaderArea:{type:Boolean,default:!1},headerAreaHeight:{default:"80px"},leftmenuMinWidth:{default:50},leftmenuDefaultWidth:{default:250},topmenusize:{},topmenumax:{},topmenumin:{},skeletonloader:{type:Boolean},enableloadinganimation:{type:Boolean},enablefooterpagination:{type:Boolean},footerOffset:{default:0},tableRightOffset:{default:0},tableLeftOffset:{default:5},initialLeftMenuState:{type:Boolean,default:void 0}},emits:["change","sortChange","searchChange","pageChange","pageSizeChange","rowSelect","filterChange","rowClick","rowDBClick","currentTopMenuSize","currentLeftMenuSize","rowRightPanelClick"],setup(t,{expose:l,emit:o}){var it,rt;const i=e.useSlots(),n=t;for(const c of n.columns||[]){const v=((it=c.type)==null?void 0:it.toLowerCase())||"string";c.type=v,c.isUnique=c.isUnique!==void 0?c.isUnique:!1,c.hide=c.hide!==void 0?c.hide:!1,c.filter=c.filter!==void 0?c.filter:!0,c.search=c.search!==void 0?c.search:!0,c.sort=c.sort!==void 0?c.sort:!0,c.html=c.html!==void 0?c.html:!1,c.condition=!v||v==="string"?"Contains":"Equal"}const r=e.ref([]),s=e.ref(n.page),a=e.ref(n.pagination?n.pageSize:(rt=n.rows)==null?void 0:rt.length),u=n.pageSize,h=e.ref(n.sortColumn),f=n.sortColumn,p=e.ref(n.sortDirection),E=n.sortDirection,N=e.ref(n.totalRows),L=e.ref([]),T=e.ref(null),y=e.ref(n.loading),_=e.ref(n.search);JSON.parse(JSON.stringify(n.columns));const O=e.ref(null),$=e.ref(null);let F=e.ref(0);const W=e.ref(230),w=e.ref(n.leftmenuDefaultWidth),C=e.ref(!1),I=e.ref(null),R=()=>{if(I.value){const c=C.value?n.leftmenuMinWidth:n.leftmenuDefaultWidth;I.value.style.cssText=`
|
|
2
2
|
width: ${w.value}px !important;
|
|
3
3
|
min-width: ${c}px !important;
|
|
4
4
|
max-width: ${c}px !important;
|
package/dist/vue3-datatable.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.expandbtn[data-v-
|
|
1
|
+
.expandbtn[data-v-96f3f821]{cursor:pointer}.rightpanelbtn[data-v-d739c6bf]{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px}.scrollbar__thumbPlaceholder{position:absolute;display:inline-flex;justify-content:center;align-items:center;-webkit-user-select:none;user-select:none;cursor:pointer;contain:strict;transition:opacity 275ms ease}.scrollbar__thumbPlaceholder--vertical{top:3px;right:0;width:var(--1fb98f78)}.scrollbar__thumbPlaceholder--horizontal{left:3px;bottom:0;height:var(--1fb98f78)}.scrollbar__thumbPlaceholder--autoHide{opacity:0}.scrollbar__thumbPlaceholder--scrolling{opacity:1}.scrollbar__thumbPlaceholder:hover>.scrollbar__thumb{opacity:1}.scrollbar__thumbPlaceholder--autoExpand:hover>.scrollbar__thumb--vertical{transform:scaleX(1.5)}.scrollbar__thumbPlaceholder--autoExpand:hover>.scrollbar__thumb--horizontal{transform:scaleY(1.5)}.scrollbar__thumb{background-color:#091e4280;opacity:.6;transition:opacity 275ms ease,transform .2s ease;contain:strict;border-radius:4px}.scrollbar__thumb--vertical{width:66.667%;height:100%}.scrollbar__thumb--horizontal{height:66.667%;width:100%}.scrollbar__shepherd{position:absolute;contain:strict}.scrollbar__shepherd--vertical{width:0%;height:1000;top:0;right:0}.scrollbar__shepherd--horizontal{width:100%;height:0%;bottom:0;left:0}.scrollbar__wrapper{position:relative;height:fit-content}.scrollbar__wrapper:hover>.scrollbar__thumbPlaceholder{opacity:1}.scrollbar__scroller{overflow:auto;scrollbar-width:none;-ms-overflow-style:none;scroll-behavior:auto!important}.scrollbar__scroller::-webkit-scrollbar{display:none}.scrollbar__content--vertical{display:block}.scrollbar__content--vertical.scrollbar__content--fixedThumb{display:inline-block}.scrollbar__content--horizontal{display:inline-flex}.splitpanes{display:flex;width:100%;height:100%}.splitpanes--vertical{flex-direction:row}.splitpanes--horizontal{flex-direction:column}.splitpanes--dragging .splitpanes__pane{-webkit-user-select:none;user-select:none;pointer-events:none}.splitpanes__pane{width:100%;height:100%;overflow:hidden}.splitpanes--vertical .splitpanes__pane{transition:width .2s ease-out}.splitpanes--horizontal .splitpanes__pane{transition:height .2s ease-out}.splitpanes--dragging .splitpanes__pane{transition:none}.splitpanes__splitter{touch-action:none}.splitpanes--vertical>.splitpanes__splitter{min-width:1px;cursor:col-resize}.splitpanes--horizontal>.splitpanes__splitter{min-height:1px;cursor:row-resize}.splitpanes.default-theme .splitpanes__pane{background-color:#f2f2f2}.splitpanes.default-theme .splitpanes__splitter{background-color:#fff;box-sizing:border-box;position:relative;flex-shrink:0}.splitpanes.default-theme .splitpanes__splitter:before,.splitpanes.default-theme .splitpanes__splitter:after{content:"";position:absolute;top:50%;left:50%;background-color:#00000026;transition:background-color .3s}.splitpanes.default-theme .splitpanes__splitter:hover:before,.splitpanes.default-theme .splitpanes__splitter:hover:after{background-color:#00000040}.splitpanes.default-theme .splitpanes__splitter:first-child{cursor:auto}.default-theme.splitpanes .splitpanes .splitpanes__splitter{z-index:1}.default-theme.splitpanes--vertical>.splitpanes__splitter,.default-theme .splitpanes--vertical>.splitpanes__splitter{width:7px;border-left:1px solid #eee;margin-left:-1px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{transform:translateY(-50%);width:1px;height:30px}.default-theme.splitpanes--vertical>.splitpanes__splitter:before,.default-theme .splitpanes--vertical>.splitpanes__splitter:before{margin-left:-2px}.default-theme.splitpanes--vertical>.splitpanes__splitter:after,.default-theme .splitpanes--vertical>.splitpanes__splitter:after{margin-left:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter,.default-theme .splitpanes--horizontal>.splitpanes__splitter{height:7px;border-top:1px solid #eee;margin-top:-1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{transform:translate(-50%);width:30px;height:1px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:before,.default-theme .splitpanes--horizontal>.splitpanes__splitter:before{margin-top:-2px}.default-theme.splitpanes--horizontal>.splitpanes__splitter:after,.default-theme .splitpanes--horizontal>.splitpanes__splitter:after{margin-top:1px}.left-menu-container{position:relative;flex-shrink:0!important}.menu-resize-controls{position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:10;background:#f0f0f0;border-radius:3px 0 0 3px;box-shadow:-2px 0 5px #0000001a}.menu-resize-controls button{width:16px;height:40px;display:flex;justify-content:center;align-items:center;border:none;background:transparent;cursor:pointer;-webkit-user-select:none;user-select:none}
|
package/dist/vue3-datatable.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { onMounted as Le, nextTick as _e, getCurrentScope as
|
|
1
|
+
import { onMounted as Le, nextTick as _e, getCurrentScope as Un, onScopeDispose as Vn, unref as K, getCurrentInstance as zt, computed as X, ref as B, watch as ne, defineComponent as we, useCssVars as Gn, shallowRef as me, onUnmounted as Ze, openBlock as m, createElementBlock as w, Fragment as G, withDirectives as ve, createElementVNode as L, normalizeClass as T, normalizeStyle as Z, withModifiers as ye, setBlockTracking as Bt, vShow as vt, createCommentVNode as R, mergeProps as Qn, renderSlot as ae, renderList as pe, createVNode as ie, reactive as Kn, watchEffect as Xn, useSlots as un, onBeforeUnmount as Lt, provide as Ce, createBlock as ue, resolveDynamicComponent as Yn, inject as Me, h as mt, toRef as Jn, toDisplayString as q, createTextVNode as gt, vModelText as ct, vModelSelect as cn, withCtx as Pe, vModelCheckbox as Zn } from "vue";
|
|
2
2
|
function el(e) {
|
|
3
|
-
return
|
|
3
|
+
return Un() ? (Vn(e), !0) : !1;
|
|
4
4
|
}
|
|
5
5
|
function tl(e) {
|
|
6
6
|
return typeof e == "function" ? e() : K(e);
|
|
@@ -171,8 +171,8 @@ function pn(e, l, n) {
|
|
|
171
171
|
return f = S, r = setTimeout(A, l), d ? _(S) : a;
|
|
172
172
|
}
|
|
173
173
|
function $(S) {
|
|
174
|
-
var k = S - u, W = S - f,
|
|
175
|
-
return p ? Ol(
|
|
174
|
+
var k = S - u, W = S - f, U = l - k;
|
|
175
|
+
return p ? Ol(U, i - W) : U;
|
|
176
176
|
}
|
|
177
177
|
function y(S) {
|
|
178
178
|
var k = S - u, W = S - f;
|
|
@@ -249,8 +249,8 @@ function ql(e, { expose: l }) {
|
|
|
249
249
|
Ze(f);
|
|
250
250
|
const d = vn((k) => {
|
|
251
251
|
k.stopPropagation(), k.preventDefault();
|
|
252
|
-
const W = n.type === "horizontal" ? "pageX" : "pageY",
|
|
253
|
-
n.wrapperEl.scrollTo({ [n.type === "horizontal" ? "left" : "top"]: a.scrollPos +
|
|
252
|
+
const W = n.type === "horizontal" ? "pageX" : "pageY", U = (k[W] - a[W]) / n.scrollInfo.wrapperMainSize * n.scrollInfo.contentMainSize;
|
|
253
|
+
n.wrapperEl.scrollTo({ [n.type === "horizontal" ? "left" : "top"]: a.scrollPos + U, behavior: "auto" });
|
|
254
254
|
}, 16), p = () => {
|
|
255
255
|
u(), i.value.removeEventListener("pointermove", d), i.value.removeEventListener("pointerup", p), i.value.removeEventListener("pointercancel", p), i.value.removeEventListener("mousewheel", p), document.removeEventListener("mousewheel", p), typeof r == "number" && i.value.releasePointerCapture(r), r = null;
|
|
256
256
|
}, E = (k) => {
|
|
@@ -285,8 +285,8 @@ function ql(e, { expose: l }) {
|
|
|
285
285
|
position: j.value ? "fixed" : "absolute",
|
|
286
286
|
[e.type === "vertical" ? "top" : "left"]: j.value ? `${e.scrollInfo.boundaryDistance + 3}px` : "3px"
|
|
287
287
|
}),
|
|
288
|
-
ref: (
|
|
289
|
-
ee.thumbEl =
|
|
288
|
+
ref: (U, ee) => {
|
|
289
|
+
ee.thumbEl = U, i.value = U;
|
|
290
290
|
},
|
|
291
291
|
onPointerdown: ye(E, ["stop"])
|
|
292
292
|
}, [
|
|
@@ -298,8 +298,8 @@ function ql(e, { expose: l }) {
|
|
|
298
298
|
]),
|
|
299
299
|
n.fixedThumb ? ve((m(), w("div", {
|
|
300
300
|
key: 0,
|
|
301
|
-
ref: (
|
|
302
|
-
ee.shepherdEl =
|
|
301
|
+
ref: (U, ee) => {
|
|
302
|
+
ee.shepherdEl = U, y.value = U;
|
|
303
303
|
},
|
|
304
304
|
class: T(["scrollbar__shepherd", `scrollbar__shepherd--${e.type}`])
|
|
305
305
|
}, null, 2)), [
|
|
@@ -319,15 +319,15 @@ const jl = /* @__PURE__ */ we(mn(nt({}, Hl), {
|
|
|
319
319
|
wrapperEl: null
|
|
320
320
|
},
|
|
321
321
|
setup: ql
|
|
322
|
-
})),
|
|
322
|
+
})), Ul = {
|
|
323
323
|
wait: 333,
|
|
324
324
|
type: "debounce"
|
|
325
325
|
};
|
|
326
|
-
function
|
|
326
|
+
function Ut(...e) {
|
|
327
327
|
const l = "value" in (e == null ? void 0 : e[0]);
|
|
328
328
|
let n;
|
|
329
329
|
l ? n = e == null ? void 0 : e[1] : n = e == null ? void 0 : e[0];
|
|
330
|
-
const { wait: o, type: t, callback: i } = nt(nt({},
|
|
330
|
+
const { wait: o, type: t, callback: i } = nt(nt({}, Ul), n), a = l ? e[0] : me(null), r = Kn({ left: 0, top: 0, right: 0, bottom: 0, width: 0, height: 0, x: 0, y: 0 }), u = () => {
|
|
331
331
|
const E = a.value.getBoundingClientRect();
|
|
332
332
|
r.left = E.left, r.top = E.top, r.right = E.right, r.bottom = E.bottom, r.width = E.width, r.height = E.height, r.x = E.x, r.y = E.y, i == null || i();
|
|
333
333
|
};
|
|
@@ -339,7 +339,7 @@ function Vt(...e) {
|
|
|
339
339
|
a.value && (p(), f = u, t === "throttle" && o >= 4 ? f = vn(f, o) : t === "debounce" && o >= 4 && (f = pn(f, o)), window.addEventListener("resize", f), d = new ResizeObserver(f), d.observe(a.value));
|
|
340
340
|
}), Ze(p), l ? r : [a, r];
|
|
341
341
|
}
|
|
342
|
-
const
|
|
342
|
+
const Vl = {
|
|
343
343
|
name: "CustomScrollbar",
|
|
344
344
|
inheritAttrs: !1
|
|
345
345
|
};
|
|
@@ -360,7 +360,7 @@ function Gl(e, { expose: l, emit: n }) {
|
|
|
360
360
|
return (W = k == null ? void 0 : k.classList) == null ? void 0 : W.contains(`scrollbar__thumbPlaceholder--${S}`);
|
|
361
361
|
});
|
|
362
362
|
});
|
|
363
|
-
const u =
|
|
363
|
+
const u = Ut(a, { wait: o.throttleWait, type: o.throttleType, callback: E }), f = Ut(r, { wait: o.throttleWait, type: o.throttleType, callback: E });
|
|
364
364
|
let d = me(0), p = me(0);
|
|
365
365
|
function E() {
|
|
366
366
|
d.value = Math.max(a.value.scrollHeight - u.height | 0, 0), p.value = Math.max(a.value.scrollWidth - u.width | 0, 0);
|
|
@@ -426,7 +426,7 @@ function Gl(e, { expose: l, emit: n }) {
|
|
|
426
426
|
}, null, 8, ["autoExpand", "autoHide", "autoHideDelay", "fixedThumb", "type", "scrollInfo", "thumbWidth", "wrapperEl"])), 64))
|
|
427
427
|
], 6));
|
|
428
428
|
}
|
|
429
|
-
const Ql = /* @__PURE__ */ we(mn(nt({},
|
|
429
|
+
const Ql = /* @__PURE__ */ we(mn(nt({}, Vl), {
|
|
430
430
|
props: {
|
|
431
431
|
wrapperClass: null,
|
|
432
432
|
wrapperStyle: null,
|
|
@@ -446,7 +446,7 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
|
|
|
446
446
|
},
|
|
447
447
|
emits: ["wrapperResize", "contentResize", "scroll"],
|
|
448
448
|
setup: Gl
|
|
449
|
-
})),
|
|
449
|
+
})), Vt = {
|
|
450
450
|
__name: "splitpanes",
|
|
451
451
|
props: {
|
|
452
452
|
horizontal: { type: Boolean, default: !1 },
|
|
@@ -527,15 +527,15 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
|
|
|
527
527
|
}, k = (c) => {
|
|
528
528
|
const g = d.value.activeSplitter;
|
|
529
529
|
let z = {
|
|
530
|
-
prevPanesSize:
|
|
530
|
+
prevPanesSize: U(g),
|
|
531
531
|
nextPanesSize: ee(g),
|
|
532
532
|
prevReachedMinPanes: 0,
|
|
533
533
|
nextReachedMinPanes: 0
|
|
534
534
|
};
|
|
535
535
|
const b = 0 + (o.pushOtherPanes ? 0 : z.prevPanesSize), x = 100 - (o.pushOtherPanes ? 0 : z.nextPanesSize), M = Math.max(Math.min(S(c), x), b);
|
|
536
536
|
let N = [g, g + 1], le = i.value[N[0]] || null, F = i.value[N[1]] || null;
|
|
537
|
-
const xe = le.max < 100 && M >= le.max + z.prevPanesSize,
|
|
538
|
-
if (xe ||
|
|
537
|
+
const xe = le.max < 100 && M >= le.max + z.prevPanesSize, Ue = F.max < 100 && M <= 100 - (F.max + ee(g + 1));
|
|
538
|
+
if (xe || Ue) {
|
|
539
539
|
xe ? (le.size = le.max, F.size = Math.max(100 - le.max - z.prevPanesSize - z.nextPanesSize, 0)) : (le.size = Math.max(100 - F.max - z.prevPanesSize - ee(g + 1), 0), F.size = F.max);
|
|
540
540
|
return;
|
|
541
541
|
}
|
|
@@ -549,14 +549,14 @@ const Ql = /* @__PURE__ */ we(mn(nt({}, Ul), {
|
|
|
549
549
|
const z = d.value.activeSplitter, b = [z, z + 1];
|
|
550
550
|
return g < c.prevPanesSize + i.value[b[0]].min && (b[0] = at(z).index, c.prevReachedMinPanes = 0, b[0] < z && i.value.forEach((x, M) => {
|
|
551
551
|
M > b[0] && M <= z && (x.size = x.min, c.prevReachedMinPanes += x.min);
|
|
552
|
-
}), c.prevPanesSize =
|
|
552
|
+
}), c.prevPanesSize = U(b[0]), b[0] === void 0) ? (c.prevReachedMinPanes = 0, i.value[0].size = i.value[0].min, i.value.forEach((x, M) => {
|
|
553
553
|
M > 0 && M <= z && (x.size = x.min, c.prevReachedMinPanes += x.min);
|
|
554
554
|
}), i.value[b[1]].size = 100 - c.prevReachedMinPanes - i.value[0].min - c.prevPanesSize - c.nextPanesSize, null) : g > 100 - c.nextPanesSize - i.value[b[1]].min && (b[1] = oe(z).index, c.nextReachedMinPanes = 0, b[1] > z + 1 && i.value.forEach((x, M) => {
|
|
555
555
|
M > z && M < b[1] && (x.size = x.min, c.nextReachedMinPanes += x.min);
|
|
556
556
|
}), c.nextPanesSize = ee(b[1] - 1), b[1] === void 0) ? (c.nextReachedMinPanes = 0, i.value.forEach((x, M) => {
|
|
557
557
|
M < r.value - 1 && M >= z + 1 && (x.size = x.min, c.nextReachedMinPanes += x.min);
|
|
558
558
|
}), i.value[b[0]].size = 100 - c.prevPanesSize - ee(b[0] - 1), null) : { sums: c, panesToResize: b };
|
|
559
|
-
},
|
|
559
|
+
}, U = (c) => i.value.reduce((g, z, b) => g + (b < c ? z.size : 0), 0), ee = (c) => i.value.reduce((g, z, b) => g + (b > c + 1 ? z.size : 0), 0), at = (c) => [...i.value].reverse().find((g) => g.index < c && g.size > g.min) || {}, oe = (c) => i.value.find((g) => g.index > c + 1 && g.size > g.min) || {}, Be = () => {
|
|
560
560
|
var c;
|
|
561
561
|
const g = Array.from(((c = u.value) == null ? void 0 : c.children) || []);
|
|
562
562
|
for (const z of g) {
|
|
@@ -1350,12 +1350,12 @@ function _o(e, l, n, o) {
|
|
|
1350
1350
|
}), E = [];
|
|
1351
1351
|
}
|
|
1352
1352
|
function O(S, k, W) {
|
|
1353
|
-
const
|
|
1353
|
+
const U = k !== "success";
|
|
1354
1354
|
switch (E = E.filter((ee) => ee !== S), u) {
|
|
1355
1355
|
case "pending":
|
|
1356
1356
|
break;
|
|
1357
1357
|
case "failed":
|
|
1358
|
-
if (
|
|
1358
|
+
if (U || !e.dataAfterTimeout)
|
|
1359
1359
|
return;
|
|
1360
1360
|
break;
|
|
1361
1361
|
default:
|
|
@@ -1365,7 +1365,7 @@ function _o(e, l, n, o) {
|
|
|
1365
1365
|
d = W, H();
|
|
1366
1366
|
return;
|
|
1367
1367
|
}
|
|
1368
|
-
if (
|
|
1368
|
+
if (U) {
|
|
1369
1369
|
d = W, E.length || (a.length ? Y() : H());
|
|
1370
1370
|
return;
|
|
1371
1371
|
}
|
|
@@ -1395,8 +1395,8 @@ function _o(e, l, n, o) {
|
|
|
1395
1395
|
const k = {
|
|
1396
1396
|
status: "pending",
|
|
1397
1397
|
resource: S,
|
|
1398
|
-
callback: (W,
|
|
1399
|
-
O(k, W,
|
|
1398
|
+
callback: (W, U) => {
|
|
1399
|
+
O(k, W, U);
|
|
1400
1400
|
}
|
|
1401
1401
|
};
|
|
1402
1402
|
E.push(k), f++, p = setTimeout(Y, e.rotate), n(S, l, k.callback);
|
|
@@ -1700,7 +1700,7 @@ function jo(e, l) {
|
|
|
1700
1700
|
}
|
|
1701
1701
|
});
|
|
1702
1702
|
}
|
|
1703
|
-
function
|
|
1703
|
+
function Uo(e, l = 0) {
|
|
1704
1704
|
const n = e.replace(/^-?[0-9.]*/, "");
|
|
1705
1705
|
function o(t) {
|
|
1706
1706
|
for (; t < 0; )
|
|
@@ -1726,7 +1726,7 @@ function Vo(e, l = 0) {
|
|
|
1726
1726
|
}
|
|
1727
1727
|
return l;
|
|
1728
1728
|
}
|
|
1729
|
-
function
|
|
1729
|
+
function Vo(e, l) {
|
|
1730
1730
|
let n = e.indexOf("xlink:") === -1 ? "" : ' xmlns:xlink="http://www.w3.org/1999/xlink"';
|
|
1731
1731
|
for (const o in l)
|
|
1732
1732
|
n += " " + o + '="' + l[o] + '"';
|
|
@@ -1800,7 +1800,7 @@ const an = (e, l) => {
|
|
|
1800
1800
|
i.color = y;
|
|
1801
1801
|
break;
|
|
1802
1802
|
case "rotate":
|
|
1803
|
-
typeof y == "string" ? n[$] =
|
|
1803
|
+
typeof y == "string" ? n[$] = Uo(y) : typeof y == "number" && (n[$] = y);
|
|
1804
1804
|
break;
|
|
1805
1805
|
case "ariaHidden":
|
|
1806
1806
|
case "aria-hidden":
|
|
@@ -1821,7 +1821,7 @@ const an = (e, l) => {
|
|
|
1821
1821
|
let $ = 0, y = l.id;
|
|
1822
1822
|
return typeof y == "string" && (y = y.replace(/-/g, "_")), o.innerHTML = vo(u.body, y ? () => y + "ID" + $++ : "iconifyVue"), mt("svg", o);
|
|
1823
1823
|
}
|
|
1824
|
-
const { body: d, width: p, height: E } = e, _ = t === "mask" || (t === "bg" ? !1 : d.indexOf("currentColor") !== -1), I =
|
|
1824
|
+
const { body: d, width: p, height: E } = e, _ = t === "mask" || (t === "bg" ? !1 : d.indexOf("currentColor") !== -1), I = Vo(d, {
|
|
1825
1825
|
...f,
|
|
1826
1826
|
width: p + "",
|
|
1827
1827
|
height: E + ""
|
|
@@ -1958,14 +1958,9 @@ const Jo = {
|
|
|
1958
1958
|
}
|
|
1959
1959
|
}
|
|
1960
1960
|
const i = B(-1);
|
|
1961
|
-
return ne(
|
|
1962
|
-
() =>
|
|
1963
|
-
|
|
1964
|
-
var u;
|
|
1965
|
-
new Set(n.value.map((f) => f.isExpanded)).size > 1 ? (i.value = -1, o.value = !0) : (u = n.value.at(0)) != null && u.isExpanded ? (i.value = 0, o.value = !0) : (i.value = 1, o.value = !1);
|
|
1966
|
-
},
|
|
1967
|
-
{ deep: !0 }
|
|
1968
|
-
), (a, r) => {
|
|
1961
|
+
return ne(() => n.value, () => {
|
|
1962
|
+
l.expandall && new Set(n.value.map((a) => a.isExpanded)).size > 1 && (i.value = -1, o.value = !0);
|
|
1963
|
+
}, { deep: !0 }), (a, r) => {
|
|
1969
1964
|
var u, f;
|
|
1970
1965
|
return m(), w("button", {
|
|
1971
1966
|
class: "expandbtn",
|
|
@@ -2009,7 +2004,7 @@ const Jo = {
|
|
|
2009
2004
|
for (const [o, t] of l)
|
|
2010
2005
|
n[o] = t;
|
|
2011
2006
|
return n;
|
|
2012
|
-
}, In = /* @__PURE__ */ We(ei, [["__scopeId", "data-v-
|
|
2007
|
+
}, In = /* @__PURE__ */ We(ei, [["__scopeId", "data-v-96f3f821"]]), ti = {
|
|
2013
2008
|
name: "ButtonRightPanel"
|
|
2014
2009
|
}, ni = /* @__PURE__ */ we({
|
|
2015
2010
|
...ti,
|
|
@@ -2414,10 +2409,10 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
|
|
|
2414
2409
|
"stroke-linejoin": "round"
|
|
2415
2410
|
}, null, -1), ji = [
|
|
2416
2411
|
qi
|
|
2417
|
-
],
|
|
2412
|
+
], Ui = {
|
|
2418
2413
|
class: "bh-flex-1",
|
|
2419
2414
|
style: { overflow: "auto", "min-width": "0", width: "100%" }
|
|
2420
|
-
},
|
|
2415
|
+
}, Vi = /* @__PURE__ */ L("span", null, "##Top Menu Slot##", -1), Gi = /* @__PURE__ */ L("span", null, "##Table Header Area Slot##", -1), Qi = /* @__PURE__ */ L("span", null, "##Table Action Header Slot##", -1), Ki = ["onClick"], Xi = { class: "bh-checkbox" }, Yi = ["value"], Ji = ["innerHTML"], Zi = ["onClick"], er = ["colspan"], tr = ["colspan"], nr = /* @__PURE__ */ L("div", { class: "bh-skeleton-box bh-h-8" }, null, -1), lr = [
|
|
2421
2416
|
nr
|
|
2422
2417
|
], or = ["colspan"], ir = { class: "bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4" }, rr = { class: "bh-pagination-info bh-flex bh-items-center" }, ar = { class: "bh-mr-2" }, sr = ["value"], ur = { class: "bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1" }, cr = ["innerHTML"], dr = {
|
|
2423
2418
|
key: 1,
|
|
@@ -2569,7 +2564,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
|
|
|
2569
2564
|
JSON.parse(JSON.stringify(t.columns));
|
|
2570
2565
|
const H = B(null), j = B(null);
|
|
2571
2566
|
let O = B(0);
|
|
2572
|
-
const Y = B(230), S = B(t.leftmenuDefaultWidth), k = B(!1), W = B(null),
|
|
2567
|
+
const Y = B(230), S = B(t.leftmenuDefaultWidth), k = B(!1), W = B(null), U = () => {
|
|
2573
2568
|
if (W.value) {
|
|
2574
2569
|
const s = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth;
|
|
2575
2570
|
W.value.style.cssText = `
|
|
@@ -2579,13 +2574,13 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
|
|
|
2579
2574
|
`;
|
|
2580
2575
|
}
|
|
2581
2576
|
}, ee = () => {
|
|
2582
|
-
k.value ? S.value = t.leftmenuMinWidth : S.value = t.leftmenuDefaultWidth,
|
|
2577
|
+
k.value ? S.value = t.leftmenuMinWidth : S.value = t.leftmenuDefaultWidth, U();
|
|
2583
2578
|
}, at = () => {
|
|
2584
|
-
k.value = !k.value, S.value = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth,
|
|
2579
|
+
k.value = !k.value, S.value = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, U(), oe("currentLeftMenuSize", S.value);
|
|
2585
2580
|
};
|
|
2586
2581
|
Le(() => {
|
|
2587
2582
|
ce(), _e(() => {
|
|
2588
|
-
Ge.value <= 0 && (Ge.value = 10), oe("currentTopMenuSize", t.topmenumin || 20), t.initialLeftMenuState !== void 0 ? (k.value = t.initialLeftMenuState, S.value = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, console.log("Setting initial left menu state:", k.value), console.log("Setting initial left menu width:", S.value)) : S.value = t.leftmenuDefaultWidth,
|
|
2583
|
+
Ge.value <= 0 && (Ge.value = 10), oe("currentTopMenuSize", t.topmenumin || 20), t.initialLeftMenuState !== void 0 ? (k.value = t.initialLeftMenuState, S.value = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, console.log("Setting initial left menu state:", k.value), console.log("Setting initial left menu width:", S.value)) : S.value = t.leftmenuDefaultWidth, U(), window.addEventListener("resize", ee);
|
|
2589
2584
|
});
|
|
2590
2585
|
});
|
|
2591
2586
|
const oe = n;
|
|
@@ -2609,17 +2604,17 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
|
|
|
2609
2604
|
$t(s);
|
|
2610
2605
|
},
|
|
2611
2606
|
isRowSelected(s) {
|
|
2612
|
-
return
|
|
2607
|
+
return Ve(s);
|
|
2613
2608
|
},
|
|
2614
2609
|
getFilteredRows() {
|
|
2615
2610
|
return He();
|
|
2616
2611
|
},
|
|
2617
2612
|
// Expose function to set the left menu state
|
|
2618
2613
|
setLeftMenuState(s) {
|
|
2619
|
-
k.value = s, S.value = s ? t.leftmenuMinWidth : t.leftmenuDefaultWidth,
|
|
2614
|
+
k.value = s, S.value = s ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, U();
|
|
2620
2615
|
}
|
|
2621
2616
|
}), ne(() => t.initialLeftMenuState, (s) => {
|
|
2622
|
-
s !== void 0 && (k.value = s, S.value = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth,
|
|
2617
|
+
s !== void 0 && (k.value = s, S.value = k.value ? t.leftmenuMinWidth : t.leftmenuDefaultWidth, U());
|
|
2623
2618
|
}, { immediate: !0 });
|
|
2624
2619
|
const Be = (s, ...v) => s.replace(/{(\d+)}/g, (C, D) => typeof v[D] < "u" ? v[D] : C), J = X(() => {
|
|
2625
2620
|
const s = t.columns.find((v) => v.isUnique);
|
|
@@ -2644,27 +2639,27 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
|
|
|
2644
2639
|
if (!t.isServerMode) {
|
|
2645
2640
|
if ((te = t.columns) == null || te.forEach((h) => {
|
|
2646
2641
|
h.filter && (h.value !== void 0 && h.value !== null && h.value !== "" || h.condition === "IsNull" || h.condition == "IsNotNull") && (h.type === "string" ? (h.value && !h.condition && (h.condition = "Contains"), h.condition === "Contains" ? s = s.filter((P) => {
|
|
2647
|
-
var
|
|
2648
|
-
return (
|
|
2642
|
+
var V;
|
|
2643
|
+
return (V = F(P, h.field)) == null ? void 0 : V.toString().toLowerCase().includes(h.value.toLowerCase());
|
|
2649
2644
|
}) : h.condition === "NotContains" ? s = s.filter((P) => {
|
|
2650
|
-
var
|
|
2651
|
-
return !((
|
|
2645
|
+
var V;
|
|
2646
|
+
return !((V = F(P, h.field)) != null && V.toString().toLowerCase().includes(h.value.toLowerCase()));
|
|
2652
2647
|
}) : h.condition === "Equal" ? s = s.filter((P) => {
|
|
2653
|
-
var
|
|
2654
|
-
return ((
|
|
2648
|
+
var V;
|
|
2649
|
+
return ((V = F(P, h.field)) == null ? void 0 : V.toString().toLowerCase()) === h.value.toLowerCase();
|
|
2655
2650
|
}) : h.condition === "NotEqual" ? s = s.filter((P) => {
|
|
2656
|
-
var
|
|
2657
|
-
return ((
|
|
2651
|
+
var V;
|
|
2652
|
+
return ((V = F(P, h.field)) == null ? void 0 : V.toString().toLowerCase()) !== h.value.toLowerCase();
|
|
2658
2653
|
}) : h.condition == "StartsWith" ? s = s.filter((P) => {
|
|
2659
|
-
var
|
|
2660
|
-
return ((
|
|
2654
|
+
var V;
|
|
2655
|
+
return ((V = F(P, h.field)) == null ? void 0 : V.toString().toLowerCase().indexOf(h.value.toLowerCase())) === 0;
|
|
2661
2656
|
}) : h.condition == "EndsWith" && (s = s.filter((P) => {
|
|
2662
|
-
var
|
|
2663
|
-
return ((
|
|
2657
|
+
var V;
|
|
2658
|
+
return ((V = F(P, h.field)) == null ? void 0 : V.toString().toLowerCase().substr(h.value.length * -1)) === h.value.toLowerCase();
|
|
2664
2659
|
}))) : h.type === "number" ? (h.value && !h.condition && (h.condition = "Equal"), h.condition === "Equal" ? s = s.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) === parseFloat(h.value)) : h.condition === "NotEqual" ? s = s.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) !== parseFloat(h.value)) : h.condition === "GreaterThan" ? s = s.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) > parseFloat(h.value)) : h.condition === "GreaterThanOrEqual" ? s = s.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) >= parseFloat(h.value)) : h.condition === "LessThan" ? s = s.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) < parseFloat(h.value)) : h.condition === "LessThanOrEqual" && (s = s.filter((P) => F(P, h.field) && parseFloat(F(P, h.field)) <= parseFloat(h.value)))) : h.type === "date" ? (h.value && !h.condition && (h.condition = "Equal"), h.condition === "Equal" ? s = s.filter((P) => F(P, h.field) && xe(F(P, h.field)) === h.value) : h.condition === "NotEqual" ? s = s.filter((P) => F(P, h.field) && xe(F(P, h.field)) !== h.value) : h.condition === "GreaterThan" ? s = s.filter((P) => F(P, h.field) && xe(F(P, h.field)) > h.value) : h.condition === "LessThan" && (s = s.filter((P) => F(P, h.field) && xe(F(P, h.field)) < h.value))) : h.type === "bool" && (s = s.filter((P) => F(P, h.field) === h.value)), h.condition === "IsNull" ? (s = s.filter((P) => F(P, h.field) == null || F(P, h.field) == ""), h.value = "") : h.condition === "IsNotNull" && (h.value = "", s = s.filter((P) => F(P, h.field))));
|
|
2665
2660
|
}), A.value && (s != null && s.length)) {
|
|
2666
2661
|
let h = [];
|
|
2667
|
-
const P = (t.columns || []).filter((
|
|
2662
|
+
const P = (t.columns || []).filter((V) => V.search && !V.hide).map((V) => V.field);
|
|
2668
2663
|
for (var v = 0; v < (s == null ? void 0 : s.length); v++)
|
|
2669
2664
|
for (var C = 0; C < P.length; C++)
|
|
2670
2665
|
if ((Q = F(s[v], P[C])) != null && Q.toString().toLowerCase().includes(A.value.toLowerCase())) {
|
|
@@ -2680,8 +2675,8 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
|
|
|
2680
2675
|
const qn = p.value === "desc" ? -1 : 1;
|
|
2681
2676
|
s.sort((h, P) => {
|
|
2682
2677
|
var At, Wt;
|
|
2683
|
-
const
|
|
2684
|
-
return D.compare(
|
|
2678
|
+
const V = (At = f.value) == null ? void 0 : At.split(".").reduce((ke, ut) => ke == null ? void 0 : ke[ut], h), jn = (Wt = f.value) == null ? void 0 : Wt.split(".").reduce((ke, ut) => ke == null ? void 0 : ke[ut], P);
|
|
2679
|
+
return D.compare(V, jn) * qn;
|
|
2685
2680
|
});
|
|
2686
2681
|
}
|
|
2687
2682
|
return s;
|
|
@@ -2761,9 +2756,9 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
|
|
|
2761
2756
|
} catch {
|
|
2762
2757
|
}
|
|
2763
2758
|
return "";
|
|
2764
|
-
},
|
|
2759
|
+
}, Ue = (s, v) => {
|
|
2765
2760
|
O.value++, O.value === 1 ? j.value = setTimeout(() => {
|
|
2766
|
-
O.value = 0, t.selectRowOnClick && (
|
|
2761
|
+
O.value = 0, t.selectRowOnClick && (Ve(v) ? $t(v) : Ot(v), x(I.value)), oe("rowClick", s);
|
|
2767
2762
|
}, Y.value) : O.value === 2 && (clearTimeout(j.value), O.value = 0, oe("rowDBClick", s));
|
|
2768
2763
|
}, fe = (s, v = !1) => {
|
|
2769
2764
|
if (t.isServerMode) {
|
|
@@ -2795,20 +2790,20 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
|
|
|
2795
2790
|
), Nn = () => t.columns, An = () => {
|
|
2796
2791
|
I.value = [];
|
|
2797
2792
|
}, Ot = (s) => {
|
|
2798
|
-
if (!
|
|
2793
|
+
if (!Ve(s)) {
|
|
2799
2794
|
const v = i.value.find((C, D) => D === s);
|
|
2800
2795
|
I.value.push(
|
|
2801
2796
|
J.value ? v[J.value] : s
|
|
2802
2797
|
);
|
|
2803
2798
|
}
|
|
2804
2799
|
}, $t = (s) => {
|
|
2805
|
-
if (
|
|
2800
|
+
if (Ve(s)) {
|
|
2806
2801
|
const v = i.value.find((C, D) => D === s);
|
|
2807
2802
|
I.value = I.value.filter(
|
|
2808
2803
|
(C) => C !== (J.value ? v[J.value] : s)
|
|
2809
2804
|
);
|
|
2810
2805
|
}
|
|
2811
|
-
},
|
|
2806
|
+
}, Ve = (s) => {
|
|
2812
2807
|
const v = i.value.find((C, D) => D === s);
|
|
2813
2808
|
return v ? I.value.includes(
|
|
2814
2809
|
J.value ? v[J.value] : s
|
|
@@ -2830,7 +2825,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
|
|
|
2830
2825
|
return Ze(() => {
|
|
2831
2826
|
clearInterval(Bn), window.removeEventListener("resize", ee);
|
|
2832
2827
|
}), (s, v) => (m(), w("div", Wi, [
|
|
2833
|
-
ie(K(
|
|
2828
|
+
ie(K(Vt), {
|
|
2834
2829
|
class: "default-theme",
|
|
2835
2830
|
style: Z({ height: t.height })
|
|
2836
2831
|
}, {
|
|
@@ -2870,8 +2865,8 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
|
|
|
2870
2865
|
])
|
|
2871
2866
|
])
|
|
2872
2867
|
], 4)) : R("", !0),
|
|
2873
|
-
L("div",
|
|
2874
|
-
s.enabletopmenu ? (m(), ue(K(
|
|
2868
|
+
L("div", Ui, [
|
|
2869
|
+
s.enabletopmenu ? (m(), ue(K(Vt), {
|
|
2875
2870
|
key: 0,
|
|
2876
2871
|
class: "default-theme",
|
|
2877
2872
|
horizontal: "horizontal",
|
|
@@ -2889,7 +2884,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
|
|
|
2889
2884
|
}, {
|
|
2890
2885
|
default: Pe(() => [
|
|
2891
2886
|
ae(s.$slots, "tabletopmenu", {}, () => [
|
|
2892
|
-
|
|
2887
|
+
Vi
|
|
2893
2888
|
])
|
|
2894
2889
|
]),
|
|
2895
2890
|
_: 3
|
|
@@ -2962,7 +2957,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
|
|
|
2962
2957
|
typeof t.rowClass == "function" ? s.rowClass(C) : t.rowClass,
|
|
2963
2958
|
t.selectRowOnClick ? "bh-cursor-pointer" : ""
|
|
2964
2959
|
]),
|
|
2965
|
-
onClick: ye((Q) =>
|
|
2960
|
+
onClick: ye((Q) => Ue(C, D), ["prevent"])
|
|
2966
2961
|
}, [
|
|
2967
2962
|
t.hasCheckbox ? (m(), w("td", {
|
|
2968
2963
|
key: 0,
|
|
@@ -3038,7 +3033,7 @@ const ki = /* @__PURE__ */ We(bi, [["render", Si]]), Ci = { key: "hdrrow" }, zi
|
|
|
3038
3033
|
typeof t.rowClass == "function" ? s.rowClass(C) : t.rowClass,
|
|
3039
3034
|
t.selectRowOnClick ? "bh-cursor-pointer" : ""
|
|
3040
3035
|
]),
|
|
3041
|
-
onClick: ye((Q) =>
|
|
3036
|
+
onClick: ye((Q) => Ue(C, D), ["prevent"])
|
|
3042
3037
|
}, [
|
|
3043
3038
|
L("td", {
|
|
3044
3039
|
colspan: t.columns.length + K(Se)
|