@fluidattacks/design 3.3.3 → 3.4.0

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