react-data-grid-lite
Version:
A fast React Data Grid with AI search, sorting, pagination, and customization.
1 lines • 121 kB
JavaScript
import e,{createContext as t,useContext as n,useState as o,useEffect as l,useCallback as r,memo as i,useRef as a,useMemo as d,useImperativeHandle as c,forwardRef as u}from"react";import s from"react-dom";function p(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===n&&o.firstChild?o.insertBefore(l,o.firstChild):o.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}function m(e,t,n,o,l,r,i){try{var a=e[r](i),d=a.value}catch(e){return void n(e)}a.done?t(d):Promise.resolve(d).then(o,l)}function v(e){return function(){var t=this,n=arguments;return new Promise((function(o,l){var r=e.apply(t,n);function i(e){m(r,o,l,i,a,"next",e)}function a(e){m(r,o,l,i,a,"throw",e)}i(void 0)}))}}function g(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t);if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return e+""}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)({}).hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},h.apply(null,arguments)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e){return!(null!=e&&!Number.isNaN(e))||("string"==typeof e?""===e.trim():Array.isArray(e)?0===e.length:"object"==typeof e&&Object.getPrototypeOf(e)===Object.prototype&&0===Object.keys(e).length)}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!e)return t;var n="string"==typeof e?document.querySelector(e):e;if(!(n&&n instanceof HTMLElement))return t;var o,l=window.getComputedStyle(n),r=n.clientWidth;if((r-=(parseFloat(l.paddingLeft)||0)+(parseFloat(l.paddingRight)||0))<=0)try{r=parseFloat(l.width)||t}catch(e){r=t}return r<=0&&n.parentElement&&(r=(null===(o=n.parentElement)||void 0===o?void 0:o.clientWidth)||parseFloat(window.getComputedStyle(n.parentElement).width)),r>0?r:t}p('.r-d-g-lt-comp{background-color:#fff;border-radius:10px;box-shadow:.2px 1px 4px 0 #0c0c0c;color:#0c0c0c;font-size:16px;font-weight:600;min-width:250px!important;padding:8px;position:relative}.r-d-g-lt-comp *{box-sizing:border-box!important;font-family:Segoe UI,Tahoma,Geneva,Verdana,sans-serif;font-family:Inter,system-ui,sans-serif;font-family:Roboto,Helvetica,Arial,sans-serif;user-select:none;-webkit-user-select:none;-ms-user-select:none}.r-d-g-lt-comp.rdg-rtl{direction:rtl!important;text-align:right}.r-d-g-lt-comp :focus{outline:none!important}.r-d-g-lt-comp :focus-visible{outline:none!important}.r-d-g-lt-comp a:active,.r-d-g-lt-comp a:focus,.r-d-g-lt-comp a:hover{box-shadow:0 0 0 0!important;outline:0!important}.r-d-g-lt-comp input,.r-d-g-lt-comp input[type=checkbox]{background-color:#fff;border:none;box-sizing:border-box!important;-moz-box-sizing:border-box!important;-webkit-box-sizing:border-box!important;color:#212529;font-size:16px}.r-d-g-lt-comp .grid--check--box{align-items:center;cursor:pointer;display:inline-flex;font-size:14px;gap:10px;position:relative;user-select:none}.r-d-g-lt-comp .grid--check--box input{height:0;opacity:0;pointer-events:none;position:absolute;width:0}.r-d-g-lt-comp .grid--check--box .check--mark{background-color:#fff;border:2px solid #ccc;border-radius:6px;bottom:0;box-shadow:0 1px 2px rgba(0,0,0,.1);height:20px;position:relative;right:0;top:0;transition:all .2s ease;width:20px}.r-d-g-lt-comp .grid--check--box .check--mark:after{border:solid #fff;border-width:0 2px 2px 0;content:"";display:none;height:10px;left:5px;position:absolute;top:2px;transform:rotate(45deg);transition:all .2s ease;width:5px}.r-d-g-lt-comp .grid--check--box input:checked+.check--mark{background-color:#212529;border-color:#e0e0e0}.r-d-g-lt-comp .grid--check--box input:checked+.check--mark:after{display:block}.r-d-g-lt-comp .input-check--mark:focus-visible+.check--mark{background-color:#d0e7ff;outline:2px solid currentColor;outline-offset:4px}.r-d-g-lt-comp div.editField input,.r-d-g-lt-comp div.globalSearch input,.r-d-g-lt-comp div.searchDiv input{border-radius:8px!important;box-shadow:inset 0 0 2px #445;font-weight:400!important;height:100%!important;padding:1px 20px 2px 5px!important;padding-block:0;padding-inline:0;width:100%!important}.r-d-g-lt-comp div.globalSearch input{padding:1px 42px 2px 5px!important}.r-d-g-lt-comp .drop--down{border-radius:8px!important;box-shadow:.2px 1px 4px 0 #0c0c0c!important;cursor:pointer;font-weight:600!important;height:30px;margin:2px;min-width:60px;padding:0;position:relative}.r-d-g-lt-comp .dropdown-selected{align-items:center;display:flex;height:100%!important;justify-content:space-between;padding:4px;transition:border-color .2s;width:100%!important}.r-d-g-lt-comp .dropdown-arrow{font-size:10px;margin-left:4px}.r-d-g-lt-comp .dropdown-options{background:#fff;border:1px solid #0c0c0c;border-radius:6px;bottom:100%;left:0;max-height:140px;overflow-y:auto;position:absolute;width:100%;z-index:1000}.r-d-g-lt-comp .dropdown-option{background:#fff;box-shadow:0 -1px 3px 0 rgba(0,0,0,.1);height:30px;overflow:hidden;padding:6px 10px;text-align:center;text-overflow:ellipsis;white-space:normal}.r-d-g-lt-comp .dropdown-option:hover{background-color:#f5f1f1}.r-d-g-lt-comp .dropdown-option.selected{background-color:#0c0c0c;color:#fff;font-weight:500}.r-d-g-lt-comp .clear-input{color:#888;cursor:pointer;font-size:14px;font-weight:900;position:absolute;right:8px;user-select:none}.r-d-g-lt-comp .clear-input:hover{color:#333}.r-d-g-lt-comp .menu--btn-border:hover{border:1px solid rgba(0,0,0,.4)}.r-d-g-lt-comp .pointer{cursor:pointer!important}.r-d-g-lt-comp .alignCenter{align-items:center;display:flex!important;justify-content:center}.r-d-g-lt-comp div.globalSearch input::placeholder,.r-d-g-lt-comp div.searchDiv input::placeholder{font-size:14px;position:relative;text-align:center}.r-d-g-lt-comp .dot-loader{align-items:flex-end;display:flex;gap:6px;height:20px;justify-content:center}.r-d-g-lt-comp .dot-loader span{animation:bounce-r-d-g-lt-comp .6s ease-in-out infinite;background:#3498db;border-radius:50%;height:8px;width:8px}.r-d-g-lt-comp .dot-loader span:first-child{animation-delay:-.2s}.r-d-g-lt-comp .dot-loader span:nth-child(2){animation-delay:-.1s}.r-d-g-lt-comp .dot-loader span:nth-child(3){animation-delay:0s}@keyframes bounce-r-d-g-lt-comp{0%,80%,to{transform:translateY(0)}40%{transform:translateY(-10px)}}.r-d-g-lt-comp .icon-div{border-radius:10px;box-shadow:.2px 1px 4px 0 #0c0c0c;cursor:pointer;height:28px;letter-spacing:.001em;line-height:1.43;margin:0;transition:box-shadow .1s ease;width:28px;z-index:10}.r-d-g-lt-comp .icon-div:hover{box-shadow:.5px 1px 4px 1px #556}.r-d-g-lt-comp .icon-div:active{box-shadow:inset 0 1px 4px #445}.r-d-g-lt-comp .grid-icon-div{background:linear-gradient(180deg,#fff,#f5f1f1)!important;margin:auto!important}.r-d-g-lt-comp .clear-icon-div{float:left;height:36px;position:relative;top:0;width:40px}.r-d-g-lt-comp .download-icon-div{float:right;height:36px;position:relative;top:0;width:136px}.r-d-g-lt-comp .download-icon-div div.icon-content{align-items:center;display:inline-flex;gap:3px}.r-d-g-lt-comp .download-icon-div div.icon-content svg{height:24px;width:24px}.r-d-g-lt-comp .sort-icon-wrapper{position:relative;width:35px!important}.r-d-g-lt-comp i.icon-sort{display:inline-block;height:8px;opacity:.8;position:relative;width:0}.r-d-g-lt-comp i.icon-sort:before{border-bottom:6px solid;bottom:6px}.r-d-g-lt-comp i.icon-sort:after{border-top:6px solid;top:6px}.r-d-g-lt-comp i.icon-sort:after,.r-d-g-lt-comp i.icon-sort:before{border-left:4px solid transparent;border-right:4px solid transparent;content:"";left:-5px;position:absolute}.r-d-g-lt-comp .updown-icon{margin:0!important;padding:0!important;text-shadow:1px 1px 1px currentColor}.r-d-g-lt-comp .updown-icon.inactive{color:#ccc!important}.r-d-g-lt-comp i.icon-sort-down,.r-d-g-lt-comp i.icon-sort-up{border-left:4px solid transparent;border-right:4px solid transparent;display:inline-block;height:0;width:0}.r-d-g-lt-comp i.icon-sort-up{border-bottom:8px solid}.r-d-g-lt-comp i.icon-sort-down{border-top:8px solid}.r-d-g-lt-comp .ai-search-input-wrapper{align-items:center;display:flex;height:100%;position:relative;width:100%}.r-d-g-lt-comp .ai-search-input-wrapper input{padding-right:40px;width:100%}.r-d-g-lt-comp .inline-search-btn{background:transparent;border:none;color:#555;cursor:pointer;position:absolute;right:20px}.r-d-g-lt-comp .inline-search-btn:hover{color:#000}.r-d-g-lt-comp .page-size-selector{float:right;justify-content:right}.r-d-g-lt-comp.rdg-rtl .page-size-selector{float:left;justify-content:left}.r-d-g-lt-comp .rows--selector{align-items:center;display:inline-flex;gap:1px;padding:0 0 0 5px;position:relative}.r-d-g-lt-comp .rows--selector .ps-dropdown{cursor:pointer;min-width:60px;padding:6px;position:relative;user-select:none}.r-d-g-lt-comp .rows--selector .ps-dropdown .dropdown-options{background:#fff;border:1px solid #ccc;bottom:-10%;box-shadow:0 2px 5px rgba(0,0,0,.1);left:0;max-height:280px;min-width:70px;overflow-y:hidden;position:absolute;width:100%;z-index:999}.r-d-g-lt-comp .rows--selector .ps-dropdown .dropdown-option{box-shadow:none;cursor:pointer;height:35px;padding:8px 20px;text-align:left}.r-d-g-lt-comp .rows--selector .ps-dropdown .dropdown-option.selected,.r-d-g-lt-comp .rows--selector .ps-dropdown .dropdown-option:hover{background-color:#f0f0f0;color:inherit;font-weight:inherit}.r-d-g-lt-comp .pd--0{padding:0}.r-d-g-lt-comp .mg--0{margin:0}.r-d-g-lt-comp .opacity--level{opacity:.8}.r-d-g-lt-comp .row--flex{display:flex;flex-wrap:wrap}.r-d-g-lt-comp [class*=col-flex-]{flex:0 0 auto}.r-d-g-lt-comp .col-flex-2{width:16.666%}.r-d-g-lt-comp .col-flex-3{width:24.999%}.r-d-g-lt-comp .col-flex-4{width:33.332%}.r-d-g-lt-comp .col-flex-5{width:41.666%}.r-d-g-lt-comp .col-flex-12{width:100%}.r-d-g-lt-comp .react-data-grid-lite{border:0;box-sizing:border-box;color:rgba(0,0,0,.87);display:flex;flex-direction:column;letter-spacing:.001em;line-height:1.43;outline:none;padding:10px 8px;position:relative;z-index:1}.r-d-g-lt-comp .react-data-grid-lite table.gd-tbl{border:0;border-collapse:collapse;border-radius:4px;border-spacing:0;box-shadow:0 0 1px 0 #0c0c0c;display:grid!important;overflow:auto!important;table-layout:fixed;width:100%;will-change:transform;z-index:1}.r-d-g-lt-comp .dropdown-options,.r-d-g-lt-comp .react-data-grid-lite table.gd-tbl{scrollbar-color:hsla(0,0%,39%,.5) #eee;scrollbar-width:thin}.r-d-g-lt-comp .react-data-grid-lite table.gd-tbl:not(:hover){scrollbar-color:transparent #eee}.r-d-g-lt-comp .dropdown-options::-webkit-scrollbar,.r-d-g-lt-comp .react-data-grid-lite table.gd-tbl::-webkit-scrollbar{height:6px!important;opacity:0;transition:opacity .3s;width:0!important}.r-d-g-lt-comp .dropdown-options::-webkit-scrollbar,.r-d-g-lt-comp .react-data-grid-lite table.gd-tbl:hover::-webkit-scrollbar{opacity:1}.r-d-g-lt-comp .dropdown-options::-webkit-scrollbar-track,.r-d-g-lt-comp .react-data-grid-lite table.gd-tbl::-webkit-scrollbar-track{background:transparent}.r-d-g-lt-comp .dropdown-options::-webkit-scrollbar-thumb,.r-d-g-lt-comp .react-data-grid-lite table.gd-tbl::-webkit-scrollbar-thumb{background:hsla(0,0%,39%,.5)}.r-d-g-lt-comp .react-data-grid-lite thead{background-color:inherit;border:none;box-shadow:0 2px 2px rgba(0,0,0,.15);display:table-header-group!important;left:0;position:sticky;top:0;width:100%;will-change:transform;z-index:8}.r-d-g-lt-comp .react-data-grid-lite table tbody{background-color:#fff;display:table-row-group!important}.r-d-g-lt-comp .react-data-grid-lite table tbody::-webkit-scrollbar{height:0!important;width:0!important}.r-d-g-lt-comp .react-data-grid-lite table tr{display:flex!important;width:100%}.r-d-g-lt-comp table thead tr th{border:none!important;max-width:2400px;min-width:75px;position:relative;vertical-align:middle!important}.r-d-g-lt-comp table thead th div.emptyHeader svg path{height:32px;width:32px}.r-d-g-lt-comp table thead tr.gridHeader{background-color:#0c0c0c;color:#fff}.r-d-g-lt-comp table thead tr.gridHeader th{color:#fff;display:flex;height:60px;padding:6px 0!important}.r-d-g-lt-comp table thead tr.gridHeader th div{margin:0;padding:0;position:relative;transition:all .2s ease;width:100%}.r-d-g-lt-comp table thead tr.gridHeader th div.headerText{display:block;font-size:18px;overflow:hidden;padding:0 0 0 25px;text-align:left;text-overflow:ellipsis;text-transform:capitalize;white-space:normal}.r-d-g-lt-comp table thead tr.gridHeader span{background-color:#e0e0e0;bottom:8px;padding:0!important;position:absolute;right:0;top:8px;width:2px;z-index:5}.r-d-g-lt-comp.rdg-rtl table thead tr.gridHeader th div.headerText{padding:0 25px 0 0;text-align:right}.r-d-g-lt-comp.rdg-rtl table thead tr.gridHeader span{left:0;right:unset}.r-d-g-lt-comp table thead tr.searchHeader{background-color:#fff!important}.r-d-g-lt-comp table thead tr.searchHeader th{background-color:#fff;height:40px!important;line-height:.5!important;padding:4px 1px}.r-d-g-lt-comp table thead tr.searchHeader th div{height:100%;position:relative}.r-d-g-lt-comp table tbody tr.gridRow{border:none!important;border-bottom:2px solid #e0e0e0!important}.r-d-g-lt-comp table tbody tr.gridRow:first-child{border-top:2px solid #e0e0e0!important}.r-d-g-lt-comp table tbody tr.gridRow td{border:none!important;max-width:2400px;min-width:75px;padding:0}.r-d-g-lt-comp .dropdown-option:focus-visible,.r-d-g-lt-comp .dropdown-selected:focus-visible,.r-d-g-lt-comp .icon-div:focus-visible,.r-d-g-lt-comp .menu--btn:focus-visible,.r-d-g-lt-comp .menu--item:focus-visible,.r-d-g-lt-comp .pagination li.page-item a.page-link:focus-visible,.r-d-g-lt-comp table tbody tr.gridRow td a:focus-visible,.r-d-g-lt-comp table tbody tr.gridRow td.editable-cell:focus,.r-d-g-lt-comp table thead tr.gridHeader th:focus-visible{box-sizing:border-box!important;outline:2px solid currentColor!important;outline-offset:-5px}.r-d-g-lt-comp table tbody tr.gridRow td div{align-content:center;overflow:hidden;text-overflow:ellipsis;white-space:normal}.r-d-g-lt-comp .menu--btn:focus-visible{outline-offset:0}.r-d-g-lt-comp .pagination li.page-item a.page-link:focus-visible{outline-offset:-2px!important}.r-d-g-lt-comp table thead tr.gridHeader th:focus-visible{outline-offset:-3px!important}.r-d-g-lt-comp table tbody tr:nth-of-type(2n){background-color:#f9f9f9}.r-d-g-lt-comp table tbody tr:nth-of-type(odd){background-color:#fdfeff}.r-d-g-lt-comp table tbody tr:hover{background-color:#f5f5f5}.r-d-g-lt-comp table tbody tr.gridRow.selected{background-color:#add8e6!important}.r-d-g-lt-comp .float-lt{float:left}.r-d-g-lt-comp.rdg-rtl .float-lt{display:flex;justify-content:left;padding-left:5px}.r-d-g-lt-comp .grid-footer{height:60px!important;position:relative;z-index:2}.r-d-g-lt-comp .searchDiv{align-items:center!important;color:#fff;display:inline-block;width:90%!important}.r-d-g-lt-comp .globalSearchDiv{display:inline-block!important;margin:0!important;padding:4px 10px}.r-d-g-lt-comp .globalSearchDiv .button-container{align-items:center;display:flex;gap:8px;justify-content:right;position:relative;top:3px}.r-d-g-lt-comp.rdg-rtl .globalSearchDiv .button-container{justify-content:left}.r-d-g-lt-comp div.globalSearch{float:left;height:42px;position:relative}.r-d-g-lt-comp.rdg-rtl div.globalSearch{float:right}.r-d-g-lt-comp .button-column,.r-d-g-lt-comp .selection-column{flex-wrap:wrap!important;padding:10px!important}.r-d-g-lt-comp .page-results{padding-left:10px;text-align:left}.r-d-g-lt-comp.rdg-rtl .page-results{padding-left:unset;padding-right:10px;text-align:right}.r-d-g-lt-comp .pagination{background:inherit;float:right;list-style:none;margin-block-end:0;margin-block-start:0;padding-right:5px;padding-inline-start:0}.r-d-g-lt-comp .pagination li.page-item a.page-link{background-color:inherit;border:0;border-radius:6px!important;color:#0c0c0c!important;font-size:14px;font-weight:600;height:24px;line-height:24px;margin:0 1px;min-width:24px;padding:0 3px;text-align:center;text-decoration:none!important}.r-d-g-lt-comp .pagination>li.page-item>a.page-link:hover{background-color:#c0cad3!important;color:#fff!important}.r-d-g-lt-comp .pagination li.page-item.active a.page-link{background:#0c0c0c!important;color:#fff!important;pointer-events:none!important}.r-d-g-lt-comp .pagination li.page-item a.dot{width:10px!important}.r-d-g-lt-comp .pagination li.page-item a.dot:active,.r-d-g-lt-comp .pagination li.page-item a.dot:hover{background:inherit!important;color:inherit!important}.r-d-g-lt-comp .pagination li.page-item.disabled{background:inherit!important;pointer-events:none}.r-d-g-lt-comp .pagination li.page-item.disabled i.arrow{background:inherit!important;color:#999!important}.r-d-g-lt-comp .pagination li.page-item a i.arrow{font-size:18px;font-style:normal;font-weight:900;position:relative}.r-d-g-lt-comp .pagination li.page-item.arrow.left{margin:0 0 0 10px}.r-d-g-lt-comp .pagination li.page-item.arrow.right{margin:0 10px 0 0}.r-d-g-lt-comp .pagination li.page-item a i.arrow:hover,.r-d-g-lt-comp .pagination li.page-item.arrow a:hover,.r-d-g-lt-comp .pagination li.page-item.arrow:hover{color:#212529!important}.r-d-g-lt-comp .pagination li.page-item.arrow a:hover{background:inherit!important}.r-d-g-lt-comp .pagination li.page-item.arrow a.page-link:active{background:inherit!important;color:inherit!important}.r-d-g-lt-comp .emptyHeader{cursor:default!important}.r-d-g-lt-comp .page--list{display:block}@media (max-width:700px){.r-d-g-lt-comp .rows--selector .ps-dropdown{min-width:40px;padding:6px 2px}.r-d-g-lt-comp .drop--down{height:30px;min-width:50px}}@media (max-width:500px){.r-d-g-lt-comp table thead tr.gridHeader th{height:50px;padding:2px 0!important}.r-d-g-lt-comp .searchHeader th{padding:5px 0!important}.r-d-g-lt-comp .searchHeader th div{padding-left:0!important}.r-d-g-lt-comp .gridRow td{padding:4px 0 5px}.r-d-g-lt-comp .page-results,.r-d-g-lt-comp .page-size-selector,.r-d-g-lt-comp .pager-select{transform:scale(.95)!important}}@media (max-width:575.98px){.r-d-g-lt-comp{font-size:12.5px}.r-d-g-lt-comp table thead tr.gridHeader th div.headerText{font-size:14px}}@media (min-width:576px) and (max-width:767.98px){.r-d-g-lt-comp{font-size:14px}.r-d-g-lt-comp table thead tr.gridHeader th div.headerText{font-size:15px}}@media (min-width:768px) and (max-width:991.98px){.r-d-g-lt-comp{font-size:15px}.r-d-g-lt-comp table thead tr.gridHeader th div.headerText{font-size:16px}}@media (min-width:992px) and (max-width:1199.98px){.r-d-g-lt-comp{font-size:16px}.r-d-g-lt-comp table thead tr.gridHeader th div.headerText{font-size:17px}}'),p(".r-d-g-lt-comp.theme-1{box-shadow:.2px 1px 4px 0 #1f3b4d!important}.r-d-g-lt-comp .theme-1,.r-d-g-lt-comp.theme-1{background-color:#e5e8ec;color:#1f3b4d!important;padding:12px!important}.r-d-g-lt-comp.theme-1 .react-data-grid-lite table.gd-tbl{box-shadow:0 0 1px 0 #1f3b4d!important}.r-d-g-lt-comp.theme-1 div.globalSearch input,.r-d-g-lt-comp.theme-1 div.searchDiv input{box-shadow:inset 0 0 2px #11242f!important}.r-d-g-lt-comp.theme-1 .dropdown-options::-webkit-scrollbar-thumb:hover,.r-d-g-lt-comp.theme-1 .react-data-grid-lite table::-webkit-scrollbar-thumb:hover{background-color:#e5e8ec!important}.r-d-g-lt-comp.theme-1 div.globalSearchDiv{padding:4px 14px 0!important}.r-d-g-lt-comp.theme-1 i.toolbox-icon{background-color:inherit!important}.r-d-g-lt-comp.theme-1 div.icon-div{box-shadow:.2px 1px 4px 0 #1f3b4d!important}.r-d-g-lt-comp.theme-1 div.icon-div:hover{box-shadow:.5px 1px 4px 1px #18303f!important}.r-d-g-lt-comp.theme-1 div.icon-div:active{box-shadow:inset 0 1px 4px #11242f!important}.r-d-g-lt-comp.theme-1 .grid-footer .drop--down{box-shadow:.2px 1px 4px 0 #1f3b4d!important}.r-d-g-lt-comp.theme-1 .grid-footer .drop--down .dropdown-options{border:1px solid #1f3b4d!important}.r-d-g-lt-comp.theme-1 .grid-footer .drop--down .dropdown-option:hover{background-color:#e5e8ec!important}.r-d-g-lt-comp.theme-1 .grid-footer .drop--down .dropdown-option.selected{background-color:#1f3b4d!important;color:#fff!important}.r-d-g-lt-comp.theme-1 .grid-footer .pagination li a{color:#1f3b4d!important}.r-d-g-lt-comp.theme-1 .grid-footer .pagination li.active a{background-color:#1f3b4d!important;color:#fff!important}.r-d-g-lt-comp .theme-1 .dot-loader span{background:#1f3b4d!important}.r-d-g-lt-comp table thead tr.theme-1-h{background-color:#1f3b4d;color:#fff;padding:10px 0}.r-d-g-lt-comp .theme-1-r,.theme-1-r:nth-child(2n){background-color:#fff!important}.theme-1-r:nth-child(odd){background-color:#f5f8fa!important}.theme-1-r:hover{background-color:#f0f6fa!important}.r-d-g-lt-comp.theme-2{box-shadow:.2px 1px 4px 0 #2d2d2d!important}.r-d-g-lt-comp .theme-2,.r-d-g-lt-comp.theme-2{background-color:#f5f5f5;color:#2d2d2d!important;padding:12px!important}.r-d-g-lt-comp.theme-2 .react-data-grid-lite table.gd-tbl{box-shadow:0 0 1px 0 #2d2d2d!important}.r-d-g-lt-comp.theme-2 div.globalSearch input,.r-d-g-lt-comp.theme-2 div.searchDiv input{box-shadow:inset 0 0 2px #141414!important}.r-d-g-lt-comp.theme-2 .dropdown-options::-webkit-scrollbar-thumb:hover,.r-d-g-lt-comp.theme-2 .react-data-grid-lite table::-webkit-scrollbar-thumb:hover{background-color:#f5f5f5!important}.r-d-g-lt-comp.theme-2 div.globalSearchDiv{padding:4px 14px 0!important}.r-d-g-lt-comp.theme-2 i.toolbox-icon{background-color:inherit!important}.r-d-g-lt-comp.theme-2 div.icon-div{box-shadow:.2px 1px 4px 0 #2d2d2d!important}.r-d-g-lt-comp.theme-2 div.icon-div:hover{box-shadow:.5px 1px 4px 1px #1f1f1f!important}.r-d-g-lt-comp.theme-2 div.icon-div:active{box-shadow:inset 0 1px 4px #141414!important}.r-d-g-lt-comp.theme-2 .grid-footer .drop--down{box-shadow:.2px 1px 4px 0 #2d2d2d!important}.r-d-g-lt-comp.theme-2 .grid-footer .drop--down .dropdown-options{border:1px solid #2d2d2d!important}.r-d-g-lt-comp.theme-2 .grid-footer .drop--down .dropdown-option:hover{background-color:#f5f5f5!important}.r-d-g-lt-comp.theme-2 .grid-footer .drop--down .dropdown-option.selected{background-color:#2d2d2d!important;color:#fff!important}.r-d-g-lt-comp.theme-2 .grid-footer .pagination li a{color:#2d2d2d!important}.r-d-g-lt-comp.theme-2 .grid-footer .pagination li.active a{background-color:#2d2d2d!important;color:#fff!important}.r-d-g-lt-comp .theme-2 .dot-loader span{background:#2d2d2d!important}.r-d-g-lt-comp table thead tr.theme-2-h{background-color:#2d2d2d;color:#fff;padding:10px 0}.r-d-g-lt-comp .theme-2-r,.r-d-g-lt-comp .theme-2-r:nth-child(2n){background-color:#fff!important}.r-d-g-lt-comp .theme-2-r:nth-child(odd){background-color:#fafafa!important}.r-d-g-lt-comp .theme-2-r:hover{background-color:#e0f7fa!important}.r-d-g-lt-comp.theme-3{box-shadow:.2px 1px 4px 0 #256d4f!important}.r-d-g-lt-comp .theme-3,.r-d-g-lt-comp.theme-3{background-color:#e8f5e9;color:#256d4f!important;padding:12px!important}.r-d-g-lt-comp.theme-3 .react-data-grid-lite table.gd-tbl{box-shadow:0 0 1px 0 #256d4f!important}.r-d-g-lt-comp.theme-3 div.globalSearch input,.r-d-g-lt-comp.theme-3 div.searchDiv input{box-shadow:inset 0 0 2px #174736!important}.r-d-g-lt-comp.theme-3 .dropdown-options::-webkit-scrollbar-thumb:hover,.r-d-g-lt-comp.theme-3 .react-data-grid-lite table::-webkit-scrollbar-thumb:hover{background-color:#e8f5e9!important}.r-d-g-lt-comp.theme-3 div.globalSearchDiv{padding:4px 14px 0!important}.r-d-g-lt-comp.theme-3 i.toolbox-icon{background-color:inherit!important}.r-d-g-lt-comp.theme-3 div.icon-div{box-shadow:.2px 1px 4px 0 #256d4f!important}.r-d-g-lt-comp.theme-3 div.icon-div:hover{box-shadow:.5px 1px 4px 1px #1f5c44!important}.r-d-g-lt-comp.theme-3 div.icon-div:active{box-shadow:inset 0 1px 4px #174736!important}.r-d-g-lt-comp.theme-3 .grid-footer .drop--down{box-shadow:.2px 1px 4px 0 #256d4f!important}.r-d-g-lt-comp.theme-3 .grid-footer .drop--down .dropdown-options{border:1px solid #256d4f!important}.r-d-g-lt-comp.theme-3 .grid-footer .drop--down .dropdown-option:hover{background-color:#e8f5e9!important}.r-d-g-lt-comp.theme-3 .grid-footer .drop--down .dropdown-option.selected{background-color:#256d4f!important;color:#fff!important}.r-d-g-lt-comp.theme-3 .grid-footer .pagination li a{color:#256d4f!important}.r-d-g-lt-comp.theme-3 .grid-footer .pagination li.active a{background-color:#256d4f!important;color:#fff!important}.r-d-g-lt-comp .theme-3 .dot-loader span{background:#256d4f!important}.r-d-g-lt-comp table thead tr.theme-3-h{background-color:#256d4f;color:#fff;padding:10px 0}.r-d-g-lt-comp .theme-3-r,.r-d-g-lt-comp .theme-3-r:nth-child(2n){background-color:#fff!important}.r-d-g-lt-comp .theme-3-r:nth-child(odd){background-color:#f1f8f5!important}.r-d-g-lt-comp .theme-3-r:hover{background-color:#e0f2f1!important}.r-d-g-lt-comp.theme-1 .grid-footer,.r-d-g-lt-comp.theme-2 .grid-footer,.r-d-g-lt-comp.theme-3 .grid-footer{padding:0 4px!important}@media (max-width:700px){.r-d-g-lt-comp .theme-1,.r-d-g-lt-comp .theme-2,.r-d-g-lt-comp .theme-3,.r-d-g-lt-comp.theme-1,.r-d-g-lt-comp.theme-2,.r-d-g-lt-comp.theme-3{padding:10px!important}}");var y=e=>"string"==typeof e&&e?e.charAt(0).toUpperCase()+e.slice(1):"",C=e=>null==e?void 0:(""+e).normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase(),R=function(e){return"boolean"==typeof e?e:arguments.length>1&&void 0!==arguments[1]&&arguments[1]},E=(e,t,n,o,l)=>{var r;return function(){var i=v((function*(){var i=null==e?void 0:e.rowsData,a=yield k(o,l,i);r=setTimeout((()=>{null==t||t((e=>{var t;return b(b({},e),{},{rowsData:a,columns:null==e||null===(t=e.columns)||void 0===t?void 0:t.map((e=>b(b({},e),{},{sortOrder:(null==e?void 0:e.name)===n?l:""}))),toggleState:!(null!=e&&e.toggleState)})}))}),0)}));return function(){return i.apply(this,arguments)}}()(),()=>clearTimeout(r)};function k(e,t,n){var o=null==e?void 0:e.map((e=>"asc"===t?e:"-".concat(e))),l=null==n?void 0:n.slice().sort(function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];var o=e=>{if(null==e)return"";if("number"==typeof e)return e;if(e instanceof Date)return e.getTime();if("string"==typeof e){var t=Date.parse(e);if(!isNaN(t))return new Date(t).getTime();var n=e.replace(/[^0-9.\-]+/g,"");return!isNaN(n)&&""!==n.trim()&&/^[\d.,\s$€£¥₹\-]+$/.test(e)?parseFloat(n):e.trim().toLowerCase()}return(e+"").toLowerCase()};return(e,n)=>{for(var l of t){var r=!1;l.startsWith("-")&&(r=!0,l=l.substring(1));var i,a=o(e[l]),d=o(n[l]);if(0!==(i="number"==typeof a&&"number"==typeof d?a-d:(a+"").localeCompare(d+"")))return r?-i:i}return 0}}(...o));return l}var S="100px",D="150px",I=2400,N=".react-data-grid-lite",P="90vw",A="_$##_Actions_##$_",M="_$##_Selections_##$_",L="_$##_RightSpace_##$_",O="_$##_LeftSpace_##$_",W="75px",H="Export CSV",B="table-loader-overlay",T=["date","number","currency","percent","boolean"],z="gpt-4",j=[5,10,25,50,100,250,500],F=t(),_=()=>n(F);function V(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:200,[t,n]=o((()=>window.innerWidth));return l((()=>{var t,o=()=>{clearTimeout(t),t=setTimeout((()=>{n(window.innerWidth)}),e)};return window.addEventListener("resize",o),()=>{clearTimeout(t),window.removeEventListener("resize",o)}}),[e]),t}var Z=(e,t)=>{var n=x("#".concat(t," ").concat(N),e);return{isXSWidth:n<=350,isSmallWidth:n<500,isMobileWidth:n>=500&&n<701,isTabletWidth:n>=701&&n<1025,isMediumWidth:n>=1025&&n<=1200,isLargeWidth:n>1200}},U=i((t=>{var{options:n=[],value:i,onChange:d,autoFocus:c,dropDownRef:u,onBlur:p,preventBlurRef:m,onMouseDown:v,onClick:g,usePortal:h=!1,width:f,height:b,colName:x,onKeyDown:y,fieldIndex:C,focusInput:R,isOpen:E,setOpenExternally:k,cssClass:S}=t,D=_(),[I,P]=o(-1),A=a(null),M=a([]),[L,O]=o({top:0,left:0,width:0}),W=a(null),H=a(null),B=a(null),T="boolean"==typeof E&&"function"==typeof k,[z,j]=o(!1),[F,V]=o(!1),Z=T?E:z,U=()=>{};w(n)&&n.push("Select");var q=e=>{T?k(e?C:null):j(e)};l((()=>{var e;Z||null===(e=B.current)||void 0===e||e.focus()}),[Z]),l((()=>{if(Z){var e=requestAnimationFrame((()=>{V(!0)}));return()=>cancelAnimationFrame(e)}V(!1)}),[Z]),l((()=>{u&&("function"==typeof u?u(A.current):"current"in u&&(u.current=A.current),"function"==typeof R&&c&&R(C))}),[u]);var K=()=>{var e;return document.querySelector("#".concat(null==D||null===(e=D.state)||void 0===e?void 0:e.gridID," ").concat(N))||document.body},$=e=>"object"==typeof e?e.value:e,X=(e,t)=>{var n=$(t);n!==i&&(null==d||d(e,n,null!=x?x:"")),q(!1)};l((()=>{var e=e=>{var t;(null===(t=W.current)||void 0===t?void 0:t.contains(e.target))||q(!1)};return document.addEventListener("click",e),()=>{document.removeEventListener("click",e)}}),[]),l((()=>{var e;if(Z){var t=null===(e=A.current)||void 0===e?void 0:e.closest("table"),n=e=>{W.current&&!W.current.contains(e.target)&&q(!1)},o=()=>q(!1);return null==t||t.addEventListener("scroll",n,!0),window.addEventListener("scroll",n,!0),window.addEventListener("resize",o),()=>{null==t||t.removeEventListener("scroll",n,!0),window.removeEventListener("scroll",n,!0),window.removeEventListener("resize",o)}}}),[Z]),l((()=>{if(Z){var e,t=n.findIndex((e=>$(e)===i));if(t>=0?(P(t),null!=M&&null!==(e=M.current)&&void 0!==e&&null!==(e=e[t])&&void 0!==e&&e.scrollIntoView&&M.current[t].scrollIntoView({block:"nearest",behavior:"smooth"})):P(-1),h&&A.current){var o=A.current.getBoundingClientRect(),l=K().getBoundingClientRect();O({top:o.bottom-l.top,left:o.left-l.left,width:o.width})}setTimeout((()=>{var e;null===(e=H.current)||void 0===e||e.focus()}),0)}}),[Z,i,n,h]),l((()=>{var e;Z&&I>=0&&null!=M&&null!==(e=M.current)&&void 0!==e&&e[I]&&M.current[I].focus()}),[I,Z]);var G,Q=function(e){var{open:t,setOpen:n,focusedIndex:o,setFocusedIndex:l,options:i,handleOptionClick:a,isControlled:d=!1}=e;return r((e=>{var{key:r}=e;"Enter"===r||" "===r?(e.preventDefault(),t?o>=0&&a(e,i[o]):(n(!0),l(0))):"ArrowDown"===r?(e.preventDefault(),n(!0),l((e=>(e+1)%i.length))):"ArrowUp"===r?(e.preventDefault(),n(!0),l((e=>(e-1+i.length)%i.length))):"Escape"!==r&&"Tab"!==r||(d&&e.preventDefault(),n(!1))}),[t,o,i,n,l,a,d])}({open:Z,setOpen:q,focusedIndex:I,setFocusedIndex:P,options:n,handleOptionClick:X,isControlled:T}),Y=()=>e.createElement("div",{className:"dropdown-options",style:h?F?{position:"absolute",top:"".concat(L.top,"px"),left:"".concat(L.left,"px"),width:"".concat(L.width,"px"),zIndex:9999,overflowY:"visible",backgroundColor:"#fff"}:{visibility:"hidden"}:{},role:"listbox",tabIndex:0,ref:H,onKeyDown:Q,onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),m&&(m.current=!0,setTimeout((()=>{m.current=!1}),0))},"aria-activedescendant":I>=0?"dropdown-option-".concat(I):void 0},n.map(((t,n)=>{var o,l="object"==typeof(o=t)?o.label:o,r=$(t);return e.createElement("div",{key:r,id:"dropdown-option-".concat(n),ref:e=>M.current[n]=e,className:"".concat(h?"":"opacity--level ","dropdown-option").concat(r===i?" selected":""," ").concat(n===I?"focused":""),onClick:e=>X(e,t),tabIndex:n===I?0:-1,role:"option","aria-selected":r===i},l)})));return e.createElement("div",{style:{width:null!=f?f:void 0,height:null!=b?b:void 0},className:null!=S?S:"drop--down",ref:W,onBlur:null!=p?p:U,onClick:null!=g?g:U},e.createElement("div",{ref:A,className:"dropdown-selected opacity--level",onKeyDown:e=>{null==y||y(e),Q(e)},onClick:e=>{q(!Z),null==g||g(e)},tabIndex:0,role:"button","aria-haspopup":"listbox","aria-expanded":Z,onBlur:null!=p?p:U,onMouseDown:null!=v?v:U,onFocusCapture:e=>{B.current=e.target}},e.createElement("div",{style:{display:"block",width:"100%",textAlign:"center"}},(G=n.find((e=>("object"==typeof e?e.value:e)===i)))?G.label||G:null!=i?i:"Select"),e.createElement("span",{className:"dropdown-arrow"},Z?"▲":"▼")),Z&&(h?s.createPortal(Y(),K()):Y()))})),q=i((t=>{var n,{onPageChange:o,onPrevButtonClick:l,onNextButtonClick:r}=t,{state:i={}}=null!==(n=_())&&void 0!==n?n:{},{enablePaging:a,activePage:d=1,noOfPages:c=1,gridID:u}=i,s=V(),{isSmallWidth:p,isMobileWidth:m,isTabletWidth:v,isMediumWidth:g}=Z(s,u),f=p||m||v,b=f||g;if(!a)return null;var w=parseInt(d),x=parseInt(c),y=[],C={style:{background:"inherit"},className:"page-link alignCenter",href:"/"},R=function(t,n,o){var l=arguments.length>4&&void 0!==arguments[4]?arguments[4]:"",r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},i=arguments.length>6&&void 0!==arguments[6]?arguments[6]:{};return e.createElement("li",{key:t,className:"mg--0 pd--0 page-item ".concat(arguments.length>3&&void 0!==arguments[3]?arguments[3]:""),style:r},e.createElement("a",h({},C,i,{className:"".concat(C.className,"\n ").concat(l),onClick:o}),n))};if(y.push(R("prevButton",e.createElement("i",{className:"arrow","aria-hidden":"true"},"<"),l,1===w||0===x?"arrow right disabled":"arrow right","",{},{"aria-label":"Previous Page"})),!b&&x>3&&y.push(R("leftDots",e.createElement("b",null,".."),(e=>o(e,w-2)),"","dot",{visibility:w>2&&x>3?"visible":"hidden"},{tabIndex:"-1"})),!f){w===x&&x>=3&&y.push(R("thirdLast",x-2,(e=>o(e,x-2))));for(var E=function(e){(!f||f&&w===e)&&y.push(R(e,e,(t=>o(t,e)),w===e?"active":""))},k=Math.max(1,w-1);k<=Math.min(x,w+1);k++)E(k);1===w&&x>=3&&y.push(R("thirdPage",3,(e=>o(e,3))))}return!b&&x>3&&y.push(R("rightDots",e.createElement("b",null,".."),(e=>o(e,w+2)),"","dot",{visibility:x-1>w&&x>3?"visible":"hidden"},{tabIndex:"-1"})),y.push(R("nextButton",e.createElement("i",{className:"arrow","aria-hidden":"true"},">"),r,w===x||0===x?"arrow left disabled":"arrow left","",{},{"aria-label":"Next Page"})),e.createElement("ul",{className:"pagination alignCenter"},y)})),K=i((t=>{var n,{onPageChange:o,onPrev:l,onNext:r}=t,i=V(),{state:a={},setState:d}=null!==(n=_())&&void 0!==n?n:{},{totalRows:c,currentPageRows:u,activePage:s,pageRows:p,enablePaging:m,pagerSelectOptions:v,gridBackgroundColor:g,showNumberPagination:h,showSelectPagination:f,showPageSizeSelector:w,showPageInfo:x,gridID:y,enableRtl:C}=a,{isXSWidth:R,isSmallWidth:E,isMobileWidth:k,isTabletWidth:S,isMediumWidth:D,isLargeWidth:I}=Z(i,y),N=(s-1)*p+1,P=N+u-1,A=c>u?"".concat(N," - ").concat(P):c,M="".concat(A," / ").concat(c);return e.createElement("div",{style:{backgroundColor:g},className:"row--flex col-flex-12 mg--0 pd--0 alignCenter grid-footer"},e.createElement("div",{style:{paddingLeft:!0===E?"4px":void 0,width:k?"40%":R?"25%":E?"30%":void 0,maxWidth:k?"40%":R?"25%":E?"30%":void 0},className:"col-flex-5 mg--0 pd--0 page-results opacity--level"},!0===x&&c>0&&(C?M:"".concat(A," of ").concat(c))),e.createElement("div",{style:{width:k||E?"20%":void 0,maxWidth:k||E?"20%":void 0,position:"relative",top:k||E?"10px":void 0},className:"col-flex-2 mg--0 pd--0 pager-select alignCenter"},!0===f&&!0===m&&(null==v?void 0:v.length)>0&&e.createElement(U,{options:v,value:s,onChange:(e,t)=>o(e,parseInt(t,10))})),e.createElement("div",{style:{padding:I?"0 40px 0 0":D?"0 30px 0 0":S?"0 20px 0 0":0,width:S?"33.332%":k?"40%":R?"55%":E?"50%":void 0,maxWidth:S?"33.332%":k?"40%":R?"55%":E?"50%":void 0,position:"relative",top:k||E?"-1px":void 0},className:"col-flex-3 mg--0 pd--0 page-size-selector alignCenter"},!0===w&&!0===m&&(null==a?void 0:a.pageRows)>0&&e.createElement("div",{className:"rows--selector"},e.createElement("div",{className:"opacity--level",style:{flex:"none"}},C?"page per Rows:":"Rows per page:"),e.createElement(U,{options:j,value:null==a?void 0:a.pageRows,onChange:(e,t)=>((e,t)=>{e.preventDefault(),null==d||d((e=>{var n,o=Math.floor(c/t),l=c%t;l>0&&o++,0===l&&(l=t);var r=(null==e?void 0:e.activePage)>o,i=r?1:null!==(n=null==e?void 0:e.activePage)&&void 0!==n?n:1;return b(b({},e),{},{noOfPages:o,lastPageRows:l,activePage:i,currentPageRows:i===o?l:t,firstRow:t*(r?0:i-1),pageRows:t})}))})(e,t),cssClass:"ps-dropdown"}))),e.createElement("div",{style:{width:S?"8.333%":k||E?"100%":void 0,maxWidth:S?"8.333%":k||E?"100%":void 0,bottom:k||E?"4px":void 0,position:"relative"},className:"float-lt col-flex-2 mg--0 pd--0 page--list opacity--level"},!0===h&&(null==v?void 0:v.length)>0&&e.createElement(q,{onPageChange:o,onPrevButtonClick:l,onNextButtonClick:r})))}));function $(){return e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M11 5C11 4.44772 11.4477 4 12 4C12.5523 4 13 4.44772 13 5V12.1578L16.2428 8.91501L17.657 10.3292L12.0001 15.9861L6.34326 10.3292L7.75748 8.91501L11 12.1575V5Z",fill:"currentColor"}),e.createElement("path",{d:"M4 14H6V18H18V14H20V18C20 19.1046 19.1046 20 18 20H6C4.89543 20 4 19.1046 4 18V14Z",fill:"currentColor"}))}function X(){return e.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M3.49997 12.8995C2.71892 13.6805 2.71892 14.9468 3.49997 15.7279L7.35785 19.5858H4.08576C3.53347 19.5858 3.08576 20.0335 3.08576 20.5858C3.08576 21.1381 3.53347 21.5858 4.08576 21.5858H20.0858C20.638 21.5858 21.0858 21.1381 21.0858 20.5858C21.0858 20.0335 20.638 19.5858 20.0858 19.5858H10.9558L20.4705 10.071C21.2516 9.28999 21.2516 8.02366 20.4705 7.24261L16.2279 2.99997C15.4468 2.21892 14.1805 2.21892 13.3995 2.99997L3.49997 12.8995ZM7.82579 11.4021L4.91418 14.3137L9.15683 18.5563L12.0684 15.6447L7.82579 11.4021ZM9.24 9.98787L13.4826 14.2305L19.0563 8.65683L14.8137 4.41418L9.24 9.98787Z",fill:"currentColor"}))}function G(){return e.createElement("svg",{style:{top:"1px",position:"relative"},width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M18.319 14.4326C20.7628 11.2941 20.542 6.75347 17.6569 3.86829C14.5327 0.744098 9.46734 0.744098 6.34315 3.86829C3.21895 6.99249 3.21895 12.0578 6.34315 15.182C9.22833 18.0672 13.769 18.2879 16.9075 15.8442C16.921 15.8595 16.9351 15.8745 16.9497 15.8891L21.1924 20.1317C21.5829 20.5223 22.2161 20.5223 22.6066 20.1317C22.9971 19.7412 22.9971 19.1081 22.6066 18.7175L18.364 14.4749C18.3493 14.4603 18.3343 14.4462 18.319 14.4326ZM16.2426 5.28251C18.5858 7.62565 18.5858 11.4246 16.2426 13.7678C13.8995 16.1109 10.1005 16.1109 7.75736 13.7678C5.41421 11.4246 5.41421 7.62565 7.75736 5.28251C10.1005 2.93936 13.8995 2.93936 16.2426 5.28251Z",fill:"currentColor"}))}function Q(t){var{type:n,dataType:o,placeholder:l,className:r,value:i,onChange:a,onBlur:d,width:c,height:u,ref:s,onKeyDown:p,onClick:m,onMouseDown:v,preventBlurRef:g,autoFocus:h}=t;return e.createElement("div",{className:"alignCenter",style:{position:"relative",width:null!=c?c:"100%",height:null!=u?u:"100%"}},e.createElement("input",{name:null!=l?l:"textbox",onClick:null!=m?m:()=>{},ref:null!=s?s:null,className:null!=r?r:"","data-type":null!=o?o:"",type:null!=n?n:"text",placeholder:null!=l?l:"",value:null!=i?i:"",onChange:null!=a?a:()=>{},onBlur:null!=d?d:()=>{},onKeyDown:null!=p?p:()=>{},autoFocus:null!=h&&h,onMouseDown:null!=v?v:()=>{},role:"textbox","aria-label":null!=l?l:"textbox","aria-placeholder":null!=l?l:"textbox"}),i&&e.createElement("span",{className:"clear-input alignCenter",onMouseDown:e=>{e.preventDefault(),e.stopPropagation(),g&&(g.current=!0,setTimeout((()=>{g.current=!1}),0))},onClick:()=>a({target:{value:""}})},"×"))}var Y=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"en-US",o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"UTC";if(!e)return"";var l=new Date(e);if(isNaN(l))return"";t&&"string"==typeof t&&""!==t.trim()||(t="yyyy-MM-dd");var r=e=>e<10?"0"+e:e,i={yyyy:()=>l.getFullYear(),MM:()=>r(l.getMonth()+1),dd:()=>r(l.getDate()),HH:()=>r(l.getHours()),mm:()=>r(l.getMinutes()),ss:()=>r(l.getSeconds()),S:()=>l.getMilliseconds(),EEEE:()=>l.toLocaleString(n,{weekday:"long"}),EEE:()=>l.toLocaleString(n,{weekday:"short"}),a:()=>l.getHours()>=12?"PM":"AM",MMMM:()=>l.toLocaleString(n,{month:"long"}),MMM:()=>l.toLocaleString(n,{month:"short"}),do:()=>{var e=l.getDate();if(e>=11&&e<=13)return e+"th";switch(e%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd";default:return e+"th"}},hh:()=>r(l.getHours()%12||12),Z:()=>{var e=new Date(l.toLocaleString("en-US",{timeZone:"UTC"})),t=new Date(l.toLocaleString("en-US",{timeZone:o})),n=(e.getTime()-t.getTime())/6e4,r=n<=0?"+":"-",i=Math.abs(n),a=(Math.floor(i/60)+"").padStart(2,"0"),d=(i%60+"").padStart(2,"0");return"".concat(r).concat(a).concat(d)},ZZZZ:()=>l.toLocaleString(n,{timeZoneName:"long",timeZone:o}),DST:()=>((e,t)=>"DST"===((e,t)=>{var n;return(null===(n=new Intl.DateTimeFormat("en-US",{timeZone:t,hour12:!1,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:"short"}).formatToParts(e).find((e=>"timeZoneName"===e.type)))||void 0===n?void 0:n.value).includes("DT")?"DST":"Non-DST"})(e,t))(l,o)?"DST":"Non-DST"};return t.replace(/yyyy|MMMM|MMM|MM|dd|HH|mm|ss|S|EEEE|EEE|a|do|hh|ZZZZ|Z|DST/g,(e=>{var t;return null===(t=i[e])||void 0===t?void 0:t.call(i)}))};function J(e,t,n){if(null==e||null==t)return e;var o=e,l=t.toLowerCase();if("string"==typeof e){if("boolean"===l&&!/^(yes|no)$/i.test(e.trim()))return o;if("currency"===l){if(!/\d/.test(e))return o;e=e.replace(/[^\d.-]/g,"")}if("percent"===l&&(e=e.replace(/%/g,""),isNaN(e)||!/\d/.test(e)))return o;if(["number","currency","percent"].includes(l)){if(e=e.replace(/,/g,""),isNaN(e))return o;e=Number(e)}}switch(l){case"number":return"0,0"===n?new Intl.NumberFormat("en-US").format(e):"0.00"===n?e.toFixed(2):o;case"currency":return new Intl.NumberFormat("en-US",{style:"currency",currency:(n||"USD").toUpperCase(),maximumFractionDigits:2}).format(e);case"date":return Y(e,n);case"percent":return"".concat((100*e).toFixed(0),"%");case"boolean":return!0===e||/^yes$/i.test(e)?"Yes":"No";default:return o}}var ee=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if("string"==typeof e){var n=e.trim();if(n.endsWith("%")){var o=parseFloat(n);return isNaN(o)?0:o*t/100}if(n.endsWith("px")){var l=parseFloat(n);return isNaN(l)?0:l}var r=parseFloat(n);return isNaN(r)?0:r}return"number"==typeof e?e:0};function te(e,t){var n={},o=Object.fromEntries(Object.entries(e).map((e=>{var[t,n]=e;return[null==t?void 0:t.toLowerCase(),n]})));return null==t||t.forEach((e=>{var t=e.name,l=o[null==t?void 0:t.toLowerCase()],r=ne(o,null==e?void 0:e.concatColumns),i=oe(r||l,null==e?void 0:e.formatting);n[null==t?void 0:t.toLowerCase()]=i})),n}var ne=(e,t)=>{var n=(null==t?void 0:t.separator)||" ";return((null==t?void 0:t.columns)||[]).map((t=>{var n=Object.keys(e).find((e=>(null==e?void 0:e.toLowerCase())===(null==t?void 0:t.toLowerCase())));return n?e[n]:""})).filter(Boolean).join(n)},oe=(e,t)=>!w(e)&&null!=t&&t.type?J(e,t.type,t.format):e,le=function(e,t,n,o,l){var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:" ";return t.map((t=>{var r=e[t];return n.includes(null==o?void 0:o.toLowerCase())?J(r,null==o?void 0:o.toLowerCase(),l):r})).filter((e=>!w(e))).map(C).join(r)},re=(e,t)=>"string"==typeof e?e:"string"==typeof(null==e?void 0:e.type)?e.type:"string"==typeof t?t:"string"==typeof(null==t?void 0:t.type)?t.type:"text",ie=(e,t)=>Array.isArray(null==e?void 0:e.values)?e.values:Array.isArray(null==t?void 0:t.values)?t.values:[],ae=(e,t,n,o,l)=>{var r;if(e&&0!==e.length&&t){w(n)&&(n="".concat("export","-").concat(Y(new Date,"yyyy-MM-dd HH:mm:ss"),".csv")),null!==(r=n)&&void 0!==r&&null!==(r=r.toLowerCase())&&void 0!==r&&r.endsWith(".csv")||(n+=".csv");var i=t.filter((e=>!0!==(null==e?void 0:e.hidden)&&(null==e?void 0:e.name))).map((e=>{var t;return null!==(t=null==e?void 0:e.alias)&&void 0!==t?t:e.name})),a=e.map((e=>te(e,t))).map((e=>t.filter((e=>!0!==(null==e?void 0:e.hidden))).map((t=>{var n=t.name.toLowerCase(),o=e[n];return'"'.concat((""+(null!=o?o:"")).replace(/"/g,'""'),'"')})).join(","))),d=[i.map(y).join(","),...a].join("\n"),c=new Blob([d],{type:"text/csv;charset=utf-8;"}),u=URL.createObjectURL(c),s=document.createElement("a");s.href=u,s.setAttribute("download",n),s.click(),URL.revokeObjectURL(u),"function"==typeof o&&(null==o||o(l,n,c))}};function de(){return e.createElement("svg",{width:"18",height:"18",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},e.createElement("path",{d:"M10.2426 16.3137L6 12.071L7.41421 10.6568L10.2426 13.4853L15.8995 7.8284L17.3137 9.24262L10.2426 16.3137Z",fill:"currentColor"}),e.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M1 5C1 2.79086 2.79086 1 5 1H19C21.2091 1 23 2.79086 23 5V19C23 21.2091 21.2091 23 19 23H5C2.79086 23 1 21.2091 1 19V5ZM5 3H19C20.1046 3 21 3.89543 21 5V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19V5C3 3.89543 3.89543 3 5 3Z",fill:"currentColor"}))}function ce(t){var{height:n="24",width:o="24"}=t;return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",strokeWidth:"1.5",width:o,height:n},e.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M3 3l18 18M10.584 10.587A2 2 0 0112 10a2 2 0 012 2m-3.416-1.413L9 8m6 6l1.586 1.586M9.879 9.879l4.243 4.243M21 12s-3.6 6-9 6a8.985 8.985 0 01-5.874-2.25M3 12s3.6-6 9-6c1.392 0 2.686.364 3.811.997"}))}function ue(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},e.createElement("circle",{cx:"5",cy:"12",r:"2"}),e.createElement("circle",{cx:"12",cy:"12",r:"2"}),e.createElement("circle",{cx:"19",cy:"12",r:"2"}))}function se(){return e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",fill:"currentColor",viewBox:"0 0 24 24"},e.createElement("circle",{cx:"12",cy:"5",r:"2"}),e.createElement("circle",{cx:"12",cy:"12",r:"2"}),e.createElement("circle",{cx:"12",cy:"19",r:"2"}))}var pe=t=>{var n,{items:r,width:i="36px",height:d="36px",borderRadius:c="50%",noBorder:u=!1,usePortal:p=!1,margin:m="0",top:v="0",menuId:g="toolBarMenu",vertical:h="true",boxShadow:f="",padding:b="0"}=t,[w,x]=o(!1),[y,C]=o(0),[R,E]=o(null),[k,S]=o(0),[D,I]=o({top:0,left:0}),P=a(),A=a([]),M=a([]),L=a(null),O=a(null),W=a(null),H=V(),{state:B={}}=null!==(n=_())&&void 0!==n?n:{},{isSmallWidth:T}=Z(H,null==B?void 0:B.gridID);l((()=>{var e=e=>{P.current&&!P.current.contains(e.target)&&(x(!1),E(null))};return document.addEventListener("click",e),()=>document.removeEventListener("click",e)}),[]),l((()=>{var e=e=>{var t;(null==e||null===(t=e.detail)||void 0===t?void 0:t.sourceId)!==g&&(x(!1),E(null))};return window.addEventListener("closeAllMenus",e),()=>window.removeEventListener("closeAllMenus",e)}),[]);var z=e=>{if(e.stopPropagation(),w){var t=r[y],n=null==t?void 0:t.subItems;if("ArrowDown"===e.key)e.preventDefault(),R===y&&n?S((e=>(e+1)%n.length)):(C((e=>(e+1)%r.length)),E(null));else if("ArrowUp"===e.key)e.preventDefault(),R===y&&n?S((e=>(e-1+n.length)%n.length)):(C((e=>(e-1+r.length)%r.length)),E(null));else if("ArrowRight"===e.key&&n)e.preventDefault(),E(y),S(0);else if("ArrowLeft"===e.key)e.preventDefault(),E(null);else if("Enter"===e.key){if(e.preventDefault(),R===y&&n){var o,l=n[k];null==l||null===(o=l.action)||void 0===o||o.call(l,...Array.isArray(l.args)?l.args:[],e),x(!1),E(null)}else if(t&&!t.subItems){var i;null==t||null===(i=t.action)||void 0===i||i.call(t,...Array.isArray(t.args)?t.args:[],e),x(!1)}}else"Escape"!==e.key&&"Tab"!==e.key||(x(!1),E(null))}};l((()=>{var e;w||null===(e=W.current)||void 0===e||e.focus()}),[w]),l((()=>(document.addEventListener("keydown",z),()=>document.removeEventListener("keydown",z))),[w,y,r,R,k]),l((()=>{w&&A.current[y]&&A.current[y].focus()}),[y,w]),l((()=>{null!==R&&M.current[k]&&M.current[k].focus()}),[k,R]);var j=e=>{e.stopPropagation(),window.dispatchEvent(new CustomEvent("closeAllMenus",{detail:{sourceId:g}})),x((e=>!e)),C(0),E(null);var t=L.current.getBoundingClientRect(),n=L.current.closest(N);if(n){var o=n.getBoundingClientRect();O.current=n,I({top:t.bottom-o.top,left:t.right-o.left})}},F=()=>e.createElement("div",{role:"menu",style:{position:"absolute",top:p?D.top+5:h?"40px":"5px",left:p?null!=B&&B.enableRtl?D.left-50:D.left-115:null!=B&&B.enableRtl?"0":void 0,right:p||null!=B&&B.enableRtl?void 0:"0",backgroundColor:"#fff",border:"1px solid #ccc",borderRadius:"6px",boxShadow:"0 2px 6px rgba(0,0,0,0.15)",padding:p?void 0:"5px 0",minWidth:p?void 0:"225px",zIndex:1e3}},r.map(((t,n)=>null!=t&&t.hidden?null:e.createElement("div",{key:n,className:"menu--item",role:"menuitem",ref:e=>A.current[n]=e,tabIndex:-1,style:{padding:"8px 12px",cursor:"pointer",outline:"none",backgroundColor:y===n?"#eee":"transparent",position:"relative",minHeight:"40px",pointerEvents:null!=t&&t.disabled?"none":"",opacity:null!=t&&t.disabled?"0.5":""},onKeyDown:z,onClick:e=>{var o;e.stopPropagation(),t.subItems?(E(n),S(0)):(e.preventDefault(),null==t||null===(o=t.action)||void 0===o||o.call(t,...Array.isArray(t.args)?t.args:[],e),x(!1))},onMouseEnter:()=>{C(n),t.subItems?(E(n),S(0)):E(null)}},e.createElement("div",{title:null==t?void 0:t.tooltip,className:"icon-content",style:{gap:"12px",alignItems:"center",display:"flex",justifyContent:"space-between"}},e.createElement("div",{className:"opacity--level",style:{display:"flex",alignItems:"center",gap:"10px"}},e.createElement("div",{className:"alignCenter",style:{maxWidth:"24px",minWidth:"24px"}},null==t?void 0:t.icon),e.createElement("div",null,null==t?void 0:t.name)),t.subItems&&e.createElement("span",{style:{fontSize:"12px"}},"▶")),t.subItems&&R===n&&e.createElement("div",{role:"menu",st