@fluidattacks/design 3.17.0-pr-01 → 3.17.0-pr-03

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 (140) 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/confirm-dialog/index.js +1 -1
  21. package/dist/components/container/index.js +1 -1
  22. package/dist/components/divider/index.js +1 -1
  23. package/dist/components/dropdown/index.js +1 -1
  24. package/dist/components/empty-state/empty-button/index.js +1 -1
  25. package/dist/components/empty-state/index.js +1 -1
  26. package/dist/components/file-preview/index.js +1 -1
  27. package/dist/components/form/index.js +1 -1
  28. package/dist/components/form/inner-form/index.js +1 -1
  29. package/dist/components/grid-container/index.js +1 -1
  30. package/dist/components/group-selector/index.js +1 -1
  31. package/dist/components/group-selector/option-container/index.js +1 -1
  32. package/dist/components/icon/index.js +1 -1
  33. package/dist/components/icon-button/index.js +1 -1
  34. package/dist/components/indicator-card/index.js +1 -1
  35. package/dist/components/info-sidebar/index.js +1 -1
  36. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  37. package/dist/components/inputs/fields/combobox/index.js +1 -1
  38. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  39. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  40. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  41. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  42. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  43. package/dist/components/inputs/fields/date/index.js +1 -1
  44. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  45. package/dist/components/inputs/fields/date-range/index.js +1 -1
  46. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  47. package/dist/components/inputs/fields/date-time/index.js +1 -1
  48. package/dist/components/inputs/fields/editable/index.js +1 -1
  49. package/dist/components/inputs/fields/input/index.js +1 -1
  50. package/dist/components/inputs/fields/input-array/field/index.js +1 -1
  51. package/dist/components/inputs/fields/input-array/index.js +1 -1
  52. package/dist/components/inputs/fields/input-file/index.js +1 -1
  53. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  54. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  55. package/dist/components/inputs/fields/number/index.js +1 -1
  56. package/dist/components/inputs/fields/number-range/index.js +1 -1
  57. package/dist/components/inputs/fields/phone/index.js +1 -1
  58. package/dist/components/inputs/fields/text-area/index.js +1 -1
  59. package/dist/components/inputs/index.js +1 -1
  60. package/dist/components/inputs/label/index.js +1 -1
  61. package/dist/components/inputs/outline-container/index.js +1 -1
  62. package/dist/components/inputs/utils/action-button/index.js +1 -1
  63. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  64. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  65. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  66. package/dist/components/inputs/utils/dialog/index.js +1 -1
  67. package/dist/components/inputs/utils/number-field/index.js +1 -1
  68. package/dist/components/inputs/utils/popover/index.js +1 -1
  69. package/dist/components/layout/categories/buttons/index.js +1 -1
  70. package/dist/components/layout/categories/column/index.js +1 -1
  71. package/dist/components/layout/categories/gap/index.js +1 -1
  72. package/dist/components/layout/categories/row/index.js +1 -1
  73. package/dist/components/layout/index.js +1 -1
  74. package/dist/components/link/index.js +1 -1
  75. package/dist/components/list-item/index.js +1 -1
  76. package/dist/components/little-flag/index.js +1 -1
  77. package/dist/components/loading/index.js +1 -1
  78. package/dist/components/logo/index.js +1 -1
  79. package/dist/components/lottie/index.js +1 -1
  80. package/dist/components/menu/index.js +1 -1
  81. package/dist/components/message-banner/index.js +1 -1
  82. package/dist/components/modal/columns-modal/index.js +1 -1
  83. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  84. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  85. package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
  86. package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
  87. package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
  88. package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
  89. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
  90. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
  91. package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
  92. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  93. package/dist/components/modal/filters-modal/index.js +1 -1
  94. package/dist/components/modal/footer/index.js +1 -1
  95. package/dist/components/modal/header/index.js +1 -1
  96. package/dist/components/modal/index.js +1 -1
  97. package/dist/components/modal/modal-confirm/index.js +1 -1
  98. package/dist/components/notification/index.js +1 -1
  99. package/dist/components/notification-sign/index.js +1 -1
  100. package/dist/components/number-input/index.js +1 -1
  101. package/dist/components/oauth-selector/index.js +1 -1
  102. package/dist/components/oauth-selector/option-container/index.js +1 -1
  103. package/dist/components/plan-card/index.js +1 -1
  104. package/dist/components/plan-card/recommended-tag/index.js +1 -1
  105. package/dist/components/pop-up/description/index.js +1 -1
  106. package/dist/components/pop-up/index.js +1 -1
  107. package/dist/components/premium-feature/index.js +1 -1
  108. package/dist/components/priority-score/index.js +1 -1
  109. package/dist/components/progress-bar/index.js +1 -1
  110. package/dist/components/radio-button/index.js +1 -1
  111. package/dist/components/scroll-button/index.js +1 -1
  112. package/dist/components/search/index.js +1 -1
  113. package/dist/components/severity-badge/index.js +1 -1
  114. package/dist/components/severity-overview/badge/index.js +1 -1
  115. package/dist/components/severity-overview/index.js +1 -1
  116. package/dist/components/show-on-hover/index.js +1 -1
  117. package/dist/components/slide-out-menu/index.js +1 -1
  118. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  119. package/dist/components/slider/index.js +1 -1
  120. package/dist/components/slider/thumb/index.js +1 -1
  121. package/dist/components/step-lapse/index.js +1 -1
  122. package/dist/components/table-button/index.js +1 -1
  123. package/dist/components/tabs/index.js +1 -1
  124. package/dist/components/tabs/tab/index.js +1 -1
  125. package/dist/components/tag/index.js +1 -1
  126. package/dist/components/timeline/card/index.js +1 -1
  127. package/dist/components/timeline/index.js +1 -1
  128. package/dist/components/toggle/index.js +1 -1
  129. package/dist/components/toggle-buttons/index.js +1 -1
  130. package/dist/components/tooltip/index.js +1 -1
  131. package/dist/components/tour/index.js +1 -1
  132. package/dist/components/typography/heading/index.js +1 -1
  133. package/dist/components/typography/index.js +1 -1
  134. package/dist/components/typography/span/index.js +1 -1
  135. package/dist/components/typography/text/index.js +1 -1
  136. package/dist/{components-6CEUnocp.js → components-BMk_MCrN.js} +23 -23
  137. package/dist/{components-Ccwsx3Cd.mjs → components-C25SNAU_.mjs} +355 -355
  138. package/dist/hooks/index.js +1 -1
  139. package/dist/index.js +1 -1
  140. package/package.json +1 -1
@@ -16,7 +16,7 @@
16
16
  `},Mn=e=>e.includes("x")?"overflow-x: auto;":"",On=e=>e.includes("y")?"overflow-y: auto;":"",$e=e=>{const n=e.scroll?`
17
17
  ${Mn(e.scroll)}
18
18
  ${On(e.scroll)}
19
- `:"",i=N("visibility",e.visibility),r=N("display",e.display),a=N("height",e.height),o=N("width",e.width),l=N("max-height",e.maxHeight),c=N("max-width",e.maxWidth),d=N("min-height",e.minHeight),p=N("min-width",e.minWidth),g=N("box-shadow",e.shadow?I.shadows[e.shadow]:void 0),u=N("gap",e.gap===void 0?void 0:I.spacing[e.gap]),x=N("background-color",e.bgColor),h=N("background",e.bgGradient),b=N("flex-direction",e.flexDirection),$=N("flex-grow",e.flexGrow),w=N("justify-content",e.justify),k=N("justify-self",e.justifySelf),m=N("align-items",e.alignItems),v=N("align-self",e.alignSelf),C=N("flex-wrap",e.wrap);return`
19
+ `:"",i=N("visibility",e.visibility),r=N("display",e.display),a=N("height",e.height),o=N("width",e.width),l=N("max-height",e.maxHeight),c=N("max-width",e.maxWidth),d=N("min-height",e.minHeight),p=N("min-width",e.minWidth),g=N("box-shadow",e.shadow?I.shadows[e.shadow]:void 0),u=N("gap",e.gap===void 0?void 0:I.spacing[e.gap]),x=N("background-color",e.bgColor),h=N("background",e.bgGradient),b=N("flex-direction",e.flexDirection),$=N("flex-grow",e.flexGrow),w=N("justify-content",e.justify),j=N("justify-self",e.justifySelf),m=N("align-items",e.alignItems),v=N("align-self",e.alignSelf),k=N("flex-wrap",e.wrap);return`
20
20
  ${n}
21
21
  ${i}
22
22
  ${r}
@@ -33,10 +33,10 @@
33
33
  ${b}
34
34
  ${$}
35
35
  ${w}
36
- ${k}
36
+ ${j}
37
37
  ${m}
38
38
  ${v}
39
- ${C}
39
+ ${k}
40
40
  `},ye=e=>{const n=N("color",e.color),i=N("font-family",e.fontFamily),r=N("font-size",e.fontSize),a=N("font-weight",e.fontWeight),o=N("line-spacing",e.letterSpacing),l=N("line-height",e.lineSpacing),c=N("text-align",e.textAlign),d=N("text-decoration",e.textDecoration),p=N("text-overflow",e.textOverflow),g=N("white-space",e.whiteSpace),u=N("word-break",e.wordBreak),x=N("word-wrap",e.wordWrap);return`
41
41
  ${n}
42
42
  ${i}
@@ -182,7 +182,7 @@
182
182
 
183
183
  ${i===void 0?"":`&::after { content: "${i}"; }`}
