@fluidattacks/design 3.27.2 → 3.27.3

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 (167) hide show
  1. package/dist/components/@core/index.js +1 -1
  2. package/dist/components/accordion/accordion-content/index.js +1 -1
  3. package/dist/components/accordion/index.js +1 -1
  4. package/dist/components/alert/index.js +1 -1
  5. package/dist/components/avatar/index.js +1 -1
  6. package/dist/components/button/index.js +1 -1
  7. package/dist/components/card/card-header/index.js +1 -1
  8. package/dist/components/card/card-with-image/index.js +1 -1
  9. package/dist/components/card/card-with-input/index.js +1 -1
  10. package/dist/components/card/card-with-options/index.js +1 -1
  11. package/dist/components/card/card-with-selector/index.js +1 -1
  12. package/dist/components/card/card-with-switch/index.js +1 -1
  13. package/dist/components/card/index.js +1 -1
  14. package/dist/components/card-container/index.js +1 -1
  15. package/dist/components/carousel/index.js +1 -1
  16. package/dist/components/checkbox/index.js +1 -1
  17. package/dist/components/cloud-image/index.js +1 -1
  18. package/dist/components/code-snippet/index.js +1 -1
  19. package/dist/components/code-snippet/location-code/index.js +1 -1
  20. package/dist/components/colors/index.js +1 -1
  21. package/dist/components/conditions-dialog/index.js +1 -1
  22. package/dist/components/confirm-dialog/index.js +1 -1
  23. package/dist/components/container/index.js +1 -1
  24. package/dist/components/copy-button/index.js +1 -1
  25. package/dist/components/divider/index.js +1 -1
  26. package/dist/components/dropdown/index.js +1 -1
  27. package/dist/components/empty-state/empty-button/index.js +1 -1
  28. package/dist/components/empty-state/index.js +1 -1
  29. package/dist/components/file-preview/index.js +1 -1
  30. package/dist/components/form/index.js +1 -1
  31. package/dist/components/form/inner-form/index.js +1 -1
  32. package/dist/components/grid-container/index.js +1 -1
  33. package/dist/components/group-selector/index.js +1 -1
  34. package/dist/components/group-selector/option-container/index.js +1 -1
  35. package/dist/components/icon/index.js +1 -1
  36. package/dist/components/icon-button/index.js +1 -1
  37. package/dist/components/indicator-card/index.js +1 -1
  38. package/dist/components/info-sidebar/index.js +1 -1
  39. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  40. package/dist/components/inputs/fields/combobox/index.js +1 -1
  41. package/dist/components/inputs/fields/combobox/index.stories.d.ts +2 -3
  42. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  43. package/dist/components/inputs/fields/combobox/types.d.ts +1 -0
  44. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  45. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  46. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  47. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  48. package/dist/components/inputs/fields/date/index.js +1 -1
  49. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  50. package/dist/components/inputs/fields/date-range/index.js +1 -1
  51. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  52. package/dist/components/inputs/fields/date-time/index.js +1 -1
  53. package/dist/components/inputs/fields/editable/index.js +1 -1
  54. package/dist/components/inputs/fields/input-array/field/index.js +1 -1
  55. package/dist/components/inputs/fields/input-array/index.js +1 -1
  56. package/dist/components/inputs/fields/input-file/index.js +1 -1
  57. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  58. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  59. package/dist/components/inputs/fields/number/index.js +1 -1
  60. package/dist/components/inputs/fields/number-range/index.js +1 -1
  61. package/dist/components/inputs/fields/phone/index.js +1 -1
  62. package/dist/components/inputs/fields/text-area/index.js +1 -1
  63. package/dist/components/inputs/fields/text-input/index.js +1 -1
  64. package/dist/components/inputs/index.js +1 -1
  65. package/dist/components/inputs/label/index.js +1 -1
  66. package/dist/components/inputs/outline-container/index.js +1 -1
  67. package/dist/components/inputs/utils/action-button/index.js +1 -1
  68. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  69. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  70. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  71. package/dist/components/inputs/utils/dialog/index.js +1 -1
  72. package/dist/components/inputs/utils/number-field/index.js +1 -1
  73. package/dist/components/inputs/utils/popover/index.js +1 -1
  74. package/dist/components/layout/categories/buttons/index.js +1 -1
  75. package/dist/components/layout/categories/column/index.js +1 -1
  76. package/dist/components/layout/categories/gap/index.js +1 -1
  77. package/dist/components/layout/categories/row/index.js +1 -1
  78. package/dist/components/layout/index.js +1 -1
  79. package/dist/components/link/index.js +1 -1
  80. package/dist/components/list-item/index.js +1 -1
  81. package/dist/components/little-flag/index.js +1 -1
  82. package/dist/components/loading/index.js +1 -1
  83. package/dist/components/logo/index.js +1 -1
  84. package/dist/components/lottie/index.js +1 -1
  85. package/dist/components/menu/index.js +1 -1
  86. package/dist/components/message-banner/index.js +1 -1
  87. package/dist/components/modal/columns-modal/index.js +1 -1
  88. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  89. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  90. package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
  91. package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
  92. package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
  93. package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
  94. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
  95. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
  96. package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
  97. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  98. package/dist/components/modal/filters-modal/index.js +1 -1
  99. package/dist/components/modal/footer/index.js +1 -1
  100. package/dist/components/modal/header/index.js +1 -1
  101. package/dist/components/modal/index.js +1 -1
  102. package/dist/components/modal/modal-confirm/index.js +1 -1
  103. package/dist/components/notification/index.js +1 -1
  104. package/dist/components/notification-sign/index.js +1 -1
  105. package/dist/components/number-input/index.js +1 -1
  106. package/dist/components/oauth-selector/index.js +1 -1
  107. package/dist/components/oauth-selector/option-container/index.js +1 -1
  108. package/dist/components/pop-up/description/index.js +1 -1
  109. package/dist/components/pop-up/index.js +1 -1
  110. package/dist/components/premium-feature/index.js +1 -1
  111. package/dist/components/priority-score/index.js +1 -1
  112. package/dist/components/progress-bar/index.js +1 -1
  113. package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
  114. package/dist/components/progress-indicator/index.js +1 -1
  115. package/dist/components/progress-indicator/step/index.js +1 -1
  116. package/dist/components/radio-button/index.js +1 -1
  117. package/dist/components/scroll-button/index.js +1 -1
  118. package/dist/components/search/index.js +1 -1
  119. package/dist/components/severity-badge/index.js +1 -1
  120. package/dist/components/severity-overview/badge/index.js +1 -1
  121. package/dist/components/severity-overview/index.js +1 -1
  122. package/dist/components/show-on-hover/index.js +1 -1
  123. package/dist/components/slide-out-menu/index.js +1 -1
  124. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  125. package/dist/components/slider/index.js +1 -1
  126. package/dist/components/slider/thumb/index.js +1 -1
  127. package/dist/components/step-lapse/index.js +1 -1
  128. package/dist/components/table/context/index.js +1 -1
  129. package/dist/components/table/export-csv/index.js +1 -1
  130. package/dist/components/table/index.js +1 -1
  131. package/dist/components/table/pagination/pagination-control/index.js +1 -1
  132. package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
  133. package/dist/components/table/pagination/pagination-size/index.js +1 -1
  134. package/dist/components/table/sort-icon/index.js +1 -1
  135. package/dist/components/table/table-body/index.js +1 -1
  136. package/dist/components/table/table-column-toggle/index.js +1 -1
  137. package/dist/components/table/table-content/head/index.js +1 -1
  138. package/dist/components/table/table-content/index.js +1 -1
  139. package/dist/components/table/table-footer/footer-content/index.js +1 -1
  140. package/dist/components/table/table-footer/index.js +1 -1
  141. package/dist/components/table/table-options/caption-content/index.js +1 -1
  142. package/dist/components/table/table-options/controls-content/index.js +1 -1
  143. package/dist/components/table/table-options/highlighted-content/index.js +1 -1
  144. package/dist/components/table/table-options/index.js +1 -1
  145. package/dist/components/table/wrapper/index.js +1 -1
  146. package/dist/components/table-button/index.js +1 -1
  147. package/dist/components/tabs/index.js +1 -1
  148. package/dist/components/tabs/tab/index.js +1 -1
  149. package/dist/components/tag/index.js +1 -1
  150. package/dist/components/timeline/card/index.js +1 -1
  151. package/dist/components/timeline/index.js +1 -1
  152. package/dist/components/toggle/index.js +1 -1
  153. package/dist/components/tooltip/index.js +1 -1
  154. package/dist/components/tour/index.js +1 -1
  155. package/dist/components/typography/heading/index.js +1 -1
  156. package/dist/components/typography/index.js +1 -1
  157. package/dist/components/typography/span/index.js +1 -1
  158. package/dist/components/typography/text/index.js +1 -1
  159. package/dist/{components-C_rb5tcr.mjs → components-BAuFm1mN.mjs} +1247 -1222
  160. package/dist/components-DXkxVFLn.js +3188 -0
  161. package/dist/hooks/index.js +1 -1
  162. package/dist/index.js +1 -1
  163. package/dist/{vendor-C4aloG3g.mjs → vendor-C3KgSuPd.mjs} +17385 -18549
  164. package/dist/vendor-DE_IQw9t.js +164 -0
  165. package/package.json +4 -4
  166. package/dist/components-CZYbMm7C.js +0 -3164
  167. package/dist/vendor-p_HN3CLJ.js +0 -223
