@fluidattacks/design 3.27.1 → 3.27.3-pr.1

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 (175) hide show
  1. package/dist/components/@core/index.js +1 -1
  2. package/dist/components/@core/types.d.ts +0 -2
  3. package/dist/components/accordion/accordion-content/index.js +1 -1
  4. package/dist/components/accordion/index.js +1 -1
  5. package/dist/components/alert/index.js +1 -1
  6. package/dist/components/avatar/index.js +1 -1
  7. package/dist/components/button/index.js +1 -1
  8. package/dist/components/card/card-header/index.js +1 -1
  9. package/dist/components/card/card-with-image/index.js +1 -1
  10. package/dist/components/card/card-with-input/index.js +1 -1
  11. package/dist/components/card/card-with-options/index.js +1 -1
  12. package/dist/components/card/card-with-selector/index.js +1 -1
  13. package/dist/components/card/card-with-switch/index.js +1 -1
  14. package/dist/components/card/index.js +1 -1
  15. package/dist/components/card-container/index.js +1 -1
  16. package/dist/components/carousel/index.js +1 -1
  17. package/dist/components/checkbox/index.js +1 -1
  18. package/dist/components/cloud-image/index.js +1 -1
  19. package/dist/components/code-snippet/index.js +1 -1
  20. package/dist/components/code-snippet/location-code/index.js +1 -1
  21. package/dist/components/colors/index.js +1 -1
  22. package/dist/components/conditions-dialog/index.js +1 -1
  23. package/dist/components/confirm-dialog/index.js +1 -1
  24. package/dist/components/container/index.js +1 -1
  25. package/dist/components/copy-button/index.js +1 -1
  26. package/dist/components/divider/index.js +1 -1
  27. package/dist/components/dropdown/index.js +1 -1
  28. package/dist/components/empty-state/empty-button/index.js +1 -1
  29. package/dist/components/empty-state/index.js +1 -1
  30. package/dist/components/file-preview/index.js +1 -1
  31. package/dist/components/form/index.js +1 -1
  32. package/dist/components/form/inner-form/index.js +1 -1
  33. package/dist/components/grid-container/index.js +1 -1
  34. package/dist/components/group-selector/index.js +1 -1
  35. package/dist/components/group-selector/option-container/index.js +1 -1
  36. package/dist/components/icon/index.js +1 -1
  37. package/dist/components/icon-button/index.js +1 -1
  38. package/dist/components/indicator-card/index.js +1 -1
  39. package/dist/components/info-sidebar/index.js +1 -1
  40. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  41. package/dist/components/inputs/fields/combobox/index.js +1 -1
  42. package/dist/components/inputs/fields/combobox/index.stories.d.ts +2 -3
  43. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  44. package/dist/components/inputs/fields/combobox/types.d.ts +1 -0
  45. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  46. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  47. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  48. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  49. package/dist/components/inputs/fields/date/index.js +1 -1
  50. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  51. package/dist/components/inputs/fields/date-range/index.js +1 -1
  52. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  53. package/dist/components/inputs/fields/date-time/index.js +1 -1
  54. package/dist/components/inputs/fields/editable/index.js +1 -1
  55. package/dist/components/inputs/fields/input-array/field/index.js +1 -1
  56. package/dist/components/inputs/fields/input-array/index.js +1 -1
  57. package/dist/components/inputs/fields/input-file/index.js +1 -1
  58. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  59. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  60. package/dist/components/inputs/fields/number/index.js +1 -1
  61. package/dist/components/inputs/fields/number-range/index.js +1 -1
  62. package/dist/components/inputs/fields/phone/index.js +1 -1
  63. package/dist/components/inputs/fields/text-area/index.js +1 -1
  64. package/dist/components/inputs/fields/text-input/index.js +1 -1
  65. package/dist/components/inputs/index.js +1 -1
  66. package/dist/components/inputs/label/index.js +1 -1
  67. package/dist/components/inputs/outline-container/index.js +1 -1
  68. package/dist/components/inputs/utils/action-button/index.js +1 -1
  69. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  70. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  71. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  72. package/dist/components/inputs/utils/dialog/index.js +1 -1
  73. package/dist/components/inputs/utils/number-field/index.js +1 -1
  74. package/dist/components/inputs/utils/popover/index.js +1 -1
  75. package/dist/components/layout/categories/buttons/index.js +1 -1
  76. package/dist/components/layout/categories/column/index.js +1 -1
  77. package/dist/components/layout/categories/gap/index.js +1 -1
  78. package/dist/components/layout/categories/row/index.js +1 -1
  79. package/dist/components/layout/index.js +1 -1
  80. package/dist/components/link/index.d.ts +1 -1
  81. package/dist/components/link/index.js +1 -1
  82. package/dist/components/link/styles.d.ts +1 -0
  83. package/dist/components/link/types.d.ts +3 -1
  84. package/dist/components/list-item/index.js +1 -1
  85. package/dist/components/little-flag/index.js +1 -1
  86. package/dist/components/loading/index.js +1 -1
  87. package/dist/components/logo/index.js +1 -1
  88. package/dist/components/lottie/index.js +1 -1
  89. package/dist/components/menu/index.js +1 -1
  90. package/dist/components/message-banner/index.js +1 -1
  91. package/dist/components/message-banner/types.d.ts +1 -3
  92. package/dist/components/modal/columns-modal/index.js +1 -1
  93. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  94. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  95. package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
  96. package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
  97. package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
  98. package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
  99. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
  100. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
  101. package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
  102. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  103. package/dist/components/modal/filters-modal/index.js +1 -1
  104. package/dist/components/modal/footer/index.js +1 -1
  105. package/dist/components/modal/header/index.js +1 -1
  106. package/dist/components/modal/index.js +1 -1
  107. package/dist/components/modal/modal-confirm/index.js +1 -1
  108. package/dist/components/notification/index.js +1 -1
  109. package/dist/components/notification-sign/index.js +1 -1
  110. package/dist/components/number-input/index.js +1 -1
  111. package/dist/components/oauth-selector/index.js +1 -1
  112. package/dist/components/oauth-selector/option-container/index.js +1 -1
  113. package/dist/components/pop-up/description/index.js +1 -1
  114. package/dist/components/pop-up/index.js +1 -1
  115. package/dist/components/premium-feature/index.js +1 -1
  116. package/dist/components/priority-score/index.js +1 -1
  117. package/dist/components/progress-bar/index.js +1 -1
  118. package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
  119. package/dist/components/progress-indicator/index.js +1 -1
  120. package/dist/components/progress-indicator/step/index.js +1 -1
  121. package/dist/components/radio-button/index.js +1 -1
  122. package/dist/components/scroll-button/index.js +1 -1
  123. package/dist/components/search/index.js +1 -1
  124. package/dist/components/severity-badge/index.js +1 -1
  125. package/dist/components/severity-overview/badge/index.js +1 -1
  126. package/dist/components/severity-overview/index.js +1 -1
  127. package/dist/components/show-on-hover/index.js +1 -1
  128. package/dist/components/slide-out-menu/index.js +1 -1
  129. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  130. package/dist/components/slider/index.js +1 -1
  131. package/dist/components/slider/thumb/index.js +1 -1
  132. package/dist/components/step-lapse/index.js +1 -1
  133. package/dist/components/table/context/index.js +1 -1
  134. package/dist/components/table/export-csv/index.js +1 -1
  135. package/dist/components/table/index.js +1 -1
  136. package/dist/components/table/pagination/pagination-control/index.js +1 -1
  137. package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
  138. package/dist/components/table/pagination/pagination-size/index.js +1 -1
  139. package/dist/components/table/sort-icon/index.js +1 -1
  140. package/dist/components/table/table-body/index.js +1 -1
  141. package/dist/components/table/table-column-toggle/index.js +1 -1
  142. package/dist/components/table/table-content/head/index.js +1 -1
  143. package/dist/components/table/table-content/index.js +1 -1
  144. package/dist/components/table/table-footer/footer-content/index.js +1 -1
  145. package/dist/components/table/table-footer/index.js +1 -1
  146. package/dist/components/table/table-options/caption-content/index.js +1 -1
  147. package/dist/components/table/table-options/controls-content/index.js +1 -1
  148. package/dist/components/table/table-options/highlighted-content/index.js +1 -1
  149. package/dist/components/table/table-options/index.js +1 -1
  150. package/dist/components/table/wrapper/index.js +1 -1
  151. package/dist/components/table-button/index.js +1 -1
  152. package/dist/components/tabs/index.js +1 -1
  153. package/dist/components/tabs/tab/index.js +1 -1
  154. package/dist/components/tag/index.js +1 -1
  155. package/dist/components/timeline/card/index.js +1 -1
  156. package/dist/components/timeline/index.js +1 -1
  157. package/dist/components/toggle/index.js +1 -1
  158. package/dist/components/tooltip/index.js +1 -1
  159. package/dist/components/tooltip/styles.d.ts +5 -1
  160. package/dist/components/tooltip/types.d.ts +2 -1
  161. package/dist/components/tour/index.js +1 -1
  162. package/dist/components/typography/heading/index.js +1 -1
  163. package/dist/components/typography/index.js +1 -1
  164. package/dist/components/typography/span/index.js +1 -1
  165. package/dist/components/typography/text/index.js +1 -1
  166. package/dist/components-BwqRsbhQ.js +3276 -0
  167. package/dist/{components-DJdC-dCJ.mjs → components-cKotz_eo.mjs} +1587 -1430
  168. package/dist/hooks/index.js +1 -1
  169. package/dist/index.js +1 -1
  170. package/dist/{vendor-C4aloG3g.mjs → vendor-C3KgSuPd.mjs} +17385 -18549
  171. package/dist/vendor-DE_IQw9t.js +164 -0
  172. package/package.json +4 -4
  173. package/dist/components/message-banner/utils.d.ts +0 -7
  174. package/dist/components-D3E3WbDk.js +0 -3159
  175. package/dist/vendor-p_HN3CLJ.js +0 -223
