@fluidattacks/design 3.25.0-pr → 3.25.1-pr

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.
Files changed (162) hide show
  1. package/dist/components/@core/index.js +1 -1
  2. package/dist/components/accordion/accordion-content/index.js +1 -1
  3. package/dist/components/accordion/index.js +1 -1
  4. package/dist/components/alert/index.js +1 -1
  5. package/dist/components/avatar/index.js +1 -1
  6. package/dist/components/button/index.js +1 -1
  7. package/dist/components/card/card-header/index.js +1 -1
  8. package/dist/components/card/card-with-image/index.js +1 -1
  9. package/dist/components/card/card-with-input/index.js +1 -1
  10. package/dist/components/card/card-with-options/index.js +1 -1
  11. package/dist/components/card/card-with-selector/index.js +1 -1
  12. package/dist/components/card/card-with-switch/index.js +1 -1
  13. package/dist/components/card/index.js +1 -1
  14. package/dist/components/carousel/index.js +1 -1
  15. package/dist/components/checkbox/index.js +1 -1
  16. package/dist/components/cloud-image/index.js +1 -1
  17. package/dist/components/code-snippet/index.js +1 -1
  18. package/dist/components/code-snippet/location-code/index.js +1 -1
  19. package/dist/components/colors/index.js +1 -1
  20. package/dist/components/conditions-dialog/index.js +1 -1
  21. package/dist/components/confirm-dialog/index.js +1 -1
  22. package/dist/components/container/index.js +1 -1
  23. package/dist/components/copy-button/index.js +1 -1
  24. package/dist/components/divider/index.js +1 -1
  25. package/dist/components/dropdown/index.js +1 -1
  26. package/dist/components/empty-state/empty-button/index.js +1 -1
  27. package/dist/components/empty-state/index.js +1 -1
  28. package/dist/components/file-preview/index.js +1 -1
  29. package/dist/components/form/index.js +1 -1
  30. package/dist/components/form/inner-form/index.js +1 -1
  31. package/dist/components/grid-container/index.js +1 -1
  32. package/dist/components/group-selector/index.js +1 -1
  33. package/dist/components/group-selector/option-container/index.js +1 -1
  34. package/dist/components/icon/index.js +1 -1
  35. package/dist/components/icon-button/index.js +1 -1
  36. package/dist/components/indicator-card/index.js +1 -1
  37. package/dist/components/info-sidebar/index.js +1 -1
  38. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  39. package/dist/components/inputs/fields/combobox/index.js +1 -1
  40. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  41. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  42. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  43. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  44. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  45. package/dist/components/inputs/fields/date/index.js +1 -1
  46. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  47. package/dist/components/inputs/fields/date-range/index.js +1 -1
  48. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  49. package/dist/components/inputs/fields/date-time/index.js +1 -1
  50. package/dist/components/inputs/fields/editable/index.js +1 -1
  51. package/dist/components/inputs/fields/input/index.js +1 -1
  52. package/dist/components/inputs/fields/input-array/field/index.js +1 -1
  53. package/dist/components/inputs/fields/input-array/index.js +1 -1
  54. package/dist/components/inputs/fields/input-file/index.js +1 -1
  55. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  56. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  57. package/dist/components/inputs/fields/number/index.js +1 -1
  58. package/dist/components/inputs/fields/number-range/index.js +1 -1
  59. package/dist/components/inputs/fields/phone/index.js +1 -1
  60. package/dist/components/inputs/fields/text-area/index.js +1 -1
  61. package/dist/components/inputs/index.js +1 -1
  62. package/dist/components/inputs/label/index.js +1 -1
  63. package/dist/components/inputs/outline-container/index.js +1 -1
  64. package/dist/components/inputs/utils/action-button/index.js +1 -1
  65. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  66. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  67. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  68. package/dist/components/inputs/utils/dialog/index.js +1 -1
  69. package/dist/components/inputs/utils/number-field/index.js +1 -1
  70. package/dist/components/inputs/utils/popover/index.js +1 -1
  71. package/dist/components/layout/categories/buttons/index.js +1 -1
  72. package/dist/components/layout/categories/column/index.js +1 -1
  73. package/dist/components/layout/categories/gap/index.js +1 -1
  74. package/dist/components/layout/categories/row/index.js +1 -1
  75. package/dist/components/layout/index.js +1 -1
  76. package/dist/components/link/index.js +1 -1
  77. package/dist/components/list-item/index.js +1 -1
  78. package/dist/components/little-flag/index.js +1 -1
  79. package/dist/components/loading/index.js +1 -1
  80. package/dist/components/logo/index.js +1 -1
  81. package/dist/components/lottie/index.js +1 -1
  82. package/dist/components/menu/index.js +1 -1
  83. package/dist/components/message-banner/index.js +1 -1
  84. package/dist/components/modal/columns-modal/index.js +1 -1
  85. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  86. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  87. package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
  88. package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
  89. package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
  90. package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
  91. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
  92. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
  93. package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
  94. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  95. package/dist/components/modal/filters-modal/index.js +1 -1
  96. package/dist/components/modal/filters-modal/types.d.ts +2 -2
  97. package/dist/components/modal/footer/index.js +1 -1
  98. package/dist/components/modal/header/index.js +1 -1
  99. package/dist/components/modal/index.js +1 -1
  100. package/dist/components/modal/modal-confirm/index.js +1 -1
  101. package/dist/components/notification/index.js +1 -1
  102. package/dist/components/notification-sign/index.js +1 -1
  103. package/dist/components/number-input/index.js +1 -1
  104. package/dist/components/oauth-selector/index.js +1 -1
  105. package/dist/components/oauth-selector/option-container/index.js +1 -1
  106. package/dist/components/pop-up/description/index.js +1 -1
  107. package/dist/components/pop-up/index.js +1 -1
  108. package/dist/components/premium-feature/index.js +1 -1
  109. package/dist/components/priority-score/index.js +1 -1
  110. package/dist/components/progress-bar/index.js +1 -1
  111. package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
  112. package/dist/components/progress-indicator/index.js +1 -1
  113. package/dist/components/progress-indicator/step/index.js +1 -1
  114. package/dist/components/radio-button/index.js +1 -1
  115. package/dist/components/scroll-button/index.js +1 -1
  116. package/dist/components/search/index.js +1 -1
  117. package/dist/components/severity-badge/index.js +1 -1
  118. package/dist/components/severity-overview/badge/index.js +1 -1
  119. package/dist/components/severity-overview/index.js +1 -1
  120. package/dist/components/show-on-hover/index.js +1 -1
  121. package/dist/components/slide-out-menu/index.js +1 -1
  122. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  123. package/dist/components/slider/index.js +1 -1
  124. package/dist/components/slider/thumb/index.js +1 -1
  125. package/dist/components/step-lapse/index.js +1 -1
  126. package/dist/components/table/context/index.js +1 -1
  127. package/dist/components/table/export-csv/index.js +1 -1
  128. package/dist/components/table/index.js +1 -1
  129. package/dist/components/table/pagination/pagination-control/index.js +1 -1
  130. package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
  131. package/dist/components/table/pagination/pagination-size/index.js +1 -1
  132. package/dist/components/table/sort-icon/index.js +1 -1
  133. package/dist/components/table/table-body/index.js +1 -1
  134. package/dist/components/table/table-body/styles.d.ts +269 -3
  135. package/dist/components/table/table-column-toggle/index.js +1 -1
  136. package/dist/components/table/table-content/head/index.js +1 -1
  137. package/dist/components/table/table-content/index.js +1 -1
  138. package/dist/components/table/table-footer/footer-content/index.js +1 -1
  139. package/dist/components/table/table-footer/index.js +1 -1
  140. package/dist/components/table/table-options/caption-content/index.js +1 -1
  141. package/dist/components/table/table-options/controls-content/index.js +1 -1
  142. package/dist/components/table/table-options/highlighted-content/index.js +1 -1
  143. package/dist/components/table/table-options/index.js +1 -1
  144. package/dist/components/table/wrapper/index.js +1 -1
  145. package/dist/components/table-button/index.js +1 -1
  146. package/dist/components/tabs/index.js +1 -1
  147. package/dist/components/tabs/tab/index.js +1 -1
  148. package/dist/components/tag/index.js +1 -1
  149. package/dist/components/timeline/card/index.js +1 -1
  150. package/dist/components/timeline/index.js +1 -1
  151. package/dist/components/toggle/index.js +1 -1
  152. package/dist/components/tooltip/index.js +1 -1
  153. package/dist/components/tour/index.js +1 -1
  154. package/dist/components/typography/heading/index.js +1 -1
  155. package/dist/components/typography/index.js +1 -1
  156. package/dist/components/typography/span/index.js +1 -1
  157. package/dist/components/typography/text/index.js +1 -1
  158. package/dist/{components-CiErYmg8.mjs → components-CB7NZfNb.mjs} +459 -456
  159. package/dist/{components-p_ZlJof3.js → components-CfMBZf1Z.js} +25 -26
  160. package/dist/hooks/index.js +1 -1
  161. package/dist/index.js +1 -1
  162. package/package.json +1 -1
@@ -16,7 +16,7 @@
16
16
  `},ui=e=>e.includes("x")?"overflow-x: auto;":"",xi=e=>e.includes("y")?"overflow-y: auto;":"",me=e=>{const n=e.scroll?`
17
17
  ${ui(e.scroll)}
18
18
  ${xi(e.scroll)}
19
- `:"",i=F("visibility",e.visibility),o=F("display",e.display),r=F("height",e.height),a=F("width",e.width),c=F("max-height",e.maxHeight),s=F("max-width",e.maxWidth),d=F("min-height",e.minHeight),p=F("min-width",e.minWidth),g=F("box-shadow",e.shadow?N.shadows[e.shadow]:void 0),u=F("gap",e.gap===void 0?void 0:N.spacing[e.gap]),f=F("background-color",e.bgColor),h=F("background",e.bgGradient),y=F("flex-direction",e.flexDirection),b=F("flex-grow",e.flexGrow),m=F("justify-content",e.justify),j=F("justify-self",e.justifySelf),w=F("align-items",e.alignItems),v=F("align-self",e.alignSelf),k=F("flex-wrap",e.wrap);return`
19
+ `:"",i=F("visibility",e.visibility),o=F("display",e.display),r=F("height",e.height),a=F("width",e.width),c=F("max-height",e.maxHeight),s=F("max-width",e.maxWidth),d=F("min-height",e.minHeight),p=F("min-width",e.minWidth),g=F("box-shadow",e.shadow?N.shadows[e.shadow]:void 0),u=F("gap",e.gap===void 0?void 0:N.spacing[e.gap]),f=F("background-color",e.bgColor),h=F("background",e.bgGradient),y=F("flex-direction",e.flexDirection),b=F("flex-grow",e.flexGrow),m=F("justify-content",e.justify),v=F("justify-self",e.justifySelf),w=F("align-items",e.alignItems),j=F("align-self",e.alignSelf),k=F("flex-wrap",e.wrap);return`
20
20
  ${n}
21
21
  ${i}
22
22
  ${o}
@@ -33,9 +33,9 @@
33
33
  ${y}
34
34
  ${b}
35
35
  ${m}
36
- ${j}
37
- ${w}
38
36
  ${v}
37
+ ${w}
38
+ ${j}
39
39
  ${k}
40
40
  `},we=e=>{const n=F("color",e.color),i=F("font-family",e.fontFamily),o=F("font-size",e.fontSize),r=F("font-weight",e.fontWeight),a=F("line-spacing",e.letterSpacing),c=F("line-height",e.lineSpacing),s=F("text-align",e.textAlign),d=F("text-decoration",e.textDecoration),p=F("text-overflow",e.textOverflow),g=F("white-space",e.whiteSpace),u=F("word-break",e.wordBreak),f=F("word-wrap",e.wordWrap);return`
41
41
  ${n}
@@ -182,7 +182,7 @@
182
182
 
183
183
  ${i===void 0?"":`&::after { content: "${i}"; }`}
184
184
  `}
185
- `,K=x.forwardRef(function({bgGradient:n,children:i,className:o,color:r,display:a,fontFamily:c,fontWeight:s,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,overflow:u,size:f,sizeMd:h,sizeSm:y,textFill:b,whiteSpace:m,wordBreak:j,...w},v){return t.jsx(hi,{$bgGradient:n,$color:r,$display:a,$fontFamily:c,$fontWeight:s,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$overflow:u,$size:f,$sizeMd:h,$sizeSm:y,$textFill:b,$whiteSpace:m,$wordBreak:j,className:o,ref:v,...w,children:i})}),ue=x.forwardRef(function({children:n,color:i,content:o,display:r,fontFamily:a,fontWeight:c,letterSpacing:s,lineSpacing:d,lineSpacingSm:p,size:g,sizeMd:u,sizeSm:f,...h},y){return t.jsx(yi,{$color:i,$content:o,$display:r,$fontFamily:a,$fontWeight:c,$letterSpacing:s,$lineSpacing:d,$lineSpacingSm:p,$size:g,$sizeMd:u,$sizeSm:f,ref:y,...h,children:n})}),z=x.forwardRef(function({bgGradient:n,children:i,className:o,color:r,display:a,fontFamily:c,fontWeight:s,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,overflow:u,size:f,sizeMd:h,sizeSm:y,textFill:b,whiteSpace:m,wordBreak:j,fontStyle:w,...v},k){return t.jsx(St,{$bgGradient:n,$color:r,$display:a,$fontFamily:c,$fontStyle:w,$fontWeight:s,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$overflow:u,$size:f,$sizeMd:h,$sizeSm:y,$textFill:b,$whiteSpace:m,$wordBreak:j,className:o,ref:k,...v,children:i})}),zt=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(z,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return t.jsxs($,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[n,e.extraElement?t.jsx($,{children:e.extraElement}):void 0]})},bi={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},$i=l.st(qe)`
185
+ `,K=x.forwardRef(function({bgGradient:n,children:i,className:o,color:r,display:a,fontFamily:c,fontWeight:s,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,overflow:u,size:f,sizeMd:h,sizeSm:y,textFill:b,whiteSpace:m,wordBreak:v,...w},j){return t.jsx(hi,{$bgGradient:n,$color:r,$display:a,$fontFamily:c,$fontWeight:s,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$overflow:u,$size:f,$sizeMd:h,$sizeSm:y,$textFill:b,$whiteSpace:m,$wordBreak:v,className:o,ref:j,...w,children:i})}),ue=x.forwardRef(function({children:n,color:i,content:o,display:r,fontFamily:a,fontWeight:c,letterSpacing:s,lineSpacing:d,lineSpacingSm:p,size:g,sizeMd:u,sizeSm:f,...h},y){return t.jsx(yi,{$color:i,$content:o,$display:r,$fontFamily:a,$fontWeight:c,$letterSpacing:s,$lineSpacing:d,$lineSpacingSm:p,$size:g,$sizeMd:u,$sizeSm:f,ref:y,...h,children:n})}),z=x.forwardRef(function({bgGradient:n,children:i,className:o,color:r,display:a,fontFamily:c,fontWeight:s,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,overflow:u,size:f,sizeMd:h,sizeSm:y,textFill:b,whiteSpace:m,wordBreak:v,fontStyle:w,...j},k){return t.jsx(St,{$bgGradient:n,$color:r,$display:a,$fontFamily:c,$fontStyle:w,$fontWeight:s,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$overflow:u,$size:f,$sizeMd:h,$sizeSm:y,$textFill:b,$whiteSpace:m,$wordBreak:v,className:o,ref:k,...j,children:i})}),zt=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(z,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return t.jsxs($,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[n,e.extraElement?t.jsx($,{children:e.extraElement}):void 0]})},bi={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},$i=l.st(qe)`
186
186
  ${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:o,$rotation:r,$size:a,$secondaryColor:c})=>{const s=o?"":"brightness(50%)",d=o??"";return`
187
187
  color: ${n};
188
188
  cursor: ${e?"pointer":"inherit"};
@@ -418,7 +418,7 @@
418
418
  width: max-content;
419
419
  z-index: 999999;