@@ -0,0 +1,3188 @@
1
+ "use strict";const n=require("react/jsx-runtime"),u=require("react"),y=require("styled-components"),f=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(y),X=e=>({getVariant:(t,i)=>e(t)[i]}),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"],oi={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},ri={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},ai={25:"",50:"",100:"#f59dbe",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},si={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},li={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#f27100",700:"#b54708",800:"",900:""},ci={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},di={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},pi={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"}},gi={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)"},ui={sm:"1024px",md:"1440px",lg:"1920px"},xi={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"},hi=["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:pi,shadows:gi,breakpoints:ui,spacing:xi,palette:{primary:ri,complementary:ai,error:si,info:di,warning:li,success:ci,black:"#0c111d",white:"#ffffff",gray:oi}},fi=({children:e})=>n.jsx(y.ThemeProvider,{theme:N,children:e}),F=(e,t)=>t===void 0?"":`${e}: ${t};`,be=e=>{const t=e.py??e.pt??0,i=e.px??e.pr??0,o=e.py??e.pb??0,r=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[t]} ${N.spacing[i]} ${N.spacing[o]} ${N.spacing[r]};`},$e=e=>{const t=e.my??e.mt??0,i=e.mx??e.mr??0,o=e.my??e.mb??0,r=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[t]} ${N.spacing[i]} ${N.spacing[o]} ${N.spacing[r]};`},me=e=>{const t=F("position",e.position),i=F("top",e.top),o=F("right",e.right),r=F("bottom",e.bottom),a=F("left",e.left),l=F("z-index",e.zIndex);return`
2
+ ${t}
3
+ ${i}
4
+ ${o}
5
+ ${r}
6
+ ${a}
7
+ ${l}
8
+ `},we=e=>{const t=F("border",e.border),i=F("border-top",e.borderTop),o=F("border-right",e.borderRight),r=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
+ ${t}
10
+ ${i}
11
+ ${o}
12
+ ${r}
13
+ ${a}
14
+ ${l}
15
+ ${s}
16
+ `},yi=e=>e.includes("x")?"overflow-x: auto;":"",bi=e=>e.includes("y")?"overflow-y: auto;":"",ve=e=>{const t=e.scroll?`
17
+ ${yi(e.scroll)}
18
+ ${bi(e.scroll)}
19
+ `:"",i=F("visibility",e.visibility),o=F("display",e.display),r=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
+ ${t}
21
+ ${i}
22
+ ${o}
23
+ ${r}
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 t=F("color",e.color),i=F("font-family",e.fontFamily),o=F("font-size",e.fontSize),r=F("font-weight",e.fontWeight),a=F("line-spacing",e.letterSpacing),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
+ ${t}
42
+ ${i}
43
+ ${o}
44
+ ${r}
45
+ ${a}
46
+ ${l}
47
+ ${s}
48
+ ${c}
49
+ ${d}
50
+ ${p}
51
+ ${g}
52
+ ${x}
53
+ `},ke=e=>{const t=F("cursor",e.cursor),i=F("border-color",e.borderColorHover),o=F("background-color",e.bgColorHover),r=F("box-shadow",e.shadowHover===void 0?void 0:N.shadows[e.shadowHover]),a=F("transition",e.transition);return`
54
+ ${t}
55
+
56
+ &:hover {
57
+ ${a||"transition: all 0.2s;"}
58
+ ${i}
59
+ ${o}
60
+ ${r}
61
+ }
62
+ `},Ce={shouldForwardProp:e=>!Rt.includes(e)},Se=y.styled.div.withConfig(Ce)`
63
+ ${be}
64
+ ${$e}
65
+ ${me}
66
+ ${ve}
67
+ ${je}
68
+ ${we}
69
+ ${ke}
70
+ `,nt=y.styled.button.withConfig(Ce)`
71
+ ${be}
72
+ ${$e}
73
+ ${me}
74
+ ${ve}
75
+ ${je}
76
+ ${we}
77
+ ${ke}
78
+ `,it=y.styled.p.withConfig(Ce)`
79
+ ${be}
80
+ ${$e}
81
+ ${me}
82
+ ${ve}
83
+ ${je}
84
+ ${we}
85
+ ${ke}
86
+ `,ot=y.styled.span.withConfig(Ce)`
87
+ ${be}
88
+ ${$e}
89
+ ${me}
90
+ ${ve}
91
+ ${je}
92
+ ${we}
93
+ ${ke}
94
+ `,$i=y.styled(Se)`
95
+ ${({theme:e,$center:t=!1,$styleMd:i,$styleSm:o})=>`
96
+ ${t?"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
+ ${i};
105
+ }
106
+
107
+ @media screen and (max-width: ${e.breakpoints.mobile}) {
108
+ ${o};
109
+ }
110
+ `}
111
+ `,m=u.forwardRef(function({as:t="div",center:i,children:o,id:r,onHover:a,onLeave:l,styleMd:s,styleSm:c,...d},p){return n.jsx($i,{$center:i,$styleMd:s,$styleSm:c,as:t,id:r,onMouseLeave:l,onMouseOver:a,ref:p,...d,children:o})}),mi=y.styled(it)`
112
+ ${({theme:e,$bgGradient:t="unset",$color:i=e.palette.gray[800],$display:o="block",$fontFamily:r=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: ${t};
114
+ color: ${i};
115
+ display: ${o};
116
+ font-family: ${r};
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: ${o==="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=y.styled(it)`
142
+ ${({theme:e,$bgGradient:t="unset",$color:i=e.palette.gray[600],$display:o="block",$fontFamily:r=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: ${t};
144
+ color: ${i};
145
+ display: ${o};
146
+ font-family: ${r};
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: ${o==="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
+ `,wi=y.styled(ot)`
173
+ ${({theme:e,$color:t=e.palette.gray[600],$content:i=void 0,$display:o="inline",$fontWeight:r="regular",$size:a,$lineSpacing:l=1.25})=>`
174
+ color: ${t};
175
+ display: ${o};
176
+ font-family: ${e.typography.type.primary};
177
+ font-size: ${e.typography.text[a]};
178
+ font-weight: ${e.typography.weight[r]};
179
+ line-height: ${e.spacing[l]};
180
+ max-width: 100%;
181
+ width: ${o==="block"?"100%":"auto"};
182
+
183
+ ${i===void 0?"":`&::after { content: "${i}"; }`}
184
+ `}
185
+ `,J=u.forwardRef(function({bgGradient:t,children:i,className:o,color:r,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 n.jsx(mi,{$bgGradient:t,$color:r,$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:o,ref:C,...v,children:i})}),he=u.forwardRef(function({children:t,color:i,content:o,display:r,fontFamily:a,fontWeight:l,letterSpacing:s,lineSpacing:c,lineSpacingSm:d,size:p,sizeMd:g,sizeSm:x,...h},b){return n.jsx(wi,{$color:i,$content:o,$display:r,$fontFamily:a,$fontWeight:l,$letterSpacing:s,$lineSpacing:c,$lineSpacingSm:d,$size:p,$sizeMd:g,$sizeSm:x,ref:b,...h,children:t})}),I=u.forwardRef(function({bgGradient:t,children:i,className:o,color:r,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 n.jsx(Dt,{$bgGradient:t,$color:r,$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:o,ref:j,...C,children:i})}),Nt=({item:e})=>{const t=e.description&&typeof e.description=="string"?n.jsx(I,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return n.jsxs(m,{display:"block",id:`panel-${e.title}`,padding:[.875,.875,.875,.875],children:[t,e.extraElement?n.jsx(m,{children:e.extraElement}):void 0]})},_e={xl:"24px",lg:"16px",md:"14px",sm:"12px",xs:"10px"},vi=e=>_e[e]?_e[e]:typeof e=="string"&&e.includes("px")?e:_e.md,ji=y.styled(ot)`
186
+ ${({$clickable:e,$color:t="inherit",$disabled:i=!1,$hoverColor:o,$rotation:r,$size:a,$secondaryColor:l})=>{const s=o?"":"brightness(50%)",c=o??"";return`
187
+ color: ${t};
188
+ cursor: ${e?"pointer":"inherit"};
189
+ font-size: ${vi(a)};
190
+ line-height: 0;
191
+ vertical-align: middle;
192
+ pointer-events: inherit;
193
+ opacity: ${i?"0.5":"1"};
194
+
195
+ > svg {
196
+ --fa-secondary-color: ${l};
197
+ transform: ${r===void 0?"":`rotate(${r}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
+ `;y.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:t,disabled:i,hoverColor:o,icon:r,iconClass:a="",iconColor:l,iconMask:s,iconSize:c,iconTransform:d,iconType:p="fa-solid",onClick:g,rotation:x,spanClass:h,secondaryColor:b,...w},$){return n.jsx(ji,{$clickable:t,$color:l,$disabled:i,$hoverColor:o,$rotation:x,$secondaryColor:b,$size:c,className:h,"data-testid":`${r}-icon`,onClick:g,ref:$,...w,children:n.jsx("i",{className:`${p} fa-${r} ${a}`,...s!==void 0?{"data-fa-mask":s}:{},...d!==void 0?{"data-fa-transform":d}:{}})},`${p}-${r}`)}),ki=u.forwardRef(function({aligned:t="end",items:i,bgColor:o},r){const a=y.useTheme(),[l,s]=u.useState(i.map(d=>d.expanded??!1)),c=u.useCallback(d=>p=>{p.preventDefault(),s(g=>g.map((x,h)=>h===d?!x:x))},[]);return n.jsx(m,{borderColor:a.palette.gray[200],borderTop:"1px solid",ref:r,children:i.map((d,p)=>{const g=l[p];return n.jsxs(m,{bgColor:o??a.palette.white,borderBottom:"1px solid",borderColor:a.palette.gray[200],children:[n.jsx(m,{"aria-controls":`panel-${d.title}`,"aria-expanded":g,"aria-label":d.title,as:"button",bgColor:o??a.palette.white,bgColorHover:a.palette.gray[100],cursor:"pointer",display:"flex",onClick:c(p),padding:[.875,.875,.875,.875],width:"100%",children:n.jsxs(m,{as:"summary",display:"flex",flexDirection:t==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[n.jsx(I,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:d.title}),n.jsx(D,{icon:g?"chevron-up":"chevron-down",iconColor:a.palette.gray[400],iconSize:"lg",iconType:"fa-light"})]})}),g&&n.jsx(Nt,{item:d})]},d.title)})})}),Ci=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:Si}=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
+ `})),zi=y.styled.div`
274
+ ${({theme:e,$variant:t})=>`
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
+ ${Si(e,t??"error")}
294
+ `}
295
+ `,Ti=y.styled.div`
296
+ padding-right: 4px;
297
+ width: 100%;
298
+ `,{getVariant:Ii}=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=y.styled(nt)`
373
+ ${({theme:e,justify:t,$variant:i,$notification:o,$icon:r})=>`
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: ${t??"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
+ ${i!=="link"?`--btn-padding-y: ${e.spacing[1]}`:""};
392
+ }
393
+
394
+ ${Ii(e,i??"primary")}
395
+
396
+ ${o?`
397
+ ::before {
398
+ content: "";
399
+ position: absolute;
400
+ top: 20%;
401
+ left: ${r?"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
+ `,Ei=y.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
+ `,Ri=y.styled(Ft)`
425
+ ${({theme:e,disabled:t,borderRadius:i="4px",px:o=.5,py:r=.5,$variant:a})=>`
426
+ --btn-spacing: ${i};
427
+ --btn-padding-x: ${e.spacing[o]};
428
+ --btn-padding-y: ${e.spacing[r]};
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
+ ${t?`color: ${e.palette.gray[300]};`:""}
438
+ }
439
+ `}
440
+ `,Di=y.styled(Se)``,Ni=y.styled.div`
441
+ ${({theme:e,$maxWidth:t="320px"})=>`
442
+ background-color: ${e.palette.gray[700]};
443
+ border-radius: 8px;
444
+ color: ${e.palette.white};
445
+ font-size: ${e.typography.text.xs};
446
+ max-width: ${t};
447
+ padding: ${e.spacing[.75]};
448
+ width: max-content;
449
+ z-index: 999999;
450
+ `}
451
+ `,U=({children:e,disabled:t=!1,display:i="inline-block",height:o,icon:r,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=y.useTheme(),[$,k]=u.useState(!1),{refs:v,floatingStyles:C,context:j}=f.useFloating({middleware:[f.flip({fallbackAxisSideDirection:"start"}),f.offset({mainAxis:10}),f.shift()],onOpenChange:k,open:$,placement:p,whileElementsMounted:f.autoUpdate}),z=f.useHover(j,{delay:{close:0,open:500},move:!1}),E=f.useFocus(j),T=f.useRole(j,{role:r?"label":"tooltip"}),{getReferenceProps:S,getFloatingProps:A}=f.useInteractions([z,E,T]);return t?n.jsx(u.StrictMode,{children:e}):n.jsxs(n.Fragment,{children:[n.jsx(Di,{...S(),display:i,height:o,id:s,ref:v.setReference,width:b,children:r?n.jsx(D,{clickable:!0,disabled:t,icon:r,iconColor:a,iconSize:l??"sm",iconType:$?"fa-solid":"fa-light"}):e}),$&&!h&&le.createPortal(n.jsxs(Ni,{...A(),$maxWidth:c,id:`floating-${s}`,ref:v.setFloating,style:C,children:[f.lodashExports.isEmpty(x)?void 0:n.jsx(I,{color:w.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:x}),f.lodashExports.isEmpty(g)?void 0:n.jsx(I,{color:w.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:g}),f.lodashExports.isEmpty(d)?void 0:d]}),document.getElementById("root")??document.body)]})},H=u.forwardRef(function({borderRadius:t,disabled:i,icon:o,iconColor:r,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=n.jsx(Ri,{$variant:k,"aria-disabled":i,"aria-label":c,borderRadius:t,disabled:i,id:c,justify:d,onClick:p,px:g,py:x,ref:C,type:h,value:$,...v,children:n.jsx(D,{clickable:!1,icon:o,iconColor:r,iconSize:a,iconTransform:l,iconType:s})}),E=(h+(k??"")+(c??o)).replace(/ /u,"_");return b===void 0?j:n.jsx(U,{id:`${E}-tooltip`,place:w,tip:b,children:j})}),Fi=u.forwardRef(function({autoHide:t=!1,children:i,closable:o=!1,iconEnabled:r=!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),t&&b()},s*1e3);return()=>{clearTimeout(w)}},[t,b,s,a]),u.useEffect(()=>{h(l)},[l,h]),n.jsx(m,{display:x?"block":"none",ref:g,role:"alert",...p,children:n.jsxs(zi,{$variant:c,id:d,children:[r?n.jsx(D,{clickable:!1,icon:Ci(c),iconSize:"lg",iconType:"fa-light"}):void 0,n.jsx(Ti,{children:i}),o?n.jsx(H,{height:"fit-content",icon:"close",iconSize:"lg",iconType:"fa-light",onClick:b,px:.125,py:.125,variant:"ghost"}):void 0]})})}),yt=y.styled.div`
452
+ ${({theme:e})=>`
453
+ align-items: center;
454
+ background-color: ${e.palette.gray[200]};
455
+ border-radius: 100%;
456
+ color: ${e.palette.gray[800]};
457
+ display: flex;
458
+ font-family: ${e.typography.type.primary};
459
+ font-size: ${e.typography.text.xs};
460
+ font-weight: 500;
461
+ line-height: 18px;
462
+ justify-content: center;
463
+ text-align: center;
464
+ width: ${e.spacing[1.25]};
465
+ height: ${e.spacing[1.25]};
466
+ `}
467
+ `,Ai=y.styled.div`
468
+ ul,
469
+ ol {
470
+ padding-top: 6px;
471
+ padding-bottom: 6px;
472
+ background-color: #fff;
473
+ position: absolute;
474
+ top: 40px;
475
+ right: 1px;
476
+ z-index: 1;
477
+ }
478
+
479
+ .no-hover,
480
+ .user-info {
481
+ text-decoration: none;
482
+ display: flex;
483
+ justify-content: space-between;
484
+ height: auto;
485
+ }
486
+
487
+ .user-info,
488
+ .commit-info {
489
+ padding-left: 16px;
490
+ padding-right: 16px;
491
+ }
492
+
493
+ .user-info {
494
+ padding-top: 10px;
495
+ padding-bottom: 1px;
496
+ }
497
+
498
+ .commit-info {
499
+ padding-top: 1px;
500
+ padding-bottom: 10px;
501
+ }
502
+
503
+ li {
504
+ list-style-type: none;
505
+ }
506
+
507
+ span {
508
+ white-space: nowrap;
509
+ }
510
+
511
+ a {
512
+ color: ${({theme:e})=>e.palette.gray[800]};
513
+ text-decoration: none;
514
+ padding: unset;
515
+ }
516
+
517
+ a:hover {
518
+ text-decoration: none;
519
+ color: ${({theme:e})=>e.palette.gray[800]};
520
+ }
521
+
522
+ #menu-profile-container ul {
523
+ min-width: unset;
524
+ width: auto;
525
+ z-index: 10;
526
+ }
527
+
528
+ #menu-profile-container li div {
529
+ min-width: unset;
530
+ }
531
+ `,{getVariant:Li}=X(e=>({default:`
532
+ background-color: ${e.palette.gray[200]};
533
+ color: ${e.palette.gray[800]};
534
+ `,error:`
535
+ &.high {
536
+ background-color: ${e.palette.error[700]};
537
+ color: ${e.palette.white};
538
+ }
539
+ &.low {
540
+ background-color: ${e.palette.error[50]};
541
+ color: ${e.palette.error[700]};
542
+ }
543
+ &.medium {
544
+ background-color: ${e.palette.error[500]};
545
+ color: ${e.palette.error[50]};
546
+ }
547
+ `,inactive:`
548
+ background-color: ${e.palette.gray[200]};
549
+ color: ${e.palette.gray[600]};
550
+ `,info:`
551
+ &.high {
552
+ background-color: ${e.palette.info[700]};
553
+ color: ${e.palette.white};
554
+ }
555
+ &.low {
556
+ background-color: ${e.palette.info[50]};
557
+ color: ${e.palette.info[700]};
558
+ }
559
+ &.medium {
560
+ background-color: ${e.palette.info[500]};
561
+ color: ${e.palette.info[50]};
562
+ }
563
+ `,reachable:`
564
+ background-color: ${e.palette.gray[50]};
565
+ color: ${e.palette.gray[800]};
566
+ `,remediation:`
567
+ background-color: inherit;
568
+ border: 1px solid ${e.palette.gray[300]};
569
+ color: ${e.palette.gray[400]};
570
+ `,role:`
571
+ background-color: ${e.palette.gray[800]};
572
+ color: ${e.palette.white};
573
+ `,success:`
574
+ &.high {
575
+ background-color: ${e.palette.success[700]};
576
+ color: ${e.palette.white};
577
+ }
578
+ &.low {
579
+ background-color: ${e.palette.success[50]};
580
+ color: ${e.palette.success[700]};
581
+ }
582
+ &.medium {
583
+ background-color: ${e.palette.success[500]};
584
+ color: ${e.palette.success[50]};
585
+ }
586
+ `,technique:`
587
+ --tag-padding-y: ${e.spacing[.25]};
588
+ --tag-padding-x: ${e.spacing[.75]};
589
+
590
+ background-color: inherit;
591
+ border: 1px solid ${e.palette.success[800]};
592
+ color: ${e.palette.success[800]};
593
+ `,warning:`
594
+ &.high {
595
+ background-color: ${e.palette.warning[600]};
596
+ color: ${e.palette.white};
597
+ }
598
+ &.low {
599
+ background-color: ${e.palette.warning[50]};
600
+ color: ${e.palette.warning[700]};
601
+ }
602
+ &.medium {
603
+ background-color: ${e.palette.warning[400]};
604
+ color: ${e.palette.warning[700]};
605
+ }
606
+ `})),Pi=y.styled.span`
607
+ ${({theme:e,$fontSize:t=e.typography.text.xs,$variant:i})=>`
608
+ align-items: center;
609
+ border-radius: ${e.spacing[i==="technique"?1:.25]};
610
+ display: inline-flex;
611
+ gap: ${e.spacing[.25]};
612
+ font-family: ${e.typography.type.primary};
613
+ font-size: ${t};
614
+ font-style: normal;
615
+ font-weight: ${e.typography.weight.regular};
616
+ justify-content: center;
617
+ line-height: 18px;
618
+ padding: var(--tag-padding-y) var(--tag-padding-x);
619
+ white-space: nowrap;
620
+ width: max-content;
621
+
622
+ ~ a {
623
+ font-size: ${e.typography.text.xs};
624
+ display: flex;
625
+ }
626
+
627
+ ${Li(e,i)}
628
+ `}
629
+ `,{getVariant:Oi}=X(e=>({highRelevance:`
630
+ color: ${e.palette.primary[500]};
631
+
632
+ &:hover:not([disabled]) {
633
+ color: ${e.palette.primary[400]};
634
+ }
635
+ `,lowRelevance:`
636
+ color: ${e.palette.gray[800]};
637
+
638
+ &:hover:not([disabled]) {
639
+ color: ${e.palette.gray[500]};
640
+ }
641
+ `})),At=y.css`
642
+ ${({theme:e,$color:t,$variant:i,$wrap:o})=>`
643
+ align-items: center;
644
+ cursor: pointer;
645
+ font-family: ${e.typography.type.primary};
646
+ font-size: ${e.typography.text.sm};
647
+ font-weight: ${e.typography.weight.regular};
648
+ gap: ${e.spacing[.25]};
649
+ line-height: ${e.spacing[1.25]};
650
+ text-decoration: underline;
651
+ ${o?`
652
+ word-break: normal;
653
+ word-wrap: normal;
654
+ `:`
655
+ word-break: break-word;
656
+ word-wrap: break-word;
657
+ `}
658
+
659
+ &:disabled {
660
+ color: ${e.palette.gray[300]};
661
+ cursor: not-allowed;
662
+ }
663
+
664
+ &:has(button) {
665
+ text-decoration: none;
666
+ }
667
+
668
+ ${t?`color: ${t}`:Oi(e,i)}
669
+ `}
670
+ `,Mi=y.styled.a`
671
+ ${At}
672
+ `,Hi=y.styled(Ue.Link)`
673
+ ${At}
674
+ `,Q=({children:e,color:t,download:i,href:o,iconPosition:r="right",onClick:a,target:l,variant:s="lowRelevance",wrap:c=!1})=>{const d=o.startsWith("https://"),p=n.jsx(D,{icon:i===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"sm",iconType:"fa-light",ml:.25,mr:.25});return d?n.jsxs(Mi,{$color:t,$variant:s,$wrap:c,download:i,href:o,onClick:a,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):n.jsxs(Hi,{$variant:s,$wrap:c,download:i,onClick:a,rel:"nofollow noopener noreferrer",target:l,to:o,children:[l!==void 0&&r==="left"?p:void 0,e,l!==void 0&&r==="right"?p:void 0]})},Y=({disabled:e,icon:t,iconColor:i="inherit",iconType:o="fa-light",id:r="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&&f.lodashExports.isEmpty(g+a),w=`${x.slice(0,25)}...`;return n.jsxs(he,{className:"gap-0.5",display:s===void 0?"initial":"flex",size:"sm",children:[n.jsxs(Pi,{$fontSize:l,$variant:h,className:p,children:[t&&n.jsx(D,{icon:t,iconColor:i,iconSize:"sm",iconType:o}),n.jsxs("span",{className:"w-full",children:[n.jsx("strong",{children:g}),n.jsx("span",{children:b?w:x}),n.jsx("strong",{className:"w-full",children:a})]}),d?n.jsx(H,{disabled:e,icon:"xmark",iconSize:"sm",iconType:"fa-light",id:r,onClick:d,px:.125,py:.125,variant:"ghost"}):void 0]}),s===void 0?void 0:n.jsx(Q,{href:s,children:c})]})},Lt=(e,t=!0)=>{const i=window.open(e,t?void 0:"_self","noopener,noreferrer,");f.lodashExports.isObject(i)&&(i.opener=null)},O=u.forwardRef(function({children:t,disabled:i=!1,external:o=!1,href:r,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,...E},T){const S=$!==void 0,A=`${a}-tooltip`,R=u.useCallback(()=>{r&&Lt(r,o)},[o,r]),L=n.jsxs(Ft,{$icon:l!==void 0,$notification:p&&j==="ghost"&&!i,$variant:j,"aria-disabled":i,className:v?"underline":void 0,disabled:i,id:a,name:d,onClick:j==="link"?R:x,ref:T,type:w,value:C,width:z,...S?{"data-tooltip-id":A}:{},...E,children:[l!==void 0&&n.jsx(D,{icon:l,iconColor:s??void 0,iconSize:"lg",iconType:c??"fa-light"}),t,h||j==="link"?n.jsx(D,{icon:h??"arrow-right",iconSize:"lg",iconType:"fa-light"}):void 0,b===void 0||i?null:n.jsx(Y,{tagLabel:b,variant:"default"}),g!==void 0&&j==="ghost"&&!i?n.jsx(Ei,{children:g}):void 0]});return S?n.jsx(U,{disabled:!S,id:A,place:k,tip:$,width:z,children:L}):L}),Wi=u.forwardRef(function({children:t,onClick:i,userName:o,showIcon:r=!1,showUsername:a=!1},l){const s=!!i;return n.jsx(m,{id:"navbar-user-profile",ref:l,zIndex:9999,children:n.jsxs(m,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[s?n.jsxs(O,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[n.jsx(yt,{children:o[0].toUpperCase()}),a?n.jsx(I,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:o.split(" ")[0]}):void 0,r?n.jsx(D,{clickable:!1,icon:"ellipsis-v",iconSize:"xs",ml:.5}):void 0]}):n.jsxs(m,{alignItems:"center",display:"flex",px:.5,py:.5,children:[n.jsx(yt,{children:o[0].toUpperCase()}),a?n.jsxs(I,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",o.split(" ")[0],"!"]}):void 0,r?n.jsx(D,{clickable:!1,icon:"ellipsis-v",iconSize:"xs",ml:.5}):void 0]}),n.jsx(Ai,{children:t})]})})}),Fe=({authorEmail:e,date:t,description:i,descriptionColor:o,id:r,title:a,titleColor:l,textAlign:s,textSpacing:c=0,tooltip:d})=>{const p=y.useTheme();return n.jsxs(m,{width:"100%",children:[typeof a=="string"||d?n.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.5,width:"100%",children:[typeof a=="string"?n.jsx(I,{color:l??p.palette.gray[800],fontWeight:"bold",mb:c,size:"sm",textAlign:s,wordBreak:"break-word",children:a}):a,d&&n.jsx(U,{icon:"circle-info",id:r,place:"top",tip:d})]}):void 0,n.jsxs(m,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&n.jsx(I,{color:o??p.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:s,wordBreak:"break-word",children:i}),t&&n.jsx(I,{color:p.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Date: ${t.split(" ")[0]}`}),e&&n.jsx(I,{color:p.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Author: ${e}`})]})]})},bt=y.styled(m).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
675
+ & img {
676
+ display: block;
677
+ }
678
+
679
+ &::after {
680
+ content: "";
681
+ position: absolute;
682
+ top: 0;
683
+ left: 0;
684
+ width: 100%;
685
+ height: 100%;
686
+ pointer-events: none;
687
+ ${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
688
+ }
689
+ `,Bi=e=>{if(f._.isNil(e))return"";const t=e.split(".");return(t.length>1?f._.last(t):"").toLowerCase()},_i=(e,t)=>f._.isUndefined(t)?!1:f._.includes(e,Bi(t)),Pt=({alt:e,fileType:t,width:i="100%",opacity:o=0,src:r,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 t==="video"||_i(["webm"],r)?n.jsx(bt,{$opacity:o,children:n.jsx(Q,{href:r,iconPosition:"hidden",children:n.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:d,style:{height:a,width:i},children:[n.jsx("source",{src:r,type:"video/webm"}),r]})})}):n.jsx(bt,{$opacity:o,children:n.jsx("img",{alt:e,src:r,style:{height:a,width:i}})})},Vi=({alt:e,authorEmail:t,date:i,description:o,src:r,children:a,isEditing:l,onClick:s,title:c,hideDescription:d=!1,headerType:p="image",showMaximize:g=!0,videoViewStatus:x})=>{const h=y.useTheme(),[b,w]=u.useState(!1),$=u.useCallback(()=>{w(!0)},[]),k=u.useCallback(()=>{w(!1)},[]);return n.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:[n.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?n.jsxs(tt.default.Fragment,{children:[n.jsx(Pt,{alt:e,fileType:p,height:"147px",opacity:b?.3:0,src:r,videoViewStatus:x,width:"100%"}),g?n.jsx(m,{bottom:"10px",position:"absolute",right:"10px",children:n.jsx(H,{color:"white",icon:"arrows-maximize",iconSize:"sm",iconType:"fa-light",variant:"secondary"})}):void 0]}):a}),d?null:n.jsx(Fe,{authorEmail:t,date:i,description:o,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:c})]})},Ui=y.styled.div`
690
+ ${({theme:e,$align:t="center",$minWidth:i="auto",$minHeight:o="auto"})=>`
691
+ display: flex;
692
+ background-color: ${e.palette.white};
693
+ border-radius: ${e.spacing[.25]};
694
+ border: 1px solid ${e.palette.gray[200]};
695
+ flex-direction: column;
696
+ justify-content: center;
697
+ gap: ${e.spacing[.5]};
698
+ min-width: ${i};
699
+ min-height: ${o};
700
+ padding: ${e.spacing[1]};
701
+
702
+ input {
703
+ color: ${e.palette.gray[800]};
704
+ line-height: ${e.spacing[1.5]};
705
+ text-align: ${t};
706
+ }
707
+ `}
708
+ `,rt=({htmlFor:e,label:t,link:i,required:o,tooltip:r,weight:a="normal"})=>{const l=y.useTheme(),s=`${e}-tooltip`,c=r!==void 0&&!f.lodashExports.isEmpty(r);return n.jsxs("label",{className:"flex gap-1 w-full",htmlFor:e,style:{fontWeight:l.typography.weight[a]},children:[t,o&&n.jsx(D,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xs",spanClass:"required-icon"}),c?n.jsx(U,{display:"inline-flex",icon:"circle-info",id:s,place:"top",tip:r}):null,i?n.jsx(Q,{href:i,target:"_blank"}):null]})},Gi=y.styled.div`
709
+ ${({theme:e})=>`
710
+ align-items: flex-start;
711
+ display: inline-flex;
712
+ flex-direction: column;
713
+ gap: ${e.spacing[.25]};
714
+ position: relative;
715
+ width: 100%;
716
+
717
+ label {
718
+ color: ${e.palette.gray[800]};
719
+
720
+ > *:not(.required-icon) {
721
+ align-items: center;
722
+ display: flex;
723
+
724
+ span {
725
+ margin: 0;
726
+ }
727
+ }
728
+ }
729
+
730
+ &:has(input.date-input) {
731
+ div {
732
+ padding-right: 0;
733
+ }
734
+ }
735
+
736
+ &:has(input[type="file"]) {
737
+ div {
738
+ border-right: unset;
739
+ padding-right: 0;
740
+
741
+ &:hover, &:focus-within {
742
+ border-right: unset;
743
+ }
744
+ }
745
+ }
746
+
747
+ > *:not(.error-msg) {
748
+ font-family: ${e.typography.type.primary};
749
+ font-size: ${e.typography.text.sm};
750
+ font-style: normal;
751
+ font-weight: ${e.typography.weight.regular};
752
+ line-height: ${e.spacing[1.25]};
753
+ }
754
+ `}
755
+ `,ie=y.styled.div`
756
+ ${({theme:e,$overflowX:t})=>`
757
+ align-items: center;
758
+ display: flex;
759
+ border-radius: ${e.spacing[.5]};
760
+ border: 1px solid;
761
+ border-color: ${e.palette.gray[300]};
762
+ color: ${e.palette.gray[600]};
763
+ gap: ${e.spacing[.625]};
764
+ justify-content: space-between;
765
+ height: 40px;
766
+ overflow-x: ${t??"unset"};
767
+ padding: ${t===void 0?`${e.spacing[.625]} ${e.spacing[.75]}`:`${e.spacing[.25]} ${e.spacing[.75]}`};
768
+ width: 100%;
769
+ white-space: nowrap;
770
+
771
+ input, textarea {
772
+ background: inherit;
773
+ color: ${e.palette.gray[800]};
774
+ cursor: inherit;
775
+ outline: none;
776
+ resize: none;
777
+ width: 100%;
778
+
779
+ &::placeholder {
780
+ color: ${e.palette.gray[400]};
781
+ }
782
+
783
+ &:focus-visible {
784
+ outline: none;
785
+ }
786
+
787
+ &[type="number"] {
788
+ appearance: textfield;
789
+ }
790
+
791
+ &::-webkit-outer-spin-button,
792
+ &::-webkit-inner-spin-button {
793
+ appearance: none;
794
+ margin: 0;
795
+ }
796
+
797
+ &::-webkit-calendar-picker-indicator {
798
+ display: none !important;
799
+ }
800
+ }
801
+
802
+ input.date-input {
803
+ display: none;
804
+ width: 0;
805
+ }
806
+
807
+ &:has(textarea) {
808
+ align-items: start;
809
+ height: auto;
810
+ }
811
+
812
+ &:has(input[type="number"]) {
813
+ padding-right: 0;
814
+ }
815
+
816
+ textarea {
817
+ min-height: ${e.spacing[6]};
818
+ }
819
+
820
+ span:not(.action) {
821
+ font-size: 14px;
822
+ }
823
+
824
+ &.disabled {
825
+ background: ${e.palette.gray[100]};
826
+ border-color: ${e.palette.gray[300]};
827
+ cursor: not-allowed;
828
+
829
+ > * {
830
+ color: ${e.palette.gray[500]};
831
+ }
832
+ }
833
+
834
+ &.error:not(.disabled) {
835
+ border: 1px solid ${e.palette.error[500]};
836
+ }
837
+
838
+ &.success:not(.disabled) {
839
+ border: 1px solid ${e.palette.success[500]};
840
+ }
841
+
842
+ &:focus-within:not(.disabled, .error) {
843
+ background: ${e.palette.white};
844
+ border: 2px solid ${e.palette.black};
845
+
846
+ button.action-btn {
847
+ height: 36px;
848
+ width: 40px;
849
+ }
850
+
851
+ * > .success-icon {
852
+ display: none;
853
+ }
854
+ }
855
+
856
+ &:hover:not(:focus-within, .disabled, .error, .success) {
857
+ background: ${e.palette.white};
858
+ border: 1px solid ${e.palette.gray[600]};
859
+ }
860
+ `}
861
+ `,Yi=y.styled.div`
862
+ ${({theme:e,$show:t})=>`
863
+ align-items: center;
864
+ align-self: stretch;
865
+ color: ${e.palette.error[500]};
866
+ display: ${t?"flex":"none"};
867
+ font-family: ${e.typography.type.primary};
868
+ font-size: ${e.typography.text.xs};
869
+ font-weight: ${e.typography.weight.regular};
870
+ gap: 4px;
871
+ line-height: 18px;
872
+ text-align: left;
873
+ `}
874
+ `,V=({children:e,disabled:t,id:i,error:o,helpLink:r,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=y.useTheme(),$=h?h.length:0;return n.jsxs(Gi,{id:i,children:[c===void 0?void 0:n.jsx(rt,{htmlFor:s,label:c,link:d==="up"?r:void 0,required:g,tooltip:x,weight:b}),e,o||p?n.jsxs(m,{display:"flex",justify:o===void 0?"end":"space-between",width:"100%",children:[o&&n.jsx(I,{className:"error-msg",color:w.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:o}),p&&n.jsx(Y,{priority:"low",tagLabel:`${$}/${p}`,variant:t?"inactive":"error"})]}):void 0,l||r?n.jsxs(m,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[l&&n.jsxs(n.Fragment,{children:[n.jsx(D,{icon:"circle-info",iconColor:w.palette.gray[400],iconSize:"sm",iconType:"fa-light"}),n.jsx(I,{color:w.palette.gray[400],display:"inline-block",size:"sm",children:l})]}),r&&d==="down"?n.jsx(Q,{href:r,children:a}):void 0]}):void 0]})},ze=({className:e,children:t,isFilter:i=!1,popoverRef:o,state:r,triggerRef:a,...l})=>{var x;const s=y.useTheme(),c=u.useRef(null),d=(x=a==null?void 0:a.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:p}=f.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:o??c,triggerRef:a,isNonModal:o?!0:void 0,shouldFlip:e==="dropdown"},r),g=u.useCallback(h=>{h.preventDefault()},[]);return n.jsx(f.$337b884510726a0d$export$c6fdb837b070b4ff,{children:n.jsx("div",{...p,className:e,id:"popover",onPointerDown:i?g:void 0,ref:o??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:t})})},Ki=y.styled.ul`
875
+ ${({theme:e,$multiSelection:t})=>`
876
+ align-self: center;
877
+ background: ${e.palette.white};
878
+ border: 1px solid ${e.palette.gray[200]};
879
+ border-radius: ${e.spacing[.25]};
880
+ box-shadow: ${e.shadows.md};
881
+ list-style: none;
882
+ max-height: 200px;
883
+ min-width: 240px;
884
+ overflow: hidden auto;
885
+ padding: ${e.spacing[.25]} 0;
886
+ scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
887
+ scroll-padding: ${e.spacing[.5]};
888
+ width: 95%;
889
+
890
+ > li:first-child {
891
+ border-bottom: ${t?`1px solid ${e.palette.gray[200]}`:"unset"};
892
+ }
893
+ `}
894
+ `,qi=y.styled.li`
895
+ ${({theme:e,$multiSelection:t})=>`
896
+ align-items: center;
897
+ color: ${e.palette.gray[800]};
898
+ cursor: pointer;
899
+ display: flex;
900
+ gap: ${e.spacing[.5]};
901
+ justify-content: space-between;
902
+ line-height: ${e.spacing[1.25]};
903
+ padding: ${t?`${e.spacing[.125]} ${e.spacing[.75]}`:`${e.spacing[.25]} ${e.spacing[1]}`};
904
+
905
+ a, p, label {
906
+ display: inline-flex;
907
+ overflow: hidden;
908
+ padding: ${t?e.spacing[.25]:"0"};
909
+ width: 100%;
910
+ }
911
+
912
+ > div {
913
+ width: 100%;
914
+ }
915
+
916
+ span {
917
+ color: ${e.palette.gray[700]};
918
+ }
919
+
920
+ &:hover:not(.disabled, .selected) {
921
+ background: ${e.palette.gray[100]};
922
+ }
923
+
924
+ &.selected {
925
+ background: ${t?"unset":e.palette.gray[200]};
926
+ }
927
+
928
+ &.disabled {
929
+ background: ${e.palette.gray[100]};
930
+ cursor: not-allowed;
931
+
932
+ p, span {
933
+ color: ${e.palette.gray[500]};
934
+ }
935
+ }
936
+ `}
937
+ `,Zi=y.styled.label`
938
+ ${({theme:e})=>`
939
+ align-items: center;
940
+ color: ${e.palette.gray[600]};
941
+ display: flex;
942
+ cursor: pointer;
943
+ font-family: ${e.typography.type.primary};
944
+ font-size: ${e.typography.text.sm};
945
+ font-weight: ${e.typography.weight.regular};
946
+ line-height: ${e.spacing[1]};
947
+ letter-spacing: 0;
948
+ position: relative;
949
+ text-align: left;
950
+
951
+ &[aria-disabled="true"] {
952
+ color: ${e.palette.gray[400]};
953
+ cursor: not-allowed;
954
+ }
955
+
956
+ input {
957
+ position: absolute;
958
+ opacity: 0;
959
+ cursor: pointer;
960
+ }
961
+
962
+ svg {
963
+ background-color: ${e.palette.white};
964
+ border-radius: ${e.spacing[.25]};
965
+ border: 1px solid ${e.palette.gray[600]};
966
+ top: 0;
967
+ left: 0;
968
+ height: ${e.spacing[.5]};
969
+ margin-right: ${e.spacing[.5]};
970
+ width: ${e.spacing[.5]};
971
+ padding: ${e.spacing[.25]};
972
+ }
973
+
974
+ svg > path {
975
+ fill: ${e.palette.white};
976
+ }
977
+
978
+ input:checked ~ span > svg {
979
+ background-color: ${e.palette.primary[500]};
980
+ border: 1px solid ${e.palette.primary[500]};
981
+ }
982
+
983
+ input:disabled ~ span > svg {
984
+ border: 1px solid ${e.palette.gray[300]};
985
+ cursor: not-allowed;
986
+ }
987
+
988
+ input:not(:disabled):hover ~ span > svg {
989
+ box-shadow: 0 0 0 4px ${e.palette.gray[100]};
990
+ }
991
+
992
+ input:checked:disabled ~ span > svg {
993
+ background-color: ${e.palette.gray[300]};
994
+ border: 1px solid ${e.palette.gray[300]};
995
+ }
996
+
997
+ input:not(:disabled):hover:checked ~ span > svg {
998
+ box-shadow: 0 0 0 4px ${e.palette.primary[50]};
999
+ }
1000
+
1001
+ input:checked ~ span > svg > path {
1002
+ fill: ${e.palette.white};
1003
+ }
1004
+
1005
+ input:checked:disabled ~ span > svg > path {
1006
+ fill: ${e.palette.white};
1007
+ }
1008
+ `}
1009
+ `,re=u.forwardRef(function({checked:t,disabled:i=!1,label:o,name:r,onChange:a,onClick:l,onFocus:s,onKeyDown:c,tooltip:d,value:p,...g},x){return n.jsxs("div",{className:"gap-1 inline-flex items-start",children:[n.jsxs(Zi,{"aria-disabled":i,children:[n.jsx("input",{"aria-checked":t,"aria-disabled":i,"aria-hidden":!1,"aria-label":r,checked:t,"data-testid":o??p,disabled:i,id:r,name:r,onChange:a,onClick:l,onFocus:s,onKeyDown:c,ref:x,type:"checkbox",value:p,...g}),n.jsx(D,{disabled:i,icon:"check",iconSize:"xl"}),o??p]}),d===void 0?void 0:n.jsx(U,{icon:"circle-info",id:d,place:"right",tip:d})]})}),ee=(e,t,i=!1,o)=>{u.useEffect(()=>{var a;const r=l=>{e&&!e.contains(l.target)&&!(o!=null&&o.contains(l.target))&&t()};return i?(document.addEventListener("mousedown",r,!0),()=>{document.removeEventListener("mousedown",r,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("mousedown",r,!0),()=>{var l;(l=document.getElementById("root"))==null||l.removeEventListener("mousedown",r,!0)})},[i,e,o,t])},Ot=({item:e,multiSelection:t,name:i,register:o,setInputValue:r,setValue:a,state:l,watch:s})=>{var T,S,A;const c=y.useTheme(),d=u.useRef(null),p=e.props.hrefLang,g=l.disabledKeys,x=Array.from(l.collection.getKeys()).filter(R=>!Array.from(g).includes(R)&&R!=="All"),{optionProps:h,isSelected:b,isFocused:w,isDisabled:$}=f.$293f70390ea03370$export$497855f14858aa34({key:e.key},l,d),k=[b?"selected":"",w?"focused":"",$?"disabled":""].join(" "),v=u.useCallback(R=>{r(""),a==null||a(`${i}Options`,""),R.currentTarget.checked&&(r(R.currentTarget.value),a==null||a(`${i}Options`,x))},[x,i,r,a]),C=u.useCallback(()=>{const R=s==null?void 0:s(`${i}Options`),L=typeof R=="string"?[R]:R;f.isEqual(x,L)&&!Array.from(g).includes("All")?(a==null||a("checkAll","All vulnerability types"),r("All vulnerability types")):(a==null||a("checkAll",""),r((L==null?void 0:L.length)<=2?L.join(", "):`${L.slice(0,2).join(", ")+`, +${L.length-2} more`}`))},[g,x,i,r,a,s]),j=e.key==="All"?n.jsx(re,{...o==null?void 0:o("checkAll",{onChange:v}),label:(T=e.rendered)==null?void 0:T.toString(),name:"checkAll",value:(S=e.rendered)==null?void 0:S.toString()}):n.jsx(re,{...o==null?void 0:o(`${i}Options`,{onChange:C}),label:(A=e.rendered)==null?void 0:A.toString(),name:`${i}Options`,value:e.key.toString()}),z=t&&!$?j:n.jsx(I,{color:c.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),E=u.useCallback(R=>{var L;R.preventDefault(),r(((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,r]);return ee(document.getElementsByClassName("dropdown")[0],()=>{t&&l.close()},!0,document.getElementById("combobox")),n.jsxs(qi,{...!t&&!p?h:{},$multiSelection:t,className:k,ref:d,children:[p?n.jsx(Q,{href:p,onClick:E,children:z}):z,b&&!$&&!t?n.jsx(D,{icon:"check",iconSize:"sm",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:n.jsx(Y,{tagLabel:e.textValue,variant:"inactive"})]})},Ge=({field:e,disabled:t=!1,disabledKeys:i,error:o,helpLink:r,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 E=y.useTheme(),T=t?void 0:o,S=(e==null?void 0:e.value)??C,[A,R]=u.useState(((ht=g.find(P=>P.value===S))==null?void 0:ht.name)??""),[L,K]=u.useState(S),[q,oe]=u.useState(g),[W,M]=u.useState(!1),{contains:Z}=f.$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(i??[]),pe=_.includes(P.value),ft=_.includes(B.value);return pe&&!ft?1:!pe&&ft?-1:0}).map(P=>Z(P.name,A)||W?n.jsx(f.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":P.value,hrefLang:P.href,textValue:P.tag,children:P.name},P.value):null),[Z,i,A,g,W]),qn=u.useCallback(P=>{const B=P.split(/,|\s/u).slice(-1)[0].trim();R(p?B:P),P===""||P.endsWith(",")?M(!0):(M(!1),K(_=>{const pe=P===""?"":_;return e&&e.onChange(pe),h&&h(P),pe}),oe(g.filter(_=>Z(_.name,p?B:P))))},[Z,g,e,p,h]),Zn=u.useCallback(P=>{var B;R(((B=g.find(_=>_.value===P))==null?void 0:B.name)??""),K(P?String(P):""),e&&e.onChange(P),h&&h(P?String(P):""),oe(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=f.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:p,allowsEmptyCollection:!0,disabledKeys:i,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:ei,listBoxProps:ti}=f.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:A,buttonRef:Me,id:d,inputRef:de,label:s??d,listBoxRef:He,name:d,placeholder:b,popoverRef:Be},G),{listBoxProps:ni}=f.$c132121280ec012d$export$50eacbbf140a3141(ti,G,He),{buttonProps:ii}=f.$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)??"";R(B),K(B)}},[S,g,c,p]),n.jsxs(V,{error:T,helpLink:r,helpLinkText:a,helpText:l,htmlFor:d,id:"combobox",label:s,required:$,tooltip:v,weight:z,children:[n.jsxs(ie,{className:`${t?"disabled":""} ${T?"error":""}`,ref:We,children:[n.jsx("input",{...ei,"aria-invalid":T?"true":"false","aria-label":d,disabled:t,onKeyDown:xt,ref:de}),T?n.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:E.palette.error[500],iconSize:"lg"}):void 0,n.jsx(H,{...ii,className:"action",disabled:t,icon:G.isOpen&&!t?"chevron-up":"chevron-down",iconColor:E.palette.gray[400],iconSize:"sm",iconType:"fa-light",px:.125,py:.125,ref:Me,type:"button",variant:"ghost"})]}),G.isOpen&&G.collection.size>0&&!t?n.jsx(ze,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:Be,state:G,triggerRef:We,children:n.jsx(Ki,{...ni,$multiSelection:p&&!Array.from(i??[]).includes("All"),ref:He,children:[...G.collection].map(P=>n.jsx(Ot,{item:P,multiSelection:p,name:d,register:w,setInputValue:R,setValue:k,state:G,watch:j},P.key))})}):null]})},at=({control:e,disabled:t=!1,disabledKeys:i,error:o,helpLink:r,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?n.jsx(f.Controller,{control:e,name:d,render:({field:E,fieldState:T})=>{var S;return n.jsx(Ge,{disabled:t,disabledKeys:i,error:(S=T.error)==null?void 0:S.message,field:E,helpLink:r,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:$}}):n.jsx(Ge,{disabled:t,disabledKeys:i,error:o,helpLink:r,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}),Xi=y.styled.div`
1010
+ ${({theme:e})=>`
1011
+ align-items: center;
1012
+ color: ${e.palette.gray[800]};
1013
+ display: flex;
1014
+ font-family: ${e.typography.type.primary};
1015
+ font-size: ${e.typography.text.sm};
1016
+ font-weight: ${e.typography.weight.bold};
1017
+ gap: ${e.spacing[.5]};
1018
+ height: 40px;
1019
+ justify-content: center;
1020
+ line-height: ${e.spacing[1.25]};
1021
+ text-align: center;
1022
+ padding: ${e.spacing[.5]} 0;
1023
+ width: 200px;
1024
+ word-spacing: ${e.spacing[.25]};
1025
+
1026
+ &:not(:hover) .year-selection {
1027
+ display: none;
1028
+ }
1029
+ `}
1030
+ `,Ji=y.styled.div.attrs({className:"year-selection"})`
1031
+ align-items: flex-start;
1032
+ display: flex;
1033
+ flex-direction: column;
1034
+ gap: 6px;
1035
+ height: 14px;
1036
+ justify-content: center;
1037
+ margin-bottom: 10px;
1038
+ padding: 0 0.5px;
1039
+ position: relative;
1040
+ width: 8px;
1041
+ `,$t=y.styled.tr`
1042
+ align-items: flex-start;
1043
+ display: flex;
1044
+ padding: ${({theme:e})=>e.spacing[.25]} 0;
1045
+ width: 100%;
1046
+ `,Mt=y.css`
1047
+ ${({theme:e})=>`
1048
+ align-items: center;
1049
+ color: ${e.palette.gray[800]};
1050
+ cursor: pointer;
1051
+ display: flex;
1052
+ flex-direction: column;
1053
+ font-family: ${e.typography.type.primary};
1054
+ font-size: ${e.typography.text.sm};
1055
+ font-weight: ${e.typography.weight.regular};
1056
+ height: ${e.spacing[2.5]};
1057
+ justify-content: center;
1058
+ line-height: ${e.spacing[1.25]};
1059
+ text-align: center;
1060
+ width: ${e.spacing[2.5]};
1061
+ `}
1062
+ `,Qi=y.styled.th`
1063
+ ${Mt}
1064
+ `,eo=y.styled.td`
1065
+ ${({theme:e})=>`
1066
+ ${Mt}
1067
+ height: ${e.spacing[2.5]};
1068
+ width: ${e.spacing[2.5]};
1069
+
1070
+ &#range {
1071
+ background: ${e.palette.primary[25]};
1072
+ }
1073
+
1074
+ div:not(.dot) {
1075
+ align-items: center;
1076
+ display: flex;
1077
+ flex-direction: column;
1078
+ font-size: ${e.typography.text.sm};
1079
+ justify-content: center;
1080
+ height: ${e.spacing[2.5]};
1081
+ line-height: ${e.spacing[1.25]};
1082
+ position: relative;
1083
+ text-align: center;
1084
+ width: ${e.spacing[2.5]};
1085
+
1086
+ &:focus-visible {
1087
+ outline: none;
1088
+ }
1089
+
1090
+ &:hover:not(.disabled, .selected, .range) {
1091
+ background: ${e.palette.gray[100]};
1092
+ }
1093
+
1094
+ &.disabled {
1095
+ color: ${e.palette.gray[400]};
1096
+ cursor: auto;
1097
+ }
1098
+
1099
+ &.selected {
1100
+ background: ${e.palette.primary[500]};
1101
+ color: ${e.palette.white};
1102
+ }
1103
+
1104
+ &.focused {
1105
+ border: 2px solid ${e.palette.primary[500]};
1106
+ }
1107
+
1108
+ &.today:not(.selected) {
1109
+ color: ${e.palette.primary[500]};
1110
+ font-weight: ${e.typography.weight.bold};
1111
+ }
1112
+ }
1113
+ `}
1114
+ `,to=y.styled.div.attrs({className:"dot"})`
1115
+ position: absolute;
1116
+ top: 48%;
1117
+
1118
+ > span {
1119
+ font-size: 4px;
1120
+ }
1121
+ `,mt=y.styled.button`
1122
+ cursor: pointer;
1123
+ display: flex;
1124
+
1125
+ > span {
1126
+ height: 3.5px;
1127
+ width: 7px;
1128
+ }
1129
+ `,st=y.styled.div`
1130
+ ${({theme:e})=>`
1131
+ align-items: end;
1132
+ border-top: 1px solid ${e.palette.gray[200]};
1133
+ display: flex;
1134
+ flex-direction: row-reverse;
1135
+ gap: ${e.spacing[.5]};
1136
+ height: 44px;
1137
+ margin-bottom: ${e.spacing[.25]};
1138
+ padding: 0 ${e.spacing[.25]};
1139
+ width: 100%;
1140
+ `}
1141
+ `,Ht=({state:e,date:t})=>{const i=u.useRef(null),o=f.$14e0f24ef4ac5c92$export$629b0a497aa65267(t,f.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:a,isSelected:l,isDisabled:s,formattedDate:c}=f.$36a0ac60f04457c5$export$136073280381448e({date:t},e,i),d="highlightedRange"in e&&!f.lodashExports.isNull(e.highlightedRange)?f.$14e0f24ef4ac5c92$export$ea39ec197993aef0(t,e.highlightedRange.start):l,p="highlightedRange"in e&&!f.lodashExports.isNull(e.highlightedRange)?f.$14e0f24ef4ac5c92$export$ea39ec197993aef0(t,e.highlightedRange.end):l,g=l&&!s&&!(d||p)?"range":"";return n.jsx(eo,{id:g,...r,children:n.jsxs("div",{...a,className:`cell ${d||p?"selected":""}
1142
+ ${s?"disabled":""} ${o?"today":""}
1143
+ ${!e.isFocused&&!o?"focused":""} ${g}`,ref:i,children:[c,o?n.jsx(to,{children:n.jsx(D,{clickable:!1,icon:"circle",iconSize:"sm"})}):void 0]})})},Ae=({state:e,...t})=>{const{locale:i}=f.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:o}=f.$e3031d1f8c9d64eb$export$cb95147730a423f5(t,e),r=f.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,i);return n.jsxs("table",{children:[n.jsx("thead",{children:n.jsx($t,{children:o.map((a,l)=>{const s=`key_${l}`;return n.jsx(Qi,{children:a},s)})})}),n.jsx("tbody",{children:[...new Array(r).keys()].map(a=>n.jsx($t,{children:e.getDatesInWeek(a).map((l,s)=>{const c=`key_${s}`;return l?n.jsx(Ht,{date:l,state:e},c):n.jsx("td",{},c)})},a))})]})},no=y.styled(nt)`
1144
+ align-items: center;
1145
+ background-color: inherit;
1146
+ border-color: inherit;
1147
+ display: flex;
1148
+ height: 38px;
1149
+ justify-content: center;
1150
+ width: 40px;
1151
+ margin: ${({$margin:e="0"})=>y.css`
1152
+ ${e}
1153
+ `};
1154
+
1155
+ &:disabled {
1156
+ cursor: not-allowed;
1157
+ }
1158
+
1159
+ &:hover:not(:disabled) {
1160
+ background-color: ${({theme:e})=>e.palette.gray[100]};
1161
+ cursor: pointer;
1162
+ }
1163
+ `,io=y.styled.div`
1164
+ ${({theme:e})=>`
1165
+ align-items: flex-start;
1166
+ background: ${e.palette.white};
1167
+ border: 1px solid ${e.palette.gray[200]};
1168
+ border-radius: ${e.spacing[.5]};
1169
+ box-shadow: ${e.shadows.md};
1170
+ display: inline-flex;
1171
+ flex-direction: column;
1172
+ gap: ${e.spacing[.25]};
1173
+ height: auto;
1174
+ padding: ${e.spacing[.25]};
1175
+ width: 292px;
1176
+ `}
1177
+ `,oo=y.styled.button`
1178
+ ${({theme:e,$disabled:t,$focus:i,$header:o})=>{const r=i?"34px":"40px";return`
1179
+ align-items: center;
1180
+ border-radius: ${o?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
1181
+ border-left: inherit;
1182
+ display: flex;
1183
+ height: ${o?"38px":r};
1184
+ justify-content: center;
1185
+ outline: none;
1186
+ width: ${o?"38px":"40px"};
1187
+
1188
+ &:hover {
1189
+ background-color: ${e.palette.gray[t?500:100]};
1190
+ }
1191
+ `}}
1192
+ `,ro=y.styled.div`
1193
+ ${({theme:e})=>`
1194
+ align-items: center;
1195
+ background: transparent;
1196
+ border-radius: ${e.spacing[.5]} 0 0 ${e.spacing[.5]};
1197
+ border-color: inherit;
1198
+ display: flex;
1199
+ height: 100%;
1200
+ justify-content: space-between;
1201
+ width: calc(100% - 40px);
1202
+ `}
1203
+ `,ao=y.styled.div`
1204
+ align-items: center;
1205
+ display: flex;
1206
+ justify-content: flex-end;
1207
+ gap: ${({theme:e})=>e.spacing[.5]};
1208
+ flex: 1 0 0;
1209
+ `,wt=y.styled.div`
1210
+ ${({theme:e})=>`
1211
+ align-items: center;
1212
+ align-self: stretch;
1213
+ background-color: ${e.palette.gray[200]};
1214
+ border-radius: ${e.spacing[.25]};
1215
+ display: flex;
1216
+ font-family: ${e.typography.type.primary};
1217
+ gap: ${e.spacing[.25]};
1218
+ line-height: ${e.spacing[1.5]};
1219
+ padding: 2px ${e.spacing[.25]};
1220
+ `}
1221
+ `,vt=y.styled.button`
1222
+ ${({theme:e})=>`
1223
+ align-items: center;
1224
+ background-color: inherit;
1225
+ border: 0.5px solid ${e.palette.gray[200]};
1226
+ border-radius: 7px;
1227
+ color: ${e.palette.gray[800]};
1228
+ cursor: pointer;
1229
+ display: flex;
1230
+ font-weight: ${e.typography.weight.regular};
1231
+ justify-content: center;
1232
+ gap: 10px;
1233
+ padding: 2px 10px;
1234
+
1235
+ &#active {
1236
+ background-color: ${e.palette.white};
1237
+ box-shadow: ${e.shadows.md};
1238
+ font-weight: ${e.typography.weight.bold};
1239
+ }
1240
+ `}
1241
+ `,Re=({disabled:e=!1,icon:t,props:i})=>{const o=u.useRef(null),{buttonProps:r}=f.$701a24aa0da5b062$export$ea18c227d4417cc3(i,o);return n.jsx(oo,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:t==="calendar"||t==="calendar-clock",disabled:e,ref:o,type:"button",children:n.jsx(D,{icon:t,iconColor:N.palette.gray[e?400:700],iconSize:"lg",iconType:"fa-light"})})},Le=({state:e,prevButtonProps:t,nextButtonProps:i,title:o})=>{const r=e.focusedDate,a=y.useTheme(),l=u.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),s=u.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return n.jsxs("div",{className:"header flex items-start",style:{position:"sticky",top:0,zIndex:2,background:a.palette.white},children:[n.jsx(Re,{icon:"chevron-left",props:t}),n.jsxs(Xi,{children:[o,n.jsxs(Ji,{children:[n.jsx(mt,{"aria-label":"top",onClick:l,children:n.jsx(D,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xs"})}),n.jsx(mt,{"aria-label":"bottom",onClick:s,children:n.jsx(D,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xs"})})]})]}),n.jsx(Re,{icon:"chevron-right",props:i})]})},Wt=({onClose:e,props:t})=>{const{locale:i}=f.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=f.$131cf43a05231e1e$export$6d095e787d2b5e1f({...t,createCalendar:f.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:a,title:l}=f.$9942cad8a072a530$export$3ee915f8151bd4f1(t,o);return n.jsxs("div",{className:"calendar",children:[n.jsx(Le,{nextButtonProps:a,prevButtonProps:r,state:o,title:l}),n.jsx(Ae,{state:o}),n.jsx(st,{children:n.jsx(O,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Bt=({segment:e,state:t})=>{const i=y.useTheme(),o=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}=f.$32489daedd52963e$export$1315d136e6f7581(a,t,o),s=i.palette.gray[a.isEditable?800:500];return n.jsx("div",{...a.type!=="literal"&&{...l,className:"segment-cell"},ref:o,style:a.type==="literal"?void 0:{color:a.isPlaceholder?i.palette.gray[400]:s},children:a.isPlaceholder?a.placeholder:a.text})},_t=({disabled:e,error:t=!1,props:i})=>{const o=y.useTheme(),r=u.useRef(null),a=f.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:f.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=f.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,a,r),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 n.jsxs(ro,{...l,onClick:s,children:[n.jsx("div",{className:"flex flex-row",style:{color:o.palette.gray[f.lodashExports.isNil(a.value)?400:800]},tabIndex:-1,children:a.segments.map((c,d)=>{const p=`key_${d}`;return n.jsx(Bt,{segment:{...c,isEditable:!e},state:a},p)})}),t?n.jsx(D,{icon:"exclamation-circle",iconColor:o.palette.error[500],iconSize:"lg"}):void 0]})},Vt=e=>{const t=u.useRef(null),i=f.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:o}=i,r=!f.lodashExports.isNil(o)&&o.hour<12?"AM":"PM",[a,l]=u.useState(f.lodashExports.isNil(o)?"AM":r),{fieldProps:s}=f.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,t),c=u.useCallback(d=>{const p=d.currentTarget.name;p!==a&&(f.lodashExports.isNil(o)||(p==="AM"?i.setSegment("dayPeriod",0):p==="PM"&&i.setSegment("dayPeriod",12))),l(p)},[a,i,o]);return n.jsxs(ao,{children:[n.jsx(wt,{...s,ref:t,children:i.segments.slice(0,-2).map((d,p)=>{const g=`key_${p}`;return n.jsx(Bt,{segment:d,state:i},g)})}),n.jsxs(wt,{children:[n.jsx(vt,{id:a==="AM"?"active":"",name:"AM",onClick:c,type:"button",children:"AM"}),n.jsx(vt,{id:a==="PM"?"active":"",name:"PM",onClick:c,type:"button",children:"PM"})]})]})},De=e=>e&&e!=="-"?f.dayjs(e).format("YYYY-MM-DD"):"-",so=e=>e&&e!=="-"?f.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",jt=(e,t)=>f.dayjs(String(e).replace(/-/gu,"/")).hour(t.hour).minute(t.minute).second(t.second).format("YYYY/MM/DD hh:mm A"),fe=({error:e,buttonProps:t,datePickerRef:i,disabled:o=!1,granularity:r="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=r==="day"?De(String(h)):so(String(h));a.onChange&&a.onChange(h??null),p&&p(s,b,{shouldDirty:!0})},[a,r,s,p]);return n.jsxs(ie,{...l,className:`${o?"disabled":""} ${e?"error":""}`,ref:i,children:[n.jsx(_t,{disabled:o,error:e!=null,props:{...a,autoFocus:!1,granularity:r,onChange:x,shouldForceLeadingZeros:!0}}),n.jsx(Re,{disabled:o,icon:r==="minute"?"calendar-clock":"calendar",props:t}),n.jsx("input",{...c==null?void 0:c(s,{required:d}),"aria-label":s,className:"date-input",disabled:o,id:s,name:s,type:"text",value:g??""})]})},Pe=({children:e,...t})=>{const i=u.useRef(null),{dialogProps:o}=f.$40df3f8667284809$export$d55e7ee900f34e93(t,i);return n.jsx(io,{...o,ref:i,children:e})},Ut=({disabled:e=!1,error:t,helpLink:i,helpLinkText:o,helpText:r,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]),$=f.$ab5bf3f618090389$export$87194bb378cc3ac2({...x,onChange(T){w(T)},...!f._.isNil(b)&&!f._.isEmpty(b)&&f.dayjs(b).isValid()?{defaultValue:f.$fae977aafc393c5c$export$6b862160d295c8e(b.replace(/\//gu,"-"))}:{}}),{close:k}=$,{groupProps:v,fieldProps:C,buttonProps:j,dialogProps:z,calendarProps:E}=f.$6057a3d2a53a12fd$export$42df105a73306d51({...x,"aria-label":l??s,name:s},$,h);return n.jsxs(V,{error:e?void 0:t,helpLink:i,helpLinkText:o,helpText:r,htmlFor:s,label:l,required:a,tooltip:p,children:[n.jsx(fe,{buttonProps:j,datePickerRef:h,disabled:e,error:t,fieldProps:C,groupProps:v,name:s,register:c,required:a,setValue:d,value:b}),$.isOpen&&!e?n.jsx(ze,{offset:8,placement:"bottom start",state:$,triggerRef:h,children:n.jsx(Pe,{...z,children:n.jsx(Wt,{onClose:k,props:E})})}):null]})},Gt=({onClose:e,props:t})=>{const{locale:i}=f.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=u.useRef(null),r=f.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...t,createCalendar:f.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:a,nextButtonProps:l,title:s}=f.$46a4342aab3d8076$export$87e0539f600c24e5(t,r,o);return n.jsxs("div",{className:"calendar-range",ref:o,children:[n.jsx(Le,{nextButtonProps:l,prevButtonProps:a,state:r,title:s}),n.jsx(Ae,{state:r}),n.jsx(st,{children:n.jsx(O,{onClick:e,variant:"ghost",children:"Cancel"})})]})},lo=y.styled.div`
1242
+ ${({theme:e,$disabled:t,$show:i})=>`
1243
+ border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
1244
+ display: flex;
1245
+ gap: ${e.spacing[.25]};
1246
+ width: 100%;
1247
+
1248
+ ~ div {
1249
+ background: ${t?e.palette.gray[200]:e.palette.white};
1250
+ }
1251
+ `}
1252
+ `,Yt=({disabled:e=!1,error:t,label:i,name:o,required:r,tooltip:a,register:l,setValue:s,propsMax:c,propsMin:d,variant:p="default",...g})=>{const x=`${o}Max`,h=`${o}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]),$=f.$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:E,calendarProps:T}=f.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...g,"aria-label":i??o},$,b);return n.jsxs(V,{error:e?void 0:t,htmlFor:o,label:i,required:r,tooltip:a,children:[n.jsxs(lo,{$disabled:e,$show:t!==void 0,ref:b,style:{flexDirection:p==="filters"?"column":"row"},children:[n.jsx(fe,{buttonProps:z,datePickerRef:b,disabled:e,error:t,fieldProps:{...C,"aria-label":`${C["aria-label"]} ${o}`,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}),n.jsx(fe,{buttonProps:z,datePickerRef:b,disabled:e,error:t,fieldProps:{...j,"aria-label":`${j["aria-label"]} ${o}`,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?n.jsx(ze,{offset:8,placement:"bottom start",state:$,triggerRef:b,children:n.jsx(Pe,{...E,children:n.jsx(Gt,{onClose:k,props:T})})}):null]})},co=y.styled.div`
1253
+ ${({theme:e})=>`
1254
+ align-items: center;
1255
+ border-top: 1px solid ${e.palette.gray[200]};
1256
+ display: flex;
1257
+ gap: ${e.spacing[1.5]};
1258
+ justify-content: center;
1259
+ padding: ${e.spacing[.5]} ${e.spacing[1.25]};
1260
+ `}
1261
+ `,po=y.styled.div`
1262
+ align-items: center;
1263
+ display: flex;
1264
+ gap: ${({theme:e})=>e.spacing[.5]};
1265
+ justify-content: flex-end;
1266
+ flex: 1 0 0;
1267
+ `,Kt=({handleTimeChange:e,onClose:t,props:i,timeState:o})=>{const r=y.useTheme(),{locale:a}=f.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=f.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:f.$64244302c3013299$export$dd0bbc9b26defe37,locale:a}),{prevButtonProps:s,nextButtonProps:c,title:d}=f.$9942cad8a072a530$export$3ee915f8151bd4f1(i,l);return n.jsxs("div",{className:"calendar",children:[n.jsx(Le,{nextButtonProps:c,prevButtonProps:s,state:l,title:d}),n.jsx(Ae,{state:l}),n.jsxs(co,{children:[n.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),n.jsx(po,{children:n.jsx(Vt,{hourCycle:12,label:"time-field",onChange:e,value:o.timeValue})})]}),n.jsx(st,{children:n.jsx(O,{onClick:t,variant:"ghost",children:"Cancel"})})]})},go=e=>{const{disabled:t=!1,error:i,required:o,label:r,name:a,tooltip:l,register:s,setValue:c,watch:d}=e,p=d==null?void 0:d(a),g=u.useRef(null),x=f.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:t,isRequired:o,shouldCloseOnSelect:!1,value:f._.isNil(p)||f._.isEmpty(p)||p==="-"||f.dayjs(p,"YYYY/MM/DD hh:mm A").isValid()===!1?null:f.$fae977aafc393c5c$export$588937bcd60ade55(f.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}=f.$6057a3d2a53a12fd$export$42df105a73306d51(e,x,g),C=u.useCallback(z=>{if(v.onChange&&v.onChange(z),x.timeValue){const E=jt(z,x.timeValue);c==null||c(a,E,{shouldDirty:!0})}else x.setDateValue(z)},[v,a,c,x]),j=u.useCallback(z=>{if(z){x.setTimeValue(z);const E=x.dateValue;if(E){const T=jt(E,z);c==null||c(a,T,{shouldDirty:!0})}}},[x,c,a]);return n.jsxs(V,{error:t?void 0:i,htmlFor:a,label:r,required:o,tooltip:l,children:[n.jsx(fe,{buttonProps:$,datePickerRef:g,disabled:t,error:i,fieldProps:w,granularity:"minute",groupProps:b,name:a,register:s,setValue:c,value:p}),x.isOpen&&!t?n.jsx(ze,{offset:8,placement:"bottom start",state:x,triggerRef:g,children:n.jsx(Pe,{...k,children:n.jsx(Kt,{handleTimeChange:j,onClose:h,props:{...v,onChange:C},timeState:x})})}):null]})},uo=({children:e,currentValue:t,externalLink:i,isEditing:o,label:r,name:a,tooltip:l})=>{if(o)return n.jsx("div",{children:e});const s=f.lodashExports.isNil(t)?"":t,c=String(i??s);return n.jsxs(m,{children:[n.jsx(rt,{htmlFor:a,label:r,tooltip:l,weight:"bold"}),c.startsWith("https://")?n.jsx(Q,{href:c,children:s}):n.jsx(I,{size:"md",children:s})]})},Oe=({disabled:e=!1,hasIcon:t=!1,helpLink:i,helpLinkText:o,helpText:r,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:E,onBlur:T,onChange:S}=z,A=y.useTheme(),R=e?void 0:a,[L,K]=u.useState(""),q=u.useCallback(M=>{K(M.target.value),S==null||S(M)},[S]),oe=c&&d&&!e&&L.trim()!=="",W=u.useCallback(M=>{M.key==="Enter"&&M.preventDefault()},[]);return n.jsxs(V,{error:R,helpLink:i,helpLinkText:o,helpText:r,htmlFor:g,label:p,required:E,tooltip:v,weight:j,children:[n.jsxs(ie,{className:`
1268
+ ${e?"disabled":""} ${R?"error":""} ${oe?"success":""}
1269
+ `,children:[t?n.jsx(D,{icon:"user",iconSize:"xl",iconType:"fa-light"}):void 0,n.jsx("input",{"aria-hidden":!1,"aria-invalid":R?"true":"false","aria-label":g,"aria-required":E,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:E,onBlur:T,onChange:q}):{...z,onChange:q}}),R?n.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:A.palette.error[500],iconSize:"lg"}):void 0,oe?n.jsx(D,{icon:"check-circle",iconClass:"success-icon",iconColor:A.palette.success[500],iconSize:"lg"}):void 0,l==="array"&&s>0?n.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?n.jsx("datalist",{id:`list_${g}`,children:k.map(M=>n.jsx("option",{value:M},M))}):void 0]})},xo=y.styled.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,ho=y.styled.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
1270
+ gap: 12px;
1271
+ `,fo=y.styled.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
1272
+ gap: 8px;
1273
+ `,Ee=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,yo=y.styled.div.attrs({className:"comp-col"})`
1274
+ word-wrap: break-word;
1275
+
1276
+ ${({$width:e=null})=>e===null?"":`width: ${e}`};
1277
+
1278
+ ${({$paddingTop:e})=>`padding-top: ${e??0}px;`}
1279
+
1280
+ @media (width <= 768px) {
1281
+ ${({$sm:e})=>Ee(e)}
1282
+ }
1283
+
1284
+ @media (width >= 768px) and (width <= 992px) {
1285
+ ${({$md:e})=>Ee(e)}
1286
+ }
1287
+
1288
+ @media (width >= 992px) {
1289
+ ${({$lg:e})=>Ee(e)}
1290
+ }
1291
+
1292
+ ${({$xl:e})=>f.isNumber(e)?`@media (min-width: 1200px) { ${Ee(e)} }`:""}
1293
+
1294
+ > .comp-card {
1295
+ height: 100%;
1296
+ }
1297
+ `,Ye=({children:e,xl:t,lg:i,md:o,sm:r,paddingTop:a,width:l})=>n.jsx(yo,{$lg:i,$md:o,$paddingTop:a,$sm:r,$width:l,$xl:t,children:e}),bo=y.styled.div.attrs({className:"comp-gap"})`
1298
+ ${({$disp:e="flex",$mh:t=4,$mv:i=4})=>`
1299
+ align-items: center;
1300
+ display: ${e};
1301
+ margin: ${-i}px ${-t}px;
1302
+
1303
+ > * {
1304
+ margin: ${i}px ${t}px;
1305
+ }
1306
+ `}
1307
+ `,$o=({children:e,disp:t,mh:i,mv:o})=>n.jsx(bo,{$disp:t,$mh:i,$mv:o,children:e}),mo=y.styled.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
1308
+ ${({$align:e="stretch",$cols:t=100,$colsPadding:i=6,$justify:o="start"})=>`
1309
+ align-items: ${e};
1310
+ justify-content: ${o};
1311
+ margin: -6px;
1312
+ text-align: ${o};
1313
+
1314
+ --cols: ${t};
1315
+
1316
+ > *:not(.comp-col) {
1317
+ width: 100%;
1318
+ margin: 6px;
1319
+ }
1320
+
1321
+ > .comp-col {
1322
+ padding: ${i}px;
1323
+ }
1324
+ `}
1325
+ `,qt=({align:e,children:t,cols:i,colsPadding:o,justify:r})=>n.jsx(mo,{$align:e,$cols:i,$colsPadding:o,$justify:r,children:t}),Ke=({addText:e,append:t,disabled:i=!1,fields:o,fieldState:r,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(()=>{t==null||t(a)},[t,a]),v=u.useCallback(j=>()=>{w==null||w(j)},[w]);return n.jsxs(qt,{align:"start",children:[n.jsx(Ye,{lg:75,md:75,sm:75,children:n.jsx(Oe,{disabled:i,error:r?(C=r.error)==null?void 0:C.message:void 0,id:"array",indexArray:l,isTouched:r?r.isTouched:void 0,isValid:r?!r.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===(o==null?void 0:o.length)?n.jsx(Ye,{lg:25,md:25,sm:25,children:n.jsx(O,{disabled:i,icon:"plus",onClick:k,variant:"ghost",width:"max-content",children:e??"Add"})}):void 0]})},wo=({addText:e,append:t,control:i,disabled:o,fields:r,initValue:a="",required:l,label:s,max:c=void 0,name:d="array-field",onChange:p,placeholder:g,remove:x,tooltip:h})=>i&&r?n.jsx(u.Fragment,{children:r.map((b,w)=>n.jsx(f.Controller,{control:i,name:`${d}.${w}`,render:({field:$,fieldState:k})=>n.jsx(Ke,{addText:e,append:t,disabled:o,fieldState:k,fields:r,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))}):n.jsx(Ke,{addText:e,disabled:o,initValue:a,label:s,max:c,name:d,onChange:p,placeholder:g,required:l,tooltip:h}),vo=y.styled(Dt)`
1326
+ white-space: nowrap;
1327
+ margin-right: ${({theme:e})=>e.spacing[.25]};
1328
+ text-overflow: ellipsis;
1329
+ overflow: hidden;
1330
+ max-width: 80%;
1331
+ `,jo=y.styled.input`
1332
+ opacity: 0;
1333
+ position: absolute;
1334
+ visibility: hidden;
1335
+ width: 0;
1336
+ `,ye=(e,t,i)=>{const o=new Event(e);return Object.defineProperty(o,"target",{value:{name:t,value:i}}),o},ko=e=>{const t=e;return t?Array.from(t).map(i=>i.name).join(", "):""},Co=({accept:e,disabled:t=!1,error:i,label:o,helpLink:r,helpText:a,id:l,multiple:s,name:c,onChange:d,required:p,register:g,setValue:x,tooltip:h,watch:b,weight:w})=>{const $=y.useTheme(),k=t?void 0:i,v=u.useRef(null),C=g==null?void 0:g(c,{required:p}),j=b==null?void 0:b(c),z=ko(j),E=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:R}=A.currentTarget,L=ye("change",c,R&&R.length>0?R:void 0);R&&R.length>0&&(d==null||d(L),x&&x(c,R),C&&C.onChange(L))},[C,c,d,x]),S=u.useCallback(A=>{t?A.preventDefault():v.current&&v.current.click()},[t]);return n.jsxs(V,{error:k,helpLink:r,helpText:a,htmlFor:l??c,label:o,required:p,tooltip:h,weight:w,children:[n.jsxs(ie,{className:`${t?"disabled":""} ${k?"error":""}`,children:[n.jsx(vo,{$size:"xs",children:z}),n.jsxs(m,{alignItems:"center",display:"flex",gap:.625,children:[f.lodashExports.isEmpty(z)||t?void 0:n.jsx(H,{color:$.palette.gray[400],height:"20px",icon:"xmark",iconSize:"64px",iconType:"fa-light",onClick:E,variant:"ghost",width:"20px"}),k&&n.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"lg"}),n.jsxs(O,{border:t?`1px solid ${$.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:t,height:"40px",onClick:S,variant:"primary",width:"96px",children:[n.jsx(D,{icon:"search",iconSize:"xl",mr:.5}),"Add file"]})]})]}),n.jsx(jo,{...C,accept:e,"aria-label":c,"data-testid":c,disabled:t,id:l??c,multiple:s,name:c,onChange:T,ref:v,type:"file"})]})},So=y.styled.input`
1337
+ border: none;
1338
+ background: transparent;
1339
+ min-width: 15rem;
1340
+ padding: 0;
1341
+ flex: 1;
1342
+ `,qe=({disabled:e=!1,error:t,field:i,helpLink:o,helpLinkText:r,helpText:a,label:l,name:s="input-tag",onChange:c,onRemove:d,placeholder:p,required:g,tooltip:x,value:h,weight:b})=>{const w=y.useTheme(),$=e?void 0:t,[k,v]=u.useState(""),C=c?h:i==null?void 0:i.value,j=u.useMemo(()=>C&&typeof C=="string"?C.split(",").filter(Boolean):[],[C]),z=u.useCallback(R=>{const K=[...new Set(R.filter(Boolean))].join(","),q=ye("change",s,K);i&&i.onChange(q),c&&c(q)},[i,s,c]),E=u.useCallback(R=>{v(R.target.value)},[]),T=u.useCallback(R=>{const L=k.trim();L.length&&!j.includes(L)&&(R.preventDefault(),z([...j,L]),v("")),i&&i.onBlur()},[k,i,z,j]),S=u.useCallback(R=>{const L=k.trim();R.key==="Enter"&&L.length===0&&R.preventDefault(),["Enter",","].includes(R.key)&&L.length>0&&!j.includes(L)?(R.preventDefault(),z([...j,L]),v("")):R.key==="Backspace"&&!L.length&&j.length&&(R.preventDefault(),d==null||d(j[j.length-1]),z(j.slice(0,-1)))},[k,d,z,j]),A=u.useCallback(R=>()=>{d==null||d(R),z(j.filter(L=>L!==R))},[d,z,j]);return n.jsx(V,{error:$,helpLink:o,helpLinkText:r,helpText:a,htmlFor:s,label:l,required:g,tooltip:x,weight:b,children:n.jsxs(ie,{$overflowX:"auto",className:`${e?"disabled":""} ${$?"error":""}`,children:[j.map(R=>n.jsx(Y,{disabled:e,onClose:A(R),tagLabel:R},R)),n.jsx(So,{"aria-hidden":!1,"aria-invalid":$?"true":"false","aria-label":s,"aria-required":g,autoComplete:"off",disabled:e,id:s,onBlur:T,onChange:E,onKeyDown:S,placeholder:j.length===0?p:void 0,ref:i==null?void 0:i.ref,type:"text",value:k}),$?n.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"lg"}):void 0]})})},zo=({disabled:e=!1,control:t,error:i,helpLink:o,helpLinkText:r,helpText:a,label:l,name:s="input-tag",onChange:c,onRemove:d,placeholder:p,required:g,tooltip:x,value:h,weight:b})=>t?n.jsx(f.Controller,{control:t,name:s,render:({field:w})=>n.jsx(qe,{disabled:e,error:i,field:w,helpLink:o,helpLinkText:r,helpText:a,label:l,name:s,onRemove:d,placeholder:p,required:g,tooltip:x,weight:b}),rules:{required:g}}):n.jsx(qe,{disabled:e,error:i,helpLink:o,helpLinkText:r,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:t,icon:i,margin:o,onClick:r,...a},l){return n.jsx(no,{$margin:o,"aria-label":i,className:"action-btn",disabled:t,onClick:r,ref:l,type:"button",...a,children:n.jsx(D,{icon:i,iconClass:"action",iconSize:"lg",iconType:"fa-light"})})}),Ne=({error:e,decimalPlaces:t=0,disabled:i=!1,id:o,maxLength:r,max:a=1/0,min:l=0,name:s,onChange:c,placeholder:d,register:p,required:g,setValue:x,value:h})=>{const b=y.useTheme(),w=i?void 0:e,$=t<0?0:t,[k,v]=u.useState(h?f._.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)&&!f._.isEmpty(S);x&&x(s,A?S:void 0),c&&c(T),v(Number(S))},[s,c,x]),E=u.useCallback(T=>{T.key==="Enter"&&T.preventDefault()},[]);return n.jsxs(ie,{className:`${i?"disabled":""} ${w?"error":""}`,children:[n.jsx("input",{"aria-hidden":!1,"aria-invalid":w?"true":"false","aria-label":s,"aria-required":g,autoComplete:"off",disabled:i,id:o??s,max:a,min:l,onChange:z,onKeyDown:E,placeholder:d,required:g,step:10**-$,type:"number",value:k,...p==null?void 0:p(s,{maxLength:r,max:a,min:l,onChange:z,value:h,valueAsNumber:!0})}),w&&n.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"lg"}),n.jsx(Ze,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:C,px:.75,py:.75}),n.jsx(Ze,{borderRadius:`0 ${b.spacing[.5]} ${b.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:j,px:.75,py:.75})]})},Zt=({decimalPlaces:e,disabled:t=!1,error:i,helpLink:o,helpLinkText:r,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})=>n.jsx(V,{error:t?void 0:i,helpLink:o,helpLinkText:r,helpText:a,htmlFor:x,label:s,linkPosition:c,maxLength:d,required:$,tooltip:v,weight:z,children:n.jsx(Ne,{decimalPlaces:e,disabled:t,error:i,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:t,name:i,label:o,propsMax:r,propsMin:a,required:l,tooltip:s,variant:c="default"})=>{const d=`${i}Max`,p=`${i}Min`;return n.jsx(V,{error:e?void 0:t,htmlFor:i,label:o,required:l,tooltip:s,children:n.jsxs(m,{display:"flex",flexDirection:c==="filters"?"column":"row",gap:.25,width:"100%",children:[n.jsx(Ne,{...a,disabled:e,error:t,name:(a==null?void 0:a.name)??p}),n.jsx(Ne,{...r,disabled:e,error:t,name:(r==null?void 0:r.name)??d})]})})},To=y.styled.div`
1343
+ ${({theme:e})=>`
1344
+ align-items: flex-start;
1345
+ align-self: stretch;
1346
+ display: flex;
1347
+ gap: ${e.spacing[.5]};
1348
+
1349
+ > button, div {
1350
+ border: 1px solid ${e.palette.gray[300]};
1351
+ border-radius: ${e.spacing[.5]};
1352
+ }
1353
+
1354
+ &.disabled {
1355
+ > button, div {
1356
+ background: ${e.palette.gray[100]};
1357
+ color: ${e.palette.gray[400]};
1358
+ cursor: not-allowed;
1359
+ }
1360
+ }
1361
+
1362
+ &.error:not(.disabled) {
1363
+ > button, div {
1364
+ border: 1px solid ${e.palette.error[500]};
1365
+ }
1366
+ }
1367
+
1368
+ &:focus-within:not(.disabled, .error) {
1369
+ > button, div {
1370
+ background: ${e.palette.white};
1371
+ border: 2px solid ${e.palette.black};
1372
+ }
1373
+ }
1374
+
1375
+ &:hover:not(:focus-within, .disabled, .error) {
1376
+ > button, div {
1377
+ background: ${e.palette.white};
1378
+ border-color: ${e.palette.gray[600]};
1379
+ }
1380
+ }
1381
+ `}
1382
+ `,Io=y.styled.button`
1383
+ ${({theme:e})=>`
1384
+ align-items: center;
1385
+ background: inherit;
1386
+ border-color: inherit;
1387
+ display: flex;
1388
+ gap: ${e.spacing[.25]};
1389
+ height: 40px;
1390
+ min-width: 67px;
1391
+ padding: ${e.spacing[.625]} ${e.spacing[1]};
1392
+
1393
+ &:disabled {
1394
+ background: ${e.palette.gray[100]};
1395
+ cursor: not-allowed;
1396
+ }
1397
+ `}
1398
+ `,Eo=y.styled.ul`
1399
+ ${({theme:e})=>`
1400
+ align-items: flex-start;
1401
+ box-shadow: ${e.shadows.md};
1402
+ display: flex;
1403
+ flex-direction: column;
1404
+ margin-top: ${e.spacing[.25]};
1405
+ max-height: 190px;
1406
+ overflow: hidden auto;
1407
+ scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
1408
+ scroll-padding: ${e.spacing[.5]};
1409
+ scrollbar-width: thin;
1410
+ width: max-content;
1411
+ `}
1412
+ `,Ro=y.styled.li`
1413
+ ${({theme:e})=>`
1414
+ align-items: center;
1415
+ background: ${e.palette.white};
1416
+ cursor: pointer;
1417
+ display: inline-flex;
1418
+ font-size: ${e.typography.text.sm};
1419
+ gap: ${e.spacing[.5]};
1420
+ height: 38px;
1421
+ line-height: ${e.spacing[1.25]};
1422
+ padding: ${e.spacing[.5]} ${e.spacing[1]};
1423
+ width: 190px;
1424
+
1425
+ &:hover {
1426
+ background: ${e.palette.gray[100]};
1427
+ }
1428
+ `}
1429
+ `,Do=y.styled.p`
1430
+ color: ${({theme:e})=>e.palette.gray[800]};
1431
+ font-size: inherit;
1432
+ min-width: 55%;
1433
+ overflow: hidden;
1434
+ text-overflow: ellipsis;
1435
+ white-space: nowrap;
1436
+ `,No=({disabled:e,error:t,label:i,name:o,placeholder:r,required:a,register:l,tooltip:s,value:c,watch:d,weight:p})=>{const g=y.useTheme(),x=u.useRef(null),h=e?void 0:t,b=(d==null?void 0:d(o))??c,[w,$]=u.useState(!1),[k,v]=u.useState(""),{refs:C,floatingStyles:j}=f.useFloating$1({placement:"bottom-start",whileElementsMounted:f.autoUpdate}),{inputRef:z,inputValue:E,handlePhoneValueChange:T,country:S,setCountry:A}=f.ee({countries:f._$1,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),R=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))},[]),oe=f._$1.filter(W=>{const{name:M}=f.M(W);return M.toLowerCase().includes(k.toLowerCase())});return ee(C.floating.current,()=>{$(!1),v("")},!0),n.jsx(V,{error:h,htmlFor:o,label:i,required:a,tooltip:s,weight:p,children:n.jsxs(To,{className:`${e?"disabled":""} ${h?"error":""}`,ref:x,children:[n.jsxs(Io,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:q,ref:C.setReference,children:[n.jsx(f.q,{iso2:S.iso2,size:"16px"}),n.jsx(D,{icon:"angle-down",iconColor:g.palette.gray[400],iconSize:"lg",iconType:"fa-light"})]}),n.jsxs(ie,{className:`${e?"disabled":""} ${h?"error":""}`,children:[n.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":o,"aria-required":a,autoComplete:"off","data-testid":`${o}-input`,disabled:e,id:o,name:o,onKeyDown:R,placeholder:r,ref:z,type:"tel",value:E,...l==null?void 0:l(o,{required:a,onChange:T})}),h?n.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:g.palette.error[500],iconSize:"lg"}):void 0]}),w&&le.createPortal(n.jsx(Eo,{ref:C.setFloating,style:j,children:oe.map(W=>{const{dialCode:M,iso2:Z,name:de}=f.M(W);return n.jsxs(Ro,{onClick:K(Z),value:Z,children:[n.jsx(f.q,{iso2:Z,size:"16px"}),n.jsx(Do,{children:de}),n.jsx(I,{color:g.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+M})]},Z)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},Fo=({disabled:e=!1,error:t,helpLink:i,helpLinkText:o,helpText:r,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=y.useTheme(),E=(v==null?void 0:v(c))??j,T=l&&a&&!e,S=e?void 0:t;return n.jsx(V,{disabled:e,error:S,helpLink:i,helpLinkText:o,helpText:r,htmlFor:c,label:s,maxLength:g,required:w,tooltip:k,value:E?String(E):void 0,weight:C,children:n.jsxs(ie,{className:`
1437
+ ${e?"disabled":""} ${S?"error":""} ${T?"success":""}
1438
+ `,children:[n.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:E,...b==null?void 0:b(c,{required:w,onBlur:x})}),S?n.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:z.palette.error[500],iconSize:"lg"}):void 0,T?n.jsx(D,{icon:"check-circle",iconClass:"success-icon",iconColor:z.palette.success[500],iconSize:"lg"}):void 0]})})},Ao=({control:e,description:t,disabled:i,id:o,items:r,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:E})=>{const T=u.useMemo(()=>{if(l==="text")return n.jsx(Oe,{disabled:i,error:v,isTouched:$,isValid:k,name:p,placeholder:g,register:j});if(l==="date")return n.jsx(Ut,{disabled:i,error:v,name:p,register:j,setValue:z,watch:E});if(l==="select"&&r)return n.jsx(at,{control:e,disabled:i,items:r,name:p,placeholder:g,value:w});const{decimalPlaces:S,max:A,min:R}=s??{};return n.jsx(Zt,{decimalPlaces:S,disabled:i,error:v,max:A,min:R,name:p,onChange:C,placeholder:g,register:j,setValue:z,value:w,watch:E})},[e,i,v,s,l,$,k,r,p,C,g,j,z,w,E]);return n.jsxs(Ui,{$align:a,$minHeight:c,$minWidth:d,children:[n.jsx(Fe,{description:t,id:o,textAlign:x,title:b,tooltip:h}),T]})},Lo=ce.default.div`
1439
+ display: flex;
1440
+ align-self: flex-start;
1441
+ margin-left: auto;
1442
+ width: 40px;
1443
+ height: auto;
1444
+ `,Jt=(e,t)=>{const[o,r]=u.useState(0),[a,l]=u.useState(0);return u.useEffect(()=>{a===100&&(()=>{r(c=>c===t-1?0:c+1)})()},[a,t]),u.useEffect(()=>{const s=setInterval(()=>{l(c=>c===100?0:c+1)},e);return()=>{clearInterval(s)}},[e]),{cycle:o,progress:a,setCycle:r,setProgress:l}},Qt=({publicId:e,format:t="webp"})=>{const i=u.useMemo(()=>new f.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return u.useMemo(()=>i.image(e).format(t),[i,e,t])},Te=e=>{const[t,i]=u.useState(!1),o=u.useCallback(()=>{i(!0)},[]),r=u.useCallback(()=>{i(!1)},[]),a=u.useCallback(()=>{i(l=>!l)},[]);return{close:r,isOpen:t,name:e,open:o,setIsOpen:i,toggle:a}},Po=e=>e.reduce((t,i)=>({...t,[i.id]:i.visible}),{}),en=({name:e,items:t,columnOrder:i,setColumnOrder:o,setColumnVisibility:r})=>{const a=u.useMemo(()=>[...t.filter(({locked:g})=>g).map(({locked:g,...x})=>({...x,visible:!0,locked:g})),...t.filter(({locked:g})=>!g)],[t]),[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))]),o&&o(b.map(({id:$})=>$))},[o]),d=u.useCallback(()=>{const g=l.map(x=>({...x,visible:x.locked||((i==null?void 0:i.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=(i==null?void 0:i.indexOf(x.id))??0,w=(i==null?void 0:i.indexOf(h.id))??0;return b-w});r==null||r(Po(g)),c(g)},[l,i,c,r]),p=u.useMemo(()=>f.some(l,g=>((i==null?void 0:i.includes(g.id))??!1)!==g.visible),[l,i]);return{setColumns:c,resetToDefault:d,columns:l,...Te(e),hasChanged:p}},lt=(e,t)=>u.useMemo(()=>f._.debounce(e,t),[e,t]),Oo=e=>{const[t,i]=u.useState(),o=lt(r=>{i(r)},(e==null?void 0:e.debounceWait)??300);return[t,o]},Mo=({alt:e="img",height:t="",width:i="",plugins:o=[f.lazyload(),f.placeholder()],publicId:r})=>{const a=Qt({publicId:r});return n.jsx(f.AdvancedImage,{alt:e,cldImg:a,height:t,plugins:o,width:i})},ne=tt.default.memo(Mo),Ho=y.styled.label`
1445
+ ${({theme:e})=>`
1446
+ align-items: center;
1447
+ display: flex;
1448
+ color: ${e.palette.gray[600]};
1449
+ cursor: pointer;
1450
+ font-family: ${e.typography.type.primary};
1451
+ font-size: ${e.typography.text.sm};
1452
+ font-weight: ${e.typography.weight.regular};
1453
+ gap: ${e.spacing[.5]};
1454
+ line-height: ${e.typography.text.lg};
1455
+ text-align: left;
1456
+ position: relative;
1457
+
1458
+ &[aria-disabled="true"] {
1459
+ color: ${e.palette.gray[400]};
1460
+ cursor: not-allowed;
1461
+ }
1462
+
1463
+ input {
1464
+ position: absolute;
1465
+ opacity: 0;
1466
+ cursor: pointer;
1467
+ width: 0;
1468
+ }
1469
+
1470
+ .checkmark {
1471
+ position: relative;
1472
+ top: 0;
1473
+ left: 0;
1474
+ height: 16px;
1475
+ width: 16px;
1476
+ background-color: ${e.palette.white};
1477
+ border-radius: 50%;
1478
+ border: 1px solid ${e.palette.gray[600]};
1479
+ }
1480
+
1481
+ input:disabled ~ .checkmark {
1482
+ border: 1px solid ${e.palette.gray[300]};
1483
+ background-color: ${e.palette.white};
1484
+ cursor: not-allowed;
1485
+ }
1486
+
1487
+ input:not(:disabled):checked ~ .checkmark {
1488
+ background-color: ${e.palette.white};
1489
+ border: 1px solid ${e.palette.primary[500]};
1490
+ }
1491
+
1492
+ input:not(:disabled):hover ~ .checkmark {
1493
+ background-color: ${e.palette.white};
1494
+ box-shadow: 0 0 0 4px ${e.palette.gray[100]};
1495
+ }
1496
+
1497
+ input:not(:disabled):hover:checked ~ .checkmark {
1498
+ background-color: ${e.palette.white};
1499
+ box-shadow: 0 0 0 4px ${e.palette.primary[50]};
1500
+ }
1501
+
1502
+ .checkmark::after {
1503
+ content: "";
1504
+ position: absolute;
1505
+ display: none;
1506
+ top: 3px;
1507
+ left: 3px;
1508
+ width: 8px;
1509
+ height: 8px;
1510
+ border-radius: 50%;
1511
+ background: ${e.palette.primary[500]};
1512
+ }
1513
+
1514
+ input:checked ~ .checkmark::after {
1515
+ display: block;
1516
+ }
1517
+
1518
+ input:disabled:checked ~ .checkmark::after {
1519
+ background-color: ${e.palette.gray[300]};
1520
+ }
1521
+
1522
+ `}
1523
+ `,Wo=y.styled.span.attrs({className:"checkmark"})``,ct=u.forwardRef(function({checked:t,disabled:i=!1,label:o,name:r,onChange:a,onClick:l,value:s,...c},d){return n.jsxs(Ho,{"aria-disabled":i,"aria-label":o??r,role:"radiogroup",children:[n.jsx("input",{"aria-checked":t,"aria-disabled":i,"aria-label":o??r,checked:t,disabled:i,name:r,onChange:a,onClick:l,ref:d,type:"radio",value:s,...c}),n.jsx(Wo,{}),o??null]})}),Bo=({alt:e,customDescription:t,imageId:i,icon:o,selectorProps:r,onClick:a,register:l,bgColor:s,title:c,isATag:d=!1,width:p="fit-content"})=>{const g=y.useTheme();return n.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:[n.jsxs(m,{display:"inline-flex",padding:[1,1,1,1],children:[n.jsx(m,{alignSelf:"start",display:"flex",width:"fit-content",children:n.jsx(ct,{defaultChecked:r.defaultChecked,name:r.name,onClick:a,value:r.value,...l==null?void 0:l(r.name)})}),n.jsxs(m,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[!d&&i!==void 0&&n.jsx(ne,{alt:e??"card image",height:"32px",publicId:i,width:"32px"}),o===void 0?void 0:n.jsx(D,{icon:o,iconSize:"xl",iconType:"fa-light"}),n.jsxs(m,{display:"flex",flexDirection:"column",width:"100%",children:[n.jsx(I,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t===void 0?void 0:n.jsx(m,{children:t})]})]})]}),d&&n.jsx(Lo,{children:n.jsx(ne,{alt:e??"tag image",height:"40px",publicId:i??"tag image",width:"40px"})})]})},ge=y.styled.div`
1524
+ ${({theme:e})=>`
1525
+ align-items: center;
1526
+ background-color: ${e.palette.gray[200]};
1527
+ border-radius: 34px;
1528
+ cursor: pointer;
1529
+ display: flex;
1530
+ height: 20px;
1531
+ position: relative;
1532
+ transition: 0.2s;
1533
+ width: 36px;
1534
+ `}
1535
+ `,_o=y.styled.div`
1536
+ ${({theme:e})=>`
1537
+ background-color: ${e.palette.white};
1538
+ border-radius: 50%;
1539
+ height: ${e.spacing[1]};
1540
+ left: 2px;
1541
+ position: absolute;
1542
+ transition: 0.2s;
1543
+ width: ${e.spacing[1]};
1544
+ z-index: 1;
1545
+ `}
1546
+ `,Vo=y.styled.label`
1547
+ display: inline-block;
1548
+
1549
+ input {
1550
+ position: absolute;
1551
+ height: 0;
1552
+ opacity: 0;
1553
+ width: 0;
1554
+ }
1555
+
1556
+ input:checked + ${ge} {
1557
+ background-color: ${({theme:e})=>e.palette.primary[500]};
1558
+ }
1559
+
1560
+ input:checked + ${ge} > div {
1561
+ transform: translateX(100%);
1562
+ }
1563
+
1564
+ input:disabled + ${ge} {
1565
+ cursor: not-allowed;
1566
+ background-color: ${({theme:e})=>e.palette.gray[100]};
1567
+ }
1568
+
1569
+ input:disabled + ${ge} > div {
1570
+ background-color: ${({theme:e})=>e.palette.gray[200]};
1571
+ border: 1px solid ${({theme:e})=>e.palette.gray[200]};
1572
+ }
1573
+ `,tn=u.forwardRef(function({defaultChecked:t,disabled:i=!1,justify:o,name:r,leftDescription:a,leftDescriptionMinWidth:l,rightDescription:s,onChange:c,...d},p){const g=t===!0?"on":"off",x=typeof a=="object"&&a.on&&a.off?a[g]:a,h=u.useCallback(b=>{b.stopPropagation()},[]);return n.jsxs(m,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:o,children:[n.jsx(m,{minWidth:l,children:x}),n.jsxs(Vo,{onClick:h,role:"switch",children:[n.jsx("input",{...d,"aria-disabled":i,"aria-label":r,checked:t===!0,disabled:i,name:r,onChange:c,ref:p,type:"checkbox"}),n.jsx(ge,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:n.jsx(_o,{})})]}),s]})}),Uo=({id:e,title:t,toggles:i,minWidth:o="auto",height:r="auto"})=>{const a=y.useTheme();return n.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:r,justify:"center",minHeight:"100px",minWidth:o,padding:[1.25,1.25,1.25,1.25],children:[n.jsx(Fe,{id:e,title:t}),n.jsx(m,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(l=>n.jsx(tn,{...l},`$card-toggle-${l.name}`))})]})},Go=.5,kt=1.25,Yo=({children:e,bgColor:t,border:i,gap:o=Go,px:r=kt,py:a=kt,...l})=>{const s=y.useTheme();return n.jsx(m,{bgColor:t??s.palette.white,border:i??`1px solid ${s.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:"column",gap:o,px:r,py:a,...l,children:e})},Ko=y.styled.div`
1574
+ position: relative;
1575
+ margin: auto;
1576
+ overflow: hidden;
1577
+ `,qo=y.styled.div`
1578
+ display: flex;
1579
+ transition: transform 0.5s ease-in-out;
1580
+ transform: translateX(
1581
+ ${({$currentIndex:e})=>-e*100}%
1582
+ );
1583
+ `,Zo=y.styled.div`
1584
+ align-items: center;
1585
+ display: flex;
1586
+ justify-content: center;
1587
+ min-width: 100%;
1588
+ `,Xo=y.styled.button`
1589
+ ${({theme:e,$isActive:t})=>`
1590
+ background-color: ${t?e.palette.primary[400]:e.palette.white};
1591
+ border: none;
1592
+ border-radius: 50%;
1593
+ cursor: pointer;
1594
+ height: ${e.spacing[.75]};
1595
+ width: ${e.spacing[.75]};
1596
+ `}
1597
+ `,Jo=y.styled.div`
1598
+ align-items: center;
1599
+ display: flex;
1600
+ gap: ${({theme:e})=>e.spacing[.5]};
1601
+ justify-content: center;
1602
+ margin-top: ${({theme:e})=>e.spacing[2]};
1603
+ `,Qo=({slides:e,interval:t=300})=>{const{cycle:i,setCycle:o,setProgress:r}=Jt(t,e.length),a=u.useCallback(l=>()=>{o(l),r(0)},[o,r]);return n.jsxs(Ko,{"aria-roledescription":"carousel",children:[n.jsx(qo,{$currentIndex:i,children:e.map((l,s)=>{const c=`slide-${s}`;return n.jsx(Zo,{"aria-label":c,"aria-roledescription":"slide",children:l.content},c)})}),n.jsx(Jo,{children:e.map((l,s)=>{const c=`nav-button-${s}`;return n.jsx(Xo,{$isActive:s===i,"aria-label":`Go to slide ${s+1}`,"data-testid":s===i?"active":"inactive",onClick:a(s)},c)})})]})},nn=y.styled.div`
1604
+ ${({theme:e})=>`
1605
+ background-color: ${e.palette.gray[100]};
1606
+ border-radius: ${e.spacing[.25]};
1607
+ display: inline-flex;
1608
+ padding: ${e.spacing[1]};
1609
+ position: relative;
1610
+ width: fit-content;
1611
+
1612
+ .line-highlight.language-none {
1613
+ background: ${e.palette.gray[100]};
1614
+ }
1615
+
1616
+ .line-highlight {
1617
+ background: hsl(354deg 100% 85% / 40%);
1618
+ font-family: ${e.typography.type.mono};
1619
+ font-size: ${e.typography.text.xs};
1620
+ line-height: ${e.spacing[1]};
1621
+ color: ${e.palette.black} !important;
1622
+ border-radius: ${e.spacing[1]};
1623
+ isolation: isolate;
1624
+ }
1625
+
1626
+ .line-highlight code * {
1627
+ color: ${e.palette.black} !important;
1628
+ mix-blend-mode: darken;
1629
+ }
1630
+
1631
+ .line-highlight::before,
1632
+ .line-highlight::after {
1633
+ display: none !important;
1634
+ }
1635
+
1636
+ pre[data-line] .line-highlight::before {
1637
+ background-color: ${e.palette.primary[400]} !important;
1638
+ font-weight: 400;
1639
+ font-size: 9px;
1640
+ font-family: ${e.typography.type.mono};
1641
+ width: 18px !important;
1642
+ height: 12px !important;
1643
+ display: flex !important;
1644
+ align-items: center !important;
1645
+ justify-content: center !important;
1646
+ position: absolute !important;
1647
+ box-shadow: none !important;
1648
+ text-shadow: none !important;
1649
+ border: none !important;
1650
+ outline: none !important;
1651
+ transform: translateX(-2.5px) translateY(-1.2px) !important;
1652
+ }
1653
+
1654
+ pre code {
1655
+ color: #161616;
1656
+ font-family: ${e.typography.type.mono};
1657
+ font-size: ${e.typography.text.xs};
1658
+ line-height: ${e.spacing[1]};
1659
+ }
1660
+
1661
+ pre:not(.line-highlight) {
1662
+ margin-top: unset;
1663
+ margin-bottom: unset;
1664
+ padding: unset;
1665
+ width: 100%;
1666
+ }
1667
+
1668
+ span:hover {
1669
+ background-color: ${e.palette.gray[200]};
1670
+ }
1671
+
1672
+ .no-data,
1673
+ pre.line-highlight {
1674
+ background-color: ${e.palette.gray[100]};
1675
+ padding-top: unset;
1676
+ padding-bottom: unset;
1677
+ }
1678
+ `}
1679
+ `,er=y.styled.div`
1680
+ ${({theme:e})=>`
1681
+ align-items: end;
1682
+ background-color: ${e.palette.gray[100]};
1683
+ display: flex;
1684
+ flex-direction: column;
1685
+ justify-content: space-between;
1686
+ min-width: 103px;
1687
+ margin-right: ${e.spacing[1]};
1688
+ padding-top: ${e.spacing[1]};
1689
+ padding-bottom: ${e.spacing[1]};
1690
+ position: relative;
1691
+ padding-left: unset;
1692
+
1693
+ button:hover:not([disabled]) {
1694
+ background-color: ${e.palette.gray[200]};
1695
+ }
1696
+ `}
1697
+ `,on=({noCodeMessage:e="Code snippet not available",snippet:t,specific:i})=>(u.useEffect(()=>{f.prismExports.highlightAll()},[]),n.jsx(nn,{"data-private":!0,children:n.jsx("pre",{className:"line-highlight","data-line-offset":f._.isNil(t)||f._.isString(t)?0:t.offset+.7,...i!==void 0?{"data-line":String(Number(i))}:{},children:f._.isNil(t)||f._.isString(t)||f._.isEmpty(t.content)?n.jsx("div",{className:"no-data",children:n.jsx("p",{children:e})}):n.jsx("code",{className:"language-none",children:t.content})})})),tr=({noCodeMessage:e="Code snippet not available",snippet:t,specific:i,variant:o="normal",expanded:r=!1})=>{const a=y.useTheme(),[l,s]=u.useState(!1),[c,d]=u.useState(!0),p=u.useCallback(()=>{s(b=>!b)},[s]),g=u.useCallback(()=>{if(f._.isNil(t)||f._.isEmpty(t)||!f._.isString(t))return d(!1),e;const b=t.split(`
1698
+ `);return b.length>8&&!l?`${[...b].splice(0,7).join(`
1699
+ `)}
1700
+ ${b[8]}...`:(b.length<8&&d(!1),t)},[l,t,e]),x=u.useMemo(g,[g]),h=u.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return o==="location"?n.jsx(on,{noCodeMessage:e,snippet:t,specific:i}):n.jsxs(m,{bgColor:a.palette.gray[100],borderRadius:"4px",display:"inline-flex",justify:r?"space-between":"center",minWidth:"565px",position:"relative",width:r?"100%":"565px",children:[n.jsx(nn,{"data-private":!0,children:n.jsx("pre",{children:n.jsx("code",{className:"language-none",children:x})})}),n.jsxs(er,{children:[n.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?n.jsxs(O,{onClick:p,variant:"ghost",children:[l?"Show Less":"Show more",n.jsx(D,{icon:l?"chevron-up":"chevron-down",iconColor:a.palette.gray[700],iconSize:"sm",iconType:"fa-light",ml:.25,onClick:h})]}):!1]})]})},{getVariant:nr}=X(e=>({fixed:`
1701
+ height: auto;
1702
+ min-width: 300px;
1703
+ padding: ${e.spacing[1.25]};
1704
+ overflow: hidden auto;
1705
+ `,lg:`
1706
+ width: 80%;
1707
+
1708
+ @media screen and (min-width: ${e.breakpoints.sm}) {
1709
+ width: 72%;
1710
+ }
1711
+ `,md:`
1712
+ width: 60%;
1713
+
1714
+ @media screen and (min-width: ${e.breakpoints.sm}) {
1715
+ width: 48%;
1716
+ }
1717
+ `,sm:`
1718
+ width: 40%;
1719
+
1720
+ @media screen and (min-width: ${e.breakpoints.sm}) {
1721
+ width: 32%;
1722
+ }
1723
+ `})),rn=y.styled.div.attrs({className:"comp-modal fixed inset-0 overflow-auto"})`
1724
+ align-items: center;
1725
+ background-color: ${({$bgColor:e="rgb(52 64 84 / 70%)"})=>e};
1726
+ display: flex;
1727
+ justify-content: center;
1728
+ z-index: 99999;
1729
+ `,dt=y.styled(m)`
1730
+ ${({theme:e,$size:t})=>`
1731
+ background-color: ${e.palette.white};
1732
+ border: 1px solid ${e.palette.gray[200]};
1733
+ border-radius: ${e.spacing[.25]};
1734
+ color: ${e.palette.gray[800]};
1735
+ display: flex;
1736
+ font-family: ${e.typography.type.primary};
1737
+ font-size: ${e.typography.text.sm};
1738
+ max-height: 80%;
1739
+ min-height: minmax(content-fit, 32%);
1740
+ box-shadow: ${e.shadows.lg};
1741
+ margin: auto;
1742
+ white-space: pre-line;
1743
+
1744
+ ${nr(e,t)}
1745
+ `}
1746
+ `,ir=y.styled.div`
1747
+ ${({theme:e})=>`
1748
+ background-color: ${e.palette.white};
1749
+ border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
1750
+ display: flex;
1751
+ flex-direction: column;
1752
+ overflow: hidden auto;
1753
+ padding: 0 ${e.spacing[1.5]} ${e.spacing[1.5]} ${e.spacing[1.5]};
1754
+ scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
1755
+ scroll-padding: ${e.spacing[.5]};
1756
+
1757
+ &:has(form) {
1758
+ flex-direction: unset;
1759
+ overflow: hidden;
1760
+ padding: 0;
1761
+ }
1762
+
1763
+ &:has(#footer) {
1764
+ flex-direction: column;
1765
+ overflow: hidden;
1766
+ height: 100%;
1767
+
1768
+ > *:not(#footer) {
1769
+ flex: 1 1 auto;
1770
+ overflow-y: auto;
1771
+ }
1772
+ }
1773
+ `}
1774
+ `,or=y.styled.div`
1775
+ border-radius: ${({theme:e})=>`${e.spacing[.25]} ${e.spacing[.25]} 0 0`};
1776
+ display: block;
1777
+ overflow: unset;
1778
+ height: max-content;
1779
+ max-height: 100%;
1780
+ max-width: 100%;
1781
+ padding: ${({theme:e})=>`${e.spacing[1.25]}`};
1782
+ padding-bottom: ${({theme:e})=>`${e.spacing[1.5]}`};
1783
+ position: sticky;
1784
+ `,rr=y.styled.div.attrs({className:"flex items-center justify-between"})``,ar=y.styled.div`
1785
+ ${({theme:e})=>`
1786
+ border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
1787
+ display: flex;
1788
+ flex-direction: row;
1789
+ gap: ${e.spacing[.75]};
1790
+ justify-content: space-between;
1791
+ max-width: 392px;
1792
+
1793
+ > label {
1794
+ margin: 0;
1795
+ flex: 1 1 auto;
1796
+ }
1797
+
1798
+ > div {
1799
+ display: flex;
1800
+ flex-direction: row;
1801
+ flex: 1 1 auto;
1802
+ gap: ${e.spacing[.75]};
1803
+ margin-right: ${e.spacing[.75]};
1804
+
1805
+ > button {
1806
+ justify-content: center;
1807
+ max-width: 190px;
1808
+ }
1809
+ }
1810
+
1811
+ > div:last-child {
1812
+ margin-right: 0;
1813
+ }
1814
+ `}
1815
+ `,sr=y.styled.div`
1816
+ img {
1817
+ margin: 0 calc(-${({theme:e})=>e.spacing[1.25]} - 1px)
1818
+ ${({theme:e})=>e.spacing[1.25]};
1819
+
1820
+ min-width: calc(100% + 2px + ${({theme:e})=>e.spacing[3]});
1821
+ height: 185px;
1822
+ object-fit: cover;
1823
+
1824
+ ${({$framed:e=!1})=>e?`
1825
+ border-radius: 8px;
1826
+ min-width: 100%;
1827
+ margin-left: 0;
1828
+ margin-right: 0;
1829
+ `:""}
1830
+ }
1831
+ `,an=({alert:e,modalRef:t,confirmButton:i=void 0,cancelButton:o=void 0})=>{const{close:r}=t,a=u.useCallback(()=>{o!=null&&o.onClick&&o.onClick(),r()},[o,r]),l=u.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),r()},[i,r]);return[i,o].some(c=>!f.lodashExports.isEmpty(c))?n.jsxs(m,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,n.jsx(ar,{children:n.jsxs("div",{children:[o&&n.jsx(O,{id:o.id,onClick:a,variant:"tertiary",width:"100%",children:o.text}),i&&n.jsx(O,{id:i.id,onClick:l,variant:"primary",width:"100%",children:i.text})]})})]}):null},sn=({title:e,description:t,modalRef:i,otherActions:o,onClose:r})=>{const a=y.useTheme(),l=u.useCallback(()=>{r==null||r(),i.close()},[i,r]);return u.useEffect(()=>{const s=c=>{c.key==="Escape"&&l()};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[l]),n.jsxs(or,{children:[n.jsxs(rr,{children:[typeof e=="string"?n.jsx(J,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",wordBreak:"break-word",children:e}):e,n.jsxs("div",{className:"items-center flex gap-3",children:[o,n.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"})]})]}),t&&f.lodashExports.isString(t)&&!f.lodashExports.isEmpty(t)?n.jsx(I,{mt:.5,size:"sm",children:t}):void 0,t&&!f.lodashExports.isString(t)&&n.jsx(he,{display:"block",mt:.5,size:"sm",children:t})]})},ln=({disabled:e,id:t="modal-confirm",onCancel:i,onConfirm:o="submit",txtCancel:r,txtConfirm:a})=>{const l=o==="submit";return n.jsxs(m,{display:"flex",gap:.75,id:"footer",maxWidth:i?"392px":"190px",mt:1.5,children:[i?n.jsx(O,{id:`${t}-cancel`,justify:"center",onClick:i,variant:"tertiary",width:"100%",children:r??"Cancel"}):void 0,n.jsx(O,{disabled:e,id:t,justify:"center",onClick:l?void 0:o,type:l?"submit":"button",variant:"primary",width:"100%",children:a??"Confirm"})]})},lr=(e,t,i)=>i?t==="secondary"?`3px solid ${e.palette.primary[100]}`:`3px solid ${e.palette.primary[500]}`:"unset",cr=y.styled.div`
1832
+ display: flex;
1833
+ flex-direction: row;
1834
+ gap: ${({theme:e})=>e.spacing[.25]};
1835
+ border-bottom: ${({theme:e,$borderButton:t,$variant:i})=>lr(e,i,t)};
1836
+ align-items: center;
1837
+ padding: ${({theme:e})=>e.spacing[.625]}
1838
+ ${({theme:e})=>e.spacing[.5]};
1839
+ padding-bottom: ${({theme:e,$borderButton:t})=>t?`calc(${e.spacing[.625]} - 2px)`:e.spacing[.625]};
1840
+
1841
+ &:hover:not([disabled]) {
1842
+ background-color: ${({theme:e})=>e.palette.gray[100]};
1843
+ color: ${({theme:e})=>e.palette.gray[800]};
1844
+ }
1845
+
1846
+ a {
1847
+ align-items: center;
1848
+ background: transparent;
1849
+ color: ${({theme:e})=>e.palette.gray[800]};
1850
+ font-family: ${({theme:e})=>e.typography.type.primary};
1851
+ font-size: ${({theme:e})=>e.typography.text.sm};
1852
+ display: flex;
1853
+ font-weight: ${({theme:e})=>e.typography.weight.regular};
1854
+ position: relative;
1855
+ text-align: center;
1856
+ text-decoration: unset;
1857
+ width: auto;
1858
+ cursor: pointer;
1859
+
1860
+ &:disabled {
1861
+ cursor: not-allowed;
1862
+ background-color: ${({theme:e})=>e.palette.gray[300]};
1863
+ color: ${({theme:e})=>e.palette.gray[300]};
1864
+ }
1865
+
1866
+ &.active {
1867
+ background-color: transparent;
1868
+
1869
+ &:hover {
1870
+ background-color: transparent;
1871
+ }
1872
+ }
1873
+ }
1874
+ `,dr=y.styled(Se)`
1875
+ ${({theme:e,$variant:t})=>`
1876
+ align-items: center;
1877
+ background: ${t==="error"?e.palette.primary[400]:e.palette.warning[500]};
1878
+ border-radius: 100%;
1879
+ font-family: ${e.typography.type.primary};
1880
+ justify-content: center;
1881
+ padding: 0;
1882
+ position: absolute;
1883
+ z-index: 11;
1884
+ width: ${e.spacing[.5]};
1885
+ height: ${e.spacing[.5]};
1886
+ `}
1887
+ `,pr=y.styled.div`
1888
+ align-items: center;
1889
+ color: ${({theme:e})=>e.palette.white};
1890
+ display: flex;
1891
+ font-size: 6px;
1892
+ font-weight: ${({theme:e})=>e.typography.weight.bold};
1893
+ justify-content: center;
1894
+ `;y.styled.div`
1895
+ /* Override component size only in Storybook */
1896
+ & > div {
1897
+ width: 24px !important;
1898
+ height: 24px !important;
1899
+
1900
+ & > div {
1901
+ font-size: 12px !important;
1902
+ }
1903
+ }
1904
+ `;const cn=u.forwardRef(function({numberIndicator:t,show:i,variant:o="error",...r},a){return n.jsx(dr,{$variant:o,className:i?"flex":"hidden","data-testid":"notification-sign",ref:a,...r,children:t&&n.jsx(pr,{children:t<=9?t:9})})}),dn=({end:e=!1,label:t,id:i,isActive:o=!1,link:r,notificationSign:a,onClick:l,tooltip:s="",variant:c="primary",tag:d})=>{const{pathname:p}=Ue.useLocation(),g=o||(c==="primary"?p.includes(r):p.endsWith(r));return n.jsx(U,{display:"flex",id:`${i}-tooltip`,tip:s,children:n.jsxs(cr,{$borderButton:g,$variant:c,children:[n.jsxs(Ue.NavLink,{end:e,id:i,onClick:l,to:r,children:[t,n.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:n.jsx(Y,{tagLabel:`${d}`,variant:"default"})]})})},pt=({items:e,borders:t=!0,box:i=!1,variant:o="primary"})=>{const r=y.useTheme();return n.jsx(m,{alignItems:"center",bgColor:r.palette.white,border:i?"1px solid":void 0,borderBottom:t?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:i?r.palette.gray[200]:void 0,borderRadius:i?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:i?[0,0,0,0]:void 0,pl:t?1.25:void 0,pr:t?1.25:void 0,role:"tablist",width:i?"max-content":"100%",children:e.map(({end:a,id:l,isActive:s,link:c,label:d,notificationSign:p,onClick:g,tag:x,tooltip:h})=>n.jsx(dn,{end:a,id:l,isActive:s,label:d,link:c,notificationSign:p,onClick:g,tag:x,tooltip:h,variant:o},l))})},ae=u.forwardRef(function({color:t=N.palette.gray[100],mt:i=.5,mb:o=.5,width:r,...a},l){return n.jsx(m,{as:"hr",borderTop:`1px solid ${t}`,mb:o,mt:i,ref:l,width:r??"100%",...a})}),gr=y.styled.li`
1905
+ ${({theme:e})=>`
1906
+ align-items: center;
1907
+ background-color: ${e.palette.white};
1908
+ color: ${e.palette.gray[800]};
1909
+ cursor: pointer;
1910
+ display: flex;
1911
+ font-size: ${e.typography.text.sm};
1912
+ font-weight: ${e.typography.weight.regular};
1913
+ justify-content: space-between;
1914
+ gap: ${e.spacing[.625]};
1915
+ line-height: ${e.spacing[1.25]};
1916
+ list-style-type: none;
1917
+ min-height: 40px;
1918
+ min-width: 240px;
1919
+ padding: ${e.spacing[.625]} ${e.spacing[1]};
1920
+
1921
+ p,
1922
+ a {
1923
+ word-break: break-word;
1924
+ }
1925
+
1926
+ & > label {
1927
+ margin: unset;
1928
+ }
1929
+
1930
+ a {
1931
+ color: ${e.palette.gray[500]};
1932
+ }
1933
+
1934
+ &[aria-disabled="true"] {
1935
+ color: ${e.palette.gray[300]};
1936
+ cursor: not-allowed;
1937
+
1938
+ a {
1939
+ color: ${e.palette.gray[300]};
1940
+ }
1941
+ }
1942
+
1943
+ &[aria-selected="true"] {
1944
+ background-color: ${e.palette.gray[200]};
1945
+ }
1946
+
1947
+ &:hover:not([aria-selected="true"]) {
1948
+ background-color: ${e.palette.gray[100]};
1949
+ }
1950
+ `}
1951
+ `,pn=y.styled.ul`
1952
+ ${({theme:e})=>`
1953
+ background-color: ${e.palette.white};
1954
+ border: 1px solid ${e.palette.gray[200]};
1955
+ border-radius: ${e.spacing[.25]};
1956
+ box-shadow: ${e.shadows.md};
1957
+ display: inline-block;
1958
+ margin: unset;
1959
+ min-width: 240px;
1960
+ padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
1961
+ `}
1962
+ `,Ie=({children:e,disabled:t=!1,icon:i,iconType:o="fa-light",href:r,onClick:a,onClickIcon:l,onKeyDown:s,rightIcon:c,selected:d=!1,value:p,...g})=>{const h=y.useTheme().palette.gray[t?300:800],b=t?u.Children.map(e,w=>u.isValidElement(w)?u.cloneElement(w,{disabled:t,...w.props}):w):e;return n.jsxs(gr,{"aria-disabled":t,"aria-label":p,"aria-selected":d,"data-testid":p,onClick:a,onKeyDown:s,value:p,...g,children:[i!==void 0||p!==void 0?n.jsxs(m,{alignItems:"center",display:"flex",gap:.625,children:[i?n.jsx(D,{disabled:t,icon:i,iconColor:h,iconSize:"sm",iconType:o}):null,r===void 0?b:n.jsx(Q,{href:r,children:b})]}):null,d||c?n.jsx(D,{disabled:t,icon:c??"check",iconClass:"selected",iconColor:h,iconSize:"lg",iconType:o,onClick:l}):null]})},ur=ce.default(Ie)`
1963
+ margin-top: 10px;
1964
+ border: 1px solid ${({theme:e})=>e.palette.gray[300]};
1965
+ border-radius: 4px;
1966
+ min-width: unset;
1967
+
1968
+ svg {
1969
+ color: ${({theme:e})=>e.palette.gray[400]};
1970
+ }
1971
+
1972
+ &[aria-disabled="true"] {
1973
+ background: ${({theme:e})=>e.palette.gray[100]};
1974
+ color: ${({theme:e})=>e.palette.gray[500]};
1975
+ }
1976
+
1977
+ &[aria-selected="true"]:not([aria-disabled="true"]) {
1978
+ background-color: unset;
1979
+ }
1980
+ `,gn=({items:e,onReorder:t,title:i,description:o,onClickClose:r})=>{const a=u.useCallback(l=>()=>{r(l)},[r]);return n.jsxs(f.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:t,style:{height:"max-content",padding:"1.25rem 0",width:"45%"},values:e,children:[n.jsxs(m,{display:"flex",gap:.25,children:[n.jsx(J,{display:"flex",size:"xs",children:i}),n.jsx(Y,{priority:"high",tagLabel:String(e.filter(l=>l.visible).length),variant:"error"})]}),n.jsx(I,{size:"sm",children:o}),e.map(l=>l.visible?n.jsx(f.ReorderItem,{as:"div",dragListener:!l.locked,item:l.name,value:l,children:n.jsx(ur,{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)]})},xr=ce.default(Ie)`
1981
+ padding: 7px 8px;
1982
+
1983
+ &[aria-selected="true"] {
1984
+ background-color: unset;
1985
+ }
1986
+
1987
+ svg {
1988
+ &.fa-check {
1989
+ border-radius: 2px;
1990
+ }
1991
+
1992
+ &.selected {
1993
+ display: none;
1994
+ }
1995
+ }
1996
+ `,un=({options:e,title:t,checkboxesName:i,defaultCollapsed:o,onChange:r})=>{const a=y.useTheme(),[l,s]=u.useState(o??!1),c=u.useCallback(()=>{s(d=>!d)},[]);return n.jsxs(m,{"aria-label":t,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:[n.jsxs(m,{alignItems:"center",cursor:"pointer",display:"flex",onClick:c,children:[n.jsx(I,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:t}),n.jsx(D,{icon:l?"chevron-up":"chevron-down",iconColor:a.palette.gray[400],iconSize:"lg"})]}),l?n.jsx(m,{display:"flex",gap:.75,wrap:"wrap",children:e.map(d=>n.jsx(m,{bgColor:a.palette.white,border:"1px solid",borderColor:a.palette.gray[300],borderRadius:a.spacing[.25],px:.5,py:.5,children:n.jsx(re,{checked:d.visible,disabled:d.locked,label:d.name,name:`${i}-${d.name}`,onChange:r,value:d.name})},d.name))}):void 0]})},xn=e=>e.reduce((i,o)=>o.group?i[o.group]?{...i,[o.group]:[...i[o.group],o]}:{...i,[o.group]:[o]}:i,{}),hr=y.styled.input`
1997
+ ${({theme:e})=>`
1998
+ background: none;
1999
+ border: none !important;
2000
+ box-shadow: none;
2001
+ box-sizing: border-box;
2002
+ color: ${e.palette.gray[800]};
2003
+ font-family: ${e.typography.type.primary};
2004
+ font-size: ${e.typography.text.sm};
2005
+ outline: none;
2006
+ width: 100%;
2007
+
2008
+ &:-webkit-autofill {
2009
+ -webkit-background-clip: text;
2010
+ }
2011
+
2012
+ &::placeholder {
2013
+ color: ${e.palette.gray[400]};
2014
+ }
2015
+
2016
+ &:is(:hover, :focus)::-webkit-search-cancel-button {
2017
+ display:none;
2018
+ }
2019
+
2020
+ ::-webkit-search-decoration,
2021
+ ::-webkit-search-results-button,
2022
+ ::-webkit-search-results-decoration {
2023
+ display:none;
2024
+ }
2025
+ `}
2026
+ `,fr=y.styled.div`
2027
+ ${({theme:e})=>`
2028
+ align-items: center;
2029
+ background-color: ${e.palette.white};
2030
+ border: 1px solid ${e.palette.gray[300]};
2031
+ border-radius: ${e.spacing[.5]};
2032
+ display: flex;
2033
+ height: 40px;
2034
+ gap: ${e.spacing[.5]};
2035
+ padding: ${e.spacing[.5]};
2036
+ width: 100%;
2037
+
2038
+ &:hover {
2039
+ border-color: ${e.palette.gray[600]};
2040
+ }
2041
+
2042
+ &:focus-within {
2043
+ border: 2px solid ${e.palette.black};
2044
+ }
2045
+ `}
2046
+ `,yr=y.styled.div`
2047
+ ${({theme:e})=>`
2048
+ background-color: ${e.palette.white};
2049
+ border-radius: ${e.spacing[.5]};
2050
+ width: 250px;
2051
+ `}
2052
+ `,se=({name:e,smallSearch:t=!1,onClear:i,onChange:o,value:r,...a})=>{const l=u.useRef(null),s=y.useTheme(),[c,d]=u.useState(!1),[p,g]=u.useState(r??""),{refs:x,floatingStyles:h}=f.useFloating$1(),b=u.useCallback(()=>{d(C=>!C)},[]),w=u.useCallback(C=>{C.key==="Enter"&&C.preventDefault()},[]),$=u.useCallback(C=>{g(C.target.value),o==null||o(C)},[o]),k=u.useCallback(()=>{g(""),i==null||i()},[i]);ee(x.floating.current,()=>{d(!1)},!0);const v=n.jsxs(fr,{children:[n.jsx(D,{icon:"magnifying-glass",iconColor:s.palette.gray[700],iconSize:"lg",iconType:"fa-light"}),n.jsx(hr,{id:e,name:e,onChange:$,onKeyDown:w,ref:l,type:"search",value:p,...a}),!f.lodashExports.isEmpty(p)&&n.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 t?n.jsxs(u.Fragment,{children:[n.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?n.jsx(yr,{ref:x.setFloating,style:h,children:v}):void 0]}):v},hn=({columns:e,formId:t,onChangeHandler:i,variant:o})=>{const r=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(()=>{r.current&&(r.current.reset(),c(""))},[r]);return u.useEffect(()=>{l(e.filter(g=>{var x;return o==="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,o]),o==="grouped"?n.jsxs(m,{display:"flex",flexDirection:"column",gap:.625,height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[n.jsx("form",{id:"search-form",ref:r,children:n.jsx(se,{name:"search",onChange:d,onClear:p,value:s})}),n.jsx("form",{"data-testid":t,id:t,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 n.jsx(un,{checkboxesName:g,defaultCollapsed:h===0,onChange:i,options:x,title:g},b)})})]}):n.jsxs(m,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[n.jsx("form",{id:"search-form",ref:r,children:n.jsx(se,{name:"search",onChange:d,onClear:p,value:s})}),n.jsx("form",{"data-testid":t,id:t,onReset:p,style:{paddingTop:"0.625rem"},children:a.map(g=>{const x=`li-checkbox-${g.name}`;return n.jsx(xr,{selected:g.visible,value:x,width:"content",children:n.jsx(re,{checked:g.visible,disabled:g.locked,label:g.name,name:g.name,onChange:i,value:g.name})},x)})})]})},fn=({_containerId:e="portals",title:t,modalRef:i,variant:o})=>{const r=y.useTheme(),a=u.useRef(null),[l,s]=u.useState(void 0),c=u.useCallback(g=>{const{checked:x,value:h}=g.target,b=i.columns.map(w=>{var $;return w.name===h?(($=w.toggleVisibility)==null||$.call(w,x),{...w,visible:x}):w});i.setColumns(b)},[i]),d=u.useCallback(g=>{const x=i.columns.map(h=>{var b;return h.id===g?((b=h.toggleVisibility)==null||b.call(h,!1),{...h,visible:!1}):h});i.setColumns(x)},[i]),p=u.useCallback(()=>{var x;const g=(x=a.current)==null?void 0:x.scrollHeight;l!==g&&s(g)},[l]);return i.isOpen?le.createPortal(n.jsx(rn,{"aria-label":i.name,"aria-modal":"true",children:n.jsxs(dt,{$size:"md",flexDirection:"column",children:[n.jsxs(m,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[n.jsx(J,{size:"sm",children:t}),n.jsx(H,{icon:"close",iconColor:r.palette.gray[400],iconSize:"lg",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:i.close,px:.25,py:.25,variant:"ghost"})]}),n.jsx(ae,{mb:0,mt:0}),n.jsxs(m,{display:"flex",gap:1.25,onScroll:p,px:1.25,ref:a,scroll:"y",width:"100%",children:[n.jsx(hn,{columns:i.columns,formId:"columns-visibility",onChangeHandler:c,variant:o}),n.jsx(m,{borderLeft:`2px solid ${r.palette.gray[100]}`,height:l?`${l}px`:"auto"}),n.jsx(gn,{description:"Click and drag to reorder the columns",items:i.columns,onClickClose:d,onReorder:i.setColumns,title:"Reorder columns"})]}),n.jsx(ae,{mb:0,mt:0}),n.jsxs(m,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[n.jsx(O,{disabled:!i.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:i.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to default"}),n.jsx(O,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):n.jsx("div",{})},br=ce.default(Ie)`
2053
+ padding: 8px;
2054
+ min-height: 36px;
2055
+ min-width: unset;
2056
+ `,$r=ce.default.div.attrs({className:"comp-modal absolute top-[55px] overflow-auto"})`
2057
+ align-items: center;
2058
+ background-color: ${({$bgColor:e="rgb(52 64 84 / 70%)"})=>e};
2059
+ display: flex;
2060
+ justify-content: center;
2061
+ z-index: 99999;
2062
+ `,Ct=ce.default(Ie)`
2063
+ padding: 7px 8px;
2064
+ word-wrap: break-word;
2065
+
2066
+ svg.fa-check {
2067
+ border-radius: 2px;
2068
+ }
2069
+ `,yn=({control:e,option:t,register:i,setValue:o})=>{var r,a,l,s,c;switch(t.type){case"checkboxes":return n.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(r=t.options)==null?void 0:r.map(p=>n.jsx(Ct,{value:p.value,width:"content",children:n.jsx(re,{...i("checkbox"),label:p.label,value:p.value})},`li-checkbox-${p.value}`))});case"radioButton":return n.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[t.label,(a=t.options)==null?void 0:a.map(p=>n.jsx(Ct,{value:p.value,width:"content",children:n.jsx(ct,{...i("radio"),label:p.label,value:p.value})},`li-radio-${p.value}`))]});case"select":return n.jsx(at,{control:e,items:((l=t.options)==null?void 0:l.map(p=>({name:p.label??"",value:p.value})))??[],label:t.label,name:`text.${String(t.key)}-${t.filterFn??"caseInsensitive"}`,placeholder:t.placeholder,value:t.value});case"text":const d=`text.${String(t.key)}-${t.filterFn??"caseInsensitive"}`;return n.jsx(Oe,{label:t.label,name:d,placeholder:t.placeholder,register:i,value:t.value});case"numberRange":return n.jsx(Xt,{label:t.label,name:String(t.key),propsMax:{placeholder:t.placeholder?`${t.placeholder} Max`:"Max",register:i,name:"maxValue",value:t.maxValue,setValue:o},propsMin:{placeholder:t.placeholder?`${t.placeholder} Min`:"Min",register:i,name:"minValue",value:t.minValue,setValue:o},variant:"filters"});case"dateRange":return n.jsx(Yt,{label:t.label,name:String(t.key),propsMax:{name:"maxValue",value:(s=t.maxValue)==null?void 0:s.toString()},propsMin:{name:"minValue",value:(c=t.minValue)==null?void 0:c.toString()},register:i,setValue:o,variant:"filters"});default:return n.jsx("div",{})}},bn=({control:e,items:t,register:i,setValue:o})=>n.jsx(n.Fragment,{children:t.map((r,a)=>{const l=`${r.type}-${r.value}-${r.filterFn??"default"}`;return n.jsxs("div",{children:[n.jsx(yn,{control:e,option:r,register:i,setValue:o}),a<t.length-1&&n.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),$n=e=>{var s,c,d,p,g;const[t,i]=u.useState([...e]),{control:o,register:r,handleSubmit:a,setValue:l}=f.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:o,items:t,setItems:i,register:r,handleSubmit:a,setValue:l}},mr=(e,t)=>{var i,o,r,a,l;t("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))??[]})),t("radio",((r=(o=(i=e.find(s=>s.type==="radioButton"))==null?void 0:i.options)==null?void 0:o.find(({checked:s})=>s))==null?void 0:r.value)??""),t("text",e.filter(s=>["text","select"].includes(s.type)).reduce((s,c)=>({...s,[`${String(c.key)}-${c.filterFn??"caseInsensitive"}`]:c.value??""}),{})),t("minValue",(a=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:a.minValue),t("maxValue",(l=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:l.maxValue)},wr=(e,t)=>(e==null?void 0:e.filter(i=>{var o;return((o=i.label)==null?void 0:o.toLowerCase().includes((t==null?void 0:t.toLowerCase())??""))??i.value.toLowerCase().includes((t==null?void 0:t.toLowerCase())??"")}))??[],vr=async(e,t)=>await Promise.all(e.map(async i=>{if(i.type==="checkboxes"){const r=(i.filterOptions?await i.filterOptions(i.options??[],t):wr(i.options??[],t)).filter((a,l,s)=>s.findIndex(c=>c.value===a.value)===l);return{...i,options:r}}return i})),Xe=({options:e,onSearch:t,onSubmit:i,id:o,selectedFilter:r})=>{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;t&&t(w);const $=await vr(e,w);s($)},[e,t,s]),h=u.useCallback(b=>{i&&i(b)},[i]);return u.useEffect(()=>{s(e),mr(e,p)},[e,s,p]),n.jsxs("div",{className:"flex flex-col gap-[8px]",id:o,style:{writingMode:"horizontal-tb",maxWidth:"300px",width:"100%"},children:[g&&n.jsxs("div",{children:[r,n.jsx(se,{onChange:x})]}),n.jsxs("form",{id:o,onSubmit:d(h),children:[n.jsx(bn,{control:a,items:l,register:c,setValue:p}),n.jsx(O,{mt:1,type:"submit",children:"Apply"})]})]})},mn=({options:e,variant:t,onApplyFilters:i,onSearch:o,setDirection:r,setHandler:a})=>{const l=y.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,R;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)?((R=v.text)==null?void 0:R[`${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,E=s.map(z);c(S=>S.map(z));const T=E.flatMap(({filterOptions:S})=>S);i(T),p([])},[s,i,h]),k=u.useCallback((v,C)=>{const j=`li-filter-option-${v}`;return n.jsxs(br,{icon:C,onClick:w(v),style:{minWidth:"180px",writingMode:"horizontal-tb"},value:j,width:"100%",children:[v,g[v]===void 0?void 0:n.jsx(Y,{tagLabel:g[v].length.toString()})]},j)},[g,w]);return u.useEffect(()=>{const v=e.reduce((C,{label:j,filterOptions:z})=>{const E=z.flatMap(({value:A,minValue:R,maxValue:L})=>[R,L,A]).filter(Boolean),T=z.flatMap(({options:A})=>A??[]).filter(({checked:A=!1})=>A).map(({value:A})=>A),S=[...E,...T];return S.length===0?C:{...C,[j]:S}},{});x(v),d.length>0&&r&&r("column")},[d,e,r]),t==="grouped"?n.jsx(m,{display:"flex",flexDirection:"row",maxHeight:d.length>0?"unset":"360px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:d.length>0?n.jsx(Xe,{id:"filters-options",onSearch:o,onSubmit:$,options:d,selectedFilter:h}):Object.entries(xn(e)).map(([v,C])=>n.jsxs(m,{style:{writingMode:"horizontal-tb"},children:[n.jsx(I,{color:l.palette.gray[400],mb:.25,size:"sm",children:v}),C.map(({label:j,icon:z="filter-list"})=>k(j,z))]},v))}):n.jsx(m,{display:"flex",flexDirection:"row",maxHeight:d.length>0?"unset":"200px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:d.length>0?n.jsx(Xe,{id:"filters-options",onSearch:o,onSubmit:$,options:d,selectedFilter:h}):e.map(({label:v,icon:C="filter-list"})=>k(v,C))})},wn=({options:e,onApplyFilters:t,onSearch:i,modalRef:o,variant:r})=>{const[a,l]=u.useState("row"),[s,c]=u.useState(!0),d=y.useTheme(),p=u.useRef(null),g=n.jsx(H,{icon:"close",iconColor:d.palette.gray[400],iconSize:"lg",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,px:.25,py:.25,variant:"ghost"});return u.useEffect(()=>{const x=h=>{const b=p.current;b&&!b.contains(h.target)&&o.close()};if(s)return document.addEventListener("mousedown",x,!0),()=>{document.removeEventListener("mousedown",x,!0)}},[p,s,o]),n.jsx($r,{$bgColor:"transparent","aria-label":o.name,children:n.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,n.jsx(mn,{onApplyFilters:t,onSearch:i,options:e,setDirection:l,setHandler:c,variant:r}),a==="row"?g:void 0]})})};function jr(e){if(e)return e}function vn(e){if(!e||e.length===0)return;const t=e.filter(o=>o.checked).map(o=>o.label??o.value);return t.length===0?void 0:t.join(", ")}function kr(e,t,i){const o=i??"",r=f._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),a=f._.isEmpty(t)&&typeof t!="number"||Number.isNaN(t)?void 0:Number(String(t));if(!f._.isUndefined(r)&&!f._.isUndefined(a))return`${r}${o} - ${a}${o}`;if(!f._.isUndefined(r))return`Min ${r}${o}`;if(!f._.isUndefined(a))return`Max ${a}${o}`}function Cr(e,t){if(f.dayjs_minExports.extend(f.localizedFormat),!(f._.isUndefined(e)&&f._.isUndefined(t))){if(e!==""&&t!==""&&!f._.isUndefined(e)&&!f._.isUndefined(t))return`${f.dayjs(e).format("LL")} - ${f.dayjs(t).format("LL")}`;if(e!==""&&!f._.isUndefined(e))return`From ${f.dayjs(e).format("LL")}`;if(t!==""&&!f._.isUndefined(t))return`To ${f.dayjs(t).format("LL")}`}}function Sr(e,t,i){return e==="select"?t:`${t} ${i==="includesInsensitive"?"contains":"is"}`}const ue=({filter:e,icon:t="filter-list",label:i,onClose:o,filterValue:r})=>f._.isNil(r)||f._.isEmpty(String(r))?null:n.jsx(Y,{filterValues:r,icon:t,id:"remove-filter",onClose:o(e),tagLabel:`${i} `}),zr=({options:e,onClose:t})=>{const i=e.flatMap(o=>o.filterOptions.map(r=>{const{filterFn:a,label:l,type:s,value:c,options:d,minValue:p,maxValue:g}=r;switch(s){case"numberRange":{const x=kr(p,g,o.placeholder);return n.jsx(ue,{filter:r,filterValue:x,icon:o.icon,label:o.label,onClose:t},l)}case"dateRange":{const x=Cr(p==null?void 0:p.toString(),g==null?void 0:g.toString());return n.jsx(ue,{filter:r,filterValue:x,icon:o.icon,label:o.label,onClose:t},l)}case"radioButton":case"checkboxes":{const x=vn(d);return n.jsx(ue,{filter:r,filterValue:x,icon:o.icon,label:o.label,onClose:t},l)}case void 0:case"select":case"text":default:{const x=jr(c),h=Sr(s,o.label,a);return n.jsx(ue,{filter:r,filterValue:x,icon:o.icon,label:h,onClose:t},l)}}})).filter(o=>{if(o===null)return!1;const{filterValue:r}=o.props;return!f._.isNil(r)&&!f._.isEmpty(String(r))});return i.length>0?n.jsx(m,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},Tr=e=>e.map(t=>{const i={key:String(t.key),type:t.type},o=(()=>{let r={...i};if(t.filterFn&&(r={...r,filterFn:t.filterFn}),t.value&&(r={...r,value:t.value}),t.minValue!==void 0&&t.minValue!==null&&(r={...r,minValue:t.minValue}),t.maxValue!==void 0&&t.maxValue!==null&&(r={...r,maxValue:t.maxValue}),t.options&&t.options.length>0){const a=t.options.filter(l=>l.checked).map(l=>l.value);a.length>0&&(r={...r,selectedValues:a})}return r})();return Object.keys(o).length>2?o:null}).filter(Boolean),Ir=(e,t)=>t.map(i=>{const o=e.find(a=>a.key===String(i.key)&&a.type===i.type);return o?(()=>{let a={...i};return o.filterFn&&(a={...a,filterFn:o.filterFn}),o.value!==void 0&&o.value!==null&&(a={...a,value:o.value}),o.minValue!==void 0&&o.minValue!==null&&(a={...a,minValue:o.minValue}),o.maxValue!==void 0&&o.maxValue!==null&&(a={...a,maxValue:o.maxValue}),o.selectedValues&&i.options&&(a={...a,options:i.options.map(l=>{var s;return{...l,checked:((s=o.selectedValues)==null?void 0:s.includes(l.value))??!1}})}),a})():i}),Ve=(e,t)=>{const i=Tr(e);t(JSON.stringify(i))},Er=(e,t)=>{const i=e();if(!i)return t;try{const o=JSON.parse(i);return Ir(o,t)}catch{return t}},Rr=(e,t)=>{function i(l,s){if(s.value===""||s.value===void 0||f._.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 o(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 r(l,s,c){const d=c(String(l[s.key])),{minValue:p,maxValue:g}=s,x=f._.isEmpty(p)&&typeof p!="number"?void 0:c(String(p)),h=f._.isEmpty(g)&&typeof g!="number"?void 0:c(String(g));return f._.isUndefined(x)&&f._.isUndefined(h)?!0:(x??-1/0)<=d&&d<=(h??1/0)}function a(l){return t.every(s=>{if(typeof s.key=="function")return s.key(l,s.value);switch(s.type){case"radioButton":case"checkboxes":return o(l,s);case"numberRange":return r(l,s,Number);case"dateRange":return r(l,s,c=>new Date(c));case"select":case"text":default:return i(l,s)}})}return e.filter(a)},Dr=e=>[...e.flatMap(({options:i})=>i).filter(i=>i==null?void 0:i.checked),...e.flatMap(i=>[i.value,i.maxValue,i.minValue]).filter(Boolean)].length,Nr=e=>{var i;const t=((i=e.options)==null?void 0:i.map(o=>({...o,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:t}},Fr=({dataset:e,setValues:t,getValues:i,options:o,setFilteredDataset:r,onFiltersChange:a,onReset:l,onSearch:s,variant:c="ungrouped"})=>{const d=Te("filters-modal"),[p,g]=u.useState(!1),[x,h]=u.useState([]),b=Dr(x),w=o.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,t)},[h,t]),k=u.useCallback(()=>{l&&l(),d.isOpen||g(!0),d.toggle()},[d,l]),v=u.useCallback(j=>()=>{l&&l();const z=x.map(E=>E.key===j.key&&E.type===j.type&&E.filterFn===j.filterFn?Nr(E):E);h(z),Ve(z,t)},[x,l,t]);return u.useEffect(()=>{const j=o.flatMap(T=>T.filterOptions),z=i();if((()=>{if(!z)return!1;try{const T=JSON.parse(z);return Array.isArray(T)&&T.length>0}catch{return!1}})()){const T=Er(i,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,t)):h(j)},[o,h,t,i,p]),u.useEffect(()=>{r&&e!==void 0&&r(Rr(e,x)),a==null||a(x)},[e,x,r,a]),{Filters:()=>n.jsxs(m,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[n.jsx(m,{pr:.25,children:n.jsx(O,{icon:"filter",id:"filter-btn",onClick:k,tag:b.toString(),variant:"ghost"})}),d.isOpen&&n.jsx(wn,{modalRef:d,onApplyFilters:$,onSearch:s,options:w,variant:c})]}),options:w,removeFilter:v}},gt=({_portal:e=!0,alert:t,cancelButton:i=void 0,children:o=void 0,confirmButton:r=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=y.useTheme(),[w,$]=u.useState(void 0),k=u.useRef(null),v=u.useRef(!1),C=Array.isArray(p)&&p.length>0,j=i??r;u.useEffect(()=>{if(C&&!v.current&&k.current){const E=k.current.getBoundingClientRect().height;E>50&&($(E),v.current=!0)}s.isOpen||($(void 0),v.current=!1)},[C,s.isOpen]);const z=n.jsx(rn,{"aria-label":s.name,"aria-modal":"true",id:"modal-wrapper",children:n.jsxs(dt,{$size:x,"data-testid":h,flexDirection:"column",id:h,ref:C?k:void 0,style:C&&w?{height:w}:void 0,children:[!f._.isEmpty(g)&&!f._.isNil(g)&&n.jsx(sn,{description:l,modalRef:s,onClose:d,otherActions:c,title:g}),p&&n.jsx(m,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:n.jsx(pt,{items:p})}),(f._.isObject(a)||o)&&n.jsxs(ir,{style:j?{borderBottom:`1px solid ${b.palette.gray[200]}`}:void 0,children:[o,f._.isObject(a)&&f._.isString(a.imageSrc)&&n.jsx(sr,{$framed:a.imageFramed,children:n.jsx(ne,{alt:"modal-img",publicId:a.imageSrc})}),f._.isObject(a)&&f._.isString(a.imageText)&&n.jsx(I,{size:"sm",children:a.imageText})]}),n.jsx(an,{alert:t,cancelButton:i,confirmButton:r,modalRef:s})]})});return e&&s.isOpen?le.createPortal(z,document.getElementById("portals")??document.body):s.isOpen?z:null},Ar=(e,t,i)=>{const o=Te("confirm-dialog-modal"),r=u.useRef(null),a=u.useCallback(async()=>(o.open(),new Promise(d=>{r.current=d})),[o]),l=u.useCallback(()=>{var d;o.close(),(d=r.current)==null||d.call(r,!0)},[o]),s=u.useCallback(()=>{var d;o.close(),(d=r.current)==null||d.call(r,!1)},[o]);return[a,({children:d})=>{const[p,g]=u.useState(i),x=u.useCallback(()=>{g({...i})},[]),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}])=>n.jsx(re,{defaultChecked:k,label:v,name:$,onChange:h($)},$));return n.jsxs(gt,{"data-testid":e,id:e,modalRef:{...o,close:s},onClose:x,size:"sm",title:t,children:[d,n.jsx(m,{display:"flex",flexDirection:"column",gap:.5,children:w}),n.jsx(ln,{disabled:b,id:e,onConfirm:l})]})}]},Lr=()=>{const[e,t]=u.useState(!1),[i,o]=u.useState(),r=u.useRef(null),a=Te("confirm-dialog-modal"),l=u.useCallback(async p=>(o(p),t(!0),new Promise(g=>{r.current=g})),[]),s=u.useCallback(()=>{var p;t(!1),o(void 0),(p=r.current)==null||p.call(r,!0)},[]),c=u.useCallback(()=>{var p;t(!1),o(void 0),(p=r.current)==null||p.call(r,!1)},[]);return u.useEffect(()=>{a.setIsOpen(e)},[e,a]),{ConfirmDialog:({id:p="confirm-dialog-modal",children:g})=>n.jsxs(gt,{cancelButton:{onClick:c,text:"Cancel"},confirmButton:{id:(i==null?void 0:i.id)??"modal-confirm",onClick:s,text:"Confirm"},description:i==null?void 0:i.message,id:p,modalRef:{...a,close:c},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,g]}),confirm:l}},Pr=2e3,Or=({content:e})=>{const[t,i]=u.useState("Copy"),o=u.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{i("Copied"),setTimeout(()=>{i("Copy")},Pr)}).catch(()=>{i("Failed to copy")})},[e]);return n.jsx(H,{icon:"copy",iconSize:"lg",iconType:"fa-light",onClick:o,tooltip:t,variant:"ghost"})},Mr=y.styled.ul`
2070
+ ${({theme:e})=>`
2071
+ align-items: flex-start;
2072
+ border-radius: ${e.spacing[.25]};
2073
+ border: 1px solid ${e.palette.gray[200]};
2074
+ background: ${e.palette.white};
2075
+ box-shadow: ${e.shadows.md};
2076
+ display: flex;
2077
+ flex-direction: column;
2078
+ padding: ${e.spacing[.25]} 0;
2079
+ width: 166px;
2080
+ z-index: 9999;
2081
+ `}
2082
+ `,Hr=y.styled.li`
2083
+ ${({theme:e})=>`
2084
+ align-items: center;
2085
+ background: ${e.palette.white}
2086
+ color: ${e.palette.gray[800]};
2087
+ cursor: pointer;
2088
+ display: flex;
2089
+ font-family: ${e.typography.type.primary};
2090
+ font-size: ${e.typography.text.sm};
2091
+ font-style: normal;
2092
+ font-weight: ${e.typography.weight.regular};
2093
+ gap: ${e.spacing[.5]};
2094
+ line-height: ${e.spacing[1.25]};
2095
+ padding: ${e.spacing[.25]} ${e.spacing[1]};
2096
+ width: 100%;
2097
+
2098
+ &:hover:not([aria-disabled="true"]) {
2099
+ background: ${e.palette.gray[100]};
2100
+ }
2101
+
2102
+ &[aria-disabled="true"] {
2103
+ background: ${e.palette.gray[100]};
2104
+ color: ${e.palette.gray[500]};
2105
+ cursor: not-allowed;
2106
+ }
2107
+ `}
2108
+ `,Wr=({icon:e,iconColor:t,id:i,showChevron:o,options:r,title:a})=>{const l=y.useTheme(),[s,c]=u.useState(!1),d=s?"chevron-up":"chevron-down",{refs:p,floatingStyles:g}=f.useFloating({middleware:[f.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-${i}`)),n.jsxs(u.Fragment,{children:[n.jsx(O,{"aria-label":a,icon:e,iconColor:t,iconType:"fa-solid",id:`dropdown-toggle-${i}`,onClick:x,ref:p.setReference,rightIcon:o?d:void 0,variant:"ghost",children:a}),s?n.jsx(Mr,{ref:p.setFloating,style:g,children:r.map(h=>{const b=({})=>{h.onClick(),c(!1)};return n.jsxs(Hr,{"aria-disabled":h.disabled,"aria-label":h.label,onClick:h.disabled?void 0:b,children:[n.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:t})=>n.jsx(O,{onClick:e.onClick,variant:t,children:e.text}),Br=y.styled.div`
2109
+ display: flex;
2110
+ flex-direction: column;
2111
+ align-items: center;
2112
+ padding: ${({theme:e,$padding:t})=>e.spacing[t]};
2113
+ max-width: 900px;
2114
+ white-space: pre-line;
2115
+ margin: 0 auto;
2116
+ `,_r=y.styled.div`
2117
+ display: flex;
2118
+ flex-direction: row;
2119
+ justify-content: center;
2120
+ align-items: center;
2121
+ background-color: transparent;
2122
+ width: 96px;
2123
+ height: 96px;
2124
+ margin-bottom: ${({theme:e})=>e.spacing[2]};
2125
+
2126
+ > img {
2127
+ width: 100%;
2128
+ }
2129
+ `,Vr=y.styled.div`
2130
+ display: flex;
2131
+ flex-direction: row;
2132
+ margin: 0;
2133
+ margin-bottom: ${({theme:e})=>e.spacing[2]};
2134
+
2135
+ > * {
2136
+ margin-right: ${({theme:e})=>e.spacing[.75]};
2137
+ }
2138
+
2139
+ > *:last-child {
2140
+ margin-right: 0;
2141
+ }
2142
+ `,St={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},Ur=({cancelButton:e=void 0,confirmButton:t=void 0,description:i,imageSrc:o="integrates/empty/addRoot",padding:r=1.25,title:a,size:l="md"})=>{const s=(t??e)!==void 0;return n.jsxs(Br,{$padding:r,children:[n.jsx(_r,{children:n.jsx(ne,{alt:"empty-icon",publicId:o})}),n.jsx(J,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:St[l].title,textAlign:"center",children:a}),n.jsx(I,{mb:s?2:void 0,size:St[l].description,textAlign:"center",children:i}),s?n.jsxs(Vr,{children:[e&&n.jsx(Je,{buttonProps:e,variant:"tertiary"}),t&&n.jsx(Je,{buttonProps:t,variant:"primary"})]}):void 0]})},Gr=({children:e})=>{const t=f.useFormContext();return e({...t})},Yr=y.styled.form`
2143
+ ${({theme:e})=>`
2144
+ align-items: flex-start;
2145
+ align-self: stretch;
2146
+ display: flex;
2147
+ flex-direction: column;
2148
+ gap: ${e.spacing[.5]};
2149
+ overflow: hidden auto;
2150
+ width: 100%;
2151
+ `}
2152
+ `,Kr=({alert:e,buttonAlignment:t,cancelButton:i,children:o,confirmButton:r,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=y.useTheme(),w=f.useForm({...h,mode:c??"all",resolver:x?f.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 n.jsx(f.FormProvider,{...w,children:n.jsx(Yr,{onSubmit:$,children:n.jsxs(m,{scroll:"y",width:"100%",children:[n.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:o}),g&&n.jsxs(m,{borderRadius:`0 0 ${b.spacing[.25]} ${b.spacing[.25]}`,borderTop:`1px solid ${b.palette.gray[200]}`,display:"flex",flexDirection:t?"unset":"column",gap:.625,justify:t??"stretch",position:"sticky",px:1.25,py:1.25,children:[e,n.jsxs(m,{display:"flex",gap:.75,maxWidth:s,children:[i?n.jsx(O,{icon:i.icon,id:`${l}-cancel`,justify:"center",onClick:i.onClick,type:"reset",variant:"tertiary",width:"100%",children:i.label??"Cancel"}):void 0,n.jsx(O,{disabled:((r==null?void 0:r.disabled)??!1)||w.formState.isSubmitting||a&&!w.formState.isDirty,icon:r==null?void 0:r.icon,id:l,justify:"center",type:"submit",width:"100%",children:(r==null?void 0:r.label)??"Confirm"})]})]})]})})})},qr=y.styled(Se)`
2153
+ display: grid;
2154
+ gap: ${({$gap:e=1.25})=>`${e}rem`};
2155
+ grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
2156
+
2157
+ ${({theme:e,$xl:t,$lg:i,$md:o})=>`
2158
+ @media (width >= ${e.breakpoints.sm}) {
2159
+ grid-template-columns: repeat(${o}, 1fr);
2160
+ }
2161
+
2162
+ @media (width >= ${e.breakpoints.md}) {
2163
+ grid-template-columns: repeat(${i}, 1fr);
2164
+ }
2165
+
2166
+ @media (width >= ${e.breakpoints.lg}) {
2167
+ grid-template-columns: repeat(${t}, 1fr);
2168
+ }
2169
+ `}
2170
+ `,Zr=u.forwardRef(function({children:t,md:i,sm:o,lg:r,xl:a,gap:l,...s},c){return n.jsx(qr,{$gap:l,$lg:r,$md:i,$sm:o,$xl:a,ref:c,...s,children:t})}),Xr=y.styled.div`
2171
+ ${({theme:e,$itemsLength:t})=>`
2172
+ display: flex;
2173
+ background-color: ${e.palette.white};
2174
+ border: 1px solid ${e.palette.gray[200]};
2175
+ border-radius: ${e.spacing[.25]};
2176
+ box-shadow: ${e.shadows.lg};
2177
+ flex-direction: column;
2178
+ min-width: 507px;
2179
+ max-width: ${t<=4?"507px":"980px"};
2180
+ padding: ${e.spacing[1.5]};
2181
+
2182
+ @media screen and (max-width: 980px) and (min-width: 742px) {
2183
+ width: 742px;
2184
+ }
2185
+ @media screen and (max-width: 742px) {
2186
+ width: 507px;
2187
+ }
2188
+ `}
2189
+ `,ut=y.styled.div`
2190
+ ${({theme:e,$isSelected:t})=>`
2191
+ align-items: center;
2192
+ background-color: ${t?e.palette.gray[100]:e.palette.white};
2193
+ border: 1px solid ${e.palette.gray[200]};
2194
+ border-radius: ${e.spacing[.25]};
2195
+ cursor: pointer;
2196
+ display: flex;
2197
+ flex-direction: ${t?"row-reverse":"row"};
2198
+ min-height: 50px;
2199
+ padding: ${e.spacing[1]} ${e.spacing[.625]};
2200
+ width: 215px;
2201
+
2202
+ &:hover {
2203
+ background-color: ${e.palette.gray[100]};
2204
+ }
2205
+ `}
2206
+ `,jn=({isSelected:e=!1,label:t,onSelect:i})=>{const o=y.useTheme(),r=u.useCallback(()=>{i&&i(t)},[i,t]);return n.jsxs(ut,{$isSelected:e,onClick:r,children:[e?n.jsx(D,{icon:"check",iconColor:o.palette.gray[800],iconSize:"lg"}):null,n.jsx(I,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:t})]})},Jr=({isOpen:e=!0,items:t,handleNewOrganization:i,onSelect:o,onClose:r,selectedItem:a,title:l,variant:s})=>{const c=y.useTheme(),[d,p]=u.useState(t),[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(t),h(g)},[t,h,g]);const w=n.jsx(m,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:n.jsx(m,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:n.jsxs(Xr,{$itemsLength:d.length,children:[n.jsxs(m,{alignItems:"center",display:"flex",justify:"space-between",children:[n.jsx(I,{color:c.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),n.jsx(H,{icon:"xmark",iconColor:c.palette.gray[400],iconSize:"lg",iconType:"fa-light",onClick:r,variant:"ghost"})]}),n.jsx(m,{mt:1,children:n.jsx(se,{onInput:b,placeholder:"Search"})}),n.jsx(ae,{mb:1,mt:1}),n.jsxs(m,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[s==="organization-selector"?n.jsx(ut,{onClick:i,children:n.jsxs(m,{alignItems:"center",display:"flex",children:[n.jsx(D,{icon:"square-plus",iconColor:c.palette.gray[400],iconSize:"lg",iconType:"fa-light",mr:.5}),n.jsx(I,{color:c.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,d.map($=>n.jsx(jn,{isSelected:a.toLowerCase()===$.name,label:$.name.charAt(0).toUpperCase()+$.name.slice(1),onSelect:o},$.name))]})]})})});return e?le.createPortal(w,document.body):n.jsx("div",{})},Qr=({description:e,height:t="auto",leftIconName:i,children:o,rightIconName:r,title:a,tooltipId:l,tooltipTip:s,tooltipPlace:c="bottom",variant:d="centered",width:p="318px"})=>{const g=y.useTheme(),x=d==="centered",h=l&&n.jsx(U,{icon:r??i,iconColor:g.palette.gray[800],id:l,place:c,tip:s});return n.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:t,justify:"center",padding:[1.25,1.25,1.25,1.25],width:p,children:[n.jsxs(m,{alignItems:"center",display:"flex",gap:.5,children:[x||f.lodashExports.isUndefined(i)?void 0:h,n.jsx(I,{color:x?g.palette.gray[800]:g.palette.gray[400],size:"md",textAlign:x?"center":"start",children:e}),x||f.lodashExports.isUndefined(r)?void 0:h]}),n.jsxs(m,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[x&&!f.lodashExports.isUndefined(i)?h:void 0,n.jsxs("div",{style:{display:"flex",gap:"12px"},children:[f.lodashExports.isUndefined(a)?void 0:n.jsx(J,{fontWeight:"bold",size:"md",children:a}),o]}),x&&!f.lodashExports.isUndefined(r)?h:void 0]})]})},ea=({actions:e,children:t,header:i,title:o,tabs:r,footer:a})=>{const l=y.useTheme();return n.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:[n.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:[n.jsxs(m,{display:"flex",flexDirection:"column",gap:.25,children:[n.jsx(I,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:o}),i]}),e&&n.jsx(m,{display:"flex",gap:.25,children:e.map(({icon:s,onClick:c},d)=>n.jsx(H,{icon:s??"paper-plane",iconColor:l.palette.gray[400],iconSize:"sm",iconType:"fa-light",onClick:c,variant:"ghost"},`${d}-${s}`))})]}),n.jsx(m,{display:"flex",pt:.25,width:"100%",children:n.jsx(pt,{items:r})}),n.jsx(m,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:t}),a&&n.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)=>n.jsx(O,{icon:s,onClick:d,variant:p===0?"primary":"tertiary",width:"100%",children:c},`${p}-${c}`))})]})},ta=y.styled.span`
2207
+ ${({theme:e,$bgColor:t=e.palette.secondary[500],$txtDecoration:i="none"})=>`
2208
+ background-color: ${t};
2209
+ border-radius: 5px;
2210
+ color: ${e.palette.white};
2211
+ font-size: 10px;
2212
+ padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
2213
+ text-decoration: ${i}
2214
+ `}
2215
+ `,na=({bgColor:e,children:t,txtDecoration:i,ml:o=1})=>n.jsx(ta,{$bgColor:e,$txtDecoration:i,className:`ml-${o}`,children:t}),ia={lg:"56",md:"30",sm:"12"},{getVariant:oa}=X(e=>({blue:`stroke: ${e.palette.info[500]};`,red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),ra=y.keyframes`
2216
+ 0% {
2217
+ transform: rotateZ(0deg);
2218
+ }
2219
+ 100% {
2220
+ transform: rotateZ(360deg)
2221
+ }
2222
+ `,aa=y.keyframes`
2223
+ 0%,
2224
+ 25% {
2225
+ stroke-dashoffset: 280;
2226
+ transform: rotate(0);
2227
+ }
2228
+
2229
+ 50%,
2230
+ 75% {
2231
+ stroke-dashoffset: 75;
2232
+ transform: rotate(45deg);
2233
+ }
2234
+
2235
+ 100% {
2236
+ stroke-dashoffset: 280;
2237
+ transform: rotate(360deg);
2238
+ }
2239
+ `,sa=y.styled.svg`
2240
+ ${({$size:e="md"})=>y.css`
2241
+ animation: ${ra} 2s linear infinite;
2242
+ animation-timing-function: linear;
2243
+ display: inline-block;
2244
+ width: ${ia[e]}px;
2245
+ `}
2246
+ `,la=y.styled.circle`
2247
+ ${({theme:e,$color:t="red"})=>y.css`
2248
+ animation: 1.4s ease-in-out infinite both ${aa};
2249
+ display: block;
2250
+ fill: transparent;
2251
+ stroke-linecap: round;
2252
+ stroke-dasharray: 283;
2253
+ stroke-dashoffset: 280;
2254
+ stroke-width: 10px;
2255
+ transform-origin: 50% 50%;
2256
+
2257
+ ${oa(e,t)}
2258
+ `}
2259
+ `,ca=y.styled.circle`
2260
+ display: block;
2261
+ fill: transparent;
2262
+ stroke: ${({theme:e})=>e.palette.gray[200]};
2263
+ stroke-linecap: round;
2264
+ stroke-width: 10px;
2265
+ transform-origin: 50% 50%;
2266
+ opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
2267
+ `,kn=({color:e="red",label:t,size:i})=>{const o=y.useTheme();return n.jsxs(m,{alignItems:"center",display:"flex",children:[n.jsxs(sa,{$size:i,viewBox:"0 0 100 100",children:[n.jsx(ca,{$color:e,cx:"50",cy:"50",r:"45"}),n.jsx(la,{$color:e,cx:"50",cy:"50",r:"45"})]}),t&&n.jsx(I,{color:e==="red"||e==="blue"?o.palette.gray[700]:o.palette.white,ml:.5,size:"sm",children:t})]})},da={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},pa=({publicId:e,variant:t})=>n.jsx(m,{...da[t],children:n.jsx(ne,{alt:"logo",publicId:e})}),ga=y.styled(f.Lottie).attrs(({autoplay:e=!0})=>({autoplay:e,className:"comp-lottie"}))`
2268
+ ${({$size:e=16})=>`
2269
+ height: ${e}px;
2270
+ width: ${e}px;
2271
+ `}
2272
+ `,ua=e=>{const{size:t}=e;return n.jsx(ga,{$size:t,...e})},xa=({children:e,commitSha:t,commitShortSha:i,parentElement:o,userInfo:r,setVisibility:a})=>{const l=y.useTheme(),{userName:s,email:c,phone:d,userRole:p}=r;return ee(o,()=>{a(!1)}),n.jsxs(pn,{children:[n.jsx("li",{className:"user-info",children:n.jsxs(m,{display:"inline-flex",gap:.25,width:"100%",children:[n.jsxs(m,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[n.jsx(I,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:s}),n.jsx(I,{color:l.palette.gray[400],size:"sm",children:c}),f.lodashExports.isUndefined(d)?void 0:n.jsx(I,{color:l.palette.gray[400],size:"sm",children:d})]}),n.jsx(m,{children:n.jsx(Y,{tagLabel:p,variant:"role"})})]})}),n.jsx(ae,{}),e,n.jsx(ae,{}),n.jsx("li",{className:"commit-info",children:n.jsx(Q,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${t}`,iconPosition:"hidden",children:n.jsx(I,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},ha=y.styled.button`
2273
+ align-items: center;
2274
+ background-color: transparent;
2275
+ border: unset;
2276
+ cursor: pointer;
2277
+ display: flex;
2278
+ justify-content: center;
2279
+ gap: 5px;
2280
+ padding: 0;
2281
+
2282
+ &:hover p {
2283
+ color: ${N.palette.primary[200]};
2284
+ }
2285
+
2286
+ &:hover span {
2287
+ color: ${N.palette.primary[200]};
2288
+ }
2289
+ `,fa=({message:e,onClickButton:t,buttonText:i,buttonFontWeight:o="regular",show:r=!0,icon:a,onClose:l,buttonSide:s="end"})=>{const c=y.useTheme(),[d,p]=u.useState(r),g=u.useCallback(()=>{p(!1),l==null||l()},[l]);u.useEffect(()=>{p(r)},[r,p]);const x=n.jsxs(ha,{onClick:t,children:[n.jsx(I,{color:c.palette.white,fontWeight:o,size:"sm",textDecoration:"underline",children:i}),n.jsx(D,{icon:a??"arrow-right",iconColor:c.palette.white,iconSize:"lg",iconType:o==="bold"?"fa-regular":"fa-light"})]});return n.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:[n.jsxs(m,{display:"flex",gap:.5,justify:"center",width:"100%",children:[s==="start"&&t?x:void 0,n.jsx(m,{children:typeof e=="string"?n.jsx(I,{color:c.palette.white,display:"inline",size:"sm",children:e}):e}),s==="end"&&t?x:void 0]}),n.jsx(D,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"lg",iconType:"fa-light",onClick:g})]})},ya=y.styled.div`
2290
+ ${({theme:e,$variant:t})=>`
2291
+ background: ${e.palette.white};
2292
+ border: 1px solid ${e.palette.gray[200]};
2293
+ border-radius: ${e.spacing[.25]};
2294
+ border-left: 4px solid ${e.palette[t][500]};
2295
+ box-shadow: ${e.shadows.md};
2296
+ position: relative;
2297
+ display: flex;
2298
+ width: 360px;
2299
+ padding: ${e.spacing[1]} ${e.spacing[1]} ${e.spacing[1]} ${e.spacing[1]};
2300
+ gap: ${e.spacing[.5]};
2301
+
2302
+ button {
2303
+ position: absolute;
2304
+ top: 20px;
2305
+ right: 16px;
2306
+ }
2307
+ `}
2308
+ `,ba=y.styled(J)`
2309
+ font-size: 14px;
2310
+ `,$a=y.styled.div`
2311
+ ${({theme:e,$variant:t})=>`
2312
+ height: ${e.spacing[2.5]};
2313
+ width: ${e.spacing[2.5]};
2314
+ position: relative;
2315
+ flex-shrink: 0;
2316
+
2317
+ & .ellipse-1,
2318
+ & .ellipse-2,
2319
+ & .icon {
2320
+ top: 50%;
2321
+ left: 50%;
2322
+ transform: translate(-50%, -50%);
2323
+ position: absolute;
2324
+ }
2325
+
2326
+ & .ellipse-1 {
2327
+ transform: scale(2.5) translate(-20%, -20%);
2328
+ color: ${e.palette[t][50]};
2329
+ position: absolute;
2330
+ }
2331
+
2332
+ & .ellipse-2 {
2333
+ transform: scale(2) translate(-25%, -25%);
2334
+ color: ${e.palette[t][200]};
2335
+ }
2336
+
2337
+ & .icon {
2338
+ color: ${e.palette[t][500]};
2339
+ }
2340
+ `}
2341
+ `,ma=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",wa=({description:e,onClose:t,title:i,variant:o})=>{const r=y.useTheme(),a=u.useCallback(()=>{t==null||t()},[t]);return n.jsxs(ya,{$variant:o,className:`notification notification__${o}`,role:"alertdialog",children:[n.jsxs($a,{$variant:o,children:[n.jsx(D,{icon:"circle",iconClass:"ellipse-1",iconSize:"lg"}),n.jsx(D,{icon:"circle",iconClass:"ellipse-2",iconSize:"lg"}),n.jsx(D,{icon:ma(o),iconClass:"icon",iconSize:"lg",iconType:"fa-light"})]}),n.jsxs(m,{pr:1.5,children:[n.jsx(ba,{fontWeight:"bold",size:"xs",children:i}),n.jsx(I,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),n.jsx(H,{height:"fit-content",icon:"close",iconColor:r.palette.gray[400],iconSize:"lg",iconType:"fa-light",onClick:a,px:.125,py:.125,variant:"ghost"})]})},va=y.styled.div`
2342
+ width: fit-content;
2343
+ border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
2344
+ border-radius: 4px;
2345
+ background: none;
2346
+ color: ${({theme:e})=>e.palette.black};
2347
+ font-family: ${({theme:e})=>e.typography.type.primary};
2348
+ font-size: ${({theme:e})=>e.typography.text.md};
2349
+ height: 40px;
2350
+ display: flex;
2351
+ align-items: center;
2352
+ justify-content: center;
2353
+ padding: 0.5em;
2354
+ `,ja=y.styled.input`
2355
+ width: 4em;
2356
+ appearance: textfield;
2357
+ border-style: none;
2358
+ padding: 0.5rem;
2359
+ padding-top: 0.5rem;
2360
+ padding-bottom: 0.5rem;
2361
+ padding-left: 0.5rem;
2362
+ background: none;
2363
+
2364
+ &:focus {
2365
+ border-color: unset;
2366
+ box-shadow: none;
2367
+ outline: none;
2368
+ }
2369
+
2370
+ &::-webkit-outer-spin-button,
2371
+ &::-webkit-inner-spin-button {
2372
+ opacity: 1;
2373
+ }
2374
+ `,ka=u.forwardRef(function({autoUpdate:t=!1,decimalPlaces:i=0,defaultValue:o=0,max:r,min:a,name:l,onEnter:s,tooltipMessage:c,...d},p){const g=i<0?0:i,[x,h]=u.useState(Number(o).toFixed(g)),b=u.useCallback(k=>{const v=f.lodashExports.toNumber(k.target.value);k.target.value.endsWith(".")?h(k.target.value):v>=Number(a)&&v<=Number(r)&&(h(String(v)),t&&s(f.lodashExports.toNumber(v.toFixed(g)))),k.stopPropagation()},[t,g,r,a,s]),w=u.useCallback(k=>{k.currentTarget.contains(k.relatedTarget)||h(Number(o).toFixed(g)),k.stopPropagation()},[g,o]),$=u.useCallback(k=>{k.stopPropagation(),k.key==="Enter"&&!f.lodashExports.isEmpty(k.currentTarget.value)&&s(f.lodashExports.toNumber(k.currentTarget.value))},[s]);return n.jsx(va,{onBlur:w,tabIndex:-1,children:n.jsx(U,{id:"numberInputTooltip",tip:c,children:n.jsx(ja,{...d,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(a),"aria-valuenow":Number(x),max:r,min:a,name:l,onChange:b,onKeyUp:$,ref:p,step:10**-g,type:"number",value:x})})})}),Ca={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Qe=({icon:e,label:t,onClick:i,onlyLabel:o=!1,provider:r="GitLab"})=>{const a=y.useTheme();return n.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:i,pb:.5,pl:.25,pr:.25,pt:.5,children:[o?!1:n.jsx(m,{height:"24px",width:"24px",children:e===void 0?n.jsx(ne,{alt:`${r} Logo`,height:"100%",publicId:Ca[r],width:"100%"}):n.jsx(D,{icon:e,iconColor:"#000",iconSize:"xl",iconType:"fa-light"})}),n.jsx(m,{alignItems:"center",display:"flex",minWidth:"24px",children:n.jsx(I,{color:a.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:o?"break-spaces":"nowrap",wordWrap:"unset",children:t??r})})]})},Sa=({align:e="end",buttonLabel:t="Add Credential",children:i,id:o,manualOption:r,providers:a})=>{const l=y.useTheme(),[s,c]=u.useState(!1),d=u.useRef(null);ee(d.current,()=>{c(!1)},!0);const p=u.useCallback(h=>{r==null||r.onClick(h),c(!1)},[r]),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 n.jsxs(m,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:d,width:"max-content",zIndex:10,children:[n.jsx(O,{icon:"plus",onClick:g,variant:"primary",children:t}),n.jsxs(m,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:o,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:s?"visible":"hidden",zIndex:10,children:[Object.keys(a).map(h=>n.jsx(Qe,{onClick:x(h),provider:h},h)),r===void 0?void 0:n.jsx(Qe,{icon:"square-plus",label:r.label??"Add manually",onClick:p}),i]})]})},za=y.styled.div`
2375
+ ${({theme:e})=>`
2376
+ height: ${e.spacing[1]};
2377
+ width: ${e.spacing[1]};
2378
+ position: relative;
2379
+ flex-shrink: 0;
2380
+
2381
+ & .ellipse-1,
2382
+ & .ellipse-2,
2383
+ & .icon {
2384
+ top: 50%;
2385
+ left: 50%;
2386
+ transform: translate(-50%, -50%);
2387
+ position: absolute;
2388
+ }
2389
+
2390
+ & .ellipse-1 {
2391
+ color: ${e.palette.warning[200]};
2392
+ position: absolute;
2393
+ }
2394
+
2395
+ & .ellipse-2 {
2396
+ transform: scale(0.75) translate(-67%, -66%);
2397
+ color: ${e.palette.warning[400]};
2398
+ }
2399
+
2400
+ & .icon {
2401
+ color: ${e.palette.warning[600]};
2402
+ font-size: ${e.spacing[.5]};
2403
+ }
2404
+ `}
2405
+ `,Cn=({margin:e,onClick:t,text:i})=>{const o=y.useTheme(),r=n.jsxs(za,{children:[n.jsx(D,{icon:"circle",iconClass:"ellipse-1",iconSize:"lg"}),n.jsx(D,{icon:"circle",iconClass:"ellipse-2",iconSize:"lg"}),n.jsx(D,{icon:"crown",iconClass:"icon",iconSize:"lg"})]});return i!==void 0?n.jsx(m,{cursor:"pointer",display:"inline-block",mr:e,onClick:t,children:n.jsxs(m,{alignItems:"center",bgColor:o.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[r,n.jsx(I,{color:o.palette.warning[500],display:"inline",ml:.25,size:"xs",children:i})]})}):n.jsx(m,{display:"inline-block",mr:e,onClick:t,children:r})},Ta=({score:e})=>{const t=y.useTheme(),i=e<=33?"priority-bars-low":"priority-bars-medium",o=e>66||e===0?"priority-bars-high":i;return n.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.25,children:[n.jsx(D,{icon:o,iconClass:e<=66?"fa-kit-duotone":"",iconColor:e>0?t.palette.primary[500]:t.palette.gray[200],iconSize:"lg",iconType:"fa-kit",secondaryColor:t.palette.gray[200]}),n.jsx(I,{color:t.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:Ia}=X(e=>({compliance:`
2406
+ display: inline-flex;
2407
+
2408
+ &.horizontal {
2409
+ height: ${e.spacing[.75]};
2410
+ }
2411
+ &.vertical {
2412
+ width: ${e.spacing[.75]};
2413
+ }
2414
+ `,default:`
2415
+ display: inline-flex;
2416
+
2417
+ &.horizontal {
2418
+ height: ${e.spacing[.5]};
2419
+ }
2420
+ &.vertical {
2421
+ width: ${e.spacing[.5]};
2422
+ }
2423
+ .progress-bar {
2424
+ background-color: ${e.palette.primary[500]};
2425
+ }
2426
+ `,progressIndicator:`
2427
+ display: flex;
2428
+
2429
+ &.horizontal {
2430
+ height: ${e.spacing[.125]};
2431
+ }
2432
+ &.vertical {
2433
+ width: ${e.spacing[.125]};
2434
+ }
2435
+ .progress-bar {
2436
+ background-color: ${e.palette.primary[500]};
2437
+ }
2438
+ `,progressIndicatorError:`
2439
+ display: flex;
2440
+
2441
+ &.horizontal {
2442
+ height: ${e.spacing[.125]};
2443
+ }
2444
+ &.vertical {
2445
+ width: ${e.spacing[.125]};
2446
+ }
2447
+ .progress-bar {
2448
+ background-color: ${e.palette.error[200]};
2449
+ }
2450
+ `,small:`
2451
+ color: ${e.palette.primary[500]};
2452
+ display: inline-flex;
2453
+
2454
+ &.horizontal {
2455
+ height: ${e.spacing[.25]};
2456
+ }
2457
+ &.vertical {
2458
+ width: ${e.spacing[.25]};
2459
+ }
2460
+ .progress-bar {
2461
+ background-color: ${e.palette.primary[500]};
2462
+ }
2463
+ `})),Ea=(e,t)=>t<50?e.palette.error[500]:t<80?e.palette.warning[500]:e.palette.success[500],Ra=y.styled.div`
2464
+ ${({theme:e,$minWidth:t,$orientation:i,$rounded:o,$variant:r})=>`
2465
+ background-color: ${e.palette.gray[100]};
2466
+ border-radius: ${o?"100px":"unset"};
2467
+ ${i==="horizontal"?"min-width":"min-height"}: ${t}px;
2468
+ ${i==="horizontal"?"":"height: 100%;"}
2469
+
2470
+ ${Ia(e,r)}
2471
+
2472
+ `}
2473
+ `,Da=y.styled.div`
2474
+ ${({theme:e,$percentage:t,$rounded:i,$variant:o})=>`
2475
+ display: inline-flex;
2476
+ width: ${t}%;
2477
+ max-width: 100%;
2478
+ min-width: 0%;
2479
+ height: 100%;
2480
+ border-radius: ${i?"100px":"unset"};
2481
+ border-end-end-radius: ${i&&t<100?"0":"inherit"};
2482
+ border-start-end-radius: ${i&&t<100?"0":"inherit"};
2483
+ background-color: ${o==="compliance"?Ea(e,t):"inherit"};
2484
+ `}
2485
+ `,Sn=({minWidth:e=100,percentage:t,percentageLocation:i="right",showPercentage:o=!1,orientation:r="horizontal",rounded:a=!0,variant:l="default"})=>{const s=o&&i==="left",c=o?n.jsx(m,{alignItems:"center",display:"flex",justify:s?"flex-end":"flex-start",width:"40px",children:n.jsx(I,{ml:.5,mr:s?.5:0,size:"sm",children:`${t}%`})}):null,d=n.jsx(Ra,{$minWidth:e,$orientation:r,$rounded:a,$variant:l,className:r,children:n.jsx(Da,{$percentage:t,$rounded:a,$variant:l,className:"progress-bar"})});return n.jsxs(m,{alignItems:"center",display:"inline-flex",flexDirection:s?"row-reverse":"row",height:r==="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})=>n.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:n.jsxs("g",{id:"Group 8",children:[n.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"}),n.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"}),n.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"}),n.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"}),n.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,t)=>{switch(e){case"completed":return t.palette.success[500];case"disabled":return t.palette.gray[300];case"error":return t.palette.error[500];case"in progress":return t.palette.gray[800];case"not completed":default:return t.palette.gray[800]}},Na=y.styled(D)`
2486
+ box-sizing: border-box;
2487
+
2488
+ border-right: ${({theme:e,$variant:t})=>t==="in progress"?`1px dashed ${Tn("in progress",e)}`:"unset"};
2489
+ border-radius: 50%;
2490
+ `,Fa=y.styled.div`
2491
+ ${({$minWidth:e,$orientation:t})=>`
2492
+ display: flex;
2493
+ flex-direction: ${t==="horizontal"?"row":"column"};
2494
+
2495
+ @media (width <= ${e}) {
2496
+ display: flex;
2497
+ flex-flow: row wrap;
2498
+ }
2499
+ `}
2500
+ `,Aa=150,La=({label:e,minWidth:t=Aa,state:i="not completed",stepNumber:o=1,title:r,onClick:a,orientation:l="horizontal"})=>{const s=y.useTheme(),c={completed:"circle-check",disabled:"circle-dashed",error:"circle-exclamation","in progress":"circle-half","not completed":"circle-dashed"},d=i==="disabled";return n.jsxs(m,{display:"inline-flex",flexDirection:l==="horizontal"?"column":"row",minWidth:`${t}px`,children:[n.jsx(Sn,{minWidth:t,orientation:l,percentage:d||i==="not completed"?0:100,rounded:!1,variant:i==="error"?"progressIndicatorError":"progressIndicator"}),n.jsxs(m,{display:"flex",gap:.5,px:.5,py:.5,width:"100%",children:[i==="in progress"?n.jsx(zn,{onClick:a}):n.jsx(Na,{$variant:i,clickable:!d,disabled:d,icon:c[i],iconColor:Tn(i,s),iconSize:"lg",iconType:"fa-light",onClick:d?void 0:a}),n.jsxs(m,{children:[n.jsx(I,{color:s.palette.gray[d?300:800],fontWeight:"bold",size:"sm",children:`${o}.${r}`}),e===void 0?null:n.jsx(I,{color:s.palette.gray[d?300:600],size:"xs",children:e})]})]})]})},Pa=150,Oa=({children:e,orientation:t="horizontal",minWidth:i=Pa})=>{const o=u.Children.toArray(e),r=u.useMemo(()=>u.Children.count(e),[e]),a=u.useMemo(()=>r*i,[r,i]);return n.jsx(Fa,{$minWidth:`${a}px`,$orientation:t,children:o.map(l=>u.cloneElement(l,{minWidth:i,orientation:t}))})},In=({description:e="",highlightDescription:t="",mobile:i})=>{const o=y.useTheme(),r=i?"md":"lg",a=typeof t=="string",l=a?"":new RegExp(`(${t.join("|")})`,"u");return t.length>0?n.jsx(I,{display:"inline",lineSpacing:1.5,size:r,textAlign:i?"start":"center",children:a?n.jsxs(u.Fragment,{children:[n.jsx(he,{color:o.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:t}),e]}):e.split(l).map((s,c)=>t.includes(s)?n.jsx(he,{color:o.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:s},`${c+1}-bold`):s)}):n.jsx(I,{lineSpacing:1.5,size:r,textAlign:i?"start":"center",children:e})},Ma=({_portal:e=!1,cancelButton:t,darkBackground:i=!1,children:o,confirmButton:r,container:a,description:l,highlightDescription:s="",image:c,maxWidth:d,mobile:p=!1,title:g,titleColor:x})=>{const h=y.useTheme(),{alt:b,src:w,width:$="77px",height:k="77px"}=c,v=u.useCallback(()=>{t==null||t.onClick()},[t]),C=u.useCallback(()=>{r==null||r.onClick()},[r]),j=n.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=n.jsx(ne,{alt:b,height:k,publicId:w,width:$}),E=n.jsx(m,{alignItems:"center","aria-label":g,"aria-modal":"true",bgColor:i?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:e?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:n.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:[n.jsxs(m,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[p?j:void 0,p?n.jsx(m,{alignItems:"center",height:k,justify:"center",mr:0,children:n.jsx(m,{bgColor:h.palette.gray[100],left:"0",position:"absolute",textAlign:"center",width:"100%",children:z})}):z,n.jsxs(m,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[p?void 0:j,n.jsx(In,{description:l,highlightDescription:s,mobile:p})]})]}),o&&n.jsx(m,{mb:1,scroll:"y",children:n.jsx(m,{height:"100%",children:o})}),n.jsxs(m,{alignItems:"flex-start",display:"flex",gap:1,justify:p?"start":"center",children:[f.lodashExports.isObject(r)?n.jsx(O,{onClick:C,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,f.lodashExports.isObject(t)?n.jsx(O,{onClick:v,variant:(t==null?void 0:t.variant)??"tertiary",children:t==null?void 0:t.text},t==null?void 0:t.key):void 0]})]})});return e?le.createPortal(E,a??document.body):E},Ha=y.styled.div.attrs({className:"comp-scroll-up"})`
2501
+ position: fixed;
2502
+ bottom: ${({bottom:e})=>e??"unset"};
2503
+ right: ${({right:e})=>e??"unset"};
2504
+ z-index: ${({zIndex:e})=>e??"unset"};
2505
+ left: ${({left:e})=>e??"unset"};
2506
+ `,Wa=({scrollerId:e="dashboard",left:t,visibleAt:i=500,bottom:o,right:r,zIndex:a=100})=>{const[l,s]=u.useState(!1),[c,d]=u.useState(null),p=y.useTheme();u.useEffect(()=>{d(document.getElementById(e)),c==null||c.addEventListener("scroll",()=>{s(c.scrollTop>i)})},[c,e,i]);const g=u.useCallback(()=>{c==null||c.scrollTo({behavior:"smooth",top:0})},[c]);return l?n.jsx(Ha,{bottom:o,left:t,right:r,zIndex:a,children:n.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},Ba={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]}},_a=({textL:e,textR:t,variant:i})=>{const o=y.useTheme(),{bgColor:r,colorL:a,colorR:l}=Ba[i];return n.jsxs(m,{alignItems:"flex-start",display:"inline-flex",children:[e?n.jsx(m,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${r}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:n.jsx(I,{color:a,size:"xs",children:e})}):void 0,n.jsx(m,{alignItems:"center",bgColor:r,border:`1px solid ${r}`,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:n.jsx(I,{color:l,size:"xs",children:t})})]})},Va=(e,t)=>{const i={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]},o={disabled:N.palette.gray[400],enabled:N.palette.gray[800]},r={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:t<1?i.none:i[e],iconText:f.lodashExports.capitalize(e.charAt(0)),iconTextColor:t<1?r.none:r[e],textColor:t<1?o.disabled:o.enabled}},xe=({variant:e,value:t})=>{const{iconColor:i,iconText:o,iconTextColor:r,textColor:a}=Va(e,t),l=f.lodashExports.capitalize(e.charAt(0))+e.slice(1);return n.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[n.jsx(U,{id:l,place:"top",tip:l,children:n.jsx(m,{alignItems:"center",bgColor:i,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:n.jsx(I,{color:r,size:"sm",textAlign:"center",children:o})})}),n.jsx(I,{color:a,size:"sm",children:t})]})},Ua=({critical:e,high:t,medium:i,low:o})=>n.jsxs(m,{alignItems:"center",display:"inline-flex",gap:1,children:[n.jsx(xe,{value:e,variant:"critical"}),n.jsx(xe,{value:t,variant:"high"}),n.jsx(xe,{value:i,variant:"medium"}),n.jsx(xe,{value:o,variant:"low"})]}),Ga=y.styled.div`
2507
+ ${({theme:e})=>`
2508
+ border-radius: ${e.spacing[.25]};
2509
+ cursor: pointer;
2510
+ display: flex;
2511
+ gap: ${e.spacing[.5]};
2512
+ justify-content: end;
2513
+ position: relative;
2514
+ z-index: 20;
2515
+
2516
+ &:hover {
2517
+ background-color: ${e.palette.gray[100]};
2518
+ }
2519
+
2520
+ &:hover > div {
2521
+ display: block;
2522
+ }
2523
+ `}
2524
+ `,Ya=({visibleElement:e,hiddenElement:t})=>n.jsxs(Ga,{children:[e,n.jsx(m,{display:"none",position:"absolute",top:"100%",zIndex:10,children:t})]}),En=({customBadge:e=void 0,description:t,icon:i,onClick:o,requiresUpgrade:r=!1,title:a})=>{const l=y.useTheme();return n.jsxs(m,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:o,px:1.25,py:1,width:"100%",children:[n.jsx(m,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:n.jsx(D,{icon:i,iconColor:l.palette.gray[800],iconSize:"sm",ml:.5,mr:.5})}),n.jsxs(m,{children:[n.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.5,children:[n.jsx(I,{color:l.palette.gray[800],size:"sm",children:a}),r?n.jsx(Cn,{text:"Upgrade"}):void 0,e]}),n.jsx(I,{color:l.palette.gray[400],size:"xs",children:t})]})]})},Ka=y.styled(f.m.div)`
2525
+ ${({theme:e})=>`
2526
+ background-color: ${e.palette.white};
2527
+ box-shadow: ${e.shadows.lg};
2528
+ max-width: 350px;
2529
+ min-width: 350px;
2530
+ height: 100%;
2531
+ position: absolute;
2532
+ right: 0;
2533
+ top: 0;
2534
+ overflow: hidden auto;
2535
+ scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
2536
+ scroll-padding: ${e.spacing[.5]};
2537
+ scrollbar-width: thin;
2538
+ z-index: 99999;
2539
+
2540
+ > div {
2541
+ border: 1px solid ${e.palette.gray[100]};
2542
+ width: auto;
2543
+ min-height: 100vh;
2544
+ height: auto;
2545
+ }
2546
+ `}
2547
+ `,qa=({children:e,closeIconId:t="close-menu",isOpen:i,items:o,onClose:r,title:a})=>{const l=y.useTheme(),s=u.useRef(null),c=u.useCallback(d=>()=>{d(),r()},[r]);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;i&&!w&&!((($=s.current)==null?void 0:$.contains(x))??!1)&&r()};return d.forEach(g=>{document.addEventListener(g,p,{passive:!0})}),()=>{d.forEach(g=>{document.removeEventListener(g,p)})}},[i,r]),n.jsx(f.LazyMotion,{features:f.domAnimation,children:n.jsx(Ka,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:s,transition:{bounce:0,duration:.6,type:"spring"},children:n.jsxs(m,{height:"100%",position:"relative",children:[n.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:[n.jsx(I,{color:l.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:a}),n.jsx(H,{icon:"close",iconColor:l.palette.gray[400],iconSize:"lg",iconTransform:"grow-4",iconType:"fa-light",id:t,onClick:r,px:.25,py:.25,variant:"ghost"})]}),n.jsx(m,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:n.jsxs(m,{py:1.25,children:[(o??[]).map(({customBadge:d,description:p,icon:g,onClick:x,requiresUpgrade:h,title:b})=>n.jsx(En,{customBadge:d,description:p,icon:g,onClick:c(x),requiresUpgrade:h,title:b},b)),e&&n.jsx(m,{px:1.25,children:e})]})})]})})})},Za=(e,t)=>t>=50?`
2548
+ ${e.palette.gray[200]} 50%,
2549
+ ${e.palette.primary[500]} 50.05%,
2550
+ ${e.palette.primary[500]} ${t}%,
2551
+ ${e.palette.gray[200]} ${t}%
2552
+ `:`
2553
+ ${e.palette.gray[200]} ${t}%,
2554
+ ${e.palette.primary[500]} ${t}%,
2555
+ ${e.palette.primary[500]} 50%,
2556
+ ${e.palette.gray[200]} 50.05%,
2557
+ ${e.palette.gray[200]} 100%
2558
+ `,Xa=y.styled.div`
2559
+ ${({theme:e,$min:t,$value:i})=>`
2560
+ align-items: center;
2561
+ align-self: stretch;
2562
+ display: flex;
2563
+ flex-direction: column;
2564
+ justify-content: end;
2565
+ gap: ${e.spacing[.75]};
2566
+ width: 100%;
2567
+
2568
+ .track {
2569
+ background: linear-gradient(
2570
+ to right,
2571
+ ${t>=0?`
2572
+ ${e.palette.primary[500]} ${i}%,
2573
+ ${e.palette.gray[200]} ${i}%
2574
+ `:Za(e,i)}
2575
+ );
2576
+ border-radius: ${e.spacing[.125]};
2577
+ height: ${e.spacing[.25]};
2578
+ width: 100%;
2579
+ }
2580
+
2581
+ .track.disabled {
2582
+ opacity: 0.4;
2583
+ }
2584
+
2585
+ .thumb {
2586
+ background: ${e.palette.white};
2587
+ border-radius: ${e.spacing[1.25]};
2588
+ box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.30);
2589
+ top: 50%;
2590
+ height: 20px;
2591
+ width: 20px;
2592
+ }
2593
+
2594
+ .thumb.dragging {
2595
+ border: 1px solid ${e.palette.primary[500]};
2596
+ }
2597
+ `}
2598
+ `,Ja=y.styled.div`
2599
+ ${({theme:e})=>`
2600
+ align-items: center;
2601
+ display: flex;
2602
+ justify-content: space-between;
2603
+ height: ${e.spacing[.625]};
2604
+ width: 100%;
2605
+
2606
+ p {
2607
+ color: ${e.palette.gray[400]};
2608
+ font-family: ${e.typography.type.primary};
2609
+ font-size: ${e.spacing[.5]};
2610
+ }
2611
+ `}
2612
+ `,Qa=y.styled.output`
2613
+ ${({theme:e})=>`
2614
+ align-items: flex-end;
2615
+ border-radius: ${e.spacing[.5]};
2616
+ border: 1px solid ${e.palette.gray[300]};
2617
+ background: ${e.palette.white};
2618
+ display: flex;
2619
+ gap: ${e.spacing[.625]};
2620
+ padding: ${e.spacing[.625]} ${e.spacing[.75]};
2621
+ width: 59px;
2622
+ `}
2623
+ `,Rn=({state:e,trackRef:t,index:i,name:o})=>{const r=u.useRef(null),{thumbProps:a,inputProps:l,isDragging:s}=f.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:t,inputRef:r},e);return n.jsx("div",{...a,className:`thumb ${s?"dragging":""}`,children:n.jsx(f.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:n.jsx("input",{...l,"aria-label":o,ref:r})})})},es=(e,t,i)=>Math.round((i-e)/(t-e)*100),ts=e=>{const t=y.useTheme(),i=u.useRef(null),{label:o,minValue:r=0,maxValue:a=100,name:l,setValue:s,watch:c}=e,d=f.$a916eb452884faea$export$b7a616150fdb9f44(),p=f.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:d,onChange(b){s==null||s(l,b)},value:c==null?void 0:c(l)}),g=es(r,a,p.getThumbValue(0)),{groupProps:x,trackProps:h}=f.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},p,i);return n.jsx(V,{htmlFor:l,label:o,children:n.jsxs(m,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[n.jsxs(Xa,{...x,$min:r??0,$value:g,className:"slider",children:[n.jsx("div",{...h,className:`track ${p.isDisabled?"disabled":""}`,ref:i,children:n.jsx(Rn,{index:0,name:l,state:p,trackRef:i})}),n.jsxs(Ja,{children:[n.jsx("p",{children:`${d.format(r)} (Low)`}),r<0&&n.jsx("p",{children:"0"}),n.jsx("p",{children:`${d.format(a)} (High)`})]})]}),n.jsx(Qa,{children:n.jsx(I,{color:t.palette.gray[800],size:"sm",textAlign:"right",children:p.getThumbValueLabel(0)})})]})})},{getVariant:ns}=X(e=>({completed:`
2624
+ background-color: ${e.palette.primary[500]};
2625
+ color: ${e.palette.white};
2626
+
2627
+ &::after {
2628
+ background-color: ${e.palette.primary[500]};
2629
+ }
2630
+ `,current:`
2631
+ background-color: ${e.palette.primary[500]};
2632
+ color: ${e.palette.white};
2633
+
2634
+ &::after {
2635
+ background-color: ${e.palette.gray[200]};
2636
+ }
2637
+ `,disabled:`
2638
+ background-color: ${e.palette.gray[200]};
2639
+ outline: 1px solid ${e.palette.gray[400]};
2640
+ outline-offset: -1px;
2641
+ color: ${e.palette.gray[400]};
2642
+
2643
+ &::after {
2644
+ background-color: ${e.palette.gray[200]};
2645
+ }
2646
+ `})),is=y.styled.div`
2647
+ ${({theme:e})=>`
2648
+ align-items: stretch;
2649
+ background-color: ${e.palette.white};
2650
+ display: flex;
2651
+ flex-direction: column;
2652
+ height: 100%;
2653
+ padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
2654
+ scroll-behavior: unset;
2655
+ `}
2656
+ `,os=y.styled.div`
2657
+ display: flex;
2658
+ flex-direction: row;
2659
+ margin-bottom: ${({theme:e})=>e.spacing[2]};
2660
+
2661
+ &:last-child > div:first-child > span::after {
2662
+ display: none;
2663
+ }
2664
+ `,rs=y.styled.div`
2665
+ ${({theme:e})=>`
2666
+ display: inline-flex;
2667
+ font-family: ${e.typography.type.primary};
2668
+ font-size: ${e.typography.text.sm};
2669
+ line-height: ${e.spacing[1.25]};
2670
+ margin-top: ${e.spacing[1]};
2671
+
2672
+ & > button:first-child {
2673
+ margin-right: ${e.spacing[.5]};
2674
+ }
2675
+ `}
2676
+ `,as=y.styled.span`
2677
+ ${({theme:e,$variant:t})=>`
2678
+ border-radius: 6px;
2679
+ display: inline-block;
2680
+ text-align: center;
2681
+ font-size: ${e.typography.text.sm};
2682
+ font-weight: ${e.typography.weight.bold};
2683
+ font-family: ${e.typography.type.primary};
2684
+ line-height: ${e.spacing[1]};
2685
+ padding: ${`${e.spacing[.5]} ${e.spacing[.5]}`};
2686
+ height: ${e.spacing[2]};
2687
+ width: ${e.spacing[2]};
2688
+
2689
+ &::after {
2690
+ content: "";
2691
+ position: absolute;
2692
+ top: calc(32px + ${e.spacing[.5]});
2693
+ left: 50%;
2694
+ bottom: 0;
2695
+ width: 2px;
2696
+ height: calc(100% - ${e.spacing[1]});
2697
+ }
2698
+
2699
+ ${ns(e,t)}
2700
+ `}
2701
+ `,ss=({button:{disabled:e=!1,text:t,type:i="button",onClick:o},steps:r})=>{const[a,l]=u.useState(1),s=u.useCallback((c,d)=>()=>{l(p=>p+c),d==null||d()},[]);return n.jsx(is,{children:r.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 n.jsxs(os,{children:[n.jsx(m,{maxWidth:"40px",position:"relative",children:n.jsx(as,{$variant:$,children:$==="completed"?n.jsx(D,{icon:"check",iconSize:"lg",iconType:"fa-solid"}):b})}),n.jsxs(m,{ml:1.5,width:"100%",children:[n.jsx(J,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:g}),$==="current"&&n.jsxs(m,{children:[p,n.jsxs(rs,{children:[a>1&&n.jsx(O,{disabled:c.isDisabledPrevious??!1,onClick:s(-1,h),variant:"tertiary",children:"Previous"}),a<r.length?n.jsx(O,{disabled:c.isDisabledNext??!1,onClick:s(1,x),variant:"primary",children:"Next step"}):n.jsx(O,{disabled:e,onClick:o,type:i,variant:"primary",children:t})]})]})]})]},c.title)})})},ls=e=>{const t=(r,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(t(c,g))}const p=r===""?"":`${r}.`;return s.concat([[p+c,d]])},[]),i=Object.entries(e),o=t("",i).filter(([r])=>r!=="");return Object.fromEntries(o)},zt=e=>e.map(ls),Dn=({csvConfig:e={},data:t,children:i})=>{const{columns:o=void 0,export:r=!1,headers:a={},name:l="Report"}=e,s=u.useMemo(()=>f._.isUndefined(o)?zt(t):zt(t).map(p=>f._.pick(p,o)),[t,o]),c=u.useMemo(()=>s.length>0&&!f._.isEmpty(a),[s.length,a]),d=u.useMemo(()=>(c?Object.keys(s[0]):[]).map(p=>f._.includes(Object.keys(a),p)?{key:p,label:a[p]}:{key:p,label:p}),[c,s,a]);return r?n.jsx(f.CSVLink,{data:s,filename:l,headers:c?d:void 0,children:i}):n.jsx(u.Fragment,{children:i})},Nn=e=>{const{table:t}=e,{meta:i}=t.options,[o,r]=u.useState(0),[,a]=t.getHeaderGroups(),l=t.getState(),s=u.useMemo(()=>t.getAllLeafColumns().filter(g=>g.id!=="selection"),[t]),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:(i==null?void 0:i.defaultColumnOrder)??[],items:c,name:"table-column-management",setColumnOrder:t.setColumnOrder,setColumnVisibility:t.setColumnVisibility}),p=u.useCallback(()=>{d.toggle()},[d]);return u.useEffect(()=>{r(t.getVisibleLeafColumns().filter(g=>g.id!=="selection").length)},[t,l]),n.jsxs("div",{id:"columns-filter",children:[n.jsx(O,{icon:"columns",id:"columns-toggle-btn",onClick:p,variant:"ghost",children:n.jsx("p",{children:o})}),n.jsx(fn,{modalRef:d,title:"Manage columns",variant:f.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}),cs=y.styled.span`
2702
+ transition: all 150ms;
2703
+ width: 5px;
2704
+ height: 10px;
2705
+ padding: ${({theme:e})=>e.spacing[.625]};
2706
+ display: flex;
2707
+ flex-direction: column;
2708
+ justify-content: center;
2709
+ gap: 0.125rem;
2710
+ align-items: center;
2711
+
2712
+ svg {
2713
+ margin-top: -4px;
2714
+ margin-bottom: -2px;
2715
+ }
2716
+
2717
+ span:first-child {
2718
+ transition: opacity 150ms;
2719
+ opacity: ${({$variant:e})=>e==="desc"?0:1};
2720
+ }
2721
+
2722
+ span:last-child {
2723
+ transition: opacity 150ms;
2724
+ opacity: ${({$variant:e})=>e==="asc"?0:1};
2725
+ }
2726
+ `,et=e=>{const t=y.useTheme(),{variant:i}=e;return n.jsxs(cs,{$variant:i,children:[n.jsx(D,{icon:"caret-up",iconColor:t.palette.gray[700],iconSize:"xs",iconType:"fa-solid"}),n.jsx(D,{icon:"caret-down",iconColor:t.palette.gray[700],iconSize:"xs",iconType:"fa-solid"})]})},ds=y.styled.div`
2727
+ position: relative;
2728
+
2729
+ div:has(table) {
2730
+ scrollbar-color: ${({theme:e})=>e.palette.gray[600]}
2731
+ transparent;
2732
+ scrollbar-width: thin;
2733
+ overflow-x: auto;
2734
+ margin-left: -3px;
2735
+ padding-left: 3px;
2736
+ padding-bottom: 5px;
2737
+ }
2738
+
2739
+ table {
2740
+ overflow-x: hidden;
2741
+ white-space: nowrap;
2742
+ margin: 0;
2743
+ border-collapse: collapse;
2744
+ width: 100%;
2745
+ }
2746
+
2747
+ table thead {
2748
+ background-color: ${({theme:e})=>e.palette.gray[50]};
2749
+ position: sticky;
2750
+ z-index: 1;
2751
+ top: 0;
2752
+ }
2753
+
2754
+ table tbody {
2755
+ background-color: ${({theme:e})=>e.palette.white};
2756
+ }
2757
+
2758
+ table tr {
2759
+ height: ${({theme:e})=>e.spacing[2.5]};
2760
+ border: 1px solid ${({theme:e})=>e.palette.gray[200]};
2761
+ }
2762
+
2763
+ table thead tr {
2764
+ background-color: transparent;
2765
+ border-bottom: none;
2766
+ }
2767
+
2768
+ table thead tr:hover {
2769
+ background-color: transparent;
2770
+ }
2771
+
2772
+ table thead tr:first-child {
2773
+ height: ${({theme:e})=>e.spacing[2.5]};
2774
+ border: none;
2775
+ }
2776
+
2777
+ table tbody tr {
2778
+ &:has(input[disabled]) {
2779
+ background-color: ${({theme:e})=>e.palette.gray[100]};
2780
+ }
2781
+
2782
+ &:has(input[disabled]):hover {
2783
+ background-color: ${({theme:e})=>e.palette.gray[100]};
2784
+ }
2785
+ }
2786
+
2787
+ table tr:hover:not([aria-expanded="true"], #description) {
2788
+ background-color: ${({theme:e})=>e.palette.gray[50]};
2789
+ }
2790
+
2791
+ table tr#description {
2792
+ align-items: center;
2793
+ background-color: ${({theme:e})=>e.palette.gray[50]};
2794
+ }
2795
+
2796
+ table tbody tr.row-no-data {
2797
+ &:hover {
2798
+ background-color: ${({theme:e})=>e.palette.white};
2799
+ }
2800
+ }
2801
+
2802
+ tr {
2803
+ &:first-child th:first-child > div {
2804
+ border-top-left-radius: 8px;
2805
+ }
2806
+
2807
+ &:first-child th:last-child > div {
2808
+ border-top-right-radius: 8px;
2809
+ }
2810
+
2811
+ th {
2812
+ position: relative;
2813
+ font-size: ${({theme:e})=>e.typography.text.sm};
2814
+ font-weight: ${({theme:e})=>e.typography.weight.bold};
2815
+ color: ${({theme:e})=>e.palette.gray[800]};
2816
+ padding: unset;
2817
+ height: ${({theme:e})=>e.spacing[3]};
2818
+ white-space: pre-line;
2819
+
2820
+ &:hover div:first-child {
2821
+ background-color: ${({theme:e})=>e.palette.gray[300]};
2822
+ }
2823
+
2824
+ &:first-child {
2825
+ border-right: 1px solid ${({theme:e})=>e.palette.gray[25]};
2826
+
2827
+ svg {
2828
+ margin-right: unset;
2829
+ }
2830
+
2831
+ &:has(input) {
2832
+ padding: unset;
2833
+ }
2834
+
2835
+ &:has(input) + th:nth-child(2) {
2836
+ border-right: 1px solid
2837
+ ${({theme:e})=>e.palette.gray[25]};
2838
+ }
2839
+
2840
+ &:hover div:first-child {
2841
+ background-color: ${({theme:e})=>e.palette.gray[200]};
2842
+ }
2843
+ }
2844
+ }
2845
+ }
2846
+
2847
+ tbody tr:not(.row-no-data) td {
2848
+ font-size: ${({theme:e})=>e.typography.text.sm};
2849
+ white-space: pre-line;
2850
+ padding-left: 8px;
2851
+ padding-right: 8px;
2852
+
2853
+ &.clickable {
2854
+ cursor: pointer;
2855
+
2856
+ &:hover p {
2857
+ text-decoration: underline;
2858
+ color: ${({theme:e})=>e.palette.gray[400]};
2859
+ }
2860
+
2861
+ &:has(input) {
2862
+ padding: ${({theme:e})=>e.spacing[.5]};
2863
+
2864
+ & + td:hover p {
2865
+ text-decoration: underline;
2866
+ color: ${({theme:e})=>e.palette.gray[400]};
2867
+ }
2868
+ }
2869
+ }
2870
+
2871
+ &:first-child {
2872
+ border-right: 1px solid ${({theme:e})=>e.palette.gray[200]};
2873
+
2874
+ svg {
2875
+ margin-right: unset;
2876
+ }
2877
+
2878
+ &:has(input) {
2879
+ padding: ${({theme:e})=>e.spacing[.5]};
2880
+
2881
+ & + td {
2882
+ cursor: pointer;
2883
+ border-right: 1px solid
2884
+ ${({theme:e})=>e.palette.gray[200]};
2885
+ }
2886
+ }
2887
+ }
2888
+ }
2889
+ `,ps=y.styled.div`
2890
+ ${({$width:e,theme:t})=>`
2891
+ display: flex;
2892
+ flex-direction: column;
2893
+ align-items: stretch;
2894
+ flex: 1 0 auto;
2895
+ padding-right: 5px;
2896
+ width: ${e}px;
2897
+
2898
+ div {
2899
+ position: relative;
2900
+ font-weight: 400;
2901
+ font-size: ${t.typography.text.sm};
2902
+ text-align: left;
2903
+
2904
+ color: ${t.palette.gray[600]};
2905
+ background-color: ${t.palette.gray[100]};
2906
+ border-radius: ${t.spacing[.25]};
2907
+ padding: ${t.spacing[.5]} ${t.spacing[.75]};
2908
+ margin: ${t.spacing[.5]} 0;
2909
+ height: ${t.spacing[2.25]};
2910
+
2911
+ span {
2912
+ text-decoration: underline;
2913
+ cursor: pointer;
2914
+ }
2915
+ }
2916
+ `}
2917
+ `,gs=y.styled.div`
2918
+ align-items: center;
2919
+ background-color: transparent;
2920
+ display: flex;
2921
+ gap: ${({theme:e})=>e.spacing[1]};
2922
+ padding: ${({theme:e})=>`${e.spacing[.75]} ${e.spacing[1.25]}`};
2923
+
2924
+ .pagination-container {
2925
+ display: flex;
2926
+ flex-direction: row;
2927
+ align-items: center;
2928
+ gap: ${({theme:e})=>e.spacing[1]};
2929
+ }
2930
+
2931
+ .footer-container {
2932
+ display: flex;
2933
+ align-items: center;
2934
+ flex: 1 0 auto;
2935
+ height: 100%;
2936
+
2937
+ &::before {
2938
+ display: block;
2939
+ content: "";
2940
+ height: ${({theme:e})=>e.typography.text.md};
2941
+ border-left: 1px solid ${({theme:e})=>e.palette.gray[300]};
2942
+ margin: 0;
2943
+ margin-right: ${({theme:e})=>e.spacing[.5]};
2944
+ }
2945
+ }
2946
+ `,Tt=y.styled.div`
2947
+ transition: all 150ms;
2948
+ content: "";
2949
+ z-index: 2;
2950
+ position: absolute;
2951
+ bottom: 0;
2952
+ right: -1px;
2953
+ width: 30px;
2954
+ height: 100%;
2955
+ margin-right: 0;
2956
+ cursor: col-resize;
2957
+ user-select: none;
2958
+ touch-action: none;
2959
+ border-right: 1px solid transparent;
2960
+
2961
+ &:hover {
2962
+ transition: all 150ms;
2963
+ border-right: 1px solid ${({theme:e})=>e.palette.black};
2964
+ }
2965
+ `,Fn=()=>{const e=y.useTheme(),{table:t}=u.useContext(te),{groupHeaders:i,tooltips:o}=(t==null?void 0:t.options.meta)??{},r=u.useCallback(d=>()=>{d.column.getCanSort()&&(t==null||t.setPageIndex(0),d.column.toggleSorting())},[t]),a=d=>p=>{d.getResizeHandler()(p)};if(i)return n.jsx("thead",{children:t==null?void 0:t.getHeaderGroups().map(d=>n.jsx("tr",{"data-testid":"row-headers",children:d.headers.map(p=>{var b;const{isPlaceholder:g}=p,x=g?p.subHeaders[0]:p;return f._.isUndefined(p.column.parent)&&p.depth>1?null:n.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:[n.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:r(x),pl:.5,pt:g?3:0,whiteSpace:"nowrap",width:"100%",children:[f.flexRender(x.column.columnDef.header,x.getContext()),x.column.getCanSort()?n.jsx(et,{variant:x.column.getIsSorted()}):void 0,(o==null?void 0:o.map(w=>w.columnId).includes(x.id))??!1?n.jsx(U,{icon:"circle-info",id:x.id,place:"right",tip:((b=o==null?void 0:o.find(w=>w.columnId===x.id))==null?void 0:b.tip)??""}):void 0]}),x.column.getCanResize()&&n.jsx(Tt,{onMouseDown:a(p)})]},x.id)})},d.id))});const[l,s]=(t==null?void 0:t.getHeaderGroups())??[],c=f.lodashExports.isNil(s)?l:s;return n.jsx("thead",{children:n.jsx("tr",{"data-testid":"row-headers",children:c.headers.map(d=>{var p;return n.jsxs("th",{id:`header-${d.id}`,style:{position:"relative",width:d.getSize()},children:[n.jsxs(m,{alignItems:"center",bgColor:e.palette.gray[200],display:"flex",gap:.25,height:"3rem",lineSpacing:0,onClick:r(d),px:.5,whiteSpace:"nowrap",width:"100%",children:[f.flexRender(d.column.columnDef.header,d.getContext()),d.column.getCanSort()?n.jsx(et,{variant:d.column.getIsSorted()}):void 0,(o==null?void 0:o.map(g=>g.columnId).includes(d.id))??!1?n.jsx(U,{icon:"circle-info",id:d.id,place:"right",tip:((p=o==null?void 0:o.find(g=>g.columnId===d.id))==null?void 0:p.tip)??""}):void 0]}),d.column.getCanResize()&&n.jsx(Tt,{onMouseDown:a(d)})]},d.id)})})})},us=y.styled.div`
2966
+ align-items: center;
2967
+ display: flex;
2968
+ width: 100%;
2969
+ `,An=()=>{const e=y.useTheme(),{table:t}=u.useContext(te),{loading:i}=(t==null?void 0:t.options.meta)??{},o=u.useMemo(()=>{const{enableRowSelection:s,enableMultiRowSelection:c}=(t==null?void 0:t.options)??{};return s||c?1:0},[t==null?void 0:t.options]),r=u.useCallback((s,c)=>{if(c===o)return d=>{var p,g;d.stopPropagation(),(g=(p=t==null?void 0:t.options)==null?void 0:p.onRowClick)==null||g.call(p,s)}},[o,t]),a=u.useCallback(s=>c=>{c.stopPropagation(),s.toggleExpanded()},[]),l=u.useCallback(s=>{const{meta:c}=(t==null?void 0:t.options)??{},{onExpand:d=void 0}=c??{};return d?d(s):null},[t]);return i?n.jsx("tbody",{children:n.jsx("tr",{className:"row-loading","data-testid":"row-loading",children:n.jsx("td",{colSpan:(t==null?void 0:t.getVisibleLeafColumns().length)??0,children:n.jsx(m,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:n.jsx(kn,{size:"md"})})})})}):(t==null?void 0:t.getRowModel().rows.length)===0?n.jsx("tbody",{children:n.jsx("tr",{className:"row-no-data","data-testid":"row-no-data",children:n.jsx("td",{colSpan:t.getVisibleLeafColumns().length+1,children:n.jsx(I,{color:e.palette.gray[800],size:"sm",textAlign:"center",children:"No data to display"})})})}):n.jsx("tbody",{children:t==null?void 0:t.getRowModel().rows.map(s=>n.jsxs(tt.default.Fragment,{children:[n.jsx("tr",{"aria-expanded":s.getIsExpanded(),"data-testid":`row-${s.id}`,children:s.getVisibleCells().map((c,d)=>n.jsx("td",{className:d===o&&t.options.onRowClick?"clickable":"","data-testid":`cell-${c.id}`,onClick:r(s,d),children:n.jsxs(us,{children:[d===o&&s.getCanExpand()?n.jsx("button",{onClick:a(s),style:{cursor:"pointer",marginRight:"1rem"},children:n.jsx(D,{icon:s.getIsExpanded()?"angle-up":"angle-down",iconSize:"lg",iconType:"fa-light"})}):void 0,f.flexRender(c.column.columnDef.cell,c.getContext())]})},c.id))}),s.getIsExpanded()?n.jsx("tr",{"data-testid":`row-${s.id}-expand`,id:"description",children:n.jsx("td",{colSpan:100,children:l(s)})}):void 0]},s.id))})},Ln=()=>{const{containerRef:e,hidden:t,elementName:i,handleUnselectAll:o,onKeyDown:r,selected:a,tableSize:l,tableRef:s}=u.useContext(te);return n.jsxs("div",{ref:e,children:[t?void 0:n.jsx(ps,{$width:l,children:n.jsxs("div",{children:[n.jsx("b",{children:`${a} ${i} `}),`${a===1?"has":"have"} been selected. `,n.jsx("span",{onClick:o,onKeyDown:r,role:"link",tabIndex:0,children:"Unselect all"})]})}),n.jsxs("table",{ref:s,children:[n.jsx(Fn,{}),n.jsx(An,{})]})]})},It=y.styled(H)`
2970
+ ${({theme:e,$padding:t})=>`
2971
+ background-color: ${e.palette.white};
2972
+ border: 1px solid ${e.palette.gray[200]};
2973
+ border-radius: 2px;
2974
+ padding: ${t??e.spacing[.25]};
2975
+
2976
+ path {
2977
+ fill: ${e.palette.gray[700]};
2978
+ }
2979
+
2980
+ &:disabled {
2981
+ cursor: not-allowed;
2982
+ background: ${e.palette.gray[200]};
2983
+ border-color: ${e.palette.gray[200]};
2984
+
2985
+ path {
2986
+ fill: ${e.palette.gray[400]};
2987
+ }
2988
+ }
2989
+
2990
+ &:hover:not([disabled]) {
2991
+ color: inherit;
2992
+ background-color: ${e.palette.gray[100]};
2993
+ }
2994
+ `}
2995
+ `,Pn=()=>{const{table:e}=u.useContext(te),{pagination:{pageIndex:t}={pageIndex:0}}=(e==null?void 0:e.getState())??{},i=(e==null?void 0:e.getPageCount())??0,o=u.useCallback(()=>{e==null||e.setPageIndex(t+1)},[t,e]),r=u.useCallback(()=>{e==null||e.previousPage()},[e]);return n.jsxs(m,{alignItems:"center",display:"flex",gap:.5,children:[n.jsx(It,{$padding:"4px 6px",disabled:!(e!=null&&e.getCanPreviousPage()),icon:"chevron-left",iconSize:"sm",id:"go-previous",onClick:r,variant:"ghost"}),n.jsx(It,{$padding:"4px 6px",disabled:t>i-2,icon:"chevron-right",iconSize:"sm",id:"go-next",onClick:o,variant:"ghost"})]})},xs=10,hs=20,fs=50,ys=100,On=()=>{const e=y.useTheme(),{table:t}=u.useContext(te),i=(t==null?void 0:t.getRowCount())??0,[o,r]=u.useState(!1),[a,l]=u.useState((t==null?void 0:t.getState().pagination.pageSize)??10),{refs:s,floatingStyles:c}=f.useFloating$1({middleware:[f.offset({mainAxis:4})],open:o,placement:"top-end",whileElementsMounted:f.autoUpdate}),d=u.useMemo(()=>f.transform([xs,hs,fs,ys],(h,b)=>(h.push(b),b<=i),[]),[i]),p=u.useCallback(()=>{o&&r(!1)},[o]),g=u.useCallback(()=>{r(h=>!h)},[]),x=u.useCallback(h=>()=>{l(h),t==null||t.setPageSize(h),r(!1)},[t,l]);return ee(s.reference.current,()=>{r(!1)},!0,s.floating.current),u.useEffect(()=>(window.addEventListener("scrollend",p,!0),()=>{window.removeEventListener("scrollend",p,!0)}),[p]),n.jsxs(u.Fragment,{children:[n.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:[n.jsx(I,{pr:.25,size:"sm",children:a}),n.jsx(H,{color:e.palette.gray[400],icon:o?"chevron-up":"chevron-down",iconSize:"sm",id:"paginator-dropdown",onClick:g,ref:s.setReference,variant:"ghost"})]}),o?n.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 n.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:n.jsx(I,{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:t,pageSize:i}={pageIndex:0,pageSize:10}}=(e==null?void 0:e.getState())??{},o=(e==null?void 0:e.getRowCount())??0,r=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 n.jsx(I,{display:"inline-block",fontWeight:"bold",size:"sm",children:r(t,i,o)})},Hn=({children:e})=>n.jsxs(gs,{children:[n.jsxs("div",{className:"pagination-container",children:[n.jsx(Mn,{}),n.jsx(On,{}),n.jsx(Pn,{})]}),e]}),Wn=({children:e})=>n.jsx("div",{className:"footer-container",children:e}),bs=y.styled.div.attrs({className:"search-container"})`
2996
+ ${({theme:e})=>`
2997
+ display: flex;
2998
+ flex-direction: column;
2999
+ justify-content: center;
3000
+ flex: 1 0 320px;
3001
+
3002
+ > div {
3003
+ align-items: center;
3004
+ background-color: ${e.palette.white};
3005
+ border: 1px solid;
3006
+ border-color: ${e.palette.gray[300]};
3007
+ border-radius: ${e.spacing[.5]};
3008
+ display: flex;
3009
+ height: 40px;
3010
+ padding: ${e.spacing[.5]};
3011
+ max-width: 100%;
3012
+ width: 100%;
3013
+
3014
+ &:hover {
3015
+ border-color: ${e.palette.gray[600]};
3016
+ }
3017
+
3018
+ &:focus-within {
3019
+ border: 2px solid;
3020
+ border-color: ${e.palette.black};
3021
+ }
3022
+
3023
+ span {
3024
+ margin-top: -${e.spacing[.125]};
3025
+ margin-right: ${e.spacing[.5]};
3026
+ }
3027
+
3028
+ input {
3029
+ background: none;
3030
+ border: none !important;
3031
+ box-shadow: none;
3032
+ box-sizing: border-box;
3033
+ color: ${e.palette.gray[800]};
3034
+ font-family: ${e.typography.type.primary};
3035
+ font-size: ${e.typography.text.sm};
3036
+ outline: none;
3037
+ width: 100%;
3038
+ line-height: ${e.spacing[.75]};
3039
+ }
3040
+ }
3041
+ `}
3042
+ `,$s=y.styled.div.attrs({className:"controls-container"})`
3043
+ display: flex;
3044
+ flex: 1 0 50%;
3045
+
3046
+ .controls-container > :first-child {
3047
+ display: flex;
3048
+ align-items: center;
3049
+ gap: ${({theme:e})=>e.spacing[.125]};
3050
+ }
3051
+
3052
+ #actions-container {
3053
+ display: flex;
3054
+ align-items: center;
3055
+ justify-content: flex-end;
3056
+ width: 100%;
3057
+ }
3058
+ `,ms=y.styled.div`
3059
+ display: flex;
3060
+ flex-wrap: wrap;
3061
+ width: 100%;
3062
+ justify-content: space-between;
3063
+ gap: ${({theme:e})=>e.spacing[1]};
3064
+ margin-bottom: ${({theme:e})=>e.spacing[1]};
3065
+
3066
+ .highlight-container {
3067
+ flex: 1 0 auto;
3068
+ }
3069
+
3070
+ .highlight-container ~ .controls-container {
3071
+ flex: 1 0 100%;
3072
+ }
3073
+ `,ws=500,Bn=({children:e})=>{const{table:t}=u.useContext(te),{onSearch:i,search:o,searchPlaceholder:r="Search"}=(t==null?void 0:t.options.meta)??{},a=lt(s=>{i==null||i(s.target.value)},ws),l=u.useCallback(()=>{i==null||i("")},[i]);return n.jsxs(ms,{children:[i===void 0?void 0:n.jsx(bs,{children:n.jsx(se,{name:"search",onChange:a,onClear:l,placeholder:r,value:o})}),e]})},_n=({children:e})=>n.jsx(m,{display:"flex",flexDirection:"column",children:n.jsx("div",{className:"caption-container",children:e})}),Vn=({children:e})=>n.jsx($s,{children:e}),Un=({children:e})=>n.jsx("div",{className:"highlight-container",children:e}),vs=160,Gn=({children:e,table:t})=>{var x;const i=u.useRef(null),o=u.useRef(null),{id:r}=t.options.meta??{},{enableMultiRowSelection:a}=(t==null?void 0:t.options)??{},l=Object.keys(t.getState().rowSelection).length,s=l===1?"item":"items",c=l===0||!a,d=Math.max(((x=i.current)==null?void 0:x.clientWidth)??0,t.getTotalSize()+vs),p=u.useCallback(()=>{t.resetRowSelection()},[t]),g=u.useCallback(h=>{h.key==="Enter"&&p()},[p]);return u.useEffect(()=>{t.setPageIndex(0)},[t]),n.jsx(te.Provider,{value:{containerRef:i,elementName:s,handleUnselectAll:p,hidden:c,onKeyDown:g,selected:l,tableSize:d,tableRef:o,table:t},children:n.jsx(ds,{id:r,children:e})})},js=Object.assign(Gn,{Caption:_n,Columns:Nn,Content:Ln,Controls:Vn,Export:Dn,Footer:Hn,FooterContent:Wn,Highlighted:Un,Options:Bn}),ks=y.styled.button`
3074
+ ${({theme:e})=>`
3075
+ align-items: center;
3076
+ background-color: ${e.palette.white};
3077
+ border: 1px solid ${e.palette.gray[100]};
3078
+ border-radius: ${e.spacing[.25]};
3079
+ color: ${e.palette.gray[800]};
3080
+ cursor: pointer;
3081
+ display: flex;
3082
+ font-size: ${e.typography.text.sm};
3083
+ gap: ${e.spacing[.25]};
3084
+ height: 21px;
3085
+ width: 21px;
3086
+ justify-content: center;
3087
+ padding: 6px;
3088
+ transition: all 0.25s ease;
3089
+
3090
+ &[aria-label] {
3091
+ height: auto;
3092
+ width: auto;
3093
+ }
3094
+
3095
+ &.success {
3096
+ border-color: ${e.palette.success[500]};
3097
+ color: ${e.palette.success[500]};
3098
+
3099
+ &:hover {
3100
+ background-color: ${e.palette.success[200]};
3101
+ }
3102
+ }
3103
+
3104
+ &:disabled {
3105
+ cursor: not-allowed;
3106
+ background: ${e.palette.gray[200]};
3107
+ border-color: ${e.palette.gray[200]};
3108
+ color: ${e.palette.gray[300]};
3109
+ }
3110
+
3111
+ &:hover:not(.success) {
3112
+ background-color: ${e.palette.gray[100]};
3113
+ }
3114
+ `}
3115
+ `,Cs={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Ss=({disabled:e=!1,icon:t,id:i,label:o,name:r,onClick:a,type:l="button",variant:s})=>{const c=y.useTheme(),d=n.jsxs(ks,{"aria-label":r??void 0,className:s,disabled:e,id:i,onClick:a,type:l,children:[n.jsx(D,{clickable:!1,icon:t??Cs[s].icon,iconSize:r===void 0?"sm":"lg",iconType:"fa-light"}),r??void 0]});return n.jsxs(m,{alignItems:"center",display:"flex",children:[d,o&&n.jsx(I,{color:c.palette.gray[800],ml:.5,size:"sm",children:o})]})},zs=y.styled.div`
3116
+ ${({theme:e,$size:t})=>`
3117
+ align-items: center;
3118
+ background-color: ${e.palette.white};
3119
+ border: 1px solid ${e.palette.gray[200]};
3120
+ border-radius: ${e.spacing[.25]};
3121
+ display: flex;
3122
+ flex-direction: column;
3123
+ gap: ${e.spacing[.5]};
3124
+ min-height: 180px;
3125
+ padding: ${e.spacing[1.5]};
3126
+ width: 510px;
3127
+
3128
+ p {
3129
+ font-style: normal;
3130
+ line-height: ${e.spacing[1.25]};
3131
+ text-align: ${t==="long"?"":"center"};
3132
+ }
3133
+
3134
+ &:hover {
3135
+ border: 1px solid ${e.palette.gray[600]};
3136
+ }
3137
+ `}
3138
+ `,Ts=y.styled.div`
3139
+ ${({theme:e,$size:t})=>`
3140
+ display: ${t==="long"?"flex":"block"};
3141
+ flex-direction: column;
3142
+ gap: ${e.spacing[1.5]};
3143
+ position: relative;
3144
+ max-width: 1100px;
3145
+ margin: 0 auto 0 auto;
3146
+
3147
+ div.timeline-card {
3148
+ width: ${t==="long"?"510px":"auto"};
3149
+ margin-left: ${t==="long"?"0px":"30px"};
3150
+ margin-bottom: ${t==="long"?"0px":e.spacing[.5]};
3151
+ }
3152
+
3153
+ &::before {
3154
+ background-color: ${e.palette.gray[200]};
3155
+ border-radius: 5px;
3156
+ height: 100%;
3157
+ width: 4px;
3158
+ transform: translate(-50%, 0);
3159
+ }
3160
+
3161
+ > * {
3162
+ &:nth-child(even) {
3163
+ align-self: end;
3164
+ }
3165
+
3166
+ &:nth-child(odd) {
3167
+ align-self: start;
3168
+ }
3169
+
3170
+ &::before {
3171
+ position: absolute;
3172
+ background-color: ${e.palette.primary[500]};
3173
+ border-radius: 50%;
3174
+ height: 14px;
3175
+ width: 14px;
3176
+ z-index: 1;
3177
+ }
3178
+ }
3179
+
3180
+ &::before,
3181
+ > *::before {
3182
+ content: "";
3183
+ left: ${t==="long"?"50%":"0px"};
3184
+ position: absolute;
3185
+ transform: translateX(-50%);
3186
+ }
3187
+ `}
3188
+ `,Yn=({date:e,description:t,title:i,size:o="long"})=>{const r=y.useTheme();return n.jsxs(zs,{$size:o,className:"timeline-card",children:[n.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),n.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),n.jsx("div",{children:t.map((a,l)=>{const s=`${a}#${l}`;return n.jsx(I,{size:"sm",textAlign:"center",wordBreak:"break-word",children:a},s)})})]})},Is=({items:e})=>{const t=u.useRef(null),[i,o]=u.useState("long");return u.useEffect(()=>{t.current&&o(t.current.offsetWidth<=1100?"small":"long")},[]),n.jsx(m,{ref:t,width:"100%",children:n.jsx(Ts,{$size:i,children:e.map((r,a)=>n.jsx(Yn,{date:r.date,description:r.description,size:i,title:r.title},`${r.title}-${a}`))})})},Es={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:""},Rs=({run:e,steps:t,onFinish:i})=>{const[o,r]=u.useState(e),[a,l]=u.useState(0),s=u.useCallback(c=>{const{action:d,index:p,status:g,type:x}=c;[f.EVENTS.STEP_AFTER,f.EVENTS.TARGET_NOT_FOUND].includes(x)?l(p+(d===f.ACTIONS.PREV?-1:1)):([f.STATUS.FINISHED,f.STATUS.SKIPPED].includes(g)||d==="close")&&(r(!1),f.lodashExports.isUndefined(i)||i())},[i]);return n.jsx(f.components_default,{callback:s,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:o,spotlightClicks:!0,stepIndex:a,steps:t,styles:{buttonNext:{display:a===t.length-1?"none":"block"},options:{zIndex:9999}}})};exports.Accordion=ki;exports.AccordionContent=Nt;exports.ActionButton=Ze;exports.Alert=Fi;exports.AppliedFilter=ue;exports.AppliedFilters=zr;exports.ArrayField=Ke;exports.Avatar=Wi;exports.BaseButtonComponent=nt;exports.BaseComponent=Se;exports.BaseSpanComponent=ot;exports.BaseTextComponent=it;exports.Body=An;exports.Button=O;exports.Button$1=Re;exports.ButtonToolbarCenter=xo;exports.ButtonToolbarRow=fo;exports.ButtonToolbarStartRow=ho;exports.Calendar=Wt;exports.Calendar$1=Gt;exports.Calendar$2=Kt;exports.CalendarCell=Ht;exports.CalendarGrid=Ae;exports.CaptionContent=_n;exports.CardContainer=Yo;exports.CardHeader=Fe;exports.CardWithImage=Vi;exports.CardWithInput=Ao;exports.CardWithOptions=un;exports.CardWithSelector=Bo;exports.CardWithSwitch=Uo;exports.Carousel=Qo;exports.Checkbox=re;exports.CodeSnippet=tr;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=Or;exports.CustomThemeProvider=fi;exports.DateField=_t;exports.DateSelector=fe;exports.Description=In;exports.Dialog=Pe;exports.Divider=ae;exports.Dropdown=Wr;exports.Editable=uo;exports.EmptyButton=Je;exports.EmptyState=Ur;exports.ErrorMessage=Yi;exports.ExportCsv=Dn;exports.FilePreview=Pt;exports.FilterControl=yn;exports.FilterForm=Xe;exports.FilterFormContent=bn;exports.FiltersList=mn;exports.FooterContent=Wn;exports.Form=Kr;exports.Gap=$o;exports.GridContainer=Zr;exports.GroupSelector=Jr;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=Qr;exports.InfoSidebar=ea;exports.InnerForm=Gr;exports.InputArray=wo;exports.InputDate=Ut;exports.InputDateRange=Yt;exports.InputDateTime=go;exports.InputFile=Co;exports.InputNumber=Zt;exports.InputNumberRange=Xt;exports.InputTags=zo;exports.Label=rt;exports.Link=Q;exports.ListItem=Ie;exports.ListItemsWrapper=pn;exports.LittleFlag=na;exports.Loading=kn;exports.LocationCode=on;exports.Logo=pa;exports.Lottie=ua;exports.MemoizedImage=ne;exports.Menu=xa;exports.MenuItem=En;exports.MessageBanner=fa;exports.Modal=gt;exports.ModalConfirm=ln;exports.ModalFooter=an;exports.Notification=wa;exports.NotificationSign=cn;exports.NumberField=Ne;exports.NumberInput=ka;exports.OAuthSelector=Sa;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=No;exports.PopUp=Ma;exports.Popover=ze;exports.PremiumFeature=Cn;exports.PreviewPanel=gn;exports.PriorityScore=Ta;exports.ProgressBar=Sn;exports.ProgressIndicator=Oa;exports.ProgressStep=La;exports.RadioButton=ct;exports.Row=qt;exports.ScrollUpButton=Wa;exports.Search=se;exports.SearchPanel=hn;exports.SeverityBadge=_a;exports.SeverityOverview=Ua;exports.SeverityOverviewBadge=xe;exports.ShowOnHover=Ya;exports.SlideOutMenu=qa;exports.Slider=ts;exports.SortIcon=et;exports.Span=he;exports.StepLapse=ss;exports.Tab=dn;exports.Table=js;exports.Table$1=Gn;exports.TableButton=Ss;exports.TableContent=Ln;exports.TableContext=te;exports.TableFooter=Hn;exports.TableOptions=Bn;exports.Tabs=pt;exports.Tag=Y;exports.TagsField=qe;exports.Text=I;exports.TextArea=Fo;exports.TextInput=Oe;exports.Thumb=Rn;exports.TimeField=Vt;exports.TimeLine=Is;exports.TimeLineCard=Yn;exports.Toggle=tn;exports.Tooltip=U;exports.Tour=Rs;exports.baseStep=Es;exports.formatCheckValues=vn;exports.getStyledConfig=Ce;exports.hiddenProps=Rt;exports.icons=hi;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=Ar;exports.useConfirmDialog=Lr;exports.useDebouncedCallback=lt;exports.useFilterForm=$n;exports.useFilters=Fr;exports.useModal=Te;exports.useSearch=Oo;exports.variantBuilder=X;