@fluidattacks/design 3.15.6-pr-03 → 3.15.7-pr-01

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