@dolusoft/vue3-datatable 1.7.18 → 1.7.19
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.js +42 -42
- package/package.json +1 -1
package/dist/vue3-datatable.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const e=require("vue");function cn(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function un(t){return typeof t=="function"?t():e.unref(t)}const dn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function fn(t){return e.getCurrentInstance()}function hn(t,l=!0,n){fn()?e.onMounted(t,n):l?t():e.nextTick(t)}function ie(t){var l;const n=un(t);return(l=n==null?void 0:n.$el)!=null?l:n}const Ft=dn?window:void 0;function mn(){const t=e.ref(!1),l=e.getCurrentInstance();return l&&e.onMounted(()=>{t.value=!0},l),t}function pn(t){const l=mn();return e.computed(()=>(l.value,!!t()))}function vn(t,l,n={}){const{window:r=Ft,...o}=n;let i;const s=pn(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},u=e.computed(()=>Array.isArray(t)?t.map(p=>ie(p)):[ie(t)]),h=e.watch(u,p=>{if(a(),s.value&&r){i=new ResizeObserver(l);for(const z of p)z&&i.observe(z,o)}},{immediate:!0,flush:"post"}),f=()=>{a(),h()};return cn(f),{isSupported:s,stop:f}}function gn(t,l={width:0,height:0},n={}){const{window:r=Ft,box:o="content-box"}=n,i=e.computed(()=>{var p,z;return(z=(p=ie(t))==null?void 0:p.namespaceURI)==null?void 0:z.includes("svg")}),s=e.ref(l.width),a=e.ref(l.height),{stop:u}=vn(t,([p])=>{const z=o==="border-box"?p.borderBoxSize:o==="content-box"?p.contentBoxSize:p.devicePixelContentBoxSize;if(r&&i.value){const L=ie(t);if(L){const F=L.getBoundingClientRect();s.value=F.width,a.value=F.height}}else if(z){const L=Array.isArray(z)?z:[z];s.value=L.reduce((F,{inlineSize:T})=>F+T,0),a.value=L.reduce((F,{blockSize:T})=>F+T,0)}else s.value=p.contentRect.width,a.value=p.contentRect.height},n);hn(()=>{const p=ie(t);p&&(s.value="offsetWidth"in p?p.offsetWidth:l.width,a.value="offsetHeight"in p?p.offsetHeight:l.height)});const h=e.watch(()=>ie(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 bn=typeof global=="object"&&global&&global.Object===Object&&global,yn=typeof self=="object"&&self&&self.Object===Object&&self,Mt=bn||yn||Function("return this")(),Le=Mt.Symbol,Tt=Object.prototype,kn=Tt.hasOwnProperty,wn=Tt.toString,ce=Le?Le.toStringTag:void 0;function Cn(t){var l=kn.call(t,ce),n=t[ce];try{t[ce]=void 0;var r=!0}catch{}var o=wn.call(t);return r&&(l?t[ce]=n:delete t[ce]),o}var xn=Object.prototype,Sn=xn.toString;function En(t){return Sn.call(t)}var zn="[object Null]",Bn="[object Undefined]",ct=Le?Le.toStringTag:void 0;function Nn(t){return t==null?t===void 0?Bn:zn:ct&&ct in Object(t)?Cn(t):En(t)}function Ln(t){return t!=null&&typeof t=="object"}var Fn="[object Symbol]";function Mn(t){return typeof t=="symbol"||Ln(t)&&Nn(t)==Fn}var Tn=/\s/;function _n(t){for(var l=t.length;l--&&Tn.test(t.charAt(l)););return l}var Pn=/^\s+/;function In(t){return t&&t.slice(0,_n(t)+1).replace(Pn,"")}function Fe(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}var ut=NaN,Vn=/^[-+]0x[0-9a-f]+$/i,On=/^0b[01]+$/i,$n=/^0o[0-7]+$/i,Rn=parseInt;function de(t){if(typeof t=="number")return t;if(Mn(t))return ut;if(Fe(t)){var l=typeof t.valueOf=="function"?t.valueOf():t;t=Fe(l)?l+"":l}if(typeof t!="string")return t===0?t:+t;t=In(t);var n=On.test(t);return n||$n.test(t)?Rn(t.slice(2),n?2:8):Vn.test(t)?ut:+t}function Dn(t,l,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),l!==void 0&&(t=t>=l?t:l)),t}function Se(t,l,n){return n===void 0&&(n=l,l=void 0),n!==void 0&&(n=de(n),n=n===n?n:0),l!==void 0&&(l=de(l),l=l===l?l:0),Dn(de(t),l,n)}var Re=function(){return Mt.Date.now()},An="Expected a function",qn=Math.max,Hn=Math.min;function _t(t,l,n){var r,o,i,s,a,u,h=0,f=!1,p=!1,z=!0;if(typeof t!="function")throw new TypeError(An);l=de(l)||0,Fe(n)&&(f=!!n.leading,p="maxWait"in n,i=p?qn(de(n.maxWait)||0,l):i,z="trailing"in n?!!n.trailing:z);function L(x){var E=r,P=o;return r=o=void 0,h=x,s=t.apply(P,E),s}function F(x){return h=x,a=setTimeout(_,l),f?L(x):s}function T(x){var E=x-u,P=x-h,q=l-E;return p?Hn(q,i-P):q}function y(x){var E=x-u,P=x-h;return u===void 0||E>=l||E<0||p&&P>=i}function _(){var x=Re();if(y(x))return O(x);a=setTimeout(_,T(x))}function O(x){return a=void 0,z&&r?L(x):(r=o=void 0,s)}function $(){a!==void 0&&clearTimeout(a),h=0,r=u=o=a=void 0}function M(){return a===void 0?s:O(Re())}function A(){var x=Re(),E=y(x);if(r=arguments,o=this,u=x,E){if(a===void 0)return F(u);if(p)return clearTimeout(a),a=setTimeout(_,l),L(u)}return a===void 0&&(a=setTimeout(_,l)),s}return A.cancel=$,A.flush=M,A}var jn="Expected a function";function Pt(t,l,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError(jn);return Fe(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),_t(t,l,{leading:r,maxWait:l,trailing:o})}var Wn=Object.defineProperty,Un=Object.defineProperties,Gn=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,Qn=Object.prototype.hasOwnProperty,Kn=Object.prototype.propertyIsEnumerable,ft=(t,l,n)=>l in t?Wn(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Me=(t,l)=>{for(var n in l||(l={}))Qn.call(l,n)&&ft(t,n,l[n]);if(dt)for(var n of dt(l))Kn.call(l,n)&&ft(t,n,l[n]);return t},It=(t,l)=>Un(t,Gn(l));const Xn=["onPointerdown"],Yn={name:"ScrollbarThumb"};function Jn(t,{expose:l}){const n=t;e.useCssVars(E=>({"1fb98f78":e.unref(r)}));const r=e.computed(()=>{var E;return`${(E=n.thumbWidth)!=null?E:12}px`});let o=null,i=e.shallowRef(null);const s={pageX:0,pageY:0,scrollPos:0};let a=null;const u=()=>{o=setTimeout(()=>{i.value&&i.value.classList.remove("scrollbar__thumbPlaceholder--scrolling"),o=null},n.autoHideDelay)},h=()=>{o!==null&&clearTimeout(o)};e.onUnmounted(h);const f=Pt(E=>{E.stopPropagation(),E.preventDefault();const P=n.type==="horizontal"?"pageX":"pageY",q=(E[P]-s[P])/n.scrollInfo.wrapperMainSize*n.scrollInfo.contentMainSize;n.wrapperEl.scrollTo({[n.type==="horizontal"?"left":"top"]:s.scrollPos+q,behavior:"auto"})},16),p=()=>{u(),i.value.removeEventListener("pointermove",f),i.value.removeEventListener("pointerup",p),i.value.removeEventListener("pointercancel",p),i.value.removeEventListener("mousewheel",p),document.removeEventListener("mousewheel",p),typeof a=="number"&&i.value.releasePointerCapture(a),a=null},z=E=>{E.ctrlKey||E.button!==0||(h(),s.pageX=E.pageX,s.pageY=E.pageY,s.scrollPos=n.wrapperEl[n.type==="horizontal"?"scrollLeft":"scrollTop"],a=E==null?void 0:E.pointerId,i.value.setPointerCapture(a),i.value.addEventListener("pointermove",f),i.value.addEventListener("pointerup",p),i.value.addEventListener("pointercancel",p),i.value.addEventListener("mousewheel",p,{passive:!1}),document.addEventListener("mousewheel",p,{passive:!1}),i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"))};l({autoHideAfterScroll:()=>{h(),i.value&&i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"),u()}});let F=e.shallowRef(!1),T=e.shallowRef(!1),y=e.shallowRef(null),_=null,O=null,$=e.computed(()=>n.fixedThumb&&!T.value);const M=([E])=>T.value=E.isIntersecting,A=([E])=>F.value=E.isIntersecting,x=()=>{_&&(_.disconnect(),_=null),O&&(O.disconnect(),O=null)};return e.watch(()=>[n.fixedThumb,n.wrapperEl],()=>{if(!n.fixedThumb||!n.wrapperEl)return x();x(),O=new IntersectionObserver(A,{threshold:[0,.5]}),O.observe(n.wrapperEl),_=new IntersectionObserver(M),_.observe(y.value)}),e.onUnmounted(x),(E,P)=>(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:(q,I)=>{I.thumbEl=q,i.value=q},onPointerdown:e.withModifiers(z,["stop"])},[P[0]||(e.setBlockTracking(-1),P[0]=e.createElementVNode("div",{class:e.normalizeClass(["scrollbar__thumb",`scrollbar__thumb--${t.type}`])},null,2),e.setBlockTracking(1),P[0])],46,Xn),[[e.vShow,!!t.scrollInfo.thumbSize&&(t.fixedThumb?F.value:!0)]]),n.fixedThumb?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref:(q,I)=>{I.shepherdEl=q,y.value=q},class:e.normalizeClass(["scrollbar__shepherd",`scrollbar__shepherd--${t.type}`])},null,2)),[[e.vShow,!!t.scrollInfo.thumbSize]]):e.createCommentVNode("",!0)],64))}const Zn=e.defineComponent(It(Me({},Yn),{props:{type:null,autoExpand:null,autoHide:null,autoHideDelay:null,fixedThumb:null,scrollInfo:null,thumbWidth:null,wrapperEl:null},setup:Jn})),eo={wait:333,type:"debounce"};function ht(...t){const l="value"in(t==null?void 0:t[0]);let n;l?n=t==null?void 0:t[1]:n=t==null?void 0:t[0];const{wait:r,type:o,callback:i}=Me(Me({},eo),n),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 z=s.value.getBoundingClientRect();a.left=z.left,a.top=z.top,a.right=z.right,a.bottom=z.bottom,a.width=z.width,a.height=z.height,a.x=z.x,a.y=z.y,i==null||i()};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,o==="throttle"&&r>=4?h=Pt(h,r):o==="debounce"&&r>=4&&(h=_t(h,r)),window.addEventListener("resize",h),f=new ResizeObserver(h),f.observe(s.value))}),e.onUnmounted(p),l?a:[s,a]}const to={name:"CustomScrollbar",inheritAttrs:!1};function no(t,{expose:l,emit:n}){const r=t,o={horizontal:{el:null,instance:null},vertical:{el:null,instance:null}},i=(M,A)=>{o[A].instance||(o[A].instance=M)};let s=e.shallowRef(null),a=e.shallowRef(null);e.onMounted(()=>{var M;const A=Array.from((M=s.value.parentElement)==null?void 0:M.childNodes);for(const x in o)o[x].el=A.find(E=>{var P;return(P=E==null?void 0:E.classList)==null?void 0:P.contains(`scrollbar__thumbPlaceholder--${x}`)})});const u=ht(s,{wait:r.throttleWait,type:r.throttleType,callback:z}),h=ht(a,{wait:r.throttleWait,type:r.throttleType,callback:z});let f=e.shallowRef(0),p=e.shallowRef(0);function z(){f.value=Math.max(s.value.scrollHeight-u.height|0,0),p.value=Math.max(s.value.scrollWidth-u.width|0,0)}let L=e.computed(()=>({thumbSize:p.value?Se(u.width/s.value.scrollWidth*u.width,r.thumbMinSize>u.width?48:r.thumbMinSize,r.thumbMaxSize):0,contentMainSize:h.width,wrapperMainSize:u.width,boundaryDistance:Math.abs(u.left)})),F=e.computed(()=>({thumbSize:f.value?Se(u.height/s.value.scrollHeight*u.height,r.thumbMinSize>u.height?48:r.thumbMinSize,r.thumbMaxSize):0,contentMainSize:h.height,wrapperMainSize:u.height,boundaryDistance:Math.abs(u.top)})),T=e.computed(()=>u.height-F.value.thumbSize-5),y=e.computed(()=>u.width-L.value.thumbSize-5);const _=()=>{p.value&&(o.horizontal.el.style.transform=`translate3d(${s.value.scrollLeft/p.value*y.value}px, 0, 0)`,o.horizontal.instance.autoHideAfterScroll()),f.value&&(o.vertical.el.style.transform=`translate3d(0, ${s.value.scrollTop/f.value*T.value}px, 0)`,o.vertical.instance.autoHideAfterScroll())};e.watch(()=>[p.value,f.value],_);const O=M=>{M.stopPropagation();const A=s.value.scrollLeft,x=s.value.scrollTop,E=Se(A+((M==null?void 0:M.deltaX)||0),0,p.value)|0,P=Se(x+((M==null?void 0:M.deltaY)||0),0,f.value)|0;s.value.scrollLeft=E,s.value.scrollTop=P,p.value&&(o.horizontal.el.style.transform=`translate3d(${E/p.value*y.value}px, 0, 0)`,o.horizontal.instance.autoHideAfterScroll()),f.value&&(o.vertical.el.style.transform=`translate3d(0, ${P/f.value*T.value}px, 0)`,o.vertical.instance.autoHideAfterScroll()),n("scroll",{target:s.value,scrollLeft:E,scrollTop:P})},$=M=>{r.simulateScroll?O(M):_()};return e.watch(u,()=>n("wrapperResize",u)),e.watch(h,()=>n("contentResize",h)),l({scrollEl:s}),(M,A)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["scrollbar__wrapper",t.wrapperClass]),style:e.normalizeStyle(t.wrapperStyle)},[e.createElementVNode("div",e.mergeProps({ref:(x,E)=>{E.wrapperEl=x,s.value=x},class:"scrollbar__scroller"},M.$attrs,{onWheel:$,onScroll:$}),[e.createElementVNode("div",{ref:(x,E)=>{E.contentEl=x,a.value=x},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(M.$slots,"default")],6)],16),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(o,(x,E)=>e.createVNode(Zn,{ref:P=>i(P,E),key:E,autoExpand:t.autoExpand,autoHide:t.autoHide,autoHideDelay:t.autoHideDelay,fixedThumb:E===t.direction?!1:t.fixedThumb,type:E,scrollInfo:E==="vertical"?F.value:L.value,thumbWidth:t.thumbWidth,wrapperEl:s.value},null,8,["autoExpand","autoHide","autoHideDelay","fixedThumb","type","scrollInfo","thumbWidth","wrapperEl"])),64))],6))}const oo=e.defineComponent(It(Me({},to),{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:no})),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 n=l,r=t,o=e.useSlots(),i=e.ref([]),s=e.computed(()=>i.value.reduce((d,b)=>(d[~~b.id]=b)&&d,{})),a=e.computed(()=>i.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}),z=e.computed(()=>({[`splitpanes splitpanes--${r.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":f.value.dragging})),L=()=>{document.addEventListener("mousemove",y,{passive:!1}),document.addEventListener("mouseup",_),"ontouchstart"in window&&(document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",_))},F=()=>{document.removeEventListener("mousemove",y,{passive:!1}),document.removeEventListener("mouseup",_),"ontouchstart"in window&&(document.removeEventListener("touchmove",y,{passive:!1}),document.removeEventListener("touchend",_))},T=(d,b)=>{const w=d.target.closest(".splitpanes__splitter");if(w){const{left:g,top:k}=w.getBoundingClientRect(),{clientX:N,clientY:S}="ontouchstart"in window&&d.touches?d.touches[0]:d;f.value.cursorOffset=r.horizontal?S-k:N-g}L(),f.value.mouseDown=!0,f.value.activeSplitter=b},y=d=>{f.value.mouseDown&&(d.preventDefault(),f.value.dragging=!0,requestAnimationFrame(()=>{E(A(d)),G("resize",{event:d},!0)}))},_=d=>{f.value.dragging&&G("resized",{event:d},!0),f.value.mouseDown=!1,f.value.activeSplitter=null,setTimeout(()=>{f.value.dragging=!1,F()},100)},O=(d,b)=>{"ontouchstart"in window&&(d.preventDefault(),p.value.splitter===b?(clearTimeout(p.value.timeoutId),p.value.timeoutId=null,$(d,b),p.value.splitter=null):(p.value.splitter=b,p.value.timeoutId=setTimeout(()=>p.value.splitter=null,500))),f.value.dragging||G("splitter-click",{event:d,index:b},!0)},$=(d,b)=>{if(G("splitter-dblclick",{event:d,index:b},!0),r.maximizePanes){let w=0;i.value=i.value.map((g,k)=>(g.size=k===b?g.max:g.min,k!==b&&(w+=g.min),g)),i.value[b].size-=w,G("pane-maximize",{event:d,index:b,pane:i.value[b]}),G("resized",{event:d,index:b},!0)}},M=(d,b)=>{G("pane-click",{event:d,index:s.value[b].index,pane:s.value[b]})},A=d=>{const b=u.value.getBoundingClientRect(),{clientX:w,clientY:g}="ontouchstart"in window&&d.touches?d.touches[0]:d;return{x:w-(r.horizontal?0:f.value.cursorOffset)-b.left,y:g-(r.horizontal?f.value.cursorOffset:0)-b.top}},x=d=>{d=d[r.horizontal?"y":"x"];const b=u.value[r.horizontal?"clientHeight":"clientWidth"];return r.rtl&&!r.horizontal&&(d=b-d),d*100/b},E=d=>{const b=f.value.activeSplitter;let w={prevPanesSize:q(b),nextPanesSize:I(b),prevReachedMinPanes:0,nextReachedMinPanes:0};const g=0+(r.pushOtherPanes?0:w.prevPanesSize),k=100-(r.pushOtherPanes?0:w.nextPanesSize),N=Math.max(Math.min(x(d),k),g);let S=[b,b+1],j=i.value[S[0]]||null,U=i.value[S[1]]||null;const X=j.max<100&&N>=j.max+w.prevPanesSize,Oe=U.max<100&&N<=100-(U.max+I(b+1));if(X||Oe){X?(j.size=j.max,U.size=Math.max(100-j.max-w.prevPanesSize-w.nextPanesSize,0)):(j.size=Math.max(100-U.max-w.prevPanesSize-I(b+1),0),U.size=U.max);return}if(r.pushOtherPanes){const we=P(w,N);if(!we)return;({sums:w,panesToResize:S}=we),j=i.value[S[0]]||null,U=i.value[S[1]]||null}j!==null&&(j.size=Math.min(Math.max(N-w.prevPanesSize-w.prevReachedMinPanes,j.min),j.max)),U!==null&&(U.size=Math.min(Math.max(100-N-w.nextPanesSize-w.nextReachedMinPanes,U.min),U.max))},P=(d,b)=>{const w=f.value.activeSplitter,g=[w,w+1];return b<d.prevPanesSize+i.value[g[0]].min&&(g[0]=ve(w).index,d.prevReachedMinPanes=0,g[0]<w&&i.value.forEach((k,N)=>{N>g[0]&&N<=w&&(k.size=k.min,d.prevReachedMinPanes+=k.min)}),d.prevPanesSize=q(g[0]),g[0]===void 0)?(d.prevReachedMinPanes=0,i.value[0].size=i.value[0].min,i.value.forEach((k,N)=>{N>0&&N<=w&&(k.size=k.min,d.prevReachedMinPanes+=k.min)}),i.value[g[1]].size=100-d.prevReachedMinPanes-i.value[0].min-d.prevPanesSize-d.nextPanesSize,null):b>100-d.nextPanesSize-i.value[g[1]].min&&(g[1]=H(w).index,d.nextReachedMinPanes=0,g[1]>w+1&&i.value.forEach((k,N)=>{N>w&&N<g[1]&&(k.size=k.min,d.nextReachedMinPanes+=k.min)}),d.nextPanesSize=I(g[1]-1),g[1]===void 0)?(d.nextReachedMinPanes=0,i.value.forEach((k,N)=>{N<a.value-1&&N>=w+1&&(k.size=k.min,d.nextReachedMinPanes+=k.min)}),i.value[g[0]].size=100-d.prevPanesSize-I(g[0]-1),null):{sums:d,panesToResize:g}},q=d=>i.value.reduce((b,w,g)=>b+(g<d?w.size:0),0),I=d=>i.value.reduce((b,w,g)=>b+(g>d+1?w.size:0),0),ve=d=>[...i.value].reverse().find(b=>b.index<d&&b.size>b.min)||{},H=d=>i.value.find(b=>b.index>d+1&&b.size>b.min)||{},Q=()=>{var d;const b=Array.from(((d=u.value)==null?void 0:d.children)||[]);for(const w of b){const g=w.classList.contains("splitpanes__pane"),k=w.classList.contains("splitpanes__splitter");!g&&!k&&(w.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},le=(d,b,w=!1)=>{const g=d-1,k=document.createElement("div");k.classList.add("splitpanes__splitter"),w||(k.onmousedown=N=>T(N,g),typeof window<"u"&&"ontouchstart"in window&&(k.ontouchstart=N=>T(N,g)),k.onclick=N=>O(N,g+1)),k.ondblclick=N=>$(N,g+1),b.parentNode.insertBefore(k,b)},ae=d=>{d.onmousedown=void 0,d.onclick=void 0,d.ondblclick=void 0,d.remove()},Z=()=>{var d;const b=Array.from(((d=u.value)==null?void 0:d.children)||[]);for(const g of b)g.className.includes("splitpanes__splitter")&&ae(g);let w=0;for(const g of b)g.className.includes("splitpanes__pane")&&(!w&&r.firstSplitter?le(w,g,!0):w&&le(w,g),w++)},ge=({uid:d,...b})=>{const w=s.value[d];for(const[g,k]of Object.entries(b))w[g]=k},ee=d=>{var b;let w=-1;Array.from(((b=u.value)==null?void 0:b.children)||[]).some(g=>(g.className.includes("splitpanes__pane")&&w++,g.isSameNode(d.el))),i.value.splice(w,0,{...d,index:w}),i.value.forEach((g,k)=>g.index=k),h.value&&e.nextTick(()=>{Z(),re({addedPane:i.value[w]}),G("pane-add",{pane:i.value[w]})})},K=d=>{const b=i.value.findIndex(g=>g.id===d);i.value[b].el=null;const w=i.value.splice(b,1)[0];i.value.forEach((g,k)=>g.index=k),e.nextTick(()=>{Z(),G("pane-remove",{pane:w}),re({removedPane:{...w}})})},re=(d={})=>{!d.addedPane&&!d.removedPane?ye():i.value.some(b=>b.givenSize!==null||b.min||b.max<100)?ke(d):be(),h.value&&G("resized")},be=()=>{const d=100/a.value;let b=0;const w=[],g=[];for(const k of i.value)k.size=Math.max(Math.min(d,k.max),k.min),b-=k.size,k.size>=k.max&&w.push(k.id),k.size<=k.min&&g.push(k.id);b>.1&&se(b,w,g)},ye=()=>{let d=100;const b=[],w=[];let g=0;for(const N of i.value)d-=N.size,N.givenSize!==null&&g++,N.size>=N.max&&b.push(N.id),N.size<=N.min&&w.push(N.id);let k=100;if(d>.1){for(const N of i.value)N.givenSize===null&&(N.size=Math.max(Math.min(d/(a.value-g),N.max),N.min)),k-=N.size;k>.1&&se(k,b,w)}},ke=({addedPane:d,removedPane:b}={})=>{let w=100/a.value,g=0;const k=[],N=[];((d==null?void 0:d.givenSize)??null)!==null&&(w=(100-d.givenSize)/(a.value-1));for(const S of i.value)g-=S.size,S.size>=S.max&&k.push(S.id),S.size<=S.min&&N.push(S.id);if(!(Math.abs(g)<.1)){for(const S of i.value)(d==null?void 0:d.givenSize)!==null&&(d==null?void 0:d.id)===S.id||(S.size=Math.max(Math.min(w,S.max),S.min)),g-=S.size,S.size>=S.max&&k.push(S.id),S.size<=S.min&&N.push(S.id);g>.1&&se(g,k,N)}},se=(d,b,w)=>{let g;d>0?g=d/(a.value-b.length):g=d/(a.value-w.length),i.value.forEach((k,N)=>{if(d>0&&!b.includes(k.id)){const S=Math.max(Math.min(k.size+g,k.max),k.min),j=S-k.size;d-=j,k.size=S}else if(!w.includes(k.id)){const S=Math.max(Math.min(k.size+g,k.max),k.min),j=S-k.size;d-=j,k.size=S}}),Math.abs(d)>.1&&e.nextTick(()=>{h.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},G=(d,b=void 0,w=!1)=>{const g=(b==null?void 0:b.index)??f.value.activeSplitter??null;n(d,{...b,...g!==null&&{index:g},...w&&g!==null&&{prevPane:i.value[g-(r.firstSplitter?1:0)],nextPane:i.value[g+(r.firstSplitter?0:1)]},panes:i.value.map(k=>({min:k.min,max:k.max,size:k.size}))})};e.watch(()=>r.firstSplitter,()=>Z()),e.onMounted(()=>{Q(),Z(),re(),G("ready"),h.value=!0}),e.onBeforeUnmount(()=>h.value=!1);const Ve=()=>{var d;return e.h("div",{ref:u,class:z.value},(d=o.default)==null?void 0:d.call(o))};return e.provide("panes",i),e.provide("indexedPanes",s),e.provide("horizontal",e.computed(()=>r.horizontal)),e.provide("requestUpdate",ge),e.provide("onPaneAdd",ee),e.provide("onPaneRemove",K),e.provide("onPaneClick",M),(d,b)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ve)))}},De={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){var l;const n=t,r=e.inject("requestUpdate"),o=e.inject("onPaneAdd"),i=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),z=e.computed(()=>{const y=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(y,F.value),L.value)}),L=e.computed(()=>{const y=parseFloat(n.minSize);return isNaN(y)?0:y}),F=e.computed(()=>{const y=parseFloat(n.maxSize);return isNaN(y)?100:y}),T=e.computed(()=>{var y;return`${i.value?"height":"width"}: ${(y=f.value)==null?void 0:y.size}%`});return e.watch(()=>z.value,y=>r({uid:u,size:y})),e.watch(()=>L.value,y=>r({uid:u,min:y})),e.watch(()=>F.value,y=>r({uid:u,max:y})),e.onMounted(()=>{o({id:u,el:p.value,min:L.value,max:F.value,givenSize:n.size===void 0?null:z.value,size:z.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]+)*$/,_e=(t,l,n,r="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),u=o.pop(),h={provider:o.length>0?o[0]:r,prefix:u,name:a};return l&&!ze(h)?null:h}const i=o[0],s=i.split("-");if(s.length>1){const a={provider:r,prefix:s.shift(),name:s.join("-")};return l&&!ze(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:i};return l&&!ze(a,n)?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}),Pe=Object.freeze({...Vt,...Te}),He=Object.freeze({...Pe,body:"",hidden:!1});function lo(t,l){const n={};!t.hFlip!=!l.hFlip&&(n.hFlip=!0),!t.vFlip!=!l.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(l.rotate||0))%4;return r&&(n.rotate=r),n}function pt(t,l){const n=lo(t,l);for(const r in He)r in Te?r in t&&!(r in n)&&(n[r]=Te[r]):r in l?n[r]=l[r]:r in t&&(n[r]=t[r]);return n}function ro(t,l){const n=t.icons,r=t.aliases||Object.create(null),o=Object.create(null);function i(s){if(n[s])return o[s]=[];if(!(s in o)){o[s]=null;const a=r[s]&&r[s].parent,u=a&&i(a);u&&(o[s]=[a].concat(u))}return o[s]}return Object.keys(n).concat(Object.keys(r)).forEach(i),o}function io(t,l,n){const r=t.icons,o=t.aliases||Object.create(null);let i={};function s(a){i=pt(r[a]||o[a],i)}return s(l),n.forEach(s),pt(t,i)}function Ot(t,l){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{l(o,null),n.push(o)});const r=ro(t);for(const o in r){const i=r[o];i&&(l(o,io(t,o,i)),n.push(o))}return n}const ao={provider:"",aliases:{},not_found:{},...Vt};function Ae(t,l){for(const n in l)if(n in t&&typeof t[n]!=typeof l[n])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"||!Ae(t,ao))return null;const n=l.icons;for(const o in n){const i=n[o];if(!o.match(fe)||typeof i.body!="string"||!Ae(i,He))return null}const r=l.aliases||Object.create(null);for(const o in r){const i=r[o],s=i.parent;if(!o.match(fe)||typeof s!="string"||!n[s]&&!r[s]||!Ae(i,He))return null}return l}const vt=Object.create(null);function so(t,l){return{provider:t,prefix:l,icons:Object.create(null),missing:new Set}}function oe(t,l){const n=vt[t]||(vt[t]=Object.create(null));return n[l]||(n[l]=so(t,l))}function Xe(t,l){return $t(l)?Ot(l,(n,r)=>{r?t.icons[n]=r:t.missing.add(n)}):[]}function co(t,l,n){try{if(typeof n.body=="string")return t.icons[l]={...n},!0}catch{}return!1}let he=!1;function Rt(t){return typeof t=="boolean"&&(he=t),he}function uo(t){const l=typeof t=="string"?_e(t,!0,he):t;if(l){const n=oe(l.provider,l.prefix),r=l.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function fo(t,l){const n=_e(t,!0,he);if(!n)return!1;const r=oe(n.provider,n.prefix);return co(r,n.name,l)}function ho(t,l){if(typeof t!="object")return!1;if(typeof l!="string"&&(l=t.provider||""),he&&!l&&!t.prefix){let o=!1;return $t(t)&&(t.prefix="",Ot(t,(i,s)=>{s&&fo(i,s)&&(o=!0)})),o}const n=t.prefix;if(!ze({provider:l,prefix:n,name:"a"}))return!1;const r=oe(l,n);return!!Xe(r,t)}const Dt=Object.freeze({width:null,height:null}),At=Object.freeze({...Dt,...Te}),mo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,po=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function gt(t,l,n){if(l===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*l*n)/n;if(typeof t!="string")return t;const r=t.split(mo);if(r===null||!r.length)return t;const o=[];let i=r.shift(),s=po.test(i);for(;;){if(s){const a=parseFloat(i);isNaN(a)?o.push(i):o.push(Math.ceil(a*l*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");s=!s}}function vo(t,l="defs"){let n="";const r=t.indexOf("<"+l);for(;r>=0;){const o=t.indexOf(">",r),i=t.indexOf("</"+l);if(o===-1||i===-1)break;const s=t.indexOf(">",i);if(s===-1)break;n+=t.slice(o+1,i).trim(),t=t.slice(0,r).trim()+t.slice(s+1)}return{defs:n,content:t}}function go(t,l){return t?"<defs>"+t+"</defs>"+l:l}function bo(t,l,n){const r=vo(t);return go(r.defs,l+r.content+n)}const yo=t=>t==="unset"||t==="undefined"||t==="none";function ko(t,l){const n={...Pe,...t},r={...At,...l},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(T=>{const y=[],_=T.hFlip,O=T.vFlip;let $=T.rotate;_?O?$+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):O&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.push("scale(1 -1)"),o.top=o.left=0);let M;switch($<0&&($-=Math.floor($/4)*4),$=$%4,$){case 1:M=o.height/2+o.top,y.unshift("rotate(90 "+M.toString()+" "+M.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:M=o.width/2+o.left,y.unshift("rotate(-90 "+M.toString()+" "+M.toString()+")");break}$%2===1&&(o.left!==o.top&&(M=o.left,o.left=o.top,o.top=M),o.width!==o.height&&(M=o.width,o.width=o.height,o.height=M)),y.length&&(i=bo(i,'<g transform="'+y.join(" ")+'">',"</g>"))});const s=r.width,a=r.height,u=o.width,h=o.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 z={},L=(T,y)=>{yo(y)||(z[T]=y.toString())};L("width",f),L("height",p);const F=[o.left,o.top,u,h];return z.viewBox=F.join(" "),{attributes:z,viewBox:F,body:i}}const wo=/\sid="(\S+)"/g,Co="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let xo=0;function So(t,l=Co){const n=[];let r;for(;r=wo.exec(t);)n.push(r[1]);if(!n.length)return t;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof l=="function"?l(i):l+(xo++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),t=t.replace(new RegExp(o,"g"),""),t}const je=Object.create(null);function Eo(t,l){je[t]=l}function We(t){return je[t]||je[""]}function Ye(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 Je=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());Je[""]=Ye({resources:["https://api.iconify.design"].concat(Be)});function zo(t,l){const n=Ye(l);return n===null?!1:(Je[t]=n,!0)}function Ze(t){return Je[t]}const Bo=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let bt=Bo();function No(t,l){const n=Ze(t);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(s=>{o=Math.max(o,s.length)});const i=l+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function Lo(t){return t===404}const Fo=(t,l,n)=>{const r=[],o=No(t,l),i="icons";let s={type:i,provider:t,prefix:l,icons:[]},a=0;return n.forEach((u,h)=>{a+=u.length+1,a>=o&&h>0&&(r.push(s),s={type:i,provider:t,prefix:l,icons:[]},a=u.length),s.icons.push(u)}),r.push(s),r};function Mo(t){if(typeof t=="string"){const l=Ze(t);if(l)return l.path}return"/"}const To=(t,l,n)=>{if(!bt){n("abort",424);return}let r=Mo(l.provider);switch(l.type){case"icons":{const i=l.prefix,a=l.icons.join(","),u=new URLSearchParams({icons:a});r+=i+".json?"+u.toString();break}case"custom":{const i=l.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;bt(t+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(Lo(s)?"abort":"next",s)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},_o={prepare:Fo,send:To};function Po(t){const l={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return t.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,s=o.prefix,a=o.name,u=n[i]||(n[i]=Object.create(null)),h=u[s]||(u[s]=oe(i,s));let f;a in h.icons?f=l.loaded:s===""||h.missing.has(a)?f=l.missing:f=l.pending;const p={provider:i,prefix:s,name:a};f.push(p)}),l}function qt(t,l){t.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==l))})}function Io(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const l=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!l.length)return;let n=!1;const r=t.provider,o=t.prefix;l.forEach(i=>{const s=i.icons,a=s.pending.length;s.pending=s.pending.filter(u=>{if(u.prefix!==o)return!0;const h=u.name;if(t.icons[h])s.loaded.push({provider:r,prefix:o,name:h});else if(t.missing.has(h))s.missing.push({provider:r,prefix:o,name:h});else return n=!0,!0;return!1}),s.pending.length!==a&&(n||qt([t],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let Vo=0;function Oo(t,l,n){const r=Vo++,o=qt.bind(null,n,r);if(!l.pending.length)return o;const i={id:r,icons:l,callback:t,abort:o};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),o}function $o(t,l=!0,n=!1){const r=[];return t.forEach(o=>{const i=typeof o=="string"?_e(o,l,n):o;i&&r.push(i)}),r}var Ro={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Do(t,l,n,r){const o=t.resources.length,i=t.random?Math.floor(Math.random()*o):t.index;let s;if(t.random){let x=t.resources.slice(0);for(s=[];x.length>1;){const E=Math.floor(Math.random()*x.length);s.push(x[E]),x=x.slice(0,E).concat(x.slice(E+1))}s=s.concat(x)}else s=t.resources.slice(i).concat(t.resources.slice(0,i));const a=Date.now();let u="pending",h=0,f,p=null,z=[],L=[];typeof r=="function"&&L.push(r);function F(){p&&(clearTimeout(p),p=null)}function T(){u==="pending"&&(u="aborted"),F(),z.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),z=[]}function y(x,E){E&&(L=[]),typeof x=="function"&&L.push(x)}function _(){return{startTime:a,payload:l,status:u,queriesSent:h,queriesPending:z.length,subscribe:y,abort:T}}function O(){u="failed",L.forEach(x=>{x(void 0,f)})}function $(){z.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),z=[]}function M(x,E,P){const q=E!=="success";switch(z=z.filter(I=>I!==x),u){case"pending":break;case"failed":if(q||!t.dataAfterTimeout)return;break;default:return}if(E==="abort"){f=P,O();return}if(q){f=P,z.length||(s.length?A():O());return}if(F(),$(),!t.random){const I=t.resources.indexOf(x.resource);I!==-1&&I!==t.index&&(t.index=I)}u="completed",L.forEach(I=>{I(P)})}function A(){if(u!=="pending")return;F();const x=s.shift();if(x===void 0){if(z.length){p=setTimeout(()=>{F(),u==="pending"&&($(),O())},t.timeout);return}O();return}const E={status:"pending",resource:x,callback:(P,q)=>{M(E,P,q)}};z.push(E),h++,p=setTimeout(A,t.rotate),n(x,l,E.callback)}return setTimeout(A),_}function Ht(t){const l={...Ro,...t};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,u,h){const f=Do(l,a,u,(p,z)=>{r(),h&&h(p,z)});return n.push(f),f}function i(a){return n.find(u=>a(u))||null}return{query:o,find:i,setIndex:a=>{l.index=a},getIndex:()=>l.index,cleanup:r}}function yt(){}const qe=Object.create(null);function Ao(t){if(!qe[t]){const l=Ze(t);if(!l)return;const n=Ht(l),r={config:l,redundancy:n};qe[t]=r}return qe[t]}function qo(t,l,n){let r,o;if(typeof t=="string"){const i=We(t);if(!i)return n(void 0,424),yt;o=i.send;const s=Ao(t);s&&(r=s.redundancy)}else{const i=Ye(t);if(i){r=Ht(i);const s=t.resources?t.resources[0]:"",a=We(s);a&&(o=a.send)}}return!r||!o?(n(void 0,424),yt):r.query(l,o,n)().abort}const kt="iconify2",me="iconify",jt=me+"-count",wt=me+"-version",Wt=36e5,Ho=168,jo=50;function Ue(t,l){try{return t.getItem(l)}catch{}}function et(t,l,n){try{return t.setItem(l,n),!0}catch{}}function Ct(t,l){try{t.removeItem(l)}catch{}}function Ge(t,l){return et(t,jt,l.toString())}function Qe(t){return parseInt(Ue(t,jt))||0}const Ie={local:!0,session:!0},Ut={local:new Set,session:new Set};let tt=!1;function Wo(t){tt=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 n=Gt(t);if(!n)return;const r=Ue(n,wt);if(r!==kt){if(r){const a=Qe(n);for(let u=0;u<a;u++)Ct(n,me+u.toString())}et(n,wt,kt),Ge(n,0);return}const o=Math.floor(Date.now()/Wt)-Ho,i=a=>{const u=me+a.toString(),h=Ue(n,u);if(typeof h=="string"){try{const f=JSON.parse(h);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&l(f,a))return!0}catch{}Ct(n,u)}};let s=Qe(n);for(let a=s-1;a>=0;a--)i(a)||(a===s-1?(s--,Ge(n,s)):Ut[t].add(a))}function Kt(){if(!tt){Wo(!0);for(const t in Ie)Qt(t,l=>{const n=l.data,r=l.provider,o=n.prefix,i=oe(r,o);if(!Xe(i,n).length)return!1;const s=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,s):s,!0})}}function Uo(t,l){const n=t.lastModifiedCached;if(n&&n>=l)return n===l;if(t.lastModifiedCached=l,n)for(const r in Ie)Qt(r,o=>{const i=o.data;return o.provider!==t.provider||i.prefix!==t.prefix||i.lastModified===l});return!0}function Go(t,l){tt||Kt();function n(r){let o;if(!Ie[r]||!(o=Gt(r)))return;const i=Ut[r];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=Qe(o),s>=jo||!Ge(o,s+1))return;const a={cached:Math.floor(Date.now()/Wt),provider:t.provider,data:l};return et(o,me+s.toString(),JSON.stringify(a))}l.lastModified&&!Uo(t,l.lastModified)||Object.keys(l.icons).length&&(l.not_found&&(l=Object.assign({},l),delete l.not_found),n("local")||n("session"))}function xt(){}function Qo(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Io(t)}))}function Ko(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:n,prefix:r}=t,o=t.iconsToLoad;delete t.iconsToLoad;let i;if(!o||!(i=We(n)))return;i.prepare(n,r,o).forEach(a=>{qo(n,a,u=>{if(typeof u!="object")a.icons.forEach(h=>{t.missing.add(h)});else try{const h=Xe(t,u);if(!h.length)return;const f=t.pendingIcons;f&&h.forEach(p=>{f.delete(p)}),Go(t,u)}catch(h){console.error(h)}Qo(t)})})}))}const Xo=(t,l)=>{const n=$o(t,!0,Rt()),r=Po(n);if(!r.pending.length){let u=!0;return l&&setTimeout(()=>{u&&l(r.loaded,r.missing,r.pending,xt)}),()=>{u=!1}}const o=Object.create(null),i=[];let s,a;return r.pending.forEach(u=>{const{provider:h,prefix:f}=u;if(f===a&&h===s)return;s=h,a=f,i.push(oe(h,f));const p=o[h]||(o[h]=Object.create(null));p[f]||(p[f]=[])}),r.pending.forEach(u=>{const{provider:h,prefix:f,name:p}=u,z=oe(h,f),L=z.pendingIcons||(z.pendingIcons=new Set);L.has(p)||(L.add(p),o[h][f].push(p))}),i.forEach(u=>{const{provider:h,prefix:f}=u;o[h][f].length&&Ko(u,o[h][f])}),l?Oo(l,r,i):xt};function Yo(t,l){const n={...t};for(const r in l){const o=l[r],i=typeof o;r in Dt?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const Jo=/[\s,]+/;function Zo(t,l){l.split(Jo).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function el(t,l=0){const n=t.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:r(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(t.slice(0,t.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return l}function tl(t,l){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in l)n+=" "+r+'="'+l[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function nl(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ol(t){return"data:image/svg+xml,"+nl(t)}function ll(t){return'url("'+ol(t)+'")'}const St={...At,inline:!1},rl={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},il={display:"inline-block"},Ke={backgroundColor:"currentColor"},Xt={backgroundColor:"transparent"},Et={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},zt={webkitMask:Ke,mask:Ke,background:Xt};for(const t in zt){const l=zt[t];for(const n in Et)l[t+n]=Et[n]}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 n=Yo(St,l),r={...rl},o=l.mode||"svg",i={},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":n[T]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&Zo(n,y);break;case"color":i.color=y;break;case"rotate":typeof y=="string"?n[T]=el(y):typeof y=="number"&&(n[T]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete r["aria-hidden"];break;default:{const _=Ne[T];_?(y===!0||y==="true"||y===1)&&(n[_]=!0):St[T]===void 0&&(r[T]=y)}}}const u=ko(t,n),h=u.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),o==="svg"){r.style={...i,...a},Object.assign(r,h);let T=0,y=l.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),r.innerHTML=So(u.body,y?()=>y+"ID"+T++:"iconifyVue"),e.h("svg",r)}const{body:f,width:p,height:z}=t,L=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),F=tl(f,{...h,width:p+"",height:z+""});return r.style={...i,"--svg":ll(F),width:Bt(h.width),height:Bt(h.height),...il,...L?Ke:Xt,...a},e.h("span",r)};Rt(!0);Eo("",_o);if(typeof document<"u"&&typeof window<"u"){Kt();const t=window;if(t.IconifyPreload!==void 0){const l=t.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof l=="object"&&l!==null&&(l instanceof Array?l:[l]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!ho(r))&&console.error(n)}catch{console.error(n)}})}if(t.IconifyProviders!==void 0){const l=t.IconifyProviders;if(typeof l=="object"&&l!==null)for(let n in l){const r="IconifyProviders["+n+"] is invalid.";try{const o=l[n];if(typeof o!="object"||!o||o.resources===void 0)continue;zo(n,o)||console.error(r)}catch{console.error(r)}}}}const al={...Pe,body:""},J=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 n;if(typeof t!="string"||(n=_e(t,!1,!0))===null)return this.abortLoading(),null;const r=uo(n);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:t,abort:Xo([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,l&&l(t));const o=["iconify"];return n.prefix!==""&&o.push("iconify--"+n.prefix),n.provider!==""&&o.push("iconify--"+n.provider),{data:r,classes:o}}},render(){this.counter;const t=this.$attrs,l=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad):null;if(!l)return Nt(al,t);let n=t;return l.classes&&(n={...t,class:(typeof t.class=="string"?t.class+" ":"")+l.classes.join(" ")}),Nt({...Pe,...l.data},n)}}),sl={name:"buttonExpand"},cl=e.defineComponent({...sl,props:{item:{default:[]},expandedrows:{default:()=>[]},expandall:{type:Boolean,default:!1}},setup(t){const l=t,n=e.toRef(l,"expandedrows"),r=e.ref(!1);function o(s){if(l.expandall)r.value=!r.value,n.value.forEach(a=>{a.isExpanded=r.value});else{const a=n.value.find(u=>u.id==s);a?a.isExpanded=!a.isExpanded:n.value.push({id:s,isExpanded:!0})}}const i=e.ref(-1);return e.watch(()=>n.value,(s,a)=>{var u;new Set(n.value.map(h=>h.isExpanded)).size>1?(i.value=-1,r.value=!0):(u=n.value.at(0))!=null&&u.isExpanded?(i.value=0,r.value=!0):(i.value=1,r.value=!1)},{deep:!0}),(s,a)=>{var u,h;return e.openBlock(),e.createElementBlock("button",{class:"expandbtn",onClick:a[0]||(a[0]=f=>o(s.item.id))},[(((u=n.value.find(f=>f.id==s.item.id))==null?void 0:u.isExpanded)==null?r.value:(h=n.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},[i.value?(e.openBlock(),e.createBlock(e.unref(J),{key:0,icon:"fluent:chevron-down-up-16-filled"})):(e.openBlock(),e.createBlock(e.unref(J),{key:1,icon:"mdi:chevron-down"}))],64)):(e.openBlock(),e.createBlock(e.unref(J),{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},[i.value==-1?(e.openBlock(),e.createBlock(e.unref(J),{key:0,icon:"ion:chevron-expand"})):i.value==0?(e.openBlock(),e.createBlock(e.unref(J),{key:1,icon:"mdi:chevron-down"})):(e.openBlock(),e.createBlock(e.unref(J),{key:2,icon:"mdi:chevron-right"}))],64)):(e.openBlock(),e.createBlock(e.unref(J),{key:1,icon:"mdi:chevron-right"}))],64))])}}}),pe=(t,l)=>{const n=t.__vccOpts||t;for(const[r,o]of l)n[r]=o;return n},Yt=pe(cl,[["__scopeId","data-v-8bd9f848"]]),ul={name:"ButtonRightPanel"},dl=e.defineComponent({...ul,props:{item:{default:[]}},emits:["rightPanelClick"],setup(t,{emit:l}){const n=t,r=l;function o(){r("rightPanelClick",n.item)}return(i,s)=>(e.openBlock(),e.createElementBlock("button",{class:"rightpanelbtn",onClick:e.withModifiers(o,["stop"])},[e.createVNode(e.unref(J),{icon:"lucide:plus"})]))}}),fl=pe(dl,[["__scopeId","data-v-d739c6bf"]]),hl={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"},ml={name:"columnFilter"},pl=e.defineComponent({...ml,props:["column","columnFilterLang"],emits:["close","filterChange"],setup(t,{emit:l}){const n=t;e.onBeforeUnmount(()=>{document.removeEventListener("click",o)}),e.onMounted(()=>{document.addEventListener("click",o)});const r=l,o=()=>{r("close")},i=s=>{n.column.condition=s,s===""&&(n.column.value=""),r("filterChange",n.column)};return(s,a)=>(e.openBlock(),e.createElementBlock("div",hl,[e.createElementVNode("div",{class:"bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden",onClick:e.withModifiers(o,["stop"])},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition===""}),onClick:a[0]||(a[0]=u=>i(""))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.NoFilter)??"No filter"),3),n.column.type==="string"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="Contains"}),onClick:a[1]||(a[1]=u=>i("Contains"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.Contains)??"Contains"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="NotContains"}),onClick:a[2]||(a[2]=u=>i("NotContains"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.NotContains)??"NotContains"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="Equal"}),onClick:a[3]||(a[3]=u=>i("Equal"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.Equal)??"Equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="NotEqual"}),onClick:a[4]||(a[4]=u=>i("NotEqual"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.NotEqual)??"NotEqual"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="StartsWith"}),onClick:a[5]||(a[5]=u=>i("StartsWith"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.StartsWith)??"StartsWith"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="EndsWith"}),onClick:a[6]||(a[6]=u=>i("EndsWith"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.EndsWith)??"EndsWith"),3)],64)):n.column.type==="number"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="Equal"}),onClick:a[7]||(a[7]=u=>i("Equal"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.Equal)??"Equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="NotEqual"}),onClick:a[8]||(a[8]=u=>i("NotEqual"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.NotEqual)??"NotEqual"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="GreaterThan"}),onClick:a[9]||(a[9]=u=>i("GreaterThan"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.GreaterThan)??"GreaterThan"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="GreaterThanOrEqual"}),onClick:a[10]||(a[10]=u=>i("GreaterThanOrEqual"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.GreaterThanOrEqual)??"GreaterThanOrEqual"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="LessThan"}),onClick:a[11]||(a[11]=u=>i("LessThan"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.LessThan)??"LessThan"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="LessThanOrEqual"}),onClick:a[12]||(a[12]=u=>i("LessThanOrEqual"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.LessThanOrEqual)??"LessThanOrEqual"),3)],64)):n.column.type==="date"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="Equal"}),onClick:a[13]||(a[13]=u=>i("Equal"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.Equal)??"Equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="NotEqual"}),onClick:a[14]||(a[14]=u=>i("NotEqual"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.NotEqual)??"Not equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="GreaterThan"}),onClick:a[15]||(a[15]=u=>i("GreaterThan"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.GreaterThan)??"GreaterThan"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="LessThan"}),onClick:a[16]||(a[16]=u=>i("LessThan"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.LessThan)??"LessThan"),3)],64)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="IsNull"}),onClick:a[17]||(a[17]=u=>i("IsNull"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.IsNull)??"IsNull"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="IsNotNull"}),onClick:a[18]||(a[18]=u=>i("IsNotNull"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.IsNotNull)??"IsNotNull"),3)])]))}}),vl={},gl={version:"1.1",viewBox:"0 0 17 12",xmlns:"http://www.w3.org/2000/svg"},bl=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),yl=[bl];function kl(t,l){return e.openBlock(),e.createElementBlock("svg",gl,yl)}const Jt=pe(vl,[["render",kl]]),wl={},Cl={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"},xl=e.createElementVNode("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),Sl=[xl];function El(t,l){return e.openBlock(),e.createElementBlock("svg",Cl,Sl)}const zl=pe(wl,[["render",El]]),Bl={},Nl={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"},Ll=e.createElementVNode("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"},null,-1),Fl=[Ll];function Ml(t,l){return e.openBlock(),e.createElementBlock("svg",Nl,Fl)}const Tl=pe(Bl,[["render",Ml]]),_l={key:"hdrrow"},Pl={class:"bh-checkbox"},Il={key:2,class:"bh-w-px"},Vl=["onClick"],Ol={width:"16",height:"16",viewBox:"0 0 14 14",fill:"none"},$l={key:0,class:"bh-filter bh-relative"},Rl=["onUpdate:modelValue"],Dl=["onUpdate:modelValue"],Al=["onUpdate:modelValue"],ql=["onUpdate:modelValue"],Hl=e.createElementVNode("option",{value:void 0},"All",-1),jl=e.createElementVNode("option",{value:!0},"True",-1),Wl=e.createElementVNode("option",{value:!1},"False",-1),Ul=[Hl,jl,Wl],Gl=["onClick"],Ql={name:"columnHeader"},Lt=e.defineComponent({...Ql,props:["all","expandedrows","currentSortColumn","currentSortDirection","isOpenFilter","isFooter","checkAll","columnFilterLang"],emits:["selectAll","sortChange","filterChange","toggleFilterMenu"],setup(t,{emit:l}){const n=e.ref(null),r=t,o=l,i=()=>{n.value&&(n.value.indeterminate=r.checkAll!==0?!r.checkAll:!1,n.value.checked=r.checkAll)};return e.watch(()=>r.checkAll,i),(s,a)=>(e.openBlock(),e.createElementBlock("tr",_l,[r.all.hasCheckbox?(e.openBlock(),e.createElementBlock("th",{key:"chkall",class:e.normalizeClass(["bh-w-px",{"bh-sticky bh-bg-blue-light bh-z-[1]":r.all.stickyHeader||r.all.stickyFirstColumn,"bh-top-0":r.all.stickyHeader,"bh-left-0":r.all.stickyFirstColumn}])},[e.createElementVNode("div",Pl,[e.createElementVNode("input",{ref_key:"selectedAll",ref:n,type:"checkbox",onClick:a[0]||(a[0]=e.withModifiers(u=>{var h;return o("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(zl,{class:"intermediate"})])])],2)):e.createCommentVNode("",!0),r.all.hasRightPanel?(e.openBlock(),e.createElementBlock("th",{key:1,class:e.normalizeClass(["bh-w-px",{"bh-sticky bh-bg-blue-light bh-z-[1]":r.all.stickyHeader||r.all.stickyFirstColumn,"bh-top-0":r.all.stickyHeader,"bh-left-0":r.all.stickyFirstColumn}])},null,2)):e.createCommentVNode("",!0),r.all.hasSubtable?(e.openBlock(),e.createElementBlock("th",Il,[r.all.expandall?(e.openBlock(),e.createBlock(Yt,{key:0,expandedrows:r.expandedrows,expandall:r.all.expandall},null,8,["expandedrows","expandall"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.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]",[r.all.sortable&&u.sort?"bh-cursor-pointer":"",h===0&&r.all.stickyFirstColumn?"bh-sticky bh-left-0 bh-bg-blue-light":"",r.all.hasCheckbox&&h===0&&r.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=>r.all.sortable&&u.sort&&o("sortChange",u.field)},[e.createTextVNode(e.toDisplayString(u.title)+" ",1),r.all.sortable&&u.sort?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["bh-ml-3 bh-sort bh-flex bh-items-center",[r.currentSortColumn,r.currentSortDirection]])},[(e.openBlock(),e.createElementBlock("svg",Ol,[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,Vl),r.all.columnFilter&&!r.isFooter?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[u.filter?(e.openBlock(),e.createElementBlock("div",$l,[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=>o("filterChange"))},null,40,Rl)),[[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=>o("filterChange"))},null,40,Dl)),[[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=>o("filterChange"))},null,40,Al)),[[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=>o("filterChange")),onClick:a[5]||(a[5]=(...f)=>r.isOpenFilter&&r.isOpenFilter(...f))},Ul,40,ql)),[[e.vModelSelect,u.value]]):e.createCommentVNode("",!0),u.type!=="bool"?(e.openBlock(),e.createElementBlock("button",{key:4,type:"button",onClick:e.withModifiers(f=>o("toggleFilterMenu",u),["stop"])},[e.createVNode(Tl,{class:"bh-w-4"})],8,Gl)):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(pl,{column:u,type:u.type,columnFilterLang:r.columnFilterLang,onClose:a[6]||(a[6]=f=>o("toggleFilterMenu",null)),onFilterChange:a[7]||(a[7]=f=>o("filterChange"))},null,8,["column","type","columnFilterLang"]),[[e.vShow,r.isOpenFilter===u.field]])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],6))],64))),256))]))}}),Kl={class:"bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal"},Xl={class:"bh-flex bh-h-full"},Yl=e.createElementVNode("span",null,"##Left Menu Slot##",-1),Jl={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"},Zl=e.createElementVNode("path",{d:"M7 1L1 6L7 11",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),er=[Zl],tr={class:"bh-flex-1"},nr=e.createElementVNode("span",null,"##Top Menu Slot##",-1),or=e.createElementVNode("span",null,"##Table Action Header Slot##",-1),lr=["onClick"],rr={class:"bh-checkbox"},ir=["value"],ar=["innerHTML"],sr=["onClick"],cr=["colspan"],ur=["colspan"],dr=e.createElementVNode("div",{class:"bh-skeleton-box bh-h-8"},null,-1),fr=[dr],hr=["colspan"],mr={class:"bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4"},pr={class:"bh-pagination-info bh-flex bh-items-center"},vr={class:"bh-mr-2"},gr=["value"],br={class:"bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1"},yr=["innerHTML"],kr={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},wr=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),Cr=[wr],xr=["innerHTML"],Sr={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Er=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),zr=[Er],Br=["onClick"],Nr=["innerHTML"],Lr={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Fr=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),Mr=[Fr],Tr=["innerHTML"],_r={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Pr=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),Ir=[Pr],Vr={name:"Vue3Datatable"},Or=e.defineComponent({...Vr,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},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:"vertical"},enableleftmenu:{type:Boolean},enabletopmenu:{type:Boolean},leftmenuMinWidth:{default:50},leftmenuDefaultWidth:{default:250},topmenusize:{},topmenumax:{},topmenumin:{},skeletonloader:{type:Boolean},enableloadinganimation:{type:Boolean},enablefooterpagination:{type:Boolean},footerOffset:{default:0},tableRightOffset:{default:0}},emits:["change","sortChange","searchChange","pageChange","pageSizeChange","rowSelect","filterChange","rowClick","rowDBClick","currentTopMenuSize","currentLeftMenuSize","rowRightPanelClick"],setup(t,{expose:l,emit:n}){var rt,it;const r=e.useSlots(),o=t;for(const c of o.columns||[]){const v=((rt=c.type)==null?void 0:rt.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 i=e.ref([]),s=e.ref(o.page),a=e.ref(o.pagination?o.pageSize:(it=o.rows)==null?void 0:it.length),u=o.pageSize,h=e.ref(o.sortColumn),f=o.sortColumn,p=e.ref(o.sortDirection),z=o.sortDirection,L=e.ref(o.totalRows),F=e.ref([]),T=e.ref(null),y=e.ref(o.loading),_=e.ref(o.search);JSON.parse(JSON.stringify(o.columns));const O=e.ref(null),$=e.ref(null);let M=e.ref(0);const A=e.ref(230),x=e.ref(o.leftmenuDefaultWidth),E=e.ref(!1),P=e.ref(null),q=()=>{E.value=!E.value,x.value=E.value?o.leftmenuMinWidth:o.leftmenuDefaultWidth,I("currentLeftMenuSize",x.value)};e.onMounted(()=>{K(),e.nextTick(()=>{xe.value<=0&&(xe.value=10),x.value=o.leftmenuDefaultWidth})});const I=n;l({reset(){we()},getSelectedRows(){return Zt()},getColumnFilters(){return en()},clearSelectedRows(){return tn()},selectRow(c){nt(c)},unselectRow(c){ot(c)},isRowSelected(c){return Ce(c)},getFilteredRows(){return ge()}});const ve=(c,...v)=>c.replace(/{(\d+)}/g,(C,V)=>typeof v[V]<"u"?v[V]:C),H=e.computed(()=>{const c=o.columns.find(v=>v.isUnique);return(c==null?void 0:c.field)||null}),Q=e.computed(()=>{const c=a.value<1?1:Math.ceil(L.value/a.value);return Math.max(c||0,1)}),le=e.computed(()=>(s.value-1)*a.value+1),ae=e.computed(()=>{const c=s.value*a.value;return L.value>=c?c:L.value}),Z=e.computed(()=>{let c,v;return typeof o.showNumbersCount<"u"&&o.showNumbersCount<Q.value?(c=Math.max(s.value-Math.floor(o.showNumbersCount/2),1),v=c+o.showNumbersCount-1,v>Q.value&&(v=Q.value,c=v-o.showNumbersCount+1)):(c=1,v=Q.value),Array.from(Array(v+1-c).keys()).map(W=>c+W)}),ge=()=>{var W,D,Y;let c=o.rows||[];if(!o.isServerMode){if((W=o.columns)==null||W.forEach(m=>{m.filter&&(m.value!==void 0&&m.value!==null&&m.value!==""||m.condition==="IsNull"||m.condition=="IsNotNull")&&(m.type==="string"?(m.value&&!m.condition&&(m.condition="Contains"),m.condition==="Contains"?c=c.filter(B=>{var R;return(R=S(B,m.field))==null?void 0:R.toString().toLowerCase().includes(m.value.toLowerCase())}):m.condition==="NotContains"?c=c.filter(B=>{var R;return!((R=S(B,m.field))!=null&&R.toString().toLowerCase().includes(m.value.toLowerCase()))}):m.condition==="Equal"?c=c.filter(B=>{var R;return((R=S(B,m.field))==null?void 0:R.toString().toLowerCase())===m.value.toLowerCase()}):m.condition==="NotEqual"?c=c.filter(B=>{var R;return((R=S(B,m.field))==null?void 0:R.toString().toLowerCase())!==m.value.toLowerCase()}):m.condition=="StartsWith"?c=c.filter(B=>{var R;return((R=S(B,m.field))==null?void 0:R.toString().toLowerCase().indexOf(m.value.toLowerCase()))===0}):m.condition=="EndsWith"&&(c=c.filter(B=>{var R;return((R=S(B,m.field))==null?void 0:R.toString().toLowerCase().substr(m.value.length*-1))===m.value.toLowerCase()}))):m.type==="number"?(m.value&&!m.condition&&(m.condition="Equal"),m.condition==="Equal"?c=c.filter(B=>S(B,m.field)&&parseFloat(S(B,m.field))===parseFloat(m.value)):m.condition==="NotEqual"?c=c.filter(B=>S(B,m.field)&&parseFloat(S(B,m.field))!==parseFloat(m.value)):m.condition==="GreaterThan"?c=c.filter(B=>S(B,m.field)&&parseFloat(S(B,m.field))>parseFloat(m.value)):m.condition==="GreaterThanOrEqual"?c=c.filter(B=>S(B,m.field)&&parseFloat(S(B,m.field))>=parseFloat(m.value)):m.condition==="LessThan"?c=c.filter(B=>S(B,m.field)&&parseFloat(S(B,m.field))<parseFloat(m.value)):m.condition==="LessThanOrEqual"&&(c=c.filter(B=>S(B,m.field)&&parseFloat(S(B,m.field))<=parseFloat(m.value)))):m.type==="date"?(m.value&&!m.condition&&(m.condition="Equal"),m.condition==="Equal"?c=c.filter(B=>S(B,m.field)&&j(S(B,m.field))===m.value):m.condition==="NotEqual"?c=c.filter(B=>S(B,m.field)&&j(S(B,m.field))!==m.value):m.condition==="GreaterThan"?c=c.filter(B=>S(B,m.field)&&j(S(B,m.field))>m.value):m.condition==="LessThan"&&(c=c.filter(B=>S(B,m.field)&&j(S(B,m.field))<m.value))):m.type==="bool"&&(c=c.filter(B=>S(B,m.field)===m.value)),m.condition==="IsNull"?(c=c.filter(B=>S(B,m.field)==null||S(B,m.field)==""),m.value=""):m.condition==="IsNotNull"&&(m.value="",c=c.filter(B=>S(B,m.field))))}),_.value&&(c!=null&&c.length)){let m=[];const B=(o.columns||[]).filter(R=>R.search&&!R.hide).map(R=>R.field);for(var v=0;v<(c==null?void 0:c.length);v++)for(var C=0;C<B.length;C++)if((D=S(c[v],B[C]))!=null&&D.toString().toLowerCase().includes(_.value.toLowerCase())){m.push(c[v]);break}c=m}var V=new Intl.Collator(void 0,{numeric:((Y=o.columns.find(m=>m.field==h.value))==null?void 0:Y.type)==="number",sensitivity:"base"});const an=p.value==="desc"?-1:1;c.sort((m,B)=>{var at,st;const R=(at=h.value)==null?void 0:at.split(".").reduce((ne,$e)=>ne==null?void 0:ne[$e],m),sn=(st=h.value)==null?void 0:st.split(".").reduce((ne,$e)=>ne==null?void 0:ne[$e],B);return V.compare(R,sn)*an})}return c},ee=e.ref([]),K=()=>{let c=[],v=ge();o.isServerMode?(L.value=o.totalRows||0,c=v):(L.value=(v==null?void 0:v.length)||0,c=v.slice(le.value-1,ae.value)),o.hasSubtable&&c.forEach(function(C){C.isExpanded!=null&&(ee.value.find(W=>W.id==C.id)||ee.value.push({id:C.id,isExpanded:C.isExpanded}))}),i.value=c||[]};e.watch(()=>o.loading,()=>{y.value=o.loading});const re=c=>{c?O.value===c.field?O.value=null:O.value=c.field:O.value=null},be=()=>{if(s.value==1)return!1;s.value--},ye=c=>{s.value=c},ke=()=>{if(s.value>=Q.value)return!1;s.value++},se=()=>{g(!1),o.isServerMode?X("page"):(K(),I("pageChange",s.value))};e.watch(()=>s.value,se);const G=()=>{o.isServerMode||(s.value=1),g(!1),K()};e.watch(()=>o.rows,G);const Ve=c=>{a.value=c},d=()=>{g(!1),o.isServerMode?s.value===1?X("pagesize",!0):s.value=1:(s.value=1,K(),I("pageSizeChange",a.value))};e.watch(()=>a.value,d);const b=c=>{let v="asc";c==h.value&&p.value==="asc"&&(v="desc");let C=(s.value-1)*a.value,V=a.value;h.value=c,p.value=v,g(!1),K(),o.isServerMode?X("sort"):I("sortChange",{offset:C,limit:V,field:c,direction:v})},w=c=>{T.value=c.length&&i.value.length&&c.length===i.value.length;const v=i.value.filter((C,V)=>F.value.includes(H.value?C[H.value]:V));I("rowSelect",v)};e.watch(()=>F.value,w);const g=c=>{c?F.value=i.value.map((v,C)=>H.value?v[H.value]:C):F.value=[]},k=()=>{g(!1),o.isServerMode?s.value===1?X("filter",!0):s.value=1:(s.value=1,K(),I("filterChange",o.columns))},N=()=>{g(!1),o.isServerMode?s.value===1?X("search",!0):s.value=1:(s.value=1,K(),I("searchChange",_.value))};e.watch(()=>o.search,()=>{_.value=o.search,N()});const S=(c,v)=>v==null?void 0:v.split(".").reduce((C,V)=>C==null?void 0:C[V],c),j=c=>{try{if(!c)return"";const v=new Date(c),C=v.getDate(),V=v.getMonth()+1;return v.getFullYear()+"-"+(V>9?V:"0"+V)+"-"+(C>9?C:"0"+C)}catch{}return""},U=(c,v)=>{M.value++,M.value===1?$.value=setTimeout(()=>{M.value=0,o.selectRowOnClick&&(Ce(v)?ot(v):nt(v),w(F.value)),I("rowClick",c)},A.value):M.value===2&&(clearTimeout($.value),M.value=0,I("rowDBClick",c))},X=(c,v=!1)=>{if(o.isServerMode){Oe();const C={current_page:v?1:s.value,pagesize:a.value,offset:(s.value-1)*a.value,sort_column:h.value,sort_direction:p.value,search:_.value,column_filters:o.columns,change_type:c};I("change",C)}},Oe=()=>{for(let c=0;c<o.columns.length;c++){let v=o.columns[c];v.filter&&(v.value!==void 0&&v.value!==null&&v.value!==""||v.condition==="IsNull"||v.condition==="IsNotNull")&&(v.type==="string"&&v.value&&!v.condition&&(v.condition="Contains"),v.type==="number"&&v.value&&!v.condition&&(v.condition="Equal"),v.type==="date"&&v.value&&!v.condition&&(v.condition="Equal"))}},we=()=>{g(!1);for(let c=0;c<o.columns.length;c++)o.columns[c].value="";_.value="",a.value=u,h.value=f,p.value=z,o.isServerMode?s.value===1?X("reset",!0):s.value=1:(s.value=1,K())},Zt=()=>i.value.filter((v,C)=>F.value.includes(H.value?v[H.value]:C)),en=()=>o.columns,tn=()=>{F.value=[]},nt=c=>{if(!Ce(c)){const v=i.value.find((C,V)=>V===c);F.value.push(H.value?v[H.value]:c)}},ot=c=>{if(Ce(c)){const v=i.value.find((C,V)=>V===c);F.value=F.value.filter(C=>C!==(H.value?v[H.value]:c))}},Ce=c=>{const v=i.value.find((C,V)=>V===c);return v?F.value.includes(H.value?v[H.value]:c):!1};let te=0;o.hasCheckbox&&te++,o.hasSubtable&&te++,o.hasRightPanel&&te++;const nn=e.ref(0),on=setInterval(function(){nn.value++},2200),xe=e.ref(o.topmenusize),lt=e.ref(null),ln=gn(lt).height,rn=c=>{if(!c||!c.length)return;const v=c[0].size;xe.value=v,I("currentTopMenuSize",v)};return e.onUnmounted(()=>{clearInterval(on)}),(c,v)=>(e.openBlock(),e.createElementBlock("div",Kl,[e.createVNode(e.unref(mt),{class:"default-theme",style:e.normalizeStyle({height:o.height})},{default:e.withCtx(()=>[e.createVNode(e.unref(De),null,{default:e.withCtx(()=>[e.createElementVNode("div",Xl,[c.enableleftmenu?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"leftmenuel",ref:P,class:"left-menu-container bh-relative",style:e.normalizeStyle({width:x.value+"px",transition:"width 0.3s ease",overflow:"hidden",minWidth:o.leftmenuMinWidth+"px"})},[e.renderSlot(c.$slots,"tableleftmenu",{},()=>[Yl]),e.createElementVNode("div",Jl,[e.createElementVNode("button",{onClick:q,class:"bh-w-4 bh-h-10 bh-flex bh-justify-center bh-items-center bh-border-none bh-bg-transparent bh-cursor-pointer bh-outline-none"},[(e.openBlock(),e.createElementBlock("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.normalizeStyle({transform:E.value?"rotate(180deg)":"none"})},er,4))])])],4)):e.createCommentVNode("",!0),e.createElementVNode("div",tr,[e.createVNode(e.unref(mt),{class:"default-theme",horizontal:"horizontal",onResize:rn,"push-other-panes":""},{default:e.withCtx(()=>[c.enabletopmenu?(e.openBlock(),e.createBlock(e.unref(De),{key:0,ref_key:"topmenuel",ref:lt,size:xe.value||10,"max-size":c.topmenumax||100,style:e.normalizeStyle({"min-height":c.topmenumin+"px"})},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"tabletopmenu",{},()=>[nr])]),_:3},8,["size","max-size","style"])):e.createCommentVNode("",!0),e.createVNode(e.unref(De),{style:e.normalizeStyle({"padding-right":c.tableRightOffset+"px"})},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"tableactionheader",{},()=>[or]),e.createElementVNode("div",{class:e.normalizeClass(o.scrollbarstyle)},[e.createVNode(e.unref(oo),{style:e.normalizeStyle({height:o.stickyHeader&&Number(o.height.replace("px",""))-(c.footerOffset+e.unref(ln))+"px"}),autoHide:o.scrollbarautohide,fixedThumb:o.scrollbarfixedthumb,autoExpand:o.scrollbarautoexpand,direction:o.scrollbardirection,throttleType:"none"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["bh-table-responsive",{"bh-min-h-[100px]":y.value}]),style:e.normalizeStyle({overflow:o.stickyHeader&&"inherit"})},[e.createElementVNode("table",{class:e.normalizeClass([o.skin])},[e.createElementVNode("thead",{class:e.normalizeClass({"bh-sticky bh-top-0 bh-z-10":o.stickyHeader})},[e.createVNode(Lt,{all:o,expandedrows:ee.value,currentSortColumn:h.value,currentSortDirection:p.value,isOpenFilter:O.value,checkAll:T.value,columnFilterLang:o.columnFilterLang,onSelectAll:g,onSortChange:b,onFilterChange:k,onToggleFilterMenu:re},null,8,["expandedrows","currentSortColumn","currentSortDirection","isOpenFilter","checkAll","columnFilterLang"])],2),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(C,V)=>{var W;return e.openBlock(),e.createElementBlock(e.Fragment,{key:C[H.value]?C[H.value]:V},[L.value?(e.openBlock(),e.createElementBlock("tr",{key:0,class:e.normalizeClass([typeof o.rowClass=="function"?c.rowClass(C):o.rowClass,o.selectRowOnClick?"bh-cursor-pointer":""]),onClick:e.withModifiers(D=>U(C,V),["prevent"])},[o.hasCheckbox?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass({"bh-sticky bh-left-0 bh-bg-blue-light":o.stickyFirstColumn})},[e.createElementVNode("div",rr,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":v[0]||(v[0]=D=>F.value=D),type:"checkbox",value:C[H.value]?C[H.value]:V,onClick:v[1]||(v[1]=e.withModifiers(()=>{},["stop"]))},null,8,ir),[[e.vModelCheckbox,F.value]]),e.createElementVNode("div",null,[e.createVNode(Jt,{class:"check"})])])],2)):e.createCommentVNode("",!0),o.hasRightPanel?(e.openBlock(),e.createElementBlock("td",{key:1,class:e.normalizeClass({"bh-sticky bh-left-0 bh-bg-blue-light":o.stickyFirstColumn})},[e.createVNode(fl,{item:C,onRightPanelClick:v[2]||(v[2]=D=>I("rowRightPanelClick",D))},null,8,["item"])],2)):e.createCommentVNode("",!0),o.hasSubtable?(e.openBlock(),e.createElementBlock("td",{key:2,class:e.normalizeClass({"bh-sticky bh-left-0 bh-bg-blue-light":o.stickyFirstColumn})},[e.createVNode(Yt,{item:C,expandedrows:ee.value},null,8,["item","expandedrows"])],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(D,Y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[D.hide?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("td",{key:D.field,class:e.normalizeClass([typeof o.cellClass=="function"?c.cellClass(C):o.cellClass,Y===0&&o.stickyFirstColumn?"bh-sticky bh-left-0 bh-bg-blue-light":"",o.hasCheckbox&&Y===0&&o.stickyFirstColumn?"bh-left-[52px]":"",D.cellClass?D.cellClass:""])},[e.unref(r)[D.field]?e.renderSlot(c.$slots,D.field,{key:0,value:C}):D.cellRenderer?(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:D.cellRenderer(C)},null,8,ar)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(S(C,D.field)),1)],64))],2))],64))),256))],10,lr)):e.createCommentVNode("",!0),(W=ee.value.find(D=>D.id==C.id))!=null&&W.isExpanded&&o.hasSubtable?(e.openBlock(),e.createElementBlock("tr",{key:1,class:e.normalizeClass([typeof o.rowClass=="function"?c.rowClass(C):o.rowClass,o.selectRowOnClick?"bh-cursor-pointer":""]),onClick:e.withModifiers(D=>U(C,V),["prevent"])},[e.createElementVNode("td",{colspan:o.columns.length+e.unref(te)},[e.renderSlot(c.$slots,"tsub",{value:i.value})],8,cr)],10,sr)):e.createCommentVNode("",!0)],64)}),128)),!L.value&&y.value&&c.skeletonloader?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.pageSize,C=>(e.openBlock(),e.createElementBlock("tr",{key:C,class:"!bh-bg-white bh-h-11 !bh-border-transparent"},[e.createElementVNode("td",{colspan:o.columns.length+e.unref(te),class:"!bh-p-0 !bh-border-transparent"},fr,8,ur)]))),128)):e.createCommentVNode("",!0),L.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(o.footerRows,(C,V)=>(e.openBlock(),e.createElementBlock("tr",{key:C[H.value]?C[H.value]:V,class:"sticky-table-footer"},[e.unref(te)>0?(e.openBlock(),e.createElementBlock("td",{key:0,colspan:e.unref(te)},null,8,hr)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(W,D)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[W.hide?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("td",{key:W.field,class:e.normalizeClass([typeof o.cellClass=="function"?c.cellClass(C):o.cellClass,D===0&&o.stickyFirstColumn?"bh-sticky bh-left-0 bh-bg-blue-light":"",o.hasCheckbox&&D===0&&o.stickyFirstColumn?"bh-left-[52px]":"",W.cellClass?W.cellClass:""])},[C.cells.find(Y=>Y.field==W.field)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(C.cells.find(Y=>Y.field==W.field).text),1)],64)):e.createCommentVNode("",!0)],2))],64))),256))]))),128)):e.createCommentVNode("",!0)]),o.cloneHeaderInFooter?(e.openBlock(),e.createElementBlock("tfoot",{key:0,class:e.normalizeClass({"bh-sticky bh-bottom-0":o.stickyHeader})},[e.createVNode(Lt,{all:o,currentSortColumn:h.value,currentSortDirection:p.value,isOpenFilter:O.value,isFooter:!0,checkAll:T.value,onSelectAll:g,onSortChange:b,onFilterChange:k,onToggleFilterMenu:re},null,8,["currentSortColumn","currentSortDirection","isOpenFilter","checkAll"])],2)):e.createCommentVNode("",!0)],2),y.value&&c.enableloadinganimation?(e.openBlock(),e.createElementBlock("div",{key:0,class:"bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading",style:e.normalizeStyle({height:Number(o.height.replace("px",""))-175+"px"})},[e.renderSlot(c.$slots,"loadercontent")],4)):e.createCommentVNode("",!0)],6),!L.value&&!y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"nodatacontent",style:e.normalizeStyle({height:Number(o.height.replace("px",""))-175+"px"})},[e.renderSlot(c.$slots,"nodatacontent",{},()=>[e.createElementVNode("span",null,e.toDisplayString(o.noDataContent),1)])],4)):e.createCommentVNode("",!0)]),_:3},8,["style","autoHide","fixedThumb","autoExpand","direction"])],2)]),_:3},8,["style"])]),_:3})])])]),_:3})]),_:3},8,["style"]),o.pagination&&L.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["bh-pagination",{"bh-pointer-events-none":y.value,"sticky-footer":o.stickyFooter}])},[e.createElementVNode("div",mr,[c.enablefooterpagination?e.renderSlot(c.$slots,"footerpageinfo",{key:0,paginationInfo:c.paginationInfo,filterRowCount:L.value,offset:le.value,limit:ae.value,showPageSize:c.showPageSize,pageSizeOptions:c.pageSizeOptions,currentPageSize:a.value,stringFormat:ve,setPageSize:Ve},()=>[e.createElementVNode("div",pr,[e.createElementVNode("span",vr,e.toDisplayString(ve(o.paginationInfo,L.value?le.value:0,ae.value,L.value)),1),o.showPageSize?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:0,"onUpdate:modelValue":v[3]||(v[3]=C=>a.value=C),class:"bh-pagesize"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pageSizeOptions,C=>(e.openBlock(),e.createElementBlock("option",{value:C,key:C},e.toDisplayString(C),9,gr))),128))],512)),[[e.vModelSelect,a.value]]):e.createCommentVNode("",!0)])]):e.createCommentVNode("",!0),c.enablefooterpagination?e.renderSlot(c.$slots,"footerpagination",{key:1,currentPage:s.value,maxPage:Q.value,paging:Z.value,movePage:ye,nextPage:ke,previousPage:be},()=>[e.createElementVNode("div",br,[o.showFirstPage?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["bh-page-item first-page",{disabled:s.value<=1}]),onClick:v[4]||(v[4]=C=>s.value=1)},[o.firstArrow?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:o.firstArrow},null,8,yr)):(e.openBlock(),e.createElementBlock("svg",kr,Cr))],2)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["bh-page-item previous-page",{disabled:s.value<=1}]),onClick:be},[o.previousArrow?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:o.previousArrow},null,8,xr)):(e.openBlock(),e.createElementBlock("svg",Sr,zr))],2),o.showNumbers?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(Z.value,C=>(e.openBlock(),e.createElementBlock("button",{key:C,type:"button",class:e.normalizeClass(["bh-page-item",{disabled:s.value===C,"bh-active":C===s.value}]),onClick:V=>ye(C)},e.toDisplayString(C),11,Br))),128)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["bh-page-item next-page",{disabled:s.value>=Q.value}]),onClick:ke},[o.nextArrow?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:o.nextArrow},null,8,Nr)):(e.openBlock(),e.createElementBlock("svg",Lr,Mr))],2),o.showLastPage?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["bh-page-item last-page",{disabled:s.value>=Q.value}]),onClick:v[5]||(v[5]=C=>s.value=Q.value)},[o.lastArrow?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:o.lastArrow},null,8,Tr)):(e.openBlock(),e.createElementBlock("svg",_r,Ir))],2)):e.createCommentVNode("",!0)])]):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)]))}});module.exports=Or;
|
|
1
|
+
"use strict";const e=require("vue");function cn(t){return e.getCurrentScope()?(e.onScopeDispose(t),!0):!1}function un(t){return typeof t=="function"?t():e.unref(t)}const dn=typeof window<"u"&&typeof document<"u";typeof WorkerGlobalScope<"u"&&globalThis instanceof WorkerGlobalScope;function fn(t){return e.getCurrentInstance()}function hn(t,l=!0,n){fn()?e.onMounted(t,n):l?t():e.nextTick(t)}function ie(t){var l;const n=un(t);return(l=n==null?void 0:n.$el)!=null?l:n}const Ft=dn?window:void 0;function mn(){const t=e.ref(!1),l=e.getCurrentInstance();return l&&e.onMounted(()=>{t.value=!0},l),t}function pn(t){const l=mn();return e.computed(()=>(l.value,!!t()))}function vn(t,l,n={}){const{window:r=Ft,...o}=n;let i;const s=pn(()=>r&&"ResizeObserver"in r),a=()=>{i&&(i.disconnect(),i=void 0)},u=e.computed(()=>Array.isArray(t)?t.map(p=>ie(p)):[ie(t)]),h=e.watch(u,p=>{if(a(),s.value&&r){i=new ResizeObserver(l);for(const z of p)z&&i.observe(z,o)}},{immediate:!0,flush:"post"}),f=()=>{a(),h()};return cn(f),{isSupported:s,stop:f}}function gn(t,l={width:0,height:0},n={}){const{window:r=Ft,box:o="content-box"}=n,i=e.computed(()=>{var p,z;return(z=(p=ie(t))==null?void 0:p.namespaceURI)==null?void 0:z.includes("svg")}),s=e.ref(l.width),a=e.ref(l.height),{stop:u}=vn(t,([p])=>{const z=o==="border-box"?p.borderBoxSize:o==="content-box"?p.contentBoxSize:p.devicePixelContentBoxSize;if(r&&i.value){const L=ie(t);if(L){const F=L.getBoundingClientRect();s.value=F.width,a.value=F.height}}else if(z){const L=Array.isArray(z)?z:[z];s.value=L.reduce((F,{inlineSize:T})=>F+T,0),a.value=L.reduce((F,{blockSize:T})=>F+T,0)}else s.value=p.contentRect.width,a.value=p.contentRect.height},n);hn(()=>{const p=ie(t);p&&(s.value="offsetWidth"in p?p.offsetWidth:l.width,a.value="offsetHeight"in p?p.offsetHeight:l.height)});const h=e.watch(()=>ie(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 bn=typeof global=="object"&&global&&global.Object===Object&&global,yn=typeof self=="object"&&self&&self.Object===Object&&self,Mt=bn||yn||Function("return this")(),Le=Mt.Symbol,Tt=Object.prototype,kn=Tt.hasOwnProperty,wn=Tt.toString,ce=Le?Le.toStringTag:void 0;function Cn(t){var l=kn.call(t,ce),n=t[ce];try{t[ce]=void 0;var r=!0}catch{}var o=wn.call(t);return r&&(l?t[ce]=n:delete t[ce]),o}var xn=Object.prototype,Sn=xn.toString;function En(t){return Sn.call(t)}var zn="[object Null]",Bn="[object Undefined]",ct=Le?Le.toStringTag:void 0;function Nn(t){return t==null?t===void 0?Bn:zn:ct&&ct in Object(t)?Cn(t):En(t)}function Ln(t){return t!=null&&typeof t=="object"}var Fn="[object Symbol]";function Mn(t){return typeof t=="symbol"||Ln(t)&&Nn(t)==Fn}var Tn=/\s/;function _n(t){for(var l=t.length;l--&&Tn.test(t.charAt(l)););return l}var Pn=/^\s+/;function In(t){return t&&t.slice(0,_n(t)+1).replace(Pn,"")}function Fe(t){var l=typeof t;return t!=null&&(l=="object"||l=="function")}var ut=NaN,Vn=/^[-+]0x[0-9a-f]+$/i,On=/^0b[01]+$/i,$n=/^0o[0-7]+$/i,Rn=parseInt;function de(t){if(typeof t=="number")return t;if(Mn(t))return ut;if(Fe(t)){var l=typeof t.valueOf=="function"?t.valueOf():t;t=Fe(l)?l+"":l}if(typeof t!="string")return t===0?t:+t;t=In(t);var n=On.test(t);return n||$n.test(t)?Rn(t.slice(2),n?2:8):Vn.test(t)?ut:+t}function Dn(t,l,n){return t===t&&(n!==void 0&&(t=t<=n?t:n),l!==void 0&&(t=t>=l?t:l)),t}function Se(t,l,n){return n===void 0&&(n=l,l=void 0),n!==void 0&&(n=de(n),n=n===n?n:0),l!==void 0&&(l=de(l),l=l===l?l:0),Dn(de(t),l,n)}var Re=function(){return Mt.Date.now()},An="Expected a function",qn=Math.max,Hn=Math.min;function _t(t,l,n){var r,o,i,s,a,u,h=0,f=!1,p=!1,z=!0;if(typeof t!="function")throw new TypeError(An);l=de(l)||0,Fe(n)&&(f=!!n.leading,p="maxWait"in n,i=p?qn(de(n.maxWait)||0,l):i,z="trailing"in n?!!n.trailing:z);function L(x){var E=r,P=o;return r=o=void 0,h=x,s=t.apply(P,E),s}function F(x){return h=x,a=setTimeout(_,l),f?L(x):s}function T(x){var E=x-u,P=x-h,q=l-E;return p?Hn(q,i-P):q}function y(x){var E=x-u,P=x-h;return u===void 0||E>=l||E<0||p&&P>=i}function _(){var x=Re();if(y(x))return O(x);a=setTimeout(_,T(x))}function O(x){return a=void 0,z&&r?L(x):(r=o=void 0,s)}function $(){a!==void 0&&clearTimeout(a),h=0,r=u=o=a=void 0}function M(){return a===void 0?s:O(Re())}function A(){var x=Re(),E=y(x);if(r=arguments,o=this,u=x,E){if(a===void 0)return F(u);if(p)return clearTimeout(a),a=setTimeout(_,l),L(u)}return a===void 0&&(a=setTimeout(_,l)),s}return A.cancel=$,A.flush=M,A}var jn="Expected a function";function Pt(t,l,n){var r=!0,o=!0;if(typeof t!="function")throw new TypeError(jn);return Fe(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),_t(t,l,{leading:r,maxWait:l,trailing:o})}var Wn=Object.defineProperty,Un=Object.defineProperties,Gn=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,Qn=Object.prototype.hasOwnProperty,Kn=Object.prototype.propertyIsEnumerable,ft=(t,l,n)=>l in t?Wn(t,l,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[l]=n,Me=(t,l)=>{for(var n in l||(l={}))Qn.call(l,n)&&ft(t,n,l[n]);if(dt)for(var n of dt(l))Kn.call(l,n)&&ft(t,n,l[n]);return t},It=(t,l)=>Un(t,Gn(l));const Xn=["onPointerdown"],Yn={name:"ScrollbarThumb"};function Jn(t,{expose:l}){const n=t;e.useCssVars(E=>({"1fb98f78":e.unref(r)}));const r=e.computed(()=>{var E;return`${(E=n.thumbWidth)!=null?E:12}px`});let o=null,i=e.shallowRef(null);const s={pageX:0,pageY:0,scrollPos:0};let a=null;const u=()=>{o=setTimeout(()=>{i.value&&i.value.classList.remove("scrollbar__thumbPlaceholder--scrolling"),o=null},n.autoHideDelay)},h=()=>{o!==null&&clearTimeout(o)};e.onUnmounted(h);const f=Pt(E=>{E.stopPropagation(),E.preventDefault();const P=n.type==="horizontal"?"pageX":"pageY",q=(E[P]-s[P])/n.scrollInfo.wrapperMainSize*n.scrollInfo.contentMainSize;n.wrapperEl.scrollTo({[n.type==="horizontal"?"left":"top"]:s.scrollPos+q,behavior:"auto"})},16),p=()=>{u(),i.value.removeEventListener("pointermove",f),i.value.removeEventListener("pointerup",p),i.value.removeEventListener("pointercancel",p),i.value.removeEventListener("mousewheel",p),document.removeEventListener("mousewheel",p),typeof a=="number"&&i.value.releasePointerCapture(a),a=null},z=E=>{E.ctrlKey||E.button!==0||(h(),s.pageX=E.pageX,s.pageY=E.pageY,s.scrollPos=n.wrapperEl[n.type==="horizontal"?"scrollLeft":"scrollTop"],a=E==null?void 0:E.pointerId,i.value.setPointerCapture(a),i.value.addEventListener("pointermove",f),i.value.addEventListener("pointerup",p),i.value.addEventListener("pointercancel",p),i.value.addEventListener("mousewheel",p,{passive:!1}),document.addEventListener("mousewheel",p,{passive:!1}),i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"))};l({autoHideAfterScroll:()=>{h(),i.value&&i.value.classList.add("scrollbar__thumbPlaceholder--scrolling"),u()}});let F=e.shallowRef(!1),T=e.shallowRef(!1),y=e.shallowRef(null),_=null,O=null,$=e.computed(()=>n.fixedThumb&&!T.value);const M=([E])=>T.value=E.isIntersecting,A=([E])=>F.value=E.isIntersecting,x=()=>{_&&(_.disconnect(),_=null),O&&(O.disconnect(),O=null)};return e.watch(()=>[n.fixedThumb,n.wrapperEl],()=>{if(!n.fixedThumb||!n.wrapperEl)return x();x(),O=new IntersectionObserver(A,{threshold:[0,.5]}),O.observe(n.wrapperEl),_=new IntersectionObserver(M),_.observe(y.value)}),e.onUnmounted(x),(E,P)=>(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:(q,I)=>{I.thumbEl=q,i.value=q},onPointerdown:e.withModifiers(z,["stop"])},[P[0]||(e.setBlockTracking(-1),P[0]=e.createElementVNode("div",{class:e.normalizeClass(["scrollbar__thumb",`scrollbar__thumb--${t.type}`])},null,2),e.setBlockTracking(1),P[0])],46,Xn),[[e.vShow,!!t.scrollInfo.thumbSize&&(t.fixedThumb?F.value:!0)]]),n.fixedThumb?e.withDirectives((e.openBlock(),e.createElementBlock("div",{key:0,ref:(q,I)=>{I.shepherdEl=q,y.value=q},class:e.normalizeClass(["scrollbar__shepherd",`scrollbar__shepherd--${t.type}`])},null,2)),[[e.vShow,!!t.scrollInfo.thumbSize]]):e.createCommentVNode("",!0)],64))}const Zn=e.defineComponent(It(Me({},Yn),{props:{type:null,autoExpand:null,autoHide:null,autoHideDelay:null,fixedThumb:null,scrollInfo:null,thumbWidth:null,wrapperEl:null},setup:Jn})),eo={wait:333,type:"debounce"};function ht(...t){const l="value"in(t==null?void 0:t[0]);let n;l?n=t==null?void 0:t[1]:n=t==null?void 0:t[0];const{wait:r,type:o,callback:i}=Me(Me({},eo),n),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 z=s.value.getBoundingClientRect();a.left=z.left,a.top=z.top,a.right=z.right,a.bottom=z.bottom,a.width=z.width,a.height=z.height,a.x=z.x,a.y=z.y,i==null||i()};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,o==="throttle"&&r>=4?h=Pt(h,r):o==="debounce"&&r>=4&&(h=_t(h,r)),window.addEventListener("resize",h),f=new ResizeObserver(h),f.observe(s.value))}),e.onUnmounted(p),l?a:[s,a]}const to={name:"CustomScrollbar",inheritAttrs:!1};function no(t,{expose:l,emit:n}){const r=t,o={horizontal:{el:null,instance:null},vertical:{el:null,instance:null}},i=(M,A)=>{o[A].instance||(o[A].instance=M)};let s=e.shallowRef(null),a=e.shallowRef(null);e.onMounted(()=>{var M;const A=Array.from((M=s.value.parentElement)==null?void 0:M.childNodes);for(const x in o)o[x].el=A.find(E=>{var P;return(P=E==null?void 0:E.classList)==null?void 0:P.contains(`scrollbar__thumbPlaceholder--${x}`)})});const u=ht(s,{wait:r.throttleWait,type:r.throttleType,callback:z}),h=ht(a,{wait:r.throttleWait,type:r.throttleType,callback:z});let f=e.shallowRef(0),p=e.shallowRef(0);function z(){f.value=Math.max(s.value.scrollHeight-u.height|0,0),p.value=Math.max(s.value.scrollWidth-u.width|0,0)}let L=e.computed(()=>({thumbSize:p.value?Se(u.width/s.value.scrollWidth*u.width,r.thumbMinSize>u.width?48:r.thumbMinSize,r.thumbMaxSize):0,contentMainSize:h.width,wrapperMainSize:u.width,boundaryDistance:Math.abs(u.left)})),F=e.computed(()=>({thumbSize:f.value?Se(u.height/s.value.scrollHeight*u.height,r.thumbMinSize>u.height?48:r.thumbMinSize,r.thumbMaxSize):0,contentMainSize:h.height,wrapperMainSize:u.height,boundaryDistance:Math.abs(u.top)})),T=e.computed(()=>u.height-F.value.thumbSize-5),y=e.computed(()=>u.width-L.value.thumbSize-5);const _=()=>{p.value&&(o.horizontal.el.style.transform=`translate3d(${s.value.scrollLeft/p.value*y.value}px, 0, 0)`,o.horizontal.instance.autoHideAfterScroll()),f.value&&(o.vertical.el.style.transform=`translate3d(0, ${s.value.scrollTop/f.value*T.value}px, 0)`,o.vertical.instance.autoHideAfterScroll())};e.watch(()=>[p.value,f.value],_);const O=M=>{M.stopPropagation();const A=s.value.scrollLeft,x=s.value.scrollTop,E=Se(A+((M==null?void 0:M.deltaX)||0),0,p.value)|0,P=Se(x+((M==null?void 0:M.deltaY)||0),0,f.value)|0;s.value.scrollLeft=E,s.value.scrollTop=P,p.value&&(o.horizontal.el.style.transform=`translate3d(${E/p.value*y.value}px, 0, 0)`,o.horizontal.instance.autoHideAfterScroll()),f.value&&(o.vertical.el.style.transform=`translate3d(0, ${P/f.value*T.value}px, 0)`,o.vertical.instance.autoHideAfterScroll()),n("scroll",{target:s.value,scrollLeft:E,scrollTop:P})},$=M=>{r.simulateScroll?O(M):_()};return e.watch(u,()=>n("wrapperResize",u)),e.watch(h,()=>n("contentResize",h)),l({scrollEl:s}),(M,A)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["scrollbar__wrapper",t.wrapperClass]),style:e.normalizeStyle(t.wrapperStyle)},[e.createElementVNode("div",e.mergeProps({ref:(x,E)=>{E.wrapperEl=x,s.value=x},class:"scrollbar__scroller"},M.$attrs,{onWheel:$,onScroll:$}),[e.createElementVNode("div",{ref:(x,E)=>{E.contentEl=x,a.value=x},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(M.$slots,"default")],6)],16),(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(o,(x,E)=>e.createVNode(Zn,{ref:P=>i(P,E),key:E,autoExpand:t.autoExpand,autoHide:t.autoHide,autoHideDelay:t.autoHideDelay,fixedThumb:E===t.direction?!1:t.fixedThumb,type:E,scrollInfo:E==="vertical"?F.value:L.value,thumbWidth:t.thumbWidth,wrapperEl:s.value},null,8,["autoExpand","autoHide","autoHideDelay","fixedThumb","type","scrollInfo","thumbWidth","wrapperEl"])),64))],6))}const oo=e.defineComponent(It(Me({},to),{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:no})),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 n=l,r=t,o=e.useSlots(),i=e.ref([]),s=e.computed(()=>i.value.reduce((d,b)=>(d[~~b.id]=b)&&d,{})),a=e.computed(()=>i.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}),z=e.computed(()=>({[`splitpanes splitpanes--${r.horizontal?"horizontal":"vertical"}`]:!0,"splitpanes--dragging":f.value.dragging})),L=()=>{document.addEventListener("mousemove",y,{passive:!1}),document.addEventListener("mouseup",_),"ontouchstart"in window&&(document.addEventListener("touchmove",y,{passive:!1}),document.addEventListener("touchend",_))},F=()=>{document.removeEventListener("mousemove",y,{passive:!1}),document.removeEventListener("mouseup",_),"ontouchstart"in window&&(document.removeEventListener("touchmove",y,{passive:!1}),document.removeEventListener("touchend",_))},T=(d,b)=>{const w=d.target.closest(".splitpanes__splitter");if(w){const{left:g,top:k}=w.getBoundingClientRect(),{clientX:N,clientY:S}="ontouchstart"in window&&d.touches?d.touches[0]:d;f.value.cursorOffset=r.horizontal?S-k:N-g}L(),f.value.mouseDown=!0,f.value.activeSplitter=b},y=d=>{f.value.mouseDown&&(d.preventDefault(),f.value.dragging=!0,requestAnimationFrame(()=>{E(A(d)),G("resize",{event:d},!0)}))},_=d=>{f.value.dragging&&G("resized",{event:d},!0),f.value.mouseDown=!1,f.value.activeSplitter=null,setTimeout(()=>{f.value.dragging=!1,F()},100)},O=(d,b)=>{"ontouchstart"in window&&(d.preventDefault(),p.value.splitter===b?(clearTimeout(p.value.timeoutId),p.value.timeoutId=null,$(d,b),p.value.splitter=null):(p.value.splitter=b,p.value.timeoutId=setTimeout(()=>p.value.splitter=null,500))),f.value.dragging||G("splitter-click",{event:d,index:b},!0)},$=(d,b)=>{if(G("splitter-dblclick",{event:d,index:b},!0),r.maximizePanes){let w=0;i.value=i.value.map((g,k)=>(g.size=k===b?g.max:g.min,k!==b&&(w+=g.min),g)),i.value[b].size-=w,G("pane-maximize",{event:d,index:b,pane:i.value[b]}),G("resized",{event:d,index:b},!0)}},M=(d,b)=>{G("pane-click",{event:d,index:s.value[b].index,pane:s.value[b]})},A=d=>{const b=u.value.getBoundingClientRect(),{clientX:w,clientY:g}="ontouchstart"in window&&d.touches?d.touches[0]:d;return{x:w-(r.horizontal?0:f.value.cursorOffset)-b.left,y:g-(r.horizontal?f.value.cursorOffset:0)-b.top}},x=d=>{d=d[r.horizontal?"y":"x"];const b=u.value[r.horizontal?"clientHeight":"clientWidth"];return r.rtl&&!r.horizontal&&(d=b-d),d*100/b},E=d=>{const b=f.value.activeSplitter;let w={prevPanesSize:q(b),nextPanesSize:I(b),prevReachedMinPanes:0,nextReachedMinPanes:0};const g=0+(r.pushOtherPanes?0:w.prevPanesSize),k=100-(r.pushOtherPanes?0:w.nextPanesSize),N=Math.max(Math.min(x(d),k),g);let S=[b,b+1],j=i.value[S[0]]||null,U=i.value[S[1]]||null;const X=j.max<100&&N>=j.max+w.prevPanesSize,Oe=U.max<100&&N<=100-(U.max+I(b+1));if(X||Oe){X?(j.size=j.max,U.size=Math.max(100-j.max-w.prevPanesSize-w.nextPanesSize,0)):(j.size=Math.max(100-U.max-w.prevPanesSize-I(b+1),0),U.size=U.max);return}if(r.pushOtherPanes){const we=P(w,N);if(!we)return;({sums:w,panesToResize:S}=we),j=i.value[S[0]]||null,U=i.value[S[1]]||null}j!==null&&(j.size=Math.min(Math.max(N-w.prevPanesSize-w.prevReachedMinPanes,j.min),j.max)),U!==null&&(U.size=Math.min(Math.max(100-N-w.nextPanesSize-w.nextReachedMinPanes,U.min),U.max))},P=(d,b)=>{const w=f.value.activeSplitter,g=[w,w+1];return b<d.prevPanesSize+i.value[g[0]].min&&(g[0]=ve(w).index,d.prevReachedMinPanes=0,g[0]<w&&i.value.forEach((k,N)=>{N>g[0]&&N<=w&&(k.size=k.min,d.prevReachedMinPanes+=k.min)}),d.prevPanesSize=q(g[0]),g[0]===void 0)?(d.prevReachedMinPanes=0,i.value[0].size=i.value[0].min,i.value.forEach((k,N)=>{N>0&&N<=w&&(k.size=k.min,d.prevReachedMinPanes+=k.min)}),i.value[g[1]].size=100-d.prevReachedMinPanes-i.value[0].min-d.prevPanesSize-d.nextPanesSize,null):b>100-d.nextPanesSize-i.value[g[1]].min&&(g[1]=H(w).index,d.nextReachedMinPanes=0,g[1]>w+1&&i.value.forEach((k,N)=>{N>w&&N<g[1]&&(k.size=k.min,d.nextReachedMinPanes+=k.min)}),d.nextPanesSize=I(g[1]-1),g[1]===void 0)?(d.nextReachedMinPanes=0,i.value.forEach((k,N)=>{N<a.value-1&&N>=w+1&&(k.size=k.min,d.nextReachedMinPanes+=k.min)}),i.value[g[0]].size=100-d.prevPanesSize-I(g[0]-1),null):{sums:d,panesToResize:g}},q=d=>i.value.reduce((b,w,g)=>b+(g<d?w.size:0),0),I=d=>i.value.reduce((b,w,g)=>b+(g>d+1?w.size:0),0),ve=d=>[...i.value].reverse().find(b=>b.index<d&&b.size>b.min)||{},H=d=>i.value.find(b=>b.index>d+1&&b.size>b.min)||{},Q=()=>{var d;const b=Array.from(((d=u.value)==null?void 0:d.children)||[]);for(const w of b){const g=w.classList.contains("splitpanes__pane"),k=w.classList.contains("splitpanes__splitter");!g&&!k&&(w.remove(),console.warn("Splitpanes: Only <pane> elements are allowed at the root of <splitpanes>. One of your DOM nodes was removed."))}},le=(d,b,w=!1)=>{const g=d-1,k=document.createElement("div");k.classList.add("splitpanes__splitter"),w||(k.onmousedown=N=>T(N,g),typeof window<"u"&&"ontouchstart"in window&&(k.ontouchstart=N=>T(N,g)),k.onclick=N=>O(N,g+1)),k.ondblclick=N=>$(N,g+1),b.parentNode.insertBefore(k,b)},ae=d=>{d.onmousedown=void 0,d.onclick=void 0,d.ondblclick=void 0,d.remove()},Z=()=>{var d;const b=Array.from(((d=u.value)==null?void 0:d.children)||[]);for(const g of b)g.className.includes("splitpanes__splitter")&&ae(g);let w=0;for(const g of b)g.className.includes("splitpanes__pane")&&(!w&&r.firstSplitter?le(w,g,!0):w&&le(w,g),w++)},ge=({uid:d,...b})=>{const w=s.value[d];for(const[g,k]of Object.entries(b))w[g]=k},ee=d=>{var b;let w=-1;Array.from(((b=u.value)==null?void 0:b.children)||[]).some(g=>(g.className.includes("splitpanes__pane")&&w++,g.isSameNode(d.el))),i.value.splice(w,0,{...d,index:w}),i.value.forEach((g,k)=>g.index=k),h.value&&e.nextTick(()=>{Z(),re({addedPane:i.value[w]}),G("pane-add",{pane:i.value[w]})})},K=d=>{const b=i.value.findIndex(g=>g.id===d);i.value[b].el=null;const w=i.value.splice(b,1)[0];i.value.forEach((g,k)=>g.index=k),e.nextTick(()=>{Z(),G("pane-remove",{pane:w}),re({removedPane:{...w}})})},re=(d={})=>{!d.addedPane&&!d.removedPane?ye():i.value.some(b=>b.givenSize!==null||b.min||b.max<100)?ke(d):be(),h.value&&G("resized")},be=()=>{const d=100/a.value;let b=0;const w=[],g=[];for(const k of i.value)k.size=Math.max(Math.min(d,k.max),k.min),b-=k.size,k.size>=k.max&&w.push(k.id),k.size<=k.min&&g.push(k.id);b>.1&&se(b,w,g)},ye=()=>{let d=100;const b=[],w=[];let g=0;for(const N of i.value)d-=N.size,N.givenSize!==null&&g++,N.size>=N.max&&b.push(N.id),N.size<=N.min&&w.push(N.id);let k=100;if(d>.1){for(const N of i.value)N.givenSize===null&&(N.size=Math.max(Math.min(d/(a.value-g),N.max),N.min)),k-=N.size;k>.1&&se(k,b,w)}},ke=({addedPane:d,removedPane:b}={})=>{let w=100/a.value,g=0;const k=[],N=[];((d==null?void 0:d.givenSize)??null)!==null&&(w=(100-d.givenSize)/(a.value-1));for(const S of i.value)g-=S.size,S.size>=S.max&&k.push(S.id),S.size<=S.min&&N.push(S.id);if(!(Math.abs(g)<.1)){for(const S of i.value)(d==null?void 0:d.givenSize)!==null&&(d==null?void 0:d.id)===S.id||(S.size=Math.max(Math.min(w,S.max),S.min)),g-=S.size,S.size>=S.max&&k.push(S.id),S.size<=S.min&&N.push(S.id);g>.1&&se(g,k,N)}},se=(d,b,w)=>{let g;d>0?g=d/(a.value-b.length):g=d/(a.value-w.length),i.value.forEach((k,N)=>{if(d>0&&!b.includes(k.id)){const S=Math.max(Math.min(k.size+g,k.max),k.min),j=S-k.size;d-=j,k.size=S}else if(!w.includes(k.id)){const S=Math.max(Math.min(k.size+g,k.max),k.min),j=S-k.size;d-=j,k.size=S}}),Math.abs(d)>.1&&e.nextTick(()=>{h.value&&console.warn("Splitpanes: Could not resize panes correctly due to their constraints.")})},G=(d,b=void 0,w=!1)=>{const g=(b==null?void 0:b.index)??f.value.activeSplitter??null;n(d,{...b,...g!==null&&{index:g},...w&&g!==null&&{prevPane:i.value[g-(r.firstSplitter?1:0)],nextPane:i.value[g+(r.firstSplitter?0:1)]},panes:i.value.map(k=>({min:k.min,max:k.max,size:k.size}))})};e.watch(()=>r.firstSplitter,()=>Z()),e.onMounted(()=>{Q(),Z(),re(),G("ready"),h.value=!0}),e.onBeforeUnmount(()=>h.value=!1);const Ve=()=>{var d;return e.h("div",{ref:u,class:z.value},(d=o.default)==null?void 0:d.call(o))};return e.provide("panes",i),e.provide("indexedPanes",s),e.provide("horizontal",e.computed(()=>r.horizontal)),e.provide("requestUpdate",ge),e.provide("onPaneAdd",ee),e.provide("onPaneRemove",K),e.provide("onPaneClick",M),(d,b)=>(e.openBlock(),e.createBlock(e.resolveDynamicComponent(Ve)))}},De={__name:"pane",props:{size:{type:[Number,String]},minSize:{type:[Number,String],default:0},maxSize:{type:[Number,String],default:100}},setup(t){var l;const n=t,r=e.inject("requestUpdate"),o=e.inject("onPaneAdd"),i=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),z=e.computed(()=>{const y=isNaN(n.size)||n.size===void 0?0:parseFloat(n.size);return Math.max(Math.min(y,F.value),L.value)}),L=e.computed(()=>{const y=parseFloat(n.minSize);return isNaN(y)?0:y}),F=e.computed(()=>{const y=parseFloat(n.maxSize);return isNaN(y)?100:y}),T=e.computed(()=>{var y;return`${i.value?"height":"width"}: ${(y=f.value)==null?void 0:y.size}%`});return e.watch(()=>z.value,y=>r({uid:u,size:y})),e.watch(()=>L.value,y=>r({uid:u,min:y})),e.watch(()=>F.value,y=>r({uid:u,max:y})),e.onMounted(()=>{o({id:u,el:p.value,min:L.value,max:F.value,givenSize:n.size===void 0?null:z.value,size:z.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]+)*$/,_e=(t,l,n,r="")=>{const o=t.split(":");if(t.slice(0,1)==="@"){if(o.length<2||o.length>3)return null;r=o.shift().slice(1)}if(o.length>3||!o.length)return null;if(o.length>1){const a=o.pop(),u=o.pop(),h={provider:o.length>0?o[0]:r,prefix:u,name:a};return l&&!ze(h)?null:h}const i=o[0],s=i.split("-");if(s.length>1){const a={provider:r,prefix:s.shift(),name:s.join("-")};return l&&!ze(a)?null:a}if(n&&r===""){const a={provider:r,prefix:"",name:i};return l&&!ze(a,n)?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}),Pe=Object.freeze({...Vt,...Te}),He=Object.freeze({...Pe,body:"",hidden:!1});function lo(t,l){const n={};!t.hFlip!=!l.hFlip&&(n.hFlip=!0),!t.vFlip!=!l.vFlip&&(n.vFlip=!0);const r=((t.rotate||0)+(l.rotate||0))%4;return r&&(n.rotate=r),n}function pt(t,l){const n=lo(t,l);for(const r in He)r in Te?r in t&&!(r in n)&&(n[r]=Te[r]):r in l?n[r]=l[r]:r in t&&(n[r]=t[r]);return n}function ro(t,l){const n=t.icons,r=t.aliases||Object.create(null),o=Object.create(null);function i(s){if(n[s])return o[s]=[];if(!(s in o)){o[s]=null;const a=r[s]&&r[s].parent,u=a&&i(a);u&&(o[s]=[a].concat(u))}return o[s]}return Object.keys(n).concat(Object.keys(r)).forEach(i),o}function io(t,l,n){const r=t.icons,o=t.aliases||Object.create(null);let i={};function s(a){i=pt(r[a]||o[a],i)}return s(l),n.forEach(s),pt(t,i)}function Ot(t,l){const n=[];if(typeof t!="object"||typeof t.icons!="object")return n;t.not_found instanceof Array&&t.not_found.forEach(o=>{l(o,null),n.push(o)});const r=ro(t);for(const o in r){const i=r[o];i&&(l(o,io(t,o,i)),n.push(o))}return n}const ao={provider:"",aliases:{},not_found:{},...Vt};function Ae(t,l){for(const n in l)if(n in t&&typeof t[n]!=typeof l[n])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"||!Ae(t,ao))return null;const n=l.icons;for(const o in n){const i=n[o];if(!o.match(fe)||typeof i.body!="string"||!Ae(i,He))return null}const r=l.aliases||Object.create(null);for(const o in r){const i=r[o],s=i.parent;if(!o.match(fe)||typeof s!="string"||!n[s]&&!r[s]||!Ae(i,He))return null}return l}const vt=Object.create(null);function so(t,l){return{provider:t,prefix:l,icons:Object.create(null),missing:new Set}}function oe(t,l){const n=vt[t]||(vt[t]=Object.create(null));return n[l]||(n[l]=so(t,l))}function Xe(t,l){return $t(l)?Ot(l,(n,r)=>{r?t.icons[n]=r:t.missing.add(n)}):[]}function co(t,l,n){try{if(typeof n.body=="string")return t.icons[l]={...n},!0}catch{}return!1}let he=!1;function Rt(t){return typeof t=="boolean"&&(he=t),he}function uo(t){const l=typeof t=="string"?_e(t,!0,he):t;if(l){const n=oe(l.provider,l.prefix),r=l.name;return n.icons[r]||(n.missing.has(r)?null:void 0)}}function fo(t,l){const n=_e(t,!0,he);if(!n)return!1;const r=oe(n.provider,n.prefix);return co(r,n.name,l)}function ho(t,l){if(typeof t!="object")return!1;if(typeof l!="string"&&(l=t.provider||""),he&&!l&&!t.prefix){let o=!1;return $t(t)&&(t.prefix="",Ot(t,(i,s)=>{s&&fo(i,s)&&(o=!0)})),o}const n=t.prefix;if(!ze({provider:l,prefix:n,name:"a"}))return!1;const r=oe(l,n);return!!Xe(r,t)}const Dt=Object.freeze({width:null,height:null}),At=Object.freeze({...Dt,...Te}),mo=/(-?[0-9.]*[0-9]+[0-9.]*)/g,po=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function gt(t,l,n){if(l===1)return t;if(n=n||100,typeof t=="number")return Math.ceil(t*l*n)/n;if(typeof t!="string")return t;const r=t.split(mo);if(r===null||!r.length)return t;const o=[];let i=r.shift(),s=po.test(i);for(;;){if(s){const a=parseFloat(i);isNaN(a)?o.push(i):o.push(Math.ceil(a*l*n)/n)}else o.push(i);if(i=r.shift(),i===void 0)return o.join("");s=!s}}function vo(t,l="defs"){let n="";const r=t.indexOf("<"+l);for(;r>=0;){const o=t.indexOf(">",r),i=t.indexOf("</"+l);if(o===-1||i===-1)break;const s=t.indexOf(">",i);if(s===-1)break;n+=t.slice(o+1,i).trim(),t=t.slice(0,r).trim()+t.slice(s+1)}return{defs:n,content:t}}function go(t,l){return t?"<defs>"+t+"</defs>"+l:l}function bo(t,l,n){const r=vo(t);return go(r.defs,l+r.content+n)}const yo=t=>t==="unset"||t==="undefined"||t==="none";function ko(t,l){const n={...Pe,...t},r={...At,...l},o={left:n.left,top:n.top,width:n.width,height:n.height};let i=n.body;[n,r].forEach(T=>{const y=[],_=T.hFlip,O=T.vFlip;let $=T.rotate;_?O?$+=2:(y.push("translate("+(o.width+o.left).toString()+" "+(0-o.top).toString()+")"),y.push("scale(-1 1)"),o.top=o.left=0):O&&(y.push("translate("+(0-o.left).toString()+" "+(o.height+o.top).toString()+")"),y.push("scale(1 -1)"),o.top=o.left=0);let M;switch($<0&&($-=Math.floor($/4)*4),$=$%4,$){case 1:M=o.height/2+o.top,y.unshift("rotate(90 "+M.toString()+" "+M.toString()+")");break;case 2:y.unshift("rotate(180 "+(o.width/2+o.left).toString()+" "+(o.height/2+o.top).toString()+")");break;case 3:M=o.width/2+o.left,y.unshift("rotate(-90 "+M.toString()+" "+M.toString()+")");break}$%2===1&&(o.left!==o.top&&(M=o.left,o.left=o.top,o.top=M),o.width!==o.height&&(M=o.width,o.width=o.height,o.height=M)),y.length&&(i=bo(i,'<g transform="'+y.join(" ")+'">',"</g>"))});const s=r.width,a=r.height,u=o.width,h=o.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 z={},L=(T,y)=>{yo(y)||(z[T]=y.toString())};L("width",f),L("height",p);const F=[o.left,o.top,u,h];return z.viewBox=F.join(" "),{attributes:z,viewBox:F,body:i}}const wo=/\sid="(\S+)"/g,Co="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16);let xo=0;function So(t,l=Co){const n=[];let r;for(;r=wo.exec(t);)n.push(r[1]);if(!n.length)return t;const o="suffix"+(Math.random()*16777216|Date.now()).toString(16);return n.forEach(i=>{const s=typeof l=="function"?l(i):l+(xo++).toString(),a=i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");t=t.replace(new RegExp('([#;"])('+a+')([")]|\\.[a-z])',"g"),"$1"+s+o+"$3")}),t=t.replace(new RegExp(o,"g"),""),t}const je=Object.create(null);function Eo(t,l){je[t]=l}function We(t){return je[t]||je[""]}function Ye(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 Je=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());Je[""]=Ye({resources:["https://api.iconify.design"].concat(Be)});function zo(t,l){const n=Ye(l);return n===null?!1:(Je[t]=n,!0)}function Ze(t){return Je[t]}const Bo=()=>{let t;try{if(t=fetch,typeof t=="function")return t}catch{}};let bt=Bo();function No(t,l){const n=Ze(t);if(!n)return 0;let r;if(!n.maxURL)r=0;else{let o=0;n.resources.forEach(s=>{o=Math.max(o,s.length)});const i=l+".json?icons=";r=n.maxURL-o-n.path.length-i.length}return r}function Lo(t){return t===404}const Fo=(t,l,n)=>{const r=[],o=No(t,l),i="icons";let s={type:i,provider:t,prefix:l,icons:[]},a=0;return n.forEach((u,h)=>{a+=u.length+1,a>=o&&h>0&&(r.push(s),s={type:i,provider:t,prefix:l,icons:[]},a=u.length),s.icons.push(u)}),r.push(s),r};function Mo(t){if(typeof t=="string"){const l=Ze(t);if(l)return l.path}return"/"}const To=(t,l,n)=>{if(!bt){n("abort",424);return}let r=Mo(l.provider);switch(l.type){case"icons":{const i=l.prefix,a=l.icons.join(","),u=new URLSearchParams({icons:a});r+=i+".json?"+u.toString();break}case"custom":{const i=l.uri;r+=i.slice(0,1)==="/"?i.slice(1):i;break}default:n("abort",400);return}let o=503;bt(t+r).then(i=>{const s=i.status;if(s!==200){setTimeout(()=>{n(Lo(s)?"abort":"next",s)});return}return o=501,i.json()}).then(i=>{if(typeof i!="object"||i===null){setTimeout(()=>{i===404?n("abort",i):n("next",o)});return}setTimeout(()=>{n("success",i)})}).catch(()=>{n("next",o)})},_o={prepare:Fo,send:To};function Po(t){const l={loaded:[],missing:[],pending:[]},n=Object.create(null);t.sort((o,i)=>o.provider!==i.provider?o.provider.localeCompare(i.provider):o.prefix!==i.prefix?o.prefix.localeCompare(i.prefix):o.name.localeCompare(i.name));let r={provider:"",prefix:"",name:""};return t.forEach(o=>{if(r.name===o.name&&r.prefix===o.prefix&&r.provider===o.provider)return;r=o;const i=o.provider,s=o.prefix,a=o.name,u=n[i]||(n[i]=Object.create(null)),h=u[s]||(u[s]=oe(i,s));let f;a in h.icons?f=l.loaded:s===""||h.missing.has(a)?f=l.missing:f=l.pending;const p={provider:i,prefix:s,name:a};f.push(p)}),l}function qt(t,l){t.forEach(n=>{const r=n.loaderCallbacks;r&&(n.loaderCallbacks=r.filter(o=>o.id!==l))})}function Io(t){t.pendingCallbacksFlag||(t.pendingCallbacksFlag=!0,setTimeout(()=>{t.pendingCallbacksFlag=!1;const l=t.loaderCallbacks?t.loaderCallbacks.slice(0):[];if(!l.length)return;let n=!1;const r=t.provider,o=t.prefix;l.forEach(i=>{const s=i.icons,a=s.pending.length;s.pending=s.pending.filter(u=>{if(u.prefix!==o)return!0;const h=u.name;if(t.icons[h])s.loaded.push({provider:r,prefix:o,name:h});else if(t.missing.has(h))s.missing.push({provider:r,prefix:o,name:h});else return n=!0,!0;return!1}),s.pending.length!==a&&(n||qt([t],i.id),i.callback(s.loaded.slice(0),s.missing.slice(0),s.pending.slice(0),i.abort))})}))}let Vo=0;function Oo(t,l,n){const r=Vo++,o=qt.bind(null,n,r);if(!l.pending.length)return o;const i={id:r,icons:l,callback:t,abort:o};return n.forEach(s=>{(s.loaderCallbacks||(s.loaderCallbacks=[])).push(i)}),o}function $o(t,l=!0,n=!1){const r=[];return t.forEach(o=>{const i=typeof o=="string"?_e(o,l,n):o;i&&r.push(i)}),r}var Ro={resources:[],index:0,timeout:2e3,rotate:750,random:!1,dataAfterTimeout:!1};function Do(t,l,n,r){const o=t.resources.length,i=t.random?Math.floor(Math.random()*o):t.index;let s;if(t.random){let x=t.resources.slice(0);for(s=[];x.length>1;){const E=Math.floor(Math.random()*x.length);s.push(x[E]),x=x.slice(0,E).concat(x.slice(E+1))}s=s.concat(x)}else s=t.resources.slice(i).concat(t.resources.slice(0,i));const a=Date.now();let u="pending",h=0,f,p=null,z=[],L=[];typeof r=="function"&&L.push(r);function F(){p&&(clearTimeout(p),p=null)}function T(){u==="pending"&&(u="aborted"),F(),z.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),z=[]}function y(x,E){E&&(L=[]),typeof x=="function"&&L.push(x)}function _(){return{startTime:a,payload:l,status:u,queriesSent:h,queriesPending:z.length,subscribe:y,abort:T}}function O(){u="failed",L.forEach(x=>{x(void 0,f)})}function $(){z.forEach(x=>{x.status==="pending"&&(x.status="aborted")}),z=[]}function M(x,E,P){const q=E!=="success";switch(z=z.filter(I=>I!==x),u){case"pending":break;case"failed":if(q||!t.dataAfterTimeout)return;break;default:return}if(E==="abort"){f=P,O();return}if(q){f=P,z.length||(s.length?A():O());return}if(F(),$(),!t.random){const I=t.resources.indexOf(x.resource);I!==-1&&I!==t.index&&(t.index=I)}u="completed",L.forEach(I=>{I(P)})}function A(){if(u!=="pending")return;F();const x=s.shift();if(x===void 0){if(z.length){p=setTimeout(()=>{F(),u==="pending"&&($(),O())},t.timeout);return}O();return}const E={status:"pending",resource:x,callback:(P,q)=>{M(E,P,q)}};z.push(E),h++,p=setTimeout(A,t.rotate),n(x,l,E.callback)}return setTimeout(A),_}function Ht(t){const l={...Ro,...t};let n=[];function r(){n=n.filter(a=>a().status==="pending")}function o(a,u,h){const f=Do(l,a,u,(p,z)=>{r(),h&&h(p,z)});return n.push(f),f}function i(a){return n.find(u=>a(u))||null}return{query:o,find:i,setIndex:a=>{l.index=a},getIndex:()=>l.index,cleanup:r}}function yt(){}const qe=Object.create(null);function Ao(t){if(!qe[t]){const l=Ze(t);if(!l)return;const n=Ht(l),r={config:l,redundancy:n};qe[t]=r}return qe[t]}function qo(t,l,n){let r,o;if(typeof t=="string"){const i=We(t);if(!i)return n(void 0,424),yt;o=i.send;const s=Ao(t);s&&(r=s.redundancy)}else{const i=Ye(t);if(i){r=Ht(i);const s=t.resources?t.resources[0]:"",a=We(s);a&&(o=a.send)}}return!r||!o?(n(void 0,424),yt):r.query(l,o,n)().abort}const kt="iconify2",me="iconify",jt=me+"-count",wt=me+"-version",Wt=36e5,Ho=168,jo=50;function Ue(t,l){try{return t.getItem(l)}catch{}}function et(t,l,n){try{return t.setItem(l,n),!0}catch{}}function Ct(t,l){try{t.removeItem(l)}catch{}}function Ge(t,l){return et(t,jt,l.toString())}function Qe(t){return parseInt(Ue(t,jt))||0}const Ie={local:!0,session:!0},Ut={local:new Set,session:new Set};let tt=!1;function Wo(t){tt=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 n=Gt(t);if(!n)return;const r=Ue(n,wt);if(r!==kt){if(r){const a=Qe(n);for(let u=0;u<a;u++)Ct(n,me+u.toString())}et(n,wt,kt),Ge(n,0);return}const o=Math.floor(Date.now()/Wt)-Ho,i=a=>{const u=me+a.toString(),h=Ue(n,u);if(typeof h=="string"){try{const f=JSON.parse(h);if(typeof f=="object"&&typeof f.cached=="number"&&f.cached>o&&typeof f.provider=="string"&&typeof f.data=="object"&&typeof f.data.prefix=="string"&&l(f,a))return!0}catch{}Ct(n,u)}};let s=Qe(n);for(let a=s-1;a>=0;a--)i(a)||(a===s-1?(s--,Ge(n,s)):Ut[t].add(a))}function Kt(){if(!tt){Wo(!0);for(const t in Ie)Qt(t,l=>{const n=l.data,r=l.provider,o=n.prefix,i=oe(r,o);if(!Xe(i,n).length)return!1;const s=n.lastModified||-1;return i.lastModifiedCached=i.lastModifiedCached?Math.min(i.lastModifiedCached,s):s,!0})}}function Uo(t,l){const n=t.lastModifiedCached;if(n&&n>=l)return n===l;if(t.lastModifiedCached=l,n)for(const r in Ie)Qt(r,o=>{const i=o.data;return o.provider!==t.provider||i.prefix!==t.prefix||i.lastModified===l});return!0}function Go(t,l){tt||Kt();function n(r){let o;if(!Ie[r]||!(o=Gt(r)))return;const i=Ut[r];let s;if(i.size)i.delete(s=Array.from(i).shift());else if(s=Qe(o),s>=jo||!Ge(o,s+1))return;const a={cached:Math.floor(Date.now()/Wt),provider:t.provider,data:l};return et(o,me+s.toString(),JSON.stringify(a))}l.lastModified&&!Uo(t,l.lastModified)||Object.keys(l.icons).length&&(l.not_found&&(l=Object.assign({},l),delete l.not_found),n("local")||n("session"))}function xt(){}function Qo(t){t.iconsLoaderFlag||(t.iconsLoaderFlag=!0,setTimeout(()=>{t.iconsLoaderFlag=!1,Io(t)}))}function Ko(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:n,prefix:r}=t,o=t.iconsToLoad;delete t.iconsToLoad;let i;if(!o||!(i=We(n)))return;i.prepare(n,r,o).forEach(a=>{qo(n,a,u=>{if(typeof u!="object")a.icons.forEach(h=>{t.missing.add(h)});else try{const h=Xe(t,u);if(!h.length)return;const f=t.pendingIcons;f&&h.forEach(p=>{f.delete(p)}),Go(t,u)}catch(h){console.error(h)}Qo(t)})})}))}const Xo=(t,l)=>{const n=$o(t,!0,Rt()),r=Po(n);if(!r.pending.length){let u=!0;return l&&setTimeout(()=>{u&&l(r.loaded,r.missing,r.pending,xt)}),()=>{u=!1}}const o=Object.create(null),i=[];let s,a;return r.pending.forEach(u=>{const{provider:h,prefix:f}=u;if(f===a&&h===s)return;s=h,a=f,i.push(oe(h,f));const p=o[h]||(o[h]=Object.create(null));p[f]||(p[f]=[])}),r.pending.forEach(u=>{const{provider:h,prefix:f,name:p}=u,z=oe(h,f),L=z.pendingIcons||(z.pendingIcons=new Set);L.has(p)||(L.add(p),o[h][f].push(p))}),i.forEach(u=>{const{provider:h,prefix:f}=u;o[h][f].length&&Ko(u,o[h][f])}),l?Oo(l,r,i):xt};function Yo(t,l){const n={...t};for(const r in l){const o=l[r],i=typeof o;r in Dt?(o===null||o&&(i==="string"||i==="number"))&&(n[r]=o):i===typeof n[r]&&(n[r]=r==="rotate"?o%4:o)}return n}const Jo=/[\s,]+/;function Zo(t,l){l.split(Jo).forEach(n=>{switch(n.trim()){case"horizontal":t.hFlip=!0;break;case"vertical":t.vFlip=!0;break}})}function el(t,l=0){const n=t.replace(/^-?[0-9.]*/,"");function r(o){for(;o<0;)o+=4;return o%4}if(n===""){const o=parseInt(t);return isNaN(o)?0:r(o)}else if(n!==t){let o=0;switch(n){case"%":o=25;break;case"deg":o=90}if(o){let i=parseFloat(t.slice(0,t.length-n.length));return isNaN(i)?0:(i=i/o,i%1===0?r(i):0)}}return l}function tl(t,l){let n=t.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(const r in l)n+=" "+r+'="'+l[r]+'"';return'<svg xmlns="http://www.w3.org/2000/svg"'+n+">"+t+"</svg>"}function nl(t){return t.replace(/"/g,"'").replace(/%/g,"%25").replace(/#/g,"%23").replace(/</g,"%3C").replace(/>/g,"%3E").replace(/\s+/g," ")}function ol(t){return"data:image/svg+xml,"+nl(t)}function ll(t){return'url("'+ol(t)+'")'}const St={...At,inline:!1},rl={xmlns:"http://www.w3.org/2000/svg","xmlns:xlink":"http://www.w3.org/1999/xlink","aria-hidden":!0,role:"img"},il={display:"inline-block"},Ke={backgroundColor:"currentColor"},Xt={backgroundColor:"transparent"},Et={Image:"var(--svg)",Repeat:"no-repeat",Size:"100% 100%"},zt={webkitMask:Ke,mask:Ke,background:Xt};for(const t in zt){const l=zt[t];for(const n in Et)l[t+n]=Et[n]}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 n=Yo(St,l),r={...rl},o=l.mode||"svg",i={},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":n[T]=y===!0||y==="true"||y===1;break;case"flip":typeof y=="string"&&Zo(n,y);break;case"color":i.color=y;break;case"rotate":typeof y=="string"?n[T]=el(y):typeof y=="number"&&(n[T]=y);break;case"ariaHidden":case"aria-hidden":y!==!0&&y!=="true"&&delete r["aria-hidden"];break;default:{const _=Ne[T];_?(y===!0||y==="true"||y===1)&&(n[_]=!0):St[T]===void 0&&(r[T]=y)}}}const u=ko(t,n),h=u.attributes;if(n.inline&&(i.verticalAlign="-0.125em"),o==="svg"){r.style={...i,...a},Object.assign(r,h);let T=0,y=l.id;return typeof y=="string"&&(y=y.replace(/-/g,"_")),r.innerHTML=So(u.body,y?()=>y+"ID"+T++:"iconifyVue"),e.h("svg",r)}const{body:f,width:p,height:z}=t,L=o==="mask"||(o==="bg"?!1:f.indexOf("currentColor")!==-1),F=tl(f,{...h,width:p+"",height:z+""});return r.style={...i,"--svg":ll(F),width:Bt(h.width),height:Bt(h.height),...il,...L?Ke:Xt,...a},e.h("span",r)};Rt(!0);Eo("",_o);if(typeof document<"u"&&typeof window<"u"){Kt();const t=window;if(t.IconifyPreload!==void 0){const l=t.IconifyPreload,n="Invalid IconifyPreload syntax.";typeof l=="object"&&l!==null&&(l instanceof Array?l:[l]).forEach(r=>{try{(typeof r!="object"||r===null||r instanceof Array||typeof r.icons!="object"||typeof r.prefix!="string"||!ho(r))&&console.error(n)}catch{console.error(n)}})}if(t.IconifyProviders!==void 0){const l=t.IconifyProviders;if(typeof l=="object"&&l!==null)for(let n in l){const r="IconifyProviders["+n+"] is invalid.";try{const o=l[n];if(typeof o!="object"||!o||o.resources===void 0)continue;zo(n,o)||console.error(r)}catch{console.error(r)}}}}const al={...Pe,body:""},J=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 n;if(typeof t!="string"||(n=_e(t,!1,!0))===null)return this.abortLoading(),null;const r=uo(n);if(!r)return(!this._loadingIcon||this._loadingIcon.name!==t)&&(this.abortLoading(),this._name="",r!==null&&(this._loadingIcon={name:t,abort:Xo([n],()=>{this.counter++})})),null;this.abortLoading(),this._name!==t&&(this._name=t,l&&l(t));const o=["iconify"];return n.prefix!==""&&o.push("iconify--"+n.prefix),n.provider!==""&&o.push("iconify--"+n.provider),{data:r,classes:o}}},render(){this.counter;const t=this.$attrs,l=this.iconMounted||t.ssr?this.getIcon(t.icon,t.onLoad):null;if(!l)return Nt(al,t);let n=t;return l.classes&&(n={...t,class:(typeof t.class=="string"?t.class+" ":"")+l.classes.join(" ")}),Nt({...Pe,...l.data},n)}}),sl={name:"buttonExpand"},cl=e.defineComponent({...sl,props:{item:{default:[]},expandedrows:{default:()=>[]},expandall:{type:Boolean,default:!1}},setup(t){const l=t,n=e.toRef(l,"expandedrows"),r=e.ref(!1);function o(s){if(l.expandall)r.value=!r.value,n.value.forEach(a=>{a.isExpanded=r.value});else{const a=n.value.find(u=>u.id==s);a?a.isExpanded=!a.isExpanded:n.value.push({id:s,isExpanded:!0})}}const i=e.ref(-1);return e.watch(()=>n.value,(s,a)=>{var u;new Set(n.value.map(h=>h.isExpanded)).size>1?(i.value=-1,r.value=!0):(u=n.value.at(0))!=null&&u.isExpanded?(i.value=0,r.value=!0):(i.value=1,r.value=!1)},{deep:!0}),(s,a)=>{var u,h;return e.openBlock(),e.createElementBlock("button",{class:"expandbtn",onClick:a[0]||(a[0]=f=>o(s.item.id))},[(((u=n.value.find(f=>f.id==s.item.id))==null?void 0:u.isExpanded)==null?r.value:(h=n.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},[i.value?(e.openBlock(),e.createBlock(e.unref(J),{key:0,icon:"fluent:chevron-down-up-16-filled"})):(e.openBlock(),e.createBlock(e.unref(J),{key:1,icon:"mdi:chevron-down"}))],64)):(e.openBlock(),e.createBlock(e.unref(J),{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},[i.value==-1?(e.openBlock(),e.createBlock(e.unref(J),{key:0,icon:"ion:chevron-expand"})):i.value==0?(e.openBlock(),e.createBlock(e.unref(J),{key:1,icon:"mdi:chevron-down"})):(e.openBlock(),e.createBlock(e.unref(J),{key:2,icon:"mdi:chevron-right"}))],64)):(e.openBlock(),e.createBlock(e.unref(J),{key:1,icon:"mdi:chevron-right"}))],64))])}}}),pe=(t,l)=>{const n=t.__vccOpts||t;for(const[r,o]of l)n[r]=o;return n},Yt=pe(cl,[["__scopeId","data-v-8bd9f848"]]),ul={name:"ButtonRightPanel"},dl=e.defineComponent({...ul,props:{item:{default:[]}},emits:["rightPanelClick"],setup(t,{emit:l}){const n=t,r=l;function o(){r("rightPanelClick",n.item)}return(i,s)=>(e.openBlock(),e.createElementBlock("button",{class:"rightpanelbtn",onClick:e.withModifiers(o,["stop"])},[e.createVNode(e.unref(J),{icon:"lucide:plus"})]))}}),fl=pe(dl,[["__scopeId","data-v-d739c6bf"]]),hl={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"},ml={name:"columnFilter"},pl=e.defineComponent({...ml,props:["column","columnFilterLang"],emits:["close","filterChange"],setup(t,{emit:l}){const n=t;e.onBeforeUnmount(()=>{document.removeEventListener("click",o)}),e.onMounted(()=>{document.addEventListener("click",o)});const r=l,o=()=>{r("close")},i=s=>{n.column.condition=s,s===""&&(n.column.value=""),r("filterChange",n.column)};return(s,a)=>(e.openBlock(),e.createElementBlock("div",hl,[e.createElementVNode("div",{class:"bh-text-[13px] bh-font-normal bh-rounded bh-overflow-hidden",onClick:e.withModifiers(o,["stop"])},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition===""}),onClick:a[0]||(a[0]=u=>i(""))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.NoFilter)??"No filter"),3),n.column.type==="string"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="Contains"}),onClick:a[1]||(a[1]=u=>i("Contains"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.Contains)??"Contains"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="NotContains"}),onClick:a[2]||(a[2]=u=>i("NotContains"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.NotContains)??"NotContains"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="Equal"}),onClick:a[3]||(a[3]=u=>i("Equal"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.Equal)??"Equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="NotEqual"}),onClick:a[4]||(a[4]=u=>i("NotEqual"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.NotEqual)??"NotEqual"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="StartsWith"}),onClick:a[5]||(a[5]=u=>i("StartsWith"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.StartsWith)??"StartsWith"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="EndsWith"}),onClick:a[6]||(a[6]=u=>i("EndsWith"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.EndsWith)??"EndsWith"),3)],64)):n.column.type==="number"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="Equal"}),onClick:a[7]||(a[7]=u=>i("Equal"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.Equal)??"Equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="NotEqual"}),onClick:a[8]||(a[8]=u=>i("NotEqual"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.NotEqual)??"NotEqual"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="GreaterThan"}),onClick:a[9]||(a[9]=u=>i("GreaterThan"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.GreaterThan)??"GreaterThan"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="GreaterThanOrEqual"}),onClick:a[10]||(a[10]=u=>i("GreaterThanOrEqual"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.GreaterThanOrEqual)??"GreaterThanOrEqual"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="LessThan"}),onClick:a[11]||(a[11]=u=>i("LessThan"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.LessThan)??"LessThan"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="LessThanOrEqual"}),onClick:a[12]||(a[12]=u=>i("LessThanOrEqual"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.LessThanOrEqual)??"LessThanOrEqual"),3)],64)):n.column.type==="date"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="Equal"}),onClick:a[13]||(a[13]=u=>i("Equal"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.Equal)??"Equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="NotEqual"}),onClick:a[14]||(a[14]=u=>i("NotEqual"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.NotEqual)??"Not equal"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="GreaterThan"}),onClick:a[15]||(a[15]=u=>i("GreaterThan"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.GreaterThan)??"GreaterThan"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="LessThan"}),onClick:a[16]||(a[16]=u=>i("LessThan"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.LessThan)??"LessThan"),3)],64)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="IsNull"}),onClick:a[17]||(a[17]=u=>i("IsNull"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.IsNull)??"IsNull"),3),e.createElementVNode("button",{type:"button",class:e.normalizeClass({active:n.column.condition==="IsNotNull"}),onClick:a[18]||(a[18]=u=>i("IsNotNull"))},e.toDisplayString((n.columnFilterLang&&n.columnFilterLang.IsNotNull)??"IsNotNull"),3)])]))}}),vl={},gl={version:"1.1",viewBox:"0 0 17 12",xmlns:"http://www.w3.org/2000/svg"},bl=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),yl=[bl];function kl(t,l){return e.openBlock(),e.createElementBlock("svg",gl,yl)}const Jt=pe(vl,[["render",kl]]),wl={},Cl={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"},xl=e.createElementVNode("line",{x1:"5",y1:"12",x2:"19",y2:"12"},null,-1),Sl=[xl];function El(t,l){return e.openBlock(),e.createElementBlock("svg",Cl,Sl)}const zl=pe(wl,[["render",El]]),Bl={},Nl={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"},Ll=e.createElementVNode("polygon",{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"},null,-1),Fl=[Ll];function Ml(t,l){return e.openBlock(),e.createElementBlock("svg",Nl,Fl)}const Tl=pe(Bl,[["render",Ml]]),_l={key:"hdrrow"},Pl={class:"bh-checkbox"},Il={key:2,class:"bh-w-px"},Vl=["onClick"],Ol={width:"16",height:"16",viewBox:"0 0 14 14",fill:"none"},$l={key:0,class:"bh-filter bh-relative"},Rl=["onUpdate:modelValue"],Dl=["onUpdate:modelValue"],Al=["onUpdate:modelValue"],ql=["onUpdate:modelValue"],Hl=e.createElementVNode("option",{value:void 0},"All",-1),jl=e.createElementVNode("option",{value:!0},"True",-1),Wl=e.createElementVNode("option",{value:!1},"False",-1),Ul=[Hl,jl,Wl],Gl=["onClick"],Ql={name:"columnHeader"},Lt=e.defineComponent({...Ql,props:["all","expandedrows","currentSortColumn","currentSortDirection","isOpenFilter","isFooter","checkAll","columnFilterLang"],emits:["selectAll","sortChange","filterChange","toggleFilterMenu"],setup(t,{emit:l}){const n=e.ref(null),r=t,o=l,i=()=>{n.value&&(n.value.indeterminate=r.checkAll!==0?!r.checkAll:!1,n.value.checked=r.checkAll)};return e.watch(()=>r.checkAll,i),(s,a)=>(e.openBlock(),e.createElementBlock("tr",_l,[r.all.hasCheckbox?(e.openBlock(),e.createElementBlock("th",{key:"chkall",class:e.normalizeClass(["bh-w-px",{"bh-sticky bh-bg-blue-light bh-z-[1]":r.all.stickyHeader||r.all.stickyFirstColumn,"bh-top-0":r.all.stickyHeader,"bh-left-0":r.all.stickyFirstColumn}])},[e.createElementVNode("div",Pl,[e.createElementVNode("input",{ref_key:"selectedAll",ref:n,type:"checkbox",onClick:a[0]||(a[0]=e.withModifiers(u=>{var h;return o("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(zl,{class:"intermediate"})])])],2)):e.createCommentVNode("",!0),r.all.hasRightPanel?(e.openBlock(),e.createElementBlock("th",{key:1,class:e.normalizeClass(["bh-w-px",{"bh-sticky bh-bg-blue-light bh-z-[1]":r.all.stickyHeader||r.all.stickyFirstColumn,"bh-top-0":r.all.stickyHeader,"bh-left-0":r.all.stickyFirstColumn}])},null,2)):e.createCommentVNode("",!0),r.all.hasSubtable?(e.openBlock(),e.createElementBlock("th",Il,[r.all.expandall?(e.openBlock(),e.createBlock(Yt,{key:0,expandedrows:r.expandedrows,expandall:r.all.expandall},null,8,["expandedrows","expandall"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.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]",[r.all.sortable&&u.sort?"bh-cursor-pointer":"",h===0&&r.all.stickyFirstColumn?"bh-sticky bh-left-0 bh-bg-blue-light":"",r.all.hasCheckbox&&h===0&&r.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=>r.all.sortable&&u.sort&&o("sortChange",u.field)},[e.createTextVNode(e.toDisplayString(u.title)+" ",1),r.all.sortable&&u.sort?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["bh-ml-3 bh-sort bh-flex bh-items-center",[r.currentSortColumn,r.currentSortDirection]])},[(e.openBlock(),e.createElementBlock("svg",Ol,[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,Vl),r.all.columnFilter&&!r.isFooter?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[u.filter?(e.openBlock(),e.createElementBlock("div",$l,[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=>o("filterChange"))},null,40,Rl)),[[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=>o("filterChange"))},null,40,Dl)),[[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=>o("filterChange"))},null,40,Al)),[[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=>o("filterChange")),onClick:a[5]||(a[5]=(...f)=>r.isOpenFilter&&r.isOpenFilter(...f))},Ul,40,ql)),[[e.vModelSelect,u.value]]):e.createCommentVNode("",!0),u.type!=="bool"?(e.openBlock(),e.createElementBlock("button",{key:4,type:"button",onClick:e.withModifiers(f=>o("toggleFilterMenu",u),["stop"])},[e.createVNode(Tl,{class:"bh-w-4"})],8,Gl)):e.createCommentVNode("",!0),e.withDirectives(e.createVNode(pl,{column:u,type:u.type,columnFilterLang:r.columnFilterLang,onClose:a[6]||(a[6]=f=>o("toggleFilterMenu",null)),onFilterChange:a[7]||(a[7]=f=>o("filterChange"))},null,8,["column","type","columnFilterLang"]),[[e.vShow,r.isOpenFilter===u.field]])])):e.createCommentVNode("",!0)],64)):e.createCommentVNode("",!0)],6))],64))),256))]))}}),Kl={class:"bh-datatable bh-antialiased bh-relative bh-text-black bh-text-sm bh-font-normal"},Xl={class:"bh-flex bh-h-full"},Yl=e.createElementVNode("span",null,"##Left Menu Slot##",-1),Jl={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"},Zl=e.createElementVNode("path",{d:"M7 1L1 6L7 11",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),er=[Zl],tr={class:"bh-flex-1"},nr=e.createElementVNode("span",null,"##Top Menu Slot##",-1),or=e.createElementVNode("span",null,"##Table Action Header Slot##",-1),lr=["onClick"],rr={class:"bh-checkbox"},ir=["value"],ar=["innerHTML"],sr=["onClick"],cr=["colspan"],ur=["colspan"],dr=e.createElementVNode("div",{class:"bh-skeleton-box bh-h-8"},null,-1),fr=[dr],hr=["colspan"],mr={class:"bh-flex bh-items-center bh-flex-wrap bh-flex-col sm:bh-flex-row bh-gap-4"},pr={class:"bh-pagination-info bh-flex bh-items-center"},vr={class:"bh-mr-2"},gr=["value"],br={class:"bh-pagination-number sm:bh-ml-auto bh-inline-flex bh-items-center bh-space-x-1"},yr=["innerHTML"],kr={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},wr=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),Cr=[wr],xr=["innerHTML"],Sr={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Er=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),zr=[Er],Br=["onClick"],Nr=["innerHTML"],Lr={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Fr=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),Mr=[Fr],Tr=["innerHTML"],_r={key:1,"aria-hidden":"true",width:"14",height:"14",viewBox:"0 0 16 16"},Pr=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),Ir=[Pr],Vr={name:"Vue3Datatable"},Or=e.defineComponent({...Vr,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},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:"vertical"},enableleftmenu:{type:Boolean},enabletopmenu:{type:Boolean},leftmenuMinWidth:{default:50},leftmenuDefaultWidth:{default:250},topmenusize:{},topmenumax:{},topmenumin:{},skeletonloader:{type:Boolean},enableloadinganimation:{type:Boolean},enablefooterpagination:{type:Boolean},footerOffset:{default:0},tableRightOffset:{default:0}},emits:["change","sortChange","searchChange","pageChange","pageSizeChange","rowSelect","filterChange","rowClick","rowDBClick","currentTopMenuSize","currentLeftMenuSize","rowRightPanelClick"],setup(t,{expose:l,emit:n}){var rt,it;const r=e.useSlots(),o=t;for(const c of o.columns||[]){const v=((rt=c.type)==null?void 0:rt.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 i=e.ref([]),s=e.ref(o.page),a=e.ref(o.pagination?o.pageSize:(it=o.rows)==null?void 0:it.length),u=o.pageSize,h=e.ref(o.sortColumn),f=o.sortColumn,p=e.ref(o.sortDirection),z=o.sortDirection,L=e.ref(o.totalRows),F=e.ref([]),T=e.ref(null),y=e.ref(o.loading),_=e.ref(o.search);JSON.parse(JSON.stringify(o.columns));const O=e.ref(null),$=e.ref(null);let M=e.ref(0);const A=e.ref(230),x=e.ref(o.leftmenuDefaultWidth),E=e.ref(!1),P=e.ref(null),q=()=>{E.value=!E.value,x.value=E.value?o.leftmenuMinWidth:o.leftmenuDefaultWidth,P.value&&(P.value.style.width=x.value+"px"),I("currentLeftMenuSize",x.value)};e.onMounted(()=>{K(),e.nextTick(()=>{xe.value<=0&&(xe.value=10),x.value=o.leftmenuDefaultWidth})});const I=n;l({reset(){we()},getSelectedRows(){return Zt()},getColumnFilters(){return en()},clearSelectedRows(){return tn()},selectRow(c){nt(c)},unselectRow(c){ot(c)},isRowSelected(c){return Ce(c)},getFilteredRows(){return ge()}});const ve=(c,...v)=>c.replace(/{(\d+)}/g,(C,V)=>typeof v[V]<"u"?v[V]:C),H=e.computed(()=>{const c=o.columns.find(v=>v.isUnique);return(c==null?void 0:c.field)||null}),Q=e.computed(()=>{const c=a.value<1?1:Math.ceil(L.value/a.value);return Math.max(c||0,1)}),le=e.computed(()=>(s.value-1)*a.value+1),ae=e.computed(()=>{const c=s.value*a.value;return L.value>=c?c:L.value}),Z=e.computed(()=>{let c,v;return typeof o.showNumbersCount<"u"&&o.showNumbersCount<Q.value?(c=Math.max(s.value-Math.floor(o.showNumbersCount/2),1),v=c+o.showNumbersCount-1,v>Q.value&&(v=Q.value,c=v-o.showNumbersCount+1)):(c=1,v=Q.value),Array.from(Array(v+1-c).keys()).map(W=>c+W)}),ge=()=>{var W,D,Y;let c=o.rows||[];if(!o.isServerMode){if((W=o.columns)==null||W.forEach(m=>{m.filter&&(m.value!==void 0&&m.value!==null&&m.value!==""||m.condition==="IsNull"||m.condition=="IsNotNull")&&(m.type==="string"?(m.value&&!m.condition&&(m.condition="Contains"),m.condition==="Contains"?c=c.filter(B=>{var R;return(R=S(B,m.field))==null?void 0:R.toString().toLowerCase().includes(m.value.toLowerCase())}):m.condition==="NotContains"?c=c.filter(B=>{var R;return!((R=S(B,m.field))!=null&&R.toString().toLowerCase().includes(m.value.toLowerCase()))}):m.condition==="Equal"?c=c.filter(B=>{var R;return((R=S(B,m.field))==null?void 0:R.toString().toLowerCase())===m.value.toLowerCase()}):m.condition==="NotEqual"?c=c.filter(B=>{var R;return((R=S(B,m.field))==null?void 0:R.toString().toLowerCase())!==m.value.toLowerCase()}):m.condition=="StartsWith"?c=c.filter(B=>{var R;return((R=S(B,m.field))==null?void 0:R.toString().toLowerCase().indexOf(m.value.toLowerCase()))===0}):m.condition=="EndsWith"&&(c=c.filter(B=>{var R;return((R=S(B,m.field))==null?void 0:R.toString().toLowerCase().substr(m.value.length*-1))===m.value.toLowerCase()}))):m.type==="number"?(m.value&&!m.condition&&(m.condition="Equal"),m.condition==="Equal"?c=c.filter(B=>S(B,m.field)&&parseFloat(S(B,m.field))===parseFloat(m.value)):m.condition==="NotEqual"?c=c.filter(B=>S(B,m.field)&&parseFloat(S(B,m.field))!==parseFloat(m.value)):m.condition==="GreaterThan"?c=c.filter(B=>S(B,m.field)&&parseFloat(S(B,m.field))>parseFloat(m.value)):m.condition==="GreaterThanOrEqual"?c=c.filter(B=>S(B,m.field)&&parseFloat(S(B,m.field))>=parseFloat(m.value)):m.condition==="LessThan"?c=c.filter(B=>S(B,m.field)&&parseFloat(S(B,m.field))<parseFloat(m.value)):m.condition==="LessThanOrEqual"&&(c=c.filter(B=>S(B,m.field)&&parseFloat(S(B,m.field))<=parseFloat(m.value)))):m.type==="date"?(m.value&&!m.condition&&(m.condition="Equal"),m.condition==="Equal"?c=c.filter(B=>S(B,m.field)&&j(S(B,m.field))===m.value):m.condition==="NotEqual"?c=c.filter(B=>S(B,m.field)&&j(S(B,m.field))!==m.value):m.condition==="GreaterThan"?c=c.filter(B=>S(B,m.field)&&j(S(B,m.field))>m.value):m.condition==="LessThan"&&(c=c.filter(B=>S(B,m.field)&&j(S(B,m.field))<m.value))):m.type==="bool"&&(c=c.filter(B=>S(B,m.field)===m.value)),m.condition==="IsNull"?(c=c.filter(B=>S(B,m.field)==null||S(B,m.field)==""),m.value=""):m.condition==="IsNotNull"&&(m.value="",c=c.filter(B=>S(B,m.field))))}),_.value&&(c!=null&&c.length)){let m=[];const B=(o.columns||[]).filter(R=>R.search&&!R.hide).map(R=>R.field);for(var v=0;v<(c==null?void 0:c.length);v++)for(var C=0;C<B.length;C++)if((D=S(c[v],B[C]))!=null&&D.toString().toLowerCase().includes(_.value.toLowerCase())){m.push(c[v]);break}c=m}var V=new Intl.Collator(void 0,{numeric:((Y=o.columns.find(m=>m.field==h.value))==null?void 0:Y.type)==="number",sensitivity:"base"});const an=p.value==="desc"?-1:1;c.sort((m,B)=>{var at,st;const R=(at=h.value)==null?void 0:at.split(".").reduce((ne,$e)=>ne==null?void 0:ne[$e],m),sn=(st=h.value)==null?void 0:st.split(".").reduce((ne,$e)=>ne==null?void 0:ne[$e],B);return V.compare(R,sn)*an})}return c},ee=e.ref([]),K=()=>{let c=[],v=ge();o.isServerMode?(L.value=o.totalRows||0,c=v):(L.value=(v==null?void 0:v.length)||0,c=v.slice(le.value-1,ae.value)),o.hasSubtable&&c.forEach(function(C){C.isExpanded!=null&&(ee.value.find(W=>W.id==C.id)||ee.value.push({id:C.id,isExpanded:C.isExpanded}))}),i.value=c||[]};e.watch(()=>o.loading,()=>{y.value=o.loading});const re=c=>{c?O.value===c.field?O.value=null:O.value=c.field:O.value=null},be=()=>{if(s.value==1)return!1;s.value--},ye=c=>{s.value=c},ke=()=>{if(s.value>=Q.value)return!1;s.value++},se=()=>{g(!1),o.isServerMode?X("page"):(K(),I("pageChange",s.value))};e.watch(()=>s.value,se);const G=()=>{o.isServerMode||(s.value=1),g(!1),K()};e.watch(()=>o.rows,G);const Ve=c=>{a.value=c},d=()=>{g(!1),o.isServerMode?s.value===1?X("pagesize",!0):s.value=1:(s.value=1,K(),I("pageSizeChange",a.value))};e.watch(()=>a.value,d);const b=c=>{let v="asc";c==h.value&&p.value==="asc"&&(v="desc");let C=(s.value-1)*a.value,V=a.value;h.value=c,p.value=v,g(!1),K(),o.isServerMode?X("sort"):I("sortChange",{offset:C,limit:V,field:c,direction:v})},w=c=>{T.value=c.length&&i.value.length&&c.length===i.value.length;const v=i.value.filter((C,V)=>F.value.includes(H.value?C[H.value]:V));I("rowSelect",v)};e.watch(()=>F.value,w);const g=c=>{c?F.value=i.value.map((v,C)=>H.value?v[H.value]:C):F.value=[]},k=()=>{g(!1),o.isServerMode?s.value===1?X("filter",!0):s.value=1:(s.value=1,K(),I("filterChange",o.columns))},N=()=>{g(!1),o.isServerMode?s.value===1?X("search",!0):s.value=1:(s.value=1,K(),I("searchChange",_.value))};e.watch(()=>o.search,()=>{_.value=o.search,N()});const S=(c,v)=>v==null?void 0:v.split(".").reduce((C,V)=>C==null?void 0:C[V],c),j=c=>{try{if(!c)return"";const v=new Date(c),C=v.getDate(),V=v.getMonth()+1;return v.getFullYear()+"-"+(V>9?V:"0"+V)+"-"+(C>9?C:"0"+C)}catch{}return""},U=(c,v)=>{M.value++,M.value===1?$.value=setTimeout(()=>{M.value=0,o.selectRowOnClick&&(Ce(v)?ot(v):nt(v),w(F.value)),I("rowClick",c)},A.value):M.value===2&&(clearTimeout($.value),M.value=0,I("rowDBClick",c))},X=(c,v=!1)=>{if(o.isServerMode){Oe();const C={current_page:v?1:s.value,pagesize:a.value,offset:(s.value-1)*a.value,sort_column:h.value,sort_direction:p.value,search:_.value,column_filters:o.columns,change_type:c};I("change",C)}},Oe=()=>{for(let c=0;c<o.columns.length;c++){let v=o.columns[c];v.filter&&(v.value!==void 0&&v.value!==null&&v.value!==""||v.condition==="IsNull"||v.condition==="IsNotNull")&&(v.type==="string"&&v.value&&!v.condition&&(v.condition="Contains"),v.type==="number"&&v.value&&!v.condition&&(v.condition="Equal"),v.type==="date"&&v.value&&!v.condition&&(v.condition="Equal"))}},we=()=>{g(!1);for(let c=0;c<o.columns.length;c++)o.columns[c].value="";_.value="",a.value=u,h.value=f,p.value=z,o.isServerMode?s.value===1?X("reset",!0):s.value=1:(s.value=1,K())},Zt=()=>i.value.filter((v,C)=>F.value.includes(H.value?v[H.value]:C)),en=()=>o.columns,tn=()=>{F.value=[]},nt=c=>{if(!Ce(c)){const v=i.value.find((C,V)=>V===c);F.value.push(H.value?v[H.value]:c)}},ot=c=>{if(Ce(c)){const v=i.value.find((C,V)=>V===c);F.value=F.value.filter(C=>C!==(H.value?v[H.value]:c))}},Ce=c=>{const v=i.value.find((C,V)=>V===c);return v?F.value.includes(H.value?v[H.value]:c):!1};let te=0;o.hasCheckbox&&te++,o.hasSubtable&&te++,o.hasRightPanel&&te++;const nn=e.ref(0),on=setInterval(function(){nn.value++},2200),xe=e.ref(o.topmenusize),lt=e.ref(null),ln=gn(lt).height,rn=c=>{if(!c||!c.length)return;const v=c[0].size;xe.value=v,I("currentTopMenuSize",v)};return e.onUnmounted(()=>{clearInterval(on)}),(c,v)=>(e.openBlock(),e.createElementBlock("div",Kl,[e.createVNode(e.unref(mt),{class:"default-theme",style:e.normalizeStyle({height:o.height})},{default:e.withCtx(()=>[e.createVNode(e.unref(De),null,{default:e.withCtx(()=>[e.createElementVNode("div",Xl,[c.enableleftmenu?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"leftmenuel",ref:P,class:"left-menu-container bh-relative",style:e.normalizeStyle({width:x.value+"px",transition:"width 0.3s ease",overflow:"hidden",minWidth:o.leftmenuMinWidth+"px"})},[e.renderSlot(c.$slots,"tableleftmenu",{},()=>[Yl]),e.createElementVNode("div",Jl,[e.createElementVNode("button",{onClick:q,class:"bh-w-4 bh-h-10 bh-flex bh-justify-center bh-items-center bh-border-none bh-bg-transparent bh-cursor-pointer bh-outline-none"},[(e.openBlock(),e.createElementBlock("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:e.normalizeStyle({transform:E.value?"rotate(180deg)":"none"})},er,4))])])],4)):e.createCommentVNode("",!0),e.createElementVNode("div",tr,[e.createVNode(e.unref(mt),{class:"default-theme",horizontal:"horizontal",onResize:rn,"push-other-panes":""},{default:e.withCtx(()=>[c.enabletopmenu?(e.openBlock(),e.createBlock(e.unref(De),{key:0,ref_key:"topmenuel",ref:lt,size:xe.value||10,"max-size":c.topmenumax||100,style:e.normalizeStyle({"min-height":c.topmenumin+"px"})},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"tabletopmenu",{},()=>[nr])]),_:3},8,["size","max-size","style"])):e.createCommentVNode("",!0),e.createVNode(e.unref(De),{style:e.normalizeStyle({"padding-right":c.tableRightOffset+"px"})},{default:e.withCtx(()=>[e.renderSlot(c.$slots,"tableactionheader",{},()=>[or]),e.createElementVNode("div",{class:e.normalizeClass(o.scrollbarstyle)},[e.createVNode(e.unref(oo),{style:e.normalizeStyle({height:o.stickyHeader&&Number(o.height.replace("px",""))-(c.footerOffset+e.unref(ln))+"px"}),autoHide:o.scrollbarautohide,fixedThumb:o.scrollbarfixedthumb,autoExpand:o.scrollbarautoexpand,direction:o.scrollbardirection,throttleType:"none"},{default:e.withCtx(()=>[e.createElementVNode("div",{class:e.normalizeClass(["bh-table-responsive",{"bh-min-h-[100px]":y.value}]),style:e.normalizeStyle({overflow:o.stickyHeader&&"inherit"})},[e.createElementVNode("table",{class:e.normalizeClass([o.skin])},[e.createElementVNode("thead",{class:e.normalizeClass({"bh-sticky bh-top-0 bh-z-10":o.stickyHeader})},[e.createVNode(Lt,{all:o,expandedrows:ee.value,currentSortColumn:h.value,currentSortDirection:p.value,isOpenFilter:O.value,checkAll:T.value,columnFilterLang:o.columnFilterLang,onSelectAll:g,onSortChange:b,onFilterChange:k,onToggleFilterMenu:re},null,8,["expandedrows","currentSortColumn","currentSortDirection","isOpenFilter","checkAll","columnFilterLang"])],2),e.createElementVNode("tbody",null,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,(C,V)=>{var W;return e.openBlock(),e.createElementBlock(e.Fragment,{key:C[H.value]?C[H.value]:V},[L.value?(e.openBlock(),e.createElementBlock("tr",{key:0,class:e.normalizeClass([typeof o.rowClass=="function"?c.rowClass(C):o.rowClass,o.selectRowOnClick?"bh-cursor-pointer":""]),onClick:e.withModifiers(D=>U(C,V),["prevent"])},[o.hasCheckbox?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass({"bh-sticky bh-left-0 bh-bg-blue-light":o.stickyFirstColumn})},[e.createElementVNode("div",rr,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":v[0]||(v[0]=D=>F.value=D),type:"checkbox",value:C[H.value]?C[H.value]:V,onClick:v[1]||(v[1]=e.withModifiers(()=>{},["stop"]))},null,8,ir),[[e.vModelCheckbox,F.value]]),e.createElementVNode("div",null,[e.createVNode(Jt,{class:"check"})])])],2)):e.createCommentVNode("",!0),o.hasRightPanel?(e.openBlock(),e.createElementBlock("td",{key:1,class:e.normalizeClass({"bh-sticky bh-left-0 bh-bg-blue-light":o.stickyFirstColumn})},[e.createVNode(fl,{item:C,onRightPanelClick:v[2]||(v[2]=D=>I("rowRightPanelClick",D))},null,8,["item"])],2)):e.createCommentVNode("",!0),o.hasSubtable?(e.openBlock(),e.createElementBlock("td",{key:2,class:e.normalizeClass({"bh-sticky bh-left-0 bh-bg-blue-light":o.stickyFirstColumn})},[e.createVNode(Yt,{item:C,expandedrows:ee.value},null,8,["item","expandedrows"])],2)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(D,Y)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[D.hide?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("td",{key:D.field,class:e.normalizeClass([typeof o.cellClass=="function"?c.cellClass(C):o.cellClass,Y===0&&o.stickyFirstColumn?"bh-sticky bh-left-0 bh-bg-blue-light":"",o.hasCheckbox&&Y===0&&o.stickyFirstColumn?"bh-left-[52px]":"",D.cellClass?D.cellClass:""])},[e.unref(r)[D.field]?e.renderSlot(c.$slots,D.field,{key:0,value:C}):D.cellRenderer?(e.openBlock(),e.createElementBlock("div",{key:1,innerHTML:D.cellRenderer(C)},null,8,ar)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:2},[e.createTextVNode(e.toDisplayString(S(C,D.field)),1)],64))],2))],64))),256))],10,lr)):e.createCommentVNode("",!0),(W=ee.value.find(D=>D.id==C.id))!=null&&W.isExpanded&&o.hasSubtable?(e.openBlock(),e.createElementBlock("tr",{key:1,class:e.normalizeClass([typeof o.rowClass=="function"?c.rowClass(C):o.rowClass,o.selectRowOnClick?"bh-cursor-pointer":""]),onClick:e.withModifiers(D=>U(C,V),["prevent"])},[e.createElementVNode("td",{colspan:o.columns.length+e.unref(te)},[e.renderSlot(c.$slots,"tsub",{value:i.value})],8,cr)],10,sr)):e.createCommentVNode("",!0)],64)}),128)),!L.value&&y.value&&c.skeletonloader?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(o.pageSize,C=>(e.openBlock(),e.createElementBlock("tr",{key:C,class:"!bh-bg-white bh-h-11 !bh-border-transparent"},[e.createElementVNode("td",{colspan:o.columns.length+e.unref(te),class:"!bh-p-0 !bh-border-transparent"},fr,8,ur)]))),128)):e.createCommentVNode("",!0),L.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(o.footerRows,(C,V)=>(e.openBlock(),e.createElementBlock("tr",{key:C[H.value]?C[H.value]:V,class:"sticky-table-footer"},[e.unref(te)>0?(e.openBlock(),e.createElementBlock("td",{key:0,colspan:e.unref(te)},null,8,hr)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.columns,(W,D)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[W.hide?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("td",{key:W.field,class:e.normalizeClass([typeof o.cellClass=="function"?c.cellClass(C):o.cellClass,D===0&&o.stickyFirstColumn?"bh-sticky bh-left-0 bh-bg-blue-light":"",o.hasCheckbox&&D===0&&o.stickyFirstColumn?"bh-left-[52px]":"",W.cellClass?W.cellClass:""])},[C.cells.find(Y=>Y.field==W.field)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(C.cells.find(Y=>Y.field==W.field).text),1)],64)):e.createCommentVNode("",!0)],2))],64))),256))]))),128)):e.createCommentVNode("",!0)]),o.cloneHeaderInFooter?(e.openBlock(),e.createElementBlock("tfoot",{key:0,class:e.normalizeClass({"bh-sticky bh-bottom-0":o.stickyHeader})},[e.createVNode(Lt,{all:o,currentSortColumn:h.value,currentSortDirection:p.value,isOpenFilter:O.value,isFooter:!0,checkAll:T.value,onSelectAll:g,onSortChange:b,onFilterChange:k,onToggleFilterMenu:re},null,8,["currentSortColumn","currentSortDirection","isOpenFilter","checkAll"])],2)):e.createCommentVNode("",!0)],2),y.value&&c.enableloadinganimation?(e.openBlock(),e.createElementBlock("div",{key:0,class:"bh-absolute bh-inset-0 bh-bg-blue-light/50 bh-grid bh-place-content-center dt-center-loading",style:e.normalizeStyle({height:Number(o.height.replace("px",""))-175+"px"})},[e.renderSlot(c.$slots,"loadercontent")],4)):e.createCommentVNode("",!0)],6),!L.value&&!y.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:"nodatacontent",style:e.normalizeStyle({height:Number(o.height.replace("px",""))-175+"px"})},[e.renderSlot(c.$slots,"nodatacontent",{},()=>[e.createElementVNode("span",null,e.toDisplayString(o.noDataContent),1)])],4)):e.createCommentVNode("",!0)]),_:3},8,["style","autoHide","fixedThumb","autoExpand","direction"])],2)]),_:3},8,["style"])]),_:3})])])]),_:3})]),_:3},8,["style"]),o.pagination&&L.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["bh-pagination",{"bh-pointer-events-none":y.value,"sticky-footer":o.stickyFooter}])},[e.createElementVNode("div",mr,[c.enablefooterpagination?e.renderSlot(c.$slots,"footerpageinfo",{key:0,paginationInfo:c.paginationInfo,filterRowCount:L.value,offset:le.value,limit:ae.value,showPageSize:c.showPageSize,pageSizeOptions:c.pageSizeOptions,currentPageSize:a.value,stringFormat:ve,setPageSize:Ve},()=>[e.createElementVNode("div",pr,[e.createElementVNode("span",vr,e.toDisplayString(ve(o.paginationInfo,L.value?le.value:0,ae.value,L.value)),1),o.showPageSize?e.withDirectives((e.openBlock(),e.createElementBlock("select",{key:0,"onUpdate:modelValue":v[3]||(v[3]=C=>a.value=C),class:"bh-pagesize"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o.pageSizeOptions,C=>(e.openBlock(),e.createElementBlock("option",{value:C,key:C},e.toDisplayString(C),9,gr))),128))],512)),[[e.vModelSelect,a.value]]):e.createCommentVNode("",!0)])]):e.createCommentVNode("",!0),c.enablefooterpagination?e.renderSlot(c.$slots,"footerpagination",{key:1,currentPage:s.value,maxPage:Q.value,paging:Z.value,movePage:ye,nextPage:ke,previousPage:be},()=>[e.createElementVNode("div",br,[o.showFirstPage?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["bh-page-item first-page",{disabled:s.value<=1}]),onClick:v[4]||(v[4]=C=>s.value=1)},[o.firstArrow?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:o.firstArrow},null,8,yr)):(e.openBlock(),e.createElementBlock("svg",kr,Cr))],2)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["bh-page-item previous-page",{disabled:s.value<=1}]),onClick:be},[o.previousArrow?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:o.previousArrow},null,8,xr)):(e.openBlock(),e.createElementBlock("svg",Sr,zr))],2),o.showNumbers?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(Z.value,C=>(e.openBlock(),e.createElementBlock("button",{key:C,type:"button",class:e.normalizeClass(["bh-page-item",{disabled:s.value===C,"bh-active":C===s.value}]),onClick:V=>ye(C)},e.toDisplayString(C),11,Br))),128)):e.createCommentVNode("",!0),e.createElementVNode("button",{type:"button",class:e.normalizeClass(["bh-page-item next-page",{disabled:s.value>=Q.value}]),onClick:ke},[o.nextArrow?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:o.nextArrow},null,8,Nr)):(e.openBlock(),e.createElementBlock("svg",Lr,Mr))],2),o.showLastPage?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["bh-page-item last-page",{disabled:s.value>=Q.value}]),onClick:v[5]||(v[5]=C=>s.value=Q.value)},[o.lastArrow?(e.openBlock(),e.createElementBlock("span",{key:0,innerHTML:o.lastArrow},null,8,Tr)):(e.openBlock(),e.createElementBlock("svg",_r,Ir))],2)):e.createCommentVNode("",!0)])]):e.createCommentVNode("",!0)])],2)):e.createCommentVNode("",!0)]))}});module.exports=Or;
|
package/dist/vue3-datatable.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { onMounted as Ce, nextTick as Fe, getCurrentScope as jn, onScopeDispose as Wn, unref as Q, getCurrentInstance as zt, computed as K, ref as
|
|
1
|
+
import { onMounted as Ce, nextTick as Fe, getCurrentScope as jn, onScopeDispose as Wn, unref as Q, getCurrentInstance as zt, computed as K, ref as B, watch as ee, defineComponent as ge, useCssVars as Vn, shallowRef as pe, onUnmounted as Ze, openBlock as b, createElementBlock as w, Fragment as U, withDirectives as he, createElementVNode as C, normalizeClass as M, normalizeStyle as oe, withModifiers as me, setBlockTracking as Dt, vShow as vt, createCommentVNode as R, mergeProps as Un, renderSlot as se, renderList as fe, createVNode as ne, reactive as Gn, watchEffect as Qn, useSlots as un, onBeforeUnmount as Lt, provide as Se, createBlock as ue, resolveDynamicComponent as Kn, inject as Ee, h as mt, toRef as Xn, toDisplayString as j, createTextVNode as gt, vModelText as ct, vModelSelect as cn, withCtx as _e, vModelCheckbox as Yn } from "vue";
|
|
2
2
|
function Jn(e) {
|
|
3
3
|
return jn() ? (Wn(e), !0) : !1;
|
|
4
4
|
}
|
|
@@ -20,7 +20,7 @@ function Pe(e) {
|
|
|
20
20
|
}
|
|
21
21
|
const dn = el ? window : void 0;
|
|
22
22
|
function ll() {
|
|
23
|
-
const e =
|
|
23
|
+
const e = B(!1), l = zt();
|
|
24
24
|
return l && Ce(() => {
|
|
25
25
|
e.value = !0;
|
|
26
26
|
}, l), e;
|
|
@@ -56,7 +56,7 @@ function rl(e, l = { width: 0, height: 0 }, t = {}) {
|
|
|
56
56
|
const { window: o = dn, box: n = "content-box" } = t, i = K(() => {
|
|
57
57
|
var p, _;
|
|
58
58
|
return (_ = (p = Pe(e)) == null ? void 0 : p.namespaceURI) == null ? void 0 : _.includes("svg");
|
|
59
|
-
}), s =
|
|
59
|
+
}), s = B(l.width), r = B(l.height), { stop: u } = il(
|
|
60
60
|
e,
|
|
61
61
|
([p]) => {
|
|
62
62
|
const _ = n === "border-box" ? p.borderBoxSize : n === "content-box" ? p.contentBoxSize : p.devicePixelContentBoxSize;
|
|
@@ -164,19 +164,19 @@ function pn(e, l, t) {
|
|
|
164
164
|
throw new TypeError(Tl);
|
|
165
165
|
l = Oe(l) || 0, tt(t) && (d = !!t.leading, p = "maxWait" in t, i = p ? Ml(Oe(t.maxWait) || 0, l) : i, _ = "trailing" in t ? !!t.trailing : _);
|
|
166
166
|
function I(z) {
|
|
167
|
-
var E = o,
|
|
168
|
-
return o = n = void 0, f = z, s = e.apply(
|
|
167
|
+
var E = o, A = n;
|
|
168
|
+
return o = n = void 0, f = z, s = e.apply(A, E), s;
|
|
169
169
|
}
|
|
170
170
|
function F(z) {
|
|
171
171
|
return f = z, r = setTimeout(N, l), d ? I(z) : s;
|
|
172
172
|
}
|
|
173
173
|
function $(z) {
|
|
174
|
-
var E = z - u,
|
|
175
|
-
return p ? Il(Y, i -
|
|
174
|
+
var E = z - u, A = z - f, Y = l - E;
|
|
175
|
+
return p ? Il(Y, i - A) : Y;
|
|
176
176
|
}
|
|
177
177
|
function y(z) {
|
|
178
|
-
var E = z - u,
|
|
179
|
-
return u === void 0 || E >= l || E < 0 || p &&
|
|
178
|
+
var E = z - u, A = z - f;
|
|
179
|
+
return u === void 0 || E >= l || E < 0 || p && A >= i;
|
|
180
180
|
}
|
|
181
181
|
function N() {
|
|
182
182
|
var z = dt();
|
|
@@ -249,7 +249,7 @@ function ql(e, { expose: l }) {
|
|
|
249
249
|
Ze(f);
|
|
250
250
|
const d = vn((E) => {
|
|
251
251
|
E.stopPropagation(), E.preventDefault();
|
|
252
|
-
const
|
|
252
|
+
const A = t.type === "horizontal" ? "pageX" : "pageY", Y = (E[A] - s[A]) / t.scrollInfo.wrapperMainSize * t.scrollInfo.contentMainSize;
|
|
253
253
|
t.wrapperEl.scrollTo({ [t.type === "horizontal" ? "left" : "top"]: s.scrollPos + Y, 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;
|
|
@@ -269,7 +269,7 @@ function ql(e, { expose: l }) {
|
|
|
269
269
|
if (!t.fixedThumb || !t.wrapperEl)
|
|
270
270
|
return z();
|
|
271
271
|
z(), H = new IntersectionObserver(X, { threshold: [0, 0.5] }), H.observe(t.wrapperEl), N = new IntersectionObserver(O), N.observe(y.value);
|
|
272
|
-
}), Ze(z), (E,
|
|
272
|
+
}), Ze(z), (E, A) => (b(), w(U, null, [
|
|
273
273
|
he(C("div", {
|
|
274
274
|
class: M([
|
|
275
275
|
"scrollbar__thumbPlaceholder",
|
|
@@ -290,9 +290,9 @@ function ql(e, { expose: l }) {
|
|
|
290
290
|
},
|
|
291
291
|
onPointerdown: me(_, ["stop"])
|
|
292
292
|
}, [
|
|
293
|
-
|
|
293
|
+
A[0] || (Dt(-1), A[0] = C("div", {
|
|
294
294
|
class: M(["scrollbar__thumb", `scrollbar__thumb--${e.type}`])
|
|
295
|
-
}, null, 2), Dt(1),
|
|
295
|
+
}, null, 2), Dt(1), A[0])
|
|
296
296
|
], 46, Bl), [
|
|
297
297
|
[vt, !!e.scrollInfo.thumbSize && (e.fixedThumb ? F.value : !0)]
|
|
298
298
|
]),
|
|
@@ -356,8 +356,8 @@ function Vl(e, { expose: l, emit: t }) {
|
|
|
356
356
|
const X = Array.from((O = s.value.parentElement) == null ? void 0 : O.childNodes);
|
|
357
357
|
for (const z in n)
|
|
358
358
|
n[z].el = X.find((E) => {
|
|
359
|
-
var
|
|
360
|
-
return (
|
|
359
|
+
var A;
|
|
360
|
+
return (A = E == null ? void 0 : E.classList) == null ? void 0 : A.contains(`scrollbar__thumbPlaceholder--${z}`);
|
|
361
361
|
});
|
|
362
362
|
});
|
|
363
363
|
const u = Vt(s, { wait: o.throttleWait, type: o.throttleType, callback: _ }), f = Vt(r, { wait: o.throttleWait, type: o.throttleType, callback: _ });
|
|
@@ -382,8 +382,8 @@ function Vl(e, { expose: l, emit: t }) {
|
|
|
382
382
|
ee(() => [p.value, d.value], N);
|
|
383
383
|
const H = (O) => {
|
|
384
384
|
O.stopPropagation();
|
|
385
|
-
const X = s.value.scrollLeft, z = s.value.scrollTop, E = Qe(X + ((O == null ? void 0 : O.deltaX) || 0), 0, p.value) | 0,
|
|
386
|
-
s.value.scrollLeft = E, s.value.scrollTop =
|
|
385
|
+
const X = s.value.scrollLeft, z = s.value.scrollTop, E = Qe(X + ((O == null ? void 0 : O.deltaX) || 0), 0, p.value) | 0, A = Qe(z + ((O == null ? void 0 : O.deltaY) || 0), 0, d.value) | 0;
|
|
386
|
+
s.value.scrollLeft = E, s.value.scrollTop = A, p.value && (n.horizontal.el.style.transform = `translate3d(${E / p.value * y.value}px, 0, 0)`, n.horizontal.instance.autoHideAfterScroll()), d.value && (n.vertical.el.style.transform = `translate3d(0, ${A / d.value * $.value}px, 0)`, n.vertical.instance.autoHideAfterScroll()), t("scroll", { target: s.value, scrollLeft: E, scrollTop: A });
|
|
387
387
|
}, W = (O) => {
|
|
388
388
|
o.simulateScroll ? H(O) : N();
|
|
389
389
|
};
|
|
@@ -413,7 +413,7 @@ function Vl(e, { expose: l, emit: t }) {
|
|
|
413
413
|
], 6)
|
|
414
414
|
], 16),
|
|
415
415
|
(b(), w(U, null, fe(n, (z, E) => ne(Hl, {
|
|
416
|
-
ref: (
|
|
416
|
+
ref: (A) => i(A, E),
|
|
417
417
|
key: E,
|
|
418
418
|
autoExpand: e.autoExpand,
|
|
419
419
|
autoHide: e.autoHide,
|
|
@@ -469,13 +469,13 @@ const Ul = /* @__PURE__ */ ge(mn(nt({}, Wl), {
|
|
|
469
469
|
"splitter-dblclick"
|
|
470
470
|
],
|
|
471
471
|
setup(e, { emit: l }) {
|
|
472
|
-
const t = l, o = e, n = un(), i =
|
|
472
|
+
const t = l, o = e, n = un(), i = B([]), s = K(() => i.value.reduce((c, g) => (c[~~g.id] = g) && c, {})), r = K(() => i.value.length), u = B(null), f = B(!1), d = B({
|
|
473
473
|
mouseDown: !1,
|
|
474
474
|
dragging: !1,
|
|
475
475
|
activeSplitter: null,
|
|
476
476
|
cursorOffset: 0
|
|
477
477
|
// Cursor offset within the splitter.
|
|
478
|
-
}), p =
|
|
478
|
+
}), p = B({
|
|
479
479
|
// Used to detect double click on touch devices.
|
|
480
480
|
splitter: null,
|
|
481
481
|
timeoutId: null
|
|
@@ -540,12 +540,12 @@ const Ul = /* @__PURE__ */ ge(mn(nt({}, Wl), {
|
|
|
540
540
|
return;
|
|
541
541
|
}
|
|
542
542
|
if (o.pushOtherPanes) {
|
|
543
|
-
const Ve =
|
|
543
|
+
const Ve = A(S, T);
|
|
544
544
|
if (!Ve) return;
|
|
545
545
|
({ sums: S, panesToResize: L } = Ve), Z = i.value[L[0]] || null, le = i.value[L[1]] || null;
|
|
546
546
|
}
|
|
547
547
|
Z !== null && (Z.size = Math.min(Math.max(T - S.prevPanesSize - S.prevReachedMinPanes, Z.min), Z.max)), le !== null && (le.size = Math.min(Math.max(100 - T - S.nextPanesSize - S.nextReachedMinPanes, le.min), le.max));
|
|
548
|
-
},
|
|
548
|
+
}, A = (c, g) => {
|
|
549
549
|
const S = d.value.activeSplitter, m = [S, S + 1];
|
|
550
550
|
return g < c.prevPanesSize + i.value[m[0]].min && (m[0] = Be(S).index, c.prevReachedMinPanes = 0, m[0] < S && i.value.forEach((x, T) => {
|
|
551
551
|
T > m[0] && T <= S && (x.size = x.min, c.prevReachedMinPanes += x.min);
|
|
@@ -671,7 +671,7 @@ const Ul = /* @__PURE__ */ ge(mn(nt({}, Wl), {
|
|
|
671
671
|
},
|
|
672
672
|
setup(e) {
|
|
673
673
|
var l;
|
|
674
|
-
const t = e, o = Ee("requestUpdate"), n = Ee("onPaneAdd"), i = Ee("horizontal"), s = Ee("onPaneRemove"), r = Ee("onPaneClick"), u = (l = zt()) == null ? void 0 : l.uid, f = Ee("indexedPanes"), d = K(() => f.value[u]), p =
|
|
674
|
+
const t = e, o = Ee("requestUpdate"), n = Ee("onPaneAdd"), i = Ee("horizontal"), s = Ee("onPaneRemove"), r = Ee("onPaneClick"), u = (l = zt()) == null ? void 0 : l.uid, f = Ee("indexedPanes"), d = K(() => f.value[u]), p = B(null), _ = K(() => {
|
|
675
675
|
const y = isNaN(t.size) || t.size === void 0 ? 0 : parseFloat(t.size);
|
|
676
676
|
return Math.max(Math.min(y, F.value), I.value);
|
|
677
677
|
}), I = K(() => {
|
|
@@ -1349,7 +1349,7 @@ function Po(e, l, t, o) {
|
|
|
1349
1349
|
z.status === "pending" && (z.status = "aborted");
|
|
1350
1350
|
}), _ = [];
|
|
1351
1351
|
}
|
|
1352
|
-
function O(z, E,
|
|
1352
|
+
function O(z, E, A) {
|
|
1353
1353
|
const Y = E !== "success";
|
|
1354
1354
|
switch (_ = _.filter((D) => D !== z), u) {
|
|
1355
1355
|
case "pending":
|
|
@@ -1362,11 +1362,11 @@ function Po(e, l, t, o) {
|
|
|
1362
1362
|
return;
|
|
1363
1363
|
}
|
|
1364
1364
|
if (E === "abort") {
|
|
1365
|
-
d =
|
|
1365
|
+
d = A, H();
|
|
1366
1366
|
return;
|
|
1367
1367
|
}
|
|
1368
1368
|
if (Y) {
|
|
1369
|
-
d =
|
|
1369
|
+
d = A, _.length || (s.length ? X() : H());
|
|
1370
1370
|
return;
|
|
1371
1371
|
}
|
|
1372
1372
|
if (F(), W(), !e.random) {
|
|
@@ -1374,7 +1374,7 @@ function Po(e, l, t, o) {
|
|
|
1374
1374
|
D !== -1 && D !== e.index && (e.index = D);
|
|
1375
1375
|
}
|
|
1376
1376
|
u = "completed", I.forEach((D) => {
|
|
1377
|
-
D(
|
|
1377
|
+
D(A);
|
|
1378
1378
|
});
|
|
1379
1379
|
}
|
|
1380
1380
|
function X() {
|
|
@@ -1395,8 +1395,8 @@ function Po(e, l, t, o) {
|
|
|
1395
1395
|
const E = {
|
|
1396
1396
|
status: "pending",
|
|
1397
1397
|
resource: z,
|
|
1398
|
-
callback: (
|
|
1399
|
-
O(E,
|
|
1398
|
+
callback: (A, Y) => {
|
|
1399
|
+
O(E, A, Y);
|
|
1400
1400
|
}
|
|
1401
1401
|
};
|
|
1402
1402
|
_.push(E), f++, p = setTimeout(X, e.rotate), t(z, l, E.callback);
|
|
@@ -1946,7 +1946,7 @@ const Xo = {
|
|
|
1946
1946
|
expandall: { type: Boolean, default: !1 }
|
|
1947
1947
|
},
|
|
1948
1948
|
setup(e) {
|
|
1949
|
-
const l = e, t = Xn(l, "expandedrows"), o =
|
|
1949
|
+
const l = e, t = Xn(l, "expandedrows"), o = B(!1);
|
|
1950
1950
|
function n(s) {
|
|
1951
1951
|
if (l.expandall)
|
|
1952
1952
|
o.value = !o.value, t.value.forEach((r) => {
|
|
@@ -1957,7 +1957,7 @@ const Xo = {
|
|
|
1957
1957
|
r ? r.isExpanded = !r.isExpanded : t.value.push({ id: s, isExpanded: !0 });
|
|
1958
1958
|
}
|
|
1959
1959
|
}
|
|
1960
|
-
const i =
|
|
1960
|
+
const i = B(-1);
|
|
1961
1961
|
return ee(
|
|
1962
1962
|
() => t.value,
|
|
1963
1963
|
(s, r) => {
|
|
@@ -2248,7 +2248,7 @@ const xi = /* @__PURE__ */ Ae(mi, [["render", wi]]), Si = { key: "hdrrow" }, ki
|
|
|
2248
2248
|
"toggleFilterMenu"
|
|
2249
2249
|
],
|
|
2250
2250
|
setup(e, { emit: l }) {
|
|
2251
|
-
const t =
|
|
2251
|
+
const t = B(null), o = e, n = l;
|
|
2252
2252
|
return ee(() => o.checkAll, () => {
|
|
2253
2253
|
t.value && (t.value.indeterminate = o.checkAll !== 0 ? !o.checkAll : !1, t.value.checked = o.checkAll);
|
|
2254
2254
|
}), (s, r) => (b(), w("tr", Si, [
|
|
@@ -2551,14 +2551,14 @@ const xi = /* @__PURE__ */ Ae(mi, [["render", wi]]), Si = { key: "hdrrow" }, ki
|
|
|
2551
2551
|
const v = ((Rt = a.type) == null ? void 0 : Rt.toLowerCase()) || "string";
|
|
2552
2552
|
a.type = v, a.isUnique = a.isUnique !== void 0 ? a.isUnique : !1, a.hide = a.hide !== void 0 ? a.hide : !1, a.filter = a.filter !== void 0 ? a.filter : !0, a.search = a.search !== void 0 ? a.search : !0, a.sort = a.sort !== void 0 ? a.sort : !0, a.html = a.html !== void 0 ? a.html : !1, a.condition = !v || v === "string" ? "Contains" : "Equal";
|
|
2553
2553
|
}
|
|
2554
|
-
const i =
|
|
2554
|
+
const i = B([]), s = B(n.page), r = B(
|
|
2555
2555
|
n.pagination ? n.pageSize : (Nt = n.rows) == null ? void 0 : Nt.length
|
|
2556
|
-
), u = n.pageSize, f =
|
|
2556
|
+
), u = n.pageSize, f = B(n.sortColumn), d = n.sortColumn, p = B(n.sortDirection), _ = n.sortDirection, I = B(n.totalRows), F = B([]), $ = B(null), y = B(n.loading), N = B(n.search);
|
|
2557
2557
|
JSON.parse(JSON.stringify(n.columns));
|
|
2558
|
-
const H =
|
|
2559
|
-
let O =
|
|
2560
|
-
const X =
|
|
2561
|
-
E.value = !E.value, z.value = E.value ? n.leftmenuMinWidth : n.leftmenuDefaultWidth, D("currentLeftMenuSize", z.value);
|
|
2558
|
+
const H = B(null), W = B(null);
|
|
2559
|
+
let O = B(0);
|
|
2560
|
+
const X = B(230), z = B(n.leftmenuDefaultWidth), E = B(!1), A = B(null), Y = () => {
|
|
2561
|
+
E.value = !E.value, z.value = E.value ? n.leftmenuMinWidth : n.leftmenuDefaultWidth, A.value && (A.value.style.width = z.value + "px"), D("currentLeftMenuSize", z.value);
|
|
2562
2562
|
};
|
|
2563
2563
|
Ce(() => {
|
|
2564
2564
|
ae(), Fe(() => {
|
|
@@ -2656,7 +2656,7 @@ const xi = /* @__PURE__ */ Ae(mi, [["render", wi]]), Si = { key: "hdrrow" }, ki
|
|
|
2656
2656
|
});
|
|
2657
2657
|
}
|
|
2658
2658
|
return a;
|
|
2659
|
-
}, ye =
|
|
2659
|
+
}, ye = B([]), ae = () => {
|
|
2660
2660
|
let a = [], v = De();
|
|
2661
2661
|
n.isServerMode ? (I.value = n.totalRows || 0, a = v) : (I.value = (v == null ? void 0 : v.length) || 0, a = v.slice(ze.value - 1, Te.value)), n.hasSubtable && a.forEach(function(k) {
|
|
2662
2662
|
k.isExpanded != null && (ye.value.find((te) => te.id == k.id) || ye.value.push({
|
|
@@ -2787,9 +2787,9 @@ const xi = /* @__PURE__ */ Ae(mi, [["render", wi]]), Si = { key: "hdrrow" }, ki
|
|
|
2787
2787
|
};
|
|
2788
2788
|
let we = 0;
|
|
2789
2789
|
n.hasCheckbox && we++, n.hasSubtable && we++, n.hasRightPanel && we++;
|
|
2790
|
-
const Nn =
|
|
2790
|
+
const Nn = B(0), An = setInterval(function() {
|
|
2791
2791
|
Nn.value++;
|
|
2792
|
-
}, 2200), Ge =
|
|
2792
|
+
}, 2200), Ge = B(n.topmenusize), $t = B(null), Bn = rl($t).height, Dn = (a) => {
|
|
2793
2793
|
if (!a || !a.length) return;
|
|
2794
2794
|
const v = a[0].size;
|
|
2795
2795
|
Ge.value = v, D("currentTopMenuSize", v);
|
|
@@ -2808,7 +2808,7 @@ const xi = /* @__PURE__ */ Ae(mi, [["render", wi]]), Si = { key: "hdrrow" }, ki
|
|
|
2808
2808
|
a.enableleftmenu ? (b(), w("div", {
|
|
2809
2809
|
key: 0,
|
|
2810
2810
|
ref_key: "leftmenuel",
|
|
2811
|
-
ref:
|
|
2811
|
+
ref: A,
|
|
2812
2812
|
class: "left-menu-container bh-relative",
|
|
2813
2813
|
style: oe({
|
|
2814
2814
|
width: z.value + "px",
|