ia-table 0.14.2 → 0.14.4

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 F, 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 = Z(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
- }, Z = (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
- Z(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 = Z(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 = Z(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,24 +154,24 @@ 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
- const i = Z(a);
162
+ const i = F(a);
163
163
  i && (t[i.toLowerCase()] = a);
164
164
  } else
165
165
  n(a.children);
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 j;
171
- const p = l.autoHeight === !0 || c, d = Z(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 = ((j = l.children) == null ? void 0 : j.length) && !w, C = t.isAllGroupExpanded || t[d] === !0 || i.includes(d) || v || !1, N = s ? t[s] === !0 || t.isAllGroupExpanded || i.includes(s) || v : !0, S = l.columnGroupShow === "open" && !N || !s && W(l);
172
- C && 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
- ) : {}, H = 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, A = s !== null, R = A ? !1 : S, V = 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
- ), $ = !g, x = {
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 || (V ? "" : Z(l)),
202
+ headerName: s.headerName || s.label || (A ? "" : F(s)),
203
203
  hasChildren: g,
204
- isExpanded: C,
205
- hidden: R,
206
- is_hidden: S,
207
- belongsToColumnGroup: A,
208
- children: _.processedColumns || [],
209
- colSpan: H,
210
- field: l.field || Z(l),
211
- is_frozen: l.is_frozen || l.pinned === "left" || l.pinned === "right",
212
- pinned: l.pinned ? l.pinned : l.is_frozen ? "left" : null,
204
+ isExpanded: y,
205
+ hidden: I,
206
+ is_hidden: L,
207
+ belongsToColumnGroup: Z,
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
- isLeaf: $,
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 && $ && !S && (x.is_frozen && x.pinned !== "right" || x.pinned === "left" ? r.left++ : x.is_frozen && x.pinned === "right" ? r.right++ : r.normal++), x;
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], C = (v == null ? void 0 : v.width) || n, 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: C,
268
- is_hidden: N,
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 S, _;
293
- const l = f.field || Z(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((H) => i(H)), g = h && ((_ = (S = f.children) == null ? void 0 : S.every) == null ? void 0 : _.call(
298
- S,
299
- (H) => !H.headerName && !H.columnGroupShow
300
- )), w = !h || g, v = w ? a : o;
301
- w || ae++;
302
- const C = w ? null : ae % 2 === 0 ? "even-column-group" : "odd-column-group";
303
- f.colorClass = C || "";
304
- const N = {
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(N), g && f.children && (f.children.forEach((H) => {
315
- H.isLeaf = !0, H.isStandalone = !0, H.isWithEmptyHeaderName = !0;
316
- }), t[v].push(...f.children)), w && (n.push(N), 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
- }, F(() => () => {
625
- J.hide();
624
+ }, V(() => () => {
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, C = 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 = C.classList.contains("ia-table-line-clamp-2") || C.classList.contains("ia-table-line-clamp-3") || window.getComputedStyle(C).webkitLineClamp !== "none";
636
- let S = !1;
637
- if (N) {
638
- const _ = C.scrollHeight, H = C.clientHeight;
639
- S = _ > H;
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 _ = C.scrollWidth, H = C.clientWidth;
642
- S = _ > H;
641
+ const T = y.scrollWidth, k = y.clientWidth;
642
+ L = T > k;
643
643
  }
644
- S && 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 C = G(null);
693
- F(() => {
694
- const R = (V) => {
695
- V.key === "Escape" && e && t();
692
+ const y = q(null);
693
+ V(() => {
694
+ const I = (A) => {
695
+ A.key === "Escape" && e && t();
696
696
  };
697
- return e && (document.addEventListener("keydown", R), document.body.style.overflow = "hidden"), () => {
698
- document.removeEventListener("keydown", R), 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 N = U(
702
- (R) => {
703
- d && C.current && !C.current.contains(R.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 S = `ia-table-modal-${a}`, _ = {};
709
- i && (_.width = typeof i == "number" ? `${i}px` : i), o && (_.height = typeof o == "number" ? `${o}px` : o);
710
- const H = w && f || v && p, A = /* @__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: N,
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 ${S} ${c}`,
719
- style: _,
720
- ref: C,
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
- H && /* @__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,86 +759,91 @@ const J = new Le(), dt = ({
759
759
  )
760
760
  }
761
761
  );
762
- return se(A, 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 = (C) => C.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,
781
- ...v
780
+ height: E,
781
+ autoFocus: v = !1,
782
+ ...y
782
783
  }) => {
783
- const C = G(null), N = G(null), S = U(() => {
784
- var $;
785
- ($ = C.current) == null || $.focus();
786
- }, []), _ = U(
787
- ($) => {
788
- if (u === "int" && ($.key === "." || $.keyCode === 190 || $.keyCode === 110))
789
- return $.preventDefault(), !1;
784
+ const x = q(null), L = q(null);
785
+ V(() => {
786
+ v && x.current && x.current.focus();
787
+ }, [v]);
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;
790
795
  },
791
796
  [u]
792
- ), H = U(
793
- ($) => {
794
- const x = $.target.value;
797
+ ), Z = U(
798
+ (N) => {
799
+ const P = N.target.value;
795
800
  switch (u) {
796
801
  case "int":
797
- (x === "" || /^-?\d*$/.test(x)) && s($);
802
+ (P === "" || /^-?\d*$/.test(P)) && l(N);
798
803
  break;
799
804
  case "float":
800
805
  case "decimal":
801
- (x === "" || /^-?\d*\.?\d*$/.test(x)) && s($);
806
+ (P === "" || /^-?\d*\.?\d*$/.test(P)) && l(N);
802
807
  break;
803
808
  case "percentage":
804
- (x === "" || /^\d*\.?\d*%?$/.test(x)) && s($);
809
+ (P === "" || /^\d*\.?\d*%?$/.test(P)) && l(N);
805
810
  break;
806
811
  case "dollar":
807
- (x === "" || /^\$?\d*\.?\d*$/.test(x)) && s($);
812
+ (P === "" || /^\$?\d*\.?\d*$/.test(P)) && l(N);
808
813
  break;
809
814
  case "str":
810
815
  default:
811
- s($);
816
+ l(N);
812
817
  break;
813
818
  }
814
819
  },
815
- [s, u]
816
- ), A = u === "str" || u === "text", R = u === "str" || u === "text" ? "left" : "right", V = `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}
817
822
  `;
818
- return /* @__PURE__ */ I(
823
+ return /* @__PURE__ */ M(
819
824
  "div",
820
825
  {
821
826
  className: `ia-table-inputbox-container d-flex flex-column ${i && d ? "ia-table-cell-render-input-disabled" : ""} `,
822
- style: { width: l, ...w ? { height: w } : {} },
827
+ style: { width: s, ...E ? { height: E } : {} },
823
828
  children: [
824
829
  t && /* @__PURE__ */ m("label", { className: "ia-table-input-label", children: t }),
825
- /* @__PURE__ */ I(
830
+ /* @__PURE__ */ M(
826
831
  "div",
827
832
  {
828
- className: V,
829
- onClick: S,
833
+ className: j,
834
+ onClick: T,
830
835
  onMouseEnter: () => {
831
- N.current && N.current.classList.add("visible");
836
+ L.current && L.current.classList.add("visible");
832
837
  },
833
838
  onMouseLeave: () => {
834
- N.current && N.current.classList.remove("visible");
839
+ L.current && L.current.classList.remove("visible");
835
840
  },
836
841
  children: [
837
842
  c && /* @__PURE__ */ m("div", { className: "left-input-icon d-flex align-items-center justify-content-center", children: c }),
838
- h && !A && /* @__PURE__ */ m(
843
+ h && !I && /* @__PURE__ */ m(
839
844
  "div",
840
845
  {
841
- ref: N,
846
+ ref: L,
842
847
  className: `left-input-icon-button d-flex align-items-center justify-content-center ${g}`,
843
848
  children: h
844
849
  }
@@ -846,21 +851,21 @@ const J = new Le(), dt = ({
846
851
  /* @__PURE__ */ m("div", { className: "ia-table-input-wrapper", children: /* @__PURE__ */ m(
847
852
  "input",
848
853
  {
849
- ref: C,
854
+ ref: x,
850
855
  type: a,
851
856
  value: n,
852
- onChange: H,
857
+ onChange: Z,
853
858
  onClick: p,
854
- onKeyDown: _,
859
+ onKeyDown: k,
855
860
  placeholder: e,
856
861
  disabled: i,
857
862
  className: "ia-table-input",
858
- style: { textAlign: R },
859
- ...v
863
+ style: { textAlign: A },
864
+ ...y
860
865
  }
861
866
  ) }),
862
867
  r && /* @__PURE__ */ m("div", { className: "right-input-icon d-flex align-items-center justify-content-center", children: r }),
863
- h && A && /* @__PURE__ */ m(
868
+ h && I && /* @__PURE__ */ m(
864
869
  "div",
865
870
  {
866
871
  className: `right-input-icon-button d-flex align-items-center justify-content-center ${g}`,
@@ -874,26 +879,26 @@ const J = new Le(), dt = ({
874
879
  ]
875
880
  }
876
881
  );
877
- }, 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: [
878
- /* @__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" }),
879
884
  /* @__PURE__ */ m(
880
885
  "input",
881
886
  {
882
887
  ref: e,
883
888
  type: n,
884
889
  value: a,
885
- placeholder: s,
890
+ placeholder: l,
886
891
  className: "ia-table-select-search-input",
887
892
  onChange: t,
888
893
  onClick: (i) => i.stopPropagation()
889
894
  }
890
895
  )
891
- ] }), Me = (e, t, n) => {
892
- F(() => {
896
+ ] }), Re = (e, t, n) => {
897
+ V(() => {
893
898
  var a;
894
- const s = (a = n == null ? void 0 : n.getTableInstance) == null ? void 0 : a.call(n);
895
- if (e && t && (s != null && s.current)) {
896
- 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(
897
902
  ".ia-table-frozen-scroll-container, .ia-table-right-pinned-scroll-container, .ia-table-normal-scroll-container"
898
903
  ), o = Array.from(
899
904
  i
@@ -910,220 +915,227 @@ const J = new Le(), dt = ({
910
915
  };
911
916
  }
912
917
  }, [e, t, n]);
913
- }, Ie = ({
918
+ }, Ve = ({
914
919
  label: e = "",
915
920
  width: t = "100%",
916
921
  selectedOptions: n,
917
- setSelectedOptions: s,
922
+ setSelectedOptions: l,
918
923
  isDisabled: a = !1,
919
924
  isOpen: i = void 0,
920
925
  setIsOpen: o = void 0,
921
926
  initialOptions: c = [],
922
927
  withPortal: r = !1,
923
928
  className: f = "",
924
- isMulti: l = !1,
929
+ isMulti: s = !1,
925
930
  currentOptions: p,
926
931
  setCurrentOptions: d,
927
932
  onBlur: u,
928
933
  isCellRenderer: h = !1,
929
934
  tableApi: g = null,
930
- lazyLoadCellRenderer: w = !1,
935
+ lazyLoadCellRenderer: E = !1,
931
936
  isEnableResetButton: v = !0
932
937
  }) => {
933
- const C = G(null), N = G(null), S = G(null), [_, H] = X(!1), [A, R] = X(""), [V, $] = X(null), [x, j] = X(-1), [B, Y] = X(c), q = p || B || c, T = i !== void 0 ? i : _, D = o || H;
934
- 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);
935
940
  const O = U(() => {
936
- if (C.current) {
937
- const E = C.current.getBoundingClientRect();
941
+ if (y.current) {
942
+ const w = y.current.getBoundingClientRect(), C = 250, $ = window.innerHeight - w.bottom, H = w.top, b = $ < C && H > $;
938
943
  return {
939
- top: E.bottom + window.scrollY,
940
- left: E.left + window.scrollX,
941
- width: E.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
942
948
  };
943
949
  }
944
950
  return null;
945
951
  }, []);
946
- F(() => {
947
- if (w) {
952
+ V(() => {
953
+ if (E) {
948
954
  if (r) {
949
- const E = O();
950
- E && $(E);
955
+ const w = O();
956
+ w && j(w);
951
957
  }
952
- D(w);
958
+ D(E);
953
959
  }
954
- }, [w, r, O]), F(() => {
955
- if (T && r) {
956
- const E = O();
957
- E && $(E);
960
+ }, [E, r, O]), V(() => {
961
+ if (_ && r) {
962
+ const w = O();
963
+ w && j(w);
958
964
  }
959
- }, [T, r, O]), F(() => {
960
- const E = (b) => {
961
- C.current && !C.current.contains(b.target) && N.current && !N.current.contains(b.target) && (D(!1), u && u(), h && (g != null && g.tableId) && (window.iaTablePortalOpen || (window.iaTablePortalOpen = {}), window.iaTablePortalOpen[g.tableId] = !1));
962
- }, y = () => {
963
- if (T && r) {
964
- const b = O();
965
- b && $(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($);
966
972
  }
967
973
  };
968
- return T && (document.addEventListener("mousedown", E), r && (window.addEventListener("scroll", y, !0), window.addEventListener("resize", y))), () => {
969
- document.removeEventListener("mousedown", E), r && (window.removeEventListener("scroll", y, !0), window.removeEventListener("resize", y));
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));
970
976
  };
971
977
  }, [
972
- T,
978
+ _,
973
979
  D,
974
980
  r,
975
981
  h,
976
982
  u,
977
983
  g,
978
984
  O
979
- ]), F(() => {
980
- T && S.current && (S.current.focus(), j(-1));
981
- }, [T]), F(() => {
982
- p || c && c.length > 0 && Y(c);
985
+ ]), V(() => {
986
+ _ && L.current && (L.current.focus(), P(-1));
987
+ }, [_]), V(() => {
988
+ p || c && c.length > 0 && X(c);
983
989
  }, [c, p, d]);
984
- const ue = U(
985
- (E) => {
986
- if (E.stopPropagation(), !a) {
987
- if (!T && r) {
988
- const y = O();
989
- y && $(y);
990
+ const pe = U(
991
+ (w) => {
992
+ if (w.stopPropagation(), !a) {
993
+ if (!_ && r) {
994
+ const C = O();
995
+ C && j(C);
990
996
  }
991
- D(!T), T && u && u();
997
+ D(!_), _ && u && u();
992
998
  }
993
999
  },
994
- [a, T, D, r, O]
995
- ), ne = U(
996
- (E) => {
997
- if (l)
998
- if (Array.isArray(n) && n.some((b) => b.value === E.value))
999
- 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(
1000
1006
  n.filter(
1001
- (b) => b.value !== E.value
1007
+ ($) => $.value !== w.value
1002
1008
  )
1003
1009
  );
1004
1010
  else {
1005
- const b = Array.isArray(n) ? n : [];
1006
- s([...b, E]);
1011
+ const $ = Array.isArray(n) ? n : [];
1012
+ l([...$, w]);
1007
1013
  }
1008
1014
  else
1009
- s(E), 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);
1010
1016
  },
1011
- [l, n, s, D, h]
1012
- ), pe = U(
1013
- (E) => {
1014
- const y = E.target.value.toLowerCase();
1015
- R(y), j(-1);
1016
- const b = p || c;
1017
- if (y) {
1018
- const P = b.filter((k) => k.label && typeof k.label == "string" ? k.label.toLowerCase().includes(y) : k.value && typeof k.value == "string" ? k.value.toLowerCase().includes(y) : k.label && typeof k.label == "number" ? k.label == Number(y) : k.value && typeof k.value == "number" ? k.value == Number(y) : !1);
1019
- 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);
1020
1026
  } else
1021
- d ? d(c) : Y(c);
1027
+ d ? d(c) : X(c);
1022
1028
  },
1023
1029
  [c, p, d]
1024
1030
  );
1025
- F(() => {
1026
- if (!T) return;
1027
- const E = (y) => {
1028
- const b = q.filter((P) => !P.isDisabled);
1029
- switch (y.key) {
1031
+ V(() => {
1032
+ if (!_) return;
1033
+ const w = (C) => {
1034
+ const $ = z.filter((H) => !H.isDisabled);
1035
+ switch (C.key) {
1030
1036
  case "ArrowDown":
1031
- y.preventDefault(), y.stopPropagation(), j((P) => {
1032
- const k = P < b.length - 1 ? P + 1 : 0;
1037
+ C.preventDefault(), C.stopPropagation(), P((H) => {
1038
+ const b = H < $.length - 1 ? H + 1 : 0;
1033
1039
  return setTimeout(() => {
1034
- var K;
1035
- const M = (K = N.current) == null ? void 0 : K.querySelector(
1036
- `[data-option-index="${k}"]`
1040
+ var B;
1041
+ const R = (B = x.current) == null ? void 0 : B.querySelector(
1042
+ `[data-option-index="${b}"]`
1037
1043
  );
1038
- M == null || M.scrollIntoView({ block: "nearest" });
1039
- }, 0), k;
1044
+ R == null || R.scrollIntoView({ block: "nearest" });
1045
+ }, 0), b;
1040
1046
  });
1041
1047
  break;
1042
1048
  case "ArrowUp":
1043
- y.preventDefault(), y.stopPropagation(), j((P) => {
1044
- const k = P > 0 ? P - 1 : b.length - 1;
1049
+ C.preventDefault(), C.stopPropagation(), P((H) => {
1050
+ const b = H > 0 ? H - 1 : $.length - 1;
1045
1051
  return setTimeout(() => {
1046
- var K;
1047
- const M = (K = N.current) == null ? void 0 : K.querySelector(
1048
- `[data-option-index="${k}"]`
1052
+ var B;
1053
+ const R = (B = x.current) == null ? void 0 : B.querySelector(
1054
+ `[data-option-index="${b}"]`
1049
1055
  );
1050
- M == null || M.scrollIntoView({ block: "nearest" });
1051
- }, 0), k;
1056
+ R == null || R.scrollIntoView({ block: "nearest" });
1057
+ }, 0), b;
1052
1058
  });
1053
1059
  break;
1054
1060
  case "Enter":
1055
- if (y.preventDefault(), y.stopPropagation(), x >= 0 && x < b.length) {
1056
- const P = b[x];
1057
- 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);
1058
1064
  }
1059
1065
  break;
1060
1066
  case "Escape":
1061
- y.preventDefault(), y.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);
1062
1068
  break;
1063
1069
  }
1064
1070
  };
1065
- return document.addEventListener("keydown", E), () => {
1066
- document.removeEventListener("keydown", E);
1071
+ return document.addEventListener("keydown", w), () => {
1072
+ document.removeEventListener("keydown", w);
1067
1073
  };
1068
1074
  }, [
1069
- T,
1070
- q,
1071
- x,
1072
- ne,
1075
+ _,
1076
+ z,
1077
+ N,
1078
+ ie,
1073
1079
  D,
1074
1080
  h,
1075
1081
  g
1076
1082
  ]);
1077
- 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 = () => {
1078
- const E = q.filter((b) => !b.isDisabled), y = /* @__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(
1079
1090
  "div",
1080
1091
  {
1081
- ref: N,
1082
- 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" : ""}`,
1083
1094
  onClick: (b) => b.stopPropagation(),
1084
1095
  style: {
1085
- ...r && V ? {
1096
+ ...r && A ? {
1086
1097
  position: "absolute",
1087
- top: `${V.top}px`,
1088
- left: `${V.left}px`,
1089
- width: `${V.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`
1090
1102
  } : { width: t }
1091
1103
  },
1092
1104
  children: [
1093
1105
  /* @__PURE__ */ m(
1094
- Te,
1106
+ Ie,
1095
1107
  {
1096
- inputRef: S,
1108
+ inputRef: L,
1097
1109
  type: "text",
1098
- value: A,
1099
- onChange: pe,
1110
+ value: Z,
1111
+ onChange: ge,
1100
1112
  placeholder: "Search here..."
1101
1113
  }
1102
1114
  ),
1103
- /* @__PURE__ */ m("div", { className: "ia-table-select-options d-flex flex-column gap-2", children: q && q.length > 0 ? q.map((b) => {
1104
- const P = E.findIndex(
1105
- (M) => M.value === b.value
1106
- ), k = P === x;
1107
- 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(
1108
1120
  "div",
1109
1121
  {
1110
- "data-option-index": P,
1111
- className: `ia-table-select-option cursor-pointer d-flex align-items-center gap-6 ${l ? Array.isArray(n) && n.some(
1112
- (M) => M.value === b.value
1113
- ) ? "ia-table-select-option-selected" : "" : n && !Array.isArray(n) && n.value === b.value ? "ia-table-select-option-selected" : ""} ${b.isDisabled ? "ia-table-option-disabled" : ""} ${k ? "ia-table-select-option-highlighted" : ""}`,
1114
- onClick: (M) => {
1115
- 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);
1116
1128
  },
1117
1129
  onMouseEnter: () => {
1118
- b.isDisabled || j(P);
1130
+ b.isDisabled || P(R);
1119
1131
  },
1120
1132
  onMouseLeave: () => {
1121
- b.isDisabled || j(-1);
1133
+ b.isDisabled || P(-1);
1122
1134
  },
1123
1135
  children: [
1124
- l && Array.isArray(n) && n.some(
1125
- (M) => M.value === b.value
1126
- ) ? /* @__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,
1127
1139
  /* @__PURE__ */ m("span", { children: b.label })
1128
1140
  ]
1129
1141
  },
@@ -1133,31 +1145,31 @@ const J = new Le(), dt = ({
1133
1145
  ]
1134
1146
  }
1135
1147
  );
1136
- return r ? se(y, document.body) : y;
1148
+ return r ? re($, document.body) : $;
1137
1149
  };
1138
- return /* @__PURE__ */ I(
1150
+ return /* @__PURE__ */ M(
1139
1151
  "div",
1140
1152
  {
1141
1153
  className: `ia-table-selectbox-container ${h && a ? "ia-table-cell-render-select-disabled" : ""}`,
1142
1154
  style: { width: t },
1143
1155
  children: [
1144
1156
  e && /* @__PURE__ */ m("label", { className: "ia-table-select-label", children: e }),
1145
- /* @__PURE__ */ I(
1157
+ /* @__PURE__ */ M(
1146
1158
  "div",
1147
1159
  {
1148
- ref: C,
1149
- className: ge,
1150
- onClick: ue,
1160
+ ref: y,
1161
+ className: ve,
1162
+ onClick: pe,
1151
1163
  children: [
1152
- /* @__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" }),
1153
- (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(
1154
1166
  "button",
1155
1167
  {
1156
1168
  className: "ia-table-select-reset cursor-pointer flex-shrink-0 d-flex align-items-center justify-content-center",
1157
- onClick: (E) => {
1158
- E.stopPropagation(), s([]);
1169
+ onClick: (w) => {
1170
+ w.stopPropagation(), l([]);
1159
1171
  },
1160
- children: /* @__PURE__ */ m(de, { className: "icon-10" })
1172
+ children: /* @__PURE__ */ m(he, { className: "icon-10" })
1161
1173
  }
1162
1174
  ),
1163
1175
  /* @__PURE__ */ m(
@@ -1168,9 +1180,9 @@ const J = new Le(), dt = ({
1168
1180
  marginLeft: n ? "0" : "8px"
1169
1181
  },
1170
1182
  children: /* @__PURE__ */ m(
1171
- Pe,
1183
+ Ae,
1172
1184
  {
1173
- className: `icon-16 ${T ? "ia-table-rotate-270" : "ia-table-rotate-90"}`
1185
+ className: `icon-16 ${_ ? "ia-table-rotate-270" : "ia-table-rotate-90"}`
1174
1186
  }
1175
1187
  )
1176
1188
  }
@@ -1178,47 +1190,47 @@ const J = new Le(), dt = ({
1178
1190
  ]
1179
1191
  }
1180
1192
  ),
1181
- T && me()
1193
+ _ && be()
1182
1194
  ]
1183
1195
  }
1184
1196
  );
1185
- }, mt = te(Ie), vt = ({
1197
+ }, wt = ne(Ve), Ct = ({
1186
1198
  checked: e = !1,
1187
1199
  onChange: t,
1188
1200
  label: n,
1189
- disabled: s = !1,
1201
+ disabled: l = !1,
1190
1202
  className: a = ""
1191
1203
  }) => {
1192
1204
  const i = (o) => {
1193
- o.stopPropagation(), !s && t && t(o.target.checked);
1205
+ o.stopPropagation(), !l && t && t(o.target.checked);
1194
1206
  };
1195
- return /* @__PURE__ */ I(
1207
+ return /* @__PURE__ */ M(
1196
1208
  "label",
1197
1209
  {
1198
- 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" : ""} `,
1199
1211
  children: [
1200
- /* @__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: [
1201
1213
  /* @__PURE__ */ m(
1202
1214
  "input",
1203
1215
  {
1204
1216
  type: "checkbox",
1205
1217
  checked: e,
1206
1218
  onChange: i,
1207
- disabled: s,
1219
+ disabled: l,
1208
1220
  className: "ia-checkbox-input cursor-pointer"
1209
1221
  }
1210
1222
  ),
1211
- /* @__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" }) })
1212
1224
  ] }),
1213
1225
  n && /* @__PURE__ */ m("span", { className: "ia-checkbox-label", children: n })
1214
1226
  ]
1215
1227
  }
1216
1228
  );
1217
- }, bt = ({
1229
+ }, Et = ({
1218
1230
  options: e,
1219
1231
  selectedOption: t,
1220
1232
  onChange: n,
1221
- orientation: s = "vertical",
1233
+ orientation: l = "vertical",
1222
1234
  disabled: a = !1,
1223
1235
  name: i = "radio-group",
1224
1236
  className: o = ""
@@ -1229,8 +1241,8 @@ const J = new Le(), dt = ({
1229
1241
  return /* @__PURE__ */ m(
1230
1242
  "div",
1231
1243
  {
1232
- className: `ia-table-radio-group-container d-flex gap-16 ${s} ${o}`,
1233
- 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(
1234
1246
  "label",
1235
1247
  {
1236
1248
  className: "ia-table-radio-option d-flex align-items-center gap-8 cursor-pointer position-relative",
@@ -1262,57 +1274,57 @@ const J = new Le(), dt = ({
1262
1274
  ))
1263
1275
  }
1264
1276
  );
1265
- }, 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" }));
1266
1278
  export {
1267
- Xe as A,
1268
- ie as B,
1269
- vt as C,
1270
- Ct as D,
1271
- Je as E,
1272
- z as F,
1273
- _e as G,
1274
- ot as H,
1275
- gt as I,
1276
- rt as J,
1277
- nt as K,
1278
- it as L,
1279
- pt as M,
1280
- qe as N,
1281
- Ye as O,
1282
- Be as P,
1283
- ze as Q,
1284
- De as R,
1285
- de as S,
1286
- dt as T,
1287
- Ge as U,
1288
- We as V,
1289
- je as W,
1290
- Ue as X,
1291
- Ke as Y,
1292
- 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,
1293
1305
  W as b,
1294
- ye as c,
1295
- tt as d,
1296
- we as e,
1297
- ft as f,
1298
- Z as g,
1299
- at as h,
1300
- ht as i,
1301
- bt as j,
1302
- mt as k,
1303
- ut as l,
1304
- Te as m,
1305
- wt as n,
1306
- Pe as o,
1307
- oe as p,
1308
- ct as q,
1306
+ xe as c,
1307
+ at as d,
1308
+ ye as e,
1309
+ gt as f,
1310
+ F as g,
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,
1309
1321
  le as r,
1310
- Ze as s,
1311
- Qe as t,
1312
- Me as u,
1313
- et as v,
1314
- Oe as w,
1315
- lt as x,
1316
- Fe as y,
1317
- 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
1318
1330
  };