@fluidattacks/design 3.20.0-pr → 3.20.0-pr.2

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 (144) hide show
  1. package/dist/components/@core/index.js +1 -1
  2. package/dist/components/accordion/accordion-content/index.js +1 -1
  3. package/dist/components/accordion/index.js +1 -1
  4. package/dist/components/alert/index.js +1 -1
  5. package/dist/components/avatar/index.js +1 -1
  6. package/dist/components/button/index.js +1 -1
  7. package/dist/components/card/card-header/index.js +1 -1
  8. package/dist/components/card/card-with-image/index.js +1 -1
  9. package/dist/components/card/card-with-input/index.js +1 -1
  10. package/dist/components/card/card-with-options/index.js +1 -1
  11. package/dist/components/card/card-with-selector/index.js +1 -1
  12. package/dist/components/card/card-with-switch/index.js +1 -1
  13. package/dist/components/card/index.js +1 -1
  14. package/dist/components/carousel/index.js +1 -1
  15. package/dist/components/checkbox/index.js +1 -1
  16. package/dist/components/cloud-image/index.js +1 -1
  17. package/dist/components/code-snippet/index.js +1 -1
  18. package/dist/components/code-snippet/location-code/index.js +1 -1
  19. package/dist/components/colors/index.js +1 -1
  20. package/dist/components/conditions-dialog/index.js +1 -1
  21. package/dist/components/confirm-dialog/index.js +1 -1
  22. package/dist/components/container/index.js +1 -1
  23. package/dist/components/divider/index.js +1 -1
  24. package/dist/components/dropdown/index.js +1 -1
  25. package/dist/components/empty-state/empty-button/index.js +1 -1
  26. package/dist/components/empty-state/index.js +1 -1
  27. package/dist/components/file-preview/index.js +1 -1
  28. package/dist/components/form/index.js +1 -1
  29. package/dist/components/form/inner-form/index.js +1 -1
  30. package/dist/components/grid-container/index.js +1 -1
  31. package/dist/components/group-selector/index.js +1 -1
  32. package/dist/components/group-selector/option-container/index.js +1 -1
  33. package/dist/components/icon/index.js +1 -1
  34. package/dist/components/icon-button/index.js +1 -1
  35. package/dist/components/indicator-card/index.js +1 -1
  36. package/dist/components/info-sidebar/index.js +1 -1
  37. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  38. package/dist/components/inputs/fields/combobox/index.js +1 -1
  39. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  40. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  41. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  42. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  43. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  44. package/dist/components/inputs/fields/date/index.js +1 -1
  45. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  46. package/dist/components/inputs/fields/date-range/index.js +1 -1
  47. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  48. package/dist/components/inputs/fields/date-time/index.js +1 -1
  49. package/dist/components/inputs/fields/editable/index.js +1 -1
  50. package/dist/components/inputs/fields/input/index.js +1 -1
  51. package/dist/components/inputs/fields/input-array/field/index.js +1 -1
  52. package/dist/components/inputs/fields/input-array/index.js +1 -1
  53. package/dist/components/inputs/fields/input-file/index.js +1 -1
  54. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  55. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  56. package/dist/components/inputs/fields/number/index.js +1 -1
  57. package/dist/components/inputs/fields/number-range/index.js +1 -1
  58. package/dist/components/inputs/fields/phone/index.js +1 -1
  59. package/dist/components/inputs/fields/text-area/index.js +1 -1
  60. package/dist/components/inputs/index.js +1 -1
  61. package/dist/components/inputs/label/index.js +1 -1
  62. package/dist/components/inputs/outline-container/index.js +1 -1
  63. package/dist/components/inputs/utils/action-button/index.js +1 -1
  64. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  65. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  66. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  67. package/dist/components/inputs/utils/dialog/index.js +1 -1
  68. package/dist/components/inputs/utils/number-field/index.js +1 -1
  69. package/dist/components/inputs/utils/popover/index.js +1 -1
  70. package/dist/components/layout/categories/buttons/index.js +1 -1
  71. package/dist/components/layout/categories/column/index.js +1 -1
  72. package/dist/components/layout/categories/gap/index.js +1 -1
  73. package/dist/components/layout/categories/row/index.js +1 -1
  74. package/dist/components/layout/index.js +1 -1
  75. package/dist/components/link/index.js +1 -1
  76. package/dist/components/list-item/index.js +1 -1
  77. package/dist/components/little-flag/index.js +1 -1
  78. package/dist/components/loading/index.js +1 -1
  79. package/dist/components/logo/index.js +1 -1
  80. package/dist/components/lottie/index.js +1 -1
  81. package/dist/components/menu/index.js +1 -1
  82. package/dist/components/message-banner/index.js +1 -1
  83. package/dist/components/modal/columns-modal/index.js +1 -1
  84. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  85. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  86. package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
  87. package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
  88. package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
  89. package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
  90. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
  91. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
  92. package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
  93. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  94. package/dist/components/modal/filters-modal/index.js +1 -1
  95. package/dist/components/modal/footer/index.js +1 -1
  96. package/dist/components/modal/header/index.js +1 -1
  97. package/dist/components/modal/index.js +1 -1
  98. package/dist/components/modal/modal-confirm/index.js +1 -1
  99. package/dist/components/notification/index.js +1 -1
  100. package/dist/components/notification-sign/index.js +1 -1
  101. package/dist/components/number-input/index.js +1 -1
  102. package/dist/components/oauth-selector/index.js +1 -1
  103. package/dist/components/oauth-selector/option-container/index.js +1 -1
  104. package/dist/components/plan-card/index.js +1 -1
  105. package/dist/components/plan-card/recommended-tag/index.js +1 -1
  106. package/dist/components/pop-up/description/index.d.ts +2 -1
  107. package/dist/components/pop-up/description/index.js +1 -1
  108. package/dist/components/pop-up/index.d.ts +1 -1
  109. package/dist/components/pop-up/index.js +1 -1
  110. package/dist/components/pop-up/index.stories.d.ts +2 -1
  111. package/dist/components/pop-up/types.d.ts +2 -0
  112. package/dist/components/premium-feature/index.js +1 -1
  113. package/dist/components/priority-score/index.js +1 -1
  114. package/dist/components/progress-bar/index.js +1 -1
  115. package/dist/components/radio-button/index.js +1 -1
  116. package/dist/components/scroll-button/index.js +1 -1
  117. package/dist/components/search/index.js +1 -1
  118. package/dist/components/severity-badge/index.js +1 -1
  119. package/dist/components/severity-overview/badge/index.js +1 -1
  120. package/dist/components/severity-overview/index.js +1 -1
  121. package/dist/components/show-on-hover/index.js +1 -1
  122. package/dist/components/slide-out-menu/index.js +1 -1
  123. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  124. package/dist/components/slider/index.js +1 -1
  125. package/dist/components/slider/thumb/index.js +1 -1
  126. package/dist/components/step-lapse/index.js +1 -1
  127. package/dist/components/table-button/index.js +1 -1
  128. package/dist/components/tabs/index.js +1 -1
  129. package/dist/components/tabs/tab/index.js +1 -1
  130. package/dist/components/tag/index.js +1 -1
  131. package/dist/components/timeline/card/index.js +1 -1
  132. package/dist/components/timeline/index.js +1 -1
  133. package/dist/components/toggle/index.js +1 -1
  134. package/dist/components/tooltip/index.js +1 -1
  135. package/dist/components/tour/index.js +1 -1
  136. package/dist/components/typography/heading/index.js +1 -1
  137. package/dist/components/typography/index.js +1 -1
  138. package/dist/components/typography/span/index.js +1 -1
  139. package/dist/components/typography/text/index.js +1 -1
  140. package/dist/{components-C2y8jUWc.js → components-Bbb1RElp.js} +55 -55
  141. package/dist/{components-DAo7cTBH.mjs → components-DfS0LP8e.mjs} +1025 -1002
  142. package/dist/hooks/index.js +1 -1
  143. package/dist/index.js +1 -1
  144. package/package.json +1 -1
@@ -16,7 +16,7 @@
16
16
  `},Hn=e=>e.includes("x")?"overflow-x: auto;":"",Mn=e=>e.includes("y")?"overflow-y: auto;":"",$e=e=>{const n=e.scroll?`
17
17
  ${Hn(e.scroll)}
18
18
  ${Mn(e.scroll)}
19
- `:"",i=D("visibility",e.visibility),a=D("display",e.display),r=D("height",e.height),o=D("width",e.width),l=D("max-height",e.maxHeight),c=D("max-width",e.maxWidth),d=D("min-height",e.minHeight),p=D("min-width",e.minWidth),g=D("box-shadow",e.shadow?T.shadows[e.shadow]:void 0),u=D("gap",e.gap===void 0?void 0:T.spacing[e.gap]),f=D("background-color",e.bgColor),h=D("background",e.bgGradient),b=D("flex-direction",e.flexDirection),y=D("flex-grow",e.flexGrow),m=D("justify-content",e.justify),v=D("justify-self",e.justifySelf),w=D("align-items",e.alignItems),j=D("align-self",e.alignSelf),k=D("flex-wrap",e.wrap);return`
19
+ `:"",i=D("visibility",e.visibility),a=D("display",e.display),r=D("height",e.height),o=D("width",e.width),l=D("max-height",e.maxHeight),c=D("max-width",e.maxWidth),d=D("min-height",e.minHeight),g=D("min-width",e.minWidth),p=D("box-shadow",e.shadow?T.shadows[e.shadow]:void 0),u=D("gap",e.gap===void 0?void 0:T.spacing[e.gap]),f=D("background-color",e.bgColor),h=D("background",e.bgGradient),b=D("flex-direction",e.flexDirection),y=D("flex-grow",e.flexGrow),m=D("justify-content",e.justify),j=D("justify-self",e.justifySelf),w=D("align-items",e.alignItems),v=D("align-self",e.alignSelf),k=D("flex-wrap",e.wrap);return`
20
20
  ${n}
21
21
  ${i}
22
22
  ${a}
@@ -25,19 +25,19 @@
25
25
  ${l}
26
26
  ${c}
27
27
  ${d}
28
- ${p}
29
28
  ${g}
29
+ ${p}
30
30
  ${f}
31
31
  ${h}
32
32
  ${u}
33
33
  ${b}
34
34
  ${y}
35
35
  ${m}
36
- ${v}
37
- ${w}
38
36
  ${j}
37
+ ${w}
38
+ ${v}
39
39
  ${k}
40
- `},me=e=>{const n=D("color",e.color),i=D("font-family",e.fontFamily),a=D("font-size",e.fontSize),r=D("font-weight",e.fontWeight),o=D("line-spacing",e.letterSpacing),l=D("line-height",e.lineSpacing),c=D("text-align",e.textAlign),d=D("text-decoration",e.textDecoration),p=D("text-overflow",e.textOverflow),g=D("white-space",e.whiteSpace),u=D("word-break",e.wordBreak),f=D("word-wrap",e.wordWrap);return`
40
+ `},me=e=>{const n=D("color",e.color),i=D("font-family",e.fontFamily),a=D("font-size",e.fontSize),r=D("font-weight",e.fontWeight),o=D("line-spacing",e.letterSpacing),l=D("line-height",e.lineSpacing),c=D("text-align",e.textAlign),d=D("text-decoration",e.textDecoration),g=D("text-overflow",e.textOverflow),p=D("white-space",e.whiteSpace),u=D("word-break",e.wordBreak),f=D("word-wrap",e.wordWrap);return`
41
41
  ${n}
42
42
  ${i}
43
43
  ${a}
@@ -46,8 +46,8 @@
46
46
  ${l}
47
47
  ${c}
48
48
  ${d}
49
- ${p}
50
49
  ${g}
50
+ ${p}
51
51
  ${u}
52
52
  ${f}
53
53
  `},we=e=>{const n=D("cursor",e.cursor),i=D("border-color",e.borderColorHover),a=D("background-color",e.bgColorHover),r=D("box-shadow",e.shadowHover===void 0?void 0:T.shadows[e.shadowHover]),o=D("transition",e.transition);return`
@@ -108,17 +108,17 @@
108
108
  ${a};
109
109
  }
110
110
  `}
111
- `,$=x.forwardRef(function({as:n="div",center:i,children:a,id:r,onHover:o,onLeave:l,styleMd:c,styleSm:d,...p},g){return t.jsx(_n,{$center:i,$styleMd:c,$styleSm:d,as:n,id:r,onMouseLeave:l,onMouseOver:o,ref:g,...p,children:a})}),Jn=s.st(Ye)`
112
- ${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$overflow:p="unset",$size:g,$sizeMd:u,$sizeSm:f,$textFill:h="unset",$whiteSpace:b="pre-line",$wordBreak:y="normal"})=>`
111
+ `,$=x.forwardRef(function({as:n="div",center:i,children:a,id:r,onHover:o,onLeave:l,styleMd:c,styleSm:d,...g},p){return t.jsx(_n,{$center:i,$styleMd:c,$styleSm:d,as:n,id:r,onMouseLeave:l,onMouseOver:o,ref:p,...g,children:a})}),Jn=s.st(Ye)`
112
+ ${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$overflow:g="unset",$size:p,$sizeMd:u,$sizeSm:f,$textFill:h="unset",$whiteSpace:b="pre-line",$wordBreak:y="normal"})=>`
113
113
  background: ${n};
114
114
  color: ${i};
115
115
  display: ${a};
116
116
  font-family: ${r};
117
- font-size: ${e.typography.heading[g]};
117
+ font-size: ${e.typography.heading[p]};
118
118
  font-weight: ${e.typography.weight[o]};
119
119
  letter-spacing: ${l};
120
120
  line-height: ${e.spacing[c]};
121
- overflow: ${p};
121
+ overflow: ${g};
122
122
  width: ${a==="block"?"100%":"auto"};
123
123
  white-space: ${b};
124
124
  word-break: ${y};
@@ -130,16 +130,16 @@
130
130
  and (min-width: ${e.breakpoints.mobile})
131
131
  and (max-width: ${e.breakpoints.tablet})
132
132
  {
133
- font-size: ${e.typography.heading[u??g]};
133
+ font-size: ${e.typography.heading[u??p]};
134
134
  }
135
135
 
136
136
  @media screen and (max-width: ${e.breakpoints.mobile}) {
137
- font-size: ${e.typography.heading[f??g]};
137
+ font-size: ${e.typography.heading[f??p]};
138
138
  line-height: ${e.spacing[d??c]};
139
139
  }
140
140
  `}
141
141
  `,mt=s.st(Ye)`
142
- ${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="regular",$fontStyle:l="normal",$letterSpacing:c=0,$lineSpacing:d=1.25,$lineSpacingSm:p,$overflow:g="unset",$size:u,$sizeMd:f,$sizeSm:h,$textFill:b="unset",$whiteSpace:y="pre-line",$wordBreak:m="normal"})=>`
142
+ ${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="regular",$fontStyle:l="normal",$letterSpacing:c=0,$lineSpacing:d=1.25,$lineSpacingSm:g,$overflow:p="unset",$size:u,$sizeMd:f,$sizeSm:h,$textFill:b="unset",$whiteSpace:y="pre-line",$wordBreak:m="normal"})=>`
143
143
  background: ${n};
144
144
  color: ${i};
145
145
  display: ${a};
@@ -149,7 +149,7 @@
149
149
  font-weight: ${e.typography.weight[o]};
150
150
  letter-spacing: ${c};
151
151
  line-height: ${e.spacing[d]};
152
- overflow: ${g};
152
+ overflow: ${p};
153
153
  width: ${a==="block"?"100%":"auto"};
154
154
  white-space: ${y};
155
155
  word-break: ${m};
@@ -166,7 +166,7 @@
166
166
 
167
167
  @media screen and (max-width: ${e.breakpoints.mobile}) {
168
168
  font-size: ${e.typography.text[h??u]};
169
- line-height: ${e.spacing[p??d]};
169
+ line-height: ${e.spacing[g??d]};
170
170
  }
171
171
  `}
172
172
  `,Un=s.st(qe)`
@@ -182,7 +182,7 @@
182
182
 
183
183
  ${i===void 0?"":`&::after { content: "${i}"; }`}
184
184
  `}
