voiptime-components 1.0.18 → 1.0.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/index.cjs.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.es.js +885 -874
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),I=(o,t)=>{const l=o.__vccOpts||o;for(const[n,r]of t)l[n]=r;return l},Fe={},Ze={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ue(o,t){return e.openBlock(),e.createElementBlock("svg",Ze,t[0]||(t[0]=[e.createElementVNode("path",{d:"M14 8L10 12L6 8",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Ke=I(Fe,[["render",Ue]]),Xe={},Ye={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function qe(o,t){return e.openBlock(),e.createElementBlock("svg",Ye,t[0]||(t[0]=[e.createElementVNode("path",{d:"M6 12L10 8L14 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Ge=I(Xe,[["render",qe]]),Je={},Qe={width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function et(o,t){return e.openBlock(),e.createElementBlock("svg",Qe,t[0]||(t[0]=[e.createElementVNode("path",{d:"M11.8789 4.90517L11.2561 4.20124C10.4045 3.33504 9.28504 2.7626 8.06789 2.5709C6.85074 2.3792 5.60245 2.57874 4.5127 3.13917C3.42296 3.69961 2.55134 4.59032 2.03031 5.67593C1.50928 6.76155 1.36732 7.98272 1.626 9.15387C1.88469 10.325 2.52987 11.3821 3.46351 12.1645C4.39716 12.9469 5.56821 13.4119 6.79871 13.4887C8.02921 13.5655 9.25189 13.25 10.2809 12.5901C11.31 11.9302 12.0891 10.962 12.5 9.83266",stroke:"currentColor","stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round"},null,-1),e.createElementVNode("path",{d:"M8.5157 6.5C8.07025 6.5 7.84716 5.96143 8.16215 5.64645L10.3086 3.5L12.455 1.35355C12.77 1.03857 13.3086 1.26165 13.3086 1.70711V6C13.3086 6.27614 13.0847 6.5 12.8086 6.5L8.5157 6.5Z",fill:"currentColor"},null,-1)]))}const tt=I(Je,[["render",et]]),ot={},nt={width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function lt(o,t){return e.openBlock(),e.createElementBlock("svg",nt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M8.60352 6L12.6035 10L8.60352 14",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const rt=I(ot,[["render",lt]]),st={},it={width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function at(o,t){return e.openBlock(),e.createElementBlock("svg",it,t[0]||(t[0]=[e.createElementVNode("path",{d:"M12.3984 14L8.39844 10L12.3984 6",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const ct=I(st,[["render",at]]),dt={},ut={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mt(o,t){return e.openBlock(),e.createElementBlock("svg",ut,t[0]||(t[0]=[e.createElementVNode("path",{d:"M12.5 1.66406L11.1783 2.94156C10.6233 3.47906 10.345 3.7474 10 3.7474C9.655 3.7474 9.37667 3.47906 8.82167 2.94156L7.5 1.66406M14.5833 5.83073C15.7533 5.83073 16.3392 5.83073 16.7592 6.11156C16.9412 6.23319 17.0975 6.3895 17.2192 6.57156C17.5 6.99156 17.5 7.5774 17.5 8.7474V15.4141C17.5 16.5841 17.5 17.1699 17.2192 17.5899C17.0975 17.772 16.9412 17.9283 16.7592 18.0499C16.3392 18.3307 15.7533 18.3307 14.5833 18.3307C13.4133 18.3307 12.8275 18.3307 12.4075 18.0499C12.2254 17.9283 12.0691 17.772 11.9475 17.5899C11.6667 17.1699 11.6667 16.5841 11.6667 15.4141V8.7474C11.6667 7.5774 11.6667 6.99156 11.9475 6.57156C12.0691 6.3895 12.2254 6.23319 12.4075 6.11156C12.8275 5.83073 13.4133 5.83073 14.5833 5.83073ZM5.41667 5.83073C6.58667 5.83073 7.1725 5.83073 7.5925 6.11156C7.77456 6.23319 7.93087 6.3895 8.0525 6.57156C8.33333 6.99156 8.33333 7.5774 8.33333 8.7474V15.4141C8.33333 16.5841 8.33333 17.1699 8.0525 17.5899C7.93087 17.772 7.77456 17.9283 7.5925 18.0499C7.1725 18.3307 6.58667 18.3307 5.41667 18.3307C4.24667 18.3307 3.66083 18.3307 3.24083 18.0499C3.05877 17.9283 2.90246 17.772 2.78083 17.5899C2.5 17.1699 2.5 16.5841 2.5 15.4141V8.7474C2.5 7.5774 2.5 6.99156 2.78083 6.57156C2.90246 6.3895 3.05877 6.23319 3.24083 6.11156C3.66083 5.83073 4.24667 5.83073 5.41667 5.83073Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const pt=I(dt,[["render",mt]]),ht={},ft={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vt(o,t){return e.openBlock(),e.createElementBlock("svg",ft,t[0]||(t[0]=[e.createElementVNode("path",{d:"M8 3V5.2225M8 5.2225V10.7775M8 5.2225L9.875 4.25M8 5.2225L6.125 4.25M8 10.7775V13M8 10.7775L6.125 11.75M8 10.7775L9.875 11.75M13 8H10.7775M10.7775 8H5.2225M10.7775 8L11.75 9.875M10.7775 8L11.75 6.125M5.2225 8H3M5.2225 8L4.25 6.125M5.2225 8L4.25 9.875",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M12 14.7143L13.1151 15.6701C13.3268 15.8515 13.646 15.8247 13.8246 15.6105L16 13",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1)]))}const gt=I(ht,[["render",vt]]),kt={},_t={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ct(o,t){return e.openBlock(),e.createElementBlock("svg",_t,t[0]||(t[0]=[e.createElementVNode("path",{d:"M8 3V5.2225M8 5.2225V10.7775M8 5.2225L9.875 4.25M8 5.2225L6.125 4.25M8 10.7775V13M8 10.7775L6.125 11.75M8 10.7775L9.875 11.75M13 8H10.7775M10.7775 8H5.2225M10.7775 8L11.75 9.875M10.7775 8L11.75 6.125M5.2225 8H3M5.2225 8L4.25 6.125M5.2225 8L4.25 9.875",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M13 16L14.5 14.5M16 13L14.5 14.5M14.5 14.5L13 13M14.5 14.5L16 16",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1)]))}const wt=I(kt,[["render",Ct]]),bt={},yt={xmlns:"http://www.w3.org/2000/svg",width:"60",height:"60",viewBox:"0 0 60 60",fill:"none"};function Bt(o,t){return e.openBlock(),e.createElementBlock("svg",yt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M24.195 7H18.625C17.1332 7 15.7024 7.59263 14.6475 8.64752C13.5926 9.70242 13 11.1332 13 12.625V46.375C13 47.8668 13.5926 49.2976 14.6475 50.3525C15.7024 51.4074 17.1332 52 18.625 52H41.125C42.6168 52 44.0476 51.4074 45.1025 50.3525C46.1574 49.2976 46.75 47.8668 46.75 46.375V29.5M24.195 7C27.3025 7 29.875 9.5175 29.875 12.625V18.25C29.875 19.7418 30.4676 21.1726 31.5225 22.2275C32.5774 23.2824 34.0082 23.875 35.5 23.875H41.125C42.6168 23.875 44.0476 24.4676 45.1025 25.5225C46.1574 26.5774 46.75 28.0082 46.75 29.5M24.195 7C33.42 7 46.75 20.4 46.75 29.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const xt=I(bt,[["render",Bt]]),Et={},Vt={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Mt(o,t){return e.openBlock(),e.createElementBlock("svg",Vt,t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.99479 8.75521C6.55276 8.75521 6.12884 8.57961 5.81628 8.26705C5.50372 7.95449 5.32812 7.53057 5.32812 7.08854C5.32812 6.64651 5.50372 6.22259 5.81628 5.91003C6.12884 5.59747 6.55276 5.42187 6.99479 5.42188C7.43682 5.42187 7.86074 5.59747 8.1733 5.91003C8.48586 6.22259 8.66146 6.64651 8.66146 7.08854C8.66146 7.53057 8.48586 7.95449 8.1733 8.26705C7.86074 8.57961 7.43682 8.75521 6.99479 8.75521ZM6.99479 14.5885C6.55276 14.5885 6.12884 14.4129 5.81628 14.1004C5.50372 13.7878 5.32812 13.3639 5.32812 12.9219C5.32812 12.4798 5.50372 12.0559 5.81628 11.7434C6.12884 11.4308 6.55276 11.2552 6.99479 11.2552C7.43682 11.2552 7.86074 11.4308 8.1733 11.7434C8.48586 12.0559 8.66146 12.4798 8.66146 12.9219C8.66146 13.3639 8.48586 13.7878 8.1733 14.1004C7.86074 14.4129 7.43682 14.5885 6.99479 14.5885Z",fill:"currentColor"},null,-1),e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9948 8.75521C12.5528 8.75521 12.1288 8.57961 11.8163 8.26705C11.5037 7.95449 11.3281 7.53057 11.3281 7.08854C11.3281 6.64651 11.5037 6.22259 11.8163 5.91003C12.1288 5.59747 12.5528 5.42187 12.9948 5.42188C13.4368 5.42187 13.8607 5.59747 14.1733 5.91003C14.4859 6.22259 14.6615 6.64651 14.6615 7.08854C14.6615 7.53057 14.4859 7.95449 14.1733 8.26705C13.8607 8.57961 13.4368 8.75521 12.9948 8.75521ZM12.9948 14.5885C12.5528 14.5885 12.1288 14.4129 11.8163 14.1004C11.5037 13.7878 11.3281 13.3639 11.3281 12.9219C11.3281 12.4798 11.5037 12.0559 11.8163 11.7434C12.1288 11.4308 12.5528 11.2552 12.9948 11.2552C13.4368 11.2552 13.8607 11.4308 14.1733 11.7434C14.4859 12.0559 14.6615 12.4798 14.6615 12.9219C14.6615 13.3639 14.4859 13.7878 14.1733 14.1004C13.8607 14.4129 13.4368 14.5885 12.9948 14.5885Z",fill:"currentColor"},null,-1)]))}const St=I(Et,[["render",Mt]]),Lt={},$t={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Nt(o,t){return e.openBlock(),e.createElementBlock("svg",$t,t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1667 5.83333C9.72464 5.83333 9.30072 5.65774 8.98816 5.34518C8.67559 5.03262 8.5 4.60869 8.5 4.16667C8.5 3.72464 8.67559 3.30072 8.98816 2.98816C9.30072 2.67559 9.72464 2.5 10.1667 2.5C10.6087 2.5 11.0326 2.67559 11.3452 2.98816C11.6577 3.30072 11.8333 3.72464 11.8333 4.16667C11.8333 4.60869 11.6577 5.03262 11.3452 5.34518C11.0326 5.65774 10.6087 5.83333 10.1667 5.83333ZM10.1667 11.6667C9.72464 11.6667 9.30072 11.4911 8.98816 11.1785C8.67559 10.8659 8.5 10.442 8.5 10C8.5 9.55797 8.67559 9.13405 8.98816 8.82149C9.30072 8.50893 9.72464 8.33333 10.1667 8.33333C10.6087 8.33333 11.0326 8.50893 11.3452 8.82149C11.6577 9.13405 11.8333 9.55797 11.8333 10C11.8333 10.442 11.6577 10.8659 11.3452 11.1785C11.0326 11.4911 10.6087 11.6667 10.1667 11.6667ZM10.1667 17.5C9.72464 17.5 9.30072 17.3244 8.98816 17.0118C8.67559 16.6993 8.5 16.2754 8.5 15.8333C8.5 15.3913 8.67559 14.9674 8.98816 14.6548C9.30072 14.3423 9.72464 14.1667 10.1667 14.1667C10.6087 14.1667 11.0326 14.3423 11.3452 14.6548C11.6577 14.9674 11.8333 15.3913 11.8333 15.8333C11.8333 16.2754 11.6577 16.6993 11.3452 17.0118C11.0326 17.3244 10.6087 17.5 10.1667 17.5Z",fill:"currentColor"},null,-1)]))}const zt=I(Lt,[["render",Nt]]),It={},Tt={width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Rt(o,t){return e.openBlock(),e.createElementBlock("svg",Tt,t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.33333 9.83333C6.33333 10.2754 6.15774 10.6993 5.84518 11.0118C5.53262 11.3244 5.10869 11.5 4.66667 11.5C4.22464 11.5 3.80072 11.3244 3.48816 11.0118C3.17559 10.6993 3 10.2754 3 9.83333C3 9.39131 3.17559 8.96738 3.48816 8.65482C3.80072 8.34226 4.22464 8.16667 4.66667 8.16667C5.10869 8.16667 5.53262 8.34226 5.84518 8.65482C6.15774 8.96738 6.33333 9.39131 6.33333 9.83333ZM12.1667 9.83333C12.1667 10.2754 11.9911 10.6993 11.6785 11.0118C11.3659 11.3244 10.942 11.5 10.5 11.5C10.058 11.5 9.63405 11.3244 9.32149 11.0118C9.00893 10.6993 8.83333 10.2754 8.83333 9.83333C8.83333 9.39131 9.00893 8.96738 9.32149 8.65482C9.63405 8.34226 10.058 8.16667 10.5 8.16667C10.942 8.16667 11.3659 8.34226 11.6785 8.65482C11.9911 8.96738 12.1667 9.39131 12.1667 9.83333ZM18 9.83333C18 10.2754 17.8244 10.6993 17.5118 11.0118C17.1993 11.3244 16.7754 11.5 16.3333 11.5C15.8913 11.5 15.4674 11.3244 15.1548 11.0118C14.8423 10.6993 14.6667 10.2754 14.6667 9.83333C14.6667 9.39131 14.8423 8.96738 15.1548 8.65482C15.4674 8.34226 15.8913 8.16667 16.3333 8.16667C16.7754 8.16667 17.1993 8.34226 17.5118 8.65482C17.8244 8.96738 18 9.39131 18 9.83333Z",fill:"currentColor"},null,-1)]))}const Dt=I(It,[["render",Rt]]),Ht={},Wt={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Pt(o,t){return e.openBlock(),e.createElementBlock("svg",Wt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M6 14L10 10M10 10L14 6M10 10L6 6M10 10L14 14",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const At=I(Ht,[["render",Pt]]),Ot={},jt={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ft(o,t){return e.openBlock(),e.createElementBlock("svg",jt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M9.31732 16.8976L7.50065 17.5026V10.4193L3.76732 6.3126C3.48852 6.00588 3.33403 5.60627 3.33398 5.19177V3.33594H16.6673V5.14594C16.6672 5.58793 16.4916 6.01178 16.179 6.32427L12.5007 10.0026V12.5026M12.5007 15.8359L14.1673 17.5026L17.5007 14.1693",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Zt=I(Ot,[["render",Ft]]),Ut={},Kt={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Xt(o,t){return e.openBlock(),e.createElementBlock("svg",Kt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M11.4657 16.1809L7.50065 17.5026V10.4193L3.76732 6.3126C3.48852 6.00588 3.33403 5.60627 3.33398 5.19177V3.33594H16.6673V5.14594C16.6672 5.58793 16.4916 6.01178 16.179 6.32427L12.5007 10.0026V11.2526M18.334 18.3359L14.1673 14.1693M14.1673 18.3359L18.334 14.1693",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Yt=I(Ut,[["render",Xt]]),qt={},Gt={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Jt(o,t){return e.openBlock(),e.createElementBlock("svg",Gt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M9.4676 15.1809L5.5026 16.5026V9.41927L1.76927 5.3126C1.49048 5.00588 1.33598 4.60627 1.33594 4.19177V2.33594H14.6693V4.14594C14.6692 4.58793 14.4935 5.01178 14.1809 5.32427L10.5026 9.0026V10.2526",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M15.5 16.6591L13.857 17.9057C13.7756 17.9719 13.6868 18.0032 13.5906 17.9997C13.4944 17.9962 13.4093 17.9685 13.3353 17.9167C13.2613 17.865 13.204 17.7951 13.1635 17.7071C13.1229 17.6192 13.121 17.5236 13.1577 17.4203L13.7904 15.3795L12.1808 14.2433C12.092 14.1844 12.0365 14.1072 12.0143 14.0116C11.9921 13.916 11.9958 13.8277 12.0254 13.7468C12.055 13.6659 12.1068 13.5942 12.1808 13.5315C12.2548 13.4688 12.3436 13.4377 12.4472 13.438H14.4343L15.0782 11.3199C15.1152 11.217 15.1726 11.1378 15.2504 11.0825C15.3283 11.0272 15.4115 10.9997 15.5 11C15.5885 11.0003 15.6718 11.0279 15.75 11.083C15.8281 11.138 15.8854 11.217 15.9218 11.3199L16.5657 13.438H18.5528C18.6564 13.438 18.7452 13.4693 18.8192 13.5319C18.8932 13.5946 18.945 13.6662 18.9746 13.7468C19.0042 13.8274 19.0079 13.9157 18.9857 14.0116C18.9635 14.1075 18.908 14.1847 18.8192 14.2433L17.2096 15.3795L17.8423 17.4203C17.8793 17.5233 17.8775 17.6189 17.837 17.7071C17.7964 17.7954 17.739 17.8653 17.6647 17.9167C17.5904 17.9682 17.5053 17.9959 17.4094 17.9997C17.3135 18.0035 17.2247 17.9722 17.143 17.9057L15.5 16.6591Z",stroke:"currentColor","stroke-width":"1.5"},null,-1)]))}const Qt=I(qt,[["render",Jt]]),eo={},to={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function oo(o,t){return e.openBlock(),e.createElementBlock("svg",to,t[0]||(t[0]=[e.createStaticVNode('<path d="M10.5 5.5H17.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path><path d="M10.5 10H17.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path><path d="M10.5 15H17.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path><path d="M3 15.083L4.042 16.125L7.167 13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 6.083L4.042 7.125L7.167 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>',5)]))}const no=I(eo,[["render",oo]]),lo={},ro={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function so(o,t){return e.openBlock(),e.createElementBlock("svg",ro,t[0]||(t[0]=[e.createElementVNode("path",{d:"M16.6673 5.83594L6.66732 5.83594M16.6673 5.83594L13.7507 8.7526M16.6673 5.83594L13.7507 2.91927M14.1673 14.1693L3.33398 14.1693M3.33398 14.1693L6.25065 17.0859M3.33398 14.1693L6.25065 11.2526",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const io=I(lo,[["render",so]]),ao={},co={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function uo(o,t){return e.openBlock(),e.createElementBlock("svg",co,t[0]||(t[0]=[e.createElementVNode("path",{d:"M11.1667 10.9167V9.66667L14.845 5.98833C15.1576 5.67585 15.3332 5.25199 15.3333 4.81V3H2V4.85583C2.00004 5.27033 2.15454 5.66994 2.43333 5.97667L6.16667 10.0833V17.1667C6.16667 17.1667 7.37495 16.7639 8.14917 16.5058",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M15.4116 11.3639L11.4924 15.283C11.4138 15.3616 11.3636 15.4642 11.3498 15.5746L11.0994 17.5789C11.059 17.9025 11.3341 18.1776 11.6577 18.1371L13.6622 17.8861C13.7725 17.8722 13.8751 17.8221 13.9537 17.7435L17.8724 13.8248C18.0676 13.6296 18.0676 13.313 17.8724 13.1177L16.1187 11.364C15.9234 11.1687 15.6068 11.1687 15.4116 11.3639Z",stroke:"currentColor","stroke-width":"1.5"},null,-1),e.createElementVNode("path",{d:"M14 12L16.4608 14.4608",stroke:"currentColor","stroke-width":"1.5"},null,-1)]))}const mo=I(ao,[["render",uo]]),po={},ho={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function fo(o,t){return e.openBlock(),e.createElementBlock("svg",ho,t[0]||(t[0]=[e.createElementVNode("path",{d:"M6.2832 15.8359H3.3332C3.11222 15.8359 2.90029 15.7482 2.74404 15.5919C2.58778 15.4356 2.5 15.2237 2.5 15.0027V4.16954C2.49995 4.06009 2.52146 3.9517 2.56331 3.85056C2.60516 3.74943 2.66652 3.65753 2.7439 3.58012C2.82127 3.50271 2.91314 3.4413 3.01426 3.3994C3.11537 3.3575 3.22375 3.33594 3.3332 3.33594H16.6668C16.7763 3.33594 16.8846 3.3575 16.9857 3.3994C17.0869 3.4413 17.1787 3.50271 17.2561 3.58012C17.3335 3.65753 17.3948 3.74943 17.4367 3.85056C17.4785 3.9517 17.5001 4.06009 17.5 4.16954V15.0027C17.5 15.2237 17.4122 15.4356 17.256 15.5919C17.0997 15.7482 16.8878 15.8359 16.6668 15.8359H5.38347",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M6.66406 2.5V5M13.3305 2.5V5M8.33046 10.8332L9.16406 11.6668L11.6641 9.1668",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const vo=I(po,[["render",fo]]),go={},ko={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function _o(o,t){return e.openBlock(),e.createElementBlock("svg",ko,t[0]||(t[0]=[e.createStaticVNode('<circle cx="4.5" cy="12.5" r="1.5" stroke="currentColor" stroke-width="1.5"></circle><circle cx="9.5" cy="8.5" r="1.5" transform="rotate(-180 9.5 8.5)" stroke="currentColor" stroke-width="1.5"></circle><circle cx="14.5" cy="12.5" r="1.5" stroke="currentColor" stroke-width="1.5"></circle><path d="M4.55469 10.5V2" stroke="currentColor" stroke-width="1.5"></path><path d="M9.44531 9.5L9.44531 18" stroke="currentColor" stroke-width="1.5"></path><path d="M14.5547 10.5V2" stroke="currentColor" stroke-width="1.5"></path><path d="M4.55469 18V15.5" stroke="currentColor" stroke-width="1.5"></path><path d="M9.44531 2L9.44531 5.5" stroke="currentColor" stroke-width="1.5"></path><path d="M14.5547 18V15.5" stroke="currentColor" stroke-width="1.5"></path>',9)]))}const Co=I(go,[["render",_o]]),wo={},bo={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function yo(o,t){return e.openBlock(),e.createElementBlock("svg",bo,t[0]||(t[0]=[e.createElementVNode("path",{d:"M9.4676 15.1809L5.5026 16.5026V9.41927L1.76927 5.3126C1.49048 5.00588 1.33598 4.60627 1.33594 4.19177V2.33594H14.6693V4.14594C14.6692 4.58793 14.4935 5.01178 14.1809 5.32427L10.5026 9.0026V10.2526",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M16 16.8926V11M13.0537 13.9463H18.9463",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Bo=I(wo,[["render",yo]]),xo={arrowDown:Ke,arrowTop:Ge,arrowRight:rt,arrowLeft:ct,arrowReload:tt,columnInsert:pt,freeze:gt,unfreeze:wt,columnsMove:St,empty:xt,listBullet:zt,listBulletHorizontal:Dt,close:At,filterSave:Zt,filterReset:Yt,filterNew:Qt,filterMultiselect:no,filterExchange:io,filterEdit:mo,filterDateCheck:vo,filterAdvanced:Co,filterAdd:Bo},F=e.defineComponent({__name:"VIcon",props:{name:{}},setup(o){const t=o,l=e.computed(()=>xo[t.name]);return(n,r)=>l.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:0})):e.createCommentVNode("",!0)}}),Eo={},Vo={class:"vt-loader"};function Mo(o,t){return e.openBlock(),e.createElementBlock("span",Vo)}const ie=I(Eo,[["render",Mo]]),So=["disabled","type","data-placement"],Lo={key:2,class:"vt-button__content"},J=e.defineComponent({__name:"VButton",props:{type:{default:"default"},shape:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:{},tooltip:{type:Boolean,default:!1},tooltipPlacement:{default:"top"},htmlType:{default:"button"}},emits:["click"],setup(o,{emit:t}){const l=o,n=t,r=e.useSlots(),s=e.computed(()=>!!(l.icon&&l.shape)),c=e.computed(()=>{var k,b;const i=r.default?r.default({}):null;return((b=(k=i==null?void 0:i[0])==null?void 0:k.children)==null?void 0:b.toString())??""}),d=e.computed(()=>["vt-button",`vt-button--${l.type}`,{[`vt-button--${l.shape}`]:l.shape,"vt-button--icon-only":s.value,"vt-button--disabled":l.disabled||l.loading,"vt-button--loading":l.loading}]),a=e.computed(()=>s.value&&l.tooltip?c.value:null),u=i=>{!l.disabled&&!l.loading&&n("click",i)};return(i,k)=>{const b=e.resolveDirective("tooltip");return e.withDirectives((e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(d.value),disabled:l.disabled||l.loading,type:l.htmlType,"data-placement":l.tooltipPlacement,onClick:u},[l.loading?(e.openBlock(),e.createBlock(ie,{key:0,class:"vt-button__icon"})):l.icon?(e.openBlock(),e.createBlock(F,{key:1,name:l.icon,class:"vt-button__icon"},null,8,["name"])):e.createCommentVNode("",!0),s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Lo,[e.renderSlot(i.$slots,"default")]))],10,So)),[[b,a.value]])}}}),$o={key:0,class:"vt-modal__header"},No={key:0,class:"vt-modal__title"},zo={class:"vt-modal__content"},ae=e.defineComponent({__name:"VModal",props:{modelValue:{type:Boolean},title:{},size:{default:"medium"},showCloseButton:{type:Boolean,default:!0},closeOnBackdropClick:{type:Boolean,default:!0},zIndex:{default:1e3}},emits:["update:modelValue","close"],setup(o,{emit:t}){const l=o,n=t,r=e.computed(()=>["vt-modal__container",`vt-modal__container--${l.size}`]),s=e.computed(()=>({zIndex:l.zIndex})),c=()=>{n("update:modelValue",!1),n("close")},d=()=>{l.closeOnBackdropClick&&c()};return(a,u)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[a.modelValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vt-modal__backdrop",style:e.normalizeStyle(s.value),onClick:d},[e.createElementVNode("div",{class:e.normalizeClass(r.value),onClick:u[0]||(u[0]=e.withModifiers(()=>{},["stop"]))},[a.title||a.showCloseButton?(e.openBlock(),e.createElementBlock("div",$o,[a.title?(e.openBlock(),e.createElementBlock("h2",No,e.toDisplayString(a.title),1)):e.createCommentVNode("",!0),a.showCloseButton?(e.openBlock(),e.createBlock(F,{key:1,name:"close",class:"vt-modal__close",onClick:c})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",zo,[e.renderSlot(a.$slots,"default")])],2)],4)):e.createCommentVNode("",!0)]))}}),Io={class:"vt-pagination"},To={class:"vt-pagination__info"},Ro={class:"vt-pagination__rows-per-page"},Do=["value"],Ho={class:"vt-pagination__navigation"},Wo=["disabled"],Po=["onClick"],Ao=["disabled"],Be=e.defineComponent({__name:"VPagination",props:{totalItems:{},pageSize:{default:10},currentPage:{default:1},pageSizeOptions:{default:()=>[5,10,20,50]},maxVisiblePages:{default:6}},emits:["update:currentPage","update:pageSize","pageChange","reloadData"],setup(o,{emit:t}){const l=o,n=t,r=e.computed({get:()=>l.currentPage,set:w=>n("update:currentPage",w)}),s=e.computed({get:()=>l.pageSize,set:w=>n("update:pageSize",w)}),c=e.computed(()=>Math.ceil(l.totalItems/s.value)),d=e.computed(()=>l.totalItems===0?0:(r.value-1)*s.value+1),a=e.computed(()=>Math.min(r.value*s.value,l.totalItems)),u=e.computed(()=>r.value<=1),i=e.computed(()=>r.value>=c.value),k=e.computed(()=>{const w=[],E=c.value,V=r.value,j=l.maxVisiblePages;if(E<=j)for(let P=1;P<=E;P++)w.push(P);else{w.push(1);const P=Math.max(2,V-Math.floor(j/2)),y=Math.min(E-1,V+Math.floor(j/2));P>2&&w.push("...");for(let x=P;x<=y;x++)w.push(x);y<E-1&&w.push("..."),E>1&&w.push(E)}return w}),b=()=>{n("pageChange",{page:r.value,pageSize:s.value})},$=w=>{typeof w=="number"&&w!==r.value&&(r.value=w,b())},H=()=>{u.value||(r.value--,b())},W=()=>{i.value||(r.value++,b())},N=()=>{r.value=1,b()},O=()=>{n("reloadData",r.value)};return e.watch(()=>l.totalItems,()=>{r.value>c.value&&c.value>0&&(r.value=c.value,b())}),(w,E)=>(e.openBlock(),e.createElementBlock("div",Io,[e.createElementVNode("div",To,[e.createElementVNode("div",Ro,[E[1]||(E[1]=e.createElementVNode("label",{for:"rowsSelect",class:"vt-pagination__label"},"Рядків на сторінку:",-1)),e.withDirectives(e.createElementVNode("select",{id:"rowsSelect","onUpdate:modelValue":E[0]||(E[0]=V=>s.value=V),onChange:N,class:"vt-pagination__select"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.pageSizeOptions,V=>(e.openBlock(),e.createElementBlock("option",{key:V,value:V},e.toDisplayString(V),9,Do))),128))],544),[[e.vModelSelect,s.value]])]),e.createElementVNode("span",null,e.toDisplayString(d.value)+" - "+e.toDisplayString(a.value)+" з "+e.toDisplayString(w.totalItems),1)]),e.createElementVNode("div",Ho,[e.createElementVNode("button",{onClick:H,disabled:u.value,class:e.normalizeClass({"vt-pagination__nav-button":!0,"has-items":!u.value})},[e.createVNode(F,{name:"arrowLeft"})],10,Wo),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,V=>(e.openBlock(),e.createElementBlock("button",{key:V,onClick:j=>$(V),class:e.normalizeClass(["vt-pagination__nav-button",{"vt-pagination__nav-button--active":V===r.value}])},e.toDisplayString(V),11,Po))),128)),e.createElementVNode("button",{onClick:W,disabled:i.value,class:e.normalizeClass({"vt-pagination__nav-button":!0,"has-items":!i.value})},[e.createVNode(F,{name:"arrowRight"})],10,Ao)]),e.createElementVNode("div",null,[e.createVNode(J,{icon:"arrowReload",shape:"circle",tooltip:"",tooltipPlacement:"left",onClick:O},{default:e.withCtx(()=>E[2]||(E[2]=[e.createTextVNode("Оновити дані ",-1)])),_:1,__:[2]})])]))}}),Oo=["for"],jo=["id","name","value","checked","disabled","required",".indeterminate"],q=e.defineComponent({__name:"VCheckbox",props:{modelValue:{type:Boolean,default:void 0},checked:{type:Boolean,default:!1},label:{},disabled:{type:Boolean,default:!1},id:{},name:{},value:{},indeterminate:{type:Boolean,default:!1},size:{default:"medium"},variant:{default:"primary"},required:{type:Boolean,default:!1},isDouble:{type:Boolean,default:!1}},emits:["update:modelValue","change","focus","blur"],setup(o,{emit:t}){const l=o,n=t,r=()=>`vt-checkbox-${Math.random().toString(36).substr(2,9)}`,s=e.computed(()=>l.id||r()),c=e.computed(()=>l.modelValue??l.checked),d=i=>{if(l.disabled)return;const b=i.target.checked;n("update:modelValue",b),n("change",b,i)},a=i=>{n("focus",i)},u=i=>{n("blur",i)};return(i,k)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["vt-checkbox",`vt-checkbox--${i.size}`,`vt-checkbox--${i.variant}`,{"vt-checkbox--disabled":i.disabled,"vt-checkbox--double":i.isDouble}]),for:s.value},[e.createElementVNode("input",{id:s.value,name:i.name,value:i.value,checked:c.value,disabled:i.disabled,required:i.required,".indeterminate":i.indeterminate,type:"checkbox",class:"vt-checkbox__input",onChange:d,onFocus:a,onBlur:u},null,40,jo),e.createElementVNode("div",{class:e.normalizeClass(["vt-checkbox__box",{"vt-checkbox__box--checked":c.value&&!i.indeterminate&&!i.isDouble,"vt-checkbox__box--indeterminate":i.indeterminate,"vt-checkbox__box--double":i.isDouble&&c.value,"vt-checkbox__box--disabled":i.disabled}])},[!i.indeterminate&&!i.isDouble?(e.openBlock(),e.createElementBlock("svg",{key:0,class:e.normalizeClass(["vt-checkbox__checkmark",{"vt-checkbox__checkmark--checked":c.value}]),width:"10",height:"9",viewBox:"0 0 10 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k[0]||(k[0]=[e.createElementVNode("path",{d:"M1 5L3.58264 7.58264C3.80112 7.80112 4.16348 7.77113 4.34306 7.51971L9 1",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},null,-1)]),2)):e.createCommentVNode("",!0),i.isDouble&&c.value?(e.openBlock(),e.createElementBlock("svg",{key:1,class:e.normalizeClass(["vt-checkbox__checkmark",{"vt-checkbox__checkmark--checked":c.value}]),width:"13",height:"6",viewBox:"0 0 13 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k[1]||(k[1]=[e.createElementVNode("path",{d:"M6 3L8.25 5L12 1",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M1 3L3.25 5L7 1",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]),2)):e.createCommentVNode("",!0),i.indeterminate?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["vt-checkbox__indeterminate-mark",{"vt-checkbox__indeterminate-mark--visible":i.indeterminate}])},null,2)):e.createCommentVNode("",!0)],2),i.label||i.$slots.label||i.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["vt-checkbox__label",{"vt-checkbox__label--disabled":i.disabled}])},[e.renderSlot(i.$slots,"label",{},()=>[e.renderSlot(i.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(i.label),1)])])],2)):e.createCommentVNode("",!0)],10,Oo))}});function Fo(o){const t=e.computed(()=>[...o].sort((r,s)=>r.pinnedLeft&&!s.pinnedLeft?-1:!r.pinnedLeft&&s.pinnedLeft||r.pinnedRight&&!s.pinnedRight?1:!r.pinnedRight&&s.pinnedRight?-1:0)),l=()=>{const r=t.value.length,s=t.value.filter(i=>i.width||i.minWidth),c=s.reduce((i,k)=>i+(k.width||k.minWidth||0),0),d=r-s.length;if(d===0)return 150;const u=Math.max(800-c,d*80);return Math.max(Math.floor(u/d),120)};return{sortedColumns:t,getDefaultColumnWidth:l,getStickyOffset:(r,s,c=!1)=>{const d=t.value;let a=0;if(r==="left"){c&&(a+=50);for(let u=0;u<s;u++){const i=d[u];i.pinnedLeft&&(a+=i.width||i.minWidth||l())}}else for(let u=d.length-1;u>s;u--){const i=d[u];i.pinnedRight&&(a+=i.width||i.minWidth||l())}return a}}}function Zo(o){const t=()=>{const s={};return o.maxHeight&&(s.maxHeight=`${o.maxHeight}px`),s},l=(s,c,d,a)=>{const u={};if(s.width)u.width=`${s.width}px`,u.minWidth=`${s.width}px`,u.maxWidth=`${s.width}px`;else if(s.minWidth)u.minWidth=`${s.minWidth}px`,u.width=`${s.minWidth}px`,u.maxWidth="none";else{const i=a();u.width=`${i}px`,u.minWidth="80px",u.maxWidth="none"}return s.pinnedLeft?(u.position="sticky",u.left=`${d("left",c,o.selectable)}px`,u.zIndex="10"):s.pinnedRight&&(u.position="sticky",u.right=`${d("right",c,!1)}px`,u.zIndex="10"),u};return{getTableWrapperStyle:t,getColumnStyle:l,getHeaderStyle:(s,c,d,a)=>{const u=l(s,c,d,a);return o.maxHeight&&(u.position="sticky",u.top="0",s.pinnedLeft||s.pinnedRight?u.zIndex="12":u.zIndex="11"),u},getFooterStyle:(s,c,d,a)=>{const u=l(s,c,d,a);return o.maxHeight&&(u.position="sticky",u.bottom="0",s.pinnedLeft||s.pinnedRight?u.zIndex="12":u.zIndex="11"),u}}}function Uo(){const o=e.ref({resizingCol:null,startX:0,startWidth:0}),t=`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><path d='M5 13L2 10L5 7' stroke='%23828282' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M15 7L18 10L15 13' stroke='%23828282' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M10 3L10 17' stroke='%23828282' stroke-width='3' stroke-linecap='round'/></svg>") 10 10, col-resize`;return{onMouseDown:(n,r,s,c)=>{n.preventDefault(),n.stopPropagation(),o.value.resizingCol=r,o.value.startX=n.clientX,o.value.startWidth=r.width||r.minWidth||s(r.prop);const d=u=>{const{resizingCol:i,startX:k,startWidth:b}=o.value;if(!i)return;document.querySelectorAll(`[data-resizer="${i.prop}"]`).forEach(O=>{O.classList.add("vt-table__resizer--active")});const $=u.clientX-k,H=i.minWidth||50,W=i.maxWidth||1e3,N=Math.max(Math.min(b+$,W),H);i.width=N},a=()=>{const{resizingCol:u}=o.value;document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",a),document.body.style.cursor="",document.body.style.userSelect="",document.body.classList.remove("vt-table-resizing"),u&&(document.querySelectorAll(`[data-resizer="${u.prop}"]`).forEach(i=>{i.classList.remove("vt-table__resizer--active")}),c&&u.width&&c(u.width)),o.value.resizingCol=null};document.addEventListener("mousemove",d),document.addEventListener("mouseup",a),document.body.style.cursor=t,document.body.style.userSelect="none",document.body.classList.add("vt-table-resizing")},resizeState:o}}function Ko(o,t,l,n){var T;const r=o.selectionKey||"id",s=e.ref([]),c=e.ref(null),d=e.ref(!1);(T=o.defaultSelection)!=null&&T.length&&(s.value=[...o.defaultSelection]);const a=v=>v[r],u=v=>d.value?!0:s.value.some(_=>a(_)===a(v)),i=e.computed(()=>t.value.filter(v=>u(v)).length),k=e.computed(()=>t.value.length>0&&i.value===t.value.length),b=e.computed(()=>{if(d.value)return!1;const v=i.value;return v>0&&v<t.value.length}),$=e.computed(()=>d.value?!0:k.value&&!b.value),H=e.computed(()=>d.value),W=(v,_)=>{const A=a(v),K=s.value.some(h=>a(h)===a(v)),m=_!==void 0?_:!K;if(d.value&&!m){d.value=!1,n!=null&&n.value&&(s.value=n.value.filter(h=>a(h)!==A)),x(v,!1);return}d.value&&m||(m&&!K?s.value.push(v):!m&&K&&(s.value=s.value.filter(h=>a(h)!==A)),o.selectOnClickRow&&_===void 0&&j(m?v:null),x(v,m))},N=()=>{switch(O()){case"none":case"partial":w();break;case"allVisible":E();break;case"absoluteAll":V();break}},O=()=>d.value?"absoluteAll":k.value?"allVisible":i.value>0?"partial":"none",w=()=>{const v=[],_=new Set(s.value.map(A=>a(A)));s.value.forEach(A=>{v.push(A)}),t.value.forEach(A=>{_.has(a(A))||v.push(A)}),s.value=v,d.value=!1,x()},E=()=>{d.value=!0,n!=null&&n.value?s.value=[...n.value]:s.value=[...t.value],x(void 0,void 0,!0)},V=()=>{s.value=[],d.value=!1,c.value=null,x()},j=v=>{const _=c.value;c.value=v,l("current-change",{currentRow:c.value,oldCurrentRow:_})},P=()=>[...s.value],y=v=>{s.value=[...v],d.value=!1,x()},x=(v,_,A=!1)=>{const K={selection:[...s.value],row:v,selected:_,isAllSelected:A||d.value};l("selection-change",K)};return e.watch(()=>o.defaultSelection,v=>{v!=null&&v.length&&(s.value=[...v])}),{selectedRows:s,currentRow:c,isRowSelected:u,isAllSelected:$,isIndeterminate:b,isDoubleCheck:H,isFullSelection:d,toggleRowSelection:W,toggleAllSelection:N,clearSelection:V,setCurrentRow:j,getSelectionRows:P,setSelectionRows:y,selectAbsolutelyAll:E}}function Xo(o,t){if(!o)return String(t.value??"");try{const l=o(t);return l}catch(l){return console.error("Error rendering table slot:",l),String(t.value??"")}}const Yo=(o,t,l="asc")=>{if(o==null&&t==null)return 0;if(o==null)return l==="asc"?1:-1;if(t==null)return l==="asc"?-1:1;if(o===t)return 0;let n=0;const r=Number(o),s=Number(t);return!isNaN(r)&&!isNaN(s)?n=r-s:ge(o)&&ge(t)?n=new Date(o).getTime()-new Date(t).getTime():typeof o=="boolean"&&typeof t=="boolean"?n=o===t?0:o?-1:1:n=String(o).localeCompare(String(t),void 0,{numeric:!0,sensitivity:"base"}),l==="desc"?-n:n},ge=o=>o instanceof Date?!isNaN(o.getTime()):typeof o=="string"&&/\d{4}-\d{2}-\d{2}|\//.test(o)?!isNaN(new Date(o).getTime()):!1,qo=(o,t,l)=>{o.sortable&&l({prop:o.prop,direction:t})},ke=(o,t)=>{const l=(t==null?void 0:t.prop)===o.prop,n=t==null?void 0:t.direction;return{asc:["vt-th__sort-icon",l&&n==="asc"&&"vt-th__sortable-active"].filter(Boolean).join(" "),desc:["vt-th__sort-icon",l&&n==="desc"&&"vt-th__sortable-active"].filter(Boolean).join(" ")}},Go=(o,t,l)=>{if(!t)return[...o];const n=l.find(s=>s.prop===t.prop);if(!(n!=null&&n.sortable))return[...o];const r=n.sortMethod||Yo;return[...o].sort((s,c)=>{const d=s[n.prop],a=c[n.prop];return r(d,a,t.direction)})},ce=Symbol("dropdown-context"),de=e.defineComponent({__name:"VDropdown",props:{trigger:{default:"hover"},placement:{default:"bottom-start"},disabled:{type:Boolean,default:!1},splitButton:{type:Boolean,default:!1},hideOnClick:{type:Boolean,default:!0},showTimeout:{default:250},hideTimeout:{default:150},tabindex:{default:0}},emits:["visible-change","click","command"],setup(o,{expose:t,emit:l}){const n=o,r=l,s=e.ref(),c=e.ref(),d=e.ref(),a=e.ref(!1),u=e.ref(null),i=e.ref({position:"absolute",top:"0px",left:"0px",zIndex:2e3,transformOrigin:"center top"});e.useSlots();const k=async()=>{if(await e.nextTick(),!c.value||!d.value)return;const y=c.value.getBoundingClientRect(),x=d.value.getBoundingClientRect();let T=0,v=0;switch(n.placement){case"bottom":T=y.bottom+window.scrollY+5,v=y.left+window.scrollX+(y.width-x.width)/2;break;case"bottom-start":T=y.bottom+window.scrollY+5,v=y.left+window.scrollX;break;case"bottom-end":T=y.bottom+window.scrollY+5,v=y.right+window.scrollX-x.width;break;case"top":T=y.top+window.scrollY-x.height-5,v=y.left+window.scrollX+(y.width-x.width)/2;break;case"top-start":T=y.top+window.scrollY-x.height-5,v=y.left+window.scrollX;break;case"top-end":T=y.top+window.scrollY-x.height-5,v=y.right+window.scrollX-x.width;break}v+x.width>window.innerWidth&&(v=window.innerWidth-x.width-10),v<10&&(v=10),T+x.height>window.innerHeight&&(T=y.top+window.scrollY-x.height-5),T<10&&(T=10),i.value.top=`${T}px`,i.value.left=`${v}px`},b=()=>{n.disabled||a.value||(H(),u.value=window.setTimeout(async()=>{a.value=!0,await k(),r("visible-change",!0)},n.trigger==="hover"?n.showTimeout:0))},$=()=>{a.value&&(H(),u.value=window.setTimeout(()=>{a.value=!1,r("visible-change",!1)},n.trigger==="hover"?n.hideTimeout:0))},H=()=>{u.value&&(window.clearTimeout(u.value),u.value=null)},W=y=>{console.log("VDropdown handleCommand called:",y),r("command",y),n.hideOnClick&&$()};e.provide(ce,{handleCommand:W,hideOnClick:n.hideOnClick});const N=y=>{n.disabled||(console.log("VDropdown click triggered"),r("click",y),n.trigger==="click"&&(a.value?$():b()))},O=()=>{n.trigger==="hover"&&b()},w=()=>{n.trigger==="hover"&&$()},E=()=>{n.trigger==="hover"&&H()},V=()=>{n.trigger==="hover"&&$()},j=y=>{var T,v;if(!a.value)return;const x=y.target;(T=s.value)!=null&&T.contains(x)||(v=d.value)!=null&&v.contains(x)||$()},P=()=>{a.value&&k()};return t({show:b,hide:$,visible:a}),e.onMounted(()=>{document.addEventListener("click",j),window.addEventListener("scroll",P,{passive:!0}),window.addEventListener("resize",P)}),e.onUnmounted(()=>{document.removeEventListener("click",j),window.removeEventListener("scroll",P),window.removeEventListener("resize",P),H()}),(y,x)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:s,class:"v-dropdown",onClick:N,onMouseenter:O,onMouseleave:w},[e.createElementVNode("div",{ref_key:"triggerRef",ref:c,class:"v-dropdown__trigger"},[e.renderSlot(y.$slots,"default")],512),a.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createElementVNode("div",{ref_key:"menuRef",ref:d,style:e.normalizeStyle(i.value),class:"v-dropdown-menu",onMouseenter:E,onMouseleave:V,onClick:x[0]||(x[0]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(y.$slots,"dropdown")],36)])):e.createCommentVNode("",!0)],544))}}),te=e.defineComponent({__name:"VDropdownItem",props:{command:{},disabled:{type:Boolean},divided:{type:Boolean},icon:{}},emits:["click"],setup(o,{emit:t}){const l=o,n=t,r=e.inject(ce);r||console.warn("VDropdownItem must be used within VDropdown");const s=c=>{l.disabled||(console.log("VDropdownItem click:",l.command),n("click",c),l.command!==void 0&&r&&(console.log("Calling handleCommand with:",l.command),r.handleCommand(l.command)))};return(c,d)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["v-dropdown-item",{"is-disabled":c.disabled,"v-dropdown-item--divided":c.divided}]),onClick:s},[c.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([c.icon,"v-dropdown-item__icon"])},null,2)):e.createCommentVNode("",!0),e.renderSlot(c.$slots,"default")],2))}});class Jo{constructor(){this.modalStack=[],this.baseZIndex=1e3}open(t={}){const l=`modal-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,n=document.createElement("div");n.setAttribute("data-vt-modal",l),document.body.appendChild(n);const r=e.ref(!0),s=this.baseZIndex+this.modalStack.length*10,c=e.createApp({setup(){const a=()=>{r.value=!1,setTimeout(()=>{X.closeById(l)},100)};return()=>e.h(ae,{modelValue:r.value,"onUpdate:modelValue":a,title:t.title,size:t.size||"medium",showCloseButton:t.showCloseButton!==!1,closeOnBackdropClick:t.closeOnBackdropClick!==!1,onClose:a,zIndex:s},{default:()=>t.component?e.h(t.component,t.props||{}):t.content?e.h("div",{innerHTML:t.content}):null})}});c.mount(n);const d={id:l,app:c,container:n,isOpen:r};return this.modalStack.push(d),l}close(){if(this.modalStack.length>0){const t=this.modalStack[this.modalStack.length-1];this.closeById(t.id)}}closeById(t){const l=this.modalStack.findIndex(n=>n.id===t);if(l!==-1){const n=this.modalStack[l];this.cleanupModal(n),this.modalStack.splice(l,1),this.recalculateZIndices()}}closeAll(){for(;this.modalStack.length>0;){const t=this.modalStack.pop();t&&this.cleanupModal(t)}}getOpenModalsCount(){return this.modalStack.length}cleanupModal(t){t.app&&t.app.unmount(),t.container&&t.container.parentNode&&document.body.removeChild(t.container)}recalculateZIndices(){}}const X=new Jo,xe={install(o){o.config.globalProperties.$modal=X,o.config.globalProperties.$modalStack={closeAll:()=>X.closeAll(),getCount:()=>X.getOpenModalsCount(),closeById:t=>X.closeById(t)}}},Qo={class:"vt-columns-selector-body"},en={class:"vt-columns-selector"},tn={class:"vt-columns-selector__panel"},on=["draggable","onDragstart","onDragover","onDrop"],nn={key:0,class:"vt-columns-selector__panel-item-pinned"},ln={class:"vt-columns-selector__available"},rn=["onClick"],sn={key:0,class:"vt-columns-selector__group-columns"},an={key:0,class:"vt-columns-selector__pinned-note"},cn={class:"vt-modal__content-button"},dn=e.defineComponent({__name:"VTableColumnSelector",props:{columns:{},columnsSelector:{default:()=>[]}},emits:["update-columns"],setup(o,{emit:t}){const l=o,n=t,r=e.ref([]),s=e.ref(new Set),c=e.ref(-1),d=e.ref(-1),a=e.ref("before"),u=e.computed(()=>{const m={};return l.columnsSelector.forEach(h=>{if(h.name==="removed")return;const g=h.columns.map(S=>S.prop),B=r.value.filter(S=>g.includes(S.prop));B.length===0?m[h.name]={checked:!1,indeterminate:!1}:B.length===h.columns.length?m[h.name]={checked:!0,indeterminate:!1}:m[h.name]={checked:!1,indeterminate:!0}}),m}),i=e.computed(()=>l.columnsSelector.filter(m=>m.name!=="removed")),k=m=>m.pinnedLeft||m.pinnedRight,b=m=>!k(m),$=()=>{const m=r.value;let h=-1;for(let B=0;B<m.length;B++)m[B].pinnedLeft&&(h=B);let g=m.length;for(let B=0;B<m.length;B++)if(m[B].pinnedRight){g=B;break}return{minIndex:h+1,maxIndex:g-1}},H=m=>{const h=$();return!(m<h.minIndex||m>h.maxIndex+1)},W=(m,h)=>{const g=r.value[h];if(!b(g)){m.preventDefault();return}c.value=h,m.dataTransfer&&(m.dataTransfer.effectAllowed="move",m.dataTransfer.setData("text/plain",g.prop)),document.body.style.cursor="grabbing"},N=(m,h)=>{if(c.value===-1)return;m.preventDefault();const g=m.currentTarget.getBoundingClientRect(),B=m.clientY,S=g.top+g.height/2;let L=h,Z="before";B<S?(L=h,Z="before"):(L=h+1,Z="after"),c.value<L&&L--,H(L)?(d.value=h,a.value=Z,m.dataTransfer.dropEffect="move"):(d.value=-1,m.dataTransfer.dropEffect="none")},O=()=>{setTimeout(()=>{c.value===-1&&(d.value=-1)},50)},w=(m,h)=>{if(m.preventDefault(),c.value===-1||d.value===-1){V();return}const g=m.currentTarget.getBoundingClientRect(),B=m.clientY,S=g.top+g.height/2;let L=h;if(B>=S&&(L=h+1),c.value<L&&L--,!H(L)||L===c.value){V();return}const Z=[...r.value],[oe]=Z.splice(c.value,1);Z.splice(L,0,oe),r.value=Z,V()},E=()=>{V()},V=()=>{c.value=-1,d.value=-1,a.value="before",document.body.style.cursor=""},j=m=>{const h=["vt-columns-selector__panel-item"];return c.value===m&&h.push("vt-columns-selector__panel-item--dragging"),d.value===m&&a.value==="before"&&h.push("vt-columns-selector__panel-item--drop-before"),d.value===m&&a.value==="after"&&h.push("vt-columns-selector__panel-item--drop-after"),h},P=()=>{r.value=[...l.columns.map(m=>({...m}))],l.columnsSelector.forEach(m=>{m.name!=="removed"&&s.value.add(m.name)})},y=(m,h)=>{if(h)r.value.some(g=>g.prop===m.prop)||r.value.push({...m});else{if(k(m))return;r.value=r.value.filter(g=>g.prop!==m.prop)}},x=(m,h)=>{if(h)m.columns.forEach(g=>{r.value.some(B=>B.prop===g.prop)||r.value.push({...g})});else{const g=[];m.columns.forEach(B=>{const S=r.value.find(L=>L.prop===B.prop);S&&!k(S)&&g.push(S)}),r.value=r.value.filter(B=>!g.some(S=>S.prop===B.prop))}},T=m=>r.value.some(h=>h.prop===m.prop),v=m=>{const h=r.value.find(g=>g.prop===m.prop);return!h||!k(h)},_=m=>{s.value.has(m)?s.value.delete(m):s.value.add(m)},A=()=>{n("update-columns",[...r.value]),X.close()},K=()=>{X.close()};return e.onMounted(()=>{P()}),(m,h)=>(e.openBlock(),e.createElementBlock("div",Qo,[e.createElementVNode("div",en,[e.createElementVNode("div",tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(g,B)=>(e.openBlock(),e.createElementBlock("div",{key:g.prop,class:e.normalizeClass(j(B)),draggable:b(g),onDragstart:S=>W(S,B),onDragover:S=>N(S,B),onDragleave:O,onDrop:S=>w(S,B),onDragend:E},[e.createVNode(F,{name:b(g)?"columnsMove":"freeze",class:e.normalizeClass(["vt-columns-selector__panel-item-icon",{"vt-columns-selector__panel-item-icon--draggable":b(g)}])},null,8,["name","class"]),e.createVNode(q,{label:g.label,checked:!0,disabled:k(g),onChange:S=>y(g,S),onClick:h[0]||(h[0]=e.withModifiers(()=>{},["stop"]))},null,8,["label","disabled","onChange"]),k(g)?(e.openBlock(),e.createElementBlock("span",nn,"pinned")):e.createCommentVNode("",!0)],42,on))),128))]),e.createElementVNode("div",ln,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,g=>{var B,S;return e.openBlock(),e.createElementBlock("div",{key:g.name,class:"vt-columns-selector__group"},[e.createElementVNode("div",{class:"vt-columns-selector__group-header",onClick:L=>_(g.name)},[e.createVNode(q,{label:g.label,checked:((B=u.value[g.name])==null?void 0:B.checked)||!1,indeterminate:((S=u.value[g.name])==null?void 0:S.indeterminate)||!1,onChange:L=>x(g,L),onClick:h[1]||(h[1]=e.withModifiers(()=>{},["stop"]))},null,8,["label","checked","indeterminate","onChange"]),g.icon?(e.openBlock(),e.createBlock(F,{key:0,name:g.icon,class:"vt-columns-selector__group-icon"},null,8,["name"])):e.createCommentVNode("",!0)],8,rn),s.value.has(g.name)?(e.openBlock(),e.createElementBlock("div",sn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.columns,L=>(e.openBlock(),e.createElementBlock("div",{key:L.prop,class:"vt-columns-selector__group-column"},[e.createVNode(q,{label:L.label,checked:T(L),disabled:!v(L),onChange:Z=>y(L,Z)},null,8,["label","checked","disabled","onChange"]),v(L)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",an," (закріплена) "))]))),128))])):e.createCommentVNode("",!0)])}),128))])]),e.createElementVNode("div",cn,[e.createVNode(J,{onClick:K},{default:e.withCtx(()=>h[2]||(h[2]=[e.createTextVNode("Скасувати",-1)])),_:1,__:[2]}),e.createVNode(J,{type:"primary",onClick:A},{default:e.withCtx(()=>h[3]||(h[3]=[e.createTextVNode("Зберегти",-1)])),_:1,__:[3]})])]))}}),un={class:"vt-table-header-actions"},mn=e.defineComponent({__name:"ColumnActions",props:{column:{},allColumns:{},columnsSelector:{}},emits:["pin","update-columns"],setup(o,{emit:t}){const l=o,n=t,r=()=>!!(l.column.pinnedLeft||l.column.pinnedRight),s=i=>{switch(console.log("ColumnActions - Command received:",i,typeof i),String(i)){case"pin":console.log("Executing pin command"),c();break;case"columns":console.log("Executing columns command"),u();break;default:console.warn("Unknown command:",i)}},c=()=>{const i=r();console.log("handlePin called, isPinned:",i),i?n("pin",l.column,"none"):n("pin",l.column,"left")},d=i=>({name:"removed",label:"Видалені колонки",order:999,columns:i}),a=i=>{var W;const k=new Set(i.map(N=>N.prop)),b=new Set;(W=l.columnsSelector)==null||W.forEach(N=>{N.columns.forEach(O=>b.add(O.prop))}),l.allColumns.forEach(N=>b.add(N.prop));const $=[];b.forEach(N=>{var O;if(!k.has(N)){let w;(O=l.columnsSelector)==null||O.forEach(E=>{const V=E.columns.find(j=>j.prop===N);V&&(w=V)}),w||(w=l.allColumns.find(E=>E.prop===N)),w&&$.push(w)}});const H=[...l.columnsSelector||[]];return $.length>0&&H.push(d($)),H},u=()=>{console.log("handleToggleVisibility called");const i=a(l.allColumns);X.open({component:dn,title:"Управління колонками таблиці",props:{columns:l.allColumns,columnsSelector:i,"onUpdate-columns":k=>{n("update-columns",k)}},size:"large",closeOnBackdropClick:!1})};return(i,k)=>(e.openBlock(),e.createBlock(de,{trigger:"click",placement:"bottom-start",onCommand:s},{dropdown:e.withCtx(()=>[e.createVNode(te,{command:"pin"},{default:e.withCtx(()=>[e.createVNode(F,{name:r()?"unfreeze":"freeze"},null,8,["name"]),e.createElementVNode("div",null,e.toDisplayString(r()?"Розморозити":"Заморозити"),1)]),_:1}),e.createVNode(te,{command:"columns"},{default:e.withCtx(()=>[e.createVNode(F,{name:"columnInsert"}),k[0]||(k[0]=e.createElementVNode("div",null,"Колонки",-1))]),_:1,__:[0]})]),default:e.withCtx(()=>[e.createElementVNode("div",un,[e.createVNode(F,{name:"listBullet"})])]),_:1}))}}),pn={class:"vt-table"},hn={class:"vt-th__content"},fn={class:"vt-th__content"},vn={class:"vt-th__label"},gn={key:0,class:"vt-th__sortable"},kn=["data-resizer","onMousedown"],_n={key:0,class:"vt-table__empty-row"},Cn=["colspan"],wn={class:"vt-table__empty-content"},bn=["onClick"],yn={class:"vt-table__cell-content"},Bn={class:"vt-table__cell-content vt-table__cell-content--ellipsis"},xn={key:1},En=["data-resizer","onMousedown"],Vn={key:0,class:"vt-table__summary"},Mn={class:"vt-table__cell-content vt-table__cell-content--summary"},re=50,Ee=e.defineComponent({__name:"VTable",props:e.mergeModels({data:{},maxHeight:{default:void 0},rowKey:{default:"id"},defaultSort:{},showSummary:{type:Boolean,default:!1},summaryMethod:{},columnsSelector:{default:()=>[]},selectable:{type:Boolean,default:!1},selectionKey:{default:"id"},defaultSelection:{default:()=>[]},selectOnClickRow:{type:Boolean,default:!1},highlightCurrentRow:{type:Boolean,default:!1},allData:{default:void 0},columns:{default:()=>[]}},{columns:{required:!1,default:void 0},columnsModifiers:{}}),emits:e.mergeModels(["sort-change","selection-change","current-change","row-click","update:columns","column-pin","column-resize","column-visibility","column-sort","columns-change","infinity-scroll"],["update:columns"]),setup(o,{expose:t,emit:l}){const n=o,r=l,s=e.useModel(o,"columns"),c=e.ref({}),d=e.ref(),a=e.reactive([]),u=e.ref(n.defaultSort||null),i=e.computed(()=>Go(n.data||[],u.value,a)),k=e.computed(()=>s.value!==void 0),b=e.computed(()=>n.data&&n.data.length>0),$=e.ref(!1),H=e.ref(0);let W;const N=(p,f)=>n.rowKey&&p[n.rowKey]!=null?String(p[n.rowKey]):String(f),O=()=>{k.value&&s.value?a.splice(0,a.length,...s.value):n.columns&&n.columns.length>0&&a.splice(0,a.length,...n.columns)};e.watch(()=>s.value,p=>{p&&k.value&&a.splice(0,a.length,...p)},{deep:!0}),e.watch(()=>n.columns,p=>{p&&!k.value&&a.splice(0,a.length,...p)},{deep:!0}),e.provide("vt-table-columns",a);const{sortedColumns:w,getDefaultColumnWidth:E,getStickyOffset:V}=Fo(a),{getTableWrapperStyle:j,getColumnStyle:P,getHeaderStyle:y,getFooterStyle:x}=Zo(n),{onMouseDown:T}=Uo(),v=e.computed(()=>n.allData||n.data),_=n.selectable?Ko(n,i,r,v):null,A=()=>({width:`${re}px`,minWidth:`${re}px`,maxWidth:`${re}px`,left:"0px",position:"sticky",zIndex:10}),K=()=>{const p=A();return n.maxHeight?{...p,top:"0px",zIndex:11}:p},m=()=>{const p=A();return n.maxHeight?{...p,bottom:"0px",zIndex:11}:p},h=()=>{if(!d.value||$.value)return;const p=d.value,f=p.scrollTop,M=p.scrollHeight,z=p.clientHeight,R=30;W&&clearTimeout(W),W=setTimeout(()=>{const Q=f-H.value>1,C=M-f-z<=R,U=M-f-z<=5;H.value=f,Q&&(C||U)&&($.value=!0,r("infinity-scroll"),setTimeout(()=>{$.value=!1},1e3))},50)},g=()=>{$.value=!1};e.onMounted(()=>{d.value&&d.value.addEventListener("scroll",h)}),e.onUnmounted(()=>{W&&clearTimeout(W),d.value&&d.value.removeEventListener("scroll",h)});const B=(p,f)=>{qo(p,f,M=>{var z,R;((z=u.value)==null?void 0:z.prop)===p.prop&&u.value.direction===f?u.value=null:u.value=M,r("sort-change",{column:p,direction:((R=u.value)==null?void 0:R.direction)||null,prop:p.prop,sortedData:i.value})})},S=(p,f)=>{const M={pinnedLeft:f==="left",pinnedRight:f==="right"};Z(p.prop,M),r("column-pin",{column:{...p,...M},position:f})},L=p=>{a.splice(0,a.length,...p),k.value&&(s.value=[...p]),r("columns-change",[...p])},Z=(p,f)=>{const M=a.findIndex(z=>z.prop===p);if(M!==-1){if(Object.assign(a[M],f),k.value&&s.value){const z=s.value.findIndex(R=>R.prop===p);if(z!==-1){const R=[...s.value];R[z]={...R[z],...f},s.value=R}}r("columns-change",[...a])}},oe=(p,f,M)=>{r("row-click",{row:p,column:f,event:M}),n.highlightCurrentRow&&_&&_.setCurrentRow(p)},Le=(p,f,M)=>{M.stopPropagation(),_&&_.toggleRowSelection(f,p)},$e=(p,f)=>{f.stopPropagation(),_&&_.toggleAllSelection()},ue=(p,f)=>{p&&(c.value[f]=p)},me=(p,f)=>{const M=f.width||E();T(p,f,E,z=>{Z(f.prop,{width:z}),r("column-resize",{column:{...f,width:z},width:z,oldWidth:M})})},Ne=(p,f)=>P(p,f,V,E),ze=(p,f)=>y(p,f,V,E),Ie=(p,f)=>x(p,f,V,E),Te=(p,f)=>{if(!f||!f.prop)return"";const M=p[f.prop];return M==null?"":String(M)},Re=e.computed(()=>{if(!n.showSummary||!b.value)return{};const p=a;if(typeof n.summaryMethod=="function"){const f=n.summaryMethod({columns:p,data:i.value});return p.reduce((M,z,R)=>(M[z.prop]=f[R],M),{})}return p.reduce((f,M)=>{const z=i.value.map(R=>R[M.prop]);return f[M.prop]=z.every(R=>typeof R=="number")?z.reduce((R,G)=>R+G,0):"",f},{})}),De=e.computed(()=>n.showSummary&&b.value),He=(p,f)=>{_&&_.toggleRowSelection(p,f)},We=()=>{_&&_.toggleAllSelection()},Pe=()=>{_&&_.selectAbsolutelyAll()},Ae=()=>{_&&_.clearSelection()},Oe=()=>_?_.getSelectionRows():[],je=p=>{_&&_.setSelectionRows(p)};return e.onMounted(()=>{O()}),t({toggleRowSelection:He,toggleAllSelection:We,selectAbsolutelyAll:Pe,clearSelection:Ae,getSelectionRows:Oe,setSelectionRows:je,resetInfinityScroll:g}),(p,f)=>{var z,R,G,Q;const M=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",{ref_key:"tableWrapperRef",ref:d,class:"vt-table-wrapper",style:e.normalizeStyle(e.unref(j)()),onScroll:h},[e.renderSlot(p.$slots,"default"),e.createElementVNode("table",pn,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[n.selectable?(e.openBlock(),e.createElementBlock("th",{key:0,class:e.normalizeClass(["vt-table__th vt-table__th--selection",{"vt-table__th--sticky":n.maxHeight,"vt-table__th--pinned-left":!0}]),style:e.normalizeStyle(K())},[e.createElementVNode("div",hn,[e.createVNode(q,{checked:(z=e.unref(_))==null?void 0:z.isAllSelected.value,indeterminate:(R=e.unref(_))==null?void 0:R.isIndeterminate.value,"is-double":(Q=(G=e.unref(_))==null?void 0:G.isDoubleCheck)==null?void 0:Q.value,onChange:$e},null,8,["checked","indeterminate","is-double"])])],6)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w),(C,U)=>(e.openBlock(),e.createElementBlock("th",{key:C.prop,ref_for:!0,ref:Y=>ue(Y,C.prop),style:e.normalizeStyle(ze(C,U)),class:e.normalizeClass(["vt-table__th",{"vt-table__th--sticky":n.maxHeight,"vt-table__th--pinned-left":C.pinnedLeft,"vt-table__th--pinned-right":C.pinnedRight,"vt-table__th--sortable":C.sortable}])},[e.createElementVNode("div",fn,[e.createElementVNode("div",vn,e.toDisplayString(C.label),1),C.sortable?(e.openBlock(),e.createElementBlock("div",gn,[e.createVNode(F,{name:"arrowTop",class:e.normalizeClass(e.unref(ke)(C,u.value).asc),onClick:e.withModifiers(Y=>B(C,"asc"),["stop"])},null,8,["class","onClick"]),e.createVNode(F,{name:"arrowDown",class:e.normalizeClass(e.unref(ke)(C,u.value).desc),onClick:e.withModifiers(Y=>B(C,"desc"),["stop"])},null,8,["class","onClick"])])):e.createCommentVNode("",!0),C.actionColumn?(e.openBlock(),e.createBlock(mn,{key:1,column:C,"all-columns":e.unref(w),columnsSelector:n.columnsSelector,onPin:S,onUpdateColumns:L},null,8,["column","all-columns","columnsSelector"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"vt-table__resizer","data-resizer":C.prop,onMousedown:Y=>me(Y,C)},null,40,kn)],6))),128))])]),e.createElementVNode("tbody",null,[b.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(i.value,(C,U)=>{var Y,pe,he;return e.openBlock(),e.createElementBlock("tr",{key:N(C,U),class:e.normalizeClass(["vt-table__row",{"vt-table__row--selected":(Y=e.unref(_))==null?void 0:Y.isRowSelected(C),"vt-table__row--current":((pe=e.unref(_))==null?void 0:pe.currentRow.value)===C,"vt-table__row--clickable":n.selectOnClickRow||n.highlightCurrentRow}]),onClick:D=>oe(C,e.unref(w)[0],D)},[n.selectable?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass(["vt-table__td vt-table__td--selection",{"vt-table__td--pinned-left":!0}]),style:e.normalizeStyle(A())},[e.createElementVNode("div",yn,[e.createVNode(q,{checked:(he=e.unref(_))==null?void 0:he.isRowSelected(C),onChange:(D,ne)=>Le(D,C,ne)},null,8,["checked","onChange"])])],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w),(D,ne,$n,ee)=>{const fe=C[D.prop];if(ee&&ee.key===`${N(C,U)}-${D.prop}`&&e.isMemoSame(ee,fe))return ee;const ve=(e.openBlock(),e.createElementBlock("td",{key:`${N(C,U)}-${D.prop}`,ref_for:!0,ref:le=>ue(le,D.prop),style:e.normalizeStyle(Ne(D,ne)),class:e.normalizeClass(["vt-table__td",{"vt-table__td--pinned-left":D.pinnedLeft,"vt-table__td--pinned-right":D.pinnedRight}])},[e.withDirectives((e.openBlock(),e.createElementBlock("div",Bn,[D.renderSlot?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(()=>e.unref(Xo)(D.renderSlot,{row:C,column:D,value:C[D.prop],index:U})),{key:0})):(e.openBlock(),e.createElementBlock("span",xn,e.toDisplayString(C[D.prop]),1))])),[[M,D.showOverflowTooltip?Te(C,D):null]]),e.createElementVNode("div",{class:"vt-table__resizer","data-resizer":D.prop,onMousedown:le=>me(le,D)},null,40,En)],6));return ve.memo=fe,ve},f,0),128))],10,bn)}),128)):(e.openBlock(),e.createElementBlock("tr",_n,[e.createElementVNode("td",{colspan:e.unref(w).length+(n.selectable?1:0),class:"vt-table__empty-cell"},[e.createElementVNode("div",wn,[e.createVNode(F,{name:"empty",class:"vt-table__empty-icon"}),f[2]||(f[2]=e.createElementVNode("span",{class:"vt-table__empty-text"},"Немає даних!",-1))])],8,Cn)]))]),De.value?(e.openBlock(),e.createElementBlock("tfoot",Vn,[e.createElementVNode("tr",null,[n.selectable?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass(["vt-table__td",{"vt-table__td--pinned-left":!0}]),style:e.normalizeStyle(m())},f[3]||(f[3]=[e.createElementVNode("div",{class:"vt-table__cell-content vt-table__cell-content--summary"},null,-1)]),4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(w),(C,U)=>(e.openBlock(),e.createElementBlock("td",{key:C.prop,style:e.normalizeStyle(Ie(C,U)),class:e.normalizeClass(["vt-table__td",{"vt-table__td--pinned-left":C.pinnedLeft,"vt-table__td--pinned-right":C.pinnedRight}])},[e.createElementVNode("div",Mn,e.toDisplayString(Re.value[C.prop]),1)],6))),128))])])):e.createCommentVNode("",!0)])],36)}}}),Ve=e.defineComponent({__name:"VTableColumn",props:{prop:{},label:{},width:{},minWidth:{},maxWidth:{},sortable:{type:Boolean,default:!0},pinnedLeft:{type:Boolean,default:!1},pinnedRight:{type:Boolean,default:!1},actionColumn:{type:Boolean,default:!0},showOverflowTooltip:{type:Boolean,default:!0},selectable:{type:Boolean,default:!0},renderSlot:{},sortMethod:{}},setup(o){const t=o,l=e.useSlots(),n=e.inject("vt-table-columns");n||console.error("VTableColumn: не знайдено контекст таблиці. Переконайтеся, що компонент використовується всередині VTable.");const r=()=>({prop:t.prop,label:t.label,width:t.width,minWidth:t.minWidth,maxWidth:t.maxWidth,sortable:t.sortable,pinnedLeft:t.pinnedLeft,pinnedRight:t.pinnedRight,actionColumn:t.actionColumn,showOverflowTooltip:t.showOverflowTooltip,selectable:t.selectable,renderSlot:l[t.prop]??l.default??l.slot});let s=-1;return e.onMounted(()=>{if(n){const c=r();n.push(c),s=n.length-1}}),e.watch(()=>[t.width,t.minWidth,t.maxWidth,t.sortable,t.pinnedLeft,t.pinnedRight,t.actionColumn,t.showOverflowTooltip,t.selectable,t.label],()=>{if(n&&s!==-1){const c=n.findIndex(d=>d.prop===t.prop);if(c!==-1){const d=n[c],a={...r(),renderSlot:d.renderSlot};n[c]=a}}},{deep:!0}),e.onUnmounted(()=>{if(n){const c=n.findIndex(d=>d.prop===t.prop);c>-1&&n.splice(c,1)}}),(c,d)=>null}}),_e=(o,t)=>{const l=document.createElement("div");l.className=`vt-tooltip vt-tooltip--${t}`,l.innerText=o,Object.assign(l.style,{position:"absolute",background:"rgba(0, 0, 0, 0.8)",color:"white",padding:"8px 12px",borderRadius:"4px",fontSize:"12px",lineHeight:"1.4",zIndex:"9999",pointerEvents:"none",visibility:"hidden",opacity:"0",transition:"opacity 0.2s ease, visibility 0.2s ease",maxWidth:"300px",minWidth:"max-content",wordWrap:"break-word",whiteSpace:"normal",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.2)"}),o.length<50&&(l.style.whiteSpace="nowrap");const n=document.createElement("div");switch(n.className="vt-tooltip__arrow",Object.assign(n.style,{position:"absolute",width:"0",height:"0",borderStyle:"solid"}),t){case"top":Object.assign(n.style,{top:"100%",left:"50%",marginLeft:"-5px",borderWidth:"5px 5px 0 5px",borderColor:"rgba(0, 0, 0, 0.8) transparent transparent transparent"});break;case"bottom":Object.assign(n.style,{bottom:"100%",left:"50%",marginLeft:"-5px",borderWidth:"0 5px 5px 5px",borderColor:"transparent transparent rgba(0, 0, 0, 0.8) transparent"});break;case"left":Object.assign(n.style,{top:"50%",left:"100%",marginTop:"-5px",borderWidth:"5px 0 5px 5px",borderColor:"transparent transparent transparent rgba(0, 0, 0, 0.8)"});break;case"right":Object.assign(n.style,{top:"50%",right:"100%",marginTop:"-5px",borderWidth:"5px 5px 5px 0",borderColor:"transparent rgba(0, 0, 0, 0.8) transparent transparent"});break}return l.appendChild(n),l},se=(o,t,l)=>{const n=t.getBoundingClientRect(),r=o.getBoundingClientRect(),s=window.pageXOffset||document.documentElement.scrollLeft,c=window.pageYOffset||document.documentElement.scrollTop;let d=0,a=0;switch(l){case"top":d=n.top+c-r.height-8,a=n.left+s+(n.width-r.width)/2;break;case"bottom":d=n.bottom+c+8,a=n.left+s+(n.width-r.width)/2;break;case"left":d=n.top+c+(n.height-r.height)/2,a=n.left+s-r.width-8;break;case"right":d=n.top+c+(n.height-r.height)/2,a=n.right+s+8;break}const u=window.innerWidth,i=window.innerHeight;a<8?a=8:a+r.width>u-8&&(a=u-r.width-8),d<c+8?l==="top"?d=n.bottom+c+8:d=c+8:d+r.height>c+i-8&&(l==="bottom"?d=n.top+c-r.height-8:d=c+i-r.height-8),o.style.top=`${d}px`,o.style.left=`${a}px`},Ce=(o,t,l)=>{o.parentElement||document.body.appendChild(o),o.style.visibility="visible",se(o,t,l),requestAnimationFrame(()=>{o.style.opacity="1"})},we=o=>{o.style.opacity="0",o.style.visibility="hidden"},be=o=>o.scrollWidth>o.clientWidth||o.scrollHeight>o.clientHeight,ye=o=>!!o.closest(".vt-table, table"),Me={mounted(o,t){var a;const l=(a=t.value)==null?void 0:a.trim();if(!l)return;const n=o.dataset.placement||"top",r=_e(l,n);o.__tooltipEl=r;const s=()=>{(ye(o)?be(o):!0)&&Ce(r,o,n)},c=()=>{we(r)},d=()=>{r.style.opacity==="1"&&se(r,o,n)};o.__mouseenterHandler=s,o.__mouseleaveHandler=c,o.__scrollHandler=d,o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",c),window.addEventListener("scroll",d,!0),window.addEventListener("resize",d)},updated(o,t){var n;const l=(n=t.value)==null?void 0:n.trim();if(o.__tooltipEl)l?o.__tooltipEl.firstChild.textContent=l:(o.__tooltipEl.parentElement&&o.__tooltipEl.parentElement.removeChild(o.__tooltipEl),delete o.__tooltipEl);else if(l){const r=o.dataset.placement||"top",s=_e(l,r);o.__tooltipEl=s;const c=()=>{(ye(o)?be(o):!0)&&Ce(s,o,r)},d=()=>{we(s)},a=()=>{s.style.opacity==="1"&&se(s,o,r)};o.__mouseenterHandler=c,o.__mouseleaveHandler=d,o.__scrollHandler=a,o.addEventListener("mouseenter",c),o.addEventListener("mouseleave",d),window.addEventListener("scroll",a,!0),window.addEventListener("resize",a)}},beforeUnmount(o){o.__tooltipEl&&o.__tooltipEl.parentElement&&(o.__tooltipEl.parentElement.removeChild(o.__tooltipEl),delete o.__tooltipEl),o.__mouseenterHandler&&(o.removeEventListener("mouseenter",o.__mouseenterHandler),delete o.__mouseenterHandler),o.__mouseleaveHandler&&(o.removeEventListener("mouseleave",o.__mouseleaveHandler),delete o.__mouseleaveHandler),o.__scrollHandler&&(window.removeEventListener("scroll",o.__scrollHandler,!0),window.removeEventListener("resize",o.__scrollHandler),delete o.__scrollHandler)}},Sn={sortable:!0,actionColumn:!1,showOverflowTooltip:!0,visible:!0,pinnedLeft:!1,pinnedRight:!1},Se={install(o,t={}){const{prefix:l="V",modal:n=!0}=t;o.component(`${l}Button`,J),o.component(`${l}Icon`,F),o.component(`${l}Loader`,ie),o.component(`${l}Modal`,ae),o.component(`${l}Pagination`,Be),o.component(`${l}Checkbox`,q),o.component(`${l}Table`,Ee),o.component(`${l}TableColumn`,Ve),o.component(`${l}Dropdown`,de),o.component(`${l}DropdownItem`,te),o.directive("tooltip",Me),n&&o.use(xe)}},Ln=Se.install;exports.DEFAULT_COLUMN_CONFIG=Sn;exports.DropdownContextKey=ce;exports.VButton=J;exports.VCheckbox=q;exports.VDropdown=de;exports.VDropdownItem=te;exports.VIcon=F;exports.VLoader=ie;exports.VModal=ae;exports.VModalPlugin=xe;exports.VPagination=Be;exports.VTable=Ee;exports.VTableColumn=Ve;exports.default=Se;exports.install=Ln;exports.modalManager=X;exports.tooltipDirective=Me;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),z=(o,t)=>{const l=o.__vccOpts||o;for(const[n,r]of t)l[n]=r;return l},Ae={},Oe={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function je(o,t){return e.openBlock(),e.createElementBlock("svg",Oe,t[0]||(t[0]=[e.createElementVNode("path",{d:"M14 8L10 12L6 8",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Fe=z(Ae,[["render",je]]),Ze={},Ue={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ye(o,t){return e.openBlock(),e.createElementBlock("svg",Ue,t[0]||(t[0]=[e.createElementVNode("path",{d:"M6 12L10 8L14 12",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Xe=z(Ze,[["render",Ye]]),Ke={},qe={width:"14",height:"15",viewBox:"0 0 14 15",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Ge(o,t){return e.openBlock(),e.createElementBlock("svg",qe,t[0]||(t[0]=[e.createElementVNode("path",{d:"M11.8789 4.90517L11.2561 4.20124C10.4045 3.33504 9.28504 2.7626 8.06789 2.5709C6.85074 2.3792 5.60245 2.57874 4.5127 3.13917C3.42296 3.69961 2.55134 4.59032 2.03031 5.67593C1.50928 6.76155 1.36732 7.98272 1.626 9.15387C1.88469 10.325 2.52987 11.3821 3.46351 12.1645C4.39716 12.9469 5.56821 13.4119 6.79871 13.4887C8.02921 13.5655 9.25189 13.25 10.2809 12.5901C11.31 11.9302 12.0891 10.962 12.5 9.83266",stroke:"currentColor","stroke-width":"1.5","stroke-miterlimit":"10","stroke-linecap":"round"},null,-1),e.createElementVNode("path",{d:"M8.5157 6.5C8.07025 6.5 7.84716 5.96143 8.16215 5.64645L10.3086 3.5L12.455 1.35355C12.77 1.03857 13.3086 1.26165 13.3086 1.70711V6C13.3086 6.27614 13.0847 6.5 12.8086 6.5L8.5157 6.5Z",fill:"currentColor"},null,-1)]))}const Je=z(Ke,[["render",Ge]]),Qe={},et={width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function tt(o,t){return e.openBlock(),e.createElementBlock("svg",et,t[0]||(t[0]=[e.createElementVNode("path",{d:"M8.60352 6L12.6035 10L8.60352 14",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const ot=z(Qe,[["render",tt]]),nt={},lt={width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function rt(o,t){return e.openBlock(),e.createElementBlock("svg",lt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M12.3984 14L8.39844 10L12.3984 6",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const st=z(nt,[["render",rt]]),it={},at={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function ct(o,t){return e.openBlock(),e.createElementBlock("svg",at,t[0]||(t[0]=[e.createElementVNode("path",{d:"M12.5 1.66406L11.1783 2.94156C10.6233 3.47906 10.345 3.7474 10 3.7474C9.655 3.7474 9.37667 3.47906 8.82167 2.94156L7.5 1.66406M14.5833 5.83073C15.7533 5.83073 16.3392 5.83073 16.7592 6.11156C16.9412 6.23319 17.0975 6.3895 17.2192 6.57156C17.5 6.99156 17.5 7.5774 17.5 8.7474V15.4141C17.5 16.5841 17.5 17.1699 17.2192 17.5899C17.0975 17.772 16.9412 17.9283 16.7592 18.0499C16.3392 18.3307 15.7533 18.3307 14.5833 18.3307C13.4133 18.3307 12.8275 18.3307 12.4075 18.0499C12.2254 17.9283 12.0691 17.772 11.9475 17.5899C11.6667 17.1699 11.6667 16.5841 11.6667 15.4141V8.7474C11.6667 7.5774 11.6667 6.99156 11.9475 6.57156C12.0691 6.3895 12.2254 6.23319 12.4075 6.11156C12.8275 5.83073 13.4133 5.83073 14.5833 5.83073ZM5.41667 5.83073C6.58667 5.83073 7.1725 5.83073 7.5925 6.11156C7.77456 6.23319 7.93087 6.3895 8.0525 6.57156C8.33333 6.99156 8.33333 7.5774 8.33333 8.7474V15.4141C8.33333 16.5841 8.33333 17.1699 8.0525 17.5899C7.93087 17.772 7.77456 17.9283 7.5925 18.0499C7.1725 18.3307 6.58667 18.3307 5.41667 18.3307C4.24667 18.3307 3.66083 18.3307 3.24083 18.0499C3.05877 17.9283 2.90246 17.772 2.78083 17.5899C2.5 17.1699 2.5 16.5841 2.5 15.4141V8.7474C2.5 7.5774 2.5 6.99156 2.78083 6.57156C2.90246 6.3895 3.05877 6.23319 3.24083 6.11156C3.66083 5.83073 4.24667 5.83073 5.41667 5.83073Z",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const dt=z(it,[["render",ct]]),ut={},mt={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function pt(o,t){return e.openBlock(),e.createElementBlock("svg",mt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M8 3V5.2225M8 5.2225V10.7775M8 5.2225L9.875 4.25M8 5.2225L6.125 4.25M8 10.7775V13M8 10.7775L6.125 11.75M8 10.7775L9.875 11.75M13 8H10.7775M10.7775 8H5.2225M10.7775 8L11.75 9.875M10.7775 8L11.75 6.125M5.2225 8H3M5.2225 8L4.25 6.125M5.2225 8L4.25 9.875",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M12 14.7143L13.1151 15.6701C13.3268 15.8515 13.646 15.8247 13.8246 15.6105L16 13",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1)]))}const ht=z(ut,[["render",pt]]),ft={},vt={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function gt(o,t){return e.openBlock(),e.createElementBlock("svg",vt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M8 3V5.2225M8 5.2225V10.7775M8 5.2225L9.875 4.25M8 5.2225L6.125 4.25M8 10.7775V13M8 10.7775L6.125 11.75M8 10.7775L9.875 11.75M13 8H10.7775M10.7775 8H5.2225M10.7775 8L11.75 9.875M10.7775 8L11.75 6.125M5.2225 8H3M5.2225 8L4.25 6.125M5.2225 8L4.25 9.875",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M13 16L14.5 14.5M16 13L14.5 14.5M14.5 14.5L13 13M14.5 14.5L16 16",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round"},null,-1)]))}const kt=z(ft,[["render",gt]]),_t={},Ct={xmlns:"http://www.w3.org/2000/svg",width:"60",height:"60",viewBox:"0 0 60 60",fill:"none"};function wt(o,t){return e.openBlock(),e.createElementBlock("svg",Ct,t[0]||(t[0]=[e.createElementVNode("path",{d:"M24.195 7H18.625C17.1332 7 15.7024 7.59263 14.6475 8.64752C13.5926 9.70242 13 11.1332 13 12.625V46.375C13 47.8668 13.5926 49.2976 14.6475 50.3525C15.7024 51.4074 17.1332 52 18.625 52H41.125C42.6168 52 44.0476 51.4074 45.1025 50.3525C46.1574 49.2976 46.75 47.8668 46.75 46.375V29.5M24.195 7C27.3025 7 29.875 9.5175 29.875 12.625V18.25C29.875 19.7418 30.4676 21.1726 31.5225 22.2275C32.5774 23.2824 34.0082 23.875 35.5 23.875H41.125C42.6168 23.875 44.0476 24.4676 45.1025 25.5225C46.1574 26.5774 46.75 28.0082 46.75 29.5M24.195 7C33.42 7 46.75 20.4 46.75 29.5",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const bt=z(_t,[["render",wt]]),yt={},Bt={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Et(o,t){return e.openBlock(),e.createElementBlock("svg",Bt,t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.99479 8.75521C6.55276 8.75521 6.12884 8.57961 5.81628 8.26705C5.50372 7.95449 5.32812 7.53057 5.32812 7.08854C5.32812 6.64651 5.50372 6.22259 5.81628 5.91003C6.12884 5.59747 6.55276 5.42187 6.99479 5.42188C7.43682 5.42187 7.86074 5.59747 8.1733 5.91003C8.48586 6.22259 8.66146 6.64651 8.66146 7.08854C8.66146 7.53057 8.48586 7.95449 8.1733 8.26705C7.86074 8.57961 7.43682 8.75521 6.99479 8.75521ZM6.99479 14.5885C6.55276 14.5885 6.12884 14.4129 5.81628 14.1004C5.50372 13.7878 5.32812 13.3639 5.32812 12.9219C5.32812 12.4798 5.50372 12.0559 5.81628 11.7434C6.12884 11.4308 6.55276 11.2552 6.99479 11.2552C7.43682 11.2552 7.86074 11.4308 8.1733 11.7434C8.48586 12.0559 8.66146 12.4798 8.66146 12.9219C8.66146 13.3639 8.48586 13.7878 8.1733 14.1004C7.86074 14.4129 7.43682 14.5885 6.99479 14.5885Z",fill:"currentColor"},null,-1),e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M12.9948 8.75521C12.5528 8.75521 12.1288 8.57961 11.8163 8.26705C11.5037 7.95449 11.3281 7.53057 11.3281 7.08854C11.3281 6.64651 11.5037 6.22259 11.8163 5.91003C12.1288 5.59747 12.5528 5.42187 12.9948 5.42188C13.4368 5.42187 13.8607 5.59747 14.1733 5.91003C14.4859 6.22259 14.6615 6.64651 14.6615 7.08854C14.6615 7.53057 14.4859 7.95449 14.1733 8.26705C13.8607 8.57961 13.4368 8.75521 12.9948 8.75521ZM12.9948 14.5885C12.5528 14.5885 12.1288 14.4129 11.8163 14.1004C11.5037 13.7878 11.3281 13.3639 11.3281 12.9219C11.3281 12.4798 11.5037 12.0559 11.8163 11.7434C12.1288 11.4308 12.5528 11.2552 12.9948 11.2552C13.4368 11.2552 13.8607 11.4308 14.1733 11.7434C14.4859 12.0559 14.6615 12.4798 14.6615 12.9219C14.6615 13.3639 14.4859 13.7878 14.1733 14.1004C13.8607 14.4129 13.4368 14.5885 12.9948 14.5885Z",fill:"currentColor"},null,-1)]))}const xt=z(yt,[["render",Et]]),Vt={},Mt={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function St(o,t){return e.openBlock(),e.createElementBlock("svg",Mt,t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M10.1667 5.83333C9.72464 5.83333 9.30072 5.65774 8.98816 5.34518C8.67559 5.03262 8.5 4.60869 8.5 4.16667C8.5 3.72464 8.67559 3.30072 8.98816 2.98816C9.30072 2.67559 9.72464 2.5 10.1667 2.5C10.6087 2.5 11.0326 2.67559 11.3452 2.98816C11.6577 3.30072 11.8333 3.72464 11.8333 4.16667C11.8333 4.60869 11.6577 5.03262 11.3452 5.34518C11.0326 5.65774 10.6087 5.83333 10.1667 5.83333ZM10.1667 11.6667C9.72464 11.6667 9.30072 11.4911 8.98816 11.1785C8.67559 10.8659 8.5 10.442 8.5 10C8.5 9.55797 8.67559 9.13405 8.98816 8.82149C9.30072 8.50893 9.72464 8.33333 10.1667 8.33333C10.6087 8.33333 11.0326 8.50893 11.3452 8.82149C11.6577 9.13405 11.8333 9.55797 11.8333 10C11.8333 10.442 11.6577 10.8659 11.3452 11.1785C11.0326 11.4911 10.6087 11.6667 10.1667 11.6667ZM10.1667 17.5C9.72464 17.5 9.30072 17.3244 8.98816 17.0118C8.67559 16.6993 8.5 16.2754 8.5 15.8333C8.5 15.3913 8.67559 14.9674 8.98816 14.6548C9.30072 14.3423 9.72464 14.1667 10.1667 14.1667C10.6087 14.1667 11.0326 14.3423 11.3452 14.6548C11.6577 14.9674 11.8333 15.3913 11.8333 15.8333C11.8333 16.2754 11.6577 16.6993 11.3452 17.0118C11.0326 17.3244 10.6087 17.5 10.1667 17.5Z",fill:"currentColor"},null,-1)]))}const Lt=z(Vt,[["render",St]]),$t={},Nt={width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function zt(o,t){return e.openBlock(),e.createElementBlock("svg",Nt,t[0]||(t[0]=[e.createElementVNode("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.33333 9.83333C6.33333 10.2754 6.15774 10.6993 5.84518 11.0118C5.53262 11.3244 5.10869 11.5 4.66667 11.5C4.22464 11.5 3.80072 11.3244 3.48816 11.0118C3.17559 10.6993 3 10.2754 3 9.83333C3 9.39131 3.17559 8.96738 3.48816 8.65482C3.80072 8.34226 4.22464 8.16667 4.66667 8.16667C5.10869 8.16667 5.53262 8.34226 5.84518 8.65482C6.15774 8.96738 6.33333 9.39131 6.33333 9.83333ZM12.1667 9.83333C12.1667 10.2754 11.9911 10.6993 11.6785 11.0118C11.3659 11.3244 10.942 11.5 10.5 11.5C10.058 11.5 9.63405 11.3244 9.32149 11.0118C9.00893 10.6993 8.83333 10.2754 8.83333 9.83333C8.83333 9.39131 9.00893 8.96738 9.32149 8.65482C9.63405 8.34226 10.058 8.16667 10.5 8.16667C10.942 8.16667 11.3659 8.34226 11.6785 8.65482C11.9911 8.96738 12.1667 9.39131 12.1667 9.83333ZM18 9.83333C18 10.2754 17.8244 10.6993 17.5118 11.0118C17.1993 11.3244 16.7754 11.5 16.3333 11.5C15.8913 11.5 15.4674 11.3244 15.1548 11.0118C14.8423 10.6993 14.6667 10.2754 14.6667 9.83333C14.6667 9.39131 14.8423 8.96738 15.1548 8.65482C15.4674 8.34226 15.8913 8.16667 16.3333 8.16667C16.7754 8.16667 17.1993 8.34226 17.5118 8.65482C17.8244 8.96738 18 9.39131 18 9.83333Z",fill:"currentColor"},null,-1)]))}const It=z($t,[["render",zt]]),Tt={},Rt={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Dt(o,t){return e.openBlock(),e.createElementBlock("svg",Rt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M6 14L10 10M10 10L14 6M10 10L6 6M10 10L14 14",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Ht=z(Tt,[["render",Dt]]),Wt={},Pt={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function At(o,t){return e.openBlock(),e.createElementBlock("svg",Pt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M9.31732 16.8976L7.50065 17.5026V10.4193L3.76732 6.3126C3.48852 6.00588 3.33403 5.60627 3.33398 5.19177V3.33594H16.6673V5.14594C16.6672 5.58793 16.4916 6.01178 16.179 6.32427L12.5007 10.0026V12.5026M12.5007 15.8359L14.1673 17.5026L17.5007 14.1693",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Ot=z(Wt,[["render",At]]),jt={},Ft={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Zt(o,t){return e.openBlock(),e.createElementBlock("svg",Ft,t[0]||(t[0]=[e.createElementVNode("path",{d:"M11.4657 16.1809L7.50065 17.5026V10.4193L3.76732 6.3126C3.48852 6.00588 3.33403 5.60627 3.33398 5.19177V3.33594H16.6673V5.14594C16.6672 5.58793 16.4916 6.01178 16.179 6.32427L12.5007 10.0026V11.2526M18.334 18.3359L14.1673 14.1693M14.1673 18.3359L18.334 14.1693",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const Ut=z(jt,[["render",Zt]]),Yt={},Xt={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Kt(o,t){return e.openBlock(),e.createElementBlock("svg",Xt,t[0]||(t[0]=[e.createElementVNode("path",{d:"M9.4676 15.1809L5.5026 16.5026V9.41927L1.76927 5.3126C1.49048 5.00588 1.33598 4.60627 1.33594 4.19177V2.33594H14.6693V4.14594C14.6692 4.58793 14.4935 5.01178 14.1809 5.32427L10.5026 9.0026V10.2526",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M15.5 16.6591L13.857 17.9057C13.7756 17.9719 13.6868 18.0032 13.5906 17.9997C13.4944 17.9962 13.4093 17.9685 13.3353 17.9167C13.2613 17.865 13.204 17.7951 13.1635 17.7071C13.1229 17.6192 13.121 17.5236 13.1577 17.4203L13.7904 15.3795L12.1808 14.2433C12.092 14.1844 12.0365 14.1072 12.0143 14.0116C11.9921 13.916 11.9958 13.8277 12.0254 13.7468C12.055 13.6659 12.1068 13.5942 12.1808 13.5315C12.2548 13.4688 12.3436 13.4377 12.4472 13.438H14.4343L15.0782 11.3199C15.1152 11.217 15.1726 11.1378 15.2504 11.0825C15.3283 11.0272 15.4115 10.9997 15.5 11C15.5885 11.0003 15.6718 11.0279 15.75 11.083C15.8281 11.138 15.8854 11.217 15.9218 11.3199L16.5657 13.438H18.5528C18.6564 13.438 18.7452 13.4693 18.8192 13.5319C18.8932 13.5946 18.945 13.6662 18.9746 13.7468C19.0042 13.8274 19.0079 13.9157 18.9857 14.0116C18.9635 14.1075 18.908 14.1847 18.8192 14.2433L17.2096 15.3795L17.8423 17.4203C17.8793 17.5233 17.8775 17.6189 17.837 17.7071C17.7964 17.7954 17.739 17.8653 17.6647 17.9167C17.5904 17.9682 17.5053 17.9959 17.4094 17.9997C17.3135 18.0035 17.2247 17.9722 17.143 17.9057L15.5 16.6591Z",stroke:"currentColor","stroke-width":"1.5"},null,-1)]))}const qt=z(Yt,[["render",Kt]]),Gt={},Jt={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Qt(o,t){return e.openBlock(),e.createElementBlock("svg",Jt,t[0]||(t[0]=[e.createStaticVNode('<path d="M10.5 5.5H17.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path><path d="M10.5 10H17.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path><path d="M10.5 15H17.5" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"></path><path d="M3 15.083L4.042 16.125L7.167 13" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path><path d="M3 6.083L4.042 7.125L7.167 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"></path>',5)]))}const eo=z(Gt,[["render",Qt]]),to={},oo={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function no(o,t){return e.openBlock(),e.createElementBlock("svg",oo,t[0]||(t[0]=[e.createElementVNode("path",{d:"M16.6673 5.83594L6.66732 5.83594M16.6673 5.83594L13.7507 8.7526M16.6673 5.83594L13.7507 2.91927M14.1673 14.1693L3.33398 14.1693M3.33398 14.1693L6.25065 17.0859M3.33398 14.1693L6.25065 11.2526",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const lo=z(to,[["render",no]]),ro={},so={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function io(o,t){return e.openBlock(),e.createElementBlock("svg",so,t[0]||(t[0]=[e.createElementVNode("path",{d:"M11.1667 10.9167V9.66667L14.845 5.98833C15.1576 5.67585 15.3332 5.25199 15.3333 4.81V3H2V4.85583C2.00004 5.27033 2.15454 5.66994 2.43333 5.97667L6.16667 10.0833V17.1667C6.16667 17.1667 7.37495 16.7639 8.14917 16.5058",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M15.4116 11.3639L11.4924 15.283C11.4138 15.3616 11.3636 15.4642 11.3498 15.5746L11.0994 17.5789C11.059 17.9025 11.3341 18.1776 11.6577 18.1371L13.6622 17.8861C13.7725 17.8722 13.8751 17.8221 13.9537 17.7435L17.8724 13.8248C18.0676 13.6296 18.0676 13.313 17.8724 13.1177L16.1187 11.364C15.9234 11.1687 15.6068 11.1687 15.4116 11.3639Z",stroke:"currentColor","stroke-width":"1.5"},null,-1),e.createElementVNode("path",{d:"M14 12L16.4608 14.4608",stroke:"currentColor","stroke-width":"1.5"},null,-1)]))}const ao=z(ro,[["render",io]]),co={},uo={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function mo(o,t){return e.openBlock(),e.createElementBlock("svg",uo,t[0]||(t[0]=[e.createElementVNode("path",{d:"M6.2832 15.8359H3.3332C3.11222 15.8359 2.90029 15.7482 2.74404 15.5919C2.58778 15.4356 2.5 15.2237 2.5 15.0027V4.16954C2.49995 4.06009 2.52146 3.9517 2.56331 3.85056C2.60516 3.74943 2.66652 3.65753 2.7439 3.58012C2.82127 3.50271 2.91314 3.4413 3.01426 3.3994C3.11537 3.3575 3.22375 3.33594 3.3332 3.33594H16.6668C16.7763 3.33594 16.8846 3.3575 16.9857 3.3994C17.0869 3.4413 17.1787 3.50271 17.2561 3.58012C17.3335 3.65753 17.3948 3.74943 17.4367 3.85056C17.4785 3.9517 17.5001 4.06009 17.5 4.16954V15.0027C17.5 15.2237 17.4122 15.4356 17.256 15.5919C17.0997 15.7482 16.8878 15.8359 16.6668 15.8359H5.38347",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M6.66406 2.5V5M13.3305 2.5V5M8.33046 10.8332L9.16406 11.6668L11.6641 9.1668",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const po=z(co,[["render",mo]]),ho={},fo={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function vo(o,t){return e.openBlock(),e.createElementBlock("svg",fo,t[0]||(t[0]=[e.createStaticVNode('<circle cx="4.5" cy="12.5" r="1.5" stroke="currentColor" stroke-width="1.5"></circle><circle cx="9.5" cy="8.5" r="1.5" transform="rotate(-180 9.5 8.5)" stroke="currentColor" stroke-width="1.5"></circle><circle cx="14.5" cy="12.5" r="1.5" stroke="currentColor" stroke-width="1.5"></circle><path d="M4.55469 10.5V2" stroke="currentColor" stroke-width="1.5"></path><path d="M9.44531 9.5L9.44531 18" stroke="currentColor" stroke-width="1.5"></path><path d="M14.5547 10.5V2" stroke="currentColor" stroke-width="1.5"></path><path d="M4.55469 18V15.5" stroke="currentColor" stroke-width="1.5"></path><path d="M9.44531 2L9.44531 5.5" stroke="currentColor" stroke-width="1.5"></path><path d="M14.5547 18V15.5" stroke="currentColor" stroke-width="1.5"></path>',9)]))}const go=z(ho,[["render",vo]]),ko={},_o={width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg"};function Co(o,t){return e.openBlock(),e.createElementBlock("svg",_o,t[0]||(t[0]=[e.createElementVNode("path",{d:"M9.4676 15.1809L5.5026 16.5026V9.41927L1.76927 5.3126C1.49048 5.00588 1.33598 4.60627 1.33594 4.19177V2.33594H14.6693V4.14594C14.6692 4.58793 14.4935 5.01178 14.1809 5.32427L10.5026 9.0026V10.2526",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M16 16.8926V11M13.0537 13.9463H18.9463",stroke:"currentColor","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]))}const wo=z(ko,[["render",Co]]),bo={arrowDown:Fe,arrowTop:Xe,arrowRight:ot,arrowLeft:st,arrowReload:Je,columnInsert:dt,freeze:ht,unfreeze:kt,columnsMove:xt,empty:bt,listBullet:Lt,listBulletHorizontal:It,close:Ht,filterSave:Ot,filterReset:Ut,filterNew:qt,filterMultiselect:eo,filterExchange:lo,filterEdit:ao,filterDateCheck:po,filterAdvanced:go,filterAdd:wo},j=e.defineComponent({__name:"VIcon",props:{name:{}},setup(o){const t=o,l=e.computed(()=>bo[t.name]);return(n,r)=>l.value?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(l.value),{key:0})):e.createCommentVNode("",!0)}}),yo={},Bo={class:"vt-loader"};function Eo(o,t){return e.openBlock(),e.createElementBlock("span",Bo)}const se=z(yo,[["render",Eo]]),xo=["disabled","type","data-placement"],Vo={key:2,class:"vt-button__content"},J=e.defineComponent({__name:"VButton",props:{type:{default:"default"},shape:{},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},icon:{},tooltip:{type:Boolean,default:!1},tooltipPlacement:{default:"top"},htmlType:{default:"button"}},emits:["click"],setup(o,{emit:t}){const l=o,n=t,r=e.useSlots(),s=e.computed(()=>!!(l.icon&&l.shape)),a=e.computed(()=>{var k,B;const i=r.default?r.default({}):null;return((B=(k=i==null?void 0:i[0])==null?void 0:k.children)==null?void 0:B.toString())??""}),d=e.computed(()=>["vt-button",`vt-button--${l.type}`,{[`vt-button--${l.shape}`]:l.shape,"vt-button--icon-only":s.value,"vt-button--disabled":l.disabled||l.loading,"vt-button--loading":l.loading}]),c=e.computed(()=>s.value&&l.tooltip?a.value:null),m=i=>{!l.disabled&&!l.loading&&n("click",i)};return(i,k)=>{const B=e.resolveDirective("tooltip");return e.withDirectives((e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(d.value),disabled:l.disabled||l.loading,type:l.htmlType,"data-placement":l.tooltipPlacement,onClick:m},[l.loading?(e.openBlock(),e.createBlock(se,{key:0,class:"vt-button__icon"})):l.icon?(e.openBlock(),e.createBlock(j,{key:1,name:l.icon,class:"vt-button__icon"},null,8,["name"])):e.createCommentVNode("",!0),s.value?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",Vo,[e.renderSlot(i.$slots,"default")]))],10,xo)),[[B,c.value]])}}}),Mo={key:0,class:"vt-modal__header"},So={key:0,class:"vt-modal__title"},Lo={class:"vt-modal__content"},ie=e.defineComponent({__name:"VModal",props:{modelValue:{type:Boolean},title:{},size:{default:"medium"},showCloseButton:{type:Boolean,default:!0},closeOnBackdropClick:{type:Boolean,default:!0},zIndex:{default:1e3}},emits:["update:modelValue","close"],setup(o,{emit:t}){const l=o,n=t,r=e.computed(()=>["vt-modal__container",`vt-modal__container--${l.size}`]),s=e.computed(()=>({zIndex:l.zIndex})),a=()=>{n("update:modelValue",!1),n("close")},d=()=>{l.closeOnBackdropClick&&a()};return(c,m)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[c.modelValue?(e.openBlock(),e.createElementBlock("div",{key:0,class:"vt-modal__backdrop",style:e.normalizeStyle(s.value),onClick:d},[e.createElementVNode("div",{class:e.normalizeClass(r.value),onClick:m[0]||(m[0]=e.withModifiers(()=>{},["stop"]))},[c.title||c.showCloseButton?(e.openBlock(),e.createElementBlock("div",Mo,[c.title?(e.openBlock(),e.createElementBlock("h2",So,e.toDisplayString(c.title),1)):e.createCommentVNode("",!0),c.showCloseButton?(e.openBlock(),e.createBlock(j,{key:1,name:"close",class:"vt-modal__close",onClick:a})):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",Lo,[e.renderSlot(c.$slots,"default")])],2)],4)):e.createCommentVNode("",!0)]))}}),$o={class:"vt-pagination"},No={class:"vt-pagination__info"},zo={class:"vt-pagination__rows-per-page"},Io=["value"],To={class:"vt-pagination__navigation"},Ro=["disabled"],Do=["onClick"],Ho=["disabled"],we=e.defineComponent({__name:"VPagination",props:{totalItems:{},pageSize:{default:10},currentPage:{default:1},pageSizeOptions:{default:()=>[5,10,20,50]},maxVisiblePages:{default:6}},emits:["update:currentPage","update:pageSize","pageChange","reloadData"],setup(o,{emit:t}){const l=o,n=t,r=e.computed({get:()=>l.currentPage,set:C=>n("update:currentPage",C)}),s=e.computed({get:()=>l.pageSize,set:C=>n("update:pageSize",C)}),a=e.computed(()=>Math.ceil(l.totalItems/s.value)),d=e.computed(()=>l.totalItems===0?0:(r.value-1)*s.value+1),c=e.computed(()=>Math.min(r.value*s.value,l.totalItems)),m=e.computed(()=>r.value<=1),i=e.computed(()=>r.value>=a.value),k=e.computed(()=>{const C=[],x=a.value,V=r.value,A=l.maxVisiblePages;if(x<=A)for(let O=1;O<=x;O++)C.push(O);else{C.push(1);const O=Math.max(2,V-Math.floor(A/2)),Z=Math.min(x-1,V+Math.floor(A/2));O>2&&C.push("...");for(let P=O;P<=Z;P++)C.push(P);Z<x-1&&C.push("..."),x>1&&C.push(x)}return C}),B=()=>{n("pageChange",{page:r.value,pageSize:s.value})},R=C=>{typeof C=="number"&&C!==r.value&&(r.value=C,B())},W=()=>{m.value||(r.value--,B())},D=()=>{i.value||(r.value++,B())},$=()=>{r.value=1,B()},I=()=>{n("reloadData",r.value)};return e.watch(()=>l.totalItems,()=>{r.value>a.value&&a.value>0&&(r.value=a.value,B())}),(C,x)=>(e.openBlock(),e.createElementBlock("div",$o,[e.createElementVNode("div",No,[e.createElementVNode("div",zo,[x[1]||(x[1]=e.createElementVNode("label",{for:"rowsSelect",class:"vt-pagination__label"},"Рядків на сторінку:",-1)),e.withDirectives(e.createElementVNode("select",{id:"rowsSelect","onUpdate:modelValue":x[0]||(x[0]=V=>s.value=V),onChange:$,class:"vt-pagination__select"},[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(C.pageSizeOptions,V=>(e.openBlock(),e.createElementBlock("option",{key:V,value:V},e.toDisplayString(V),9,Io))),128))],544),[[e.vModelSelect,s.value]])]),e.createElementVNode("span",null,e.toDisplayString(d.value)+" - "+e.toDisplayString(c.value)+" з "+e.toDisplayString(C.totalItems),1)]),e.createElementVNode("div",To,[e.createElementVNode("button",{onClick:W,disabled:m.value,class:e.normalizeClass({"vt-pagination__nav-button":!0,"has-items":!m.value})},[e.createVNode(j,{name:"arrowLeft"})],10,Ro),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(k.value,V=>(e.openBlock(),e.createElementBlock("button",{key:V,onClick:A=>R(V),class:e.normalizeClass(["vt-pagination__nav-button",{"vt-pagination__nav-button--active":V===r.value}])},e.toDisplayString(V),11,Do))),128)),e.createElementVNode("button",{onClick:D,disabled:i.value,class:e.normalizeClass({"vt-pagination__nav-button":!0,"has-items":!i.value})},[e.createVNode(j,{name:"arrowRight"})],10,Ho)]),e.createElementVNode("div",null,[e.createVNode(J,{icon:"arrowReload",shape:"circle",tooltip:"",tooltipPlacement:"left",onClick:I},{default:e.withCtx(()=>x[2]||(x[2]=[e.createTextVNode("Оновити дані ",-1)])),_:1,__:[2]})])]))}}),Wo=["for"],Po=["id","name","value","checked","disabled","required",".indeterminate"],q=e.defineComponent({__name:"VCheckbox",props:{modelValue:{type:Boolean,default:void 0},checked:{type:Boolean,default:!1},label:{},disabled:{type:Boolean,default:!1},id:{},name:{},value:{},indeterminate:{type:Boolean,default:!1},size:{default:"medium"},variant:{default:"primary"},required:{type:Boolean,default:!1},isDouble:{type:Boolean,default:!1}},emits:["update:modelValue","change","focus","blur"],setup(o,{emit:t}){const l=o,n=t,r=()=>`vt-checkbox-${Math.random().toString(36).substr(2,9)}`,s=e.computed(()=>l.id||r()),a=e.computed(()=>l.modelValue??l.checked),d=i=>{if(l.disabled)return;const B=i.target.checked;n("update:modelValue",B),n("change",B,i)},c=i=>{n("focus",i)},m=i=>{n("blur",i)};return(i,k)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["vt-checkbox",`vt-checkbox--${i.size}`,`vt-checkbox--${i.variant}`,{"vt-checkbox--disabled":i.disabled,"vt-checkbox--double":i.isDouble}]),for:s.value},[e.createElementVNode("input",{id:s.value,name:i.name,value:i.value,checked:a.value,disabled:i.disabled,required:i.required,".indeterminate":i.indeterminate,type:"checkbox",class:"vt-checkbox__input",onChange:d,onFocus:c,onBlur:m},null,40,Po),e.createElementVNode("div",{class:e.normalizeClass(["vt-checkbox__box",{"vt-checkbox__box--checked":a.value&&!i.indeterminate&&!i.isDouble,"vt-checkbox__box--indeterminate":i.indeterminate,"vt-checkbox__box--double":i.isDouble&&a.value,"vt-checkbox__box--disabled":i.disabled}])},[!i.indeterminate&&!i.isDouble?(e.openBlock(),e.createElementBlock("svg",{key:0,class:e.normalizeClass(["vt-checkbox__checkmark",{"vt-checkbox__checkmark--checked":a.value}]),width:"10",height:"9",viewBox:"0 0 10 9",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k[0]||(k[0]=[e.createElementVNode("path",{d:"M1 5L3.58264 7.58264C3.80112 7.80112 4.16348 7.77113 4.34306 7.51971L9 1",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round"},null,-1)]),2)):e.createCommentVNode("",!0),i.isDouble&&a.value?(e.openBlock(),e.createElementBlock("svg",{key:1,class:e.normalizeClass(["vt-checkbox__checkmark",{"vt-checkbox__checkmark--checked":a.value}]),width:"13",height:"6",viewBox:"0 0 13 6",fill:"none",xmlns:"http://www.w3.org/2000/svg"},k[1]||(k[1]=[e.createElementVNode("path",{d:"M6 3L8.25 5L12 1",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1),e.createElementVNode("path",{d:"M1 3L3.25 5L7 1",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"},null,-1)]),2)):e.createCommentVNode("",!0),i.indeterminate?(e.openBlock(),e.createElementBlock("div",{key:2,class:e.normalizeClass(["vt-checkbox__indeterminate-mark",{"vt-checkbox__indeterminate-mark--visible":i.indeterminate}])},null,2)):e.createCommentVNode("",!0)],2),i.label||i.$slots.label||i.$slots.default?(e.openBlock(),e.createElementBlock("span",{key:0,class:e.normalizeClass(["vt-checkbox__label",{"vt-checkbox__label--disabled":i.disabled}])},[e.renderSlot(i.$slots,"label",{},()=>[e.renderSlot(i.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(i.label),1)])])],2)):e.createCommentVNode("",!0)],10,Wo))}});function Ao(o){const t=e.computed(()=>[...o].sort((r,s)=>r.pinnedLeft&&!s.pinnedLeft?-1:!r.pinnedLeft&&s.pinnedLeft||r.pinnedRight&&!s.pinnedRight?1:!r.pinnedRight&&s.pinnedRight?-1:0)),l=()=>{const r=t.value.length,s=t.value.filter(i=>i.width||i.minWidth),a=s.reduce((i,k)=>i+(k.width||k.minWidth||0),0),d=r-s.length;if(d===0)return 150;const m=Math.max(800-a,d*80);return Math.max(Math.floor(m/d),120)};return{sortedColumns:t,getDefaultColumnWidth:l,getStickyOffset:(r,s,a=!1)=>{const d=t.value;let c=0;if(r==="left"){a&&(c+=50);for(let m=0;m<s;m++){const i=d[m];i.pinnedLeft&&(c+=i.width||i.minWidth||l())}}else for(let m=d.length-1;m>s;m--){const i=d[m];i.pinnedRight&&(c+=i.width||i.minWidth||l())}return c}}}function Oo(o){const t=()=>{const s={};return o.maxHeight&&(s.maxHeight=`${o.maxHeight}px`),s},l=(s,a,d,c)=>{const m={};if(s.width)m.width=`${s.width}px`,m.minWidth=`${s.width}px`,m.maxWidth=`${s.width}px`;else if(s.minWidth)m.minWidth=`${s.minWidth}px`,m.width=`${s.minWidth}px`,m.maxWidth="none";else{const i=c();m.width=`${i}px`,m.minWidth="80px",m.maxWidth="none"}return s.pinnedLeft?(m.position="sticky",m.left=`${d("left",a,o.selectable)}px`,m.zIndex="10"):s.pinnedRight&&(m.position="sticky",m.right=`${d("right",a,!1)}px`,m.zIndex="10"),m};return{getTableWrapperStyle:t,getColumnStyle:l,getHeaderStyle:(s,a,d,c)=>{const m=l(s,a,d,c);return o.maxHeight&&(m.position="sticky",m.top="0",s.pinnedLeft||s.pinnedRight?m.zIndex="12":m.zIndex="11"),m},getFooterStyle:(s,a,d,c)=>{const m=l(s,a,d,c);return o.maxHeight&&(m.position="sticky",m.bottom="0",s.pinnedLeft||s.pinnedRight?m.zIndex="12":m.zIndex="11"),m}}}function jo(){const o=e.ref({resizingCol:null,startX:0,startWidth:0}),t=`url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20'><path d='M5 13L2 10L5 7' stroke='%23828282' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M15 7L18 10L15 13' stroke='%23828282' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M10 3L10 17' stroke='%23828282' stroke-width='3' stroke-linecap='round'/></svg>") 10 10, col-resize`;return{onMouseDown:(n,r,s,a)=>{n.preventDefault(),n.stopPropagation(),o.value.resizingCol=r,o.value.startX=n.clientX,o.value.startWidth=r.width||r.minWidth||s(r.prop);const d=m=>{const{resizingCol:i,startX:k,startWidth:B}=o.value;if(!i)return;document.querySelectorAll(`[data-resizer="${i.prop}"]`).forEach(I=>{I.classList.add("vt-table__resizer--active")});const R=m.clientX-k,W=i.minWidth||50,D=i.maxWidth||1e3,$=Math.max(Math.min(B+R,D),W);i.width=$},c=()=>{const{resizingCol:m}=o.value;document.removeEventListener("mousemove",d),document.removeEventListener("mouseup",c),document.body.style.cursor="",document.body.style.userSelect="",document.body.classList.remove("vt-table-resizing"),m&&(document.querySelectorAll(`[data-resizer="${m.prop}"]`).forEach(i=>{i.classList.remove("vt-table__resizer--active")}),a&&m.width&&a(m.width)),o.value.resizingCol=null};document.addEventListener("mousemove",d),document.addEventListener("mouseup",c),document.body.style.cursor=t,document.body.style.userSelect="none",document.body.classList.add("vt-table-resizing")},resizeState:o}}function Fo(o,t,l,n){var U;const r=o.selectionKey||"id",s=e.ref([]),a=e.ref(null),d=e.ref(!1);(U=o.defaultSelection)!=null&&U.length&&(s.value=[...o.defaultSelection]);const c=_=>_[r],m=_=>d.value?!0:s.value.some(p=>c(p)===c(_)),i=e.computed(()=>t.value.filter(_=>m(_)).length),k=e.computed(()=>t.value.length>0&&i.value===t.value.length),B=e.computed(()=>{if(d.value)return!1;const _=i.value;return _>0&&_<t.value.length}),R=e.computed(()=>d.value?!0:k.value&&!B.value),W=e.computed(()=>d.value),D=(_,p)=>{const w=c(_),y=s.value.some(f=>c(f)===c(_)),u=p!==void 0?p:!y;if(d.value&&!u){d.value=!1,n!=null&&n.value&&(s.value=n.value.filter(f=>c(f)!==w)),P(_,!1);return}d.value&&u||(u&&!y?s.value.push(_):!u&&y&&(s.value=s.value.filter(f=>c(f)!==w)),o.selectOnClickRow&&p===void 0&&A(u?_:null),P(_,u))},$=()=>{switch(I()){case"none":case"partial":C();break;case"allVisible":x();break;case"absoluteAll":V();break}},I=()=>d.value?"absoluteAll":k.value?"allVisible":i.value>0?"partial":"none",C=()=>{const _=[],p=new Set(s.value.map(w=>c(w)));s.value.forEach(w=>{_.push(w)}),t.value.forEach(w=>{p.has(c(w))||_.push(w)}),s.value=_,d.value=!1,P()},x=()=>{d.value=!0,n!=null&&n.value?s.value=[...n.value]:s.value=[...t.value],P(void 0,void 0,!0)},V=()=>{s.value=[],d.value=!1,a.value=null,P()},A=_=>{const p=a.value;a.value=_,l("current-change",{currentRow:a.value,oldCurrentRow:p})},O=()=>[...s.value],Z=_=>{s.value=[..._],d.value=!1,P()},P=(_,p,w=!1)=>{const y={selection:[...s.value],row:_,selected:p,isAllSelected:w||d.value};l("selection-change",y)};return e.watch(()=>o.defaultSelection,_=>{_!=null&&_.length&&(s.value=[..._])}),{selectedRows:s,currentRow:a,isRowSelected:m,isAllSelected:R,isIndeterminate:B,isDoubleCheck:W,isFullSelection:d,toggleRowSelection:D,toggleAllSelection:$,clearSelection:V,setCurrentRow:A,getSelectionRows:O,setSelectionRows:Z,selectAbsolutelyAll:x}}function Zo(o,t){if(!o)return String(t.value??"");try{const l=o(t);return l}catch(l){return console.error("Error rendering table slot:",l),String(t.value??"")}}const Uo=(o,t,l="asc")=>{if(o==null&&t==null)return 0;if(o==null)return l==="asc"?1:-1;if(t==null)return l==="asc"?-1:1;if(o===t)return 0;let n=0;const r=Number(o),s=Number(t);return!isNaN(r)&&!isNaN(s)?n=r-s:he(o)&&he(t)?n=new Date(o).getTime()-new Date(t).getTime():typeof o=="boolean"&&typeof t=="boolean"?n=o===t?0:o?-1:1:n=String(o).localeCompare(String(t),void 0,{numeric:!0,sensitivity:"base"}),l==="desc"?-n:n},he=o=>o instanceof Date?!isNaN(o.getTime()):typeof o=="string"&&/\d{4}-\d{2}-\d{2}|\//.test(o)?!isNaN(new Date(o).getTime()):!1,Yo=(o,t,l)=>{o.sortable&&l({prop:o.prop,direction:t})},fe=(o,t)=>{const l=(t==null?void 0:t.prop)===o.prop,n=t==null?void 0:t.direction;return{asc:["vt-th__sort-icon",l&&n==="asc"&&"vt-th__sortable-active"].filter(Boolean).join(" "),desc:["vt-th__sort-icon",l&&n==="desc"&&"vt-th__sortable-active"].filter(Boolean).join(" ")}},Xo=(o,t,l)=>{if(!t)return[...o];const n=l.find(s=>s.prop===t.prop);if(!(n!=null&&n.sortable))return[...o];const r=n.sortMethod||Uo;return[...o].sort((s,a)=>{const d=s[n.prop],c=a[n.prop];return r(d,c,t.direction)})},ae=Symbol("dropdown-context"),ce=e.defineComponent({__name:"VDropdown",props:{trigger:{default:"hover"},placement:{default:"bottom-start"},disabled:{type:Boolean,default:!1},splitButton:{type:Boolean,default:!1},hideOnClick:{type:Boolean,default:!0},showTimeout:{default:250},hideTimeout:{default:150},tabindex:{default:0}},emits:["visible-change","click","command"],setup(o,{expose:t,emit:l}){const n=o,r=l,s=e.ref(),a=e.ref(),d=e.ref(),c=e.ref(!1),m=e.ref(null),i=e.ref([]),k=e.ref({position:"absolute",top:"0px",left:"0px",zIndex:2e3,transformOrigin:"center top"});e.useSlots();const B=p=>{const w=[];let y=p.parentElement;for(;y&&y!==document.body;){const u=window.getComputedStyle(y),f=u.overflowY,g=u.overflowX;(["scroll","auto"].includes(f)||["scroll","auto"].includes(g)||y.scrollHeight>y.clientHeight||y.scrollWidth>y.clientWidth)&&w.push(y),y=y.parentElement}return w.push(window),w},R=async()=>{if(await e.nextTick(),!a.value||!d.value)return;const p=a.value.getBoundingClientRect(),w=d.value.getBoundingClientRect();let y=0,u=0;switch(n.placement){case"bottom":y=p.bottom+window.scrollY+5,u=p.left+window.scrollX+(p.width-w.width)/2;break;case"bottom-start":y=p.bottom+window.scrollY+5,u=p.left+window.scrollX;break;case"bottom-end":y=p.bottom+window.scrollY+5,u=p.right+window.scrollX-w.width;break;case"top":y=p.top+window.scrollY-w.height-5,u=p.left+window.scrollX+(p.width-w.width)/2;break;case"top-start":y=p.top+window.scrollY-w.height-5,u=p.left+window.scrollX;break;case"top-end":y=p.top+window.scrollY-w.height-5,u=p.right+window.scrollX-w.width;break}u+w.width>window.innerWidth&&(u=window.innerWidth-w.width-10),u<10&&(u=10),y+w.height>window.innerHeight+window.scrollY&&(y=p.top+window.scrollY-w.height-5),y<window.scrollY+10&&(y=window.scrollY+10),k.value.top=`${y}px`,k.value.left=`${u}px`},W=()=>{a.value&&(i.value=B(a.value),i.value.forEach(p=>{p.addEventListener("scroll",_,{passive:!0})}),window.addEventListener("resize",_))},D=()=>{i.value.forEach(p=>{p.removeEventListener("scroll",_)}),window.removeEventListener("resize",_),i.value=[]},$=()=>{n.disabled||c.value||(C(),m.value=window.setTimeout(async()=>{c.value=!0,await R(),W(),r("visible-change",!0)},n.trigger==="hover"?n.showTimeout:0))},I=()=>{c.value&&(C(),m.value=window.setTimeout(()=>{c.value=!1,D(),r("visible-change",!1)},n.trigger==="hover"?n.hideTimeout:0))},C=()=>{m.value&&(window.clearTimeout(m.value),m.value=null)},x=p=>{console.log("VDropdown handleCommand called:",p),r("command",p),n.hideOnClick&&I()};e.provide(ae,{handleCommand:x,hideOnClick:n.hideOnClick});const V=p=>{n.disabled||(console.log("VDropdown click triggered"),r("click",p),n.trigger==="click"&&(c.value?I():$()))},A=()=>{n.trigger==="hover"&&$()},O=()=>{n.trigger==="hover"&&I()},Z=()=>{n.trigger==="hover"&&C()},P=()=>{n.trigger==="hover"&&I()},U=p=>{var y,u;if(!c.value)return;const w=p.target;(y=s.value)!=null&&y.contains(w)||(u=d.value)!=null&&u.contains(w)||I()},_=()=>{c.value&&R()};return t({show:$,hide:I,visible:c}),e.onMounted(()=>{document.addEventListener("click",U)}),e.onUnmounted(()=>{document.removeEventListener("click",U),D(),C()}),(p,w)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:s,class:"vt-dropdown",onClick:V,onMouseenter:A,onMouseleave:O},[e.createElementVNode("div",{ref_key:"triggerRef",ref:a,class:"vt-dropdown__trigger"},[e.renderSlot(p.$slots,"default")],512),c.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createElementVNode("div",{ref_key:"menuRef",ref:d,style:e.normalizeStyle(k.value),class:"vt-dropdown-menu",onMouseenter:Z,onMouseleave:P,onClick:w[0]||(w[0]=e.withModifiers(()=>{},["stop"]))},[e.renderSlot(p.$slots,"dropdown")],36)])):e.createCommentVNode("",!0)],544))}}),ee=e.defineComponent({__name:"VDropdownItem",props:{command:{},disabled:{type:Boolean},divided:{type:Boolean},icon:{}},emits:["click"],setup(o,{emit:t}){const l=o,n=t,r=e.inject(ae);r||console.warn("VDropdownItem must be used within VDropdown");const s=a=>{l.disabled||(console.log("VDropdownItem click:",l.command),n("click",a),l.command!==void 0&&r&&(console.log("Calling handleCommand with:",l.command),r.handleCommand(l.command)))};return(a,d)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["vt-dropdown-item",{"is-disabled":a.disabled,"vt-dropdown-item--divided":a.divided}]),onClick:s},[a.icon?(e.openBlock(),e.createElementBlock("i",{key:0,class:e.normalizeClass([a.icon,"vt-dropdown-item__icon"])},null,2)):e.createCommentVNode("",!0),e.renderSlot(a.$slots,"default")],2))}});class Ko{constructor(){this.modalStack=[],this.baseZIndex=1e3}open(t={}){const l=`modal-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,n=document.createElement("div");n.setAttribute("data-vt-modal",l),document.body.appendChild(n);const r=e.ref(!0),s=this.baseZIndex+this.modalStack.length*10,a=e.createApp({setup(){const c=()=>{r.value=!1,setTimeout(()=>{X.closeById(l)},100)};return()=>e.h(ie,{modelValue:r.value,"onUpdate:modelValue":c,title:t.title,size:t.size||"medium",showCloseButton:t.showCloseButton!==!1,closeOnBackdropClick:t.closeOnBackdropClick!==!1,onClose:c,zIndex:s},{default:()=>t.component?e.h(t.component,t.props||{}):t.content?e.h("div",{innerHTML:t.content}):null})}});a.mount(n);const d={id:l,app:a,container:n,isOpen:r};return this.modalStack.push(d),l}close(){if(this.modalStack.length>0){const t=this.modalStack[this.modalStack.length-1];this.closeById(t.id)}}closeById(t){const l=this.modalStack.findIndex(n=>n.id===t);if(l!==-1){const n=this.modalStack[l];this.cleanupModal(n),this.modalStack.splice(l,1),this.recalculateZIndices()}}closeAll(){for(;this.modalStack.length>0;){const t=this.modalStack.pop();t&&this.cleanupModal(t)}}getOpenModalsCount(){return this.modalStack.length}cleanupModal(t){t.app&&t.app.unmount(),t.container&&t.container.parentNode&&document.body.removeChild(t.container)}recalculateZIndices(){}}const X=new Ko,be={install(o){o.config.globalProperties.$modal=X,o.config.globalProperties.$modalStack={closeAll:()=>X.closeAll(),getCount:()=>X.getOpenModalsCount(),closeById:t=>X.closeById(t)}}},qo={class:"vt-columns-selector-body"},Go={class:"vt-columns-selector"},Jo={class:"vt-columns-selector__panel"},Qo=["draggable","onDragstart","onDragover","onDrop"],en={key:0,class:"vt-columns-selector__panel-item-pinned"},tn={class:"vt-columns-selector__available"},on=["onClick"],nn={key:0,class:"vt-columns-selector__group-columns"},ln={key:0,class:"vt-columns-selector__pinned-note"},rn={class:"vt-modal__content-button"},sn=e.defineComponent({__name:"VTableColumnSelector",props:{columns:{},columnsSelector:{default:()=>[]}},emits:["update-columns"],setup(o,{emit:t}){const l=o,n=t,r=e.ref([]),s=e.ref(new Set),a=e.ref(-1),d=e.ref(-1),c=e.ref("before"),m=e.computed(()=>{const u={};return l.columnsSelector.forEach(f=>{if(f.name==="removed")return;const g=f.columns.map(S=>S.prop),E=r.value.filter(S=>g.includes(S.prop));E.length===0?u[f.name]={checked:!1,indeterminate:!1}:E.length===f.columns.length?u[f.name]={checked:!0,indeterminate:!1}:u[f.name]={checked:!1,indeterminate:!0}}),u}),i=e.computed(()=>l.columnsSelector.filter(u=>u.name!=="removed")),k=u=>u.pinnedLeft||u.pinnedRight,B=u=>!k(u),R=()=>{const u=r.value;let f=-1;for(let E=0;E<u.length;E++)u[E].pinnedLeft&&(f=E);let g=u.length;for(let E=0;E<u.length;E++)if(u[E].pinnedRight){g=E;break}return{minIndex:f+1,maxIndex:g-1}},W=u=>{const f=R();return!(u<f.minIndex||u>f.maxIndex+1)},D=(u,f)=>{const g=r.value[f];if(!B(g)){u.preventDefault();return}a.value=f,u.dataTransfer&&(u.dataTransfer.effectAllowed="move",u.dataTransfer.setData("text/plain",g.prop)),document.body.style.cursor="grabbing"},$=(u,f)=>{if(a.value===-1)return;u.preventDefault();const g=u.currentTarget.getBoundingClientRect(),E=u.clientY,S=g.top+g.height/2;let L=f,F="before";E<S?(L=f,F="before"):(L=f+1,F="after"),a.value<L&&L--,W(L)?(d.value=f,c.value=F,u.dataTransfer.dropEffect="move"):(d.value=-1,u.dataTransfer.dropEffect="none")},I=()=>{setTimeout(()=>{a.value===-1&&(d.value=-1)},50)},C=(u,f)=>{if(u.preventDefault(),a.value===-1||d.value===-1){V();return}const g=u.currentTarget.getBoundingClientRect(),E=u.clientY,S=g.top+g.height/2;let L=f;if(E>=S&&(L=f+1),a.value<L&&L--,!W(L)||L===a.value){V();return}const F=[...r.value],[te]=F.splice(a.value,1);F.splice(L,0,te),r.value=F,V()},x=()=>{V()},V=()=>{a.value=-1,d.value=-1,c.value="before",document.body.style.cursor=""},A=u=>{const f=["vt-columns-selector__panel-item"];return a.value===u&&f.push("vt-columns-selector__panel-item--dragging"),d.value===u&&c.value==="before"&&f.push("vt-columns-selector__panel-item--drop-before"),d.value===u&&c.value==="after"&&f.push("vt-columns-selector__panel-item--drop-after"),f},O=()=>{r.value=[...l.columns.map(u=>({...u}))],l.columnsSelector.forEach(u=>{u.name!=="removed"&&s.value.add(u.name)})},Z=(u,f)=>{if(f)r.value.some(g=>g.prop===u.prop)||r.value.push({...u});else{if(k(u))return;r.value=r.value.filter(g=>g.prop!==u.prop)}},P=(u,f)=>{if(f)u.columns.forEach(g=>{r.value.some(E=>E.prop===g.prop)||r.value.push({...g})});else{const g=[];u.columns.forEach(E=>{const S=r.value.find(L=>L.prop===E.prop);S&&!k(S)&&g.push(S)}),r.value=r.value.filter(E=>!g.some(S=>S.prop===E.prop))}},U=u=>r.value.some(f=>f.prop===u.prop),_=u=>{const f=r.value.find(g=>g.prop===u.prop);return!f||!k(f)},p=u=>{s.value.has(u)?s.value.delete(u):s.value.add(u)},w=()=>{n("update-columns",[...r.value]),X.close()},y=()=>{X.close()};return e.onMounted(()=>{O()}),(u,f)=>(e.openBlock(),e.createElementBlock("div",qo,[e.createElementVNode("div",Go,[e.createElementVNode("div",Jo,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(r.value,(g,E)=>(e.openBlock(),e.createElementBlock("div",{key:g.prop,class:e.normalizeClass(A(E)),draggable:B(g),onDragstart:S=>D(S,E),onDragover:S=>$(S,E),onDragleave:I,onDrop:S=>C(S,E),onDragend:x},[e.createVNode(j,{name:B(g)?"columnsMove":"freeze",class:e.normalizeClass(["vt-columns-selector__panel-item-icon",{"vt-columns-selector__panel-item-icon--draggable":B(g)}])},null,8,["name","class"]),e.createVNode(q,{label:g.label,checked:!0,disabled:k(g),onChange:S=>Z(g,S),onClick:f[0]||(f[0]=e.withModifiers(()=>{},["stop"]))},null,8,["label","disabled","onChange"]),k(g)?(e.openBlock(),e.createElementBlock("span",en,"pinned")):e.createCommentVNode("",!0)],42,Qo))),128))]),e.createElementVNode("div",tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.value,g=>{var E,S;return e.openBlock(),e.createElementBlock("div",{key:g.name,class:"vt-columns-selector__group"},[e.createElementVNode("div",{class:"vt-columns-selector__group-header",onClick:L=>p(g.name)},[e.createVNode(q,{label:g.label,checked:((E=m.value[g.name])==null?void 0:E.checked)||!1,indeterminate:((S=m.value[g.name])==null?void 0:S.indeterminate)||!1,onChange:L=>P(g,L),onClick:f[1]||(f[1]=e.withModifiers(()=>{},["stop"]))},null,8,["label","checked","indeterminate","onChange"]),g.icon?(e.openBlock(),e.createBlock(j,{key:0,name:g.icon,class:"vt-columns-selector__group-icon"},null,8,["name"])):e.createCommentVNode("",!0)],8,on),s.value.has(g.name)?(e.openBlock(),e.createElementBlock("div",nn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(g.columns,L=>(e.openBlock(),e.createElementBlock("div",{key:L.prop,class:"vt-columns-selector__group-column"},[e.createVNode(q,{label:L.label,checked:U(L),disabled:!_(L),onChange:F=>Z(L,F)},null,8,["label","checked","disabled","onChange"]),_(L)?e.createCommentVNode("",!0):(e.openBlock(),e.createElementBlock("span",ln," (закріплена) "))]))),128))])):e.createCommentVNode("",!0)])}),128))])]),e.createElementVNode("div",rn,[e.createVNode(J,{onClick:y},{default:e.withCtx(()=>f[2]||(f[2]=[e.createTextVNode("Скасувати",-1)])),_:1,__:[2]}),e.createVNode(J,{type:"primary",onClick:w},{default:e.withCtx(()=>f[3]||(f[3]=[e.createTextVNode("Зберегти",-1)])),_:1,__:[3]})])]))}}),an={class:"vt-table-header-actions"},cn=e.defineComponent({__name:"ColumnActions",props:{column:{},allColumns:{},columnsSelector:{}},emits:["pin","update-columns"],setup(o,{emit:t}){const l=o,n=t,r=()=>!!(l.column.pinnedLeft||l.column.pinnedRight),s=i=>{switch(console.log("ColumnActions - Command received:",i,typeof i),String(i)){case"pin":console.log("Executing pin command"),a();break;case"columns":console.log("Executing columns command"),m();break;default:console.warn("Unknown command:",i)}},a=()=>{const i=r();console.log("handlePin called, isPinned:",i),i?n("pin",l.column,"none"):n("pin",l.column,"left")},d=i=>({name:"removed",label:"Видалені колонки",order:999,columns:i}),c=i=>{var D;const k=new Set(i.map($=>$.prop)),B=new Set;(D=l.columnsSelector)==null||D.forEach($=>{$.columns.forEach(I=>B.add(I.prop))}),l.allColumns.forEach($=>B.add($.prop));const R=[];B.forEach($=>{var I;if(!k.has($)){let C;(I=l.columnsSelector)==null||I.forEach(x=>{const V=x.columns.find(A=>A.prop===$);V&&(C=V)}),C||(C=l.allColumns.find(x=>x.prop===$)),C&&R.push(C)}});const W=[...l.columnsSelector||[]];return R.length>0&&W.push(d(R)),W},m=()=>{console.log("handleToggleVisibility called");const i=c(l.allColumns);X.open({component:sn,title:"Управління колонками таблиці",props:{columns:l.allColumns,columnsSelector:i,"onUpdate-columns":k=>{n("update-columns",k)}},size:"large",closeOnBackdropClick:!1})};return(i,k)=>(e.openBlock(),e.createBlock(ce,{trigger:"click",placement:"bottom-start",onCommand:s},{dropdown:e.withCtx(()=>[e.createVNode(ee,{command:"pin"},{default:e.withCtx(()=>[e.createVNode(j,{name:r()?"unfreeze":"freeze"},null,8,["name"]),e.createElementVNode("div",null,e.toDisplayString(r()?"Розморозити":"Заморозити"),1)]),_:1}),e.createVNode(ee,{command:"columns"},{default:e.withCtx(()=>[e.createVNode(j,{name:"columnInsert"}),k[0]||(k[0]=e.createElementVNode("div",null,"Колонки",-1))]),_:1,__:[0]})]),default:e.withCtx(()=>[e.createElementVNode("div",an,[e.createVNode(j,{name:"listBullet"})])]),_:1}))}}),dn={class:"vt-table"},un={class:"vt-th__content"},mn={class:"vt-th__content"},pn={class:"vt-th__label"},hn={key:0,class:"vt-th__sortable"},fn=["data-resizer","onMousedown"],vn={key:0,class:"vt-table__empty-row"},gn=["colspan"],kn={class:"vt-table__empty-content"},_n=["onClick"],Cn={class:"vt-table__cell-content"},wn={class:"vt-table__cell-content vt-table__cell-content--ellipsis"},bn={key:1},yn=["data-resizer","onMousedown"],Bn={key:0,class:"vt-table__summary"},En={class:"vt-table__cell-content vt-table__cell-content--summary"},le=50,ye=e.defineComponent({__name:"VTable",props:e.mergeModels({data:{},maxHeight:{default:void 0},rowKey:{default:"id"},defaultSort:{},showSummary:{type:Boolean,default:!1},summaryMethod:{},columnsSelector:{default:()=>[]},selectable:{type:Boolean,default:!1},selectionKey:{default:"id"},defaultSelection:{default:()=>[]},selectOnClickRow:{type:Boolean,default:!1},highlightCurrentRow:{type:Boolean,default:!1},allData:{default:void 0},columns:{default:()=>[]}},{columns:{required:!1,default:void 0},columnsModifiers:{}}),emits:e.mergeModels(["sort-change","selection-change","current-change","row-click","update:columns","column-pin","column-resize","column-visibility","column-sort","columns-change","infinity-scroll"],["update:columns"]),setup(o,{expose:t,emit:l}){const n=o,r=l,s=e.useModel(o,"columns"),a=e.ref({}),d=e.ref(),c=e.reactive([]),m=e.ref(n.defaultSort||null),i=e.computed(()=>Xo(n.data||[],m.value,c)),k=e.computed(()=>s.value!==void 0),B=e.computed(()=>n.data&&n.data.length>0),R=e.ref(!1),W=e.ref(0);let D;const $=(h,v)=>n.rowKey&&h[n.rowKey]!=null?String(h[n.rowKey]):String(v),I=()=>{k.value&&s.value?c.splice(0,c.length,...s.value):n.columns&&n.columns.length>0&&c.splice(0,c.length,...n.columns)};e.watch(()=>s.value,h=>{h&&k.value&&c.splice(0,c.length,...h)},{deep:!0}),e.watch(()=>n.columns,h=>{h&&!k.value&&c.splice(0,c.length,...h)},{deep:!0}),e.provide("vt-table-columns",c);const{sortedColumns:C,getDefaultColumnWidth:x,getStickyOffset:V}=Ao(c),{getTableWrapperStyle:A,getColumnStyle:O,getHeaderStyle:Z,getFooterStyle:P}=Oo(n),{onMouseDown:U}=jo(),_=e.computed(()=>n.allData||n.data),p=n.selectable?Fo(n,i,r,_):null,w=()=>({width:`${le}px`,minWidth:`${le}px`,maxWidth:`${le}px`,left:"0px",position:"sticky",zIndex:10}),y=()=>{const h=w();return n.maxHeight?{...h,top:"0px",zIndex:11}:h},u=()=>{const h=w();return n.maxHeight?{...h,bottom:"0px",zIndex:11}:h},f=()=>{if(!d.value||R.value)return;const h=d.value,v=h.scrollTop,M=h.scrollHeight,N=h.clientHeight,T=30;D&&clearTimeout(D),D=setTimeout(()=>{const Q=v-W.value>1,b=M-v-N<=T,Y=M-v-N<=5;W.value=v,Q&&(b||Y)&&(R.value=!0,r("infinity-scroll"),setTimeout(()=>{R.value=!1},1e3))},50)},g=()=>{R.value=!1};e.onMounted(()=>{d.value&&d.value.addEventListener("scroll",f)}),e.onUnmounted(()=>{D&&clearTimeout(D),d.value&&d.value.removeEventListener("scroll",f)});const E=(h,v)=>{Yo(h,v,M=>{var N,T;((N=m.value)==null?void 0:N.prop)===h.prop&&m.value.direction===v?m.value=null:m.value=M,r("sort-change",{column:h,direction:((T=m.value)==null?void 0:T.direction)||null,prop:h.prop,sortedData:i.value})})},S=(h,v)=>{const M={pinnedLeft:v==="left",pinnedRight:v==="right"};F(h.prop,M),r("column-pin",{column:{...h,...M},position:v})},L=h=>{c.splice(0,c.length,...h),k.value&&(s.value=[...h]),r("columns-change",[...h])},F=(h,v)=>{const M=c.findIndex(N=>N.prop===h);if(M!==-1){if(Object.assign(c[M],v),k.value&&s.value){const N=s.value.findIndex(T=>T.prop===h);if(N!==-1){const T=[...s.value];T[N]={...T[N],...v},s.value=T}}r("columns-change",[...c])}},te=(h,v,M)=>{r("row-click",{row:h,column:v,event:M}),n.highlightCurrentRow&&p&&p.setCurrentRow(h)},Ve=(h,v,M)=>{M.stopPropagation(),p&&p.toggleRowSelection(v,h)},Me=(h,v)=>{v.stopPropagation(),p&&p.toggleAllSelection()},de=(h,v)=>{h&&(a.value[v]=h)},ue=(h,v)=>{const M=v.width||x();U(h,v,x,N=>{F(v.prop,{width:N}),r("column-resize",{column:{...v,width:N},width:N,oldWidth:M})})},Se=(h,v)=>O(h,v,V,x),Le=(h,v)=>Z(h,v,V,x),$e=(h,v)=>P(h,v,V,x),Ne=(h,v)=>{if(!v||!v.prop)return"";const M=h[v.prop];return M==null?"":String(M)},ze=e.computed(()=>{if(!n.showSummary||!B.value)return{};const h=c;if(typeof n.summaryMethod=="function"){const v=n.summaryMethod({columns:h,data:i.value});return h.reduce((M,N,T)=>(M[N.prop]=v[T],M),{})}return h.reduce((v,M)=>{const N=i.value.map(T=>T[M.prop]);return v[M.prop]=N.every(T=>typeof T=="number")?N.reduce((T,G)=>T+G,0):"",v},{})}),Ie=e.computed(()=>n.showSummary&&B.value),Te=(h,v)=>{p&&p.toggleRowSelection(h,v)},Re=()=>{p&&p.toggleAllSelection()},De=()=>{p&&p.selectAbsolutelyAll()},He=()=>{p&&p.clearSelection()},We=()=>p?p.getSelectionRows():[],Pe=h=>{p&&p.setSelectionRows(h)};return e.onMounted(()=>{I()}),t({toggleRowSelection:Te,toggleAllSelection:Re,selectAbsolutelyAll:De,clearSelection:He,getSelectionRows:We,setSelectionRows:Pe,resetInfinityScroll:g}),(h,v)=>{var N,T,G,Q;const M=e.resolveDirective("tooltip");return e.openBlock(),e.createElementBlock("div",{ref_key:"tableWrapperRef",ref:d,class:"vt-table-wrapper",style:e.normalizeStyle(e.unref(A)()),onScroll:f},[e.renderSlot(h.$slots,"default"),e.createElementVNode("table",dn,[e.createElementVNode("thead",null,[e.createElementVNode("tr",null,[n.selectable?(e.openBlock(),e.createElementBlock("th",{key:0,class:e.normalizeClass(["vt-table__th vt-table__th--selection",{"vt-table__th--sticky":n.maxHeight,"vt-table__th--pinned-left":!0}]),style:e.normalizeStyle(y())},[e.createElementVNode("div",un,[e.createVNode(q,{checked:(N=e.unref(p))==null?void 0:N.isAllSelected.value,indeterminate:(T=e.unref(p))==null?void 0:T.isIndeterminate.value,"is-double":(Q=(G=e.unref(p))==null?void 0:G.isDoubleCheck)==null?void 0:Q.value,onChange:Me},null,8,["checked","indeterminate","is-double"])])],6)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),(b,Y)=>(e.openBlock(),e.createElementBlock("th",{key:b.prop,ref_for:!0,ref:K=>de(K,b.prop),style:e.normalizeStyle(Le(b,Y)),class:e.normalizeClass(["vt-table__th",{"vt-table__th--sticky":n.maxHeight,"vt-table__th--pinned-left":b.pinnedLeft,"vt-table__th--pinned-right":b.pinnedRight,"vt-table__th--sortable":b.sortable}])},[e.createElementVNode("div",mn,[e.createElementVNode("div",pn,e.toDisplayString(b.label),1),b.sortable?(e.openBlock(),e.createElementBlock("div",hn,[e.createVNode(j,{name:"arrowTop",class:e.normalizeClass(e.unref(fe)(b,m.value).asc),onClick:e.withModifiers(K=>E(b,"asc"),["stop"])},null,8,["class","onClick"]),e.createVNode(j,{name:"arrowDown",class:e.normalizeClass(e.unref(fe)(b,m.value).desc),onClick:e.withModifiers(K=>E(b,"desc"),["stop"])},null,8,["class","onClick"])])):e.createCommentVNode("",!0),b.actionColumn?(e.openBlock(),e.createBlock(cn,{key:1,column:b,"all-columns":e.unref(C),columnsSelector:n.columnsSelector,onPin:S,onUpdateColumns:L},null,8,["column","all-columns","columnsSelector"])):e.createCommentVNode("",!0)]),e.createElementVNode("div",{class:"vt-table__resizer","data-resizer":b.prop,onMousedown:K=>ue(K,b)},null,40,fn)],6))),128))])]),e.createElementVNode("tbody",null,[B.value?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:1},e.renderList(i.value,(b,Y)=>{var K,me,pe;return e.openBlock(),e.createElementBlock("tr",{key:$(b,Y),class:e.normalizeClass(["vt-table__row",{"vt-table__row--selected":(K=e.unref(p))==null?void 0:K.isRowSelected(b),"vt-table__row--current":((me=e.unref(p))==null?void 0:me.currentRow.value)===b,"vt-table__row--clickable":n.selectOnClickRow||n.highlightCurrentRow}]),onClick:H=>te(b,e.unref(C)[0],H)},[n.selectable?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass(["vt-table__td vt-table__td--selection",{"vt-table__td--pinned-left":!0}]),style:e.normalizeStyle(w())},[e.createElementVNode("div",Cn,[e.createVNode(q,{checked:(pe=e.unref(p))==null?void 0:pe.isRowSelected(b),onChange:(H,oe)=>Ve(H,b,oe)},null,8,["checked","onChange"])])],4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),(H,oe)=>(e.openBlock(),e.createElementBlock("td",{key:`${$(b,Y)}-${H.prop}`,ref_for:!0,ref:ne=>de(ne,H.prop),style:e.normalizeStyle(Se(H,oe)),class:e.normalizeClass(["vt-table__td",{"vt-table__td--pinned-left":H.pinnedLeft,"vt-table__td--pinned-right":H.pinnedRight}])},[e.withDirectives((e.openBlock(),e.createElementBlock("div",wn,[H.renderSlot?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(()=>e.unref(Zo)(H.renderSlot,{row:b,column:H,value:b[H.prop],index:Y})),{key:0})):(e.openBlock(),e.createElementBlock("span",bn,e.toDisplayString(b[H.prop]),1))])),[[M,H.showOverflowTooltip?Ne(b,H):null]]),e.createElementVNode("div",{class:"vt-table__resizer","data-resizer":H.prop,onMousedown:ne=>ue(ne,H)},null,40,yn)],6))),128))],10,_n)}),128)):(e.openBlock(),e.createElementBlock("tr",vn,[e.createElementVNode("td",{colspan:e.unref(C).length+(n.selectable?1:0),class:"vt-table__empty-cell"},[e.createElementVNode("div",kn,[e.createVNode(j,{name:"empty",class:"vt-table__empty-icon"}),v[0]||(v[0]=e.createElementVNode("span",{class:"vt-table__empty-text"},"Немає даних!",-1))])],8,gn)]))]),Ie.value?(e.openBlock(),e.createElementBlock("tfoot",Bn,[e.createElementVNode("tr",null,[n.selectable?(e.openBlock(),e.createElementBlock("td",{key:0,class:e.normalizeClass(["vt-table__td",{"vt-table__td--pinned-left":!0}]),style:e.normalizeStyle(u())},v[1]||(v[1]=[e.createElementVNode("div",{class:"vt-table__cell-content vt-table__cell-content--summary"},null,-1)]),4)):e.createCommentVNode("",!0),(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(e.unref(C),(b,Y)=>(e.openBlock(),e.createElementBlock("td",{key:b.prop,style:e.normalizeStyle($e(b,Y)),class:e.normalizeClass(["vt-table__td",{"vt-table__td--pinned-left":b.pinnedLeft,"vt-table__td--pinned-right":b.pinnedRight}])},[e.createElementVNode("div",En,e.toDisplayString(ze.value[b.prop]),1)],6))),128))])])):e.createCommentVNode("",!0)])],36)}}}),Be=e.defineComponent({__name:"VTableColumn",props:{prop:{},label:{},width:{},minWidth:{},maxWidth:{},sortable:{type:Boolean,default:!0},pinnedLeft:{type:Boolean,default:!1},pinnedRight:{type:Boolean,default:!1},actionColumn:{type:Boolean,default:!0},showOverflowTooltip:{type:Boolean,default:!0},selectable:{type:Boolean,default:!0},renderSlot:{},sortMethod:{}},setup(o){const t=o,l=e.useSlots(),n=e.inject("vt-table-columns");n||console.error("VTableColumn: не знайдено контекст таблиці. Переконайтеся, що компонент використовується всередині VTable.");const r=()=>({prop:t.prop,label:t.label,width:t.width,minWidth:t.minWidth,maxWidth:t.maxWidth,sortable:t.sortable,pinnedLeft:t.pinnedLeft,pinnedRight:t.pinnedRight,actionColumn:t.actionColumn,showOverflowTooltip:t.showOverflowTooltip,selectable:t.selectable,renderSlot:l[t.prop]??l.default??l.slot});let s=-1;return e.onMounted(()=>{if(n){const a=r();n.push(a),s=n.length-1}}),e.watch(()=>[t.width,t.minWidth,t.maxWidth,t.sortable,t.pinnedLeft,t.pinnedRight,t.actionColumn,t.showOverflowTooltip,t.selectable,t.label],()=>{if(n&&s!==-1){const a=n.findIndex(d=>d.prop===t.prop);if(a!==-1){const d=n[a],c={...r(),renderSlot:d.renderSlot};n[a]=c}}},{deep:!0}),e.onUnmounted(()=>{if(n){const a=n.findIndex(d=>d.prop===t.prop);a>-1&&n.splice(a,1)}}),(a,d)=>null}}),ve=(o,t)=>{const l=document.createElement("div");l.className=`vt-tooltip vt-tooltip--${t}`,l.innerText=o,Object.assign(l.style,{position:"absolute",background:"rgba(0, 0, 0, 0.8)",color:"white",padding:"8px 12px",borderRadius:"4px",fontSize:"12px",lineHeight:"1.4",zIndex:"9999",pointerEvents:"none",visibility:"hidden",opacity:"0",transition:"opacity 0.2s ease, visibility 0.2s ease",maxWidth:"300px",minWidth:"max-content",wordWrap:"break-word",whiteSpace:"normal",boxShadow:"0 2px 8px rgba(0, 0, 0, 0.2)"}),o.length<50&&(l.style.whiteSpace="nowrap");const n=document.createElement("div");switch(n.className="vt-tooltip__arrow",Object.assign(n.style,{position:"absolute",width:"0",height:"0",borderStyle:"solid"}),t){case"top":Object.assign(n.style,{top:"100%",left:"50%",marginLeft:"-5px",borderWidth:"5px 5px 0 5px",borderColor:"rgba(0, 0, 0, 0.8) transparent transparent transparent"});break;case"bottom":Object.assign(n.style,{bottom:"100%",left:"50%",marginLeft:"-5px",borderWidth:"0 5px 5px 5px",borderColor:"transparent transparent rgba(0, 0, 0, 0.8) transparent"});break;case"left":Object.assign(n.style,{top:"50%",left:"100%",marginTop:"-5px",borderWidth:"5px 0 5px 5px",borderColor:"transparent transparent transparent rgba(0, 0, 0, 0.8)"});break;case"right":Object.assign(n.style,{top:"50%",right:"100%",marginTop:"-5px",borderWidth:"5px 5px 5px 0",borderColor:"transparent rgba(0, 0, 0, 0.8) transparent transparent"});break}return l.appendChild(n),l},re=(o,t,l)=>{const n=t.getBoundingClientRect(),r=o.getBoundingClientRect(),s=window.pageXOffset||document.documentElement.scrollLeft,a=window.pageYOffset||document.documentElement.scrollTop;let d=0,c=0;switch(l){case"top":d=n.top+a-r.height-8,c=n.left+s+(n.width-r.width)/2;break;case"bottom":d=n.bottom+a+8,c=n.left+s+(n.width-r.width)/2;break;case"left":d=n.top+a+(n.height-r.height)/2,c=n.left+s-r.width-8;break;case"right":d=n.top+a+(n.height-r.height)/2,c=n.right+s+8;break}const m=window.innerWidth,i=window.innerHeight;c<8?c=8:c+r.width>m-8&&(c=m-r.width-8),d<a+8?l==="top"?d=n.bottom+a+8:d=a+8:d+r.height>a+i-8&&(l==="bottom"?d=n.top+a-r.height-8:d=a+i-r.height-8),o.style.top=`${d}px`,o.style.left=`${c}px`},ge=(o,t,l)=>{o.parentElement||document.body.appendChild(o),o.style.visibility="visible",re(o,t,l),requestAnimationFrame(()=>{o.style.opacity="1"})},ke=o=>{o.style.opacity="0",o.style.visibility="hidden"},_e=o=>o.scrollWidth>o.clientWidth||o.scrollHeight>o.clientHeight,Ce=o=>!!o.closest(".vt-table, table"),Ee={mounted(o,t){var c;const l=(c=t.value)==null?void 0:c.trim();if(!l)return;const n=o.dataset.placement||"top",r=ve(l,n);o.__tooltipEl=r;const s=()=>{(Ce(o)?_e(o):!0)&&ge(r,o,n)},a=()=>{ke(r)},d=()=>{r.style.opacity==="1"&&re(r,o,n)};o.__mouseenterHandler=s,o.__mouseleaveHandler=a,o.__scrollHandler=d,o.addEventListener("mouseenter",s),o.addEventListener("mouseleave",a),window.addEventListener("scroll",d,!0),window.addEventListener("resize",d)},updated(o,t){var n;const l=(n=t.value)==null?void 0:n.trim();if(o.__tooltipEl)l?o.__tooltipEl.firstChild.textContent=l:(o.__tooltipEl.parentElement&&o.__tooltipEl.parentElement.removeChild(o.__tooltipEl),delete o.__tooltipEl);else if(l){const r=o.dataset.placement||"top",s=ve(l,r);o.__tooltipEl=s;const a=()=>{(Ce(o)?_e(o):!0)&&ge(s,o,r)},d=()=>{ke(s)},c=()=>{s.style.opacity==="1"&&re(s,o,r)};o.__mouseenterHandler=a,o.__mouseleaveHandler=d,o.__scrollHandler=c,o.addEventListener("mouseenter",a),o.addEventListener("mouseleave",d),window.addEventListener("scroll",c,!0),window.addEventListener("resize",c)}},beforeUnmount(o){o.__tooltipEl&&o.__tooltipEl.parentElement&&(o.__tooltipEl.parentElement.removeChild(o.__tooltipEl),delete o.__tooltipEl),o.__mouseenterHandler&&(o.removeEventListener("mouseenter",o.__mouseenterHandler),delete o.__mouseenterHandler),o.__mouseleaveHandler&&(o.removeEventListener("mouseleave",o.__mouseleaveHandler),delete o.__mouseleaveHandler),o.__scrollHandler&&(window.removeEventListener("scroll",o.__scrollHandler,!0),window.removeEventListener("resize",o.__scrollHandler),delete o.__scrollHandler)}},xn={sortable:!0,actionColumn:!1,showOverflowTooltip:!0,visible:!0,pinnedLeft:!1,pinnedRight:!1},xe={install(o,t={}){const{prefix:l="V",modal:n=!0}=t;o.component(`${l}Button`,J),o.component(`${l}Icon`,j),o.component(`${l}Loader`,se),o.component(`${l}Modal`,ie),o.component(`${l}Pagination`,we),o.component(`${l}Checkbox`,q),o.component(`${l}Table`,ye),o.component(`${l}TableColumn`,Be),o.component(`${l}Dropdown`,ce),o.component(`${l}DropdownItem`,ee),o.directive("tooltip",Ee),n&&o.use(be)}},Vn=xe.install;exports.DEFAULT_COLUMN_CONFIG=xn;exports.DropdownContextKey=ae;exports.VButton=J;exports.VCheckbox=q;exports.VDropdown=ce;exports.VDropdownItem=ee;exports.VIcon=j;exports.VLoader=se;exports.VModal=ie;exports.VModalPlugin=be;exports.VPagination=we;exports.VTable=ye;exports.VTableColumn=Be;exports.default=xe;exports.install=Vn;exports.modalManager=X;exports.tooltipDirective=Ee;
|