@fluidattacks/design 3.7.10-pr-05 → 3.7.10

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