185
- `,U=x.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,overflow:u,size:f,sizeMd:h,sizeSm:b,textFill:y,whiteSpace:m,wordBreak:v,...w},j){return t.jsx(Jn,{$bgGradient:n,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$overflow:u,$size:f,$sizeMd:h,$sizeSm:b,$textFill:y,$whiteSpace:m,$wordBreak:v,className:a,ref:j,...w,children:i})}),pe=x.forwardRef(function({children:n,color:i,content:a,display:r,fontFamily:o,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,size:g,sizeMd:u,sizeSm:f,...h},b){return t.jsx(Un,{$color:i,$content:a,$display:r,$fontFamily:o,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$size:g,$sizeMd:u,$sizeSm:f,ref:b,...h,children:n})}),I=x.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,overflow:u,size:f,sizeMd:h,sizeSm:b,textFill:y,whiteSpace:m,wordBreak:v,fontStyle:w,...j},k){return t.jsx(mt,{$bgGradient:n,$color:r,$display:o,$fontFamily:l,$fontStyle:w,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$overflow:u,$size:f,$sizeMd:h,$sizeSm:b,$textFill:y,$whiteSpace:m,$wordBreak:v,className:a,ref:k,...j,children:i})}),wt=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(I,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return t.jsxs($,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[n,e.extraElement?t.jsx($,{children:e.extraElement}):void 0]})},Gn={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},Vn=s.st(qe)`
185
+ `,U=x.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:g,lineSpacingSm:p,overflow:u,size:f,sizeMd:h,sizeSm:b,textFill:y,whiteSpace:m,wordBreak:j,...w},v){return t.jsx(Jn,{$bgGradient:n,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:g,$lineSpacingSm:p,$overflow:u,$size:f,$sizeMd:h,$sizeSm:b,$textFill:y,$whiteSpace:m,$wordBreak:j,className:a,ref:v,...w,children:i})}),pe=x.forwardRef(function({children:n,color:i,content:a,display:r,fontFamily:o,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:g,size:p,sizeMd:u,sizeSm:f,...h},b){return t.jsx(Un,{$color:i,$content:a,$display:r,$fontFamily:o,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:g,$size:p,$sizeMd:u,$sizeSm:f,ref:b,...h,children:n})}),I=x.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:g,lineSpacingSm:p,overflow:u,size:f,sizeMd:h,sizeSm:b,textFill:y,whiteSpace:m,wordBreak:j,fontStyle:w,...v},k){return t.jsx(mt,{$bgGradient:n,$color:r,$display:o,$fontFamily:l,$fontStyle:w,$fontWeight:c,$letterSpacing:d,$lineSpacing:g,$lineSpacingSm:p,$overflow:u,$size:f,$sizeMd:h,$sizeSm:b,$textFill:y,$whiteSpace:m,$wordBreak:j,className:a,ref:k,...v,children:i})}),wt=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(I,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return t.jsxs($,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[n,e.extraElement?t.jsx($,{children:e.extraElement}):void 0]})},Gn={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},Vn=s.st(qe)`
186
186
  ${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:a,$rotation:r,$size:o,$secondaryColor:l})=>{const c=a?"":"brightness(50%)",d=a??"";return`
187
187
  color: ${n};
188
188
  cursor: ${e?"pointer":"inherit"};
@@ -218,7 +218,7 @@
218
218
  &:hover:not([disabled]) {
219
219
  transform: scale(1.2);
220
220
  }
221
- `;const F=x.forwardRef(function({clickable:n,disabled:i,hoverColor:a,icon:r,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:p,iconType:g="fa-solid",onClick:u,rotation:f,spanClass:h,secondaryColor:b,...y},m){return t.jsx(Vn,{$clickable:n,$color:l,$disabled:i,$hoverColor:a,$rotation:f,$secondaryColor:b,$size:d,className:h,"data-testid":`${r}-icon`,onClick:u,ref:m,...y,children:t.jsx("i",{className:`${g} fa-${r} ${o}`,...c!==void 0?{"data-fa-mask":c}:{},...p!==void 0?{"data-fa-transform":p}:{}})},`${g}-${r}`)}),Yn=x.forwardRef(function({aligned:n="end",items:i,bgColor:a},r){const o=s.Je(),[l,c]=x.useState(i.map(p=>p.expanded??!1)),d=x.useCallback(p=>g=>{g.preventDefault(),c(u=>u.map((f,h)=>h===p?!f:f))},[]);return t.jsx($,{borderColor:o.palette.gray[200],borderTop:"1px solid",ref:r,children:i.map((p,g)=>{const u=l[g];return t.jsxs($,{bgColor:a??o.palette.white,borderBottom:"1px solid",borderColor:o.palette.gray[200],children:[t.jsx($,{"aria-controls":`panel-${p.title}`,"aria-expanded":u,"aria-label":p.title,as:"button",bgColor:a??o.palette.white,bgColorHover:o.palette.gray[100],cursor:"pointer",display:"flex",onClick:d(g),padding:[.75,.75,.75,.75],width:"100%",children:t.jsxs($,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(I,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:p.title}),t.jsx(F,{icon:u?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),u&&t.jsx(wt,{item:p})]},p.title)})})}),qn=e=>{switch(e){case"warning":return"triangle-exclamation";case"info":return"circle-info";case"success":return"circle-check";case"error":default:return"circle-exclamation"}},{getVariant:Kn}=q(e=>({error:`
221
+ `;const F=x.forwardRef(function({clickable:n,disabled:i,hoverColor:a,icon:r,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:g,iconType:p="fa-solid",onClick:u,rotation:f,spanClass:h,secondaryColor:b,...y},m){return t.jsx(Vn,{$clickable:n,$color:l,$disabled:i,$hoverColor:a,$rotation:f,$secondaryColor:b,$size:d,className:h,"data-testid":`${r}-icon`,onClick:u,ref:m,...y,children:t.jsx("i",{className:`${p} fa-${r} ${o}`,...c!==void 0?{"data-fa-mask":c}:{},...g!==void 0?{"data-fa-transform":g}:{}})},`${p}-${r}`)}),Yn=x.forwardRef(function({aligned:n="end",items:i,bgColor:a},r){const o=s.Je(),[l,c]=x.useState(i.map(g=>g.expanded??!1)),d=x.useCallback(g=>p=>{p.preventDefault(),c(u=>u.map((f,h)=>h===g?!f:f))},[]);return t.jsx($,{borderColor:o.palette.gray[200],borderTop:"1px solid",ref:r,children:i.map((g,p)=>{const u=l[p];return t.jsxs($,{bgColor:a??o.palette.white,borderBottom:"1px solid",borderColor:o.palette.gray[200],children:[t.jsx($,{"aria-controls":`panel-${g.title}`,"aria-expanded":u,"aria-label":g.title,as:"button",bgColor:a??o.palette.white,bgColorHover:o.palette.gray[100],cursor:"pointer",display:"flex",onClick:d(p),padding:[.75,.75,.75,.75],width:"100%",children:t.jsxs($,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(I,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:g.title}),t.jsx(F,{icon:u?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),u&&t.jsx(wt,{item:g})]},g.title)})})}),qn=e=>{switch(e){case"warning":return"triangle-exclamation";case"info":return"circle-info";case"success":return"circle-check";case"error":default:return"circle-exclamation"}},{getVariant:Kn}=q(e=>({error:`
222
222
  background: ${e.palette.error[50]};
223
223
  border: 1px solid ${e.palette.error[500]};
224
224
  color: ${e.palette.error[700]};
@@ -418,7 +418,7 @@
418
418
  width: max-content;
419
419
  z-index: 999999;
420
420
  `}
421
- `,G=({children:e,disabled:n=!1,display:i="inline-block",height:a,icon:r,iconColor:o,iconSize:l,id:c,maxWidth:d,nodeTip:p,place:g="bottom",tip:u="",title:f="",hide:h=u===""&&f===""&&p===void 0,width:b})=>{const y=s.Je(),[m,v]=x.useState(!1),{refs:w,floatingStyles:j,context:k}=s.useFloating({middleware:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10}),s.shift()],onOpenChange:v,open:m,placement:g,whileElementsMounted:s.autoUpdate}),S=s.useHover(k,{delay:{close:0,open:500},move:!1}),R=s.useFocus(k),z=s.useRole(k,{role:r?"label":"tooltip"}),{getReferenceProps:C,getFloatingProps:N}=s.useInteractions([S,R,z]);return n?t.jsx(x.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(ti,{...C(),display:i,height:a,id:c,ref:w.setReference,width:b,children:r?t.jsx(F,{clickable:!0,disabled:n,icon:r,iconColor:o,iconSize:l??"xxs",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&re.createPortal(t.jsxs(ni,{...N(),$maxWidth:d,id:`floating-${c}`,ref:w.setFloating,style:j,children:[s.lodashExports.isEmpty(f)?void 0:t.jsx(I,{color:y.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:f}),s.lodashExports.isEmpty(u)?void 0:t.jsx(I,{color:y.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)]})},O=x.forwardRef(function({borderRadius:n,disabled:i,icon:a,iconColor:r,iconSize:o="xxs",iconTransform:l,iconType:c,id:d,justify:p="center",onClick:g,px:u,py:f,type:h="button",tooltip:b,tooltipPlace:y,value:m,variant:v="primary",...w},j){const k=t.jsx(ei,{$variant:v,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:p,onClick:g,px:u,py:f,ref:j,type:h,value:m,...w,children:t.jsx(F,{clickable:!1,icon:a,iconColor:r,iconSize:o,iconTransform:l,iconType:c})}),R=(h+(v??"")+(d??a)).replace(/ /u,"_");return b===void 0?k:t.jsx(G,{id:`${R}-tooltip`,place:y,tip:b,children:k})}),ii=x.forwardRef(function({autoHide:n=!1,children:i,closable:a=!1,iconEnabled:r=!0,onTimeOut:o,show:l=!0,time:c=8,variant:d="error",id:p,...g},u){const[f,h]=x.useState(l),b=x.useCallback(()=>{h(!1)},[]);return x.useEffect(()=>{const y=setTimeout(()=>{o==null||o(!0),n&&b()},c*1e3);return()=>{clearTimeout(y)}},[n,b,c,o]),x.useEffect(()=>{h(l)},[l,h]),t.jsx($,{display:f?"block":"none",ref:u,role:"alert",...g,children:t.jsxs(Xn,{$variant:d,id:p,children:[r?t.jsx(F,{clickable:!1,icon:qn(d),iconSize:"xs",iconType:"fa-light"}):void 0,t.jsx(Zn,{children:i}),a?t.jsx(O,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:b,px:.125,py:.125,variant:"ghost"}):void 0]})})}),ct=s.st.div`
421
+ `,G=({children:e,disabled:n=!1,display:i="inline-block",height:a,icon:r,iconColor:o,iconSize:l,id:c,maxWidth:d,nodeTip:g,place:p="bottom",tip:u="",title:f="",hide:h=u===""&&f===""&&g===void 0,width:b})=>{const y=s.Je(),[m,j]=x.useState(!1),{refs:w,floatingStyles:v,context:k}=s.useFloating({middleware:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10}),s.shift()],onOpenChange:j,open:m,placement:p,whileElementsMounted:s.autoUpdate}),C=s.useHover(k,{delay:{close:0,open:500},move:!1}),E=s.useFocus(k),z=s.useRole(k,{role:r?"label":"tooltip"}),{getReferenceProps:S,getFloatingProps:N}=s.useInteractions([C,E,z]);return n?t.jsx(x.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(ti,{...S(),display:i,height:a,id:c,ref:w.setReference,width:b,children:r?t.jsx(F,{clickable:!0,disabled:n,icon:r,iconColor:o,iconSize:l??"xxs",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&re.createPortal(t.jsxs(ni,{...N(),$maxWidth:d,id:`floating-${c}`,ref:w.setFloating,style:v,children:[s.lodashExports.isEmpty(f)?void 0:t.jsx(I,{color:y.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:f}),s.lodashExports.isEmpty(u)?void 0:t.jsx(I,{color:y.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:u}),s.lodashExports.isEmpty(g)?void 0:g]}),document.getElementById("root")??document.body)]})},O=x.forwardRef(function({borderRadius:n,disabled:i,icon:a,iconColor:r,iconSize:o="xxs",iconTransform:l,iconType:c,id:d,justify:g="center",onClick:p,px:u,py:f,type:h="button",tooltip:b,tooltipPlace:y,value:m,variant:j="primary",...w},v){const k=t.jsx(ei,{$variant:j,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:g,onClick:p,px:u,py:f,ref:v,type:h,value:m,...w,children:t.jsx(F,{clickable:!1,icon:a,iconColor:r,iconSize:o,iconTransform:l,iconType:c})}),E=(h+(j??"")+(d??a)).replace(/ /u,"_");return b===void 0?k:t.jsx(G,{id:`${E}-tooltip`,place:y,tip:b,children:k})}),ii=x.forwardRef(function({autoHide:n=!1,children:i,closable:a=!1,iconEnabled:r=!0,onTimeOut:o,show:l=!0,time:c=8,variant:d="error",id:g,...p},u){const[f,h]=x.useState(l),b=x.useCallback(()=>{h(!1)},[]);return x.useEffect(()=>{const y=setTimeout(()=>{o==null||o(!0),n&&b()},c*1e3);return()=>{clearTimeout(y)}},[n,b,c,o]),x.useEffect(()=>{h(l)},[l,h]),t.jsx($,{display:f?"block":"none",ref:u,role:"alert",...p,children:t.jsxs(Xn,{$variant:d,id:g,children:[r?t.jsx(F,{clickable:!1,icon:qn(d),iconSize:"xs",iconType:"fa-light"}):void 0,t.jsx(Zn,{children:i}),a?t.jsx(O,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:b,px:.125,py:.125,variant:"ghost"}):void 0]})})}),ct=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
  ${vt}
637
637
  `,ci=s.st(We.Link)`
638
638
  ${vt}
639
- `,Q=({children:e,color:n,download:i,href:a,iconPosition:r="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),p=t.jsx(F,{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(li,{$color:n,$variant:c,download:i,href:a,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(ci,{$variant:c,download:i,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:a,children:[l!==void 0&&r==="left"?p:void 0,e,l!==void 0&&r==="right"?p:void 0]})},V=({disabled:e,icon:n,iconColor:i="inherit",iconType:a="fa-light",id:r="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:p,priority:g="default",tagTitle:u="",tagLabel:f,variant:h="default"})=>{const b=f.length>25&&s.lodashExports.isEmpty(u+o),y=`${f.slice(0,25)}...`;return t.jsxs(pe,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(oi,{$fontSize:l,$variant:h,className:g,children:[n&&t.jsx(F,{icon:n,iconColor:i,iconSize:"xxs",iconType:a}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:u}),t.jsx("span",{children:b?y:f}),t.jsx("strong",{className:"w-full",children:o})]}),p?t.jsx(O,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(Q,{href:c,children:d})]})},di=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(i)&&(i.opener=null)},P=x.forwardRef(function({children:n,disabled:i=!1,external:a=!1,fontSize:r,href:o,id:l,icon:c,iconColor:d,iconType:p,name:g,onClick:u,rightIcon:f,tag:h,type:b="button",tooltip:y,tooltipPlace:m="bottom",underline:v=!1,value:w,variant:j="primary",width:k,...S},R){const z=y!==void 0,C=`${l}-tooltip`,N=x.useCallback(()=>{o&&di(o,a)},[a,o]),E=t.jsxs(jt,{$size:r,$variant:j,"aria-disabled":i,className:v?"underline":void 0,disabled:i,id:l,name:g,onClick:j==="link"?N:u,ref:R,type:b,value:w,width:k,...z?{"data-tooltip-id":C}:{},...S,children:[c!==void 0&&t.jsx(F,{icon:c,iconColor:d??void 0,iconSize:"xs",iconType:p??"fa-light"}),n,f||j==="link"?t.jsx(F,{icon:f??"arrow-right",iconSize:"xs",iconType:"fa-light"}):void 0,h===void 0?null:t.jsx(V,{tagLabel:h,variant:"default"})]});return z?t.jsx(G,{disabled:!z,id:C,place:m,tip:y,width:k,children:E}):E}),pi=x.forwardRef(function({children:n,onClick:i,userName:a,showIcon:r=!1,showUsername:o=!1},l){const c=!!i;return t.jsx($,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs($,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[c?t.jsxs(P,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(ct,{children:a[0].toUpperCase()}),o?t.jsx(I,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:a.split(" ")[0]}):void 0,r?t.jsx(F,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs($,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(ct,{children:a[0].toUpperCase()}),o?t.jsxs(I,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",a.split(" ")[0],"!"]}):void 0,r?t.jsx(F,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(ai,{children:n})]})})}),Ne=({authorEmail:e,date:n,description:i,descriptionColor:a,id:r,title:o,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:p})=>{const g=s.Je();return t.jsxs($,{width:"100%",children:[typeof o=="string"?t.jsx(I,{color:l??g.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:o}):o,t.jsxs($,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(I,{color:a??g.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(I,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(I,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Author: ${e}`}),p&&t.jsx(G,{icon:"circle-info",id:r,tip:p})]})]})},dt=s.st($).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
639
+ `,Q=({children:e,color:n,download:i,href:a,iconPosition:r="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),g=t.jsx(F,{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(li,{$color:n,$variant:c,download:i,href:a,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?g:void 0,e,r==="right"?g:void 0]}):t.jsxs(ci,{$variant:c,download:i,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:a,children:[l!==void 0&&r==="left"?g:void 0,e,l!==void 0&&r==="right"?g:void 0]})},V=({disabled:e,icon:n,iconColor:i="inherit",iconType:a="fa-light",id:r="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:g,priority:p="default",tagTitle:u="",tagLabel:f,variant:h="default"})=>{const b=f.length>25&&s.lodashExports.isEmpty(u+o),y=`${f.slice(0,25)}...`;return t.jsxs(pe,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(oi,{$fontSize:l,$variant:h,className:p,children:[n&&t.jsx(F,{icon:n,iconColor:i,iconSize:"xxs",iconType:a}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:u}),t.jsx("span",{children:b?y:f}),t.jsx("strong",{className:"w-full",children:o})]}),g?t.jsx(O,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:g,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(Q,{href:c,children:d})]})},di=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(i)&&(i.opener=null)},P=x.forwardRef(function({children:n,disabled:i=!1,external:a=!1,fontSize:r,href:o,id:l,icon:c,iconColor:d,iconType:g,name:p,onClick:u,rightIcon:f,tag:h,type:b="button",tooltip:y,tooltipPlace:m="bottom",underline:j=!1,value:w,variant:v="primary",width:k,...C},E){const z=y!==void 0,S=`${l}-tooltip`,N=x.useCallback(()=>{o&&di(o,a)},[a,o]),R=t.jsxs(jt,{$size:r,$variant:v,"aria-disabled":i,className:j?"underline":void 0,disabled:i,id:l,name:p,onClick:v==="link"?N:u,ref:E,type:b,value:w,width:k,...z?{"data-tooltip-id":S}:{},...C,children:[c!==void 0&&t.jsx(F,{icon:c,iconColor:d??void 0,iconSize:"xs",iconType:g??"fa-light"}),n,f||v==="link"?t.jsx(F,{icon:f??"arrow-right",iconSize:"xs",iconType:"fa-light"}):void 0,h===void 0?null:t.jsx(V,{tagLabel:h,variant:"default"})]});return z?t.jsx(G,{disabled:!z,id:S,place:m,tip:y,width:k,children:R}):R}),pi=x.forwardRef(function({children:n,onClick:i,userName:a,showIcon:r=!1,showUsername:o=!1},l){const c=!!i;return t.jsx($,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs($,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[c?t.jsxs(P,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(ct,{children:a[0].toUpperCase()}),o?t.jsx(I,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:a.split(" ")[0]}):void 0,r?t.jsx(F,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs($,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(ct,{children:a[0].toUpperCase()}),o?t.jsxs(I,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",a.split(" ")[0],"!"]}):void 0,r?t.jsx(F,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(ai,{children:n})]})})}),Ne=({authorEmail:e,date:n,description:i,descriptionColor:a,id:r,title:o,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:g})=>{const p=s.Je();return t.jsxs($,{width:"100%",children:[typeof o=="string"?t.jsx(I,{color:l??p.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:o}):o,t.jsxs($,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(I,{color:a??p.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(I,{color:p.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(I,{color:p.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Author: ${e}`}),g&&t.jsx(G,{icon:"circle-info",id:r,tip:g})]})]})},dt=s.st($).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
640
640
  & img {
641
641
  display: block;
642
642
  }
@@ -651,7 +651,7 @@
651
651
  pointer-events: none;
652
652
  ${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
653
653
  }
654
- `,gi=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},ui=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,gi(n)),kt=({alt:e,fileType:n,width:i="100%",opacity:a=0,src:r,height:o="auto",videoViewStatus:l})=>{const[c,d]=x.useState({start:!1,half:!1,end:!1}),p=x.useCallback(g=>{if(!l)return;const u=g.target,f=u.currentTime/u.duration*100;f>5&&f<50?(c.start||l("start"),d({start:!0,half:!1,end:!1})):f>=50&&f<99?(c.half||l("half"),d({start:!0,half:!0,end:!1})):f>=99?(c.end||l("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[l,c]);return n==="video"||ui(["webm"],r)?t.jsx(dt,{$opacity:a,children:t.jsx(Q,{href:r,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:p,style:{height:o,width:i},children:[t.jsx("source",{src:r,type:"video/webm"}),r]})})}):t.jsx(dt,{$opacity:a,children:t.jsx("img",{alt:e,src:r,style:{height:o,width:i}})})},xi=({alt:e,authorEmail:n,date:i,description:a,src:r,children:o,isEditing:l,onClick:c,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:u=!0,videoViewStatus:f})=>{const h=s.Je(),[b,y]=x.useState(!1),m=x.useCallback(()=>{y(!0)},[]),v=x.useCallback(()=>{y(!1)},[]);return t.jsxs($,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:m,onLeave:v,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx($,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(x.Fragment,{children:[t.jsx(kt,{alt:e,fileType:g,height:"147px",opacity:b?.3:0,src:r,videoViewStatus:f,width:"100%"}),u?t.jsx($,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(O,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),p?null:t.jsx(Ne,{authorEmail:n,date:i,description:a,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:d})]})},fi=s.st.div`
654
+ `,gi=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},ui=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,gi(n)),kt=({alt:e,fileType:n,width:i="100%",opacity:a=0,src:r,height:o="auto",videoViewStatus:l})=>{const[c,d]=x.useState({start:!1,half:!1,end:!1}),g=x.useCallback(p=>{if(!l)return;const u=p.target,f=u.currentTime/u.duration*100;f>5&&f<50?(c.start||l("start"),d({start:!0,half:!1,end:!1})):f>=50&&f<99?(c.half||l("half"),d({start:!0,half:!0,end:!1})):f>=99?(c.end||l("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[l,c]);return n==="video"||ui(["webm"],r)?t.jsx(dt,{$opacity:a,children:t.jsx(Q,{href:r,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:g,style:{height:o,width:i},children:[t.jsx("source",{src:r,type:"video/webm"}),r]})})}):t.jsx(dt,{$opacity:a,children:t.jsx("img",{alt:e,src:r,style:{height:o,width:i}})})},xi=({alt:e,authorEmail:n,date:i,description:a,src:r,children:o,isEditing:l,onClick:c,title:d,hideDescription:g=!1,headerType:p="image",showMaximize:u=!0,videoViewStatus:f})=>{const h=s.Je(),[b,y]=x.useState(!1),m=x.useCallback(()=>{y(!0)},[]),j=x.useCallback(()=>{y(!1)},[]);return t.jsxs($,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:m,onLeave:j,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx($,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(x.Fragment,{children:[t.jsx(kt,{alt:e,fileType:p,height:"147px",opacity:b?.3:0,src:r,videoViewStatus:f,width:"100%"}),u?t.jsx($,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(O,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),g?null:t.jsx(Ne,{authorEmail:n,date:i,description:a,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:d})]})},fi=s.st.div`
655
655
  ${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:a="auto"})=>`
656
656
  display: flex;
657
657
  background-color: ${e.palette.white};
@@ -813,7 +813,7 @@
813
813
  border: 1px solid ${e.palette.gray[600]};
814
814
  }
815
815
  `}
816
- `,J=({children:e,id:n,error:i,helpLink:a,helpLinkText:r="Link here",helpText:o,htmlFor:l,label:c,linkPosition:d="down",maxLength:p,required:g,tooltip:u,value:f,weight:h})=>{const b=s.Je(),y=f?f.length:0;return t.jsxs(hi,{id:n,children:[c===void 0?void 0:t.jsx(Ke,{htmlFor:l,label:c,link:d==="up"?a:void 0,required:g,tooltip:u,weight:h}),e,i||p?t.jsxs($,{display:"flex",justify:i===void 0?"end":"space-between",width:"100%",children:[i&&t.jsx(I,{className:"error-msg",color:b.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:i}),p&&t.jsx(V,{priority:"low",tagLabel:`${y}/${p}`,variant:"error"})]}):void 0,o||a?t.jsxs($,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[o&&t.jsxs(t.Fragment,{children:[t.jsx(F,{icon:"circle-info",iconColor:b.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(I,{color:b.palette.gray[400],display:"inline-block",size:"sm",children:o})]}),a&&d==="down"?t.jsx(Q,{href:a,children:r}):void 0]}):void 0]})},ke=({className:e,children:n,isFilter:i=!1,popoverRef:a,state:r,triggerRef:o,...l})=>{var u;const c=x.useRef(null),d=(u=o==null?void 0:o.current)==null?void 0:u.getBoundingClientRect(),{popoverProps:p}=s.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:a??c,triggerRef:o,isNonModal:a?!0:void 0},r),g=x.useCallback(f=>{f.preventDefault()},[]);return t.jsx(s.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...p,className:e,id:"popover",onPointerDown:i?g:void 0,ref:a??c,style:{...p.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},bi=s.st.ul`
816
+ `,J=({children:e,id:n,error:i,helpLink:a,helpLinkText:r="Link here",helpText:o,htmlFor:l,label:c,linkPosition:d="down",maxLength:g,required:p,tooltip:u,value:f,weight:h})=>{const b=s.Je(),y=f?f.length:0;return t.jsxs(hi,{id:n,children:[c===void 0?void 0:t.jsx(Ke,{htmlFor:l,label:c,link:d==="up"?a:void 0,required:p,tooltip:u,weight:h}),e,i||g?t.jsxs($,{display:"flex",justify:i===void 0?"end":"space-between",width:"100%",children:[i&&t.jsx(I,{className:"error-msg",color:b.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:i}),g&&t.jsx(V,{priority:"low",tagLabel:`${y}/${g}`,variant:"error"})]}):void 0,o||a?t.jsxs($,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[o&&t.jsxs(t.Fragment,{children:[t.jsx(F,{icon:"circle-info",iconColor:b.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(I,{color:b.palette.gray[400],display:"inline-block",size:"sm",children:o})]}),a&&d==="down"?t.jsx(Q,{href:a,children:r}):void 0]}):void 0]})},ke=({className:e,children:n,isFilter:i=!1,popoverRef:a,state:r,triggerRef:o,...l})=>{var u;const c=x.useRef(null),d=(u=o==null?void 0:o.current)==null?void 0:u.getBoundingClientRect(),{popoverProps:g}=s.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:a??c,triggerRef:o,isNonModal:a?!0:void 0},r),p=x.useCallback(f=>{f.preventDefault()},[]);return t.jsx(s.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...g,className:e,id:"popover",onPointerDown:i?p:void 0,ref:a??c,style:{...g.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},bi=s.st.ul`
817
817
  ${({theme:e,$multiSelection:n})=>`
818
818
  align-self: center;
819
819
  background: ${e.palette.white};
@@ -947,7 +947,7 @@
947
947
  fill: ${e.palette.white};
948
948
  }
949
949
  `}
950
- `,ne=x.forwardRef(function({checked:n,disabled:i=!1,label:a,name:r,onChange:o,onClick:l,onFocus:c,onKeyDown:d,tooltip:p,value:g,...u},f){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":r,checked:n,"data-testid":a??g,disabled:i,id:r,name:r,onChange:o,onClick:l,onFocus:c,onKeyDown:d,ref:f,type:"checkbox",value:g,...u}),t.jsx(F,{disabled:i,icon:"check",iconSize:"sm"}),a??g]}),p===void 0?void 0:t.jsx(G,{icon:"circle-info",id:p,place:"right",tip:p})]})}),ie=(e,n,i=!1,a)=>{x.useEffect(()=>{var o;const r=l=>{e&&!e.contains(l.target)&&!(a!=null&&a.contains(l.target))&&n()};return i?(document.addEventListener("mousedown",r,!0),()=>{document.removeEventListener("mousedown",r,!0)}):((o=document.getElementById("root"))==null||o.addEventListener("mousedown",r,!0),()=>{var l;(l=document.getElementById("root"))==null||l.removeEventListener("mousedown",r,!0)})},[i,e,a,n])},Ct=({item:e,multiSelection:n,name:i,register:a,setInputValue:r,setValue:o,state:l,watch:c})=>{var S,R,z;const d=s.Je(),p=x.useRef(null),g=l.disabledKeys,u=Array.from(l.collection.getKeys()).filter(C=>!Array.from(g).includes(C)&&C!=="All"),{optionProps:f,isSelected:h,isFocused:b,isDisabled:y}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},l,p),m=[h?"selected":"",b?"focused":"",y?"disabled":""].join(" "),v=x.useCallback(C=>{r(""),o==null||o(`${i}Options`,""),C.currentTarget.checked&&(r(C.currentTarget.value),o==null||o(`${i}Options`,u))},[u,i,r,o]),w=x.useCallback(()=>{const C=c==null?void 0:c(`${i}Options`),N=typeof C=="string"?[C]:C;s.isEqual(u,N)&&!Array.from(g).includes("All")?(o==null||o("checkAll","All vulnerability types"),r("All vulnerability types")):(o==null||o("checkAll",""),r((N==null?void 0:N.length)<=2?N.join(", "):`${N.slice(0,2).join(", ")+`, +${N.length-2} more`}`))},[g,u,i,r,o,c]),j=e.key==="All"?t.jsx(ne,{...a==null?void 0:a("checkAll",{onChange:v}),label:(S=e.rendered)==null?void 0:S.toString(),name:"checkAll",value:(R=e.rendered)==null?void 0:R.toString()}):t.jsx(ne,{...a==null?void 0:a(`${i}Options`,{onChange:w}),label:(z=e.rendered)==null?void 0:z.toString(),name:`${i}Options`,value:e.key.toString()}),k=n&&!y?j:t.jsx(I,{color:d.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered});return ie(document.getElementsByClassName("dropdown")[0],()=>{n&&l.close()},!0,document.getElementById("combobox")),t.jsxs(yi,{...n?{}:f,$multiSelection:n,className:m,ref:p,children:[k,h&&!y&&!n?t.jsx(F,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(V,{tagLabel:e.textValue,variant:"inactive"})]})},Be=({field:e,disabled:n=!1,disabledKeys:i,error:a,helpLink:r,helpLinkText:o,helpText:l,label:c,loadingItems:d,name:p,multiSelection:g=!1,items:u,onBlur:f,onChange:h,placeholder:b,register:y,required:m,setValue:v,tooltip:w,value:j,watch:k,weight:S})=>{var st;const R=s.Je(),z=n?void 0:a,C=(e==null?void 0:e.value)??j,[N,E]=x.useState(((st=u.find(A=>A.value===C))==null?void 0:st.name)??""),[L,Y]=x.useState(C),[K,te]=x.useState(u),[W,H]=x.useState(!1),{contains:B}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),oe=x.useRef(null),Le=x.useRef(null),Pe=x.useRef(null),at=x.useRef(null),rt=x.useRef(null),hn=x.useMemo(()=>u.toSorted((A,M)=>{const _=Array.from(i??[]),se=_.includes(A.value),lt=_.includes(M.value);return se&&!lt?1:!se&&lt?-1:0}).map(A=>B(A.name,N)||W?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":A.value,textValue:A.tag,children:A.name},A.value):null),[B,i,N,u,W]),bn=x.useCallback(A=>{const M=A.split(/,|\s/u).slice(-1)[0].trim();E(g?M:A),A===""||A.endsWith(",")?H(!0):(H(!1),Y(_=>{const se=A===""?"":_;return e&&e.onChange(se),h&&h(A),se}),te(u.filter(_=>B(_.name,g?M:A))))},[B,u,e,g,h]),yn=x.useCallback(A=>{var M;E(((M=u.find(_=>_.value===A))==null?void 0:M.name)??""),Y(A?String(A):""),e&&e.onChange(A),h&&h(A?String(A):""),te(u)},[u,e,h]),ot=x.useCallback(A=>{A.key==="Enter"&&A.preventDefault(),H(!1)},[]),$n=x.useCallback(()=>{f&&f(),e&&e.onBlur()},[e,f]),mn=x.useCallback(()=>{H(!0)},[]),X=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:g,allowsEmptyCollection:!0,disabledKeys:i,inputValue:N,items:K,menuTrigger:"focus",shouldCloseOnBlur:!g,selectedKey:L,onBlur:$n,onInputChange:bn,onKeyDown:ot,onKeyUp:mn,onOpenChange(A,M){H(A&&(M==="manual"||M==="focus")),A&&setTimeout(()=>{var _;return(_=oe.current)==null?void 0:_.focus()},50)},onSelectionChange:g?void 0:yn,children:hn}),{buttonProps:wn,inputProps:jn,listBoxProps:vn}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:N,buttonRef:Le,id:p,inputRef:oe,label:c??p,listBoxRef:Pe,name:p,placeholder:b,popoverRef:rt},X),{listBoxProps:kn}=s.$c132121280ec012d$export$50eacbbf140a3141(vn,X,Pe),{buttonProps:Cn}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(wn,Le);return x.useEffect(()=>{var A;if((d===!1||!C)&&!g){const M=((A=u.find(_=>_.value===C))==null?void 0:A.name)??"";E(M),Y(M)}},[C,u,d,g]),t.jsxs(J,{error:z,helpLink:r,helpLinkText:o,helpText:l,htmlFor:p,id:"combobox",label:c,required:m,tooltip:w,weight:S,children:[t.jsxs(ee,{className:`${n?"disabled":""} ${z?"error":""}`,ref:at,children:[t.jsx("input",{...jn,"aria-invalid":z?"true":"false","aria-label":p,disabled:n,onKeyDown:ot,ref:oe}),z?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:R.palette.error[500],iconSize:"xs"}):void 0,t.jsx(O,{...Cn,className:"action",disabled:n,icon:X.isOpen&&!n?"chevron-up":"chevron-down",iconColor:R.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:Le,type:"button",variant:"ghost"})]}),X.isOpen&&X.collection.size>0&&!n?t.jsx(ke,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:rt,state:X,triggerRef:at,children:t.jsx(bi,{...kn,$multiSelection:g&&!Array.from(i??[]).includes("All"),ref:Pe,children:[...X.collection].map(A=>t.jsx(Ct,{item:A,multiSelection:g,name:p,register:y,setInputValue:E,setValue:v,state:X,watch:k},A.key))})}):null]})},Xe=({control:e,disabled:n=!1,disabledKeys:i,error:a,helpLink:r,helpLinkText:o,helpText:l,label:c,loadingItems:d,name:p,multiSelection:g,items:u,onBlur:f,onChange:h,placeholder:b,register:y,required:m,setValue:v,tooltip:w,value:j,watch:k,weight:S})=>e?t.jsx(s.Controller,{control:e,name:p,render:({field:R,fieldState:z})=>{var C;return t.jsx(Be,{disabled:n,disabledKeys:i,error:(C=z.error)==null?void 0:C.message,field:R,helpLink:r,helpLinkText:o,helpText:l,items:u,label:c,loadingItems:d,multiSelection:g,name:p,onBlur:f,onChange:h,placeholder:b,register:y,required:m,setValue:v,tooltip:w,value:j,watch:k,weight:S})},rules:{required:m}}):t.jsx(Be,{disabled:n,disabledKeys:i,error:a,helpLink:r,helpLinkText:o,helpText:l,items:u,label:c,loadingItems:d,multiSelection:g,name:p,onBlur:f,onChange:h,placeholder:b,required:m,tooltip:w,value:j,weight:S}),mi=s.st.div`
950
+ `,ne=x.forwardRef(function({checked:n,disabled:i=!1,label:a,name:r,onChange:o,onClick:l,onFocus:c,onKeyDown:d,tooltip:g,value:p,...u},f){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":r,checked:n,"data-testid":a??p,disabled:i,id:r,name:r,onChange:o,onClick:l,onFocus:c,onKeyDown:d,ref:f,type:"checkbox",value:p,...u}),t.jsx(F,{disabled:i,icon:"check",iconSize:"sm"}),a??p]}),g===void 0?void 0:t.jsx(G,{icon:"circle-info",id:g,place:"right",tip:g})]})}),ie=(e,n,i=!1,a)=>{x.useEffect(()=>{var o;const r=l=>{e&&!e.contains(l.target)&&!(a!=null&&a.contains(l.target))&&n()};return i?(document.addEventListener("mousedown",r,!0),()=>{document.removeEventListener("mousedown",r,!0)}):((o=document.getElementById("root"))==null||o.addEventListener("mousedown",r,!0),()=>{var l;(l=document.getElementById("root"))==null||l.removeEventListener("mousedown",r,!0)})},[i,e,a,n])},Ct=({item:e,multiSelection:n,name:i,register:a,setInputValue:r,setValue:o,state:l,watch:c})=>{var C,E,z;const d=s.Je(),g=x.useRef(null),p=l.disabledKeys,u=Array.from(l.collection.getKeys()).filter(S=>!Array.from(p).includes(S)&&S!=="All"),{optionProps:f,isSelected:h,isFocused:b,isDisabled:y}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},l,g),m=[h?"selected":"",b?"focused":"",y?"disabled":""].join(" "),j=x.useCallback(S=>{r(""),o==null||o(`${i}Options`,""),S.currentTarget.checked&&(r(S.currentTarget.value),o==null||o(`${i}Options`,u))},[u,i,r,o]),w=x.useCallback(()=>{const S=c==null?void 0:c(`${i}Options`),N=typeof S=="string"?[S]:S;s.isEqual(u,N)&&!Array.from(p).includes("All")?(o==null||o("checkAll","All vulnerability types"),r("All vulnerability types")):(o==null||o("checkAll",""),r((N==null?void 0:N.length)<=2?N.join(", "):`${N.slice(0,2).join(", ")+`, +${N.length-2} more`}`))},[p,u,i,r,o,c]),v=e.key==="All"?t.jsx(ne,{...a==null?void 0:a("checkAll",{onChange:j}),label:(C=e.rendered)==null?void 0:C.toString(),name:"checkAll",value:(E=e.rendered)==null?void 0:E.toString()}):t.jsx(ne,{...a==null?void 0:a(`${i}Options`,{onChange:w}),label:(z=e.rendered)==null?void 0:z.toString(),name:`${i}Options`,value:e.key.toString()}),k=n&&!y?v:t.jsx(I,{color:d.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered});return ie(document.getElementsByClassName("dropdown")[0],()=>{n&&l.close()},!0,document.getElementById("combobox")),t.jsxs(yi,{...n?{}:f,$multiSelection:n,className:m,ref:g,children:[k,h&&!y&&!n?t.jsx(F,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(V,{tagLabel:e.textValue,variant:"inactive"})]})},Be=({field:e,disabled:n=!1,disabledKeys:i,error:a,helpLink:r,helpLinkText:o,helpText:l,label:c,loadingItems:d,name:g,multiSelection:p=!1,items:u,onBlur:f,onChange:h,placeholder:b,register:y,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>{var st;const E=s.Je(),z=n?void 0:a,S=(e==null?void 0:e.value)??v,[N,R]=x.useState(((st=u.find(A=>A.value===S))==null?void 0:st.name)??""),[L,Y]=x.useState(S),[K,te]=x.useState(u),[W,H]=x.useState(!1),{contains:B}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),oe=x.useRef(null),Le=x.useRef(null),Pe=x.useRef(null),at=x.useRef(null),rt=x.useRef(null),hn=x.useMemo(()=>u.toSorted((A,M)=>{const _=Array.from(i??[]),se=_.includes(A.value),lt=_.includes(M.value);return se&&!lt?1:!se&&lt?-1:0}).map(A=>B(A.name,N)||W?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":A.value,textValue:A.tag,children:A.name},A.value):null),[B,i,N,u,W]),bn=x.useCallback(A=>{const M=A.split(/,|\s/u).slice(-1)[0].trim();R(p?M:A),A===""||A.endsWith(",")?H(!0):(H(!1),Y(_=>{const se=A===""?"":_;return e&&e.onChange(se),h&&h(A),se}),te(u.filter(_=>B(_.name,p?M:A))))},[B,u,e,p,h]),yn=x.useCallback(A=>{var M;R(((M=u.find(_=>_.value===A))==null?void 0:M.name)??""),Y(A?String(A):""),e&&e.onChange(A),h&&h(A?String(A):""),te(u)},[u,e,h]),ot=x.useCallback(A=>{A.key==="Enter"&&A.preventDefault(),H(!1)},[]),$n=x.useCallback(()=>{f&&f(),e&&e.onBlur()},[e,f]),mn=x.useCallback(()=>{H(!0)},[]),X=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:p,allowsEmptyCollection:!0,disabledKeys:i,inputValue:N,items:K,menuTrigger:"focus",shouldCloseOnBlur:!p,selectedKey:L,onBlur:$n,onInputChange:bn,onKeyDown:ot,onKeyUp:mn,onOpenChange(A,M){H(A&&(M==="manual"||M==="focus")),A&&setTimeout(()=>{var _;return(_=oe.current)==null?void 0:_.focus()},50)},onSelectionChange:p?void 0:yn,children:hn}),{buttonProps:wn,inputProps:jn,listBoxProps:vn}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:N,buttonRef:Le,id:g,inputRef:oe,label:c??g,listBoxRef:Pe,name:g,placeholder:b,popoverRef:rt},X),{listBoxProps:kn}=s.$c132121280ec012d$export$50eacbbf140a3141(vn,X,Pe),{buttonProps:Cn}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(wn,Le);return x.useEffect(()=>{var A;if((d===!1||!S)&&!p){const M=((A=u.find(_=>_.value===S))==null?void 0:A.name)??"";R(M),Y(M)}},[S,u,d,p]),t.jsxs(J,{error:z,helpLink:r,helpLinkText:o,helpText:l,htmlFor:g,id:"combobox",label:c,required:m,tooltip:w,weight:C,children:[t.jsxs(ee,{className:`${n?"disabled":""} ${z?"error":""}`,ref:at,children:[t.jsx("input",{...jn,"aria-invalid":z?"true":"false","aria-label":g,disabled:n,onKeyDown:ot,ref:oe}),z?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:E.palette.error[500],iconSize:"xs"}):void 0,t.jsx(O,{...Cn,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:Le,type:"button",variant:"ghost"})]}),X.isOpen&&X.collection.size>0&&!n?t.jsx(ke,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:rt,state:X,triggerRef:at,children:t.jsx(bi,{...kn,$multiSelection:p&&!Array.from(i??[]).includes("All"),ref:Pe,children:[...X.collection].map(A=>t.jsx(Ct,{item:A,multiSelection:p,name:g,register:y,setInputValue:R,setValue:j,state:X,watch:k},A.key))})}):null]})},Xe=({control:e,disabled:n=!1,disabledKeys:i,error:a,helpLink:r,helpLinkText:o,helpText:l,label:c,loadingItems:d,name:g,multiSelection:p,items:u,onBlur:f,onChange:h,placeholder:b,register:y,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>e?t.jsx(s.Controller,{control:e,name:g,render:({field:E,fieldState:z})=>{var S;return t.jsx(Be,{disabled:n,disabledKeys:i,error:(S=z.error)==null?void 0:S.message,field:E,helpLink:r,helpLinkText:o,helpText:l,items:u,label:c,loadingItems:d,multiSelection:p,name:g,onBlur:f,onChange:h,placeholder:b,register:y,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})},rules:{required:m}}):t.jsx(Be,{disabled:n,disabledKeys:i,error:a,helpLink:r,helpLinkText:o,helpText:l,items:u,label:c,loadingItems:d,multiSelection:p,name:g,onBlur:f,onChange:h,placeholder:b,required:m,tooltip:w,value:v,weight:C}),mi=s.st.div`
951
951
  ${({theme:e})=>`
952
952
  align-items: center;
953
953
  color: ${e.palette.gray[800]};
@@ -1079,7 +1079,7 @@
1079
1079
  padding: 0 ${e.spacing[.25]};
1080
1080
  width: 100%;
1081
1081
  `}
1082
- `,zt=({state:e,date:n})=>{const i=x.useRef(null),a=s.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,s.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:o,isSelected:l,isDisabled:c,formattedDate:d}=s.$36a0ac60f04457c5$export$136073280381448e({date:n},e,i),p="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):l,g="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,u=l&&!c&&!(p||g)?"range":"";return t.jsx(vi,{id:u,...r,children:t.jsxs("div",{...o,className:`cell ${p||g?"selected":""}
1082
+ `,zt=({state:e,date:n})=>{const i=x.useRef(null),a=s.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,s.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:o,isSelected:l,isDisabled:c,formattedDate:d}=s.$36a0ac60f04457c5$export$136073280381448e({date:n},e,i),g="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):l,p="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,u=l&&!c&&!(g||p)?"range":"";return t.jsx(vi,{id:u,...r,children:t.jsxs("div",{...o,className:`cell ${g||p?"selected":""}
1083
1083
  ${c?"disabled":""} ${a?"today":""}
1084
1084
  ${!e.isFocused&&!a?"focused":""} ${u}`,ref:i,children:[d,a?t.jsx(ki,{children:t.jsx(F,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},De=({state:e,...n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:a}=s.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),r=s.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,i);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(pt,{children:a.map((o,l)=>{const c=`key_${l}`;return t.jsx(ji,{children:o},c)})})}),t.jsx("tbody",{children:[...new Array(r).keys()].map(o=>t.jsx(pt,{children:e.getDatesInWeek(o).map((l,c)=>{const d=`key_${c}`;return l?t.jsx(zt,{date:l,state:e},d):t.jsx("td",{},d)})},o))})]})},Ci=s.st(Ve)`
1085
1085
  align-items: center;
@@ -1179,7 +1179,7 @@
1179
1179
  font-weight: ${e.typography.weight.bold};
1180
1180
  }
1181
1181
  `}
1182
- `,Ie=({disabled:e=!1,icon:n,props:i})=>{const a=x.useRef(null),{buttonProps:r}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,a);return t.jsx(zi,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:a,type:"button",children:t.jsx(F,{icon:n,iconColor:T.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Ee=({state:e,prevButtonProps:n,nextButtonProps:i,title:a})=>{const r=e.focusedDate,o=x.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),l=x.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(Ie,{icon:"chevron-left",props:n}),t.jsxs(mi,{children:[a,t.jsxs(wi,{children:[t.jsx(gt,{"aria-label":"top",onClick:o,children:t.jsx(F,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(gt,{"aria-label":"bottom",onClick:l,children:t.jsx(F,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(Ie,{icon:"chevron-right",props:i})]})},It=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:o,title:l}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,a);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ee,{nextButtonProps:o,prevButtonProps:r,state:a,title:l}),t.jsx(De,{state:a}),t.jsx(Ze,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Tt=({segment:e,state:n})=>{const i=s.Je(),a=x.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,a),c=i.palette.gray[o.isEditable?800:500];return t.jsx("div",{...o.type!=="literal"&&{...l,className:"segment-cell"},ref:a,style:o.type==="literal"?void 0:{color:o.isPlaceholder?i.palette.gray[400]:c},children:o.isPlaceholder?o.placeholder:o.text})},Ft=({disabled:e,error:n=!1,props:i})=>{const a=s.Je(),r=x.useRef(null),o=s.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=s.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,o,r),c=x.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),g=d.currentTarget;Object.values(p).some(u=>u.contains(g))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(Ii,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:a.palette.gray[s.lodashExports.isNil(o.value)?400:800]},tabIndex:-1,children:o.segments.map((d,p)=>{const g=`key_${p}`;return t.jsx(Tt,{segment:{...d,isEditable:!e},state:o},g)})}),n?t.jsx(F,{icon:"exclamation-circle",iconColor:a.palette.error[500],iconSize:"xs"}):void 0]})},Nt=e=>{const n=x.useRef(null),i=s.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:a}=i,r=!s.lodashExports.isNil(a)&&a.hour<12?"AM":"PM",[o,l]=x.useState(s.lodashExports.isNil(a)?"AM":r),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=x.useCallback(p=>{const g=p.currentTarget.name;g!==o&&(s.lodashExports.isNil(a)||(g==="AM"?i.setSegment("dayPeriod",0):g==="PM"&&i.setSegment("dayPeriod",12))),l(g)},[o,i,a]);return t.jsxs(Ti,{children:[t.jsx(ut,{...c,ref:n,children:i.segments.slice(0,-2).map((p,g)=>{const u=`key_${g}`;return t.jsx(Tt,{segment:p,state:i},u)})}),t.jsxs(ut,{children:[t.jsx(xt,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(xt,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Te=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",Fi=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",ft=(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:a=!1,granularity:r="day",fieldProps:o,groupProps:l,name:c,register:d,required:p,setValue:g,value:u})=>{const f=x.useCallback(h=>{const b=r==="day"?Te(String(h)):Fi(String(h));o.onChange&&o.onChange(h??null),g&&g(c,b)},[o,r,c,g]);return t.jsxs(ee,{...l,className:`${a?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(Ft,{disabled:a,error:e!=null,props:{...o,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(Ie,{disabled:a,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(c,{required:p}),"aria-label":c,className:"date-input",disabled:a,id:c,name:c,type:"text",value:u??""})]})},Re=({children:e,...n})=>{const i=x.useRef(null),{dialogProps:a}=s.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(Si,{...a,ref:i,children:e})},Dt=({disabled:e=!1,error:n,helpLink:i,helpLinkText:a,helpText:r,required:o,label:l,name:c,register:d,setValue:p,tooltip:g,watch:u,...f})=>{const h=x.useRef(null),b=u==null?void 0:u(c),y=x.useCallback(z=>{p&&z&&p(c,Te(String(z)))},[c,p]),m=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,onChange(z){y(z)},value:s._.isNil(b)||s._.isEmpty(b)||b==="-"?null:s.$fae977aafc393c5c$export$6b862160d295c8e(b.replace(/\//gu,"-"))}),{close:v}=m,{groupProps:w,fieldProps:j,buttonProps:k,dialogProps:S,calendarProps:R}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":l??c,name:c},m,h);return t.jsxs(J,{error:n,helpLink:i,helpLinkText:a,helpText:r,htmlFor:c,label:l,required:o,tooltip:g,children:[t.jsx(ge,{buttonProps:k,datePickerRef:h,disabled:e,error:n,fieldProps:j,groupProps:w,name:c,register:d,required:o,setValue:p,value:b}),m.isOpen&&!e?t.jsx(ke,{offset:8,placement:"bottom start",state:m,triggerRef:h,children:t.jsx(Re,{...S,children:t.jsx(It,{onClose:v,props:R})})}):null]})},Et=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=x.useRef(null),r=s.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:o,nextButtonProps:l,title:c}=s.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,a);return t.jsxs("div",{className:"calendar-range",ref:a,children:[t.jsx(Ee,{nextButtonProps:l,prevButtonProps:o,state:r,title:c}),t.jsx(De,{state:r}),t.jsx(Ze,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Ni=s.st.div`
1182
+ `,Ie=({disabled:e=!1,icon:n,props:i})=>{const a=x.useRef(null),{buttonProps:r}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,a);return t.jsx(zi,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:a,type:"button",children:t.jsx(F,{icon:n,iconColor:T.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Ee=({state:e,prevButtonProps:n,nextButtonProps:i,title:a})=>{const r=e.focusedDate,o=x.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),l=x.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(Ie,{icon:"chevron-left",props:n}),t.jsxs(mi,{children:[a,t.jsxs(wi,{children:[t.jsx(gt,{"aria-label":"top",onClick:o,children:t.jsx(F,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(gt,{"aria-label":"bottom",onClick:l,children:t.jsx(F,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(Ie,{icon:"chevron-right",props:i})]})},It=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:o,title:l}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,a);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ee,{nextButtonProps:o,prevButtonProps:r,state:a,title:l}),t.jsx(De,{state:a}),t.jsx(Ze,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Tt=({segment:e,state:n})=>{const i=s.Je(),a=x.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,a),c=i.palette.gray[o.isEditable?800:500];return t.jsx("div",{...o.type!=="literal"&&{...l,className:"segment-cell"},ref:a,style:o.type==="literal"?void 0:{color:o.isPlaceholder?i.palette.gray[400]:c},children:o.isPlaceholder?o.placeholder:o.text})},Ft=({disabled:e,error:n=!1,props:i})=>{const a=s.Je(),r=x.useRef(null),o=s.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=s.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,o,r),c=x.useCallback(d=>{const g=document.getElementsByClassName("segment-cell"),p=d.currentTarget;Object.values(g).some(u=>u.contains(p))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(Ii,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:a.palette.gray[s.lodashExports.isNil(o.value)?400:800]},tabIndex:-1,children:o.segments.map((d,g)=>{const p=`key_${g}`;return t.jsx(Tt,{segment:{...d,isEditable:!e},state:o},p)})}),n?t.jsx(F,{icon:"exclamation-circle",iconColor:a.palette.error[500],iconSize:"xs"}):void 0]})},Nt=e=>{const n=x.useRef(null),i=s.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:a}=i,r=!s.lodashExports.isNil(a)&&a.hour<12?"AM":"PM",[o,l]=x.useState(s.lodashExports.isNil(a)?"AM":r),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=x.useCallback(g=>{const p=g.currentTarget.name;p!==o&&(s.lodashExports.isNil(a)||(p==="AM"?i.setSegment("dayPeriod",0):p==="PM"&&i.setSegment("dayPeriod",12))),l(p)},[o,i,a]);return t.jsxs(Ti,{children:[t.jsx(ut,{...c,ref:n,children:i.segments.slice(0,-2).map((g,p)=>{const u=`key_${p}`;return t.jsx(Tt,{segment:g,state:i},u)})}),t.jsxs(ut,{children:[t.jsx(xt,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(xt,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Te=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",Fi=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",ft=(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:a=!1,granularity:r="day",fieldProps:o,groupProps:l,name:c,register:d,required:g,setValue:p,value:u})=>{const f=x.useCallback(h=>{const b=r==="day"?Te(String(h)):Fi(String(h));o.onChange&&o.onChange(h??null),p&&p(c,b)},[o,r,c,p]);return t.jsxs(ee,{...l,className:`${a?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(Ft,{disabled:a,error:e!=null,props:{...o,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(Ie,{disabled:a,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(c,{required:g}),"aria-label":c,className:"date-input",disabled:a,id:c,name:c,type:"text",value:u??""})]})},Re=({children:e,...n})=>{const i=x.useRef(null),{dialogProps:a}=s.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(Si,{...a,ref:i,children:e})},Dt=({disabled:e=!1,error:n,helpLink:i,helpLinkText:a,helpText:r,required:o,label:l,name:c,register:d,setValue:g,tooltip:p,watch:u,...f})=>{const h=x.useRef(null),b=u==null?void 0:u(c),y=x.useCallback(z=>{g&&z&&g(c,Te(String(z)))},[c,g]),m=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,onChange(z){y(z)},value:s._.isNil(b)||s._.isEmpty(b)||b==="-"?null:s.$fae977aafc393c5c$export$6b862160d295c8e(b.replace(/\//gu,"-"))}),{close:j}=m,{groupProps:w,fieldProps:v,buttonProps:k,dialogProps:C,calendarProps:E}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":l??c,name:c},m,h);return t.jsxs(J,{error:n,helpLink:i,helpLinkText:a,helpText:r,htmlFor:c,label:l,required:o,tooltip:p,children:[t.jsx(ge,{buttonProps:k,datePickerRef:h,disabled:e,error:n,fieldProps:v,groupProps:w,name:c,register:d,required:o,setValue:g,value:b}),m.isOpen&&!e?t.jsx(ke,{offset:8,placement:"bottom start",state:m,triggerRef:h,children:t.jsx(Re,{...C,children:t.jsx(It,{onClose:j,props:E})})}):null]})},Et=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=x.useRef(null),r=s.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:o,nextButtonProps:l,title:c}=s.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,a);return t.jsxs("div",{className:"calendar-range",ref:a,children:[t.jsx(Ee,{nextButtonProps:l,prevButtonProps:o,state:r,title:c}),t.jsx(De,{state:r}),t.jsx(Ze,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Ni=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
- `,Rt=({disabled:e=!1,error:n,label:i,name:a,required:r,tooltip:o,register:l,setValue:c,propsMax:d,propsMin:p,variant:g="default",...u})=>{const f=`${a}Max`,h=`${a}Min`,b=x.useRef(null),y=x.useCallback(C=>{c&&C&&(c((d==null?void 0:d.name)??f,Te(String(C.end))),c((p==null?void 0:p.name)??h,Te(String(C.start))))},[f,h,c,d,p]),m=s.$93c38a5e28be6249$export$e50a61c1de9f574({...u,endName:(d==null?void 0:d.name)??f,startName:(p==null?void 0:p.name)??h,onChange(C){y(C)}}),{close:v}=m,{groupProps:w,startFieldProps:j,endFieldProps:k,buttonProps:S,dialogProps:R,calendarProps:z}=s.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...u,"aria-label":i??a},m,b);return t.jsxs(J,{error:n,htmlFor:a,label:i,required:r,tooltip:o,children:[t.jsxs(Ni,{$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:{...j,"aria-label":`${j["aria-label"]} ${a}`,validate:C=>k.value&&C>k.value?"Start date must be less than or equal to end date":null},groupProps:w,name:(p==null?void 0:p.name)??h,register: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"]} ${a}`,validate:C=>j.value&&C<j.value?"End date must be greater than or equal to start date":null},groupProps:w,name:(d==null?void 0:d.name)??f,register:l,setValue:c,value:d==null?void 0:d.value})]}),m.isOpen&&!e?t.jsx(ke,{offset:8,placement:"bottom start",state:m,triggerRef:b,children:t.jsx(Re,{...R,children:t.jsx(Et,{onClose:v,props:z})})}):null]})},Di=s.st.div`
1193
+ `,Rt=({disabled:e=!1,error:n,label:i,name:a,required:r,tooltip:o,register:l,setValue:c,propsMax:d,propsMin:g,variant:p="default",...u})=>{const f=`${a}Max`,h=`${a}Min`,b=x.useRef(null),y=x.useCallback(S=>{c&&S&&(c((d==null?void 0:d.name)??f,Te(String(S.end))),c((g==null?void 0:g.name)??h,Te(String(S.start))))},[f,h,c,d,g]),m=s.$93c38a5e28be6249$export$e50a61c1de9f574({...u,endName:(d==null?void 0:d.name)??f,startName:(g==null?void 0:g.name)??h,onChange(S){y(S)}}),{close:j}=m,{groupProps:w,startFieldProps:v,endFieldProps:k,buttonProps:C,dialogProps:E,calendarProps:z}=s.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...u,"aria-label":i??a},m,b);return t.jsxs(J,{error:n,htmlFor:a,label:i,required:r,tooltip:o,children:[t.jsxs(Ni,{$disabled:e,$show:n!==void 0,ref:b,style:{flexDirection:p==="filters"?"column":"row"},children:[t.jsx(ge,{buttonProps:C,datePickerRef:b,disabled:e,error:n,fieldProps:{...v,"aria-label":`${v["aria-label"]} ${a}`,validate:S=>k.value&&S>k.value?"Start date must be less than or equal to end date":null},groupProps:w,name:(g==null?void 0:g.name)??h,register:l,setValue:c,value:g==null?void 0:g.value}),t.jsx(ge,{buttonProps:C,datePickerRef:b,disabled:e,error:n,fieldProps:{...k,"aria-label":`${k["aria-label"]} ${a}`,validate:S=>v.value&&S<v.value?"End date must be greater than or equal to start date":null},groupProps:w,name:(d==null?void 0:d.name)??f,register:l,setValue:c,value:d==null?void 0:d.value})]}),m.isOpen&&!e?t.jsx(ke,{offset:8,placement:"bottom start",state:m,triggerRef:b,children:t.jsx(Re,{...E,children:t.jsx(Et,{onClose:j,props:z})})}):null]})},Di=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
- `,At=({handleTimeChange:e,onClose:n,props:i,timeState:a})=>{const r=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(Ee,{nextButtonProps:d,prevButtonProps:c,state:l,title:p}),t.jsx(De,{state:l}),t.jsxs(Di,{children:[t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(Ei,{children:t.jsx(Nt,{hourCycle:12,label:"time-field",onChange:e,value:a.timeValue})})]}),t.jsx(Ze,{children:t.jsx(P,{onClick:n,variant:"ghost",children:"Cancel"})})]})},Ri=e=>{const{disabled:n=!1,error:i,required:a,label:r,name:o,tooltip:l,register:c,setValue:d,watch:p}=e,g=p==null?void 0:p(o),u=x.useRef(null),f=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:a,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}=f,{groupProps:b,fieldProps:y,buttonProps:m,dialogProps:v,calendarProps:w}=s.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,u),j=x.useCallback(S=>{if(w.onChange&&w.onChange(S),f.timeValue){const R=ft(S,f.timeValue);d==null||d(o,R,{shouldDirty:!0})}else f.setDateValue(S)},[w,o,d,f]),k=x.useCallback(S=>{if(S){f.setTimeValue(S);const R=f.dateValue;if(R){const z=ft(R,S);d==null||d(o,z,{shouldDirty:!0})}}},[f,d,o]);return t.jsxs(J,{error:i,htmlFor:o,label:r,required:a,tooltip:l,children:[t.jsx(ge,{buttonProps:m,datePickerRef:u,disabled:n,error:i,fieldProps:y,granularity:"minute",groupProps:b,name:o,register:c,setValue:d,value:g}),f.isOpen&&!n?t.jsx(ke,{offset:8,placement:"bottom start",state:f,triggerRef:u,children:t.jsx(Re,{...v,children:t.jsx(At,{handleTimeChange:k,onClose:h,props:{...w,onChange:j},timeState:f})})}):null]})},Ai=({children:e,currentValue:n,externalLink:i,isEditing:a,label:r,name:o,tooltip:l})=>{if(a)return t.jsx("div",{children:e});const c=s.lodashExports.isNil(n)?"":n,d=String(i??c);return t.jsxs($,{children:[t.jsx(Ke,{htmlFor:o,label:r,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(Q,{href:d,children:c}):t.jsx(I,{size:"md",children:c})]})},Ae=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:a,helpText:r,error:o,id:l,indexArray:c=0,isValid:d,isTouched:p,label:g,linkPosition:u,name:f,maskValue:h=!1,onPaste:b,placeholder:y,removeItemArray:m,register:v,suggestions:w,tooltip:j,type:k="text",weight:S,...R})=>{const{required:z,onBlur:C,onChange:N}=R,E=s.Je(),L=e?void 0:o,[Y,K]=x.useState(""),te=x.useCallback(B=>{K(B.target.value),N==null||N(B)},[N]),W=d&&p&&!e&&Y.trim()!=="",H=x.useCallback(B=>{B.key==="Enter"&&B.preventDefault()},[]);return t.jsxs(J,{error:L,helpLink:i,helpLinkText:a,helpText:r,htmlFor:f,label:g,linkPosition:u,required:z,tooltip:j,weight:S,children:[t.jsxs(ee,{className:`
1208
+ `,At=({handleTimeChange:e,onClose:n,props:i,timeState:a})=>{const r=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:g}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(i,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ee,{nextButtonProps:d,prevButtonProps:c,state:l,title:g}),t.jsx(De,{state:l}),t.jsxs(Di,{children:[t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(Ei,{children:t.jsx(Nt,{hourCycle:12,label:"time-field",onChange:e,value:a.timeValue})})]}),t.jsx(Ze,{children:t.jsx(P,{onClick:n,variant:"ghost",children:"Cancel"})})]})},Ri=e=>{const{disabled:n=!1,error:i,required:a,label:r,name:o,tooltip:l,register:c,setValue:d,watch:g}=e,p=g==null?void 0:g(o),u=x.useRef(null),f=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:a,shouldCloseOnSelect:!1,value:s._.isNil(p)||s._.isEmpty(p)||p==="-"||s.dayjs(p,"YYYY/MM/DD hh:mm A").isValid()===!1?null:s.$fae977aafc393c5c$export$588937bcd60ade55(s.dayjs(p,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=f,{groupProps:b,fieldProps:y,buttonProps:m,dialogProps:j,calendarProps:w}=s.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,u),v=x.useCallback(C=>{if(w.onChange&&w.onChange(C),f.timeValue){const E=ft(C,f.timeValue);d==null||d(o,E,{shouldDirty:!0})}else f.setDateValue(C)},[w,o,d,f]),k=x.useCallback(C=>{if(C){f.setTimeValue(C);const E=f.dateValue;if(E){const z=ft(E,C);d==null||d(o,z,{shouldDirty:!0})}}},[f,d,o]);return t.jsxs(J,{error:i,htmlFor:o,label:r,required:a,tooltip:l,children:[t.jsx(ge,{buttonProps:m,datePickerRef:u,disabled:n,error:i,fieldProps:y,granularity:"minute",groupProps:b,name:o,register:c,setValue:d,value:p}),f.isOpen&&!n?t.jsx(ke,{offset:8,placement:"bottom start",state:f,triggerRef:u,children:t.jsx(Re,{...j,children:t.jsx(At,{handleTimeChange:k,onClose:h,props:{...w,onChange:v},timeState:f})})}):null]})},Ai=({children:e,currentValue:n,externalLink:i,isEditing:a,label:r,name:o,tooltip:l})=>{if(a)return t.jsx("div",{children:e});const c=s.lodashExports.isNil(n)?"":n,d=String(i??c);return t.jsxs($,{children:[t.jsx(Ke,{htmlFor:o,label:r,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(Q,{href:d,children:c}):t.jsx(I,{size:"md",children:c})]})},Ae=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:a,helpText:r,error:o,id:l,indexArray:c=0,isValid:d,isTouched:g,label:p,linkPosition:u,name:f,maskValue:h=!1,onPaste:b,placeholder:y,removeItemArray:m,register:j,suggestions:w,tooltip:v,type:k="text",weight:C,...E})=>{const{required:z,onBlur:S,onChange:N}=E,R=s.Je(),L=e?void 0:o,[Y,K]=x.useState(""),te=x.useCallback(B=>{K(B.target.value),N==null||N(B)},[N]),W=d&&g&&!e&&Y.trim()!=="",H=x.useCallback(B=>{B.key==="Enter"&&B.preventDefault()},[]);return t.jsxs(J,{error:L,helpLink:i,helpLinkText:a,helpText:r,htmlFor:f,label:p,linkPosition:u,required:z,tooltip:v,weight:C,children:[t.jsxs(ee,{className:`
1209
1209
  ${e?"disabled":""} ${L?"error":""} ${W?"success":""}
1210
- `,children:[n?t.jsx(F,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":L?"true":"false","aria-label":f,"aria-required":z,autoComplete:"off",className:h?"sr-block":"","data-testid":`${f}-input`,disabled:e,id:f,list:w?`list_${f}`:void 0,onKeyDown:H,onPaste:b,placeholder:y,type:k,...v?v(f,{required:z,onBlur:C,onChange:te}):{...R,onChange:te}}),L?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:E.palette.error[500],iconSize:"xs"}):void 0,W?t.jsx(F,{icon:"check-circle",iconClass:"success-icon",iconColor:E.palette.success[500],iconSize:"xs"}):void 0,l==="array"&&c>0?t.jsx(O,{color:E.palette.gray[400],icon:"trash",iconSize:"xxs",iconType:"fa-light",onClick:m?m(c):void 0,variant:"ghost"}):void 0]}),w?t.jsx("datalist",{id:`list_${f}`,children:w.map(B=>t.jsx("option",{value:B},B))}):void 0]})},Li=s.st.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,Pi=s.st.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
1210
+ `,children:[n?t.jsx(F,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":L?"true":"false","aria-label":f,"aria-required":z,autoComplete:"off",className:h?"sr-block":"","data-testid":`${f}-input`,disabled:e,id:f,list:w?`list_${f}`:void 0,onKeyDown:H,onPaste:b,placeholder:y,type:k,...j?j(f,{required:z,onBlur:S,onChange:te}):{...E,onChange:te}}),L?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:R.palette.error[500],iconSize:"xs"}):void 0,W?t.jsx(F,{icon:"check-circle",iconClass:"success-icon",iconColor:R.palette.success[500],iconSize:"xs"}):void 0,l==="array"&&c>0?t.jsx(O,{color:R.palette.gray[400],icon:"trash",iconSize:"xxs",iconType:"fa-light",onClick:m?m(c):void 0,variant:"ghost"}):void 0]}),w?t.jsx("datalist",{id:`list_${f}`,children:w.map(B=>t.jsx("option",{value:B},B))}):void 0]})},Li=s.st.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,Pi=s.st.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
1211
1211
  gap: 12px;
1212
1212
  `,Wi=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
- `,Lt=({align:e,children:n,cols:i,colsPadding:a,justify:r})=>t.jsx(Mi,{$align:e,$cols:i,$colsPadding:a,$justify:r,children:n}),He=({addText:e,append:n,disabled:i=!1,fields:a,fieldState:r,initValue:o="",index:l=0,required:c,label:d,max:p=100,name:g,onBlur:u,onChange:f,placeholder:h,tooltip:b,remove:y,value:m})=>{var j;const v=x.useCallback(()=>{n==null||n(o)},[n,o]),w=x.useCallback(k=>()=>{y==null||y(k)},[y]);return t.jsxs(Lt,{align:"start",children:[t.jsx(Oe,{lg:75,md:75,sm:75,children:t.jsx(Ae,{disabled:i,error:r?(j=r.error)==null?void 0:j.message:void 0,id:"array",indexArray:l,isTouched:r?r.isTouched:void 0,isValid:r?!r.invalid:void 0,label:d,name:g,onBlur:u,onChange:f,placeholder:h,removeItemArray:w,required:c,tooltip:b,value:m})}),l<p-1&&l+1===(a==null?void 0:a.length)?t.jsx(Oe,{lg:25,md:25,sm:25,children:t.jsx(P,{disabled:i,icon:"plus",onClick:v,variant:"ghost",width:"100%",children:e??"Add"})}):void 0]})},_i=({addText:e,append:n,control:i,disabled:a,fields:r,initValue:o="",required:l,label:c,max:d=void 0,name:p="array-field",onChange:g,placeholder:u,remove:f,tooltip:h})=>i&&r?t.jsx(x.Fragment,{children:r.map((b,y)=>t.jsx(s.Controller,{control:i,name:`${p}.${y}`,render:({field:m,fieldState:v})=>t.jsx(He,{addText:e,append:n,disabled:a,fieldState:v,fields:r,index:y,initValue:o,label:c,max:d,name:m.name,onBlur:m.onBlur,onChange:g??m.onChange,placeholder:u,remove:f,required:l,tooltip:h,value:typeof m.value=="object"?m.value.value:m.value}),index:y},b.id))}):t.jsx(He,{addText:e,disabled:a,initValue:o,label:c,max:d,name:p,onChange:g,placeholder:u,required:l,tooltip:h}),Ji=s.st(mt)`
1266
+ `,Lt=({align:e,children:n,cols:i,colsPadding:a,justify:r})=>t.jsx(Mi,{$align:e,$cols:i,$colsPadding:a,$justify:r,children:n}),He=({addText:e,append:n,disabled:i=!1,fields:a,fieldState:r,initValue:o="",index:l=0,required:c,label:d,max:g=100,name:p,onBlur:u,onChange:f,placeholder:h,tooltip:b,remove:y,value:m})=>{var v;const j=x.useCallback(()=>{n==null||n(o)},[n,o]),w=x.useCallback(k=>()=>{y==null||y(k)},[y]);return t.jsxs(Lt,{align:"start",children:[t.jsx(Oe,{lg:75,md:75,sm:75,children:t.jsx(Ae,{disabled:i,error:r?(v=r.error)==null?void 0:v.message:void 0,id:"array",indexArray:l,isTouched:r?r.isTouched:void 0,isValid:r?!r.invalid:void 0,label:d,name:p,onBlur:u,onChange:f,placeholder:h,removeItemArray:w,required:c,tooltip:b,value:m})}),l<g-1&&l+1===(a==null?void 0:a.length)?t.jsx(Oe,{lg:25,md:25,sm:25,children:t.jsx(P,{disabled:i,icon:"plus",onClick:j,variant:"ghost",width:"100%",children:e??"Add"})}):void 0]})},_i=({addText:e,append:n,control:i,disabled:a,fields:r,initValue:o="",required:l,label:c,max:d=void 0,name:g="array-field",onChange:p,placeholder:u,remove:f,tooltip:h})=>i&&r?t.jsx(x.Fragment,{children:r.map((b,y)=>t.jsx(s.Controller,{control:i,name:`${g}.${y}`,render:({field:m,fieldState:j})=>t.jsx(He,{addText:e,append:n,disabled:a,fieldState:j,fields:r,index:y,initValue:o,label:c,max:d,name:m.name,onBlur:m.onBlur,onChange:p??m.onChange,placeholder:u,remove:f,required:l,tooltip:h,value:typeof m.value=="object"?m.value.value:m.value}),index:y},b.id))}):t.jsx(He,{addText:e,disabled:a,initValue:o,label:c,max:d,name:g,onChange:p,placeholder:u,required:l,tooltip:h}),Ji=s.st(mt)`
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
- `,ue=(e,n,i)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:n,value:i}}),a},Gi=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Vi=({accept:e,disabled:n=!1,error:i,label:a,helpLink:r,helpText:o,id:l,multiple:c,name:d,onChange:p,required:g,register:u,setValue:f,tooltip:h,watch:b,weight:y})=>{const m=s.Je(),v=n?void 0:i,w=x.useRef(null),j=u==null?void 0:u(d,{required:g}),k=b==null?void 0:b(d),S=Gi(k),R=x.useCallback(()=>{const N=ue("change",d,void 0);f&&f(d,void 0),j&&j.onChange(N)},[j,d,f]),z=x.useCallback(N=>{const{files:E}=N.currentTarget,L=ue("change",d,E&&E.length>0?E:void 0);E&&E.length>0&&(p==null||p(L),f&&f(d,E),j&&j.onChange(L))},[j,d,p,f]),C=x.useCallback(N=>{n?N.preventDefault():w.current&&w.current.click()},[n]);return t.jsxs(J,{error:v,helpLink:r,helpText:o,htmlFor:l??d,label:a,required:g,tooltip:h,weight:y,children:[t.jsxs(ee,{className:`${n?"disabled":""} ${v?"error":""}`,children:[t.jsx(Ji,{$size:"xs",children:S}),t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[s.lodashExports.isEmpty(S)?void 0:t.jsx(O,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:R,variant:"ghost",width:"20px"}),v&&t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}),t.jsxs(P,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:C,variant:"primary",width:"96px",children:[t.jsx(F,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]})]}),t.jsx(Ui,{...j,accept:e,"aria-label":d,"data-testid":d,disabled:n,id:l??d,multiple:c,name:d,onChange:z,ref:w,type:"file"})]})},Yi=s.st.input`
1277
+ `,ue=(e,n,i)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:n,value:i}}),a},Gi=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Vi=({accept:e,disabled:n=!1,error:i,label:a,helpLink:r,helpText:o,id:l,multiple:c,name:d,onChange:g,required:p,register:u,setValue:f,tooltip:h,watch:b,weight:y})=>{const m=s.Je(),j=n?void 0:i,w=x.useRef(null),v=u==null?void 0:u(d,{required:p}),k=b==null?void 0:b(d),C=Gi(k),E=x.useCallback(()=>{const N=ue("change",d,void 0);f&&f(d,void 0),v&&v.onChange(N)},[v,d,f]),z=x.useCallback(N=>{const{files:R}=N.currentTarget,L=ue("change",d,R&&R.length>0?R:void 0);R&&R.length>0&&(g==null||g(L),f&&f(d,R),v&&v.onChange(L))},[v,d,g,f]),S=x.useCallback(N=>{n?N.preventDefault():w.current&&w.current.click()},[n]);return t.jsxs(J,{error:j,helpLink:r,helpText:o,htmlFor:l??d,label:a,required:p,tooltip:h,weight:y,children:[t.jsxs(ee,{className:`${n?"disabled":""} ${j?"error":""}`,children:[t.jsx(Ji,{$size:"xs",children:C}),t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[s.lodashExports.isEmpty(C)?void 0:t.jsx(O,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:E,variant:"ghost",width:"20px"}),j&&t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}),t.jsxs(P,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:S,variant:"primary",width:"96px",children:[t.jsx(F,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]})]}),t.jsx(Ui,{...v,accept:e,"aria-label":d,"data-testid":d,disabled:n,id:l??d,multiple:c,name:d,onChange:z,ref:w,type:"file"})]})},Yi=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
- `,Me=({disabled:e=!1,error:n,field:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:u,tooltip:f,value:h,weight:b})=>{const y=s.Je(),m=e?void 0:n,[v,w]=x.useState(""),j=d?h:i==null?void 0:i.value,k=x.useMemo(()=>j&&typeof j=="string"?j.split(",").filter(Boolean):[],[j]),S=x.useCallback(E=>{const Y=[...new Set(E.filter(Boolean))].join(","),K=ue("change",c,Y);i&&i.onChange(K),d&&d(K)},[i,c,d]),R=x.useCallback(E=>{w(E.target.value)},[]),z=x.useCallback(E=>{const L=v.trim();L.length&&!k.includes(L)&&(E.preventDefault(),S([...k,L]),w("")),i&&i.onBlur()},[v,i,S,k]),C=x.useCallback(E=>{const L=v.trim();E.key==="Enter"&&L.length===0&&E.preventDefault(),["Enter",","].includes(E.key)&&L.length>0&&!k.includes(L)?(E.preventDefault(),S([...k,L]),w("")):E.key==="Backspace"&&!L.length&&k.length&&(E.preventDefault(),p==null||p(k[k.length-1]),S(k.slice(0,-1)))},[v,p,S,k]),N=x.useCallback(E=>()=>{p==null||p(E),S(k.filter(L=>L!==E))},[p,S,k]);return t.jsx(J,{error:m,helpLink:a,helpLinkText:r,helpText:o,htmlFor:c,label:l,required:u,tooltip:f,weight:b,children:t.jsxs(ee,{$overflowX:"auto",className:`${e?"disabled":""} ${m?"error":""}`,children:[k.map(E=>t.jsx(V,{disabled:e,onClose:N(E),tagLabel:E},E)),t.jsx(Yi,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",id:c,onBlur:z,onChange:R,onKeyDown:C,placeholder:k.length===0?g:void 0,ref:i==null?void 0:i.ref,type:"text",value:v}),m?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}):void 0]})})},qi=({disabled:e=!1,control:n,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:p,placeholder:g,required:u,tooltip:f,value:h,weight:b})=>n?t.jsx(s.Controller,{control:n,name:c,render:({field:y})=>t.jsx(Me,{disabled:e,error:i,field:y,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onRemove:p,placeholder:g,required:u,tooltip:f,weight:b}),rules:{required:u}}):t.jsx(Me,{disabled:e,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onChange:d,onRemove:p,placeholder:g,required:u,tooltip:f,value:h,weight:b}),_e=x.forwardRef(function({disabled:n,icon:i,margin:a,onClick:r,...o},l){return t.jsx(Ci,{$margin:a,"aria-label":i,className:"action-btn",disabled:n,onClick:r,ref:l,type:"button",...o,children:t.jsx(F,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),Fe=({error:e,decimalPlaces:n=0,disabled:i=!1,id:a,maxLength:r,max:o=1/0,min:l=0,name:c,onChange:d,placeholder:p,register:g,required:u,setValue:f,value:h})=>{const b=s.Je(),y=i?void 0:e,m=n<0?0:n,[v,w]=x.useState(h?s._.toNumber(h):0),j=x.useCallback(()=>{const z=(v-10**-m).toFixed(m),C=Math.max(Number(l),Number(z));f&&f(c,C,{shouldDirty:!0}),w(C);const N=ue("change",c,z);d&&d(N)},[v,m,l,f,c,d]),k=x.useCallback(()=>{const z=(v+10**-m).toFixed(m),C=Math.min(Number(o),Number(z)>Number(l)?Number(z):Number(l));f&&f(c,C,{shouldDirty:!0}),w(C);const N=ue("change",c,z);d&&d(N)},[v,m,o,l,f,c,d]),S=x.useCallback(z=>{const{value:C}=z.target,N=/\d+/u.test(C)&&!s._.isEmpty(C);f&&f(c,N?C:void 0),d&&d(z),w(Number(C))},[c,d,f]),R=x.useCallback(z=>{z.key==="Enter"&&z.preventDefault()},[]);return t.jsxs(ee,{className:`${i?"disabled":""} ${y?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":y?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",disabled:i,id:a??c,max:o,min:l,onChange:S,onKeyDown:R,placeholder:p,required:u,step:10**-m,type:"number",value:v,...g==null?void 0:g(c,{maxLength:r,max:o,min:l,onChange:S,value:h,valueAsNumber:!0})}),y&&t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}),t.jsx(_e,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:j,px:.75,py:.75}),t.jsx(_e,{borderRadius:`0 ${b.spacing[.5]} ${b.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:k,px:.75,py:.75})]})},Pt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:a,helpText:r,id:o,label:l,linkPosition:c,maxLength:d,max:p,min:g,name:u,onChange:f,placeholder:h,register:b,required:y,setValue:m,tooltip:v,value:w,watch:j,weight:k})=>t.jsx(J,{error:n?void 0:i,helpLink:a,helpText:r,htmlFor:u,label:l,linkPosition:c,maxLength:d,required:y,tooltip:v,weight:k,children:t.jsx(Fe,{decimalPlaces:e,disabled:n,error:i,id:o,max:p,maxLength:d,min:g,name:u,onChange:f,placeholder:h,register:b,required:y,setValue:m,value:j?j(u):w})}),Wt=({disabled:e=!1,error:n,name:i,label:a,propsMax:r,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:a,required:l,tooltip:c,children:t.jsxs($,{display:"flex",flexDirection:d==="filters"?"column":"row",gap:.25,width:"100%",children:[t.jsx(Fe,{...o,disabled:e,error:n,name:(o==null?void 0:o.name)??g}),t.jsx(Fe,{...r,disabled:e,error:n,name:(r==null?void 0:r.name)??p})]})})},Ki=s.st.div`
1283
+ `,Me=({disabled:e=!1,error:n,field:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:g,placeholder:p,required:u,tooltip:f,value:h,weight:b})=>{const y=s.Je(),m=e?void 0:n,[j,w]=x.useState(""),v=d?h:i==null?void 0:i.value,k=x.useMemo(()=>v&&typeof v=="string"?v.split(",").filter(Boolean):[],[v]),C=x.useCallback(R=>{const Y=[...new Set(R.filter(Boolean))].join(","),K=ue("change",c,Y);i&&i.onChange(K),d&&d(K)},[i,c,d]),E=x.useCallback(R=>{w(R.target.value)},[]),z=x.useCallback(R=>{const L=j.trim();L.length&&!k.includes(L)&&(R.preventDefault(),C([...k,L]),w("")),i&&i.onBlur()},[j,i,C,k]),S=x.useCallback(R=>{const L=j.trim();R.key==="Enter"&&L.length===0&&R.preventDefault(),["Enter",","].includes(R.key)&&L.length>0&&!k.includes(L)?(R.preventDefault(),C([...k,L]),w("")):R.key==="Backspace"&&!L.length&&k.length&&(R.preventDefault(),g==null||g(k[k.length-1]),C(k.slice(0,-1)))},[j,g,C,k]),N=x.useCallback(R=>()=>{g==null||g(R),C(k.filter(L=>L!==R))},[g,C,k]);return t.jsx(J,{error:m,helpLink:a,helpLinkText:r,helpText:o,htmlFor:c,label:l,required:u,tooltip:f,weight:b,children:t.jsxs(ee,{$overflowX:"auto",className:`${e?"disabled":""} ${m?"error":""}`,children:[k.map(R=>t.jsx(V,{disabled:e,onClose:N(R),tagLabel:R},R)),t.jsx(Yi,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",id:c,onBlur:z,onChange:E,onKeyDown:S,placeholder:k.length===0?p:void 0,ref:i==null?void 0:i.ref,type:"text",value:j}),m?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}):void 0]})})},qi=({disabled:e=!1,control:n,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:g,placeholder:p,required:u,tooltip:f,value:h,weight:b})=>n?t.jsx(s.Controller,{control:n,name:c,render:({field:y})=>t.jsx(Me,{disabled:e,error:i,field:y,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onRemove:g,placeholder:p,required:u,tooltip:f,weight:b}),rules:{required:u}}):t.jsx(Me,{disabled:e,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onChange:d,onRemove:g,placeholder:p,required:u,tooltip:f,value:h,weight:b}),_e=x.forwardRef(function({disabled:n,icon:i,margin:a,onClick:r,...o},l){return t.jsx(Ci,{$margin:a,"aria-label":i,className:"action-btn",disabled:n,onClick:r,ref:l,type:"button",...o,children:t.jsx(F,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),Fe=({error:e,decimalPlaces:n=0,disabled:i=!1,id:a,maxLength:r,max:o=1/0,min:l=0,name:c,onChange:d,placeholder:g,register:p,required:u,setValue:f,value:h})=>{const b=s.Je(),y=i?void 0:e,m=n<0?0:n,[j,w]=x.useState(h?s._.toNumber(h):0),v=x.useCallback(()=>{const z=(j-10**-m).toFixed(m),S=Math.max(Number(l),Number(z));f&&f(c,S,{shouldDirty:!0}),w(S);const N=ue("change",c,z);d&&d(N)},[j,m,l,f,c,d]),k=x.useCallback(()=>{const z=(j+10**-m).toFixed(m),S=Math.min(Number(o),Number(z)>Number(l)?Number(z):Number(l));f&&f(c,S,{shouldDirty:!0}),w(S);const N=ue("change",c,z);d&&d(N)},[j,m,o,l,f,c,d]),C=x.useCallback(z=>{const{value:S}=z.target,N=/\d+/u.test(S)&&!s._.isEmpty(S);f&&f(c,N?S:void 0),d&&d(z),w(Number(S))},[c,d,f]),E=x.useCallback(z=>{z.key==="Enter"&&z.preventDefault()},[]);return t.jsxs(ee,{className:`${i?"disabled":""} ${y?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":y?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",disabled:i,id:a??c,max:o,min:l,onChange:C,onKeyDown:E,placeholder:g,required:u,step:10**-m,type:"number",value:j,...p==null?void 0:p(c,{maxLength:r,max:o,min:l,onChange:C,value:h,valueAsNumber:!0})}),y&&t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}),t.jsx(_e,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:v,px:.75,py:.75}),t.jsx(_e,{borderRadius:`0 ${b.spacing[.5]} ${b.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:k,px:.75,py:.75})]})},Pt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:a,helpText:r,id:o,label:l,linkPosition:c,maxLength:d,max:g,min:p,name:u,onChange:f,placeholder:h,register:b,required:y,setValue:m,tooltip:j,value:w,watch:v,weight:k})=>t.jsx(J,{error:n?void 0:i,helpLink:a,helpText:r,htmlFor:u,label:l,linkPosition:c,maxLength:d,required:y,tooltip:j,weight:k,children:t.jsx(Fe,{decimalPlaces:e,disabled:n,error:i,id:o,max:g,maxLength:d,min:p,name:u,onChange:f,placeholder:h,register:b,required:y,setValue:m,value:v?v(u):w})}),Wt=({disabled:e=!1,error:n,name:i,label:a,propsMax:r,propsMin:o,required:l,tooltip:c,variant:d="default"})=>{const g=`${i}Max`,p=`${i}Min`;return t.jsx(J,{error:n,htmlFor:i,label:a,required:l,tooltip:c,children:t.jsxs($,{display:"flex",flexDirection:d==="filters"?"column":"row",gap:.25,width:"100%",children:[t.jsx(Fe,{...o,disabled:e,error:n,name:(o==null?void 0:o.name)??p}),t.jsx(Fe,{...r,disabled:e,error:n,name:(r==null?void 0:r.name)??g})]})})},Ki=s.st.div`
1284
1284
  ${({theme:e})=>`
1285
1285
  align-items: flex-start;
1286
1286
  align-self: stretch;
@@ -1374,15 +1374,15 @@
1374
1374
  overflow: hidden;
1375
1375
  text-overflow: ellipsis;
1376
1376
  white-space: nowrap;
1377
- `,ta=({disabled:e,error:n,label:i,name:a,placeholder:r,required:o,register:l,tooltip:c,value:d,watch:p,weight:g})=>{const u=s.Je(),f=x.useRef(null),h=e?void 0:n,b=(p==null?void 0:p(a))??d,[y,m]=x.useState(!1),[v,w]=x.useState(""),{refs:j,floatingStyles:k}=s.useFloating$1({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputRef:S,inputValue:R,handlePhoneValueChange:z,country:C,setCountry:N}=s.ee({countries:s.R,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),E=x.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]),L=x.useCallback(W=>{W.preventDefault(),m(H=>!H),y||w("")},[y]),Y=x.useCallback(W=>()=>{N(W),m(!1),w("")},[N,m]),K=x.useCallback(W=>{W.key.length===1?w(H=>H+W.key):W.key==="Backspace"&&w(H=>H.slice(0,-1))},[]),te=s.R.filter(W=>{const{name:H}=s.M(W);return H.toLowerCase().includes(v.toLowerCase())});return ie(j.floating.current,()=>{m(!1),w("")},!0),t.jsx(J,{error:h,htmlFor:a,label:i,required:o,tooltip:c,weight:g,children:t.jsxs(Ki,{className:`${e?"disabled":""} ${h?"error":""}`,ref:f,children:[t.jsxs(Xi,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:K,ref:j.setReference,children:[t.jsx(s.q,{iso2:C.iso2,size:"16px"}),t.jsx(F,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(ee,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":a,"aria-required":o,autoComplete:"off","data-testid":`${a}-input`,disabled:e,id:a,name:a,onKeyDown:E,placeholder:r,ref:S,type:"tel",value:R,...l==null?void 0:l(a,{required:o,onChange:z})}),h?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),y&&re.createPortal(t.jsx(Zi,{ref:j.setFloating,style:k,children:te.map(W=>{const{dialCode:H,iso2:B,name:oe}=s.M(W);return t.jsxs(Qi,{onClick:Y(B),value:B,children:[t.jsx(s.q,{iso2:B,size:"16px"}),t.jsx(ea,{children:oe}),t.jsx(I,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+H})]},B)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},na=({disabled:e=!1,error:n,helpLink:i,helpText:a,isTouched:r,isValid:o,label:l,name:c="input-text",id:d,maskValue:p=!1,maxLength:g,onBlur:u,placeholder:f,register:h,required:b,rows:y,tooltip:m,watch:v,weight:w,value:j})=>{const k=s.Je(),S=(v==null?void 0:v(c))??j,R=o&&r&&!e,z=e?void 0:n;return t.jsx(J,{error:z,helpLink:i,helpText:a,htmlFor:c,label:l,maxLength:g,required:b,tooltip:m,value:S?String(S):void 0,weight:w,children:t.jsxs(ee,{className:`
1378
- ${e?"disabled":""} ${z?"error":""} ${R?"success":""}
1379
- `,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":z?"true":"false","aria-label":c,"aria-required":b,className:p?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:g,placeholder:f,rows:y,value:S,...h==null?void 0:h(c,{required:b,onBlur:u})}),z?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"xs"}):void 0,R?t.jsx(F,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"xs"}):void 0]})})},ia=({control:e,description:n,disabled:i,id:a,items:r,align:o,inputType:l="text",inputNumberProps:c,minHeight:d,minWidth:p,name:g,placeholder:u,tooltip:f,title:h,value:b,isTouched:y,isValid:m,error:v,onChange:w,register:j,setValue:k,watch:S})=>{const R=x.useMemo(()=>{if(l==="text")return t.jsx(Ae,{disabled:i,error:v,isTouched:y,isValid:m,name:g,placeholder:u,register:j});if(l==="date")return t.jsx(Dt,{disabled:i,error:v,name:g,register:j,setValue:k,watch:S});if(l==="select"&&r)return t.jsx(Xe,{control:e,disabled:i,items:r,name:g,placeholder:u,value:b});const{decimalPlaces:z,max:C,min:N}=c??{};return t.jsx(Pt,{decimalPlaces:z,disabled:i,error:v,max:C,min:N,name:g,onChange:w,placeholder:u,register:j,setValue:k,value:b,watch:S})},[e,i,v,c,l,y,m,r,g,w,u,j,k,b,S]);return t.jsxs(fi,{$align:o,$minHeight:d,$minWidth:p,children:[t.jsx(Ne,{description:n,id:a,title:h,tooltip:f}),R]})},aa=s.st.div`
1377
+ `,ta=({disabled:e,error:n,label:i,name:a,placeholder:r,required:o,register:l,tooltip:c,value:d,watch:g,weight:p})=>{const u=s.Je(),f=x.useRef(null),h=e?void 0:n,b=(g==null?void 0:g(a))??d,[y,m]=x.useState(!1),[j,w]=x.useState(""),{refs:v,floatingStyles:k}=s.useFloating$1({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputRef:C,inputValue:E,handlePhoneValueChange:z,country:S,setCountry:N}=s.ee({countries:s.R,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),R=x.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]),L=x.useCallback(W=>{W.preventDefault(),m(H=>!H),y||w("")},[y]),Y=x.useCallback(W=>()=>{N(W),m(!1),w("")},[N,m]),K=x.useCallback(W=>{W.key.length===1?w(H=>H+W.key):W.key==="Backspace"&&w(H=>H.slice(0,-1))},[]),te=s.R.filter(W=>{const{name:H}=s.M(W);return H.toLowerCase().includes(j.toLowerCase())});return ie(v.floating.current,()=>{m(!1),w("")},!0),t.jsx(J,{error:h,htmlFor:a,label:i,required:o,tooltip:c,weight:p,children:t.jsxs(Ki,{className:`${e?"disabled":""} ${h?"error":""}`,ref:f,children:[t.jsxs(Xi,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:K,ref:v.setReference,children:[t.jsx(s.q,{iso2:S.iso2,size:"16px"}),t.jsx(F,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(ee,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":a,"aria-required":o,autoComplete:"off","data-testid":`${a}-input`,disabled:e,id:a,name:a,onKeyDown:R,placeholder:r,ref:C,type:"tel",value:E,...l==null?void 0:l(a,{required:o,onChange:z})}),h?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),y&&re.createPortal(t.jsx(Zi,{ref:v.setFloating,style:k,children:te.map(W=>{const{dialCode:H,iso2:B,name:oe}=s.M(W);return t.jsxs(Qi,{onClick:Y(B),value:B,children:[t.jsx(s.q,{iso2:B,size:"16px"}),t.jsx(ea,{children:oe}),t.jsx(I,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+H})]},B)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},na=({disabled:e=!1,error:n,helpLink:i,helpText:a,isTouched:r,isValid:o,label:l,name:c="input-text",id:d,maskValue:g=!1,maxLength:p,onBlur:u,placeholder:f,register:h,required:b,rows:y,tooltip:m,watch:j,weight:w,value:v})=>{const k=s.Je(),C=(j==null?void 0:j(c))??v,E=o&&r&&!e,z=e?void 0:n;return t.jsx(J,{error:z,helpLink:i,helpText:a,htmlFor:c,label:l,maxLength:p,required:b,tooltip:m,value:C?String(C):void 0,weight:w,children:t.jsxs(ee,{className:`
1378
+ ${e?"disabled":""} ${z?"error":""} ${E?"success":""}
1379
+ `,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":z?"true":"false","aria-label":c,"aria-required":b,className:g?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:p,placeholder:f,rows:y,value:C,...h==null?void 0:h(c,{required:b,onBlur:u})}),z?t.jsx(F,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"xs"}):void 0,E?t.jsx(F,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"xs"}):void 0]})})},ia=({control:e,description:n,disabled:i,id:a,items:r,align:o,inputType:l="text",inputNumberProps:c,minHeight:d,minWidth:g,name:p,placeholder:u,tooltip:f,title:h,value:b,isTouched:y,isValid:m,error:j,onChange:w,register:v,setValue:k,watch:C})=>{const E=x.useMemo(()=>{if(l==="text")return t.jsx(Ae,{disabled:i,error:j,isTouched:y,isValid:m,name:p,placeholder:u,register:v});if(l==="date")return t.jsx(Dt,{disabled:i,error:j,name:p,register:v,setValue:k,watch:C});if(l==="select"&&r)return t.jsx(Xe,{control:e,disabled:i,items:r,name:p,placeholder:u,value:b});const{decimalPlaces:z,max:S,min:N}=c??{};return t.jsx(Pt,{decimalPlaces:z,disabled:i,error:j,max:S,min:N,name:p,onChange:w,placeholder:u,register:v,setValue:k,value:b,watch:C})},[e,i,j,c,l,y,m,r,p,w,u,v,k,b,C]);return t.jsxs(fi,{$align:o,$minHeight:d,$minWidth:g,children:[t.jsx(Ne,{description:n,id:a,title:h,tooltip:f}),E]})},aa=s.st.div`
1380
1380
  display: flex;
1381
1381
  align-self: flex-start;
1382
1382
  margin-left: auto;
1383
1383
  width: 40px;
1384
1384
  height: auto;
1385
- `,Bt=(e,n)=>{const[a,r]=x.useState(0),[o,l]=x.useState(0);return x.useEffect(()=>{o===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[o,n]),x.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:a,progress:o,setCycle:r,setProgress:l}},Ot=({publicId:e,format:n="webp"})=>{const i=x.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return x.useMemo(()=>i.image(e).format(n),[i,e,n])},Ce=e=>{const[n,i]=x.useState(!1),a=x.useCallback(()=>{i(!0)},[]),r=x.useCallback(()=>{i(!1)},[]),o=x.useCallback(()=>{i(l=>!l)},[]);return{close:r,isOpen:n,name:e,open:a,setIsOpen:i,toggle:o}},ra=({name:e,items:n,columnOrder:i,setColumnOrder:a})=>{const r=x.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...u})=>({...u,visible:!0,locked:g})),...n.filter(({locked:g})=>!g)],[n]),[o,l]=x.useState(r),c=x.useCallback(g=>{const u=g.filter(({locked:y})=>!y),h=[...g.filter(({locked:y})=>y),...u],b=h.map(({name:y})=>y);l(y=>[...h,...y.filter(({name:m})=>!b.includes(m))]),a&&a(h.map(({id:y})=>y))},[a]),d=x.useCallback(()=>{const g=o.map(u=>{var h;const f=(i==null?void 0:i.includes(u.id))??!1;return(h=u.toggleVisibility)==null||h.call(u,f),{...u,visible:f}}).toSorted((u,f)=>{const h=(i==null?void 0:i.indexOf(u.id))??0,b=(i==null?void 0:i.indexOf(f.id))??0;return Number(f.visible)!==Number(u.visible)?Number(f.visible)-Number(u.visible):h-b});l(g),a==null||a(i)},[o,i,a]),p=x.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,...Ce(e),hasChanged:p}},Ht=(e,n)=>x.useMemo(()=>s._.debounce(e,n),[e,n]),oa=e=>{const[n,i]=x.useState(),a=Ht(r=>{i(r)},(e==null?void 0:e.debounceWait)??300);return[n,a]},sa=({alt:e="img",height:n="",width:i="",plugins:a=[s.lazyload(),s.placeholder()],publicId:r})=>{const o=Ot({publicId:r});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:a,width:i})},Z=x.memo(sa),la=s.st.label`
1385
+ `,Bt=(e,n)=>{const[a,r]=x.useState(0),[o,l]=x.useState(0);return x.useEffect(()=>{o===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[o,n]),x.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:a,progress:o,setCycle:r,setProgress:l}},Ot=({publicId:e,format:n="webp"})=>{const i=x.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return x.useMemo(()=>i.image(e).format(n),[i,e,n])},Ce=e=>{const[n,i]=x.useState(!1),a=x.useCallback(()=>{i(!0)},[]),r=x.useCallback(()=>{i(!1)},[]),o=x.useCallback(()=>{i(l=>!l)},[]);return{close:r,isOpen:n,name:e,open:a,setIsOpen:i,toggle:o}},ra=({name:e,items:n,columnOrder:i,setColumnOrder:a})=>{const r=x.useMemo(()=>[...n.filter(({locked:p})=>p).map(({locked:p,...u})=>({...u,visible:!0,locked:p})),...n.filter(({locked:p})=>!p)],[n]),[o,l]=x.useState(r),c=x.useCallback(p=>{const u=p.filter(({locked:y})=>!y),h=[...p.filter(({locked:y})=>y),...u],b=h.map(({name:y})=>y);l(y=>[...h,...y.filter(({name:m})=>!b.includes(m))]),a&&a(h.map(({id:y})=>y))},[a]),d=x.useCallback(()=>{const p=o.map(u=>{var h;const f=(i==null?void 0:i.includes(u.id))??!1;return(h=u.toggleVisibility)==null||h.call(u,f),{...u,visible:f}}).toSorted((u,f)=>{const h=(i==null?void 0:i.indexOf(u.id))??0,b=(i==null?void 0:i.indexOf(f.id))??0;return Number(f.visible)!==Number(u.visible)?Number(f.visible)-Number(u.visible):h-b});l(p),a==null||a(i)},[o,i,a]),g=x.useMemo(()=>s.some(o,p=>((i==null?void 0:i.includes(p.id))??!1)!==p.visible),[o,i]);return{setColumns:c,resetToDefault:d,columns:o,...Ce(e),hasChanged:g}},Ht=(e,n)=>x.useMemo(()=>s._.debounce(e,n),[e,n]),oa=e=>{const[n,i]=x.useState(),a=Ht(r=>{i(r)},(e==null?void 0:e.debounceWait)??300);return[n,a]},sa=({alt:e="img",height:n="",width:i="",plugins:a=[s.lazyload(),s.placeholder()],publicId:r})=>{const o=Ot({publicId:r});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:a,width:i})},Z=x.memo(sa),la=s.st.label`
1386
1386
  ${({theme:e})=>`
1387
1387
  align-items: center;
1388
1388
  display: flex;
@@ -1461,7 +1461,7 @@
1461
1461
  }
1462
1462
 
1463
1463
  `}
1464
- `,ca=s.st.span.attrs({className:"checkmark"})``,Qe=x.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:a,name:r,onChange:o,onClick:l,value:c,...d},p){return t.jsxs(la,{"aria-disabled":i,"aria-label":a??r,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":a??r,defaultChecked:n,disabled:i,name:r,onChange:o,onClick:l,ref:p,type:"radio",value:c,...d}),t.jsx(ca,{}),a??null]})}),da=({alt:e,customDescription:n,imageId:i,icon:a,selectorProps:r,onClick:o,register:l,bgColor:c,title:d,isATag:p=!1,width:g="fit-content"})=>{const u=s.Je();return t.jsxs($,{alignItems:"center",bgColor:c??"",border:`1px solid ${u.palette.gray[200]}`,borderColorHover:u.palette.gray[600],borderRadius:u.spacing[.25],display:"inline-flex",pr:p?1:0,shadowHover:"md",width:g,children:[t.jsxs($,{display:"inline-flex",padding:[1,1,1,1],children:[t.jsx($,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(Qe,{defaultChecked:r.defaultChecked,name:r.name,onClick:o,value:r.value,...l==null?void 0:l(r.name)})}),t.jsxs($,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[!p&&i!==void 0&&t.jsx(Z,{alt:e??"card image",height:"32px",publicId:i,width:"32px"}),a===void 0?void 0:t.jsx(F,{icon:a,iconSize:"sm",iconType:"fa-light"}),t.jsxs($,{display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(I,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",children:d}),n===void 0?void 0:t.jsx($,{children:n})]})]})]}),p&&t.jsx(aa,{children:t.jsx(Z,{alt:e??"tag image",height:"40px",publicId:i??"tag image",width:"40px"})})]})},le=s.st.div`
1464
+ `,ca=s.st.span.attrs({className:"checkmark"})``,Qe=x.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:a,name:r,onChange:o,onClick:l,value:c,...d},g){return t.jsxs(la,{"aria-disabled":i,"aria-label":a??r,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":a??r,defaultChecked:n,disabled:i,name:r,onChange:o,onClick:l,ref:g,type:"radio",value:c,...d}),t.jsx(ca,{}),a??null]})}),da=({alt:e,customDescription:n,imageId:i,icon:a,selectorProps:r,onClick:o,register:l,bgColor:c,title:d,isATag:g=!1,width:p="fit-content"})=>{const u=s.Je();return t.jsxs($,{alignItems:"center",bgColor:c??"",border:`1px solid ${u.palette.gray[200]}`,borderColorHover:u.palette.gray[600],borderRadius:u.spacing[.25],display:"inline-flex",pr:g?1:0,shadowHover:"md",width:p,children:[t.jsxs($,{display:"inline-flex",padding:[1,1,1,1],children:[t.jsx($,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(Qe,{defaultChecked:r.defaultChecked,name:r.name,onClick:o,value:r.value,...l==null?void 0:l(r.name)})}),t.jsxs($,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[!g&&i!==void 0&&t.jsx(Z,{alt:e??"card image",height:"32px",publicId:i,width:"32px"}),a===void 0?void 0:t.jsx(F,{icon:a,iconSize:"sm",iconType:"fa-light"}),t.jsxs($,{display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(I,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",children:d}),n===void 0?void 0:t.jsx($,{children:n})]})]})]}),g&&t.jsx(aa,{children:t.jsx(Z,{alt:e??"tag image",height:"40px",publicId:i??"tag image",width:"40px"})})]})},le=s.st.div`
1465
1465
  ${({theme:e})=>`
1466
1466
  align-items: center;
1467
1467
  background-color: ${e.palette.gray[200]};
@@ -1511,7 +1511,7 @@
1511
1511
  background-color: ${({theme:e})=>e.palette.gray[200]};
1512
1512
  border: 1px solid ${({theme:e})=>e.palette.gray[200]};
1513
1513
  }
1514
- `,Mt=x.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:a,name:r,leftDescription:o,leftDescriptionMinWidth:l,rightDescription:c,onChange:d,...p},g){const u=n===!0?"on":"off",f=typeof o=="object"&&o.on&&o.off?o[u]:o,h=x.useCallback(b=>{b.stopPropagation()},[]);return t.jsxs($,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:a,children:[t.jsx($,{minWidth:l,children:f}),t.jsxs(ga,{onClick:h,role:"switch",children:[t.jsx("input",{...p,"aria-disabled":i,"aria-label":r,checked:n===!0,disabled:i,name:r,onChange:d,ref:g,type:"checkbox"}),t.jsx(le,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(pa,{})})]}),c]})}),ua=({id:e,title:n,toggles:i,minWidth:a="auto",height:r="auto"})=>{const o=s.Je();return t.jsxs($,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${o.palette.gray[200]}`,borderRadius:o.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:r,justify:"center",minHeight:"100px",minWidth:a,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(Ne,{id:e,title:n}),t.jsx($,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(l=>t.jsx(Mt,{...l},`$card-toggle-${l.name}`))})]})},xa=s.st.div`
1514
+ `,Mt=x.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:a,name:r,leftDescription:o,leftDescriptionMinWidth:l,rightDescription:c,onChange:d,...g},p){const u=n===!0?"on":"off",f=typeof o=="object"&&o.on&&o.off?o[u]:o,h=x.useCallback(b=>{b.stopPropagation()},[]);return t.jsxs($,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:a,children:[t.jsx($,{minWidth:l,children:f}),t.jsxs(ga,{onClick:h,role:"switch",children:[t.jsx("input",{...g,"aria-disabled":i,"aria-label":r,checked:n===!0,disabled:i,name:r,onChange:d,ref:p,type:"checkbox"}),t.jsx(le,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(pa,{})})]}),c]})}),ua=({id:e,title:n,toggles:i,minWidth:a="auto",height:r="auto"})=>{const o=s.Je();return t.jsxs($,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${o.palette.gray[200]}`,borderRadius:o.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:r,justify:"center",minHeight:"100px",minWidth:a,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(Ne,{id:e,title:n}),t.jsx($,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(l=>t.jsx(Mt,{...l},`$card-toggle-${l.name}`))})]})},xa=s.st.div`
1515
1515
  position: relative;
1516
1516
  margin: auto;
1517
1517
  overflow: hidden;
@@ -1611,10 +1611,10 @@
1611
1611
  background-color: ${e.palette.gray[200]};
1612
1612
  }
1613
1613
  `}
1614
- `,Jt=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(x.useEffect(()=>{s.prismExports.highlightAll()},[]),t.jsx(_t,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":s._.isNil(n)||s._.isString(n)?0:n.offset+.7,...i!==void 0?{"data-line":String(Number(i))}:{},children:s._.isNil(n)||s._.isString(n)||s._.isEmpty(n.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:n.content})})})),wa=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i,variant:a="normal"})=>{const r=s.Je(),[o,l]=x.useState(!1),[c,d]=x.useState(!0),p=x.useCallback(()=>{l(h=>!h)},[l]),g=x.useCallback(()=>{if(s._.isNil(n)||s._.isEmpty(n)||!s._.isString(n))return d(!1),e;const h=n.split(`
1614
+ `,Jt=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(x.useEffect(()=>{s.prismExports.highlightAll()},[]),t.jsx(_t,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":s._.isNil(n)||s._.isString(n)?0:n.offset+.7,...i!==void 0?{"data-line":String(Number(i))}:{},children:s._.isNil(n)||s._.isString(n)||s._.isEmpty(n.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:n.content})})})),wa=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i,variant:a="normal"})=>{const r=s.Je(),[o,l]=x.useState(!1),[c,d]=x.useState(!0),g=x.useCallback(()=>{l(h=>!h)},[l]),p=x.useCallback(()=>{if(s._.isNil(n)||s._.isEmpty(n)||!s._.isString(n))return d(!1),e;const h=n.split(`
1615
1615
  `);return h.length>8&&!o?`${[...h].splice(0,7).join(`
1616
1616
  `)}
1617
- ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(async()=>{await navigator.clipboard.writeText(u)},[u]);return a==="location"?t.jsx(Jt,{noCodeMessage:e,snippet:n,specific:i}):t.jsxs($,{bgColor:r.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(_t,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:u})})}),t.jsxs(ma,{children:[t.jsx(O,{height:r.spacing[2.5],icon:"copy",iconColor:r.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:f,variant:"ghost",width:r.spacing[2.5]}),c?t.jsxs(P,{onClick:p,variant:"ghost",children:[o?"Show Less":"Show more",t.jsx(F,{icon:o?"chevron-up":"chevron-down",iconColor:r.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:f})]}):!1]})]})},{getVariant:ja}=q(e=>({fixed:`
1617
+ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(async()=>{await navigator.clipboard.writeText(u)},[u]);return a==="location"?t.jsx(Jt,{noCodeMessage:e,snippet:n,specific:i}):t.jsxs($,{bgColor:r.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(_t,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:u})})}),t.jsxs(ma,{children:[t.jsx(O,{height:r.spacing[2.5],icon:"copy",iconColor:r.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:f,variant:"ghost",width:r.spacing[2.5]}),c?t.jsxs(P,{onClick:g,variant:"ghost",children:[o?"Show Less":"Show more",t.jsx(F,{icon:o?"chevron-up":"chevron-down",iconColor:r.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:f})]}):!1]})]})},{getVariant:ja}=q(e=>({fixed:`
1618
1618
  height: auto;
1619
1619
  min-width: 300px;
1620
1620
  padding: ${e.spacing[1.25]};
@@ -1798,7 +1798,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
1798
1798
  font-size: 6px;
1799
1799
  font-weight: ${({theme:e})=>e.typography.weight.bold};
1800
1800
  justify-content: center;
1801
- `,qt=x.forwardRef(function({numberIndicator:n,show:i,variant:a="error",...r},o){return t.jsx(Fa,{$variant:a,className:i?"flex":"hidden","data-testid":"notification-sign",ref:o,...r,children:n&&t.jsx(Na,{children:n<=9?n:9})})}),Kt=({end:e=!1,label:n,id:i,isActive:a=!1,link:r,notificationSign:o,onClick:l,tooltip:c="",variant:d="primary",tag:p})=>{const{pathname:g}=We.useLocation(),u=a||(d==="primary"?g.includes(r):g.endsWith(r));return t.jsx(G,{display:"flex",id:`${i}-tooltip`,tip:c,children:t.jsxs(Ta,{$borderButton:u,$variant:d,children:[t.jsxs(We.NavLink,{end:e,id:i,onClick:l,to:r,children:[n,t.jsx(qt,{left:o==null?void 0:o.left,numberIndicator:o==null?void 0:o.numberIndicator,show:o==null?void 0:o.show,top:o==null?void 0:o.top,variant:o==null?void 0:o.variant})]}),p===void 0?null:t.jsx(V,{tagLabel:`${p}`,variant:"default"})]})})},tt=({items:e,borders:n=!0,box:i=!1,variant:a="primary"})=>{const r=s.Je();return t.jsx($,{alignItems:"center",bgColor:r.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:i?r.palette.gray[200]:void 0,borderRadius:i?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:i?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:i?"max-content":"100%",children:e.map(({end:o,id:l,isActive:c,link:d,label:p,notificationSign:g,onClick:u,tag:f,tooltip:h})=>t.jsx(Kt,{end:o,id:l,isActive:c,label:p,link:d,notificationSign:g,onClick:u,tag:f,tooltip:h,variant:a},l))})},ae=x.forwardRef(function({color:n=T.palette.gray[100],mt:i=.5,mb:a=.5,width:r,...o},l){return t.jsx($,{as:"hr",borderTop:`1px solid ${n}`,mb:a,mt:i,ref:l,width:r??"100%",...o})}),Da=s.st.li`
1801
+ `,qt=x.forwardRef(function({numberIndicator:n,show:i,variant:a="error",...r},o){return t.jsx(Fa,{$variant:a,className:i?"flex":"hidden","data-testid":"notification-sign",ref:o,...r,children:n&&t.jsx(Na,{children:n<=9?n:9})})}),Kt=({end:e=!1,label:n,id:i,isActive:a=!1,link:r,notificationSign:o,onClick:l,tooltip:c="",variant:d="primary",tag:g})=>{const{pathname:p}=We.useLocation(),u=a||(d==="primary"?p.includes(r):p.endsWith(r));return t.jsx(G,{display:"flex",id:`${i}-tooltip`,tip:c,children:t.jsxs(Ta,{$borderButton:u,$variant:d,children:[t.jsxs(We.NavLink,{end:e,id:i,onClick:l,to:r,children:[n,t.jsx(qt,{left:o==null?void 0:o.left,numberIndicator:o==null?void 0:o.numberIndicator,show:o==null?void 0:o.show,top:o==null?void 0:o.top,variant:o==null?void 0:o.variant})]}),g===void 0?null:t.jsx(V,{tagLabel:`${g}`,variant:"default"})]})})},tt=({items:e,borders:n=!0,box:i=!1,variant:a="primary"})=>{const r=s.Je();return t.jsx($,{alignItems:"center",bgColor:r.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:i?r.palette.gray[200]:void 0,borderRadius:i?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:i?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:i?"max-content":"100%",children:e.map(({end:o,id:l,isActive:c,link:d,label:g,notificationSign:p,onClick:u,tag:f,tooltip:h})=>t.jsx(Kt,{end:o,id:l,isActive:c,label:g,link:d,notificationSign:p,onClick:u,tag:f,tooltip:h,variant:a},l))})},ae=x.forwardRef(function({color:n=T.palette.gray[100],mt:i=.5,mb:a=.5,width:r,...o},l){return t.jsx($,{as:"hr",borderTop:`1px solid ${n}`,mb:a,mt:i,ref:l,width:r??"100%",...o})}),Da=s.st.li`
1802
1802
  ${({theme:e})=>`
1803
1803
  align-items: center;
1804
1804
  background-color: ${e.palette.white};
@@ -1856,7 +1856,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
1856
1856
  min-width: 240px;
1857
1857
  padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
1858
1858
  `}
1859
- `,Se=({children:e,disabled:n=!1,icon:i,iconType:a="fa-light",href:r,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:p=!1,value:g,...u})=>{const h=s.Je().palette.gray[n?300:800],b=n?x.Children.map(e,y=>x.isValidElement(y)?x.cloneElement(y,{disabled:n,...y.props}):y):e;return t.jsxs(Da,{"aria-disabled":n,"aria-label":g,"aria-selected":p,"data-testid":g,onClick:o,onKeyDown:c,value:g,...u,children:[i!==void 0||g!==void 0?t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(F,{disabled:n,icon:i,iconColor:h,iconSize:"xxs",iconType:a}):null,r===void 0?b:t.jsx(Q,{href:r,children:b})]}):null,p||d?t.jsx(F,{disabled:n,icon:d??"check",iconClass:"selected",iconColor:h,iconSize:"xs",iconType:a,onClick:l}):null]})},Ea=s.st(Se)`
1859
+ `,Se=({children:e,disabled:n=!1,icon:i,iconType:a="fa-light",href:r,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:g=!1,value:p,...u})=>{const h=s.Je().palette.gray[n?300:800],b=n?x.Children.map(e,y=>x.isValidElement(y)?x.cloneElement(y,{disabled:n,...y.props}):y):e;return t.jsxs(Da,{"aria-disabled":n,"aria-label":p,"aria-selected":g,"data-testid":p,onClick:o,onKeyDown:c,value:p,...u,children:[i!==void 0||p!==void 0?t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(F,{disabled:n,icon:i,iconColor:h,iconSize:"xxs",iconType:a}):null,r===void 0?b:t.jsx(Q,{href:r,children:b})]}):null,g||d?t.jsx(F,{disabled:n,icon:d??"check",iconClass:"selected",iconColor:h,iconSize:"xs",iconType:a,onClick:l}):null]})},Ea=s.st(Se)`
1860
1860
  margin-top: 10px;
1861
1861
  border: 1px solid ${({theme:e})=>e.palette.gray[300]};
1862
1862
  border-radius: 4px;
@@ -1890,7 +1890,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
1890
1890
  display: none;
1891
1891
  }
1892
1892
  }
1893
- `,Qt=({options:e,title:n,checkboxesName:i,defaultCollapsed:a,onChange:r})=>{const o=s.Je(),[l,c]=x.useState(a??!1),d=x.useCallback(()=>{c(p=>!p)},[]);return t.jsxs($,{"aria-label":n,bgColor:l?o.palette.gray[50]:o.palette.white,border:"1px solid"+o.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,role:"region",width:"100%",children:[t.jsxs($,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(I,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n}),t.jsx(F,{icon:l?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs"})]}),l?t.jsx($,{display:"flex",gap:.75,wrap:"wrap",children:e.map(p=>t.jsx($,{border:"1px solid",borderColor:o.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(ne,{checked:p.visible,disabled:p.locked,label:p.name,name:`${i}-${p.name}`,onChange:r,value:p.name})},p.name))}):void 0]})},en=e=>e.reduce((i,a)=>a.group?i[a.group]?{...i,[a.group]:[...i[a.group],a]}:{...i,[a.group]:[a]}:i,{}),Aa=s.st.input`
1893
+ `,Qt=({options:e,title:n,checkboxesName:i,defaultCollapsed:a,onChange:r})=>{const o=s.Je(),[l,c]=x.useState(a??!1),d=x.useCallback(()=>{c(g=>!g)},[]);return t.jsxs($,{"aria-label":n,bgColor:l?o.palette.gray[50]:o.palette.white,border:"1px solid"+o.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,role:"region",width:"100%",children:[t.jsxs($,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(I,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n}),t.jsx(F,{icon:l?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs"})]}),l?t.jsx($,{display:"flex",gap:.75,wrap:"wrap",children:e.map(g=>t.jsx($,{border:"1px solid",borderColor:o.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(ne,{checked:g.visible,disabled:g.locked,label:g.name,name:`${i}-${g.name}`,onChange:r,value:g.name})},g.name))}):void 0]})},en=e=>e.reduce((i,a)=>a.group?i[a.group]?{...i,[a.group]:[...i[a.group],a]}:{...i,[a.group]:[a]}:i,{}),Aa=s.st.input`
1894
1894
  ${({theme:e})=>`
1895
1895
  background: none;
1896
1896
  border: none !important;
@@ -1946,7 +1946,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
1946
1946
  border-radius: ${e.spacing[.5]};
1947
1947
  width: 250px;
1948
1948
  `}
1949
- `,xe=x.forwardRef(function({name:n,smallSearch:i=!1,onClear:a,value:r,...o},l){const c=s.Je(),[d,p]=x.useState(!1),{refs:g,floatingStyles:u}=s.useFloating$1(),f=x.useCallback(()=>{p(y=>!y)},[]),h=x.useCallback(y=>{y.key==="Enter"&&y.preventDefault()},[]);ie(g.floating.current,()=>{p(!1)},!0);const b=t.jsxs(La,{children:[t.jsx(F,{icon:"magnifying-glass",iconColor:c.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(Aa,{...o,id:n,name:n,onKeyDown:h,ref:l,type:"search",value:r}),!s.lodashExports.isEmpty(r)&&t.jsx(O,{icon:"xmark",iconColor:c.palette.gray[300],iconSize:"xs",iconType:"fa-light",onClick:a,px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?t.jsxs(x.Fragment,{children:[t.jsx(O,{border:`1px solid ${c.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:f,ref:g.setReference,variant:"ghost"}),d?t.jsx(Pa,{ref:g.setFloating,style:u,children:b}):void 0]}):b}),tn=({columns:e,formId:n,onChangeHandler:i,variant:a})=>{const r=x.useRef(null),[o,l]=x.useState([]),[c,d]=x.useState(""),p=x.useCallback(u=>{const{value:f}=u.target;d(f)},[]),g=x.useCallback(()=>{r.current&&(r.current.reset(),d(""))},[r]);return x.useEffect(()=>{l(e.filter(u=>{var f;return a==="grouped"?u.name.toLowerCase().includes(c.toLowerCase())||((f=u.group)==null?void 0:f.includes(c.toLowerCase())):u.name.toLowerCase().includes(c.toLowerCase())}))},[e,c,a]),a==="grouped"?t.jsxs($,{display:"flex",flexDirection:"column",gap:.625,height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(xe,{name:"search",onChange:p,onClear:g,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:g,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(en(o)).map(([u,f],h)=>{const b=`li-checkbox${u}`;return t.jsx(Qt,{checkboxesName:u,defaultCollapsed:h===0,onChange:i,options:f,title:u},b)})})]}):t.jsxs($,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(xe,{name:"search",onChange:p,onClear:g,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:g,style:{paddingTop:"0.625rem"},children:o.map(u=>{const f=`li-checkbox-${u.name}`;return t.jsx(Ra,{selected:u.visible,value:f,width:"content",children:t.jsx(ne,{checked:u.visible,disabled:u.locked,label:u.name,name:u.name,onChange:i,value:u.name})},f)})})]})},Wa=({_containerId:e="portals",title:n,modalRef:i,variant:a})=>{const r=s.Je(),o=x.useRef(null),[l,c]=x.useState(void 0),d=x.useCallback(u=>{const{checked:f,value:h}=u.target,b=i.columns.map(y=>{var m;return y.name===h?((m=y.toggleVisibility)==null||m.call(y,f),{...y,visible:f}):y});i.setColumns(b)},[i]),p=x.useCallback(u=>{const f=i.columns.map(h=>{var b;return h.id===u?((b=h.toggleVisibility)==null||b.call(h,!1),{...h,visible:!1}):h});i.setColumns(f)},[i]),g=x.useCallback(()=>{var f;const u=(f=o.current)==null?void 0:f.scrollHeight;l!==u&&c(u)},[l]);return i.isOpen?re.createPortal(t.jsx(Ut,{"aria-label":i.name,"aria-modal":"true",children:t.jsxs(et,{$size:"md",flexDirection:"column",children:[t.jsxs($,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(U,{size:"sm",children:n}),t.jsx(O,{icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:i.close,px:.25,py:.25,variant:"ghost"})]}),t.jsx(ae,{mb:0,mt:0}),t.jsxs($,{display:"flex",gap:1.25,onScroll:g,px:1.25,ref:o,scroll:"y",width:"100%",children:[t.jsx(tn,{columns:i.columns,formId:"columns-visibility",onChangeHandler:d,variant:a}),t.jsx($,{borderLeft:`2px solid ${r.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(Zt,{description:"Click and drag to reorder the columns",items:i.columns,onClickClose:p,onReorder:i.setColumns,title:"Reorder columns"})]}),t.jsx(ae,{mb:0,mt:0}),t.jsxs($,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(P,{disabled:!i.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:i.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to default"}),t.jsx(P,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},Ba=s.st(Se)`
1949
+ `,xe=x.forwardRef(function({name:n,smallSearch:i=!1,onClear:a,value:r,...o},l){const c=s.Je(),[d,g]=x.useState(!1),{refs:p,floatingStyles:u}=s.useFloating$1(),f=x.useCallback(()=>{g(y=>!y)},[]),h=x.useCallback(y=>{y.key==="Enter"&&y.preventDefault()},[]);ie(p.floating.current,()=>{g(!1)},!0);const b=t.jsxs(La,{children:[t.jsx(F,{icon:"magnifying-glass",iconColor:c.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(Aa,{...o,id:n,name:n,onKeyDown:h,ref:l,type:"search",value:r}),!s.lodashExports.isEmpty(r)&&t.jsx(O,{icon:"xmark",iconColor:c.palette.gray[300],iconSize:"xs",iconType:"fa-light",onClick:a,px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?t.jsxs(x.Fragment,{children:[t.jsx(O,{border:`1px solid ${c.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:f,ref:p.setReference,variant:"ghost"}),d?t.jsx(Pa,{ref:p.setFloating,style:u,children:b}):void 0]}):b}),tn=({columns:e,formId:n,onChangeHandler:i,variant:a})=>{const r=x.useRef(null),[o,l]=x.useState([]),[c,d]=x.useState(""),g=x.useCallback(u=>{const{value:f}=u.target;d(f)},[]),p=x.useCallback(()=>{r.current&&(r.current.reset(),d(""))},[r]);return x.useEffect(()=>{l(e.filter(u=>{var f;return a==="grouped"?u.name.toLowerCase().includes(c.toLowerCase())||((f=u.group)==null?void 0:f.includes(c.toLowerCase())):u.name.toLowerCase().includes(c.toLowerCase())}))},[e,c,a]),a==="grouped"?t.jsxs($,{display:"flex",flexDirection:"column",gap:.625,height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(xe,{name:"search",onChange:g,onClear:p,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:p,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(en(o)).map(([u,f],h)=>{const b=`li-checkbox${u}`;return t.jsx(Qt,{checkboxesName:u,defaultCollapsed:h===0,onChange:i,options:f,title:u},b)})})]}):t.jsxs($,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(xe,{name:"search",onChange:g,onClear:p,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:p,style:{paddingTop:"0.625rem"},children:o.map(u=>{const f=`li-checkbox-${u.name}`;return t.jsx(Ra,{selected:u.visible,value:f,width:"content",children:t.jsx(ne,{checked:u.visible,disabled:u.locked,label:u.name,name:u.name,onChange:i,value:u.name})},f)})})]})},Wa=({_containerId:e="portals",title:n,modalRef:i,variant:a})=>{const r=s.Je(),o=x.useRef(null),[l,c]=x.useState(void 0),d=x.useCallback(u=>{const{checked:f,value:h}=u.target,b=i.columns.map(y=>{var m;return y.name===h?((m=y.toggleVisibility)==null||m.call(y,f),{...y,visible:f}):y});i.setColumns(b)},[i]),g=x.useCallback(u=>{const f=i.columns.map(h=>{var b;return h.id===u?((b=h.toggleVisibility)==null||b.call(h,!1),{...h,visible:!1}):h});i.setColumns(f)},[i]),p=x.useCallback(()=>{var f;const u=(f=o.current)==null?void 0:f.scrollHeight;l!==u&&c(u)},[l]);return i.isOpen?re.createPortal(t.jsx(Ut,{"aria-label":i.name,"aria-modal":"true",children:t.jsxs(et,{$size:"md",flexDirection:"column",children:[t.jsxs($,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(U,{size:"sm",children:n}),t.jsx(O,{icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:i.close,px:.25,py:.25,variant:"ghost"})]}),t.jsx(ae,{mb:0,mt:0}),t.jsxs($,{display:"flex",gap:1.25,onScroll:p,px:1.25,ref:o,scroll:"y",width:"100%",children:[t.jsx(tn,{columns:i.columns,formId:"columns-visibility",onChangeHandler:d,variant:a}),t.jsx($,{borderLeft:`2px solid ${r.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(Zt,{description:"Click and drag to reorder the columns",items:i.columns,onClickClose:g,onReorder:i.setColumns,title:"Reorder columns"})]}),t.jsx(ae,{mb:0,mt:0}),t.jsxs($,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(P,{disabled:!i.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:i.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to default"}),t.jsx(P,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},Ba=s.st(Se)`
1950
1950
  padding: 8px;
1951
1951
  min-height: 36px;
1952
1952
  min-width: unset;
@@ -1963,7 +1963,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
1963
1963
  svg.fa-check {
1964
1964
  border-radius: 2px;
1965
1965
  }
1966
- `,nn=({control:e,option:n,register:i,setValue:a})=>{var r,o,l,c,d;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(r=n.options)==null?void 0:r.map(g=>t.jsx(ht,{value:g.value,width:"content",children:t.jsx(ne,{...i("checkbox"),label:g.label,value:g.value})},`li-checkbox-${g.value}`))});case"radioButton":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[n.label,(o=n.options)==null?void 0:o.map(g=>t.jsx(ht,{value:g.value,width:"content",children:t.jsx(Qe,{...i("radio"),label:g.label,value:g.value})},`li-radio-${g.value}`))]});case"select":return t.jsx(Xe,{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(Ae,{label:n.label,name:p,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Wt,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:a},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:a},variant:"filters"});case"dateRange":return t.jsx(Rt,{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:a,variant:"filters"});default:return t.jsx("div",{})}},an=({control:e,items:n,register:i,setValue:a})=>t.jsx(t.Fragment,{children:n.map((r,o)=>{const l=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(nn,{control:e,option:r,register:i,setValue:a}),o<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),rn=e=>{var c,d,p,g,u;const[n,i]=x.useState([...e]),{control:a,register:r,handleSubmit:o,setValue:l}=s.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter(b=>b.checked).map(b=>b.value))??[]}),radio:((p=(d=(c=e.find(f=>f.type==="radioButton"))==null?void 0:c.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:p.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(g=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:g.minValue,maxValue:(u=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:u.maxValue}});return{control:a,items:n,setItems:i,register:r,handleSubmit:o,setValue:l}},Ha=(e,n)=>{var i,a,r,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",((r=(a=(i=e.find(c=>c.type==="radioButton"))==null?void 0:i.options)==null?void 0:a.find(({checked:c})=>c))==null?void 0:r.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)},Ma=(e,n)=>(e==null?void 0:e.filter(i=>{var a;return((a=i.label)==null?void 0:a.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??i.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],_a=async(e,n)=>await Promise.all(e.map(async i=>i.type==="checkboxes"?{...i,options:i.filterOptions?await i.filterOptions(i.options??[],n):Ma(i.options??[],n)}:i)),Je=({options:e,onSearch:n,onSubmit:i,id:a,selectedFilter:r})=>{const{control:o,items:l,setItems:c,register:d,handleSubmit:p,setValue:g}=rn(e),u=e.some(b=>b.type==="checkboxes"&&b.hideSearch!==!0),f=x.useCallback(async b=>{const{value:y}=b.target;n&&n(y);const m=await _a(e,y);c(m)},[e,n,c]),h=x.useCallback(b=>{i&&i(b)},[i]);return x.useEffect(()=>{c(e),Ha(e,g)},[e,c,g]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:a,children:[u&&t.jsxs("div",{children:[r,t.jsx(xe,{onChange:f})]}),t.jsxs("form",{id:a,onSubmit:p(h),children:[t.jsx(an,{control:o,items:l,register:d,setValue:g}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})},on=({options:e,variant:n,onApplyFilters:i,onSearch:a,setDirection:r,setHandler:o})=>{const l=s.Je(),[c,d]=x.useState(e),[p,g]=x.useState([]),[u,f]=x.useState({}),[h,b]=x.useState(""),y=x.useCallback(w=>()=>{const j=c.find(S=>S.label===w),k=!(j!=null&&j.filterOptions.some(S=>S.type==="dateRange"||S.type==="select"));o==null||o(k??!0),b(w),g((j==null?void 0:j.filterOptions)??[])},[c,o]),m=x.useCallback(w=>{const j=[...w.checkbox,...Object.values(w.text??{}),...w.radio?[w.radio]:[],...w.minValue?[String(w.minValue)]:[],...w.maxValue?[String(w.maxValue)]:[]];f(C=>j.length>0?{...C,[h]:j}:C);const k=C=>{var N,E;return{...C,options:(N=C.options)==null?void 0:N.map(L=>({...L,checked:w.checkbox.includes(L.value)||w.radio===L.value})),value:["text","select"].includes(C.type)?((E=w.text)==null?void 0:E[`${String(C.key)}-${C.filterFn??"caseInsensitive"}`])??C.value:C.value,minValue:["numberRange","dateRange"].includes(C.type)?w.minValue:C.minValue,maxValue:["numberRange","dateRange"].includes(C.type)?w.maxValue:C.maxValue}},S=C=>C.label===h?{...C,filterOptions:C.filterOptions.map(k)}:C,R=c.map(S);d(C=>C.map(S));const z=R.flatMap(({filterOptions:C})=>C);i(z),g([])},[c,i,h]),v=x.useCallback((w,j)=>{const k=`li-filter-option-${w}`;return t.jsxs(Ba,{icon:j,onClick:y(w),style:{minWidth:"180px"},value:k,width:"100%",children:[w,u[w]===void 0?void 0:t.jsx(V,{tagLabel:u[w].length.toString()})]},k)},[u,y]);return x.useEffect(()=>{const w=e.reduce((j,{label:k,filterOptions:S})=>{const R=S.flatMap(({value:N,minValue:E,maxValue:L})=>[E,L,N]).filter(Boolean),z=S.flatMap(({options:N})=>N??[]).filter(({checked:N=!1})=>N).map(({value:N})=>N),C=[...R,...z];return C.length===0?j:{...j,[k]:C}},{});f(w),p.length>0&&r&&r("column")},[p,e,r]),n==="grouped"?t.jsx($,{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(Je,{id:"filters-options",onSearch:a,onSubmit:m,options:p,selectedFilter:h}):Object.entries(en(e)).map(([w,j])=>t.jsxs($,{children:[t.jsx(I,{color:l.palette.gray[400],mb:.25,size:"sm",children:w}),j.map(({label:k,icon:S="filter-list"})=>v(k,S))]},w))}):t.jsx($,{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(Je,{id:"filters-options",onSearch:a,onSubmit:m,options:p,selectedFilter:h}):e.map(({label:w,icon:j="filter-list"})=>v(w,j))})},sn=({options:e,onApplyFilters:n,onSearch:i,modalRef:a,variant:r})=>{const[o,l]=x.useState("row"),[c,d]=x.useState(!0),p=s.Je(),g=x.useRef(null),u=t.jsx(O,{icon:"close",iconColor:p.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:a.close,px:.25,py:.25,variant:"ghost"});return x.useEffect(()=>{const f=h=>{const b=g.current;b&&!b.contains(h.target)&&a.close()};if(c)return document.addEventListener("mousedown",f,!0),()=>{document.removeEventListener("mousedown",f,!0)}},[g,c,a]),t.jsx(Oa,{$bgColor:"transparent","aria-label":a.name,children:t.jsxs(et,{$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(on,{onApplyFilters:n,onSearch:i,options:e,setDirection:l,setHandler:d,variant:r}),o==="row"?u:void 0]})})};function Ja(e){if(e)return e}function ln(e){if(!e||e.length===0)return;const n=e.filter(a=>a.checked).map(a=>a.label??a.value);return n.length===0?void 0:n.join(", ")}function Ua(e,n,i){const a=i??"",r=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(r)&&!s._.isUndefined(o))return`${r}${a} - ${o}${a}`;if(!s._.isUndefined(r))return`Min ${r}${a}`;if(!s._.isUndefined(o))return`Max ${o}${a}`}function Ga(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 Va(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const ce=({filter:e,icon:n="filter-list",label:i,onClose:a,filterValue:r})=>s._.isNil(r)||s._.isEmpty(String(r))?null:t.jsx(V,{filterValues:r,icon:n,id:"remove-filter",onClose:a(e),tagLabel:`${i} `}),Ya=({options:e,onClose:n})=>{const i=e.flatMap(a=>a.filterOptions.map(r=>{const{filterFn:o,label:l,type:c,value:d,options:p,minValue:g,maxValue:u}=r;switch(c){case"numberRange":{const f=Ua(g,u,a.placeholder);return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:n},l)}case"dateRange":{const f=Ga(g==null?void 0:g.toString(),u==null?void 0:u.toString());return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:n},l)}case"radioButton":case"checkboxes":{const f=ln(p);return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:n},l)}case void 0:case"select":case"text":default:{const f=Ja(d),h=Va(c,a.label,o);return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:h,onClose:n},l)}}})).filter(a=>{if(a===null)return!1;const{filterValue:r}=a.props;return!s._.isNil(r)&&!s._.isEmpty(String(r))});return i.length>0?t.jsx($,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},qa=(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 a(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 r(l,c,d){const p=d(String(l[c.key])),{minValue:g,maxValue:u}=c,f=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(f)&&s._.isUndefined(h)?!0:(f??-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 a(l,c);case"numberRange":return r(l,c,Number);case"dateRange":return r(l,c,d=>new Date(d));case"select":case"text":default:return i(l,c)}})}return e.filter(o)},bt=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,Ka=e=>{var i;const n=((i=e.options)==null?void 0:i.map(a=>({...a,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},Xa=({dataset:e,localStorageKey:n,options:i,setFilteredDataset:a,onFiltersChange:r,onReset:o,onSearch:l,variant:c="ungrouped"})=>{const d=Ce("filters-modal"),[p,g]=x.useState([]),[u,f]=x.useState(bt(p)),h=i.map(w=>({...w,filterOptions:w.filterOptions.map(j=>p.find(S=>S.key===j.key&&S.type===j.type&&S.filterFn===j.filterFn)??{...j})})),b=x.useCallback(w=>{g([...w]),localStorage.setItem(n,JSON.stringify(w))},[g,n]),y=x.useCallback(()=>{o&&o(),d.toggle()},[d,o]),m=x.useCallback(w=>()=>{o&&o();const j=p.map(k=>k.key===w.key&&k.type===w.type&&k.filterFn===w.filterFn?Ka(k):k);g(j),localStorage.setItem(n,JSON.stringify(j))},[p,n,o]);return x.useEffect(()=>{const w=localStorage.getItem(n),j=i.flatMap(S=>S.filterOptions),k=w?JSON.parse(w):j;j.flatMap(S=>S.value).filter(Boolean).length>0||j.flatMap(S=>S.options).filter(S=>(S==null?void 0:S.checked)===void 0).length>0?(g(j),localStorage.setItem(n,JSON.stringify(j))):g(k)},[n,i,g]),x.useEffect(()=>{a&&e!==void 0&&a(qa(e,p)),f(bt(p)),r==null||r(p)},[e,p,a,f,r]),{Filters:()=>t.jsxs($,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx($,{pr:.25,children:t.jsx(P,{icon:"filter",id:"filterBtn",onClick:y,tag:u.toString(),variant:"ghost"})}),d.isOpen&&t.jsx(sn,{modalRef:d,onApplyFilters:b,onSearch:l,options:h,variant:c})]}),options:h,removeFilter:m}},nt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:a=void 0,confirmButton:r=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:f,id:h="modal-container"})=>{const b=s.Je(),y=t.jsx(Ut,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(et,{$size:f,"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($,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(tt,{items:g})}),(s._.isObject(o)||a)&&t.jsxs(va,{children:[a,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(za,{$framed:o.imageFramed,children:t.jsx(Z,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(I,{size:"sm",children:o.imageText})]}),t.jsx(Gt,{alert:n,cancelButton:i,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?re.createPortal(y,document.getElementById("portals")??document.body):c.isOpen?y:null},Za=(e,n,i)=>{const a=Ce("confirm-dialog-modal"),r=x.useRef(null),o=x.useCallback(async()=>(a.open(),new Promise(p=>{r.current=p})),[a]),l=x.useCallback(()=>{var p;a.close(),(p=r.current)==null||p.call(r,!0)},[a]),c=x.useCallback(()=>{var p;a.close(),(p=r.current)==null||p.call(r,!1)},[a]);return[o,({children:p})=>{const[g,u]=x.useState(i),f=x.useCallback(()=>{u({...i})},[]),h=x.useCallback(m=>()=>{u(v=>({...v,[m]:{...v[m],state:!v[m].state}}))},[]),b=!Object.values(g).every(({state:m})=>m),y=Object.entries(g).map(([m,{state:v,label:w}])=>t.jsx(ne,{defaultChecked:v,label:w,name:m,onChange:h(m)},m));return t.jsxs(nt,{"data-testid":e,id:e,modalRef:{...a,close:c},onClose:f,size:"sm",title:n,children:[p,t.jsx($,{display:"flex",flexDirection:"column",gap:.25,children:y}),t.jsx(Yt,{disabled:b,id:e,onConfirm:l})]})}]},Qa=()=>{const[e,n]=x.useState(!1),[i,a]=x.useState(),r=x.useRef(null),o=Ce("confirm-dialog-modal"),l=x.useCallback(async g=>(a(g),n(!0),new Promise(u=>{r.current=u})),[]),c=x.useCallback(()=>{var g;n(!1),a(void 0),(g=r.current)==null||g.call(r,!0)},[]),d=x.useCallback(()=>{var g;n(!1),a(void 0),(g=r.current)==null||g.call(r,!1)},[]);return x.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:u})=>t.jsxs(nt,{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}},er=s.st.ul`
1966
+ `,nn=({control:e,option:n,register:i,setValue:a})=>{var r,o,l,c,d;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(r=n.options)==null?void 0:r.map(p=>t.jsx(ht,{value:p.value,width:"content",children:t.jsx(ne,{...i("checkbox"),label:p.label,value:p.value})},`li-checkbox-${p.value}`))});case"radioButton":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[n.label,(o=n.options)==null?void 0:o.map(p=>t.jsx(ht,{value:p.value,width:"content",children:t.jsx(Qe,{...i("radio"),label:p.label,value:p.value})},`li-radio-${p.value}`))]});case"select":return t.jsx(Xe,{control:e,items:((l=n.options)==null?void 0:l.map(p=>({name:p.label??"",value:p.value})))??[],label:n.label,name:`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`,placeholder:n.placeholder,value:n.value});case"text":const g=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Ae,{label:n.label,name:g,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Wt,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:a},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:a},variant:"filters"});case"dateRange":return t.jsx(Rt,{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:a,variant:"filters"});default:return t.jsx("div",{})}},an=({control:e,items:n,register:i,setValue:a})=>t.jsx(t.Fragment,{children:n.map((r,o)=>{const l=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(nn,{control:e,option:r,register:i,setValue:a}),o<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),rn=e=>{var c,d,g,p,u;const[n,i]=x.useState([...e]),{control:a,register:r,handleSubmit:o,setValue:l}=s.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter(b=>b.checked).map(b=>b.value))??[]}),radio:((g=(d=(c=e.find(f=>f.type==="radioButton"))==null?void 0:c.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:g.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(p=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:p.minValue,maxValue:(u=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:u.maxValue}});return{control:a,items:n,setItems:i,register:r,handleSubmit:o,setValue:l}},Ha=(e,n)=>{var i,a,r,o,l;n("checkbox",e.filter(c=>c.type==="checkboxes").flatMap(c=>{var d;return((d=c.options)==null?void 0:d.filter(g=>g.checked).map(g=>g.value))??[]})),n("radio",((r=(a=(i=e.find(c=>c.type==="radioButton"))==null?void 0:i.options)==null?void 0:a.find(({checked:c})=>c))==null?void 0:r.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)},Ma=(e,n)=>(e==null?void 0:e.filter(i=>{var a;return((a=i.label)==null?void 0:a.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??i.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],_a=async(e,n)=>await Promise.all(e.map(async i=>i.type==="checkboxes"?{...i,options:i.filterOptions?await i.filterOptions(i.options??[],n):Ma(i.options??[],n)}:i)),Je=({options:e,onSearch:n,onSubmit:i,id:a,selectedFilter:r})=>{const{control:o,items:l,setItems:c,register:d,handleSubmit:g,setValue:p}=rn(e),u=e.some(b=>b.type==="checkboxes"&&b.hideSearch!==!0),f=x.useCallback(async b=>{const{value:y}=b.target;n&&n(y);const m=await _a(e,y);c(m)},[e,n,c]),h=x.useCallback(b=>{i&&i(b)},[i]);return x.useEffect(()=>{c(e),Ha(e,p)},[e,c,p]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:a,children:[u&&t.jsxs("div",{children:[r,t.jsx(xe,{onChange:f})]}),t.jsxs("form",{id:a,onSubmit:g(h),children:[t.jsx(an,{control:o,items:l,register:d,setValue:p}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})},on=({options:e,variant:n,onApplyFilters:i,onSearch:a,setDirection:r,setHandler:o})=>{const l=s.Je(),[c,d]=x.useState(e),[g,p]=x.useState([]),[u,f]=x.useState({}),[h,b]=x.useState(""),y=x.useCallback(w=>()=>{const v=c.find(C=>C.label===w),k=!(v!=null&&v.filterOptions.some(C=>C.type==="dateRange"||C.type==="select"));o==null||o(k??!0),b(w),p((v==null?void 0:v.filterOptions)??[])},[c,o]),m=x.useCallback(w=>{const v=[...w.checkbox,...Object.values(w.text??{}),...w.radio?[w.radio]:[],...w.minValue?[String(w.minValue)]:[],...w.maxValue?[String(w.maxValue)]:[]];f(S=>v.length>0?{...S,[h]:v}:S);const k=S=>{var N,R;return{...S,options:(N=S.options)==null?void 0:N.map(L=>({...L,checked:w.checkbox.includes(L.value)||w.radio===L.value})),value:["text","select"].includes(S.type)?((R=w.text)==null?void 0:R[`${String(S.key)}-${S.filterFn??"caseInsensitive"}`])??S.value:S.value,minValue:["numberRange","dateRange"].includes(S.type)?w.minValue:S.minValue,maxValue:["numberRange","dateRange"].includes(S.type)?w.maxValue:S.maxValue}},C=S=>S.label===h?{...S,filterOptions:S.filterOptions.map(k)}:S,E=c.map(C);d(S=>S.map(C));const z=E.flatMap(({filterOptions:S})=>S);i(z),p([])},[c,i,h]),j=x.useCallback((w,v)=>{const k=`li-filter-option-${w}`;return t.jsxs(Ba,{icon:v,onClick:y(w),style:{minWidth:"180px"},value:k,width:"100%",children:[w,u[w]===void 0?void 0:t.jsx(V,{tagLabel:u[w].length.toString()})]},k)},[u,y]);return x.useEffect(()=>{const w=e.reduce((v,{label:k,filterOptions:C})=>{const E=C.flatMap(({value:N,minValue:R,maxValue:L})=>[R,L,N]).filter(Boolean),z=C.flatMap(({options:N})=>N??[]).filter(({checked:N=!1})=>N).map(({value:N})=>N),S=[...E,...z];return S.length===0?v:{...v,[k]:S}},{});f(w),g.length>0&&r&&r("column")},[g,e,r]),n==="grouped"?t.jsx($,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:g.length>0?"unset":"360px",style:{columnGap:"10px"},width:"100%",wrap:"wrap",children:g.length>0?t.jsx(Je,{id:"filters-options",onSearch:a,onSubmit:m,options:g,selectedFilter:h}):Object.entries(en(e)).map(([w,v])=>t.jsxs($,{children:[t.jsx(I,{color:l.palette.gray[400],mb:.25,size:"sm",children:w}),v.map(({label:k,icon:C="filter-list"})=>j(k,C))]},w))}):t.jsx($,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:g.length>0?"unset":"200px",style:{columnGap:"10px"},width:"100%",wrap:"wrap",children:g.length>0?t.jsx(Je,{id:"filters-options",onSearch:a,onSubmit:m,options:g,selectedFilter:h}):e.map(({label:w,icon:v="filter-list"})=>j(w,v))})},sn=({options:e,onApplyFilters:n,onSearch:i,modalRef:a,variant:r})=>{const[o,l]=x.useState("row"),[c,d]=x.useState(!0),g=s.Je(),p=x.useRef(null),u=t.jsx(O,{icon:"close",iconColor:g.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:a.close,px:.25,py:.25,variant:"ghost"});return x.useEffect(()=>{const f=h=>{const b=p.current;b&&!b.contains(h.target)&&a.close()};if(c)return document.addEventListener("mousedown",f,!0),()=>{document.removeEventListener("mousedown",f,!0)}},[p,c,a]),t.jsx(Oa,{$bgColor:"transparent","aria-label":a.name,children:t.jsxs(et,{$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:p,style:{overflow:"hidden",width:"max-content"},children:[o==="column"?u:void 0,t.jsx(on,{onApplyFilters:n,onSearch:i,options:e,setDirection:l,setHandler:d,variant:r}),o==="row"?u:void 0]})})};function Ja(e){if(e)return e}function ln(e){if(!e||e.length===0)return;const n=e.filter(a=>a.checked).map(a=>a.label??a.value);return n.length===0?void 0:n.join(", ")}function Ua(e,n,i){const a=i??"",r=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(r)&&!s._.isUndefined(o))return`${r}${a} - ${o}${a}`;if(!s._.isUndefined(r))return`Min ${r}${a}`;if(!s._.isUndefined(o))return`Max ${o}${a}`}function Ga(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 Va(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const ce=({filter:e,icon:n="filter-list",label:i,onClose:a,filterValue:r})=>s._.isNil(r)||s._.isEmpty(String(r))?null:t.jsx(V,{filterValues:r,icon:n,id:"remove-filter",onClose:a(e),tagLabel:`${i} `}),Ya=({options:e,onClose:n})=>{const i=e.flatMap(a=>a.filterOptions.map(r=>{const{filterFn:o,label:l,type:c,value:d,options:g,minValue:p,maxValue:u}=r;switch(c){case"numberRange":{const f=Ua(p,u,a.placeholder);return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:n},l)}case"dateRange":{const f=Ga(p==null?void 0:p.toString(),u==null?void 0:u.toString());return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:n},l)}case"radioButton":case"checkboxes":{const f=ln(g);return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:n},l)}case void 0:case"select":case"text":default:{const f=Ja(d),h=Va(c,a.label,o);return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:h,onClose:n},l)}}})).filter(a=>{if(a===null)return!1;const{filterValue:r}=a.props;return!s._.isNil(r)&&!s._.isEmpty(String(r))});return i.length>0?t.jsx($,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},qa=(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 a(l,c){if(!c.options||c.options.length===0)return!0;const d=c.options.filter(g=>g.checked).map(g=>g.value);return d.length===0?!0:d.includes(String(l[c.key]))}function r(l,c,d){const g=d(String(l[c.key])),{minValue:p,maxValue:u}=c,f=s._.isEmpty(p)&&typeof p!="number"?void 0:d(String(p)),h=s._.isEmpty(u)&&typeof u!="number"?void 0:d(String(u));return s._.isUndefined(f)&&s._.isUndefined(h)?!0:(f??-1/0)<=g&&g<=(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 a(l,c);case"numberRange":return r(l,c,Number);case"dateRange":return r(l,c,d=>new Date(d));case"select":case"text":default:return i(l,c)}})}return e.filter(o)},bt=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,Ka=e=>{var i;const n=((i=e.options)==null?void 0:i.map(a=>({...a,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},Xa=({dataset:e,localStorageKey:n,options:i,setFilteredDataset:a,onFiltersChange:r,onReset:o,onSearch:l,variant:c="ungrouped"})=>{const d=Ce("filters-modal"),[g,p]=x.useState([]),[u,f]=x.useState(bt(g)),h=i.map(w=>({...w,filterOptions:w.filterOptions.map(v=>g.find(C=>C.key===v.key&&C.type===v.type&&C.filterFn===v.filterFn)??{...v})})),b=x.useCallback(w=>{p([...w]),localStorage.setItem(n,JSON.stringify(w))},[p,n]),y=x.useCallback(()=>{o&&o(),d.toggle()},[d,o]),m=x.useCallback(w=>()=>{o&&o();const v=g.map(k=>k.key===w.key&&k.type===w.type&&k.filterFn===w.filterFn?Ka(k):k);p(v),localStorage.setItem(n,JSON.stringify(v))},[g,n,o]);return x.useEffect(()=>{const w=localStorage.getItem(n),v=i.flatMap(C=>C.filterOptions),k=w?JSON.parse(w):v;v.flatMap(C=>C.value).filter(Boolean).length>0||v.flatMap(C=>C.options).filter(C=>(C==null?void 0:C.checked)===void 0).length>0?(p(v),localStorage.setItem(n,JSON.stringify(v))):p(k)},[n,i,p]),x.useEffect(()=>{a&&e!==void 0&&a(qa(e,g)),r==null||r(g),f(bt(g))},[e,g,a,f,r]),{Filters:()=>t.jsxs($,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx($,{pr:.25,children:t.jsx(P,{icon:"filter",id:"filterBtn",onClick:y,tag:u.toString(),variant:"ghost"})}),d.isOpen&&t.jsx(sn,{modalRef:d,onApplyFilters:b,onSearch:l,options:h,variant:c})]}),options:h,removeFilter:m}},nt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:a=void 0,confirmButton:r=void 0,content:o=void 0,description:l=void 0,modalRef:c,otherActions:d=void 0,onClose:g=void 0,tabItems:p=void 0,title:u=void 0,size:f,id:h="modal-container"})=>{const b=s.Je(),y=t.jsx(Ut,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(et,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(u)&&!s._.isNil(u)&&t.jsx(Vt,{description:l,modalRef:c,onClose:g,otherActions:d,title:u}),p&&t.jsx($,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(tt,{items:p})}),(s._.isObject(o)||a)&&t.jsxs(va,{children:[a,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(za,{$framed:o.imageFramed,children:t.jsx(Z,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(I,{size:"sm",children:o.imageText})]}),t.jsx(Gt,{alert:n,cancelButton:i,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?re.createPortal(y,document.getElementById("portals")??document.body):c.isOpen?y:null},Za=(e,n,i)=>{const a=Ce("confirm-dialog-modal"),r=x.useRef(null),o=x.useCallback(async()=>(a.open(),new Promise(g=>{r.current=g})),[a]),l=x.useCallback(()=>{var g;a.close(),(g=r.current)==null||g.call(r,!0)},[a]),c=x.useCallback(()=>{var g;a.close(),(g=r.current)==null||g.call(r,!1)},[a]);return[o,({children:g})=>{const[p,u]=x.useState(i),f=x.useCallback(()=>{u({...i})},[]),h=x.useCallback(m=>()=>{u(j=>({...j,[m]:{...j[m],state:!j[m].state}}))},[]),b=!Object.values(p).every(({state:m})=>m),y=Object.entries(p).map(([m,{state:j,label:w}])=>t.jsx(ne,{defaultChecked:j,label:w,name:m,onChange:h(m)},m));return t.jsxs(nt,{"data-testid":e,id:e,modalRef:{...a,close:c},onClose:f,size:"sm",title:n,children:[g,t.jsx($,{display:"flex",flexDirection:"column",gap:.5,children:y}),t.jsx(Yt,{disabled:b,id:e,onConfirm:l})]})}]},Qa=()=>{const[e,n]=x.useState(!1),[i,a]=x.useState(),r=x.useRef(null),o=Ce("confirm-dialog-modal"),l=x.useCallback(async p=>(a(p),n(!0),new Promise(u=>{r.current=u})),[]),c=x.useCallback(()=>{var p;n(!1),a(void 0),(p=r.current)==null||p.call(r,!0)},[]),d=x.useCallback(()=>{var p;n(!1),a(void 0),(p=r.current)==null||p.call(r,!1)},[]);return x.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:p="confirm-dialog-modal",children:u})=>t.jsxs(nt,{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:p,modalRef:{...o,close:d},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,u]}),confirm:l}},er=s.st.ul`
1967
1967
  ${({theme:e})=>`
1968
1968
  align-items: flex-start;
1969
1969
  border-radius: ${e.spacing[.25]};
@@ -2002,7 +2002,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2002
2002
  cursor: not-allowed;
2003
2003
  }
2004
2004
  `}
2005
- `,nr=({icon:e,iconColor:n,id:i,showChevron:a,options:r,title:o})=>{const l=s.Je(),[c,d]=x.useState(!1),p=c?"chevron-up":"chevron-down",{refs:g,floatingStyles:u}=s.useFloating({middleware:[s.offset({mainAxis:4})],placement:"bottom-start"}),f=x.useCallback(()=>{d(h=>!h)},[]);return ie(g.floating.current,()=>{d(!1)},!0,document.getElementById("dropdown-toggle")),t.jsxs(x.Fragment,{children:[t.jsx(P,{"aria-label":o,icon:e,iconColor:n,iconType:"fa-solid",id:`dropdown-toggle-${i}`,onClick:f,ref:g.setReference,rightIcon:a?p:void 0,variant:"ghost",children:o}),c?t.jsx(er,{ref:g.setFloating,style:u,children:r.map(h=>{const b=({})=>{h.onClick(),d(!1)};return t.jsxs(tr,{"aria-disabled":h.disabled,"aria-label":h.label,onClick:h.disabled?void 0:b,children:[t.jsx(F,{icon:h.icon,iconColor:h.iconColor??l.palette.gray[300],iconSize:"xxs",iconType:"fa-light"}),h.label]},h.label)})}):void 0]})},Ue=({buttonProps:e,variant:n})=>t.jsx(P,{onClick:e.onClick,variant:n,children:e.text}),ir=s.st.div`
2005
+ `,nr=({icon:e,iconColor:n,id:i,showChevron:a,options:r,title:o})=>{const l=s.Je(),[c,d]=x.useState(!1),g=c?"chevron-up":"chevron-down",{refs:p,floatingStyles:u}=s.useFloating({middleware:[s.offset({mainAxis:4})],placement:"bottom-start"}),f=x.useCallback(()=>{d(h=>!h)},[]);return ie(p.floating.current,()=>{d(!1)},!0,document.getElementById("dropdown-toggle")),t.jsxs(x.Fragment,{children:[t.jsx(P,{"aria-label":o,icon:e,iconColor:n,iconType:"fa-solid",id:`dropdown-toggle-${i}`,onClick:f,ref:p.setReference,rightIcon:a?g:void 0,variant:"ghost",children:o}),c?t.jsx(er,{ref:p.setFloating,style:u,children:r.map(h=>{const b=({})=>{h.onClick(),d(!1)};return t.jsxs(tr,{"aria-disabled":h.disabled,"aria-label":h.label,onClick:h.disabled?void 0:b,children:[t.jsx(F,{icon:h.icon,iconColor:h.iconColor??l.palette.gray[300],iconSize:"xxs",iconType:"fa-light"}),h.label]},h.label)})}):void 0]})},Ue=({buttonProps:e,variant:n})=>t.jsx(P,{onClick:e.onClick,variant:n,children:e.text}),ir=s.st.div`
2006
2006
  display: flex;
2007
2007
  flex-direction: column;
2008
2008
  align-items: center;
@@ -2046,7 +2046,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2046
2046
  overflow: hidden auto;
2047
2047
  width: 100%;
2048
2048
  `}
2049
- `,cr=({alert:e,buttonAlignment:n,cancelButton:i,children:a,confirmButton:r,defaultDisabled:o=!0,id:l="modal-confirm",maxButtonWidth:c="392px",mode:d,onSubmit:p,padding:g=!0,showButtons:u=!0,yupSchema:f,...h})=>{const b=s.Je(),y=s.useForm({...h,mode:d??"all",resolver:f?s.o(f):void 0}),v=u?`calc(100% - ${e?"139px":"83px"})`:"100%",w=g?1.5:0;return t.jsx(s.FormProvider,{...y,children:t.jsx(lr,{onSubmit:y.handleSubmit(p),children:t.jsxs($,{scroll:"y",width:"100%",children:[t.jsx($,{borderRadius:`0 0 ${b.spacing[.25]} ${b.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:v,pb:w,pt:0,px:w,scroll:"y",children:a}),u&&t.jsxs($,{borderRadius:`0 0 ${b.spacing[.25]} ${b.spacing[.25]}`,borderTop:`1px solid ${b.palette.gray[200]}`,display:"flex",flexDirection:n?"unset":"column",gap:.625,justify:n??"stretch",position:"sticky",px:1.25,py:1.25,children:[e,t.jsxs($,{display:"flex",gap:.75,maxWidth:c,children:[i?t.jsx(P,{icon:i.icon,id:`${l}-cancel`,justify:"center",onClick:i.onClick,type:"reset",variant:"tertiary",width:"100%",children:i.label??"Cancel"}):void 0,t.jsx(P,{disabled:((r==null?void 0:r.disabled)??!1)||y.formState.isSubmitting||o&&!y.formState.isDirty,icon:r==null?void 0:r.icon,id:l,justify:"center",type:"submit",width:"100%",children:(r==null?void 0:r.label)??"Confirm"})]})]})]})})})},dr=s.st(ve)`
2049
+ `,cr=({alert:e,buttonAlignment:n,cancelButton:i,children:a,confirmButton:r,defaultDisabled:o=!0,id:l="modal-confirm",maxButtonWidth:c="392px",mode:d,onSubmit:g,padding:p=!0,showButtons:u=!0,yupSchema:f,...h})=>{const b=s.Je(),y=s.useForm({...h,mode:d??"all",resolver:f?s.o(f):void 0}),j=u?`calc(100% - ${e?"139px":"83px"})`:"100%",w=p?1.5:0;return t.jsx(s.FormProvider,{...y,children:t.jsx(lr,{onSubmit:y.handleSubmit(g),children:t.jsxs($,{scroll:"y",width:"100%",children:[t.jsx($,{borderRadius:`0 0 ${b.spacing[.25]} ${b.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:j,pb:w,pt:0,px:w,scroll:"y",children:a}),u&&t.jsxs($,{borderRadius:`0 0 ${b.spacing[.25]} ${b.spacing[.25]}`,borderTop:`1px solid ${b.palette.gray[200]}`,display:"flex",flexDirection:n?"unset":"column",gap:.625,justify:n??"stretch",position:"sticky",px:1.25,py:1.25,children:[e,t.jsxs($,{display:"flex",gap:.75,maxWidth:c,children:[i?t.jsx(P,{icon:i.icon,id:`${l}-cancel`,justify:"center",onClick:i.onClick,type:"reset",variant:"tertiary",width:"100%",children:i.label??"Cancel"}):void 0,t.jsx(P,{disabled:((r==null?void 0:r.disabled)??!1)||y.formState.isSubmitting||o&&!y.formState.isDirty,icon:r==null?void 0:r.icon,id:l,justify:"center",type:"submit",width:"100%",children:(r==null?void 0:r.label)??"Confirm"})]})]})]})})})},dr=s.st(ve)`
2050
2050
  display: grid;
2051
2051
  gap: ${({$gap:e=1.25})=>`${e}rem`};
2052
2052
  grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
@@ -2100,7 +2100,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2100
2100
  background-color: ${e.palette.gray[100]};
2101
2101
  }
2102
2102
  `}
2103
- `,cn=({isSelected:e=!1,label:n,onSelect:i})=>{const a=s.Je(),r=x.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(it,{$isSelected:e,onClick:r,children:[e?t.jsx(F,{icon:"check",iconColor:a.palette.gray[800],iconSize:"xs"}):null,t.jsx(I,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},ur=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:a,onClose:r,selectedItem:o,title:l,variant:c})=>{const d=s.Je(),[p,g]=x.useState(n),[u,f]=x.useState(""),h=x.useCallback(m=>{g(v=>v.filter(w=>String(w.name).toLowerCase().includes(m.toLocaleLowerCase())))},[g]),b=x.useCallback(m=>{m.currentTarget&&(f(m.currentTarget.value),h(m.currentTarget.value))},[f,h]);x.useEffect(()=>{g(n),h(u)},[n,h,u]);const y=t.jsx($,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx($,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(gr,{$itemsLength:p.length,children:[t.jsxs($,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(I,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(O,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx($,{mt:1,children:t.jsx(xe,{onInput:b,placeholder:"Search"})}),t.jsx(ae,{mb:1,mt:1}),t.jsxs($,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(it,{onClick:i,children:t.jsxs($,{alignItems:"center",display:"flex",children:[t.jsx(F,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(I,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,p.map(m=>t.jsx(cn,{isSelected:o.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:a},m.name))]})]})})});return e?re.createPortal(y,document.body):t.jsx("div",{})},xr=({description:e,height:n="auto",leftIconName:i,children:a,rightIconName:r,title:o,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:p="centered",width:g="318px"})=>{const u=s.Je(),f=p==="centered",h=l&&t.jsx(G,{icon:r??i,iconColor:u.palette.gray[800],id:l,place:d,tip:c});return t.jsxs($,{alignItems:f?"center":"flex-start",bgColor:u.palette.gray[50],border:`1px solid ${u.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:f?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:g,children:[t.jsxs($,{alignItems:"center",display:"flex",gap:.5,children:[f||s.lodashExports.isUndefined(i)?void 0:h,t.jsx(I,{color:f?u.palette.gray[800]:u.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||s.lodashExports.isUndefined(r)?void 0:h]}),t.jsxs($,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!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}),a]}),f&&!s.lodashExports.isUndefined(r)?h:void 0]})]})},fr=({actions:e,children:n,header:i,title:a,tabs:r,footer:o})=>{const l=s.Je();return t.jsxs($,{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($,{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($,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(I,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:a}),i]}),e&&t.jsx($,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},p)=>t.jsx(O,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${p}-${c}`))})]}),t.jsx($,{display:"flex",pt:.25,width:"100%",children:t.jsx(tt,{items:r})}),t.jsx($,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),o&&t.jsx($,{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(P,{icon:c,onClick:p,variant:g===0?"primary":"tertiary",width:"100%",children:d},`${g}-${d}`))})]})},hr=s.st.span`
2103
+ `,cn=({isSelected:e=!1,label:n,onSelect:i})=>{const a=s.Je(),r=x.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(it,{$isSelected:e,onClick:r,children:[e?t.jsx(F,{icon:"check",iconColor:a.palette.gray[800],iconSize:"xs"}):null,t.jsx(I,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},ur=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:a,onClose:r,selectedItem:o,title:l,variant:c})=>{const d=s.Je(),[g,p]=x.useState(n),[u,f]=x.useState(""),h=x.useCallback(m=>{p(j=>j.filter(w=>String(w.name).toLowerCase().includes(m.toLocaleLowerCase())))},[p]),b=x.useCallback(m=>{m.currentTarget&&(f(m.currentTarget.value),h(m.currentTarget.value))},[f,h]);x.useEffect(()=>{p(n),h(u)},[n,h,u]);const y=t.jsx($,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx($,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(gr,{$itemsLength:g.length,children:[t.jsxs($,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(I,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(O,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx($,{mt:1,children:t.jsx(xe,{onInput:b,placeholder:"Search"})}),t.jsx(ae,{mb:1,mt:1}),t.jsxs($,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(it,{onClick:i,children:t.jsxs($,{alignItems:"center",display:"flex",children:[t.jsx(F,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(I,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,g.map(m=>t.jsx(cn,{isSelected:o.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:a},m.name))]})]})})});return e?re.createPortal(y,document.body):t.jsx("div",{})},xr=({description:e,height:n="auto",leftIconName:i,children:a,rightIconName:r,title:o,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:g="centered",width:p="318px"})=>{const u=s.Je(),f=g==="centered",h=l&&t.jsx(G,{icon:r??i,iconColor:u.palette.gray[800],id:l,place:d,tip:c});return t.jsxs($,{alignItems:f?"center":"flex-start",bgColor:u.palette.gray[50],border:`1px solid ${u.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:f?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:p,children:[t.jsxs($,{alignItems:"center",display:"flex",gap:.5,children:[f||s.lodashExports.isUndefined(i)?void 0:h,t.jsx(I,{color:f?u.palette.gray[800]:u.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||s.lodashExports.isUndefined(r)?void 0:h]}),t.jsxs($,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!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}),a]}),f&&!s.lodashExports.isUndefined(r)?h:void 0]})]})},fr=({actions:e,children:n,header:i,title:a,tabs:r,footer:o})=>{const l=s.Je();return t.jsxs($,{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($,{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($,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(I,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:a}),i]}),e&&t.jsx($,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},g)=>t.jsx(O,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${g}-${c}`))})]}),t.jsx($,{display:"flex",pt:.25,width:"100%",children:t.jsx(tt,{items:r})}),t.jsx($,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),o&&t.jsx($,{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:g},p)=>t.jsx(P,{icon:c,onClick:g,variant:p===0?"primary":"tertiary",width:"100%",children:d},`${p}-${d}`))})]})},hr=s.st.span`
2104
2104
  ${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
2105
2105
  background-color: ${n};
2106
2106
  border-radius: 5px;
@@ -2166,7 +2166,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2166
2166
  height: ${e}px;
2167
2167
  width: ${e}px;
2168
2168
  `}
2169
- `,Tr=e=>{const{size:n}=e;return t.jsx(Ir,{$size:n,...e})},Fr=({children:e,commitSha:n,commitShortSha:i,parentElement:a,userInfo:r,setVisibility:o})=>{const l=s.Je(),{userName:c,email:d,phone:p,userRole:g}=r;return ie(a,()=>{o(!1)}),t.jsxs(Xt,{children:[t.jsx("li",{className:"user-info",children:t.jsxs($,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(I,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(I,{color:l.palette.gray[400],size:"sm",children:d}),s.lodashExports.isUndefined(p)?void 0:t.jsx(I,{color:l.palette.gray[400],size:"sm",children:p})]}),t.jsx($,{children:t.jsx(V,{tagLabel:g,variant:"role"})})]})}),t.jsx(ae,{}),e,t.jsx(ae,{}),t.jsx("li",{className:"commit-info",children:t.jsx(Q,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${n}`,iconPosition:"hidden",children:t.jsx(I,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},Nr=s.st.button`
2169
+ `,Tr=e=>{const{size:n}=e;return t.jsx(Ir,{$size:n,...e})},Fr=({children:e,commitSha:n,commitShortSha:i,parentElement:a,userInfo:r,setVisibility:o})=>{const l=s.Je(),{userName:c,email:d,phone:g,userRole:p}=r;return ie(a,()=>{o(!1)}),t.jsxs(Xt,{children:[t.jsx("li",{className:"user-info",children:t.jsxs($,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(I,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(I,{color:l.palette.gray[400],size:"sm",children:d}),s.lodashExports.isUndefined(g)?void 0:t.jsx(I,{color:l.palette.gray[400],size:"sm",children:g})]}),t.jsx($,{children:t.jsx(V,{tagLabel:p,variant:"role"})})]})}),t.jsx(ae,{}),e,t.jsx(ae,{}),t.jsx("li",{className:"commit-info",children:t.jsx(Q,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${n}`,iconPosition:"hidden",children:t.jsx(I,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},Nr=s.st.button`
2170
2170
  align-items: center;
2171
2171
  background-color: transparent;
2172
2172
  border: unset;
@@ -2183,7 +2183,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2183
2183
  &:hover span {
2184
2184
  color: ${T.palette.primary[200]};
2185
2185
  }
2186
- `,Dr=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:a="regular",show:r=!0,icon:o,onClose:l,buttonSide:c="end"})=>{const d=s.Je(),[p,g]=x.useState(r),u=x.useCallback(()=>{g(!1),l==null||l()},[l]);x.useEffect(()=>{g(r)},[r,g]);const f=t.jsxs(Nr,{onClick:n,children:[t.jsx(I,{color:d.palette.white,fontWeight:a,size:"sm",textDecoration:"underline",children:i}),t.jsx(F,{icon:o??"arrow-right",iconColor:d.palette.white,iconSize:"xs",iconType:a==="bold"?"fa-regular":"fa-light"})]});return t.jsxs($,{alignItems:"center",bgGradient:d.palette.gradients["01"],display:p?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs($,{display:"flex",gap:.5,justify:"center",width:"100%",children:[c==="start"&&n?f:void 0,t.jsx($,{children:typeof e=="string"?t.jsx(I,{color:d.palette.white,display:"inline",size:"sm",children:e}):e}),c==="end"&&n?f:void 0]}),t.jsx(F,{clickable:!0,hoverColor:d.palette.primary[200],icon:"close",iconColor:d.palette.white,iconSize:"xs",iconType:"fa-light",onClick:u})]})},Er=s.st.div`
2186
+ `,Dr=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:a="regular",show:r=!0,icon:o,onClose:l,buttonSide:c="end"})=>{const d=s.Je(),[g,p]=x.useState(r),u=x.useCallback(()=>{p(!1),l==null||l()},[l]);x.useEffect(()=>{p(r)},[r,p]);const f=t.jsxs(Nr,{onClick:n,children:[t.jsx(I,{color:d.palette.white,fontWeight:a,size:"sm",textDecoration:"underline",children:i}),t.jsx(F,{icon:o??"arrow-right",iconColor:d.palette.white,iconSize:"xs",iconType:a==="bold"?"fa-regular":"fa-light"})]});return t.jsxs($,{alignItems:"center",bgGradient:d.palette.gradients["01"],display:g?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs($,{display:"flex",gap:.5,justify:"center",width:"100%",children:[c==="start"&&n?f:void 0,t.jsx($,{children:typeof e=="string"?t.jsx(I,{color:d.palette.white,display:"inline",size:"sm",children:e}):e}),c==="end"&&n?f:void 0]}),t.jsx(F,{clickable:!0,hoverColor:d.palette.primary[200],icon:"close",iconColor:d.palette.white,iconSize:"xs",iconType:"fa-light",onClick:u})]})},Er=s.st.div`
2187
2187
  ${({theme:e,$variant:n})=>`