184
184
  `}
185
- `,U=f.forwardRef(function({bgGradient:n,children:i,className:r,color:a,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,overflow:u,size:x,sizeMd:h,sizeSm:b,textFill:$,whiteSpace:w,wordBreak:k,...m},v){return t.jsx(_n,{$bgGradient:n,$color:a,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$overflow:u,$size:x,$sizeMd:h,$sizeSm:b,$textFill:$,$whiteSpace:w,$wordBreak:k,className:r,ref:v,...m,children:i})}),pe=f.forwardRef(function({children:n,color:i,content:r,display:a,fontFamily:o,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,size:g,sizeMd:u,sizeSm:x,...h},b){return t.jsx(Jn,{$color:i,$content:r,$display:a,$fontFamily:o,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$size:g,$sizeMd:u,$sizeSm:x,ref:b,...h,children:n})}),z=f.forwardRef(function({bgGradient:n,children:i,className:r,color:a,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,overflow:u,size:x,sizeMd:h,sizeSm:b,textFill:$,whiteSpace:w,wordBreak:k,fontStyle:m,...v},C){return t.jsx(bt,{$bgGradient:n,$color:a,$display:o,$fontFamily:l,$fontStyle:m,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$overflow:u,$size:x,$sizeMd:h,$sizeSm:b,$textFill:$,$whiteSpace:w,$wordBreak:k,className:r,ref:C,...v,children:i})}),$t=({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(y,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[n,e.extraElement?t.jsx(y,{children:e.extraElement}):void 0]})},Un={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},Vn=s.st(Ye)`
185
+ `,U=f.forwardRef(function({bgGradient:n,children:i,className:r,color:a,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,overflow:u,size:x,sizeMd:h,sizeSm:b,textFill:$,whiteSpace:w,wordBreak:j,...m},v){return t.jsx(_n,{$bgGradient:n,$color:a,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$overflow:u,$size:x,$sizeMd:h,$sizeSm:b,$textFill:$,$whiteSpace:w,$wordBreak:j,className:r,ref:v,...m,children:i})}),pe=f.forwardRef(function({children:n,color:i,content:r,display:a,fontFamily:o,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,size:g,sizeMd:u,sizeSm:x,...h},b){return t.jsx(Jn,{$color:i,$content:r,$display:a,$fontFamily:o,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$size:g,$sizeMd:u,$sizeSm:x,ref:b,...h,children:n})}),z=f.forwardRef(function({bgGradient:n,children:i,className:r,color:a,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,overflow:u,size:x,sizeMd:h,sizeSm:b,textFill:$,whiteSpace:w,wordBreak:j,fontStyle:m,...v},k){return t.jsx(bt,{$bgGradient:n,$color:a,$display:o,$fontFamily:l,$fontStyle:m,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$overflow:u,$size:x,$sizeMd:h,$sizeSm:b,$textFill:$,$whiteSpace:w,$wordBreak:j,className:r,ref:k,...v,children:i})}),$t=({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(y,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[n,e.extraElement?t.jsx(y,{children:e.extraElement}):void 0]})},Un={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},Vn=s.st(Ye)`
186
186
  ${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:r,$rotation:a,$size:o,$secondaryColor:l})=>{const c=r?"":"brightness(50%)",d=r??"";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
- `,V=({children:e,disabled:n=!1,display:i="inline-block",height:r,icon:a,iconColor:o,iconSize:l,id:c,maxWidth:d,nodeTip:p,place:g="bottom",tip:u="",title:x="",hide:h=u===""&&x===""&&p===void 0,width:b})=>{const $=s.Je(),[w,k]=f.useState(!1),{refs:m,floatingStyles:v,context:C}=s.useFloating({middleware:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10}),s.shift()],onOpenChange:k,open:w,placement:g,whileElementsMounted:s.autoUpdate}),S=s.useHover(C,{delay:{close:0,open:500},move:!1}),E=s.useFocus(C),F=s.useRole(C,{role:a?"label":"tooltip"}),{getReferenceProps:j,getFloatingProps:R}=s.useInteractions([S,E,F]);return n?t.jsx(f.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(ei,{...j(),display:i,height:r,id:c,ref:m.setReference,width:b,children:a?t.jsx(T,{clickable:!0,disabled:n,icon:a,iconColor:o,iconSize:l??"xxs",iconType:w?"fa-solid":"fa-light"}):e}),w&&!h&&ae.createPortal(t.jsxs(ti,{...R(),$maxWidth:d,id:`floating-${c}`,ref:m.setFloating,style:v,children:[s.lodashExports.isEmpty(x)?void 0:t.jsx(z,{color:$.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:x}),s.lodashExports.isEmpty(u)?void 0:t.jsx(z,{color:$.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:u}),s.lodashExports.isEmpty(p)?void 0:p]}),document.getElementById("root")??document.body)]})},M=f.forwardRef(function({borderRadius:n,disabled:i,icon:r,iconColor:a,iconSize:o="xxs",iconTransform:l,iconType:c,id:d,justify:p="center",onClick:g,px:u,py:x,type:h="button",tooltip:b,tooltipPlace:$,value:w,variant:k="primary",...m},v){const C=t.jsx(Qn,{$variant:k,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:p,onClick:g,px:u,py:x,ref:v,type:h,value:w,...m,children:t.jsx(T,{clickable:!1,icon:r,iconColor:a,iconSize:o,iconTransform:l,iconType:c})}),E=(h+(k??"")+(d??r)).replace(/ /u,"_");return b===void 0?C:t.jsx(V,{id:`${E}-tooltip`,place:$,tip:b,children:C})}),ni=f.forwardRef(function({autoHide:n=!1,children:i,closable:r=!1,onTimeOut:a,show:o=!0,time:l=8,variant:c="error",id:d,...p},g){const[u,x]=f.useState(o),h=f.useCallback(()=>{x(!1)},[]);return f.useEffect(()=>{const b=setTimeout(()=>{a==null||a(!0),n&&h()},l*1e3);return()=>{clearTimeout(b)}},[n,h,l,a]),f.useEffect(()=>{x(o)},[o,x]),t.jsx(y,{display:u?"block":"none",ref:g,role:"alert",...p,children:t.jsxs(Kn,{$variant:c,id:d,children:[t.jsx(T,{clickable:!1,icon:Yn(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(Xn,{children:i}),r?t.jsx(M,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:h,px:.125,py:.125,variant:"ghost"}):void 0]})})}),ot=s.st.div`
421
+ `,V=({children:e,disabled:n=!1,display:i="inline-block",height:r,icon:a,iconColor:o,iconSize:l,id:c,maxWidth:d,nodeTip:p,place:g="bottom",tip:u="",title:x="",hide:h=u===""&&x===""&&p===void 0,width:b})=>{const $=s.Je(),[w,j]=f.useState(!1),{refs:m,floatingStyles:v,context:k}=s.useFloating({middleware:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10}),s.shift()],onOpenChange:j,open:w,placement:g,whileElementsMounted:s.autoUpdate}),S=s.useHover(k,{delay:{close:0,open:500},move:!1}),D=s.useFocus(k),F=s.useRole(k,{role:a?"label":"tooltip"}),{getReferenceProps:C,getFloatingProps:E}=s.useInteractions([S,D,F]);return n?t.jsx(f.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(ei,{...C(),display:i,height:r,id:c,ref:m.setReference,width:b,children:a?t.jsx(T,{clickable:!0,disabled:n,icon:a,iconColor:o,iconSize:l??"xxs",iconType:w?"fa-solid":"fa-light"}):e}),w&&!h&&ae.createPortal(t.jsxs(ti,{...E(),$maxWidth:d,id:`floating-${c}`,ref:m.setFloating,style:v,children:[s.lodashExports.isEmpty(x)?void 0:t.jsx(z,{color:$.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:x}),s.lodashExports.isEmpty(u)?void 0:t.jsx(z,{color:$.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:u}),s.lodashExports.isEmpty(p)?void 0:p]}),document.getElementById("root")??document.body)]})},M=f.forwardRef(function({borderRadius:n,disabled:i,icon:r,iconColor:a,iconSize:o="xxs",iconTransform:l,iconType:c,id:d,justify:p="center",onClick:g,px:u,py:x,type:h="button",tooltip:b,tooltipPlace:$,value:w,variant:j="primary",...m},v){const k=t.jsx(Qn,{$variant:j,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:p,onClick:g,px:u,py:x,ref:v,type:h,value:w,...m,children:t.jsx(T,{clickable:!1,icon:r,iconColor:a,iconSize:o,iconTransform:l,iconType:c})}),D=(h+(j??"")+(d??r)).replace(/ /u,"_");return b===void 0?k:t.jsx(V,{id:`${D}-tooltip`,place:$,tip:b,children:k})}),ni=f.forwardRef(function({autoHide:n=!1,children:i,closable:r=!1,onTimeOut:a,show:o=!0,time:l=8,variant:c="error",id:d,...p},g){const[u,x]=f.useState(o),h=f.useCallback(()=>{x(!1)},[]);return f.useEffect(()=>{const b=setTimeout(()=>{a==null||a(!0),n&&h()},l*1e3);return()=>{clearTimeout(b)}},[n,h,l,a]),f.useEffect(()=>{x(o)},[o,x]),t.jsx(y,{display:u?"block":"none",ref:g,role:"alert",...p,children:t.jsxs(Kn,{$variant:c,id:d,children:[t.jsx(T,{clickable:!1,icon:Yn(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(Xn,{children:i}),r?t.jsx(M,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:h,px:.125,py:.125,variant:"ghost"}):void 0]})})}),ot=s.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
  ${mt}
637
637
  `,li=s.st(Pe.Link)`
638
638
  ${mt}
639
- `,Z=({children:e,color:n,download:i,href:r,iconPosition:a="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=r.startsWith("https://"),p=t.jsx(T,{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(si,{$color:n,$variant:c,download:i,href:r,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[a==="left"?p:void 0,e,a==="right"?p:void 0]}):t.jsxs(li,{$variant:c,download:i,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:r,children:[l!==void 0&&a==="left"?p:void 0,e,l!==void 0&&a==="right"?p:void 0]})},G=({disabled:e,icon:n,iconColor:i="inherit",iconType:r="fa-light",id:a="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:p,priority:g="default",tagTitle:u="",tagLabel:x,variant:h="default"})=>{const b=x.length>25&&s.lodashExports.isEmpty(u+o),$=`${x.slice(0,25)}...`;return t.jsxs(pe,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(ai,{$fontSize:l,$variant:h,className:g,children:[n&&t.jsx(T,{icon:n,iconColor:i,iconSize:"xxs",iconType:r}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:u}),t.jsx("span",{children:b?$:x}),t.jsx("strong",{className:"w-full",children:o})]}),p?t.jsx(M,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:a,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(Z,{href:c,children:d})]})},ci=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(i)&&(i.opener=null)},L=f.forwardRef(function({children:n,disabled:i=!1,external:r=!1,fontSize:a,href:o,id:l,icon:c,iconColor:d,iconType:p,name:g,onClick:u,rightIcon:x,tag:h,type:b="button",tooltip:$,tooltipPlace:w="bottom",underline:k=!1,value:m,variant:v="primary",width:C,...S},E){const F=$!==void 0,j=`${l}-tooltip`,R=f.useCallback(()=>{o&&ci(o,r)},[r,o]),D=t.jsxs(yt,{$size:a,$variant:v,"aria-disabled":i,className:k?"underline":void 0,disabled:i,id:l,name:g,onClick:v==="link"?R:u,ref:E,type:b,value:m,width:C,...F?{"data-tooltip-id":j}:{},...S,children:[c!==void 0&&t.jsx(T,{icon:c,iconColor:d??void 0,iconSize:"xs",iconType:p??"fa-light"}),n,x||v==="link"?t.jsx(T,{icon:x??"arrow-right",iconSize:"xs",iconType:"fa-light"}):void 0,h===void 0?null:t.jsx(G,{tagLabel:h,variant:"default"})]});return F?t.jsx(V,{disabled:!F,id:j,place:w,tip:$,width:C,children:D}):D}),di=f.forwardRef(function({children:n,onClick:i,userName:r,showIcon:a=!1,showUsername:o=!1},l){const c=!!i;return t.jsx(y,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs(y,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[c?t.jsxs(L,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(ot,{children:r[0].toUpperCase()}),o?t.jsx(z,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:r.split(" ")[0]}):void 0,a?t.jsx(T,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs(y,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(ot,{children:r[0].toUpperCase()}),o?t.jsxs(z,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",r.split(" ")[0],"!"]}):void 0,a?t.jsx(T,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(ii,{children:n})]})})}),Te=({authorEmail:e,date:n,description:i,descriptionColor:r,id:a,title:o,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:p})=>{const g=s.Je();return t.jsxs(y,{width:"100%",children:[typeof o=="string"?t.jsx(z,{color:l??g.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:o}):o,t.jsxs(y,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(z,{color:r??g.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(z,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(z,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Author: ${e}`}),p&&t.jsx(V,{icon:"circle-info",id:a,tip:p})]})]})},st=s.st(y).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
639
+ `,Z=({children:e,color:n,download:i,href:r,iconPosition:a="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=r.startsWith("https://"),p=t.jsx(T,{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(si,{$color:n,$variant:c,download:i,href:r,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[a==="left"?p:void 0,e,a==="right"?p:void 0]}):t.jsxs(li,{$variant:c,download:i,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:r,children:[l!==void 0&&a==="left"?p:void 0,e,l!==void 0&&a==="right"?p:void 0]})},G=({disabled:e,icon:n,iconColor:i="inherit",iconType:r="fa-light",id:a="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:p,priority:g="default",tagTitle:u="",tagLabel:x,variant:h="default"})=>{const b=x.length>25&&s.lodashExports.isEmpty(u+o),$=`${x.slice(0,25)}...`;return t.jsxs(pe,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(ai,{$fontSize:l,$variant:h,className:g,children:[n&&t.jsx(T,{icon:n,iconColor:i,iconSize:"xxs",iconType:r}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:u}),t.jsx("span",{children:b?$:x}),t.jsx("strong",{className:"w-full",children:o})]}),p?t.jsx(M,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:a,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(Z,{href:c,children:d})]})},ci=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(i)&&(i.opener=null)},L=f.forwardRef(function({children:n,disabled:i=!1,external:r=!1,fontSize:a,href:o,id:l,icon:c,iconColor:d,iconType:p,name:g,onClick:u,rightIcon:x,tag:h,type:b="button",tooltip:$,tooltipPlace:w="bottom",underline:j=!1,value:m,variant:v="primary",width:k,...S},D){const F=$!==void 0,C=`${l}-tooltip`,E=f.useCallback(()=>{o&&ci(o,r)},[r,o]),R=t.jsxs(yt,{$size:a,$variant:v,"aria-disabled":i,className:j?"underline":void 0,disabled:i,id:l,name:g,onClick:v==="link"?E:u,ref:D,type:b,value:m,width:k,...F?{"data-tooltip-id":C}:{},...S,children:[c!==void 0&&t.jsx(T,{icon:c,iconColor:d??void 0,iconSize:"xs",iconType:p??"fa-light"}),n,x||v==="link"?t.jsx(T,{icon:x??"arrow-right",iconSize:"xs",iconType:"fa-light"}):void 0,h===void 0?null:t.jsx(G,{tagLabel:h,variant:"default"})]});return F?t.jsx(V,{disabled:!F,id:C,place:w,tip:$,width:k,children:R}):R}),di=f.forwardRef(function({children:n,onClick:i,userName:r,showIcon:a=!1,showUsername:o=!1},l){const c=!!i;return t.jsx(y,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs(y,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[c?t.jsxs(L,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(ot,{children:r[0].toUpperCase()}),o?t.jsx(z,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:r.split(" ")[0]}):void 0,a?t.jsx(T,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs(y,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(ot,{children:r[0].toUpperCase()}),o?t.jsxs(z,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",r.split(" ")[0],"!"]}):void 0,a?t.jsx(T,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(ii,{children:n})]})})}),Te=({authorEmail:e,date:n,description:i,descriptionColor:r,id:a,title:o,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:p})=>{const g=s.Je();return t.jsxs(y,{width:"100%",children:[typeof o=="string"?t.jsx(z,{color:l??g.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:o}):o,t.jsxs(y,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(z,{color:r??g.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(z,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(z,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Author: ${e}`}),p&&t.jsx(V,{icon:"circle-info",id:a,tip:p})]})]})},st=s.st(y).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(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},gi=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,pi(n)),wt=({alt:e,fileType:n,width:i="100%",opacity:r=0,src:a,height:o="auto",videoViewStatus:l})=>{const[c,d]=f.useState({start:!1,half:!1,end:!1}),p=f.useCallback(g=>{if(!l)return;const u=g.target,x=u.currentTime/u.duration*100;x>5&&x<50?(c.start||l("start"),d({start:!0,half:!1,end:!1})):x>=50&&x<99?(c.half||l("half"),d({start:!0,half:!0,end:!1})):x>=99?(c.end||l("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[l,c]);return n==="video"||gi(["webm"],a)?t.jsx(st,{$opacity:r,children:t.jsx(Z,{href:a,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:p,style:{height:o,width:i},children:[t.jsx("source",{src:a,type:"video/webm"}),a]})})}):t.jsx(st,{$opacity:r,children:t.jsx("img",{alt:e,src:a,style:{height:o,width:i}})})},ui=({alt:e,authorEmail:n,date:i,description:r,src:a,children:o,isEditing:l,onClick:c,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:u=!0,videoViewStatus:x})=>{const h=s.Je(),[b,$]=f.useState(!1),w=f.useCallback(()=>{$(!0)},[]),k=f.useCallback(()=>{$(!1)},[]);return t.jsxs(y,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:w,onLeave:k,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(y,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(f.Fragment,{children:[t.jsx(wt,{alt:e,fileType:g,height:"147px",opacity:b?.3:0,src:a,videoViewStatus:x,width:"100%"}),u?t.jsx(y,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(M,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),p?null:t.jsx(Te,{authorEmail:n,date:i,description:r,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:d})]})},xi=s.st.div`
654
+ `,pi=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},gi=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,pi(n)),wt=({alt:e,fileType:n,width:i="100%",opacity:r=0,src:a,height:o="auto",videoViewStatus:l})=>{const[c,d]=f.useState({start:!1,half:!1,end:!1}),p=f.useCallback(g=>{if(!l)return;const u=g.target,x=u.currentTime/u.duration*100;x>5&&x<50?(c.start||l("start"),d({start:!0,half:!1,end:!1})):x>=50&&x<99?(c.half||l("half"),d({start:!0,half:!0,end:!1})):x>=99?(c.end||l("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[l,c]);return n==="video"||gi(["webm"],a)?t.jsx(st,{$opacity:r,children:t.jsx(Z,{href:a,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:p,style:{height:o,width:i},children:[t.jsx("source",{src:a,type:"video/webm"}),a]})})}):t.jsx(st,{$opacity:r,children:t.jsx("img",{alt:e,src:a,style:{height:o,width:i}})})},ui=({alt:e,authorEmail:n,date:i,description:r,src:a,children:o,isEditing:l,onClick:c,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:u=!0,videoViewStatus:x})=>{const h=s.Je(),[b,$]=f.useState(!1),w=f.useCallback(()=>{$(!0)},[]),j=f.useCallback(()=>{$(!1)},[]);return t.jsxs(y,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:w,onLeave:j,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(y,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(f.Fragment,{children:[t.jsx(wt,{alt:e,fileType:g,height:"147px",opacity:b?.3:0,src:a,videoViewStatus:x,width:"100%"}),u?t.jsx(y,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(M,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),p?null:t.jsx(Te,{authorEmail:n,date:i,description:r,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:d})]})},xi=s.st.div`
655
655
  ${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:r="auto"})=>`
656
656
  display: flex;
657
657
  background-color: ${e.palette.white};
@@ -947,7 +947,7 @@
947
947
  fill: ${e.palette.white};
948
948
  }
949
949
  `}
950
- `,ie=f.forwardRef(function({checked:n,disabled:i=!1,label:r,name:a,onChange:o,onClick:l,onFocus:c,onKeyDown:d,tooltip:p,value:g,...u},x){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs($i,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":a,checked:n,"data-testid":r??g,disabled:i,id:a,name:a,onChange:o,onClick:l,onFocus:c,onKeyDown:d,ref:x,type:"checkbox",value:g,...u}),t.jsx(T,{disabled:i,icon:"check",iconSize:"sm"}),r??g]}),p===void 0?void 0:t.jsx(V,{icon:"circle-info",id:p,place:"right",tip:p})]})}),te=(e,n,i=!1,r)=>{f.useEffect(()=>{var o;const a=l=>{e&&!e.contains(l.target)&&!(r!=null&&r.contains(l.target))&&n()};return i?(document.addEventListener("mousedown",a,!0),()=>{document.removeEventListener("mousedown",a,!0)}):((o=document.getElementById("root"))==null||o.addEventListener("mousedown",a,!0),()=>{var l;(l=document.getElementById("root"))==null||l.removeEventListener("mousedown",a,!0)})},[i,e,r,n])},vt=({item:e,multiSelection:n,name:i,register:r,setInputValue:a,setValue:o,state:l,watch:c})=>{var S,E,F;const d=s.Je(),p=f.useRef(null),g=l.disabledKeys,u=Array.from(l.collection.getKeys()).filter(j=>!Array.from(g).includes(j)&&j!=="All"),{optionProps:x,isSelected:h,isFocused:b,isDisabled:$}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},l,p),w=[h?"selected":"",b?"focused":"",$?"disabled":""].join(" "),k=f.useCallback(j=>{a(""),o==null||o(`${i}Options`,""),j.currentTarget.checked&&(a(j.currentTarget.value),o==null||o(`${i}Options`,u))},[u,i,a,o]),m=f.useCallback(()=>{const j=c==null?void 0:c(`${i}Options`);console.log(j),s.isEqual(u,j)&&!Array.from(g).includes("All")?(o==null||o("checkAll","All vulnerabilities types"),a("All vulnerabilities types")):(o==null||o("checkAll",""),a((j==null?void 0:j.length)<=2?j.join(", "):`${j.slice(0,2).join(", ")+`, +${j.length-2} more`}`))},[g,u,i,a,o,c]),v=e.key==="All"?t.jsx(ie,{...r==null?void 0:r("checkAll",{onChange:k}),label:(S=e.rendered)==null?void 0:S.toString(),name:"checkAll",value:(E=e.rendered)==null?void 0:E.toString()}):t.jsx(ie,{...r==null?void 0:r(`${i}Options`,{onChange:m}),label:(F=e.rendered)==null?void 0:F.toString(),name:`${i}Options`,value:e.key.toString()}),C=n&&!$?v:t.jsx(z,{color:d.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered});return te(document.getElementsByClassName("dropdown")[0],()=>{n&&l.close()},!0,document.getElementById("combobox")),t.jsxs(bi,{...n?{}:x,$multiSelection:n,className:w,ref:p,children:[C,h&&!$&&!n?t.jsx(T,{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:r,helpLink:a,helpLinkText:o,helpText:l,label:c,loadingItems:d,name:p,multiSelection:g=!1,items:u,onBlur:x,onChange:h,placeholder:b,register:$,required:w,setValue:k,tooltip:m,value:v,watch:C,weight:S})=>{var rt;const E=s.Je(),F=n?void 0:r,j=(e==null?void 0:e.value)??v,[R,D]=f.useState(((rt=u.find(A=>A.value===j))==null?void 0:rt.name)??""),[P,Y]=f.useState(j),[K,ee]=f.useState(u),[W,O]=f.useState(!1),{contains:B}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),oe=f.useRef(null),Ae=f.useRef(null),Le=f.useRef(null),tt=f.useRef(null),nt=f.useRef(null),fn=f.useMemo(()=>u.toSorted((A,H)=>{const _=Array.from(i??[]),se=_.includes(A.value),at=_.includes(H.value);return se&&!at?1:!se&&at?-1:0}).map(A=>B(A.name,R)||W?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":A.value,textValue:A.tag,children:A.name},A.value):null),[B,i,R,u,W]),hn=f.useCallback(A=>{const H=A.split(/,|\s/u).slice(-1)[0].trim();D(g?H:A),A===""||A.endsWith(",")?O(!0):(O(!1),Y(_=>{const se=A===""?"":_;return e&&e.onChange(se),h&&h(A),se}),ee(u.filter(_=>B(_.name,g?H:A))))},[B,u,e,g,h]),bn=f.useCallback(A=>{var H;D(((H=u.find(_=>_.value===A))==null?void 0:H.name)??""),Y(A?String(A):""),e&&e.onChange(A),h&&h(A?String(A):""),ee(u)},[u,e,h]),it=f.useCallback(A=>{A.key==="Enter"&&A.preventDefault(),O(!1)},[]),$n=f.useCallback(()=>{x&&x(),e&&e.onBlur()},[e,x]),yn=f.useCallback(()=>{O(!0)},[]),X=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:g,allowsEmptyCollection:!0,disabledKeys:i,inputValue:R,items:K,menuTrigger:"focus",shouldCloseOnBlur:!g,selectedKey:P,onBlur:$n,onInputChange:hn,onKeyDown:it,onKeyUp:yn,onOpenChange(A,H){O(A&&(H==="manual"||H==="focus")),A&&setTimeout(()=>{var _;return(_=oe.current)==null?void 0:_.focus()},50)},onSelectionChange:g?void 0:bn,children:fn}),{buttonProps:mn,inputProps:wn,listBoxProps:vn}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:R,buttonRef:Ae,id:p,inputRef:oe,label:c??p,listBoxRef:Le,name:p,placeholder:b,popoverRef:nt},X),{listBoxProps:jn}=s.$c132121280ec012d$export$50eacbbf140a3141(vn,X,Le),{buttonProps:kn}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(mn,Ae);return f.useEffect(()=>{var A;if((d===!1||!j)&&!g){const H=((A=u.find(_=>_.value===j))==null?void 0:A.name)??"";D(H),Y(H)}},[j,u,d,g]),t.jsxs(J,{error:F,helpLink:a,helpLinkText:o,helpText:l,htmlFor:p,id:"combobox",label:c,required:w,tooltip:m,weight:S,children:[t.jsxs(Q,{className:`${n?"disabled":""} ${F?"error":""}`,ref:tt,children:[t.jsx("input",{...wn,"aria-invalid":F?"true":"false","aria-label":p,disabled:n,onKeyDown:it,ref:oe}),F?t.jsx(T,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:E.palette.error[500],iconSize:"xs"}):void 0,t.jsx(M,{...kn,className:"action",disabled:n,icon:X.isOpen&&!n?"chevron-up":"chevron-down",iconColor:E.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:Ae,type:"button",variant:"ghost"})]}),X.isOpen&&X.collection.size>0&&!n?t.jsx(je,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:nt,state:X,triggerRef:tt,children:t.jsx(hi,{...jn,$multiSelection:g&&!Array.from(i??[]).includes("All"),ref:Le,children:[...X.collection].map(A=>t.jsx(vt,{item:A,multiSelection:g,name:p,register:$,setInputValue:D,setValue:k,state:X,watch:C},A.key))})}):null]})},jt=({control:e,disabled:n=!1,disabledKeys:i,error:r,helpLink:a,helpLinkText:o,helpText:l,label:c,loadingItems:d,name:p,multiSelection:g,items:u,onBlur:x,onChange:h,placeholder:b,register:$,required:w,setValue:k,tooltip:m,value:v,watch:C,weight:S})=>e?t.jsx(s.Controller,{control:e,name:p,render:({field:E,fieldState:F})=>{var j;return t.jsx(We,{disabled:n,disabledKeys:i,error:(j=F.error)==null?void 0:j.message,field:E,helpLink:a,helpLinkText:o,helpText:l,items:u,label:c,loadingItems:d,multiSelection:g,name:p,onBlur:x,onChange:h,placeholder:b,register:$,required:w,setValue:k,tooltip:m,value:v,watch:C,weight:S})},rules:{required:w}}):t.jsx(We,{disabled:n,disabledKeys:i,error:r,helpLink:a,helpLinkText:o,helpText:l,items:u,label:c,loadingItems:d,multiSelection:g,name:p,onBlur:x,onChange:h,placeholder:b,required:w,tooltip:m,value:v,weight:S}),yi=s.st.div`
950
+ `,ie=f.forwardRef(function({checked:n,disabled:i=!1,label:r,name:a,onChange:o,onClick:l,onFocus:c,onKeyDown:d,tooltip:p,value:g,...u},x){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs($i,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":a,checked:n,"data-testid":r??g,disabled:i,id:a,name:a,onChange:o,onClick:l,onFocus:c,onKeyDown:d,ref:x,type:"checkbox",value:g,...u}),t.jsx(T,{disabled:i,icon:"check",iconSize:"sm"}),r??g]}),p===void 0?void 0:t.jsx(V,{icon:"circle-info",id:p,place:"right",tip:p})]})}),te=(e,n,i=!1,r)=>{f.useEffect(()=>{var o;const a=l=>{e&&!e.contains(l.target)&&!(r!=null&&r.contains(l.target))&&n()};return i?(document.addEventListener("mousedown",a,!0),()=>{document.removeEventListener("mousedown",a,!0)}):((o=document.getElementById("root"))==null||o.addEventListener("mousedown",a,!0),()=>{var l;(l=document.getElementById("root"))==null||l.removeEventListener("mousedown",a,!0)})},[i,e,r,n])},vt=({item:e,multiSelection:n,name:i,register:r,setInputValue:a,setValue:o,state:l,watch:c})=>{var S,D,F;const d=s.Je(),p=f.useRef(null),g=l.disabledKeys,u=Array.from(l.collection.getKeys()).filter(C=>!Array.from(g).includes(C)&&C!=="All"),{optionProps:x,isSelected:h,isFocused:b,isDisabled:$}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},l,p),w=[h?"selected":"",b?"focused":"",$?"disabled":""].join(" "),j=f.useCallback(C=>{a(""),o==null||o(`${i}Options`,""),C.currentTarget.checked&&(a(C.currentTarget.value),o==null||o(`${i}Options`,u))},[u,i,a,o]),m=f.useCallback(()=>{const C=c==null?void 0:c(`${i}Options`),E=typeof C=="string"?[C]:C;s.isEqual(u,E)&&!Array.from(g).includes("All")?(o==null||o("checkAll","All vulnerability types"),a("All vulnerability types")):(o==null||o("checkAll",""),a((E==null?void 0:E.length)<=2?E.join(", "):`${E.slice(0,2).join(", ")+`, +${E.length-2} more`}`))},[g,u,i,a,o,c]),v=e.key==="All"?t.jsx(ie,{...r==null?void 0:r("checkAll",{onChange:j}),label:(S=e.rendered)==null?void 0:S.toString(),name:"checkAll",value:(D=e.rendered)==null?void 0:D.toString()}):t.jsx(ie,{...r==null?void 0:r(`${i}Options`,{onChange:m}),label:(F=e.rendered)==null?void 0:F.toString(),name:`${i}Options`,value:e.key.toString()}),k=n&&!$?v:t.jsx(z,{color:d.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered});return te(document.getElementsByClassName("dropdown")[0],()=>{n&&l.close()},!0,document.getElementById("combobox")),t.jsxs(bi,{...n?{}:x,$multiSelection:n,className:w,ref:p,children:[k,h&&!$&&!n?t.jsx(T,{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:r,helpLink:a,helpLinkText:o,helpText:l,label:c,loadingItems:d,name:p,multiSelection:g=!1,items:u,onBlur:x,onChange:h,placeholder:b,register:$,required:w,setValue:j,tooltip:m,value:v,watch:k,weight:S})=>{var rt;const D=s.Je(),F=n?void 0:r,C=(e==null?void 0:e.value)??v,[E,R]=f.useState(((rt=u.find(A=>A.value===C))==null?void 0:rt.name)??""),[P,Y]=f.useState(C),[K,ee]=f.useState(u),[W,O]=f.useState(!1),{contains:B}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),oe=f.useRef(null),Ae=f.useRef(null),Le=f.useRef(null),tt=f.useRef(null),nt=f.useRef(null),fn=f.useMemo(()=>u.toSorted((A,H)=>{const _=Array.from(i??[]),se=_.includes(A.value),at=_.includes(H.value);return se&&!at?1:!se&&at?-1:0}).map(A=>B(A.name,E)||W?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":A.value,textValue:A.tag,children:A.name},A.value):null),[B,i,E,u,W]),hn=f.useCallback(A=>{const H=A.split(/,|\s/u).slice(-1)[0].trim();R(g?H:A),A===""||A.endsWith(",")?O(!0):(O(!1),Y(_=>{const se=A===""?"":_;return e&&e.onChange(se),h&&h(A),se}),ee(u.filter(_=>B(_.name,g?H:A))))},[B,u,e,g,h]),bn=f.useCallback(A=>{var H;R(((H=u.find(_=>_.value===A))==null?void 0:H.name)??""),Y(A?String(A):""),e&&e.onChange(A),h&&h(A?String(A):""),ee(u)},[u,e,h]),it=f.useCallback(A=>{A.key==="Enter"&&A.preventDefault(),O(!1)},[]),$n=f.useCallback(()=>{x&&x(),e&&e.onBlur()},[e,x]),yn=f.useCallback(()=>{O(!0)},[]),X=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:g,allowsEmptyCollection:!0,disabledKeys:i,inputValue:E,items:K,menuTrigger:"focus",shouldCloseOnBlur:!g,selectedKey:P,onBlur:$n,onInputChange:hn,onKeyDown:it,onKeyUp:yn,onOpenChange(A,H){O(A&&(H==="manual"||H==="focus")),A&&setTimeout(()=>{var _;return(_=oe.current)==null?void 0:_.focus()},50)},onSelectionChange:g?void 0:bn,children:fn}),{buttonProps:mn,inputProps:wn,listBoxProps:vn}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:E,buttonRef:Ae,id:p,inputRef:oe,label:c??p,listBoxRef:Le,name:p,placeholder:b,popoverRef:nt},X),{listBoxProps:jn}=s.$c132121280ec012d$export$50eacbbf140a3141(vn,X,Le),{buttonProps:kn}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(mn,Ae);return f.useEffect(()=>{var A;if((d===!1||!C)&&!g){const H=((A=u.find(_=>_.value===C))==null?void 0:A.name)??"";R(H),Y(H)}},[C,u,d,g]),t.jsxs(J,{error:F,helpLink:a,helpLinkText:o,helpText:l,htmlFor:p,id:"combobox",label:c,required:w,tooltip:m,weight:S,children:[t.jsxs(Q,{className:`${n?"disabled":""} ${F?"error":""}`,ref:tt,children:[t.jsx("input",{...wn,"aria-invalid":F?"true":"false","aria-label":p,disabled:n,onKeyDown:it,ref:oe}),F?t.jsx(T,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:D.palette.error[500],iconSize:"xs"}):void 0,t.jsx(M,{...kn,className:"action",disabled:n,icon:X.isOpen&&!n?"chevron-up":"chevron-down",iconColor:D.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:Ae,type:"button",variant:"ghost"})]}),X.isOpen&&X.collection.size>0&&!n?t.jsx(je,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:nt,state:X,triggerRef:tt,children:t.jsx(hi,{...jn,$multiSelection:g&&!Array.from(i??[]).includes("All"),ref:Le,children:[...X.collection].map(A=>t.jsx(vt,{item:A,multiSelection:g,name:p,register:$,setInputValue:R,setValue:j,state:X,watch:k},A.key))})}):null]})},jt=({control:e,disabled:n=!1,disabledKeys:i,error:r,helpLink:a,helpLinkText:o,helpText:l,label:c,loadingItems:d,name:p,multiSelection:g,items:u,onBlur:x,onChange:h,placeholder:b,register:$,required:w,setValue:j,tooltip:m,value:v,watch:k,weight:S})=>e?t.jsx(s.Controller,{control:e,name:p,render:({field:D,fieldState:F})=>{var C;return t.jsx(We,{disabled:n,disabledKeys:i,error:(C=F.error)==null?void 0:C.message,field:D,helpLink:a,helpLinkText:o,helpText:l,items:u,label:c,loadingItems:d,multiSelection:g,name:p,onBlur:x,onChange:h,placeholder:b,register:$,required:w,setValue:j,tooltip:m,value:v,watch:k,weight:S})},rules:{required:w}}):t.jsx(We,{disabled:n,disabledKeys:i,error:r,helpLink:a,helpLinkText:o,helpText:l,items:u,label:c,loadingItems:d,multiSelection:g,name:p,onBlur:x,onChange:h,placeholder:b,required:w,tooltip:m,value:v,weight:S}),yi=s.st.div`
951
951
  ${({theme:e})=>`
952
952
  align-items: center;
953
953
  color: ${e.palette.gray[800]};
@@ -1179,7 +1179,7 @@
1179
1179
  font-weight: ${e.typography.weight.bold};
1180
1180
  }
1181
1181
  `}
1182
- `,Se=({disabled:e=!1,icon:n,props:i})=>{const r=f.useRef(null),{buttonProps:a}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,r);return t.jsx(Si,{...a,$disabled:e,$focus:!!a["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:r,type:"button",children:t.jsx(T,{icon:n,iconColor:I.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Ne=({state:e,prevButtonProps:n,nextButtonProps:i,title:r})=>{const a=e.focusedDate,o=f.useCallback(()=>{e.setFocusedDate(a.add({years:1}))},[a,e]),l=f.useCallback(()=>{e.setFocusedDate(a.subtract({years:1}))},[a,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(Se,{icon:"chevron-left",props:n}),t.jsxs(yi,{children:[r,t.jsxs(mi,{children:[t.jsx(ct,{"aria-label":"top",onClick:o,children:t.jsx(T,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(ct,{"aria-label":"bottom",onClick:l,children:t.jsx(T,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(Se,{icon:"chevron-right",props:i})]})},St=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:a,nextButtonProps:o,title:l}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,r);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ne,{nextButtonProps:o,prevButtonProps:a,state:r,title:l}),t.jsx(Fe,{state:r}),t.jsx(Ke,{children:t.jsx(L,{onClick:e,variant:"ghost",children:"Cancel"})})]})},zt=({segment:e,state:n})=>{const i=s.Je(),r=f.useRef(null),o={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=s.$32489daedd52963e$export$1315d136e6f7581(o,n,r),c=i.palette.gray[o.isEditable?800:500];return t.jsx("div",{...o.type!=="literal"&&{...l,className:"segment-cell"},ref:r,style:o.type==="literal"?void 0:{color:o.isPlaceholder?i.palette.gray[400]:c},children:o.isPlaceholder?o.placeholder:o.text})},It=({disabled:e,error:n=!1,props:i})=>{const r=s.Je(),a=f.useRef(null),o=s.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=s.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,o,a),c=f.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(zi,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:r.palette.gray[s.lodashExports.isNil(o.value)?400:800]},tabIndex:-1,children:o.segments.map((d,p)=>{const g=`key_${p}`;return t.jsx(zt,{segment:{...d,isEditable:!e},state:o},g)})}),n?t.jsx(T,{icon:"exclamation-circle",iconColor:r.palette.error[500],iconSize:"xs"}):void 0]})},Tt=e=>{const n=f.useRef(null),i=s.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:r}=i,a=!s.lodashExports.isNil(r)&&r.hour<12?"AM":"PM",[o,l]=f.useState(s.lodashExports.isNil(r)?"AM":a),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=f.useCallback(p=>{const g=p.currentTarget.name;g!==o&&(s.lodashExports.isNil(r)||(g==="AM"?i.setSegment("dayPeriod",0):g==="PM"&&i.setSegment("dayPeriod",12))),l(g)},[o,i,r]);return t.jsxs(Ii,{children:[t.jsx(dt,{...c,ref:n,children:i.segments.slice(0,-2).map((p,g)=>{const u=`key_${g}`;return t.jsx(zt,{segment:p,state:i},u)})}),t.jsxs(dt,{children:[t.jsx(pt,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(pt,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},ze=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",Ti=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",gt=(e,n)=>s.dayjs(String(e).replace(/-/gu,"/")).hour(n.hour).minute(n.minute).second(n.second).format("YYYY/MM/DD hh:mm A"),ge=({error:e,buttonProps:n,datePickerRef:i,disabled:r=!1,granularity:a="day",fieldProps:o,groupProps:l,name:c,register:d,required:p,setValue:g,value:u})=>{const x=f.useCallback(h=>{const b=a==="day"?ze(String(h)):Ti(String(h));o.onChange&&o.onChange(h??null),g&&g(c,b)},[o,a,c,g]);return t.jsxs(Q,{...l,className:`${r?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(It,{disabled:r,error:e!=null,props:{...o,autoFocus:!1,granularity:a,onChange:x,shouldForceLeadingZeros:!0}}),t.jsx(Se,{disabled:r,icon:a==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(c,{required:p}),"aria-label":c,className:"date-input",disabled:r,id:c,name:c,type:"text",value:u??""})]})},Ee=({children:e,...n})=>{const i=f.useRef(null),{dialogProps:r}=s.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(Ci,{...r,ref:i,children:e})},Ft=({disabled:e=!1,error:n,helpLink:i,helpLinkText:r,helpText:a,required:o,label:l,name:c,register:d,setValue:p,tooltip:g,watch:u,...x})=>{const h=f.useRef(null),b=u==null?void 0:u(c),$=f.useCallback(F=>{p&&F&&p(c,ze(String(F)))},[c,p]),w=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...x,onChange(F){$(F)},value:s._.isNil(b)||s._.isEmpty(b)||b==="-"?null:s.$fae977aafc393c5c$export$6b862160d295c8e(b.replace(/\//gu,"-"))}),{close:k}=w,{groupProps:m,fieldProps:v,buttonProps:C,dialogProps:S,calendarProps:E}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...x,"aria-label":l??c,name:c},w,h);return t.jsxs(J,{error:n,helpLink:i,helpLinkText:r,helpText:a,htmlFor:c,label:l,required:o,tooltip:g,children:[t.jsx(ge,{buttonProps:C,datePickerRef:h,disabled:e,error:n,fieldProps:v,groupProps:m,name:c,register:d,required:o,setValue:p,value:b}),w.isOpen&&!e?t.jsx(je,{offset:8,placement:"bottom start",state:w,triggerRef:h,children:t.jsx(Ee,{...S,children:t.jsx(St,{onClose:k,props:E})})}):null]})},Nt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=f.useRef(null),a=s.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:o,nextButtonProps:l,title:c}=s.$46a4342aab3d8076$export$87e0539f600c24e5(n,a,r);return t.jsxs("div",{className:"calendar-range",ref:r,children:[t.jsx(Ne,{nextButtonProps:l,prevButtonProps:o,state:a,title:c}),t.jsx(Fe,{state:a}),t.jsx(Ke,{children:t.jsx(L,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Fi=s.st.div`
1182
+ `,Se=({disabled:e=!1,icon:n,props:i})=>{const r=f.useRef(null),{buttonProps:a}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,r);return t.jsx(Si,{...a,$disabled:e,$focus:!!a["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:r,type:"button",children:t.jsx(T,{icon:n,iconColor:I.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Ne=({state:e,prevButtonProps:n,nextButtonProps:i,title:r})=>{const a=e.focusedDate,o=f.useCallback(()=>{e.setFocusedDate(a.add({years:1}))},[a,e]),l=f.useCallback(()=>{e.setFocusedDate(a.subtract({years:1}))},[a,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(Se,{icon:"chevron-left",props:n}),t.jsxs(yi,{children:[r,t.jsxs(mi,{children:[t.jsx(ct,{"aria-label":"top",onClick:o,children:t.jsx(T,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(ct,{"aria-label":"bottom",onClick:l,children:t.jsx(T,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(Se,{icon:"chevron-right",props:i})]})},St=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:a,nextButtonProps:o,title:l}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,r);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ne,{nextButtonProps:o,prevButtonProps:a,state:r,title:l}),t.jsx(Fe,{state:r}),t.jsx(Ke,{children:t.jsx(L,{onClick:e,variant:"ghost",children:"Cancel"})})]})},zt=({segment:e,state:n})=>{const i=s.Je(),r=f.useRef(null),o={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=s.$32489daedd52963e$export$1315d136e6f7581(o,n,r),c=i.palette.gray[o.isEditable?800:500];return t.jsx("div",{...o.type!=="literal"&&{...l,className:"segment-cell"},ref:r,style:o.type==="literal"?void 0:{color:o.isPlaceholder?i.palette.gray[400]:c},children:o.isPlaceholder?o.placeholder:o.text})},It=({disabled:e,error:n=!1,props:i})=>{const r=s.Je(),a=f.useRef(null),o=s.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=s.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,o,a),c=f.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(zi,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:r.palette.gray[s.lodashExports.isNil(o.value)?400:800]},tabIndex:-1,children:o.segments.map((d,p)=>{const g=`key_${p}`;return t.jsx(zt,{segment:{...d,isEditable:!e},state:o},g)})}),n?t.jsx(T,{icon:"exclamation-circle",iconColor:r.palette.error[500],iconSize:"xs"}):void 0]})},Tt=e=>{const n=f.useRef(null),i=s.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:r}=i,a=!s.lodashExports.isNil(r)&&r.hour<12?"AM":"PM",[o,l]=f.useState(s.lodashExports.isNil(r)?"AM":a),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=f.useCallback(p=>{const g=p.currentTarget.name;g!==o&&(s.lodashExports.isNil(r)||(g==="AM"?i.setSegment("dayPeriod",0):g==="PM"&&i.setSegment("dayPeriod",12))),l(g)},[o,i,r]);return t.jsxs(Ii,{children:[t.jsx(dt,{...c,ref:n,children:i.segments.slice(0,-2).map((p,g)=>{const u=`key_${g}`;return t.jsx(zt,{segment:p,state:i},u)})}),t.jsxs(dt,{children:[t.jsx(pt,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(pt,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},ze=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",Ti=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",gt=(e,n)=>s.dayjs(String(e).replace(/-/gu,"/")).hour(n.hour).minute(n.minute).second(n.second).format("YYYY/MM/DD hh:mm A"),ge=({error:e,buttonProps:n,datePickerRef:i,disabled:r=!1,granularity:a="day",fieldProps:o,groupProps:l,name:c,register:d,required:p,setValue:g,value:u})=>{const x=f.useCallback(h=>{const b=a==="day"?ze(String(h)):Ti(String(h));o.onChange&&o.onChange(h??null),g&&g(c,b)},[o,a,c,g]);return t.jsxs(Q,{...l,className:`${r?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(It,{disabled:r,error:e!=null,props:{...o,autoFocus:!1,granularity:a,onChange:x,shouldForceLeadingZeros:!0}}),t.jsx(Se,{disabled:r,icon:a==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(c,{required:p}),"aria-label":c,className:"date-input",disabled:r,id:c,name:c,type:"text",value:u??""})]})},Ee=({children:e,...n})=>{const i=f.useRef(null),{dialogProps:r}=s.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(Ci,{...r,ref:i,children:e})},Ft=({disabled:e=!1,error:n,helpLink:i,helpLinkText:r,helpText:a,required:o,label:l,name:c,register:d,setValue:p,tooltip:g,watch:u,...x})=>{const h=f.useRef(null),b=u==null?void 0:u(c),$=f.useCallback(F=>{p&&F&&p(c,ze(String(F)))},[c,p]),w=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...x,onChange(F){$(F)},value:s._.isNil(b)||s._.isEmpty(b)||b==="-"?null:s.$fae977aafc393c5c$export$6b862160d295c8e(b.replace(/\//gu,"-"))}),{close:j}=w,{groupProps:m,fieldProps:v,buttonProps:k,dialogProps:S,calendarProps:D}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...x,"aria-label":l??c,name:c},w,h);return t.jsxs(J,{error:n,helpLink:i,helpLinkText:r,helpText:a,htmlFor:c,label:l,required:o,tooltip:g,children:[t.jsx(ge,{buttonProps:k,datePickerRef:h,disabled:e,error:n,fieldProps:v,groupProps:m,name:c,register:d,required:o,setValue:p,value:b}),w.isOpen&&!e?t.jsx(je,{offset:8,placement:"bottom start",state:w,triggerRef:h,children:t.jsx(Ee,{...S,children:t.jsx(St,{onClose:j,props:D})})}):null]})},Nt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=f.useRef(null),a=s.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:o,nextButtonProps:l,title:c}=s.$46a4342aab3d8076$export$87e0539f600c24e5(n,a,r);return t.jsxs("div",{className:"calendar-range",ref:r,children:[t.jsx(Ne,{nextButtonProps:l,prevButtonProps:o,state:a,title:c}),t.jsx(Fe,{state:a}),t.jsx(Ke,{children:t.jsx(L,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Fi=s.st.div`
1183
1183
  ${({theme:e,$disabled:n,$show:i})=>`
1184
1184
  border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
1185
1185
  display: flex;
@@ -1190,7 +1190,7 @@
1190
1190
  background: ${n?e.palette.gray[200]:e.palette.white};
1191
1191
  }
1192
1192
  `}
1193
- `,Et=({disabled:e=!1,error:n,label:i,name:r,required:a,tooltip:o,register:l,setValue:c,propsMax:d,propsMin:p,variant:g="default",...u})=>{const x=`${r}Max`,h=`${r}Min`,b=f.useRef(null),$=f.useCallback(j=>{c&&j&&(c((d==null?void 0:d.name)??x,ze(String(j.end))),c((p==null?void 0:p.name)??h,ze(String(j.start))))},[x,h,c,d,p]),w=s.$93c38a5e28be6249$export$e50a61c1de9f574({...u,endName:(d==null?void 0:d.name)??x,startName:(p==null?void 0:p.name)??h,onChange(j){$(j)}}),{close:k}=w,{groupProps:m,startFieldProps:v,endFieldProps:C,buttonProps:S,dialogProps:E,calendarProps:F}=s.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...u,"aria-label":i??r},w,b);return t.jsxs(J,{error:n,htmlFor:r,label:i,required:a,tooltip:o,children:[t.jsxs(Fi,{$disabled:e,$show:n!==void 0,ref:b,style:{flexDirection:g==="filters"?"column":"row"},children:[t.jsx(ge,{buttonProps:S,datePickerRef:b,disabled:e,error:n,fieldProps:{...v,"aria-label":`${v["aria-label"]} ${r}`,validate:j=>C.value&&j>C.value?"Start date must be less than or equal to end date":null},groupProps:m,name:(p==null?void 0:p.name)??h,register:l,setValue:c,value:p==null?void 0:p.value}),t.jsx(ge,{buttonProps:S,datePickerRef:b,disabled:e,error:n,fieldProps:{...C,"aria-label":`${C["aria-label"]} ${r}`,validate:j=>v.value&&j<v.value?"End date must be greater than or equal to start date":null},groupProps:m,name:(d==null?void 0:d.name)??x,register:l,setValue:c,value:d==null?void 0:d.value})]}),w.isOpen&&!e?t.jsx(je,{offset:8,placement:"bottom start",state:w,triggerRef:b,children:t.jsx(Ee,{...E,children:t.jsx(Nt,{onClose:k,props:F})})}):null]})},Ni=s.st.div`
1193
+ `,Et=({disabled:e=!1,error:n,label:i,name:r,required:a,tooltip:o,register:l,setValue:c,propsMax:d,propsMin:p,variant:g="default",...u})=>{const x=`${r}Max`,h=`${r}Min`,b=f.useRef(null),$=f.useCallback(C=>{c&&C&&(c((d==null?void 0:d.name)??x,ze(String(C.end))),c((p==null?void 0:p.name)??h,ze(String(C.start))))},[x,h,c,d,p]),w=s.$93c38a5e28be6249$export$e50a61c1de9f574({...u,endName:(d==null?void 0:d.name)??x,startName:(p==null?void 0:p.name)??h,onChange(C){$(C)}}),{close:j}=w,{groupProps:m,startFieldProps:v,endFieldProps:k,buttonProps:S,dialogProps:D,calendarProps:F}=s.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...u,"aria-label":i??r},w,b);return t.jsxs(J,{error:n,htmlFor:r,label:i,required:a,tooltip:o,children:[t.jsxs(Fi,{$disabled:e,$show:n!==void 0,ref:b,style:{flexDirection:g==="filters"?"column":"row"},children:[t.jsx(ge,{buttonProps:S,datePickerRef:b,disabled:e,error:n,fieldProps:{...v,"aria-label":`${v["aria-label"]} ${r}`,validate:C=>k.value&&C>k.value?"Start date must be less than or equal to end date":null},groupProps:m,name:(p==null?void 0:p.name)??h,register:l,setValue:c,value:p==null?void 0:p.value}),t.jsx(ge,{buttonProps:S,datePickerRef:b,disabled:e,error:n,fieldProps:{...k,"aria-label":`${k["aria-label"]} ${r}`,validate:C=>v.value&&C<v.value?"End date must be greater than or equal to start date":null},groupProps:m,name:(d==null?void 0:d.name)??x,register:l,setValue:c,value:d==null?void 0:d.value})]}),w.isOpen&&!e?t.jsx(je,{offset:8,placement:"bottom start",state:w,triggerRef:b,children:t.jsx(Ee,{...D,children:t.jsx(Nt,{onClose:j,props:F})})}):null]})},Ni=s.st.div`
1194
1194
  ${({theme:e})=>`
1195
1195
  align-items: center;
1196
1196
  border-top: 1px solid ${e.palette.gray[200]};
@@ -1205,9 +1205,9 @@
1205
1205
  gap: ${({theme:e})=>e.spacing[.5]};
1206
1206
  justify-content: flex-end;
1207
1207
  flex: 1 0 0;
1208
- `,Dt=({handleTimeChange:e,onClose:n,props:i,timeState:r})=>{const a=s.Je(),{locale:o}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:c,nextButtonProps:d,title:p}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(i,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ne,{nextButtonProps:d,prevButtonProps:c,state:l,title:p}),t.jsx(Fe,{state:l}),t.jsxs(Ni,{children:[t.jsx(z,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(Ei,{children:t.jsx(Tt,{hourCycle:12,label:"time-field",onChange:e,value:r.timeValue})})]}),t.jsx(Ke,{children:t.jsx(L,{onClick:n,variant:"ghost",children:"Cancel"})})]})},Di=e=>{const{disabled:n=!1,error:i,required:r,label:a,name:o,tooltip:l,register:c,setValue:d,watch:p}=e,g=p==null?void 0:p(o),u=f.useRef(null),x=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:r,shouldCloseOnSelect:!1,value:s._.isNil(g)||s._.isEmpty(g)||g==="-"||s.dayjs(g,"YYYY/MM/DD hh:mm A").isValid()===!1?null:s.$fae977aafc393c5c$export$588937bcd60ade55(s.dayjs(g,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=x,{groupProps:b,fieldProps:$,buttonProps:w,dialogProps:k,calendarProps:m}=s.$6057a3d2a53a12fd$export$42df105a73306d51(e,x,u),v=f.useCallback(S=>{if(m.onChange&&m.onChange(S),x.timeValue){const E=gt(S,x.timeValue);d==null||d(o,E,{shouldDirty:!0})}else x.setDateValue(S)},[m,o,d,x]),C=f.useCallback(S=>{if(S){x.setTimeValue(S);const E=x.dateValue;if(E){const F=gt(E,S);d==null||d(o,F,{shouldDirty:!0})}}},[x,d,o]);return t.jsxs(J,{error:i,htmlFor:o,label:a,required:r,tooltip:l,children:[t.jsx(ge,{buttonProps:w,datePickerRef:u,disabled:n,error:i,fieldProps:$,granularity:"minute",groupProps:b,name:o,register:c,setValue:d,value:g}),x.isOpen&&!n?t.jsx(je,{offset:8,placement:"bottom start",state:x,triggerRef:u,children:t.jsx(Ee,{...k,children:t.jsx(Dt,{handleTimeChange:C,onClose:h,props:{...m,onChange:v},timeState:x})})}):null]})},Ri=({children:e,currentValue:n,externalLink:i,isEditing:r,label:a,name:o,tooltip:l})=>{if(r)return t.jsx("div",{children:e});const c=s.lodashExports.isNil(n)?"":n,d=String(i??c);return t.jsxs(y,{children:[t.jsx(qe,{htmlFor:o,label:a,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(Z,{href:d,children:c}):t.jsx(z,{size:"md",children:c})]})},De=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:r,helpText:a,error:o,id:l,indexArray:c=0,isValid:d,isTouched:p,label:g,linkPosition:u,name:x,maskValue:h=!1,onPaste:b,placeholder:$,removeItemArray:w,register:k,suggestions:m,tooltip:v,type:C="text",weight:S,...E})=>{const{required:F,onBlur:j,onChange:R}=E,D=s.Je(),P=e?void 0:o,[Y,K]=f.useState(""),ee=f.useCallback(B=>{K(B.target.value),R==null||R(B)},[R]),W=d&&p&&!e&&Y.trim()!=="",O=f.useCallback(B=>{B.key==="Enter"&&B.preventDefault()},[]);return t.jsxs(J,{error:P,helpLink:i,helpLinkText:r,helpText:a,htmlFor:x,label:g,linkPosition:u,required:F,tooltip:v,weight:S,children:[t.jsxs(Q,{className:`
1208
+ `,Dt=({handleTimeChange:e,onClose:n,props:i,timeState:r})=>{const a=s.Je(),{locale:o}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:c,nextButtonProps:d,title:p}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(i,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ne,{nextButtonProps:d,prevButtonProps:c,state:l,title:p}),t.jsx(Fe,{state:l}),t.jsxs(Ni,{children:[t.jsx(z,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(Ei,{children:t.jsx(Tt,{hourCycle:12,label:"time-field",onChange:e,value:r.timeValue})})]}),t.jsx(Ke,{children:t.jsx(L,{onClick:n,variant:"ghost",children:"Cancel"})})]})},Di=e=>{const{disabled:n=!1,error:i,required:r,label:a,name:o,tooltip:l,register:c,setValue:d,watch:p}=e,g=p==null?void 0:p(o),u=f.useRef(null),x=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:r,shouldCloseOnSelect:!1,value:s._.isNil(g)||s._.isEmpty(g)||g==="-"||s.dayjs(g,"YYYY/MM/DD hh:mm A").isValid()===!1?null:s.$fae977aafc393c5c$export$588937bcd60ade55(s.dayjs(g,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=x,{groupProps:b,fieldProps:$,buttonProps:w,dialogProps:j,calendarProps:m}=s.$6057a3d2a53a12fd$export$42df105a73306d51(e,x,u),v=f.useCallback(S=>{if(m.onChange&&m.onChange(S),x.timeValue){const D=gt(S,x.timeValue);d==null||d(o,D,{shouldDirty:!0})}else x.setDateValue(S)},[m,o,d,x]),k=f.useCallback(S=>{if(S){x.setTimeValue(S);const D=x.dateValue;if(D){const F=gt(D,S);d==null||d(o,F,{shouldDirty:!0})}}},[x,d,o]);return t.jsxs(J,{error:i,htmlFor:o,label:a,required:r,tooltip:l,children:[t.jsx(ge,{buttonProps:w,datePickerRef:u,disabled:n,error:i,fieldProps:$,granularity:"minute",groupProps:b,name:o,register:c,setValue:d,value:g}),x.isOpen&&!n?t.jsx(je,{offset:8,placement:"bottom start",state:x,triggerRef:u,children:t.jsx(Ee,{...j,children:t.jsx(Dt,{handleTimeChange:k,onClose:h,props:{...m,onChange:v},timeState:x})})}):null]})},Ri=({children:e,currentValue:n,externalLink:i,isEditing:r,label:a,name:o,tooltip:l})=>{if(r)return t.jsx("div",{children:e});const c=s.lodashExports.isNil(n)?"":n,d=String(i??c);return t.jsxs(y,{children:[t.jsx(qe,{htmlFor:o,label:a,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(Z,{href:d,children:c}):t.jsx(z,{size:"md",children:c})]})},De=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:r,helpText:a,error:o,id:l,indexArray:c=0,isValid:d,isTouched:p,label:g,linkPosition:u,name:x,maskValue:h=!1,onPaste:b,placeholder:$,removeItemArray:w,register:j,suggestions:m,tooltip:v,type:k="text",weight:S,...D})=>{const{required:F,onBlur:C,onChange:E}=D,R=s.Je(),P=e?void 0:o,[Y,K]=f.useState(""),ee=f.useCallback(B=>{K(B.target.value),E==null||E(B)},[E]),W=d&&p&&!e&&Y.trim()!=="",O=f.useCallback(B=>{B.key==="Enter"&&B.preventDefault()},[]);return t.jsxs(J,{error:P,helpLink:i,helpLinkText:r,helpText:a,htmlFor:x,label:g,linkPosition:u,required:F,tooltip:v,weight:S,children:[t.jsxs(Q,{className:`
1209
1209
  ${e?"disabled":""} ${P?"error":""} ${W?"success":""}
1210
- `,children:[n?t.jsx(T,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":P?"true":"false","aria-label":x,"aria-required":F,autoComplete:"off",className:h?"sr-block":"","data-testid":`${x}-input`,disabled:e,id:x,list:m?`list_${x}`:void 0,onKeyDown:O,onPaste:b,placeholder:$,type:C,...k?k(x,{required:F,onBlur:j,onChange:ee}):{...E,onChange:ee}}),P?t.jsx(T,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:D.palette.error[500],iconSize:"xs"}):void 0,W?t.jsx(T,{icon:"check-circle",iconClass:"success-icon",iconColor:D.palette.success[500],iconSize:"xs"}):void 0,l==="array"&&c>0?t.jsx(M,{color:D.palette.gray[400],icon:"trash",iconSize:"xxs",iconType:"fa-light",onClick:w?w(c):void 0,variant:"ghost"}):void 0]}),m?t.jsx("datalist",{id:`list_${x}`,children:m.map(B=>t.jsx("option",{value:B},B))}):void 0]})},Ai=s.st.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,Li=s.st.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
1210
+ `,children:[n?t.jsx(T,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":P?"true":"false","aria-label":x,"aria-required":F,autoComplete:"off",className:h?"sr-block":"","data-testid":`${x}-input`,disabled:e,id:x,list:m?`list_${x}`:void 0,onKeyDown:O,onPaste:b,placeholder:$,type:k,...j?j(x,{required:F,onBlur:C,onChange:ee}):{...D,onChange:ee}}),P?t.jsx(T,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:R.palette.error[500],iconSize:"xs"}):void 0,W?t.jsx(T,{icon:"check-circle",iconClass:"success-icon",iconColor:R.palette.success[500],iconSize:"xs"}):void 0,l==="array"&&c>0?t.jsx(M,{color:R.palette.gray[400],icon:"trash",iconSize:"xxs",iconType:"fa-light",onClick:w?w(c):void 0,variant:"ghost"}):void 0]}),m?t.jsx("datalist",{id:`list_${x}`,children:m.map(B=>t.jsx("option",{value:B},B))}):void 0]})},Ai=s.st.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,Li=s.st.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
1211
1211
  gap: 12px;
1212
1212
  `,Pi=s.st.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
1213
1213
  gap: 8px;
@@ -1263,7 +1263,7 @@
1263
1263
  padding: ${i}px;
1264
1264
  }
1265
1265
  `}
1266
- `,Rt=({align:e,children:n,cols:i,colsPadding:r,justify:a})=>t.jsx(Oi,{$align:e,$cols:i,$colsPadding:r,$justify:a,children:n}),Me=({addText:e,append:n,disabled:i=!1,fields:r,fieldState:a,initValue:o="",index:l=0,required:c,label:d,max:p=100,name:g,onBlur:u,onChange:x,placeholder:h,tooltip:b,remove:$,value:w})=>{var v;const k=f.useCallback(()=>{n==null||n(o)},[n,o]),m=f.useCallback(C=>()=>{$==null||$(C)},[$]);return t.jsxs(Rt,{align:"start",children:[t.jsx(Be,{lg:75,md:75,sm:75,children:t.jsx(De,{disabled:i,error:a?(v=a.error)==null?void 0:v.message:void 0,id:"array",indexArray:l,isTouched:a?a.isTouched:void 0,isValid:a?!a.invalid:void 0,label:d,name:g,onBlur:u,onChange:x,placeholder:h,removeItemArray:m,required:c,tooltip:b,value:w})}),l<p-1&&l+1===(r==null?void 0:r.length)?t.jsx(Be,{lg:25,md:25,sm:25,children:t.jsx(L,{disabled:i,icon:"plus",onClick:k,variant:"ghost",width:"100%",children:e??"Add"})}):void 0]})},Hi=({addText:e,append:n,control:i,disabled:r,fields:a,initValue:o="",required:l,label:c,max:d=void 0,name:p="array-field",onChange:g,placeholder:u,remove:x,tooltip:h})=>i&&a?t.jsx(f.Fragment,{children:a.map((b,$)=>t.jsx(s.Controller,{control:i,name:`${p}.${$}`,render:({field:w,fieldState:k})=>t.jsx(Me,{addText:e,append:n,disabled:r,fieldState:k,fields:a,index:$,initValue:o,label:c,max:d,name:w.name,onBlur:w.onBlur,onChange:g??w.onChange,placeholder:u,remove:x,required:l,tooltip:h,value:typeof w.value=="object"?w.value.value:w.value}),index:$},b.id))}):t.jsx(Me,{addText:e,disabled:r,initValue:o,label:c,max:d,name:p,onChange:g,placeholder:u,required:l,tooltip:h}),_i=s.st(bt)`
1266
+ `,Rt=({align:e,children:n,cols:i,colsPadding:r,justify:a})=>t.jsx(Oi,{$align:e,$cols:i,$colsPadding:r,$justify:a,children:n}),Me=({addText:e,append:n,disabled:i=!1,fields:r,fieldState:a,initValue:o="",index:l=0,required:c,label:d,max:p=100,name:g,onBlur:u,onChange:x,placeholder:h,tooltip:b,remove:$,value:w})=>{var v;const j=f.useCallback(()=>{n==null||n(o)},[n,o]),m=f.useCallback(k=>()=>{$==null||$(k)},[$]);return t.jsxs(Rt,{align:"start",children:[t.jsx(Be,{lg:75,md:75,sm:75,children:t.jsx(De,{disabled:i,error:a?(v=a.error)==null?void 0:v.message:void 0,id:"array",indexArray:l,isTouched:a?a.isTouched:void 0,isValid:a?!a.invalid:void 0,label:d,name:g,onBlur:u,onChange:x,placeholder:h,removeItemArray:m,required:c,tooltip:b,value:w})}),l<p-1&&l+1===(r==null?void 0:r.length)?t.jsx(Be,{lg:25,md:25,sm:25,children:t.jsx(L,{disabled:i,icon:"plus",onClick:j,variant:"ghost",width:"100%",children:e??"Add"})}):void 0]})},Hi=({addText:e,append:n,control:i,disabled:r,fields:a,initValue:o="",required:l,label:c,max:d=void 0,name:p="array-field",onChange:g,placeholder:u,remove:x,tooltip:h})=>i&&a?t.jsx(f.Fragment,{children:a.map((b,$)=>t.jsx(s.Controller,{control:i,name:`${p}.${$}`,render:({field:w,fieldState:j})=>t.jsx(Me,{addText:e,append:n,disabled:r,fieldState:j,fields:a,index:$,initValue:o,label:c,max:d,name:w.name,onBlur:w.onBlur,onChange:g??w.onChange,placeholder:u,remove:x,required:l,tooltip:h,value:typeof w.value=="object"?w.value.value:w.value}),index:$},b.id))}):t.jsx(Me,{addText:e,disabled:r,initValue:o,label:c,max:d,name:p,onChange:g,placeholder:u,required:l,tooltip:h}),_i=s.st(bt)`
1267
1267
  white-space: nowrap;
1268
1268
  margin-right: ${({theme:e})=>e.spacing[.25]};
1269
1269
  text-overflow: ellipsis;
@@ -1274,13 +1274,13 @@
1274
1274
  position: absolute;
1275
1275
  visibility: hidden;
1276
1276
  width: 0;
1277
- `,At=(e,n,i)=>{const r=new Event(e);return Object.defineProperty(r,"target",{value:{name:n,value:i}}),r},Ui=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Vi=({accept:e,disabled:n=!1,error:i,label:r,helpLink:a,helpText:o,id:l,multiple:c,name:d,onChange:p,required:g,register:u,setValue:x,tooltip:h,watch:b,weight:$})=>{const w=s.Je(),k=n?void 0:i,m=f.useRef(null),v=u==null?void 0:u(d,{required:g}),C=b==null?void 0:b(d),S=Ui(C),E=f.useCallback(()=>{const R=At("change",d,void 0);x&&x(d,void 0),v&&v.onChange(R)},[v,d,x]),F=f.useCallback(R=>{const{files:D}=R.currentTarget;D&&D.length>0&&(p==null||p(R),x&&x(d,D),v&&v.onChange(R))},[v,d,p,x]),j=f.useCallback(R=>{n?R.preventDefault():m.current&&m.current.click()},[n]);return t.jsxs(J,{error:k,helpLink:a,helpText:o,htmlFor:l??d,label:r,required:g,tooltip:h,weight:$,children:[t.jsxs(Q,{className:`${n?"disabled":""} ${k?"error":""}`,children:[t.jsx(_i,{$size:"xs",children:S}),t.jsxs(y,{alignItems:"center",display:"flex",gap:.625,children:[s.lodashExports.isEmpty(S)?void 0:t.jsx(M,{color:w.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:E,variant:"ghost",width:"20px"}),k&&t.jsx(T,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"xs"}),t.jsxs(L,{border:n?`1px solid ${w.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:j,variant:"primary",width:"96px",children:[t.jsx(T,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]})]}),t.jsx(Ji,{...v,accept:e,"aria-label":d,"data-testid":d,disabled:n,id:l??d,multiple:c,name:d,onChange:F,ref:m,type:"file"})]})},Gi=s.st.input`
1277
+ `,At=(e,n,i)=>{const r=new Event(e);return Object.defineProperty(r,"target",{value:{name:n,value:i}}),r},Ui=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Vi=({accept:e,disabled:n=!1,error:i,label:r,helpLink:a,helpText:o,id:l,multiple:c,name:d,onChange:p,required:g,register:u,setValue:x,tooltip:h,watch:b,weight:$})=>{const w=s.Je(),j=n?void 0:i,m=f.useRef(null),v=u==null?void 0:u(d,{required:g}),k=b==null?void 0:b(d),S=Ui(k),D=f.useCallback(()=>{const E=At("change",d,void 0);x&&x(d,void 0),v&&v.onChange(E)},[v,d,x]),F=f.useCallback(E=>{const{files:R}=E.currentTarget;R&&R.length>0&&(p==null||p(E),x&&x(d,R),v&&v.onChange(E))},[v,d,p,x]),C=f.useCallback(E=>{n?E.preventDefault():m.current&&m.current.click()},[n]);return t.jsxs(J,{error:j,helpLink:a,helpText:o,htmlFor:l??d,label:r,required:g,tooltip:h,weight:$,children:[t.jsxs(Q,{className:`${n?"disabled":""} ${j?"error":""}`,children:[t.jsx(_i,{$size:"xs",children:S}),t.jsxs(y,{alignItems:"center",display:"flex",gap:.625,children:[s.lodashExports.isEmpty(S)?void 0:t.jsx(M,{color:w.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:D,variant:"ghost",width:"20px"}),j&&t.jsx(T,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"xs"}),t.jsxs(L,{border:n?`1px solid ${w.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:C,variant:"primary",width:"96px",children:[t.jsx(T,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]})]}),t.jsx(Ji,{...v,accept:e,"aria-label":d,"data-testid":d,disabled:n,id:l??d,multiple:c,name:d,onChange:F,ref:m,type:"file"})]})},Gi=s.st.input`
1278
1278
  border: none;
1279
1279
  background: transparent;
1280
1280
  min-width: 15rem;
1281
1281
  padding: 0;
1282
1282
  flex: 1;
1283
- `,Oe=({disabled:e=!1,error:n,field:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:u,tooltip:x,value:h,weight:b})=>{const $=s.Je(),w=e?void 0:n,[k,m]=f.useState(""),v=d?h:i==null?void 0:i.value,C=f.useMemo(()=>v&&typeof v=="string"?v.split(",").filter(Boolean):[],[v]),S=f.useCallback(D=>{const Y=[...new Set(D.filter(Boolean))].join(","),K=At("change",c,Y);i&&i.onChange(K),d&&d(K)},[i,c,d]),E=f.useCallback(D=>{m(D.target.value)},[]),F=f.useCallback(D=>{const P=k.trim();P.length&&!C.includes(P)&&(D.preventDefault(),S([...C,P]),m("")),i&&i.onBlur()},[k,i,S,C]),j=f.useCallback(D=>{const P=k.trim();D.key==="Enter"&&P.length===0&&D.preventDefault(),["Enter",","].includes(D.key)&&P.length>0&&!C.includes(P)?(D.preventDefault(),S([...C,P]),m("")):D.key==="Backspace"&&!P.length&&C.length&&(D.preventDefault(),p==null||p(C[C.length-1]),S(C.slice(0,-1)))},[k,p,S,C]),R=f.useCallback(D=>()=>{p==null||p(D),S(C.filter(P=>P!==D))},[p,S,C]);return t.jsx(J,{error:w,helpLink:r,helpLinkText:a,helpText:o,htmlFor:c,label:l,required:u,tooltip:x,weight:b,children:t.jsxs(Q,{$overflowX:"auto",className:`${e?"disabled":""} ${w?"error":""}`,children:[C.map(D=>t.jsx(G,{disabled:e,onClose:R(D),tagLabel:D},D)),t.jsx(Gi,{"aria-hidden":!1,"aria-invalid":w?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",id:c,onBlur:F,onChange:E,onKeyDown:j,placeholder:C.length===0?g:void 0,ref:i==null?void 0:i.ref,type:"text",value:k}),w?t.jsx(T,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"xs"}):void 0]})})},Yi=({disabled:e=!1,control:n,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:u,tooltip:x,value:h,weight:b})=>n?t.jsx(s.Controller,{control:n,name:c,render:({field:$})=>t.jsx(Oe,{disabled:e,error:i,field:$,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c,onRemove:p,placeholder:g,required:u,tooltip:x,weight:b}),rules:{required:u}}):t.jsx(Oe,{disabled:e,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c,onChange:d,onRemove:p,placeholder:g,required:u,tooltip:x,value:h,weight:b}),He=f.forwardRef(function({disabled:n,icon:i,margin:r,onClick:a,...o},l){return t.jsx(ki,{$margin:r,"aria-label":i,className:"action-btn",disabled:n,onClick:a,ref:l,type:"button",...o,children:t.jsx(T,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),Ie=({error:e,decimalPlaces:n=0,disabled:i=!1,id:r,maxLength:a,max:o=1/0,min:l=0,name:c,onChange:d,placeholder:p,register:g,required:u,setValue:x,value:h})=>{const b=s.Je(),$=i?void 0:e,w=n<0?0:n,[k,m]=f.useState(h?s._.toNumber(h):0),v=f.useCallback(()=>{const F=(k-10**-w).toFixed(w),j=Math.max(Number(l),Number(F));x&&x(c,j,{shouldDirty:!0}),m(j)},[w,k,l,c,x]),C=f.useCallback(()=>{const F=(k+10**-w).toFixed(w),j=Math.min(Number(o),Number(F)>Number(l)?Number(F):Number(l));x&&x(c,j,{shouldDirty:!0}),m(j)},[w,k,o,l,c,x]),S=f.useCallback(F=>{const{value:j}=F.target,R=/\d+/u.test(j)&&!s._.isEmpty(j);x&&x(c,R?j:void 0),d&&d(F),m(Number(j))},[c,d,x]),E=f.useCallback(F=>{F.key==="Enter"&&F.preventDefault()},[]);return t.jsxs(Q,{className:`${i?"disabled":""} ${$?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":$?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",disabled:i,id:r??c,max:o,min:l,onKeyDown:E,placeholder:p,required:u,step:10**-w,type:"number",...g==null?void 0:g(c,{maxLength:a,max:o,min:l,onChange:S,value:h,valueAsNumber:!0})}),$&&t.jsx(T,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}),t.jsx(He,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:v,px:.75,py:.75}),t.jsx(He,{borderRadius:`0 ${b.spacing[.5]} ${b.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:C,px:.75,py:.75})]})},Lt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:r,helpText:a,id:o,label:l,linkPosition:c,maxLength:d,max:p,min:g,name:u,onChange:x,placeholder:h,register:b,required:$,setValue:w,tooltip:k,value:m,watch:v,weight:C})=>t.jsx(J,{error:n?void 0:i,helpLink:r,helpText:a,htmlFor:u,label:l,linkPosition:c,maxLength:d,required:$,tooltip:k,weight:C,children:t.jsx(Ie,{decimalPlaces:e,disabled:n,error:i,id:o,max:p,maxLength:d,min:g,name:u,onChange:x,placeholder:h,register:b,required:$,setValue:w,value:x?m:v==null?void 0:v(u)})}),Pt=({disabled:e=!1,error:n,name:i,label:r,propsMax:a,propsMin:o,required:l,tooltip:c,variant:d="default"})=>{const p=`${i}Max`,g=`${i}Min`;return t.jsx(J,{error:n,htmlFor:i,label:r,required:l,tooltip:c,children:t.jsxs(y,{display:"flex",flexDirection:d==="filters"?"column":"row",gap:.25,width:"100%",children:[t.jsx(Ie,{...o,disabled:e,error:n,name:o.name??g}),t.jsx(Ie,{...a,disabled:e,error:n,name:a.name??p})]})})},qi=s.st.div`
1283
+ `,Oe=({disabled:e=!1,error:n,field:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:u,tooltip:x,value:h,weight:b})=>{const $=s.Je(),w=e?void 0:n,[j,m]=f.useState(""),v=d?h:i==null?void 0:i.value,k=f.useMemo(()=>v&&typeof v=="string"?v.split(",").filter(Boolean):[],[v]),S=f.useCallback(R=>{const Y=[...new Set(R.filter(Boolean))].join(","),K=At("change",c,Y);i&&i.onChange(K),d&&d(K)},[i,c,d]),D=f.useCallback(R=>{m(R.target.value)},[]),F=f.useCallback(R=>{const P=j.trim();P.length&&!k.includes(P)&&(R.preventDefault(),S([...k,P]),m("")),i&&i.onBlur()},[j,i,S,k]),C=f.useCallback(R=>{const P=j.trim();R.key==="Enter"&&P.length===0&&R.preventDefault(),["Enter",","].includes(R.key)&&P.length>0&&!k.includes(P)?(R.preventDefault(),S([...k,P]),m("")):R.key==="Backspace"&&!P.length&&k.length&&(R.preventDefault(),p==null||p(k[k.length-1]),S(k.slice(0,-1)))},[j,p,S,k]),E=f.useCallback(R=>()=>{p==null||p(R),S(k.filter(P=>P!==R))},[p,S,k]);return t.jsx(J,{error:w,helpLink:r,helpLinkText:a,helpText:o,htmlFor:c,label:l,required:u,tooltip:x,weight:b,children:t.jsxs(Q,{$overflowX:"auto",className:`${e?"disabled":""} ${w?"error":""}`,children:[k.map(R=>t.jsx(G,{disabled:e,onClose:E(R),tagLabel:R},R)),t.jsx(Gi,{"aria-hidden":!1,"aria-invalid":w?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",id:c,onBlur:F,onChange:D,onKeyDown:C,placeholder:k.length===0?g:void 0,ref:i==null?void 0:i.ref,type:"text",value:j}),w?t.jsx(T,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"xs"}):void 0]})})},Yi=({disabled:e=!1,control:n,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:u,tooltip:x,value:h,weight:b})=>n?t.jsx(s.Controller,{control:n,name:c,render:({field:$})=>t.jsx(Oe,{disabled:e,error:i,field:$,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c,onRemove:p,placeholder:g,required:u,tooltip:x,weight:b}),rules:{required:u}}):t.jsx(Oe,{disabled:e,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c,onChange:d,onRemove:p,placeholder:g,required:u,tooltip:x,value:h,weight:b}),He=f.forwardRef(function({disabled:n,icon:i,margin:r,onClick:a,...o},l){return t.jsx(ki,{$margin:r,"aria-label":i,className:"action-btn",disabled:n,onClick:a,ref:l,type:"button",...o,children:t.jsx(T,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),Ie=({error:e,decimalPlaces:n=0,disabled:i=!1,id:r,maxLength:a,max:o=1/0,min:l=0,name:c,onChange:d,placeholder:p,register:g,required:u,setValue:x,value:h})=>{const b=s.Je(),$=i?void 0:e,w=n<0?0:n,[j,m]=f.useState(h?s._.toNumber(h):0),v=f.useCallback(()=>{const F=(j-10**-w).toFixed(w),C=Math.max(Number(l),Number(F));x&&x(c,C,{shouldDirty:!0}),m(C)},[w,j,l,c,x]),k=f.useCallback(()=>{const F=(j+10**-w).toFixed(w),C=Math.min(Number(o),Number(F)>Number(l)?Number(F):Number(l));x&&x(c,C,{shouldDirty:!0}),m(C)},[w,j,o,l,c,x]),S=f.useCallback(F=>{const{value:C}=F.target,E=/\d+/u.test(C)&&!s._.isEmpty(C);x&&x(c,E?C:void 0),d&&d(F),m(Number(C))},[c,d,x]),D=f.useCallback(F=>{F.key==="Enter"&&F.preventDefault()},[]);return t.jsxs(Q,{className:`${i?"disabled":""} ${$?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":$?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",disabled:i,id:r??c,max:o,min:l,onKeyDown:D,placeholder:p,required:u,step:10**-w,type:"number",...g==null?void 0:g(c,{maxLength:a,max:o,min:l,onChange:S,value:h,valueAsNumber:!0})}),$&&t.jsx(T,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}),t.jsx(He,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:v,px:.75,py:.75}),t.jsx(He,{borderRadius:`0 ${b.spacing[.5]} ${b.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:k,px:.75,py:.75})]})},Lt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:r,helpText:a,id:o,label:l,linkPosition:c,maxLength:d,max:p,min:g,name:u,onChange:x,placeholder:h,register:b,required:$,setValue:w,tooltip:j,value:m,watch:v,weight:k})=>t.jsx(J,{error:n?void 0:i,helpLink:r,helpText:a,htmlFor:u,label:l,linkPosition:c,maxLength:d,required:$,tooltip:j,weight:k,children:t.jsx(Ie,{decimalPlaces:e,disabled:n,error:i,id:o,max:p,maxLength:d,min:g,name:u,onChange:x,placeholder:h,register:b,required:$,setValue:w,value:x?m:v==null?void 0:v(u)})}),Pt=({disabled:e=!1,error:n,name:i,label:r,propsMax:a,propsMin:o,required:l,tooltip:c,variant:d="default"})=>{const p=`${i}Max`,g=`${i}Min`;return t.jsx(J,{error:n,htmlFor:i,label:r,required:l,tooltip:c,children:t.jsxs(y,{display:"flex",flexDirection:d==="filters"?"column":"row",gap:.25,width:"100%",children:[t.jsx(Ie,{...o,disabled:e,error:n,name:o.name??g}),t.jsx(Ie,{...a,disabled:e,error:n,name:a.name??p})]})})},qi=s.st.div`
1284
1284
  ${({theme:e})=>`
1285
1285
  align-items: flex-start;
1286
1286
  align-self: stretch;
@@ -1374,9 +1374,9 @@
1374
1374
  overflow: hidden;
1375
1375
  text-overflow: ellipsis;
1376
1376
  white-space: nowrap;
1377
- `,er=({disabled:e,error:n,label:i,name:r,placeholder:a,required:o,register:l,tooltip:c,value:d,watch:p,weight:g})=>{const u=s.Je(),x=f.useRef(null),h=e?void 0:n,b=(p==null?void 0:p(r))??d,[$,w]=f.useState(!1),[k,m]=f.useState(""),{refs:v,floatingStyles:C}=s.useFloating$1({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputRef:S,inputValue:E,handlePhoneValueChange:F,country:j,setCountry:R}=s.ee({countries:s.R,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),D=f.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]),P=f.useCallback(W=>{W.preventDefault(),w(O=>!O),$||m("")},[$]),Y=f.useCallback(W=>()=>{R(W),w(!1),m("")},[R,w]),K=f.useCallback(W=>{W.key.length===1?m(O=>O+W.key):W.key==="Backspace"&&m(O=>O.slice(0,-1))},[]),ee=s.R.filter(W=>{const{name:O}=s.M(W);return O.toLowerCase().includes(k.toLowerCase())});return te(v.floating.current,()=>{w(!1),m("")},!0),t.jsx(J,{error:h,htmlFor:r,label:i,required:o,tooltip:c,weight:g,children:t.jsxs(qi,{className:`${e?"disabled":""} ${h?"error":""}`,ref:x,children:[t.jsxs(Ki,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:P,onKeyDown:K,ref:v.setReference,children:[t.jsx(s.q,{iso2:j.iso2,size:"16px"}),t.jsx(T,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(Q,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":r,"aria-required":o,autoComplete:"off","data-testid":`${r}-input`,disabled:e,id:r,name:r,onKeyDown:D,placeholder:a,ref:S,type:"tel",value:E,...l==null?void 0:l(r,{required:o,onChange:F})}),h?t.jsx(T,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),$&&ae.createPortal(t.jsx(Xi,{ref:v.setFloating,style:C,children:ee.map(W=>{const{dialCode:O,iso2:B,name:oe}=s.M(W);return t.jsxs(Zi,{onClick:Y(B),value:B,children:[t.jsx(s.q,{iso2:B,size:"16px"}),t.jsx(Qi,{children:oe}),t.jsx(z,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+O})]},B)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},tr=({disabled:e=!1,error:n,helpLink:i,helpText:r,isTouched:a,isValid:o,label:l,name:c="input-text",id:d,maskValue:p=!1,maxLength:g,placeholder:u,register:x,required:h,rows:b,tooltip:$,watch:w,weight:k,value:m})=>{const v=s.Je(),C=(w==null?void 0:w(c))??m,S=o&&a&&!e,E=e?void 0:n;return t.jsx(J,{error:E,helpLink:i,helpText:r,htmlFor:c,label:l,maxLength:g,required:h,tooltip:$,value:C?String(C):void 0,weight:k,children:t.jsxs(Q,{className:`
1378
- ${e?"disabled":""} ${E?"error":""} ${S?"success":""}
1379
- `,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":E?"true":"false","aria-label":c,"aria-required":h,className:p?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:g,placeholder:u,rows:b,value:C,...x==null?void 0:x(c,{required:h})}),E?t.jsx(T,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:v.palette.error[500],iconSize:"xs"}):void 0,S?t.jsx(T,{icon:"check-circle",iconClass:"success-icon",iconColor:v.palette.success[500],iconSize:"xs"}):void 0]})})},nr=({description:e,disabled:n,id:i,align:r,inputType:a="text",inputNumberProps:o,minHeight:l,minWidth:c,name:d,placeholder:p,tooltip:g,title:u})=>{const x=f.useMemo(()=>{if(a==="text")return t.jsx(De,{disabled:n,name:d,placeholder:p});if(a==="date")return t.jsx(Ft,{disabled:n,name:d});const{decimalPlaces:h,max:b,min:$}=o??{};return t.jsx(Lt,{decimalPlaces:h,disabled:n,max:b,min:$,name:d,placeholder:p})},[n,o,a,d,p]);return t.jsxs(xi,{$align:r,$minHeight:l,$minWidth:c,children:[t.jsx(Te,{description:e,id:i,title:u,tooltip:g}),x]})},Wt=(e,n)=>{const[r,a]=f.useState(0),[o,l]=f.useState(0);return f.useEffect(()=>{o===100&&(()=>{a(d=>d===n-1?0:d+1)})()},[o,n]),f.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:r,progress:o,setCycle:a,setProgress:l}},Bt=({publicId:e,format:n="webp"})=>{const i=f.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return f.useMemo(()=>i.image(e).format(n),[i,e,n])},Re=e=>{const[n,i]=f.useState(!1),r=f.useCallback(()=>{i(!0)},[]),a=f.useCallback(()=>{i(!1)},[]),o=f.useCallback(()=>{i(l=>!l)},[]);return{close:a,isOpen:n,name:e,open:r,setIsOpen:i,toggle:o}},ir=({name:e,items:n,columnOrder:i,setColumnOrder:r})=>{const a=f.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...u})=>({...u,visible:!0,locked:g})),...n.filter(({locked:g})=>!g)],[n]),[o,l]=f.useState(a),c=f.useCallback(g=>{const u=g.filter(({locked:$})=>!$),h=[...g.filter(({locked:$})=>$),...u],b=h.map(({name:$})=>$);l($=>[...h,...$.filter(({name:w})=>!b.includes(w))]),r&&r(h.map(({id:$})=>$))},[r]),d=f.useCallback(()=>{const g=o.map(u=>{var h;const x=(i==null?void 0:i.includes(u.id))??!1;return(h=u.toggleVisibility)==null||h.call(u,x),{...u,visible:x}}).toSorted((u,x)=>{const h=(i==null?void 0:i.indexOf(u.id))??0,b=(i==null?void 0:i.indexOf(x.id))??0;return Number(x.visible)!==Number(u.visible)?Number(x.visible)-Number(u.visible):h-b});l(g),r==null||r(i)},[o,i,r]),p=f.useMemo(()=>s.some(o,g=>((i==null?void 0:i.includes(g.id))??!1)!==g.visible),[o,i]);return{setColumns:c,resetToDefault:d,columns:o,...Re(e),hasChanged:p}},Mt=(e,n)=>f.useMemo(()=>s._.debounce(e,n),[e,n]),rr=e=>{const[n,i]=f.useState(),r=Mt(a=>{i(a)},(e==null?void 0:e.debounceWait)??300);return[n,r]},ar=({alt:e="img",height:n="",width:i="",plugins:r=[s.lazyload(),s.placeholder()],publicId:a})=>{const o=Bt({publicId:a});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:r,width:i})},ne=f.memo(ar),or=s.st.label`
1377
+ `,er=({disabled:e,error:n,label:i,name:r,placeholder:a,required:o,register:l,tooltip:c,value:d,watch:p,weight:g})=>{const u=s.Je(),x=f.useRef(null),h=e?void 0:n,b=(p==null?void 0:p(r))??d,[$,w]=f.useState(!1),[j,m]=f.useState(""),{refs:v,floatingStyles:k}=s.useFloating$1({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputRef:S,inputValue:D,handlePhoneValueChange:F,country:C,setCountry:E}=s.ee({countries:s.R,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),R=f.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]),P=f.useCallback(W=>{W.preventDefault(),w(O=>!O),$||m("")},[$]),Y=f.useCallback(W=>()=>{E(W),w(!1),m("")},[E,w]),K=f.useCallback(W=>{W.key.length===1?m(O=>O+W.key):W.key==="Backspace"&&m(O=>O.slice(0,-1))},[]),ee=s.R.filter(W=>{const{name:O}=s.M(W);return O.toLowerCase().includes(j.toLowerCase())});return te(v.floating.current,()=>{w(!1),m("")},!0),t.jsx(J,{error:h,htmlFor:r,label:i,required:o,tooltip:c,weight:g,children:t.jsxs(qi,{className:`${e?"disabled":""} ${h?"error":""}`,ref:x,children:[t.jsxs(Ki,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:P,onKeyDown:K,ref:v.setReference,children:[t.jsx(s.q,{iso2:C.iso2,size:"16px"}),t.jsx(T,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(Q,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":r,"aria-required":o,autoComplete:"off","data-testid":`${r}-input`,disabled:e,id:r,name:r,onKeyDown:R,placeholder:a,ref:S,type:"tel",value:D,...l==null?void 0:l(r,{required:o,onChange:F})}),h?t.jsx(T,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),$&&ae.createPortal(t.jsx(Xi,{ref:v.setFloating,style:k,children:ee.map(W=>{const{dialCode:O,iso2:B,name:oe}=s.M(W);return t.jsxs(Zi,{onClick:Y(B),value:B,children:[t.jsx(s.q,{iso2:B,size:"16px"}),t.jsx(Qi,{children:oe}),t.jsx(z,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+O})]},B)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},tr=({disabled:e=!1,error:n,helpLink:i,helpText:r,isTouched:a,isValid:o,label:l,name:c="input-text",id:d,maskValue:p=!1,maxLength:g,placeholder:u,register:x,required:h,rows:b,tooltip:$,watch:w,weight:j,value:m})=>{const v=s.Je(),k=(w==null?void 0:w(c))??m,S=o&&a&&!e,D=e?void 0:n;return t.jsx(J,{error:D,helpLink:i,helpText:r,htmlFor:c,label:l,maxLength:g,required:h,tooltip:$,value:k?String(k):void 0,weight:j,children:t.jsxs(Q,{className:`
1378
+ ${e?"disabled":""} ${D?"error":""} ${S?"success":""}
1379
+ `,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":D?"true":"false","aria-label":c,"aria-required":h,className:p?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:g,placeholder:u,rows:b,value:k,...x==null?void 0:x(c,{required:h})}),D?t.jsx(T,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:v.palette.error[500],iconSize:"xs"}):void 0,S?t.jsx(T,{icon:"check-circle",iconClass:"success-icon",iconColor:v.palette.success[500],iconSize:"xs"}):void 0]})})},nr=({description:e,disabled:n,id:i,align:r,inputType:a="text",inputNumberProps:o,minHeight:l,minWidth:c,name:d,placeholder:p,tooltip:g,title:u})=>{const x=f.useMemo(()=>{if(a==="text")return t.jsx(De,{disabled:n,name:d,placeholder:p});if(a==="date")return t.jsx(Ft,{disabled:n,name:d});const{decimalPlaces:h,max:b,min:$}=o??{};return t.jsx(Lt,{decimalPlaces:h,disabled:n,max:b,min:$,name:d,placeholder:p})},[n,o,a,d,p]);return t.jsxs(xi,{$align:r,$minHeight:l,$minWidth:c,children:[t.jsx(Te,{description:e,id:i,title:u,tooltip:g}),x]})},Wt=(e,n)=>{const[r,a]=f.useState(0),[o,l]=f.useState(0);return f.useEffect(()=>{o===100&&(()=>{a(d=>d===n-1?0:d+1)})()},[o,n]),f.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:r,progress:o,setCycle:a,setProgress:l}},Bt=({publicId:e,format:n="webp"})=>{const i=f.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return f.useMemo(()=>i.image(e).format(n),[i,e,n])},Re=e=>{const[n,i]=f.useState(!1),r=f.useCallback(()=>{i(!0)},[]),a=f.useCallback(()=>{i(!1)},[]),o=f.useCallback(()=>{i(l=>!l)},[]);return{close:a,isOpen:n,name:e,open:r,setIsOpen:i,toggle:o}},ir=({name:e,items:n,columnOrder:i,setColumnOrder:r})=>{const a=f.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...u})=>({...u,visible:!0,locked:g})),...n.filter(({locked:g})=>!g)],[n]),[o,l]=f.useState(a),c=f.useCallback(g=>{const u=g.filter(({locked:$})=>!$),h=[...g.filter(({locked:$})=>$),...u],b=h.map(({name:$})=>$);l($=>[...h,...$.filter(({name:w})=>!b.includes(w))]),r&&r(h.map(({id:$})=>$))},[r]),d=f.useCallback(()=>{const g=o.map(u=>{var h;const x=(i==null?void 0:i.includes(u.id))??!1;return(h=u.toggleVisibility)==null||h.call(u,x),{...u,visible:x}}).toSorted((u,x)=>{const h=(i==null?void 0:i.indexOf(u.id))??0,b=(i==null?void 0:i.indexOf(x.id))??0;return Number(x.visible)!==Number(u.visible)?Number(x.visible)-Number(u.visible):h-b});l(g),r==null||r(i)},[o,i,r]),p=f.useMemo(()=>s.some(o,g=>((i==null?void 0:i.includes(g.id))??!1)!==g.visible),[o,i]);return{setColumns:c,resetToDefault:d,columns:o,...Re(e),hasChanged:p}},Mt=(e,n)=>f.useMemo(()=>s._.debounce(e,n),[e,n]),rr=e=>{const[n,i]=f.useState(),r=Mt(a=>{i(a)},(e==null?void 0:e.debounceWait)??300);return[n,r]},ar=({alt:e="img",height:n="",width:i="",plugins:r=[s.lazyload(),s.placeholder()],publicId:a})=>{const o=Bt({publicId:a});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:r,width:i})},ne=f.memo(ar),or=s.st.label`
1380
1380
  ${({theme:e})=>`
1381
1381
  align-items: center;
1382
1382
  display: flex;
@@ -1957,7 +1957,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=f.useMemo(g,[g]),x=f.useCallback(a
1957
1957
  svg.fa-check {
1958
1958
  border-radius: 2px;
1959
1959
  }
1960
- `,en=({control:e,option:n,register:i,setValue:r})=>{var a,o,l,c,d;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(a=n.options)==null?void 0:a.map(g=>t.jsx(ut,{value:g.value,width:"content",children:t.jsx(ie,{...i("checkbox"),label:g.label,value:g.value})},`li-checkbox-${g.value}`))});case"radioButton":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(o=n.options)==null?void 0:o.map(g=>t.jsx(ut,{value:g.value,width:"content",children:t.jsx(Xe,{...i("radio"),label:g.label,value:g.value})},`li-radio-${g.value}`))});case"select":return t.jsx(jt,{control:e,items:((l=n.options)==null?void 0:l.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(De,{label:n.label,name:p,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Pt,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:r},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:r},variant:"filters"});case"dateRange":return t.jsx(Et,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(c=n.maxValue)==null?void 0:c.toString()},propsMin:{name:"minValue",value:(d=n.minValue)==null?void 0:d.toString()},register:i,setValue:r,variant:"filters"});default:return t.jsx("div",{})}},tn=({control:e,items:n,register:i,setValue:r})=>t.jsx(t.Fragment,{children:n.map((a,o)=>{const l=`${a.type}-${a.value}-${a.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(en,{control:e,option:a,register:i,setValue:r}),o<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),nn=e=>{var c,d,p,g,u;const[n,i]=f.useState([...e]),{control:r,register:a,handleSubmit:o,setValue:l}=s.useForm({defaultValues:{checkbox:e.filter(x=>x.type==="checkboxes").flatMap(x=>{var h;return((h=x.options)==null?void 0:h.filter(b=>b.checked).map(b=>b.value))??[]}),radio:((p=(d=(c=e.find(x=>x.type==="radioButton"))==null?void 0:c.options)==null?void 0:d.find(({checked:x})=>x))==null?void 0:p.value)??"",text:e.filter(x=>["text","select"].includes(x.type)).reduce((x,h)=>({...x,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(g=e.find(x=>["numberRange","dateRange"].includes(x.type)))==null?void 0:g.minValue,maxValue:(u=e.find(x=>["numberRange","dateRange"].includes(x.type)))==null?void 0:u.maxValue}});return{control:r,items:n,setItems:i,register:a,handleSubmit:o,setValue:l}},Mr=(e,n)=>{var i,r,a,o,l;n("checkbox",e.filter(c=>c.type==="checkboxes").flatMap(c=>{var d;return((d=c.options)==null?void 0:d.filter(p=>p.checked).map(p=>p.value))??[]})),n("radio",((a=(r=(i=e.find(c=>c.type==="radioButton"))==null?void 0:i.options)==null?void 0:r.find(({checked:c})=>c))==null?void 0:a.value)??""),n("text",e.filter(c=>["text","select"].includes(c.type)).reduce((c,d)=>({...c,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),n("minValue",(o=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:o.minValue),n("maxValue",(l=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:l.maxValue)},Or=(e,n)=>e.map(i=>{var r;return i.type==="checkboxes"?{...i,options:(r=i.options)==null?void 0:r.filter(a=>{var o;return((o=a.label)==null?void 0:o.toLowerCase().includes(n.toLowerCase()))??a.value.toLowerCase().includes(n.toLowerCase())})}:i}),_e=({options:e,onSearch:n,onSubmit:i,id:r})=>{const{control:a,items:o,setItems:l,register:c,handleSubmit:d,setValue:p}=nn(e),g=e.some(h=>h.type==="checkboxes"&&h.hideSearch!==!0),u=f.useCallback(h=>{const{value:b}=h.target;n&&n(b);const $=Or(e,b);l($)},[e,n,l]),x=f.useCallback(h=>{i&&i(h)},[i]);return f.useEffect(()=>{l(e),Mr(e,p)},[e,l,p]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:r,children:[g&&t.jsx(ue,{onChange:u}),t.jsxs("form",{id:r,onSubmit:d(x),children:[t.jsx(tn,{control:a,items:o,register:c,setValue:p}),t.jsx(L,{mt:1,type:"submit",children:"Apply"})]})]})},rn=({options:e,variant:n,onApplyFilters:i,onSearch:r,setDirection:a,setHandler:o})=>{const l=s.Je(),[c,d]=f.useState(e),[p,g]=f.useState([]),[u,x]=f.useState({}),[h,b]=f.useState(""),$=f.useCallback(m=>()=>{const v=c.find(S=>S.label===m),C=!(v!=null&&v.filterOptions.some(S=>S.type==="dateRange"||S.type==="select"));o==null||o(C??!0),b(m),g((v==null?void 0:v.filterOptions)??[])},[c,o]),w=f.useCallback(m=>{const v=[...m.checkbox,...Object.values(m.text??{}),...m.radio?[m.radio]:[],...m.minValue?[String(m.minValue)]:[],...m.maxValue?[String(m.maxValue)]:[]];x(j=>v.length>0?{...j,[h]:v}:j);const C=j=>{var R,D;return{...j,options:(R=j.options)==null?void 0:R.map(P=>({...P,checked:m.checkbox.includes(P.value)||m.radio===P.value})),value:["text","select"].includes(j.type)?((D=m.text)==null?void 0:D[`${String(j.key)}-${j.filterFn??"caseInsensitive"}`])??j.value:j.value,minValue:["numberRange","dateRange"].includes(j.type)?m.minValue:j.minValue,maxValue:["numberRange","dateRange"].includes(j.type)?m.maxValue:j.maxValue}},S=j=>j.label===h?{...j,filterOptions:j.filterOptions.map(C)}:j,E=c.map(S);d(j=>j.map(S));const F=E.flatMap(({filterOptions:j})=>j);i(F),g([])},[c,i,h]),k=f.useCallback((m,v)=>{const C=`li-filter-option-${m}`;return t.jsxs(Wr,{icon:v,onClick:$(m),style:{minWidth:"180px"},value:C,width:"100%",children:[m,u[m]===void 0?void 0:t.jsx(G,{tagLabel:u[m].length.toString()})]},C)},[u,$]);return f.useEffect(()=>{const m=e.reduce((v,{label:C,filterOptions:S})=>{const E=S.flatMap(({value:R,minValue:D,maxValue:P})=>[D,P,R]).filter(Boolean),F=S.flatMap(({options:R})=>R??[]).filter(({checked:R=!1})=>R).map(({value:R})=>R),j=[...E,...F];return j.length===0?v:{...v,[C]:j}},{});x(m),p.length>0&&a&&a("column")},[p,e,a]),n==="grouped"?t.jsx(y,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:p.length>0?"unset":"360px",style:{columnGap:"10px"},width:"100%",wrap:"wrap",children:p.length>0?t.jsx(_e,{id:"filters-options",onSearch:r,onSubmit:w,options:p}):Object.entries(Zt(e)).map(([m,v])=>t.jsxs(y,{children:[t.jsx(z,{color:l.palette.gray[400],mb:.25,size:"sm",children:m}),v.map(({label:C,icon:S="filter-list"})=>k(C,S))]},m))}):t.jsx(y,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:p.length>0?"unset":"200px",style:{columnGap:"10px"},width:"100%",wrap:"wrap",children:p.length>0?t.jsx(_e,{id:"filters-options",onSearch:r,onSubmit:w,options:p}):e.map(({label:m,icon:v="filter-list"})=>k(m,v))})},an=({options:e,onApplyFilters:n,onSearch:i,modalRef:r,variant:a})=>{const[o,l]=f.useState("row"),[c,d]=f.useState(!0),p=s.Je(),g=f.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:r.close,px:.25,py:.25,variant:"ghost"});return f.useEffect(()=>{const x=h=>{const b=g.current;b&&!b.contains(h.target)&&r.close()};if(c)return document.addEventListener("mousedown",x,!0),()=>{document.removeEventListener("mousedown",x,!0)}},[g,c,r]),t.jsx(Br,{$bgColor:"transparent","aria-label":r.name,children:t.jsxs(Ze,{$size:"fixed",alignItems:o==="row"?"start":"end",display:"flex",flexDirection:o,gap:.5,id:"filters-list",position:"relative",px:1.25,py:1.25,ref:g,style:{overflow:"hidden",width:"max-content"},children:[o==="column"?u:void 0,t.jsx(rn,{onApplyFilters:n,onSearch:i,options:e,setDirection:l,setHandler:d,variant:a}),o==="row"?u:void 0]})})};function Hr(e){if(e)return e}function on(e){if(!e||e.length===0)return;const n=e.filter(r=>r.checked).map(r=>r.label??r.value);return n.length===0?void 0:n.join(", ")}function _r(e,n,i){const r=i??"",a=s._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),o=s._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!s._.isUndefined(a)&&!s._.isUndefined(o))return`${a}${r} - ${o}${r}`;if(!s._.isUndefined(a))return`Min ${a}${r}`;if(!s._.isUndefined(o))return`Max ${o}${r}`}function Jr(e,n){if(s.dayjs_minExports.extend(s.localizedFormat),!(s._.isUndefined(e)&&s._.isUndefined(n))){if(e!==""&&n!==""&&!s._.isUndefined(e)&&!s._.isUndefined(n))return`${s.dayjs(e).format("LL")} - ${s.dayjs(n).format("LL")}`;if(e!==""&&!s._.isUndefined(e))return`From ${s.dayjs(e).format("LL")}`;if(n!==""&&!s._.isUndefined(n))return`To ${s.dayjs(n).format("LL")}`}}function Ur(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const ce=({filter:e,icon:n="filter-list",label:i,onClose:r,filterValue:a})=>s._.isNil(a)||s._.isEmpty(String(a))?null:t.jsx(G,{filterValues:a,icon:n,id:"remove-filter",onClose:r(e),tagLabel:`${i} `}),Vr=({options:e,onClose:n})=>{const i=e.flatMap(r=>r.filterOptions.map(a=>{const{filterFn:o,label:l,type:c,value:d,options:p,minValue:g,maxValue:u}=a;switch(c){case"numberRange":{const x=_r(g,u,r.placeholder);return t.jsx(ce,{filter:a,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case"dateRange":{const x=Jr(g==null?void 0:g.toString(),u==null?void 0:u.toString());return t.jsx(ce,{filter:a,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case"radioButton":case"checkboxes":{const x=on(p);return t.jsx(ce,{filter:a,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case void 0:case"select":case"text":default:{const x=Hr(d),h=Ur(c,r.label,o);return t.jsx(ce,{filter:a,filterValue:x,icon:r.icon,label:h,onClose:n},l)}}})).filter(r=>{if(r===null)return!1;const{filterValue:a}=r.props;return!s._.isNil(a)&&!s._.isEmpty(String(a))});return i.length>0?t.jsx(y,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},Gr=(e,n)=>{function i(l,c){if(c.value===""||c.value===void 0||s._.defaultTo(c.isBackFilter,!1))return!0;switch(c.filterFn){case"includesInsensitive":return String(l[c.key]).toLowerCase().includes(c.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[c.key]).toLowerCase()===c.value.toLowerCase()}}function r(l,c){if(!c.options||c.options.length===0)return!0;const d=c.options.filter(p=>p.checked).map(p=>p.value);return d.length===0?!0:d.includes(String(l[c.key]))}function a(l,c,d){const p=d(String(l[c.key])),{minValue:g,maxValue:u}=c,x=s._.isEmpty(g)&&typeof g!="number"?void 0:d(String(g)),h=s._.isEmpty(u)&&typeof u!="number"?void 0:d(String(u));return s._.isUndefined(x)&&s._.isUndefined(h)?!0:(x??-1/0)<=p&&p<=(h??1/0)}function o(l){return n.every(c=>{if(typeof c.key=="function")return c.key(l,c.value);switch(c.type){case"radioButton":case"checkboxes":return r(l,c);case"numberRange":return a(l,c,Number);case"dateRange":return a(l,c,d=>new Date(d));case"select":case"text":default:return i(l,c)}})}return e.filter(o)},xt=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,Yr=e=>{var i;const n=((i=e.options)==null?void 0:i.map(r=>({...r,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},qr=({dataset:e,localStorageKey:n,options:i,setFilteredDataset:r,onFiltersChange:a,onReset:o,onSearch:l,variant:c="ungrouped"})=>{const d=Re("filters-modal"),[p,g]=f.useState([]),[u,x]=f.useState(xt(p)),h=i.map(m=>({...m,filterOptions:m.filterOptions.map(v=>p.find(S=>S.key===v.key&&S.type===v.type&&S.filterFn===v.filterFn)??{...v})})),b=f.useCallback(m=>{g([...m]),localStorage.setItem(n,JSON.stringify(m))},[g,n]),$=f.useCallback(()=>{o&&o(),d.toggle()},[d,o]),w=f.useCallback(m=>()=>{o&&o();const v=p.map(C=>C.key===m.key&&C.type===m.type&&C.filterFn===m.filterFn?Yr(C):C);g(v),localStorage.setItem(n,JSON.stringify(v))},[p,n,o]);return f.useEffect(()=>{const m=localStorage.getItem(n),v=i.flatMap(S=>S.filterOptions),C=m?JSON.parse(m):v;v.flatMap(S=>S.value).filter(Boolean).length>0||v.flatMap(S=>S.options).filter(S=>(S==null?void 0:S.checked)===void 0).length>0?(g(v),localStorage.setItem(n,JSON.stringify(v))):g(C)},[n,i,g]),f.useEffect(()=>{r&&e!==void 0&&r(Gr(e,p)),x(xt(p)),a==null||a(p)},[e,p,r,x,a]),{Filters:()=>t.jsxs(y,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx(y,{pr:.25,children:t.jsx(L,{icon:"filter",id:"filterBtn",onClick:$,tag:u.toString(),variant:"ghost"})}),d.isOpen&&t.jsx(an,{modalRef:d,onApplyFilters:b,onSearch:l,options:h,variant:c})]}),options:h,removeFilter:w}},sn=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:r=void 0,confirmButton:a=void 0,content:o=void 0,description:l=void 0,modalRef:c,otherActions:d=void 0,onClose:p=void 0,tabItems:g=void 0,title:u=void 0,size:x,id:h="modal-container"})=>{const b=s.Je(),$=t.jsx(Jt,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(Ze,{$size:x,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(u)&&!s._.isNil(u)&&t.jsx(Vt,{description:l,modalRef:c,onClose:p,otherActions:d,title:u}),g&&t.jsx(y,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(Qe,{items:g})}),(s._.isObject(o)||r)&&t.jsxs(wr,{children:[r,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(Cr,{$framed:o.imageFramed,children:t.jsx(ne,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(z,{size:"sm",children:o.imageText})]}),t.jsx(Ut,{alert:n,cancelButton:i,confirmButton:a,modalRef:c})]})});return e&&c.isOpen?ae.createPortal($,document.getElementById("portals")??document.body):c.isOpen?$:null},Kr=()=>{const[e,n]=f.useState(!1),[i,r]=f.useState(),a=f.useRef(null),o=Re("confirm-dialog-modal"),l=f.useCallback(async g=>(r(g),n(!0),new Promise(u=>{a.current=u})),[]),c=f.useCallback(()=>{var g;n(!1),r(void 0),(g=a.current)==null||g.call(a,!0)},[]),d=f.useCallback(()=>{var g;n(!1),r(void 0),(g=a.current)==null||g.call(a,!1)},[]);return f.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:u})=>t.jsxs(sn,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(i==null?void 0:i.id)??"modal-confirm",onClick:c,text:"Confirm"},description:i==null?void 0:i.message,id:g,modalRef:{...o,close:d},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,u]}),confirm:l}},Xr=s.st.ul`
1960
+ `,en=({control:e,option:n,register:i,setValue:r})=>{var a,o,l,c,d;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(a=n.options)==null?void 0:a.map(g=>t.jsx(ut,{value:g.value,width:"content",children:t.jsx(ie,{...i("checkbox"),label:g.label,value:g.value})},`li-checkbox-${g.value}`))});case"radioButton":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(o=n.options)==null?void 0:o.map(g=>t.jsx(ut,{value:g.value,width:"content",children:t.jsx(Xe,{...i("radio"),label:g.label,value:g.value})},`li-radio-${g.value}`))});case"select":return t.jsx(jt,{control:e,items:((l=n.options)==null?void 0:l.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(De,{label:n.label,name:p,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Pt,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:r},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:r},variant:"filters"});case"dateRange":return t.jsx(Et,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(c=n.maxValue)==null?void 0:c.toString()},propsMin:{name:"minValue",value:(d=n.minValue)==null?void 0:d.toString()},register:i,setValue:r,variant:"filters"});default:return t.jsx("div",{})}},tn=({control:e,items:n,register:i,setValue:r})=>t.jsx(t.Fragment,{children:n.map((a,o)=>{const l=`${a.type}-${a.value}-${a.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(en,{control:e,option:a,register:i,setValue:r}),o<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),nn=e=>{var c,d,p,g,u;const[n,i]=f.useState([...e]),{control:r,register:a,handleSubmit:o,setValue:l}=s.useForm({defaultValues:{checkbox:e.filter(x=>x.type==="checkboxes").flatMap(x=>{var h;return((h=x.options)==null?void 0:h.filter(b=>b.checked).map(b=>b.value))??[]}),radio:((p=(d=(c=e.find(x=>x.type==="radioButton"))==null?void 0:c.options)==null?void 0:d.find(({checked:x})=>x))==null?void 0:p.value)??"",text:e.filter(x=>["text","select"].includes(x.type)).reduce((x,h)=>({...x,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(g=e.find(x=>["numberRange","dateRange"].includes(x.type)))==null?void 0:g.minValue,maxValue:(u=e.find(x=>["numberRange","dateRange"].includes(x.type)))==null?void 0:u.maxValue}});return{control:r,items:n,setItems:i,register:a,handleSubmit:o,setValue:l}},Mr=(e,n)=>{var i,r,a,o,l;n("checkbox",e.filter(c=>c.type==="checkboxes").flatMap(c=>{var d;return((d=c.options)==null?void 0:d.filter(p=>p.checked).map(p=>p.value))??[]})),n("radio",((a=(r=(i=e.find(c=>c.type==="radioButton"))==null?void 0:i.options)==null?void 0:r.find(({checked:c})=>c))==null?void 0:a.value)??""),n("text",e.filter(c=>["text","select"].includes(c.type)).reduce((c,d)=>({...c,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),n("minValue",(o=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:o.minValue),n("maxValue",(l=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:l.maxValue)},Or=(e,n)=>e.map(i=>{var r;return i.type==="checkboxes"?{...i,options:(r=i.options)==null?void 0:r.filter(a=>{var o;return((o=a.label)==null?void 0:o.toLowerCase().includes(n.toLowerCase()))??a.value.toLowerCase().includes(n.toLowerCase())})}:i}),_e=({options:e,onSearch:n,onSubmit:i,id:r})=>{const{control:a,items:o,setItems:l,register:c,handleSubmit:d,setValue:p}=nn(e),g=e.some(h=>h.type==="checkboxes"&&h.hideSearch!==!0),u=f.useCallback(h=>{const{value:b}=h.target;n&&n(b);const $=Or(e,b);l($)},[e,n,l]),x=f.useCallback(h=>{i&&i(h)},[i]);return f.useEffect(()=>{l(e),Mr(e,p)},[e,l,p]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:r,children:[g&&t.jsx(ue,{onChange:u}),t.jsxs("form",{id:r,onSubmit:d(x),children:[t.jsx(tn,{control:a,items:o,register:c,setValue:p}),t.jsx(L,{mt:1,type:"submit",children:"Apply"})]})]})},rn=({options:e,variant:n,onApplyFilters:i,onSearch:r,setDirection:a,setHandler:o})=>{const l=s.Je(),[c,d]=f.useState(e),[p,g]=f.useState([]),[u,x]=f.useState({}),[h,b]=f.useState(""),$=f.useCallback(m=>()=>{const v=c.find(S=>S.label===m),k=!(v!=null&&v.filterOptions.some(S=>S.type==="dateRange"||S.type==="select"));o==null||o(k??!0),b(m),g((v==null?void 0:v.filterOptions)??[])},[c,o]),w=f.useCallback(m=>{const v=[...m.checkbox,...Object.values(m.text??{}),...m.radio?[m.radio]:[],...m.minValue?[String(m.minValue)]:[],...m.maxValue?[String(m.maxValue)]:[]];x(C=>v.length>0?{...C,[h]:v}:C);const k=C=>{var E,R;return{...C,options:(E=C.options)==null?void 0:E.map(P=>({...P,checked:m.checkbox.includes(P.value)||m.radio===P.value})),value:["text","select"].includes(C.type)?((R=m.text)==null?void 0:R[`${String(C.key)}-${C.filterFn??"caseInsensitive"}`])??C.value:C.value,minValue:["numberRange","dateRange"].includes(C.type)?m.minValue:C.minValue,maxValue:["numberRange","dateRange"].includes(C.type)?m.maxValue:C.maxValue}},S=C=>C.label===h?{...C,filterOptions:C.filterOptions.map(k)}:C,D=c.map(S);d(C=>C.map(S));const F=D.flatMap(({filterOptions:C})=>C);i(F),g([])},[c,i,h]),j=f.useCallback((m,v)=>{const k=`li-filter-option-${m}`;return t.jsxs(Wr,{icon:v,onClick:$(m),style:{minWidth:"180px"},value:k,width:"100%",children:[m,u[m]===void 0?void 0:t.jsx(G,{tagLabel:u[m].length.toString()})]},k)},[u,$]);return f.useEffect(()=>{const m=e.reduce((v,{label:k,filterOptions:S})=>{const D=S.flatMap(({value:E,minValue:R,maxValue:P})=>[R,P,E]).filter(Boolean),F=S.flatMap(({options:E})=>E??[]).filter(({checked:E=!1})=>E).map(({value:E})=>E),C=[...D,...F];return C.length===0?v:{...v,[k]:C}},{});x(m),p.length>0&&a&&a("column")},[p,e,a]),n==="grouped"?t.jsx(y,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:p.length>0?"unset":"360px",style:{columnGap:"10px"},width:"100%",wrap:"wrap",children:p.length>0?t.jsx(_e,{id:"filters-options",onSearch:r,onSubmit:w,options:p}):Object.entries(Zt(e)).map(([m,v])=>t.jsxs(y,{children:[t.jsx(z,{color:l.palette.gray[400],mb:.25,size:"sm",children:m}),v.map(({label:k,icon:S="filter-list"})=>j(k,S))]},m))}):t.jsx(y,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:p.length>0?"unset":"200px",style:{columnGap:"10px"},width:"100%",wrap:"wrap",children:p.length>0?t.jsx(_e,{id:"filters-options",onSearch:r,onSubmit:w,options:p}):e.map(({label:m,icon:v="filter-list"})=>j(m,v))})},an=({options:e,onApplyFilters:n,onSearch:i,modalRef:r,variant:a})=>{const[o,l]=f.useState("row"),[c,d]=f.useState(!0),p=s.Je(),g=f.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:r.close,px:.25,py:.25,variant:"ghost"});return f.useEffect(()=>{const x=h=>{const b=g.current;b&&!b.contains(h.target)&&r.close()};if(c)return document.addEventListener("mousedown",x,!0),()=>{document.removeEventListener("mousedown",x,!0)}},[g,c,r]),t.jsx(Br,{$bgColor:"transparent","aria-label":r.name,children:t.jsxs(Ze,{$size:"fixed",alignItems:o==="row"?"start":"end",display:"flex",flexDirection:o,gap:.5,id:"filters-list",position:"relative",px:1.25,py:1.25,ref:g,style:{overflow:"hidden",width:"max-content"},children:[o==="column"?u:void 0,t.jsx(rn,{onApplyFilters:n,onSearch:i,options:e,setDirection:l,setHandler:d,variant:a}),o==="row"?u:void 0]})})};function Hr(e){if(e)return e}function on(e){if(!e||e.length===0)return;const n=e.filter(r=>r.checked).map(r=>r.label??r.value);return n.length===0?void 0:n.join(", ")}function _r(e,n,i){const r=i??"",a=s._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),o=s._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!s._.isUndefined(a)&&!s._.isUndefined(o))return`${a}${r} - ${o}${r}`;if(!s._.isUndefined(a))return`Min ${a}${r}`;if(!s._.isUndefined(o))return`Max ${o}${r}`}function Jr(e,n){if(s.dayjs_minExports.extend(s.localizedFormat),!(s._.isUndefined(e)&&s._.isUndefined(n))){if(e!==""&&n!==""&&!s._.isUndefined(e)&&!s._.isUndefined(n))return`${s.dayjs(e).format("LL")} - ${s.dayjs(n).format("LL")}`;if(e!==""&&!s._.isUndefined(e))return`From ${s.dayjs(e).format("LL")}`;if(n!==""&&!s._.isUndefined(n))return`To ${s.dayjs(n).format("LL")}`}}function Ur(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const ce=({filter:e,icon:n="filter-list",label:i,onClose:r,filterValue:a})=>s._.isNil(a)||s._.isEmpty(String(a))?null:t.jsx(G,{filterValues:a,icon:n,id:"remove-filter",onClose:r(e),tagLabel:`${i} `}),Vr=({options:e,onClose:n})=>{const i=e.flatMap(r=>r.filterOptions.map(a=>{const{filterFn:o,label:l,type:c,value:d,options:p,minValue:g,maxValue:u}=a;switch(c){case"numberRange":{const x=_r(g,u,r.placeholder);return t.jsx(ce,{filter:a,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case"dateRange":{const x=Jr(g==null?void 0:g.toString(),u==null?void 0:u.toString());return t.jsx(ce,{filter:a,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case"radioButton":case"checkboxes":{const x=on(p);return t.jsx(ce,{filter:a,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case void 0:case"select":case"text":default:{const x=Hr(d),h=Ur(c,r.label,o);return t.jsx(ce,{filter:a,filterValue:x,icon:r.icon,label:h,onClose:n},l)}}})).filter(r=>{if(r===null)return!1;const{filterValue:a}=r.props;return!s._.isNil(a)&&!s._.isEmpty(String(a))});return i.length>0?t.jsx(y,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},Gr=(e,n)=>{function i(l,c){if(c.value===""||c.value===void 0||s._.defaultTo(c.isBackFilter,!1))return!0;switch(c.filterFn){case"includesInsensitive":return String(l[c.key]).toLowerCase().includes(c.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[c.key]).toLowerCase()===c.value.toLowerCase()}}function r(l,c){if(!c.options||c.options.length===0)return!0;const d=c.options.filter(p=>p.checked).map(p=>p.value);return d.length===0?!0:d.includes(String(l[c.key]))}function a(l,c,d){const p=d(String(l[c.key])),{minValue:g,maxValue:u}=c,x=s._.isEmpty(g)&&typeof g!="number"?void 0:d(String(g)),h=s._.isEmpty(u)&&typeof u!="number"?void 0:d(String(u));return s._.isUndefined(x)&&s._.isUndefined(h)?!0:(x??-1/0)<=p&&p<=(h??1/0)}function o(l){return n.every(c=>{if(typeof c.key=="function")return c.key(l,c.value);switch(c.type){case"radioButton":case"checkboxes":return r(l,c);case"numberRange":return a(l,c,Number);case"dateRange":return a(l,c,d=>new Date(d));case"select":case"text":default:return i(l,c)}})}return e.filter(o)},xt=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,Yr=e=>{var i;const n=((i=e.options)==null?void 0:i.map(r=>({...r,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},qr=({dataset:e,localStorageKey:n,options:i,setFilteredDataset:r,onFiltersChange:a,onReset:o,onSearch:l,variant:c="ungrouped"})=>{const d=Re("filters-modal"),[p,g]=f.useState([]),[u,x]=f.useState(xt(p)),h=i.map(m=>({...m,filterOptions:m.filterOptions.map(v=>p.find(S=>S.key===v.key&&S.type===v.type&&S.filterFn===v.filterFn)??{...v})})),b=f.useCallback(m=>{g([...m]),localStorage.setItem(n,JSON.stringify(m))},[g,n]),$=f.useCallback(()=>{o&&o(),d.toggle()},[d,o]),w=f.useCallback(m=>()=>{o&&o();const v=p.map(k=>k.key===m.key&&k.type===m.type&&k.filterFn===m.filterFn?Yr(k):k);g(v),localStorage.setItem(n,JSON.stringify(v))},[p,n,o]);return f.useEffect(()=>{const m=localStorage.getItem(n),v=i.flatMap(S=>S.filterOptions),k=m?JSON.parse(m):v;v.flatMap(S=>S.value).filter(Boolean).length>0||v.flatMap(S=>S.options).filter(S=>(S==null?void 0:S.checked)===void 0).length>0?(g(v),localStorage.setItem(n,JSON.stringify(v))):g(k)},[n,i,g]),f.useEffect(()=>{r&&e!==void 0&&r(Gr(e,p)),x(xt(p)),a==null||a(p)},[e,p,r,x,a]),{Filters:()=>t.jsxs(y,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx(y,{pr:.25,children:t.jsx(L,{icon:"filter",id:"filterBtn",onClick:$,tag:u.toString(),variant:"ghost"})}),d.isOpen&&t.jsx(an,{modalRef:d,onApplyFilters:b,onSearch:l,options:h,variant:c})]}),options:h,removeFilter:w}},sn=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:r=void 0,confirmButton:a=void 0,content:o=void 0,description:l=void 0,modalRef:c,otherActions:d=void 0,onClose:p=void 0,tabItems:g=void 0,title:u=void 0,size:x,id:h="modal-container"})=>{const b=s.Je(),$=t.jsx(Jt,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(Ze,{$size:x,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(u)&&!s._.isNil(u)&&t.jsx(Vt,{description:l,modalRef:c,onClose:p,otherActions:d,title:u}),g&&t.jsx(y,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(Qe,{items:g})}),(s._.isObject(o)||r)&&t.jsxs(wr,{children:[r,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(Cr,{$framed:o.imageFramed,children:t.jsx(ne,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(z,{size:"sm",children:o.imageText})]}),t.jsx(Ut,{alert:n,cancelButton:i,confirmButton:a,modalRef:c})]})});return e&&c.isOpen?ae.createPortal($,document.getElementById("portals")??document.body):c.isOpen?$:null},Kr=()=>{const[e,n]=f.useState(!1),[i,r]=f.useState(),a=f.useRef(null),o=Re("confirm-dialog-modal"),l=f.useCallback(async g=>(r(g),n(!0),new Promise(u=>{a.current=u})),[]),c=f.useCallback(()=>{var g;n(!1),r(void 0),(g=a.current)==null||g.call(a,!0)},[]),d=f.useCallback(()=>{var g;n(!1),r(void 0),(g=a.current)==null||g.call(a,!1)},[]);return f.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:u})=>t.jsxs(sn,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(i==null?void 0:i.id)??"modal-confirm",onClick:c,text:"Confirm"},description:i==null?void 0:i.message,id:g,modalRef:{...o,close:d},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,u]}),confirm:l}},Xr=s.st.ul`
1961
1961
  ${({theme:e})=>`
1962
1962
  align-items: flex-start;
1963
1963
  border-radius: ${e.spacing[.25]};
@@ -2094,7 +2094,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=f.useMemo(g,[g]),x=f.useCallback(a
2094
2094
  background-color: ${e.palette.gray[100]};
2095
2095
  }
2096
2096
  `}
2097
- `,ln=({isSelected:e=!1,label:n,onSelect:i})=>{const r=s.Je(),a=f.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(et,{$isSelected:e,onClick:a,children:[e?t.jsx(T,{icon:"check",iconColor:r.palette.gray[800],iconSize:"xs"}):null,t.jsx(z,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},da=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:r,onClose:a,selectedItem:o,title:l,variant:c})=>{const d=s.Je(),[p,g]=f.useState(n),[u,x]=f.useState(""),h=f.useCallback(w=>{g(k=>k.filter(m=>String(m.name).toLowerCase().includes(w.toLocaleLowerCase())))},[g]),b=f.useCallback(w=>{w.currentTarget&&(x(w.currentTarget.value),h(w.currentTarget.value))},[x,h]);f.useEffect(()=>{g(n),h(u)},[n,h,u]);const $=t.jsx(y,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(y,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(ca,{$itemsLength:p.length,children:[t.jsxs(y,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(z,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(M,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:a,variant:"ghost"})]}),t.jsx(y,{mt:1,children:t.jsx(ue,{onInput:b,placeholder:"Search"})}),t.jsx(re,{mb:1,mt:1}),t.jsxs(y,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(et,{onClick:i,children:t.jsxs(y,{alignItems:"center",display:"flex",children:[t.jsx(T,{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(w=>t.jsx(ln,{isSelected:o.toLowerCase()===w.name,label:w.name.charAt(0).toUpperCase()+w.name.slice(1),onSelect:r},w.name))]})]})})});return e?ae.createPortal($,document.body):t.jsx("div",{})},pa=({description:e,height:n="auto",leftIconName:i,children:r,rightIconName:a,title:o,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:p="centered",width:g="318px"})=>{const u=s.Je(),x=p==="centered",h=l&&t.jsx(V,{icon:a??i,iconColor:u.palette.gray[800],id:l,place:d,tip:c});return t.jsxs(y,{alignItems:x?"center":"flex-start",bgColor:u.palette.gray[50],border:`1px solid ${u.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:x?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:g,children:[t.jsxs(y,{alignItems:"center",display:"flex",gap:.5,children:[x||s.lodashExports.isUndefined(i)?void 0:h,t.jsx(z,{color:x?u.palette.gray[800]:u.palette.gray[400],size:"md",textAlign:x?"center":"start",children:e}),x||s.lodashExports.isUndefined(a)?void 0:h]}),t.jsxs(y,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[x&&!s.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[s.lodashExports.isUndefined(o)?void 0:t.jsx(U,{fontWeight:"bold",size:"md",children:o}),r]}),x&&!s.lodashExports.isUndefined(a)?h:void 0]})]})},ga=({actions:e,children:n,header:i,title:r,tabs:a,footer:o})=>{const l=s.Je();return t.jsxs(y,{alignItems:"flex-start",bgColor:l.palette.white,borderLeft:`1px solid ${l.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs(y,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs(y,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(z,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:r}),i]}),e&&t.jsx(y,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},p)=>t.jsx(M,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${p}-${c}`))})]}),t.jsx(y,{display:"flex",pt:.25,width:"100%",children:t.jsx(Qe,{items:a})}),t.jsx(y,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),o&&t.jsx(y,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:o.map(({icon:c,text:d,onClick:p},g)=>t.jsx(L,{icon:c,onClick:p,variant:g===0?"primary":"tertiary",width:"100%",children:d},`${g}-${d}`))})]})},ua=s.st.span`
2097
+ `,ln=({isSelected:e=!1,label:n,onSelect:i})=>{const r=s.Je(),a=f.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(et,{$isSelected:e,onClick:a,children:[e?t.jsx(T,{icon:"check",iconColor:r.palette.gray[800],iconSize:"xs"}):null,t.jsx(z,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},da=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:r,onClose:a,selectedItem:o,title:l,variant:c})=>{const d=s.Je(),[p,g]=f.useState(n),[u,x]=f.useState(""),h=f.useCallback(w=>{g(j=>j.filter(m=>String(m.name).toLowerCase().includes(w.toLocaleLowerCase())))},[g]),b=f.useCallback(w=>{w.currentTarget&&(x(w.currentTarget.value),h(w.currentTarget.value))},[x,h]);f.useEffect(()=>{g(n),h(u)},[n,h,u]);const $=t.jsx(y,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(y,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(ca,{$itemsLength:p.length,children:[t.jsxs(y,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(z,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(M,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:a,variant:"ghost"})]}),t.jsx(y,{mt:1,children:t.jsx(ue,{onInput:b,placeholder:"Search"})}),t.jsx(re,{mb:1,mt:1}),t.jsxs(y,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(et,{onClick:i,children:t.jsxs(y,{alignItems:"center",display:"flex",children:[t.jsx(T,{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(w=>t.jsx(ln,{isSelected:o.toLowerCase()===w.name,label:w.name.charAt(0).toUpperCase()+w.name.slice(1),onSelect:r},w.name))]})]})})});return e?ae.createPortal($,document.body):t.jsx("div",{})},pa=({description:e,height:n="auto",leftIconName:i,children:r,rightIconName:a,title:o,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:p="centered",width:g="318px"})=>{const u=s.Je(),x=p==="centered",h=l&&t.jsx(V,{icon:a??i,iconColor:u.palette.gray[800],id:l,place:d,tip:c});return t.jsxs(y,{alignItems:x?"center":"flex-start",bgColor:u.palette.gray[50],border:`1px solid ${u.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:x?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:g,children:[t.jsxs(y,{alignItems:"center",display:"flex",gap:.5,children:[x||s.lodashExports.isUndefined(i)?void 0:h,t.jsx(z,{color:x?u.palette.gray[800]:u.palette.gray[400],size:"md",textAlign:x?"center":"start",children:e}),x||s.lodashExports.isUndefined(a)?void 0:h]}),t.jsxs(y,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[x&&!s.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[s.lodashExports.isUndefined(o)?void 0:t.jsx(U,{fontWeight:"bold",size:"md",children:o}),r]}),x&&!s.lodashExports.isUndefined(a)?h:void 0]})]})},ga=({actions:e,children:n,header:i,title:r,tabs:a,footer:o})=>{const l=s.Je();return t.jsxs(y,{alignItems:"flex-start",bgColor:l.palette.white,borderLeft:`1px solid ${l.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs(y,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs(y,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(z,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:r}),i]}),e&&t.jsx(y,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},p)=>t.jsx(M,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${p}-${c}`))})]}),t.jsx(y,{display:"flex",pt:.25,width:"100%",children:t.jsx(Qe,{items:a})}),t.jsx(y,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),o&&t.jsx(y,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:o.map(({icon:c,text:d,onClick:p},g)=>t.jsx(L,{icon:c,onClick:p,variant:g===0?"primary":"tertiary",width:"100%",children:d},`${g}-${d}`))})]})},ua=s.st.span`
2098
2098
  ${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
2099
2099
  background-color: ${n};
2100
2100
  border-radius: 5px;
@@ -2260,7 +2260,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=f.useMemo(g,[g]),x=f.useCallback(a
2260
2260
  &::-webkit-inner-spin-button {
2261
2261
  opacity: 1;
2262
2262
  }
2263
- `,La=f.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:r=0,max:a,min:o,name:l,onEnter:c,tooltipMessage:d,...p},g){const u=i<0?0:i,[x,h]=f.useState(Number(r).toFixed(u)),b=f.useCallback(k=>{const m=s.lodashExports.toNumber(k.target.value);k.target.value.endsWith(".")?h(k.target.value):m>=Number(o)&&m<=Number(a)&&(h(String(m)),n&&c(s.lodashExports.toNumber(m.toFixed(u)))),k.stopPropagation()},[n,u,a,o,c]),$=f.useCallback(k=>{k.currentTarget.contains(k.relatedTarget)||h(Number(r).toFixed(u)),k.stopPropagation()},[u,r]),w=f.useCallback(k=>{k.stopPropagation(),k.key==="Enter"&&!s.lodashExports.isEmpty(k.currentTarget.value)&&c(s.lodashExports.toNumber(k.currentTarget.value))},[c]);return t.jsx(Ra,{onBlur:$,tabIndex:-1,children:t.jsx(V,{id:"numberInputTooltip",tip:d,children:t.jsx(Aa,{...p,"aria-label":l,"aria-valuemax":Number(a),"aria-valuemin":Number(o),"aria-valuenow":Number(x),max:a,min:o,name:l,onChange:b,onKeyUp:w,ref:g,step:10**-u,type:"number",value:x})})})}),Pa={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Ue=({icon:e,label:n,onClick:i,onlyLabel:r=!1,provider:a="GitLab"})=>{const o=s.Je();return t.jsxs(y,{alignItems:"center",bgColorHover:o.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:[r?!1:t.jsx(y,{height:"24px",width:"24px",children:e===void 0?t.jsx(ne,{alt:`${a} Logo`,height:"100%",publicId:Pa[a],width:"100%"}):t.jsx(T,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx(y,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(z,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:r?"break-spaces":"nowrap",wordWrap:"unset",children:n??a})})]})},Wa=({align:e="end",buttonLabel:n="Add Credential",children:i,id:r,manualOption:a,providers:o})=>{const l=s.Je(),[c,d]=f.useState(!1),p=f.useRef(null);te(p.current,()=>{d(!1)},!0);const g=f.useCallback(h=>{a==null||a.onClick(h),d(!1)},[a]),u=f.useCallback(()=>{d(h=>!h)},[d]),x=f.useCallback(h=>b=>{var $;($=o[h])==null||$.onClick(b),d(!1)},[o]);return t.jsxs(y,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(L,{icon:"plus",onClick:u,variant:"primary",children:n}),t.jsxs(y,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:r,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:c?"visible":"hidden",zIndex:10,children:[Object.keys(o).map(h=>t.jsx(Ue,{onClick:x(h),provider:h},h)),a===void 0?void 0:t.jsx(Ue,{icon:"square-plus",label:a.label??"Add manually",onClick:g}),i]})]})},Ba=s.st.div`
2263
+ `,La=f.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:r=0,max:a,min:o,name:l,onEnter:c,tooltipMessage:d,...p},g){const u=i<0?0:i,[x,h]=f.useState(Number(r).toFixed(u)),b=f.useCallback(j=>{const m=s.lodashExports.toNumber(j.target.value);j.target.value.endsWith(".")?h(j.target.value):m>=Number(o)&&m<=Number(a)&&(h(String(m)),n&&c(s.lodashExports.toNumber(m.toFixed(u)))),j.stopPropagation()},[n,u,a,o,c]),$=f.useCallback(j=>{j.currentTarget.contains(j.relatedTarget)||h(Number(r).toFixed(u)),j.stopPropagation()},[u,r]),w=f.useCallback(j=>{j.stopPropagation(),j.key==="Enter"&&!s.lodashExports.isEmpty(j.currentTarget.value)&&c(s.lodashExports.toNumber(j.currentTarget.value))},[c]);return t.jsx(Ra,{onBlur:$,tabIndex:-1,children:t.jsx(V,{id:"numberInputTooltip",tip:d,children:t.jsx(Aa,{...p,"aria-label":l,"aria-valuemax":Number(a),"aria-valuemin":Number(o),"aria-valuenow":Number(x),max:a,min:o,name:l,onChange:b,onKeyUp:w,ref:g,step:10**-u,type:"number",value:x})})})}),Pa={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Ue=({icon:e,label:n,onClick:i,onlyLabel:r=!1,provider:a="GitLab"})=>{const o=s.Je();return t.jsxs(y,{alignItems:"center",bgColorHover:o.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:[r?!1:t.jsx(y,{height:"24px",width:"24px",children:e===void 0?t.jsx(ne,{alt:`${a} Logo`,height:"100%",publicId:Pa[a],width:"100%"}):t.jsx(T,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx(y,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(z,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:r?"break-spaces":"nowrap",wordWrap:"unset",children:n??a})})]})},Wa=({align:e="end",buttonLabel:n="Add Credential",children:i,id:r,manualOption:a,providers:o})=>{const l=s.Je(),[c,d]=f.useState(!1),p=f.useRef(null);te(p.current,()=>{d(!1)},!0);const g=f.useCallback(h=>{a==null||a.onClick(h),d(!1)},[a]),u=f.useCallback(()=>{d(h=>!h)},[d]),x=f.useCallback(h=>b=>{var $;($=o[h])==null||$.onClick(b),d(!1)},[o]);return t.jsxs(y,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(L,{icon:"plus",onClick:u,variant:"primary",children:n}),t.jsxs(y,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:r,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:c?"visible":"hidden",zIndex:10,children:[Object.keys(o).map(h=>t.jsx(Ue,{onClick:x(h),provider:h},h)),a===void 0?void 0:t.jsx(Ue,{icon:"square-plus",label:a.label??"Add manually",onClick:g}),i]})]})},Ba=s.st.div`
2264
2264
  ${({theme:e})=>`
2265
2265
  height: ${e.spacing[1]};
2266
2266
  width: ${e.spacing[1]};
@@ -2371,7 +2371,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=f.useMemo(g,[g]),x=f.useCallback(a
2371
2371
  border-start-end-radius: ${i&&n<100?"0":"inherit"};
2372
2372
  background-color: ${r==="compliance"?Ha(e,n):"inherit"};
2373
2373
  `}
2374
- `,Ua=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:r=!1,orientation:a="horizontal",rounded:o=!0,variant:l="default"})=>{const c=r&&i==="left",d=r?t.jsx(y,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(z,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,p=t.jsx(_a,{$minWidth:e,$orientation:a,$rounded:o,$variant:l,className:a,children:t.jsx(Ja,{$percentage:n,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs(y,{alignItems:"center",display:"inline-flex",flexDirection:c?"row-reverse":"row",height:a==="horizontal"?"auto":"100%",maxWidth:c?`${e+43}px`:void 0,minWidth:c?`${e+43}px`:void 0,textAlign:"end",children:[p,d]})},dn=({description:e="",highlightDescription:n=""})=>{const i=s.Je(),r=typeof n=="string",a=r?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(z,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:r?t.jsxs(f.Fragment,{children:[t.jsx(pe,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:n}),e]}):e.split(a).map((o,l)=>n.includes(o)?t.jsx(pe,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:o},`${l+1}-bold`):o)}):t.jsx(z,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},Va=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:r,confirmButton:a,container:o,description:l,highlightDescription:c="",image:d,maxWidth:p,title:g,titleColor:u})=>{const x=s.Je(),{alt:h,src:b,width:$="77px",height:w="77px"}=d,k=f.useCallback(()=>{n==null||n.onClick()},[n]),m=f.useCallback(()=>{a==null||a.onClick()},[a]),v=t.jsx(y,{alignItems:"center","aria-label":g,"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(y,{bgColor:x.palette.white,border:`1px solid ${x.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:p,pb:2.5,pl:2.5,pr:2.5,pt:2.5,shadow:"lg",width:"100%",zIndex:11,children:[t.jsxs(y,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(y,{children:t.jsx(ne,{alt:h,height:w,publicId:b,width:$})}),t.jsxs(y,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[t.jsx(U,{color:u,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:g}),t.jsx(dn,{description:l,highlightDescription:c})]})]}),r&&t.jsx(y,{mb:1,scroll:"y",children:t.jsx(y,{height:"100%",children:r})}),t.jsxs(y,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[s.lodashExports.isObject(a)?t.jsx(L,{onClick:m,variant:(a==null?void 0:a.variant)??"primary",children:a==null?void 0:a.text},a==null?void 0:a.key):void 0,s.lodashExports.isObject(n)?t.jsx(L,{onClick:k,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?ae.createPortal(v,o??document.body):v},Ga=s.st.div.attrs({className:"comp-scroll-up"})`
2374
+ `,Ua=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:r=!1,orientation:a="horizontal",rounded:o=!0,variant:l="default"})=>{const c=r&&i==="left",d=r?t.jsx(y,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(z,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,p=t.jsx(_a,{$minWidth:e,$orientation:a,$rounded:o,$variant:l,className:a,children:t.jsx(Ja,{$percentage:n,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs(y,{alignItems:"center",display:"inline-flex",flexDirection:c?"row-reverse":"row",height:a==="horizontal"?"auto":"100%",maxWidth:c?`${e+43}px`:void 0,minWidth:c?`${e+43}px`:void 0,textAlign:"end",children:[p,d]})},dn=({description:e="",highlightDescription:n=""})=>{const i=s.Je(),r=typeof n=="string",a=r?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(z,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:r?t.jsxs(f.Fragment,{children:[t.jsx(pe,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:n}),e]}):e.split(a).map((o,l)=>n.includes(o)?t.jsx(pe,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:o},`${l+1}-bold`):o)}):t.jsx(z,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},Va=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:r,confirmButton:a,container:o,description:l,highlightDescription:c="",image:d,maxWidth:p,title:g,titleColor:u})=>{const x=s.Je(),{alt:h,src:b,width:$="77px",height:w="77px"}=d,j=f.useCallback(()=>{n==null||n.onClick()},[n]),m=f.useCallback(()=>{a==null||a.onClick()},[a]),v=t.jsx(y,{alignItems:"center","aria-label":g,"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(y,{bgColor:x.palette.white,border:`1px solid ${x.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:p,pb:2.5,pl:2.5,pr:2.5,pt:2.5,shadow:"lg",width:"100%",zIndex:11,children:[t.jsxs(y,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(y,{children:t.jsx(ne,{alt:h,height:w,publicId:b,width:$})}),t.jsxs(y,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[t.jsx(U,{color:u,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:g}),t.jsx(dn,{description:l,highlightDescription:c})]})]}),r&&t.jsx(y,{mb:1,scroll:"y",children:t.jsx(y,{height:"100%",children:r})}),t.jsxs(y,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[s.lodashExports.isObject(a)?t.jsx(L,{onClick:m,variant:(a==null?void 0:a.variant)??"primary",children:a==null?void 0:a.text},a==null?void 0:a.key):void 0,s.lodashExports.isObject(n)?t.jsx(L,{onClick:j,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?ae.createPortal(v,o??document.body):v},Ga=s.st.div.attrs({className:"comp-scroll-up"})`
2375
2375
  bottom: 15px;
2376
2376
  position: fixed;
2377
2377
  right: 140px;
@@ -2417,7 +2417,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=f.useMemo(g,[g]),x=f.useCallback(a
2417
2417
  height: auto;
2418
2418
  }
2419
2419
  `}
2420
- `,no=({children:e,closeIconId:n="close-menu",isOpen:i,items:r,onClose:a,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:p})=>{const g=s.Je(),u=f.useRef(null),x=f.useCallback(h=>()=>{h(),a()},[a]);return f.useEffect(()=>{const h=["mousedown","touchstart"],b=$=>{var C;const w=$.target,k=document.getElementById("helpBtn"),m=document.getElementById("filterBtn"),v=(w===k||((k==null?void 0:k.contains(w))??!1)||w===m||(m==null?void 0:m.contains(w)))??!1;i&&!v&&!(((C=u.current)==null?void 0:C.contains(w))??!1)&&a()};return h.forEach($=>{document.addEventListener($,b,{passive:!0})}),()=>{h.forEach($=>{document.removeEventListener($,b)})}},[i,a]),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx(to,{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(y,{height:"100%",position:"relative",children:[t.jsxs(y,{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:a,px:.25,py:.25,variant:"ghost"})]}),t.jsxs(y,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs(y,{py:1.25,children:[(r??[]).map(({customBadge:h,description:b,icon:$,onClick:w,requiresUpgrade:k,title:m})=>t.jsx(pn,{customBadge:h,description:b,icon:$,onClick:x(w),requiresUpgrade:k,title:m},m)),e&&t.jsx(y,{px:1.25,children:e})]}),o===void 0?void 0:t.jsxs(y,{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:[c===void 0?void 0:t.jsx(L,{color:`${g.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(L,{onClick:l,type:"submit",children:o})]})]})]})})})},io=(e,n)=>n>=50?`
2420
+ `,no=({children:e,closeIconId:n="close-menu",isOpen:i,items:r,onClose:a,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:p})=>{const g=s.Je(),u=f.useRef(null),x=f.useCallback(h=>()=>{h(),a()},[a]);return f.useEffect(()=>{const h=["mousedown","touchstart"],b=$=>{var k;const w=$.target,j=document.getElementById("helpBtn"),m=document.getElementById("filterBtn"),v=(w===j||((j==null?void 0:j.contains(w))??!1)||w===m||(m==null?void 0:m.contains(w)))??!1;i&&!v&&!(((k=u.current)==null?void 0:k.contains(w))??!1)&&a()};return h.forEach($=>{document.addEventListener($,b,{passive:!0})}),()=>{h.forEach($=>{document.removeEventListener($,b)})}},[i,a]),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx(to,{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(y,{height:"100%",position:"relative",children:[t.jsxs(y,{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:a,px:.25,py:.25,variant:"ghost"})]}),t.jsxs(y,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs(y,{py:1.25,children:[(r??[]).map(({customBadge:h,description:b,icon:$,onClick:w,requiresUpgrade:j,title:m})=>t.jsx(pn,{customBadge:h,description:b,icon:$,onClick:x(w),requiresUpgrade:j,title:m},m)),e&&t.jsx(y,{px:1.25,children:e})]}),o===void 0?void 0:t.jsxs(y,{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:[c===void 0?void 0:t.jsx(L,{color:`${g.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(L,{onClick:l,type:"submit",children:o})]})]})]})})})},io=(e,n)=>n>=50?`
2421
2421
  ${e.palette.gray[200]} 50%,
2422
2422
  ${e.palette.primary[500]} 50.05%,
2423
2423
  ${e.palette.primary[500]} ${n}%,