ia-table 0.14.3 → 0.14.5

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.
@@ -1,9 +1,9 @@
1
- (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('button.ia-table-btn{border:none;border-radius:8px;text-decoration:none;font-size:14px;font-weight:500;font-family:Manrope,sans-serif;line-height:20px}button.ia-table-btn-url{background-color:transparent;color:#4259ee}button.ia-table-btn-url svg{padding:2px}button.ia-table-btn-url.ia-table-btn-icon{width:24px;height:24px}button.ia-table-btn-primary{background-color:#4259ee;color:#fff}button.ia-table-btn-link{color:#4259ee;background-color:transparent}button.ia-table-btn-danger{color:#fff;background-color:#e15554}button.ia-table-btn-tertiary{border:1px solid #c3c8d4;color:#1f2b4d;background-color:#fff}button.ia-table-btn-tertiary svg{padding:2px!important}button.ia-table-btn-tertiary:hover{border-color:#4259ee;color:#4259ee}button.ia-table-btn-tertiary:hover svg path{fill:#4259ee}button.ia-table-btn-icon{padding:0}button.ia-table-btn.ia-table-btn-disabled{background-color:#c3c8d4;color:#fff}button.ia-table-btn.ia-table-btn-disabled svg path{fill:#b4bac7}button.ia-table-btn-text{height:32px;max-height:32px;border-radius:8px;background-color:#f5f6fa;padding:8px;display:flex;align-items:center;justify-content:center;color:#60697d}button.ia-table-btn-text.ia-table-btn-disabled{background-color:#f8f9fb}button.ia-table-btn-text.ia-table-btn-icon{color:#60697d}button.ia-table-btn-text.ia-table-btn-icon-color{background-color:#eceefd}button.ia-table-btn-text.ia-table-btn-icon-color svg path{fill:#3649c6}button.ia-table-btn svg{height:16px;width:16px;display:flex;align-items:center;justify-content:center}button.ia-table-btn:focus svg path{fill:#3649c6}button.ia-table-btn-small{height:24px;min-width:24px;padding:2px 4px}button.ia-table-btn-small .ia-table-btn-text{padding:2px 12px}button.ia-table-btn-medium{height:28px;min-width:28px;padding:4px 6px}button.ia-table-btn-medium .ia-table-btn-text{padding:4px 12px}button.ia-table-btn-large{height:32px;min-width:32px;padding:6px 8px}button.ia-table-btn.ia-table-btn-simple{width:auto;height:auto;min-width:auto;padding:0}button.ia-table-btn.ia-table-btn-simple svg{padding:0}.tooltip-container{position:relative;display:inline-block}.tooltip{position:absolute;background-color:#1976d2;color:#fff;font-family:Manrope,sans-serif;border-radius:6px;font-size:14px;z-index:9999;box-shadow:0 2px 8px #0003;white-space:normal;max-width:400px;overflow-wrap:break-word;display:flex;align-items:center;justify-content:center;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s ease-in-out}.tooltip-title{font-family:Manrope;font-weight:500;font-size:14px;line-height:20px;vertical-align:middle;padding:6px 12px}.tooltip.tooltip-visible{opacity:1;pointer-events:auto}.tooltip--primary{background:var(--Colors-Primary-Surface-Darker, rgb(54, 73, 198));color:#fff}.tooltip--secondary{background:var(--Colors-Neutrals-Surface-White, rgb(255, 255, 255));color:#000;border:1px solid #ccc}.tooltip--tertiary{background:var(--Colors-Neutrals-Text-icon-Title, rgb(13, 21, 44));color:#fff}.tooltip-arrow{position:absolute;width:10px;height:10px;background-color:inherit;transform:rotate(45deg)}.tooltip--top .tooltip-arrow{bottom:-5px}.tooltip--bottom .tooltip-arrow{top:-5px}.tooltip--left .tooltip-arrow{right:-5px}.tooltip--right .tooltip-arrow{left:-5px}.tooltip-header{padding:8px 12px}.body-text span{display:block;width:100%;text-align:justify;white-space:normal;overflow-wrap:break-word;word-break:break-word;overflow:hidden;text-overflow:ellipsis}.tooltip-btns{align-self:flex-end;gap:4px;margin-left:auto}.tooltip-btn{font-size:8px;border-radius:4px;padding:6px 12px;cursor:pointer;transition:background-color .2s ease,color .2s ease;border:none}.btn-no-bg{background:transparent;color:inherit;border:none;padding:0;min-width:auto}.btn--primary{background-color:#1976d2;color:#fff}.btn--primary:hover{background-color:#1565c0}.btn--secondary{background-color:#fff;color:#333}.btn--secondary:hover{background-color:#fff}.btn--default{background:transparent;color:inherit;border:none;padding:0;min-width:auto}.tooltip-illustration{margin:0;padding:0}.tooltip-illustration img{width:100%;max-width:100%;height:120px;object-fit:cover;border-radius:4px}.tooltip-close{background:none;position:relative;border:none;font-size:16px;cursor:pointer;color:inherit;padding:0;margin-left:auto;flex-shrink:0;width:24px;height:24px;border-radius:50%;transition:background-color .2s ease}.tooltip-close:hover{background-color:#ffffff1a}.tooltip-pagination{justify-content:flex-start;gap:5px;max-width:100%;overflow:hidden}.tooltip-pagination-bar{width:20px;height:5px;border-radius:1px;background-color:#fff;flex-shrink:0}.tooltip-pagination-bar.secondary-variant{background-color:#1976d2}.ia-table-badge{display:inline-flex;border-radius:100px;font-family:Manrope,sans-serif;font-weight:500;white-space:nowrap;padding:0 8px;max-width:-webkit-fill-available}.ia-table-badge-size-small{height:20px;font-size:10px;line-height:16px}.ia-table-badge-size-default{height:24px;font-size:12px;line-height:16px}.ia-table-badge-filled.ia-table-badge-default{background-color:#5f6673;color:#fff}.ia-table-badge-filled.ia-table-badge-success{background-color:#0f8431;color:#fff}.ia-table-badge-filled.ia-table-badge-warning{background-color:#8b6f06;color:#1f2b4d}.ia-table-badge-filled.ia-table-badge-error{background-color:#d62f4c;color:#fff}.ia-table-badge-filled.ia-table-badge-info{background-color:#4159ee;color:#fff}.ia-table-badge-stroke{background-color:#fff}.ia-table-badge-stroke.ia-table-badge-default{border:1px solid #5f6673;color:#5f6673}.ia-table-badge-stroke.ia-table-badge-success{border:1px solid #0f8431;color:#0f8431}.ia-table-badge-stroke.ia-table-badge-warning{border:1px solid #8b6f06;color:#8b6f06}.ia-table-badge-stroke.ia-table-badge-error{border:1px solid #d62f4c;color:#d62f4c}.ia-table-badge-stroke.ia-table-badge-info{border:1px solid #4159ee;color:#4159ee}.ia-table-badge-subtile.ia-table-badge-default{background:#f2f3f4;color:#5f6673}.ia-table-badge-subtile.ia-table-badge-success{background:#f4fff7;color:#0f8431}.ia-table-badge-subtile.ia-table-badge-warning{background:#fdfae9;color:#8b6f06}.ia-table-badge-subtile.ia-table-badge-error{background:#fef4f5;color:#d62f4c}.ia-table-badge-subtile.ia-table-badge-info{background:#f1f3fe;color:#4159ee}.ia-table-badge-label{display:inline-block}.ia-table-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;z-index:1000;animation:ia-table-modal-fade-in .2s ease-out}.ia-table-modal-overlay .ia-table-modal{background-color:#fff;border-radius:8px;box-shadow:0 4px 16px #00000029;max-height:90vh;animation:ia-table-modal-slide-in .2s ease-out;position:relative;max-width:95vw;overflow:hidden}.ia-table-modal-overlay .ia-table-modal-small{width:400px}.ia-table-modal-overlay .ia-table-modal-medium{width:600px}.ia-table-modal-overlay .ia-table-modal-large{width:800px}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-header{min-height:48px;padding:12px 16px;background-color:#eceefd;flex-shrink:0}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-header .ia-table-modal-title{font-family:Manrope,sans-serif;font-weight:800;font-size:16px;line-height:24px;color:#0d152c;margin:0}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-content{padding:16px;flex:1;overflow-y:auto;min-height:100px}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-footer{border-top:1px solid #d9dde7;padding:12px 16px;height:56px;flex-shrink:0;background-color:#fff;border-radius:0 0 8px 8px}@keyframes ia-table-modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes ia-table-modal-slide-in{0%{transform:translateY(-20px);opacity:0}to{transform:translateY(0);opacity:1}}@media(max-width:768px){.ia-table-modal-overlay .ia-table-modal-small,.ia-table-modal-overlay .ia-table-modal-medium,.ia-table-modal-overlay .ia-table-modal-large{width:95vw}}.ia-table-inputbox-container{width:100%;font-family:Manrope,sans-serif;height:32px;margin:0;padding:0}.ia-table-inputbox-container .ia-table-input-label{font-size:12px;font-weight:500;color:#60697d;line-height:16px;margin-bottom:6px}.ia-table-inputbox-container .ia-table-input-container{width:100%;height:inherit;border:1px solid #d9dde7;border-radius:8px;background-color:#fff;padding:0 12px;transition:all .2s ease-in-out;margin:0}.ia-table-inputbox-container .ia-table-input-container:hover:not(.ia-table-input-disabled,.ia-table-cellrender-input){border-color:#4259ee}.ia-table-inputbox-container .ia-table-input-container:focus-within:not(.ia-table-input-disabled,.ia-table-cellrender-input){border-color:#4259ee}.ia-table-inputbox-container .ia-table-input-container.ia-table-input-error{border-color:#ff3b30}.ia-table-inputbox-container .ia-table-input-container.ia-table-input-disabled{background-color:#f7f7f7;border-color:#e2e8f0;cursor:not-allowed}.ia-table-inputbox-container .ia-table-input-container.ia-table-cellrender-input{border:none}.ia-table-inputbox-container .ia-table-input-container.has-left-icon{padding-left:8px}.ia-table-inputbox-container .ia-table-input-container.has-right-icon{padding-right:8px}.ia-table-inputbox-container .ia-table-input-container.has-left-icon-button{padding-left:8px}.ia-table-inputbox-container .ia-table-input-container.has-right-icon-button{padding-right:8px}.ia-table-inputbox-container .ia-table-input-container .left-input-icon,.ia-table-inputbox-container .ia-table-input-container .right-input-icon,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button{height:24px;color:#60697d}.ia-table-inputbox-container .ia-table-input-container .left-input-icon svg,.ia-table-inputbox-container .ia-table-input-container .right-input-icon svg,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button svg,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button svg{width:16px;height:16px}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.hidden,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.hidden,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.hidden,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.hidden{opacity:0;visibility:hidden;transition:opacity .2s ease-in-out,visibility .2s ease-in-out}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.hidden.ia-table-body-cell-lock,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.hidden.ia-table-body-cell-lock,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.hidden.ia-table-body-cell-lock,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.hidden.ia-table-body-cell-lock{opacity:1;visibility:visible}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.hidden.ia-table-body-cell-lock svg path,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.hidden.ia-table-body-cell-lock svg path,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.hidden.ia-table-body-cell-lock svg path,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.hidden.ia-table-body-cell-lock svg path{fill:#b4bac7}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.visible,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.visible,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.visible,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.visible{opacity:1;visibility:visible;transition:opacity .2s ease-in-out,visibility .2s ease-in-out}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper{flex:1;height:100%;margin:0;padding:0}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input{width:100%;height:100%;border:none;outline:none;background:transparent;font-size:14px;font-weight:400;color:#1f2b4d;padding:0 4px;margin:0}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input::placeholder{color:#a0a8b1}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input:disabled{cursor:not-allowed;color:#a0a8b1}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input::-webkit-inner-spin-button,.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}.ia-table-inputbox-container .ia-table-input-error-message{font-size:12px;font-weight:400;color:#ff3b30;margin-top:4px}.ia-table-cell-render-input-disabled{cursor:not-allowed;border:none!important;background-color:#fafafa!important}.ia-table-cell-render-input-disabled input{color:#b4bac7!important;font-weight:400!important}.ia-table-select-search{padding:9.5px 12px}.ia-table-select-search svg path{fill:#a0a8b1}.ia-table-select-search .ia-table-select-search-input{width:100%;border:none;border-radius:8px;padding:0 10px;font-size:14px;outline:none;background-color:inherit;color:#1f2b4d;line-height:16px}.ia-table-select-search .ia-table-select-search-input:focus{border-color:#4259ee}.ia-table-select-search .ia-table-select-search-input::placeholder{color:#b4bac7}.ia-table-select-dropdown{position:absolute;margin-top:6px;border-radius:12px;box-shadow:0 1px 6px #1a277c24;border:none;padding:8px 6px;background-color:#fff;font-family:Manrope,sans-serif;z-index:1050;min-height:135px;max-height:262px}.ia-table-select-reset{width:20px;height:20px;background:transparent;border:none;margin-left:8px}.ia-table-select-reset svg path{fill:#60697d}.ia-table-select-options{max-height:240px;overflow-y:auto;margin-top:2px}.ia-table-select-options::-webkit-scrollbar{width:6px}.ia-table-select-options::-webkit-scrollbar-track{background:transparent}.ia-table-select-options::-webkit-scrollbar-thumb{background-color:#c3c8d4;border-radius:3px}.ia-table-select-options .ia-table-select-option{padding:7.5px 12px;font-size:14px;color:#1f2b4d;line-height:20px;font-weight:500;transition:background-color .2s ease;border-radius:8px}.ia-table-select-options .ia-table-select-option:hover{background-color:#f5f6fa}.ia-table-select-options .ia-table-select-option.ia-table-select-option-selected,.ia-table-select-options .ia-table-select-option.ia-table-select-option-highlighted{background-color:#eef0ff}.ia-table-select-options .ia-table-select-option.ia-table-option-disabled{cursor:not-allowed;-webkit-user-select:none;user-select:none;color:#b4bac7}.ia-table-select-options .ia-table-select-no-options{padding:12px;text-align:center;color:#a0a8b1;font-style:italic}.ia-table-selectbox-container{width:100%;font-family:Manrope,sans-serif;position:relative;margin:0;padding:0}.ia-table-selectbox-container .ia-table-select-label{font-size:12px;font-weight:500;color:#60697d;line-height:16px;margin-bottom:6px;display:block}.ia-table-selectbox-container .ia-table-select-container{width:100%;height:32px;border:1px solid #d9dde7;border-radius:8px;background-color:#fff;padding:0 12px;cursor:pointer;transition:all .2s ease-in-out;position:relative;margin:0}.ia-table-selectbox-container .ia-table-select-container:hover:not(.ia-table-select-disabled,.ia-table-selectrenderer){border-color:#4259ee}.ia-table-selectbox-container .ia-table-select-container.ia-table-select-disabled{background-color:#f2f4fb;border-color:#e2e8f0;cursor:not-allowed;opacity:.7}.ia-table-selectbox-container .ia-table-select-container.ia-table-selectrenderer{border:none}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-value{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:400;color:#1f2b4d;line-height:19px}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-value:empty:before{content:"Select an option";color:#b4bac7}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-arrow{width:16px;height:16px;transition:transform .2s ease}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-arrow svg{transition:transform .2s ease;fill:#404b62}.ia-table-cell-render-select-disabled .ia-table-select-disabled .ia-table-select-value{color:#b4bac7!important;font-weight:400!important}.ia-table-cell-render-select-disabled .ia-table-select-disabled{border:none!important;background-color:inherit!important;cursor:not-allowed!important}.ia-table-cell-render-select-disabled .ia-table-select-disabled svg path{fill:#d9dde7}.ia-checkbox-container{-webkit-user-select:none;user-select:none}.ia-checkbox-input,.ia-checkbox-icon{width:16px;height:16px}.ia-checkbox-input{position:absolute;opacity:0;margin:0}.ia-checkbox-custom{width:16px;height:16px;transition:all .2s ease}.ia-checkbox-label{font-family:Manrope,sans-serif;font-weight:500;font-size:14px;line-height:20px;color:#60697d}.ia-checkbox-disabled{opacity:.5;cursor:not-allowed}.ia-checkbox-disabled .ia-checkbox-input,.ia-checkbox-disabled .ia-checkbox-custom{cursor:not-allowed}.ia-checkbox-container:not(.ia-checkbox-disabled):hover .ia-checkbox-custom{opacity:.9}.ia-checkbox-input:focus-visible+.ia-checkbox-custom{outline:2px solid var(--focus-color, #4259ee);outline-offset:1px}.ia-table-radio-group-container{width:100%}.ia-table-radio-group-container.vertical{flex-direction:column}.ia-table-radio-group-container.horizontal{flex-direction:row}.ia-table-radio-option{padding:0;margin:0;-webkit-user-select:none;user-select:none;font-family:Manrope,sans-serif;font-weight:500;font-size:14px;line-height:20px;color:#60697d}.ia-table-radio-input{opacity:0;height:0;width:0}.ia-table-radio-custom{height:16px;width:16px;min-width:16px;background-color:#fff;border:1px solid #c3c8d4;border-radius:50%;transition:all .2s ease}.ia-table-radio-custom:after{content:"";position:absolute;display:none;width:8px;height:8px;border-radius:50%;background:#4259ee}.ia-table-radio-input:checked~.ia-table-radio-custom{border-color:#4259ee}.ia-table-radio-input:checked~.ia-table-radio-custom:after{display:block}.ia-table-radio-input:focus-visible~.ia-table-radio-custom{box-shadow:0 0 0 3px #4259ee33;outline:none}.ia-table-radio-input:disabled~.ia-table-radio-custom{background-color:#f4f5f7;border-color:#dfe1e6;cursor:not-allowed}.ia-table-radio-input:disabled~.ia-table-radio-custom:after{background:#a5adba}.ia-table-radio-input:disabled~.ia-table-radio-label{color:#a5adba;cursor:not-allowed}.ia-table-radio-label.ia-table-radio-label-selected{color:#1f2b4d}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
- import { jsxs as I, jsx as m } from "react/jsx-runtime";
3
- import * as L from "react";
4
- import { useRef as G, useEffect as V, memo as te, useCallback as U, useState as X } from "react";
5
- import { createPortal as se } from "react-dom";
6
- const We = 200, je = 2, ve = 56, be = 48, De = {
1
+ (function(){"use strict";try{if(typeof document<"u"){var t=document.createElement("style");t.appendChild(document.createTextNode('button.ia-table-btn{border:none;border-radius:8px;text-decoration:none;font-size:14px;font-weight:500;font-family:Manrope,sans-serif;line-height:20px}button.ia-table-btn-url{background-color:transparent;color:#4259ee}button.ia-table-btn-url svg{padding:2px}button.ia-table-btn-url.ia-table-btn-icon{width:24px;height:24px}button.ia-table-btn-primary{background-color:#4259ee;color:#fff}button.ia-table-btn-link{color:#4259ee;background-color:transparent}button.ia-table-btn-danger{color:#fff;background-color:#e15554}button.ia-table-btn-tertiary{border:1px solid #c3c8d4;color:#1f2b4d;background-color:#fff}button.ia-table-btn-tertiary svg{padding:2px!important}button.ia-table-btn-tertiary:hover{border-color:#4259ee;color:#4259ee}button.ia-table-btn-tertiary:hover svg path{fill:#4259ee}button.ia-table-btn-icon{padding:0}button.ia-table-btn.ia-table-btn-disabled{background-color:#c3c8d4;color:#fff}button.ia-table-btn.ia-table-btn-disabled svg path{fill:#b4bac7}button.ia-table-btn-text{height:32px;max-height:32px;border-radius:8px;background-color:#f5f6fa;padding:8px;display:flex;align-items:center;justify-content:center;color:#60697d}button.ia-table-btn-text.ia-table-btn-disabled{background-color:#f8f9fb}button.ia-table-btn-text.ia-table-btn-icon{color:#60697d}button.ia-table-btn-text.ia-table-btn-icon-color{background-color:#eceefd}button.ia-table-btn-text.ia-table-btn-icon-color svg path{fill:#3649c6}button.ia-table-btn svg{height:16px;width:16px;display:flex;align-items:center;justify-content:center}button.ia-table-btn:focus svg path{fill:#3649c6}button.ia-table-btn-small{height:24px;min-width:24px;padding:2px 4px}button.ia-table-btn-small .ia-table-btn-text{padding:2px 12px}button.ia-table-btn-medium{height:28px;min-width:28px;padding:4px 6px}button.ia-table-btn-medium .ia-table-btn-text{padding:4px 12px}button.ia-table-btn-large{height:32px;min-width:32px;padding:6px 8px}button.ia-table-btn.ia-table-btn-simple{width:auto;height:auto;min-width:auto;padding:0}button.ia-table-btn.ia-table-btn-simple svg{padding:0}.tooltip-container{position:relative;display:inline-block}.tooltip{position:absolute;background-color:#1976d2;color:#fff;font-family:Manrope,sans-serif;border-radius:6px;font-size:14px;z-index:9999;box-shadow:0 2px 8px #0003;white-space:normal;max-width:400px;overflow-wrap:break-word;display:flex;align-items:center;justify-content:center;text-align:center;opacity:0;pointer-events:none;transition:opacity .2s ease-in-out}.tooltip-title{font-family:Manrope;font-weight:500;font-size:14px;line-height:20px;vertical-align:middle;padding:6px 12px}.tooltip.tooltip-visible{opacity:1;pointer-events:auto}.tooltip--primary{background:var(--Colors-Primary-Surface-Darker, rgb(54, 73, 198));color:#fff}.tooltip--secondary{background:var(--Colors-Neutrals-Surface-White, rgb(255, 255, 255));color:#000;border:1px solid #ccc}.tooltip--tertiary{background:var(--Colors-Neutrals-Text-icon-Title, rgb(13, 21, 44));color:#fff}.tooltip-arrow{position:absolute;width:10px;height:10px;background-color:inherit;transform:rotate(45deg)}.tooltip--top .tooltip-arrow{bottom:-5px}.tooltip--bottom .tooltip-arrow{top:-5px}.tooltip--left .tooltip-arrow{right:-5px}.tooltip--right .tooltip-arrow{left:-5px}.tooltip-header{padding:8px 12px}.body-text span{display:block;width:100%;text-align:justify;white-space:normal;overflow-wrap:break-word;word-break:break-word;overflow:hidden;text-overflow:ellipsis}.tooltip-btns{align-self:flex-end;gap:4px;margin-left:auto}.tooltip-btn{font-size:8px;border-radius:4px;padding:6px 12px;cursor:pointer;transition:background-color .2s ease,color .2s ease;border:none}.btn-no-bg{background:transparent;color:inherit;border:none;padding:0;min-width:auto}.btn--primary{background-color:#1976d2;color:#fff}.btn--primary:hover{background-color:#1565c0}.btn--secondary{background-color:#fff;color:#333}.btn--secondary:hover{background-color:#fff}.btn--default{background:transparent;color:inherit;border:none;padding:0;min-width:auto}.tooltip-illustration{margin:0;padding:0}.tooltip-illustration img{width:100%;max-width:100%;height:120px;object-fit:cover;border-radius:4px}.tooltip-close{background:none;position:relative;border:none;font-size:16px;cursor:pointer;color:inherit;padding:0;margin-left:auto;flex-shrink:0;width:24px;height:24px;border-radius:50%;transition:background-color .2s ease}.tooltip-close:hover{background-color:#ffffff1a}.tooltip-pagination{justify-content:flex-start;gap:5px;max-width:100%;overflow:hidden}.tooltip-pagination-bar{width:20px;height:5px;border-radius:1px;background-color:#fff;flex-shrink:0}.tooltip-pagination-bar.secondary-variant{background-color:#1976d2}.ia-table-badge{display:inline-flex;border-radius:100px;font-family:Manrope,sans-serif;font-weight:500;white-space:nowrap;padding:0 8px;max-width:-webkit-fill-available}.ia-table-badge-size-small{height:20px;font-size:10px;line-height:16px}.ia-table-badge-size-default{height:24px;font-size:12px;line-height:16px}.ia-table-badge-filled.ia-table-badge-default{background-color:#5f6673;color:#fff}.ia-table-badge-filled.ia-table-badge-success{background-color:#0f8431;color:#fff}.ia-table-badge-filled.ia-table-badge-warning{background-color:#8b6f06;color:#1f2b4d}.ia-table-badge-filled.ia-table-badge-error{background-color:#d62f4c;color:#fff}.ia-table-badge-filled.ia-table-badge-info{background-color:#4159ee;color:#fff}.ia-table-badge-stroke{background-color:#fff}.ia-table-badge-stroke.ia-table-badge-default{border:1px solid #5f6673;color:#5f6673}.ia-table-badge-stroke.ia-table-badge-success{border:1px solid #0f8431;color:#0f8431}.ia-table-badge-stroke.ia-table-badge-warning{border:1px solid #8b6f06;color:#8b6f06}.ia-table-badge-stroke.ia-table-badge-error{border:1px solid #d62f4c;color:#d62f4c}.ia-table-badge-stroke.ia-table-badge-info{border:1px solid #4159ee;color:#4159ee}.ia-table-badge-subtile.ia-table-badge-default{background:#f2f3f4;color:#5f6673}.ia-table-badge-subtile.ia-table-badge-success{background:#f4fff7;color:#0f8431}.ia-table-badge-subtile.ia-table-badge-warning{background:#fdfae9;color:#8b6f06}.ia-table-badge-subtile.ia-table-badge-error{background:#fef4f5;color:#d62f4c}.ia-table-badge-subtile.ia-table-badge-info{background:#f1f3fe;color:#4159ee}.ia-table-badge-label{display:inline-block}.ia-table-modal-overlay{position:fixed;top:0;left:0;right:0;bottom:0;background-color:#00000080;z-index:1000;animation:ia-table-modal-fade-in .2s ease-out}.ia-table-modal-overlay .ia-table-modal{background-color:#fff;border-radius:8px;box-shadow:0 4px 16px #00000029;max-height:90vh;animation:ia-table-modal-slide-in .2s ease-out;position:relative;max-width:95vw;overflow:hidden}.ia-table-modal-overlay .ia-table-modal-small{width:400px}.ia-table-modal-overlay .ia-table-modal-medium{width:600px}.ia-table-modal-overlay .ia-table-modal-large{width:800px}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-header{min-height:48px;padding:12px 16px;background-color:#eceefd;flex-shrink:0}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-header .ia-table-modal-title{font-family:Manrope,sans-serif;font-weight:800;font-size:16px;line-height:24px;color:#0d152c;margin:0}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-content{padding:16px;flex:1;overflow-y:auto;min-height:100px}.ia-table-modal-overlay .ia-table-modal .ia-table-modal-footer{border-top:1px solid #d9dde7;padding:12px 16px;height:56px;flex-shrink:0;background-color:#fff;border-radius:0 0 8px 8px}@keyframes ia-table-modal-fade-in{0%{opacity:0}to{opacity:1}}@keyframes ia-table-modal-slide-in{0%{transform:translateY(-20px);opacity:0}to{transform:translateY(0);opacity:1}}@media(max-width:768px){.ia-table-modal-overlay .ia-table-modal-small,.ia-table-modal-overlay .ia-table-modal-medium,.ia-table-modal-overlay .ia-table-modal-large{width:95vw}}.ia-table-inputbox-container{width:100%;font-family:Manrope,sans-serif;height:32px;margin:0;padding:0}.ia-table-inputbox-container .ia-table-input-label{font-size:12px;font-weight:500;color:#60697d;line-height:16px;margin-bottom:6px}.ia-table-inputbox-container .ia-table-input-container{width:100%;height:inherit;border:1px solid #d9dde7;border-radius:8px;background-color:#fff;padding:0 12px;transition:all .2s ease-in-out;margin:0}.ia-table-inputbox-container .ia-table-input-container:hover:not(.ia-table-input-disabled,.ia-table-cellrender-input){border-color:#4259ee}.ia-table-inputbox-container .ia-table-input-container:focus-within:not(.ia-table-input-disabled,.ia-table-cellrender-input){border-color:#4259ee}.ia-table-inputbox-container .ia-table-input-container.ia-table-input-error{border-color:#ff3b30}.ia-table-inputbox-container .ia-table-input-container.ia-table-input-disabled{background-color:#f7f7f7;border-color:#e2e8f0;cursor:not-allowed}.ia-table-inputbox-container .ia-table-input-container.ia-table-cellrender-input{border:none}.ia-table-inputbox-container .ia-table-input-container.has-left-icon{padding-left:8px}.ia-table-inputbox-container .ia-table-input-container.has-right-icon{padding-right:8px}.ia-table-inputbox-container .ia-table-input-container.has-left-icon-button{padding-left:8px}.ia-table-inputbox-container .ia-table-input-container.has-right-icon-button{padding-right:8px}.ia-table-inputbox-container .ia-table-input-container .left-input-icon,.ia-table-inputbox-container .ia-table-input-container .right-input-icon,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button{height:24px;color:#60697d}.ia-table-inputbox-container .ia-table-input-container .left-input-icon svg,.ia-table-inputbox-container .ia-table-input-container .right-input-icon svg,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button svg,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button svg{width:16px;height:16px}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.hidden,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.hidden,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.hidden,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.hidden{opacity:0;visibility:hidden;transition:opacity .2s ease-in-out,visibility .2s ease-in-out}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.hidden.ia-table-body-cell-lock,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.hidden.ia-table-body-cell-lock,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.hidden.ia-table-body-cell-lock,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.hidden.ia-table-body-cell-lock{opacity:1;visibility:visible}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.hidden.ia-table-body-cell-lock svg path,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.hidden.ia-table-body-cell-lock svg path,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.hidden.ia-table-body-cell-lock svg path,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.hidden.ia-table-body-cell-lock svg path{fill:#b4bac7}.ia-table-inputbox-container .ia-table-input-container .left-input-icon.visible,.ia-table-inputbox-container .ia-table-input-container .right-input-icon.visible,.ia-table-inputbox-container .ia-table-input-container .left-input-icon-button.visible,.ia-table-inputbox-container .ia-table-input-container .right-input-icon-button.visible{opacity:1;visibility:visible;transition:opacity .2s ease-in-out,visibility .2s ease-in-out}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper{flex:1;height:100%;margin:0;padding:0}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input{width:100%;height:100%;border:none;outline:none;background:transparent;font-size:14px;font-weight:400;color:#1f2b4d;padding:0 4px;margin:0}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input::placeholder{color:#a0a8b1}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input:disabled{cursor:not-allowed;color:#a0a8b1}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input::-webkit-inner-spin-button,.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input::-webkit-outer-spin-button{-webkit-appearance:none;-moz-appearance:none;appearance:none;margin:0}.ia-table-inputbox-container .ia-table-input-container .ia-table-input-wrapper .ia-table-input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}.ia-table-inputbox-container .ia-table-input-error-message{font-size:12px;font-weight:400;color:#ff3b30;margin-top:4px}.ia-table-cell-render-input-disabled{cursor:not-allowed;border:none!important;background-color:#fafafa!important}.ia-table-cell-render-input-disabled input{color:#b4bac7!important;font-weight:400!important}.ia-table-select-search{padding:9.5px 12px}.ia-table-select-search svg path{fill:#a0a8b1}.ia-table-select-search .ia-table-select-search-input{width:100%;border:none;border-radius:8px;padding:0 10px;font-size:14px;outline:none;background-color:inherit;color:#1f2b4d;line-height:16px}.ia-table-select-search .ia-table-select-search-input:focus{border-color:#4259ee}.ia-table-select-search .ia-table-select-search-input::placeholder{color:#b4bac7}.ia-table-select-dropdown{position:absolute;margin-top:6px;border-radius:12px;box-shadow:0 1px 6px #1a277c24;border:none;padding:8px 6px;background-color:#fff;font-family:Manrope,sans-serif;z-index:1050;min-height:135px;max-height:262px}.ia-table-select-dropdown.ia-table-select-dropdown-above{margin-top:0;margin-bottom:6px;bottom:100%;top:auto}.ia-table-select-reset{width:20px;height:20px;background:transparent;border:none;margin-left:8px}.ia-table-select-reset svg path{fill:#60697d}.ia-table-select-options{max-height:240px;overflow-y:auto;margin-top:2px}.ia-table-select-options::-webkit-scrollbar{width:6px}.ia-table-select-options::-webkit-scrollbar-track{background:transparent}.ia-table-select-options::-webkit-scrollbar-thumb{background-color:#c3c8d4;border-radius:3px}.ia-table-select-options .ia-table-select-option{padding:7.5px 12px;font-size:14px;color:#1f2b4d;line-height:20px;font-weight:500;transition:background-color .2s ease;border-radius:8px}.ia-table-select-options .ia-table-select-option:hover{background-color:#f5f6fa}.ia-table-select-options .ia-table-select-option.ia-table-select-option-selected,.ia-table-select-options .ia-table-select-option.ia-table-select-option-highlighted{background-color:#eef0ff}.ia-table-select-options .ia-table-select-option.ia-table-option-disabled{cursor:not-allowed;-webkit-user-select:none;user-select:none;color:#b4bac7}.ia-table-select-options .ia-table-select-no-options{padding:12px;text-align:center;color:#a0a8b1;font-style:italic}.ia-table-selectbox-container{width:100%;font-family:Manrope,sans-serif;position:relative;margin:0;padding:0}.ia-table-selectbox-container .ia-table-select-label{font-size:12px;font-weight:500;color:#60697d;line-height:16px;margin-bottom:6px;display:block}.ia-table-selectbox-container .ia-table-select-container{width:100%;height:32px;border:1px solid #d9dde7;border-radius:8px;background-color:#fff;padding:0 12px;cursor:pointer;transition:all .2s ease-in-out;position:relative;margin:0}.ia-table-selectbox-container .ia-table-select-container:hover:not(.ia-table-select-disabled,.ia-table-selectrenderer){border-color:#4259ee}.ia-table-selectbox-container .ia-table-select-container.ia-table-select-disabled{background-color:#f2f4fb;border-color:#e2e8f0;cursor:not-allowed;opacity:.7}.ia-table-selectbox-container .ia-table-select-container.ia-table-selectrenderer{border:none}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-value{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;font-weight:400;color:#1f2b4d;line-height:19px}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-value:empty:before{content:"Select an option";color:#b4bac7}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-arrow{width:16px;height:16px;transition:transform .2s ease}.ia-table-selectbox-container .ia-table-select-container .ia-table-select-arrow svg{transition:transform .2s ease;fill:#404b62}.ia-table-cell-render-select-disabled .ia-table-select-disabled .ia-table-select-value{color:#b4bac7!important;font-weight:400!important}.ia-table-cell-render-select-disabled .ia-table-select-disabled{border:none!important;background-color:inherit!important;cursor:not-allowed!important}.ia-table-cell-render-select-disabled .ia-table-select-disabled svg path{fill:#d9dde7}.ia-checkbox-container{-webkit-user-select:none;user-select:none}.ia-checkbox-input,.ia-checkbox-icon{width:16px;height:16px}.ia-checkbox-input{position:absolute;opacity:0;margin:0}.ia-checkbox-custom{width:16px;height:16px;transition:all .2s ease}.ia-checkbox-label{font-family:Manrope,sans-serif;font-weight:500;font-size:14px;line-height:20px;color:#60697d}.ia-checkbox-disabled{opacity:.5;cursor:not-allowed}.ia-checkbox-disabled .ia-checkbox-input,.ia-checkbox-disabled .ia-checkbox-custom{cursor:not-allowed}.ia-checkbox-container:not(.ia-checkbox-disabled):hover .ia-checkbox-custom{opacity:.9}.ia-checkbox-input:focus-visible+.ia-checkbox-custom{outline:2px solid var(--focus-color, #4259ee);outline-offset:1px}.ia-table-radio-group-container{width:100%}.ia-table-radio-group-container.vertical{flex-direction:column}.ia-table-radio-group-container.horizontal{flex-direction:row}.ia-table-radio-option{padding:0;margin:0;-webkit-user-select:none;user-select:none;font-family:Manrope,sans-serif;font-weight:500;font-size:14px;line-height:20px;color:#60697d}.ia-table-radio-input{opacity:0;height:0;width:0}.ia-table-radio-custom{height:16px;width:16px;min-width:16px;background-color:#fff;border:1px solid #c3c8d4;border-radius:50%;transition:all .2s ease}.ia-table-radio-custom:after{content:"";position:absolute;display:none;width:8px;height:8px;border-radius:50%;background:#4259ee}.ia-table-radio-input:checked~.ia-table-radio-custom{border-color:#4259ee}.ia-table-radio-input:checked~.ia-table-radio-custom:after{display:block}.ia-table-radio-input:focus-visible~.ia-table-radio-custom{box-shadow:0 0 0 3px #4259ee33;outline:none}.ia-table-radio-input:disabled~.ia-table-radio-custom{background-color:#f4f5f7;border-color:#dfe1e6;cursor:not-allowed}.ia-table-radio-input:disabled~.ia-table-radio-custom:after{background:#a5adba}.ia-table-radio-input:disabled~.ia-table-radio-label{color:#a5adba;cursor:not-allowed}.ia-table-radio-label.ia-table-radio-label-selected{color:#1f2b4d}')),document.head.appendChild(t)}}catch(a){console.error("vite-plugin-css-injected-by-js",a)}})();
2
+ import { jsxs as M, jsx as m } from "react/jsx-runtime";
3
+ import * as S from "react";
4
+ import { useRef as q, useEffect as V, memo as ne, useCallback as U, useState as J, useMemo as we } from "react";
5
+ import { createPortal as re } from "react-dom";
6
+ const Fe = 200, Ze = 2, Ce = 56, Ee = 48, Oe = {
7
7
  default: {
8
8
  height: 46,
9
9
  padding: 24
@@ -16,11 +16,11 @@ const We = 200, je = 2, ve = 56, be = 48, De = {
16
16
  height: 52,
17
17
  padding: 32
18
18
  }
19
- }, Fe = {
19
+ }, Ue = {
20
20
  46: "32px",
21
21
  30: "24px",
22
22
  52: "32px"
23
- }, Ze = 16, Oe = [
23
+ }, Be = 16, Ge = [
24
24
  "int",
25
25
  "str",
26
26
  "percentage",
@@ -35,80 +35,80 @@ const We = 200, je = 2, ve = 56, be = 48, De = {
35
35
  "daterangepicker",
36
36
  "list",
37
37
  "dropdown"
38
- ], Ue = 0, Ge = "furthestFromViewport", qe = 2, ze = !1, Be = "infiniteCache", Ye = {
38
+ ], qe = 0, ze = "furthestFromViewport", Ye = 2, Ke = !1, Xe = "infiniteCache", Je = {
39
39
  maxPersistedBlocks: 5,
40
40
  persistBlockData: !0,
41
41
  compressionEnabled: !1
42
- }, Ke = 1e6, le = 3, Xe = 7, Je = 6, Qe = ({
42
+ }, Qe = 1e6, le = 3, et = 7, tt = 6, nt = ({
43
43
  isFrozen: e,
44
44
  column: t,
45
45
  frozenColumns: n
46
46
  }) => {
47
- const s = e && t.pinned !== "right", a = e && t.pinned === "right", i = F(t), o = s && n.positions ? n.positions[i] : null, c = s && n.indexes ? n.indexes.indexOf(i) : null, r = a && n.rightPinned && n.rightPinned.positions ? n.rightPinned.positions[i] : null;
47
+ const l = e && t.pinned !== "right", a = e && t.pinned === "right", i = F(t), o = l && n.positions ? n.positions[i] : null, c = l && n.indexes ? n.indexes.indexOf(i) : null, r = a && n.rightPinned && n.rightPinned.positions ? n.rightPinned.positions[i] : null;
48
48
  return {
49
- isPinnedLeft: s,
49
+ isPinnedLeft: l,
50
50
  isPinnedRight: a,
51
51
  frozenPosition: o,
52
52
  frozenIndex: c,
53
53
  rightPinnedPosition: r
54
54
  };
55
- }, we = (e, t, n) => e ? t || n ? be : ve : 0, et = (e, t) => {
55
+ }, ye = (e, t, n) => e ? t || n ? Ee : Ce : 0, it = (e, t) => {
56
56
  let n = e;
57
57
  return t.includes(".") && !n[t] ? (t.split(".").every((a) => n[a] ? (n = n[a], !0) : !1), n) : Object.prototype.hasOwnProperty.call(n, t);
58
- }, F = (e) => e && (e.colId || e.field || e.column_name || e.accessor || e.groupId || e.headerName) || "", Ce = (e, t = !1) => e.uniqueHierarchyId ? t && e.originalPath ? e.originalPath : e.path || [] : e.path || [], W = (e) => e.is_hidden || e.hidden || e.hide || !1, z = (e, t, n) => {
59
- let s = t;
60
- return e.length <= t && (s = e.findIndex((a) => a === n)), s >= 1 && e.length > 1 ? `${e.slice(0, s).join("/")}/${n ?? ""}` : n ?? "";
61
- }, re = (e, t = 0) => !e || !e.length ? t : e.every(
62
- (s) => s.headerName === ""
58
+ }, F = (e) => e && (e.colId || e.field || e.column_name || e.accessor || e.groupId || e.headerName) || "", Ne = (e, t = !1) => e.uniqueHierarchyId ? t && e.originalPath ? e.originalPath : e.path || [] : e.path || [], W = (e) => e.is_hidden || e.hidden || e.hide || !1, Y = (e, t, n) => {
59
+ let l = t;
60
+ return e.length <= t && (l = e.findIndex((a) => a === n)), l >= 1 && e.length > 1 ? `${e.slice(0, l).join("/")}/${n ?? ""}` : n ?? "";
61
+ }, oe = (e, t = 0) => !e || !e.length ? t : e.every(
62
+ (l) => l.headerName === ""
63
63
  ) ? t - 1 : Math.max(
64
- ...e.map((s) => s.children && s.children.length ? re(s.children, t + 1) : t),
64
+ ...e.map((l) => l.children && l.children.length ? oe(l.children, t + 1) : t),
65
65
  t
66
- ), Ee = (e, t) => {
66
+ ), $e = (e, t) => {
67
67
  if (!Array.isArray(e) || t < 0) return [];
68
68
  if (t === 0) {
69
69
  const c = /* @__PURE__ */ new Set(), r = [];
70
70
  for (const f of e) {
71
- const l = f.path;
72
- if (!(l != null && l.length) || !l[0]) continue;
73
- F(f) === l[0] ? r.push(`null-${l[0]}`) : c.has(l[0]) || (c.add(l[0]), r.push(l[0]));
71
+ const s = f.path;
72
+ if (!(s != null && s.length) || !s[0]) continue;
73
+ F(f) === s[0] ? r.push(`null-${s[0]}`) : c.has(s[0]) || (c.add(s[0]), r.push(s[0]));
74
74
  }
75
75
  return r;
76
76
  }
77
- const n = /* @__PURE__ */ Object.create(null), s = /* @__PURE__ */ new Map(), a = [], i = [];
77
+ const n = /* @__PURE__ */ Object.create(null), l = /* @__PURE__ */ new Map(), a = [], i = [];
78
78
  let o;
79
79
  for (const c of e) {
80
80
  const r = c.path;
81
81
  if (!(r != null && r.length) || !r[0]) continue;
82
82
  const f = r[0];
83
83
  n[f] || (n[f] = [], a.push(f)), n[f].push(r);
84
- const l = F(c);
85
- l && s.set(r, l);
84
+ const s = F(c);
85
+ s && l.set(r, s);
86
86
  }
87
87
  for (let c = 0; c < a.length; c++) {
88
88
  const r = n[a[c]];
89
- if (r.length > 1 && r.some((l) => l.length > 1))
90
- for (const l of r) {
91
- const p = s.get(l);
92
- if (l.length > t) {
93
- const d = l[t];
94
- if (p === l[t]) {
95
- const u = z(
96
- l,
89
+ if (r.length > 1 && r.some((s) => s.length > 1))
90
+ for (const s of r) {
91
+ const p = l.get(s);
92
+ if (s.length > t) {
93
+ const d = s[t];
94
+ if (p === s[t]) {
95
+ const u = Y(
96
+ s,
97
97
  t,
98
98
  p
99
99
  );
100
100
  i.push(`null-${u}`), o = `null-${p}`;
101
101
  } else if (d !== o) {
102
- const u = z(
103
- l,
102
+ const u = Y(
103
+ s,
104
104
  t,
105
105
  d
106
106
  );
107
107
  i.push(u), o = d;
108
108
  }
109
109
  } else {
110
- const d = z(
111
- l,
110
+ const d = Y(
111
+ s,
112
112
  t,
113
113
  p
114
114
  ), u = d ? `null-${d}` : "null", h = p ? `null-${p}` : "null";
@@ -116,18 +116,18 @@ const We = 200, je = 2, ve = 56, be = 48, De = {
116
116
  }
117
117
  }
118
118
  else {
119
- const l = r[0], p = s.get(l), d = z(
120
- l,
119
+ const s = r[0], p = l.get(s), d = Y(
120
+ s,
121
121
  t,
122
122
  p
123
123
  );
124
- if (l.length > t) {
125
- const u = l[t];
126
- if (p === l[t])
124
+ if (s.length > t) {
125
+ const u = s[t];
126
+ if (p === s[t])
127
127
  i.push(`null-${d}`);
128
128
  else if (u !== i[i.length - 1]) {
129
- const h = z(
130
- l,
129
+ const h = Y(
130
+ s,
131
131
  t,
132
132
  u
133
133
  );
@@ -140,12 +140,12 @@ const We = 200, je = 2, ve = 56, be = 48, De = {
140
140
  }
141
141
  }
142
142
  return i;
143
- }, ye = (e) => {
144
- const t = {}, n = (s) => {
145
- Array.isArray(s) && s.forEach((a) => {
143
+ }, xe = (e) => {
144
+ const t = {}, n = (l) => {
145
+ Array.isArray(l) && l.forEach((a) => {
146
146
  var f;
147
147
  if (typeof a != "object" || a === null) return;
148
- const i = F(a), o = z(
148
+ const i = F(a), o = Y(
149
149
  a.path || [],
150
150
  (((f = a.path) == null ? void 0 : f.length) || 1) - 1,
151
151
  i
@@ -154,9 +154,9 @@ const We = 200, je = 2, ve = 56, be = 48, De = {
154
154
  });
155
155
  };
156
156
  return n(e), t;
157
- }, tt = (e) => {
158
- const t = {}, n = (s) => {
159
- Array.isArray(s) && s.forEach((a) => {
157
+ }, at = (e) => {
158
+ const t = {}, n = (l) => {
159
+ Array.isArray(l) && l.forEach((a) => {
160
160
  if (!(typeof a != "object" || a === null))
161
161
  if (!Array.isArray(a.children) || a.children.length === 0) {
162
162
  const i = F(a);
@@ -166,12 +166,12 @@ const We = 200, je = 2, ve = 56, be = 48, De = {
166
166
  });
167
167
  };
168
168
  return n(e), t;
169
- }, oe = (e, t, n = 0, s = null, a = 150, i = [], o = [], c = !1, r = null) => !e || !Array.isArray(e) ? {} : { processedColumns: e.map((l) => {
170
- var k;
171
- const p = l.autoHeight === !0 || c, d = F(l), u = l.value ? `${d}[${l.value}]` : d, h = [...o, u], g = l.children && l.children.length > 0, w = l.children && l.children.some((B) => B.columnGroupShow !== "open") || !1, v = ((k = l.children) == null ? void 0 : k.length) && !w, N = t.isAllGroupExpanded || t[d] === !0 || i.includes(d) || v || !1, $ = s ? t[s] === !0 || t.isAllGroupExpanded || i.includes(s) || v : !0, x = l.columnGroupShow === "open" && !$ || !s && W(l);
172
- N && $ && t[d] !== !0 && !i.includes(d) && v && i.push(d);
173
- const _ = g ? oe(
174
- l.children || [],
169
+ }, ce = (e, t, n = 0, l = null, a = 150, i = [], o = [], c = !1, r = null) => !e || !Array.isArray(e) ? {} : { processedColumns: e.map((s) => {
170
+ var P;
171
+ const p = s.autoHeight === !0 || c, d = F(s), u = s.value ? `${d}[${s.value}]` : d, h = [...o, u], g = s.children && s.children.length > 0, E = s.children && s.children.some((K) => K.columnGroupShow !== "open") || !1, v = ((P = s.children) == null ? void 0 : P.length) && !E, y = t.isAllGroupExpanded || t[d] === !0 || i.includes(d) || v || !1, x = l ? t[l] === !0 || t.isAllGroupExpanded || i.includes(l) || v : !0, L = s.columnGroupShow === "open" && !x || !l && W(s);
172
+ y && x && t[d] !== !0 && !i.includes(d) && v && i.push(d);
173
+ const T = g ? ce(
174
+ s.children || [],
175
175
  t,
176
176
  n + 1,
177
177
  u,
@@ -184,61 +184,61 @@ const We = 200, je = 2, ve = 56, be = 48, De = {
184
184
  // Pass down autoHeight to children
185
185
  r
186
186
  // Pass down column counts
187
- ) : {}, S = g ? _.processedColumns.reduce(
188
- (B, Y) => B + (Y.colSpan || 1),
187
+ ) : {}, k = g ? T.processedColumns.reduce(
188
+ (K, X) => K + (X.colSpan || 1),
189
189
  0
190
- ) : 1, Z = s !== null, A = Z ? !1 : x, R = Object.prototype.hasOwnProperty.call(
191
- l,
190
+ ) : 1, Z = l !== null, I = Z ? !1 : L, A = Object.prototype.hasOwnProperty.call(
191
+ s,
192
192
  "headerName"
193
- ), j = !g, y = {
194
- ...l,
193
+ ), j = !g, N = {
194
+ ...s,
195
195
  level: n,
196
- parentField: s,
196
+ parentField: l,
197
197
  // Store the unique path identifier for this column (includes value for pivot columns)
198
198
  pathIdentifier: u,
199
199
  path: h,
200
200
  // Track column's position in the hierarchy
201
201
  notApplyGrouping: v,
202
- headerName: l.headerName || l.label || (R ? "" : F(l)),
202
+ headerName: s.headerName || s.label || (A ? "" : F(s)),
203
203
  hasChildren: g,
204
- isExpanded: N,
205
- hidden: A,
206
- is_hidden: x,
204
+ isExpanded: y,
205
+ hidden: I,
206
+ is_hidden: L,
207
207
  belongsToColumnGroup: Z,
208
- children: _.processedColumns || [],
209
- colSpan: S,
210
- field: l.field || F(l),
211
- is_frozen: l.is_frozen || l.pinned === "left" || l.pinned === "right",
212
- pinned: l.pinned ? l.pinned : l.is_frozen ? "left" : null,
208
+ children: T.processedColumns || [],
209
+ colSpan: k,
210
+ field: s.field || F(s),
211
+ is_frozen: s.is_frozen || s.pinned === "left" || s.pinned === "right",
212
+ pinned: s.pinned ? s.pinned : s.is_frozen ? "left" : null,
213
213
  // rowSpan: 1, // Will be adjusted during header rendering
214
214
  isLeaf: j,
215
215
  autoHeight: p,
216
216
  // Explicitly set autoHeight based on parent or own value
217
- isSearchable: l.isSearchable || l.is_searchable
217
+ isSearchable: s.isSearchable || s.is_searchable
218
218
  };
219
- return r && j && !x && (y.is_frozen && y.pinned !== "right" || y.pinned === "left" ? r.left++ : y.is_frozen && y.pinned === "right" ? r.right++ : r.normal++), y;
219
+ return r && j && !L && (N.is_frozen && N.pinned !== "right" || N.pinned === "left" ? r.left++ : N.is_frozen && N.pinned === "right" ? r.right++ : r.normal++), N;
220
220
  }), initialGroupedColumns: i };
221
- let ae = 0;
222
- const Ne = (e, {
221
+ let se = 0;
222
+ const Le = (e, {
223
223
  pinnedType: t,
224
224
  minWidth: n = 150
225
225
  } = {}) => {
226
226
  if (!e || !Array.isArray(e))
227
227
  return { headerRows: [], leafColumns: [] };
228
- ae = 0;
229
- const s = (p) => W(p) ? !1 : t === "leftPinnedOnly" ? Q(p) : t === "rightPinnedOnly" ? ee(p) : t === "normal" ? !Q(p) && !ee(p) : !0, a = re(e), i = Array(a + 1).fill(null).map(() => []), o = [];
230
- ce(
228
+ se = 0;
229
+ const l = (p) => W(p) ? !1 : t === "leftPinnedOnly" ? ee(p) : t === "rightPinnedOnly" ? te(p) : t === "normal" ? !ee(p) && !te(p) : !0, a = oe(e), i = Array(a + 1).fill(null).map(() => []), o = [];
230
+ de(
231
231
  e,
232
232
  i,
233
233
  o,
234
234
  /* @__PURE__ */ new Set(),
235
235
  a,
236
- s
236
+ l
237
237
  ), Math.max(...i.map((p) => p.length));
238
238
  const r = [];
239
239
  i.forEach((p, d) => {
240
240
  if (d !== i.length - 1) {
241
- const u = Ee(
241
+ const u = $e(
242
242
  i[i.length - 1],
243
243
  d
244
244
  );
@@ -246,12 +246,12 @@ const Ne = (e, {
246
246
  } else
247
247
  r[d] = p;
248
248
  });
249
- const f = ye(e), l = r.map(
249
+ const f = xe(e), s = r.map(
250
250
  (p, d) => d === i.length - 1 ? p : p.map(
251
251
  (u, h) => {
252
252
  var g;
253
253
  if (u.startsWith("null")) {
254
- const w = (g = u.split("-")[1]) == null ? void 0 : g.toLowerCase(), v = f[w], N = (v == null ? void 0 : v.width) || n, $ = (v == null ? void 0 : v.is_hidden) || !1;
254
+ const E = (g = u.split("-")[1]) == null ? void 0 : g.toLowerCase(), v = f[E], y = (v == null ? void 0 : v.width) || n, x = (v == null ? void 0 : v.is_hidden) || !1;
255
255
  return {
256
256
  headerName: "",
257
257
  isPlaceholder: !0,
@@ -264,8 +264,8 @@ const Ne = (e, {
264
264
  field: `empty_${d}_${h}`,
265
265
  id: `empty_${d}_${h}`,
266
266
  accessor: `empty_${d}_${h}`,
267
- width: N,
268
- is_hidden: $,
267
+ width: y,
268
+ is_hidden: x,
269
269
  emptyCell: !0,
270
270
  is_frozen: t === "leftPinnedOnly" || t === "rightPinnedOnly",
271
271
  pinned: t === "leftPinnedOnly" ? "left" : t === "rightPinnedOnly" ? "right" : null,
@@ -277,71 +277,71 @@ const Ne = (e, {
277
277
  }
278
278
  )
279
279
  );
280
- return l.forEach((p) => {
280
+ return s.forEach((p) => {
281
281
  let d = 0, u = 0;
282
282
  p.forEach((h) => {
283
- const g = $e(h, h.hasChildren, n);
283
+ const g = He(h, h.hasChildren, n);
284
284
  h.width = g, d += h.isWithEmptyHeaderName ? 0 : g || 0, u += h.isParentWithChildEmptyHeaderName ? g : 0, h.isWithEmptyHeaderName ? (h.leftTotalWidth = d + g - u, u -= g) : h.leftTotalWidth = d;
285
285
  });
286
286
  }), {
287
- headerRows: l,
287
+ headerRows: s,
288
288
  leafColumns: o
289
289
  };
290
- }, ce = (e, t, n, s, a, i, o = 0, c = [], r = !1) => {
290
+ }, de = (e, t, n, l, a, i, o = 0, c = [], r = !1) => {
291
291
  !e || !Array.isArray(e) || e.length === 0 || e.forEach((f) => {
292
- var x, _;
293
- const l = f.field || F(f), p = Ce(f, !0), d = f.value ? `[${f.value}]` : "", u = (p == null ? void 0 : p.length) > 1 ? `${p.slice(0, p.length - 1).join("/")}/${l}${d}` : `${l}${d}`;
294
- if (!i(f) || s.has(u))
292
+ var L, T;
293
+ const s = f.field || F(f), p = Ne(f, !0), d = f.value ? `[${f.value}]` : "", u = (p == null ? void 0 : p.length) > 1 ? `${p.slice(0, p.length - 1).join("/")}/${s}${d}` : `${s}${d}`;
294
+ if (!i(f) || l.has(u))
295
295
  return;
296
- s.add(u);
297
- const h = f.children && f.children.some((S) => i(S)), g = h && ((_ = (x = f.children) == null ? void 0 : x.every) == null ? void 0 : _.call(
298
- x,
299
- (S) => !S.headerName && !S.columnGroupShow
300
- )), w = !h || g, v = w ? a : o;
301
- w || ae++;
302
- const N = w ? null : ae % 2 === 0 ? "even-column-group" : "odd-column-group";
303
- f.colorClass = N || "";
304
- const $ = {
296
+ l.add(u);
297
+ const h = f.children && f.children.some((k) => i(k)), g = h && ((T = (L = f.children) == null ? void 0 : L.every) == null ? void 0 : T.call(
298
+ L,
299
+ (k) => !k.headerName && !k.columnGroupShow
300
+ )), E = !h || g, v = E ? a : o;
301
+ E || se++;
302
+ const y = E ? null : se % 2 === 0 ? "even-column-group" : "odd-column-group";
303
+ f.colorClass = y || "";
304
+ const x = {
305
305
  ...f,
306
306
  isLastInGroup: !1,
307
307
  // Will be set later
308
308
  depth: o,
309
- isLeaf: w,
310
- field: l,
311
- isStandalone: w || r,
309
+ isLeaf: E,
310
+ field: s,
311
+ isStandalone: E || r,
312
312
  isParentWithChildEmptyHeaderName: g
313
313
  };
314
- t[v].push($), g && f.children && (f.children.forEach((S) => {
315
- S.isLeaf = !0, S.isStandalone = !0, S.isWithEmptyHeaderName = !0;
316
- }), t[v].push(...f.children)), w && (n.push($), g && n.push(...f.children || [])), h && !g && h && ce(
314
+ t[v].push(x), g && f.children && (f.children.forEach((k) => {
315
+ k.isLeaf = !0, k.isStandalone = !0, k.isWithEmptyHeaderName = !0;
316
+ }), t[v].push(...f.children)), E && (n.push(x), g && n.push(...f.children || [])), h && !g && h && de(
317
317
  f.children || [],
318
318
  t,
319
319
  n,
320
- s,
320
+ l,
321
321
  a,
322
322
  i,
323
323
  o + 1,
324
- [...c, l],
324
+ [...c, s],
325
325
  !1
326
326
  );
327
327
  });
328
- }, nt = (e, t, n = {}, s) => {
328
+ }, st = (e, t, n = {}, l) => {
329
329
  const a = { left: 0, normal: 0, right: 0 }, {
330
330
  processedColumns: i
331
331
  // initialGroupedColumns
332
- } = oe(
332
+ } = ce(
333
333
  e,
334
334
  n,
335
335
  0,
336
336
  null,
337
- s,
337
+ l,
338
338
  [],
339
339
  [],
340
340
  !1,
341
341
  a
342
- ), { headerRows: o, leafColumns: c } = Ne(i, {
342
+ ), { headerRows: o, leafColumns: c } = Le(i, {
343
343
  pinnedType: t,
344
- minWidth: s
344
+ minWidth: l
345
345
  });
346
346
  return {
347
347
  secondRowColumns: c,
@@ -353,8 +353,8 @@ const Ne = (e, {
353
353
  // initialGroupedColumns,
354
354
  globalColumnCounts: a
355
355
  };
356
- }, it = (e, t) => {
357
- const n = (s) => s.reduce((a, i) => {
356
+ }, lt = (e, t) => {
357
+ const n = (l) => l.reduce((a, i) => {
358
358
  if (W(i)) return a + 0;
359
359
  if (i.children && i.children.length > 0)
360
360
  return a + n(i.children);
@@ -362,112 +362,112 @@ const Ne = (e, {
362
362
  return a + (o < t ? t : o);
363
363
  }, 0);
364
364
  return n(e);
365
- }, Q = (e) => e.pinned === "right" ? !1 : e.is_frozen || e.pinned === "left", ee = (e) => e.pinned === "right";
366
- function at(e, t = {}) {
365
+ }, ee = (e) => e.pinned === "right" ? !1 : e.is_frozen || e.pinned === "left", te = (e) => e.pinned === "right";
366
+ function rt(e, t = {}) {
367
367
  if (t && typeof t == "object") {
368
368
  const {
369
369
  leftPinned: n = !1,
370
- rightPinned: s = !1,
370
+ rightPinned: l = !1,
371
371
  includeHidden: a = !1
372
372
  } = t;
373
- return s ? e.filter(
374
- (i) => ee(i) && (a || !W(i))
373
+ return l ? e.filter(
374
+ (i) => te(i) && (a || !W(i))
375
375
  ) : n ? e.filter(
376
- (i) => Q(i) && (a || !W(i))
376
+ (i) => ee(i) && (a || !W(i))
377
377
  ) : e.filter(
378
- (i) => !Q(i) && !ee(i) && (a || !W(i))
378
+ (i) => !ee(i) && !te(i) && (a || !W(i))
379
379
  );
380
380
  }
381
381
  return e;
382
382
  }
383
- const $e = (e, t, n = 150) => {
384
- const s = (a) => a.children && a.children.length > 0 ? W(a) ? 0 : a.children.reduce(
385
- (i, o) => i + s(o),
383
+ const He = (e, t, n = 150) => {
384
+ const l = (a) => a.children && a.children.length > 0 ? W(a) ? 0 : a.children.reduce(
385
+ (i, o) => i + l(o),
386
386
  0
387
387
  ) : W(a) ? 0 : a.width && a.width < n ? n : a.width || n;
388
388
  return t && e.children && e.children.length > 0 ? W(e) ? 0 : e.children.reduce(
389
- (a, i) => a + s(i),
389
+ (a, i) => a + l(i),
390
390
  0
391
391
  ) : W(e) ? 0 : e.width && e.width < n ? n : e.width || n;
392
- }, lt = (e, t, n, s, a, i) => {
392
+ }, ot = (e, t, n, l, a, i) => {
393
393
  var r;
394
394
  const o = [];
395
395
  let c = 0;
396
396
  for (let f = 0; f < e.length; f++) {
397
397
  o[f] = c;
398
- const l = e[f];
399
- if (l.__parentId !== void 0) continue;
400
- const p = l.id || l[t] || f;
401
- if (a && ((r = s == null ? void 0 : s.expandedRows) != null && r.includes(p))) {
402
- const u = s.detailRowHeight || 200;
398
+ const s = e[f];
399
+ if (s.__parentId !== void 0) continue;
400
+ const p = s.id || s[t] || f;
401
+ if (a && ((r = l == null ? void 0 : l.expandedRows) != null && r.includes(p))) {
402
+ const u = l.detailRowHeight || 200;
403
403
  c += u;
404
404
  }
405
- const d = l[t] || "";
405
+ const d = s[t] || "";
406
406
  i[f] !== void 0 ? c += i[f] - n : i[d] && (c += i[d] - n);
407
407
  }
408
408
  return o;
409
- }, st = (e, t, n, s, a, i, o, c, r, f) => {
410
- let l = 0;
409
+ }, ct = (e, t, n, l, a, i, o, c, r, f) => {
410
+ let s = 0;
411
411
  const p = Object.keys(r) || [];
412
412
  if (r && p.length > 0) {
413
413
  let d = 0;
414
414
  p.forEach((u) => {
415
415
  const h = String(u);
416
- if (h.includes("/") && s.includes(h))
417
- l += r[h];
416
+ if (h.includes("/") && l.includes(h))
417
+ s += r[h];
418
418
  else if (h.includes("/")) {
419
- const g = h.split("/"), w = g.slice(0, g.length - 1).join("/");
420
- s.includes(w) ? l += r[h] : d += 1;
419
+ const g = h.split("/"), E = g.slice(0, g.length - 1).join("/");
420
+ l.includes(E) ? s += r[h] : d += 1;
421
421
  } else
422
- l += r[h];
423
- }), l += (e.length - p.length + d) * t;
422
+ s += r[h];
423
+ }), s += (e.length - p.length + d) * t;
424
424
  } else
425
- l += e.length * t;
425
+ s += e.length * t;
426
426
  return n && (a != null && a.expandedRows) && a.expandedRows.length > 0 && e.forEach((d) => {
427
427
  var h;
428
428
  const u = d.id || d[i];
429
- (h = a == null ? void 0 : a.expandedRows) != null && h.includes(u) && (l += (a == null ? void 0 : a.detailRowHeight) || 200);
430
- }), o && (l += le * t), c.length && f && (l += le * t), l;
431
- }, rt = (e, t, n) => {
429
+ (h = a == null ? void 0 : a.expandedRows) != null && h.includes(u) && (s += (a == null ? void 0 : a.detailRowHeight) || 200);
430
+ }), o && (s += le * t), c.length && f && (s += le * t), s;
431
+ }, dt = (e, t, n) => {
432
432
  var c;
433
- const s = ((c = t.path) == null ? void 0 : c.length) || 0, a = n.length - (e - s + 2), i = n.slice(
433
+ const l = ((c = t.path) == null ? void 0 : c.length) || 0, a = n.length - (e - l + 2), i = n.slice(
434
434
  a
435
435
  );
436
436
  return i.reduce((r, f) => r + f, 0) + 19 * i.length;
437
- }, ot = (e, t, n = 40) => {
437
+ }, ht = (e, t, n = 40) => {
438
438
  const a = [
439
439
  e[`left_pinned_${t}`],
440
440
  e[`normal_${t}`],
441
441
  e[`right_pinned_${t}`]
442
442
  ].filter((i) => i);
443
443
  return a.length === 0 ? { maxHeight: n, maxLineCount: 1 } : a.reduce((i, o) => !i || o.maxHeight > i.maxHeight ? o : i, a[0]);
444
- }, ct = (e, t, n, s, a) => e ? `${(t.leftTotalWidth || 0) - n + we(
444
+ }, ft = (e, t, n, l, a) => e ? `${(t.leftTotalWidth || 0) - n + ye(
445
445
  e,
446
446
  a,
447
- s
448
- )}px` : `${(t.leftTotalWidth || 0) - n}px`, xe = (e, t, n) => (e.is_frozen = t, e.pinned = n, e.children && Array.isArray(e.children) && e.children.length > 0 && e.children.forEach((s) => {
449
- xe(s, t, n);
450
- }), e), ie = ({
447
+ l
448
+ )}px` : `${(t.leftTotalWidth || 0) - n}px`, Se = (e, t, n) => (e.is_frozen = t, e.pinned = n, e.children && Array.isArray(e.children) && e.children.length > 0 && e.children.forEach((l) => {
449
+ Se(l, t, n);
450
+ }), e), ae = ({
451
451
  onClick: e,
452
452
  children: t,
453
453
  variant: n = "primary",
454
- size: s = "large",
454
+ size: l = "large",
455
455
  iconButton: a = !1,
456
456
  className: i = "",
457
457
  disabled: o = !1,
458
458
  leftIcon: c = null,
459
459
  rightIcon: r = null,
460
460
  buttonRef: f = null,
461
- simpleButton: l = !1,
461
+ simpleButton: s = !1,
462
462
  ...p
463
- }) => /* @__PURE__ */ I(
463
+ }) => /* @__PURE__ */ M(
464
464
  "button",
465
465
  {
466
466
  ref: f,
467
467
  onClick: (d) => {
468
468
  o || e(d);
469
469
  },
470
- className: `ia-table-btn cursor-pointer d-flex align-items-center justify-content-center ia-table-btn-${n} ia-table-btn-${s} ${a ? "ia-table-btn-icon" : ""} ${i} ${o ? "ia-table-btn-disabled pointer-events-none" : ""} gap-4 ${l ? "ia-table-btn-simple" : ""}`,
470
+ className: `ia-table-btn cursor-pointer d-flex align-items-center justify-content-center ia-table-btn-${n} ia-table-btn-${l} ${a ? "ia-table-btn-icon" : ""} ${i} ${o ? "ia-table-btn-disabled pointer-events-none" : ""} gap-4 ${s ? "ia-table-btn-simple" : ""}`,
471
471
  ...p,
472
472
  children: [
473
473
  c && c,
@@ -476,7 +476,7 @@ const $e = (e, t, n = 150) => {
476
476
  ]
477
477
  }
478
478
  );
479
- class Le {
479
+ class ke {
480
480
  constructor() {
481
481
  this.tooltipElement = null, this.currentConfig = null, this.hideTimeout = null;
482
482
  }
@@ -497,7 +497,7 @@ class Le {
497
497
  updateContent(t) {
498
498
  const {
499
499
  title: n,
500
- varient: s,
500
+ varient: l,
501
501
  illustration: a,
502
502
  icon: i,
503
503
  bodyText: o,
@@ -506,16 +506,16 @@ class Le {
506
506
  pagination: f
507
507
  } = t;
508
508
  if (!this.tooltipElement) return;
509
- this.tooltipElement.className = `tooltip tooltip--${s || "primary"}`;
510
- let l = "";
511
- f && r && (l += this.getPaginationHTML(s)), a || (i && (l += `<div class="tooltip-icon">${i}</div>`), n && (l += `<div class="tooltip-title">${n}</div>`)), (o || c || a || f) && (l += `<button class="tooltip-close d-flex align-items-center justify-content-center" aria-label="Close tooltip">
509
+ this.tooltipElement.className = `tooltip tooltip--${l || "primary"}`;
510
+ let s = "";
511
+ f && r && (s += this.getPaginationHTML(l)), a || (i && (s += `<div class="tooltip-icon">${i}</div>`), n && (s += `<div class="tooltip-title">${n}</div>`)), (o || c || a || f) && (s += `<button class="tooltip-close d-flex align-items-center justify-content-center" aria-label="Close tooltip">
512
512
  <svg width="16" height="16" viewBox="0 0 16 16" fill="currentColor">
513
513
  <path d="M8 7.293l3.646-3.647a.5.5 0 01.708.708L8.707 8l3.647 3.646a.5.5 0 01-.708.708L8 8.707l-3.646 3.647a.5.5 0 01-.708-.708L7.293 8 3.646 4.354a.5.5 0 01.708-.708L8 7.293z"/>
514
514
  </svg>
515
- </button>`), a && (l += `<div class="tooltip-illustration"><img src="${a}" alt="Illustration" /></div>`), a && (l += '<div class="tooltip-header d-flex align-items-center">', i && (l += `<div class="tooltip-icon">${i}</div>`), n && (l += `<div class="tooltip-title">${n}</div>`), l += "</div>"), f && !r && (l += this.getPaginationHTML(s)), c && (l += '<div class="tooltip-btns d-flex">', c.forEach((d) => {
515
+ </button>`), a && (s += `<div class="tooltip-illustration"><img src="${a}" alt="Illustration" /></div>`), a && (s += '<div class="tooltip-header d-flex align-items-center">', i && (s += `<div class="tooltip-icon">${i}</div>`), n && (s += `<div class="tooltip-title">${n}</div>`), s += "</div>"), f && !r && (s += this.getPaginationHTML(l)), c && (s += '<div class="tooltip-btns d-flex">', c.forEach((d) => {
516
516
  let u = d.type;
517
- d.type !== "default" && (s === "primary" || s === "tertiary" ? u = "secondary" : s === "secondary" && (u = "primary")), l += `<button class="${u === "default" ? "btn-no-bg" : `tooltip-btn btn--${u}`}">${d.label}</button>`;
518
- }), l += "</div>"), l += "</div></div>", l += '<div class="tooltip-arrow"></div>', this.tooltipElement.innerHTML = l;
517
+ d.type !== "default" && (l === "primary" || l === "tertiary" ? u = "secondary" : l === "secondary" && (u = "primary")), s += `<button class="${u === "default" ? "btn-no-bg" : `tooltip-btn btn--${u}`}">${d.label}</button>`;
518
+ }), s += "</div>"), s += "</div></div>", s += '<div class="tooltip-arrow"></div>', this.tooltipElement.innerHTML = s;
519
519
  const p = this.tooltipElement.querySelector(
520
520
  ".tooltip-close"
521
521
  );
@@ -530,16 +530,16 @@ class Le {
530
530
  </div>`;
531
531
  }
532
532
  calculatePosition(t) {
533
- const { targetRef: n, orientation: s = "top", varient: a } = t;
533
+ const { targetRef: n, orientation: l = "top", varient: a } = t;
534
534
  if (!(n != null && n.current) || !this.tooltipElement) return;
535
535
  const i = n.current.getBoundingClientRect(), o = this.tooltipElement.getBoundingClientRect(), c = 8, r = 16, f = {
536
536
  top: i.top - r,
537
537
  bottom: window.innerHeight - i.bottom - r,
538
538
  left: i.left - r,
539
539
  right: window.innerWidth - i.right - r
540
- }, l = s === "top" ? f.top > o.height : s === "bottom" ? f.bottom > o.height : s === "left" ? f.left > o.width : f.right > o.width, p = Object.entries(f).sort(
541
- (w, v) => v[1] - w[1]
542
- )[0][0], d = l ? s : p;
540
+ }, s = l === "top" ? f.top > o.height : l === "bottom" ? f.bottom > o.height : l === "left" ? f.left > o.width : f.right > o.width, p = Object.entries(f).sort(
541
+ (E, v) => v[1] - E[1]
542
+ )[0][0], d = s ? l : p;
543
543
  let u = 0, h = 0;
544
544
  switch (d) {
545
545
  case "top":
@@ -580,23 +580,23 @@ class Le {
580
580
  this.tooltipElement && this.tooltipElement.parentNode && (this.tooltipElement.parentNode.removeChild(this.tooltipElement), this.tooltipElement = null);
581
581
  }
582
582
  }
583
- const J = new Le(), dt = ({
583
+ const Q = new ke(), ut = ({
584
584
  title: e,
585
585
  varient: t,
586
586
  orientation: n,
587
- children: s,
587
+ children: l,
588
588
  targetRef: a,
589
589
  illustration: i = "",
590
590
  icon: o = null,
591
591
  bodyText: c = "",
592
592
  btns: r = null,
593
593
  showPaginationAbove: f = null,
594
- pagination: l = null,
594
+ pagination: s = null,
595
595
  justifyBodyContent: p = null,
596
596
  forceShowTooltip: d = !1,
597
597
  className: u = "ia-table-width-inherit"
598
598
  }) => {
599
- const h = G({
599
+ const h = q({
600
600
  title: e,
601
601
  varient: t,
602
602
  orientation: n,
@@ -606,7 +606,7 @@ const J = new Le(), dt = ({
606
606
  bodyText: c,
607
607
  btns: r,
608
608
  showPaginationAbove: f,
609
- pagination: l,
609
+ pagination: s,
610
610
  justifyBodyContent: p
611
611
  });
612
612
  h.current = {
@@ -619,31 +619,31 @@ const J = new Le(), dt = ({
619
619
  bodyText: c,
620
620
  btns: r,
621
621
  showPaginationAbove: f,
622
- pagination: l,
622
+ pagination: s,
623
623
  justifyBodyContent: p
624
624
  }, V(() => () => {
625
- J.hide();
625
+ Q.hide();
626
626
  }, []);
627
627
  const g = () => {
628
628
  if (!(a != null && a.current) || !e)
629
629
  return;
630
630
  if (d && e) {
631
- J.show(h.current);
631
+ Q.show(h.current);
632
632
  return;
633
633
  }
634
- const v = a.current, N = v.querySelector("input") || // element.querySelector("div[data-tooltip-title]") ||
635
- v.querySelector(".text-overflow-ellipsis") || v.querySelector(".ia-table-header-string-title") || v.querySelector("span") || v, $ = N.classList.contains("ia-table-line-clamp-2") || N.classList.contains("ia-table-line-clamp-3") || window.getComputedStyle(N).webkitLineClamp !== "none";
636
- let x = !1;
637
- if ($) {
638
- const _ = N.scrollHeight, S = N.clientHeight;
639
- x = _ > S;
634
+ const v = a.current, y = v.querySelector("input") || // element.querySelector("div[data-tooltip-title]") ||
635
+ v.querySelector(".text-overflow-ellipsis") || v.querySelector(".ia-table-header-string-title") || v.querySelector("span") || v, x = y.classList.contains("ia-table-line-clamp-2") || y.classList.contains("ia-table-line-clamp-3") || window.getComputedStyle(y).webkitLineClamp !== "none";
636
+ let L = !1;
637
+ if (x) {
638
+ const T = y.scrollHeight, k = y.clientHeight;
639
+ L = T > k;
640
640
  } else {
641
- const _ = N.scrollWidth, S = N.clientWidth;
642
- x = _ > S;
641
+ const T = y.scrollWidth, k = y.clientWidth;
642
+ L = T > k;
643
643
  }
644
- x && J.show(h.current);
645
- }, w = () => {
646
- J.hide();
644
+ L && Q.show(h.current);
645
+ }, E = () => {
646
+ Q.hide();
647
647
  };
648
648
  return /* @__PURE__ */ m(
649
649
  "div",
@@ -651,78 +651,78 @@ const J = new Le(), dt = ({
651
651
  ref: a,
652
652
  className: `tooltip-container ${u}`,
653
653
  onMouseEnter: g,
654
- onMouseLeave: w,
654
+ onMouseLeave: E,
655
655
  onFocus: g,
656
- onBlur: w,
657
- children: s
656
+ onBlur: E,
657
+ children: l
658
658
  }
659
659
  );
660
- }, de = (e) => /* @__PURE__ */ L.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ L.createElement("path", { d: "M9.66659 1.27325L8.72659 0.333252L4.99992 4.05992L1.27325 0.333252L0.333252 1.27325L4.05992 4.99992L0.333252 8.72659L1.27325 9.66659L4.99992 5.93992L8.72659 9.66659L9.66659 8.72659L5.93992 4.99992L9.66659 1.27325Z", fill: "currentColor" })), ht = (e) => /* @__PURE__ */ L.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 13 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ L.createElement("path", { d: "M9.09808 7.54717H8.52308L8.31929 7.36192C9.03258 6.57976 9.46201 5.56432 9.46201 4.45969C9.46201 1.99657 7.34397 0 4.731 0C2.11803 0 0 1.99657 0 4.45969C0 6.92281 2.11803 8.91938 4.731 8.91938C5.90284 8.91938 6.98005 8.51458 7.80979 7.8422L8.00631 8.0343V8.57633L11.6455 12L12.73 10.9777L9.09808 7.54717ZM4.731 7.54717C2.91866 7.54717 1.45569 6.1681 1.45569 4.45969C1.45569 2.75129 2.91866 1.37221 4.731 1.37221C6.54334 1.37221 8.00631 2.75129 8.00631 4.45969C8.00631 6.1681 6.54334 7.54717 4.731 7.54717Z", fill: "#60697D" })), ft = (e) => /* @__PURE__ */ L.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 8 11", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ L.createElement("path", { d: "M1.99902 8.66675C2.45611 8.66675 2.83283 9.04271 2.83301 9.49976C2.83301 9.95695 2.45621 10.3337 1.99902 10.3337C1.54198 10.3336 1.16602 9.95684 1.16602 9.49976C1.16619 9.04282 1.54209 8.66693 1.99902 8.66675ZM5.99902 8.66675C6.45611 8.66675 6.83283 9.04271 6.83301 9.49976C6.83301 9.95695 6.45621 10.3337 5.99902 10.3337C5.54198 10.3336 5.16602 9.95684 5.16602 9.49976C5.16619 9.04282 5.54209 8.66693 5.99902 8.66675ZM1.99902 4.66675C2.45611 4.66675 2.83283 5.04271 2.83301 5.49976C2.83301 5.95695 2.45621 6.33374 1.99902 6.33374C1.54198 6.33356 1.16602 5.95684 1.16602 5.49976C1.16619 5.04282 1.54209 4.66693 1.99902 4.66675ZM5.99902 4.66675C6.45611 4.66675 6.83283 5.04271 6.83301 5.49976C6.83301 5.95695 6.45621 6.33374 5.99902 6.33374C5.54198 6.33356 5.16602 5.95684 5.16602 5.49976C5.16619 5.04282 5.54209 4.66693 5.99902 4.66675ZM1.99902 0.666748C2.45611 0.666748 2.83283 1.04271 2.83301 1.49976C2.83301 1.95695 2.45621 2.33374 1.99902 2.33374C1.54198 2.33356 1.16602 1.95684 1.16602 1.49976C1.16619 1.04282 1.54209 0.666926 1.99902 0.666748ZM5.99902 0.666748C6.45611 0.666748 6.83283 1.04271 6.83301 1.49976C6.83301 1.95695 6.45621 2.33374 5.99902 2.33374C5.54198 2.33356 5.16602 1.95684 5.16602 1.49976C5.16619 1.04282 5.54209 0.666926 5.99902 0.666748Z", fill: "currentColor", stroke: "currentColor" })), Se = ({
660
+ }, he = (e) => /* @__PURE__ */ S.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 10 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M9.66659 1.27325L8.72659 0.333252L4.99992 4.05992L1.27325 0.333252L0.333252 1.27325L4.05992 4.99992L0.333252 8.72659L1.27325 9.66659L4.99992 5.93992L8.72659 9.66659L9.66659 8.72659L5.93992 4.99992L9.66659 1.27325Z", fill: "currentColor" })), pt = (e) => /* @__PURE__ */ S.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 13 12", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M9.09808 7.54717H8.52308L8.31929 7.36192C9.03258 6.57976 9.46201 5.56432 9.46201 4.45969C9.46201 1.99657 7.34397 0 4.731 0C2.11803 0 0 1.99657 0 4.45969C0 6.92281 2.11803 8.91938 4.731 8.91938C5.90284 8.91938 6.98005 8.51458 7.80979 7.8422L8.00631 8.0343V8.57633L11.6455 12L12.73 10.9777L9.09808 7.54717ZM4.731 7.54717C2.91866 7.54717 1.45569 6.1681 1.45569 4.45969C1.45569 2.75129 2.91866 1.37221 4.731 1.37221C6.54334 1.37221 8.00631 2.75129 8.00631 4.45969C8.00631 6.1681 6.54334 7.54717 4.731 7.54717Z", fill: "#60697D" })), gt = (e) => /* @__PURE__ */ S.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 8 11", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M1.99902 8.66675C2.45611 8.66675 2.83283 9.04271 2.83301 9.49976C2.83301 9.95695 2.45621 10.3337 1.99902 10.3337C1.54198 10.3336 1.16602 9.95684 1.16602 9.49976C1.16619 9.04282 1.54209 8.66693 1.99902 8.66675ZM5.99902 8.66675C6.45611 8.66675 6.83283 9.04271 6.83301 9.49976C6.83301 9.95695 6.45621 10.3337 5.99902 10.3337C5.54198 10.3336 5.16602 9.95684 5.16602 9.49976C5.16619 9.04282 5.54209 8.66693 5.99902 8.66675ZM1.99902 4.66675C2.45611 4.66675 2.83283 5.04271 2.83301 5.49976C2.83301 5.95695 2.45621 6.33374 1.99902 6.33374C1.54198 6.33356 1.16602 5.95684 1.16602 5.49976C1.16619 5.04282 1.54209 4.66693 1.99902 4.66675ZM5.99902 4.66675C6.45611 4.66675 6.83283 5.04271 6.83301 5.49976C6.83301 5.95695 6.45621 6.33374 5.99902 6.33374C5.54198 6.33356 5.16602 5.95684 5.16602 5.49976C5.16619 5.04282 5.54209 4.66693 5.99902 4.66675ZM1.99902 0.666748C2.45611 0.666748 2.83283 1.04271 2.83301 1.49976C2.83301 1.95695 2.45621 2.33374 1.99902 2.33374C1.54198 2.33356 1.16602 1.95684 1.16602 1.49976C1.16619 1.04282 1.54209 0.666926 1.99902 0.666748ZM5.99902 0.666748C6.45611 0.666748 6.83283 1.04271 6.83301 1.49976C6.83301 1.95695 6.45621 2.33374 5.99902 2.33374C5.54198 2.33356 5.16602 1.95684 5.16602 1.49976C5.16619 1.04282 5.54209 0.666926 5.99902 0.666748Z", fill: "currentColor", stroke: "currentColor" })), _e = ({
661
661
  label: e,
662
662
  variant: t = "filled",
663
663
  color: n = "default",
664
- size: s = "default",
664
+ size: l = "default",
665
665
  className: a = "",
666
666
  onClick: i,
667
667
  ...o
668
668
  }) => {
669
669
  if (!e) return null;
670
- const c = `ia-table-badge align-items-center justify-content-center ia-table-badge-${t} ia-table-badge-${n} ia-table-badge-size-${s} ${a} ${i ? "cursor-pointer" : ""}`;
670
+ const c = `ia-table-badge align-items-center justify-content-center ia-table-badge-${t} ia-table-badge-${n} ia-table-badge-size-${l} ${a} ${i ? "cursor-pointer" : ""}`;
671
671
  return /* @__PURE__ */ m("div", { className: c, onClick: i, ...o, children: /* @__PURE__ */ m("span", { className: "ia-table-badge-label text-overflow-ellipsis", children: e }) });
672
- }, ut = te(Se), He = ({
672
+ }, mt = ne(_e), Pe = ({
673
673
  open: e = !1,
674
674
  onClose: t,
675
675
  title: n,
676
- children: s,
676
+ children: l,
677
677
  size: a = "medium",
678
678
  width: i,
679
679
  height: o,
680
680
  className: c = "",
681
681
  onPrimaryButtonClick: r,
682
682
  primaryButtonLabel: f = "Confirm",
683
- onSecondaryButtonClick: l,
683
+ onSecondaryButtonClick: s,
684
684
  secondaryButtonLabel: p = "Cancel",
685
685
  closeOnOutsideClick: d = !0,
686
686
  primaryButtonVariant: u = "primary",
687
687
  primaryButtonProps: h = {},
688
688
  showCloseButton: g = !0,
689
- showPrimaryButton: w = !0,
689
+ showPrimaryButton: E = !0,
690
690
  showSecondaryButton: v = !0
691
691
  }) => {
692
- const N = G(null);
692
+ const y = q(null);
693
693
  V(() => {
694
- const A = (R) => {
695
- R.key === "Escape" && e && t();
694
+ const I = (A) => {
695
+ A.key === "Escape" && e && t();
696
696
  };
697
- return e && (document.addEventListener("keydown", A), document.body.style.overflow = "hidden"), () => {
698
- document.removeEventListener("keydown", A), document.body.style.overflow = "";
697
+ return e && (document.addEventListener("keydown", I), document.body.style.overflow = "hidden"), () => {
698
+ document.removeEventListener("keydown", I), document.body.style.overflow = "";
699
699
  };
700
700
  }, [e, t]);
701
- const $ = U(
702
- (A) => {
703
- d && N.current && !N.current.contains(A.target) && t();
701
+ const x = U(
702
+ (I) => {
703
+ d && y.current && !y.current.contains(I.target) && t();
704
704
  },
705
705
  [d, t]
706
706
  );
707
707
  if (!e) return null;
708
- const x = `ia-table-modal-${a}`, _ = {};
709
- i && (_.width = typeof i == "number" ? `${i}px` : i), o && (_.height = typeof o == "number" ? `${o}px` : o);
710
- const S = w && f || v && p, Z = /* @__PURE__ */ m(
708
+ const L = `ia-table-modal-${a}`, T = {};
709
+ i && (T.width = typeof i == "number" ? `${i}px` : i), o && (T.height = typeof o == "number" ? `${o}px` : o);
710
+ const k = E && f || v && p, Z = /* @__PURE__ */ m(
711
711
  "div",
712
712
  {
713
713
  className: "ia-table-modal-overlay d-flex align-items-center justify-content-center",
714
- onClick: $,
715
- children: /* @__PURE__ */ I(
714
+ onClick: x,
715
+ children: /* @__PURE__ */ M(
716
716
  "div",
717
717
  {
718
- className: `ia-table-modal d-flex flex-column ${x} ${c}`,
719
- style: _,
720
- ref: N,
718
+ className: `ia-table-modal d-flex flex-column ${L} ${c}`,
719
+ style: T,
720
+ ref: y,
721
721
  children: [
722
- /* @__PURE__ */ I("div", { className: "ia-table-modal-header d-flex justify-content-between align-items-center", children: [
722
+ /* @__PURE__ */ M("div", { className: "ia-table-modal-header d-flex justify-content-between align-items-center", children: [
723
723
  /* @__PURE__ */ m("div", { className: "ia-table-modal-header-content", children: n && /* @__PURE__ */ m("h2", { className: "ia-table-modal-title", children: n }) }),
724
724
  g && /* @__PURE__ */ m(
725
- ie,
725
+ ae,
726
726
  {
727
727
  onClick: t,
728
728
  "aria-label": "Close",
@@ -730,22 +730,22 @@ const J = new Le(), dt = ({
730
730
  className: "ia-table-close-button",
731
731
  size: "small",
732
732
  iconButton: !0,
733
- children: /* @__PURE__ */ m(de, { className: "ia-table-close-icon" })
733
+ children: /* @__PURE__ */ m(he, { className: "ia-table-close-icon" })
734
734
  }
735
735
  )
736
736
  ] }),
737
- /* @__PURE__ */ m("div", { className: "ia-table-modal-content", children: s }),
738
- S && /* @__PURE__ */ I("div", { className: "ia-table-modal-footer d-flex justify-content-end align-items-center gap-12", children: [
737
+ /* @__PURE__ */ m("div", { className: "ia-table-modal-content", children: l }),
738
+ k && /* @__PURE__ */ M("div", { className: "ia-table-modal-footer d-flex justify-content-end align-items-center gap-12", children: [
739
739
  v && p && /* @__PURE__ */ m(
740
- ie,
740
+ ae,
741
741
  {
742
- onClick: l || t,
742
+ onClick: s || t,
743
743
  variant: "link",
744
744
  children: p
745
745
  }
746
746
  ),
747
- w && f && r && /* @__PURE__ */ m(
748
- ie,
747
+ E && f && r && /* @__PURE__ */ m(
748
+ ae,
749
749
  {
750
750
  onClick: r,
751
751
  variant: u,
@@ -759,91 +759,91 @@ const J = new Le(), dt = ({
759
759
  )
760
760
  }
761
761
  );
762
- return se(Z, document.body);
763
- }, pt = te(He), ke = ({
762
+ return re(Z, document.body);
763
+ }, vt = ne(Pe), Te = ({
764
764
  placeholder: e = "",
765
765
  label: t = "",
766
766
  value: n = "",
767
- onChange: s,
767
+ onChange: l,
768
768
  type: a = "text",
769
769
  disabled: i = !1,
770
770
  error: o = "",
771
771
  leftIcon: c = null,
772
772
  rightIcon: r = null,
773
773
  className: f = "",
774
- width: l = "100%",
775
- onClick: p = ($) => $.stopPropagation(),
774
+ width: s = "100%",
775
+ onClick: p = (x) => x.stopPropagation(),
776
776
  isCellRenderer: d = !1,
777
777
  inputType: u = "text",
778
778
  iconButton: h = null,
779
779
  iconButtonClassName: g = "",
780
- height: w,
780
+ height: E,
781
781
  autoFocus: v = !1,
782
- ...N
782
+ ...y
783
783
  }) => {
784
- const $ = G(null), x = G(null);
784
+ const x = q(null), L = q(null);
785
785
  V(() => {
786
- v && $.current && $.current.focus();
786
+ v && x.current && x.current.focus();
787
787
  }, [v]);
788
- const _ = U(() => {
789
- var y;
790
- (y = $.current) == null || y.focus();
791
- }, []), S = U(
792
- (y) => {
793
- if (u === "int" && (y.key === "." || y.keyCode === 190 || y.keyCode === 110))
794
- return y.preventDefault(), !1;
788
+ const T = U(() => {
789
+ var N;
790
+ (N = x.current) == null || N.focus();
791
+ }, []), k = U(
792
+ (N) => {
793
+ if (u === "int" && (N.key === "." || N.keyCode === 190 || N.keyCode === 110))
794
+ return N.preventDefault(), !1;
795
795
  },
796
796
  [u]
797
797
  ), Z = U(
798
- (y) => {
799
- const k = y.target.value;
798
+ (N) => {
799
+ const P = N.target.value;
800
800
  switch (u) {
801
801
  case "int":
802
- (k === "" || /^-?\d*$/.test(k)) && s(y);
802
+ (P === "" || /^-?\d*$/.test(P)) && l(N);
803
803
  break;
804
804
  case "float":
805
805
  case "decimal":
806
- (k === "" || /^-?\d*\.?\d*$/.test(k)) && s(y);
806
+ (P === "" || /^-?\d*\.?\d*$/.test(P)) && l(N);
807
807
  break;
808
808
  case "percentage":
809
- (k === "" || /^\d*\.?\d*%?$/.test(k)) && s(y);
809
+ (P === "" || /^\d*\.?\d*%?$/.test(P)) && l(N);
810
810
  break;
811
811
  case "dollar":
812
- (k === "" || /^\$?\d*\.?\d*$/.test(k)) && s(y);
812
+ (P === "" || /^\$?\d*\.?\d*$/.test(P)) && l(N);
813
813
  break;
814
814
  case "str":
815
815
  default:
816
- s(y);
816
+ l(N);
817
817
  break;
818
818
  }
819
819
  },
820
- [s, u]
821
- ), A = u === "str" || u === "text", R = u === "str" || u === "text" ? "left" : "right", j = `ia-table-input-container d-flex align-items-center ${i ? d ? "ia-table-cell-render-input-disabled" : "ia-table-input-disabled" : ""} ${o ? "ia-table-input-error" : ""} ${c ? "has-left-icon" : ""} ${r ? "has-right-icon" : ""} ${h && !A ? "has-left-icon-button" : ""} ${h && A ? "has-right-icon-button" : ""} ${d ? "ia-table-cellrender-input" : ""} ${f}
820
+ [l, u]
821
+ ), I = u === "str" || u === "text", A = u === "str" || u === "text" ? "left" : "right", j = `ia-table-input-container d-flex align-items-center ${i ? d ? "ia-table-cell-render-input-disabled" : "ia-table-input-disabled" : ""} ${o ? "ia-table-input-error" : ""} ${c ? "has-left-icon" : ""} ${r ? "has-right-icon" : ""} ${h && !I ? "has-left-icon-button" : ""} ${h && I ? "has-right-icon-button" : ""} ${d ? "ia-table-cellrender-input" : ""} ${f}
822
822
  `;
823
- return /* @__PURE__ */ I(
823
+ return /* @__PURE__ */ M(
824
824
  "div",
825
825
  {
826
826
  className: `ia-table-inputbox-container d-flex flex-column ${i && d ? "ia-table-cell-render-input-disabled" : ""} `,
827
- style: { width: l, ...w ? { height: w } : {} },
827
+ style: { width: s, ...E ? { height: E } : {} },
828
828
  children: [
829
829
  t && /* @__PURE__ */ m("label", { className: "ia-table-input-label", children: t }),
830
- /* @__PURE__ */ I(
830
+ /* @__PURE__ */ M(
831
831
  "div",
832
832
  {
833
833
  className: j,
834
- onClick: _,
834
+ onClick: T,
835
835
  onMouseEnter: () => {
836
- x.current && x.current.classList.add("visible");
836
+ L.current && L.current.classList.add("visible");
837
837
  },
838
838
  onMouseLeave: () => {
839
- x.current && x.current.classList.remove("visible");
839
+ L.current && L.current.classList.remove("visible");
840
840
  },
841
841
  children: [
842
842
  c && /* @__PURE__ */ m("div", { className: "left-input-icon d-flex align-items-center justify-content-center", children: c }),
843
- h && !A && /* @__PURE__ */ m(
843
+ h && !I && /* @__PURE__ */ m(
844
844
  "div",
845
845
  {
846
- ref: x,
846
+ ref: L,
847
847
  className: `left-input-icon-button d-flex align-items-center justify-content-center ${g}`,
848
848
  children: h
849
849
  }
@@ -851,21 +851,21 @@ const J = new Le(), dt = ({
851
851
  /* @__PURE__ */ m("div", { className: "ia-table-input-wrapper", children: /* @__PURE__ */ m(
852
852
  "input",
853
853
  {
854
- ref: $,
854
+ ref: x,
855
855
  type: a,
856
856
  value: n,
857
857
  onChange: Z,
858
858
  onClick: p,
859
- onKeyDown: S,
859
+ onKeyDown: k,
860
860
  placeholder: e,
861
861
  disabled: i,
862
862
  className: "ia-table-input",
863
- style: { textAlign: R },
864
- ...N
863
+ style: { textAlign: A },
864
+ ...y
865
865
  }
866
866
  ) }),
867
867
  r && /* @__PURE__ */ m("div", { className: "right-input-icon d-flex align-items-center justify-content-center", children: r }),
868
- h && A && /* @__PURE__ */ m(
868
+ h && I && /* @__PURE__ */ m(
869
869
  "div",
870
870
  {
871
871
  className: `right-input-icon-button d-flex align-items-center justify-content-center ${g}`,
@@ -879,26 +879,26 @@ const J = new Le(), dt = ({
879
879
  ]
880
880
  }
881
881
  );
882
- }, gt = te(ke), Pe = (e) => /* @__PURE__ */ L.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ L.createElement("path", { d: "M7.15604 14.8024C7.0149 14.6706 6.94434 14.5146 6.94434 14.3344C6.94434 14.1545 7.0149 13.9987 7.15604 13.8669L11.2913 10.0066L7.14192 6.13307C7.0102 6.0101 6.94434 5.85639 6.94434 5.67194C6.94434 5.48748 7.0149 5.32938 7.15604 5.19763C7.29717 5.06588 7.46427 5 7.65735 5C7.85004 5 8.01696 5.06588 8.15809 5.19763L12.9002 9.63768C12.9567 9.69038 12.9967 9.74747 13.0204 9.80896C13.0438 9.87044 13.0554 9.93632 13.0554 10.0066C13.0554 10.0769 13.0438 10.1427 13.0204 10.2042C12.9967 10.2657 12.9567 10.3228 12.9002 10.3755L8.14398 14.8155C8.01225 14.9385 7.85004 15 7.65735 15C7.46427 15 7.29717 14.9341 7.15604 14.8024Z", fill: "#60697D" })), he = (e) => /* @__PURE__ */ L.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ L.createElement("path", { d: "M4 0.5H12C13.933 0.5 15.5 2.067 15.5 4V12C15.5 13.933 13.933 15.5 12 15.5H4C2.067 15.5 0.5 13.933 0.5 12V4C0.5 2.067 2.067 0.5 4 0.5Z", fill: "#ECEEFD" }), /* @__PURE__ */ L.createElement("path", { d: "M4 0.5H12C13.933 0.5 15.5 2.067 15.5 4V12C15.5 13.933 13.933 15.5 12 15.5H4C2.067 15.5 0.5 13.933 0.5 12V4C0.5 2.067 2.067 0.5 4 0.5Z", stroke: "#4259EE" }), /* @__PURE__ */ L.createElement("path", { d: "M11.4375 5.4375L6.75 10.125L4.5625 7.9375", stroke: "#4259EE", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), fe = (e) => /* @__PURE__ */ L.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ L.createElement("path", { d: "M4 0.5H12C13.933 0.5 15.5 2.067 15.5 4V12C15.5 13.933 13.933 15.5 12 15.5H4C2.067 15.5 0.5 13.933 0.5 12V4C0.5 2.067 2.067 0.5 4 0.5Z", fill: "white" }), /* @__PURE__ */ L.createElement("path", { d: "M4 0.5H12C13.933 0.5 15.5 2.067 15.5 4V12C15.5 13.933 13.933 15.5 12 15.5H4C2.067 15.5 0.5 13.933 0.5 12V4C0.5 2.067 2.067 0.5 4 0.5Z", stroke: "#C3C8D4" })), _e = (e) => /* @__PURE__ */ L.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ L.createElement("path", { d: "M5.35163 10.7033C3.85592 10.7033 2.59005 10.1852 1.55403 9.14923C0.51801 8.11321 0 6.84734 0 5.35163C0 3.85592 0.51801 2.59005 1.55403 1.55403C2.59005 0.51801 3.85592 0 5.35163 0C6.84734 0 8.11321 0.51801 9.14923 1.55403C10.1852 2.59005 10.7033 3.85592 10.7033 5.35163C10.7033 5.9554 10.6072 6.52487 10.4151 7.06003C10.223 7.5952 9.96226 8.06861 9.63293 8.48027L13.7736 12.6209C13.9245 12.7719 14 12.964 14 13.1973C14 13.4305 13.9245 13.6226 13.7736 13.7736C13.6226 13.9245 13.4305 14 13.1973 14C12.964 14 12.7719 13.9245 12.6209 13.7736L8.48027 9.63293C8.06861 9.96226 7.5952 10.223 7.06003 10.4151C6.52487 10.6072 5.9554 10.7033 5.35163 10.7033ZM5.35163 9.0566C6.38079 9.0566 7.25557 8.6964 7.97599 7.97599C8.6964 7.25557 9.0566 6.38079 9.0566 5.35163C9.0566 4.32247 8.6964 3.44768 7.97599 2.72727C7.25557 2.00686 6.38079 1.64666 5.35163 1.64666C4.32247 1.64666 3.44768 2.00686 2.72727 2.72727C2.00686 3.44768 1.64666 4.32247 1.64666 5.35163C1.64666 6.38079 2.00686 7.25557 2.72727 7.97599C3.44768 8.6964 4.32247 9.0566 5.35163 9.0566Z", fill: "#60697D" })), Te = ({ inputRef: e, onChange: t, type: n, placeholder: s, value: a }) => /* @__PURE__ */ I("div", { className: "ia-table-select-search d-flex align-items-center", children: [
883
- /* @__PURE__ */ m(_e, { className: "icon-10" }),
882
+ }, bt = ne(Te), Ae = (e) => /* @__PURE__ */ S.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M7.15604 14.8024C7.0149 14.6706 6.94434 14.5146 6.94434 14.3344C6.94434 14.1545 7.0149 13.9987 7.15604 13.8669L11.2913 10.0066L7.14192 6.13307C7.0102 6.0101 6.94434 5.85639 6.94434 5.67194C6.94434 5.48748 7.0149 5.32938 7.15604 5.19763C7.29717 5.06588 7.46427 5 7.65735 5C7.85004 5 8.01696 5.06588 8.15809 5.19763L12.9002 9.63768C12.9567 9.69038 12.9967 9.74747 13.0204 9.80896C13.0438 9.87044 13.0554 9.93632 13.0554 10.0066C13.0554 10.0769 13.0438 10.1427 13.0204 10.2042C12.9967 10.2657 12.9567 10.3228 12.9002 10.3755L8.14398 14.8155C8.01225 14.9385 7.85004 15 7.65735 15C7.46427 15 7.29717 14.9341 7.15604 14.8024Z", fill: "#60697D" })), fe = (e) => /* @__PURE__ */ S.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M4 0.5H12C13.933 0.5 15.5 2.067 15.5 4V12C15.5 13.933 13.933 15.5 12 15.5H4C2.067 15.5 0.5 13.933 0.5 12V4C0.5 2.067 2.067 0.5 4 0.5Z", fill: "#ECEEFD" }), /* @__PURE__ */ S.createElement("path", { d: "M4 0.5H12C13.933 0.5 15.5 2.067 15.5 4V12C15.5 13.933 13.933 15.5 12 15.5H4C2.067 15.5 0.5 13.933 0.5 12V4C0.5 2.067 2.067 0.5 4 0.5Z", stroke: "#4259EE" }), /* @__PURE__ */ S.createElement("path", { d: "M11.4375 5.4375L6.75 10.125L4.5625 7.9375", stroke: "#4259EE", strokeWidth: 1.5, strokeLinecap: "round", strokeLinejoin: "round" })), ue = (e) => /* @__PURE__ */ S.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M4 0.5H12C13.933 0.5 15.5 2.067 15.5 4V12C15.5 13.933 13.933 15.5 12 15.5H4C2.067 15.5 0.5 13.933 0.5 12V4C0.5 2.067 2.067 0.5 4 0.5Z", fill: "white" }), /* @__PURE__ */ S.createElement("path", { d: "M4 0.5H12C13.933 0.5 15.5 2.067 15.5 4V12C15.5 13.933 13.933 15.5 12 15.5H4C2.067 15.5 0.5 13.933 0.5 12V4C0.5 2.067 2.067 0.5 4 0.5Z", stroke: "#C3C8D4" })), Me = (e) => /* @__PURE__ */ S.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 14 14", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M5.35163 10.7033C3.85592 10.7033 2.59005 10.1852 1.55403 9.14923C0.51801 8.11321 0 6.84734 0 5.35163C0 3.85592 0.51801 2.59005 1.55403 1.55403C2.59005 0.51801 3.85592 0 5.35163 0C6.84734 0 8.11321 0.51801 9.14923 1.55403C10.1852 2.59005 10.7033 3.85592 10.7033 5.35163C10.7033 5.9554 10.6072 6.52487 10.4151 7.06003C10.223 7.5952 9.96226 8.06861 9.63293 8.48027L13.7736 12.6209C13.9245 12.7719 14 12.964 14 13.1973C14 13.4305 13.9245 13.6226 13.7736 13.7736C13.6226 13.9245 13.4305 14 13.1973 14C12.964 14 12.7719 13.9245 12.6209 13.7736L8.48027 9.63293C8.06861 9.96226 7.5952 10.223 7.06003 10.4151C6.52487 10.6072 5.9554 10.7033 5.35163 10.7033ZM5.35163 9.0566C6.38079 9.0566 7.25557 8.6964 7.97599 7.97599C8.6964 7.25557 9.0566 6.38079 9.0566 5.35163C9.0566 4.32247 8.6964 3.44768 7.97599 2.72727C7.25557 2.00686 6.38079 1.64666 5.35163 1.64666C4.32247 1.64666 3.44768 2.00686 2.72727 2.72727C2.00686 3.44768 1.64666 4.32247 1.64666 5.35163C1.64666 6.38079 2.00686 7.25557 2.72727 7.97599C3.44768 8.6964 4.32247 9.0566 5.35163 9.0566Z", fill: "#60697D" })), Ie = ({ inputRef: e, onChange: t, type: n, placeholder: l, value: a }) => /* @__PURE__ */ M("div", { className: "ia-table-select-search d-flex align-items-center", children: [
883
+ /* @__PURE__ */ m(Me, { className: "icon-10" }),
884
884
  /* @__PURE__ */ m(
885
885
  "input",
886
886
  {
887
887
  ref: e,
888
888
  type: n,
889
889
  value: a,
890
- placeholder: s,
890
+ placeholder: l,
891
891
  className: "ia-table-select-search-input",
892
892
  onChange: t,
893
893
  onClick: (i) => i.stopPropagation()
894
894
  }
895
895
  )
896
- ] }), Me = (e, t, n) => {
896
+ ] }), Re = (e, t, n) => {
897
897
  V(() => {
898
898
  var a;
899
- const s = (a = n == null ? void 0 : n.getTableInstance) == null ? void 0 : a.call(n);
900
- if (e && t && (s != null && s.current)) {
901
- const i = s.current.querySelectorAll(
899
+ const l = (a = n == null ? void 0 : n.getTableInstance) == null ? void 0 : a.call(n);
900
+ if (e && t && (l != null && l.current)) {
901
+ const i = l.current.querySelectorAll(
902
902
  ".ia-table-frozen-scroll-container, .ia-table-right-pinned-scroll-container, .ia-table-normal-scroll-container"
903
903
  ), o = Array.from(
904
904
  i
@@ -915,66 +915,67 @@ const J = new Le(), dt = ({
915
915
  };
916
916
  }
917
917
  }, [e, t, n]);
918
- }, Ie = ({
918
+ }, Ve = ({
919
919
  label: e = "",
920
920
  width: t = "100%",
921
921
  selectedOptions: n,
922
- setSelectedOptions: s,
922
+ setSelectedOptions: l,
923
923
  isDisabled: a = !1,
924
924
  isOpen: i = void 0,
925
925
  setIsOpen: o = void 0,
926
926
  initialOptions: c = [],
927
927
  withPortal: r = !1,
928
928
  className: f = "",
929
- isMulti: l = !1,
929
+ isMulti: s = !1,
930
930
  currentOptions: p,
931
931
  setCurrentOptions: d,
932
932
  onBlur: u,
933
933
  isCellRenderer: h = !1,
934
934
  tableApi: g = null,
935
- lazyLoadCellRenderer: w = !1,
935
+ lazyLoadCellRenderer: E = !1,
936
936
  isEnableResetButton: v = !0
937
937
  }) => {
938
- const N = G(null), $ = G(null), x = G(null), [_, S] = X(!1), [Z, A] = X(""), [R, j] = X(null), [y, k] = X(-1), [B, Y] = X(c), q = p || B || c, T = i !== void 0 ? i : _, D = o || S;
939
- Me(T, h, g);
938
+ const y = q(null), x = q(null), L = q(null), [T, k] = J(!1), [Z, I] = J(""), [A, j] = J(null), [N, P] = J(-1), [K, X] = J(c), z = p || K || c, _ = i !== void 0 ? i : T, D = o || k;
939
+ Re(_, h, g);
940
940
  const O = U(() => {
941
- if (N.current) {
942
- const C = N.current.getBoundingClientRect();
941
+ if (y.current) {
942
+ const w = y.current.getBoundingClientRect(), C = 250, $ = window.innerHeight - w.bottom, H = w.top, b = $ < C && H > $;
943
943
  return {
944
- top: C.bottom + window.scrollY,
945
- left: C.left + window.scrollX,
946
- width: C.width
944
+ top: b ? w.top + window.scrollY - C : w.bottom + window.scrollY,
945
+ left: w.left + window.scrollX,
946
+ width: w.width,
947
+ openAbove: b
947
948
  };
948
949
  }
949
950
  return null;
950
951
  }, []);
951
952
  V(() => {
952
- if (w) {
953
+ if (E) {
953
954
  if (r) {
954
- const C = O();
955
- C && j(C);
955
+ const w = O();
956
+ w && j(w);
956
957
  }
957
- D(w);
958
+ D(E);
958
959
  }
959
- }, [w, r, O]), V(() => {
960
- if (T && r) {
961
- const C = O();
962
- C && j(C);
960
+ }, [E, r, O]), V(() => {
961
+ if (_ && r) {
962
+ const w = O();
963
+ w && j(w);
963
964
  }
964
- }, [T, r, O]), V(() => {
965
- const C = (b) => {
966
- N.current && !N.current.contains(b.target) && $.current && !$.current.contains(b.target) && (D(!1), u && u(), h && (g != null && g.tableId) && (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[g.tableId] = !1));
967
- }, E = () => {
968
- if (T && r) {
969
- const b = O();
970
- b && j(b);
965
+ }, [_, r, O]), V(() => {
966
+ const w = ($) => {
967
+ y.current && !y.current.contains($.target) && x.current && !x.current.contains($.target) && (D(!1), u && u(), h && (g != null && g.tableId) && (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[g.tableId] = !1));
968
+ }, C = () => {
969
+ if (_ && r) {
970
+ const $ = O();
971
+ $ && j($);
971
972
  }
972
973
  };
973
- return T && (document.addEventListener("mousedown", C), r && (window.addEventListener("scroll", E, !0), window.addEventListener("resize", E))), () => {
974
- document.removeEventListener("mousedown", C), r && (window.removeEventListener("scroll", E, !0), window.removeEventListener("resize", E));
974
+ return _ && (document.addEventListener("mousedown", w), r && (window.addEventListener("scroll", C, !0), window.addEventListener("resize", C))), () => {
975
+ document.removeEventListener("mousedown", w), r && (window.removeEventListener("scroll", C, !0), window.removeEventListener("resize", C));
975
976
  };
976
977
  }, [
977
- T,
978
+ _,
978
979
  D,
979
980
  r,
980
981
  h,
@@ -982,153 +983,159 @@ const J = new Le(), dt = ({
982
983
  g,
983
984
  O
984
985
  ]), V(() => {
985
- T && x.current && (x.current.focus(), k(-1));
986
- }, [T]), V(() => {
987
- p || c && c.length > 0 && Y(c);
986
+ _ && L.current && (L.current.focus(), P(-1));
987
+ }, [_]), V(() => {
988
+ p || c && c.length > 0 && X(c);
988
989
  }, [c, p, d]);
989
- const ue = U(
990
- (C) => {
991
- if (C.stopPropagation(), !a) {
992
- if (!T && r) {
993
- const E = O();
994
- E && j(E);
990
+ const pe = U(
991
+ (w) => {
992
+ if (w.stopPropagation(), !a) {
993
+ if (!_ && r) {
994
+ const C = O();
995
+ C && j(C);
995
996
  }
996
- D(!T), T && u && u();
997
+ D(!_), _ && u && u();
997
998
  }
998
999
  },
999
- [a, T, D, r, O]
1000
- ), ne = U(
1001
- (C) => {
1002
- if (l)
1003
- if (Array.isArray(n) && n.some((b) => b.value === C.value))
1004
- s(
1000
+ [a, _, D, r, O]
1001
+ ), ie = U(
1002
+ (w) => {
1003
+ if (s)
1004
+ if (Array.isArray(n) && n.some(($) => $.value === w.value))
1005
+ l(
1005
1006
  n.filter(
1006
- (b) => b.value !== C.value
1007
+ ($) => $.value !== w.value
1007
1008
  )
1008
1009
  );
1009
1010
  else {
1010
- const b = Array.isArray(n) ? n : [];
1011
- s([...b, C]);
1011
+ const $ = Array.isArray(n) ? n : [];
1012
+ l([...$, w]);
1012
1013
  }
1013
1014
  else
1014
- s(C), D(!1), h && (g != null && g.tableId) && (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[g.tableId] = !1);
1015
+ l(w), D(!1), h && (g != null && g.tableId) && (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[g.tableId] = !1);
1015
1016
  },
1016
- [l, n, s, D, h]
1017
- ), pe = U(
1018
- (C) => {
1019
- const E = C.target.value.toLowerCase();
1020
- A(E), k(-1);
1021
- const b = p || c;
1022
- if (E) {
1023
- const P = b.filter((H) => H.label && typeof H.label == "string" ? H.label.toLowerCase().includes(E) : H.value && typeof H.value == "string" ? H.value.toLowerCase().includes(E) : H.label && typeof H.label == "number" ? H.label == Number(E) : H.value && typeof H.value == "number" ? H.value == Number(E) : !1);
1024
- d ? d(P) : Y(P);
1017
+ [s, n, l, D, h]
1018
+ ), ge = U(
1019
+ (w) => {
1020
+ const C = w.target.value.toLowerCase();
1021
+ I(C), P(-1);
1022
+ const $ = p || c;
1023
+ if (C) {
1024
+ const H = $.filter((b) => b.label && typeof b.label == "string" ? b.label.toLowerCase().includes(C) : b.value && typeof b.value == "string" ? b.value.toLowerCase().includes(C) : b.label && typeof b.label == "number" ? b.label == Number(C) : b.value && typeof b.value == "number" ? b.value == Number(C) : !1);
1025
+ d ? d(H) : X(H);
1025
1026
  } else
1026
- d ? d(c) : Y(c);
1027
+ d ? d(c) : X(c);
1027
1028
  },
1028
1029
  [c, p, d]
1029
1030
  );
1030
1031
  V(() => {
1031
- if (!T) return;
1032
- const C = (E) => {
1033
- const b = q.filter((P) => !P.isDisabled);
1034
- switch (E.key) {
1032
+ if (!_) return;
1033
+ const w = (C) => {
1034
+ const $ = z.filter((H) => !H.isDisabled);
1035
+ switch (C.key) {
1035
1036
  case "ArrowDown":
1036
- E.preventDefault(), E.stopPropagation(), k((P) => {
1037
- const H = P < b.length - 1 ? P + 1 : 0;
1037
+ C.preventDefault(), C.stopPropagation(), P((H) => {
1038
+ const b = H < $.length - 1 ? H + 1 : 0;
1038
1039
  return setTimeout(() => {
1039
- var K;
1040
- const M = (K = $.current) == null ? void 0 : K.querySelector(
1041
- `[data-option-index="${H}"]`
1040
+ var B;
1041
+ const R = (B = x.current) == null ? void 0 : B.querySelector(
1042
+ `[data-option-index="${b}"]`
1042
1043
  );
1043
- M == null || M.scrollIntoView({ block: "nearest" });
1044
- }, 0), H;
1044
+ R == null || R.scrollIntoView({ block: "nearest" });
1045
+ }, 0), b;
1045
1046
  });
1046
1047
  break;
1047
1048
  case "ArrowUp":
1048
- E.preventDefault(), E.stopPropagation(), k((P) => {
1049
- const H = P > 0 ? P - 1 : b.length - 1;
1049
+ C.preventDefault(), C.stopPropagation(), P((H) => {
1050
+ const b = H > 0 ? H - 1 : $.length - 1;
1050
1051
  return setTimeout(() => {
1051
- var K;
1052
- const M = (K = $.current) == null ? void 0 : K.querySelector(
1053
- `[data-option-index="${H}"]`
1052
+ var B;
1053
+ const R = (B = x.current) == null ? void 0 : B.querySelector(
1054
+ `[data-option-index="${b}"]`
1054
1055
  );
1055
- M == null || M.scrollIntoView({ block: "nearest" });
1056
- }, 0), H;
1056
+ R == null || R.scrollIntoView({ block: "nearest" });
1057
+ }, 0), b;
1057
1058
  });
1058
1059
  break;
1059
1060
  case "Enter":
1060
- if (E.preventDefault(), E.stopPropagation(), y >= 0 && y < b.length) {
1061
- const P = b[y];
1062
- P && !P.isDisabled && ne(P);
1061
+ if (C.preventDefault(), C.stopPropagation(), N >= 0 && N < $.length) {
1062
+ const H = $[N];
1063
+ H && !H.isDisabled && ie(H);
1063
1064
  }
1064
1065
  break;
1065
1066
  case "Escape":
1066
- E.preventDefault(), E.stopPropagation(), D(!1), h && (g != null && g.tableId) && (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[g.tableId] = !1);
1067
+ C.preventDefault(), C.stopPropagation(), D(!1), h && (g != null && g.tableId) && (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[g.tableId] = !1);
1067
1068
  break;
1068
1069
  }
1069
1070
  };
1070
- return document.addEventListener("keydown", C), () => {
1071
- document.removeEventListener("keydown", C);
1071
+ return document.addEventListener("keydown", w), () => {
1072
+ document.removeEventListener("keydown", w);
1072
1073
  };
1073
1074
  }, [
1074
- T,
1075
- q,
1076
- y,
1077
- ne,
1075
+ _,
1076
+ z,
1077
+ N,
1078
+ ie,
1078
1079
  D,
1079
1080
  h,
1080
1081
  g
1081
1082
  ]);
1082
- const ge = `ia-table-select-container d-flex justify-content-between align-items-center ${a ? "ia-table-select-disabled" : ""} ${T ? "ia-table-select-open" : ""} ${h ? "ia-table-selectrenderer" : ""} ${f}`, me = () => {
1083
- const C = q.filter((b) => !b.isDisabled), E = /* @__PURE__ */ I(
1083
+ const me = we(() => {
1084
+ if (!_ || !y.current) return !1;
1085
+ const w = y.current.getBoundingClientRect(), C = 250, $ = window.innerHeight - w.bottom, H = w.top;
1086
+ return $ < C && H > $;
1087
+ }, [_]), ve = `ia-table-select-container d-flex justify-content-between align-items-center ${a ? "ia-table-select-disabled" : ""} ${_ ? "ia-table-select-open" : ""} ${h ? "ia-table-selectrenderer" : ""} ${f}`, be = () => {
1088
+ var H;
1089
+ const w = z.filter((b) => !b.isDisabled), C = r ? A == null ? void 0 : A.openAbove : me, $ = /* @__PURE__ */ M(
1084
1090
  "div",
1085
1091
  {
1086
- ref: $,
1087
- className: "ia-table-select-dropdown d-flex flex-column",
1092
+ ref: x,
1093
+ className: `ia-table-select-dropdown d-flex flex-column ${C ? "ia-table-select-dropdown-above" : ""}`,
1088
1094
  onClick: (b) => b.stopPropagation(),
1089
1095
  style: {
1090
- ...r && R ? {
1096
+ ...r && A ? {
1091
1097
  position: "absolute",
1092
- top: `${R.top}px`,
1093
- left: `${R.left}px`,
1094
- width: `${R.width}px`
1098
+ top: A.openAbove ? "auto" : `${A.top}px`,
1099
+ bottom: A.openAbove ? `${window.innerHeight - (((H = y.current) == null ? void 0 : H.getBoundingClientRect().top) || 0)}px` : "auto",
1100
+ left: `${A.left}px`,
1101
+ width: `${A.width}px`
1095
1102
  } : { width: t }
1096
1103
  },
1097
1104
  children: [
1098
1105
  /* @__PURE__ */ m(
1099
- Te,
1106
+ Ie,
1100
1107
  {
1101
- inputRef: x,
1108
+ inputRef: L,
1102
1109
  type: "text",
1103
1110
  value: Z,
1104
- onChange: pe,
1111
+ onChange: ge,
1105
1112
  placeholder: "Search here..."
1106
1113
  }
1107
1114
  ),
1108
- /* @__PURE__ */ m("div", { className: "ia-table-select-options d-flex flex-column gap-2", children: q && q.length > 0 ? q.map((b) => {
1109
- const P = C.findIndex(
1110
- (M) => M.value === b.value
1111
- ), H = P === y;
1112
- return /* @__PURE__ */ I(
1115
+ /* @__PURE__ */ m("div", { className: "ia-table-select-options d-flex flex-column gap-2", children: z && z.length > 0 ? z.map((b) => {
1116
+ const R = w.findIndex(
1117
+ (G) => G.value === b.value
1118
+ ), B = R === N;
1119
+ return /* @__PURE__ */ M(
1113
1120
  "div",
1114
1121
  {
1115
- "data-option-index": P,
1116
- className: `ia-table-select-option cursor-pointer d-flex align-items-center gap-6 ${l ? Array.isArray(n) && n.some(
1117
- (M) => M.value === b.value
1118
- ) ? "ia-table-select-option-selected" : "" : n && !Array.isArray(n) && n.value === b.value ? "ia-table-select-option-selected" : ""} ${b.isDisabled ? "ia-table-option-disabled" : ""} ${H ? "ia-table-select-option-highlighted" : ""}`,
1119
- onClick: (M) => {
1120
- M.stopPropagation(), b.isDisabled || ne(b);
1122
+ "data-option-index": R,
1123
+ className: `ia-table-select-option cursor-pointer d-flex align-items-center gap-6 ${s ? Array.isArray(n) && n.some(
1124
+ (G) => G.value === b.value
1125
+ ) ? "ia-table-select-option-selected" : "" : n && !Array.isArray(n) && n.value === b.value ? "ia-table-select-option-selected" : ""} ${b.isDisabled ? "ia-table-option-disabled" : ""} ${B ? "ia-table-select-option-highlighted" : ""}`,
1126
+ onClick: (G) => {
1127
+ G.stopPropagation(), b.isDisabled || ie(b);
1121
1128
  },
1122
1129
  onMouseEnter: () => {
1123
- b.isDisabled || k(P);
1130
+ b.isDisabled || P(R);
1124
1131
  },
1125
1132
  onMouseLeave: () => {
1126
- b.isDisabled || k(-1);
1133
+ b.isDisabled || P(-1);
1127
1134
  },
1128
1135
  children: [
1129
- l && Array.isArray(n) && n.some(
1130
- (M) => M.value === b.value
1131
- ) ? /* @__PURE__ */ m(he, { className: "icon-16" }) : l ? /* @__PURE__ */ m(fe, { className: "icon-16" }) : null,
1136
+ s && Array.isArray(n) && n.some(
1137
+ (G) => G.value === b.value
1138
+ ) ? /* @__PURE__ */ m(fe, { className: "icon-16" }) : s ? /* @__PURE__ */ m(ue, { className: "icon-16" }) : null,
1132
1139
  /* @__PURE__ */ m("span", { children: b.label })
1133
1140
  ]
1134
1141
  },
@@ -1138,31 +1145,31 @@ const J = new Le(), dt = ({
1138
1145
  ]
1139
1146
  }
1140
1147
  );
1141
- return r ? se(E, document.body) : E;
1148
+ return r ? re($, document.body) : $;
1142
1149
  };
1143
- return /* @__PURE__ */ I(
1150
+ return /* @__PURE__ */ M(
1144
1151
  "div",
1145
1152
  {
1146
1153
  className: `ia-table-selectbox-container ${h && a ? "ia-table-cell-render-select-disabled" : ""}`,
1147
1154
  style: { width: t },
1148
1155
  children: [
1149
1156
  e && /* @__PURE__ */ m("label", { className: "ia-table-select-label", children: e }),
1150
- /* @__PURE__ */ I(
1157
+ /* @__PURE__ */ M(
1151
1158
  "div",
1152
1159
  {
1153
- ref: N,
1154
- className: ge,
1155
- onClick: ue,
1160
+ ref: y,
1161
+ className: ve,
1162
+ onClick: pe,
1156
1163
  children: [
1157
- /* @__PURE__ */ m("div", { className: "ia-table-select-value", children: n ? l ? Array.isArray(n) && n.length > 0 ? n.length === 1 ? n[0].label : `${n.length} items selected` : "Select" : Array.isArray(n) ? "Select" : n.label : l ? "Select" : "Select an option" }),
1158
- (l ? Array.isArray(n) && n.length > 0 : n) && v && /* @__PURE__ */ m(
1164
+ /* @__PURE__ */ m("div", { className: "ia-table-select-value", children: n ? s ? Array.isArray(n) && n.length > 0 ? n.length === 1 ? n[0].label : `${n.length} items selected` : "Select" : Array.isArray(n) ? "Select" : n.label : s ? "Select" : "Select an option" }),
1165
+ (s ? Array.isArray(n) && n.length > 0 : n) && v && /* @__PURE__ */ m(
1159
1166
  "button",
1160
1167
  {
1161
1168
  className: "ia-table-select-reset cursor-pointer flex-shrink-0 d-flex align-items-center justify-content-center",
1162
- onClick: (C) => {
1163
- C.stopPropagation(), s([]);
1169
+ onClick: (w) => {
1170
+ w.stopPropagation(), l([]);
1164
1171
  },
1165
- children: /* @__PURE__ */ m(de, { className: "icon-10" })
1172
+ children: /* @__PURE__ */ m(he, { className: "icon-10" })
1166
1173
  }
1167
1174
  ),
1168
1175
  /* @__PURE__ */ m(
@@ -1173,9 +1180,9 @@ const J = new Le(), dt = ({
1173
1180
  marginLeft: n ? "0" : "8px"
1174
1181
  },
1175
1182
  children: /* @__PURE__ */ m(
1176
- Pe,
1183
+ Ae,
1177
1184
  {
1178
- className: `icon-16 ${T ? "ia-table-rotate-270" : "ia-table-rotate-90"}`
1185
+ className: `icon-16 ${_ ? "ia-table-rotate-270" : "ia-table-rotate-90"}`
1179
1186
  }
1180
1187
  )
1181
1188
  }
@@ -1183,47 +1190,47 @@ const J = new Le(), dt = ({
1183
1190
  ]
1184
1191
  }
1185
1192
  ),
1186
- T && me()
1193
+ _ && be()
1187
1194
  ]
1188
1195
  }
1189
1196
  );
1190
- }, mt = te(Ie), vt = ({
1197
+ }, wt = ne(Ve), Ct = ({
1191
1198
  checked: e = !1,
1192
1199
  onChange: t,
1193
1200
  label: n,
1194
- disabled: s = !1,
1201
+ disabled: l = !1,
1195
1202
  className: a = ""
1196
1203
  }) => {
1197
1204
  const i = (o) => {
1198
- o.stopPropagation(), !s && t && t(o.target.checked);
1205
+ o.stopPropagation(), !l && t && t(o.target.checked);
1199
1206
  };
1200
- return /* @__PURE__ */ I(
1207
+ return /* @__PURE__ */ M(
1201
1208
  "label",
1202
1209
  {
1203
- className: `ia-checkbox-container d-flex align-items-center gap-6 cursor-pointer ${a} ${s ? "ia-checkbox-disabled" : ""} `,
1210
+ className: `ia-checkbox-container d-flex align-items-center gap-6 cursor-pointer ${a} ${l ? "ia-checkbox-disabled" : ""} `,
1204
1211
  children: [
1205
- /* @__PURE__ */ I("div", { className: "ia-checkbox-wrapper d-flex align-items-center justify-content-center position-relative", children: [
1212
+ /* @__PURE__ */ M("div", { className: "ia-checkbox-wrapper d-flex align-items-center justify-content-center position-relative", children: [
1206
1213
  /* @__PURE__ */ m(
1207
1214
  "input",
1208
1215
  {
1209
1216
  type: "checkbox",
1210
1217
  checked: e,
1211
1218
  onChange: i,
1212
- disabled: s,
1219
+ disabled: l,
1213
1220
  className: "ia-checkbox-input cursor-pointer"
1214
1221
  }
1215
1222
  ),
1216
- /* @__PURE__ */ m("span", { className: "ia-checkbox-custom d-flex align-items-center justify-content-center", children: e ? /* @__PURE__ */ m(he, { className: "ia-checkbox-icon" }) : /* @__PURE__ */ m(fe, { className: "ia-checkbox-icon" }) })
1223
+ /* @__PURE__ */ m("span", { className: "ia-checkbox-custom d-flex align-items-center justify-content-center", children: e ? /* @__PURE__ */ m(fe, { className: "ia-checkbox-icon" }) : /* @__PURE__ */ m(ue, { className: "ia-checkbox-icon" }) })
1217
1224
  ] }),
1218
1225
  n && /* @__PURE__ */ m("span", { className: "ia-checkbox-label", children: n })
1219
1226
  ]
1220
1227
  }
1221
1228
  );
1222
- }, bt = ({
1229
+ }, Et = ({
1223
1230
  options: e,
1224
1231
  selectedOption: t,
1225
1232
  onChange: n,
1226
- orientation: s = "vertical",
1233
+ orientation: l = "vertical",
1227
1234
  disabled: a = !1,
1228
1235
  name: i = "radio-group",
1229
1236
  className: o = ""
@@ -1234,8 +1241,8 @@ const J = new Le(), dt = ({
1234
1241
  return /* @__PURE__ */ m(
1235
1242
  "div",
1236
1243
  {
1237
- className: `ia-table-radio-group-container d-flex gap-16 ${s} ${o}`,
1238
- children: e.map((r) => /* @__PURE__ */ I(
1244
+ className: `ia-table-radio-group-container d-flex gap-16 ${l} ${o}`,
1245
+ children: e.map((r) => /* @__PURE__ */ M(
1239
1246
  "label",
1240
1247
  {
1241
1248
  className: "ia-table-radio-option d-flex align-items-center gap-8 cursor-pointer position-relative",
@@ -1267,57 +1274,57 @@ const J = new Le(), dt = ({
1267
1274
  ))
1268
1275
  }
1269
1276
  );
1270
- }, wt = (e) => /* @__PURE__ */ L.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ L.createElement("path", { d: "M3.62057 16C3.15514 16 2.75754 15.8327 2.42777 15.498C2.09814 15.1632 1.93333 14.7595 1.93333 14.287V2.25959H1V0.838165H5.2V0H10.8V0.838165H15V2.25959H14.0667V14.287C14.0667 14.7657 13.9033 15.1708 13.5767 15.5025C13.25 15.8342 12.8509 16 12.3794 16H3.62057ZM12.6667 2.25959H3.33333V14.287C3.33333 14.3721 3.36024 14.442 3.41407 14.4966C3.46789 14.5513 3.53672 14.5786 3.62057 14.5786H12.3794C12.4513 14.5786 12.5171 14.5482 12.5768 14.4874C12.6367 14.4267 12.6667 14.3599 12.6667 14.287V2.25959ZM5.57707 12.6833H6.97683V4.15482H5.57707V12.6833ZM9.02317 12.6833H10.4229V4.15482H9.02317V12.6833Z", fill: "#B4BAC7" })), Ct = (e) => /* @__PURE__ */ L.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 6 9", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ L.createElement("path", { d: "M0.725024 8.3419C0.612116 8.23649 0.555663 8.1117 0.555663 7.96751C0.555663 7.8236 0.612116 7.69894 0.725024 7.59354L4.03321 4.50527L0.713734 1.40646C0.608354 1.30808 0.555664 1.18511 0.555664 1.03755C0.555664 0.889987 0.612118 0.763505 0.725025 0.658103C0.837932 0.552701 0.971615 0.5 1.12607 0.5C1.28023 0.5 1.41376 0.552701 1.52667 0.658103L5.32035 4.21015C5.36552 4.25231 5.39758 4.29798 5.41655 4.34717C5.43522 4.39635 5.44455 4.44906 5.44455 4.50527C5.44455 4.56148 5.43522 4.61419 5.41655 4.66337C5.39758 4.71256 5.36552 4.75823 5.32035 4.80039L1.51537 8.35244C1.40999 8.45081 1.28023 8.5 1.12607 8.5C0.971613 8.5 0.837931 8.4473 0.725024 8.3419Z", fill: "#60697D" }));
1277
+ }, yt = (e) => /* @__PURE__ */ S.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 16 16", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M3.62057 16C3.15514 16 2.75754 15.8327 2.42777 15.498C2.09814 15.1632 1.93333 14.7595 1.93333 14.287V2.25959H1V0.838165H5.2V0H10.8V0.838165H15V2.25959H14.0667V14.287C14.0667 14.7657 13.9033 15.1708 13.5767 15.5025C13.25 15.8342 12.8509 16 12.3794 16H3.62057ZM12.6667 2.25959H3.33333V14.287C3.33333 14.3721 3.36024 14.442 3.41407 14.4966C3.46789 14.5513 3.53672 14.5786 3.62057 14.5786H12.3794C12.4513 14.5786 12.5171 14.5482 12.5768 14.4874C12.6367 14.4267 12.6667 14.3599 12.6667 14.287V2.25959ZM5.57707 12.6833H6.97683V4.15482H5.57707V12.6833ZM9.02317 12.6833H10.4229V4.15482H9.02317V12.6833Z", fill: "#B4BAC7" })), Nt = (e) => /* @__PURE__ */ S.createElement("svg", { width: "1em", height: "1em", viewBox: "0 0 6 9", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...e }, /* @__PURE__ */ S.createElement("path", { d: "M0.725024 8.3419C0.612116 8.23649 0.555663 8.1117 0.555663 7.96751C0.555663 7.8236 0.612116 7.69894 0.725024 7.59354L4.03321 4.50527L0.713734 1.40646C0.608354 1.30808 0.555664 1.18511 0.555664 1.03755C0.555664 0.889987 0.612118 0.763505 0.725025 0.658103C0.837932 0.552701 0.971615 0.5 1.12607 0.5C1.28023 0.5 1.41376 0.552701 1.52667 0.658103L5.32035 4.21015C5.36552 4.25231 5.39758 4.29798 5.41655 4.34717C5.43522 4.39635 5.44455 4.44906 5.44455 4.50527C5.44455 4.56148 5.43522 4.61419 5.41655 4.66337C5.39758 4.71256 5.36552 4.75823 5.32035 4.80039L1.51537 8.35244C1.40999 8.45081 1.28023 8.5 1.12607 8.5C0.971613 8.5 0.837931 8.4473 0.725024 8.3419Z", fill: "#60697D" }));
1271
1278
  export {
1272
- Xe as A,
1273
- ie as B,
1274
- vt as C,
1275
- Ct as D,
1276
- Je as E,
1277
- z as F,
1278
- _e as G,
1279
- ot as H,
1280
- gt as I,
1281
- rt as J,
1282
- nt as K,
1283
- it as L,
1284
- pt as M,
1285
- qe as N,
1286
- Ye as O,
1287
- Be as P,
1288
- ze as Q,
1289
- De as R,
1290
- de as S,
1291
- dt as T,
1292
- Ge as U,
1293
- We as V,
1294
- je as W,
1295
- Ue as X,
1296
- Ke as Y,
1297
- xe as a,
1279
+ et as A,
1280
+ ae as B,
1281
+ Ct as C,
1282
+ Nt as D,
1283
+ tt as E,
1284
+ Y as F,
1285
+ Me as G,
1286
+ ht as H,
1287
+ bt as I,
1288
+ dt as J,
1289
+ st as K,
1290
+ lt as L,
1291
+ vt as M,
1292
+ Ye as N,
1293
+ Je as O,
1294
+ Xe as P,
1295
+ Ke as Q,
1296
+ Oe as R,
1297
+ he as S,
1298
+ ut as T,
1299
+ ze as U,
1300
+ Fe as V,
1301
+ Ze as W,
1302
+ qe as X,
1303
+ Qe as Y,
1304
+ Se as a,
1298
1305
  W as b,
1299
- ye as c,
1300
- tt as d,
1301
- we as e,
1302
- ft as f,
1306
+ xe as c,
1307
+ at as d,
1308
+ ye as e,
1309
+ gt as f,
1303
1310
  F as g,
1304
- at as h,
1305
- ht as i,
1306
- bt as j,
1307
- mt as k,
1308
- ut as l,
1309
- Te as m,
1310
- wt as n,
1311
- Pe as o,
1312
- oe as p,
1313
- ct as q,
1311
+ rt as h,
1312
+ pt as i,
1313
+ Et as j,
1314
+ wt as k,
1315
+ mt as l,
1316
+ Ie as m,
1317
+ yt as n,
1318
+ Ae as o,
1319
+ ce as p,
1320
+ ft as q,
1314
1321
  le as r,
1315
- Ze as s,
1316
- Qe as t,
1317
- Me as u,
1318
- et as v,
1319
- Oe as w,
1320
- lt as x,
1321
- Fe as y,
1322
- st as z
1322
+ Be as s,
1323
+ nt as t,
1324
+ Re as u,
1325
+ it as v,
1326
+ Ge as w,
1327
+ ot as x,
1328
+ Ue as y,
1329
+ ct as z
1323
1330
  };