2188
2188
  background: ${e.palette.white};
2189
2189
  border: 1px solid ${e.palette.gray[200]};
@@ -2266,7 +2266,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2266
2266
  &::-webkit-inner-spin-button {
2267
2267
  opacity: 1;
2268
2268
  }
2269
- `,Br=x.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:a=0,max:r,min:o,name:l,onEnter:c,tooltipMessage:d,...p},g){const u=i<0?0:i,[f,h]=x.useState(Number(a).toFixed(u)),b=x.useCallback(v=>{const w=s.lodashExports.toNumber(v.target.value);v.target.value.endsWith(".")?h(v.target.value):w>=Number(o)&&w<=Number(r)&&(h(String(w)),n&&c(s.lodashExports.toNumber(w.toFixed(u)))),v.stopPropagation()},[n,u,r,o,c]),y=x.useCallback(v=>{v.currentTarget.contains(v.relatedTarget)||h(Number(a).toFixed(u)),v.stopPropagation()},[u,a]),m=x.useCallback(v=>{v.stopPropagation(),v.key==="Enter"&&!s.lodashExports.isEmpty(v.currentTarget.value)&&c(s.lodashExports.toNumber(v.currentTarget.value))},[c]);return t.jsx(Pr,{onBlur:y,tabIndex:-1,children:t.jsx(G,{id:"numberInputTooltip",tip:d,children:t.jsx(Wr,{...p,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(o),"aria-valuenow":Number(f),max:r,min:o,name:l,onChange:b,onKeyUp:m,ref:g,step:10**-u,type:"number",value:f})})})}),Or={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Ge=({icon:e,label:n,onClick:i,onlyLabel:a=!1,provider:r="GitLab"})=>{const o=s.Je();return t.jsxs($,{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:[a?!1:t.jsx($,{height:"24px",width:"24px",children:e===void 0?t.jsx(Z,{alt:`${r} Logo`,height:"100%",publicId:Or[r],width:"100%"}):t.jsx(F,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx($,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(I,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:a?"break-spaces":"nowrap",wordWrap:"unset",children:n??r})})]})},Hr=({align:e="end",buttonLabel:n="Add Credential",children:i,id:a,manualOption:r,providers:o})=>{const l=s.Je(),[c,d]=x.useState(!1),p=x.useRef(null);ie(p.current,()=>{d(!1)},!0);const g=x.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),u=x.useCallback(()=>{d(h=>!h)},[d]),f=x.useCallback(h=>b=>{var y;(y=o[h])==null||y.onClick(b),d(!1)},[o]);return t.jsxs($,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(P,{icon:"plus",onClick:u,variant:"primary",children:n}),t.jsxs($,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:a,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(Ge,{onClick:f(h),provider:h},h)),r===void 0?void 0:t.jsx(Ge,{icon:"square-plus",label:r.label??"Add manually",onClick:g}),i]})]})},Mr=s.st.div`
2269
+ `,Br=x.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:a=0,max:r,min:o,name:l,onEnter:c,tooltipMessage:d,...g},p){const u=i<0?0:i,[f,h]=x.useState(Number(a).toFixed(u)),b=x.useCallback(j=>{const w=s.lodashExports.toNumber(j.target.value);j.target.value.endsWith(".")?h(j.target.value):w>=Number(o)&&w<=Number(r)&&(h(String(w)),n&&c(s.lodashExports.toNumber(w.toFixed(u)))),j.stopPropagation()},[n,u,r,o,c]),y=x.useCallback(j=>{j.currentTarget.contains(j.relatedTarget)||h(Number(a).toFixed(u)),j.stopPropagation()},[u,a]),m=x.useCallback(j=>{j.stopPropagation(),j.key==="Enter"&&!s.lodashExports.isEmpty(j.currentTarget.value)&&c(s.lodashExports.toNumber(j.currentTarget.value))},[c]);return t.jsx(Pr,{onBlur:y,tabIndex:-1,children:t.jsx(G,{id:"numberInputTooltip",tip:d,children:t.jsx(Wr,{...g,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(o),"aria-valuenow":Number(f),max:r,min:o,name:l,onChange:b,onKeyUp:m,ref:p,step:10**-u,type:"number",value:f})})})}),Or={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Ge=({icon:e,label:n,onClick:i,onlyLabel:a=!1,provider:r="GitLab"})=>{const o=s.Je();return t.jsxs($,{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:[a?!1:t.jsx($,{height:"24px",width:"24px",children:e===void 0?t.jsx(Z,{alt:`${r} Logo`,height:"100%",publicId:Or[r],width:"100%"}):t.jsx(F,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx($,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(I,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:a?"break-spaces":"nowrap",wordWrap:"unset",children:n??r})})]})},Hr=({align:e="end",buttonLabel:n="Add Credential",children:i,id:a,manualOption:r,providers:o})=>{const l=s.Je(),[c,d]=x.useState(!1),g=x.useRef(null);ie(g.current,()=>{d(!1)},!0);const p=x.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),u=x.useCallback(()=>{d(h=>!h)},[d]),f=x.useCallback(h=>b=>{var y;(y=o[h])==null||y.onClick(b),d(!1)},[o]);return t.jsxs($,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:g,width:"max-content",zIndex:10,children:[t.jsx(P,{icon:"plus",onClick:u,variant:"primary",children:n}),t.jsxs($,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:a,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(Ge,{onClick:f(h),provider:h},h)),r===void 0?void 0:t.jsx(Ge,{icon:"square-plus",label:r.label??"Add manually",onClick:p}),i]})]})},Mr=s.st.div`
2270
2270
  ${({theme:e})=>`
2271
2271
  height: ${e.spacing[1]};
2272
2272
  width: ${e.spacing[1]};
@@ -2377,7 +2377,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2377
2377
  border-start-end-radius: ${i&&n<100?"0":"inherit"};
2378
2378
  background-color: ${a==="compliance"?Ur(e,n):"inherit"};
2379
2379
  `}