420
420
  `}
421
- `,U=({children:e,disabled:n=!1,display:i="inline-block",height:o,icon:r,iconColor:a,iconSize:c,id:s,maxWidth:d,nodeTip:p,place:g="bottom",tip:u="",title:f="",hide:h=u===""&&f===""&&p===void 0,width:y})=>{const b=l.Je(),[m,j]=x.useState(!1),{refs:w,floatingStyles:v,context:k}=l.useFloating({middleware:[l.flip({fallbackAxisSideDirection:"start"}),l.offset({mainAxis:10}),l.shift()],onOpenChange:j,open:m,placement:g,whileElementsMounted:l.autoUpdate}),C=l.useHover(k,{delay:{close:0,open:500},move:!1}),I=l.useFocus(k),R=l.useRole(k,{role:r?"label":"tooltip"}),{getReferenceProps:S,getFloatingProps:D}=l.useInteractions([C,I,R]);return n?t.jsx(x.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(zi,{...S(),display:i,height:o,id:s,ref:w.setReference,width:y,children:r?t.jsx(E,{clickable:!0,disabled:n,icon:r,iconColor:a,iconSize:c??"xxs",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&se.createPortal(t.jsxs(Ii,{...D(),$maxWidth:d,id:`floating-${s}`,ref:w.setFloating,style:v,children:[l.lodashExports.isEmpty(f)?void 0:t.jsx(z,{color:b.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:f}),l.lodashExports.isEmpty(u)?void 0:t.jsx(z,{color:b.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:u}),l.lodashExports.isEmpty(p)?void 0:p]}),document.getElementById("root")??document.body)]})},M=x.forwardRef(function({borderRadius:n,disabled:i,icon:o,iconColor:r,iconSize:a="xxs",iconTransform:c,iconType:s,id:d,justify:p="center",onClick:g,px:u,py:f,type:h="button",tooltip:y,tooltipPlace:b,value:m,variant:j="primary",...w},v){const k=t.jsx(Si,{$variant:j,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:p,onClick:g,px:u,py:f,ref:v,type:h,value:m,...w,children:t.jsx(E,{clickable:!1,icon:o,iconColor:r,iconSize:a,iconTransform:c,iconType:s})}),I=(h+(j??"")+(d??o)).replace(/ /u,"_");return y===void 0?k:t.jsx(U,{id:`${I}-tooltip`,place:b,tip:y,children:k})}),Ti=x.forwardRef(function({autoHide:n=!1,children:i,closable:o=!1,iconEnabled:r=!0,onTimeOut:a,show:c=!0,time:s=8,variant:d="error",id:p,...g},u){const[f,h]=x.useState(c),y=x.useCallback(()=>{h(!1)},[]);return x.useEffect(()=>{const b=setTimeout(()=>{a==null||a(!0),n&&y()},s*1e3);return()=>{clearTimeout(b)}},[n,y,s,a]),x.useEffect(()=>{h(c)},[c,h]),t.jsx($,{display:f?"block":"none",ref:u,role:"alert",...g,children:t.jsxs(vi,{$variant:d,id:p,children:[r?t.jsx(E,{clickable:!1,icon:wi(d),iconSize:"xs",iconType:"fa-light"}):void 0,t.jsx(ki,{children:i}),o?t.jsx(M,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:y,px:.125,py:.125,variant:"ghost"}):void 0]})})}),gt=l.st.div`
421
+ `,U=({children:e,disabled:n=!1,display:i="inline-block",height:o,icon:r,iconColor:a,iconSize:c,id:s,maxWidth:d,nodeTip:p,place:g="bottom",tip:u="",title:f="",hide:h=u===""&&f===""&&p===void 0,width:y})=>{const b=l.Je(),[m,v]=x.useState(!1),{refs:w,floatingStyles:j,context:k}=l.useFloating({middleware:[l.flip({fallbackAxisSideDirection:"start"}),l.offset({mainAxis:10}),l.shift()],onOpenChange:v,open:m,placement:g,whileElementsMounted:l.autoUpdate}),C=l.useHover(k,{delay:{close:0,open:500},move:!1}),I=l.useFocus(k),R=l.useRole(k,{role:r?"label":"tooltip"}),{getReferenceProps:S,getFloatingProps:D}=l.useInteractions([C,I,R]);return n?t.jsx(x.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(zi,{...S(),display:i,height:o,id:s,ref:w.setReference,width:y,children:r?t.jsx(E,{clickable:!0,disabled:n,icon:r,iconColor:a,iconSize:c??"xxs",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&se.createPortal(t.jsxs(Ii,{...D(),$maxWidth:d,id:`floating-${s}`,ref:w.setFloating,style:j,children:[l.lodashExports.isEmpty(f)?void 0:t.jsx(z,{color:b.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:f}),l.lodashExports.isEmpty(u)?void 0:t.jsx(z,{color:b.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:u}),l.lodashExports.isEmpty(p)?void 0:p]}),document.getElementById("root")??document.body)]})},M=x.forwardRef(function({borderRadius:n,disabled:i,icon:o,iconColor:r,iconSize:a="xxs",iconTransform:c,iconType:s,id:d,justify:p="center",onClick:g,px:u,py:f,type:h="button",tooltip:y,tooltipPlace:b,value:m,variant:v="primary",...w},j){const k=t.jsx(Si,{$variant:v,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:p,onClick:g,px:u,py:f,ref:j,type:h,value:m,...w,children:t.jsx(E,{clickable:!1,icon:o,iconColor:r,iconSize:a,iconTransform:c,iconType:s})}),I=(h+(v??"")+(d??o)).replace(/ /u,"_");return y===void 0?k:t.jsx(U,{id:`${I}-tooltip`,place:b,tip:y,children:k})}),Ti=x.forwardRef(function({autoHide:n=!1,children:i,closable:o=!1,iconEnabled:r=!0,onTimeOut:a,show:c=!0,time:s=8,variant:d="error",id:p,...g},u){const[f,h]=x.useState(c),y=x.useCallback(()=>{h(!1)},[]);return x.useEffect(()=>{const b=setTimeout(()=>{a==null||a(!0),n&&y()},s*1e3);return()=>{clearTimeout(b)}},[n,y,s,a]),x.useEffect(()=>{h(c)},[c,h]),t.jsx($,{display:f?"block":"none",ref:u,role:"alert",...g,children:t.jsxs(vi,{$variant:d,id:p,children:[r?t.jsx(E,{clickable:!1,icon:wi(d),iconSize:"xs",iconType:"fa-light"}):void 0,t.jsx(ki,{children:i}),o?t.jsx(M,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:y,px:.125,py:.125,variant:"ghost"}):void 0]})})}),gt=l.st.div`
422
422
  ${({theme:e})=>`
423
423
  align-items: center;
424
424
  background-color: ${e.palette.gray[200]};
@@ -636,7 +636,7 @@
636
636
  ${Tt}
637
637
  `,Li=l.st(Oe.Link)`
638
638
  ${Tt}
639
- `,Z=({children:e,color:n,download:i,href:o,iconPosition:r="right",onClick:a,target:c,variant:s="lowRelevance"})=>{const d=o.startsWith("https://"),p=t.jsx(E,{icon:i===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return d?t.jsxs(Di,{$color:n,$variant:s,download:i,href:o,onClick:a,rel:"nofollow noopener noreferrer",target:c??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(Li,{$variant:s,download:i,onClick:a,rel:"nofollow noopener noreferrer",target:c,to:o,children:[c!==void 0&&r==="left"?p:void 0,e,c!==void 0&&r==="right"?p:void 0]})},G=({disabled:e,icon:n,iconColor:i="inherit",iconType:o="fa-light",id:r="close-tag",filterValues:a="",fontSize:c,href:s,linkLabel:d,onClose:p,priority:g="default",tagTitle:u="",tagLabel:f,variant:h="default"})=>{const y=f.length>25&&l.lodashExports.isEmpty(u+a),b=`${f.slice(0,25)}...`;return t.jsxs(ue,{className:"gap-0.5",display:s===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Ni,{$fontSize:c,$variant:h,className:g,children:[n&&t.jsx(E,{icon:n,iconColor:i,iconSize:"xxs",iconType:o}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:u}),t.jsx("span",{children:y?b:f}),t.jsx("strong",{className:"w-full",children:a})]}),p?t.jsx(M,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),s===void 0?void 0:t.jsx(Z,{href:s,children:d})]})},Et=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");l.lodashExports.isObject(i)&&(i.opener=null)},P=x.forwardRef(function({children:n,disabled:i=!1,external:o=!1,fontSize:r,href:a,id:c,icon:s,iconColor:d,iconType:p,name:g,onClick:u,rightIcon:f,tag:h,type:y="button",tooltip:b,tooltipPlace:m="bottom",underline:j=!1,value:w,variant:v="primary",width:k,...C},I){const R=b!==void 0,S=`${c}-tooltip`,D=x.useCallback(()=>{a&&Et(a,o)},[o,a]),T=t.jsxs(It,{$size:r,$variant:v,"aria-disabled":i,className:j?"underline":void 0,disabled:i,id:c,name:g,onClick:v==="link"?D:u,ref:I,type:y,value:w,width:k,...R?{"data-tooltip-id":S}:{},...C,children:[s!==void 0&&t.jsx(E,{icon:s,iconColor:d??void 0,iconSize:"xs",iconType:p??"fa-light"}),n,f||v==="link"?t.jsx(E,{icon:f??"arrow-right",iconSize:"xs",iconType:"fa-light"}):void 0,h===void 0?null:t.jsx(G,{tagLabel:h,variant:"default"})]});return R?t.jsx(U,{disabled:!R,id:S,place:m,tip:b,width:k,children:T}):T}),Ai=x.forwardRef(function({children:n,onClick:i,userName:o,showIcon:r=!1,showUsername:a=!1},c){const s=!!i;return t.jsx($,{id:"navbar-user-profile",ref:c,zIndex:9999,children:t.jsxs($,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[s?t.jsxs(P,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(gt,{children:o[0].toUpperCase()}),a?t.jsx(z,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:o.split(" ")[0]}):void 0,r?t.jsx(E,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs($,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(gt,{children:o[0].toUpperCase()}),a?t.jsxs(z,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",o.split(" ")[0],"!"]}):void 0,r?t.jsx(E,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(Ei,{children:n})]})})}),Ne=({authorEmail:e,date:n,description:i,descriptionColor:o,id:r,title:a,titleColor:c,textAlign:s,textSpacing:d=0,tooltip:p})=>{const g=l.Je();return t.jsxs($,{width:"100%",children:[typeof a=="string"||p?t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,width:"100%",children:[typeof a=="string"?t.jsx(z,{color:c??g.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:s,wordBreak:"break-word",children:a}):a,p&&t.jsx(U,{icon:"circle-info",id:r,place:"top",tip:p})]}):void 0,t.jsxs($,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(z,{color:o??g.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:s,wordBreak:"break-word",children:i}),n&&t.jsx(z,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(z,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Author: ${e}`})]})]})},ut=l.st($).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
639
+ `,Z=({children:e,color:n,download:i,href:o,iconPosition:r="right",onClick:a,target:c,variant:s="lowRelevance"})=>{const d=o.startsWith("https://"),p=t.jsx(E,{icon:i===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return d?t.jsxs(Di,{$color:n,$variant:s,download:i,href:o,onClick:a,rel:"nofollow noopener noreferrer",target:c??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(Li,{$variant:s,download:i,onClick:a,rel:"nofollow noopener noreferrer",target:c,to:o,children:[c!==void 0&&r==="left"?p:void 0,e,c!==void 0&&r==="right"?p:void 0]})},G=({disabled:e,icon:n,iconColor:i="inherit",iconType:o="fa-light",id:r="close-tag",filterValues:a="",fontSize:c,href:s,linkLabel:d,onClose:p,priority:g="default",tagTitle:u="",tagLabel:f,variant:h="default"})=>{const y=f.length>25&&l.lodashExports.isEmpty(u+a),b=`${f.slice(0,25)}...`;return t.jsxs(ue,{className:"gap-0.5",display:s===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Ni,{$fontSize:c,$variant:h,className:g,children:[n&&t.jsx(E,{icon:n,iconColor:i,iconSize:"xxs",iconType:o}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:u}),t.jsx("span",{children:y?b:f}),t.jsx("strong",{className:"w-full",children:a})]}),p?t.jsx(M,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),s===void 0?void 0:t.jsx(Z,{href:s,children:d})]})},Et=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");l.lodashExports.isObject(i)&&(i.opener=null)},P=x.forwardRef(function({children:n,disabled:i=!1,external:o=!1,fontSize:r,href:a,id:c,icon:s,iconColor:d,iconType:p,name:g,onClick:u,rightIcon:f,tag:h,type:y="button",tooltip:b,tooltipPlace:m="bottom",underline:v=!1,value:w,variant:j="primary",width:k,...C},I){const R=b!==void 0,S=`${c}-tooltip`,D=x.useCallback(()=>{a&&Et(a,o)},[o,a]),T=t.jsxs(It,{$size:r,$variant:j,"aria-disabled":i,className:v?"underline":void 0,disabled:i,id:c,name:g,onClick:j==="link"?D:u,ref:I,type:y,value:w,width:k,...R?{"data-tooltip-id":S}:{},...C,children:[s!==void 0&&t.jsx(E,{icon:s,iconColor:d??void 0,iconSize:"xs",iconType:p??"fa-light"}),n,f||j==="link"?t.jsx(E,{icon:f??"arrow-right",iconSize:"xs",iconType:"fa-light"}):void 0,h===void 0?null:t.jsx(G,{tagLabel:h,variant:"default"})]});return R?t.jsx(U,{disabled:!R,id:S,place:m,tip:b,width:k,children:T}):T}),Ai=x.forwardRef(function({children:n,onClick:i,userName:o,showIcon:r=!1,showUsername:a=!1},c){const s=!!i;return t.jsx($,{id:"navbar-user-profile",ref:c,zIndex:9999,children:t.jsxs($,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[s?t.jsxs(P,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(gt,{children:o[0].toUpperCase()}),a?t.jsx(z,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:o.split(" ")[0]}):void 0,r?t.jsx(E,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs($,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(gt,{children:o[0].toUpperCase()}),a?t.jsxs(z,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",o.split(" ")[0],"!"]}):void 0,r?t.jsx(E,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(Ei,{children:n})]})})}),Ne=({authorEmail:e,date:n,description:i,descriptionColor:o,id:r,title:a,titleColor:c,textAlign:s,textSpacing:d=0,tooltip:p})=>{const g=l.Je();return t.jsxs($,{width:"100%",children:[typeof a=="string"||p?t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,width:"100%",children:[typeof a=="string"?t.jsx(z,{color:c??g.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:s,wordBreak:"break-word",children:a}):a,p&&t.jsx(U,{icon:"circle-info",id:r,place:"top",tip:p})]}):void 0,t.jsxs($,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(z,{color:o??g.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:s,wordBreak:"break-word",children:i}),n&&t.jsx(z,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(z,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Author: ${e}`})]})]})},ut=l.st($).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
640
640
  & img {
641
641
  display: block;
642
642
  }
@@ -651,7 +651,7 @@
651
651
  pointer-events: none;
652
652
  ${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
653
653
  }
654
- `,Pi=e=>{if(l._.isNil(e))return"";const n=e.split(".");return(n.length>1?l._.last(n):"").toLowerCase()},Mi=(e,n)=>l._.isUndefined(n)?!1:l._.includes(e,Pi(n)),Rt=({alt:e,fileType:n,width:i="100%",opacity:o=0,src:r,height:a="auto",videoViewStatus:c})=>{const[s,d]=x.useState({start:!1,half:!1,end:!1}),p=x.useCallback(g=>{if(!c)return;const u=g.target,f=u.currentTime/u.duration*100;f>5&&f<50?(s.start||c("start"),d({start:!0,half:!1,end:!1})):f>=50&&f<99?(s.half||c("half"),d({start:!0,half:!0,end:!1})):f>=99?(s.end||c("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[c,s]);return n==="video"||Mi(["webm"],r)?t.jsx(ut,{$opacity:o,children:t.jsx(Z,{href:r,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:p,style:{height:a,width:i},children:[t.jsx("source",{src:r,type:"video/webm"}),r]})})}):t.jsx(ut,{$opacity:o,children:t.jsx("img",{alt:e,src:r,style:{height:a,width:i}})})},Oi=({alt:e,authorEmail:n,date:i,description:o,src:r,children:a,isEditing:c,onClick:s,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:u=!0,videoViewStatus:f})=>{const h=l.Je(),[y,b]=x.useState(!1),m=x.useCallback(()=>{b(!0)},[]),j=x.useCallback(()=>{b(!1)},[]);return t.jsxs($,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:m,onLeave:j,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx($,{cursor:c?"unset":"pointer",display:"inline-flex",justify:"center",onClick:s,position:"relative",width:"100%",children:a===void 0?t.jsxs(x.Fragment,{children:[t.jsx(Rt,{alt:e,fileType:g,height:"147px",opacity:y?.3:0,src:r,videoViewStatus:f,width:"100%"}),u?t.jsx($,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(M,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):a}),p?null:t.jsx(Ne,{authorEmail:n,date:i,description:o,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:d})]})},Wi=l.st.div`
654
+ `,Pi=e=>{if(l._.isNil(e))return"";const n=e.split(".");return(n.length>1?l._.last(n):"").toLowerCase()},Mi=(e,n)=>l._.isUndefined(n)?!1:l._.includes(e,Pi(n)),Rt=({alt:e,fileType:n,width:i="100%",opacity:o=0,src:r,height:a="auto",videoViewStatus:c})=>{const[s,d]=x.useState({start:!1,half:!1,end:!1}),p=x.useCallback(g=>{if(!c)return;const u=g.target,f=u.currentTime/u.duration*100;f>5&&f<50?(s.start||c("start"),d({start:!0,half:!1,end:!1})):f>=50&&f<99?(s.half||c("half"),d({start:!0,half:!0,end:!1})):f>=99?(s.end||c("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[c,s]);return n==="video"||Mi(["webm"],r)?t.jsx(ut,{$opacity:o,children:t.jsx(Z,{href:r,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:p,style:{height:a,width:i},children:[t.jsx("source",{src:r,type:"video/webm"}),r]})})}):t.jsx(ut,{$opacity:o,children:t.jsx("img",{alt:e,src:r,style:{height:a,width:i}})})},Oi=({alt:e,authorEmail:n,date:i,description:o,src:r,children:a,isEditing:c,onClick:s,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:u=!0,videoViewStatus:f})=>{const h=l.Je(),[y,b]=x.useState(!1),m=x.useCallback(()=>{b(!0)},[]),v=x.useCallback(()=>{b(!1)},[]);return t.jsxs($,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:m,onLeave:v,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx($,{cursor:c?"unset":"pointer",display:"inline-flex",justify:"center",onClick:s,position:"relative",width:"100%",children:a===void 0?t.jsxs(x.Fragment,{children:[t.jsx(Rt,{alt:e,fileType:g,height:"147px",opacity:y?.3:0,src:r,videoViewStatus:f,width:"100%"}),u?t.jsx($,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(M,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):a}),p?null:t.jsx(Ne,{authorEmail:n,date:i,description:o,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:d})]})},Wi=l.st.div`
655
655
  ${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:o="auto"})=>`
656
656
  display: flex;
657
657
  background-color: ${e.palette.white};
@@ -948,7 +948,7 @@
948
948
  fill: ${e.palette.white};
949
949
  }
950
950
  `}
951
- `,oe=x.forwardRef(function({checked:n,disabled:i=!1,label:o,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,tooltip:p,value:g,...u},f){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(Ji,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":r,checked:n,"data-testid":o??g,disabled:i,id:r,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,ref:f,type:"checkbox",value:g,...u}),t.jsx(E,{disabled:i,icon:"check",iconSize:"sm"}),o??g]}),p===void 0?void 0:t.jsx(U,{icon:"circle-info",id:p,place:"right",tip:p})]})}),ne=(e,n,i=!1,o)=>{x.useEffect(()=>{var a;const r=c=>{e&&!e.contains(c.target)&&!(o!=null&&o.contains(c.target))&&n()};return i?(document.addEventListener("mousedown",r,!0),()=>{document.removeEventListener("mousedown",r,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("mousedown",r,!0),()=>{var c;(c=document.getElementById("root"))==null||c.removeEventListener("mousedown",r,!0)})},[i,e,o,n])},Nt=({item:e,multiSelection:n,name:i,register:o,setInputValue:r,setValue:a,state:c,watch:s})=>{var R,S,D;const d=l.Je(),p=x.useRef(null),g=e.props.hrefLang,u=c.disabledKeys,f=Array.from(c.collection.getKeys()).filter(T=>!Array.from(u).includes(T)&&T!=="All"),{optionProps:h,isSelected:y,isFocused:b,isDisabled:m}=l.$293f70390ea03370$export$497855f14858aa34({key:e.key},c,p),j=[y?"selected":"",b?"focused":"",m?"disabled":""].join(" "),w=x.useCallback(T=>{r(""),a==null||a(`${i}Options`,""),T.currentTarget.checked&&(r(T.currentTarget.value),a==null||a(`${i}Options`,f))},[f,i,r,a]),v=x.useCallback(()=>{const T=s==null?void 0:s(`${i}Options`),L=typeof T=="string"?[T]:T;l.isEqual(f,L)&&!Array.from(u).includes("All")?(a==null||a("checkAll","All vulnerability types"),r("All vulnerability types")):(a==null||a("checkAll",""),r((L==null?void 0:L.length)<=2?L.join(", "):`${L.slice(0,2).join(", ")+`, +${L.length-2} more`}`))},[u,f,i,r,a,s]),k=e.key==="All"?t.jsx(oe,{...o==null?void 0:o("checkAll",{onChange:w}),label:(R=e.rendered)==null?void 0:R.toString(),name:"checkAll",value:(S=e.rendered)==null?void 0:S.toString()}):t.jsx(oe,{...o==null?void 0:o(`${i}Options`,{onChange:v}),label:(D=e.rendered)==null?void 0:D.toString(),name:`${i}Options`,value:e.key.toString()}),C=n&&!m?k:t.jsx(z,{color:d.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),I=x.useCallback(T=>{var L;T.preventDefault(),r(((L=e.rendered)==null?void 0:L.toString())??""),c.setSelectedKey(e.key),setTimeout(()=>{c.setOpen(!1)},50),Et(g)},[g,e.key,e.rendered,c,r]);return ne(document.getElementsByClassName("dropdown")[0],()=>{n&&c.close()},!0,document.getElementById("combobox")),t.jsxs(_i,{...!n&&!g?h:{},$multiSelection:n,className:j,ref:p,children:[g?t.jsx(Z,{href:g,onClick:I,children:C}):C,y&&!m&&!n?t.jsx(E,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(G,{tagLabel:e.textValue,variant:"inactive"})]})},We=({field:e,disabled:n=!1,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,label:s,loadingItems:d,name:p,multiSelection:g=!1,items:u,onBlur:f,onChange:h,placeholder:y,register:b,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>{var dt;const I=l.Je(),R=n?void 0:o,S=(e==null?void 0:e.value)??v,[D,T]=x.useState(((dt=u.find(A=>A.value===S))==null?void 0:dt.name)??""),[L,V]=x.useState(S),[X,ie]=x.useState(u),[O,H]=x.useState(!1),{contains:W}=l.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),le=x.useRef(null),Pe=x.useRef(null),Me=x.useRef(null),st=x.useRef(null),lt=x.useRef(null),Bn=x.useMemo(()=>u.toSorted((A,B)=>{const _=Array.from(i??[]),ce=_.includes(A.value),pt=_.includes(B.value);return ce&&!pt?1:!ce&&pt?-1:0}).map(A=>W(A.name,D)||O?t.jsx(l.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":A.value,hrefLang:A.href,textValue:A.tag,children:A.name},A.value):null),[W,i,D,u,O]),_n=x.useCallback(A=>{const B=A.split(/,|\s/u).slice(-1)[0].trim();T(g?B:A),A===""||A.endsWith(",")?H(!0):(H(!1),V(_=>{const ce=A===""?"":_;return e&&e.onChange(ce),h&&h(A),ce}),ie(u.filter(_=>W(_.name,g?B:A))))},[W,u,e,g,h]),Jn=x.useCallback(A=>{var B;T(((B=u.find(_=>_.value===A))==null?void 0:B.name)??""),V(A?String(A):""),e&&e.onChange(A),h&&h(A?String(A):""),ie(u)},[u,e,h]),ct=x.useCallback(A=>{A.key==="Enter"&&A.preventDefault(),H(!1)},[]),Un=x.useCallback(()=>{f&&f(),e&&e.onBlur()},[e,f]),Gn=x.useCallback(()=>{H(!0)},[]),Q=l.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:g,allowsEmptyCollection:!0,disabledKeys:i,inputValue:D,items:X,menuTrigger:"focus",shouldCloseOnBlur:!g,selectedKey:L,onBlur:Un,onInputChange:_n,onKeyDown:ct,onKeyUp:Gn,onOpenChange(A,B){H(A&&(B==="manual"||B==="focus")),A&&setTimeout(()=>{var _;return(_=le.current)==null?void 0:_.focus()},50)},onSelectionChange:g?void 0:Jn,children:Bn}),{buttonProps:Vn,inputProps:Yn,listBoxProps:Kn}=l.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:D,buttonRef:Pe,id:p,inputRef:le,label:s??p,listBoxRef:Me,name:p,placeholder:y,popoverRef:lt},Q),{listBoxProps:Zn}=l.$c132121280ec012d$export$50eacbbf140a3141(Kn,Q,Me),{buttonProps:qn}=l.$701a24aa0da5b062$export$ea18c227d4417cc3(Vn,Pe);return x.useEffect(()=>{var A;if((d===!1||!S)&&!g){const B=((A=u.find(_=>_.value===S))==null?void 0:A.name)??"";T(B),V(B)}},[S,u,d,g]),t.jsxs(J,{error:R,helpLink:r,helpLinkText:a,helpText:c,htmlFor:p,id:"combobox",label:s,required:m,tooltip:w,weight:C,children:[t.jsxs(te,{className:`${n?"disabled":""} ${R?"error":""}`,ref:st,children:[t.jsx("input",{...Yn,"aria-invalid":R?"true":"false","aria-label":p,disabled:n,onKeyDown:ct,ref:le}),R?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:I.palette.error[500],iconSize:"xs"}):void 0,t.jsx(M,{...qn,className:"action",disabled:n,icon:Q.isOpen&&!n?"chevron-up":"chevron-down",iconColor:I.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:Pe,type:"button",variant:"ghost"})]}),Q.isOpen&&Q.collection.size>0&&!n?t.jsx(Ce,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:lt,state:Q,triggerRef:st,children:t.jsx(Bi,{...Zn,$multiSelection:g&&!Array.from(i??[]).includes("All"),ref:Me,children:[...Q.collection].map(A=>t.jsx(Nt,{item:A,multiSelection:g,name:p,register:b,setInputValue:T,setValue:j,state:Q,watch:k},A.key))})}):null]})},Qe=({control:e,disabled:n=!1,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,label:s,loadingItems:d,name:p,multiSelection:g,items:u,onBlur:f,onChange:h,placeholder:y,register:b,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>e?t.jsx(l.Controller,{control:e,name:p,render:({field:I,fieldState:R})=>{var S;return t.jsx(We,{disabled:n,disabledKeys:i,error:(S=R.error)==null?void 0:S.message,field:I,helpLink:r,helpLinkText:a,helpText:c,items:u,label:s,loadingItems:d,multiSelection:g,name:p,onBlur:f,onChange:h,placeholder:y,register:b,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})},rules:{required:m}}):t.jsx(We,{disabled:n,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,items:u,label:s,loadingItems:d,multiSelection:g,name:p,onBlur:f,onChange:h,placeholder:y,required:m,tooltip:w,value:v,weight:C}),Ui=l.st.div`
951
+ `,oe=x.forwardRef(function({checked:n,disabled:i=!1,label:o,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,tooltip:p,value:g,...u},f){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(Ji,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":r,checked:n,"data-testid":o??g,disabled:i,id:r,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,ref:f,type:"checkbox",value:g,...u}),t.jsx(E,{disabled:i,icon:"check",iconSize:"sm"}),o??g]}),p===void 0?void 0:t.jsx(U,{icon:"circle-info",id:p,place:"right",tip:p})]})}),ne=(e,n,i=!1,o)=>{x.useEffect(()=>{var a;const r=c=>{e&&!e.contains(c.target)&&!(o!=null&&o.contains(c.target))&&n()};return i?(document.addEventListener("mousedown",r,!0),()=>{document.removeEventListener("mousedown",r,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("mousedown",r,!0),()=>{var c;(c=document.getElementById("root"))==null||c.removeEventListener("mousedown",r,!0)})},[i,e,o,n])},Nt=({item:e,multiSelection:n,name:i,register:o,setInputValue:r,setValue:a,state:c,watch:s})=>{var R,S,D;const d=l.Je(),p=x.useRef(null),g=e.props.hrefLang,u=c.disabledKeys,f=Array.from(c.collection.getKeys()).filter(T=>!Array.from(u).includes(T)&&T!=="All"),{optionProps:h,isSelected:y,isFocused:b,isDisabled:m}=l.$293f70390ea03370$export$497855f14858aa34({key:e.key},c,p),v=[y?"selected":"",b?"focused":"",m?"disabled":""].join(" "),w=x.useCallback(T=>{r(""),a==null||a(`${i}Options`,""),T.currentTarget.checked&&(r(T.currentTarget.value),a==null||a(`${i}Options`,f))},[f,i,r,a]),j=x.useCallback(()=>{const T=s==null?void 0:s(`${i}Options`),L=typeof T=="string"?[T]:T;l.isEqual(f,L)&&!Array.from(u).includes("All")?(a==null||a("checkAll","All vulnerability types"),r("All vulnerability types")):(a==null||a("checkAll",""),r((L==null?void 0:L.length)<=2?L.join(", "):`${L.slice(0,2).join(", ")+`, +${L.length-2} more`}`))},[u,f,i,r,a,s]),k=e.key==="All"?t.jsx(oe,{...o==null?void 0:o("checkAll",{onChange:w}),label:(R=e.rendered)==null?void 0:R.toString(),name:"checkAll",value:(S=e.rendered)==null?void 0:S.toString()}):t.jsx(oe,{...o==null?void 0:o(`${i}Options`,{onChange:j}),label:(D=e.rendered)==null?void 0:D.toString(),name:`${i}Options`,value:e.key.toString()}),C=n&&!m?k:t.jsx(z,{color:d.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),I=x.useCallback(T=>{var L;T.preventDefault(),r(((L=e.rendered)==null?void 0:L.toString())??""),c.setSelectedKey(e.key),setTimeout(()=>{c.setOpen(!1)},50),Et(g)},[g,e.key,e.rendered,c,r]);return ne(document.getElementsByClassName("dropdown")[0],()=>{n&&c.close()},!0,document.getElementById("combobox")),t.jsxs(_i,{...!n&&!g?h:{},$multiSelection:n,className:v,ref:p,children:[g?t.jsx(Z,{href:g,onClick:I,children:C}):C,y&&!m&&!n?t.jsx(E,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(G,{tagLabel:e.textValue,variant:"inactive"})]})},We=({field:e,disabled:n=!1,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,label:s,loadingItems:d,name:p,multiSelection:g=!1,items:u,onBlur:f,onChange:h,placeholder:y,register:b,required:m,setValue:v,tooltip:w,value:j,watch:k,weight:C})=>{var dt;const I=l.Je(),R=n?void 0:o,S=(e==null?void 0:e.value)??j,[D,T]=x.useState(((dt=u.find(A=>A.value===S))==null?void 0:dt.name)??""),[L,V]=x.useState(S),[X,ie]=x.useState(u),[O,H]=x.useState(!1),{contains:W}=l.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),le=x.useRef(null),Pe=x.useRef(null),Me=x.useRef(null),st=x.useRef(null),lt=x.useRef(null),Bn=x.useMemo(()=>u.toSorted((A,B)=>{const _=Array.from(i??[]),ce=_.includes(A.value),pt=_.includes(B.value);return ce&&!pt?1:!ce&&pt?-1:0}).map(A=>W(A.name,D)||O?t.jsx(l.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":A.value,hrefLang:A.href,textValue:A.tag,children:A.name},A.value):null),[W,i,D,u,O]),_n=x.useCallback(A=>{const B=A.split(/,|\s/u).slice(-1)[0].trim();T(g?B:A),A===""||A.endsWith(",")?H(!0):(H(!1),V(_=>{const ce=A===""?"":_;return e&&e.onChange(ce),h&&h(A),ce}),ie(u.filter(_=>W(_.name,g?B:A))))},[W,u,e,g,h]),Jn=x.useCallback(A=>{var B;T(((B=u.find(_=>_.value===A))==null?void 0:B.name)??""),V(A?String(A):""),e&&e.onChange(A),h&&h(A?String(A):""),ie(u)},[u,e,h]),ct=x.useCallback(A=>{A.key==="Enter"&&A.preventDefault(),H(!1)},[]),Un=x.useCallback(()=>{f&&f(),e&&e.onBlur()},[e,f]),Gn=x.useCallback(()=>{H(!0)},[]),Q=l.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:g,allowsEmptyCollection:!0,disabledKeys:i,inputValue:D,items:X,menuTrigger:"focus",shouldCloseOnBlur:!g,selectedKey:L,onBlur:Un,onInputChange:_n,onKeyDown:ct,onKeyUp:Gn,onOpenChange(A,B){H(A&&(B==="manual"||B==="focus")),A&&setTimeout(()=>{var _;return(_=le.current)==null?void 0:_.focus()},50)},onSelectionChange:g?void 0:Jn,children:Bn}),{buttonProps:Vn,inputProps:Yn,listBoxProps:Kn}=l.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:D,buttonRef:Pe,id:p,inputRef:le,label:s??p,listBoxRef:Me,name:p,placeholder:y,popoverRef:lt},Q),{listBoxProps:Zn}=l.$c132121280ec012d$export$50eacbbf140a3141(Kn,Q,Me),{buttonProps:qn}=l.$701a24aa0da5b062$export$ea18c227d4417cc3(Vn,Pe);return x.useEffect(()=>{var A;if((d===!1||!S)&&!g){const B=((A=u.find(_=>_.value===S))==null?void 0:A.name)??"";T(B),V(B)}},[S,u,d,g]),t.jsxs(J,{error:R,helpLink:r,helpLinkText:a,helpText:c,htmlFor:p,id:"combobox",label:s,required:m,tooltip:w,weight:C,children:[t.jsxs(te,{className:`${n?"disabled":""} ${R?"error":""}`,ref:st,children:[t.jsx("input",{...Yn,"aria-invalid":R?"true":"false","aria-label":p,disabled:n,onKeyDown:ct,ref:le}),R?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:I.palette.error[500],iconSize:"xs"}):void 0,t.jsx(M,{...qn,className:"action",disabled:n,icon:Q.isOpen&&!n?"chevron-up":"chevron-down",iconColor:I.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:Pe,type:"button",variant:"ghost"})]}),Q.isOpen&&Q.collection.size>0&&!n?t.jsx(Ce,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:lt,state:Q,triggerRef:st,children:t.jsx(Bi,{...Zn,$multiSelection:g&&!Array.from(i??[]).includes("All"),ref:Me,children:[...Q.collection].map(A=>t.jsx(Nt,{item:A,multiSelection:g,name:p,register:b,setInputValue:T,setValue:v,state:Q,watch:k},A.key))})}):null]})},Qe=({control:e,disabled:n=!1,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,label:s,loadingItems:d,name:p,multiSelection:g,items:u,onBlur:f,onChange:h,placeholder:y,register:b,required:m,setValue:v,tooltip:w,value:j,watch:k,weight:C})=>e?t.jsx(l.Controller,{control:e,name:p,render:({field:I,fieldState:R})=>{var S;return t.jsx(We,{disabled:n,disabledKeys:i,error:(S=R.error)==null?void 0:S.message,field:I,helpLink:r,helpLinkText:a,helpText:c,items:u,label:s,loadingItems:d,multiSelection:g,name:p,onBlur:f,onChange:h,placeholder:y,register:b,required:m,setValue:v,tooltip:w,value:j,watch:k,weight:C})},rules:{required:m}}):t.jsx(We,{disabled:n,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,items:u,label:s,loadingItems:d,multiSelection:g,name:p,onBlur:f,onChange:h,placeholder:y,required:m,tooltip:w,value:j,weight:C}),Ui=l.st.div`
952
952
  ${({theme:e})=>`
953
953
  align-items: center;
954
954
  color: ${e.palette.gray[800]};
@@ -1180,7 +1180,7 @@
1180
1180
  font-weight: ${e.typography.weight.bold};
1181
1181
  }
1182
1182
  `}
