@fluidattacks/design 3.26.0 → 3.26.3

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