2380
- `,Yr=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:a=!1,orientation:r="horizontal",rounded:o=!0,variant:l="default"})=>{const c=a&&i==="left",d=a?t.jsx($,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(I,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,p=t.jsx(Gr,{$minWidth:e,$orientation:r,$rounded:o,$variant:l,className:r,children:t.jsx(Vr,{$percentage:n,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs($,{alignItems:"center",display:"inline-flex",flexDirection:c?"row-reverse":"row",height:r==="horizontal"?"auto":"100%",maxWidth:c?`${e+43}px`:void 0,minWidth:c?`${e+43}px`:void 0,textAlign:"end",children:[p,d]})},pn=({description:e="",highlightDescription:n=""})=>{const i=s.Je(),a=typeof n=="string",r=a?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(I,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:a?t.jsxs(x.Fragment,{children:[t.jsx(pe,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:n}),e]}):e.split(r).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(I,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},qr=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:a,confirmButton:r,container:o,description:l,highlightDescription:c="",image:d,maxWidth:p,title:g,titleColor:u})=>{const f=s.Je(),{alt:h,src:b,width:y="77px",height:m="77px"}=d,v=x.useCallback(()=>{n==null||n.onClick()},[n]),w=x.useCallback(()=>{r==null||r.onClick()},[r]),j=t.jsx($,{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($,{bgColor:f.palette.white,border:`1px solid ${f.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($,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[t.jsx($,{children:t.jsx(Z,{alt:h,height:m,publicId:b,width:y})}),t.jsxs($,{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(pn,{description:l,highlightDescription:c})]})]}),a&&t.jsx($,{mb:1,scroll:"y",children:t.jsx($,{height:"100%",children:a})}),t.jsxs($,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[s.lodashExports.isObject(r)?t.jsx(P,{onClick:w,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,s.lodashExports.isObject(n)?t.jsx(P,{onClick:v,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?re.createPortal(j,o??document.body):j},Kr=s.st.div.attrs({className:"comp-scroll-up"})`
2380
+ `,Yr=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:a=!1,orientation:r="horizontal",rounded:o=!0,variant:l="default"})=>{const c=a&&i==="left",d=a?t.jsx($,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(I,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,g=t.jsx(Gr,{$minWidth:e,$orientation:r,$rounded:o,$variant:l,className:r,children:t.jsx(Vr,{$percentage:n,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs($,{alignItems:"center",display:"inline-flex",flexDirection:c?"row-reverse":"row",height:r==="horizontal"?"auto":"100%",maxWidth:c?`${e+43}px`:void 0,minWidth:c?`${e+43}px`:void 0,textAlign:"end",children:[g,d]})},pn=({description:e="",highlightDescription:n="",mobile:i})=>{const a=s.Je(),r=i?"md":"lg",o=typeof n=="string",l=o?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(I,{display:"inline",lineSpacing:1.5,size:r,textAlign:i?"start":"center",children:o?t.jsxs(x.Fragment,{children:[t.jsx(pe,{color:a.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:n}),e]}):e.split(l).map((c,d)=>n.includes(c)?t.jsx(pe,{color:a.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:c},`${d+1}-bold`):c)}):t.jsx(I,{lineSpacing:1.5,size:r,textAlign:i?"start":"center",children:e})},qr=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:a,confirmButton:r,container:o,description:l,highlightDescription:c="",image:d,maxWidth:g,mobile:p=!1,title:u,titleColor:f})=>{const h=s.Je(),{alt:b,src:y,width:m="77px",height:j="77px"}=d,w=x.useCallback(()=>{n==null||n.onClick()},[n]),v=x.useCallback(()=>{r==null||r.onClick()},[r]),k=t.jsx(U,{color:f,fontWeight:"bold",lineSpacing:p?1.5:2.5,mb:p?1.5:0,size:p?"sm":"lg",textAlign:p?"start":"center",children:u}),C=t.jsx(Z,{alt:b,height:j,publicId:y,width:m}),E=t.jsx($,{alignItems:"center","aria-label":u,"aria-modal":"true",bgColor:i?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:e?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:t.jsxs($,{bgColor:h.palette.white,border:`1px solid ${h.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:g,position:"relative",px:p?1.5:2.5,py:p?1.5:2.5,shadow:"lg",width:p?"335px":"100%",zIndex:11,children:[t.jsxs($,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[p?k:void 0,p?t.jsx($,{alignItems:"center",height:j,justify:"center",mr:0,children:t.jsx($,{bgColor:h.palette.gray[100],left:"0",position:"absolute",textAlign:"center",width:"100%",children:C})}):C,t.jsxs($,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[p?void 0:k,t.jsx(pn,{description:l,highlightDescription:c,mobile:p})]})]}),a&&t.jsx($,{mb:1,scroll:"y",children:t.jsx($,{height:"100%",children:a})}),t.jsxs($,{alignItems:"flex-start",display:"flex",gap:1,justify:p?"start":"center",children:[s.lodashExports.isObject(r)?t.jsx(P,{onClick:v,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,s.lodashExports.isObject(n)?t.jsx(P,{onClick:w,variant:(n==null?void 0:n.variant)??"tertiary",children:n==null?void 0:n.text},n==null?void 0:n.key):void 0]})]})});return e?re.createPortal(E,o??document.body):E},Kr=s.st.div.attrs({className:"comp-scroll-up"})`
2381
2381
  bottom: 15px;
2382
2382
  position: fixed;
2383
2383
  right: 140px;
@@ -2423,7 +2423,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2423
2423
  height: auto;
2424
2424
  }
2425
2425
  `}
2426
- `,ro=({children:e,closeIconId:n="close-menu",isOpen:i,items:a,onClose:r,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:p})=>{const g=s.Je(),u=x.useRef(null),f=x.useCallback(h=>()=>{h(),r()},[r]);return x.useEffect(()=>{const h=["mousedown","touchstart"],b=y=>{var k;const m=y.target,v=document.getElementById("helpBtn"),w=document.getElementById("filterBtn"),j=(m===v||((v==null?void 0:v.contains(m))??!1)||m===w||(w==null?void 0:w.contains(m)))??!1;i&&!j&&!(((k=u.current)==null?void 0:k.contains(m))??!1)&&r()};return h.forEach(y=>{document.addEventListener(y,b,{passive:!0})}),()=>{h.forEach(y=>{document.removeEventListener(y,b)})}},[i,r]),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx(ao,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:u,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs($,{height:"100%",position:"relative",children:[t.jsxs($,{alignItems:"center",bgColor:g.palette.white,borderBottom:"1px solid",borderColor:g.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[t.jsx(I,{color:g.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),t.jsx(O,{icon:"close",iconColor:g.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:r,px:.25,py:.25,variant:"ghost"})]}),t.jsxs($,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs($,{py:1.25,children:[(a??[]).map(({customBadge:h,description:b,icon:y,onClick:m,requiresUpgrade:v,title:w})=>t.jsx(gn,{customBadge:h,description:b,icon:y,onClick:f(m),requiresUpgrade:v,title:w},w)),e&&t.jsx($,{px:1.25,children:e})]}),o===void 0?void 0:t.jsxs($,{alignItems:"center",bgColor:g.palette.white,borderColor:g.palette.gray[200],borderTop:"1px solid",bottom:"0",display:"flex",gap:1.25,justify:"end",padding:[1.25,1.25,1.25,1.25],position:"sticky",width:"100%",zIndex:40,children:[c===void 0?void 0:t.jsx(P,{color:`${g.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(P,{onClick:l,type:"submit",children:o})]})]})]})})})},oo=(e,n)=>n>=50?`
2426
+ `,ro=({children:e,closeIconId:n="close-menu",isOpen:i,items:a,onClose:r,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:g})=>{const p=s.Je(),u=x.useRef(null),f=x.useCallback(h=>()=>{h(),r()},[r]);return x.useEffect(()=>{const h=["mousedown","touchstart"],b=y=>{var k;const m=y.target,j=document.getElementById("helpBtn"),w=document.getElementById("filterBtn"),v=(m===j||((j==null?void 0:j.contains(m))??!1)||m===w||(w==null?void 0:w.contains(m)))??!1;i&&!v&&!(((k=u.current)==null?void 0:k.contains(m))??!1)&&r()};return h.forEach(y=>{document.addEventListener(y,b,{passive:!0})}),()=>{h.forEach(y=>{document.removeEventListener(y,b)})}},[i,r]),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx(ao,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:u,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs($,{height:"100%",position:"relative",children:[t.jsxs($,{alignItems:"center",bgColor:p.palette.white,borderBottom:"1px solid",borderColor:p.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(I,{color:p.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:g}),t.jsx(O,{icon:"close",iconColor:p.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:r,px:.25,py:.25,variant:"ghost"})]}),t.jsxs($,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs($,{py:1.25,children:[(a??[]).map(({customBadge:h,description:b,icon:y,onClick:m,requiresUpgrade:j,title:w})=>t.jsx(gn,{customBadge:h,description:b,icon:y,onClick:f(m),requiresUpgrade:j,title:w},w)),e&&t.jsx($,{px:1.25,children:e})]}),o===void 0?void 0:t.jsxs($,{alignItems:"center",bgColor:p.palette.white,borderColor:p.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(P,{color:`${p.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(P,{onClick:l,type:"submit",children:o})]})]})]})})})},oo=(e,n)=>n>=50?`
2427
2427
  ${e.palette.gray[200]} 50%,
2428
2428
  ${e.palette.primary[500]} 50.05%,
2429
2429
  ${e.palette.primary[500]} ${n}%,
@@ -2499,7 +2499,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2499
2499
  padding: ${e.spacing[.625]} ${e.spacing[.75]};
2500
2500
  width: 59px;
2501
2501
  `}
2502
- `,un=({state:e,trackRef:n,index:i,name:a})=>{const r=x.useRef(null),{thumbProps:o,inputProps:l,isDragging:c}=s.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:r},e);return t.jsx("div",{...o,className:`thumb ${c?"dragging":""}`,children:t.jsx(s.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":a,ref:r})})})},po=(e,n,i)=>Math.round((i-e)/(n-e)*100),go=e=>{const n=s.Je(),i=x.useRef(null),{label:a,minValue:r=0,maxValue:o=100,name:l,setValue:c,watch:d}=e,p=s.$a916eb452884faea$export$b7a616150fdb9f44(),g=s.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:p,onChange(b){c==null||c(l,b)},value:d==null?void 0:d(l)}),u=po(r,o,g.getThumbValue(0)),{groupProps:f,trackProps:h}=s.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},g,i);return t.jsx(J,{htmlFor:l,label:a,children:t.jsxs($,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(so,{...f,$min:r??0,$value:u,className:"slider",children:[t.jsx("div",{...h,className:`track ${g.isDisabled?"disabled":""}`,ref:i,children:t.jsx(un,{index:0,name:l,state:g,trackRef:i})}),t.jsxs(lo,{children:[t.jsx("p",{children:`${p.format(r)} (Low)`}),r<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${p.format(o)} (High)`})]})]}),t.jsx(co,{children:t.jsx(I,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:g.getThumbValueLabel(0)})})]})})},{getVariant:uo}=q(e=>({completed:`
2502
+ `,un=({state:e,trackRef:n,index:i,name:a})=>{const r=x.useRef(null),{thumbProps:o,inputProps:l,isDragging:c}=s.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:r},e);return t.jsx("div",{...o,className:`thumb ${c?"dragging":""}`,children:t.jsx(s.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":a,ref:r})})})},po=(e,n,i)=>Math.round((i-e)/(n-e)*100),go=e=>{const n=s.Je(),i=x.useRef(null),{label:a,minValue:r=0,maxValue:o=100,name:l,setValue:c,watch:d}=e,g=s.$a916eb452884faea$export$b7a616150fdb9f44(),p=s.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:g,onChange(b){c==null||c(l,b)},value:d==null?void 0:d(l)}),u=po(r,o,p.getThumbValue(0)),{groupProps:f,trackProps:h}=s.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},p,i);return t.jsx(J,{htmlFor:l,label:a,children:t.jsxs($,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(so,{...f,$min:r??0,$value:u,className:"slider",children:[t.jsx("div",{...h,className:`track ${p.isDisabled?"disabled":""}`,ref:i,children:t.jsx(un,{index:0,name:l,state:p,trackRef:i})}),t.jsxs(lo,{children:[t.jsx("p",{children:`${g.format(r)} (Low)`}),r<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${g.format(o)} (High)`})]})]}),t.jsx(co,{children:t.jsx(I,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:p.getThumbValueLabel(0)})})]})})},{getVariant:uo}=q(e=>({completed:`
2503
2503
  background-color: ${e.palette.primary[500]};
2504
2504
  color: ${e.palette.white};
2505
2505
 
@@ -2577,7 +2577,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2577
2577
 
2578
2578
  ${uo(e,n)}
2579
2579
  `}
2580
- `,yo=({button:{disabled:e=!1,text:n,type:i="button",onClick:a},steps:r})=>{const[o,l]=x.useState(1),c=x.useCallback((d,p)=>()=>{l(g=>g+d),p==null||p()},[]);return t.jsx(xo,{children:r.map((d,p)=>{const{content:g,title:u,nextAction:f,previousAction:h}=d,b=p+1,y=b===o?"current":"disabled",m=b<o?"completed":y;return t.jsxs(fo,{children:[t.jsx($,{maxWidth:"40px",position:"relative",children:t.jsx(bo,{$variant:m,children:m==="completed"?t.jsx(F,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):b})}),t.jsxs($,{ml:1.5,width:"100%",children:[t.jsx(U,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:u}),m==="current"&&t.jsxs($,{children:[g,t.jsxs(ho,{children:[o>1&&t.jsx(P,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,h),variant:"tertiary",children:"Previous"}),o<r.length?t.jsx(P,{disabled:d.isDisabledNext??!1,onClick:c(1,f),variant:"primary",children:"Next step"}):t.jsx(P,{disabled:e,onClick:a,type:i,variant:"primary",children:n})]})]})]})]},d.title)})})},$o=s.st.button`
2580
+ `,yo=({button:{disabled:e=!1,text:n,type:i="button",onClick:a},steps:r})=>{const[o,l]=x.useState(1),c=x.useCallback((d,g)=>()=>{l(p=>p+d),g==null||g()},[]);return t.jsx(xo,{children:r.map((d,g)=>{const{content:p,title:u,nextAction:f,previousAction:h}=d,b=g+1,y=b===o?"current":"disabled",m=b<o?"completed":y;return t.jsxs(fo,{children:[t.jsx($,{maxWidth:"40px",position:"relative",children:t.jsx(bo,{$variant:m,children:m==="completed"?t.jsx(F,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):b})}),t.jsxs($,{ml:1.5,width:"100%",children:[t.jsx(U,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:u}),m==="current"&&t.jsxs($,{children:[p,t.jsxs(ho,{children:[o>1&&t.jsx(P,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,h),variant:"tertiary",children:"Previous"}),o<r.length?t.jsx(P,{disabled:d.isDisabledNext??!1,onClick:c(1,f),variant:"primary",children:"Next step"}):t.jsx(P,{disabled:e,onClick:a,type:i,variant:"primary",children:n})]})]})]})]},d.title)})})},$o=s.st.button`
2581
2581
  ${({theme:e})=>`
