@epam/ai-dial-ui-kit 0.14.0-dev.30 → 0.14.0-dev.32

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 +1 @@
1
- "use strict";const t=require("react/jsx-runtime"),g=require("./DateCellRenderer-BdsPUuVy.cjs"),W=require("@tabler/icons-react"),a=require("react"),f=require("./IconButton-BCbBgnzo.cjs"),x=require("./merge-classes-Dipy1Ih1.cjs"),b=require("@floating-ui/react"),Ee=require("./icon-DhjrDQ8I.cjs"),ce=require("./icon-CrGVkVpG.cjs"),ct=require("classnames");var Ie=(e=>(e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e))(Ie||{});const it=7,dt=2,ut=500,mt="fill-control-inverted",ft="z-[55] max-w-[376px] whitespace-pre-wrap break-words rounded-lg bg-control-inverted px-3 py-2 dial-small-text text-control-inverted shadow-xs",Me=a.createContext(null),Ge=()=>{const e=a.useContext(Me);if(e==null)throw new Error("Tooltip components must be wrapped in <TooltipContainer />");return e},pt=({initialOpen:e=!1,placement:n=Ie.Bottom,isTriggerClickable:s=!1,open:o,onOpenChange:d}={})=>{const[u,l]=a.useState(e),p=a.useRef(null),m=o??u,i=d??l,h=b.useFloating({placement:n,open:m,onOpenChange:i,whileElementsMounted:b.autoUpdate,middleware:[b.offset(it+dt),b.flip({fallbackAxisSideDirection:"start",padding:5}),b.shift({padding:5}),b.arrow({element:p})]}),N=b.useHover(h.context,{move:!1,enabled:o==null,mouseOnly:s,delay:{open:ut,close:0}}),E=b.useFocus(h.context,{enabled:o==null}),w=b.useDismiss(h.context),D=b.useRole(h.context,{role:"tooltip"}),T=b.useInteractions([N,E,w,D]);return a.useEffect(()=>{if(!m)return;const k=h.refs.reference.current;if(!(k instanceof Element))return;const M=new IntersectionObserver(([G])=>{G.isIntersecting||i(!1)},{root:null,threshold:0});return M.observe(k),()=>M.disconnect()},[m,h.refs.reference,i]),a.useMemo(()=>({open:m,setOpen:i,arrowRef:p,...T,...h}),[m,i,T,h])},ve=({children:e,...n})=>{const s=pt(n);return t.jsx(Me.Provider,{value:s,children:e})},ke=({style:e,...n})=>{const s=Ge(),o=f.useIsMobileScreen(),d=g.useThemeScope(),u=a.useRef(null),l=b.useMergeRefs([s.refs.setFloating,u]);return!s.open||o?null:t.jsx(b.FloatingPortal,{id:"tooltip-portal",children:t.jsxs("div",{ref:l,"data-placement":s.placement,style:{...s.floatingStyles,...e},...s.getFloatingProps(n),className:ct(ft,d,s.getFloatingProps(n).className),children:[n.children,t.jsx(b.FloatingArrow,{ref:s.arrowRef,context:s.context,className:mt})]})})},Re=({children:e,asChild:n=!1,...s})=>{const o=Ge(),d=n&&a.isValidElement(e),u=d?e.props?.ref:null,l=b.useMergeRefs([o.refs.setReference,...u?[u]:[]]);if(d){const p=e.props;return a.cloneElement(e,o.getReferenceProps({...p,...s,className:x.mergeClasses(p.className,s.className)||void 0,ref:l}))}return t.jsx("span",{ref:l,...o.getReferenceProps(s),className:s.className??"text-start",children:e})},ze=({hideTooltip:e=!1,tooltip:n,children:s,asChild:o=!1,triggerClassName:d,contentClassName:u,...l})=>{const p=!e&&!!n;return t.jsxs(ve,{...l,children:[t.jsx(Re,{asChild:o,className:d,children:s}),p&&t.jsx(ke,{className:u,children:n})]})},Oe={[f.ButtonVariant.Primary]:{[f.ButtonAppearance.Solid]:"dial-kit-primary-solid-button",[f.ButtonAppearance.Ghost]:"dial-kit-primary-ghost-button",[f.ButtonAppearance.Link]:"dial-kit-primary-link-button"},[f.ButtonVariant.Neutral]:{[f.ButtonAppearance.Solid]:"dial-kit-neutral-solid-button",[f.ButtonAppearance.Outlined]:"dial-kit-neutral-outlined-button"},[f.ButtonVariant.Danger]:{[f.ButtonAppearance.Solid]:"dial-kit-danger-solid-button",[f.ButtonAppearance.Ghost]:"dial-kit-danger-ghost-button",[f.ButtonAppearance.Outlined]:"dial-kit-danger-outlined-button"},[f.ButtonVariant.Static]:{[f.ButtonAppearance.Solid]:"dial-kit-static-solid-button"},[f.ButtonVariant.Success]:{},[f.ButtonVariant.Secondary]:{},[f.ButtonVariant.Tertiary]:{}},Pe=(e=f.ButtonVariant.Primary,n=f.ButtonAppearance.Solid)=>{const s=Oe[e]?.[n];return s||(console.warn(`Could not find Button styles for variant: ${e} and appearance: ${n}. Using default primary solid button styles.`),Oe[f.ButtonVariant.Primary][f.ButtonAppearance.Solid])},xt={[f.ElementSize.Small]:"size-[24px]",[f.ElementSize.Standard]:"size-[40px] dial-kit-enhanced-target",[f.ElementSize.Large]:"size-[48px] dial-kit-enhanced-target"},ie=({variant:e,appearance:n=f.ButtonAppearance.Solid,size:s=f.ElementSize.Standard,className:o,icon:d,tooltipProps:u,type:l="button",...p})=>{const m=x.mergeClasses("dial-kit-base-icon-button dial-kit-base-button",e&&Pe(e,n),xt[s],o),i=t.jsx("button",{...p,type:l,className:m,"aria-label":f.resolveAccessibleName(p["aria-label"],u?.tooltip),children:d});return u?t.jsx(ze,{asChild:!0,...u,children:i}):i},He=({caption:e,onClick:n,"aria-label":s})=>{if(!e)return null;const o=x.mergeClasses("text-secondary hover:text-control-accent-hover active:text-control-accent-active","focus-visible:outline focus-visible:outline-focus");return t.jsx(ie,{"aria-label":s,className:o,icon:t.jsx(W.IconInfoCircle,{size:ce.DIAL_ICON_SIZE.SM,stroke:Ee.DIAL_KIT_ICON_STROKE,"aria-hidden":"true"}),onClick:n,size:f.ElementSize.Small,tooltipProps:{tooltip:e}})},Ae=({label:e,required:n,className:s,containerClassName:o,caption:d,size:u=f.ElementSize.Small,...l})=>e?t.jsxs("span",{className:x.mergeClasses("flex items-center gap-0.5",o),children:[t.jsxs("label",{...l,className:x.mergeClasses("text-secondary flex items-center gap-0.5",u===f.ElementSize.Small?"dial-tiny-semi-text":"dial-small-text",s),children:[typeof e=="string"?t.jsx("span",{className:"min-h-4",children:e}):e,n&&t.jsxs(t.Fragment,{children:[t.jsx("span",{"aria-hidden":"true",className:"text-error dial-tiny-text",children:"*"}),t.jsx("span",{className:"sr-only",children:"(required)"})]})]}),t.jsx(He,{caption:d})]}):null,je=(e,n)=>({appearance:o,...d})=>t.jsx(ie,{...d,variant:e,appearance:o||n}),We=(e,n)=>({variant:o,...d})=>t.jsx(ie,{...d,variant:o||n,appearance:e}),gt=je(f.ButtonVariant.Primary,f.ButtonAppearance.Solid),Ct=je(f.ButtonVariant.Neutral,f.ButtonAppearance.Solid),bt=je(f.ButtonVariant.Danger,f.ButtonAppearance.Ghost),Ve=We(f.ButtonAppearance.Ghost,f.ButtonVariant.Primary),ht=We(f.ButtonAppearance.Solid,f.ButtonVariant.Static),Ue=({ariaLabel:e="Close",className:n,size:s=f.ElementSize.Small,onClose:o,...d})=>t.jsx(Ve,{...d,size:s,"aria-label":e,className:n,onClick:o,icon:t.jsx(W.IconX,{size:s===f.ElementSize.Small?ce.DIAL_ICON_SIZE.SM:ce.DIAL_ICON_SIZE.MD,stroke:Ee.DIAL_KIT_ICON_STROKE,"aria-hidden":"true"})}),St=e=>{const n=a.useRef(null),[s,o]=a.useState(!1),[d,u]=a.useState(""),l=a.useRef(!1),p=a.useCallback(()=>{const i=n.current;i&&(l.current&&u(i.textContent??""),o(i.scrollWidth>i.clientWidth))},[]),m=a.useCallback(()=>g.scheduleMeasure(p),[p]);return a.useEffect(()=>{const i=n.current;if(i)return g.observeElementSize(i,p)},[p]),a.useEffect(()=>{l.current=typeof e!="string",m()},[e,m]),{ref:n,isTruncated:s,textContent:d,remeasure:m}},we=({text:e,className:n,contentClassName:s,hideTooltip:o=!1,id:d,customTooltipContent:u,...l})=>{const{ref:p,isTruncated:m,textContent:i,remeasure:h}=St(e),N=typeof e=="string"?e:i,E=a.useMemo(()=>o||!m?null:u??N,[u,N,o,m]);return t.jsxs(ve,{...l,children:[t.jsx(Re,{asChild:!0,onMouseEnter:h,onFocusCapture:h,children:t.jsx("span",{id:d,ref:p,"aria-label":m&&N?N:void 0,className:x.mergeClasses("block min-w-0 max-w-full flex-1 truncate text-start",n),children:e})}),!!E&&t.jsx(ke,{className:s,children:E})]})},Ke="rounded-xl bg-layer-raised p-1 shadow-md",$e=x.mergeClasses(Ke,"w-max"),qe=x.mergeClasses("flex w-full cursor-pointer items-center gap-2 px-3 h-[40px] rounded-lg","dial-small-text text-primary truncate","hover:bg-control-accent-alpha-hover","focus-visible:outline focus-visible:outline-focus"),Xe="bg-control-accent-alpha",Ze=x.mergeClasses("cursor-not-allowed text-control-disable-primary","bg-transparent hover:bg-transparent"),Ye=4,yt=x.mergeClasses("flex items-center gap-2 align-middle","h-auto px-0 bg-transparent border-0"),Nt=x.mergeClasses("z-[53] focus-visible:outline-none",Ke),Et=$e,Se=qe,It=Xe,ye=x.mergeClasses(Ze,"!cursor-not-allowed"),Je="text-error",vt="my-1 border-t border-tertiary",q=Ye,kt=t.jsx(W.IconChevronRight,{size:ce.DIAL_ICON_SIZE.SM,stroke:Ee.DIAL_KIT_ICON_STROKE,"aria-hidden":"true"}),Le={size:14,stroke:3,"aria-hidden":!0},De=({isSelected:e=!1,isIndeterminate:n=!1,invalid:s=!1,disabled:o=!1,htmlFor:d,className:u})=>{const l=n||e,p=!!d,m=x.mergeClasses("grid size-[20px] shrink-0 place-items-center rounded border transition-colors duration-200",p&&"dial-kit-minimum-target",p&&"peer-focus-visible:outline peer-focus-visible:outline-focus",o?"border-transparent bg-control-disable-primary text-control-disable-primary":x.mergeClasses(s&&l&&"border-transparent bg-control-error text-control-permanent",s&&!l&&"border-error bg-control-neutral",!s&&l&&"border-transparent bg-control-accent text-control-permanent hover:bg-control-accent-hover",!s&&!l&&"border-default bg-control-neutral hover:border-accent hover:bg-control-accent-alpha-hover"),o?"cursor-not-allowed":p&&"cursor-pointer",u),i=n?t.jsx(W.IconMinus,{...Le}):e&&t.jsx(W.IconCheck,{...Le});return p?t.jsx("label",{htmlFor:d,className:m,children:i}):t.jsx("span",{"aria-hidden":"true",className:m,children:i})},Rt=({item:e,onRootClose:n})=>{const{isOpen:s,refs:o,floatingStyles:d,context:u,getReferenceProps:l,getFloatingProps:p}=g.useSubMenuFloating(q,"menu",!!e.disabled),m=a.useCallback(i=>h=>{i.disabled||(i.onClick?.({key:i.key,domEvent:h}),n())},[n]);return t.jsxs(t.Fragment,{children:[t.jsxs("button",{ref:o.setReference,type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":s,"aria-disabled":!!e.disabled,disabled:e.disabled,className:x.mergeClasses(Se,e.disabled&&ye,e.className),...l(),children:[e.renderItem?e.renderItem(e):t.jsxs(t.Fragment,{children:[e.icon&&t.jsx("span",{className:x.mergeClasses(e.disabled&&"text-secondary"),children:t.jsx(g.DialIcon,{icon:e.icon})}),t.jsx("span",{className:x.mergeClasses("flex-1 truncate text-start",e.disabled&&"text-secondary"),children:e.label})]}),t.jsx("span",{className:x.mergeClasses("ml-auto shrink-0",e.disabled&&"text-secondary"),children:kt})]}),s&&t.jsx(g.SubMenuPanel,{refs:o,floatingStyles:d,context:u,getFloatingProps:p,role:"menu",surfaceClassName:Et,children:e.renderSubMenu?e.renderSubMenu():t.jsxs(t.Fragment,{children:[e.menuHeader&&(typeof e.menuHeader=="function"?e.menuHeader():e.menuHeader),e.children.map(i=>t.jsx("button",{role:"menuitem",type:"button","aria-disabled":!!i.disabled,disabled:i.disabled,className:x.mergeClasses(Se,i.disabled&&ye,i.danger&&Je,i.className),onClick:m(i),children:i.renderItem?i.renderItem(i):t.jsxs(t.Fragment,{children:[i.icon&&t.jsx("span",{className:x.mergeClasses(i.danger&&"text-error",i.disabled&&"text-secondary"),children:t.jsx(g.DialIcon,{icon:i.icon})}),t.jsx("span",{className:x.mergeClasses("flex-1 truncate text-start",i.danger&&"text-error",i.disabled&&"text-secondary"),children:i.label})]})},i.key)),e.menuFooter&&(typeof e.menuFooter=="function"?e.menuFooter():e.menuFooter)]})})]})},At='[role="menuitem"], [role="menuitemcheckbox"], [role="option"]',jt=e=>!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true",wt=["ArrowDown","ArrowUp","Home","End"],Dt=(e,n,s)=>{if(e==="Home")return 0;if(e==="End")return s-1;const o=e==="ArrowDown"?1:-1;return n===-1?o===1?0:s-1:(n+o+s)%s},Tt=e=>"clientWidth"in e?e.clientWidth:e.getBoundingClientRect?.()?.width??0,Qe=({children:e,items:n,onItemClick:s,menuHeader:o,menuFooter:d,renderOverlay:u,trigger:l=[g.DropdownTrigger.Click],placement:p,disabled:m=!1,open:i,defaultOpen:h=!1,onOpenChange:N,closable:E=!1,onClose:w,className:D,overlayContentClassName:T,separatorClassName:k,listClassName:M,outsidePressIgnoreRef:G,outsideClosable:de=!0,allowedPlacements:te,anchorToMouse:v=!1,matchReferenceWidth:V=!0,maxDropdownHeight:X})=>{const I=g.useThemeScope(),[ue,me]=a.useState(h),Z=i!==void 0,R=Z?!!i:ue,z=a.useRef(null),[se,O]=a.useState(!0),y=a.useCallback((r,S,A)=>{r&&O(A!=="hover"&&A!=="safe-polygon"),Z||me(r),N?.(r)},[Z,N]),Y=a.useId(),re=p===void 0,{refs:L,floatingStyles:fe,context:P}=b.useFloating({placement:p,open:R,onOpenChange:y,whileElementsMounted:b.autoUpdate,middleware:[b.offset({mainAxis:q,crossAxis:0}),re?b.autoPlacement({alignment:"start",crossAxis:!0,padding:q,allowedPlacements:te}):b.flip({padding:q}),b.shift({padding:q}),b.size({padding:q,apply({availableWidth:r,availableHeight:S,elements:A}){const j=A.floating,c=Tt(A.reference);j.style.setProperty("--fui-available-height",`${Math.floor(S)}px`),j.style.setProperty("--reference-width",V?`${Math.round(c)}px`:"0px"),V?j.style.minWidth=`${Math.round(c)}px`:j.style.removeProperty("min-width"),j.style.maxWidth=`${Math.floor(r)}px`;const C=Math.floor(S);j.style.maxHeight=`${X?Math.min(C,X):C}px`}})]}),F=b.useClick(P,{enabled:l.includes(g.DropdownTrigger.Click)&&!m}),U=b.useHover(P,{enabled:l.includes(g.DropdownTrigger.Hover)&&!m,move:!1,restMs:40,delay:{open:80,close:80}}),J=b.useDismiss(P,{bubbles:!0,referencePress:!1,outsidePress:r=>{if(!de)return!1;const S=r.target;return!(G?.current&&S instanceof Node&&G.current.contains(S))}}),K=b.useRole(P,{role:"menu"}),{getReferenceProps:pe,getFloatingProps:Q}=b.useInteractions([F,U,J,K]),H=a.useCallback((r,S)=>{L.setPositionReference({getBoundingClientRect:()=>({width:0,height:0,x:r,y:S,top:S,left:r,right:r,bottom:S})})},[L]),xe=a.useCallback(r=>{!l.includes(g.DropdownTrigger.ContextMenu)||m||(r.preventDefault(),v&&(H(r.clientX,r.clientY),z.current=document.elementFromPoint(r.clientX,r.clientY)),y(!0))},[v,m,y,H,l]),ne=a.useCallback(r=>{!v||m||(l.includes(g.DropdownTrigger.ContextMenu)&&R&&y(!1),H(r.clientX,r.clientY),z.current=document.elementFromPoint(r.clientX,r.clientY))},[v,m,H,R,l,y]);a.useEffect(()=>{m&&R&&y(!1)},[m,R,y]);const $=a.useCallback(r=>{if(r.defaultPrevented||!wt.includes(r.key))return;const S=Array.from(r.currentTarget.querySelectorAll(At)).filter(jt);if(S.length===0)return;r.preventDefault();const A=r.currentTarget.ownerDocument.activeElement,j=S.findIndex(c=>c===A);S[Dt(r.key,j,S.length)]?.focus()},[]),oe=a.useCallback(r=>S=>{r.disabled||(r.onClick?.({key:r.key,domEvent:S}),s?.({key:r.key,domEvent:S}),r.selectable||y(!1))},[s,y]),ge=a.useMemo(()=>u?u():n?t.jsxs(t.Fragment,{children:[o&&t.jsx(t.Fragment,{children:typeof o=="function"?o():o}),t.jsx("div",{role:"none",className:x.mergeClasses("py-1",T),"aria-label":"dropdown",children:n.map(r=>r.type===g.DropdownItemType.Divider?t.jsx("div",{role:"separator",className:x.mergeClasses(vt,k)},r.key):r.type===g.DropdownItemType.PlainText?t.jsx("div",{className:x.mergeClasses("px-3 py-2 text-secondary dial-caption-text",r.className),children:r.label},r.key):r.children?.length?t.jsx(Rt,{item:r,onRootClose:()=>y(!1)},r.key):t.jsx("button",{role:r.selectable?"menuitemcheckbox":"menuitem","aria-checked":r.selectable?!!r.checked:void 0,type:"button","aria-disabled":!!r.disabled,className:x.mergeClasses(Se,r.selectable&&r.checked&&It,r.disabled&&ye,r.danger&&Je,r.className),disabled:r.disabled,onClick:oe(r),children:r.renderItem?r.renderItem(r):t.jsxs(t.Fragment,{children:[r.selectable&&t.jsx(De,{isSelected:!!r.checked,disabled:r.disabled}),r.icon&&t.jsx("span",{className:x.mergeClasses(r.danger&&"text-error",r.disabled&&"text-control-disable-primary"),children:t.jsx(g.DialIcon,{icon:r.icon})}),t.jsx("span",{className:x.mergeClasses("flex-1 truncate text-start",r.danger&&"text-error",r.disabled&&"text-control-disable-primary"),children:r.label})]})},r.key))}),d&&t.jsx(t.Fragment,{children:typeof d=="function"?d():d})]}):null,[oe,n,d,o,u,y,T,k]),Ce=pe({onContextMenu:xe,onMouseDown:ne});return a.useEffect(()=>{if(!R)return;const r=L.reference.current;let S=null;if(r instanceof Element?S=r:z.current instanceof Element&&(S=z.current),!S)return;const A=new IntersectionObserver(([j])=>{j.isIntersecting||y(!1)},{root:null,threshold:0});return A.observe(S),()=>A.disconnect()},[R,L.reference,y]),t.jsxs(t.Fragment,{children:[t.jsx("span",{ref:L.setReference,className:x.mergeClasses(yt,m&&"!cursor-not-allowed opacity-75",D),"aria-haspopup":"menu","aria-expanded":R,"aria-controls":Y,...Ce,children:e}),R&&t.jsx(b.FloatingPortal,{children:t.jsx(b.FloatingFocusManager,{context:P,modal:!1,initialFocus:se?0:-1,returnFocus:!0,children:t.jsxs("div",{id:Y,ref:L.setFloating,style:fe,className:x.mergeClasses(Nt,!V&&"w-max","overflow-auto",I,M),...Q({onKeyDown:$}),children:[E&&t.jsx("div",{className:"flex items-center justify-between px-2 pt-2",children:t.jsx(Ue,{ariaLabel:"Close dropdown",onClose:r=>{w?.(r),y(!1)}})}),ge]})})})]})},Te=({id:e,labelProps:n,isSelected:s=!1,isIndeterminate:o=!1,invalid:d=!1,disabled:u,onChange:l,caption:p,className:m,boxClassName:i,...h})=>{const N=a.useId(),E=e??N,w=p?`${E}-caption`:void 0,D=a.useCallback(k=>{l?.(k.target.checked)},[l]),T=a.useCallback(k=>{k&&(k.indeterminate=o)},[o]);return t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsxs("div",{className:x.mergeClasses("flex items-center gap-2",m),children:[t.jsx("input",{...h,ref:T,type:"checkbox",id:E,checked:s,disabled:u,onChange:D,"aria-checked":o?"mixed":s,"aria-invalid":d||void 0,"aria-label":f.resolveAccessibleName(typeof n?.label!="string"?h["aria-label"]:void 0),"aria-describedby":w,className:"peer sr-only"}),t.jsx(De,{htmlFor:E,isSelected:s,isIndeterminate:o,invalid:d,disabled:u,className:i}),n&&t.jsx(Ae,{size:f.ElementSize.Standard,...n,htmlFor:E,className:x.mergeClasses("py-[1px]",u?"cursor-not-allowed text-control-disable-primary":"cursor-pointer text-primary",n.className)})]}),p&&t.jsx("span",{id:w,className:"dial-tiny-text text-secondary ml-[28px]",children:p})]})},et=({id:e,name:n,value:s,labelProps:o,isSelected:d=!1,disabled:u,onChange:l,caption:p,className:m,...i})=>{const h=a.useId(),N=e??h,E=p?`${N}-caption`:void 0,w=a.useCallback(D=>{D.target.checked&&l?.(s)},[l,s]);return t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsxs("div",{className:x.mergeClasses("flex items-center gap-2 ",m),children:[t.jsx("input",{...i,type:"radio",id:N,name:n,value:s,checked:d,disabled:u,onChange:w,"aria-label":f.resolveAccessibleName(typeof o?.label!="string"?i["aria-label"]:void 0),"aria-describedby":E,className:"peer sr-only"}),t.jsx("label",{htmlFor:N,className:x.mergeClasses("group grid size-[20px] shrink-0 place-items-center rounded-full border transition-colors duration-200 hover:bg-control-accent-alpha-hover","dial-kit-minimum-target","peer-focus-visible:outline peer-focus-visible:outline-focus",u?"cursor-not-allowed border-default bg-control-disable-primary":x.mergeClasses("cursor-pointer",d?"border border-accent bg-control-neutral":"border-default bg-control-neutral")),children:d&&t.jsx("span",{className:x.mergeClasses("size-3 rounded-full",u?"bg-control-disable-secondary":"bg-control-accent")})}),o&&t.jsx(Ae,{size:f.ElementSize.Standard,...o,htmlFor:N,className:x.mergeClasses("py-[1px]",u?"cursor-not-allowed text-control-disable-primary":"cursor-pointer text-primary",o.className)})]}),p&&t.jsx("span",{id:E,className:"dial-tiny-text text-secondary ml-[26px]",children:p})]})},_t=60,tt=({title:e,description:n,icon:s,live:o=!1,className:d,titleClassName:u,descriptionClassName:l})=>t.jsxs("div",{role:o?"status":void 0,className:x.mergeClasses("flex size-full flex-col items-center justify-center gap-2 text-tertiary",d),children:[s??t.jsx(W.IconClipboardX,{size:_t,stroke:.5,"aria-hidden":"true"}),t.jsx("span",{className:x.mergeClasses("dial-body-semi-text text-primary",u),children:e}),n&&t.jsx("span",{className:x.mergeClasses("dial-small-text text-secondary",l),children:n})]}),st="dial-kit-grid",Bt="dial-kit-grid-with-selection",Ot="dial-kit-grid-without-header-borders",Lt="dial-kit-grid-row-select",Ft="dial-kit-grid-header-select",Mt="dial-kit-grid-selection-visible",Gt="dial-kit-grid-align-right",Ne=40,be="0.5px solid var(--stroke-tertiary, #E0E6F0)",le={accentColor:"var(--bg-control-accent, #1D4ED8)",backgroundColor:"var(--bg-layer-raised, #FCFCFC)",oddRowBackgroundColor:"var(--bg-layer-sunken, #EEF1F7)",selectedRowBackgroundColor:"var(--bg-control-accent-alpha, #2764D90F)",rowHoverColor:"var(--bg-control-accent-alpha-hover, #2764D924)",borderColor:"var(--stroke-tertiary, #E0E6F0)",rowBorder:be,headerRowBorder:be,headerColumnBorder:be,chromeBackgroundColor:"var(--bg-layer-base, #F5F7FA)",foregroundColor:"var(--text-primary, #161B2D)",headerTextColor:"var(--text-secondary, #57647A)",browserColorScheme:"light",headerFontSize:14,headerFontWeight:600,fontSize:14,fontFamily:"var(--theme-font, var(--font-inter))",spacing:4,borderRadius:4,wrapperBorderRadius:8};var B=(e=>(e.API="api",e.ROW_DATA_CHANGED="rowDataChanged",e.CHECKBOX_SELECTED="checkboxSelected",e))(B||{});const zt=({params:e,mode:n,label:s,radioName:o,rowId:d,disabled:u})=>{const l=e.node,[p,m]=a.useState(()=>!!l.isSelected());a.useEffect(()=>{const h=()=>m(!!l.isSelected());return h(),l.addEventListener("rowSelected",h),()=>l.removeEventListener("rowSelected",h)},[l]);const i=h=>{u||l.setSelected(h,n===g.GridSelectionMode.SINGLE,B.CHECKBOX_SELECTED)};return n===g.GridSelectionMode.SINGLE?t.jsx(et,{name:o,value:d,isSelected:p,disabled:u,"aria-label":s,onChange:()=>i(!0)}):t.jsx(Te,{isSelected:p,disabled:u,"aria-label":s,onChange:i})},Fe=e=>{let n=0,s=0;return e.forEachNodeAfterFilter(o=>{o.selectable!==!1&&(s++,o.isSelected()&&n++)}),{selected:n,selectable:s}},Pt=({api:e,label:n})=>{const[{selected:s,selectable:o},d]=a.useState(()=>Fe(e));a.useEffect(()=>{const l=()=>d(Fe(e));return l(),e.addEventListener("selectionChanged",l),e.addEventListener("modelUpdated",l),()=>{e.isDestroyed()||(e.removeEventListener("selectionChanged",l),e.removeEventListener("modelUpdated",l))}},[e]);const u=a.useCallback(l=>{if(l){e.selectAll("filtered",B.CHECKBOX_SELECTED);return}e.deselectAll("filtered",B.CHECKBOX_SELECTED)},[e]);return t.jsx(Te,{isSelected:o>0&&s===o,isIndeterminate:s>0&&s<o,disabled:o===0,"aria-label":n,onChange:u})},rt="en-US",nt={year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},he=40,Ht={minWidth:he,width:he,maxWidth:he,resizable:!1,sortable:!1,filter:!1,floatingFilter:!1,suppressMovable:!0,suppressHeaderMenuButton:!0,suppressAutoSize:!0,suppressSizeToFit:!0};g.setupAgTestIds({testIdAttribute:"dataQA"});g.ModuleRegistry.registerModules([g.AllCommunityModule]);const ot="dial-kit-grid-selection",Wt=150,Vt=100,Ut=({columnDefs:e,rowData:n,additionalGridOptions:s,getContextMenuItems:o,className:d,ariaLabel:u="Data grid",wrapCustomCellRenderers:l=!0,disabledRowIds:p,selectedRowIds:m,onSelectionChange:i,onGridApiChange:h,getRowId:N,alternateOddRowColors:E=!1,filterPlaceholder:w="Enter value",emptyStateIcon:D,emptyStateTitle:T="No results found",emptyStateDescription:k="Sorry, we couldn't find any results for your search.",loading:M=!1,wrapperBorder:G=!0,withoutHeaderBorders:de=!1,allowDisabledContextMenu:te=!1,selectionMode:v,selectRowLabel:V,selectAllLabel:X="Select all rows"})=>{const[I,ue]=a.useState(),me=f.useIsMobileScreen(),Z=g.useIsTabletScreen(),R=a.useRef(new Set),z=a.useRef(void 0),se=`dial-kit-grid-selection-${a.useId()}`,O=a.useRef({getRowId:N,getContextMenuItems:o,onSelectionChange:i,selectRowLabel:V,wrapCustomCellRenderers:l});O.current={getRowId:N,getContextMenuItems:o,onSelectionChange:i,selectRowLabel:V,wrapCustomCellRenderers:l};const y=a.useCallback(c=>{const C=O.current.getRowId;return C?C(c):String(c.id??JSON.stringify(c))},[]),Y=!!o,re=!!l,L=a.useMemo(()=>g.themeBalham.withPart(g.colorSchemeLight).withParams({...le,oddRowBackgroundColor:E?le.oddRowBackgroundColor:le.backgroundColor,wrapperBorder:G}),[E,G]),fe=a.useCallback(c=>{c.api.sizeColumnsToFit()},[]),P=me||Z||(m?.size??0)>0,F=a.useCallback(c=>!!c&&!!p?.has(y(c)),[p,y]),U=a.useCallback((c,C,_)=>Y?t.jsx(Qe,{trigger:[g.DropdownTrigger.ContextMenu],items:c.data?O.current.getContextMenuItems?.(c.data)??[]:[],anchorToMouse:!0,matchReferenceWidth:!0,className:x.mergeClasses("size-full",_&&"cursor-not-allowed opacity-75"),disabled:_&&!te,children:t.jsx("span",{className:"block min-w-0 max-w-full flex-1",children:C})}):C,[Y,te]),J=a.useCallback(c=>{if(!c.data)return null;const C=F(c.data);return U(c,t.jsx(we,{text:c.value==null?"":String(c.value),className:"max-w-full dial-small-text text-primary",hideTooltip:C}),C)},[F,U]),K=a.useCallback(c=>c===B.API||c===B.ROW_DATA_CHANGED,[]),pe=a.useMemo(()=>g.debounceFn(c=>{const _=(c.selectedNodes??[]).map(_e=>_e.data),ee=new Set(_.map(y));R.current=ee,z.current=c.source,!K(c.source)&&O.current.onSelectionChange?.(ee,_)},Vt),[K,y]),Q=a.useMemo(()=>{if(v)return{...Ht,colId:ot,headerName:"",headerClass:Ft,cellClass:Lt,headerComponent:v===g.GridSelectionMode.MULTIPLE?Pt:void 0,headerComponentParams:{label:X},cellRenderer:c=>{if(!c.data)return null;const C=y(c.data);return t.jsx(zt,{params:c,mode:v,rowId:C,radioName:se,label:O.current.selectRowLabel?.(c.data)??"Select row",disabled:p?.has(C)})}}},[v,X,y,p,se]),H=a.useCallback(c=>{if(!c.cellRenderer)return{...c,cellRenderer:J};const C=O.current.wrapCustomCellRenderers;if(!(typeof C=="function"?C(c):!!C))return c;const ee=c.cellRenderer;return{...c,cellRenderer:ae=>{const at=F(ae.data),Be=typeof ee=="function"?ee:void 0,lt=Be?t.jsx(Be,{...ae}):J(ae);return U(ae,lt,at)}}},[F,J,U]),xe=a.useMemo(()=>{const c=re?(e??[]).map(H):e??[];return Q?[Q,...c]:c},[e,re,H,Q]),{defaultColDef:ne,rowSelection:$,...oe}=s??{},ge=a.useMemo(()=>({minWidth:Wt,resizable:!0,sortable:!0,floatingFilter:!0,filter:"agTextColumnFilter",filterParams:{filterPlaceholder:w,buttons:["reset"]},comparator:g.baseColumnComparator,...g.omitUndefined(ne)}),[w,ne]),Ce=c=>{c.api.sizeColumnsToFit(),ue(c.api),s?.onGridReady?.(c),h?.(c.api)};a.useEffect(()=>{I&&n&&I.setGridOption("rowData",n)},[I,n]);const r=a.useCallback(()=>t.jsx(tt,{live:!0,title:T,description:k,icon:D??t.jsx(W.IconZoomCancel,{size:100,stroke:.5,"aria-hidden":"true"})}),[T,k,D]),S=typeof $=="object"?$:void 0,A=a.useMemo(()=>v?{isRowSelectable:c=>!F(c.data),...S,mode:v===g.GridSelectionMode.SINGLE?"singleRow":"multiRow",checkboxes:!1,headerCheckbox:!1}:$,[$,S,F,v]);a.useEffect(()=>{I&&n&&R.current.size&&R.current.forEach(c=>{const C=I.getRowNode(c);C&&!C.isSelected()&&C.setSelected(!0,!1,B.API)})},[I,n]),a.useEffect(()=>{I&&m&&(I.deselectAll("all",B.API),m.forEach(c=>{const C=I.getRowNode(c);C&&!C.isSelected()&&C.setSelected(!0,!1,B.API)}))},[I,m]);const j=a.useCallback(c=>c.data?y(c.data):"",[y]);return a.useEffect(()=>{const c=K(z.current);if(I&&m?.size&&c){const C=Array.from(m)[0];if(C){const _=I.getRowNode(C);_&&I.ensureNodeVisible(_)}}},[I,K,m]),t.jsx("div",{className:x.mergeClasses(st,"size-full",v&&Bt,v&&P&&Mt,de&&Ot,d),role:"region","aria-label":u,"aria-busy":M,children:t.jsx("div",{className:"h-full overflow-x-auto",children:t.jsx(g.AgGridReact,{rowModelType:"clientSide",headerHeight:Ne,rowHeight:Ne,cellSelection:!1,theme:L,autoSizeStrategy:{type:"fitGridWidth"},columnDefs:xe,defaultColDef:ge,onGridSizeChanged:fe,onGridReady:Ce,loading:M,suppressCellFocus:!0,suppressDragLeaveHidesColumns:!0,noRowsOverlayComponent:r,rowData:n,rowSelection:A,onSelectionChanged:pe,getRowId:j,...oe})})})},Kt=({value:e,locale:n=rt,options:s=nt,emptyPlaceholder:o,className:d,hideTooltip:u=!1})=>{const l=g.convertToDate(e),p=a.useMemo(()=>l?new Intl.DateTimeFormat(n,s).format(l):o,[l,o,n,s]),m=l?l.toISOString():void 0;return t.jsx(we,{text:m?t.jsx("time",{dateTime:m,children:p}):t.jsx("span",{children:p}),className:x.mergeClasses("dial-small-text text-primary",d),hideTooltip:u})};exports.Checkbox=Te;exports.CheckboxBox=De;exports.CloseButton=Ue;exports.DEFAULT_DATE_FORMAT_OPTIONS=nt;exports.DEFAULT_LOCALE=rt;exports.DangerIconButton=bt;exports.DateCellRenderer=Kt;exports.Dropdown=Qe;exports.EllipsisTooltip=we;exports.GRID_ALIGN_RIGHT_CLASS=Gt;exports.GRID_ROOT_CLASS=st;exports.GRID_SELECTION_COLUMN_ID=ot;exports.GRID_THEME_PARAMS=le;exports.GhostIconButton=Ve;exports.Grid=Ut;exports.IconButton=ie;exports.InfoButton=He;exports.Label=Ae;exports.NeutralIconButton=Ct;exports.NoDataContent=tt;exports.PrimaryIconButton=gt;exports.ROW_HEIGHT=Ne;exports.Radio=et;exports.StaticIconButton=ht;exports.Tooltip=ze;exports.TooltipContainer=ve;exports.TooltipContent=ke;exports.TooltipPlacement=Ie;exports.TooltipTrigger=Re;exports.getButtonClassNames=Pe;exports.overlayGap=Ye;exports.overlayItemClassName=qe;exports.overlayItemDisabledClassName=Ze;exports.overlayItemSelectedClassName=Xe;exports.overlaySubMenuClassName=$e;
1
+ "use strict";const t=require("react/jsx-runtime"),g=require("./DateCellRenderer-B0o0BqbW.cjs"),W=require("@tabler/icons-react"),a=require("react"),f=require("./IconButton-BCbBgnzo.cjs"),x=require("./merge-classes-Dipy1Ih1.cjs"),b=require("@floating-ui/react"),Ee=require("./icon-DhjrDQ8I.cjs"),ce=require("./icon-CrGVkVpG.cjs"),ct=require("classnames");var Ie=(e=>(e.Top="top",e.Right="right",e.Bottom="bottom",e.Left="left",e))(Ie||{});const it=7,dt=2,ut=500,mt="fill-control-inverted",ft="z-[55] max-w-[376px] whitespace-pre-wrap break-words rounded-lg bg-control-inverted px-3 py-2 dial-small-text text-control-inverted shadow-xs",Me=a.createContext(null),Ge=()=>{const e=a.useContext(Me);if(e==null)throw new Error("Tooltip components must be wrapped in <TooltipContainer />");return e},pt=({initialOpen:e=!1,placement:n=Ie.Bottom,isTriggerClickable:s=!1,open:o,onOpenChange:d}={})=>{const[u,l]=a.useState(e),p=a.useRef(null),m=o??u,i=d??l,h=b.useFloating({placement:n,open:m,onOpenChange:i,whileElementsMounted:b.autoUpdate,middleware:[b.offset(it+dt),b.flip({fallbackAxisSideDirection:"start",padding:5}),b.shift({padding:5}),b.arrow({element:p})]}),N=b.useHover(h.context,{move:!1,enabled:o==null,mouseOnly:s,delay:{open:ut,close:0}}),E=b.useFocus(h.context,{enabled:o==null}),w=b.useDismiss(h.context),D=b.useRole(h.context,{role:"tooltip"}),T=b.useInteractions([N,E,w,D]);return a.useEffect(()=>{if(!m)return;const k=h.refs.reference.current;if(!(k instanceof Element))return;const M=new IntersectionObserver(([G])=>{G.isIntersecting||i(!1)},{root:null,threshold:0});return M.observe(k),()=>M.disconnect()},[m,h.refs.reference,i]),a.useMemo(()=>({open:m,setOpen:i,arrowRef:p,...T,...h}),[m,i,T,h])},ve=({children:e,...n})=>{const s=pt(n);return t.jsx(Me.Provider,{value:s,children:e})},ke=({style:e,...n})=>{const s=Ge(),o=f.useIsMobileScreen(),d=g.useThemeScope(),u=a.useRef(null),l=b.useMergeRefs([s.refs.setFloating,u]);return!s.open||o?null:t.jsx(b.FloatingPortal,{id:"tooltip-portal",children:t.jsxs("div",{ref:l,"data-placement":s.placement,style:{...s.floatingStyles,...e},...s.getFloatingProps(n),className:ct(ft,d,s.getFloatingProps(n).className),children:[n.children,t.jsx(b.FloatingArrow,{ref:s.arrowRef,context:s.context,className:mt})]})})},Re=({children:e,asChild:n=!1,...s})=>{const o=Ge(),d=n&&a.isValidElement(e),u=d?e.props?.ref:null,l=b.useMergeRefs([o.refs.setReference,...u?[u]:[]]);if(d){const p=e.props;return a.cloneElement(e,o.getReferenceProps({...p,...s,className:x.mergeClasses(p.className,s.className)||void 0,ref:l}))}return t.jsx("span",{ref:l,...o.getReferenceProps(s),className:s.className??"text-start",children:e})},ze=({hideTooltip:e=!1,tooltip:n,children:s,asChild:o=!1,triggerClassName:d,contentClassName:u,...l})=>{const p=!e&&!!n;return t.jsxs(ve,{...l,children:[t.jsx(Re,{asChild:o,className:d,children:s}),p&&t.jsx(ke,{className:u,children:n})]})},Oe={[f.ButtonVariant.Primary]:{[f.ButtonAppearance.Solid]:"dial-kit-primary-solid-button",[f.ButtonAppearance.Ghost]:"dial-kit-primary-ghost-button",[f.ButtonAppearance.Link]:"dial-kit-primary-link-button"},[f.ButtonVariant.Neutral]:{[f.ButtonAppearance.Solid]:"dial-kit-neutral-solid-button",[f.ButtonAppearance.Outlined]:"dial-kit-neutral-outlined-button"},[f.ButtonVariant.Danger]:{[f.ButtonAppearance.Solid]:"dial-kit-danger-solid-button",[f.ButtonAppearance.Ghost]:"dial-kit-danger-ghost-button",[f.ButtonAppearance.Outlined]:"dial-kit-danger-outlined-button"},[f.ButtonVariant.Static]:{[f.ButtonAppearance.Solid]:"dial-kit-static-solid-button"},[f.ButtonVariant.Success]:{},[f.ButtonVariant.Secondary]:{},[f.ButtonVariant.Tertiary]:{}},Pe=(e=f.ButtonVariant.Primary,n=f.ButtonAppearance.Solid)=>{const s=Oe[e]?.[n];return s||(console.warn(`Could not find Button styles for variant: ${e} and appearance: ${n}. Using default primary solid button styles.`),Oe[f.ButtonVariant.Primary][f.ButtonAppearance.Solid])},xt={[f.ElementSize.Small]:"size-[24px]",[f.ElementSize.Standard]:"size-[40px] dial-kit-enhanced-target",[f.ElementSize.Large]:"size-[48px] dial-kit-enhanced-target"},ie=({variant:e,appearance:n=f.ButtonAppearance.Solid,size:s=f.ElementSize.Standard,className:o,icon:d,tooltipProps:u,type:l="button",...p})=>{const m=x.mergeClasses("dial-kit-base-icon-button dial-kit-base-button",e&&Pe(e,n),xt[s],o),i=t.jsx("button",{...p,type:l,className:m,"aria-label":f.resolveAccessibleName(p["aria-label"],u?.tooltip),children:d});return u?t.jsx(ze,{asChild:!0,...u,children:i}):i},He=({caption:e,onClick:n,"aria-label":s})=>{if(!e)return null;const o=x.mergeClasses("text-secondary hover:text-control-accent-hover active:text-control-accent-active","focus-visible:outline focus-visible:outline-focus");return t.jsx(ie,{"aria-label":s,className:o,icon:t.jsx(W.IconInfoCircle,{size:ce.DIAL_ICON_SIZE.SM,stroke:Ee.DIAL_KIT_ICON_STROKE,"aria-hidden":"true"}),onClick:n,size:f.ElementSize.Small,tooltipProps:{tooltip:e}})},Ae=({label:e,required:n,className:s,containerClassName:o,caption:d,size:u=f.ElementSize.Small,...l})=>e?t.jsxs("span",{className:x.mergeClasses("flex items-center gap-0.5",o),children:[t.jsxs("label",{...l,className:x.mergeClasses("text-secondary flex items-center gap-0.5",u===f.ElementSize.Small?"dial-tiny-semi-text":"dial-small-text",s),children:[typeof e=="string"?t.jsx("span",{className:"min-h-4",children:e}):e,n&&t.jsxs(t.Fragment,{children:[t.jsx("span",{"aria-hidden":"true",className:"text-error dial-tiny-text",children:"*"}),t.jsx("span",{className:"sr-only",children:"(required)"})]})]}),t.jsx(He,{caption:d})]}):null,je=(e,n)=>({appearance:o,...d})=>t.jsx(ie,{...d,variant:e,appearance:o||n}),We=(e,n)=>({variant:o,...d})=>t.jsx(ie,{...d,variant:o||n,appearance:e}),gt=je(f.ButtonVariant.Primary,f.ButtonAppearance.Solid),Ct=je(f.ButtonVariant.Neutral,f.ButtonAppearance.Solid),bt=je(f.ButtonVariant.Danger,f.ButtonAppearance.Ghost),Ve=We(f.ButtonAppearance.Ghost,f.ButtonVariant.Primary),ht=We(f.ButtonAppearance.Solid,f.ButtonVariant.Static),Ue=({ariaLabel:e="Close",className:n,size:s=f.ElementSize.Small,onClose:o,...d})=>t.jsx(Ve,{...d,size:s,"aria-label":e,className:n,onClick:o,icon:t.jsx(W.IconX,{size:s===f.ElementSize.Small?ce.DIAL_ICON_SIZE.SM:ce.DIAL_ICON_SIZE.MD,stroke:Ee.DIAL_KIT_ICON_STROKE,"aria-hidden":"true"})}),St=e=>{const n=a.useRef(null),[s,o]=a.useState(!1),[d,u]=a.useState(""),l=a.useRef(!1),p=a.useCallback(()=>{const i=n.current;i&&(l.current&&u(i.textContent??""),o(i.scrollWidth>i.clientWidth))},[]),m=a.useCallback(()=>g.scheduleMeasure(p),[p]);return a.useEffect(()=>{const i=n.current;if(i)return g.observeElementSize(i,p)},[p]),a.useEffect(()=>{l.current=typeof e!="string",m()},[e,m]),{ref:n,isTruncated:s,textContent:d,remeasure:m}},we=({text:e,className:n,contentClassName:s,hideTooltip:o=!1,id:d,customTooltipContent:u,...l})=>{const{ref:p,isTruncated:m,textContent:i,remeasure:h}=St(e),N=typeof e=="string"?e:i,E=a.useMemo(()=>o||!m?null:u??N,[u,N,o,m]);return t.jsxs(ve,{...l,children:[t.jsx(Re,{asChild:!0,onMouseEnter:h,onFocusCapture:h,children:t.jsx("span",{id:d,ref:p,"aria-label":m&&N?N:void 0,className:x.mergeClasses("block min-w-0 max-w-full flex-1 truncate text-start",n),children:e})}),!!E&&t.jsx(ke,{className:s,children:E})]})},Ke="rounded-xl bg-layer-raised p-1 shadow-md",$e=x.mergeClasses(Ke,"w-max"),qe=x.mergeClasses("flex w-full cursor-pointer items-center gap-2 px-3 h-[40px] rounded-lg","dial-small-text text-primary truncate","hover:bg-control-accent-alpha-hover","focus-visible:outline focus-visible:outline-focus"),Xe="bg-control-accent-alpha",Ze=x.mergeClasses("cursor-not-allowed text-control-disable-primary","bg-transparent hover:bg-transparent"),Ye=4,yt=x.mergeClasses("flex items-center gap-2 align-middle","h-auto px-0 bg-transparent border-0"),Nt=x.mergeClasses("z-[53] focus-visible:outline-none",Ke),Et=$e,Se=qe,It=Xe,ye=x.mergeClasses(Ze,"!cursor-not-allowed"),Je="text-error",vt="my-1 border-t border-tertiary",q=Ye,kt=t.jsx(W.IconChevronRight,{size:ce.DIAL_ICON_SIZE.SM,stroke:Ee.DIAL_KIT_ICON_STROKE,"aria-hidden":"true"}),Le={size:14,stroke:3,"aria-hidden":!0},De=({isSelected:e=!1,isIndeterminate:n=!1,invalid:s=!1,disabled:o=!1,htmlFor:d,className:u})=>{const l=n||e,p=!!d,m=x.mergeClasses("grid size-[20px] shrink-0 place-items-center rounded border transition-colors duration-200",p&&"dial-kit-minimum-target",p&&"peer-focus-visible:outline peer-focus-visible:outline-focus",o?"border-transparent bg-control-disable-primary text-control-disable-primary":x.mergeClasses(s&&l&&"border-transparent bg-control-error text-control-permanent",s&&!l&&"border-error bg-control-neutral",!s&&l&&"border-transparent bg-control-accent text-control-permanent hover:bg-control-accent-hover",!s&&!l&&"border-default bg-control-neutral hover:border-accent hover:bg-control-accent-alpha-hover"),o?"cursor-not-allowed":p&&"cursor-pointer",u),i=n?t.jsx(W.IconMinus,{...Le}):e&&t.jsx(W.IconCheck,{...Le});return p?t.jsx("label",{htmlFor:d,className:m,children:i}):t.jsx("span",{"aria-hidden":"true",className:m,children:i})},Rt=({item:e,onRootClose:n})=>{const{isOpen:s,refs:o,floatingStyles:d,context:u,getReferenceProps:l,getFloatingProps:p}=g.useSubMenuFloating(q,"menu",!!e.disabled),m=a.useCallback(i=>h=>{i.disabled||(i.onClick?.({key:i.key,domEvent:h}),n())},[n]);return t.jsxs(t.Fragment,{children:[t.jsxs("button",{ref:o.setReference,type:"button",role:"menuitem","aria-haspopup":"menu","aria-expanded":s,"aria-disabled":!!e.disabled,disabled:e.disabled,className:x.mergeClasses(Se,e.disabled&&ye,e.className),...l(),children:[e.renderItem?e.renderItem(e):t.jsxs(t.Fragment,{children:[e.icon&&t.jsx("span",{className:x.mergeClasses(e.disabled&&"text-secondary"),children:t.jsx(g.DialIcon,{icon:e.icon})}),t.jsx("span",{className:x.mergeClasses("flex-1 truncate text-start",e.disabled&&"text-secondary"),children:e.label})]}),t.jsx("span",{className:x.mergeClasses("ml-auto shrink-0",e.disabled&&"text-secondary"),children:kt})]}),s&&t.jsx(g.SubMenuPanel,{refs:o,floatingStyles:d,context:u,getFloatingProps:p,role:"menu",surfaceClassName:Et,children:e.renderSubMenu?e.renderSubMenu():t.jsxs(t.Fragment,{children:[e.menuHeader&&(typeof e.menuHeader=="function"?e.menuHeader():e.menuHeader),e.children.map(i=>t.jsx("button",{role:"menuitem",type:"button","aria-disabled":!!i.disabled,disabled:i.disabled,className:x.mergeClasses(Se,i.disabled&&ye,i.danger&&Je,i.className),onClick:m(i),children:i.renderItem?i.renderItem(i):t.jsxs(t.Fragment,{children:[i.icon&&t.jsx("span",{className:x.mergeClasses(i.danger&&"text-error",i.disabled&&"text-secondary"),children:t.jsx(g.DialIcon,{icon:i.icon})}),t.jsx("span",{className:x.mergeClasses("flex-1 truncate text-start",i.danger&&"text-error",i.disabled&&"text-secondary"),children:i.label})]})},i.key)),e.menuFooter&&(typeof e.menuFooter=="function"?e.menuFooter():e.menuFooter)]})})]})},At='[role="menuitem"], [role="menuitemcheckbox"], [role="option"]',jt=e=>!e.hasAttribute("disabled")&&e.getAttribute("aria-disabled")!=="true",wt=["ArrowDown","ArrowUp","Home","End"],Dt=(e,n,s)=>{if(e==="Home")return 0;if(e==="End")return s-1;const o=e==="ArrowDown"?1:-1;return n===-1?o===1?0:s-1:(n+o+s)%s},Tt=e=>"clientWidth"in e?e.clientWidth:e.getBoundingClientRect?.()?.width??0,Qe=({children:e,items:n,onItemClick:s,menuHeader:o,menuFooter:d,renderOverlay:u,trigger:l=[g.DropdownTrigger.Click],placement:p,disabled:m=!1,open:i,defaultOpen:h=!1,onOpenChange:N,closable:E=!1,onClose:w,className:D,overlayContentClassName:T,separatorClassName:k,listClassName:M,outsidePressIgnoreRef:G,outsideClosable:de=!0,allowedPlacements:te,anchorToMouse:v=!1,matchReferenceWidth:V=!0,maxDropdownHeight:X})=>{const I=g.useThemeScope(),[ue,me]=a.useState(h),Z=i!==void 0,R=Z?!!i:ue,z=a.useRef(null),[se,O]=a.useState(!0),y=a.useCallback((r,S,A)=>{r&&O(A!=="hover"&&A!=="safe-polygon"),Z||me(r),N?.(r)},[Z,N]),Y=a.useId(),re=p===void 0,{refs:L,floatingStyles:fe,context:P}=b.useFloating({placement:p,open:R,onOpenChange:y,whileElementsMounted:b.autoUpdate,middleware:[b.offset({mainAxis:q,crossAxis:0}),re?b.autoPlacement({alignment:"start",crossAxis:!0,padding:q,allowedPlacements:te}):b.flip({padding:q}),b.shift({padding:q}),b.size({padding:q,apply({availableWidth:r,availableHeight:S,elements:A}){const j=A.floating,c=Tt(A.reference);j.style.setProperty("--fui-available-height",`${Math.floor(S)}px`),j.style.setProperty("--reference-width",V?`${Math.round(c)}px`:"0px"),V?j.style.minWidth=`${Math.round(c)}px`:j.style.removeProperty("min-width"),j.style.maxWidth=`${Math.floor(r)}px`;const C=Math.floor(S);j.style.maxHeight=`${X?Math.min(C,X):C}px`}})]}),F=b.useClick(P,{enabled:l.includes(g.DropdownTrigger.Click)&&!m}),U=b.useHover(P,{enabled:l.includes(g.DropdownTrigger.Hover)&&!m,move:!1,restMs:40,delay:{open:80,close:80}}),J=b.useDismiss(P,{bubbles:!0,referencePress:!1,outsidePress:r=>{if(!de)return!1;const S=r.target;return!(G?.current&&S instanceof Node&&G.current.contains(S))}}),K=b.useRole(P,{role:"menu"}),{getReferenceProps:pe,getFloatingProps:Q}=b.useInteractions([F,U,J,K]),H=a.useCallback((r,S)=>{L.setPositionReference({getBoundingClientRect:()=>({width:0,height:0,x:r,y:S,top:S,left:r,right:r,bottom:S})})},[L]),xe=a.useCallback(r=>{!l.includes(g.DropdownTrigger.ContextMenu)||m||(r.preventDefault(),v&&(H(r.clientX,r.clientY),z.current=document.elementFromPoint(r.clientX,r.clientY)),y(!0))},[v,m,y,H,l]),ne=a.useCallback(r=>{!v||m||(l.includes(g.DropdownTrigger.ContextMenu)&&R&&y(!1),H(r.clientX,r.clientY),z.current=document.elementFromPoint(r.clientX,r.clientY))},[v,m,H,R,l,y]);a.useEffect(()=>{m&&R&&y(!1)},[m,R,y]);const $=a.useCallback(r=>{if(r.defaultPrevented||!wt.includes(r.key))return;const S=Array.from(r.currentTarget.querySelectorAll(At)).filter(jt);if(S.length===0)return;r.preventDefault();const A=r.currentTarget.ownerDocument.activeElement,j=S.findIndex(c=>c===A);S[Dt(r.key,j,S.length)]?.focus()},[]),oe=a.useCallback(r=>S=>{r.disabled||(r.onClick?.({key:r.key,domEvent:S}),s?.({key:r.key,domEvent:S}),r.selectable||y(!1))},[s,y]),ge=a.useMemo(()=>u?u():n?t.jsxs(t.Fragment,{children:[o&&t.jsx(t.Fragment,{children:typeof o=="function"?o():o}),t.jsx("div",{role:"none",className:x.mergeClasses("py-1",T),"aria-label":"dropdown",children:n.map(r=>r.type===g.DropdownItemType.Divider?t.jsx("div",{role:"separator",className:x.mergeClasses(vt,k)},r.key):r.type===g.DropdownItemType.PlainText?t.jsx("div",{className:x.mergeClasses("px-3 py-2 text-secondary dial-caption-text",r.className),children:r.label},r.key):r.children?.length?t.jsx(Rt,{item:r,onRootClose:()=>y(!1)},r.key):t.jsx("button",{role:r.selectable?"menuitemcheckbox":"menuitem","aria-checked":r.selectable?!!r.checked:void 0,type:"button","aria-disabled":!!r.disabled,className:x.mergeClasses(Se,r.selectable&&r.checked&&It,r.disabled&&ye,r.danger&&Je,r.className),disabled:r.disabled,onClick:oe(r),children:r.renderItem?r.renderItem(r):t.jsxs(t.Fragment,{children:[r.selectable&&t.jsx(De,{isSelected:!!r.checked,disabled:r.disabled}),r.icon&&t.jsx("span",{className:x.mergeClasses(r.danger&&"text-error",r.disabled&&"text-control-disable-primary"),children:t.jsx(g.DialIcon,{icon:r.icon})}),t.jsx("span",{className:x.mergeClasses("flex-1 truncate text-start",r.danger&&"text-error",r.disabled&&"text-control-disable-primary"),children:r.label})]})},r.key))}),d&&t.jsx(t.Fragment,{children:typeof d=="function"?d():d})]}):null,[oe,n,d,o,u,y,T,k]),Ce=pe({onContextMenu:xe,onMouseDown:ne});return a.useEffect(()=>{if(!R)return;const r=L.reference.current;let S=null;if(r instanceof Element?S=r:z.current instanceof Element&&(S=z.current),!S)return;const A=new IntersectionObserver(([j])=>{j.isIntersecting||y(!1)},{root:null,threshold:0});return A.observe(S),()=>A.disconnect()},[R,L.reference,y]),t.jsxs(t.Fragment,{children:[t.jsx("span",{ref:L.setReference,className:x.mergeClasses(yt,m&&"!cursor-not-allowed opacity-75",D),"aria-haspopup":"menu","aria-expanded":R,"aria-controls":Y,...Ce,children:e}),R&&t.jsx(b.FloatingPortal,{children:t.jsx(b.FloatingFocusManager,{context:P,modal:!1,initialFocus:se?0:-1,returnFocus:!0,children:t.jsxs("div",{id:Y,ref:L.setFloating,style:fe,className:x.mergeClasses(Nt,!V&&"w-max","overflow-auto",I,M),...Q({onKeyDown:$}),children:[E&&t.jsx("div",{className:"flex items-center justify-between px-2 pt-2",children:t.jsx(Ue,{ariaLabel:"Close dropdown",onClose:r=>{w?.(r),y(!1)}})}),ge]})})})]})},Te=({id:e,labelProps:n,isSelected:s=!1,isIndeterminate:o=!1,invalid:d=!1,disabled:u,onChange:l,caption:p,className:m,boxClassName:i,...h})=>{const N=a.useId(),E=e??N,w=p?`${E}-caption`:void 0,D=a.useCallback(k=>{l?.(k.target.checked)},[l]),T=a.useCallback(k=>{k&&(k.indeterminate=o)},[o]);return t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsxs("div",{className:x.mergeClasses("flex items-center gap-2",m),children:[t.jsx("input",{...h,ref:T,type:"checkbox",id:E,checked:s,disabled:u,onChange:D,"aria-checked":o?"mixed":s,"aria-invalid":d||void 0,"aria-label":f.resolveAccessibleName(typeof n?.label!="string"?h["aria-label"]:void 0),"aria-describedby":w,className:"peer sr-only"}),t.jsx(De,{htmlFor:E,isSelected:s,isIndeterminate:o,invalid:d,disabled:u,className:i}),n&&t.jsx(Ae,{size:f.ElementSize.Standard,...n,htmlFor:E,className:x.mergeClasses("py-[1px]",u?"cursor-not-allowed text-control-disable-primary":"cursor-pointer text-primary",n.className)})]}),p&&t.jsx("span",{id:w,className:"dial-tiny-text text-secondary ml-[28px]",children:p})]})},et=({id:e,name:n,value:s,labelProps:o,isSelected:d=!1,disabled:u,onChange:l,caption:p,className:m,...i})=>{const h=a.useId(),N=e??h,E=p?`${N}-caption`:void 0,w=a.useCallback(D=>{D.target.checked&&l?.(s)},[l,s]);return t.jsxs("div",{className:"flex flex-col gap-1",children:[t.jsxs("div",{className:x.mergeClasses("flex items-center gap-2 ",m),children:[t.jsx("input",{...i,type:"radio",id:N,name:n,value:s,checked:d,disabled:u,onChange:w,"aria-label":f.resolveAccessibleName(typeof o?.label!="string"?i["aria-label"]:void 0),"aria-describedby":E,className:"peer sr-only"}),t.jsx("label",{htmlFor:N,className:x.mergeClasses("group grid size-[20px] shrink-0 place-items-center rounded-full border transition-colors duration-200 hover:bg-control-accent-alpha-hover","dial-kit-minimum-target","peer-focus-visible:outline peer-focus-visible:outline-focus",u?"cursor-not-allowed border-default bg-control-disable-primary":x.mergeClasses("cursor-pointer",d?"border border-accent bg-control-neutral":"border-default bg-control-neutral")),children:d&&t.jsx("span",{className:x.mergeClasses("size-3 rounded-full",u?"bg-control-disable-secondary":"bg-control-accent")})}),o&&t.jsx(Ae,{size:f.ElementSize.Standard,...o,htmlFor:N,className:x.mergeClasses("py-[1px]",u?"cursor-not-allowed text-control-disable-primary":"cursor-pointer text-primary",o.className)})]}),p&&t.jsx("span",{id:E,className:"dial-tiny-text text-secondary ml-[26px]",children:p})]})},_t=60,tt=({title:e,description:n,icon:s,live:o=!1,className:d,titleClassName:u,descriptionClassName:l})=>t.jsxs("div",{role:o?"status":void 0,className:x.mergeClasses("flex size-full flex-col items-center justify-center gap-2 text-tertiary",d),children:[s??t.jsx(W.IconClipboardX,{size:_t,stroke:.5,"aria-hidden":"true"}),t.jsx("span",{className:x.mergeClasses("dial-body-semi-text text-primary",u),children:e}),n&&t.jsx("span",{className:x.mergeClasses("dial-small-text text-secondary",l),children:n})]}),st="dial-kit-grid",Bt="dial-kit-grid-with-selection",Ot="dial-kit-grid-without-header-borders",Lt="dial-kit-grid-row-select",Ft="dial-kit-grid-header-select",Mt="dial-kit-grid-selection-visible",Gt="dial-kit-grid-align-right",Ne=40,be="0.5px solid var(--stroke-tertiary, #E0E6F0)",le={accentColor:"var(--bg-control-accent, #1D4ED8)",backgroundColor:"var(--bg-layer-raised, #FCFCFC)",oddRowBackgroundColor:"var(--bg-layer-sunken, #EEF1F7)",selectedRowBackgroundColor:"var(--bg-control-accent-alpha, #2764D90F)",rowHoverColor:"var(--bg-control-accent-alpha-hover, #2764D924)",borderColor:"var(--stroke-tertiary, #E0E6F0)",rowBorder:be,headerRowBorder:be,headerColumnBorder:be,chromeBackgroundColor:"var(--bg-layer-base, #F5F7FA)",foregroundColor:"var(--text-primary, #161B2D)",headerTextColor:"var(--text-secondary, #57647A)",browserColorScheme:"light",headerFontSize:14,headerFontWeight:600,fontSize:14,fontFamily:"var(--theme-font, var(--font-inter))",spacing:4,borderRadius:4,wrapperBorderRadius:8};var B=(e=>(e.API="api",e.ROW_DATA_CHANGED="rowDataChanged",e.CHECKBOX_SELECTED="checkboxSelected",e))(B||{});const zt=({params:e,mode:n,label:s,radioName:o,rowId:d,disabled:u})=>{const l=e.node,[p,m]=a.useState(()=>!!l.isSelected());a.useEffect(()=>{const h=()=>m(!!l.isSelected());return h(),l.addEventListener("rowSelected",h),()=>l.removeEventListener("rowSelected",h)},[l]);const i=h=>{u||l.setSelected(h,n===g.GridSelectionMode.SINGLE,B.CHECKBOX_SELECTED)};return n===g.GridSelectionMode.SINGLE?t.jsx(et,{name:o,value:d,isSelected:p,disabled:u,"aria-label":s,onChange:()=>i(!0)}):t.jsx(Te,{isSelected:p,disabled:u,"aria-label":s,onChange:i})},Fe=e=>{let n=0,s=0;return e.forEachNodeAfterFilter(o=>{o.selectable!==!1&&(s++,o.isSelected()&&n++)}),{selected:n,selectable:s}},Pt=({api:e,label:n})=>{const[{selected:s,selectable:o},d]=a.useState(()=>Fe(e));a.useEffect(()=>{const l=()=>d(Fe(e));return l(),e.addEventListener("selectionChanged",l),e.addEventListener("modelUpdated",l),()=>{e.isDestroyed()||(e.removeEventListener("selectionChanged",l),e.removeEventListener("modelUpdated",l))}},[e]);const u=a.useCallback(l=>{if(l){e.selectAll("filtered",B.CHECKBOX_SELECTED);return}e.deselectAll("filtered",B.CHECKBOX_SELECTED)},[e]);return t.jsx(Te,{isSelected:o>0&&s===o,isIndeterminate:s>0&&s<o,disabled:o===0,"aria-label":n,onChange:u})},rt="en-US",nt={year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"},he=40,Ht={minWidth:he,width:he,maxWidth:he,resizable:!1,sortable:!1,filter:!1,floatingFilter:!1,suppressMovable:!0,suppressHeaderMenuButton:!0,suppressAutoSize:!0,suppressSizeToFit:!0};g.setupAgTestIds({testIdAttribute:"dataQA"});g.ModuleRegistry.registerModules([g.AllCommunityModule]);const ot="dial-kit-grid-selection",Wt=150,Vt=100,Ut=({columnDefs:e,rowData:n,additionalGridOptions:s,getContextMenuItems:o,className:d,ariaLabel:u="Data grid",wrapCustomCellRenderers:l=!0,disabledRowIds:p,selectedRowIds:m,onSelectionChange:i,onGridApiChange:h,getRowId:N,alternateOddRowColors:E=!1,filterPlaceholder:w="Enter value",emptyStateIcon:D,emptyStateTitle:T="No results found",emptyStateDescription:k="Sorry, we couldn't find any results for your search.",loading:M=!1,wrapperBorder:G=!0,withoutHeaderBorders:de=!1,allowDisabledContextMenu:te=!1,selectionMode:v,selectRowLabel:V,selectAllLabel:X="Select all rows"})=>{const[I,ue]=a.useState(),me=f.useIsMobileScreen(),Z=g.useIsTabletScreen(),R=a.useRef(new Set),z=a.useRef(void 0),se=`dial-kit-grid-selection-${a.useId()}`,O=a.useRef({getRowId:N,getContextMenuItems:o,onSelectionChange:i,selectRowLabel:V,wrapCustomCellRenderers:l});O.current={getRowId:N,getContextMenuItems:o,onSelectionChange:i,selectRowLabel:V,wrapCustomCellRenderers:l};const y=a.useCallback(c=>{const C=O.current.getRowId;return C?C(c):String(c.id??JSON.stringify(c))},[]),Y=!!o,re=!!l,L=a.useMemo(()=>g.themeBalham.withPart(g.colorSchemeLight).withParams({...le,oddRowBackgroundColor:E?le.oddRowBackgroundColor:le.backgroundColor,wrapperBorder:G}),[E,G]),fe=a.useCallback(c=>{c.api.sizeColumnsToFit()},[]),P=me||Z||(m?.size??0)>0,F=a.useCallback(c=>!!c&&!!p?.has(y(c)),[p,y]),U=a.useCallback((c,C,_)=>Y?t.jsx(Qe,{trigger:[g.DropdownTrigger.ContextMenu],items:c.data?O.current.getContextMenuItems?.(c.data)??[]:[],anchorToMouse:!0,matchReferenceWidth:!0,className:x.mergeClasses("size-full",_&&"cursor-not-allowed opacity-75"),disabled:_&&!te,children:t.jsx("span",{className:"block min-w-0 max-w-full flex-1",children:C})}):C,[Y,te]),J=a.useCallback(c=>{if(!c.data)return null;const C=F(c.data);return U(c,t.jsx(we,{text:c.value==null?"":String(c.value),className:"max-w-full dial-small-text text-primary",hideTooltip:C}),C)},[F,U]),K=a.useCallback(c=>c===B.API||c===B.ROW_DATA_CHANGED,[]),pe=a.useMemo(()=>g.debounceFn(c=>{const _=(c.selectedNodes??[]).map(_e=>_e.data),ee=new Set(_.map(y));R.current=ee,z.current=c.source,!K(c.source)&&O.current.onSelectionChange?.(ee,_)},Vt),[K,y]),Q=a.useMemo(()=>{if(v)return{...Ht,colId:ot,headerName:"",headerClass:Ft,cellClass:Lt,headerComponent:v===g.GridSelectionMode.MULTIPLE?Pt:void 0,headerComponentParams:{label:X},cellRenderer:c=>{if(!c.data)return null;const C=y(c.data);return t.jsx(zt,{params:c,mode:v,rowId:C,radioName:se,label:O.current.selectRowLabel?.(c.data)??"Select row",disabled:p?.has(C)})}}},[v,X,y,p,se]),H=a.useCallback(c=>{if(!c.cellRenderer)return{...c,cellRenderer:J};const C=O.current.wrapCustomCellRenderers;if(!(typeof C=="function"?C(c):!!C))return c;const ee=c.cellRenderer;return{...c,cellRenderer:ae=>{const at=F(ae.data),Be=typeof ee=="function"?ee:void 0,lt=Be?t.jsx(Be,{...ae}):J(ae);return U(ae,lt,at)}}},[F,J,U]),xe=a.useMemo(()=>{const c=re?(e??[]).map(H):e??[];return Q?[Q,...c]:c},[e,re,H,Q]),{defaultColDef:ne,rowSelection:$,...oe}=s??{},ge=a.useMemo(()=>({minWidth:Wt,resizable:!0,sortable:!0,floatingFilter:!0,filter:"agTextColumnFilter",filterParams:{filterPlaceholder:w,buttons:["reset"]},comparator:g.baseColumnComparator,...g.omitUndefined(ne)}),[w,ne]),Ce=c=>{c.api.sizeColumnsToFit(),ue(c.api),s?.onGridReady?.(c),h?.(c.api)};a.useEffect(()=>{I&&n&&I.setGridOption("rowData",n)},[I,n]);const r=a.useCallback(()=>t.jsx(tt,{live:!0,title:T,description:k,icon:D??t.jsx(W.IconZoomCancel,{size:100,stroke:.5,"aria-hidden":"true"})}),[T,k,D]),S=typeof $=="object"?$:void 0,A=a.useMemo(()=>v?{isRowSelectable:c=>!F(c.data),...S,mode:v===g.GridSelectionMode.SINGLE?"singleRow":"multiRow",checkboxes:!1,headerCheckbox:!1}:$,[$,S,F,v]);a.useEffect(()=>{I&&n&&R.current.size&&R.current.forEach(c=>{const C=I.getRowNode(c);C&&!C.isSelected()&&C.setSelected(!0,!1,B.API)})},[I,n]),a.useEffect(()=>{I&&m&&(I.deselectAll("all",B.API),m.forEach(c=>{const C=I.getRowNode(c);C&&!C.isSelected()&&C.setSelected(!0,!1,B.API)}))},[I,m]);const j=a.useCallback(c=>c.data?y(c.data):"",[y]);return a.useEffect(()=>{const c=K(z.current);if(I&&m?.size&&c){const C=Array.from(m)[0];if(C){const _=I.getRowNode(C);_&&I.ensureNodeVisible(_)}}},[I,K,m]),t.jsx("div",{className:x.mergeClasses(st,"size-full",v&&Bt,v&&P&&Mt,de&&Ot,d),role:"region","aria-label":u,"aria-busy":M,children:t.jsx("div",{className:"h-full overflow-x-auto",children:t.jsx(g.AgGridReact,{rowModelType:"clientSide",headerHeight:Ne,rowHeight:Ne,cellSelection:!1,theme:L,autoSizeStrategy:{type:"fitGridWidth"},columnDefs:xe,defaultColDef:ge,onGridSizeChanged:fe,onGridReady:Ce,loading:M,suppressCellFocus:!0,suppressDragLeaveHidesColumns:!0,noRowsOverlayComponent:r,rowData:n,rowSelection:A,onSelectionChanged:pe,getRowId:j,...oe})})})},Kt=({value:e,locale:n=rt,options:s=nt,emptyPlaceholder:o,className:d,hideTooltip:u=!1})=>{const l=g.convertToDate(e),p=a.useMemo(()=>l?new Intl.DateTimeFormat(n,s).format(l):o,[l,o,n,s]),m=l?l.toISOString():void 0;return t.jsx(we,{text:m?t.jsx("time",{dateTime:m,children:p}):t.jsx("span",{children:p}),className:x.mergeClasses("dial-small-text text-primary",d),hideTooltip:u})};exports.Checkbox=Te;exports.CheckboxBox=De;exports.CloseButton=Ue;exports.DEFAULT_DATE_FORMAT_OPTIONS=nt;exports.DEFAULT_LOCALE=rt;exports.DangerIconButton=bt;exports.DateCellRenderer=Kt;exports.Dropdown=Qe;exports.EllipsisTooltip=we;exports.GRID_ALIGN_RIGHT_CLASS=Gt;exports.GRID_ROOT_CLASS=st;exports.GRID_SELECTION_COLUMN_ID=ot;exports.GRID_THEME_PARAMS=le;exports.GhostIconButton=Ve;exports.Grid=Ut;exports.IconButton=ie;exports.InfoButton=He;exports.Label=Ae;exports.NeutralIconButton=Ct;exports.NoDataContent=tt;exports.PrimaryIconButton=gt;exports.ROW_HEIGHT=Ne;exports.Radio=et;exports.StaticIconButton=ht;exports.Tooltip=ze;exports.TooltipContainer=ve;exports.TooltipContent=ke;exports.TooltipPlacement=Ie;exports.TooltipTrigger=Re;exports.getButtonClassNames=Pe;exports.overlayGap=Ye;exports.overlayItemClassName=qe;exports.overlayItemDisabledClassName=Ze;exports.overlayItemSelectedClassName=Xe;exports.overlaySubMenuClassName=$e;
@@ -2,10 +2,15 @@ const o = "h-full w-full", e = ".ag-checkbox-input", t = {
2
2
  accentColor: "var(--bg-control-accent, var(--bg-accent-primary, #5C8DEA))",
3
3
  backgroundColor: "var(--bg-layer-raised, var(--bg-layer-3, #FCFCFC))",
4
4
  oddRowBackgroundColor: "var(--bg-layer-sunken, var(--bg-layer-2, #EEF1F7))",
5
- selectedRowBackgroundColor: "var(--controls-bg-accent-primary-alpha-active, var(--bg-accent-primary-alpha, #7DA4FF26))",
5
+ // The row tint has to stay translucent: the row it paints carries body text
6
+ // and a checkbox filled with `accentColor`, so an opaque accent hides both.
7
+ // `--bg-accent-primary-alpha` is the tint every other 1.0 control hovers
8
+ // with; the controls' `*-alpha-active` token this used to read is the
9
+ // pressed-state fill, which themes do define opaque.
10
+ selectedRowBackgroundColor: "var(--bg-accent-primary-alpha, #7DA4FF26)",
6
11
  borderColor: "var(--bg-layer-4, #D1DBEA)",
7
12
  rowBorder: "1px solid var(--stroke-tertiary, var(--stroke-primary, #6B7280))",
8
- rowHoverColor: "var(--controls-bg-accent-primary-alpha-active, var(--bg-accent-primary-alpha, #7DA4FF26))",
13
+ rowHoverColor: "var(--bg-accent-primary-alpha, #7DA4FF26)",
9
14
  borderRadius: 3,
10
15
  browserColorScheme: "dark",
11
16
  chromeBackgroundColor: "var(--bg-layer-1, #E0E6F0)",
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.14.0-dev.30",
3
- "generatedAt": "2026-09-07T09:55:56.756Z",
2
+ "version": "0.14.0-dev.32",
3
+ "generatedAt": "2026-09-07T11:17:54.374Z",
4
4
  "kit": {
5
5
  "name": "@epam/ai-dial-ui-kit",
6
6
  "description": "A modern UI kit for building AI DIAL interfaces with React",