@fluidattacks/design 3.18.2 → 3.18.3-pr-01

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