2582
2582
  align-items: center;
2583
2583
  background-color: ${e.palette.white};
@@ -2619,7 +2619,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2619
2619
  background-color: ${e.palette.gray[100]};
2620
2620
  }
2621
2621
  `}
2622
- `,mo={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},wo=({disabled:e=!1,icon:n,id:i,label:a,name:r,onClick:o,type:l="button",variant:c})=>{const d=s.Je(),p=t.jsxs($o,{"aria-label":r??void 0,className:c,disabled:e,id:i,onClick:o,type:l,children:[t.jsx(F,{clickable:!1,icon:n??mo[c].icon,iconSize:r===void 0?"xxs":"xs",iconType:"fa-light"}),r??void 0]});return t.jsxs($,{alignItems:"center",display:"flex",children:[p,a&&t.jsx(I,{color:d.palette.gray[800],ml:.5,size:"sm",children:a})]})},jo=s.st.div`
2622
+ `,mo={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},wo=({disabled:e=!1,icon:n,id:i,label:a,name:r,onClick:o,type:l="button",variant:c})=>{const d=s.Je(),g=t.jsxs($o,{"aria-label":r??void 0,className:c,disabled:e,id:i,onClick:o,type:l,children:[t.jsx(F,{clickable:!1,icon:n??mo[c].icon,iconSize:r===void 0?"xxs":"xs",iconType:"fa-light"}),r??void 0]});return t.jsxs($,{alignItems:"center",display:"flex",children:[g,a&&t.jsx(I,{color:d.palette.gray[800],ml:.5,size:"sm",children:a})]})},jo=s.st.div`
2623
2623
  ${({theme:e,$size:n})=>`