1183
- `,Te=({disabled:e=!1,icon:n,props:i})=>{const o=x.useRef(null),{buttonProps:r}=l.$701a24aa0da5b062$export$ea18c227d4417cc3(i,o);return t.jsx(Xi,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:o,type:"button",children:t.jsx(E,{icon:n,iconColor:N.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},De=({state:e,prevButtonProps:n,nextButtonProps:i,title:o})=>{const r=e.focusedDate,a=x.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),c=x.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(Te,{icon:"chevron-left",props:n}),t.jsxs(Ui,{children:[o,t.jsxs(Gi,{children:[t.jsx(ft,{"aria-label":"top",onClick:a,children:t.jsx(E,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(ft,{"aria-label":"bottom",onClick:c,children:t.jsx(E,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(Te,{icon:"chevron-right",props:i})]})},Lt=({onClose:e,props:n})=>{const{locale:i}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=l.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:a,title:c}=l.$9942cad8a072a530$export$3ee915f8151bd4f1(n,o);return t.jsxs("div",{className:"calendar",children:[t.jsx(De,{nextButtonProps:a,prevButtonProps:r,state:o,title:c}),t.jsx(Fe,{state:o}),t.jsx(et,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},At=({segment:e,state:n})=>{const i=l.Je(),o=x.useRef(null),a={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:c}=l.$32489daedd52963e$export$1315d136e6f7581(a,n,o),s=i.palette.gray[a.isEditable?800:500];return t.jsx("div",{...a.type!=="literal"&&{...c,className:"segment-cell"},ref:o,style:a.type==="literal"?void 0:{color:a.isPlaceholder?i.palette.gray[400]:s},children:a.isPlaceholder?a.placeholder:a.text})},Pt=({disabled:e,error:n=!1,props:i})=>{const o=l.Je(),r=x.useRef(null),a=l.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:c}=l.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,a,r),s=x.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),g=d.currentTarget;Object.values(p).some(u=>u.contains(g))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(Qi,{...c,onClick:s,children:[t.jsx("div",{className:"flex flex-row",style:{color:o.palette.gray[l.lodashExports.isNil(a.value)?400:800]},tabIndex:-1,children:a.segments.map((d,p)=>{const g=`key_${p}`;return t.jsx(At,{segment:{...d,isEditable:!e},state:a},g)})}),n?t.jsx(E,{icon:"exclamation-circle",iconColor:o.palette.error[500],iconSize:"xs"}):void 0]})},Mt=e=>{const n=x.useRef(null),i=l.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:o}=i,r=!l.lodashExports.isNil(o)&&o.hour<12?"AM":"PM",[a,c]=x.useState(l.lodashExports.isNil(o)?"AM":r),{fieldProps:s}=l.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=x.useCallback(p=>{const g=p.currentTarget.name;g!==a&&(l.lodashExports.isNil(o)||(g==="AM"?i.setSegment("dayPeriod",0):g==="PM"&&i.setSegment("dayPeriod",12))),c(g)},[a,i,o]);return t.jsxs(eo,{children:[t.jsx(ht,{...s,ref:n,children:i.segments.slice(0,-2).map((p,g)=>{const u=`key_${g}`;return t.jsx(At,{segment:p,state:i},u)})}),t.jsxs(ht,{children:[t.jsx(yt,{id:a==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(yt,{id:a==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Ee=e=>e&&e!=="-"?l.dayjs(e).format("YYYY-MM-DD"):"-",to=e=>e&&e!=="-"?l.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",bt=(e,n)=>l.dayjs(String(e).replace(/-/gu,"/")).hour(n.hour).minute(n.minute).second(n.second).format("YYYY/MM/DD hh:mm A"),xe=({error:e,buttonProps:n,datePickerRef:i,disabled:o=!1,granularity:r="day",fieldProps:a,groupProps:c,name:s,register:d,required:p,setValue:g,value:u})=>{const f=x.useCallback(h=>{if(!h)return;const y=r==="day"?Ee(String(h)):to(String(h));a.onChange&&a.onChange(h??null),g&&g(s,y,{shouldDirty:!0})},[a,r,s,g]);return t.jsxs(te,{...c,className:`${o?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(Pt,{disabled:o,error:e!=null,props:{...a,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(Te,{disabled:o,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(s,{required:p}),"aria-label":s,className:"date-input",disabled:o,id:s,name:s,type:"text",value:u??""})]})},Le=({children:e,...n})=>{const i=x.useRef(null),{dialogProps:o}=l.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(qi,{...o,ref:i,children:e})},Ot=({disabled:e=!1,error:n,helpLink:i,helpLinkText:o,helpText:r,required:a,label:c,name:s,register:d,setValue:p,tooltip:g,watch:u,...f})=>{const h=x.useRef(null),y=u==null?void 0:u(s),b=x.useCallback(R=>{p&&R&&p(s,Ee(String(R)),{shouldDirty:!0})},[s,p]),m=l.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,onChange(R){b(R)},...!l._.isNil(y)&&!l._.isEmpty(y)&&l.dayjs(y).isValid()?{defaultValue:l.$fae977aafc393c5c$export$6b862160d295c8e(y.replace(/\//gu,"-"))}:{}}),{close:j}=m,{groupProps:w,fieldProps:v,buttonProps:k,dialogProps:C,calendarProps:I}=l.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":c??s,name:s},m,h);return t.jsxs(J,{error:n,helpLink:i,helpLinkText:o,helpText:r,htmlFor:s,label:c,required:a,tooltip:g,children:[t.jsx(xe,{buttonProps:k,datePickerRef:h,disabled:e,error:n,fieldProps:v,groupProps:w,name:s,register:d,required:a,setValue:p,value:y}),m.isOpen&&!e?t.jsx(Ce,{offset:8,placement:"bottom start",state:m,triggerRef:h,children:t.jsx(Le,{...C,children:t.jsx(Lt,{onClose:j,props:I})})}):null]})},Wt=({onClose:e,props:n})=>{const{locale:i}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=x.useRef(null),r=l.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:a,nextButtonProps:c,title:s}=l.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,o);return t.jsxs("div",{className:"calendar-range",ref:o,children:[t.jsx(De,{nextButtonProps:c,prevButtonProps:a,state:r,title:s}),t.jsx(Fe,{state:r}),t.jsx(et,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},no=l.st.div`
1183
+ `,Te=({disabled:e=!1,icon:n,props:i})=>{const o=x.useRef(null),{buttonProps:r}=l.$701a24aa0da5b062$export$ea18c227d4417cc3(i,o);return t.jsx(Xi,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:o,type:"button",children:t.jsx(E,{icon:n,iconColor:N.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},De=({state:e,prevButtonProps:n,nextButtonProps:i,title:o})=>{const r=e.focusedDate,a=x.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),c=x.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(Te,{icon:"chevron-left",props:n}),t.jsxs(Ui,{children:[o,t.jsxs(Gi,{children:[t.jsx(ft,{"aria-label":"top",onClick:a,children:t.jsx(E,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(ft,{"aria-label":"bottom",onClick:c,children:t.jsx(E,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(Te,{icon:"chevron-right",props:i})]})},Lt=({onClose:e,props:n})=>{const{locale:i}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=l.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:a,title:c}=l.$9942cad8a072a530$export$3ee915f8151bd4f1(n,o);return t.jsxs("div",{className:"calendar",children:[t.jsx(De,{nextButtonProps:a,prevButtonProps:r,state:o,title:c}),t.jsx(Fe,{state:o}),t.jsx(et,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},At=({segment:e,state:n})=>{const i=l.Je(),o=x.useRef(null),a={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:c}=l.$32489daedd52963e$export$1315d136e6f7581(a,n,o),s=i.palette.gray[a.isEditable?800:500];return t.jsx("div",{...a.type!=="literal"&&{...c,className:"segment-cell"},ref:o,style:a.type==="literal"?void 0:{color:a.isPlaceholder?i.palette.gray[400]:s},children:a.isPlaceholder?a.placeholder:a.text})},Pt=({disabled:e,error:n=!1,props:i})=>{const o=l.Je(),r=x.useRef(null),a=l.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:c}=l.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,a,r),s=x.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),g=d.currentTarget;Object.values(p).some(u=>u.contains(g))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(Qi,{...c,onClick:s,children:[t.jsx("div",{className:"flex flex-row",style:{color:o.palette.gray[l.lodashExports.isNil(a.value)?400:800]},tabIndex:-1,children:a.segments.map((d,p)=>{const g=`key_${p}`;return t.jsx(At,{segment:{...d,isEditable:!e},state:a},g)})}),n?t.jsx(E,{icon:"exclamation-circle",iconColor:o.palette.error[500],iconSize:"xs"}):void 0]})},Mt=e=>{const n=x.useRef(null),i=l.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:o}=i,r=!l.lodashExports.isNil(o)&&o.hour<12?"AM":"PM",[a,c]=x.useState(l.lodashExports.isNil(o)?"AM":r),{fieldProps:s}=l.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=x.useCallback(p=>{const g=p.currentTarget.name;g!==a&&(l.lodashExports.isNil(o)||(g==="AM"?i.setSegment("dayPeriod",0):g==="PM"&&i.setSegment("dayPeriod",12))),c(g)},[a,i,o]);return t.jsxs(eo,{children:[t.jsx(ht,{...s,ref:n,children:i.segments.slice(0,-2).map((p,g)=>{const u=`key_${g}`;return t.jsx(At,{segment:p,state:i},u)})}),t.jsxs(ht,{children:[t.jsx(yt,{id:a==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(yt,{id:a==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Ee=e=>e&&e!=="-"?l.dayjs(e).format("YYYY-MM-DD"):"-",to=e=>e&&e!=="-"?l.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",bt=(e,n)=>l.dayjs(String(e).replace(/-/gu,"/")).hour(n.hour).minute(n.minute).second(n.second).format("YYYY/MM/DD hh:mm A"),xe=({error:e,buttonProps:n,datePickerRef:i,disabled:o=!1,granularity:r="day",fieldProps:a,groupProps:c,name:s,register:d,required:p,setValue:g,value:u})=>{const f=x.useCallback(h=>{if(!h)return;const y=r==="day"?Ee(String(h)):to(String(h));a.onChange&&a.onChange(h??null),g&&g(s,y,{shouldDirty:!0})},[a,r,s,g]);return t.jsxs(te,{...c,className:`${o?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(Pt,{disabled:o,error:e!=null,props:{...a,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(Te,{disabled:o,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(s,{required:p}),"aria-label":s,className:"date-input",disabled:o,id:s,name:s,type:"text",value:u??""})]})},Le=({children:e,...n})=>{const i=x.useRef(null),{dialogProps:o}=l.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(qi,{...o,ref:i,children:e})},Ot=({disabled:e=!1,error:n,helpLink:i,helpLinkText:o,helpText:r,required:a,label:c,name:s,register:d,setValue:p,tooltip:g,watch:u,...f})=>{const h=x.useRef(null),y=u==null?void 0:u(s),b=x.useCallback(R=>{p&&R&&p(s,Ee(String(R)),{shouldDirty:!0})},[s,p]),m=l.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,onChange(R){b(R)},...!l._.isNil(y)&&!l._.isEmpty(y)&&l.dayjs(y).isValid()?{defaultValue:l.$fae977aafc393c5c$export$6b862160d295c8e(y.replace(/\//gu,"-"))}:{}}),{close:v}=m,{groupProps:w,fieldProps:j,buttonProps:k,dialogProps:C,calendarProps:I}=l.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":c??s,name:s},m,h);return t.jsxs(J,{error:n,helpLink:i,helpLinkText:o,helpText:r,htmlFor:s,label:c,required:a,tooltip:g,children:[t.jsx(xe,{buttonProps:k,datePickerRef:h,disabled:e,error:n,fieldProps:j,groupProps:w,name:s,register:d,required:a,setValue:p,value:y}),m.isOpen&&!e?t.jsx(Ce,{offset:8,placement:"bottom start",state:m,triggerRef:h,children:t.jsx(Le,{...C,children:t.jsx(Lt,{onClose:v,props:I})})}):null]})},Wt=({onClose:e,props:n})=>{const{locale:i}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=x.useRef(null),r=l.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:a,nextButtonProps:c,title:s}=l.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,o);return t.jsxs("div",{className:"calendar-range",ref:o,children:[t.jsx(De,{nextButtonProps:c,prevButtonProps:a,state:r,title:s}),t.jsx(Fe,{state:r}),t.jsx(et,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},no=l.st.div`
1184
1184
  ${({theme:e,$disabled:n,$show:i})=>`
1185
1185
  border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
1186
1186
  display: flex;
@@ -1191,7 +1191,7 @@
1191
1191
  background: ${n?e.palette.gray[200]:e.palette.white};
1192
1192
  }
1193
1193
  `}
1194
- `,Ht=({disabled:e=!1,error:n,label:i,name:o,required:r,tooltip:a,register:c,setValue:s,propsMax:d,propsMin:p,variant:g="default",...u})=>{const f=`${o}Max`,h=`${o}Min`,y=x.useRef(null),b=x.useCallback(S=>{s&&S&&(s((d==null?void 0:d.name)??f,Ee(String(S.end))),s((p==null?void 0:p.name)??h,Ee(String(S.start))))},[f,h,s,d,p]),m=l.$93c38a5e28be6249$export$e50a61c1de9f574({...u,endName:(d==null?void 0:d.name)??f,startName:(p==null?void 0:p.name)??h,onChange(S){b(S)}}),{close:j}=m,{groupProps:w,startFieldProps:v,endFieldProps:k,buttonProps:C,dialogProps:I,calendarProps:R}=l.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...u,"aria-label":i??o},m,y);return t.jsxs(J,{error:n,htmlFor:o,label:i,required:r,tooltip:a,children:[t.jsxs(no,{$disabled:e,$show:n!==void 0,ref:y,style:{flexDirection:g==="filters"?"column":"row"},children:[t.jsx(xe,{buttonProps:C,datePickerRef:y,disabled:e,error:n,fieldProps:{...v,"aria-label":`${v["aria-label"]} ${o}`,validate:S=>k.value&&S>k.value?"Start date must be less than or equal to end date":null},groupProps:w,name:(p==null?void 0:p.name)??h,register:c,setValue:s,value:p==null?void 0:p.value}),t.jsx(xe,{buttonProps:C,datePickerRef:y,disabled:e,error:n,fieldProps:{...k,"aria-label":`${k["aria-label"]} ${o}`,validate:S=>v.value&&S<v.value?"End date must be greater than or equal to start date":null},groupProps:w,name:(d==null?void 0:d.name)??f,register:c,setValue:s,value:d==null?void 0:d.value})]}),m.isOpen&&!e?t.jsx(Ce,{offset:8,placement:"bottom start",state:m,triggerRef:y,children:t.jsx(Le,{...I,children:t.jsx(Wt,{onClose:j,props:R})})}):null]})},io=l.st.div`
1194
+ `,Ht=({disabled:e=!1,error:n,label:i,name:o,required:r,tooltip:a,register:c,setValue:s,propsMax:d,propsMin:p,variant:g="default",...u})=>{const f=`${o}Max`,h=`${o}Min`,y=x.useRef(null),b=x.useCallback(S=>{s&&S&&(s((d==null?void 0:d.name)??f,Ee(String(S.end))),s((p==null?void 0:p.name)??h,Ee(String(S.start))))},[f,h,s,d,p]),m=l.$93c38a5e28be6249$export$e50a61c1de9f574({...u,endName:(d==null?void 0:d.name)??f,startName:(p==null?void 0:p.name)??h,onChange(S){b(S)}}),{close:v}=m,{groupProps:w,startFieldProps:j,endFieldProps:k,buttonProps:C,dialogProps:I,calendarProps:R}=l.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...u,"aria-label":i??o},m,y);return t.jsxs(J,{error:n,htmlFor:o,label:i,required:r,tooltip:a,children:[t.jsxs(no,{$disabled:e,$show:n!==void 0,ref:y,style:{flexDirection:g==="filters"?"column":"row"},children:[t.jsx(xe,{buttonProps:C,datePickerRef:y,disabled:e,error:n,fieldProps:{...j,"aria-label":`${j["aria-label"]} ${o}`,validate:S=>k.value&&S>k.value?"Start date must be less than or equal to end date":null},groupProps:w,name:(p==null?void 0:p.name)??h,register:c,setValue:s,value:p==null?void 0:p.value}),t.jsx(xe,{buttonProps:C,datePickerRef:y,disabled:e,error:n,fieldProps:{...k,"aria-label":`${k["aria-label"]} ${o}`,validate:S=>j.value&&S<j.value?"End date must be greater than or equal to start date":null},groupProps:w,name:(d==null?void 0:d.name)??f,register:c,setValue:s,value:d==null?void 0:d.value})]}),m.isOpen&&!e?t.jsx(Ce,{offset:8,placement:"bottom start",state:m,triggerRef:y,children:t.jsx(Le,{...I,children:t.jsx(Wt,{onClose:v,props:R})})}):null]})},io=l.st.div`
1195
1195
  ${({theme:e})=>`
1196
1196
  align-items: center;
1197
1197
  border-top: 1px solid ${e.palette.gray[200]};
@@ -1206,9 +1206,9 @@
1206
1206
  gap: ${({theme:e})=>e.spacing[.5]};
1207
1207
  justify-content: flex-end;
1208
1208
  flex: 1 0 0;
1209
- `,Bt=({handleTimeChange:e,onClose:n,props:i,timeState:o})=>{const r=l.Je(),{locale:a}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),c=l.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:a}),{prevButtonProps:s,nextButtonProps:d,title:p}=l.$9942cad8a072a530$export$3ee915f8151bd4f1(i,c);return t.jsxs("div",{className:"calendar",children:[t.jsx(De,{nextButtonProps:d,prevButtonProps:s,state:c,title:p}),t.jsx(Fe,{state:c}),t.jsxs(io,{children:[t.jsx(z,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(oo,{children:t.jsx(Mt,{hourCycle:12,label:"time-field",onChange:e,value:o.timeValue})})]}),t.jsx(et,{children:t.jsx(P,{onClick:n,variant:"ghost",children:"Cancel"})})]})},ro=e=>{const{disabled:n=!1,error:i,required:o,label:r,name:a,tooltip:c,register:s,setValue:d,watch:p}=e,g=p==null?void 0:p(a),u=x.useRef(null),f=l.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:o,shouldCloseOnSelect:!1,value:l._.isNil(g)||l._.isEmpty(g)||g==="-"||l.dayjs(g,"YYYY/MM/DD hh:mm A").isValid()===!1?null:l.$fae977aafc393c5c$export$588937bcd60ade55(l.dayjs(g,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=f,{groupProps:y,fieldProps:b,buttonProps:m,dialogProps:j,calendarProps:w}=l.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,u),v=x.useCallback(C=>{if(w.onChange&&w.onChange(C),f.timeValue){const I=bt(C,f.timeValue);d==null||d(a,I,{shouldDirty:!0})}else f.setDateValue(C)},[w,a,d,f]),k=x.useCallback(C=>{if(C){f.setTimeValue(C);const I=f.dateValue;if(I){const R=bt(I,C);d==null||d(a,R,{shouldDirty:!0})}}},[f,d,a]);return t.jsxs(J,{error:i,htmlFor:a,label:r,required:o,tooltip:c,children:[t.jsx(xe,{buttonProps:m,datePickerRef:u,disabled:n,error:i,fieldProps:b,granularity:"minute",groupProps:y,name:a,register:s,setValue:d,value:g}),f.isOpen&&!n?t.jsx(Ce,{offset:8,placement:"bottom start",state:f,triggerRef:u,children:t.jsx(Le,{...j,children:t.jsx(Bt,{handleTimeChange:k,onClose:h,props:{...w,onChange:v},timeState:f})})}):null]})},ao=({children:e,currentValue:n,externalLink:i,isEditing:o,label:r,name:a,tooltip:c})=>{if(o)return t.jsx("div",{children:e});const s=l.lodashExports.isNil(n)?"":n,d=String(i??s);return t.jsxs($,{children:[t.jsx(Xe,{htmlFor:a,label:r,tooltip:c,weight:"bold"}),d.startsWith("https://")?t.jsx(Z,{href:d,children:s}):t.jsx(z,{size:"md",children:s})]})},Ae=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:o,helpText:r,error:a,id:c,indexArray:s=0,isValid:d,isTouched:p,label:g,linkPosition:u,name:f,maskValue:h=!1,onPaste:y,placeholder:b,removeItemArray:m,register:j,suggestions:w,tooltip:v,type:k="text",weight:C,...I})=>{const{required:R,onBlur:S,onChange:D}=I,T=l.Je(),L=e?void 0:a,[V,X]=x.useState(""),ie=x.useCallback(W=>{X(W.target.value),D==null||D(W)},[D]),O=d&&p&&!e&&V.trim()!=="",H=x.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]);return t.jsxs(J,{error:L,helpLink:i,helpLinkText:o,helpText:r,htmlFor:f,label:g,linkPosition:u,required:R,tooltip:v,weight:C,children:[t.jsxs(te,{className:`
1209
+ `,Bt=({handleTimeChange:e,onClose:n,props:i,timeState:o})=>{const r=l.Je(),{locale:a}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),c=l.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:a}),{prevButtonProps:s,nextButtonProps:d,title:p}=l.$9942cad8a072a530$export$3ee915f8151bd4f1(i,c);return t.jsxs("div",{className:"calendar",children:[t.jsx(De,{nextButtonProps:d,prevButtonProps:s,state:c,title:p}),t.jsx(Fe,{state:c}),t.jsxs(io,{children:[t.jsx(z,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(oo,{children:t.jsx(Mt,{hourCycle:12,label:"time-field",onChange:e,value:o.timeValue})})]}),t.jsx(et,{children:t.jsx(P,{onClick:n,variant:"ghost",children:"Cancel"})})]})},ro=e=>{const{disabled:n=!1,error:i,required:o,label:r,name:a,tooltip:c,register:s,setValue:d,watch:p}=e,g=p==null?void 0:p(a),u=x.useRef(null),f=l.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:o,shouldCloseOnSelect:!1,value:l._.isNil(g)||l._.isEmpty(g)||g==="-"||l.dayjs(g,"YYYY/MM/DD hh:mm A").isValid()===!1?null:l.$fae977aafc393c5c$export$588937bcd60ade55(l.dayjs(g,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=f,{groupProps:y,fieldProps:b,buttonProps:m,dialogProps:v,calendarProps:w}=l.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,u),j=x.useCallback(C=>{if(w.onChange&&w.onChange(C),f.timeValue){const I=bt(C,f.timeValue);d==null||d(a,I,{shouldDirty:!0})}else f.setDateValue(C)},[w,a,d,f]),k=x.useCallback(C=>{if(C){f.setTimeValue(C);const I=f.dateValue;if(I){const R=bt(I,C);d==null||d(a,R,{shouldDirty:!0})}}},[f,d,a]);return t.jsxs(J,{error:i,htmlFor:a,label:r,required:o,tooltip:c,children:[t.jsx(xe,{buttonProps:m,datePickerRef:u,disabled:n,error:i,fieldProps:b,granularity:"minute",groupProps:y,name:a,register:s,setValue:d,value:g}),f.isOpen&&!n?t.jsx(Ce,{offset:8,placement:"bottom start",state:f,triggerRef:u,children:t.jsx(Le,{...v,children:t.jsx(Bt,{handleTimeChange:k,onClose:h,props:{...w,onChange:j},timeState:f})})}):null]})},ao=({children:e,currentValue:n,externalLink:i,isEditing:o,label:r,name:a,tooltip:c})=>{if(o)return t.jsx("div",{children:e});const s=l.lodashExports.isNil(n)?"":n,d=String(i??s);return t.jsxs($,{children:[t.jsx(Xe,{htmlFor:a,label:r,tooltip:c,weight:"bold"}),d.startsWith("https://")?t.jsx(Z,{href:d,children:s}):t.jsx(z,{size:"md",children:s})]})},Ae=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:o,helpText:r,error:a,id:c,indexArray:s=0,isValid:d,isTouched:p,label:g,linkPosition:u,name:f,maskValue:h=!1,onPaste:y,placeholder:b,removeItemArray:m,register:v,suggestions:w,tooltip:j,type:k="text",weight:C,...I})=>{const{required:R,onBlur:S,onChange:D}=I,T=l.Je(),L=e?void 0:a,[V,X]=x.useState(""),ie=x.useCallback(W=>{X(W.target.value),D==null||D(W)},[D]),O=d&&p&&!e&&V.trim()!=="",H=x.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]);return t.jsxs(J,{error:L,helpLink:i,helpLinkText:o,helpText:r,htmlFor:f,label:g,linkPosition:u,required:R,tooltip:j,weight:C,children:[t.jsxs(te,{className:`
1210
1210
  ${e?"disabled":""} ${L?"error":""} ${O?"success":""}
1211
- `,children:[n?t.jsx(E,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":L?"true":"false","aria-label":f,"aria-required":R,autoComplete:"off",className:h?"sr-block":"","data-testid":`${f}-input`,disabled:e,id:f,list:w?`list_${f}`:void 0,onKeyDown:H,onPaste:y,placeholder:b,type:k,...j?j(f,{required:R,onBlur:S,onChange:ie}):{...I,onChange:ie}}),L?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"xs"}):void 0,O?t.jsx(E,{icon:"check-circle",iconClass:"success-icon",iconColor:T.palette.success[500],iconSize:"xs"}):void 0,c==="array"&&s>0?t.jsx(M,{color:T.palette.gray[400],icon:"trash",iconSize:"xxs",iconType:"fa-light",onClick:m?m(s):void 0,variant:"ghost"}):void 0]}),w?t.jsx("datalist",{id:`list_${f}`,children:w.map(W=>t.jsx("option",{value:W},W))}):void 0]})},so=l.st.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,lo=l.st.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
1211
+ `,children:[n?t.jsx(E,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":L?"true":"false","aria-label":f,"aria-required":R,autoComplete:"off",className:h?"sr-block":"","data-testid":`${f}-input`,disabled:e,id:f,list:w?`list_${f}`:void 0,onKeyDown:H,onPaste:y,placeholder:b,type:k,...v?v(f,{required:R,onBlur:S,onChange:ie}):{...I,onChange:ie}}),L?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"xs"}):void 0,O?t.jsx(E,{icon:"check-circle",iconClass:"success-icon",iconColor:T.palette.success[500],iconSize:"xs"}):void 0,c==="array"&&s>0?t.jsx(M,{color:T.palette.gray[400],icon:"trash",iconSize:"xxs",iconType:"fa-light",onClick:m?m(s):void 0,variant:"ghost"}):void 0]}),w?t.jsx("datalist",{id:`list_${f}`,children:w.map(W=>t.jsx("option",{value:W},W))}):void 0]})},so=l.st.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,lo=l.st.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
1212
1212
  gap: 12px;
1213
1213
  `,co=l.st.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
1214
1214
  gap: 8px;
@@ -1264,7 +1264,7 @@
1264
1264
  padding: ${i}px;
1265
1265
  }
1266
1266
  `}
1267
- `,_t=({align:e,children:n,cols:i,colsPadding:o,justify:r})=>t.jsx(xo,{$align:e,$cols:i,$colsPadding:o,$justify:r,children:n}),Be=({addText:e,append:n,disabled:i=!1,fields:o,fieldState:r,initValue:a="",index:c=0,required:s,label:d,max:p=100,name:g,onBlur:u,onChange:f,placeholder:h,tooltip:y,remove:b,value:m})=>{var v;const j=x.useCallback(()=>{n==null||n(a)},[n,a]),w=x.useCallback(k=>()=>{b==null||b(k)},[b]);return t.jsxs(_t,{align:"start",children:[t.jsx(He,{lg:75,md:75,sm:75,children:t.jsx(Ae,{disabled:i,error:r?(v=r.error)==null?void 0:v.message:void 0,id:"array",indexArray:c,isTouched:r?r.isTouched:void 0,isValid:r?!r.invalid:void 0,label:d,name:g,onBlur:u,onChange:f,placeholder:h,removeItemArray:w,required:s,tooltip:y,value:m})}),c<p-1&&c+1===(o==null?void 0:o.length)?t.jsx(He,{lg:25,md:25,sm:25,children:t.jsx(P,{disabled:i,icon:"plus",onClick:j,variant:"ghost",width:"100%",children:e??"Add"})}):void 0]})},fo=({addText:e,append:n,control:i,disabled:o,fields:r,initValue:a="",required:c,label:s,max:d=void 0,name:p="array-field",onChange:g,placeholder:u,remove:f,tooltip:h})=>i&&r?t.jsx(x.Fragment,{children:r.map((y,b)=>t.jsx(l.Controller,{control:i,name:`${p}.${b}`,render:({field:m,fieldState:j})=>t.jsx(Be,{addText:e,append:n,disabled:o,fieldState:j,fields:r,index:b,initValue:a,label:s,max:d,name:m.name,onBlur:m.onBlur,onChange:g??m.onChange,placeholder:u,remove:f,required:c,tooltip:h,value:typeof m.value=="object"?m.value.value:m.value}),index:b},y.id))}):t.jsx(Be,{addText:e,disabled:o,initValue:a,label:s,max:d,name:p,onChange:g,placeholder:u,required:c,tooltip:h}),ho=l.st(St)`
1267
+ `,_t=({align:e,children:n,cols:i,colsPadding:o,justify:r})=>t.jsx(xo,{$align:e,$cols:i,$colsPadding:o,$justify:r,children:n}),Be=({addText:e,append:n,disabled:i=!1,fields:o,fieldState:r,initValue:a="",index:c=0,required:s,label:d,max:p=100,name:g,onBlur:u,onChange:f,placeholder:h,tooltip:y,remove:b,value:m})=>{var j;const v=x.useCallback(()=>{n==null||n(a)},[n,a]),w=x.useCallback(k=>()=>{b==null||b(k)},[b]);return t.jsxs(_t,{align:"start",children:[t.jsx(He,{lg:75,md:75,sm:75,children:t.jsx(Ae,{disabled:i,error:r?(j=r.error)==null?void 0:j.message:void 0,id:"array",indexArray:c,isTouched:r?r.isTouched:void 0,isValid:r?!r.invalid:void 0,label:d,name:g,onBlur:u,onChange:f,placeholder:h,removeItemArray:w,required:s,tooltip:y,value:m})}),c<p-1&&c+1===(o==null?void 0:o.length)?t.jsx(He,{lg:25,md:25,sm:25,children:t.jsx(P,{disabled:i,icon:"plus",onClick:v,variant:"ghost",width:"100%",children:e??"Add"})}):void 0]})},fo=({addText:e,append:n,control:i,disabled:o,fields:r,initValue:a="",required:c,label:s,max:d=void 0,name:p="array-field",onChange:g,placeholder:u,remove:f,tooltip:h})=>i&&r?t.jsx(x.Fragment,{children:r.map((y,b)=>t.jsx(l.Controller,{control:i,name:`${p}.${b}`,render:({field:m,fieldState:v})=>t.jsx(Be,{addText:e,append:n,disabled:o,fieldState:v,fields:r,index:b,initValue:a,label:s,max:d,name:m.name,onBlur:m.onBlur,onChange:g??m.onChange,placeholder:u,remove:f,required:c,tooltip:h,value:typeof m.value=="object"?m.value.value:m.value}),index:b},y.id))}):t.jsx(Be,{addText:e,disabled:o,initValue:a,label:s,max:d,name:p,onChange:g,placeholder:u,required:c,tooltip:h}),ho=l.st(St)`
1268
1268
  white-space: nowrap;
1269
1269
  margin-right: ${({theme:e})=>e.spacing[.25]};
1270
1270
  text-overflow: ellipsis;
@@ -1275,13 +1275,13 @@
1275
1275
  position: absolute;
1276
1276
  visibility: hidden;
1277
1277
  width: 0;
1278
- `,fe=(e,n,i)=>{const o=new Event(e);return Object.defineProperty(o,"target",{value:{name:n,value:i}}),o},bo=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},$o=({accept:e,disabled:n=!1,error:i,label:o,helpLink:r,helpText:a,id:c,multiple:s,name:d,onChange:p,required:g,register:u,setValue:f,tooltip:h,watch:y,weight:b})=>{const m=l.Je(),j=n?void 0:i,w=x.useRef(null),v=u==null?void 0:u(d,{required:g}),k=y==null?void 0:y(d),C=bo(k),I=x.useCallback(()=>{const D=fe("change",d,void 0);f&&f(d,void 0),v&&v.onChange(D)},[v,d,f]),R=x.useCallback(D=>{const{files:T}=D.currentTarget,L=fe("change",d,T&&T.length>0?T:void 0);T&&T.length>0&&(p==null||p(L),f&&f(d,T),v&&v.onChange(L))},[v,d,p,f]),S=x.useCallback(D=>{n?D.preventDefault():w.current&&w.current.click()},[n]);return t.jsxs(J,{error:j,helpLink:r,helpText:a,htmlFor:c??d,label:o,required:g,tooltip:h,weight:b,children:[t.jsxs(te,{className:`${n?"disabled":""} ${j?"error":""}`,children:[t.jsx(ho,{$size:"xs",children:C}),t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[l.lodashExports.isEmpty(C)?void 0:t.jsx(M,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:I,variant:"ghost",width:"20px"}),j&&t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}),t.jsxs(P,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:S,variant:"primary",width:"96px",children:[t.jsx(E,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]})]}),t.jsx(yo,{...v,accept:e,"aria-label":d,"data-testid":d,disabled:n,id:c??d,multiple:s,name:d,onChange:R,ref:w,type:"file"})]})},mo=l.st.input`
1278
+ `,fe=(e,n,i)=>{const o=new Event(e);return Object.defineProperty(o,"target",{value:{name:n,value:i}}),o},bo=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},$o=({accept:e,disabled:n=!1,error:i,label:o,helpLink:r,helpText:a,id:c,multiple:s,name:d,onChange:p,required:g,register:u,setValue:f,tooltip:h,watch:y,weight:b})=>{const m=l.Je(),v=n?void 0:i,w=x.useRef(null),j=u==null?void 0:u(d,{required:g}),k=y==null?void 0:y(d),C=bo(k),I=x.useCallback(()=>{const D=fe("change",d,void 0);f&&f(d,void 0),j&&j.onChange(D)},[j,d,f]),R=x.useCallback(D=>{const{files:T}=D.currentTarget,L=fe("change",d,T&&T.length>0?T:void 0);T&&T.length>0&&(p==null||p(L),f&&f(d,T),j&&j.onChange(L))},[j,d,p,f]),S=x.useCallback(D=>{n?D.preventDefault():w.current&&w.current.click()},[n]);return t.jsxs(J,{error:v,helpLink:r,helpText:a,htmlFor:c??d,label:o,required:g,tooltip:h,weight:b,children:[t.jsxs(te,{className:`${n?"disabled":""} ${v?"error":""}`,children:[t.jsx(ho,{$size:"xs",children:C}),t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[l.lodashExports.isEmpty(C)?void 0:t.jsx(M,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:I,variant:"ghost",width:"20px"}),v&&t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}),t.jsxs(P,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:S,variant:"primary",width:"96px",children:[t.jsx(E,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]})]}),t.jsx(yo,{...j,accept:e,"aria-label":d,"data-testid":d,disabled:n,id:c??d,multiple:s,name:d,onChange:R,ref:w,type:"file"})]})},mo=l.st.input`
1279
1279
  border: none;
1280
1280
  background: transparent;
1281
1281
  min-width: 15rem;
1282
1282
  padding: 0;
1283
1283
  flex: 1;
1284
- `,_e=({disabled:e=!1,error:n,field:i,helpLink:o,helpLinkText:r,helpText:a,label:c,name:s="input-tag",onChange:d,onRemove:p,placeholder:g,required:u,tooltip:f,value:h,weight:y})=>{const b=l.Je(),m=e?void 0:n,[j,w]=x.useState(""),v=d?h:i==null?void 0:i.value,k=x.useMemo(()=>v&&typeof v=="string"?v.split(",").filter(Boolean):[],[v]),C=x.useCallback(T=>{const V=[...new Set(T.filter(Boolean))].join(","),X=fe("change",s,V);i&&i.onChange(X),d&&d(X)},[i,s,d]),I=x.useCallback(T=>{w(T.target.value)},[]),R=x.useCallback(T=>{const L=j.trim();L.length&&!k.includes(L)&&(T.preventDefault(),C([...k,L]),w("")),i&&i.onBlur()},[j,i,C,k]),S=x.useCallback(T=>{const L=j.trim();T.key==="Enter"&&L.length===0&&T.preventDefault(),["Enter",","].includes(T.key)&&L.length>0&&!k.includes(L)?(T.preventDefault(),C([...k,L]),w("")):T.key==="Backspace"&&!L.length&&k.length&&(T.preventDefault(),p==null||p(k[k.length-1]),C(k.slice(0,-1)))},[j,p,C,k]),D=x.useCallback(T=>()=>{p==null||p(T),C(k.filter(L=>L!==T))},[p,C,k]);return t.jsx(J,{error:m,helpLink:o,helpLinkText:r,helpText:a,htmlFor:s,label:c,required:u,tooltip:f,weight:y,children:t.jsxs(te,{$overflowX:"auto",className:`${e?"disabled":""} ${m?"error":""}`,children:[k.map(T=>t.jsx(G,{disabled:e,onClose:D(T),tagLabel:T},T)),t.jsx(mo,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":s,"aria-required":u,autoComplete:"off",id:s,onBlur:R,onChange:I,onKeyDown:S,placeholder:k.length===0?g:void 0,ref:i==null?void 0:i.ref,type:"text",value:j}),m?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}):void 0]})})},wo=({disabled:e=!1,control:n,error:i,helpLink:o,helpLinkText:r,helpText:a,label:c,name:s="input-tag",onChange:d,onRemove:p,placeholder:g,required:u,tooltip:f,value:h,weight:y})=>n?t.jsx(l.Controller,{control:n,name:s,render:({field:b})=>t.jsx(_e,{disabled:e,error:i,field:b,helpLink:o,helpLinkText:r,helpText:a,label:c,name:s,onRemove:p,placeholder:g,required:u,tooltip:f,weight:y}),rules:{required:u}}):t.jsx(_e,{disabled:e,error:i,helpLink:o,helpLinkText:r,helpText:a,label:c,name:s,onChange:d,onRemove:p,placeholder:g,required:u,tooltip:f,value:h,weight:y}),Je=x.forwardRef(function({disabled:n,icon:i,margin:o,onClick:r,...a},c){return t.jsx(Zi,{$margin:o,"aria-label":i,className:"action-btn",disabled:n,onClick:r,ref:c,type:"button",...a,children:t.jsx(E,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),Re=({error:e,decimalPlaces:n=0,disabled:i=!1,id:o,maxLength:r,max:a=1/0,min:c=0,name:s,onChange:d,placeholder:p,register:g,required:u,setValue:f,value:h})=>{const y=l.Je(),b=i?void 0:e,m=n<0?0:n,[j,w]=x.useState(h?l._.toNumber(h):0),v=x.useCallback(()=>{const R=(j-10**-m).toFixed(m),S=Math.max(Number(c),Number(R));f&&f(s,S,{shouldDirty:!0}),w(S);const D=fe("change",s,R);d&&d(D)},[j,m,c,f,s,d]),k=x.useCallback(()=>{const R=(j+10**-m).toFixed(m),S=Math.min(Number(a),Number(R)>Number(c)?Number(R):Number(c));f&&f(s,S,{shouldDirty:!0}),w(S);const D=fe("change",s,R);d&&d(D)},[j,m,a,c,f,s,d]),C=x.useCallback(R=>{const{value:S}=R.target,D=/\d+/u.test(S)&&!l._.isEmpty(S);f&&f(s,D?S:void 0),d&&d(R),w(Number(S))},[s,d,f]),I=x.useCallback(R=>{R.key==="Enter"&&R.preventDefault()},[]);return t.jsxs(te,{className:`${i?"disabled":""} ${b?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":b?"true":"false","aria-label":s,"aria-required":u,autoComplete:"off",disabled:i,id:o??s,max:a,min:c,onChange:C,onKeyDown:I,placeholder:p,required:u,step:10**-m,type:"number",value:j,...g==null?void 0:g(s,{maxLength:r,max:a,min:c,onChange:C,value:h,valueAsNumber:!0})}),b&&t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}),t.jsx(Je,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:v,px:.75,py:.75}),t.jsx(Je,{borderRadius:`0 ${y.spacing[.5]} ${y.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:k,px:.75,py:.75})]})},Jt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:o,helpText:r,id:a,label:c,linkPosition:s,maxLength:d,max:p,min:g,name:u,onChange:f,placeholder:h,register:y,required:b,setValue:m,tooltip:j,value:w,watch:v,weight:k})=>t.jsx(J,{error:n?void 0:i,helpLink:o,helpText:r,htmlFor:u,label:c,linkPosition:s,maxLength:d,required:b,tooltip:j,weight:k,children:t.jsx(Re,{decimalPlaces:e,disabled:n,error:i,id:a,max:p,maxLength:d,min:g,name:u,onChange:f,placeholder:h,register:y,required:b,setValue:m,value:v?v(u):w})}),Ut=({disabled:e=!1,error:n,name:i,label:o,propsMax:r,propsMin:a,required:c,tooltip:s,variant:d="default"})=>{const p=`${i}Max`,g=`${i}Min`;return t.jsx(J,{error:n,htmlFor:i,label:o,required:c,tooltip:s,children:t.jsxs($,{display:"flex",flexDirection:d==="filters"?"column":"row",gap:.25,width:"100%",children:[t.jsx(Re,{...a,disabled:e,error:n,name:(a==null?void 0:a.name)??g}),t.jsx(Re,{...r,disabled:e,error:n,name:(r==null?void 0:r.name)??p})]})})},jo=l.st.div`
1284
+ `,_e=({disabled:e=!1,error:n,field:i,helpLink:o,helpLinkText:r,helpText:a,label:c,name:s="input-tag",onChange:d,onRemove:p,placeholder:g,required:u,tooltip:f,value:h,weight:y})=>{const b=l.Je(),m=e?void 0:n,[v,w]=x.useState(""),j=d?h:i==null?void 0:i.value,k=x.useMemo(()=>j&&typeof j=="string"?j.split(",").filter(Boolean):[],[j]),C=x.useCallback(T=>{const V=[...new Set(T.filter(Boolean))].join(","),X=fe("change",s,V);i&&i.onChange(X),d&&d(X)},[i,s,d]),I=x.useCallback(T=>{w(T.target.value)},[]),R=x.useCallback(T=>{const L=v.trim();L.length&&!k.includes(L)&&(T.preventDefault(),C([...k,L]),w("")),i&&i.onBlur()},[v,i,C,k]),S=x.useCallback(T=>{const L=v.trim();T.key==="Enter"&&L.length===0&&T.preventDefault(),["Enter",","].includes(T.key)&&L.length>0&&!k.includes(L)?(T.preventDefault(),C([...k,L]),w("")):T.key==="Backspace"&&!L.length&&k.length&&(T.preventDefault(),p==null||p(k[k.length-1]),C(k.slice(0,-1)))},[v,p,C,k]),D=x.useCallback(T=>()=>{p==null||p(T),C(k.filter(L=>L!==T))},[p,C,k]);return t.jsx(J,{error:m,helpLink:o,helpLinkText:r,helpText:a,htmlFor:s,label:c,required:u,tooltip:f,weight:y,children:t.jsxs(te,{$overflowX:"auto",className:`${e?"disabled":""} ${m?"error":""}`,children:[k.map(T=>t.jsx(G,{disabled:e,onClose:D(T),tagLabel:T},T)),t.jsx(mo,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":s,"aria-required":u,autoComplete:"off",id:s,onBlur:R,onChange:I,onKeyDown:S,placeholder:k.length===0?g:void 0,ref:i==null?void 0:i.ref,type:"text",value:v}),m?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}):void 0]})})},wo=({disabled:e=!1,control:n,error:i,helpLink:o,helpLinkText:r,helpText:a,label:c,name:s="input-tag",onChange:d,onRemove:p,placeholder:g,required:u,tooltip:f,value:h,weight:y})=>n?t.jsx(l.Controller,{control:n,name:s,render:({field:b})=>t.jsx(_e,{disabled:e,error:i,field:b,helpLink:o,helpLinkText:r,helpText:a,label:c,name:s,onRemove:p,placeholder:g,required:u,tooltip:f,weight:y}),rules:{required:u}}):t.jsx(_e,{disabled:e,error:i,helpLink:o,helpLinkText:r,helpText:a,label:c,name:s,onChange:d,onRemove:p,placeholder:g,required:u,tooltip:f,value:h,weight:y}),Je=x.forwardRef(function({disabled:n,icon:i,margin:o,onClick:r,...a},c){return t.jsx(Zi,{$margin:o,"aria-label":i,className:"action-btn",disabled:n,onClick:r,ref:c,type:"button",...a,children:t.jsx(E,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),Re=({error:e,decimalPlaces:n=0,disabled:i=!1,id:o,maxLength:r,max:a=1/0,min:c=0,name:s,onChange:d,placeholder:p,register:g,required:u,setValue:f,value:h})=>{const y=l.Je(),b=i?void 0:e,m=n<0?0:n,[v,w]=x.useState(h?l._.toNumber(h):0),j=x.useCallback(()=>{const R=(v-10**-m).toFixed(m),S=Math.max(Number(c),Number(R));f&&f(s,S,{shouldDirty:!0}),w(S);const D=fe("change",s,R);d&&d(D)},[v,m,c,f,s,d]),k=x.useCallback(()=>{const R=(v+10**-m).toFixed(m),S=Math.min(Number(a),Number(R)>Number(c)?Number(R):Number(c));f&&f(s,S,{shouldDirty:!0}),w(S);const D=fe("change",s,R);d&&d(D)},[v,m,a,c,f,s,d]),C=x.useCallback(R=>{const{value:S}=R.target,D=/\d+/u.test(S)&&!l._.isEmpty(S);f&&f(s,D?S:void 0),d&&d(R),w(Number(S))},[s,d,f]),I=x.useCallback(R=>{R.key==="Enter"&&R.preventDefault()},[]);return t.jsxs(te,{className:`${i?"disabled":""} ${b?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":b?"true":"false","aria-label":s,"aria-required":u,autoComplete:"off",disabled:i,id:o??s,max:a,min:c,onChange:C,onKeyDown:I,placeholder:p,required:u,step:10**-m,type:"number",value:v,...g==null?void 0:g(s,{maxLength:r,max:a,min:c,onChange:C,value:h,valueAsNumber:!0})}),b&&t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}),t.jsx(Je,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:j,px:.75,py:.75}),t.jsx(Je,{borderRadius:`0 ${y.spacing[.5]} ${y.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:k,px:.75,py:.75})]})},Jt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:o,helpText:r,id:a,label:c,linkPosition:s,maxLength:d,max:p,min:g,name:u,onChange:f,placeholder:h,register:y,required:b,setValue:m,tooltip:v,value:w,watch:j,weight:k})=>t.jsx(J,{error:n?void 0:i,helpLink:o,helpText:r,htmlFor:u,label:c,linkPosition:s,maxLength:d,required:b,tooltip:v,weight:k,children:t.jsx(Re,{decimalPlaces:e,disabled:n,error:i,id:a,max:p,maxLength:d,min:g,name:u,onChange:f,placeholder:h,register:y,required:b,setValue:m,value:j?j(u):w})}),Ut=({disabled:e=!1,error:n,name:i,label:o,propsMax:r,propsMin:a,required:c,tooltip:s,variant:d="default"})=>{const p=`${i}Max`,g=`${i}Min`;return t.jsx(J,{error:n,htmlFor:i,label:o,required:c,tooltip:s,children:t.jsxs($,{display:"flex",flexDirection:d==="filters"?"column":"row",gap:.25,width:"100%",children:[t.jsx(Re,{...a,disabled:e,error:n,name:(a==null?void 0:a.name)??g}),t.jsx(Re,{...r,disabled:e,error:n,name:(r==null?void 0:r.name)??p})]})})},jo=l.st.div`
1285
1285
  ${({theme:e})=>`
1286
1286
  align-items: flex-start;
1287
1287
  align-self: stretch;
@@ -1375,9 +1375,9 @@
1375
1375
  overflow: hidden;
1376
1376
  text-overflow: ellipsis;
1377
1377
  white-space: nowrap;
1378
- `,zo=({disabled:e,error:n,label:i,name:o,placeholder:r,required:a,register:c,tooltip:s,value:d,watch:p,weight:g})=>{const u=l.Je(),f=x.useRef(null),h=e?void 0:n,y=(p==null?void 0:p(o))??d,[b,m]=x.useState(!1),[j,w]=x.useState(""),{refs:v,floatingStyles:k}=l.useFloating$1({placement:"bottom-start",whileElementsMounted:l.autoUpdate}),{inputRef:C,inputValue:I,handlePhoneValueChange:R,country:S,setCountry:D}=l.ee({countries:l.R,defaultCountry:"co",forceDialCode:!0,value:y?String(y):""}),T=x.useCallback(O=>{O.key==="Enter"&&O.preventDefault()},[]),L=x.useCallback(O=>{O.preventDefault(),m(H=>!H),b||w("")},[b]),V=x.useCallback(O=>()=>{D(O),m(!1),w("")},[D,m]),X=x.useCallback(O=>{O.key.length===1?w(H=>H+O.key):O.key==="Backspace"&&w(H=>H.slice(0,-1))},[]),ie=l.R.filter(O=>{const{name:H}=l.M(O);return H.toLowerCase().includes(j.toLowerCase())});return ne(v.floating.current,()=>{m(!1),w("")},!0),t.jsx(J,{error:h,htmlFor:o,label:i,required:a,tooltip:s,weight:g,children:t.jsxs(jo,{className:`${e?"disabled":""} ${h?"error":""}`,ref:f,children:[t.jsxs(vo,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:X,ref:v.setReference,children:[t.jsx(l.q,{iso2:S.iso2,size:"16px"}),t.jsx(E,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(te,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":o,"aria-required":a,autoComplete:"off","data-testid":`${o}-input`,disabled:e,id:o,name:o,onKeyDown:T,placeholder:r,ref:C,type:"tel",value:I,...c==null?void 0:c(o,{required:a,onChange:R})}),h?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),b&&se.createPortal(t.jsx(ko,{ref:v.setFloating,style:k,children:ie.map(O=>{const{dialCode:H,iso2:W,name:le}=l.M(O);return t.jsxs(Co,{onClick:V(W),value:W,children:[t.jsx(l.q,{iso2:W,size:"16px"}),t.jsx(So,{children:le}),t.jsx(z,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+H})]},W)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},Io=({disabled:e=!1,error:n,helpLink:i,helpText:o,isTouched:r,isValid:a,label:c,name:s="input-text",id:d,maskValue:p=!1,maxLength:g,onBlur:u,placeholder:f,register:h,required:y,rows:b,tooltip:m,watch:j,weight:w,value:v})=>{const k=l.Je(),C=(j==null?void 0:j(s))??v,I=a&&r&&!e,R=e?void 0:n;return t.jsx(J,{error:R,helpLink:i,helpText:o,htmlFor:s,label:c,maxLength:g,required:y,tooltip:m,value:C?String(C):void 0,weight:w,children:t.jsxs(te,{className:`
1378
+ `,zo=({disabled:e,error:n,label:i,name:o,placeholder:r,required:a,register:c,tooltip:s,value:d,watch:p,weight:g})=>{const u=l.Je(),f=x.useRef(null),h=e?void 0:n,y=(p==null?void 0:p(o))??d,[b,m]=x.useState(!1),[v,w]=x.useState(""),{refs:j,floatingStyles:k}=l.useFloating$1({placement:"bottom-start",whileElementsMounted:l.autoUpdate}),{inputRef:C,inputValue:I,handlePhoneValueChange:R,country:S,setCountry:D}=l.ee({countries:l.R,defaultCountry:"co",forceDialCode:!0,value:y?String(y):""}),T=x.useCallback(O=>{O.key==="Enter"&&O.preventDefault()},[]),L=x.useCallback(O=>{O.preventDefault(),m(H=>!H),b||w("")},[b]),V=x.useCallback(O=>()=>{D(O),m(!1),w("")},[D,m]),X=x.useCallback(O=>{O.key.length===1?w(H=>H+O.key):O.key==="Backspace"&&w(H=>H.slice(0,-1))},[]),ie=l.R.filter(O=>{const{name:H}=l.M(O);return H.toLowerCase().includes(v.toLowerCase())});return ne(j.floating.current,()=>{m(!1),w("")},!0),t.jsx(J,{error:h,htmlFor:o,label:i,required:a,tooltip:s,weight:g,children:t.jsxs(jo,{className:`${e?"disabled":""} ${h?"error":""}`,ref:f,children:[t.jsxs(vo,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:X,ref:j.setReference,children:[t.jsx(l.q,{iso2:S.iso2,size:"16px"}),t.jsx(E,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(te,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":o,"aria-required":a,autoComplete:"off","data-testid":`${o}-input`,disabled:e,id:o,name:o,onKeyDown:T,placeholder:r,ref:C,type:"tel",value:I,...c==null?void 0:c(o,{required:a,onChange:R})}),h?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),b&&se.createPortal(t.jsx(ko,{ref:j.setFloating,style:k,children:ie.map(O=>{const{dialCode:H,iso2:W,name:le}=l.M(O);return t.jsxs(Co,{onClick:V(W),value:W,children:[t.jsx(l.q,{iso2:W,size:"16px"}),t.jsx(So,{children:le}),t.jsx(z,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+H})]},W)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},Io=({disabled:e=!1,error:n,helpLink:i,helpText:o,isTouched:r,isValid:a,label:c,name:s="input-text",id:d,maskValue:p=!1,maxLength:g,onBlur:u,placeholder:f,register:h,required:y,rows:b,tooltip:m,watch:v,weight:w,value:j})=>{const k=l.Je(),C=(v==null?void 0:v(s))??j,I=a&&r&&!e,R=e?void 0:n;return t.jsx(J,{error:R,helpLink:i,helpText:o,htmlFor:s,label:c,maxLength:g,required:y,tooltip:m,value:C?String(C):void 0,weight:w,children:t.jsxs(te,{className:`
1379
1379
  ${e?"disabled":""} ${R?"error":""} ${I?"success":""}
1380
- `,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":R?"true":"false","aria-label":s,"aria-required":y,className:p?"sr-block":"","data-testid":`${s}-text-area`,disabled:e,id:d??s,maxLength:g,placeholder:f,rows:b,value:C,...h==null?void 0:h(s,{required:y,onBlur:u})}),R?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"xs"}):void 0,I?t.jsx(E,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"xs"}):void 0]})})},To=({control:e,description:n,disabled:i,id:o,items:r,align:a,inputType:c="text",inputNumberProps:s,minHeight:d,minWidth:p,name:g,placeholder:u,textAlign:f,tooltip:h,title:y,value:b,isTouched:m,isValid:j,error:w,onChange:v,register:k,setValue:C,watch:I})=>{const R=x.useMemo(()=>{if(c==="text")return t.jsx(Ae,{disabled:i,error:w,isTouched:m,isValid:j,name:g,placeholder:u,register:k});if(c==="date")return t.jsx(Ot,{disabled:i,error:w,name:g,register:k,setValue:C,watch:I});if(c==="select"&&r)return t.jsx(Qe,{control:e,disabled:i,items:r,name:g,placeholder:u,value:b});const{decimalPlaces:S,max:D,min:T}=s??{};return t.jsx(Jt,{decimalPlaces:S,disabled:i,error:w,max:D,min:T,name:g,onChange:v,placeholder:u,register:k,setValue:C,value:b,watch:I})},[e,i,w,s,c,m,j,r,g,v,u,k,C,b,I]);return t.jsxs(Wi,{$align:a,$minHeight:d,$minWidth:p,children:[t.jsx(Ne,{description:n,id:o,textAlign:f,title:y,tooltip:h}),R]})},Eo=l.st.div`
1380
+ `,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":R?"true":"false","aria-label":s,"aria-required":y,className:p?"sr-block":"","data-testid":`${s}-text-area`,disabled:e,id:d??s,maxLength:g,placeholder:f,rows:b,value:C,...h==null?void 0:h(s,{required:y,onBlur:u})}),R?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"xs"}):void 0,I?t.jsx(E,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"xs"}):void 0]})})},To=({control:e,description:n,disabled:i,id:o,items:r,align:a,inputType:c="text",inputNumberProps:s,minHeight:d,minWidth:p,name:g,placeholder:u,textAlign:f,tooltip:h,title:y,value:b,isTouched:m,isValid:v,error:w,onChange:j,register:k,setValue:C,watch:I})=>{const R=x.useMemo(()=>{if(c==="text")return t.jsx(Ae,{disabled:i,error:w,isTouched:m,isValid:v,name:g,placeholder:u,register:k});if(c==="date")return t.jsx(Ot,{disabled:i,error:w,name:g,register:k,setValue:C,watch:I});if(c==="select"&&r)return t.jsx(Qe,{control:e,disabled:i,items:r,name:g,placeholder:u,value:b});const{decimalPlaces:S,max:D,min:T}=s??{};return t.jsx(Jt,{decimalPlaces:S,disabled:i,error:w,max:D,min:T,name:g,onChange:j,placeholder:u,register:k,setValue:C,value:b,watch:I})},[e,i,w,s,c,m,v,r,g,j,u,k,C,b,I]);return t.jsxs(Wi,{$align:a,$minHeight:d,$minWidth:p,children:[t.jsx(Ne,{description:n,id:o,textAlign:f,title:y,tooltip:h}),R]})},Eo=l.st.div`
1381
1381
  display: flex;
1382
1382
  align-self: flex-start;
1383
1383
  margin-left: auto;
@@ -1964,7 +1964,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
1964
1964
  svg.fa-check {
1965
1965
  border-radius: 2px;
1966
1966
  }
1967
- `,pn=({control:e,option:n,register:i,setValue:o})=>{var r,a,c,s,d;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(r=n.options)==null?void 0:r.map(g=>t.jsx($t,{value:g.value,width:"content",children:t.jsx(oe,{...i("checkbox"),label:g.label,value:g.value})},`li-checkbox-${g.value}`))});case"radioButton":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[n.label,(a=n.options)==null?void 0:a.map(g=>t.jsx($t,{value:g.value,width:"content",children:t.jsx(nt,{...i("radio"),label:g.label,value:g.value})},`li-radio-${g.value}`))]});case"select":return t.jsx(Qe,{control:e,items:((c=n.options)==null?void 0:c.map(g=>({name:g.label??"",value:g.value})))??[],label:n.label,name:`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`,placeholder:n.placeholder,value:n.value});case"text":const p=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Ae,{label:n.label,name:p,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Ut,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:o},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:o},variant:"filters"});case"dateRange":return t.jsx(Ht,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(s=n.maxValue)==null?void 0:s.toString()},propsMin:{name:"minValue",value:(d=n.minValue)==null?void 0:d.toString()},register:i,setValue:o,variant:"filters"});default:return t.jsx("div",{})}},gn=({control:e,items:n,register:i,setValue:o})=>t.jsx(t.Fragment,{children:n.map((r,a)=>{const c=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(pn,{control:e,option:r,register:i,setValue:o}),a<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},c)})}),un=e=>{var s,d,p,g,u;const[n,i]=x.useState([...e]),{control:o,register:r,handleSubmit:a,setValue:c}=l.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter(y=>y.checked).map(y=>y.value))??[]}),radio:((p=(d=(s=e.find(f=>f.type==="radioButton"))==null?void 0:s.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:p.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(g=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:g.minValue,maxValue:(u=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:u.maxValue}});return{control:o,items:n,setItems:i,register:r,handleSubmit:a,setValue:c}},pr=(e,n)=>{var i,o,r,a,c;n("checkbox",e.filter(s=>s.type==="checkboxes").flatMap(s=>{var d;return((d=s.options)==null?void 0:d.filter(p=>p.checked).map(p=>p.value))??[]})),n("radio",((r=(o=(i=e.find(s=>s.type==="radioButton"))==null?void 0:i.options)==null?void 0:o.find(({checked:s})=>s))==null?void 0:r.value)??""),n("text",e.filter(s=>["text","select"].includes(s.type)).reduce((s,d)=>({...s,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),n("minValue",(a=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:a.minValue),n("maxValue",(c=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:c.maxValue)},gr=(e,n)=>(e==null?void 0:e.filter(i=>{var o;return((o=i.label)==null?void 0:o.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??i.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],ur=async(e,n)=>await Promise.all(e.map(async i=>{if(i.type==="checkboxes"){const r=(i.filterOptions?await i.filterOptions(i.options??[],n):gr(i.options??[],n)).filter((a,c,s)=>s.findIndex(d=>d.value===a.value)===c);return{...i,options:r}}return i})),Ue=({options:e,onSearch:n,onSubmit:i,id:o,selectedFilter:r})=>{const{control:a,items:c,setItems:s,register:d,handleSubmit:p,setValue:g}=un(e),u=e.some(y=>y.type==="checkboxes"&&y.hideSearch!==!0),f=x.useCallback(async y=>{const{value:b}=y.target;n&&n(b);const m=await ur(e,b);s(m)},[e,n,s]),h=x.useCallback(y=>{i&&i(y)},[i]);return x.useEffect(()=>{s(e),pr(e,g)},[e,s,g]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:o,style:{writingMode:"horizontal-tb",maxWidth:"300px",width:"100%"},children:[u&&t.jsxs("div",{children:[r,t.jsx(ae,{onChange:f})]}),t.jsxs("form",{id:o,onSubmit:p(h),children:[t.jsx(gn,{control:a,items:c,register:d,setValue:g}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})},xn=({options:e,variant:n,onApplyFilters:i,onSearch:o,setDirection:r,setHandler:a})=>{const c=l.Je(),[s,d]=x.useState(e),[p,g]=x.useState([]),[u,f]=x.useState({}),[h,y]=x.useState(""),b=x.useCallback(w=>()=>{const v=s.find(C=>C.label===w),k=!(v!=null&&v.filterOptions.some(C=>C.type==="dateRange"||C.type==="select"));a==null||a(k??!0),y(w),g((v==null?void 0:v.filterOptions)??[])},[s,a]),m=x.useCallback(w=>{const v=[...w.checkbox,...Object.values(w.text??{}),...w.radio?[w.radio]:[],...w.minValue?[String(w.minValue)]:[],...w.maxValue?[String(w.maxValue)]:[]];f(S=>v.length>0?{...S,[h]:v}:S);const k=S=>{var D,T;return{...S,options:(D=S.options)==null?void 0:D.map(L=>({...L,checked:w.checkbox.includes(L.value)||w.radio===L.value})),value:["text","select"].includes(S.type)?((T=w.text)==null?void 0:T[`${String(S.key)}-${S.filterFn??"caseInsensitive"}`])??S.value:S.value,minValue:["numberRange","dateRange"].includes(S.type)?w.minValue:S.minValue,maxValue:["numberRange","dateRange"].includes(S.type)?w.maxValue:S.maxValue}},C=S=>S.label===h?{...S,filterOptions:S.filterOptions.map(k)}:S,I=s.map(C);d(S=>S.map(C));const R=I.flatMap(({filterOptions:S})=>S);i(R),g([])},[s,i,h]),j=x.useCallback((w,v)=>{const k=`li-filter-option-${w}`;return t.jsxs(cr,{icon:v,onClick:b(w),style:{minWidth:"180px",writingMode:"horizontal-tb"},value:k,width:"100%",children:[w,u[w]===void 0?void 0:t.jsx(G,{tagLabel:u[w].length.toString()})]},k)},[u,b]);return x.useEffect(()=>{const w=e.reduce((v,{label:k,filterOptions:C})=>{const I=C.flatMap(({value:D,minValue:T,maxValue:L})=>[T,L,D]).filter(Boolean),R=C.flatMap(({options:D})=>D??[]).filter(({checked:D=!1})=>D).map(({value:D})=>D),S=[...I,...R];return S.length===0?v:{...v,[k]:S}},{});f(w),p.length>0&&r&&r("column")},[p,e,r]),n==="grouped"?t.jsx($,{display:"flex",flexDirection:"row",maxHeight:p.length>0?"unset":"360px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:p.length>0?t.jsx(Ue,{id:"filters-options",onSearch:o,onSubmit:m,options:p,selectedFilter:h}):Object.entries(ln(e)).map(([w,v])=>t.jsxs($,{style:{writingMode:"horizontal-tb"},children:[t.jsx(z,{color:c.palette.gray[400],mb:.25,size:"sm",children:w}),v.map(({label:k,icon:C="filter-list"})=>j(k,C))]},w))}):t.jsx($,{display:"flex",flexDirection:"row",maxHeight:p.length>0?"unset":"200px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:p.length>0?t.jsx(Ue,{id:"filters-options",onSearch:o,onSubmit:m,options:p,selectedFilter:h}):e.map(({label:w,icon:v="filter-list"})=>j(w,v))})},fn=({options:e,onApplyFilters:n,onSearch:i,modalRef:o,variant:r})=>{const[a,c]=x.useState("row"),[s,d]=x.useState(!0),p=l.Je(),g=x.useRef(null),u=t.jsx(M,{icon:"close",iconColor:p.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,px:.25,py:.25,variant:"ghost"});return x.useEffect(()=>{const f=h=>{const y=g.current;y&&!y.contains(h.target)&&o.close()};if(s)return document.addEventListener("mousedown",f,!0),()=>{document.removeEventListener("mousedown",f,!0)}},[g,s,o]),t.jsx(dr,{$bgColor:"transparent","aria-label":o.name,children:t.jsxs(it,{$size:"fixed",alignItems:a==="row"?"start":"end",display:"flex",flexDirection:a,gap:.5,id:"filters-list",justify:"space-between",position:"relative",px:1.25,py:1.25,ref:g,style:{maxWidth:"620px",overflow:"hidden",width:"fit-content"},children:[a==="column"?u:void 0,t.jsx(xn,{onApplyFilters:n,onSearch:i,options:e,setDirection:c,setHandler:d,variant:r}),a==="row"?u:void 0]})})};function xr(e){if(e)return e}function hn(e){if(!e||e.length===0)return;const n=e.filter(o=>o.checked).map(o=>o.label??o.value);return n.length===0?void 0:n.join(", ")}function fr(e,n,i){const o=i??"",r=l._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),a=l._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!l._.isUndefined(r)&&!l._.isUndefined(a))return`${r}${o} - ${a}${o}`;if(!l._.isUndefined(r))return`Min ${r}${o}`;if(!l._.isUndefined(a))return`Max ${a}${o}`}function hr(e,n){if(l.dayjs_minExports.extend(l.localizedFormat),!(l._.isUndefined(e)&&l._.isUndefined(n))){if(e!==""&&n!==""&&!l._.isUndefined(e)&&!l._.isUndefined(n))return`${l.dayjs(e).format("LL")} - ${l.dayjs(n).format("LL")}`;if(e!==""&&!l._.isUndefined(e))return`From ${l.dayjs(e).format("LL")}`;if(n!==""&&!l._.isUndefined(n))return`To ${l.dayjs(n).format("LL")}`}}function yr(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const pe=({filter:e,icon:n="filter-list",label:i,onClose:o,filterValue:r})=>l._.isNil(r)||l._.isEmpty(String(r))?null:t.jsx(G,{filterValues:r,icon:n,id:"remove-filter",onClose:o(e),tagLabel:`${i} `}),br=({options:e,onClose:n})=>{const i=e.flatMap(o=>o.filterOptions.map(r=>{const{filterFn:a,label:c,type:s,value:d,options:p,minValue:g,maxValue:u}=r;switch(s){case"numberRange":{const f=fr(g,u,o.placeholder);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case"dateRange":{const f=hr(g==null?void 0:g.toString(),u==null?void 0:u.toString());return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case"radioButton":case"checkboxes":{const f=hn(p);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case void 0:case"select":case"text":default:{const f=xr(d),h=yr(s,o.label,a);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:h,onClose:n},c)}}})).filter(o=>{if(o===null)return!1;const{filterValue:r}=o.props;return!l._.isNil(r)&&!l._.isEmpty(String(r))});return i.length>0?t.jsx($,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},$r=(e,n)=>{function i(c,s){if(s.value===""||s.value===void 0||l._.defaultTo(s.isBackFilter,!1))return!0;switch(s.filterFn){case"includesInsensitive":return String(c[s.key]).toLowerCase().includes(s.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(c[s.key]).toLowerCase()===s.value.toLowerCase()}}function o(c,s){if(!s.options||s.options.length===0)return!0;const d=s.options.filter(p=>p.checked).map(p=>p.value);return d.length===0?!0:d.includes(String(c[s.key]))}function r(c,s,d){const p=d(String(c[s.key])),{minValue:g,maxValue:u}=s,f=l._.isEmpty(g)&&typeof g!="number"?void 0:d(String(g)),h=l._.isEmpty(u)&&typeof u!="number"?void 0:d(String(u));return l._.isUndefined(f)&&l._.isUndefined(h)?!0:(f??-1/0)<=p&&p<=(h??1/0)}function a(c){return n.every(s=>{if(typeof s.key=="function")return s.key(c,s.value);switch(s.type){case"radioButton":case"checkboxes":return o(c,s);case"numberRange":return r(c,s,Number);case"dateRange":return r(c,s,d=>new Date(d));case"select":case"text":default:return i(c,s)}})}return e.filter(a)},mt=e=>[...e.flatMap(({options:i})=>i).filter(i=>i==null?void 0:i.checked),...e.flatMap(i=>[i.value,i.maxValue,i.minValue]).filter(Boolean)].length,mr=e=>{var i;const n=((i=e.options)==null?void 0:i.map(o=>({...o,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},wr=({dataset:e,setValues:n,getValues:i,options:o,setFilteredDataset:r,onFiltersChange:a,onReset:c,onSearch:s,variant:d="ungrouped"})=>{const p=Se("filters-modal"),[g,u]=x.useState([]),[f,h]=x.useState(mt(g)),y=o.map(v=>({...v,filterOptions:v.filterOptions.map(k=>g.find(I=>I.key===k.key&&I.type===k.type&&I.filterFn===k.filterFn)??{...k})})),b=x.useCallback(v=>{u([...v]),n(JSON.stringify(v))},[u,n]),m=x.useCallback(()=>{c&&c(),p.toggle()},[p,c]),j=x.useCallback(v=>()=>{c&&c();const k=g.map(C=>C.key===v.key&&C.type===v.type&&C.filterFn===v.filterFn?mr(C):C);u(k),n(JSON.stringify(k))},[g,c,n]);return x.useEffect(()=>{const v=i(),k=o.flatMap(I=>I.filterOptions),C=v?JSON.parse(v):k;k.flatMap(I=>I.value).filter(Boolean).length>0||k.flatMap(I=>I.options).filter(I=>(I==null?void 0:I.checked)===void 0).length>0?(u(k),n(JSON.stringify(k))):u(C)},[o,u,n,i]),x.useEffect(()=>{r&&e!==void 0&&r($r(e,g)),h(mt(g)),a==null||a(g)},[e,g,r,h,a]),{Filters:()=>t.jsxs($,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx($,{pr:.25,children:t.jsx(P,{icon:"filter",id:"filter-btn",onClick:m,tag:f.toString(),variant:"ghost"})}),p.isOpen&&t.jsx(fn,{modalRef:p,onApplyFilters:b,onSearch:s,options:y,variant:d})]}),options:y,removeFilter:j}},rt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:o=void 0,confirmButton:r=void 0,content:a=void 0,description:c=void 0,modalRef:s,otherActions:d=void 0,onClose:p=void 0,tabItems:g=void 0,title:u=void 0,size:f,id:h="modal-container"})=>{const y=l.Je(),b=t.jsx(Xt,{"aria-label":s.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(it,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!l._.isEmpty(u)&&!l._.isNil(u)&&t.jsx(en,{description:c,modalRef:s,onClose:p,otherActions:d,title:u}),g&&t.jsx($,{borderTop:`1px solid ${y.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(ot,{items:g})}),(l._.isObject(a)||o)&&t.jsxs(Yo,{children:[o,l._.isObject(a)&&l._.isString(a.imageSrc)&&t.jsx(Xo,{$framed:a.imageFramed,children:t.jsx(ee,{alt:"modal-img",publicId:a.imageSrc})}),l._.isObject(a)&&l._.isString(a.imageText)&&t.jsx(z,{size:"sm",children:a.imageText})]}),t.jsx(Qt,{alert:n,cancelButton:i,confirmButton:r,modalRef:s})]})});return e&&s.isOpen?se.createPortal(b,document.getElementById("portals")??document.body):s.isOpen?b:null},jr=(e,n,i)=>{const o=Se("confirm-dialog-modal"),r=x.useRef(null),a=x.useCallback(async()=>(o.open(),new Promise(p=>{r.current=p})),[o]),c=x.useCallback(()=>{var p;o.close(),(p=r.current)==null||p.call(r,!0)},[o]),s=x.useCallback(()=>{var p;o.close(),(p=r.current)==null||p.call(r,!1)},[o]);return[a,({children:p})=>{const[g,u]=x.useState(i),f=x.useCallback(()=>{u({...i})},[]),h=x.useCallback(m=>()=>{u(j=>({...j,[m]:{...j[m],state:!j[m].state}}))},[]),y=!Object.values(g).every(({state:m})=>m),b=Object.entries(g).map(([m,{state:j,label:w}])=>t.jsx(oe,{defaultChecked:j,label:w,name:m,onChange:h(m)},m));return t.jsxs(rt,{"data-testid":e,id:e,modalRef:{...o,close:s},onClose:f,size:"sm",title:n,children:[p,t.jsx($,{display:"flex",flexDirection:"column",gap:.5,children:b}),t.jsx(tn,{disabled:y,id:e,onConfirm:c})]})}]},vr=()=>{const[e,n]=x.useState(!1),[i,o]=x.useState(),r=x.useRef(null),a=Se("confirm-dialog-modal"),c=x.useCallback(async g=>(o(g),n(!0),new Promise(u=>{r.current=u})),[]),s=x.useCallback(()=>{var g;n(!1),o(void 0),(g=r.current)==null||g.call(r,!0)},[]),d=x.useCallback(()=>{var g;n(!1),o(void 0),(g=r.current)==null||g.call(r,!1)},[]);return x.useEffect(()=>{a.setIsOpen(e)},[e,a]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:u})=>t.jsxs(rt,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(i==null?void 0:i.id)??"modal-confirm",onClick:s,text:"Confirm"},description:i==null?void 0:i.message,id:g,modalRef:{...a,close:d},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,u]}),confirm:c}},kr=2e3,Cr=({content:e})=>{const[n,i]=x.useState("Copy"),o=x.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{i("Copied"),setTimeout(()=>{i("Copy")},kr)}).catch(()=>{i("Failed to copy")})},[e]);return t.jsx(M,{icon:"copy",iconSize:"xs",iconType:"fa-light",onClick:o,tooltip:n,variant:"ghost"})},Sr=l.st.ul`
1967
+ `,pn=({control:e,option:n,register:i,setValue:o})=>{var r,a,c,s,d;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(r=n.options)==null?void 0:r.map(g=>t.jsx($t,{value:g.value,width:"content",children:t.jsx(oe,{...i("checkbox"),label:g.label,value:g.value})},`li-checkbox-${g.value}`))});case"radioButton":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[n.label,(a=n.options)==null?void 0:a.map(g=>t.jsx($t,{value:g.value,width:"content",children:t.jsx(nt,{...i("radio"),label:g.label,value:g.value})},`li-radio-${g.value}`))]});case"select":return t.jsx(Qe,{control:e,items:((c=n.options)==null?void 0:c.map(g=>({name:g.label??"",value:g.value})))??[],label:n.label,name:`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`,placeholder:n.placeholder,value:n.value});case"text":const p=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Ae,{label:n.label,name:p,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Ut,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:o},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:o},variant:"filters"});case"dateRange":return t.jsx(Ht,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(s=n.maxValue)==null?void 0:s.toString()},propsMin:{name:"minValue",value:(d=n.minValue)==null?void 0:d.toString()},register:i,setValue:o,variant:"filters"});default:return t.jsx("div",{})}},gn=({control:e,items:n,register:i,setValue:o})=>t.jsx(t.Fragment,{children:n.map((r,a)=>{const c=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(pn,{control:e,option:r,register:i,setValue:o}),a<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},c)})}),un=e=>{var s,d,p,g,u;const[n,i]=x.useState([...e]),{control:o,register:r,handleSubmit:a,setValue:c}=l.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter(y=>y.checked).map(y=>y.value))??[]}),radio:((p=(d=(s=e.find(f=>f.type==="radioButton"))==null?void 0:s.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:p.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(g=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:g.minValue,maxValue:(u=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:u.maxValue}});return{control:o,items:n,setItems:i,register:r,handleSubmit:a,setValue:c}},pr=(e,n)=>{var i,o,r,a,c;n("checkbox",e.filter(s=>s.type==="checkboxes").flatMap(s=>{var d;return((d=s.options)==null?void 0:d.filter(p=>p.checked).map(p=>p.value))??[]})),n("radio",((r=(o=(i=e.find(s=>s.type==="radioButton"))==null?void 0:i.options)==null?void 0:o.find(({checked:s})=>s))==null?void 0:r.value)??""),n("text",e.filter(s=>["text","select"].includes(s.type)).reduce((s,d)=>({...s,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),n("minValue",(a=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:a.minValue),n("maxValue",(c=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:c.maxValue)},gr=(e,n)=>(e==null?void 0:e.filter(i=>{var o;return((o=i.label)==null?void 0:o.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??i.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],ur=async(e,n)=>await Promise.all(e.map(async i=>{if(i.type==="checkboxes"){const r=(i.filterOptions?await i.filterOptions(i.options??[],n):gr(i.options??[],n)).filter((a,c,s)=>s.findIndex(d=>d.value===a.value)===c);return{...i,options:r}}return i})),Ue=({options:e,onSearch:n,onSubmit:i,id:o,selectedFilter:r})=>{const{control:a,items:c,setItems:s,register:d,handleSubmit:p,setValue:g}=un(e),u=e.some(y=>y.type==="checkboxes"&&y.hideSearch!==!0),f=x.useCallback(async y=>{const{value:b}=y.target;n&&n(b);const m=await ur(e,b);s(m)},[e,n,s]),h=x.useCallback(y=>{i&&i(y)},[i]);return x.useEffect(()=>{s(e),pr(e,g)},[e,s,g]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:o,style:{writingMode:"horizontal-tb",maxWidth:"300px",width:"100%"},children:[u&&t.jsxs("div",{children:[r,t.jsx(ae,{onChange:f})]}),t.jsxs("form",{id:o,onSubmit:p(h),children:[t.jsx(gn,{control:a,items:c,register:d,setValue:g}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})},xn=({options:e,variant:n,onApplyFilters:i,onSearch:o,setDirection:r,setHandler:a})=>{const c=l.Je(),[s,d]=x.useState(e),[p,g]=x.useState([]),[u,f]=x.useState({}),[h,y]=x.useState(""),b=x.useCallback(w=>()=>{const j=s.find(C=>C.label===w),k=!(j!=null&&j.filterOptions.some(C=>C.type==="dateRange"||C.type==="select"));a==null||a(k??!0),y(w),g((j==null?void 0:j.filterOptions)??[])},[s,a]),m=x.useCallback(w=>{const j=[...w.checkbox,...Object.values(w.text??{}),...w.radio?[w.radio]:[],...w.minValue?[String(w.minValue)]:[],...w.maxValue?[String(w.maxValue)]:[]];f(S=>j.length>0?{...S,[h]:j}:S);const k=S=>{var D,T;return{...S,options:(D=S.options)==null?void 0:D.map(L=>({...L,checked:w.checkbox.includes(L.value)||w.radio===L.value})),value:["text","select"].includes(S.type)?((T=w.text)==null?void 0:T[`${String(S.key)}-${S.filterFn??"caseInsensitive"}`])??S.value:S.value,minValue:["numberRange","dateRange"].includes(S.type)?w.minValue:S.minValue,maxValue:["numberRange","dateRange"].includes(S.type)?w.maxValue:S.maxValue}},C=S=>S.label===h?{...S,filterOptions:S.filterOptions.map(k)}:S,I=s.map(C);d(S=>S.map(C));const R=I.flatMap(({filterOptions:S})=>S);i(R),g([])},[s,i,h]),v=x.useCallback((w,j)=>{const k=`li-filter-option-${w}`;return t.jsxs(cr,{icon:j,onClick:b(w),style:{minWidth:"180px",writingMode:"horizontal-tb"},value:k,width:"100%",children:[w,u[w]===void 0?void 0:t.jsx(G,{tagLabel:u[w].length.toString()})]},k)},[u,b]);return x.useEffect(()=>{const w=e.reduce((j,{label:k,filterOptions:C})=>{const I=C.flatMap(({value:D,minValue:T,maxValue:L})=>[T,L,D]).filter(Boolean),R=C.flatMap(({options:D})=>D??[]).filter(({checked:D=!1})=>D).map(({value:D})=>D),S=[...I,...R];return S.length===0?j:{...j,[k]:S}},{});f(w),p.length>0&&r&&r("column")},[p,e,r]),n==="grouped"?t.jsx($,{display:"flex",flexDirection:"row",maxHeight:p.length>0?"unset":"360px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:p.length>0?t.jsx(Ue,{id:"filters-options",onSearch:o,onSubmit:m,options:p,selectedFilter:h}):Object.entries(ln(e)).map(([w,j])=>t.jsxs($,{style:{writingMode:"horizontal-tb"},children:[t.jsx(z,{color:c.palette.gray[400],mb:.25,size:"sm",children:w}),j.map(({label:k,icon:C="filter-list"})=>v(k,C))]},w))}):t.jsx($,{display:"flex",flexDirection:"row",maxHeight:p.length>0?"unset":"200px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:p.length>0?t.jsx(Ue,{id:"filters-options",onSearch:o,onSubmit:m,options:p,selectedFilter:h}):e.map(({label:w,icon:j="filter-list"})=>v(w,j))})},fn=({options:e,onApplyFilters:n,onSearch:i,modalRef:o,variant:r})=>{const[a,c]=x.useState("row"),[s,d]=x.useState(!0),p=l.Je(),g=x.useRef(null),u=t.jsx(M,{icon:"close",iconColor:p.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,px:.25,py:.25,variant:"ghost"});return x.useEffect(()=>{const f=h=>{const y=g.current;y&&!y.contains(h.target)&&o.close()};if(s)return document.addEventListener("mousedown",f,!0),()=>{document.removeEventListener("mousedown",f,!0)}},[g,s,o]),t.jsx(dr,{$bgColor:"transparent","aria-label":o.name,children:t.jsxs(it,{$size:"fixed",alignItems:a==="row"?"start":"end",display:"flex",flexDirection:a,gap:.5,id:"filters-list",justify:"space-between",position:"relative",px:1.25,py:1.25,ref:g,style:{maxWidth:"620px",overflow:"hidden",width:"fit-content"},children:[a==="column"?u:void 0,t.jsx(xn,{onApplyFilters:n,onSearch:i,options:e,setDirection:c,setHandler:d,variant:r}),a==="row"?u:void 0]})})};function xr(e){if(e)return e}function hn(e){if(!e||e.length===0)return;const n=e.filter(o=>o.checked).map(o=>o.label??o.value);return n.length===0?void 0:n.join(", ")}function fr(e,n,i){const o=i??"",r=l._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),a=l._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!l._.isUndefined(r)&&!l._.isUndefined(a))return`${r}${o} - ${a}${o}`;if(!l._.isUndefined(r))return`Min ${r}${o}`;if(!l._.isUndefined(a))return`Max ${a}${o}`}function hr(e,n){if(l.dayjs_minExports.extend(l.localizedFormat),!(l._.isUndefined(e)&&l._.isUndefined(n))){if(e!==""&&n!==""&&!l._.isUndefined(e)&&!l._.isUndefined(n))return`${l.dayjs(e).format("LL")} - ${l.dayjs(n).format("LL")}`;if(e!==""&&!l._.isUndefined(e))return`From ${l.dayjs(e).format("LL")}`;if(n!==""&&!l._.isUndefined(n))return`To ${l.dayjs(n).format("LL")}`}}function yr(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const pe=({filter:e,icon:n="filter-list",label:i,onClose:o,filterValue:r})=>l._.isNil(r)||l._.isEmpty(String(r))?null:t.jsx(G,{filterValues:r,icon:n,id:"remove-filter",onClose:o(e),tagLabel:`${i} `}),br=({options:e,onClose:n})=>{const i=e.flatMap(o=>o.filterOptions.map(r=>{const{filterFn:a,label:c,type:s,value:d,options:p,minValue:g,maxValue:u}=r;switch(s){case"numberRange":{const f=fr(g,u,o.placeholder);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case"dateRange":{const f=hr(g==null?void 0:g.toString(),u==null?void 0:u.toString());return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case"radioButton":case"checkboxes":{const f=hn(p);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case void 0:case"select":case"text":default:{const f=xr(d),h=yr(s,o.label,a);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:h,onClose:n},c)}}})).filter(o=>{if(o===null)return!1;const{filterValue:r}=o.props;return!l._.isNil(r)&&!l._.isEmpty(String(r))});return i.length>0?t.jsx($,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},$r=(e,n)=>{function i(c,s){if(s.value===""||s.value===void 0||l._.defaultTo(s.isBackFilter,!1))return!0;switch(s.filterFn){case"includesInsensitive":return String(c[s.key]).toLowerCase().includes(s.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(c[s.key]).toLowerCase()===s.value.toLowerCase()}}function o(c,s){if(!s.options||s.options.length===0)return!0;const d=s.options.filter(p=>p.checked).map(p=>p.value);return d.length===0?!0:d.includes(String(c[s.key]))}function r(c,s,d){const p=d(String(c[s.key])),{minValue:g,maxValue:u}=s,f=l._.isEmpty(g)&&typeof g!="number"?void 0:d(String(g)),h=l._.isEmpty(u)&&typeof u!="number"?void 0:d(String(u));return l._.isUndefined(f)&&l._.isUndefined(h)?!0:(f??-1/0)<=p&&p<=(h??1/0)}function a(c){return n.every(s=>{if(typeof s.key=="function")return s.key(c,s.value);switch(s.type){case"radioButton":case"checkboxes":return o(c,s);case"numberRange":return r(c,s,Number);case"dateRange":return r(c,s,d=>new Date(d));case"select":case"text":default:return i(c,s)}})}return e.filter(a)},mt=e=>[...e.flatMap(({options:i})=>i).filter(i=>i==null?void 0:i.checked),...e.flatMap(i=>[i.value,i.maxValue,i.minValue]).filter(Boolean)].length,mr=e=>{var i;const n=((i=e.options)==null?void 0:i.map(o=>({...o,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},wr=({dataset:e,setValues:n,getValues:i,options:o,setFilteredDataset:r,onFiltersChange:a,onReset:c,onSearch:s,variant:d="ungrouped"})=>{const p=Se("filters-modal"),[g,u]=x.useState([]),[f,h]=x.useState(mt(g)),y=o.map(j=>({...j,filterOptions:j.filterOptions.map(k=>g.find(I=>I.key===k.key&&I.type===k.type&&I.filterFn===k.filterFn)??{...k})})),b=x.useCallback(j=>{u([...j]),n(JSON.stringify(j))},[u,n]),m=x.useCallback(()=>{c&&c(),p.toggle()},[p,c]),v=x.useCallback(j=>()=>{c&&c();const k=g.map(C=>C.key===j.key&&C.type===j.type&&C.filterFn===j.filterFn?mr(C):C);u(k),n(JSON.stringify(k))},[g,c,n]);return x.useEffect(()=>{const j=i(),k=o.flatMap(I=>I.filterOptions),C=j?JSON.parse(j):k;k.flatMap(I=>I.value).filter(Boolean).length>0||k.flatMap(I=>I.options).filter(I=>(I==null?void 0:I.checked)===void 0).length>0?(u(k),n(JSON.stringify(k))):u(C)},[o,u,n,i]),x.useEffect(()=>{r&&e!==void 0&&r($r(e,g)),h(mt(g)),a==null||a(g)},[e,g,r,h,a]),{Filters:()=>t.jsxs($,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx($,{pr:.25,children:t.jsx(P,{icon:"filter",id:"filter-btn",onClick:m,tag:f.toString(),variant:"ghost"})}),p.isOpen&&t.jsx(fn,{modalRef:p,onApplyFilters:b,onSearch:s,options:y,variant:d})]}),options:y,removeFilter:v}},rt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:o=void 0,confirmButton:r=void 0,content:a=void 0,description:c=void 0,modalRef:s,otherActions:d=void 0,onClose:p=void 0,tabItems:g=void 0,title:u=void 0,size:f,id:h="modal-container"})=>{const y=l.Je(),b=t.jsx(Xt,{"aria-label":s.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(it,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!l._.isEmpty(u)&&!l._.isNil(u)&&t.jsx(en,{description:c,modalRef:s,onClose:p,otherActions:d,title:u}),g&&t.jsx($,{borderTop:`1px solid ${y.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(ot,{items:g})}),(l._.isObject(a)||o)&&t.jsxs(Yo,{children:[o,l._.isObject(a)&&l._.isString(a.imageSrc)&&t.jsx(Xo,{$framed:a.imageFramed,children:t.jsx(ee,{alt:"modal-img",publicId:a.imageSrc})}),l._.isObject(a)&&l._.isString(a.imageText)&&t.jsx(z,{size:"sm",children:a.imageText})]}),t.jsx(Qt,{alert:n,cancelButton:i,confirmButton:r,modalRef:s})]})});return e&&s.isOpen?se.createPortal(b,document.getElementById("portals")??document.body):s.isOpen?b:null},jr=(e,n,i)=>{const o=Se("confirm-dialog-modal"),r=x.useRef(null),a=x.useCallback(async()=>(o.open(),new Promise(p=>{r.current=p})),[o]),c=x.useCallback(()=>{var p;o.close(),(p=r.current)==null||p.call(r,!0)},[o]),s=x.useCallback(()=>{var p;o.close(),(p=r.current)==null||p.call(r,!1)},[o]);return[a,({children:p})=>{const[g,u]=x.useState(i),f=x.useCallback(()=>{u({...i})},[]),h=x.useCallback(m=>()=>{u(v=>({...v,[m]:{...v[m],state:!v[m].state}}))},[]),y=!Object.values(g).every(({state:m})=>m),b=Object.entries(g).map(([m,{state:v,label:w}])=>t.jsx(oe,{defaultChecked:v,label:w,name:m,onChange:h(m)},m));return t.jsxs(rt,{"data-testid":e,id:e,modalRef:{...o,close:s},onClose:f,size:"sm",title:n,children:[p,t.jsx($,{display:"flex",flexDirection:"column",gap:.5,children:b}),t.jsx(tn,{disabled:y,id:e,onConfirm:c})]})}]},vr=()=>{const[e,n]=x.useState(!1),[i,o]=x.useState(),r=x.useRef(null),a=Se("confirm-dialog-modal"),c=x.useCallback(async g=>(o(g),n(!0),new Promise(u=>{r.current=u})),[]),s=x.useCallback(()=>{var g;n(!1),o(void 0),(g=r.current)==null||g.call(r,!0)},[]),d=x.useCallback(()=>{var g;n(!1),o(void 0),(g=r.current)==null||g.call(r,!1)},[]);return x.useEffect(()=>{a.setIsOpen(e)},[e,a]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:u})=>t.jsxs(rt,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(i==null?void 0:i.id)??"modal-confirm",onClick:s,text:"Confirm"},description:i==null?void 0:i.message,id:g,modalRef:{...a,close:d},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,u]}),confirm:c}},kr=2e3,Cr=({content:e})=>{const[n,i]=x.useState("Copy"),o=x.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{i("Copied"),setTimeout(()=>{i("Copy")},kr)}).catch(()=>{i("Failed to copy")})},[e]);return t.jsx(M,{icon:"copy",iconSize:"xs",iconType:"fa-light",onClick:o,tooltip:n,variant:"ghost"})},Sr=l.st.ul`
1968
1968
  ${({theme:e})=>`
1969
1969
  align-items: flex-start;
1970
1970
  border-radius: ${e.spacing[.25]};
@@ -2047,7 +2047,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2047
2047
  overflow: hidden auto;
2048
2048
  width: 100%;
2049
2049
  `}
2050
- `,Lr=({alert:e,buttonAlignment:n,cancelButton:i,children:o,confirmButton:r,defaultDisabled:a=!0,id:c="modal-confirm",maxButtonWidth:s="392px",mode:d,onSubmit:p,padding:g=!0,showButtons:u=!0,yupSchema:f,...h})=>{const y=l.Je(),b=l.useForm({...h,mode:d??"all",resolver:f?l.o(f):void 0}),j=u?`calc(100% - ${e?"139px":"83px"})`:"100%",w=g?1.5:0;return t.jsx(l.FormProvider,{...b,children:t.jsx(Dr,{onSubmit:b.handleSubmit(p),children:t.jsxs($,{scroll:"y",width:"100%",children:[t.jsx($,{borderRadius:`0 0 ${y.spacing[.25]} ${y.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:j,pb:w,pt:0,px:w,scroll:"y",children:o}),u&&t.jsxs($,{borderRadius:`0 0 ${y.spacing[.25]} ${y.spacing[.25]}`,borderTop:`1px solid ${y.palette.gray[200]}`,display:"flex",flexDirection:n?"unset":"column",gap:.625,justify:n??"stretch",position:"sticky",px:1.25,py:1.25,children:[e,t.jsxs($,{display:"flex",gap:.75,maxWidth:s,children:[i?t.jsx(P,{icon:i.icon,id:`${c}-cancel`,justify:"center",onClick:i.onClick,type:"reset",variant:"tertiary",width:"100%",children:i.label??"Cancel"}):void 0,t.jsx(P,{disabled:((r==null?void 0:r.disabled)??!1)||b.formState.isSubmitting||a&&!b.formState.isDirty,icon:r==null?void 0:r.icon,id:c,justify:"center",type:"submit",width:"100%",children:(r==null?void 0:r.label)??"Confirm"})]})]})]})})})},Ar=l.st(ke)`
2050
+ `,Lr=({alert:e,buttonAlignment:n,cancelButton:i,children:o,confirmButton:r,defaultDisabled:a=!0,id:c="modal-confirm",maxButtonWidth:s="392px",mode:d,onSubmit:p,padding:g=!0,showButtons:u=!0,yupSchema:f,...h})=>{const y=l.Je(),b=l.useForm({...h,mode:d??"all",resolver:f?l.o(f):void 0});function m(k){k.stopPropagation(),b.handleSubmit(p)(k)}const w=u?`calc(100% - ${e?"139px":"83px"})`:"100%",j=g?1.5:0;return t.jsx(l.FormProvider,{...b,children:t.jsx(Dr,{onSubmit:m,children:t.jsxs($,{scroll:"y",width:"100%",children:[t.jsx($,{borderRadius:`0 0 ${y.spacing[.25]} ${y.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:w,pb:j,pt:0,px:j,scroll:"y",children:o}),u&&t.jsxs($,{borderRadius:`0 0 ${y.spacing[.25]} ${y.spacing[.25]}`,borderTop:`1px solid ${y.palette.gray[200]}`,display:"flex",flexDirection:n?"unset":"column",gap:.625,justify:n??"stretch",position:"sticky",px:1.25,py:1.25,children:[e,t.jsxs($,{display:"flex",gap:.75,maxWidth:s,children:[i?t.jsx(P,{icon:i.icon,id:`${c}-cancel`,justify:"center",onClick:i.onClick,type:"reset",variant:"tertiary",width:"100%",children:i.label??"Cancel"}):void 0,t.jsx(P,{disabled:((r==null?void 0:r.disabled)??!1)||b.formState.isSubmitting||a&&!b.formState.isDirty,icon:r==null?void 0:r.icon,id:c,justify:"center",type:"submit",width:"100%",children:(r==null?void 0:r.label)??"Confirm"})]})]})]})})})},Ar=l.st(ke)`
2051
2051
  display: grid;
2052
2052
  gap: ${({$gap:e=1.25})=>`${e}rem`};
2053
2053
  grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
@@ -2101,7 +2101,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2101
2101
  background-color: ${e.palette.gray[100]};
2102
2102
  }
2103
2103
  `}
2104
- `,yn=({isSelected:e=!1,label:n,onSelect:i})=>{const o=l.Je(),r=x.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(at,{$isSelected:e,onClick:r,children:[e?t.jsx(E,{icon:"check",iconColor:o.palette.gray[800],iconSize:"xs"}):null,t.jsx(z,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},Or=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:o,onClose:r,selectedItem:a,title:c,variant:s})=>{const d=l.Je(),[p,g]=x.useState(n),[u,f]=x.useState(""),h=x.useCallback(m=>{g(j=>j.filter(w=>String(w.name).toLowerCase().includes(m.toLocaleLowerCase())))},[g]),y=x.useCallback(m=>{m.currentTarget&&(f(m.currentTarget.value),h(m.currentTarget.value))},[f,h]);x.useEffect(()=>{g(n),h(u)},[n,h,u]);const b=t.jsx($,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx($,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(Mr,{$itemsLength:p.length,children:[t.jsxs($,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(z,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:c}),t.jsx(M,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx($,{mt:1,children:t.jsx(ae,{onInput:y,placeholder:"Search"})}),t.jsx(re,{mb:1,mt:1}),t.jsxs($,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[s==="organization-selector"?t.jsx(at,{onClick:i,children:t.jsxs($,{alignItems:"center",display:"flex",children:[t.jsx(E,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(z,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,p.map(m=>t.jsx(yn,{isSelected:a.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:o},m.name))]})]})})});return e?se.createPortal(b,document.body):t.jsx("div",{})},Wr=({description:e,height:n="auto",leftIconName:i,children:o,rightIconName:r,title:a,tooltipId:c,tooltipTip:s,tooltipPlace:d="bottom",variant:p="centered",width:g="318px"})=>{const u=l.Je(),f=p==="centered",h=c&&t.jsx(U,{icon:r??i,iconColor:u.palette.gray[800],id:c,place:d,tip:s});return t.jsxs($,{alignItems:f?"center":"flex-start",bgColor:u.palette.gray[50],border:`1px solid ${u.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:f?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:g,children:[t.jsxs($,{alignItems:"center",display:"flex",gap:.5,children:[f||l.lodashExports.isUndefined(i)?void 0:h,t.jsx(z,{color:f?u.palette.gray[800]:u.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||l.lodashExports.isUndefined(r)?void 0:h]}),t.jsxs($,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!l.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[l.lodashExports.isUndefined(a)?void 0:t.jsx(K,{fontWeight:"bold",size:"md",children:a}),o]}),f&&!l.lodashExports.isUndefined(r)?h:void 0]})]})},Hr=({actions:e,children:n,header:i,title:o,tabs:r,footer:a})=>{const c=l.Je();return t.jsxs($,{alignItems:"flex-start",bgColor:c.palette.white,borderLeft:`1px solid ${c.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs($,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${c.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(z,{color:c.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:o}),i]}),e&&t.jsx($,{display:"flex",gap:.25,children:e.map(({icon:s,onClick:d},p)=>t.jsx(M,{icon:s??"paper-plane",iconColor:c.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${p}-${s}`))})]}),t.jsx($,{display:"flex",pt:.25,width:"100%",children:t.jsx(ot,{items:r})}),t.jsx($,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),a&&t.jsx($,{alignSelf:"stretch",borderTop:`1px solid ${c.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:a.map(({icon:s,text:d,onClick:p},g)=>t.jsx(P,{icon:s,onClick:p,variant:g===0?"primary":"tertiary",width:"100%",children:d},`${g}-${d}`))})]})},Br=l.st.span`
2104
+ `,yn=({isSelected:e=!1,label:n,onSelect:i})=>{const o=l.Je(),r=x.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(at,{$isSelected:e,onClick:r,children:[e?t.jsx(E,{icon:"check",iconColor:o.palette.gray[800],iconSize:"xs"}):null,t.jsx(z,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},Or=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:o,onClose:r,selectedItem:a,title:c,variant:s})=>{const d=l.Je(),[p,g]=x.useState(n),[u,f]=x.useState(""),h=x.useCallback(m=>{g(v=>v.filter(w=>String(w.name).toLowerCase().includes(m.toLocaleLowerCase())))},[g]),y=x.useCallback(m=>{m.currentTarget&&(f(m.currentTarget.value),h(m.currentTarget.value))},[f,h]);x.useEffect(()=>{g(n),h(u)},[n,h,u]);const b=t.jsx($,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx($,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(Mr,{$itemsLength:p.length,children:[t.jsxs($,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(z,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:c}),t.jsx(M,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx($,{mt:1,children:t.jsx(ae,{onInput:y,placeholder:"Search"})}),t.jsx(re,{mb:1,mt:1}),t.jsxs($,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[s==="organization-selector"?t.jsx(at,{onClick:i,children:t.jsxs($,{alignItems:"center",display:"flex",children:[t.jsx(E,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(z,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,p.map(m=>t.jsx(yn,{isSelected:a.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:o},m.name))]})]})})});return e?se.createPortal(b,document.body):t.jsx("div",{})},Wr=({description:e,height:n="auto",leftIconName:i,children:o,rightIconName:r,title:a,tooltipId:c,tooltipTip:s,tooltipPlace:d="bottom",variant:p="centered",width:g="318px"})=>{const u=l.Je(),f=p==="centered",h=c&&t.jsx(U,{icon:r??i,iconColor:u.palette.gray[800],id:c,place:d,tip:s});return t.jsxs($,{alignItems:f?"center":"flex-start",bgColor:u.palette.gray[50],border:`1px solid ${u.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:f?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:g,children:[t.jsxs($,{alignItems:"center",display:"flex",gap:.5,children:[f||l.lodashExports.isUndefined(i)?void 0:h,t.jsx(z,{color:f?u.palette.gray[800]:u.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||l.lodashExports.isUndefined(r)?void 0:h]}),t.jsxs($,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!l.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[l.lodashExports.isUndefined(a)?void 0:t.jsx(K,{fontWeight:"bold",size:"md",children:a}),o]}),f&&!l.lodashExports.isUndefined(r)?h:void 0]})]})},Hr=({actions:e,children:n,header:i,title:o,tabs:r,footer:a})=>{const c=l.Je();return t.jsxs($,{alignItems:"flex-start",bgColor:c.palette.white,borderLeft:`1px solid ${c.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs($,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${c.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(z,{color:c.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:o}),i]}),e&&t.jsx($,{display:"flex",gap:.25,children:e.map(({icon:s,onClick:d},p)=>t.jsx(M,{icon:s??"paper-plane",iconColor:c.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${p}-${s}`))})]}),t.jsx($,{display:"flex",pt:.25,width:"100%",children:t.jsx(ot,{items:r})}),t.jsx($,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),a&&t.jsx($,{alignSelf:"stretch",borderTop:`1px solid ${c.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:a.map(({icon:s,text:d,onClick:p},g)=>t.jsx(P,{icon:s,onClick:p,variant:g===0?"primary":"tertiary",width:"100%",children:d},`${g}-${d}`))})]})},Br=l.st.span`
2105
2105
  ${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
2106
2106
  background-color: ${n};
2107
2107
  border-radius: 5px;
@@ -2267,7 +2267,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2267
2267
  &::-webkit-inner-spin-button {
2268
2268
  opacity: 1;
2269
2269
  }
2270
- `,da=x.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:o=0,max:r,min:a,name:c,onEnter:s,tooltipMessage:d,...p},g){const u=i<0?0:i,[f,h]=x.useState(Number(o).toFixed(u)),y=x.useCallback(j=>{const w=l.lodashExports.toNumber(j.target.value);j.target.value.endsWith(".")?h(j.target.value):w>=Number(a)&&w<=Number(r)&&(h(String(w)),n&&s(l.lodashExports.toNumber(w.toFixed(u)))),j.stopPropagation()},[n,u,r,a,s]),b=x.useCallback(j=>{j.currentTarget.contains(j.relatedTarget)||h(Number(o).toFixed(u)),j.stopPropagation()},[u,o]),m=x.useCallback(j=>{j.stopPropagation(),j.key==="Enter"&&!l.lodashExports.isEmpty(j.currentTarget.value)&&s(l.lodashExports.toNumber(j.currentTarget.value))},[s]);return t.jsx(la,{onBlur:b,tabIndex:-1,children:t.jsx(U,{id:"numberInputTooltip",tip:d,children:t.jsx(ca,{...p,"aria-label":c,"aria-valuemax":Number(r),"aria-valuemin":Number(a),"aria-valuenow":Number(f),max:r,min:a,name:c,onChange:y,onKeyUp:m,ref:g,step:10**-u,type:"number",value:f})})})}),pa={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Ve=({icon:e,label:n,onClick:i,onlyLabel:o=!1,provider:r="GitLab"})=>{const a=l.Je();return t.jsxs($,{alignItems:"center",bgColorHover:a.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:i,pb:.5,pl:.25,pr:.25,pt:.5,children:[o?!1:t.jsx($,{height:"24px",width:"24px",children:e===void 0?t.jsx(ee,{alt:`${r} Logo`,height:"100%",publicId:pa[r],width:"100%"}):t.jsx(E,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx($,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(z,{color:a.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:o?"break-spaces":"nowrap",wordWrap:"unset",children:n??r})})]})},ga=({align:e="end",buttonLabel:n="Add Credential",children:i,id:o,manualOption:r,providers:a})=>{const c=l.Je(),[s,d]=x.useState(!1),p=x.useRef(null);ne(p.current,()=>{d(!1)},!0);const g=x.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),u=x.useCallback(()=>{d(h=>!h)},[d]),f=x.useCallback(h=>y=>{var b;(b=a[h])==null||b.onClick(y),d(!1)},[a]);return t.jsxs($,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(P,{icon:"plus",onClick:u,variant:"primary",children:n}),t.jsxs($,{alignItems:"center",bgColor:"#fff",border:`1px solid ${c.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:o,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:s?"visible":"hidden",zIndex:10,children:[Object.keys(a).map(h=>t.jsx(Ve,{onClick:f(h),provider:h},h)),r===void 0?void 0:t.jsx(Ve,{icon:"square-plus",label:r.label??"Add manually",onClick:g}),i]})]})},ua=l.st.div`
2270
+ `,da=x.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:o=0,max:r,min:a,name:c,onEnter:s,tooltipMessage:d,...p},g){const u=i<0?0:i,[f,h]=x.useState(Number(o).toFixed(u)),y=x.useCallback(v=>{const w=l.lodashExports.toNumber(v.target.value);v.target.value.endsWith(".")?h(v.target.value):w>=Number(a)&&w<=Number(r)&&(h(String(w)),n&&s(l.lodashExports.toNumber(w.toFixed(u)))),v.stopPropagation()},[n,u,r,a,s]),b=x.useCallback(v=>{v.currentTarget.contains(v.relatedTarget)||h(Number(o).toFixed(u)),v.stopPropagation()},[u,o]),m=x.useCallback(v=>{v.stopPropagation(),v.key==="Enter"&&!l.lodashExports.isEmpty(v.currentTarget.value)&&s(l.lodashExports.toNumber(v.currentTarget.value))},[s]);return t.jsx(la,{onBlur:b,tabIndex:-1,children:t.jsx(U,{id:"numberInputTooltip",tip:d,children:t.jsx(ca,{...p,"aria-label":c,"aria-valuemax":Number(r),"aria-valuemin":Number(a),"aria-valuenow":Number(f),max:r,min:a,name:c,onChange:y,onKeyUp:m,ref:g,step:10**-u,type:"number",value:f})})})}),pa={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Ve=({icon:e,label:n,onClick:i,onlyLabel:o=!1,provider:r="GitLab"})=>{const a=l.Je();return t.jsxs($,{alignItems:"center",bgColorHover:a.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:i,pb:.5,pl:.25,pr:.25,pt:.5,children:[o?!1:t.jsx($,{height:"24px",width:"24px",children:e===void 0?t.jsx(ee,{alt:`${r} Logo`,height:"100%",publicId:pa[r],width:"100%"}):t.jsx(E,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx($,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(z,{color:a.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:o?"break-spaces":"nowrap",wordWrap:"unset",children:n??r})})]})},ga=({align:e="end",buttonLabel:n="Add Credential",children:i,id:o,manualOption:r,providers:a})=>{const c=l.Je(),[s,d]=x.useState(!1),p=x.useRef(null);ne(p.current,()=>{d(!1)},!0);const g=x.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),u=x.useCallback(()=>{d(h=>!h)},[d]),f=x.useCallback(h=>y=>{var b;(b=a[h])==null||b.onClick(y),d(!1)},[a]);return t.jsxs($,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(P,{icon:"plus",onClick:u,variant:"primary",children:n}),t.jsxs($,{alignItems:"center",bgColor:"#fff",border:`1px solid ${c.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:o,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:s?"visible":"hidden",zIndex:10,children:[Object.keys(a).map(h=>t.jsx(Ve,{onClick:f(h),provider:h},h)),r===void 0?void 0:t.jsx(Ve,{icon:"square-plus",label:r.label??"Add manually",onClick:g}),i]})]})},ua=l.st.div`
2271
2271
  ${({theme:e})=>`
2272
2272
  height: ${e.spacing[1]};
2273
2273
  width: ${e.spacing[1]};
@@ -2393,7 +2393,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2393
2393
  flex-flow: row wrap;
2394
2394
  }
2395
2395
  `}
2396
- `,wa=150,ja=({label:e,minWidth:n=wa,state:i="not completed",stepNumber:o=1,title:r,onClick:a,orientation:c="horizontal"})=>{const s=l.Je(),d={completed:"circle-check",disabled:"circle-dashed",error:"circle-exclamation","in progress":"circle-half","not completed":"circle-dashed"},p=i==="disabled";return t.jsxs($,{display:"inline-flex",flexDirection:c==="horizontal"?"column":"row",minWidth:`${n}px`,children:[t.jsx(mn,{minWidth:n,orientation:c,percentage:p||i==="not completed"?0:100,rounded:!1,variant:i==="error"?"progressIndicatorError":"progressIndicator"}),t.jsxs($,{display:"flex",gap:.5,px:.5,py:.5,width:"100%",children:[i==="in progress"?t.jsx(wn,{onClick:a}):t.jsx($a,{$variant:i,clickable:!p,disabled:p,icon:d[i],iconColor:jn(i,s),iconSize:"xs",iconType:"fa-light",onClick:p?void 0:a}),t.jsxs($,{children:[t.jsx(z,{color:s.palette.gray[p?300:800],fontWeight:"bold",size:"sm",children:`${o}.${r}`}),e===void 0?null:t.jsx(z,{color:s.palette.gray[p?300:600],size:"xs",children:e})]})]})]})},va=150,ka=({children:e,orientation:n="horizontal",minWidth:i=va})=>{const o=x.Children.toArray(e),r=x.useMemo(()=>x.Children.count(e),[e]),a=x.useMemo(()=>r*i,[r,i]);return t.jsx(ma,{$minWidth:`${a}px`,$orientation:n,children:o.map(c=>x.cloneElement(c,{minWidth:i,orientation:n}))})},vn=({description:e="",highlightDescription:n="",mobile:i})=>{const o=l.Je(),r=i?"md":"lg",a=typeof n=="string",c=a?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(z,{display:"inline",lineSpacing:1.5,size:r,textAlign:i?"start":"center",children:a?t.jsxs(x.Fragment,{children:[t.jsx(ue,{color:o.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:n}),e]}):e.split(c).map((s,d)=>n.includes(s)?t.jsx(ue,{color:o.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:s},`${d+1}-bold`):s)}):t.jsx(z,{lineSpacing:1.5,size:r,textAlign:i?"start":"center",children:e})},Ca=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:o,confirmButton:r,container:a,description:c,highlightDescription:s="",image:d,maxWidth:p,mobile:g=!1,title:u,titleColor:f})=>{const h=l.Je(),{alt:y,src:b,width:m="77px",height:j="77px"}=d,w=x.useCallback(()=>{n==null||n.onClick()},[n]),v=x.useCallback(()=>{r==null||r.onClick()},[r]),k=t.jsx(K,{color:f,fontWeight:"bold",lineSpacing:g?1.5:2.5,mb:g?1.5:0,size:g?"sm":"lg",textAlign:g?"start":"center",children:u}),C=t.jsx(ee,{alt:y,height:j,publicId:b,width:m}),I=t.jsx($,{alignItems:"center","aria-label":u,"aria-modal":"true",bgColor:i?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:e?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:t.jsxs($,{bgColor:h.palette.white,border:`1px solid ${h.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:p,position:"relative",px:g?1.5:2.5,py:g?1.5:2.5,shadow:"lg",width:g?"335px":"100%",zIndex:11,children:[t.jsxs($,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[g?k:void 0,g?t.jsx($,{alignItems:"center",height:j,justify:"center",mr:0,children:t.jsx($,{bgColor:h.palette.gray[100],left:"0",position:"absolute",textAlign:"center",width:"100%",children:C})}):C,t.jsxs($,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[g?void 0:k,t.jsx(vn,{description:c,highlightDescription:s,mobile:g})]})]}),o&&t.jsx($,{mb:1,scroll:"y",children:t.jsx($,{height:"100%",children:o})}),t.jsxs($,{alignItems:"flex-start",display:"flex",gap:1,justify:g?"start":"center",children:[l.lodashExports.isObject(r)?t.jsx(P,{onClick:v,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,l.lodashExports.isObject(n)?t.jsx(P,{onClick:w,variant:(n==null?void 0:n.variant)??"tertiary",children:n==null?void 0:n.text},n==null?void 0:n.key):void 0]})]})});return e?se.createPortal(I,a??document.body):I},Sa=l.st.div.attrs({className:"comp-scroll-up"})`
2396
+ `,wa=150,ja=({label:e,minWidth:n=wa,state:i="not completed",stepNumber:o=1,title:r,onClick:a,orientation:c="horizontal"})=>{const s=l.Je(),d={completed:"circle-check",disabled:"circle-dashed",error:"circle-exclamation","in progress":"circle-half","not completed":"circle-dashed"},p=i==="disabled";return t.jsxs($,{display:"inline-flex",flexDirection:c==="horizontal"?"column":"row",minWidth:`${n}px`,children:[t.jsx(mn,{minWidth:n,orientation:c,percentage:p||i==="not completed"?0:100,rounded:!1,variant:i==="error"?"progressIndicatorError":"progressIndicator"}),t.jsxs($,{display:"flex",gap:.5,px:.5,py:.5,width:"100%",children:[i==="in progress"?t.jsx(wn,{onClick:a}):t.jsx($a,{$variant:i,clickable:!p,disabled:p,icon:d[i],iconColor:jn(i,s),iconSize:"xs",iconType:"fa-light",onClick:p?void 0:a}),t.jsxs($,{children:[t.jsx(z,{color:s.palette.gray[p?300:800],fontWeight:"bold",size:"sm",children:`${o}.${r}`}),e===void 0?null:t.jsx(z,{color:s.palette.gray[p?300:600],size:"xs",children:e})]})]})]})},va=150,ka=({children:e,orientation:n="horizontal",minWidth:i=va})=>{const o=x.Children.toArray(e),r=x.useMemo(()=>x.Children.count(e),[e]),a=x.useMemo(()=>r*i,[r,i]);return t.jsx(ma,{$minWidth:`${a}px`,$orientation:n,children:o.map(c=>x.cloneElement(c,{minWidth:i,orientation:n}))})},vn=({description:e="",highlightDescription:n="",mobile:i})=>{const o=l.Je(),r=i?"md":"lg",a=typeof n=="string",c=a?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(z,{display:"inline",lineSpacing:1.5,size:r,textAlign:i?"start":"center",children:a?t.jsxs(x.Fragment,{children:[t.jsx(ue,{color:o.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:n}),e]}):e.split(c).map((s,d)=>n.includes(s)?t.jsx(ue,{color:o.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:s},`${d+1}-bold`):s)}):t.jsx(z,{lineSpacing:1.5,size:r,textAlign:i?"start":"center",children:e})},Ca=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:o,confirmButton:r,container:a,description:c,highlightDescription:s="",image:d,maxWidth:p,mobile:g=!1,title:u,titleColor:f})=>{const h=l.Je(),{alt:y,src:b,width:m="77px",height:v="77px"}=d,w=x.useCallback(()=>{n==null||n.onClick()},[n]),j=x.useCallback(()=>{r==null||r.onClick()},[r]),k=t.jsx(K,{color:f,fontWeight:"bold",lineSpacing:g?1.5:2.5,mb:g?1.5:0,size:g?"sm":"lg",textAlign:g?"start":"center",children:u}),C=t.jsx(ee,{alt:y,height:v,publicId:b,width:m}),I=t.jsx($,{alignItems:"center","aria-label":u,"aria-modal":"true",bgColor:i?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:e?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:t.jsxs($,{bgColor:h.palette.white,border:`1px solid ${h.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:p,position:"relative",px:g?1.5:2.5,py:g?1.5:2.5,shadow:"lg",width:g?"335px":"100%",zIndex:11,children:[t.jsxs($,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[g?k:void 0,g?t.jsx($,{alignItems:"center",height:v,justify:"center",mr:0,children:t.jsx($,{bgColor:h.palette.gray[100],left:"0",position:"absolute",textAlign:"center",width:"100%",children:C})}):C,t.jsxs($,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[g?void 0:k,t.jsx(vn,{description:c,highlightDescription:s,mobile:g})]})]}),o&&t.jsx($,{mb:1,scroll:"y",children:t.jsx($,{height:"100%",children:o})}),t.jsxs($,{alignItems:"flex-start",display:"flex",gap:1,justify:g?"start":"center",children:[l.lodashExports.isObject(r)?t.jsx(P,{onClick:j,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,l.lodashExports.isObject(n)?t.jsx(P,{onClick:w,variant:(n==null?void 0:n.variant)??"tertiary",children:n==null?void 0:n.text},n==null?void 0:n.key):void 0]})]})});return e?se.createPortal(I,a??document.body):I},Sa=l.st.div.attrs({className:"comp-scroll-up"})`
2397
2397
  position: fixed;
2398
2398
  bottom: ${({bottom:e})=>e??"unset"};
2399
2399
  right: ${({right:e})=>e??"unset"};
@@ -2440,7 +2440,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2440
2440
  height: auto;
2441
2441
  }
2442
2442
  `}
2443
- `,La=({children:e,closeIconId:n="close-menu",isOpen:i,items:o,onClose:r,primaryButtonText:a,primaryOnClick:c,secondaryButtonText:s,secondaryOnClick:d,title:p})=>{const g=l.Je(),u=x.useRef(null),f=x.useCallback(h=>()=>{h(),r()},[r]);return x.useEffect(()=>{const h=["mousedown","touchstart"],y=b=>{var k;const m=b.target,j=document.getElementById("helpBtn"),w=document.getElementById("filter-btn"),v=(m===j||((j==null?void 0:j.contains(m))??!1)||m===w||(w==null?void 0:w.contains(m)))??!1;i&&!v&&!(((k=u.current)==null?void 0:k.contains(m))??!1)&&r()};return h.forEach(b=>{document.addEventListener(b,y,{passive:!0})}),()=>{h.forEach(b=>{document.removeEventListener(b,y)})}},[i,r]),t.jsx(l.LazyMotion,{features:l.domAnimation,children:t.jsx(Da,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:u,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs($,{height:"100%",position:"relative",children:[t.jsxs($,{alignItems:"center",bgColor:g.palette.white,borderBottom:"1px solid",borderColor:g.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[t.jsx(z,{color:g.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),t.jsx(M,{icon:"close",iconColor:g.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:r,px:.25,py:.25,variant:"ghost"})]}),t.jsxs($,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs($,{py:1.25,children:[(o??[]).map(({customBadge:h,description:y,icon:b,onClick:m,requiresUpgrade:j,title:w})=>t.jsx(kn,{customBadge:h,description:y,icon:b,onClick:f(m),requiresUpgrade:j,title:w},w)),e&&t.jsx($,{px:1.25,children:e})]}),a===void 0?void 0:t.jsxs($,{alignItems:"center",bgColor:g.palette.white,borderColor:g.palette.gray[200],borderTop:"1px solid",bottom:"0",display:"flex",gap:1.25,justify:"end",padding:[1.25,1.25,1.25,1.25],position:"sticky",width:"100%",zIndex:40,children:[s===void 0?void 0:t.jsx(P,{color:`${g.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:s}),t.jsx(P,{onClick:c,type:"submit",children:a})]})]})]})})})},Aa=(e,n)=>n>=50?`
2443
+ `,La=({children:e,closeIconId:n="close-menu",isOpen:i,items:o,onClose:r,primaryButtonText:a,primaryOnClick:c,secondaryButtonText:s,secondaryOnClick:d,title:p})=>{const g=l.Je(),u=x.useRef(null),f=x.useCallback(h=>()=>{h(),r()},[r]);return x.useEffect(()=>{const h=["mousedown","touchstart"],y=b=>{var k;const m=b.target,v=document.getElementById("helpBtn"),w=document.getElementById("filter-btn"),j=(m===v||((v==null?void 0:v.contains(m))??!1)||m===w||(w==null?void 0:w.contains(m)))??!1;i&&!j&&!(((k=u.current)==null?void 0:k.contains(m))??!1)&&r()};return h.forEach(b=>{document.addEventListener(b,y,{passive:!0})}),()=>{h.forEach(b=>{document.removeEventListener(b,y)})}},[i,r]),t.jsx(l.LazyMotion,{features:l.domAnimation,children:t.jsx(Da,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:u,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs($,{height:"100%",position:"relative",children:[t.jsxs($,{alignItems:"center",bgColor:g.palette.white,borderBottom:"1px solid",borderColor:g.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[t.jsx(z,{color:g.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),t.jsx(M,{icon:"close",iconColor:g.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:r,px:.25,py:.25,variant:"ghost"})]}),t.jsxs($,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs($,{py:1.25,children:[(o??[]).map(({customBadge:h,description:y,icon:b,onClick:m,requiresUpgrade:v,title:w})=>t.jsx(kn,{customBadge:h,description:y,icon:b,onClick:f(m),requiresUpgrade:v,title:w},w)),e&&t.jsx($,{px:1.25,children:e})]}),a===void 0?void 0:t.jsxs($,{alignItems:"center",bgColor:g.palette.white,borderColor:g.palette.gray[200],borderTop:"1px solid",bottom:"0",display:"flex",gap:1.25,justify:"end",padding:[1.25,1.25,1.25,1.25],position:"sticky",width:"100%",zIndex:40,children:[s===void 0?void 0:t.jsx(P,{color:`${g.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:s}),t.jsx(P,{onClick:c,type:"submit",children:a})]})]})]})})})},Aa=(e,n)=>n>=50?`
2444
2444
  ${e.palette.gray[200]} 50%,
2445
2445
  ${e.palette.primary[500]} 50.05%,
2446
2446
  ${e.palette.primary[500]} ${n}%,
@@ -2860,9 +2860,8 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2860
2860
  `,In=()=>{const e=l.Je(),{table:n}=x.useContext(q),{groupHeaders:i,tooltips:o}=(n==null?void 0:n.options.meta)??{},r=x.useCallback(p=>()=>{p.column.getCanSort()&&(n==null||n.setPageIndex(0),p.column.toggleSorting())},[n]),a=p=>g=>{p.getResizeHandler()(g)};if(i)return t.jsx("thead",{children:n==null?void 0:n.getHeaderGroups().map(p=>t.jsx("tr",{"data-testid":"row-headers",children:p.headers.map(g=>{var y;const{isPlaceholder:u}=g,f=u?g.subHeaders[0]:g;return l._.isUndefined(g.column.parent)&&g.depth>1?null:t.jsxs("th",{colSpan:f.colSpan,id:`header-${f.id}`,rowSpan:u?0:1,style:{borderRight:g.headerGroup.headers.indexOf(g)!==g.headerGroup.headers.length-1?"1px solid white":void 0,position:"relative",width:g.getSize()},children:[t.jsxs($,{alignItems:"center",bgColor:e.palette.gray[200],borderBottom:u?void 0:`1px solid${e.palette.white}`,display:"flex",gap:.25,height:u?"6rem":"3rem",lineSpacing:0,onClick:r(f),pl:.5,pt:u?3:0,whiteSpace:"nowrap",width:"100%",children:[l.flexRender(f.column.columnDef.header,f.getContext()),f.column.getCanSort()?t.jsx(Ye,{variant:f.column.getIsSorted()}):void 0,(o==null?void 0:o.map(b=>b.columnId).includes(f.id))??!1?t.jsx(U,{icon:"circle-info",id:f.id,place:"right",tip:((y=o==null?void 0:o.find(b=>b.columnId===f.id))==null?void 0:y.tip)??""}):void 0]}),f.column.getCanResize()&&t.jsx(vt,{onMouseDown:a(g)})]},f.id)})},p.id))});const[c,s]=(n==null?void 0:n.getHeaderGroups())??[],d=l.lodashExports.isNil(s)?c:s;return t.jsx("thead",{children:t.jsx("tr",{"data-testid":"row-headers",children:d.headers.map(p=>{var g;return t.jsxs("th",{id:`header-${p.id}`,style:{position:"relative",width:p.getSize()},children:[t.jsxs($,{alignItems:"center",bgColor:e.palette.gray[200],display:"flex",gap:.25,height:"3rem",lineSpacing:0,onClick:r(p),px:.5,whiteSpace:"nowrap",width:"100%",children:[l.flexRender(p.column.columnDef.header,p.getContext()),p.column.getCanSort()?t.jsx(Ye,{variant:p.column.getIsSorted()}):void 0,(o==null?void 0:o.map(u=>u.columnId).includes(p.id))??!1?t.jsx(U,{icon:"circle-info",id:p.id,place:"right",tip:((g=o==null?void 0:o.find(u=>u.columnId===p.id))==null?void 0:g.tip)??""}):void 0]}),p.column.getCanResize()&&t.jsx(vt,{onMouseDown:a(p)})]},p.id)})})})},Qa=l.st.div`
2861
2861
  align-items: center;
2862
2862
  display: flex;
2863
- overflow-wrap: anywhere;
2864
- width: ${({$width:e})=>e}px;
2865
- `,Tn=()=>{const e=l.Je(),{table:n}=x.useContext(q),{loading:i}=(n==null?void 0:n.options.meta)??{},o=x.useMemo(()=>{const{enableRowSelection:s,enableMultiRowSelection:d}=(n==null?void 0:n.options)??{};return s||d?1:0},[n==null?void 0:n.options]),r=x.useCallback((s,d)=>{if(d===o)return p=>{var g,u;p.stopPropagation(),(u=(g=n==null?void 0:n.options)==null?void 0:g.onRowClick)==null||u.call(g,s)}},[o,n]),a=x.useCallback(s=>d=>{d.stopPropagation(),s.toggleExpanded()},[]),c=x.useCallback(s=>{const{meta:d}=(n==null?void 0:n.options)??{},{onExpand:p=void 0}=d??{};return p?p(s):null},[n]);return i?t.jsx("tbody",{children:t.jsx("tr",{className:"row-loading","data-testid":"row-loading",children:t.jsx("td",{colSpan:(n==null?void 0:n.getVisibleLeafColumns().length)??0,children:t.jsx($,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:t.jsx(bn,{size:"md"})})})})}):(n==null?void 0:n.getRowModel().rows.length)===0?t.jsx("tbody",{children:t.jsx("tr",{className:"row-no-data","data-testid":"row-no-data",children:t.jsx("td",{colSpan:n.getVisibleLeafColumns().length+1,children:t.jsx(z,{color:e.palette.gray[800],size:"sm",textAlign:"center",children:"No data to display"})})})}):t.jsx("tbody",{children:n==null?void 0:n.getRowModel().rows.map(s=>t.jsxs(x.Fragment,{children:[t.jsx("tr",{"aria-expanded":s.getIsExpanded(),"data-testid":`row-${s.id}`,children:s.getVisibleCells().map((d,p)=>t.jsx("td",{className:p===o&&n.options.onRowClick?"clickable":"","data-testid":`cell-${d.id}`,onClick:r(s,p),children:t.jsxs(Qa,{$width:`${d.column.getSize()}`,children:[p===o&&s.getCanExpand()?t.jsx("button",{onClick:a(s),style:{cursor:"pointer",marginRight:"1rem"},children:t.jsx(E,{icon:s.getIsExpanded()?"angle-up":"angle-down",iconSize:"xs",iconType:"fa-light"})}):void 0,l.flexRender(d.column.columnDef.cell,d.getContext())]})},d.id))}),s.getIsExpanded()?t.jsx("tr",{"data-testid":`row-${s.id}-expand`,id:"description",children:t.jsx("td",{colSpan:100,children:c(s)})}):void 0]},s.id))})},En=()=>{const{containerRef:e,hidden:n,elementName:i,handleUnselectAll:o,onKeyDown:r,selected:a,tableSize:c,tableRef:s}=x.useContext(q);return t.jsxs("div",{ref:e,children:[n?void 0:t.jsx(qa,{$width:c,children:t.jsxs("div",{children:[t.jsx("b",{children:`${a} ${i} `}),`${a===1?"has":"have"} been selected. `,t.jsx("span",{onClick:o,onKeyDown:r,role:"link",tabIndex:0,children:"Unselect all"})]})}),t.jsxs("table",{ref:s,children:[t.jsx(In,{}),t.jsx(Tn,{})]})]})},kt=l.st(M)`
2863
+ width: 100%;
2864
+ `,Tn=()=>{const e=l.Je(),{table:n}=x.useContext(q),{loading:i}=(n==null?void 0:n.options.meta)??{},o=x.useMemo(()=>{const{enableRowSelection:s,enableMultiRowSelection:d}=(n==null?void 0:n.options)??{};return s||d?1:0},[n==null?void 0:n.options]),r=x.useCallback((s,d)=>{if(d===o)return p=>{var g,u;p.stopPropagation(),(u=(g=n==null?void 0:n.options)==null?void 0:g.onRowClick)==null||u.call(g,s)}},[o,n]),a=x.useCallback(s=>d=>{d.stopPropagation(),s.toggleExpanded()},[]),c=x.useCallback(s=>{const{meta:d}=(n==null?void 0:n.options)??{},{onExpand:p=void 0}=d??{};return p?p(s):null},[n]);return i?t.jsx("tbody",{children:t.jsx("tr",{className:"row-loading","data-testid":"row-loading",children:t.jsx("td",{colSpan:(n==null?void 0:n.getVisibleLeafColumns().length)??0,children:t.jsx($,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:t.jsx(bn,{size:"md"})})})})}):(n==null?void 0:n.getRowModel().rows.length)===0?t.jsx("tbody",{children:t.jsx("tr",{className:"row-no-data","data-testid":"row-no-data",children:t.jsx("td",{colSpan:n.getVisibleLeafColumns().length+1,children:t.jsx(z,{color:e.palette.gray[800],size:"sm",textAlign:"center",children:"No data to display"})})})}):t.jsx("tbody",{children:n==null?void 0:n.getRowModel().rows.map(s=>t.jsxs(x.Fragment,{children:[t.jsx("tr",{"aria-expanded":s.getIsExpanded(),"data-testid":`row-${s.id}`,children:s.getVisibleCells().map((d,p)=>t.jsx("td",{className:p===o&&n.options.onRowClick?"clickable":"","data-testid":`cell-${d.id}`,onClick:r(s,p),children:t.jsxs(Qa,{children:[p===o&&s.getCanExpand()?t.jsx("button",{onClick:a(s),style:{cursor:"pointer",marginRight:"1rem"},children:t.jsx(E,{icon:s.getIsExpanded()?"angle-up":"angle-down",iconSize:"xs",iconType:"fa-light"})}):void 0,l.flexRender(d.column.columnDef.cell,d.getContext())]})},d.id))}),s.getIsExpanded()?t.jsx("tr",{"data-testid":`row-${s.id}-expand`,id:"description",children:t.jsx("td",{colSpan:100,children:c(s)})}):void 0]},s.id))})},En=()=>{const{containerRef:e,hidden:n,elementName:i,handleUnselectAll:o,onKeyDown:r,selected:a,tableSize:c,tableRef:s}=x.useContext(q);return t.jsxs("div",{ref:e,children:[n?void 0:t.jsx(qa,{$width:c,children:t.jsxs("div",{children:[t.jsx("b",{children:`${a} ${i} `}),`${a===1?"has":"have"} been selected. `,t.jsx("span",{onClick:o,onKeyDown:r,role:"link",tabIndex:0,children:"Unselect all"})]})}),t.jsxs("table",{ref:s,children:[t.jsx(In,{}),t.jsx(Tn,{})]})]})},kt=l.st(M)`
2866
2865
  ${({theme:e,$padding:n})=>`
2867
2866
  background-color: ${e.palette.white};
2868
2867
  border: 1px solid ${e.palette.gray[200]};
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../components-p_ZlJof3.js");exports.useCarousel=e.useCarousel;exports.useClickOutside=e.useClickOutside;exports.useCloudinaryImage=e.useCloudinaryImage;exports.useColumnsModal=e.useColumnsModal;exports.useDebouncedCallback=e.useDebouncedCallback;exports.useModal=e.useModal;exports.useSearch=e.useSearch;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../components-CfMBZf1Z.js");exports.useCarousel=e.useCarousel;exports.useClickOutside=e.useClickOutside;exports.useCloudinaryImage=e.useCloudinaryImage;exports.useColumnsModal=e.useColumnsModal;exports.useDebouncedCallback=e.useDebouncedCallback;exports.useModal=e.useModal;exports.useSearch=e.useSearch;