@@ -0,0 +1,3276 @@
1
+ "use strict";const t=require("react/jsx-runtime"),u=require("react"),f=require("styled-components"),y=require("./vendor-DE_IQw9t.js"),le=require("react-dom"),Ue=require("react-router-dom"),Et=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},tt=Et(u),ce=Et(f),X=e=>({getVariant:(n,o)=>e(n)[o]}),Rt=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"],ro={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},io={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},ao={25:"",50:"",100:"#f59dbe",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},so={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},lo={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#f27100",700:"#b54708",800:"",900:""},co={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},po={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},go={type:{primary:"Roboto, sans-serif",poppins:"'Poppins', sans-serif",mono:"'Space Mono', monospace"},heading:{xxl:"64px",xl:"48px",lg:"32px",md:"24px",sm:"20px",xs:"16px"},text:{xl:"20px",lg:"18px",md:"16px",sm:"14px",xs:"12px"},weight:{bold:"700",semibold:"600",regular:"400"}},uo={none:"none",sm:"0px 1px 2px 0px rgba(16, 24, 40, 0.15)",md:"0px 4px 6px 0px rgba(16, 24, 40, 0.15)",lg:"0px 8px 24px 0px rgba(16, 24, 40, 0.15)"},xo={sm:"1024px",md:"1440px",lg:"1920px"},ho={0:"0rem",.125:"0.125rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",.875:"0.875rem",1:"1rem",1.25:"1.25rem",1.5:"1.5rem",1.75:"1.75rem",2:"2rem",2.25:"2.25rem",2.5:"2.5rem",3:"3rem",4:"4rem",5:"5rem",6:"6rem"},fo=["lock-keyhole","bars-sort","bolt","books","brain-circuit","briefcase","bug","buildings","bullseye-pointer","calendar-clock","calendar-xmark","chart-network","clipboard-check","comment","envelope","eye","file","flag","globe","hand-holding-dollar","hands-clapping","headset","hexagon-exclamation","light-emergency-on","magnifying-glass","pen-line","plane-departure","screwdriver-wrench","sensor-triangle-exclamation","shield-check","sidebar","skull","sliders","star-christmas","telescope","trash","unlock","user-group","user-hoodie","xmark","arrow-down","arrow-left","arrow-right","arrow-up","plus","minus","check","circle-question"],N={typography:go,shadows:uo,breakpoints:xo,spacing:ho,palette:{primary:io,complementary:ao,error:so,info:po,warning:lo,success:co,black:"#0c111d",white:"#ffffff",gray:ro}},yo=({children:e})=>t.jsx(f.ThemeProvider,{theme:N,children:e}),F=(e,n)=>n===void 0?"":`${e}: ${n};`,be=e=>{const n=e.py??e.pt??0,o=e.px??e.pr??0,r=e.py??e.pb??0,i=e.px??e.pl??0;if(e.padding){const[a,l,s,c]=e.padding;return`padding: ${N.spacing[a]} ${N.spacing[l]} ${N.spacing[s]} ${N.spacing[c]};`}return`padding: ${N.spacing[n]} ${N.spacing[o]} ${N.spacing[r]} ${N.spacing[i]};`},$e=e=>{const n=e.my??e.mt??0,o=e.mx??e.mr??0,r=e.my??e.mb??0,i=e.mx??e.ml??0;if(e.margin){const[a,l,s,c]=e.margin;return`margin: ${N.spacing[a]} ${N.spacing[l]} ${N.spacing[s]} ${N.spacing[c]};`}return`margin: ${N.spacing[n]} ${N.spacing[o]} ${N.spacing[r]} ${N.spacing[i]};`},me=e=>{const n=F("position",e.position),o=F("top",e.top),r=F("right",e.right),i=F("bottom",e.bottom),a=F("left",e.left),l=F("z-index",e.zIndex);return`
2
+ ${n}
3
+ ${o}
4
+ ${r}
5
+ ${i}
6
+ ${a}
7
+ ${l}
8
+ `},we=e=>{const n=F("border",e.border),o=F("border-top",e.borderTop),r=F("border-right",e.borderRight),i=F("border-bottom",e.borderBottom),a=F("border-left",e.borderLeft),l=F("border-color",e.borderColor),s=F("border-radius",e.borderRadius);return`
9
+ ${n}
10
+ ${o}
11
+ ${r}
12
+ ${i}
13
+ ${a}
14
+ ${l}
15
+ ${s}
16
+ `},bo=e=>e.includes("x")?"overflow-x: auto;":"",$o=e=>e.includes("y")?"overflow-y: auto;":"",ve=e=>{const n=e.scroll?`
17
+ ${bo(e.scroll)}
18
+ ${$o(e.scroll)}
19
+ `:"",o=F("visibility",e.visibility),r=F("display",e.display),i=F("height",e.height),a=F("width",e.width),l=F("max-height",e.maxHeight),s=F("max-width",e.maxWidth),c=F("min-height",e.minHeight),d=F("min-width",e.minWidth),p=F("box-shadow",e.shadow?N.shadows[e.shadow]:void 0),g=F("gap",e.gap===void 0?void 0:N.spacing[e.gap]),x=F("background-color",e.bgColor),h=F("background",e.bgGradient),b=F("flex-direction",e.flexDirection),w=F("flex-grow",e.flexGrow),$=F("justify-content",e.justify),k=F("justify-self",e.justifySelf),v=F("align-items",e.alignItems),C=F("align-self",e.alignSelf),j=F("flex-wrap",e.wrap);return`
20
+ ${n}
21
+ ${o}
22
+ ${r}
23
+ ${i}
24
+ ${a}
25
+ ${l}
26
+ ${s}
27
+ ${c}
28
+ ${d}
29
+ ${p}
30
+ ${x}
31
+ ${h}
32
+ ${g}
33
+ ${b}
34
+ ${w}
35
+ ${$}
36
+ ${k}
37
+ ${v}
38
+ ${C}
39
+ ${j}
40
+ `},je=e=>{const n=F("color",e.color),o=F("font-family",e.fontFamily),r=F("font-size",e.fontSize),i=F("font-weight",e.fontWeight),a=F("line-spacing",e.letterSpacing),l=F("line-height",e.lineSpacing),s=F("text-align",e.textAlign),c=F("text-decoration",e.textDecoration),d=F("text-overflow",e.textOverflow),p=F("white-space",e.whiteSpace),g=F("word-break",e.wordBreak),x=F("word-wrap",e.wordWrap);return`
41
+ ${n}
42
+ ${o}
43
+ ${r}
44
+ ${i}
45
+ ${a}
46
+ ${l}
47
+ ${s}
48
+ ${c}
49
+ ${d}
50
+ ${p}
51
+ ${g}
52
+ ${x}
53
+ `},ke=e=>{const n=F("cursor",e.cursor),o=F("border-color",e.borderColorHover),r=F("background-color",e.bgColorHover),i=F("box-shadow",e.shadowHover===void 0?void 0:N.shadows[e.shadowHover]),a=F("transition",e.transition);return`
54
+ ${n}
55
+
56
+ &:hover {
57
+ ${a||"transition: all 0.2s;"}
58
+ ${o}
59
+ ${r}
60
+ ${i}
61
+ }
62
+ `},Ce={shouldForwardProp:e=>!Rt.includes(e)},Se=f.styled.div.withConfig(Ce)`
63
+ ${be}
64
+ ${$e}
65
+ ${me}
66
+ ${ve}
67
+ ${je}
68
+ ${we}
69
+ ${ke}
70
+ `,nt=f.styled.button.withConfig(Ce)`
71
+ ${be}
72
+ ${$e}
73
+ ${me}
74
+ ${ve}
75
+ ${je}
76
+ ${we}
77
+ ${ke}
78
+ `,ot=f.styled.p.withConfig(Ce)`
79
+ ${be}
80
+ ${$e}
81
+ ${me}
82
+ ${ve}
83
+ ${je}
84
+ ${we}
85
+ ${ke}
86
+ `,rt=f.styled.span.withConfig(Ce)`
87
+ ${be}
88
+ ${$e}
89
+ ${me}
90
+ ${ve}
91
+ ${je}
92
+ ${we}
93
+ ${ke}
94
+ `,mo=f.styled(Se)`
95
+ ${({theme:e,$center:n=!1,$styleMd:o,$styleSm:r})=>`
96
+ ${n?"margin: auto;":""}
97
+ scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
98
+ scroll-padding: ${e.spacing[.5]};
99
+
100
+ @media screen
101
+ and (min-width: ${e.breakpoints.mobile})
102
+ and (max-width: ${e.breakpoints.tablet})
103
+ {
104
+ ${o};
105
+ }
106
+
107
+ @media screen and (max-width: ${e.breakpoints.mobile}) {
108
+ ${r};
109
+ }
110
+ `}
111
+ `,m=u.forwardRef(function({as:n="div",center:o,children:r,id:i,onHover:a,onLeave:l,styleMd:s,styleSm:c,...d},p){return t.jsx(mo,{$center:o,$styleMd:s,$styleSm:c,as:n,id:i,onMouseLeave:l,onMouseOver:a,ref:p,...d,children:r})}),wo=f.styled(ot)`
112
+ ${({theme:e,$bgGradient:n="unset",$color:o=e.palette.gray[800],$display:r="block",$fontFamily:i=e.typography.type.primary,$fontWeight:a="bold",$letterSpacing:l=0,$lineSpacing:s=1.5,$lineSpacingSm:c,$overflow:d="unset",$size:p,$sizeMd:g,$sizeSm:x,$textFill:h="unset",$whiteSpace:b="pre-line",$wordBreak:w="normal"})=>`
113
+ background: ${n};
114
+ color: ${o};
115
+ display: ${r};
116
+ font-family: ${i};
117
+ font-size: ${e.typography.heading[p]};
118
+ font-weight: ${e.typography.weight[a]};
119
+ letter-spacing: ${l};
120
+ line-height: ${e.spacing[s]};
121
+ overflow: ${d};
122
+ width: ${r==="block"?"100%":"auto"};
123
+ white-space: ${b};
124
+ word-break: ${w};
125
+ background-clip: text;
126
+ -webkit-background-clip: text;
127
+ -webkit-text-fill-color: ${h};
128
+
129
+ @media screen
130
+ and (min-width: ${e.breakpoints.mobile})
131
+ and (max-width: ${e.breakpoints.tablet})
132
+ {
133
+ font-size: ${e.typography.heading[g??p]};
134
+ }
135
+
136
+ @media screen and (max-width: ${e.breakpoints.mobile}) {
137
+ font-size: ${e.typography.heading[x??p]};
138
+ line-height: ${e.spacing[c??s]};
139
+ }
140
+ `}
141
+ `,Dt=f.styled(ot)`
142
+ ${({theme:e,$bgGradient:n="unset",$color:o=e.palette.gray[600],$display:r="block",$fontFamily:i=e.typography.type.primary,$fontWeight:a="regular",$fontStyle:l="normal",$letterSpacing:s=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$overflow:p="unset",$size:g,$sizeMd:x,$sizeSm:h,$textFill:b="unset",$whiteSpace:w="pre-line",$wordBreak:$="normal"})=>`
143
+ background: ${n};
144
+ color: ${o};
145
+ display: ${r};
146
+ font-family: ${i};
147
+ font-size: ${e.typography.text[g]};
148
+ font-style: ${l};
149
+ font-weight: ${e.typography.weight[a]};
150
+ letter-spacing: ${s};
151
+ line-height: ${e.spacing[c]};
152
+ overflow: ${p};
153
+ width: ${r==="block"?"100%":"auto"};
154
+ white-space: ${w};
155
+ word-break: ${$};
156
+ background-clip: text;
157
+ -webkit-background-clip: text;
158
+ -webkit-text-fill-color: ${b};
159
+
160
+ @media screen
161
+ and (min-width: ${e.breakpoints.mobile})
162
+ and (max-width: ${e.breakpoints.tablet})
163
+ {
164
+ font-size: ${e.typography.text[x??g]};
165
+ }
166
+
167
+ @media screen and (max-width: ${e.breakpoints.mobile}) {
168
+ font-size: ${e.typography.text[h??g]};
169
+ line-height: ${e.spacing[d??c]};
170
+ }
171
+ `}
172
+ `,vo=f.styled(rt)`
173
+ ${({theme:e,$color:n=e.palette.gray[600],$content:o=void 0,$display:r="inline",$fontWeight:i="regular",$size:a,$lineSpacing:l=1.25})=>`
174
+ color: ${n};
175
+ display: ${r};
176
+ font-family: ${e.typography.type.primary};
177
+ font-size: ${e.typography.text[a]};
178
+ font-weight: ${e.typography.weight[i]};
179
+ line-height: ${e.spacing[l]};
180
+ max-width: 100%;
181
+ width: ${r==="block"?"100%":"auto"};
182
+
183
+ ${o===void 0?"":`&::after { content: "${o}"; }`}
184
+ `}
185
+ `,J=u.forwardRef(function({bgGradient:n,children:o,className:r,color:i,display:a,fontFamily:l,fontWeight:s,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,overflow:g,size:x,sizeMd:h,sizeSm:b,textFill:w,whiteSpace:$,wordBreak:k,...v},C){return t.jsx(wo,{$bgGradient:n,$color:i,$display:a,$fontFamily:l,$fontWeight:s,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$overflow:g,$size:x,$sizeMd:h,$sizeSm:b,$textFill:w,$whiteSpace:$,$wordBreak:k,className:r,ref:C,...v,children:o})}),he=u.forwardRef(function({children:n,color:o,content:r,display:i,fontFamily:a,fontWeight:l,letterSpacing:s,lineSpacing:c,lineSpacingSm:d,size:p,sizeMd:g,sizeSm:x,...h},b){return t.jsx(vo,{$color:o,$content:r,$display:i,$fontFamily:a,$fontWeight:l,$letterSpacing:s,$lineSpacing:c,$lineSpacingSm:d,$size:p,$sizeMd:g,$sizeSm:x,ref:b,...h,children:n})}),E=u.forwardRef(function({bgGradient:n,children:o,className:r,color:i,display:a,fontFamily:l,fontWeight:s,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,overflow:g,size:x,sizeMd:h,sizeSm:b,textFill:w,whiteSpace:$,wordBreak:k,fontStyle:v,...C},j){return t.jsx(Dt,{$bgGradient:n,$color:i,$display:a,$fontFamily:l,$fontStyle:v,$fontWeight:s,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$overflow:g,$size:x,$sizeMd:h,$sizeSm:b,$textFill:w,$whiteSpace:$,$wordBreak:k,className:r,ref:j,...C,children:o})}),Nt=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(E,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return t.jsxs(m,{display:"block",id:`panel-${e.title}`,padding:[.875,.875,.875,.875],children:[n,e.extraElement?t.jsx(m,{children:e.extraElement}):void 0]})},_e={xl:"24px",lg:"16px",md:"14px",sm:"12px",xs:"10px"},jo=e=>_e[e]?_e[e]:typeof e=="string"&&e.includes("px")?e:_e.md,ko=f.styled(rt)`
186
+ ${({$clickable:e,$color:n="inherit",$disabled:o=!1,$hoverColor:r,$rotation:i,$size:a,$secondaryColor:l})=>{const s=r?"":"brightness(50%)",c=r??"";return`
187
+ color: ${n};
188
+ cursor: ${e?"pointer":"inherit"};
189
+ font-size: ${jo(a)};
190
+ line-height: 0;
191
+ vertical-align: middle;
192
+ pointer-events: inherit;
193
+ opacity: ${o?"0.5":"1"};
194
+
195
+ > svg {
196
+ --fa-secondary-color: ${l};
197
+ transform: ${i===void 0?"":`rotate(${i}deg)`};
198
+ }
199
+
200
+ .fill-gradient-01 path {
201
+ fill: url(/gradients.svg#gradient-01);
202
+ fill: url(#gradient-01);
203
+ }
204
+ .fill-gradient-02 path {
205
+ fill: url(/gradients.svg#gradient-02);
206
+ fill: url(#gradient-02);
207
+ }
208
+
209
+ ${e?`&:hover {
210
+ filter: ${s};
211
+ color: ${c};
212
+ }`:""}
213
+ `}}
214
+ `;f.styled.div`
215
+ cursor: pointer;
216
+ transition: all 0.2s ease-in-out;
217
+
218
+ &:hover:not([disabled]) {
219
+ transform: scale(1.2);
220
+ }
221
+ `;const D=u.forwardRef(function({clickable:n,disabled:o,hoverColor:r,icon:i,iconClass:a="",iconColor:l,iconMask:s,iconSize:c,iconTransform:d,iconType:p="fa-solid",onClick:g,rotation:x,spanClass:h,secondaryColor:b,...w},$){return t.jsx(ko,{$clickable:n,$color:l,$disabled:o,$hoverColor:r,$rotation:x,$secondaryColor:b,$size:c,className:h,"data-testid":`${i}-icon`,onClick:g,ref:$,...w,children:t.jsx("i",{className:`${p} fa-${i} ${a}`,...s!==void 0?{"data-fa-mask":s}:{},...d!==void 0?{"data-fa-transform":d}:{}})},`${p}-${i}`)}),Co=u.forwardRef(function({aligned:n="end",items:o,bgColor:r},i){const a=f.useTheme(),[l,s]=u.useState(o.map(d=>d.expanded??!1)),c=u.useCallback(d=>p=>{p.preventDefault(),s(g=>g.map((x,h)=>h===d?!x:x))},[]);return t.jsx(m,{borderColor:a.palette.gray[200],borderTop:"1px solid",ref:i,children:o.map((d,p)=>{const g=l[p];return t.jsxs(m,{bgColor:r??a.palette.white,borderBottom:"1px solid",borderColor:a.palette.gray[200],children:[t.jsx(m,{"aria-controls":`panel-${d.title}`,"aria-expanded":g,"aria-label":d.title,as:"button",bgColor:r??a.palette.white,bgColorHover:a.palette.gray[100],cursor:"pointer",display:"flex",onClick:c(p),padding:[.875,.875,.875,.875],width:"100%",children:t.jsxs(m,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(E,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:d.title}),t.jsx(D,{icon:g?"chevron-up":"chevron-down",iconColor:a.palette.gray[400],iconSize:"lg",iconType:"fa-light"})]})}),g&&t.jsx(Nt,{item:d})]},d.title)})})}),So=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:zo}=X(e=>({error:`
222
+ background: ${e.palette.error[50]};
223
+ border: 1px solid ${e.palette.error[500]};
224
+ color: ${e.palette.error[700]};
225
+
226
+ button {
227
+ color: ${e.palette.error[700]};
228
+
229
+ &:hover:not([disabled]) {
230
+ background-color: ${e.palette.error[200]};
231
+ color: ${e.palette.error[700]};
232
+ }
233
+ }
234
+ `,info:`
235
+ background: ${e.palette.info[50]};
236
+ border: 1px solid ${e.palette.info[500]};
237
+ color: ${e.palette.info[700]};
238
+
239
+ button {
240
+ color: ${e.palette.info[700]};
241
+
242
+ &:hover:not([disabled]) {
243
+ background-color: ${e.palette.info[200]};
244
+ color: ${e.palette.info[700]};
245
+ }
246
+ }
247
+ `,success:`
248
+ background: ${e.palette.success[50]};
249
+ border: 1px solid ${e.palette.success[500]};
250
+ color: ${e.palette.success[700]};
251
+
252
+ button {
253
+ color: ${e.palette.success[700]};
254
+
255
+ &:hover:not([disabled]) {
256
+ background-color: ${e.palette.success[200]};
257
+ color: ${e.palette.success[700]};
258
+ }
259
+ }
260
+ `,warning:`
261
+ background: ${e.palette.warning[50]};
262
+ border: 1px solid ${e.palette.warning[500]};
263
+ color: ${e.palette.warning[700]};
264
+
265
+ button {
266
+ color: ${e.palette.warning[700]};
267
+
268
+ &:hover:not([disabled]) {
269
+ background-color: ${e.palette.warning[200]};
270
+ color: ${e.palette.warning[700]};
271
+ }
272
+ }
273
+ `})),To=f.styled.div`
274
+ ${({theme:e,$variant:n})=>`
275
+ background: transparent;
276
+ align-items: center;
277
+ border-radius: ${e.spacing[.25]};
278
+ display: inline-flex;
279
+ font-family: ${e.typography.type.primary};
280
+ font-size: ${e.typography.text.sm};
281
+ font-weight: ${e.typography.weight.bold};
282
+ line-height: ${e.spacing[1.25]};
283
+ min-width: 250px;
284
+ width: 100%;
285
+ padding: ${e.spacing[.75]};
286
+ position: relative;
287
+ gap: ${e.spacing[.75]};
288
+
289
+ button {
290
+ background-color: transparent;
291
+ }
292
+
293
+ ${zo(e,n??"error")}
294
+ `}
295
+ `,Io=f.styled.div`
296
+ padding-right: 4px;
297
+ width: 100%;
298
+ `,{getVariant:Eo}=X(e=>({ghost:`
299
+ background: transparent;
300
+ border: none;
301
+ color: ${e.palette.gray[800]};
302
+ --btn-padding-x: ${e.spacing[.5]};
303
+ --btn-padding-y: ${e.spacing[.625]};
304
+ --btn-spacing: ${e.spacing[.25]};
305
+
306
+ &:disabled {
307
+ color: ${e.palette.gray[400]};
308
+ cursor: not-allowed;
309
+ }
310
+
311
+ &:hover:not([disabled]) {
312
+ background-color: ${e.palette.gray[100]};
313
+ color: ${e.palette.gray[800]};
314
+ }
315
+ `,link:`
316
+ --btn-padding-x: 0;
317
+ --btn-padding-y: 0;
318
+ color: ${e.palette.gray[800]};
319
+
320
+ &:hover {
321
+ color: ${e.palette.gray[500]};
322
+ }
323
+ `,primary:`
324
+ background: ${e.palette.primary[500]};
325
+ border: none;
326
+ color: ${e.palette.white};
327
+ --btn-spacing: ${e.spacing[.25]};
328
+
329
+ &:disabled {
330
+ background: ${e.palette.gray[200]};
331
+ color: ${e.palette.gray[400]};
332
+ cursor: not-allowed;
333
+ }
334
+
335
+ &:hover:not([disabled]) {
336
+ background-color: ${e.palette.primary[700]};
337
+ color: ${e.palette.white};
338
+ }
339
+ `,secondary:`
340
+ background: ${e.palette.gray[800]};
341
+ border: none;
342
+ color: ${e.palette.white};
343
+ --btn-spacing: ${e.spacing[.25]};
344
+
345
+ &:disabled {
346
+ background: ${e.palette.gray[200]};
347
+ color: ${e.palette.gray[400]};
348
+ cursor: not-allowed;
349
+ }
350
+
351
+ &:hover:not([disabled]) {
352
+ background-color: ${e.palette.gray[600]};
353
+ color: ${e.palette.white};
354
+ }
355
+ `,tertiary:`
356
+ background: transparent;
357
+ border: 1px solid ${e.palette.primary[500]};
358
+ color: ${e.palette.primary[500]};
359
+ --btn-spacing: ${e.spacing[.25]};
360
+
361
+ &:disabled {
362
+ background: transparent;
363
+ border: 1px solid ${e.palette.gray[200]};
364
+ color: ${e.palette.gray[300]};
365
+ cursor: not-allowed;
366
+ }
367
+
368
+ &:hover:not([disabled]) {
369
+ background-color: ${e.palette.primary[500]};
370
+ color: ${e.palette.white};
371
+ }
372
+ `})),Ft=f.styled(nt)`
373
+ ${({theme:e,justify:n,$variant:o,$notification:r,$icon:i})=>`
374
+ align-items: center;
375
+ border-radius: var(--btn-spacing);
376
+ cursor: pointer;
377
+ display: inline-flex;
378
+ font-family: ${e.typography.type.primary};
379
+ font-size: ${e.typography.text.sm};
380
+ font-weight: ${e.typography.weight.regular};
381
+ gap: var(--btn-spacing);
382
+ justify-content: ${n??"center"};
383
+ line-height: ${e.spacing[1.25]};
384
+ padding: var(--btn-padding-y) var(--btn-padding-x);
385
+ position: relative;
386
+ text-align: start;
387
+ transition: all 0.5s ease;
388
+ white-space: nowrap;
389
+
390
+ @media screen and (max-width: ${e.breakpoints.mobile}) {
391
+ ${o!=="link"?`--btn-padding-y: ${e.spacing[1]}`:""};
392
+ }
393
+
394
+ ${Eo(e,o??"primary")}
395
+
396
+ ${r?`
397
+ ::before {
398
+ content: "";
399
+ position: absolute;
400
+ top: 20%;
401
+ left: ${i?"10%":"1%"};
402
+ width: ${e.spacing[.5]};
403
+ height: ${e.spacing[.5]};
404
+ background-color: ${e.palette.primary[400]};
405
+ border-radius: 50%;
406
+ }
407
+ `:""}
408
+ `}
409
+ `,Ro=f.styled.div`
410
+ ${({theme:e})=>`
411
+ align-items: center;
412
+ background-color: ${e.palette.primary[400]};
413
+ border-radius: 100px;
414
+ display: flex;
415
+ color: ${e.palette.white};
416
+ font-family: ${e.typography.type.primary};
417
+ font-size: ${e.typography.text.xs};
418
+ font-weight: ${e.typography.weight.regular};
419
+ height: 14px;
420
+ justify-content: center;
421
+ line-height: 18px;
422
+ padding: ${e.spacing[.125]} 7px;
423
+ `}
424
+ `,Do=f.styled(Ft)`
425
+ ${({theme:e,disabled:n,borderRadius:o="4px",px:r=.5,py:i=.5,$variant:a})=>`
426
+ --btn-spacing: ${o};
427
+ --btn-padding-x: ${e.spacing[r]};
428
+ --btn-padding-y: ${e.spacing[i]};
429
+
430
+ align-items: center;
431
+ line-height: 0;
432
+ text-align: center;
433
+ ${a==="ghost"?`color: ${e.palette.gray[700]};`:""}
434
+
435
+ > span {
436
+ margin: 0 !important;
437
+ ${n?`color: ${e.palette.gray[300]};`:""}
438
+ }
439
+ `}
440
+ `,No=f.styled(Se)``,Fo=f.styled.div`
441
+ background-color: ${({theme:e})=>e.palette.gray[700]};
442
+ border-radius: 8px;
443
+ color: ${({theme:e})=>e.palette.white};
444
+ font-size: ${({theme:e})=>e.typography.text.xs};
445
+ max-width: ${({$maxWidth:e="320px"})=>e};
446
+ padding: ${({theme:e})=>e.spacing[.75]};
447
+ width: max-content;
448
+ z-index: 999999;
449
+ position: relative;
450
+ `,Ao=f.styled.div`
451
+ position: absolute;
452
+ width: 0;
453
+ height: 0;
454
+
455
+ ${({placement:e,theme:n})=>{const o="8px",r=n.palette.gray[700];switch(e){case"top":return`
456
+ bottom: -${o};
457
+ left: 50%;
458
+ transform: translateX(-50%);
459
+ border-left: ${o} solid transparent;
460
+ border-right: ${o} solid transparent;
461
+ border-top: ${o} solid ${r};
462
+ `;case"bottom":return`
463
+ top: -${o};
464
+ left: 50%;
465
+ transform: translateX(-50%);
466
+ border-left: ${o} solid transparent;
467
+ border-right: ${o} solid transparent;
468
+ border-bottom: ${o} solid ${r};
469
+ `;case"left":return`
470
+ right: -${o};
471
+ top: 50%;
472
+ transform: translateY(-50%);
473
+ border-top: ${o} solid transparent;
474
+ border-bottom: ${o} solid transparent;
475
+ border-left: ${o} solid ${r};
476
+ `;case"right":return`
477
+ left: -${o};
478
+ top: 50%;
479
+ transform: translateY(-50%);
480
+ border-top: ${o} solid transparent;
481
+ border-bottom: ${o} solid transparent;
482
+ border-right: ${o} solid ${r};
483
+ `;case"top-start":return`
484
+ bottom: -${o};
485
+ left: 16px;
486
+ border-left: ${o} solid transparent;
487
+ border-right: ${o} solid transparent;
488
+ border-top: ${o} solid ${r};
489
+ `;case"top-end":return`
490
+ bottom: -${o};
491
+ right: 16px;
492
+ border-left: ${o} solid transparent;
493
+ border-right: ${o} solid transparent;
494
+ border-top: ${o} solid ${r};
495
+ `;case"bottom-start":return`
496
+ top: -${o};
497
+ left: 16px;
498
+ border-left: ${o} solid transparent;
499
+ border-right: ${o} solid transparent;
500
+ border-bottom: ${o} solid ${r};
501
+ `;case"bottom-end":return`
502
+ top: -${o};
503
+ right: 16px;
504
+ border-left: ${o} solid transparent;
505
+ border-right: ${o} solid transparent;
506
+ border-bottom: ${o} solid ${r};
507
+ `;case"left-start":return`
508
+ right: -${o};
509
+ top: 16px;
510
+ border-top: ${o} solid transparent;
511
+ border-bottom: ${o} solid transparent;
512
+ border-left: ${o} solid ${r};
513
+ `;case"left-end":return`
514
+ right: -${o};
515
+ bottom: 16px;
516
+ border-top: ${o} solid transparent;
517
+ border-bottom: ${o} solid transparent;
518
+ border-left: ${o} solid ${r};
519
+ `;case"right-start":return`
520
+ left: -${o};
521
+ top: 16px;
522
+ border-top: ${o} solid transparent;
523
+ border-bottom: ${o} solid transparent;
524
+ border-right: ${o} solid ${r};
525
+ `;case"right-end":return`
526
+ left: -${o};
527
+ bottom: 16px;
528
+ border-top: ${o} solid transparent;
529
+ border-bottom: ${o} solid transparent;
530
+ border-right: ${o} solid ${r};
531
+ `;default:return`
532
+ top: -${o};
533
+ left: 50%;
534
+ transform: translateX(-50%);
535
+ border-left: ${o} solid transparent;
536
+ border-right: ${o} solid transparent;
537
+ border-bottom: ${o} solid ${r};
538
+ `}}}
539
+ `,U=({children:e,disabled:n=!1,display:o="inline-block",height:r,icon:i,iconColor:a,iconSize:l,id:s,maxWidth:c,nodeTip:d,place:p="bottom",tip:g="",title:x="",hide:h=g===""&&x===""&&d===void 0,width:b})=>{const w=f.useTheme(),[$,k]=u.useState(!1),{refs:v,floatingStyles:C,context:j,placement:z}=y.useFloating({middleware:[y.flip({fallbackAxisSideDirection:"start"}),y.offset({mainAxis:10}),y.shift()],onOpenChange:k,open:$,placement:p,whileElementsMounted:y.autoUpdate}),R=y.useHover(j,{delay:{close:0,open:500},move:!1}),T=y.useFocus(j),S=y.useRole(j,{role:i?"label":"tooltip"}),{getReferenceProps:A,getFloatingProps:I}=y.useInteractions([R,T,S]);return n?t.jsx(u.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(No,{...A(),display:o,height:r,id:s,ref:v.setReference,width:b,children:i?t.jsx(D,{clickable:!0,disabled:n,icon:i,iconColor:a,iconSize:l??"sm",iconType:$?"fa-solid":"fa-light"}):e}),$&&!h&&le.createPortal(t.jsxs(Fo,{...I(),$maxWidth:c,id:`floating-${s}`,ref:v.setFloating,style:C,children:[y.lodashExports.isEmpty(x)?void 0:t.jsx(E,{color:w.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",mb:.25,textAlign:"start",wordWrap:"break-word",children:x}),y.lodashExports.isEmpty(g)?void 0:t.jsx(E,{color:w.palette.gray[100],lineSpacing:1.5,size:"sm",whiteSpace:"normal",textAlign:"start",wordWrap:"break-word",children:g}),y.lodashExports.isEmpty(d)?void 0:d,t.jsx(Ao,{placement:z})]}),document.getElementById("root")??document.body)]})},H=u.forwardRef(function({borderRadius:n,disabled:o,icon:r,iconColor:i,iconSize:a="sm",iconTransform:l,iconType:s,id:c,justify:d="center",onClick:p,px:g,py:x,type:h="button",tooltip:b,tooltipPlace:w,value:$,variant:k="primary",...v},C){const j=t.jsx(Do,{$variant:k,"aria-disabled":o,"aria-label":c,borderRadius:n,disabled:o,id:c,justify:d,onClick:p,px:g,py:x,ref:C,type:h,value:$,...v,children:t.jsx(D,{clickable:!1,icon:r,iconColor:i,iconSize:a,iconTransform:l,iconType:s})}),R=(h+(k??"")+(c??r)).replace(/ /u,"_");return b===void 0?j:t.jsx(U,{id:`${R}-tooltip`,place:w,tip:b,children:j})}),Lo=u.forwardRef(function({autoHide:n=!1,children:o,closable:r=!1,iconEnabled:i=!0,onTimeOut:a,show:l=!0,time:s=8,variant:c="error",id:d,...p},g){const[x,h]=u.useState(l),b=u.useCallback(()=>{h(!1)},[]);return u.useEffect(()=>{const w=setTimeout(()=>{a==null||a(!0),n&&b()},s*1e3);return()=>{clearTimeout(w)}},[n,b,s,a]),u.useEffect(()=>{h(l)},[l,h]),t.jsx(m,{display:x?"block":"none",ref:g,role:"alert",...p,children:t.jsxs(To,{$variant:c,id:d,children:[i?t.jsx(D,{clickable:!1,icon:So(c),iconSize:"lg",iconType:"fa-light"}):void 0,t.jsx(Io,{children:o}),r?t.jsx(H,{height:"fit-content",icon:"close",iconSize:"lg",iconType:"fa-light",onClick:b,px:.125,py:.125,variant:"ghost"}):void 0]})})}),yt=f.styled.div`
540
+ ${({theme:e})=>`
541
+ align-items: center;
542
+ background-color: ${e.palette.gray[200]};
543
+ border-radius: 100%;
544
+ color: ${e.palette.gray[800]};
545
+ display: flex;
546
+ font-family: ${e.typography.type.primary};
547
+ font-size: ${e.typography.text.xs};
548
+ font-weight: 500;
549
+ line-height: 18px;
550
+ justify-content: center;
551
+ text-align: center;
552
+ width: ${e.spacing[1.25]};
553
+ height: ${e.spacing[1.25]};
554
+ `}
555
+ `,Po=f.styled.div`
556
+ ul,
557
+ ol {
558
+ padding-top: 6px;
559
+ padding-bottom: 6px;
560
+ background-color: #fff;
561
+ position: absolute;
562
+ top: 40px;
563
+ right: 1px;
564
+ z-index: 1;
565
+ }
566
+
567
+ .no-hover,
568
+ .user-info {
569
+ text-decoration: none;
570
+ display: flex;
571
+ justify-content: space-between;
572
+ height: auto;
573
+ }
574
+
575
+ .user-info,
576
+ .commit-info {
577
+ padding-left: 16px;
578
+ padding-right: 16px;
579
+ }
580
+
581
+ .user-info {
582
+ padding-top: 10px;
583
+ padding-bottom: 1px;
584
+ }
585
+
586
+ .commit-info {
587
+ padding-top: 1px;
588
+ padding-bottom: 10px;
589
+ }
590
+
591
+ li {
592
+ list-style-type: none;
593
+ }
594
+
595
+ span {
596
+ white-space: nowrap;
597
+ }
598
+
599
+ a {
600
+ color: ${({theme:e})=>e.palette.gray[800]};
601
+ text-decoration: none;
602
+ padding: unset;
603
+ }
604
+
605
+ a:hover {
606
+ text-decoration: none;
607
+ color: ${({theme:e})=>e.palette.gray[800]};
608
+ }
609
+
610
+ #menu-profile-container ul {
611
+ min-width: unset;
612
+ width: auto;
613
+ z-index: 10;
614
+ }
615
+
616
+ #menu-profile-container li div {
617
+ min-width: unset;
618
+ }
619
+ `,{getVariant:Oo}=X(e=>({default:`
620
+ background-color: ${e.palette.gray[200]};
621
+ color: ${e.palette.gray[800]};
622
+ `,error:`
623
+ &.high {
624
+ background-color: ${e.palette.error[700]};
625
+ color: ${e.palette.white};
626
+ }
627
+ &.low {
628
+ background-color: ${e.palette.error[50]};
629
+ color: ${e.palette.error[700]};
630
+ }
631
+ &.medium {
632
+ background-color: ${e.palette.error[500]};
633
+ color: ${e.palette.error[50]};
634
+ }
635
+ `,inactive:`
636
+ background-color: ${e.palette.gray[200]};
637
+ color: ${e.palette.gray[600]};
638
+ `,info:`
639
+ &.high {
640
+ background-color: ${e.palette.info[700]};
641
+ color: ${e.palette.white};
642
+ }
643
+ &.low {
644
+ background-color: ${e.palette.info[50]};
645
+ color: ${e.palette.info[700]};
646
+ }
647
+ &.medium {
648
+ background-color: ${e.palette.info[500]};
649
+ color: ${e.palette.info[50]};
650
+ }
651
+ `,reachable:`
652
+ background-color: ${e.palette.gray[50]};
653
+ color: ${e.palette.gray[800]};
654
+ `,remediation:`
655
+ background-color: inherit;
656
+ border: 1px solid ${e.palette.gray[300]};
657
+ color: ${e.palette.gray[400]};
658
+ `,role:`
659
+ background-color: ${e.palette.gray[800]};
660
+ color: ${e.palette.white};
661
+ `,success:`
662
+ &.high {
663
+ background-color: ${e.palette.success[700]};
664
+ color: ${e.palette.white};
665
+ }
666
+ &.low {
667
+ background-color: ${e.palette.success[50]};
668
+ color: ${e.palette.success[700]};
669
+ }
670
+ &.medium {
671
+ background-color: ${e.palette.success[500]};
672
+ color: ${e.palette.success[50]};
673
+ }
674
+ `,technique:`
675
+ --tag-padding-y: ${e.spacing[.25]};
676
+ --tag-padding-x: ${e.spacing[.75]};
677
+
678
+ background-color: inherit;
679
+ border: 1px solid ${e.palette.success[800]};
680
+ color: ${e.palette.success[800]};
681
+ `,warning:`
682
+ &.high {
683
+ background-color: ${e.palette.warning[600]};
684
+ color: ${e.palette.white};
685
+ }
686
+ &.low {
687
+ background-color: ${e.palette.warning[50]};
688
+ color: ${e.palette.warning[700]};
689
+ }
690
+ &.medium {
691
+ background-color: ${e.palette.warning[400]};
692
+ color: ${e.palette.warning[700]};
693
+ }
694
+ `})),Mo=f.styled.span`
695
+ ${({theme:e,$fontSize:n=e.typography.text.xs,$variant:o})=>`
696
+ align-items: center;
697
+ border-radius: ${e.spacing[o==="technique"?1:.25]};
698
+ display: inline-flex;
699
+ gap: ${e.spacing[.25]};
700
+ font-family: ${e.typography.type.primary};
701
+ font-size: ${n};
702
+ font-style: normal;
703
+ font-weight: ${e.typography.weight.regular};
704
+ justify-content: center;
705
+ line-height: 18px;
706
+ padding: var(--tag-padding-y) var(--tag-padding-x);
707
+ white-space: nowrap;
708
+ width: max-content;
709
+
710
+ ~ a {
711
+ font-size: ${e.typography.text.xs};
712
+ display: flex;
713
+ }
714
+
715
+ ${Oo(e,o)}
716
+ `}
717
+ `,{getVariant:Ho}=X(e=>({highRelevance:`
718
+ color: ${e.palette.primary[500]};
719
+
720
+ &:hover:not([disabled]) {
721
+ color: ${e.palette.primary[400]};
722
+ }
723
+ `,lowRelevance:`
724
+ color: ${e.palette.gray[800]};
725
+
726
+ &:hover:not([disabled]) {
727
+ color: ${e.palette.gray[500]};
728
+ }
729
+ `})),At=f.css`
730
+ ${({theme:e,$color:n,$variant:o,$wrap:r})=>`
731
+ align-items: center;
732
+ cursor: pointer;
733
+ font-family: ${e.typography.type.primary};
734
+ font-size: ${e.typography.text.sm};
735
+ font-weight: ${e.typography.weight.regular};
736
+ gap: ${e.spacing[.25]};
737
+ line-height: ${e.spacing[1.25]};
738
+ text-decoration: underline;
739
+ ${r?`
740
+ word-break: normal;
741
+ word-wrap: normal;
742
+ `:`
743
+ word-break: break-word;
744
+ word-wrap: break-word;
745
+ `}
746
+
747
+ &:disabled {
748
+ color: ${e.palette.gray[300]};
749
+ cursor: not-allowed;
750
+ }
751
+
752
+ &:has(button) {
753
+ text-decoration: none;
754
+ }
755
+
756
+ ${n?`color: ${n}`:Ho(e,o)}
757
+ `}
758
+ `,Wo=f.styled.a`
759
+ ${At}
760
+ `,Bo=f.styled(Ue.Link)`
761
+ ${At}
762
+ `,Q=({children:e,color:n,download:o,href:r,iconPosition:i="right",onClick:a,target:l,variant:s="lowRelevance",wrap:c=!1})=>{const d=r.startsWith("https://"),p=t.jsx(D,{icon:o===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"sm",iconType:"fa-light",ml:.25,mr:.25});return d?t.jsxs(Wo,{$color:n,$variant:s,$wrap:c,download:o,href:r,onClick:a,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[i==="left"?p:void 0,e,i==="right"?p:void 0]}):t.jsxs(Bo,{$variant:s,$wrap:c,download:o,onClick:a,rel:"nofollow noopener noreferrer",target:l,to:r,children:[l!==void 0&&i==="left"?p:void 0,e,l!==void 0&&i==="right"?p:void 0]})},Y=({disabled:e,icon:n,iconColor:o="inherit",iconType:r="fa-light",id:i="close-tag",filterValues:a="",fontSize:l,href:s,linkLabel:c,onClose:d,priority:p="default",tagTitle:g="",tagLabel:x,variant:h="default"})=>{const b=x.length>25&&y.lodashExports.isEmpty(g+a),w=`${x.slice(0,25)}...`;return t.jsxs(he,{className:"gap-0.5",display:s===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Mo,{$fontSize:l,$variant:h,className:p,children:[n&&t.jsx(D,{icon:n,iconColor:o,iconSize:"sm",iconType:r}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:g}),t.jsx("span",{children:b?w:x}),t.jsx("strong",{className:"w-full",children:a})]}),d?t.jsx(H,{disabled:e,icon:"xmark",iconSize:"sm",iconType:"fa-light",id:i,onClick:d,px:.125,py:.125,variant:"ghost"}):void 0]}),s===void 0?void 0:t.jsx(Q,{href:s,children:c})]})},Lt=(e,n=!0)=>{const o=window.open(e,n?void 0:"_self","noopener,noreferrer,");y.lodashExports.isObject(o)&&(o.opener=null)},O=u.forwardRef(function({children:n,disabled:o=!1,external:r=!1,href:i,id:a,icon:l,iconColor:s,iconType:c,name:d,dotNotification:p,notification:g,onClick:x,rightIcon:h,tag:b,type:w="button",tooltip:$,tooltipPlace:k="bottom",underline:v=!1,value:C,variant:j="primary",width:z,...R},T){const S=$!==void 0,A=`${a}-tooltip`,I=u.useCallback(()=>{i&&Lt(i,r)},[r,i]),L=t.jsxs(Ft,{$icon:l!==void 0,$notification:p&&j==="ghost"&&!o,$variant:j,"aria-disabled":o,className:v?"underline":void 0,disabled:o,id:a,name:d,onClick:j==="link"?I:x,ref:T,type:w,value:C,width:z,...S?{"data-tooltip-id":A}:{},...R,children:[l!==void 0&&t.jsx(D,{icon:l,iconColor:s??void 0,iconSize:"lg",iconType:c??"fa-light"}),n,h||j==="link"?t.jsx(D,{icon:h??"arrow-right",iconSize:"lg",iconType:"fa-light"}):void 0,b===void 0||o?null:t.jsx(Y,{tagLabel:b,variant:"default"}),g!==void 0&&j==="ghost"&&!o?t.jsx(Ro,{children:g}):void 0]});return S?t.jsx(U,{disabled:!S,id:A,place:k,tip:$,width:z,children:L}):L}),_o=u.forwardRef(function({children:n,onClick:o,userName:r,showIcon:i=!1,showUsername:a=!1},l){const s=!!o;return t.jsx(m,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs(m,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[s?t.jsxs(O,{onClick:o,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(yt,{children:r[0].toUpperCase()}),a?t.jsx(E,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:r.split(" ")[0]}):void 0,i?t.jsx(D,{clickable:!1,icon:"ellipsis-v",iconSize:"xs",ml:.5}):void 0]}):t.jsxs(m,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(yt,{children:r[0].toUpperCase()}),a?t.jsxs(E,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",r.split(" ")[0],"!"]}):void 0,i?t.jsx(D,{clickable:!1,icon:"ellipsis-v",iconSize:"xs",ml:.5}):void 0]}),t.jsx(Po,{children:n})]})})}),Fe=({authorEmail:e,date:n,description:o,descriptionColor:r,id:i,title:a,titleColor:l,textAlign:s,textSpacing:c=0,tooltip:d})=>{const p=f.useTheme();return t.jsxs(m,{width:"100%",children:[typeof a=="string"||d?t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.5,width:"100%",children:[typeof a=="string"?t.jsx(E,{color:l??p.palette.gray[800],fontWeight:"bold",mb:c,size:"sm",textAlign:s,wordBreak:"break-word",children:a}):a,d&&t.jsx(U,{icon:"circle-info",id:i,place:"top",tip:d})]}):void 0,t.jsxs(m,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[o&&t.jsx(E,{color:r??p.palette.gray[800],fontWeight:o===void 0?"bold":"regular",size:"sm",textAlign:s,wordBreak:"break-word",children:o}),n&&t.jsx(E,{color:p.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(E,{color:p.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Author: ${e}`})]})]})},bt=f.styled(m).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
763
+ & img {
764
+ display: block;
765
+ }
766
+
767
+ &::after {
768
+ content: "";
769
+ position: absolute;
770
+ top: 0;
771
+ left: 0;
772
+ width: 100%;
773
+ height: 100%;
774
+ pointer-events: none;
775
+ ${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
776
+ }
777
+ `,Vo=e=>{if(y._.isNil(e))return"";const n=e.split(".");return(n.length>1?y._.last(n):"").toLowerCase()},Uo=(e,n)=>y._.isUndefined(n)?!1:y._.includes(e,Vo(n)),Pt=({alt:e,fileType:n,width:o="100%",opacity:r=0,src:i,height:a="auto",videoViewStatus:l})=>{const[s,c]=u.useState({start:!1,half:!1,end:!1}),d=u.useCallback(p=>{if(!l)return;const g=p.target,x=g.currentTime/g.duration*100;x>5&&x<50?(s.start||l("start"),c({start:!0,half:!1,end:!1})):x>=50&&x<99?(s.half||l("half"),c({start:!0,half:!0,end:!1})):x>=99?(s.end||l("end"),c({start:!0,half:!0,end:!0})):c({start:!1,half:!1,end:!1})},[l,s]);return n==="video"||Uo(["webm"],i)?t.jsx(bt,{$opacity:r,children:t.jsx(Q,{href:i,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:d,style:{height:a,width:o},children:[t.jsx("source",{src:i,type:"video/webm"}),i]})})}):t.jsx(bt,{$opacity:r,children:t.jsx("img",{alt:e,src:i,style:{height:a,width:o}})})},Go=({alt:e,authorEmail:n,date:o,description:r,src:i,children:a,isEditing:l,onClick:s,title:c,hideDescription:d=!1,headerType:p="image",showMaximize:g=!0,videoViewStatus:x})=>{const h=f.useTheme(),[b,w]=u.useState(!1),$=u.useCallback(()=>{w(!0)},[]),k=u.useCallback(()=>{w(!1)},[]);return t.jsxs(m,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:$,onLeave:k,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(m,{bgColor:h.palette.black,borderRadius:h.spacing[.25],cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:s,position:"relative",width:"100%",children:a===void 0?t.jsxs(tt.default.Fragment,{children:[t.jsx(Pt,{alt:e,fileType:p,height:"147px",opacity:b?.3:0,src:i,videoViewStatus:x,width:"100%"}),g?t.jsx(m,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(H,{color:"white",icon:"arrows-maximize",iconSize:"sm",iconType:"fa-light",variant:"secondary"})}):void 0]}):a}),d?null:t.jsx(Fe,{authorEmail:n,date:o,description:r,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:c})]})},Yo=f.styled.div`
778
+ ${({theme:e,$align:n="center",$minWidth:o="auto",$minHeight:r="auto"})=>`
779
+ display: flex;
780
+ background-color: ${e.palette.white};
781
+ border-radius: ${e.spacing[.25]};
782
+ border: 1px solid ${e.palette.gray[200]};
783
+ flex-direction: column;
784
+ justify-content: center;
785
+ gap: ${e.spacing[.5]};
786
+ min-width: ${o};
787
+ min-height: ${r};
788
+ padding: ${e.spacing[1]};
789
+
790
+ input {
791
+ color: ${e.palette.gray[800]};
792
+ line-height: ${e.spacing[1.5]};
793
+ text-align: ${n};
794
+ }
795
+ `}
796
+ `,it=({htmlFor:e,label:n,link:o,required:r,tooltip:i,weight:a="normal"})=>{const l=f.useTheme(),s=`${e}-tooltip`,c=i!==void 0&&!y.lodashExports.isEmpty(i);return t.jsxs("label",{className:"flex gap-1 w-full",htmlFor:e,style:{fontWeight:l.typography.weight[a]},children:[n,r&&t.jsx(D,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xs",spanClass:"required-icon"}),c?t.jsx(U,{display:"inline-flex",icon:"circle-info",id:s,place:"top",tip:i}):null,o?t.jsx(Q,{href:o,target:"_blank"}):null]})},Ko=f.styled.div`
797
+ ${({theme:e})=>`
798
+ align-items: flex-start;
799
+ display: inline-flex;
800
+ flex-direction: column;
801
+ gap: ${e.spacing[.25]};
802
+ position: relative;
803
+ width: 100%;
804
+
805
+ label {
806
+ color: ${e.palette.gray[800]};
807
+
808
+ > *:not(.required-icon) {
809
+ align-items: center;
810
+ display: flex;
811
+
812
+ span {
813
+ margin: 0;
814
+ }
815
+ }
816
+ }
817
+
818
+ &:has(input.date-input) {
819
+ div {
820
+ padding-right: 0;
821
+ }
822
+ }
823
+
824
+ &:has(input[type="file"]) {
825
+ div {
826
+ border-right: unset;
827
+ padding-right: 0;
828
+
829
+ &:hover, &:focus-within {
830
+ border-right: unset;
831
+ }
832
+ }
833
+ }
834
+
835
+ > *:not(.error-msg) {
836
+ font-family: ${e.typography.type.primary};
837
+ font-size: ${e.typography.text.sm};
838
+ font-style: normal;
839
+ font-weight: ${e.typography.weight.regular};
840
+ line-height: ${e.spacing[1.25]};
841
+ }
842
+ `}
843
+ `,oe=f.styled.div`
844
+ ${({theme:e,$overflowX:n})=>`
845
+ align-items: center;
846
+ display: flex;
847
+ border-radius: ${e.spacing[.5]};
848
+ border: 1px solid;
849
+ border-color: ${e.palette.gray[300]};
850
+ color: ${e.palette.gray[600]};
851
+ gap: ${e.spacing[.625]};
852
+ justify-content: space-between;
853
+ height: 40px;
854
+ overflow-x: ${n??"unset"};
855
+ padding: ${n===void 0?`${e.spacing[.625]} ${e.spacing[.75]}`:`${e.spacing[.25]} ${e.spacing[.75]}`};
856
+ width: 100%;
857
+ white-space: nowrap;
858
+
859
+ input, textarea {
860
+ background: inherit;
861
+ color: ${e.palette.gray[800]};
862
+ cursor: inherit;
863
+ outline: none;
864
+ resize: none;
865
+ width: 100%;
866
+
867
+ &::placeholder {
868
+ color: ${e.palette.gray[400]};
869
+ }
870
+
871
+ &:focus-visible {
872
+ outline: none;
873
+ }
874
+
875
+ &[type="number"] {
876
+ appearance: textfield;
877
+ }
878
+
879
+ &::-webkit-outer-spin-button,
880
+ &::-webkit-inner-spin-button {
881
+ appearance: none;
882
+ margin: 0;
883
+ }
884
+
885
+ &::-webkit-calendar-picker-indicator {
886
+ display: none !important;
887
+ }
888
+ }
889
+
890
+ input.date-input {
891
+ display: none;
892
+ width: 0;
893
+ }
894
+
895
+ &:has(textarea) {
896
+ align-items: start;
897
+ height: auto;
898
+ }
899
+
900
+ &:has(input[type="number"]) {
901
+ padding-right: 0;
902
+ }
903
+
904
+ textarea {
905
+ min-height: ${e.spacing[6]};
906
+ }
907
+
908
+ span:not(.action) {
909
+ font-size: 14px;
910
+ }
911
+
912
+ &.disabled {
913
+ background: ${e.palette.gray[100]};
914
+ border-color: ${e.palette.gray[300]};
915
+ cursor: not-allowed;
916
+
917
+ > * {
918
+ color: ${e.palette.gray[500]};
919
+ }
920
+ }
921
+
922
+ &.error:not(.disabled) {
923
+ border: 1px solid ${e.palette.error[500]};
924
+ }
925
+
926
+ &.success:not(.disabled) {
927
+ border: 1px solid ${e.palette.success[500]};
928
+ }
929
+
930
+ &:focus-within:not(.disabled, .error) {
931
+ background: ${e.palette.white};
932
+ border: 2px solid ${e.palette.black};
933
+
934
+ button.action-btn {
935
+ height: 36px;
936
+ width: 40px;
937
+ }
938
+
939
+ * > .success-icon {
940
+ display: none;
941
+ }
942
+ }
943
+
944
+ &:hover:not(:focus-within, .disabled, .error, .success) {
945
+ background: ${e.palette.white};
946
+ border: 1px solid ${e.palette.gray[600]};
947
+ }
948
+ `}
949
+ `,qo=f.styled.div`
950
+ ${({theme:e,$show:n})=>`
951
+ align-items: center;
952
+ align-self: stretch;
953
+ color: ${e.palette.error[500]};
954
+ display: ${n?"flex":"none"};
955
+ font-family: ${e.typography.type.primary};
956
+ font-size: ${e.typography.text.xs};
957
+ font-weight: ${e.typography.weight.regular};
958
+ gap: 4px;
959
+ line-height: 18px;
960
+ text-align: left;
961
+ `}
962
+ `,V=({children:e,disabled:n,id:o,error:r,helpLink:i,helpLinkText:a="Link here",helpText:l,htmlFor:s,label:c,linkPosition:d="down",maxLength:p,required:g,tooltip:x,value:h,weight:b})=>{const w=f.useTheme(),$=h?h.length:0;return t.jsxs(Ko,{id:o,children:[c===void 0?void 0:t.jsx(it,{htmlFor:s,label:c,link:d==="up"?i:void 0,required:g,tooltip:x,weight:b}),e,r||p?t.jsxs(m,{display:"flex",justify:r===void 0?"end":"space-between",width:"100%",children:[r&&t.jsx(E,{className:"error-msg",color:w.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:r}),p&&t.jsx(Y,{priority:"low",tagLabel:`${$}/${p}`,variant:n?"inactive":"error"})]}):void 0,l||i?t.jsxs(m,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[l&&t.jsxs(t.Fragment,{children:[t.jsx(D,{icon:"circle-info",iconColor:w.palette.gray[400],iconSize:"sm",iconType:"fa-light"}),t.jsx(E,{color:w.palette.gray[400],display:"inline-block",size:"sm",children:l})]}),i&&d==="down"?t.jsx(Q,{href:i,children:a}):void 0]}):void 0]})},ze=({className:e,children:n,isFilter:o=!1,popoverRef:r,state:i,triggerRef:a,...l})=>{var x;const s=f.useTheme(),c=u.useRef(null),d=(x=a==null?void 0:a.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:p}=y.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:r??c,triggerRef:a,isNonModal:r?!0:void 0,shouldFlip:e==="dropdown"},i),g=u.useCallback(h=>{h.preventDefault()},[]);return t.jsx(y.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...p,className:e,id:"popover",onPointerDown:o?g:void 0,ref:r??c,style:{...p.style,maxHeight:300,overflowY:"auto",scrollbarColor:`${s.palette.gray[600]} ${s.palette.gray[100]}`,scrollPadding:s.spacing[.5],...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},Zo=f.styled.ul`
963
+ ${({theme:e,$multiSelection:n})=>`
964
+ align-self: center;
965
+ background: ${e.palette.white};
966
+ border: 1px solid ${e.palette.gray[200]};
967
+ border-radius: ${e.spacing[.25]};
968
+ box-shadow: ${e.shadows.md};
969
+ list-style: none;
970
+ max-height: 200px;
971
+ min-width: 240px;
972
+ overflow: hidden auto;
973
+ padding: ${e.spacing[.25]} 0;
974
+ scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
975
+ scroll-padding: ${e.spacing[.5]};
976
+ width: 95%;
977
+
978
+ > li:first-child {
979
+ border-bottom: ${n?`1px solid ${e.palette.gray[200]}`:"unset"};
980
+ }
981
+ `}
982
+ `,Xo=f.styled.li`
983
+ ${({theme:e,$multiSelection:n})=>`
984
+ align-items: center;
985
+ color: ${e.palette.gray[800]};
986
+ cursor: pointer;
987
+ display: flex;
988
+ gap: ${e.spacing[.5]};
989
+ justify-content: space-between;
990
+ line-height: ${e.spacing[1.25]};
991
+ padding: ${n?`${e.spacing[.125]} ${e.spacing[.75]}`:`${e.spacing[.25]} ${e.spacing[1]}`};
992
+
993
+ a, p, label {
994
+ display: inline-flex;
995
+ overflow: hidden;
996
+ padding: ${n?e.spacing[.25]:"0"};
997
+ width: 100%;
998
+ }
999
+
1000
+ > div {
1001
+ width: 100%;
1002
+ }
1003
+
1004
+ span {
1005
+ color: ${e.palette.gray[700]};
1006
+ }
1007
+
1008
+ &:hover:not(.disabled, .selected) {
1009
+ background: ${e.palette.gray[100]};
1010
+ }
1011
+
1012
+ &.selected {
1013
+ background: ${n?"unset":e.palette.gray[200]};
1014
+ }
1015
+
1016
+ &.disabled {
1017
+ background: ${e.palette.gray[100]};
1018
+ cursor: not-allowed;
1019
+
1020
+ p, span {
1021
+ color: ${e.palette.gray[500]};
1022
+ }
1023
+ }
1024
+ `}
1025
+ `,Jo=f.styled.label`
1026
+ ${({theme:e})=>`
1027
+ align-items: center;
1028
+ color: ${e.palette.gray[600]};
1029
+ display: flex;
1030
+ cursor: pointer;
1031
+ font-family: ${e.typography.type.primary};
1032
+ font-size: ${e.typography.text.sm};
1033
+ font-weight: ${e.typography.weight.regular};
1034
+ line-height: ${e.spacing[1]};
1035
+ letter-spacing: 0;
1036
+ position: relative;
1037
+ text-align: left;
1038
+
1039
+ &[aria-disabled="true"] {
1040
+ color: ${e.palette.gray[400]};
1041
+ cursor: not-allowed;
1042
+ }
1043
+
1044
+ input {
1045
+ position: absolute;
1046
+ opacity: 0;
1047
+ cursor: pointer;
1048
+ }
1049
+
1050
+ svg {
1051
+ background-color: ${e.palette.white};
1052
+ border-radius: ${e.spacing[.25]};
1053
+ border: 1px solid ${e.palette.gray[600]};
1054
+ top: 0;
1055
+ left: 0;
1056
+ height: ${e.spacing[.5]};
1057
+ margin-right: ${e.spacing[.5]};
1058
+ width: ${e.spacing[.5]};
1059
+ padding: ${e.spacing[.25]};
1060
+ }
1061
+
1062
+ svg > path {
1063
+ fill: ${e.palette.white};
1064
+ }
1065
+
1066
+ input:checked ~ span > svg {
1067
+ background-color: ${e.palette.primary[500]};
1068
+ border: 1px solid ${e.palette.primary[500]};
1069
+ }
1070
+
1071
+ input:disabled ~ span > svg {
1072
+ border: 1px solid ${e.palette.gray[300]};
1073
+ cursor: not-allowed;
1074
+ }
1075
+
1076
+ input:not(:disabled):hover ~ span > svg {
1077
+ box-shadow: 0 0 0 4px ${e.palette.gray[100]};
1078
+ }
1079
+
1080
+ input:checked:disabled ~ span > svg {
1081
+ background-color: ${e.palette.gray[300]};
1082
+ border: 1px solid ${e.palette.gray[300]};
1083
+ }
1084
+
1085
+ input:not(:disabled):hover:checked ~ span > svg {
1086
+ box-shadow: 0 0 0 4px ${e.palette.primary[50]};
1087
+ }
1088
+
1089
+ input:checked ~ span > svg > path {
1090
+ fill: ${e.palette.white};
1091
+ }
1092
+
1093
+ input:checked:disabled ~ span > svg > path {
1094
+ fill: ${e.palette.white};
1095
+ }
1096
+ `}
1097
+ `,ie=u.forwardRef(function({checked:n,disabled:o=!1,label:r,name:i,onChange:a,onClick:l,onFocus:s,onKeyDown:c,tooltip:d,value:p,...g},x){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(Jo,{"aria-disabled":o,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":o,"aria-hidden":!1,"aria-label":i,checked:n,"data-testid":r??p,disabled:o,id:i,name:i,onChange:a,onClick:l,onFocus:s,onKeyDown:c,ref:x,type:"checkbox",value:p,...g}),t.jsx(D,{disabled:o,icon:"check",iconSize:"xl"}),r??p]}),d===void 0?void 0:t.jsx(U,{icon:"circle-info",id:d,place:"right",tip:d})]})}),ee=(e,n,o=!1,r)=>{u.useEffect(()=>{var a;const i=l=>{e&&!e.contains(l.target)&&!(r!=null&&r.contains(l.target))&&n()};return o?(document.addEventListener("mousedown",i,!0),()=>{document.removeEventListener("mousedown",i,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("mousedown",i,!0),()=>{var l;(l=document.getElementById("root"))==null||l.removeEventListener("mousedown",i,!0)})},[o,e,r,n])},Ot=({item:e,multiSelection:n,name:o,register:r,setInputValue:i,setValue:a,state:l,watch:s})=>{var T,S,A;const c=f.useTheme(),d=u.useRef(null),p=e.props.hrefLang,g=l.disabledKeys,x=Array.from(l.collection.getKeys()).filter(I=>!Array.from(g).includes(I)&&I!=="All"),{optionProps:h,isSelected:b,isFocused:w,isDisabled:$}=y.$293f70390ea03370$export$497855f14858aa34({key:e.key},l,d),k=[b?"selected":"",w?"focused":"",$?"disabled":""].join(" "),v=u.useCallback(I=>{i(""),a==null||a(`${o}Options`,""),I.currentTarget.checked&&(i(I.currentTarget.value),a==null||a(`${o}Options`,x))},[x,o,i,a]),C=u.useCallback(()=>{const I=s==null?void 0:s(`${o}Options`),L=typeof I=="string"?[I]:I;y.isEqual(x,L)&&!Array.from(g).includes("All")?(a==null||a("checkAll","All vulnerability types"),i("All vulnerability types")):(a==null||a("checkAll",""),i((L==null?void 0:L.length)<=2?L.join(", "):`${L.slice(0,2).join(", ")+`, +${L.length-2} more`}`))},[g,x,o,i,a,s]),j=e.key==="All"?t.jsx(ie,{...r==null?void 0:r("checkAll",{onChange:v}),label:(T=e.rendered)==null?void 0:T.toString(),name:"checkAll",value:(S=e.rendered)==null?void 0:S.toString()}):t.jsx(ie,{...r==null?void 0:r(`${o}Options`,{onChange:C}),label:(A=e.rendered)==null?void 0:A.toString(),name:`${o}Options`,value:e.key.toString()}),z=n&&!$?j:t.jsx(E,{color:c.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),R=u.useCallback(I=>{var L;I.preventDefault(),i(((L=e.rendered)==null?void 0:L.toString())??""),l.setSelectedKey(e.key),setTimeout(()=>{l.setOpen(!1)},50),Lt(p)},[p,e.key,e.rendered,l,i]);return ee(document.getElementsByClassName("dropdown")[0],()=>{n&&l.close()},!0,document.getElementById("combobox")),t.jsxs(Xo,{...!n&&!p?h:{},$multiSelection:n,className:k,ref:d,children:[p?t.jsx(Q,{href:p,onClick:R,children:z}):z,b&&!$&&!n?t.jsx(D,{icon:"check",iconSize:"sm",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(Y,{tagLabel:e.textValue,variant:"inactive"})]})},Ge=({field:e,disabled:n=!1,disabledKeys:o,error:r,helpLink:i,helpLinkText:a,helpText:l,label:s,loadingItems:c,name:d,multiSelection:p=!1,items:g,onBlur:x,onChange:h,placeholder:b,register:w,required:$,setValue:k,tooltip:v,value:C,watch:j,weight:z})=>{var ht;const R=f.useTheme(),T=n?void 0:r,S=(e==null?void 0:e.value)??C,[A,I]=u.useState(((ht=g.find(P=>P.value===S))==null?void 0:ht.name)??""),[L,K]=u.useState(S),[q,re]=u.useState(g),[W,M]=u.useState(!1),{contains:Z}=y.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),de=u.useRef(null),Me=u.useRef(null),He=u.useRef(null),We=u.useRef(null),Be=u.useRef(null),Kn=u.useMemo(()=>g.toSorted((P,B)=>{const _=Array.from(o??[]),pe=_.includes(P.value),ft=_.includes(B.value);return pe&&!ft?1:!pe&&ft?-1:0}).map(P=>Z(P.name,A)||W?t.jsx(y.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":P.value,hrefLang:P.href,textValue:P.tag,children:P.name},P.value):null),[Z,o,A,g,W]),qn=u.useCallback(P=>{const B=P.split(/,|\s/u).slice(-1)[0].trim();I(p?B:P),P===""||P.endsWith(",")?M(!0):(M(!1),K(_=>{const pe=P===""?"":_;return e&&e.onChange(pe),h&&h(P),pe}),re(g.filter(_=>Z(_.name,p?B:P))))},[Z,g,e,p,h]),Zn=u.useCallback(P=>{var B;I(((B=g.find(_=>_.value===P))==null?void 0:B.name)??""),K(P?String(P):""),e&&e.onChange(P),h&&h(P?String(P):""),re(g)},[g,e,h]),xt=u.useCallback(P=>{P.key==="Enter"&&P.preventDefault(),M(!1)},[]),Xn=u.useCallback(()=>{x&&x(),e&&e.onBlur()},[e,x]),Jn=u.useCallback(()=>{M(!0)},[]),G=y.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:p,allowsEmptyCollection:!0,disabledKeys:o,inputValue:A,items:q,menuTrigger:"focus",shouldCloseOnBlur:!p,selectedKey:L,onBlur:Xn,onInputChange:qn,onKeyDown:xt,onKeyUp:Jn,onOpenChange(P,B){M(P&&(B==="manual"||B==="focus")),P&&setTimeout(()=>{var _;return(_=de.current)==null?void 0:_.focus()},50)},onSelectionChange:p?void 0:Zn,children:Kn}),{buttonProps:Qn,inputProps:eo,listBoxProps:to}=y.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:A,buttonRef:Me,id:d,inputRef:de,label:s??d,listBoxRef:He,name:d,placeholder:b,popoverRef:Be},G),{listBoxProps:no}=y.$c132121280ec012d$export$50eacbbf140a3141(to,G,He),{buttonProps:oo}=y.$701a24aa0da5b062$export$ea18c227d4417cc3(Qn,Me);return ee(We.current,()=>{G.isOpen&&!p&&G.close()},!0,Be.current),u.useEffect(()=>{var P;if((c===!1||!S)&&!p){const B=((P=g.find(_=>_.value===S))==null?void 0:P.name)??"";I(B),K(B)}},[S,g,c,p]),t.jsxs(V,{error:T,helpLink:i,helpLinkText:a,helpText:l,htmlFor:d,id:"combobox",label:s,required:$,tooltip:v,weight:z,children:[t.jsxs(oe,{className:`${n?"disabled":""} ${T?"error":""}`,ref:We,children:[t.jsx("input",{...eo,"aria-invalid":T?"true":"false","aria-label":d,disabled:n,onKeyDown:xt,ref:de}),T?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:R.palette.error[500],iconSize:"lg"}):void 0,t.jsx(H,{...oo,className:"action",disabled:n,icon:G.isOpen&&!n?"chevron-up":"chevron-down",iconColor:R.palette.gray[400],iconSize:"sm",iconType:"fa-light",px:.125,py:.125,ref:Me,type:"button",variant:"ghost"})]}),G.isOpen&&G.collection.size>0&&!n?t.jsx(ze,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:Be,state:G,triggerRef:We,children:t.jsx(Zo,{...no,$multiSelection:p&&!Array.from(o??[]).includes("All"),ref:He,children:[...G.collection].map(P=>t.jsx(Ot,{item:P,multiSelection:p,name:d,register:w,setInputValue:I,setValue:k,state:G,watch:j},P.key))})}):null]})},at=({control:e,disabled:n=!1,disabledKeys:o,error:r,helpLink:i,helpLinkText:a,helpText:l,label:s,loadingItems:c,name:d,multiSelection:p,items:g,onBlur:x,onChange:h,placeholder:b,register:w,required:$,setValue:k,tooltip:v,value:C,watch:j,weight:z})=>e?t.jsx(y.Controller,{control:e,name:d,render:({field:R,fieldState:T})=>{var S;return t.jsx(Ge,{disabled:n,disabledKeys:o,error:(S=T.error)==null?void 0:S.message,field:R,helpLink:i,helpLinkText:a,helpText:l,items:g,label:s,loadingItems:c,multiSelection:p,name:d,onBlur:x,onChange:h,placeholder:b,register:w,required:$,setValue:k,tooltip:v,value:C,watch:j,weight:z})},rules:{required:$}}):t.jsx(Ge,{disabled:n,disabledKeys:o,error:r,helpLink:i,helpLinkText:a,helpText:l,items:g,label:s,loadingItems:c,multiSelection:p,name:d,onBlur:x,onChange:h,placeholder:b,required:$,tooltip:v,value:C,weight:z}),Qo=f.styled.div`
1098
+ ${({theme:e})=>`
1099
+ align-items: center;
1100
+ color: ${e.palette.gray[800]};
1101
+ display: flex;
1102
+ font-family: ${e.typography.type.primary};
1103
+ font-size: ${e.typography.text.sm};
1104
+ font-weight: ${e.typography.weight.bold};
1105
+ gap: ${e.spacing[.5]};
1106
+ height: 40px;
1107
+ justify-content: center;
1108
+ line-height: ${e.spacing[1.25]};
1109
+ text-align: center;
1110
+ padding: ${e.spacing[.5]} 0;
1111
+ width: 200px;
1112
+ word-spacing: ${e.spacing[.25]};
1113
+
1114
+ &:not(:hover) .year-selection {
1115
+ display: none;
1116
+ }
1117
+ `}
1118
+ `,er=f.styled.div.attrs({className:"year-selection"})`
1119
+ align-items: flex-start;
1120
+ display: flex;
1121
+ flex-direction: column;
1122
+ gap: 6px;
1123
+ height: 14px;
1124
+ justify-content: center;
1125
+ margin-bottom: 10px;
1126
+ padding: 0 0.5px;
1127
+ position: relative;
1128
+ width: 8px;
1129
+ `,$t=f.styled.tr`
1130
+ align-items: flex-start;
1131
+ display: flex;
1132
+ padding: ${({theme:e})=>e.spacing[.25]} 0;
1133
+ width: 100%;
1134
+ `,Mt=f.css`
1135
+ ${({theme:e})=>`
1136
+ align-items: center;
1137
+ color: ${e.palette.gray[800]};
1138
+ cursor: pointer;
1139
+ display: flex;
1140
+ flex-direction: column;
1141
+ font-family: ${e.typography.type.primary};
1142
+ font-size: ${e.typography.text.sm};
1143
+ font-weight: ${e.typography.weight.regular};
1144
+ height: ${e.spacing[2.5]};
1145
+ justify-content: center;
1146
+ line-height: ${e.spacing[1.25]};
1147
+ text-align: center;
1148
+ width: ${e.spacing[2.5]};
1149
+ `}
1150
+ `,tr=f.styled.th`
1151
+ ${Mt}
1152
+ `,nr=f.styled.td`
1153
+ ${({theme:e})=>`
1154
+ ${Mt}
1155
+ height: ${e.spacing[2.5]};
1156
+ width: ${e.spacing[2.5]};
1157
+
1158
+ &#range {
1159
+ background: ${e.palette.primary[25]};
1160
+ }
1161
+
1162
+ div:not(.dot) {
1163
+ align-items: center;
1164
+ display: flex;
1165
+ flex-direction: column;
1166
+ font-size: ${e.typography.text.sm};
1167
+ justify-content: center;
1168
+ height: ${e.spacing[2.5]};
1169
+ line-height: ${e.spacing[1.25]};
1170
+ position: relative;
1171
+ text-align: center;
1172
+ width: ${e.spacing[2.5]};
1173
+
1174
+ &:focus-visible {
1175
+ outline: none;
1176
+ }
1177
+
1178
+ &:hover:not(.disabled, .selected, .range) {
1179
+ background: ${e.palette.gray[100]};
1180
+ }
1181
+
1182
+ &.disabled {
1183
+ color: ${e.palette.gray[400]};
1184
+ cursor: auto;
1185
+ }
1186
+
1187
+ &.selected {
1188
+ background: ${e.palette.primary[500]};
1189
+ color: ${e.palette.white};
1190
+ }
1191
+
1192
+ &.focused {
1193
+ border: 2px solid ${e.palette.primary[500]};
1194
+ }
1195
+
1196
+ &.today:not(.selected) {
1197
+ color: ${e.palette.primary[500]};
1198
+ font-weight: ${e.typography.weight.bold};
1199
+ }
1200
+ }
1201
+ `}
1202
+ `,or=f.styled.div.attrs({className:"dot"})`
1203
+ position: absolute;
1204
+ top: 48%;
1205
+
1206
+ > span {
1207
+ font-size: 4px;
1208
+ }
1209
+ `,mt=f.styled.button`
1210
+ cursor: pointer;
1211
+ display: flex;
1212
+
1213
+ > span {
1214
+ height: 3.5px;
1215
+ width: 7px;
1216
+ }
1217
+ `,st=f.styled.div`
1218
+ ${({theme:e})=>`
1219
+ align-items: end;
1220
+ border-top: 1px solid ${e.palette.gray[200]};
1221
+ display: flex;
1222
+ flex-direction: row-reverse;
1223
+ gap: ${e.spacing[.5]};
1224
+ height: 44px;
1225
+ margin-bottom: ${e.spacing[.25]};
1226
+ padding: 0 ${e.spacing[.25]};
1227
+ width: 100%;
1228
+ `}
1229
+ `,Ht=({state:e,date:n})=>{const o=u.useRef(null),r=y.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,y.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:i,buttonProps:a,isSelected:l,isDisabled:s,formattedDate:c}=y.$36a0ac60f04457c5$export$136073280381448e({date:n},e,o),d="highlightedRange"in e&&!y.lodashExports.isNull(e.highlightedRange)?y.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):l,p="highlightedRange"in e&&!y.lodashExports.isNull(e.highlightedRange)?y.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,g=l&&!s&&!(d||p)?"range":"";return t.jsx(nr,{id:g,...i,children:t.jsxs("div",{...a,className:`cell ${d||p?"selected":""}
1230
+ ${s?"disabled":""} ${r?"today":""}
1231
+ ${!e.isFocused&&!r?"focused":""} ${g}`,ref:o,children:[c,r?t.jsx(or,{children:t.jsx(D,{clickable:!1,icon:"circle",iconSize:"sm"})}):void 0]})})},Ae=({state:e,...n})=>{const{locale:o}=y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:r}=y.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),i=y.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,o);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx($t,{children:r.map((a,l)=>{const s=`key_${l}`;return t.jsx(tr,{children:a},s)})})}),t.jsx("tbody",{children:[...new Array(i).keys()].map(a=>t.jsx($t,{children:e.getDatesInWeek(a).map((l,s)=>{const c=`key_${s}`;return l?t.jsx(Ht,{date:l,state:e},c):t.jsx("td",{},c)})},a))})]})},rr=f.styled(nt)`
1232
+ align-items: center;
1233
+ background-color: inherit;
1234
+ border-color: inherit;
1235
+ display: flex;
1236
+ height: 38px;
1237
+ justify-content: center;
1238
+ width: 40px;
1239
+ margin: ${({$margin:e="0"})=>f.css`
1240
+ ${e}
1241
+ `};
1242
+
1243
+ &:disabled {
1244
+ cursor: not-allowed;
1245
+ }
1246
+
1247
+ &:hover:not(:disabled) {
1248
+ background-color: ${({theme:e})=>e.palette.gray[100]};
1249
+ cursor: pointer;
1250
+ }
1251
+ `,ir=f.styled.div`
1252
+ ${({theme:e})=>`
1253
+ align-items: flex-start;
1254
+ background: ${e.palette.white};
1255
+ border: 1px solid ${e.palette.gray[200]};
1256
+ border-radius: ${e.spacing[.5]};
1257
+ box-shadow: ${e.shadows.md};
1258
+ display: inline-flex;
1259
+ flex-direction: column;
1260
+ gap: ${e.spacing[.25]};
1261
+ height: auto;
1262
+ padding: ${e.spacing[.25]};
1263
+ width: 292px;
1264
+ `}
1265
+ `,ar=f.styled.button`
1266
+ ${({theme:e,$disabled:n,$focus:o,$header:r})=>{const i=o?"34px":"40px";return`
1267
+ align-items: center;
1268
+ border-radius: ${r?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
1269
+ border-left: inherit;
1270
+ display: flex;
1271
+ height: ${r?"38px":i};
1272
+ justify-content: center;
1273
+ outline: none;
1274
+ width: ${r?"38px":"40px"};
1275
+
1276
+ &:hover {
1277
+ background-color: ${e.palette.gray[n?500:100]};
1278
+ }
1279
+ `}}
1280
+ `,sr=f.styled.div`
1281
+ ${({theme:e})=>`
1282
+ align-items: center;
1283
+ background: transparent;
1284
+ border-radius: ${e.spacing[.5]} 0 0 ${e.spacing[.5]};
1285
+ border-color: inherit;
1286
+ display: flex;
1287
+ height: 100%;
1288
+ justify-content: space-between;
1289
+ width: calc(100% - 40px);
1290
+ `}
1291
+ `,lr=f.styled.div`
1292
+ align-items: center;
1293
+ display: flex;
1294
+ justify-content: flex-end;
1295
+ gap: ${({theme:e})=>e.spacing[.5]};
1296
+ flex: 1 0 0;
1297
+ `,wt=f.styled.div`
1298
+ ${({theme:e})=>`
1299
+ align-items: center;
1300
+ align-self: stretch;
1301
+ background-color: ${e.palette.gray[200]};
1302
+ border-radius: ${e.spacing[.25]};
1303
+ display: flex;
1304
+ font-family: ${e.typography.type.primary};
1305
+ gap: ${e.spacing[.25]};
1306
+ line-height: ${e.spacing[1.5]};
1307
+ padding: 2px ${e.spacing[.25]};
1308
+ `}
1309
+ `,vt=f.styled.button`
1310
+ ${({theme:e})=>`
1311
+ align-items: center;
1312
+ background-color: inherit;
1313
+ border: 0.5px solid ${e.palette.gray[200]};
1314
+ border-radius: 7px;
1315
+ color: ${e.palette.gray[800]};
1316
+ cursor: pointer;
1317
+ display: flex;
1318
+ font-weight: ${e.typography.weight.regular};
1319
+ justify-content: center;
1320
+ gap: 10px;
1321
+ padding: 2px 10px;
1322
+
1323
+ &#active {
1324
+ background-color: ${e.palette.white};
1325
+ box-shadow: ${e.shadows.md};
1326
+ font-weight: ${e.typography.weight.bold};
1327
+ }
1328
+ `}
1329
+ `,Re=({disabled:e=!1,icon:n,props:o})=>{const r=u.useRef(null),{buttonProps:i}=y.$701a24aa0da5b062$export$ea18c227d4417cc3(o,r);return t.jsx(ar,{...i,$disabled:e,$focus:!!i["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:r,type:"button",children:t.jsx(D,{icon:n,iconColor:N.palette.gray[e?400:700],iconSize:"lg",iconType:"fa-light"})})},Le=({state:e,prevButtonProps:n,nextButtonProps:o,title:r})=>{const i=e.focusedDate,a=f.useTheme(),l=u.useCallback(()=>{e.setFocusedDate(i.add({years:1}))},[i,e]),s=u.useCallback(()=>{e.setFocusedDate(i.subtract({years:1}))},[i,e]);return t.jsxs("div",{className:"header flex items-start",style:{position:"sticky",top:0,zIndex:2,background:a.palette.white},children:[t.jsx(Re,{icon:"chevron-left",props:n}),t.jsxs(Qo,{children:[r,t.jsxs(er,{children:[t.jsx(mt,{"aria-label":"top",onClick:l,children:t.jsx(D,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xs"})}),t.jsx(mt,{"aria-label":"bottom",onClick:s,children:t.jsx(D,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xs"})})]})]}),t.jsx(Re,{icon:"chevron-right",props:o})]})},Wt=({onClose:e,props:n})=>{const{locale:o}=y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=y.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:y.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:i,nextButtonProps:a,title:l}=y.$9942cad8a072a530$export$3ee915f8151bd4f1(n,r);return t.jsxs("div",{className:"calendar",children:[t.jsx(Le,{nextButtonProps:a,prevButtonProps:i,state:r,title:l}),t.jsx(Ae,{state:r}),t.jsx(st,{children:t.jsx(O,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Bt=({segment:e,state:n})=>{const o=f.useTheme(),r=u.useRef(null),a={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=y.$32489daedd52963e$export$1315d136e6f7581(a,n,r),s=o.palette.gray[a.isEditable?800:500];return t.jsx("div",{...a.type!=="literal"&&{...l,className:"segment-cell"},ref:r,style:a.type==="literal"?void 0:{color:a.isPlaceholder?o.palette.gray[400]:s},children:a.isPlaceholder?a.placeholder:a.text})},_t=({disabled:e,error:n=!1,props:o})=>{const r=f.useTheme(),i=u.useRef(null),a=y.$3c0fc76039f1c516$export$60e84778edff6d26({...o,createCalendar:y.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=y.$16f0b7bb276bc17e$export$5591b0b878c1a989(o,a,i),s=u.useCallback(c=>{const d=document.getElementsByClassName("segment-cell"),p=c.currentTarget;Object.values(d).some(g=>g.contains(p))||(c.preventDefault(),c.stopPropagation())},[]);return t.jsxs(sr,{...l,onClick:s,children:[t.jsx("div",{className:"flex flex-row",style:{color:r.palette.gray[y.lodashExports.isNil(a.value)?400:800]},tabIndex:-1,children:a.segments.map((c,d)=>{const p=`key_${d}`;return t.jsx(Bt,{segment:{...c,isEditable:!e},state:a},p)})}),n?t.jsx(D,{icon:"exclamation-circle",iconColor:r.palette.error[500],iconSize:"lg"}):void 0]})},Vt=e=>{const n=u.useRef(null),o=y.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:r}=o,i=!y.lodashExports.isNil(r)&&r.hour<12?"AM":"PM",[a,l]=u.useState(y.lodashExports.isNil(r)?"AM":i),{fieldProps:s}=y.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,o,n),c=u.useCallback(d=>{const p=d.currentTarget.name;p!==a&&(y.lodashExports.isNil(r)||(p==="AM"?o.setSegment("dayPeriod",0):p==="PM"&&o.setSegment("dayPeriod",12))),l(p)},[a,o,r]);return t.jsxs(lr,{children:[t.jsx(wt,{...s,ref:n,children:o.segments.slice(0,-2).map((d,p)=>{const g=`key_${p}`;return t.jsx(Bt,{segment:d,state:o},g)})}),t.jsxs(wt,{children:[t.jsx(vt,{id:a==="AM"?"active":"",name:"AM",onClick:c,type:"button",children:"AM"}),t.jsx(vt,{id:a==="PM"?"active":"",name:"PM",onClick:c,type:"button",children:"PM"})]})]})},De=e=>e&&e!=="-"?y.dayjs(e).format("YYYY-MM-DD"):"-",cr=e=>e&&e!=="-"?y.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",jt=(e,n)=>y.dayjs(String(e).replace(/-/gu,"/")).hour(n.hour).minute(n.minute).second(n.second).format("YYYY/MM/DD hh:mm A"),fe=({error:e,buttonProps:n,datePickerRef:o,disabled:r=!1,granularity:i="day",fieldProps:a,groupProps:l,name:s,register:c,required:d,setValue:p,value:g})=>{const x=u.useCallback(h=>{if(!h)return;const b=i==="day"?De(String(h)):cr(String(h));a.onChange&&a.onChange(h??null),p&&p(s,b,{shouldDirty:!0})},[a,i,s,p]);return t.jsxs(oe,{...l,className:`${r?"disabled":""} ${e?"error":""}`,ref:o,children:[t.jsx(_t,{disabled:r,error:e!=null,props:{...a,autoFocus:!1,granularity:i,onChange:x,shouldForceLeadingZeros:!0}}),t.jsx(Re,{disabled:r,icon:i==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...c==null?void 0:c(s,{required:d}),"aria-label":s,className:"date-input",disabled:r,id:s,name:s,type:"text",value:g??""})]})},Pe=({children:e,...n})=>{const o=u.useRef(null),{dialogProps:r}=y.$40df3f8667284809$export$d55e7ee900f34e93(n,o);return t.jsx(ir,{...r,ref:o,children:e})},Ut=({disabled:e=!1,error:n,helpLink:o,helpLinkText:r,helpText:i,required:a,label:l,name:s,register:c,setValue:d,tooltip:p,watch:g,...x})=>{const h=u.useRef(null),b=g==null?void 0:g(s),w=u.useCallback(T=>{d&&T&&d(s,De(String(T)),{shouldDirty:!0})},[s,d]),$=y.$ab5bf3f618090389$export$87194bb378cc3ac2({...x,onChange(T){w(T)},...!y._.isNil(b)&&!y._.isEmpty(b)&&y.dayjs(b).isValid()?{defaultValue:y.$fae977aafc393c5c$export$6b862160d295c8e(b.replace(/\//gu,"-"))}:{}}),{close:k}=$,{groupProps:v,fieldProps:C,buttonProps:j,dialogProps:z,calendarProps:R}=y.$6057a3d2a53a12fd$export$42df105a73306d51({...x,"aria-label":l??s,name:s},$,h);return t.jsxs(V,{error:e?void 0:n,helpLink:o,helpLinkText:r,helpText:i,htmlFor:s,label:l,required:a,tooltip:p,children:[t.jsx(fe,{buttonProps:j,datePickerRef:h,disabled:e,error:n,fieldProps:C,groupProps:v,name:s,register:c,required:a,setValue:d,value:b}),$.isOpen&&!e?t.jsx(ze,{offset:8,placement:"bottom start",state:$,triggerRef:h,children:t.jsx(Pe,{...z,children:t.jsx(Wt,{onClose:k,props:R})})}):null]})},Gt=({onClose:e,props:n})=>{const{locale:o}=y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=u.useRef(null),i=y.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:y.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:a,nextButtonProps:l,title:s}=y.$46a4342aab3d8076$export$87e0539f600c24e5(n,i,r);return t.jsxs("div",{className:"calendar-range",ref:r,children:[t.jsx(Le,{nextButtonProps:l,prevButtonProps:a,state:i,title:s}),t.jsx(Ae,{state:i}),t.jsx(st,{children:t.jsx(O,{onClick:e,variant:"ghost",children:"Cancel"})})]})},dr=f.styled.div`
1330
+ ${({theme:e,$disabled:n,$show:o})=>`
1331
+ border-color: ${o?e.palette.error[500]:e.palette.gray[300]};
1332
+ display: flex;
1333
+ gap: ${e.spacing[.25]};
1334
+ width: 100%;
1335
+
1336
+ ~ div {
1337
+ background: ${n?e.palette.gray[200]:e.palette.white};
1338
+ }
1339
+ `}
1340
+ `,Yt=({disabled:e=!1,error:n,label:o,name:r,required:i,tooltip:a,register:l,setValue:s,propsMax:c,propsMin:d,variant:p="default",...g})=>{const x=`${r}Max`,h=`${r}Min`,b=u.useRef(null),w=u.useCallback(S=>{s&&S&&(s((c==null?void 0:c.name)??x,De(String(S.end))),s((d==null?void 0:d.name)??h,De(String(S.start))))},[x,h,s,c,d]),$=y.$93c38a5e28be6249$export$e50a61c1de9f574({...g,endName:(c==null?void 0:c.name)??x,startName:(d==null?void 0:d.name)??h,onChange(S){w(S)}}),{close:k}=$,{groupProps:v,startFieldProps:C,endFieldProps:j,buttonProps:z,dialogProps:R,calendarProps:T}=y.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...g,"aria-label":o??r},$,b);return t.jsxs(V,{error:e?void 0:n,htmlFor:r,label:o,required:i,tooltip:a,children:[t.jsxs(dr,{$disabled:e,$show:n!==void 0,ref:b,style:{flexDirection:p==="filters"?"column":"row"},children:[t.jsx(fe,{buttonProps:z,datePickerRef:b,disabled:e,error:n,fieldProps:{...C,"aria-label":`${C["aria-label"]} ${r}`,validate:S=>j.value&&S>j.value?"Start date must be less than or equal to end date":null},groupProps:v,name:(d==null?void 0:d.name)??h,register:l,setValue:s,value:d==null?void 0:d.value}),t.jsx(fe,{buttonProps:z,datePickerRef:b,disabled:e,error:n,fieldProps:{...j,"aria-label":`${j["aria-label"]} ${r}`,validate:S=>C.value&&S<C.value?"End date must be greater than or equal to start date":null},groupProps:v,name:(c==null?void 0:c.name)??x,register:l,setValue:s,value:c==null?void 0:c.value})]}),$.isOpen&&!e?t.jsx(ze,{offset:8,placement:"bottom start",state:$,triggerRef:b,children:t.jsx(Pe,{...R,children:t.jsx(Gt,{onClose:k,props:T})})}):null]})},pr=f.styled.div`
1341
+ ${({theme:e})=>`
1342
+ align-items: center;
1343
+ border-top: 1px solid ${e.palette.gray[200]};
1344
+ display: flex;
1345
+ gap: ${e.spacing[1.5]};
1346
+ justify-content: center;
1347
+ padding: ${e.spacing[.5]} ${e.spacing[1.25]};
1348
+ `}
1349
+ `,gr=f.styled.div`
1350
+ align-items: center;
1351
+ display: flex;
1352
+ gap: ${({theme:e})=>e.spacing[.5]};
1353
+ justify-content: flex-end;
1354
+ flex: 1 0 0;
1355
+ `,Kt=({handleTimeChange:e,onClose:n,props:o,timeState:r})=>{const i=f.useTheme(),{locale:a}=y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=y.$131cf43a05231e1e$export$6d095e787d2b5e1f({...o,createCalendar:y.$64244302c3013299$export$dd0bbc9b26defe37,locale:a}),{prevButtonProps:s,nextButtonProps:c,title:d}=y.$9942cad8a072a530$export$3ee915f8151bd4f1(o,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Le,{nextButtonProps:c,prevButtonProps:s,state:l,title:d}),t.jsx(Ae,{state:l}),t.jsxs(pr,{children:[t.jsx(E,{color:i.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(gr,{children:t.jsx(Vt,{hourCycle:12,label:"time-field",onChange:e,value:r.timeValue})})]}),t.jsx(st,{children:t.jsx(O,{onClick:n,variant:"ghost",children:"Cancel"})})]})},ur=e=>{const{disabled:n=!1,error:o,required:r,label:i,name:a,tooltip:l,register:s,setValue:c,watch:d}=e,p=d==null?void 0:d(a),g=u.useRef(null),x=y.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:r,shouldCloseOnSelect:!1,value:y._.isNil(p)||y._.isEmpty(p)||p==="-"||y.dayjs(p,"YYYY/MM/DD hh:mm A").isValid()===!1?null:y.$fae977aafc393c5c$export$588937bcd60ade55(y.dayjs(p,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=x,{groupProps:b,fieldProps:w,buttonProps:$,dialogProps:k,calendarProps:v}=y.$6057a3d2a53a12fd$export$42df105a73306d51(e,x,g),C=u.useCallback(z=>{if(v.onChange&&v.onChange(z),x.timeValue){const R=jt(z,x.timeValue);c==null||c(a,R,{shouldDirty:!0})}else x.setDateValue(z)},[v,a,c,x]),j=u.useCallback(z=>{if(z){x.setTimeValue(z);const R=x.dateValue;if(R){const T=jt(R,z);c==null||c(a,T,{shouldDirty:!0})}}},[x,c,a]);return t.jsxs(V,{error:n?void 0:o,htmlFor:a,label:i,required:r,tooltip:l,children:[t.jsx(fe,{buttonProps:$,datePickerRef:g,disabled:n,error:o,fieldProps:w,granularity:"minute",groupProps:b,name:a,register:s,setValue:c,value:p}),x.isOpen&&!n?t.jsx(ze,{offset:8,placement:"bottom start",state:x,triggerRef:g,children:t.jsx(Pe,{...k,children:t.jsx(Kt,{handleTimeChange:j,onClose:h,props:{...v,onChange:C},timeState:x})})}):null]})},xr=({children:e,currentValue:n,externalLink:o,isEditing:r,label:i,name:a,tooltip:l})=>{if(r)return t.jsx("div",{children:e});const s=y.lodashExports.isNil(n)?"":n,c=String(o??s);return t.jsxs(m,{children:[t.jsx(it,{htmlFor:a,label:i,tooltip:l,weight:"bold"}),c.startsWith("https://")?t.jsx(Q,{href:c,children:s}):t.jsx(E,{size:"md",children:s})]})},Oe=({disabled:e=!1,hasIcon:n=!1,helpLink:o,helpLinkText:r,helpText:i,error:a,id:l,indexArray:s=0,isValid:c,isTouched:d,label:p,name:g,maskValue:x=!1,onPaste:h,placeholder:b,removeItemArray:w,register:$,suggestions:k,tooltip:v,type:C="text",weight:j,...z})=>{const{required:R,onBlur:T,onChange:S}=z,A=f.useTheme(),I=e?void 0:a,[L,K]=u.useState(""),q=u.useCallback(M=>{K(M.target.value),S==null||S(M)},[S]),re=c&&d&&!e&&L.trim()!=="",W=u.useCallback(M=>{M.key==="Enter"&&M.preventDefault()},[]);return t.jsxs(V,{error:I,helpLink:o,helpLinkText:r,helpText:i,htmlFor:g,label:p,required:R,tooltip:v,weight:j,children:[t.jsxs(oe,{className:`
1356
+ ${e?"disabled":""} ${I?"error":""} ${re?"success":""}
1357
+ `,children:[n?t.jsx(D,{icon:"user",iconSize:"xl",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":I?"true":"false","aria-label":g,"aria-required":R,autoComplete:"off",className:x?"sr-block":"","data-testid":`${g}-input`,disabled:e,id:g,list:k?`list_${g}`:void 0,onKeyDown:W,onPaste:h,placeholder:b,type:C,...$?$(g,{required:R,onBlur:T,onChange:q}):{...z,onChange:q}}),I?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:A.palette.error[500],iconSize:"lg"}):void 0,re?t.jsx(D,{icon:"check-circle",iconClass:"success-icon",iconColor:A.palette.success[500],iconSize:"lg"}):void 0,l==="array"&&s>0?t.jsx(H,{color:A.palette.gray[400],icon:"trash",iconSize:"sm",iconType:"fa-light",onClick:w?w(s):void 0,variant:"ghost"}):void 0]}),k?t.jsx("datalist",{id:`list_${g}`,children:k.map(M=>t.jsx("option",{value:M},M))}):void 0]})},hr=f.styled.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,fr=f.styled.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
1358
+ gap: 12px;
1359
+ `,yr=f.styled.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
1360
+ gap: 8px;
1361
+ `,Ee=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,br=f.styled.div.attrs({className:"comp-col"})`
1362
+ word-wrap: break-word;
1363
+
1364
+ ${({$width:e=null})=>e===null?"":`width: ${e}`};
1365
+
1366
+ ${({$paddingTop:e})=>`padding-top: ${e??0}px;`}
1367
+
1368
+ @media (width <= 768px) {
1369
+ ${({$sm:e})=>Ee(e)}
1370
+ }
1371
+
1372
+ @media (width >= 768px) and (width <= 992px) {
1373
+ ${({$md:e})=>Ee(e)}
1374
+ }
1375
+
1376
+ @media (width >= 992px) {
1377
+ ${({$lg:e})=>Ee(e)}
1378
+ }
1379
+
1380
+ ${({$xl:e})=>y.isNumber(e)?`@media (min-width: 1200px) { ${Ee(e)} }`:""}
1381
+
1382
+ > .comp-card {
1383
+ height: 100%;
1384
+ }
1385
+ `,Ye=({children:e,xl:n,lg:o,md:r,sm:i,paddingTop:a,width:l})=>t.jsx(br,{$lg:o,$md:r,$paddingTop:a,$sm:i,$width:l,$xl:n,children:e}),$r=f.styled.div.attrs({className:"comp-gap"})`
1386
+ ${({$disp:e="flex",$mh:n=4,$mv:o=4})=>`
1387
+ align-items: center;
1388
+ display: ${e};
1389
+ margin: ${-o}px ${-n}px;
1390
+
1391
+ > * {
1392
+ margin: ${o}px ${n}px;
1393
+ }
1394
+ `}
1395
+ `,mr=({children:e,disp:n,mh:o,mv:r})=>t.jsx($r,{$disp:n,$mh:o,$mv:r,children:e}),wr=f.styled.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
1396
+ ${({$align:e="stretch",$cols:n=100,$colsPadding:o=6,$justify:r="start"})=>`
1397
+ align-items: ${e};
1398
+ justify-content: ${r};
1399
+ margin: -6px;
1400
+ text-align: ${r};
1401
+
1402
+ --cols: ${n};
1403
+
1404
+ > *:not(.comp-col) {
1405
+ width: 100%;
1406
+ margin: 6px;
1407
+ }
1408
+
1409
+ > .comp-col {
1410
+ padding: ${o}px;
1411
+ }
1412
+ `}
1413
+ `,qt=({align:e,children:n,cols:o,colsPadding:r,justify:i})=>t.jsx(wr,{$align:e,$cols:o,$colsPadding:r,$justify:i,children:n}),Ke=({addText:e,append:n,disabled:o=!1,fields:r,fieldState:i,initValue:a="",index:l=0,required:s,label:c,max:d=100,name:p,onBlur:g,onChange:x,placeholder:h,tooltip:b,remove:w,value:$})=>{var C;const k=u.useCallback(()=>{n==null||n(a)},[n,a]),v=u.useCallback(j=>()=>{w==null||w(j)},[w]);return t.jsxs(qt,{align:"start",children:[t.jsx(Ye,{lg:75,md:75,sm:75,children:t.jsx(Oe,{disabled:o,error:i?(C=i.error)==null?void 0:C.message:void 0,id:"array",indexArray:l,isTouched:i?i.isTouched:void 0,isValid:i?!i.invalid:void 0,label:c,name:p,onBlur:g,onChange:x,placeholder:h,removeItemArray:v,required:s,tooltip:b,value:$})}),l<d-1&&l+1===(r==null?void 0:r.length)?t.jsx(Ye,{lg:25,md:25,sm:25,children:t.jsx(O,{disabled:o,icon:"plus",onClick:k,variant:"ghost",width:"max-content",children:e??"Add"})}):void 0]})},vr=({addText:e,append:n,control:o,disabled:r,fields:i,initValue:a="",required:l,label:s,max:c=void 0,name:d="array-field",onChange:p,placeholder:g,remove:x,tooltip:h})=>o&&i?t.jsx(u.Fragment,{children:i.map((b,w)=>t.jsx(y.Controller,{control:o,name:`${d}.${w}`,render:({field:$,fieldState:k})=>t.jsx(Ke,{addText:e,append:n,disabled:r,fieldState:k,fields:i,index:w,initValue:a,label:s,max:c,name:$.name,onBlur:$.onBlur,onChange:p??$.onChange,placeholder:g,remove:x,required:l,tooltip:h,value:typeof $.value=="object"?$.value.value:$.value}),index:w},b.id))}):t.jsx(Ke,{addText:e,disabled:r,initValue:a,label:s,max:c,name:d,onChange:p,placeholder:g,required:l,tooltip:h}),jr=f.styled(Dt)`
1414
+ white-space: nowrap;
1415
+ margin-right: ${({theme:e})=>e.spacing[.25]};
1416
+ text-overflow: ellipsis;
1417
+ overflow: hidden;
1418
+ max-width: 80%;
1419
+ `,kr=f.styled.input`
1420
+ opacity: 0;
1421
+ position: absolute;
1422
+ visibility: hidden;
1423
+ width: 0;
1424
+ `,ye=(e,n,o)=>{const r=new Event(e);return Object.defineProperty(r,"target",{value:{name:n,value:o}}),r},Cr=e=>{const n=e;return n?Array.from(n).map(o=>o.name).join(", "):""},Sr=({accept:e,disabled:n=!1,error:o,label:r,helpLink:i,helpText:a,id:l,multiple:s,name:c,onChange:d,required:p,register:g,setValue:x,tooltip:h,watch:b,weight:w})=>{const $=f.useTheme(),k=n?void 0:o,v=u.useRef(null),C=g==null?void 0:g(c,{required:p}),j=b==null?void 0:b(c),z=Cr(j),R=u.useCallback(()=>{const A=ye("change",c,void 0);x&&x(c,void 0),C&&C.onChange(A)},[C,c,x]),T=u.useCallback(A=>{const{files:I}=A.currentTarget,L=ye("change",c,I&&I.length>0?I:void 0);I&&I.length>0&&(d==null||d(L),x&&x(c,I),C&&C.onChange(L))},[C,c,d,x]),S=u.useCallback(A=>{n?A.preventDefault():v.current&&v.current.click()},[n]);return t.jsxs(V,{error:k,helpLink:i,helpText:a,htmlFor:l??c,label:r,required:p,tooltip:h,weight:w,children:[t.jsxs(oe,{className:`${n?"disabled":""} ${k?"error":""}`,children:[t.jsx(jr,{$size:"xs",children:z}),t.jsxs(m,{alignItems:"center",display:"flex",gap:.625,children:[y.lodashExports.isEmpty(z)||n?void 0:t.jsx(H,{color:$.palette.gray[400],height:"20px",icon:"xmark",iconSize:"64px",iconType:"fa-light",onClick:R,variant:"ghost",width:"20px"}),k&&t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"lg"}),t.jsxs(O,{border:n?`1px solid ${$.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:S,variant:"primary",width:"96px",children:[t.jsx(D,{icon:"search",iconSize:"xl",mr:.5}),"Add file"]})]})]}),t.jsx(kr,{...C,accept:e,"aria-label":c,"data-testid":c,disabled:n,id:l??c,multiple:s,name:c,onChange:T,ref:v,type:"file"})]})},zr=f.styled.input`
1425
+ border: none;
1426
+ background: transparent;
1427
+ min-width: 15rem;
1428
+ padding: 0;
1429
+ flex: 1;
1430
+ `,qe=({disabled:e=!1,error:n,field:o,helpLink:r,helpLinkText:i,helpText:a,label:l,name:s="input-tag",onChange:c,onRemove:d,placeholder:p,required:g,tooltip:x,value:h,weight:b})=>{const w=f.useTheme(),$=e?void 0:n,[k,v]=u.useState(""),C=c?h:o==null?void 0:o.value,j=u.useMemo(()=>C&&typeof C=="string"?C.split(",").filter(Boolean):[],[C]),z=u.useCallback(I=>{const K=[...new Set(I.filter(Boolean))].join(","),q=ye("change",s,K);o&&o.onChange(q),c&&c(q)},[o,s,c]),R=u.useCallback(I=>{v(I.target.value)},[]),T=u.useCallback(I=>{const L=k.trim();L.length&&!j.includes(L)&&(I.preventDefault(),z([...j,L]),v("")),o&&o.onBlur()},[k,o,z,j]),S=u.useCallback(I=>{const L=k.trim();I.key==="Enter"&&L.length===0&&I.preventDefault(),["Enter",","].includes(I.key)&&L.length>0&&!j.includes(L)?(I.preventDefault(),z([...j,L]),v("")):I.key==="Backspace"&&!L.length&&j.length&&(I.preventDefault(),d==null||d(j[j.length-1]),z(j.slice(0,-1)))},[k,d,z,j]),A=u.useCallback(I=>()=>{d==null||d(I),z(j.filter(L=>L!==I))},[d,z,j]);return t.jsx(V,{error:$,helpLink:r,helpLinkText:i,helpText:a,htmlFor:s,label:l,required:g,tooltip:x,weight:b,children:t.jsxs(oe,{$overflowX:"auto",className:`${e?"disabled":""} ${$?"error":""}`,children:[j.map(I=>t.jsx(Y,{disabled:e,onClose:A(I),tagLabel:I},I)),t.jsx(zr,{"aria-hidden":!1,"aria-invalid":$?"true":"false","aria-label":s,"aria-required":g,autoComplete:"off",disabled:e,id:s,onBlur:T,onChange:R,onKeyDown:S,placeholder:j.length===0?p:void 0,ref:o==null?void 0:o.ref,type:"text",value:k}),$?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"lg"}):void 0]})})},Tr=({disabled:e=!1,control:n,error:o,helpLink:r,helpLinkText:i,helpText:a,label:l,name:s="input-tag",onChange:c,onRemove:d,placeholder:p,required:g,tooltip:x,value:h,weight:b})=>n?t.jsx(y.Controller,{control:n,name:s,render:({field:w})=>t.jsx(qe,{disabled:e,error:o,field:w,helpLink:r,helpLinkText:i,helpText:a,label:l,name:s,onRemove:d,placeholder:p,required:g,tooltip:x,weight:b}),rules:{required:g}}):t.jsx(qe,{disabled:e,error:o,helpLink:r,helpLinkText:i,helpText:a,label:l,name:s,onChange:c,onRemove:d,placeholder:p,required:g,tooltip:x,value:h,weight:b}),Ze=u.forwardRef(function({disabled:n,icon:o,margin:r,onClick:i,...a},l){return t.jsx(rr,{$margin:r,"aria-label":o,className:"action-btn",disabled:n,onClick:i,ref:l,type:"button",...a,children:t.jsx(D,{icon:o,iconClass:"action",iconSize:"lg",iconType:"fa-light"})})}),Ne=({error:e,decimalPlaces:n=0,disabled:o=!1,id:r,maxLength:i,max:a=1/0,min:l=0,name:s,onChange:c,placeholder:d,register:p,required:g,setValue:x,value:h})=>{const b=f.useTheme(),w=o?void 0:e,$=n<0?0:n,[k,v]=u.useState(h?y._.toNumber(h):0),C=u.useCallback(()=>{const T=(k-10**-$).toFixed($),S=Math.max(Number(l),Number(T));x&&x(s,S,{shouldDirty:!0}),v(S);const A=ye("change",s,T);c&&c(A)},[k,$,l,x,s,c]),j=u.useCallback(()=>{const T=(k+10**-$).toFixed($),S=Math.min(Number(a),Number(T)>Number(l)?Number(T):Number(l));x&&x(s,S,{shouldDirty:!0}),v(S);const A=ye("change",s,T);c&&c(A)},[k,$,a,l,x,s,c]),z=u.useCallback(T=>{const{value:S}=T.target,A=/\d+/u.test(S)&&!y._.isEmpty(S);x&&x(s,A?S:void 0),c&&c(T),v(Number(S))},[s,c,x]),R=u.useCallback(T=>{T.key==="Enter"&&T.preventDefault()},[]);return t.jsxs(oe,{className:`${o?"disabled":""} ${w?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":w?"true":"false","aria-label":s,"aria-required":g,autoComplete:"off",disabled:o,id:r??s,max:a,min:l,onChange:z,onKeyDown:R,placeholder:d,required:g,step:10**-$,type:"number",value:k,...p==null?void 0:p(s,{maxLength:i,max:a,min:l,onChange:z,value:h,valueAsNumber:!0})}),w&&t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"lg"}),t.jsx(Ze,{borderLeft:"inherit",borderRight:"inherit",disabled:o,icon:"minus",margin:"0 -0.625rem 0 0",onClick:C,px:.75,py:.75}),t.jsx(Ze,{borderRadius:`0 ${b.spacing[.5]} ${b.spacing[.5]} 0`,disabled:o,icon:"plus",onClick:j,px:.75,py:.75})]})},Zt=({decimalPlaces:e,disabled:n=!1,error:o,helpLink:r,helpLinkText:i,helpText:a,id:l,label:s,linkPosition:c,maxLength:d,max:p,min:g,name:x,onChange:h,placeholder:b,register:w,required:$,setValue:k,tooltip:v,value:C,watch:j,weight:z})=>t.jsx(V,{error:n?void 0:o,helpLink:r,helpLinkText:i,helpText:a,htmlFor:x,label:s,linkPosition:c,maxLength:d,required:$,tooltip:v,weight:z,children:t.jsx(Ne,{decimalPlaces:e,disabled:n,error:o,id:l,max:p,maxLength:d,min:g,name:x,onChange:h,placeholder:b,register:w,required:$,setValue:k,value:j?j(x):C})}),Xt=({disabled:e=!1,error:n,name:o,label:r,propsMax:i,propsMin:a,required:l,tooltip:s,variant:c="default"})=>{const d=`${o}Max`,p=`${o}Min`;return t.jsx(V,{error:e?void 0:n,htmlFor:o,label:r,required:l,tooltip:s,children:t.jsxs(m,{display:"flex",flexDirection:c==="filters"?"column":"row",gap:.25,width:"100%",children:[t.jsx(Ne,{...a,disabled:e,error:n,name:(a==null?void 0:a.name)??p}),t.jsx(Ne,{...i,disabled:e,error:n,name:(i==null?void 0:i.name)??d})]})})},Ir=f.styled.div`
1431
+ ${({theme:e})=>`
1432
+ align-items: flex-start;
1433
+ align-self: stretch;
1434
+ display: flex;
1435
+ gap: ${e.spacing[.5]};
1436
+
1437
+ > button, div {
1438
+ border: 1px solid ${e.palette.gray[300]};
1439
+ border-radius: ${e.spacing[.5]};
1440
+ }
1441
+
1442
+ &.disabled {
1443
+ > button, div {
1444
+ background: ${e.palette.gray[100]};
1445
+ color: ${e.palette.gray[400]};
1446
+ cursor: not-allowed;
1447
+ }
1448
+ }
1449
+
1450
+ &.error:not(.disabled) {
1451
+ > button, div {
1452
+ border: 1px solid ${e.palette.error[500]};
1453
+ }
1454
+ }
1455
+
1456
+ &:focus-within:not(.disabled, .error) {
1457
+ > button, div {
1458
+ background: ${e.palette.white};
1459
+ border: 2px solid ${e.palette.black};
1460
+ }
1461
+ }
1462
+
1463
+ &:hover:not(:focus-within, .disabled, .error) {
1464
+ > button, div {
1465
+ background: ${e.palette.white};
1466
+ border-color: ${e.palette.gray[600]};
1467
+ }
1468
+ }
1469
+ `}
1470
+ `,Er=f.styled.button`
1471
+ ${({theme:e})=>`
1472
+ align-items: center;
1473
+ background: inherit;
1474
+ border-color: inherit;
1475
+ display: flex;
1476
+ gap: ${e.spacing[.25]};
1477
+ height: 40px;
1478
+ min-width: 67px;
1479
+ padding: ${e.spacing[.625]} ${e.spacing[1]};
1480
+
1481
+ &:disabled {
1482
+ background: ${e.palette.gray[100]};
1483
+ cursor: not-allowed;
1484
+ }
1485
+ `}
1486
+ `,Rr=f.styled.ul`
1487
+ ${({theme:e})=>`
1488
+ align-items: flex-start;
1489
+ box-shadow: ${e.shadows.md};
1490
+ display: flex;
1491
+ flex-direction: column;
1492
+ margin-top: ${e.spacing[.25]};
1493
+ max-height: 190px;
1494
+ overflow: hidden auto;
1495
+ scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
1496
+ scroll-padding: ${e.spacing[.5]};
1497
+ scrollbar-width: thin;
1498
+ width: max-content;
1499
+ `}
1500
+ `,Dr=f.styled.li`
1501
+ ${({theme:e})=>`
1502
+ align-items: center;
1503
+ background: ${e.palette.white};
1504
+ cursor: pointer;
1505
+ display: inline-flex;
1506
+ font-size: ${e.typography.text.sm};
1507
+ gap: ${e.spacing[.5]};
1508
+ height: 38px;
1509
+ line-height: ${e.spacing[1.25]};
1510
+ padding: ${e.spacing[.5]} ${e.spacing[1]};
1511
+ width: 190px;
1512
+
1513
+ &:hover {
1514
+ background: ${e.palette.gray[100]};
1515
+ }
1516
+ `}
1517
+ `,Nr=f.styled.p`
1518
+ color: ${({theme:e})=>e.palette.gray[800]};
1519
+ font-size: inherit;
1520
+ min-width: 55%;
1521
+ overflow: hidden;
1522
+ text-overflow: ellipsis;
1523
+ white-space: nowrap;
1524
+ `,Fr=({disabled:e,error:n,label:o,name:r,placeholder:i,required:a,register:l,tooltip:s,value:c,watch:d,weight:p})=>{const g=f.useTheme(),x=u.useRef(null),h=e?void 0:n,b=(d==null?void 0:d(r))??c,[w,$]=u.useState(!1),[k,v]=u.useState(""),{refs:C,floatingStyles:j}=y.useFloating$1({placement:"bottom-start",whileElementsMounted:y.autoUpdate}),{inputRef:z,inputValue:R,handlePhoneValueChange:T,country:S,setCountry:A}=y.ee({countries:y._$1,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),I=u.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]),L=u.useCallback(W=>{W.preventDefault(),$(M=>!M),w||v("")},[w]),K=u.useCallback(W=>()=>{A(W),$(!1),v("")},[A,$]),q=u.useCallback(W=>{W.key.length===1?v(M=>M+W.key):W.key==="Backspace"&&v(M=>M.slice(0,-1))},[]),re=y._$1.filter(W=>{const{name:M}=y.M(W);return M.toLowerCase().includes(k.toLowerCase())});return ee(C.floating.current,()=>{$(!1),v("")},!0),t.jsx(V,{error:h,htmlFor:r,label:o,required:a,tooltip:s,weight:p,children:t.jsxs(Ir,{className:`${e?"disabled":""} ${h?"error":""}`,ref:x,children:[t.jsxs(Er,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:q,ref:C.setReference,children:[t.jsx(y.q,{iso2:S.iso2,size:"16px"}),t.jsx(D,{icon:"angle-down",iconColor:g.palette.gray[400],iconSize:"lg",iconType:"fa-light"})]}),t.jsxs(oe,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":r,"aria-required":a,autoComplete:"off","data-testid":`${r}-input`,disabled:e,id:r,name:r,onKeyDown:I,placeholder:i,ref:z,type:"tel",value:R,...l==null?void 0:l(r,{required:a,onChange:T})}),h?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:g.palette.error[500],iconSize:"lg"}):void 0]}),w&&le.createPortal(t.jsx(Rr,{ref:C.setFloating,style:j,children:re.map(W=>{const{dialCode:M,iso2:Z,name:de}=y.M(W);return t.jsxs(Dr,{onClick:K(Z),value:Z,children:[t.jsx(y.q,{iso2:Z,size:"16px"}),t.jsx(Nr,{children:de}),t.jsx(E,{color:g.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+M})]},Z)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},Ar=({disabled:e=!1,error:n,helpLink:o,helpLinkText:r,helpText:i,isTouched:a,isValid:l,label:s,name:c="input-text",id:d,maskValue:p=!1,maxLength:g,onBlur:x,placeholder:h,register:b,required:w,rows:$,tooltip:k,watch:v,weight:C,value:j})=>{const z=f.useTheme(),R=(v==null?void 0:v(c))??j,T=l&&a&&!e,S=e?void 0:n;return t.jsx(V,{disabled:e,error:S,helpLink:o,helpLinkText:r,helpText:i,htmlFor:c,label:s,maxLength:g,required:w,tooltip:k,value:R?String(R):void 0,weight:C,children:t.jsxs(oe,{className:`
1525
+ ${e?"disabled":""} ${S?"error":""} ${T?"success":""}
1526
+ `,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":S?"true":"false","aria-label":c,"aria-required":w,className:p?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:g,placeholder:h,rows:$,value:R,...b==null?void 0:b(c,{required:w,onBlur:x})}),S?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:z.palette.error[500],iconSize:"lg"}):void 0,T?t.jsx(D,{icon:"check-circle",iconClass:"success-icon",iconColor:z.palette.success[500],iconSize:"lg"}):void 0]})})},Lr=({control:e,description:n,disabled:o,id:r,items:i,align:a,inputType:l="text",inputNumberProps:s,minHeight:c,minWidth:d,name:p,placeholder:g,textAlign:x,tooltip:h,title:b,value:w,isTouched:$,isValid:k,error:v,onChange:C,register:j,setValue:z,watch:R})=>{const T=u.useMemo(()=>{if(l==="text")return t.jsx(Oe,{disabled:o,error:v,isTouched:$,isValid:k,name:p,placeholder:g,register:j});if(l==="date")return t.jsx(Ut,{disabled:o,error:v,name:p,register:j,setValue:z,watch:R});if(l==="select"&&i)return t.jsx(at,{control:e,disabled:o,items:i,name:p,placeholder:g,value:w});const{decimalPlaces:S,max:A,min:I}=s??{};return t.jsx(Zt,{decimalPlaces:S,disabled:o,error:v,max:A,min:I,name:p,onChange:C,placeholder:g,register:j,setValue:z,value:w,watch:R})},[e,o,v,s,l,$,k,i,p,C,g,j,z,w,R]);return t.jsxs(Yo,{$align:a,$minHeight:c,$minWidth:d,children:[t.jsx(Fe,{description:n,id:r,textAlign:x,title:b,tooltip:h}),T]})},Pr=ce.default.div`
1527
+ display: flex;
1528
+ align-self: flex-start;
1529
+ margin-left: auto;
1530
+ width: 40px;
1531
+ height: auto;
1532
+ `,Jt=(e,n)=>{const[r,i]=u.useState(0),[a,l]=u.useState(0);return u.useEffect(()=>{a===100&&(()=>{i(c=>c===n-1?0:c+1)})()},[a,n]),u.useEffect(()=>{const s=setInterval(()=>{l(c=>c===100?0:c+1)},e);return()=>{clearInterval(s)}},[e]),{cycle:r,progress:a,setCycle:i,setProgress:l}},Qt=({publicId:e,format:n="webp"})=>{const o=u.useMemo(()=>new y.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return u.useMemo(()=>o.image(e).format(n),[o,e,n])},Te=e=>{const[n,o]=u.useState(!1),r=u.useCallback(()=>{o(!0)},[]),i=u.useCallback(()=>{o(!1)},[]),a=u.useCallback(()=>{o(l=>!l)},[]);return{close:i,isOpen:n,name:e,open:r,setIsOpen:o,toggle:a}},Or=e=>e.reduce((n,o)=>({...n,[o.id]:o.visible}),{}),en=({name:e,items:n,columnOrder:o,setColumnOrder:r,setColumnVisibility:i})=>{const a=u.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...x})=>({...x,visible:!0,locked:g})),...n.filter(({locked:g})=>!g)],[n]),[l,s]=u.useState(a),c=u.useCallback(g=>{const x=g.filter(({locked:$})=>!$),b=[...g.filter(({locked:$})=>$),...x],w=b.map(({name:$})=>$);s($=>[...b,...$.filter(({name:k})=>!w.includes(k))]),r&&r(b.map(({id:$})=>$))},[r]),d=u.useCallback(()=>{const g=l.map(x=>({...x,visible:x.locked||((o==null?void 0:o.includes(x.id))??!1)})).toSorted((x,h)=>{if(x.locked&&!h.locked)return-1;if(!x.locked&&h.locked)return 1;if(Number(h.visible)!==Number(x.visible))return Number(h.visible)-Number(x.visible);const b=(o==null?void 0:o.indexOf(x.id))??0,w=(o==null?void 0:o.indexOf(h.id))??0;return b-w});i==null||i(Or(g)),c(g)},[l,o,c,i]),p=u.useMemo(()=>y.some(l,g=>((o==null?void 0:o.includes(g.id))??!1)!==g.visible),[l,o]);return{setColumns:c,resetToDefault:d,columns:l,...Te(e),hasChanged:p}},lt=(e,n)=>u.useMemo(()=>y._.debounce(e,n),[e,n]),Mr=e=>{const[n,o]=u.useState(),r=lt(i=>{o(i)},(e==null?void 0:e.debounceWait)??300);return[n,r]},Hr=({alt:e="img",height:n="",width:o="",plugins:r=[y.lazyload(),y.placeholder()],publicId:i})=>{const a=Qt({publicId:i});return t.jsx(y.AdvancedImage,{alt:e,cldImg:a,height:n,plugins:r,width:o})},ne=tt.default.memo(Hr),Wr=f.styled.label`
1533
+ ${({theme:e})=>`
1534
+ align-items: center;
1535
+ display: flex;
1536
+ color: ${e.palette.gray[600]};
1537
+ cursor: pointer;
1538
+ font-family: ${e.typography.type.primary};
1539
+ font-size: ${e.typography.text.sm};
1540
+ font-weight: ${e.typography.weight.regular};
1541
+ gap: ${e.spacing[.5]};
1542
+ line-height: ${e.typography.text.lg};
1543
+ text-align: left;
1544
+ position: relative;
1545
+
1546
+ &[aria-disabled="true"] {
1547
+ color: ${e.palette.gray[400]};
1548
+ cursor: not-allowed;
1549
+ }
1550
+
1551
+ input {
1552
+ position: absolute;
1553
+ opacity: 0;
1554
+ cursor: pointer;
1555
+ width: 0;
1556
+ }
1557
+
1558
+ .checkmark {
1559
+ position: relative;
1560
+ top: 0;
1561
+ left: 0;
1562
+ height: 16px;
1563
+ width: 16px;
1564
+ background-color: ${e.palette.white};
1565
+ border-radius: 50%;
1566
+ border: 1px solid ${e.palette.gray[600]};
1567
+ }
1568
+
1569
+ input:disabled ~ .checkmark {
1570
+ border: 1px solid ${e.palette.gray[300]};
1571
+ background-color: ${e.palette.white};
1572
+ cursor: not-allowed;
1573
+ }
1574
+
1575
+ input:not(:disabled):checked ~ .checkmark {
1576
+ background-color: ${e.palette.white};
1577
+ border: 1px solid ${e.palette.primary[500]};
1578
+ }
1579
+
1580
+ input:not(:disabled):hover ~ .checkmark {
1581
+ background-color: ${e.palette.white};
1582
+ box-shadow: 0 0 0 4px ${e.palette.gray[100]};
1583
+ }
1584
+
1585
+ input:not(:disabled):hover:checked ~ .checkmark {
1586
+ background-color: ${e.palette.white};
1587
+ box-shadow: 0 0 0 4px ${e.palette.primary[50]};
1588
+ }
1589
+
1590
+ .checkmark::after {
1591
+ content: "";
1592
+ position: absolute;
1593
+ display: none;
1594
+ top: 3px;
1595
+ left: 3px;
1596
+ width: 8px;
1597
+ height: 8px;
1598
+ border-radius: 50%;
1599
+ background: ${e.palette.primary[500]};
1600
+ }
1601
+
1602
+ input:checked ~ .checkmark::after {
1603
+ display: block;
1604
+ }
1605
+
1606
+ input:disabled:checked ~ .checkmark::after {
1607
+ background-color: ${e.palette.gray[300]};
1608
+ }
1609
+
1610
+ `}
1611
+ `,Br=f.styled.span.attrs({className:"checkmark"})``,ct=u.forwardRef(function({checked:n,disabled:o=!1,label:r,name:i,onChange:a,onClick:l,value:s,...c},d){return t.jsxs(Wr,{"aria-disabled":o,"aria-label":r??i,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":o,"aria-label":r??i,checked:n,disabled:o,name:i,onChange:a,onClick:l,ref:d,type:"radio",value:s,...c}),t.jsx(Br,{}),r??null]})}),_r=({alt:e,customDescription:n,imageId:o,icon:r,selectorProps:i,onClick:a,register:l,bgColor:s,title:c,isATag:d=!1,width:p="fit-content"})=>{const g=f.useTheme();return t.jsxs(m,{alignItems:"center",bgColor:s??"",border:`1px solid ${g.palette.gray[200]}`,borderColorHover:g.palette.gray[600],borderRadius:g.spacing[.25],display:"inline-flex",pr:d?1:0,shadowHover:"md",width:p,children:[t.jsxs(m,{display:"inline-flex",padding:[1,1,1,1],children:[t.jsx(m,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(ct,{defaultChecked:i.defaultChecked,name:i.name,onClick:a,value:i.value,...l==null?void 0:l(i.name)})}),t.jsxs(m,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[!d&&o!==void 0&&t.jsx(ne,{alt:e??"card image",height:"32px",publicId:o,width:"32px"}),r===void 0?void 0:t.jsx(D,{icon:r,iconSize:"xl",iconType:"fa-light"}),t.jsxs(m,{display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(E,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),n===void 0?void 0:t.jsx(m,{children:n})]})]})]}),d&&t.jsx(Pr,{children:t.jsx(ne,{alt:e??"tag image",height:"40px",publicId:o??"tag image",width:"40px"})})]})},ge=f.styled.div`
1612
+ ${({theme:e})=>`
1613
+ align-items: center;
1614
+ background-color: ${e.palette.gray[200]};
1615
+ border-radius: 34px;
1616
+ cursor: pointer;
1617
+ display: flex;
1618
+ height: 20px;
1619
+ position: relative;
1620
+ transition: 0.2s;
1621
+ width: 36px;
1622
+ `}
1623
+ `,Vr=f.styled.div`
1624
+ ${({theme:e})=>`
1625
+ background-color: ${e.palette.white};
1626
+ border-radius: 50%;
1627
+ height: ${e.spacing[1]};
1628
+ left: 2px;
1629
+ position: absolute;
1630
+ transition: 0.2s;
1631
+ width: ${e.spacing[1]};
1632
+ z-index: 1;
1633
+ `}
1634
+ `,Ur=f.styled.label`
1635
+ display: inline-block;
1636
+
1637
+ input {
1638
+ position: absolute;
1639
+ height: 0;
1640
+ opacity: 0;
1641
+ width: 0;
1642
+ }
1643
+
1644
+ input:checked + ${ge} {
1645
+ background-color: ${({theme:e})=>e.palette.primary[500]};
1646
+ }
1647
+
1648
+ input:checked + ${ge} > div {
1649
+ transform: translateX(100%);
1650
+ }
1651
+
1652
+ input:disabled + ${ge} {
1653
+ cursor: not-allowed;
1654
+ background-color: ${({theme:e})=>e.palette.gray[100]};
1655
+ }
1656
+
1657
+ input:disabled + ${ge} > div {
1658
+ background-color: ${({theme:e})=>e.palette.gray[200]};
1659
+ border: 1px solid ${({theme:e})=>e.palette.gray[200]};
1660
+ }
1661
+ `,tn=u.forwardRef(function({defaultChecked:n,disabled:o=!1,justify:r,name:i,leftDescription:a,leftDescriptionMinWidth:l,rightDescription:s,onChange:c,...d},p){const g=n===!0?"on":"off",x=typeof a=="object"&&a.on&&a.off?a[g]:a,h=u.useCallback(b=>{b.stopPropagation()},[]);return t.jsxs(m,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:r,children:[t.jsx(m,{minWidth:l,children:x}),t.jsxs(Ur,{onClick:h,role:"switch",children:[t.jsx("input",{...d,"aria-disabled":o,"aria-label":i,checked:n===!0,disabled:o,name:i,onChange:c,ref:p,type:"checkbox"}),t.jsx(ge,{"aria-label":"Toggle Switch",id:`${i}Toggle`,children:t.jsx(Vr,{})})]}),s]})}),Gr=({id:e,title:n,toggles:o,minWidth:r="auto",height:i="auto"})=>{const a=f.useTheme();return t.jsxs(m,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${a.palette.gray[200]}`,borderRadius:a.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:i,justify:"center",minHeight:"100px",minWidth:r,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(Fe,{id:e,title:n}),t.jsx(m,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:o.map(l=>t.jsx(tn,{...l},`$card-toggle-${l.name}`))})]})},Yr=.5,kt=1.25,Kr=({children:e,bgColor:n,border:o,gap:r=Yr,px:i=kt,py:a=kt,...l})=>{const s=f.useTheme();return t.jsx(m,{bgColor:n??s.palette.white,border:o??`1px solid ${s.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:"column",gap:r,px:i,py:a,...l,children:e})},qr=f.styled.div`
1662
+ position: relative;
1663
+ margin: auto;
1664
+ overflow: hidden;
1665
+ `,Zr=f.styled.div`
1666
+ display: flex;
1667
+ transition: transform 0.5s ease-in-out;
1668
+ transform: translateX(
1669
+ ${({$currentIndex:e})=>-e*100}%
1670
+ );
1671
+ `,Xr=f.styled.div`
1672
+ align-items: center;
1673
+ display: flex;
1674
+ justify-content: center;
1675
+ min-width: 100%;
1676
+ `,Jr=f.styled.button`
1677
+ ${({theme:e,$isActive:n})=>`
1678
+ background-color: ${n?e.palette.primary[400]:e.palette.white};
1679
+ border: none;
1680
+ border-radius: 50%;
1681
+ cursor: pointer;
1682
+ height: ${e.spacing[.75]};
1683
+ width: ${e.spacing[.75]};
1684
+ `}
1685
+ `,Qr=f.styled.div`
1686
+ align-items: center;
1687
+ display: flex;
1688
+ gap: ${({theme:e})=>e.spacing[.5]};
1689
+ justify-content: center;
1690
+ margin-top: ${({theme:e})=>e.spacing[2]};
1691
+ `,ei=({slides:e,interval:n=300})=>{const{cycle:o,setCycle:r,setProgress:i}=Jt(n,e.length),a=u.useCallback(l=>()=>{r(l),i(0)},[r,i]);return t.jsxs(qr,{"aria-roledescription":"carousel",children:[t.jsx(Zr,{$currentIndex:o,children:e.map((l,s)=>{const c=`slide-${s}`;return t.jsx(Xr,{"aria-label":c,"aria-roledescription":"slide",children:l.content},c)})}),t.jsx(Qr,{children:e.map((l,s)=>{const c=`nav-button-${s}`;return t.jsx(Jr,{$isActive:s===o,"aria-label":`Go to slide ${s+1}`,"data-testid":s===o?"active":"inactive",onClick:a(s)},c)})})]})},nn=f.styled.div`
1692
+ ${({theme:e})=>`
1693
+ background-color: ${e.palette.gray[100]};
1694
+ border-radius: ${e.spacing[.25]};
1695
+ display: inline-flex;
1696
+ padding: ${e.spacing[1]};
1697
+ position: relative;
1698
+ width: fit-content;
1699
+
1700
+ .line-highlight.language-none {
1701
+ background: ${e.palette.gray[100]};
1702
+ }
1703
+
1704
+ .line-highlight {
1705
+ background: hsl(354deg 100% 85% / 40%);
1706
+ font-family: ${e.typography.type.mono};
1707
+ font-size: ${e.typography.text.xs};
1708
+ line-height: ${e.spacing[1]};
1709
+ color: ${e.palette.black} !important;
1710
+ border-radius: ${e.spacing[1]};
1711
+ isolation: isolate;
1712
+ }
1713
+
1714
+ .line-highlight code * {
1715
+ color: ${e.palette.black} !important;
1716
+ mix-blend-mode: darken;
1717
+ }
1718
+
1719
+ .line-highlight::before,
1720
+ .line-highlight::after {
1721
+ display: none !important;
1722
+ }
1723
+
1724
+ pre[data-line] .line-highlight::before {
1725
+ background-color: ${e.palette.primary[400]} !important;
1726
+ font-weight: 400;
1727
+ font-size: 9px;
1728
+ font-family: ${e.typography.type.mono};
1729
+ width: 18px !important;
1730
+ height: 12px !important;
1731
+ display: flex !important;
1732
+ align-items: center !important;
1733
+ justify-content: center !important;
1734
+ position: absolute !important;
1735
+ box-shadow: none !important;
1736
+ text-shadow: none !important;
1737
+ border: none !important;
1738
+ outline: none !important;
1739
+ transform: translateX(-2.5px) translateY(-1.2px) !important;
1740
+ }
1741
+
1742
+ pre code {
1743
+ color: #161616;
1744
+ font-family: ${e.typography.type.mono};
1745
+ font-size: ${e.typography.text.xs};
1746
+ line-height: ${e.spacing[1]};
1747
+ }
1748
+
1749
+ pre:not(.line-highlight) {
1750
+ margin-top: unset;
1751
+ margin-bottom: unset;
1752
+ padding: unset;
1753
+ width: 100%;
1754
+ }
1755
+
1756
+ span:hover {
1757
+ background-color: ${e.palette.gray[200]};
1758
+ }
1759
+
1760
+ .no-data,
1761
+ pre.line-highlight {
1762
+ background-color: ${e.palette.gray[100]};
1763
+ padding-top: unset;
1764
+ padding-bottom: unset;
1765
+ }
1766
+ `}
1767
+ `,ti=f.styled.div`
1768
+ ${({theme:e})=>`
1769
+ align-items: end;
1770
+ background-color: ${e.palette.gray[100]};
1771
+ display: flex;
1772
+ flex-direction: column;
1773
+ justify-content: space-between;
1774
+ min-width: 103px;
1775
+ margin-right: ${e.spacing[1]};
1776
+ padding-top: ${e.spacing[1]};
1777
+ padding-bottom: ${e.spacing[1]};
1778
+ position: relative;
1779
+ padding-left: unset;
1780
+
1781
+ button:hover:not([disabled]) {
1782
+ background-color: ${e.palette.gray[200]};
1783
+ }
1784
+ `}
1785
+ `,on=({noCodeMessage:e="Code snippet not available",snippet:n,specific:o})=>(u.useEffect(()=>{y.prismExports.highlightAll()},[]),t.jsx(nn,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":y._.isNil(n)||y._.isString(n)?0:n.offset+.7,...o!==void 0?{"data-line":String(Number(o))}:{},children:y._.isNil(n)||y._.isString(n)||y._.isEmpty(n.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:n.content})})})),ni=({noCodeMessage:e="Code snippet not available",snippet:n,specific:o,variant:r="normal",expanded:i=!1})=>{const a=f.useTheme(),[l,s]=u.useState(!1),[c,d]=u.useState(!0),p=u.useCallback(()=>{s(b=>!b)},[s]),g=u.useCallback(()=>{if(y._.isNil(n)||y._.isEmpty(n)||!y._.isString(n))return d(!1),e;const b=n.split(`
1786
+ `);return b.length>8&&!l?`${[...b].splice(0,7).join(`
1787
+ `)}
1788
+ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return r==="location"?t.jsx(on,{noCodeMessage:e,snippet:n,specific:o}):t.jsxs(m,{bgColor:a.palette.gray[100],borderRadius:"4px",display:"inline-flex",justify:i?"space-between":"center",minWidth:"565px",position:"relative",width:i?"100%":"565px",children:[t.jsx(nn,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:x})})}),t.jsxs(ti,{children:[t.jsx(H,{height:a.spacing[2.5],icon:"copy",iconColor:a.palette.gray[700],iconSize:"lg",iconType:"fa-light",onClick:h,variant:"ghost",width:a.spacing[2.5]}),c?t.jsxs(O,{onClick:p,variant:"ghost",children:[l?"Show Less":"Show more",t.jsx(D,{icon:l?"chevron-up":"chevron-down",iconColor:a.palette.gray[700],iconSize:"sm",iconType:"fa-light",ml:.25,onClick:h})]}):!1]})]})},{getVariant:oi}=X(e=>({fixed:`
1789
+ height: auto;
1790
+ min-width: 300px;
1791
+ padding: ${e.spacing[1.25]};
1792
+ overflow: hidden auto;
1793
+ `,lg:`
1794
+ width: 80%;
1795
+
1796
+ @media screen and (min-width: ${e.breakpoints.sm}) {
1797
+ width: 72%;
1798
+ }
1799
+ `,md:`
1800
+ width: 60%;
1801
+
1802
+ @media screen and (min-width: ${e.breakpoints.sm}) {
1803
+ width: 48%;
1804
+ }
1805
+ `,sm:`
1806
+ width: 40%;
1807
+
1808
+ @media screen and (min-width: ${e.breakpoints.sm}) {
1809
+ width: 32%;
1810
+ }
1811
+ `})),rn=f.styled.div.attrs({className:"comp-modal fixed inset-0 overflow-auto"})`
1812
+ align-items: center;
1813
+ background-color: ${({$bgColor:e="rgb(52 64 84 / 70%)"})=>e};
1814
+ display: flex;
1815
+ justify-content: center;
1816
+ z-index: 99999;
1817
+ `,dt=f.styled(m)`
1818
+ ${({theme:e,$size:n})=>`
1819
+ background-color: ${e.palette.white};
1820
+ border: 1px solid ${e.palette.gray[200]};
1821
+ border-radius: ${e.spacing[.25]};
1822
+ color: ${e.palette.gray[800]};
1823
+ display: flex;
1824
+ font-family: ${e.typography.type.primary};
1825
+ font-size: ${e.typography.text.sm};
1826
+ max-height: 80%;
1827
+ min-height: minmax(content-fit, 32%);
1828
+ box-shadow: ${e.shadows.lg};
1829
+ margin: auto;
1830
+ white-space: pre-line;
1831
+
1832
+ ${oi(e,n)}
1833
+ `}
1834
+ `,ri=f.styled.div`
1835
+ ${({theme:e})=>`
1836
+ background-color: ${e.palette.white};
1837
+ border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
1838
+ display: flex;
1839
+ flex-direction: column;
1840
+ overflow: hidden auto;
1841
+ padding: 0 ${e.spacing[1.5]} ${e.spacing[1.5]} ${e.spacing[1.5]};
1842
+ scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
1843
+ scroll-padding: ${e.spacing[.5]};
1844
+
1845
+ &:has(form) {
1846
+ flex-direction: unset;
1847
+ overflow: hidden;
1848
+ padding: 0;
1849
+ }
1850
+
1851
+ &:has(#footer) {
1852
+ flex-direction: column;
1853
+ overflow: hidden;
1854
+ height: 100%;
1855
+
1856
+ > *:not(#footer) {
1857
+ flex: 1 1 auto;
1858
+ overflow-y: auto;
1859
+ }
1860
+ }
1861
+ `}
1862
+ `,ii=f.styled.div`
1863
+ border-radius: ${({theme:e})=>`${e.spacing[.25]} ${e.spacing[.25]} 0 0`};
1864
+ display: block;
1865
+ overflow: unset;
1866
+ height: max-content;
1867
+ max-height: 100%;
1868
+ max-width: 100%;
1869
+ padding: ${({theme:e})=>`${e.spacing[1.25]}`};
1870
+ padding-bottom: ${({theme:e})=>`${e.spacing[1.5]}`};
1871
+ position: sticky;
1872
+ `,ai=f.styled.div.attrs({className:"flex items-center justify-between"})``,si=f.styled.div`
1873
+ ${({theme:e})=>`
1874
+ border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
1875
+ display: flex;
1876
+ flex-direction: row;
1877
+ gap: ${e.spacing[.75]};
1878
+ justify-content: space-between;
1879
+ max-width: 392px;
1880
+
1881
+ > label {
1882
+ margin: 0;
1883
+ flex: 1 1 auto;
1884
+ }
1885
+
1886
+ > div {
1887
+ display: flex;
1888
+ flex-direction: row;
1889
+ flex: 1 1 auto;
1890
+ gap: ${e.spacing[.75]};
1891
+ margin-right: ${e.spacing[.75]};
1892
+
1893
+ > button {
1894
+ justify-content: center;
1895
+ max-width: 190px;
1896
+ }
1897
+ }
1898
+
1899
+ > div:last-child {
1900
+ margin-right: 0;
1901
+ }
1902
+ `}
1903
+ `,li=f.styled.div`
1904
+ img {
1905
+ margin: 0 calc(-${({theme:e})=>e.spacing[1.25]} - 1px)
1906
+ ${({theme:e})=>e.spacing[1.25]};
1907
+
1908
+ min-width: calc(100% + 2px + ${({theme:e})=>e.spacing[3]});
1909
+ height: 185px;
1910
+ object-fit: cover;
1911
+
1912
+ ${({$framed:e=!1})=>e?`
1913
+ border-radius: 8px;
1914
+ min-width: 100%;
1915
+ margin-left: 0;
1916
+ margin-right: 0;
1917
+ `:""}
1918
+ }
1919
+ `,an=({alert:e,modalRef:n,confirmButton:o=void 0,cancelButton:r=void 0})=>{const{close:i}=n,a=u.useCallback(()=>{r!=null&&r.onClick&&r.onClick(),i()},[r,i]),l=u.useCallback(()=>{o!=null&&o.onClick&&o.onClick(),i()},[o,i]);return[o,r].some(c=>!y.lodashExports.isEmpty(c))?t.jsxs(m,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(si,{children:t.jsxs("div",{children:[r&&t.jsx(O,{id:r.id,onClick:a,variant:"tertiary",width:"100%",children:r.text}),o&&t.jsx(O,{id:o.id,onClick:l,variant:"primary",width:"100%",children:o.text})]})})]}):null},sn=({title:e,description:n,modalRef:o,otherActions:r,onClose:i})=>{const a=f.useTheme(),l=u.useCallback(()=>{i==null||i(),o.close()},[o,i]);return u.useEffect(()=>{const s=c=>{c.key==="Escape"&&l()};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[l]),t.jsxs(ii,{children:[t.jsxs(ai,{children:[typeof e=="string"?t.jsx(J,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",wordBreak:"break-word",children:e}):e,t.jsxs("div",{className:"items-center flex gap-3",children:[r,t.jsx(H,{icon:"close",iconColor:a.palette.gray[400],iconSize:"lg",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:l,px:.25,py:.25,variant:"ghost"})]})]}),n&&y.lodashExports.isString(n)&&!y.lodashExports.isEmpty(n)?t.jsx(E,{mt:.5,size:"sm",children:n}):void 0,n&&!y.lodashExports.isString(n)&&t.jsx(he,{display:"block",mt:.5,size:"sm",children:n})]})},ln=({disabled:e,id:n="modal-confirm",onCancel:o,onConfirm:r="submit",txtCancel:i,txtConfirm:a})=>{const l=r==="submit";return t.jsxs(m,{display:"flex",gap:.75,id:"footer",maxWidth:o?"392px":"190px",mt:1.5,children:[o?t.jsx(O,{id:`${n}-cancel`,justify:"center",onClick:o,variant:"tertiary",width:"100%",children:i??"Cancel"}):void 0,t.jsx(O,{disabled:e,id:n,justify:"center",onClick:l?void 0:r,type:l?"submit":"button",variant:"primary",width:"100%",children:a??"Confirm"})]})},ci=(e,n,o)=>o?n==="secondary"?`3px solid ${e.palette.primary[100]}`:`3px solid ${e.palette.primary[500]}`:"unset",di=f.styled.div`
1920
+ display: flex;
1921
+ flex-direction: row;
1922
+ gap: ${({theme:e})=>e.spacing[.25]};
1923
+ border-bottom: ${({theme:e,$borderButton:n,$variant:o})=>ci(e,o,n)};
1924
+ align-items: center;
1925
+ padding: ${({theme:e})=>e.spacing[.625]}
1926
+ ${({theme:e})=>e.spacing[.5]};
1927
+ padding-bottom: ${({theme:e,$borderButton:n})=>n?`calc(${e.spacing[.625]} - 2px)`:e.spacing[.625]};
1928
+
1929
+ &:hover:not([disabled]) {
1930
+ background-color: ${({theme:e})=>e.palette.gray[100]};
1931
+ color: ${({theme:e})=>e.palette.gray[800]};
1932
+ }
1933
+
1934
+ a {
1935
+ align-items: center;
1936
+ background: transparent;
1937
+ color: ${({theme:e})=>e.palette.gray[800]};
1938
+ font-family: ${({theme:e})=>e.typography.type.primary};
1939
+ font-size: ${({theme:e})=>e.typography.text.sm};
1940
+ display: flex;
1941
+ font-weight: ${({theme:e})=>e.typography.weight.regular};
1942
+ position: relative;
1943
+ text-align: center;
1944
+ text-decoration: unset;
1945
+ width: auto;
1946
+ cursor: pointer;
1947
+
1948
+ &:disabled {
1949
+ cursor: not-allowed;
1950
+ background-color: ${({theme:e})=>e.palette.gray[300]};
1951
+ color: ${({theme:e})=>e.palette.gray[300]};
1952
+ }
1953
+
1954
+ &.active {
1955
+ background-color: transparent;
1956
+
1957
+ &:hover {
1958
+ background-color: transparent;
1959
+ }
1960
+ }
1961
+ }
1962
+ `,pi=f.styled(Se)`
1963
+ ${({theme:e,$variant:n})=>`
1964
+ align-items: center;
1965
+ background: ${n==="error"?e.palette.primary[400]:e.palette.warning[500]};
1966
+ border-radius: 100%;
1967
+ font-family: ${e.typography.type.primary};
1968
+ justify-content: center;
1969
+ padding: 0;
1970
+ position: absolute;
1971
+ z-index: 11;
1972
+ width: ${e.spacing[.5]};
1973
+ height: ${e.spacing[.5]};
1974
+ `}
1975
+ `,gi=f.styled.div`
1976
+ align-items: center;
1977
+ color: ${({theme:e})=>e.palette.white};
1978
+ display: flex;
1979
+ font-size: 6px;
1980
+ font-weight: ${({theme:e})=>e.typography.weight.bold};
1981
+ justify-content: center;
1982
+ `;f.styled.div`
1983
+ /* Override component size only in Storybook */
1984
+ & > div {
1985
+ width: 24px !important;
1986
+ height: 24px !important;
1987
+
1988
+ & > div {
1989
+ font-size: 12px !important;
1990
+ }
1991
+ }
1992
+ `;const cn=u.forwardRef(function({numberIndicator:n,show:o,variant:r="error",...i},a){return t.jsx(pi,{$variant:r,className:o?"flex":"hidden","data-testid":"notification-sign",ref:a,...i,children:n&&t.jsx(gi,{children:n<=9?n:9})})}),dn=({end:e=!1,label:n,id:o,isActive:r=!1,link:i,notificationSign:a,onClick:l,tooltip:s="",variant:c="primary",tag:d})=>{const{pathname:p}=Ue.useLocation(),g=r||(c==="primary"?p.includes(i):p.endsWith(i));return t.jsx(U,{display:"flex",id:`${o}-tooltip`,tip:s,children:t.jsxs(di,{$borderButton:g,$variant:c,children:[t.jsxs(Ue.NavLink,{end:e,id:o,onClick:l,to:i,children:[n,t.jsx(cn,{left:a==null?void 0:a.left,numberIndicator:a==null?void 0:a.numberIndicator,show:a==null?void 0:a.show,top:a==null?void 0:a.top,variant:a==null?void 0:a.variant})]}),d===void 0?null:t.jsx(Y,{tagLabel:`${d}`,variant:"default"})]})})},pt=({items:e,borders:n=!0,box:o=!1,variant:r="primary"})=>{const i=f.useTheme();return t.jsx(m,{alignItems:"center",bgColor:i.palette.white,border:o?"1px solid":void 0,borderBottom:n?`1px solid ${i.palette.gray[300]}`:void 0,borderColor:o?i.palette.gray[200]:void 0,borderRadius:o?i.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:o?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:o?"max-content":"100%",children:e.map(({end:a,id:l,isActive:s,link:c,label:d,notificationSign:p,onClick:g,tag:x,tooltip:h})=>t.jsx(dn,{end:a,id:l,isActive:s,label:d,link:c,notificationSign:p,onClick:g,tag:x,tooltip:h,variant:r},l))})},ae=u.forwardRef(function({color:n=N.palette.gray[100],mt:o=.5,mb:r=.5,width:i,...a},l){return t.jsx(m,{as:"hr",borderTop:`1px solid ${n}`,mb:r,mt:o,ref:l,width:i??"100%",...a})}),ui=f.styled.li`
1993
+ ${({theme:e})=>`
1994
+ align-items: center;
1995
+ background-color: ${e.palette.white};
1996
+ color: ${e.palette.gray[800]};
1997
+ cursor: pointer;
1998
+ display: flex;
1999
+ font-size: ${e.typography.text.sm};
2000
+ font-weight: ${e.typography.weight.regular};
2001
+ justify-content: space-between;
2002
+ gap: ${e.spacing[.625]};
2003
+ line-height: ${e.spacing[1.25]};
2004
+ list-style-type: none;
2005
+ min-height: 40px;
2006
+ min-width: 240px;
2007
+ padding: ${e.spacing[.625]} ${e.spacing[1]};
2008
+
2009
+ p,
2010
+ a {
2011
+ word-break: break-word;
2012
+ }
2013
+
2014
+ & > label {
2015
+ margin: unset;
2016
+ }
2017
+
2018
+ a {
2019
+ color: ${e.palette.gray[500]};
2020
+ }
2021
+
2022
+ &[aria-disabled="true"] {
2023
+ color: ${e.palette.gray[300]};
2024
+ cursor: not-allowed;
2025
+
2026
+ a {
2027
+ color: ${e.palette.gray[300]};
2028
+ }
2029
+ }
2030
+
2031
+ &[aria-selected="true"] {
2032
+ background-color: ${e.palette.gray[200]};
2033
+ }
2034
+
2035
+ &:hover:not([aria-selected="true"]) {
2036
+ background-color: ${e.palette.gray[100]};
2037
+ }
2038
+ `}
2039
+ `,pn=f.styled.ul`
2040
+ ${({theme:e})=>`
2041
+ background-color: ${e.palette.white};
2042
+ border: 1px solid ${e.palette.gray[200]};
2043
+ border-radius: ${e.spacing[.25]};
2044
+ box-shadow: ${e.shadows.md};
2045
+ display: inline-block;
2046
+ margin: unset;
2047
+ min-width: 240px;
2048
+ padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
2049
+ `}
2050
+ `,Ie=({children:e,disabled:n=!1,icon:o,iconType:r="fa-light",href:i,onClick:a,onClickIcon:l,onKeyDown:s,rightIcon:c,selected:d=!1,value:p,...g})=>{const h=f.useTheme().palette.gray[n?300:800],b=n?u.Children.map(e,w=>u.isValidElement(w)?u.cloneElement(w,{disabled:n,...w.props}):w):e;return t.jsxs(ui,{"aria-disabled":n,"aria-label":p,"aria-selected":d,"data-testid":p,onClick:a,onKeyDown:s,value:p,...g,children:[o!==void 0||p!==void 0?t.jsxs(m,{alignItems:"center",display:"flex",gap:.625,children:[o?t.jsx(D,{disabled:n,icon:o,iconColor:h,iconSize:"sm",iconType:r}):null,i===void 0?b:t.jsx(Q,{href:i,children:b})]}):null,d||c?t.jsx(D,{disabled:n,icon:c??"check",iconClass:"selected",iconColor:h,iconSize:"lg",iconType:r,onClick:l}):null]})},xi=ce.default(Ie)`
2051
+ margin-top: 10px;
2052
+ border: 1px solid ${({theme:e})=>e.palette.gray[300]};
2053
+ border-radius: 4px;
2054
+ min-width: unset;
2055
+
2056
+ svg {
2057
+ color: ${({theme:e})=>e.palette.gray[400]};
2058
+ }
2059
+
2060
+ &[aria-disabled="true"] {
2061
+ background: ${({theme:e})=>e.palette.gray[100]};
2062
+ color: ${({theme:e})=>e.palette.gray[500]};
2063
+ }
2064
+
2065
+ &[aria-selected="true"]:not([aria-disabled="true"]) {
2066
+ background-color: unset;
2067
+ }
2068
+ `,gn=({items:e,onReorder:n,title:o,description:r,onClickClose:i})=>{const a=u.useCallback(l=>()=>{i(l)},[i]);return t.jsxs(y.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:n,style:{height:"max-content",padding:"1.25rem 0",width:"45%"},values:e,children:[t.jsxs(m,{display:"flex",gap:.25,children:[t.jsx(J,{display:"flex",size:"xs",children:o}),t.jsx(Y,{priority:"high",tagLabel:String(e.filter(l=>l.visible).length),variant:"error"})]}),t.jsx(E,{size:"sm",children:r}),e.map(l=>l.visible?t.jsx(y.ReorderItem,{as:"div",dragListener:!l.locked,item:l.name,value:l,children:t.jsx(xi,{disabled:l.locked,icon:"grid-2",label:l.name,onClickIcon:l.locked?void 0:a(l.id),rightIcon:l.locked?"lock":"close",selected:l.visible,value:l.name,children:l.name})},l.name):void 0)]})},hi=ce.default(Ie)`
2069
+ padding: 7px 8px;
2070
+
2071
+ &[aria-selected="true"] {
2072
+ background-color: unset;
2073
+ }
2074
+
2075
+ svg {
2076
+ &.fa-check {
2077
+ border-radius: 2px;
2078
+ }
2079
+
2080
+ &.selected {
2081
+ display: none;
2082
+ }
2083
+ }
2084
+ `,un=({options:e,title:n,checkboxesName:o,defaultCollapsed:r,onChange:i})=>{const a=f.useTheme(),[l,s]=u.useState(r??!1),c=u.useCallback(()=>{s(d=>!d)},[]);return t.jsxs(m,{"aria-label":n,bgColor:l?a.palette.gray[50]:a.palette.white,border:"1px solid"+a.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,role:"region",width:"100%",children:[t.jsxs(m,{alignItems:"center",cursor:"pointer",display:"flex",onClick:c,children:[t.jsx(E,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:n}),t.jsx(D,{icon:l?"chevron-up":"chevron-down",iconColor:a.palette.gray[400],iconSize:"lg"})]}),l?t.jsx(m,{display:"flex",gap:.75,wrap:"wrap",children:e.map(d=>t.jsx(m,{bgColor:a.palette.white,border:"1px solid",borderColor:a.palette.gray[300],borderRadius:a.spacing[.25],px:.5,py:.5,children:t.jsx(ie,{checked:d.visible,disabled:d.locked,label:d.name,name:`${o}-${d.name}`,onChange:i,value:d.name})},d.name))}):void 0]})},xn=e=>e.reduce((o,r)=>r.group?o[r.group]?{...o,[r.group]:[...o[r.group],r]}:{...o,[r.group]:[r]}:o,{}),fi=f.styled.input`
2085
+ ${({theme:e})=>`
2086
+ background: none;
2087
+ border: none !important;
2088
+ box-shadow: none;
2089
+ box-sizing: border-box;
2090
+ color: ${e.palette.gray[800]};
2091
+ font-family: ${e.typography.type.primary};
2092
+ font-size: ${e.typography.text.sm};
2093
+ outline: none;
2094
+ width: 100%;
2095
+
2096
+ &:-webkit-autofill {
2097
+ -webkit-background-clip: text;
2098
+ }
2099
+
2100
+ &::placeholder {
2101
+ color: ${e.palette.gray[400]};
2102
+ }
2103
+
2104
+ &:is(:hover, :focus)::-webkit-search-cancel-button {
2105
+ display:none;
2106
+ }
2107
+
2108
+ ::-webkit-search-decoration,
2109
+ ::-webkit-search-results-button,
2110
+ ::-webkit-search-results-decoration {
2111
+ display:none;
2112
+ }
2113
+ `}
2114
+ `,yi=f.styled.div`
2115
+ ${({theme:e})=>`
2116
+ align-items: center;
2117
+ background-color: ${e.palette.white};
2118
+ border: 1px solid ${e.palette.gray[300]};
2119
+ border-radius: ${e.spacing[.5]};
2120
+ display: flex;
2121
+ height: 40px;
2122
+ gap: ${e.spacing[.5]};
2123
+ padding: ${e.spacing[.5]};
2124
+ width: 100%;
2125
+
2126
+ &:hover {
2127
+ border-color: ${e.palette.gray[600]};
2128
+ }
2129
+
2130
+ &:focus-within {
2131
+ border: 2px solid ${e.palette.black};
2132
+ }
2133
+ `}
2134
+ `,bi=f.styled.div`
2135
+ ${({theme:e})=>`
2136
+ background-color: ${e.palette.white};
2137
+ border-radius: ${e.spacing[.5]};
2138
+ width: 250px;
2139
+ `}
2140
+ `,se=({name:e,smallSearch:n=!1,onClear:o,onChange:r,value:i,...a})=>{const l=u.useRef(null),s=f.useTheme(),[c,d]=u.useState(!1),[p,g]=u.useState(i??""),{refs:x,floatingStyles:h}=y.useFloating$1(),b=u.useCallback(()=>{d(C=>!C)},[]),w=u.useCallback(C=>{C.key==="Enter"&&C.preventDefault()},[]),$=u.useCallback(C=>{g(C.target.value),r==null||r(C)},[r]),k=u.useCallback(()=>{g(""),o==null||o()},[o]);ee(x.floating.current,()=>{d(!1)},!0);const v=t.jsxs(yi,{children:[t.jsx(D,{icon:"magnifying-glass",iconColor:s.palette.gray[700],iconSize:"lg",iconType:"fa-light"}),t.jsx(fi,{id:e,name:e,onChange:$,onKeyDown:w,ref:l,type:"search",value:p,...a}),!y.lodashExports.isEmpty(p)&&t.jsx(H,{icon:"xmark",iconColor:s.palette.gray[300],iconSize:"lg",iconType:"fa-light",onClick:k,px:.25,py:.25,type:"reset",variant:"ghost"})]});return n?t.jsxs(u.Fragment,{children:[t.jsx(H,{border:`1px solid ${s.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"lg",iconType:"fa-light",onClick:b,ref:x.setReference,variant:"ghost"}),c?t.jsx(bi,{ref:x.setFloating,style:h,children:v}):void 0]}):v},hn=({columns:e,formId:n,onChangeHandler:o,variant:r})=>{const i=u.useRef(null),[a,l]=u.useState([]),[s,c]=u.useState(""),d=u.useCallback(g=>{const{value:x}=g.target;c(x)},[]),p=u.useCallback(()=>{i.current&&(i.current.reset(),c(""))},[i]);return u.useEffect(()=>{l(e.filter(g=>{var x;return r==="grouped"?g.name.toLowerCase().includes(s.toLowerCase())||((x=g.group)==null?void 0:x.includes(s.toLowerCase())):g.name.toLowerCase().includes(s.toLowerCase())}))},[e,s,r]),r==="grouped"?t.jsxs(m,{display:"flex",flexDirection:"column",gap:.625,height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:i,children:t.jsx(se,{name:"search",onChange:d,onClear:p,value:s})}),t.jsx("form",{"data-testid":n,id:n,onReset:p,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(xn(a)).map(([g,x],h)=>{const b=`li-checkbox${g}`;return t.jsx(un,{checkboxesName:g,defaultCollapsed:h===0,onChange:o,options:x,title:g},b)})})]}):t.jsxs(m,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:i,children:t.jsx(se,{name:"search",onChange:d,onClear:p,value:s})}),t.jsx("form",{"data-testid":n,id:n,onReset:p,style:{paddingTop:"0.625rem"},children:a.map(g=>{const x=`li-checkbox-${g.name}`;return t.jsx(hi,{selected:g.visible,value:x,width:"content",children:t.jsx(ie,{checked:g.visible,disabled:g.locked,label:g.name,name:g.name,onChange:o,value:g.name})},x)})})]})},fn=({_containerId:e="portals",title:n,modalRef:o,variant:r})=>{const i=f.useTheme(),a=u.useRef(null),[l,s]=u.useState(void 0),c=u.useCallback(g=>{const{checked:x,value:h}=g.target,b=o.columns.map(w=>{var $;return w.name===h?(($=w.toggleVisibility)==null||$.call(w,x),{...w,visible:x}):w});o.setColumns(b)},[o]),d=u.useCallback(g=>{const x=o.columns.map(h=>{var b;return h.id===g?((b=h.toggleVisibility)==null||b.call(h,!1),{...h,visible:!1}):h});o.setColumns(x)},[o]),p=u.useCallback(()=>{var x;const g=(x=a.current)==null?void 0:x.scrollHeight;l!==g&&s(g)},[l]);return o.isOpen?le.createPortal(t.jsx(rn,{"aria-label":o.name,"aria-modal":"true",children:t.jsxs(dt,{$size:"md",flexDirection:"column",children:[t.jsxs(m,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(J,{size:"sm",children:n}),t.jsx(H,{icon:"close",iconColor:i.palette.gray[400],iconSize:"lg",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,px:.25,py:.25,variant:"ghost"})]}),t.jsx(ae,{mb:0,mt:0}),t.jsxs(m,{display:"flex",gap:1.25,onScroll:p,px:1.25,ref:a,scroll:"y",width:"100%",children:[t.jsx(hn,{columns:o.columns,formId:"columns-visibility",onChangeHandler:c,variant:r}),t.jsx(m,{borderLeft:`2px solid ${i.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(gn,{description:"Click and drag to reorder the columns",items:o.columns,onClickClose:d,onReorder:o.setColumns,title:"Reorder columns"})]}),t.jsx(ae,{mb:0,mt:0}),t.jsxs(m,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(O,{disabled:!o.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:o.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to default"}),t.jsx(O,{id:"columns-modal-submit",justify:"center",onClick:o.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},$i=ce.default(Ie)`
2141
+ padding: 8px;
2142
+ min-height: 36px;
2143
+ min-width: unset;
2144
+ `,mi=ce.default.div.attrs({className:"comp-modal absolute top-[55px] overflow-auto"})`
2145
+ align-items: center;
2146
+ background-color: ${({$bgColor:e="rgb(52 64 84 / 70%)"})=>e};
2147
+ display: flex;
2148
+ justify-content: center;
2149
+ z-index: 99999;
2150
+ `,Ct=ce.default(Ie)`
2151
+ padding: 7px 8px;
2152
+ word-wrap: break-word;
2153
+
2154
+ svg.fa-check {
2155
+ border-radius: 2px;
2156
+ }
2157
+ `,yn=({control:e,option:n,register:o,setValue:r})=>{var i,a,l,s,c;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(i=n.options)==null?void 0:i.map(p=>t.jsx(Ct,{value:p.value,width:"content",children:t.jsx(ie,{...o("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,(a=n.options)==null?void 0:a.map(p=>t.jsx(Ct,{value:p.value,width:"content",children:t.jsx(ct,{...o("radio"),label:p.label,value:p.value})},`li-radio-${p.value}`))]});case"select":return t.jsx(at,{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 d=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Oe,{label:n.label,name:d,placeholder:n.placeholder,register:o,value:n.value});case"numberRange":return t.jsx(Xt,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:o,name:"maxValue",value:n.maxValue,setValue:r},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:o,name:"minValue",value:n.minValue,setValue:r},variant:"filters"});case"dateRange":return t.jsx(Yt,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(s=n.maxValue)==null?void 0:s.toString()},propsMin:{name:"minValue",value:(c=n.minValue)==null?void 0:c.toString()},register:o,setValue:r,variant:"filters"});default:return t.jsx("div",{})}},bn=({control:e,items:n,register:o,setValue:r})=>t.jsx(t.Fragment,{children:n.map((i,a)=>{const l=`${i.type}-${i.value}-${i.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(yn,{control:e,option:i,register:o,setValue:r}),a<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),$n=e=>{var s,c,d,p,g;const[n,o]=u.useState([...e]),{control:r,register:i,handleSubmit:a,setValue:l}=y.useForm({defaultValues:{checkbox:e.filter(x=>x.type==="checkboxes").flatMap(x=>{var h;return((h=x.options)==null?void 0:h.filter(b=>b.checked).map(b=>b.value))??[]}),radio:((d=(c=(s=e.find(x=>x.type==="radioButton"))==null?void 0:s.options)==null?void 0:c.find(({checked:x})=>x))==null?void 0:d.value)??"",text:e.filter(x=>["text","select"].includes(x.type)).reduce((x,h)=>({...x,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(p=e.find(x=>["numberRange","dateRange"].includes(x.type)))==null?void 0:p.minValue,maxValue:(g=e.find(x=>["numberRange","dateRange"].includes(x.type)))==null?void 0:g.maxValue}});return{control:r,items:n,setItems:o,register:i,handleSubmit:a,setValue:l}},wi=(e,n)=>{var o,r,i,a,l;n("checkbox",e.filter(s=>s.type==="checkboxes").flatMap(s=>{var c;return((c=s.options)==null?void 0:c.filter(d=>d.checked).map(d=>d.value))??[]})),n("radio",((i=(r=(o=e.find(s=>s.type==="radioButton"))==null?void 0:o.options)==null?void 0:r.find(({checked:s})=>s))==null?void 0:i.value)??""),n("text",e.filter(s=>["text","select"].includes(s.type)).reduce((s,c)=>({...s,[`${String(c.key)}-${c.filterFn??"caseInsensitive"}`]:c.value??""}),{})),n("minValue",(a=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:a.minValue),n("maxValue",(l=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:l.maxValue)},vi=(e,n)=>(e==null?void 0:e.filter(o=>{var r;return((r=o.label)==null?void 0:r.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??o.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],ji=async(e,n)=>await Promise.all(e.map(async o=>{if(o.type==="checkboxes"){const i=(o.filterOptions?await o.filterOptions(o.options??[],n):vi(o.options??[],n)).filter((a,l,s)=>s.findIndex(c=>c.value===a.value)===l);return{...o,options:i}}return o})),Xe=({options:e,onSearch:n,onSubmit:o,id:r,selectedFilter:i})=>{const{control:a,items:l,setItems:s,register:c,handleSubmit:d,setValue:p}=$n(e),g=e.some(b=>b.type==="checkboxes"&&b.hideSearch!==!0),x=u.useCallback(async b=>{const{value:w}=b.target;n&&n(w);const $=await ji(e,w);s($)},[e,n,s]),h=u.useCallback(b=>{o&&o(b)},[o]);return u.useEffect(()=>{s(e),wi(e,p)},[e,s,p]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:r,style:{writingMode:"horizontal-tb",maxWidth:"300px",width:"100%"},children:[g&&t.jsxs("div",{children:[i,t.jsx(se,{onChange:x})]}),t.jsxs("form",{id:r,onSubmit:d(h),children:[t.jsx(bn,{control:a,items:l,register:c,setValue:p}),t.jsx(O,{mt:1,type:"submit",children:"Apply"})]})]})},mn=({options:e,variant:n,onApplyFilters:o,onSearch:r,setDirection:i,setHandler:a})=>{const l=f.useTheme(),[s,c]=u.useState(e),[d,p]=u.useState([]),[g,x]=u.useState({}),[h,b]=u.useState(""),w=u.useCallback(v=>()=>{const C=s.find(z=>z.label===v),j=!(C!=null&&C.filterOptions.some(z=>z.type==="dateRange"||z.type==="select"));a==null||a(j??!0),b(v),p((C==null?void 0:C.filterOptions)??[])},[s,a]),$=u.useCallback(v=>{const C=[...v.checkbox,...Object.values(v.text??{}),...v.radio?[v.radio]:[],...v.minValue?[String(v.minValue)]:[],...v.maxValue?[String(v.maxValue)]:[]];x(S=>C.length>0?{...S,[h]:C}:S);const j=S=>{var A,I;return{...S,options:(A=S.options)==null?void 0:A.map(L=>({...L,checked:v.checkbox.includes(L.value)||v.radio===L.value})),value:["text","select"].includes(S.type)?((I=v.text)==null?void 0:I[`${String(S.key)}-${S.filterFn??"caseInsensitive"}`])??S.value:S.value,minValue:["numberRange","dateRange"].includes(S.type)?v.minValue:S.minValue,maxValue:["numberRange","dateRange"].includes(S.type)?v.maxValue:S.maxValue}},z=S=>S.label===h?{...S,filterOptions:S.filterOptions.map(j)}:S,R=s.map(z);c(S=>S.map(z));const T=R.flatMap(({filterOptions:S})=>S);o(T),p([])},[s,o,h]),k=u.useCallback((v,C)=>{const j=`li-filter-option-${v}`;return t.jsxs($i,{icon:C,onClick:w(v),style:{minWidth:"180px",writingMode:"horizontal-tb"},value:j,width:"100%",children:[v,g[v]===void 0?void 0:t.jsx(Y,{tagLabel:g[v].length.toString()})]},j)},[g,w]);return u.useEffect(()=>{const v=e.reduce((C,{label:j,filterOptions:z})=>{const R=z.flatMap(({value:A,minValue:I,maxValue:L})=>[I,L,A]).filter(Boolean),T=z.flatMap(({options:A})=>A??[]).filter(({checked:A=!1})=>A).map(({value:A})=>A),S=[...R,...T];return S.length===0?C:{...C,[j]:S}},{});x(v),d.length>0&&i&&i("column")},[d,e,i]),n==="grouped"?t.jsx(m,{display:"flex",flexDirection:"row",maxHeight:d.length>0?"unset":"360px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:d.length>0?t.jsx(Xe,{id:"filters-options",onSearch:r,onSubmit:$,options:d,selectedFilter:h}):Object.entries(xn(e)).map(([v,C])=>t.jsxs(m,{style:{writingMode:"horizontal-tb"},children:[t.jsx(E,{color:l.palette.gray[400],mb:.25,size:"sm",children:v}),C.map(({label:j,icon:z="filter-list"})=>k(j,z))]},v))}):t.jsx(m,{display:"flex",flexDirection:"row",maxHeight:d.length>0?"unset":"200px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:d.length>0?t.jsx(Xe,{id:"filters-options",onSearch:r,onSubmit:$,options:d,selectedFilter:h}):e.map(({label:v,icon:C="filter-list"})=>k(v,C))})},wn=({options:e,onApplyFilters:n,onSearch:o,modalRef:r,variant:i})=>{const[a,l]=u.useState("row"),[s,c]=u.useState(!0),d=f.useTheme(),p=u.useRef(null),g=t.jsx(H,{icon:"close",iconColor:d.palette.gray[400],iconSize:"lg",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:r.close,px:.25,py:.25,variant:"ghost"});return u.useEffect(()=>{const x=h=>{const b=p.current;b&&!b.contains(h.target)&&r.close()};if(s)return document.addEventListener("mousedown",x,!0),()=>{document.removeEventListener("mousedown",x,!0)}},[p,s,r]),t.jsx(mi,{$bgColor:"transparent","aria-label":r.name,children:t.jsxs(dt,{$size:"fixed",alignItems:a==="row"?"start":"end",display:"flex",flexDirection:a,gap:.5,id:"filters-list",justify:"space-between",position:"relative",px:1.25,py:1.25,ref:p,style:{maxWidth:"620px",overflow:"hidden",width:"fit-content"},children:[a==="column"?g:void 0,t.jsx(mn,{onApplyFilters:n,onSearch:o,options:e,setDirection:l,setHandler:c,variant:i}),a==="row"?g:void 0]})})};function ki(e){if(e)return e}function vn(e){if(!e||e.length===0)return;const n=e.filter(r=>r.checked).map(r=>r.label??r.value);return n.length===0?void 0:n.join(", ")}function Ci(e,n,o){const r=o??"",i=y._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),a=y._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!y._.isUndefined(i)&&!y._.isUndefined(a))return`${i}${r} - ${a}${r}`;if(!y._.isUndefined(i))return`Min ${i}${r}`;if(!y._.isUndefined(a))return`Max ${a}${r}`}function Si(e,n){if(y.dayjs_minExports.extend(y.localizedFormat),!(y._.isUndefined(e)&&y._.isUndefined(n))){if(e!==""&&n!==""&&!y._.isUndefined(e)&&!y._.isUndefined(n))return`${y.dayjs(e).format("LL")} - ${y.dayjs(n).format("LL")}`;if(e!==""&&!y._.isUndefined(e))return`From ${y.dayjs(e).format("LL")}`;if(n!==""&&!y._.isUndefined(n))return`To ${y.dayjs(n).format("LL")}`}}function zi(e,n,o){return e==="select"?n:`${n} ${o==="includesInsensitive"?"contains":"is"}`}const ue=({filter:e,icon:n="filter-list",label:o,onClose:r,filterValue:i})=>y._.isNil(i)||y._.isEmpty(String(i))?null:t.jsx(Y,{filterValues:i,icon:n,id:"remove-filter",onClose:r(e),tagLabel:`${o} `}),Ti=({options:e,onClose:n})=>{const o=e.flatMap(r=>r.filterOptions.map(i=>{const{filterFn:a,label:l,type:s,value:c,options:d,minValue:p,maxValue:g}=i;switch(s){case"numberRange":{const x=Ci(p,g,r.placeholder);return t.jsx(ue,{filter:i,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case"dateRange":{const x=Si(p==null?void 0:p.toString(),g==null?void 0:g.toString());return t.jsx(ue,{filter:i,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case"radioButton":case"checkboxes":{const x=vn(d);return t.jsx(ue,{filter:i,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case void 0:case"select":case"text":default:{const x=ki(c),h=zi(s,r.label,a);return t.jsx(ue,{filter:i,filterValue:x,icon:r.icon,label:h,onClose:n},l)}}})).filter(r=>{if(r===null)return!1;const{filterValue:i}=r.props;return!y._.isNil(i)&&!y._.isEmpty(String(i))});return o.length>0?t.jsx(m,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:o}):null},Ii=e=>e.map(n=>{const o={key:String(n.key),type:n.type},r=(()=>{let i={...o};if(n.filterFn&&(i={...i,filterFn:n.filterFn}),n.value&&(i={...i,value:n.value}),n.minValue!==void 0&&n.minValue!==null&&(i={...i,minValue:n.minValue}),n.maxValue!==void 0&&n.maxValue!==null&&(i={...i,maxValue:n.maxValue}),n.options&&n.options.length>0){const a=n.options.filter(l=>l.checked).map(l=>l.value);a.length>0&&(i={...i,selectedValues:a})}return i})();return Object.keys(r).length>2?r:null}).filter(Boolean),Ei=(e,n)=>n.map(o=>{const r=e.find(a=>a.key===String(o.key)&&a.type===o.type);return r?(()=>{let a={...o};return r.filterFn&&(a={...a,filterFn:r.filterFn}),r.value!==void 0&&r.value!==null&&(a={...a,value:r.value}),r.minValue!==void 0&&r.minValue!==null&&(a={...a,minValue:r.minValue}),r.maxValue!==void 0&&r.maxValue!==null&&(a={...a,maxValue:r.maxValue}),r.selectedValues&&o.options&&(a={...a,options:o.options.map(l=>{var s;return{...l,checked:((s=r.selectedValues)==null?void 0:s.includes(l.value))??!1}})}),a})():o}),Ve=(e,n)=>{const o=Ii(e);n(JSON.stringify(o))},Ri=(e,n)=>{const o=e();if(!o)return n;try{const r=JSON.parse(o);return Ei(r,n)}catch{return n}},Di=(e,n)=>{function o(l,s){if(s.value===""||s.value===void 0||y._.defaultTo(s.isBackFilter,!1))return!0;switch(s.filterFn){case"includesInsensitive":return String(l[s.key]).toLowerCase().includes(s.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[s.key]).toLowerCase()===s.value.toLowerCase()}}function r(l,s){if(!s.options||s.options.length===0)return!0;const c=s.options.filter(d=>d.checked).map(d=>d.value);return c.length===0?!0:c.includes(String(l[s.key]))}function i(l,s,c){const d=c(String(l[s.key])),{minValue:p,maxValue:g}=s,x=y._.isEmpty(p)&&typeof p!="number"?void 0:c(String(p)),h=y._.isEmpty(g)&&typeof g!="number"?void 0:c(String(g));return y._.isUndefined(x)&&y._.isUndefined(h)?!0:(x??-1/0)<=d&&d<=(h??1/0)}function a(l){return n.every(s=>{if(typeof s.key=="function")return s.key(l,s.value);switch(s.type){case"radioButton":case"checkboxes":return r(l,s);case"numberRange":return i(l,s,Number);case"dateRange":return i(l,s,c=>new Date(c));case"select":case"text":default:return o(l,s)}})}return e.filter(a)},Ni=e=>[...e.flatMap(({options:o})=>o).filter(o=>o==null?void 0:o.checked),...e.flatMap(o=>[o.value,o.maxValue,o.minValue]).filter(Boolean)].length,Fi=e=>{var o;const n=((o=e.options)==null?void 0:o.map(r=>({...r,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},Ai=({dataset:e,setValues:n,getValues:o,options:r,setFilteredDataset:i,onFiltersChange:a,onReset:l,onSearch:s,variant:c="ungrouped"})=>{const d=Te("filters-modal"),[p,g]=u.useState(!1),[x,h]=u.useState([]),b=Ni(x),w=r.map(j=>({...j,filterOptions:j.filterOptions.map(z=>x.find(T=>T.key===z.key&&T.type===z.type&&T.filterFn===z.filterFn)??{...z})})),$=u.useCallback(j=>{h([...j]),Ve(j,n)},[h,n]),k=u.useCallback(()=>{l&&l(),d.isOpen||g(!0),d.toggle()},[d,l]),v=u.useCallback(j=>()=>{l&&l();const z=x.map(R=>R.key===j.key&&R.type===j.type&&R.filterFn===j.filterFn?Fi(R):R);h(z),Ve(z,n)},[x,l,n]);return u.useEffect(()=>{const j=r.flatMap(T=>T.filterOptions),z=o();if((()=>{if(!z)return!1;try{const T=JSON.parse(z);return Array.isArray(T)&&T.length>0}catch{return!1}})()){const T=Ri(o,j);h(T)}else j.flatMap(S=>S.value).filter(Boolean).length>0||j.flatMap(S=>S.options).filter(S=>(S==null?void 0:S.checked)===!0).length>0?(h(j),p&&Ve(j,n)):h(j)},[r,h,n,o,p]),u.useEffect(()=>{i&&e!==void 0&&i(Di(e,x)),a==null||a(x)},[e,x,i,a]),{Filters:()=>t.jsxs(m,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx(m,{pr:.25,children:t.jsx(O,{icon:"filter",id:"filter-btn",onClick:k,tag:b.toString(),variant:"ghost"})}),d.isOpen&&t.jsx(wn,{modalRef:d,onApplyFilters:$,onSearch:s,options:w,variant:c})]}),options:w,removeFilter:v}},gt=({_portal:e=!0,alert:n,cancelButton:o=void 0,children:r=void 0,confirmButton:i=void 0,content:a=void 0,description:l=void 0,modalRef:s,otherActions:c=void 0,onClose:d=void 0,tabItems:p=void 0,title:g=void 0,size:x,id:h="modal-container"})=>{const b=f.useTheme(),[w,$]=u.useState(void 0),k=u.useRef(null),v=u.useRef(!1),C=Array.isArray(p)&&p.length>0,j=o??i;u.useEffect(()=>{if(C&&!v.current&&k.current){const R=k.current.getBoundingClientRect().height;R>50&&($(R),v.current=!0)}s.isOpen||($(void 0),v.current=!1)},[C,s.isOpen]);const z=t.jsx(rn,{"aria-label":s.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(dt,{$size:x,"data-testid":h,flexDirection:"column",id:h,ref:C?k:void 0,style:C&&w?{height:w}:void 0,children:[!y._.isEmpty(g)&&!y._.isNil(g)&&t.jsx(sn,{description:l,modalRef:s,onClose:d,otherActions:c,title:g}),p&&t.jsx(m,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(pt,{items:p})}),(y._.isObject(a)||r)&&t.jsxs(ri,{style:j?{borderBottom:`1px solid ${b.palette.gray[200]}`}:void 0,children:[r,y._.isObject(a)&&y._.isString(a.imageSrc)&&t.jsx(li,{$framed:a.imageFramed,children:t.jsx(ne,{alt:"modal-img",publicId:a.imageSrc})}),y._.isObject(a)&&y._.isString(a.imageText)&&t.jsx(E,{size:"sm",children:a.imageText})]}),t.jsx(an,{alert:n,cancelButton:o,confirmButton:i,modalRef:s})]})});return e&&s.isOpen?le.createPortal(z,document.getElementById("portals")??document.body):s.isOpen?z:null},Li=(e,n,o)=>{const r=Te("confirm-dialog-modal"),i=u.useRef(null),a=u.useCallback(async()=>(r.open(),new Promise(d=>{i.current=d})),[r]),l=u.useCallback(()=>{var d;r.close(),(d=i.current)==null||d.call(i,!0)},[r]),s=u.useCallback(()=>{var d;r.close(),(d=i.current)==null||d.call(i,!1)},[r]);return[a,({children:d})=>{const[p,g]=u.useState(o),x=u.useCallback(()=>{g({...o})},[]),h=u.useCallback($=>()=>{g(k=>({...k,[$]:{...k[$],state:!k[$].state}}))},[]),b=!Object.values(p).every(({state:$})=>$),w=Object.entries(p).map(([$,{state:k,label:v}])=>t.jsx(ie,{defaultChecked:k,label:v,name:$,onChange:h($)},$));return t.jsxs(gt,{"data-testid":e,id:e,modalRef:{...r,close:s},onClose:x,size:"sm",title:n,children:[d,t.jsx(m,{display:"flex",flexDirection:"column",gap:.5,children:w}),t.jsx(ln,{disabled:b,id:e,onConfirm:l})]})}]},Pi=()=>{const[e,n]=u.useState(!1),[o,r]=u.useState(),i=u.useRef(null),a=Te("confirm-dialog-modal"),l=u.useCallback(async p=>(r(p),n(!0),new Promise(g=>{i.current=g})),[]),s=u.useCallback(()=>{var p;n(!1),r(void 0),(p=i.current)==null||p.call(i,!0)},[]),c=u.useCallback(()=>{var p;n(!1),r(void 0),(p=i.current)==null||p.call(i,!1)},[]);return u.useEffect(()=>{a.setIsOpen(e)},[e,a]),{ConfirmDialog:({id:p="confirm-dialog-modal",children:g})=>t.jsxs(gt,{cancelButton:{onClick:c,text:"Cancel"},confirmButton:{id:(o==null?void 0:o.id)??"modal-confirm",onClick:s,text:"Confirm"},description:o==null?void 0:o.message,id:p,modalRef:{...a,close:c},size:"sm",title:o==null?void 0:o.title,children:[o==null?void 0:o.content,g]}),confirm:l}},Oi=2e3,Mi=({content:e})=>{const[n,o]=u.useState("Copy"),r=u.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{o("Copied"),setTimeout(()=>{o("Copy")},Oi)}).catch(()=>{o("Failed to copy")})},[e]);return t.jsx(H,{icon:"copy",iconSize:"lg",iconType:"fa-light",onClick:r,tooltip:n,variant:"ghost"})},Hi=f.styled.ul`
2158
+ ${({theme:e})=>`
2159
+ align-items: flex-start;
2160
+ border-radius: ${e.spacing[.25]};
2161
+ border: 1px solid ${e.palette.gray[200]};
2162
+ background: ${e.palette.white};
2163
+ box-shadow: ${e.shadows.md};
2164
+ display: flex;
2165
+ flex-direction: column;
2166
+ padding: ${e.spacing[.25]} 0;
2167
+ width: 166px;
2168
+ z-index: 9999;
2169
+ `}
2170
+ `,Wi=f.styled.li`
2171
+ ${({theme:e})=>`
2172
+ align-items: center;
2173
+ background: ${e.palette.white}
2174
+ color: ${e.palette.gray[800]};
2175
+ cursor: pointer;
2176
+ display: flex;
2177
+ font-family: ${e.typography.type.primary};
2178
+ font-size: ${e.typography.text.sm};
2179
+ font-style: normal;
2180
+ font-weight: ${e.typography.weight.regular};
2181
+ gap: ${e.spacing[.5]};
2182
+ line-height: ${e.spacing[1.25]};
2183
+ padding: ${e.spacing[.25]} ${e.spacing[1]};
2184
+ width: 100%;
2185
+
2186
+ &:hover:not([aria-disabled="true"]) {
2187
+ background: ${e.palette.gray[100]};
2188
+ }
2189
+
2190
+ &[aria-disabled="true"] {
2191
+ background: ${e.palette.gray[100]};
2192
+ color: ${e.palette.gray[500]};
2193
+ cursor: not-allowed;
2194
+ }
2195
+ `}
2196
+ `,Bi=({icon:e,iconColor:n,id:o,showChevron:r,options:i,title:a})=>{const l=f.useTheme(),[s,c]=u.useState(!1),d=s?"chevron-up":"chevron-down",{refs:p,floatingStyles:g}=y.useFloating({middleware:[y.offset({mainAxis:4})],placement:"bottom-start"}),x=u.useCallback(()=>{c(h=>!h)},[]);return ee(s?p.floating.current:null,()=>{c(!1)},!0,document.getElementById(`dropdown-toggle-${o}`)),t.jsxs(u.Fragment,{children:[t.jsx(O,{"aria-label":a,icon:e,iconColor:n,iconType:"fa-solid",id:`dropdown-toggle-${o}`,onClick:x,ref:p.setReference,rightIcon:r?d:void 0,variant:"ghost",children:a}),s?t.jsx(Hi,{ref:p.setFloating,style:g,children:i.map(h=>{const b=({})=>{h.onClick(),c(!1)};return t.jsxs(Wi,{"aria-disabled":h.disabled,"aria-label":h.label,onClick:h.disabled?void 0:b,children:[t.jsx(D,{icon:h.icon,iconColor:h.iconColor??l.palette.gray[300],iconSize:"sm",iconType:"fa-light"}),h.label]},h.label)})}):void 0]})},Je=({buttonProps:e,variant:n})=>t.jsx(O,{onClick:e.onClick,variant:n,children:e.text}),_i=f.styled.div`
2197
+ display: flex;
2198
+ flex-direction: column;
2199
+ align-items: center;
2200
+ padding: ${({theme:e,$padding:n})=>e.spacing[n]};
2201
+ max-width: 900px;
2202
+ white-space: pre-line;
2203
+ margin: 0 auto;
2204
+ `,Vi=f.styled.div`
2205
+ display: flex;
2206
+ flex-direction: row;
2207
+ justify-content: center;
2208
+ align-items: center;
2209
+ background-color: transparent;
2210
+ width: 96px;
2211
+ height: 96px;
2212
+ margin-bottom: ${({theme:e})=>e.spacing[2]};
2213
+
2214
+ > img {
2215
+ width: 100%;
2216
+ }
2217
+ `,Ui=f.styled.div`
2218
+ display: flex;
2219
+ flex-direction: row;
2220
+ margin: 0;
2221
+ margin-bottom: ${({theme:e})=>e.spacing[2]};
2222
+
2223
+ > * {
2224
+ margin-right: ${({theme:e})=>e.spacing[.75]};
2225
+ }
2226
+
2227
+ > *:last-child {
2228
+ margin-right: 0;
2229
+ }
2230
+ `,St={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},Gi=({cancelButton:e=void 0,confirmButton:n=void 0,description:o,imageSrc:r="integrates/empty/addRoot",padding:i=1.25,title:a,size:l="md"})=>{const s=(n??e)!==void 0;return t.jsxs(_i,{$padding:i,children:[t.jsx(Vi,{children:t.jsx(ne,{alt:"empty-icon",publicId:r})}),t.jsx(J,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:St[l].title,textAlign:"center",children:a}),t.jsx(E,{mb:s?2:void 0,size:St[l].description,textAlign:"center",children:o}),s?t.jsxs(Ui,{children:[e&&t.jsx(Je,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(Je,{buttonProps:n,variant:"primary"})]}):void 0]})},Yi=({children:e})=>{const n=y.useFormContext();return e({...n})},Ki=f.styled.form`
2231
+ ${({theme:e})=>`
2232
+ align-items: flex-start;
2233
+ align-self: stretch;
2234
+ display: flex;
2235
+ flex-direction: column;
2236
+ gap: ${e.spacing[.5]};
2237
+ overflow: hidden auto;
2238
+ width: 100%;
2239
+ `}
2240
+ `,qi=({alert:e,buttonAlignment:n,cancelButton:o,children:r,confirmButton:i,defaultDisabled:a=!0,id:l="modal-confirm",maxButtonWidth:s="392px",mode:c,onSubmit:d,padding:p=!0,showButtons:g=!0,yupSchema:x,...h})=>{const b=f.useTheme(),w=y.useForm({...h,mode:c??"all",resolver:x?y.o(x):void 0});function $(j){j.stopPropagation(),w.handleSubmit(d)(j)}const v=g?`calc(100% - ${e?"139px":"83px"})`:"100%",C=p?1.5:0;return t.jsx(y.FormProvider,{...w,children:t.jsx(Ki,{onSubmit:$,children:t.jsxs(m,{scroll:"y",width:"100%",children:[t.jsx(m,{borderRadius:`0 0 ${b.spacing[.25]} ${b.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:v,pb:C,pt:0,px:C,scroll:"y",children:r}),g&&t.jsxs(m,{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(m,{display:"flex",gap:.75,maxWidth:s,children:[o?t.jsx(O,{icon:o.icon,id:`${l}-cancel`,justify:"center",onClick:o.onClick,type:"reset",variant:"tertiary",width:"100%",children:o.label??"Cancel"}):void 0,t.jsx(O,{disabled:((i==null?void 0:i.disabled)??!1)||w.formState.isSubmitting||a&&!w.formState.isDirty,icon:i==null?void 0:i.icon,id:l,justify:"center",type:"submit",width:"100%",children:(i==null?void 0:i.label)??"Confirm"})]})]})]})})})},Zi=f.styled(Se)`
2241
+ display: grid;
2242
+ gap: ${({$gap:e=1.25})=>`${e}rem`};
2243
+ grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
2244
+
2245
+ ${({theme:e,$xl:n,$lg:o,$md:r})=>`
2246
+ @media (width >= ${e.breakpoints.sm}) {
2247
+ grid-template-columns: repeat(${r}, 1fr);
2248
+ }
2249
+
2250
+ @media (width >= ${e.breakpoints.md}) {
2251
+ grid-template-columns: repeat(${o}, 1fr);
2252
+ }
2253
+
2254
+ @media (width >= ${e.breakpoints.lg}) {
2255
+ grid-template-columns: repeat(${n}, 1fr);
2256
+ }
2257
+ `}
2258
+ `,Xi=u.forwardRef(function({children:n,md:o,sm:r,lg:i,xl:a,gap:l,...s},c){return t.jsx(Zi,{$gap:l,$lg:i,$md:o,$sm:r,$xl:a,ref:c,...s,children:n})}),Ji=f.styled.div`
2259
+ ${({theme:e,$itemsLength:n})=>`
2260
+ display: flex;
2261
+ background-color: ${e.palette.white};
2262
+ border: 1px solid ${e.palette.gray[200]};
2263
+ border-radius: ${e.spacing[.25]};
2264
+ box-shadow: ${e.shadows.lg};
2265
+ flex-direction: column;
2266
+ min-width: 507px;
2267
+ max-width: ${n<=4?"507px":"980px"};
2268
+ padding: ${e.spacing[1.5]};
2269
+
2270
+ @media screen and (max-width: 980px) and (min-width: 742px) {
2271
+ width: 742px;
2272
+ }
2273
+ @media screen and (max-width: 742px) {
2274
+ width: 507px;
2275
+ }
2276
+ `}
2277
+ `,ut=f.styled.div`
2278
+ ${({theme:e,$isSelected:n})=>`
2279
+ align-items: center;
2280
+ background-color: ${n?e.palette.gray[100]:e.palette.white};
2281
+ border: 1px solid ${e.palette.gray[200]};
2282
+ border-radius: ${e.spacing[.25]};
2283
+ cursor: pointer;
2284
+ display: flex;
2285
+ flex-direction: ${n?"row-reverse":"row"};
2286
+ min-height: 50px;
2287
+ padding: ${e.spacing[1]} ${e.spacing[.625]};
2288
+ width: 215px;
2289
+
2290
+ &:hover {
2291
+ background-color: ${e.palette.gray[100]};
2292
+ }
2293
+ `}
2294
+ `,jn=({isSelected:e=!1,label:n,onSelect:o})=>{const r=f.useTheme(),i=u.useCallback(()=>{o&&o(n)},[o,n]);return t.jsxs(ut,{$isSelected:e,onClick:i,children:[e?t.jsx(D,{icon:"check",iconColor:r.palette.gray[800],iconSize:"lg"}):null,t.jsx(E,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},Qi=({isOpen:e=!0,items:n,handleNewOrganization:o,onSelect:r,onClose:i,selectedItem:a,title:l,variant:s})=>{const c=f.useTheme(),[d,p]=u.useState(n),[g,x]=u.useState(""),h=u.useCallback($=>{p(k=>k.filter(v=>String(v.name).toLowerCase().includes($.toLocaleLowerCase())))},[p]),b=u.useCallback($=>{$.currentTarget&&(x($.currentTarget.value),h($.currentTarget.value))},[x,h]);u.useEffect(()=>{p(n),h(g)},[n,h,g]);const w=t.jsx(m,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(m,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(Ji,{$itemsLength:d.length,children:[t.jsxs(m,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(E,{color:c.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(H,{icon:"xmark",iconColor:c.palette.gray[400],iconSize:"lg",iconType:"fa-light",onClick:i,variant:"ghost"})]}),t.jsx(m,{mt:1,children:t.jsx(se,{onInput:b,placeholder:"Search"})}),t.jsx(ae,{mb:1,mt:1}),t.jsxs(m,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[s==="organization-selector"?t.jsx(ut,{onClick:o,children:t.jsxs(m,{alignItems:"center",display:"flex",children:[t.jsx(D,{icon:"square-plus",iconColor:c.palette.gray[400],iconSize:"lg",iconType:"fa-light",mr:.5}),t.jsx(E,{color:c.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,d.map($=>t.jsx(jn,{isSelected:a.toLowerCase()===$.name,label:$.name.charAt(0).toUpperCase()+$.name.slice(1),onSelect:r},$.name))]})]})})});return e?le.createPortal(w,document.body):t.jsx("div",{})},ea=({description:e,height:n="auto",leftIconName:o,children:r,rightIconName:i,title:a,tooltipId:l,tooltipTip:s,tooltipPlace:c="bottom",variant:d="centered",width:p="318px"})=>{const g=f.useTheme(),x=d==="centered",h=l&&t.jsx(U,{icon:i??o,iconColor:g.palette.gray[800],id:l,place:c,tip:s});return t.jsxs(m,{alignItems:x?"center":"flex-start",bgColor:g.palette.gray[50],border:`1px solid ${g.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:x?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:p,children:[t.jsxs(m,{alignItems:"center",display:"flex",gap:.5,children:[x||y.lodashExports.isUndefined(o)?void 0:h,t.jsx(E,{color:x?g.palette.gray[800]:g.palette.gray[400],size:"md",textAlign:x?"center":"start",children:e}),x||y.lodashExports.isUndefined(i)?void 0:h]}),t.jsxs(m,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[x&&!y.lodashExports.isUndefined(o)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[y.lodashExports.isUndefined(a)?void 0:t.jsx(J,{fontWeight:"bold",size:"md",children:a}),r]}),x&&!y.lodashExports.isUndefined(i)?h:void 0]})]})},ta=({actions:e,children:n,header:o,title:r,tabs:i,footer:a})=>{const l=f.useTheme();return t.jsxs(m,{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(m,{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(m,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(E,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:r}),o]}),e&&t.jsx(m,{display:"flex",gap:.25,children:e.map(({icon:s,onClick:c},d)=>t.jsx(H,{icon:s??"paper-plane",iconColor:l.palette.gray[400],iconSize:"sm",iconType:"fa-light",onClick:c,variant:"ghost"},`${d}-${s}`))})]}),t.jsx(m,{display:"flex",pt:.25,width:"100%",children:t.jsx(pt,{items:i})}),t.jsx(m,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),a&&t.jsx(m,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:a.map(({icon:s,text:c,onClick:d},p)=>t.jsx(O,{icon:s,onClick:d,variant:p===0?"primary":"tertiary",width:"100%",children:c},`${p}-${c}`))})]})},na=f.styled.span`
2295
+ ${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:o="none"})=>`
2296
+ background-color: ${n};
2297
+ border-radius: 5px;
2298
+ color: ${e.palette.white};
2299
+ font-size: 10px;
2300
+ padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
2301
+ text-decoration: ${o}
2302
+ `}
2303
+ `,oa=({bgColor:e,children:n,txtDecoration:o,ml:r=1})=>t.jsx(na,{$bgColor:e,$txtDecoration:o,className:`ml-${r}`,children:n}),ra={lg:"56",md:"30",sm:"12"},{getVariant:ia}=X(e=>({blue:`stroke: ${e.palette.info[500]};`,red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),aa=f.keyframes`
2304
+ 0% {
2305
+ transform: rotateZ(0deg);
2306
+ }
2307
+ 100% {
2308
+ transform: rotateZ(360deg)
2309
+ }
2310
+ `,sa=f.keyframes`
2311
+ 0%,
2312
+ 25% {
2313
+ stroke-dashoffset: 280;
2314
+ transform: rotate(0);
2315
+ }
2316
+
2317
+ 50%,
2318
+ 75% {
2319
+ stroke-dashoffset: 75;
2320
+ transform: rotate(45deg);
2321
+ }
2322
+
2323
+ 100% {
2324
+ stroke-dashoffset: 280;
2325
+ transform: rotate(360deg);
2326
+ }
2327
+ `,la=f.styled.svg`
2328
+ ${({$size:e="md"})=>f.css`
2329
+ animation: ${aa} 2s linear infinite;
2330
+ animation-timing-function: linear;
2331
+ display: inline-block;
2332
+ width: ${ra[e]}px;
2333
+ `}
2334
+ `,ca=f.styled.circle`
2335
+ ${({theme:e,$color:n="red"})=>f.css`
2336
+ animation: 1.4s ease-in-out infinite both ${sa};
2337
+ display: block;
2338
+ fill: transparent;
2339
+ stroke-linecap: round;
2340
+ stroke-dasharray: 283;
2341
+ stroke-dashoffset: 280;
2342
+ stroke-width: 10px;
2343
+ transform-origin: 50% 50%;
2344
+
2345
+ ${ia(e,n)}
2346
+ `}
2347
+ `,da=f.styled.circle`
2348
+ display: block;
2349
+ fill: transparent;
2350
+ stroke: ${({theme:e})=>e.palette.gray[200]};
2351
+ stroke-linecap: round;
2352
+ stroke-width: 10px;
2353
+ transform-origin: 50% 50%;
2354
+ opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
2355
+ `,kn=({color:e="red",label:n,size:o})=>{const r=f.useTheme();return t.jsxs(m,{alignItems:"center",display:"flex",children:[t.jsxs(la,{$size:o,viewBox:"0 0 100 100",children:[t.jsx(da,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(ca,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(E,{color:e==="red"||e==="blue"?r.palette.gray[700]:r.palette.white,ml:.5,size:"sm",children:n})]})},pa={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},ga=({publicId:e,variant:n})=>t.jsx(m,{...pa[n],children:t.jsx(ne,{alt:"logo",publicId:e})}),ua=f.styled(y.Lottie).attrs(({autoplay:e=!0})=>({autoplay:e,className:"comp-lottie"}))`
2356
+ ${({$size:e=16})=>`
2357
+ height: ${e}px;
2358
+ width: ${e}px;
2359
+ `}
2360
+ `,xa=e=>{const{size:n}=e;return t.jsx(ua,{$size:n,...e})},ha=({children:e,commitSha:n,commitShortSha:o,parentElement:r,userInfo:i,setVisibility:a})=>{const l=f.useTheme(),{userName:s,email:c,phone:d,userRole:p}=i;return ee(r,()=>{a(!1)}),t.jsxs(pn,{children:[t.jsx("li",{className:"user-info",children:t.jsxs(m,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs(m,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(E,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:s}),t.jsx(E,{color:l.palette.gray[400],size:"sm",children:c}),y.lodashExports.isUndefined(d)?void 0:t.jsx(E,{color:l.palette.gray[400],size:"sm",children:d})]}),t.jsx(m,{children:t.jsx(Y,{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(E,{color:l.palette.gray[400],size:"xs",children:`commit : ${o}`})})})]})},fa=f.styled.button`
2361
+ align-items: center;
2362
+ background-color: transparent;
2363
+ border: unset;
2364
+ cursor: pointer;
2365
+ display: flex;
2366
+ justify-content: center;
2367
+ gap: 5px;
2368
+ padding: 0;
2369
+
2370
+ &:hover p {
2371
+ color: ${N.palette.primary[200]};
2372
+ }
2373
+
2374
+ &:hover span {
2375
+ color: ${N.palette.primary[200]};
2376
+ }
2377
+ `,ya=({message:e,onClickButton:n,buttonText:o,buttonFontWeight:r="regular",show:i=!0,icon:a,onClose:l,buttonSide:s="end"})=>{const c=f.useTheme(),[d,p]=u.useState(i),g=u.useCallback(()=>{p(!1),l==null||l()},[l]);u.useEffect(()=>{p(i)},[i,p]);const x=t.jsxs(fa,{onClick:n,children:[t.jsx(E,{color:c.palette.white,fontWeight:r,size:"sm",textDecoration:"underline",children:o}),t.jsx(D,{icon:a??"arrow-right",iconColor:c.palette.white,iconSize:"lg",iconType:r==="bold"?"fa-regular":"fa-light"})]});return t.jsxs(m,{alignItems:"center",bgGradient:"linear-gradient(45deg, #f32637 0%, #b8075d 100%)",display:d?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs(m,{display:"flex",gap:.5,justify:"center",width:"100%",children:[s==="start"&&n?x:void 0,t.jsx(m,{children:typeof e=="string"?t.jsx(E,{color:c.palette.white,display:"inline",size:"sm",children:e}):e}),s==="end"&&n?x:void 0]}),t.jsx(D,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"lg",iconType:"fa-light",onClick:g})]})},ba=f.styled.div`
2378
+ ${({theme:e,$variant:n})=>`
2379
+ background: ${e.palette.white};
2380
+ border: 1px solid ${e.palette.gray[200]};
2381
+ border-radius: ${e.spacing[.25]};
2382
+ border-left: 4px solid ${e.palette[n][500]};
2383
+ box-shadow: ${e.shadows.md};
2384
+ position: relative;
2385
+ display: flex;
2386
+ width: 360px;
2387
+ padding: ${e.spacing[1]} ${e.spacing[1]} ${e.spacing[1]} ${e.spacing[1]};
2388
+ gap: ${e.spacing[.5]};
2389
+
2390
+ button {
2391
+ position: absolute;
2392
+ top: 20px;
2393
+ right: 16px;
2394
+ }
2395
+ `}
2396
+ `,$a=f.styled(J)`
2397
+ font-size: 14px;
2398
+ `,ma=f.styled.div`
2399
+ ${({theme:e,$variant:n})=>`
2400
+ height: ${e.spacing[2.5]};
2401
+ width: ${e.spacing[2.5]};
2402
+ position: relative;
2403
+ flex-shrink: 0;
2404
+
2405
+ & .ellipse-1,
2406
+ & .ellipse-2,
2407
+ & .icon {
2408
+ top: 50%;
2409
+ left: 50%;
2410
+ transform: translate(-50%, -50%);
2411
+ position: absolute;
2412
+ }
2413
+
2414
+ & .ellipse-1 {
2415
+ transform: scale(2.5) translate(-20%, -20%);
2416
+ color: ${e.palette[n][50]};
2417
+ position: absolute;
2418
+ }
2419
+
2420
+ & .ellipse-2 {
2421
+ transform: scale(2) translate(-25%, -25%);
2422
+ color: ${e.palette[n][200]};
2423
+ }
2424
+
2425
+ & .icon {
2426
+ color: ${e.palette[n][500]};
2427
+ }
2428
+ `}
2429
+ `,wa=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",va=({description:e,onClose:n,title:o,variant:r})=>{const i=f.useTheme(),a=u.useCallback(()=>{n==null||n()},[n]);return t.jsxs(ba,{$variant:r,className:`notification notification__${r}`,role:"alertdialog",children:[t.jsxs(ma,{$variant:r,children:[t.jsx(D,{icon:"circle",iconClass:"ellipse-1",iconSize:"lg"}),t.jsx(D,{icon:"circle",iconClass:"ellipse-2",iconSize:"lg"}),t.jsx(D,{icon:wa(r),iconClass:"icon",iconSize:"lg",iconType:"fa-light"})]}),t.jsxs(m,{pr:1.5,children:[t.jsx($a,{fontWeight:"bold",size:"xs",children:o}),t.jsx(E,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(H,{height:"fit-content",icon:"close",iconColor:i.palette.gray[400],iconSize:"lg",iconType:"fa-light",onClick:a,px:.125,py:.125,variant:"ghost"})]})},ja=f.styled.div`
2430
+ width: fit-content;
2431
+ border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
2432
+ border-radius: 4px;
2433
+ background: none;
2434
+ color: ${({theme:e})=>e.palette.black};
2435
+ font-family: ${({theme:e})=>e.typography.type.primary};
2436
+ font-size: ${({theme:e})=>e.typography.text.md};
2437
+ height: 40px;
2438
+ display: flex;
2439
+ align-items: center;
2440
+ justify-content: center;
2441
+ padding: 0.5em;
2442
+ `,ka=f.styled.input`
2443
+ width: 4em;
2444
+ appearance: textfield;
2445
+ border-style: none;
2446
+ padding: 0.5rem;
2447
+ padding-top: 0.5rem;
2448
+ padding-bottom: 0.5rem;
2449
+ padding-left: 0.5rem;
2450
+ background: none;
2451
+
2452
+ &:focus {
2453
+ border-color: unset;
2454
+ box-shadow: none;
2455
+ outline: none;
2456
+ }
2457
+
2458
+ &::-webkit-outer-spin-button,
2459
+ &::-webkit-inner-spin-button {
2460
+ opacity: 1;
2461
+ }
2462
+ `,Ca=u.forwardRef(function({autoUpdate:n=!1,decimalPlaces:o=0,defaultValue:r=0,max:i,min:a,name:l,onEnter:s,tooltipMessage:c,...d},p){const g=o<0?0:o,[x,h]=u.useState(Number(r).toFixed(g)),b=u.useCallback(k=>{const v=y.lodashExports.toNumber(k.target.value);k.target.value.endsWith(".")?h(k.target.value):v>=Number(a)&&v<=Number(i)&&(h(String(v)),n&&s(y.lodashExports.toNumber(v.toFixed(g)))),k.stopPropagation()},[n,g,i,a,s]),w=u.useCallback(k=>{k.currentTarget.contains(k.relatedTarget)||h(Number(r).toFixed(g)),k.stopPropagation()},[g,r]),$=u.useCallback(k=>{k.stopPropagation(),k.key==="Enter"&&!y.lodashExports.isEmpty(k.currentTarget.value)&&s(y.lodashExports.toNumber(k.currentTarget.value))},[s]);return t.jsx(ja,{onBlur:w,tabIndex:-1,children:t.jsx(U,{id:"numberInputTooltip",tip:c,children:t.jsx(ka,{...d,"aria-label":l,"aria-valuemax":Number(i),"aria-valuemin":Number(a),"aria-valuenow":Number(x),max:i,min:a,name:l,onChange:b,onKeyUp:$,ref:p,step:10**-g,type:"number",value:x})})})}),Sa={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Qe=({icon:e,label:n,onClick:o,onlyLabel:r=!1,provider:i="GitLab"})=>{const a=f.useTheme();return t.jsxs(m,{alignItems:"center",bgColorHover:a.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:o,pb:.5,pl:.25,pr:.25,pt:.5,children:[r?!1:t.jsx(m,{height:"24px",width:"24px",children:e===void 0?t.jsx(ne,{alt:`${i} Logo`,height:"100%",publicId:Sa[i],width:"100%"}):t.jsx(D,{icon:e,iconColor:"#000",iconSize:"xl",iconType:"fa-light"})}),t.jsx(m,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(E,{color:a.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:r?"break-spaces":"nowrap",wordWrap:"unset",children:n??i})})]})},za=({align:e="end",buttonLabel:n="Add Credential",children:o,id:r,manualOption:i,providers:a})=>{const l=f.useTheme(),[s,c]=u.useState(!1),d=u.useRef(null);ee(d.current,()=>{c(!1)},!0);const p=u.useCallback(h=>{i==null||i.onClick(h),c(!1)},[i]),g=u.useCallback(()=>{c(h=>!h)},[c]),x=u.useCallback(h=>b=>{var w;(w=a[h])==null||w.onClick(b),c(!1)},[a]);return t.jsxs(m,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:d,width:"max-content",zIndex:10,children:[t.jsx(O,{icon:"plus",onClick:g,variant:"primary",children:n}),t.jsxs(m,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:r,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:s?"visible":"hidden",zIndex:10,children:[Object.keys(a).map(h=>t.jsx(Qe,{onClick:x(h),provider:h},h)),i===void 0?void 0:t.jsx(Qe,{icon:"square-plus",label:i.label??"Add manually",onClick:p}),o]})]})},Ta=f.styled.div`
2463
+ ${({theme:e})=>`
2464
+ height: ${e.spacing[1]};
2465
+ width: ${e.spacing[1]};
2466
+ position: relative;
2467
+ flex-shrink: 0;
2468
+
2469
+ & .ellipse-1,
2470
+ & .ellipse-2,
2471
+ & .icon {
2472
+ top: 50%;
2473
+ left: 50%;
2474
+ transform: translate(-50%, -50%);
2475
+ position: absolute;
2476
+ }
2477
+
2478
+ & .ellipse-1 {
2479
+ color: ${e.palette.warning[200]};
2480
+ position: absolute;
2481
+ }
2482
+
2483
+ & .ellipse-2 {
2484
+ transform: scale(0.75) translate(-67%, -66%);
2485
+ color: ${e.palette.warning[400]};
2486
+ }
2487
+
2488
+ & .icon {
2489
+ color: ${e.palette.warning[600]};
2490
+ font-size: ${e.spacing[.5]};
2491
+ }
2492
+ `}
2493
+ `,Cn=({margin:e,onClick:n,text:o})=>{const r=f.useTheme(),i=t.jsxs(Ta,{children:[t.jsx(D,{icon:"circle",iconClass:"ellipse-1",iconSize:"lg"}),t.jsx(D,{icon:"circle",iconClass:"ellipse-2",iconSize:"lg"}),t.jsx(D,{icon:"crown",iconClass:"icon",iconSize:"lg"})]});return o!==void 0?t.jsx(m,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:t.jsxs(m,{alignItems:"center",bgColor:r.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[i,t.jsx(E,{color:r.palette.warning[500],display:"inline",ml:.25,size:"xs",children:o})]})}):t.jsx(m,{display:"inline-block",mr:e,onClick:n,children:i})},Ia=({score:e})=>{const n=f.useTheme(),o=e<=33?"priority-bars-low":"priority-bars-medium",r=e>66||e===0?"priority-bars-high":o;return t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(D,{icon:r,iconClass:e<=66?"fa-kit-duotone":"",iconColor:e>0?n.palette.primary[500]:n.palette.gray[200],iconSize:"lg",iconType:"fa-kit",secondaryColor:n.palette.gray[200]}),t.jsx(E,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:Ea}=X(e=>({compliance:`
2494
+ display: inline-flex;
2495
+
2496
+ &.horizontal {
2497
+ height: ${e.spacing[.75]};
2498
+ }
2499
+ &.vertical {
2500
+ width: ${e.spacing[.75]};
2501
+ }
2502
+ `,default:`
2503
+ display: inline-flex;
2504
+
2505
+ &.horizontal {
2506
+ height: ${e.spacing[.5]};
2507
+ }
2508
+ &.vertical {
2509
+ width: ${e.spacing[.5]};
2510
+ }
2511
+ .progress-bar {
2512
+ background-color: ${e.palette.primary[500]};
2513
+ }
2514
+ `,progressIndicator:`
2515
+ display: flex;
2516
+
2517
+ &.horizontal {
2518
+ height: ${e.spacing[.125]};
2519
+ }
2520
+ &.vertical {
2521
+ width: ${e.spacing[.125]};
2522
+ }
2523
+ .progress-bar {
2524
+ background-color: ${e.palette.primary[500]};
2525
+ }
2526
+ `,progressIndicatorError:`
2527
+ display: flex;
2528
+
2529
+ &.horizontal {
2530
+ height: ${e.spacing[.125]};
2531
+ }
2532
+ &.vertical {
2533
+ width: ${e.spacing[.125]};
2534
+ }
2535
+ .progress-bar {
2536
+ background-color: ${e.palette.error[200]};
2537
+ }
2538
+ `,small:`
2539
+ color: ${e.palette.primary[500]};
2540
+ display: inline-flex;
2541
+
2542
+ &.horizontal {
2543
+ height: ${e.spacing[.25]};
2544
+ }
2545
+ &.vertical {
2546
+ width: ${e.spacing[.25]};
2547
+ }
2548
+ .progress-bar {
2549
+ background-color: ${e.palette.primary[500]};
2550
+ }
2551
+ `})),Ra=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],Da=f.styled.div`
2552
+ ${({theme:e,$minWidth:n,$orientation:o,$rounded:r,$variant:i})=>`
2553
+ background-color: ${e.palette.gray[100]};
2554
+ border-radius: ${r?"100px":"unset"};
2555
+ ${o==="horizontal"?"min-width":"min-height"}: ${n}px;
2556
+ ${o==="horizontal"?"":"height: 100%;"}
2557
+
2558
+ ${Ea(e,i)}
2559
+
2560
+ `}
2561
+ `,Na=f.styled.div`
2562
+ ${({theme:e,$percentage:n,$rounded:o,$variant:r})=>`
2563
+ display: inline-flex;
2564
+ width: ${n}%;
2565
+ max-width: 100%;
2566
+ min-width: 0%;
2567
+ height: 100%;
2568
+ border-radius: ${o?"100px":"unset"};
2569
+ border-end-end-radius: ${o&&n<100?"0":"inherit"};
2570
+ border-start-end-radius: ${o&&n<100?"0":"inherit"};
2571
+ background-color: ${r==="compliance"?Ra(e,n):"inherit"};
2572
+ `}
2573
+ `,Sn=({minWidth:e=100,percentage:n,percentageLocation:o="right",showPercentage:r=!1,orientation:i="horizontal",rounded:a=!0,variant:l="default"})=>{const s=r&&o==="left",c=r?t.jsx(m,{alignItems:"center",display:"flex",justify:s?"flex-end":"flex-start",width:"40px",children:t.jsx(E,{ml:.5,mr:s?.5:0,size:"sm",children:`${n}%`})}):null,d=t.jsx(Da,{$minWidth:e,$orientation:i,$rounded:a,$variant:l,className:i,children:t.jsx(Na,{$percentage:n,$rounded:a,$variant:l,className:"progress-bar"})});return t.jsxs(m,{alignItems:"center",display:"inline-flex",flexDirection:s?"row-reverse":"row",height:i==="horizontal"?"auto":"100%",maxWidth:s?`${e+43}px`:void 0,minWidth:s?`${e+43}px`:void 0,textAlign:"end",children:[d,c]})},zn=({onClick:e})=>t.jsx("svg",{className:"in-progress-icon",fill:"none",height:"13",onClick:e,viewBox:"0 0 12 13",width:"12",xmlns:"http://www.w3.org/2000/svg",children:t.jsxs("g",{id:"Group 8",children:[t.jsx("path",{d:"M9.40199 3.00342L9.95715 2.34182C9.42087 1.88791 8.80949 1.53109 8.15051 1.28741L7.8552 2.09852C8.41952 2.30786 8.94298 2.61408 9.40199 3.00342Z",fill:"#1D2939"}),t.jsx("path",{d:"M11.1498 6.08815L11.9998 5.90982C11.8803 5.21957 11.6409 4.55558 11.2923 3.94793L10.5444 4.36018C10.8429 4.89758 11.0476 5.48194 11.1498 6.08815Z",fill:"#1D2939"}),t.jsx("path",{d:"M7.8552 11.8057L8.15051 12.6168C8.80949 12.3731 9.42087 12.0163 9.95715 11.5624L9.40199 10.9008C8.94298 11.2901 8.41952 11.5963 7.8552 11.8057Z",fill:"#1D2939"}),t.jsx("path",{d:"M10.5444 9.54409L11.2923 9.97608C11.6411 9.36144 11.8805 8.69095 12 7.99444L11.1498 7.84459C11.0476 8.44177 10.8427 9.01676 10.5444 9.54409Z",fill:"#1D2939"}),t.jsx("path",{d:"M6.04789 13V0.904236C4.44389 0.904236 2.90559 1.54142 1.77139 2.67562C0.637187 3.80982 0 5.34813 0 6.95213C0 8.55613 0.637187 10.0944 1.77139 11.2286C2.90559 12.3628 4.44389 13 6.04789 13Z",fill:"#1D2939"})]})}),Tn=(e,n)=>{switch(e){case"completed":return n.palette.success[500];case"disabled":return n.palette.gray[300];case"error":return n.palette.error[500];case"in progress":return n.palette.gray[800];case"not completed":default:return n.palette.gray[800]}},Fa=f.styled(D)`
2574
+ box-sizing: border-box;
2575
+
2576
+ border-right: ${({theme:e,$variant:n})=>n==="in progress"?`1px dashed ${Tn("in progress",e)}`:"unset"};
2577
+ border-radius: 50%;
2578
+ `,Aa=f.styled.div`
2579
+ ${({$minWidth:e,$orientation:n})=>`
2580
+ display: flex;
2581
+ flex-direction: ${n==="horizontal"?"row":"column"};
2582
+
2583
+ @media (width <= ${e}) {
2584
+ display: flex;
2585
+ flex-flow: row wrap;
2586
+ }
2587
+ `}
2588
+ `,La=150,Pa=({label:e,minWidth:n=La,state:o="not completed",stepNumber:r=1,title:i,onClick:a,orientation:l="horizontal"})=>{const s=f.useTheme(),c={completed:"circle-check",disabled:"circle-dashed",error:"circle-exclamation","in progress":"circle-half","not completed":"circle-dashed"},d=o==="disabled";return t.jsxs(m,{display:"inline-flex",flexDirection:l==="horizontal"?"column":"row",minWidth:`${n}px`,children:[t.jsx(Sn,{minWidth:n,orientation:l,percentage:d||o==="not completed"?0:100,rounded:!1,variant:o==="error"?"progressIndicatorError":"progressIndicator"}),t.jsxs(m,{display:"flex",gap:.5,px:.5,py:.5,width:"100%",children:[o==="in progress"?t.jsx(zn,{onClick:a}):t.jsx(Fa,{$variant:o,clickable:!d,disabled:d,icon:c[o],iconColor:Tn(o,s),iconSize:"lg",iconType:"fa-light",onClick:d?void 0:a}),t.jsxs(m,{children:[t.jsx(E,{color:s.palette.gray[d?300:800],fontWeight:"bold",size:"sm",children:`${r}.${i}`}),e===void 0?null:t.jsx(E,{color:s.palette.gray[d?300:600],size:"xs",children:e})]})]})]})},Oa=150,Ma=({children:e,orientation:n="horizontal",minWidth:o=Oa})=>{const r=u.Children.toArray(e),i=u.useMemo(()=>u.Children.count(e),[e]),a=u.useMemo(()=>i*o,[i,o]);return t.jsx(Aa,{$minWidth:`${a}px`,$orientation:n,children:r.map(l=>u.cloneElement(l,{minWidth:o,orientation:n}))})},In=({description:e="",highlightDescription:n="",mobile:o})=>{const r=f.useTheme(),i=o?"md":"lg",a=typeof n=="string",l=a?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(E,{display:"inline",lineSpacing:1.5,size:i,textAlign:o?"start":"center",children:a?t.jsxs(u.Fragment,{children:[t.jsx(he,{color:r.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:i,children:n}),e]}):e.split(l).map((s,c)=>n.includes(s)?t.jsx(he,{color:r.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:i,children:s},`${c+1}-bold`):s)}):t.jsx(E,{lineSpacing:1.5,size:i,textAlign:o?"start":"center",children:e})},Ha=({_portal:e=!1,cancelButton:n,darkBackground:o=!1,children:r,confirmButton:i,container:a,description:l,highlightDescription:s="",image:c,maxWidth:d,mobile:p=!1,title:g,titleColor:x})=>{const h=f.useTheme(),{alt:b,src:w,width:$="77px",height:k="77px"}=c,v=u.useCallback(()=>{n==null||n.onClick()},[n]),C=u.useCallback(()=>{i==null||i.onClick()},[i]),j=t.jsx(J,{color:x,fontWeight:"bold",lineSpacing:p?1.5:2.5,mb:p?1.5:0,size:p?"sm":"lg",textAlign:p?"start":"center",children:g}),z=t.jsx(ne,{alt:b,height:k,publicId:w,width:$}),R=t.jsx(m,{alignItems:"center","aria-label":g,"aria-modal":"true",bgColor:o?"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(m,{bgColor:h.palette.white,border:`1px solid ${h.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:d,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(m,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[p?j:void 0,p?t.jsx(m,{alignItems:"center",height:k,justify:"center",mr:0,children:t.jsx(m,{bgColor:h.palette.gray[100],left:"0",position:"absolute",textAlign:"center",width:"100%",children:z})}):z,t.jsxs(m,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[p?void 0:j,t.jsx(In,{description:l,highlightDescription:s,mobile:p})]})]}),r&&t.jsx(m,{mb:1,scroll:"y",children:t.jsx(m,{height:"100%",children:r})}),t.jsxs(m,{alignItems:"flex-start",display:"flex",gap:1,justify:p?"start":"center",children:[y.lodashExports.isObject(i)?t.jsx(O,{onClick:C,variant:(i==null?void 0:i.variant)??"primary",children:i==null?void 0:i.text},i==null?void 0:i.key):void 0,y.lodashExports.isObject(n)?t.jsx(O,{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?le.createPortal(R,a??document.body):R},Wa=f.styled.div.attrs({className:"comp-scroll-up"})`
2589
+ position: fixed;
2590
+ bottom: ${({bottom:e})=>e??"unset"};
2591
+ right: ${({right:e})=>e??"unset"};
2592
+ z-index: ${({zIndex:e})=>e??"unset"};
2593
+ left: ${({left:e})=>e??"unset"};
2594
+ `,Ba=({scrollerId:e="dashboard",left:n,visibleAt:o=500,bottom:r,right:i,zIndex:a=100})=>{const[l,s]=u.useState(!1),[c,d]=u.useState(null),p=f.useTheme();u.useEffect(()=>{d(document.getElementById(e)),c==null||c.addEventListener("scroll",()=>{s(c.scrollTop>o)})},[c,e,o]);const g=u.useCallback(()=>{c==null||c.scrollTo({behavior:"smooth",top:0})},[c]);return l?t.jsx(Wa,{bottom:r,left:n,right:i,zIndex:a,children:t.jsx(H,{borderRadius:"50%",height:"40px",icon:"arrow-up",iconSize:"xl",id:"scroll-up",onClick:g,style:{backgroundColor:p.palette.black,borderRadius:"50%",color:p.palette.white},width:"40px"})}):null},_a={critical:{bgColor:N.palette.primary[700],colorL:N.palette.gray[800],colorR:N.palette.white},disable:{bgColor:N.palette.gray[200],colorL:N.palette.gray[400],colorR:N.palette.gray[400]},high:{bgColor:N.palette.error[500],colorL:N.palette.gray[800],colorR:N.palette.white},low:{bgColor:N.palette.warning[200],colorL:N.palette.gray[800],colorR:N.palette.gray[800]},medium:{bgColor:N.palette.warning[500],colorL:N.palette.gray[800],colorR:N.palette.gray[800]}},Va=({textL:e,textR:n,variant:o})=>{const r=f.useTheme(),{bgColor:i,colorL:a,colorR:l}=_a[o];return t.jsxs(m,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(m,{alignItems:"center",bgColor:r.palette.white,border:`1px solid ${i}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(E,{color:a,size:"xs",children:e})}):void 0,t.jsx(m,{alignItems:"center",bgColor:i,border:`1px solid ${i}`,borderRadius:e?"0px 4px 4px 0px":"4px",display:"flex",padding:e?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:t.jsx(E,{color:l,size:"xs",children:n})})]})},Ua=(e,n)=>{const o={critical:N.palette.primary[700],high:N.palette.error[500],low:N.palette.warning[200],medium:N.palette.warning[500],none:N.palette.gray[200]},r={disabled:N.palette.gray[400],enabled:N.palette.gray[800]},i={critical:N.palette.white,high:N.palette.white,low:N.palette.gray[800],medium:N.palette.gray[800],none:N.palette.gray[400]};return{iconColor:n<1?o.none:o[e],iconText:y.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?i.none:i[e],textColor:n<1?r.disabled:r.enabled}},xe=({variant:e,value:n})=>{const{iconColor:o,iconText:r,iconTextColor:i,textColor:a}=Ua(e,n),l=y.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(U,{id:l,place:"top",tip:l,children:t.jsx(m,{alignItems:"center",bgColor:o,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(E,{color:i,size:"sm",textAlign:"center",children:r})})}),t.jsx(E,{color:a,size:"sm",children:n})]})},Ga=({critical:e,high:n,medium:o,low:r})=>t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(xe,{value:e,variant:"critical"}),t.jsx(xe,{value:n,variant:"high"}),t.jsx(xe,{value:o,variant:"medium"}),t.jsx(xe,{value:r,variant:"low"})]}),Ya=f.styled.div`
2595
+ ${({theme:e})=>`
2596
+ border-radius: ${e.spacing[.25]};
2597
+ cursor: pointer;
2598
+ display: flex;
2599
+ gap: ${e.spacing[.5]};
2600
+ justify-content: end;
2601
+ position: relative;
2602
+ z-index: 20;
2603
+
2604
+ &:hover {
2605
+ background-color: ${e.palette.gray[100]};
2606
+ }
2607
+
2608
+ &:hover > div {
2609
+ display: block;
2610
+ }
2611
+ `}
2612
+ `,Ka=({visibleElement:e,hiddenElement:n})=>t.jsxs(Ya,{children:[e,t.jsx(m,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),En=({customBadge:e=void 0,description:n,icon:o,onClick:r,requiresUpgrade:i=!1,title:a})=>{const l=f.useTheme();return t.jsxs(m,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:r,px:1.25,py:1,width:"100%",children:[t.jsx(m,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(D,{icon:o,iconColor:l.palette.gray[800],iconSize:"sm",ml:.5,mr:.5})}),t.jsxs(m,{children:[t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(E,{color:l.palette.gray[800],size:"sm",children:a}),i?t.jsx(Cn,{text:"Upgrade"}):void 0,e]}),t.jsx(E,{color:l.palette.gray[400],size:"xs",children:n})]})]})},qa=f.styled(y.m.div)`
2613
+ ${({theme:e})=>`
2614
+ background-color: ${e.palette.white};
2615
+ box-shadow: ${e.shadows.lg};
2616
+ max-width: 350px;
2617
+ min-width: 350px;
2618
+ height: 100%;
2619
+ position: absolute;
2620
+ right: 0;
2621
+ top: 0;
2622
+ overflow: hidden auto;
2623
+ scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
2624
+ scroll-padding: ${e.spacing[.5]};
2625
+ scrollbar-width: thin;
2626
+ z-index: 99999;
2627
+
2628
+ > div {
2629
+ border: 1px solid ${e.palette.gray[100]};
2630
+ width: auto;
2631
+ min-height: 100vh;
2632
+ height: auto;
2633
+ }
2634
+ `}
2635
+ `,Za=({children:e,closeIconId:n="close-menu",isOpen:o,items:r,onClose:i,title:a})=>{const l=f.useTheme(),s=u.useRef(null),c=u.useCallback(d=>()=>{d(),i()},[i]);return u.useEffect(()=>{const d=["mousedown","touchstart"],p=g=>{var $;const x=g.target,h=document.getElementById("helpBtn"),b=document.getElementById("filter-btn"),w=(x===h||((h==null?void 0:h.contains(x))??!1)||x===b||(b==null?void 0:b.contains(x)))??!1;o&&!w&&!((($=s.current)==null?void 0:$.contains(x))??!1)&&i()};return d.forEach(g=>{document.addEventListener(g,p,{passive:!0})}),()=>{d.forEach(g=>{document.removeEventListener(g,p)})}},[o,i]),t.jsx(y.LazyMotion,{features:y.domAnimation,children:t.jsx(qa,{animate:o?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:s,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs(m,{height:"100%",position:"relative",children:[t.jsxs(m,{alignItems:"center",bgColor:l.palette.white,borderBottom:"1px solid",borderColor:l.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(E,{color:l.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:a}),t.jsx(H,{icon:"close",iconColor:l.palette.gray[400],iconSize:"lg",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:i,px:.25,py:.25,variant:"ghost"})]}),t.jsx(m,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:t.jsxs(m,{py:1.25,children:[(r??[]).map(({customBadge:d,description:p,icon:g,onClick:x,requiresUpgrade:h,title:b})=>t.jsx(En,{customBadge:d,description:p,icon:g,onClick:c(x),requiresUpgrade:h,title:b},b)),e&&t.jsx(m,{px:1.25,children:e})]})})]})})})},Xa=(e,n)=>n>=50?`
2636
+ ${e.palette.gray[200]} 50%,
2637
+ ${e.palette.primary[500]} 50.05%,
2638
+ ${e.palette.primary[500]} ${n}%,
2639
+ ${e.palette.gray[200]} ${n}%
2640
+ `:`
2641
+ ${e.palette.gray[200]} ${n}%,
2642
+ ${e.palette.primary[500]} ${n}%,
2643
+ ${e.palette.primary[500]} 50%,
2644
+ ${e.palette.gray[200]} 50.05%,
2645
+ ${e.palette.gray[200]} 100%
2646
+ `,Ja=f.styled.div`
2647
+ ${({theme:e,$min:n,$value:o})=>`
2648
+ align-items: center;
2649
+ align-self: stretch;
2650
+ display: flex;
2651
+ flex-direction: column;
2652
+ justify-content: end;
2653
+ gap: ${e.spacing[.75]};
2654
+ width: 100%;
2655
+
2656
+ .track {
2657
+ background: linear-gradient(
2658
+ to right,
2659
+ ${n>=0?`
2660
+ ${e.palette.primary[500]} ${o}%,
2661
+ ${e.palette.gray[200]} ${o}%
2662
+ `:Xa(e,o)}
2663
+ );
2664
+ border-radius: ${e.spacing[.125]};
2665
+ height: ${e.spacing[.25]};
2666
+ width: 100%;
2667
+ }
2668
+
2669
+ .track.disabled {
2670
+ opacity: 0.4;
2671
+ }
2672
+
2673
+ .thumb {
2674
+ background: ${e.palette.white};
2675
+ border-radius: ${e.spacing[1.25]};
2676
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.30);
2677
+ top: 50%;
2678
+ height: 20px;
2679
+ width: 20px;
2680
+ }
2681
+
2682
+ .thumb.dragging {
2683
+ border: 1px solid ${e.palette.primary[500]};
2684
+ }
2685
+ `}
2686
+ `,Qa=f.styled.div`
2687
+ ${({theme:e})=>`
2688
+ align-items: center;
2689
+ display: flex;
2690
+ justify-content: space-between;
2691
+ height: ${e.spacing[.625]};
2692
+ width: 100%;
2693
+
2694
+ p {
2695
+ color: ${e.palette.gray[400]};
2696
+ font-family: ${e.typography.type.primary};
2697
+ font-size: ${e.spacing[.5]};
2698
+ }
2699
+ `}
2700
+ `,es=f.styled.output`
2701
+ ${({theme:e})=>`
2702
+ align-items: flex-end;
2703
+ border-radius: ${e.spacing[.5]};
2704
+ border: 1px solid ${e.palette.gray[300]};
2705
+ background: ${e.palette.white};
2706
+ display: flex;
2707
+ gap: ${e.spacing[.625]};
2708
+ padding: ${e.spacing[.625]} ${e.spacing[.75]};
2709
+ width: 59px;
2710
+ `}
2711
+ `,Rn=({state:e,trackRef:n,index:o,name:r})=>{const i=u.useRef(null),{thumbProps:a,inputProps:l,isDragging:s}=y.$47b897dc8cdb026b$export$8d15029008292ae({index:o,trackRef:n,inputRef:i},e);return t.jsx("div",{...a,className:`thumb ${s?"dragging":""}`,children:t.jsx(y.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":r,ref:i})})})},ts=(e,n,o)=>Math.round((o-e)/(n-e)*100),ns=e=>{const n=f.useTheme(),o=u.useRef(null),{label:r,minValue:i=0,maxValue:a=100,name:l,setValue:s,watch:c}=e,d=y.$a916eb452884faea$export$b7a616150fdb9f44(),p=y.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:d,onChange(b){s==null||s(l,b)},value:c==null?void 0:c(l)}),g=ts(i,a,p.getThumbValue(0)),{groupProps:x,trackProps:h}=y.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},p,o);return t.jsx(V,{htmlFor:l,label:r,children:t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(Ja,{...x,$min:i??0,$value:g,className:"slider",children:[t.jsx("div",{...h,className:`track ${p.isDisabled?"disabled":""}`,ref:o,children:t.jsx(Rn,{index:0,name:l,state:p,trackRef:o})}),t.jsxs(Qa,{children:[t.jsx("p",{children:`${d.format(i)} (Low)`}),i<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${d.format(a)} (High)`})]})]}),t.jsx(es,{children:t.jsx(E,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:p.getThumbValueLabel(0)})})]})})},{getVariant:os}=X(e=>({completed:`
2712
+ background-color: ${e.palette.primary[500]};
2713
+ color: ${e.palette.white};
2714
+
2715
+ &::after {
2716
+ background-color: ${e.palette.primary[500]};
2717
+ }
2718
+ `,current:`
2719
+ background-color: ${e.palette.primary[500]};
2720
+ color: ${e.palette.white};
2721
+
2722
+ &::after {
2723
+ background-color: ${e.palette.gray[200]};
2724
+ }
2725
+ `,disabled:`
2726
+ background-color: ${e.palette.gray[200]};
2727
+ outline: 1px solid ${e.palette.gray[400]};
2728
+ outline-offset: -1px;
2729
+ color: ${e.palette.gray[400]};
2730
+
2731
+ &::after {
2732
+ background-color: ${e.palette.gray[200]};
2733
+ }
2734
+ `})),rs=f.styled.div`
2735
+ ${({theme:e})=>`
2736
+ align-items: stretch;
2737
+ background-color: ${e.palette.white};
2738
+ display: flex;
2739
+ flex-direction: column;
2740
+ height: 100%;
2741
+ padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
2742
+ scroll-behavior: unset;
2743
+ `}
2744
+ `,is=f.styled.div`
2745
+ display: flex;
2746
+ flex-direction: row;
2747
+ margin-bottom: ${({theme:e})=>e.spacing[2]};
2748
+
2749
+ &:last-child > div:first-child > span::after {
2750
+ display: none;
2751
+ }
2752
+ `,as=f.styled.div`
2753
+ ${({theme:e})=>`
2754
+ display: inline-flex;
2755
+ font-family: ${e.typography.type.primary};
2756
+ font-size: ${e.typography.text.sm};
2757
+ line-height: ${e.spacing[1.25]};
2758
+ margin-top: ${e.spacing[1]};
2759
+
2760
+ & > button:first-child {
2761
+ margin-right: ${e.spacing[.5]};
2762
+ }
2763
+ `}
2764
+ `,ss=f.styled.span`
2765
+ ${({theme:e,$variant:n})=>`
2766
+ border-radius: 6px;
2767
+ display: inline-block;
2768
+ text-align: center;
2769
+ font-size: ${e.typography.text.sm};
2770
+ font-weight: ${e.typography.weight.bold};
2771
+ font-family: ${e.typography.type.primary};
2772
+ line-height: ${e.spacing[1]};
2773
+ padding: ${`${e.spacing[.5]} ${e.spacing[.5]}`};
2774
+ height: ${e.spacing[2]};
2775
+ width: ${e.spacing[2]};
2776
+
2777
+ &::after {
2778
+ content: "";
2779
+ position: absolute;
2780
+ top: calc(32px + ${e.spacing[.5]});
2781
+ left: 50%;
2782
+ bottom: 0;
2783
+ width: 2px;
2784
+ height: calc(100% - ${e.spacing[1]});
2785
+ }
2786
+
2787
+ ${os(e,n)}
2788
+ `}
2789
+ `,ls=({button:{disabled:e=!1,text:n,type:o="button",onClick:r},steps:i})=>{const[a,l]=u.useState(1),s=u.useCallback((c,d)=>()=>{l(p=>p+c),d==null||d()},[]);return t.jsx(rs,{children:i.map((c,d)=>{const{content:p,title:g,nextAction:x,previousAction:h}=c,b=d+1,w=b===a?"current":"disabled",$=b<a?"completed":w;return t.jsxs(is,{children:[t.jsx(m,{maxWidth:"40px",position:"relative",children:t.jsx(ss,{$variant:$,children:$==="completed"?t.jsx(D,{icon:"check",iconSize:"lg",iconType:"fa-solid"}):b})}),t.jsxs(m,{ml:1.5,width:"100%",children:[t.jsx(J,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:g}),$==="current"&&t.jsxs(m,{children:[p,t.jsxs(as,{children:[a>1&&t.jsx(O,{disabled:c.isDisabledPrevious??!1,onClick:s(-1,h),variant:"tertiary",children:"Previous"}),a<i.length?t.jsx(O,{disabled:c.isDisabledNext??!1,onClick:s(1,x),variant:"primary",children:"Next step"}):t.jsx(O,{disabled:e,onClick:r,type:o,variant:"primary",children:n})]})]})]})]},c.title)})})},cs=e=>{const n=(i,a)=>a.reduce((s,[c,d])=>{if(u.isValidElement(d)||c==="__typename")return s.concat([["",""]]);if(typeof d=="object"&&d){const g=Object.entries(d);return s.concat(n(c,g))}const p=i===""?"":`${i}.`;return s.concat([[p+c,d]])},[]),o=Object.entries(e),r=n("",o).filter(([i])=>i!=="");return Object.fromEntries(r)},zt=e=>e.map(cs),Dn=({csvConfig:e={},data:n,children:o})=>{const{columns:r=void 0,export:i=!1,headers:a={},name:l="Report"}=e,s=u.useMemo(()=>y._.isUndefined(r)?zt(n):zt(n).map(p=>y._.pick(p,r)),[n,r]),c=u.useMemo(()=>s.length>0&&!y._.isEmpty(a),[s.length,a]),d=u.useMemo(()=>(c?Object.keys(s[0]):[]).map(p=>y._.includes(Object.keys(a),p)?{key:p,label:a[p]}:{key:p,label:p}),[c,s,a]);return i?t.jsx(y.CSVLink,{data:s,filename:l,headers:c?d:void 0,children:o}):t.jsx(u.Fragment,{children:o})},Nn=e=>{const{table:n}=e,{meta:o}=n.options,[r,i]=u.useState(0),[,a]=n.getHeaderGroups(),l=n.getState(),s=u.useMemo(()=>n.getAllLeafColumns().filter(g=>g.id!=="selection"),[n]),c=u.useMemo(()=>s.map(g=>{var x;return{group:(x=g.parent)==null?void 0:x.id,id:g.id,locked:g.getIsPinned()==="left",name:g.columnDef.header,toggleVisibility:g.toggleVisibility,visible:g.getIsVisible()}}),[s]),d=en({columnOrder:(o==null?void 0:o.defaultColumnOrder)??[],items:c,name:"table-column-management",setColumnOrder:n.setColumnOrder,setColumnVisibility:n.setColumnVisibility}),p=u.useCallback(()=>{d.toggle()},[d]);return u.useEffect(()=>{i(n.getVisibleLeafColumns().filter(g=>g.id!=="selection").length)},[n,l]),t.jsxs("div",{id:"columns-filter",children:[t.jsx(O,{icon:"columns",id:"columns-toggle-btn",onClick:p,variant:"ghost",children:t.jsx("p",{children:r})}),t.jsx(fn,{modalRef:d,title:"Manage columns",variant:y.isNil(a)?"ungrouped":"grouped"})]})},te=u.createContext({containerRef:void 0,elementName:"",handleUnselectAll:void 0,hidden:!1,onKeyDown:void 0,selected:0,tableSize:0,tableRef:void 0,table:void 0}),ds=f.styled.span`
2790
+ transition: all 150ms;
2791
+ width: 5px;
2792
+ height: 10px;
2793
+ padding: ${({theme:e})=>e.spacing[.625]};
2794
+ display: flex;
2795
+ flex-direction: column;
2796
+ justify-content: center;
2797
+ gap: 0.125rem;
2798
+ align-items: center;
2799
+
2800
+ svg {
2801
+ margin-top: -4px;
2802
+ margin-bottom: -2px;
2803
+ }
2804
+
2805
+ span:first-child {
2806
+ transition: opacity 150ms;
2807
+ opacity: ${({$variant:e})=>e==="desc"?0:1};
2808
+ }
2809
+
2810
+ span:last-child {
2811
+ transition: opacity 150ms;
2812
+ opacity: ${({$variant:e})=>e==="asc"?0:1};
2813
+ }
2814
+ `,et=e=>{const n=f.useTheme(),{variant:o}=e;return t.jsxs(ds,{$variant:o,children:[t.jsx(D,{icon:"caret-up",iconColor:n.palette.gray[700],iconSize:"xs",iconType:"fa-solid"}),t.jsx(D,{icon:"caret-down",iconColor:n.palette.gray[700],iconSize:"xs",iconType:"fa-solid"})]})},ps=f.styled.div`
2815
+ position: relative;
2816
+
2817
+ div:has(table) {
2818
+ scrollbar-color: ${({theme:e})=>e.palette.gray[600]}
2819
+ transparent;
2820
+ scrollbar-width: thin;
2821
+ overflow-x: auto;
2822
+ margin-left: -3px;
2823
+ padding-left: 3px;
2824
+ padding-bottom: 5px;
2825
+ }
2826
+
2827
+ table {
2828
+ overflow-x: hidden;
2829
+ white-space: nowrap;
2830
+ margin: 0;
2831
+ border-collapse: collapse;
2832
+ width: 100%;
2833
+ }
2834
+
2835
+ table thead {
2836
+ background-color: ${({theme:e})=>e.palette.gray[50]};
2837
+ position: sticky;
2838
+ z-index: 1;
2839
+ top: 0;
2840
+ }
2841
+
2842
+ table tbody {
2843
+ background-color: ${({theme:e})=>e.palette.white};
2844
+ }
2845
+
2846
+ table tr {
2847
+ height: ${({theme:e})=>e.spacing[2.5]};
2848
+ border: 1px solid ${({theme:e})=>e.palette.gray[200]};
2849
+ }
2850
+
2851
+ table thead tr {
2852
+ background-color: transparent;
2853
+ border-bottom: none;
2854
+ }
2855
+
2856
+ table thead tr:hover {
2857
+ background-color: transparent;
2858
+ }
2859
+
2860
+ table thead tr:first-child {
2861
+ height: ${({theme:e})=>e.spacing[2.5]};
2862
+ border: none;
2863
+ }
2864
+
2865
+ table tbody tr {
2866
+ &:has(input[disabled]) {
2867
+ background-color: ${({theme:e})=>e.palette.gray[100]};
2868
+ }
2869
+
2870
+ &:has(input[disabled]):hover {
2871
+ background-color: ${({theme:e})=>e.palette.gray[100]};
2872
+ }
2873
+ }
2874
+
2875
+ table tr:hover:not([aria-expanded="true"], #description) {
2876
+ background-color: ${({theme:e})=>e.palette.gray[50]};
2877
+ }
2878
+
2879
+ table tr#description {
2880
+ align-items: center;
2881
+ background-color: ${({theme:e})=>e.palette.gray[50]};
2882
+ }
2883
+
2884
+ table tbody tr.row-no-data {
2885
+ &:hover {
2886
+ background-color: ${({theme:e})=>e.palette.white};
2887
+ }
2888
+ }
2889
+
2890
+ tr {
2891
+ &:first-child th:first-child > div {
2892
+ border-top-left-radius: 8px;
2893
+ }
2894
+
2895
+ &:first-child th:last-child > div {
2896
+ border-top-right-radius: 8px;
2897
+ }
2898
+
2899
+ th {
2900
+ position: relative;
2901
+ font-size: ${({theme:e})=>e.typography.text.sm};
2902
+ font-weight: ${({theme:e})=>e.typography.weight.bold};
2903
+ color: ${({theme:e})=>e.palette.gray[800]};
2904
+ padding: unset;
2905
+ height: ${({theme:e})=>e.spacing[3]};
2906
+ white-space: pre-line;
2907
+
2908
+ &:hover div:first-child {
2909
+ background-color: ${({theme:e})=>e.palette.gray[300]};
2910
+ }
2911
+
2912
+ &:first-child {
2913
+ border-right: 1px solid ${({theme:e})=>e.palette.gray[25]};
2914
+
2915
+ svg {
2916
+ margin-right: unset;
2917
+ }
2918
+
2919
+ &:has(input) {
2920
+ padding: unset;
2921
+ }
2922
+
2923
+ &:has(input) + th:nth-child(2) {
2924
+ border-right: 1px solid
2925
+ ${({theme:e})=>e.palette.gray[25]};
2926
+ }
2927
+
2928
+ &:hover div:first-child {
2929
+ background-color: ${({theme:e})=>e.palette.gray[200]};
2930
+ }
2931
+ }
2932
+ }
2933
+ }
2934
+
2935
+ tbody tr:not(.row-no-data) td {
2936
+ font-size: ${({theme:e})=>e.typography.text.sm};
2937
+ white-space: pre-line;
2938
+ padding-left: 8px;
2939
+ padding-right: 8px;
2940
+
2941
+ &.clickable {
2942
+ cursor: pointer;
2943
+
2944
+ &:hover p {
2945
+ text-decoration: underline;
2946
+ color: ${({theme:e})=>e.palette.gray[400]};
2947
+ }
2948
+
2949
+ &:has(input) {
2950
+ padding: ${({theme:e})=>e.spacing[.5]};
2951
+
2952
+ & + td:hover p {
2953
+ text-decoration: underline;
2954
+ color: ${({theme:e})=>e.palette.gray[400]};
2955
+ }
2956
+ }
2957
+ }
2958
+
2959
+ &:first-child {
2960
+ border-right: 1px solid ${({theme:e})=>e.palette.gray[200]};
2961
+
2962
+ svg {
2963
+ margin-right: unset;
2964
+ }
2965
+
2966
+ &:has(input) {
2967
+ padding: ${({theme:e})=>e.spacing[.5]};
2968
+
2969
+ & + td {
2970
+ cursor: pointer;
2971
+ border-right: 1px solid
2972
+ ${({theme:e})=>e.palette.gray[200]};
2973
+ }
2974
+ }
2975
+ }
2976
+ }
2977
+ `,gs=f.styled.div`
2978
+ ${({$width:e,theme:n})=>`
2979
+ display: flex;
2980
+ flex-direction: column;
2981
+ align-items: stretch;
2982
+ flex: 1 0 auto;
2983
+ padding-right: 5px;
2984
+ width: ${e}px;
2985
+
2986
+ div {
2987
+ position: relative;
2988
+ font-weight: 400;
2989
+ font-size: ${n.typography.text.sm};
2990
+ text-align: left;
2991
+
2992
+ color: ${n.palette.gray[600]};
2993
+ background-color: ${n.palette.gray[100]};
2994
+ border-radius: ${n.spacing[.25]};
2995
+ padding: ${n.spacing[.5]} ${n.spacing[.75]};
2996
+ margin: ${n.spacing[.5]} 0;
2997
+ height: ${n.spacing[2.25]};
2998
+
2999
+ span {
3000
+ text-decoration: underline;
3001
+ cursor: pointer;
3002
+ }
3003
+ }
3004
+ `}
3005
+ `,us=f.styled.div`
3006
+ align-items: center;
3007
+ background-color: transparent;
3008
+ display: flex;
3009
+ gap: ${({theme:e})=>e.spacing[1]};
3010
+ padding: ${({theme:e})=>`${e.spacing[.75]} ${e.spacing[1.25]}`};
3011
+
3012
+ .pagination-container {
3013
+ display: flex;
3014
+ flex-direction: row;
3015
+ align-items: center;
3016
+ gap: ${({theme:e})=>e.spacing[1]};
3017
+ }
3018
+
3019
+ .footer-container {
3020
+ display: flex;
3021
+ align-items: center;
3022
+ flex: 1 0 auto;
3023
+ height: 100%;
3024
+
3025
+ &::before {
3026
+ display: block;
3027
+ content: "";
3028
+ height: ${({theme:e})=>e.typography.text.md};
3029
+ border-left: 1px solid ${({theme:e})=>e.palette.gray[300]};
3030
+ margin: 0;
3031
+ margin-right: ${({theme:e})=>e.spacing[.5]};
3032
+ }
3033
+ }
3034
+ `,Tt=f.styled.div`
3035
+ transition: all 150ms;
3036
+ content: "";
3037
+ z-index: 2;
3038
+ position: absolute;
3039
+ bottom: 0;
3040
+ right: -1px;
3041
+ width: 30px;
3042
+ height: 100%;
3043
+ margin-right: 0;
3044
+ cursor: col-resize;
3045
+ user-select: none;
3046
+ touch-action: none;
3047
+ border-right: 1px solid transparent;
3048
+
3049
+ &:hover {
3050
+ transition: all 150ms;
3051
+ border-right: 1px solid ${({theme:e})=>e.palette.black};
3052
+ }
3053
+ `,Fn=()=>{const e=f.useTheme(),{table:n}=u.useContext(te),{groupHeaders:o,tooltips:r}=(n==null?void 0:n.options.meta)??{},i=u.useCallback(d=>()=>{d.column.getCanSort()&&(n==null||n.setPageIndex(0),d.column.toggleSorting())},[n]),a=d=>p=>{d.getResizeHandler()(p)};if(o)return t.jsx("thead",{children:n==null?void 0:n.getHeaderGroups().map(d=>t.jsx("tr",{"data-testid":"row-headers",children:d.headers.map(p=>{var b;const{isPlaceholder:g}=p,x=g?p.subHeaders[0]:p;return y._.isUndefined(p.column.parent)&&p.depth>1?null:t.jsxs("th",{colSpan:x.colSpan,id:`header-${x.id}`,rowSpan:g?0:1,style:{borderRight:p.headerGroup.headers.indexOf(p)!==p.headerGroup.headers.length-1?"1px solid white":void 0,position:"relative",width:p.getSize()},children:[t.jsxs(m,{alignItems:"center",bgColor:e.palette.gray[200],borderBottom:g?void 0:`1px solid${e.palette.white}`,display:"flex",gap:.25,height:g?"6rem":"3rem",lineSpacing:0,onClick:i(x),pl:.5,pt:g?3:0,whiteSpace:"nowrap",width:"100%",children:[y.flexRender(x.column.columnDef.header,x.getContext()),x.column.getCanSort()?t.jsx(et,{variant:x.column.getIsSorted()}):void 0,(r==null?void 0:r.map(w=>w.columnId).includes(x.id))??!1?t.jsx(U,{icon:"circle-info",id:x.id,place:"right",tip:((b=r==null?void 0:r.find(w=>w.columnId===x.id))==null?void 0:b.tip)??""}):void 0]}),x.column.getCanResize()&&t.jsx(Tt,{onMouseDown:a(p)})]},x.id)})},d.id))});const[l,s]=(n==null?void 0:n.getHeaderGroups())??[],c=y.lodashExports.isNil(s)?l:s;return t.jsx("thead",{children:t.jsx("tr",{"data-testid":"row-headers",children:c.headers.map(d=>{var p;return t.jsxs("th",{id:`header-${d.id}`,style:{position:"relative",width:d.getSize()},children:[t.jsxs(m,{alignItems:"center",bgColor:e.palette.gray[200],display:"flex",gap:.25,height:"3rem",lineSpacing:0,onClick:i(d),px:.5,whiteSpace:"nowrap",width:"100%",children:[y.flexRender(d.column.columnDef.header,d.getContext()),d.column.getCanSort()?t.jsx(et,{variant:d.column.getIsSorted()}):void 0,(r==null?void 0:r.map(g=>g.columnId).includes(d.id))??!1?t.jsx(U,{icon:"circle-info",id:d.id,place:"right",tip:((p=r==null?void 0:r.find(g=>g.columnId===d.id))==null?void 0:p.tip)??""}):void 0]}),d.column.getCanResize()&&t.jsx(Tt,{onMouseDown:a(d)})]},d.id)})})})},xs=f.styled.div`
3054
+ align-items: center;
3055
+ display: flex;
3056
+ width: 100%;
3057
+ `,An=()=>{const e=f.useTheme(),{table:n}=u.useContext(te),{loading:o}=(n==null?void 0:n.options.meta)??{},r=u.useMemo(()=>{const{enableRowSelection:s,enableMultiRowSelection:c}=(n==null?void 0:n.options)??{};return s||c?1:0},[n==null?void 0:n.options]),i=u.useCallback((s,c)=>{if(c===r)return d=>{var p,g;d.stopPropagation(),(g=(p=n==null?void 0:n.options)==null?void 0:p.onRowClick)==null||g.call(p,s)}},[r,n]),a=u.useCallback(s=>c=>{c.stopPropagation(),s.toggleExpanded()},[]),l=u.useCallback(s=>{const{meta:c}=(n==null?void 0:n.options)??{},{onExpand:d=void 0}=c??{};return d?d(s):null},[n]);return o?t.jsx("tbody",{children:t.jsx("tr",{className:"row-loading","data-testid":"row-loading",children:t.jsx("td",{colSpan:(n==null?void 0:n.getVisibleLeafColumns().length)??0,children:t.jsx(m,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:t.jsx(kn,{size:"md"})})})})}):(n==null?void 0:n.getRowModel().rows.length)===0?t.jsx("tbody",{children:t.jsx("tr",{className:"row-no-data","data-testid":"row-no-data",children:t.jsx("td",{colSpan:n.getVisibleLeafColumns().length+1,children:t.jsx(E,{color:e.palette.gray[800],size:"sm",textAlign:"center",children:"No data to display"})})})}):t.jsx("tbody",{children:n==null?void 0:n.getRowModel().rows.map(s=>t.jsxs(tt.default.Fragment,{children:[t.jsx("tr",{"aria-expanded":s.getIsExpanded(),"data-testid":`row-${s.id}`,children:s.getVisibleCells().map((c,d)=>t.jsx("td",{className:d===r&&n.options.onRowClick?"clickable":"","data-testid":`cell-${c.id}`,onClick:i(s,d),children:t.jsxs(xs,{children:[d===r&&s.getCanExpand()?t.jsx("button",{onClick:a(s),style:{cursor:"pointer",marginRight:"1rem"},children:t.jsx(D,{icon:s.getIsExpanded()?"angle-up":"angle-down",iconSize:"lg",iconType:"fa-light"})}):void 0,y.flexRender(c.column.columnDef.cell,c.getContext())]})},c.id))}),s.getIsExpanded()?t.jsx("tr",{"data-testid":`row-${s.id}-expand`,id:"description",children:t.jsx("td",{colSpan:100,children:l(s)})}):void 0]},s.id))})},Ln=()=>{const{containerRef:e,hidden:n,elementName:o,handleUnselectAll:r,onKeyDown:i,selected:a,tableSize:l,tableRef:s}=u.useContext(te);return t.jsxs("div",{ref:e,children:[n?void 0:t.jsx(gs,{$width:l,children:t.jsxs("div",{children:[t.jsx("b",{children:`${a} ${o} `}),`${a===1?"has":"have"} been selected. `,t.jsx("span",{onClick:r,onKeyDown:i,role:"link",tabIndex:0,children:"Unselect all"})]})}),t.jsxs("table",{ref:s,children:[t.jsx(Fn,{}),t.jsx(An,{})]})]})},It=f.styled(H)`
3058
+ ${({theme:e,$padding:n})=>`
3059
+ background-color: ${e.palette.white};
3060
+ border: 1px solid ${e.palette.gray[200]};
3061
+ border-radius: 2px;
3062
+ padding: ${n??e.spacing[.25]};
3063
+
3064
+ path {
3065
+ fill: ${e.palette.gray[700]};
3066
+ }
3067
+
3068
+ &:disabled {
3069
+ cursor: not-allowed;
3070
+ background: ${e.palette.gray[200]};
3071
+ border-color: ${e.palette.gray[200]};
3072
+
3073
+ path {
3074
+ fill: ${e.palette.gray[400]};
3075
+ }
3076
+ }
3077
+
3078
+ &:hover:not([disabled]) {
3079
+ color: inherit;
3080
+ background-color: ${e.palette.gray[100]};
3081
+ }
3082
+ `}
3083
+ `,Pn=()=>{const{table:e}=u.useContext(te),{pagination:{pageIndex:n}={pageIndex:0}}=(e==null?void 0:e.getState())??{},o=(e==null?void 0:e.getPageCount())??0,r=u.useCallback(()=>{e==null||e.setPageIndex(n+1)},[n,e]),i=u.useCallback(()=>{e==null||e.previousPage()},[e]);return t.jsxs(m,{alignItems:"center",display:"flex",gap:.5,children:[t.jsx(It,{$padding:"4px 6px",disabled:!(e!=null&&e.getCanPreviousPage()),icon:"chevron-left",iconSize:"sm",id:"go-previous",onClick:i,variant:"ghost"}),t.jsx(It,{$padding:"4px 6px",disabled:n>o-2,icon:"chevron-right",iconSize:"sm",id:"go-next",onClick:r,variant:"ghost"})]})},hs=10,fs=20,ys=50,bs=100,On=()=>{const e=f.useTheme(),{table:n}=u.useContext(te),o=(n==null?void 0:n.getRowCount())??0,[r,i]=u.useState(!1),[a,l]=u.useState((n==null?void 0:n.getState().pagination.pageSize)??10),{refs:s,floatingStyles:c}=y.useFloating$1({middleware:[y.offset({mainAxis:4})],open:r,placement:"top-end",whileElementsMounted:y.autoUpdate}),d=u.useMemo(()=>y.transform([hs,fs,ys,bs],(h,b)=>(h.push(b),b<=o),[]),[o]),p=u.useCallback(()=>{r&&i(!1)},[r]),g=u.useCallback(()=>{i(h=>!h)},[]),x=u.useCallback(h=>()=>{l(h),n==null||n.setPageSize(h),i(!1)},[n,l]);return ee(s.reference.current,()=>{i(!1)},!0,s.floating.current),u.useEffect(()=>(window.addEventListener("scrollend",p,!0),()=>{window.removeEventListener("scrollend",p,!0)}),[p]),t.jsxs(u.Fragment,{children:[t.jsxs(m,{alignItems:"center",bgColor:e.palette.white,border:"1px solid",borderColor:e.palette.gray[200],borderRadius:"4px",display:"flex",minHeight:"24px",px:.25,children:[t.jsx(E,{pr:.25,size:"sm",children:a}),t.jsx(H,{color:e.palette.gray[400],icon:r?"chevron-up":"chevron-down",iconSize:"sm",id:"paginator-dropdown",onClick:g,ref:s.setReference,variant:"ghost"})]}),r?t.jsx(m,{bgColor:e.palette.white,border:`1px solid ${e.palette.gray[200]}`,borderRadius:e.spacing[.5],display:"flex",flexDirection:"column",px:.25,py:.25,ref:s.setFloating,shadow:"md",style:c,children:d.map(h=>{const b=x(h);return t.jsx(m,{bgColor:a===h?e.palette.gray[800]:"transparent",bgColorHover:e.palette.gray[a===h?800:100],borderRadius:e.spacing["0.25"],cursor:"pointer",maxWidth:"40px",minWidth:"40px",onClick:b,px:.25,py:.25,children:t.jsx(E,{color:a===h?e.palette.white:e.palette.gray[600],size:"sm",textAlign:"center",children:h})},h)})}):void 0]})},Mn=()=>{const{table:e}=u.useContext(te),{pagination:{pageIndex:n,pageSize:o}={pageIndex:0,pageSize:10}}=(e==null?void 0:e.getState())??{},r=(e==null?void 0:e.getRowCount())??0,i=u.useCallback((a,l,s)=>{if(s===0)return"0 of 0";if(l*a>=s)return`${s} of ${s}`;const c=l*a+1,d=Math.min(l*(a+1),s);return`${c}-${d} of ${s}`},[]);return t.jsx(E,{display:"inline-block",fontWeight:"bold",size:"sm",children:i(n,o,r)})},Hn=({children:e})=>t.jsxs(us,{children:[t.jsxs("div",{className:"pagination-container",children:[t.jsx(Mn,{}),t.jsx(On,{}),t.jsx(Pn,{})]}),e]}),Wn=({children:e})=>t.jsx("div",{className:"footer-container",children:e}),$s=f.styled.div.attrs({className:"search-container"})`
3084
+ ${({theme:e})=>`
3085
+ display: flex;
3086
+ flex-direction: column;
3087
+ justify-content: center;
3088
+ flex: 1 0 320px;
3089
+
3090
+ > div {
3091
+ align-items: center;
3092
+ background-color: ${e.palette.white};
3093
+ border: 1px solid;
3094
+ border-color: ${e.palette.gray[300]};
3095
+ border-radius: ${e.spacing[.5]};
3096
+ display: flex;
3097
+ height: 40px;
3098
+ padding: ${e.spacing[.5]};
3099
+ max-width: 100%;
3100
+ width: 100%;
3101
+
3102
+ &:hover {
3103
+ border-color: ${e.palette.gray[600]};
3104
+ }
3105
+
3106
+ &:focus-within {
3107
+ border: 2px solid;
3108
+ border-color: ${e.palette.black};
3109
+ }
3110
+
3111
+ span {
3112
+ margin-top: -${e.spacing[.125]};
3113
+ margin-right: ${e.spacing[.5]};
3114
+ }
3115
+
3116
+ input {
3117
+ background: none;
3118
+ border: none !important;
3119
+ box-shadow: none;
3120
+ box-sizing: border-box;
3121
+ color: ${e.palette.gray[800]};
3122
+ font-family: ${e.typography.type.primary};
3123
+ font-size: ${e.typography.text.sm};
3124
+ outline: none;
3125
+ width: 100%;
3126
+ line-height: ${e.spacing[.75]};
3127
+ }
3128
+ }
3129
+ `}
3130
+ `,ms=f.styled.div.attrs({className:"controls-container"})`
3131
+ display: flex;
3132
+ flex: 1 0 50%;
3133
+
3134
+ .controls-container > :first-child {
3135
+ display: flex;
3136
+ align-items: center;
3137
+ gap: ${({theme:e})=>e.spacing[.125]};
3138
+ }
3139
+
3140
+ #actions-container {
3141
+ display: flex;
3142
+ align-items: center;
3143
+ justify-content: flex-end;
3144
+ width: 100%;
3145
+ }
3146
+ `,ws=f.styled.div`
3147
+ display: flex;
3148
+ flex-wrap: wrap;
3149
+ width: 100%;
3150
+ justify-content: space-between;
3151
+ gap: ${({theme:e})=>e.spacing[1]};
3152
+ margin-bottom: ${({theme:e})=>e.spacing[1]};
3153
+
3154
+ .highlight-container {
3155
+ flex: 1 0 auto;
3156
+ }
3157
+
3158
+ .highlight-container ~ .controls-container {
3159
+ flex: 1 0 100%;
3160
+ }
3161
+ `,vs=500,Bn=({children:e})=>{const{table:n}=u.useContext(te),{onSearch:o,search:r,searchPlaceholder:i="Search"}=(n==null?void 0:n.options.meta)??{},a=lt(s=>{o==null||o(s.target.value)},vs),l=u.useCallback(()=>{o==null||o("")},[o]);return t.jsxs(ws,{children:[o===void 0?void 0:t.jsx($s,{children:t.jsx(se,{name:"search",onChange:a,onClear:l,placeholder:i,value:r})}),e]})},_n=({children:e})=>t.jsx(m,{display:"flex",flexDirection:"column",children:t.jsx("div",{className:"caption-container",children:e})}),Vn=({children:e})=>t.jsx(ms,{children:e}),Un=({children:e})=>t.jsx("div",{className:"highlight-container",children:e}),js=160,Gn=({children:e,table:n})=>{var x;const o=u.useRef(null),r=u.useRef(null),{id:i}=n.options.meta??{},{enableMultiRowSelection:a}=(n==null?void 0:n.options)??{},l=Object.keys(n.getState().rowSelection).length,s=l===1?"item":"items",c=l===0||!a,d=Math.max(((x=o.current)==null?void 0:x.clientWidth)??0,n.getTotalSize()+js),p=u.useCallback(()=>{n.resetRowSelection()},[n]),g=u.useCallback(h=>{h.key==="Enter"&&p()},[p]);return u.useEffect(()=>{n.setPageIndex(0)},[n]),t.jsx(te.Provider,{value:{containerRef:o,elementName:s,handleUnselectAll:p,hidden:c,onKeyDown:g,selected:l,tableSize:d,tableRef:r,table:n},children:t.jsx(ps,{id:i,children:e})})},ks=Object.assign(Gn,{Caption:_n,Columns:Nn,Content:Ln,Controls:Vn,Export:Dn,Footer:Hn,FooterContent:Wn,Highlighted:Un,Options:Bn}),Cs=f.styled.button`
3162
+ ${({theme:e})=>`
3163
+ align-items: center;
3164
+ background-color: ${e.palette.white};
3165
+ border: 1px solid ${e.palette.gray[100]};
3166
+ border-radius: ${e.spacing[.25]};
3167
+ color: ${e.palette.gray[800]};
3168
+ cursor: pointer;
3169
+ display: flex;
3170
+ font-size: ${e.typography.text.sm};
3171
+ gap: ${e.spacing[.25]};
3172
+ height: 21px;
3173
+ width: 21px;
3174
+ justify-content: center;
3175
+ padding: 6px;
3176
+ transition: all 0.25s ease;
3177
+
3178
+ &[aria-label] {
3179
+ height: auto;
3180
+ width: auto;
3181
+ }
3182
+
3183
+ &.success {
3184
+ border-color: ${e.palette.success[500]};
3185
+ color: ${e.palette.success[500]};
3186
+
3187
+ &:hover {
3188
+ background-color: ${e.palette.success[200]};
3189
+ }
3190
+ }
3191
+
3192
+ &:disabled {
3193
+ cursor: not-allowed;
3194
+ background: ${e.palette.gray[200]};
3195
+ border-color: ${e.palette.gray[200]};
3196
+ color: ${e.palette.gray[300]};
3197
+ }
3198
+
3199
+ &:hover:not(.success) {
3200
+ background-color: ${e.palette.gray[100]};
3201
+ }
3202
+ `}
3203
+ `,Ss={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},zs=({disabled:e=!1,icon:n,id:o,label:r,name:i,onClick:a,type:l="button",variant:s})=>{const c=f.useTheme(),d=t.jsxs(Cs,{"aria-label":i??void 0,className:s,disabled:e,id:o,onClick:a,type:l,children:[t.jsx(D,{clickable:!1,icon:n??Ss[s].icon,iconSize:i===void 0?"sm":"lg",iconType:"fa-light"}),i??void 0]});return t.jsxs(m,{alignItems:"center",display:"flex",children:[d,r&&t.jsx(E,{color:c.palette.gray[800],ml:.5,size:"sm",children:r})]})},Ts=f.styled.div`
3204
+ ${({theme:e,$size:n})=>`
3205
+ align-items: center;
3206
+ background-color: ${e.palette.white};
3207
+ border: 1px solid ${e.palette.gray[200]};
3208
+ border-radius: ${e.spacing[.25]};
3209
+ display: flex;
3210
+ flex-direction: column;
3211
+ gap: ${e.spacing[.5]};
3212
+ min-height: 180px;
3213
+ padding: ${e.spacing[1.5]};
3214
+ width: 510px;
3215
+
3216
+ p {
3217
+ font-style: normal;
3218
+ line-height: ${e.spacing[1.25]};
3219
+ text-align: ${n==="long"?"":"center"};
3220
+ }
3221
+
3222
+ &:hover {
3223
+ border: 1px solid ${e.palette.gray[600]};
3224
+ }
3225
+ `}
3226
+ `,Is=f.styled.div`
3227
+ ${({theme:e,$size:n})=>`
3228
+ display: ${n==="long"?"flex":"block"};
3229
+ flex-direction: column;
3230
+ gap: ${e.spacing[1.5]};
3231
+ position: relative;
3232
+ max-width: 1100px;
3233
+ margin: 0 auto 0 auto;
3234
+
3235
+ div.timeline-card {
3236
+ width: ${n==="long"?"510px":"auto"};
3237
+ margin-left: ${n==="long"?"0px":"30px"};
3238
+ margin-bottom: ${n==="long"?"0px":e.spacing[.5]};
3239
+ }
3240
+
3241
+ &::before {
3242
+ background-color: ${e.palette.gray[200]};
3243
+ border-radius: 5px;
3244
+ height: 100%;
3245
+ width: 4px;
3246
+ transform: translate(-50%, 0);
3247
+ }
3248
+
3249
+ > * {
3250
+ &:nth-child(even) {
3251
+ align-self: end;
3252
+ }
3253
+
3254
+ &:nth-child(odd) {
3255
+ align-self: start;
3256
+ }
3257
+
3258
+ &::before {
3259
+ position: absolute;
3260
+ background-color: ${e.palette.primary[500]};
3261
+ border-radius: 50%;
3262
+ height: 14px;
3263
+ width: 14px;
3264
+ z-index: 1;
3265
+ }
3266
+ }
3267
+
3268
+ &::before,
3269
+ > *::before {
3270
+ content: "";
3271
+ left: ${n==="long"?"50%":"0px"};
3272
+ position: absolute;
3273
+ transform: translateX(-50%);
3274
+ }
3275
+ `}
3276
+ `,Yn=({date:e,description:n,title:o,size:r="long"})=>{const i=f.useTheme();return t.jsxs(Ts,{$size:r,className:"timeline-card",children:[t.jsx(E,{color:i.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(E,{color:i.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:o}),t.jsx("div",{children:n.map((a,l)=>{const s=`${a}#${l}`;return t.jsx(E,{size:"sm",textAlign:"center",wordBreak:"break-word",children:a},s)})})]})},Es=({items:e})=>{const n=u.useRef(null),[o,r]=u.useState("long");return u.useEffect(()=>{n.current&&r(n.current.offsetWidth<=1100?"small":"long")},[]),t.jsx(m,{ref:n,width:"100%",children:t.jsx(Is,{$size:o,children:e.map((i,a)=>t.jsx(Yn,{date:i.date,description:i.description,size:o,title:i.title},`${i.title}-${a}`))})})},Rs={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:""},Ds=({run:e,steps:n,onFinish:o})=>{const[r,i]=u.useState(e),[a,l]=u.useState(0),s=u.useCallback(c=>{const{action:d,index:p,status:g,type:x}=c;[y.EVENTS.STEP_AFTER,y.EVENTS.TARGET_NOT_FOUND].includes(x)?l(p+(d===y.ACTIONS.PREV?-1:1)):([y.STATUS.FINISHED,y.STATUS.SKIPPED].includes(g)||d==="close")&&(i(!1),y.lodashExports.isUndefined(o)||o())},[o]);return t.jsx(y.components_default,{callback:s,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:r,spotlightClicks:!0,stepIndex:a,steps:n,styles:{buttonNext:{display:a===n.length-1?"none":"block"},options:{zIndex:9999}}})};exports.Accordion=Co;exports.AccordionContent=Nt;exports.ActionButton=Ze;exports.Alert=Lo;exports.AppliedFilter=ue;exports.AppliedFilters=Ti;exports.ArrayField=Ke;exports.Avatar=_o;exports.BaseButtonComponent=nt;exports.BaseComponent=Se;exports.BaseSpanComponent=rt;exports.BaseTextComponent=ot;exports.Body=An;exports.Button=O;exports.Button$1=Re;exports.ButtonToolbarCenter=hr;exports.ButtonToolbarRow=yr;exports.ButtonToolbarStartRow=fr;exports.Calendar=Wt;exports.Calendar$1=Gt;exports.Calendar$2=Kt;exports.CalendarCell=Ht;exports.CalendarGrid=Ae;exports.CaptionContent=_n;exports.CardContainer=Kr;exports.CardHeader=Fe;exports.CardWithImage=Go;exports.CardWithInput=Lr;exports.CardWithOptions=un;exports.CardWithSelector=_r;exports.CardWithSwitch=Gr;exports.Carousel=ei;exports.Checkbox=ie;exports.CodeSnippet=ni;exports.Col=Ye;exports.ColumFilters=wn;exports.ColumnToggle=Nn;exports.ColumnsModal=fn;exports.ComboBox=at;exports.ComboBoxField=Ge;exports.Container=m;exports.ControlsContent=Vn;exports.CopyButton=Mi;exports.CustomThemeProvider=yo;exports.DateField=_t;exports.DateSelector=fe;exports.Description=In;exports.Dialog=Pe;exports.Divider=ae;exports.Dropdown=Bi;exports.Editable=xr;exports.EmptyButton=Je;exports.EmptyState=Gi;exports.ErrorMessage=qo;exports.ExportCsv=Dn;exports.FilePreview=Pt;exports.FilterControl=yn;exports.FilterForm=Xe;exports.FilterFormContent=bn;exports.FiltersList=mn;exports.FooterContent=Wn;exports.Form=qi;exports.Gap=mr;exports.GridContainer=Xi;exports.GroupSelector=Qi;exports.Head=Fn;exports.Header=Le;exports.Header$1=sn;exports.Heading=J;exports.HighlightedContent=Un;exports.Icon=D;exports.IconButton=H;exports.InProgressIcon=zn;exports.IndicatorCard=ea;exports.InfoSidebar=ta;exports.InnerForm=Yi;exports.InputArray=vr;exports.InputDate=Ut;exports.InputDateRange=Yt;exports.InputDateTime=ur;exports.InputFile=Sr;exports.InputNumber=Zt;exports.InputNumberRange=Xt;exports.InputTags=Tr;exports.Label=it;exports.Link=Q;exports.ListItem=Ie;exports.ListItemsWrapper=pn;exports.LittleFlag=oa;exports.Loading=kn;exports.LocationCode=on;exports.Logo=ga;exports.Lottie=xa;exports.MemoizedImage=ne;exports.Menu=ha;exports.MenuItem=En;exports.MessageBanner=ya;exports.Modal=gt;exports.ModalConfirm=ln;exports.ModalFooter=an;exports.Notification=va;exports.NotificationSign=cn;exports.NumberField=Ne;exports.NumberInput=Ca;exports.OAuthSelector=za;exports.Option=Ot;exports.OptionBoxContainer=ut;exports.OptionContainer=Qe;exports.OptionContainer$1=jn;exports.OutlineContainer=V;exports.PaginationControl=Pn;exports.PaginationDropdown=On;exports.PaginationSize=Mn;exports.PhoneInput=Fr;exports.PopUp=Ha;exports.Popover=ze;exports.PremiumFeature=Cn;exports.PreviewPanel=gn;exports.PriorityScore=Ia;exports.ProgressBar=Sn;exports.ProgressIndicator=Ma;exports.ProgressStep=Pa;exports.RadioButton=ct;exports.Row=qt;exports.ScrollUpButton=Ba;exports.Search=se;exports.SearchPanel=hn;exports.SeverityBadge=Va;exports.SeverityOverview=Ga;exports.SeverityOverviewBadge=xe;exports.ShowOnHover=Ka;exports.SlideOutMenu=Za;exports.Slider=ns;exports.SortIcon=et;exports.Span=he;exports.StepLapse=ls;exports.Tab=dn;exports.Table=ks;exports.Table$1=Gn;exports.TableButton=zs;exports.TableContent=Ln;exports.TableContext=te;exports.TableFooter=Hn;exports.TableOptions=Bn;exports.Tabs=pt;exports.Tag=Y;exports.TagsField=qe;exports.Text=E;exports.TextArea=Ar;exports.TextInput=Oe;exports.Thumb=Rn;exports.TimeField=Vt;exports.TimeLine=Es;exports.TimeLineCard=Yn;exports.Toggle=tn;exports.Tooltip=U;exports.Tour=Ds;exports.baseStep=Rs;exports.formatCheckValues=vn;exports.getStyledConfig=Ce;exports.hiddenProps=Rt;exports.icons=fo;exports.setBorder=we;exports.setDisplay=ve;exports.setInteraction=ke;exports.setMargin=$e;exports.setPadding=be;exports.setPosition=me;exports.setText=je;exports.theme=N;exports.useCarousel=Jt;exports.useClickOutside=ee;exports.useCloudinaryImage=Qt;exports.useColumnsModal=en;exports.useConditionsDialog=Li;exports.useConfirmDialog=Pi;exports.useDebouncedCallback=lt;exports.useFilterForm=$n;exports.useFilters=Ai;exports.useModal=Te;exports.useSearch=Mr;exports.variantBuilder=X;