2624
2624
  align-items: center;
2625
2625
  background-color: ${e.palette.white};
@@ -2692,7 +2692,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
2692
2692
  transform: translateX(-50%);
2693
2693
  }
2694
2694
  `}
2695
- `,xn=({date:e,description:n,title:i,size:a="long"})=>{const r=s.Je();return t.jsxs(jo,{$size:a,className:"timeline-card",children:[t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((o,l)=>{const c=`${o}#${l}`;return t.jsx(I,{size:"sm",textAlign:"center",wordBreak:"break-word",children:o},c)})})]})},ko=({items:e})=>{const n=x.useRef(null),[i,a]=x.useState("long");return x.useEffect(()=>{n.current&&a(n.current.offsetWidth<=1100?"small":"long")},[]),t.jsx($,{ref:n,width:"100%",children:t.jsx(vo,{$size:i,children:e.map((r,o)=>t.jsx(xn,{date:r.date,description:r.description,size:i,title:r.title},`${r.title}-${o}`))})})},Co={content:"",disableBeacon:!0,hideCloseButton:!1,locale:{back:"Back",close:"Close",last:"Close",next:"Next",open:"Open the dialog",skip:"Skip"},showSkipButton:!0,styles:{buttonBack:{fontFamily:"roboto"},buttonNext:{fontFamily:"roboto"},buttonSkip:{fontFamily:"roboto"},options:{zIndex:9999},tooltipContainer:{fontFamily:"roboto",textAlign:"left"}},target:""},So=({run:e,steps:n,onFinish:i})=>{const[a,r]=x.useState(e),[o,l]=x.useState(0),c=x.useCallback(d=>{const{action:p,index:g,status:u,type:f}=d;[s.EVENTS.STEP_AFTER,s.EVENTS.TARGET_NOT_FOUND].includes(f)?l(g+(p===s.ACTIONS.PREV?-1:1)):([s.STATUS.FINISHED,s.STATUS.SKIPPED].includes(u)||p==="close")&&(r(!1),s.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(s.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:a,spotlightClicks:!0,stepIndex:o,steps:n,styles:{buttonNext:{display:o===n.length-1?"none":"block"},options:{zIndex:9999}}})},fn=t.jsx($,{alignItems:"center",bgColor:T.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(I,{bgGradient:T.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),zo=s.st.div`
2695
+ `,xn=({date:e,description:n,title:i,size:a="long"})=>{const r=s.Je();return t.jsxs(jo,{$size:a,className:"timeline-card",children:[t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((o,l)=>{const c=`${o}#${l}`;return t.jsx(I,{size:"sm",textAlign:"center",wordBreak:"break-word",children:o},c)})})]})},ko=({items:e})=>{const n=x.useRef(null),[i,a]=x.useState("long");return x.useEffect(()=>{n.current&&a(n.current.offsetWidth<=1100?"small":"long")},[]),t.jsx($,{ref:n,width:"100%",children:t.jsx(vo,{$size:i,children:e.map((r,o)=>t.jsx(xn,{date:r.date,description:r.description,size:i,title:r.title},`${r.title}-${o}`))})})},Co={content:"",disableBeacon:!0,hideCloseButton:!1,locale:{back:"Back",close:"Close",last:"Close",next:"Next",open:"Open the dialog",skip:"Skip"},showSkipButton:!0,styles:{buttonBack:{fontFamily:"roboto"},buttonNext:{fontFamily:"roboto"},buttonSkip:{fontFamily:"roboto"},options:{zIndex:9999},tooltipContainer:{fontFamily:"roboto",textAlign:"left"}},target:""},So=({run:e,steps:n,onFinish:i})=>{const[a,r]=x.useState(e),[o,l]=x.useState(0),c=x.useCallback(d=>{const{action:g,index:p,status:u,type:f}=d;[s.EVENTS.STEP_AFTER,s.EVENTS.TARGET_NOT_FOUND].includes(f)?l(p+(g===s.ACTIONS.PREV?-1:1)):([s.STATUS.FINISHED,s.STATUS.SKIPPED].includes(u)||g==="close")&&(r(!1),s.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(s.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:a,spotlightClicks:!0,stepIndex:o,steps:n,styles:{buttonNext:{display:o===n.length-1?"none":"block"},options:{zIndex:9999}}})},fn=t.jsx($,{alignItems:"center",bgColor:T.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(I,{bgGradient:T.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),zo=s.st.div`
2696
2696
  ${({className:e,theme:n})=>`
2697
2697
  align-items: flex-start;
2698
2698
  border-radius: ${n.spacing[1]};