@fluidattacks/design 3.25.5-pr.3 → 3.25.5-pr.5

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 (561) hide show
  1. package/package.json +1 -1
  2. package/dist/assets/index.css +0 -1
  3. package/dist/assets/vendor.css +0 -1
  4. package/dist/components/@core/constants.d.ts +0 -2
  5. package/dist/components/@core/index.d.ts +0 -5
  6. package/dist/components/@core/index.js +0 -1
  7. package/dist/components/@core/styles.d.ts +0 -6
  8. package/dist/components/@core/types.d.ts +0 -182
  9. package/dist/components/@core/utils.d.ts +0 -11
  10. package/dist/components/@core/variants/utils.d.ts +0 -59
  11. package/dist/components/accordion/accordion-content/index.d.ts +0 -3
  12. package/dist/components/accordion/accordion-content/index.js +0 -1
  13. package/dist/components/accordion/index.d.ts +0 -4
  14. package/dist/components/accordion/index.js +0 -1
  15. package/dist/components/accordion/index.stories.d.ts +0 -6
  16. package/dist/components/accordion/types.d.ts +0 -38
  17. package/dist/components/alert/index.d.ts +0 -4
  18. package/dist/components/alert/index.js +0 -1
  19. package/dist/components/alert/index.stories.d.ts +0 -11
  20. package/dist/components/alert/styles.d.ts +0 -277
  21. package/dist/components/alert/types.d.ts +0 -24
  22. package/dist/components/avatar/index.d.ts +0 -5
  23. package/dist/components/avatar/index.js +0 -1
  24. package/dist/components/avatar/index.stories.d.ts +0 -9
  25. package/dist/components/avatar/styles.d.ts +0 -539
  26. package/dist/components/avatar/types.d.ts +0 -15
  27. package/dist/components/button/index.d.ts +0 -3
  28. package/dist/components/button/index.js +0 -1
  29. package/dist/components/button/index.stories.d.ts +0 -11
  30. package/dist/components/button/styles.d.ts +0 -288
  31. package/dist/components/button/types.d.ts +0 -34
  32. package/dist/components/card/card-header/index.d.ts +0 -3
  33. package/dist/components/card/card-header/index.js +0 -1
  34. package/dist/components/card/card-with-image/index.d.ts +0 -4
  35. package/dist/components/card/card-with-image/index.js +0 -1
  36. package/dist/components/card/card-with-image/index.stories.d.ts +0 -66
  37. package/dist/components/card/card-with-input/index.d.ts +0 -3
  38. package/dist/components/card/card-with-input/index.js +0 -1
  39. package/dist/components/card/card-with-input/index.stories.d.ts +0 -368
  40. package/dist/components/card/card-with-input/styles.d.ts +0 -8
  41. package/dist/components/card/card-with-options/index.d.ts +0 -3
  42. package/dist/components/card/card-with-options/index.js +0 -1
  43. package/dist/components/card/card-with-options/index.stories.d.ts +0 -6
  44. package/dist/components/card/card-with-options/types.d.ts +0 -18
  45. package/dist/components/card/card-with-selector/index.d.ts +0 -3
  46. package/dist/components/card/card-with-selector/index.js +0 -1
  47. package/dist/components/card/card-with-selector/index.stories.d.ts +0 -6
  48. package/dist/components/card/card-with-selector/styles.d.ts +0 -270
  49. package/dist/components/card/card-with-switch/index.d.ts +0 -3
  50. package/dist/components/card/card-with-switch/index.js +0 -1
  51. package/dist/components/card/card-with-switch/index.stories.d.ts +0 -7
  52. package/dist/components/card/index.d.ts +0 -6
  53. package/dist/components/card/index.js +0 -1
  54. package/dist/components/card/types.d.ts +0 -140
  55. package/dist/components/carousel/index.d.ts +0 -5
  56. package/dist/components/carousel/index.js +0 -1
  57. package/dist/components/carousel/index.stories.d.ts +0 -7
  58. package/dist/components/carousel/styles.d.ts +0 -814
  59. package/dist/components/carousel/types.d.ts +0 -19
  60. package/dist/components/checkbox/index.d.ts +0 -3
  61. package/dist/components/checkbox/index.js +0 -1
  62. package/dist/components/checkbox/index.stories.d.ts +0 -8
  63. package/dist/components/checkbox/styles.d.ts +0 -272
  64. package/dist/components/checkbox/types.d.ts +0 -21
  65. package/dist/components/cloud-image/index.d.ts +0 -5
  66. package/dist/components/cloud-image/index.js +0 -1
  67. package/dist/components/cloud-image/types.d.ts +0 -18
  68. package/dist/components/code-snippet/index.d.ts +0 -3
  69. package/dist/components/code-snippet/index.js +0 -1
  70. package/dist/components/code-snippet/index.stories.d.ts +0 -8
  71. package/dist/components/code-snippet/location-code/index.d.ts +0 -3
  72. package/dist/components/code-snippet/location-code/index.js +0 -1
  73. package/dist/components/code-snippet/styles.d.ts +0 -539
  74. package/dist/components/code-snippet/types.d.ts +0 -25
  75. package/dist/components/colors/index.d.ts +0 -10
  76. package/dist/components/colors/index.js +0 -1
  77. package/dist/components/conditions-dialog/index.d.ts +0 -3
  78. package/dist/components/conditions-dialog/index.js +0 -1
  79. package/dist/components/conditions-dialog/types.d.ts +0 -19
  80. package/dist/components/confirm-dialog/index.d.ts +0 -11
  81. package/dist/components/confirm-dialog/index.js +0 -1
  82. package/dist/components/confirm-dialog/types.d.ts +0 -15
  83. package/dist/components/container/index.d.ts +0 -5
  84. package/dist/components/container/index.js +0 -1
  85. package/dist/components/container/index.stories.d.ts +0 -8
  86. package/dist/components/container/styles.d.ts +0 -276
  87. package/dist/components/container/types.d.ts +0 -22
  88. package/dist/components/copy-button/index.d.ts +0 -4
  89. package/dist/components/copy-button/index.js +0 -1
  90. package/dist/components/divider/index.d.ts +0 -3
  91. package/dist/components/divider/index.js +0 -1
  92. package/dist/components/divider/index.stories.d.ts +0 -7
  93. package/dist/components/divider/types.d.ts +0 -11
  94. package/dist/components/dropdown/index.d.ts +0 -4
  95. package/dist/components/dropdown/index.js +0 -1
  96. package/dist/components/dropdown/index.stories.d.ts +0 -7
  97. package/dist/components/dropdown/styles.d.ts +0 -540
  98. package/dist/components/dropdown/types.d.ts +0 -19
  99. package/dist/components/empty-state/empty-button/index.d.ts +0 -8
  100. package/dist/components/empty-state/empty-button/index.js +0 -1
  101. package/dist/components/empty-state/index.d.ts +0 -4
  102. package/dist/components/empty-state/index.js +0 -1
  103. package/dist/components/empty-state/index.stories.d.ts +0 -10
  104. package/dist/components/empty-state/styles.d.ts +0 -544
  105. package/dist/components/empty-state/types.d.ts +0 -35
  106. package/dist/components/file-preview/index.d.ts +0 -4
  107. package/dist/components/file-preview/index.js +0 -1
  108. package/dist/components/file-preview/styles.d.ts +0 -342
  109. package/dist/components/file-preview/types.d.ts +0 -21
  110. package/dist/components/file-preview/utils.d.ts +0 -5
  111. package/dist/components/form/index.d.ts +0 -7
  112. package/dist/components/form/index.js +0 -1
  113. package/dist/components/form/index.stories.d.ts +0 -13
  114. package/dist/components/form/inner-form/index.d.ts +0 -3
  115. package/dist/components/form/inner-form/index.js +0 -1
  116. package/dist/components/form/styles.d.ts +0 -278
  117. package/dist/components/form/types.d.ts +0 -50
  118. package/dist/components/grid-container/index.d.ts +0 -4
  119. package/dist/components/grid-container/index.js +0 -1
  120. package/dist/components/grid-container/index.stories.d.ts +0 -6
  121. package/dist/components/grid-container/styles.d.ts +0 -279
  122. package/dist/components/grid-container/types.d.ts +0 -17
  123. package/dist/components/grid-layout/index.stories.d.ts +0 -14
  124. package/dist/components/grid-layout/styles.d.ts +0 -1084
  125. package/dist/components/group-selector/index.d.ts +0 -3
  126. package/dist/components/group-selector/index.js +0 -1
  127. package/dist/components/group-selector/index.stories.d.ts +0 -8
  128. package/dist/components/group-selector/option-container/index.d.ts +0 -4
  129. package/dist/components/group-selector/option-container/index.js +0 -1
  130. package/dist/components/group-selector/styles.d.ts +0 -7
  131. package/dist/components/group-selector/types.d.ts +0 -44
  132. package/dist/components/icon/index.d.ts +0 -3
  133. package/dist/components/icon/index.js +0 -1
  134. package/dist/components/icon/styles.d.ts +0 -550
  135. package/dist/components/icon/types.d.ts +0 -35
  136. package/dist/components/icon-button/index.d.ts +0 -3
  137. package/dist/components/icon-button/index.js +0 -1
  138. package/dist/components/icon-button/index.stories.d.ts +0 -354
  139. package/dist/components/icon-button/styles.d.ts +0 -623
  140. package/dist/components/icon-button/types.d.ts +0 -22
  141. package/dist/components/indicator-card/index.d.ts +0 -5
  142. package/dist/components/indicator-card/index.js +0 -1
  143. package/dist/components/indicator-card/index.stories.d.ts +0 -7
  144. package/dist/components/indicator-card/types.d.ts +0 -30
  145. package/dist/components/info-sidebar/index.d.ts +0 -4
  146. package/dist/components/info-sidebar/index.js +0 -1
  147. package/dist/components/info-sidebar/index.stories.d.ts +0 -7
  148. package/dist/components/info-sidebar/types.d.ts +0 -32
  149. package/dist/components/inputs/fields/combobox/field/index.d.ts +0 -6
  150. package/dist/components/inputs/fields/combobox/field/index.js +0 -1
  151. package/dist/components/inputs/fields/combobox/index.d.ts +0 -4
  152. package/dist/components/inputs/fields/combobox/index.js +0 -1
  153. package/dist/components/inputs/fields/combobox/index.stories.d.ts +0 -8
  154. package/dist/components/inputs/fields/combobox/option/index.d.ts +0 -3
  155. package/dist/components/inputs/fields/combobox/option/index.js +0 -1
  156. package/dist/components/inputs/fields/combobox/styles.d.ts +0 -7
  157. package/dist/components/inputs/fields/combobox/types.d.ts +0 -65
  158. package/dist/components/inputs/fields/date/calendar/cell/index.d.ts +0 -3
  159. package/dist/components/inputs/fields/date/calendar/cell/index.js +0 -1
  160. package/dist/components/inputs/fields/date/calendar/grid/index.d.ts +0 -3
  161. package/dist/components/inputs/fields/date/calendar/grid/index.js +0 -1
  162. package/dist/components/inputs/fields/date/calendar/header/index.d.ts +0 -3
  163. package/dist/components/inputs/fields/date/calendar/header/index.js +0 -1
  164. package/dist/components/inputs/fields/date/calendar/index.d.ts +0 -6
  165. package/dist/components/inputs/fields/date/calendar/index.js +0 -1
  166. package/dist/components/inputs/fields/date/calendar/styles.d.ts +0 -2178
  167. package/dist/components/inputs/fields/date/index.d.ts +0 -3
  168. package/dist/components/inputs/fields/date/index.js +0 -1
  169. package/dist/components/inputs/fields/date/index.stories.d.ts +0 -6
  170. package/dist/components/inputs/fields/date/types.d.ts +0 -38
  171. package/dist/components/inputs/fields/date-range/calendar/index.d.ts +0 -6
  172. package/dist/components/inputs/fields/date-range/calendar/index.js +0 -1
  173. package/dist/components/inputs/fields/date-range/index.d.ts +0 -4
  174. package/dist/components/inputs/fields/date-range/index.js +0 -1
  175. package/dist/components/inputs/fields/date-range/index.stories.d.ts +0 -6
  176. package/dist/components/inputs/fields/date-range/styles.d.ts +0 -5
  177. package/dist/components/inputs/fields/date-time/calendar/index.d.ts +0 -9
  178. package/dist/components/inputs/fields/date-time/calendar/index.js +0 -1
  179. package/dist/components/inputs/fields/date-time/calendar/styles.d.ts +0 -539
  180. package/dist/components/inputs/fields/date-time/index.d.ts +0 -4
  181. package/dist/components/inputs/fields/date-time/index.js +0 -1
  182. package/dist/components/inputs/fields/date-time/index.stories.d.ts +0 -6
  183. package/dist/components/inputs/fields/editable/index.d.ts +0 -5
  184. package/dist/components/inputs/fields/editable/index.js +0 -1
  185. package/dist/components/inputs/fields/editable/index.stories.d.ts +0 -9
  186. package/dist/components/inputs/fields/editable/types.d.ts +0 -19
  187. package/dist/components/inputs/fields/input/index.d.ts +0 -3
  188. package/dist/components/inputs/fields/input/index.js +0 -1
  189. package/dist/components/inputs/fields/input/index.stories.d.ts +0 -8
  190. package/dist/components/inputs/fields/input-array/field/index.d.ts +0 -2
  191. package/dist/components/inputs/fields/input-array/field/index.js +0 -1
  192. package/dist/components/inputs/fields/input-array/index.d.ts +0 -3
  193. package/dist/components/inputs/fields/input-array/index.js +0 -1
  194. package/dist/components/inputs/fields/input-array/index.stories.d.ts +0 -6
  195. package/dist/components/inputs/fields/input-file/index.d.ts +0 -3
  196. package/dist/components/inputs/fields/input-file/index.js +0 -1
  197. package/dist/components/inputs/fields/input-file/index.stories.d.ts +0 -6
  198. package/dist/components/inputs/fields/input-file/styles.d.ts +0 -572
  199. package/dist/components/inputs/fields/input-tags/field/index.d.ts +0 -6
  200. package/dist/components/inputs/fields/input-tags/field/index.js +0 -1
  201. package/dist/components/inputs/fields/input-tags/index.d.ts +0 -3
  202. package/dist/components/inputs/fields/input-tags/index.js +0 -1
  203. package/dist/components/inputs/fields/input-tags/index.stories.d.ts +0 -7
  204. package/dist/components/inputs/fields/input-tags/styles.d.ts +0 -301
  205. package/dist/components/inputs/fields/number/index.d.ts +0 -3
  206. package/dist/components/inputs/fields/number/index.js +0 -1
  207. package/dist/components/inputs/fields/number/index.stories.d.ts +0 -6
  208. package/dist/components/inputs/fields/number-range/index.d.ts +0 -3
  209. package/dist/components/inputs/fields/number-range/index.js +0 -1
  210. package/dist/components/inputs/fields/number-range/index.stories.d.ts +0 -7
  211. package/dist/components/inputs/fields/phone/index.d.ts +0 -3
  212. package/dist/components/inputs/fields/phone/index.js +0 -1
  213. package/dist/components/inputs/fields/phone/index.stories.d.ts +0 -6
  214. package/dist/components/inputs/fields/phone/styles.d.ts +0 -1357
  215. package/dist/components/inputs/fields/text-area/index.d.ts +0 -3
  216. package/dist/components/inputs/fields/text-area/index.js +0 -1
  217. package/dist/components/inputs/fields/text-area/index.stories.d.ts +0 -7
  218. package/dist/components/inputs/index.d.ts +0 -15
  219. package/dist/components/inputs/index.js +0 -1
  220. package/dist/components/inputs/label/index.d.ts +0 -3
  221. package/dist/components/inputs/label/index.js +0 -1
  222. package/dist/components/inputs/outline-container/index.d.ts +0 -4
  223. package/dist/components/inputs/outline-container/index.js +0 -1
  224. package/dist/components/inputs/styles.d.ts +0 -273
  225. package/dist/components/inputs/types.d.ts +0 -179
  226. package/dist/components/inputs/utils/action-button/index.d.ts +0 -3
  227. package/dist/components/inputs/utils/action-button/index.js +0 -1
  228. package/dist/components/inputs/utils/calendar-button/index.d.ts +0 -8
  229. package/dist/components/inputs/utils/calendar-button/index.js +0 -1
  230. package/dist/components/inputs/utils/date-selector/index.d.ts +0 -3
  231. package/dist/components/inputs/utils/date-selector/index.js +0 -1
  232. package/dist/components/inputs/utils/date-time-field/index.d.ts +0 -4
  233. package/dist/components/inputs/utils/date-time-field/index.js +0 -1
  234. package/dist/components/inputs/utils/dialog/index.d.ts +0 -4
  235. package/dist/components/inputs/utils/dialog/index.js +0 -1
  236. package/dist/components/inputs/utils/number-field/index.d.ts +0 -3
  237. package/dist/components/inputs/utils/number-field/index.js +0 -1
  238. package/dist/components/inputs/utils/popover/index.d.ts +0 -4
  239. package/dist/components/inputs/utils/popover/index.js +0 -1
  240. package/dist/components/inputs/utils/styles.d.ts +0 -1644
  241. package/dist/components/inputs/utils/types.d.ts +0 -84
  242. package/dist/components/inputs/utils.d.ts +0 -3
  243. package/dist/components/layout/categories/buttons/index.d.ts +0 -808
  244. package/dist/components/layout/categories/buttons/index.js +0 -1
  245. package/dist/components/layout/categories/column/index.d.ts +0 -3
  246. package/dist/components/layout/categories/column/index.js +0 -1
  247. package/dist/components/layout/categories/column/styles.d.ts +0 -284
  248. package/dist/components/layout/categories/gap/index.d.ts +0 -3
  249. package/dist/components/layout/categories/gap/index.js +0 -1
  250. package/dist/components/layout/categories/gap/styles.d.ts +0 -276
  251. package/dist/components/layout/categories/row/index.d.ts +0 -3
  252. package/dist/components/layout/categories/row/index.js +0 -1
  253. package/dist/components/layout/categories/row/styles.d.ts +0 -280
  254. package/dist/components/layout/index.d.ts +0 -5
  255. package/dist/components/layout/index.js +0 -1
  256. package/dist/components/layout/types.d.ts +0 -50
  257. package/dist/components/link/index.d.ts +0 -5
  258. package/dist/components/link/index.js +0 -1
  259. package/dist/components/link/index.stories.d.ts +0 -10
  260. package/dist/components/link/styles.d.ts +0 -10
  261. package/dist/components/link/types.d.ts +0 -22
  262. package/dist/components/list-item/index.d.ts +0 -5
  263. package/dist/components/list-item/index.js +0 -1
  264. package/dist/components/list-item/index.stories.d.ts +0 -8
  265. package/dist/components/list-item/styles.d.ts +0 -540
  266. package/dist/components/list-item/types.d.ts +0 -33
  267. package/dist/components/little-flag/index.d.ts +0 -4
  268. package/dist/components/little-flag/index.js +0 -1
  269. package/dist/components/little-flag/styles.d.ts +0 -6
  270. package/dist/components/little-flag/types.d.ts +0 -15
  271. package/dist/components/loading/index.d.ts +0 -4
  272. package/dist/components/loading/index.js +0 -1
  273. package/dist/components/loading/index.stories.d.ts +0 -8
  274. package/dist/components/loading/styles.d.ts +0 -9
  275. package/dist/components/loading/types.d.ts +0 -15
  276. package/dist/components/logo/index.d.ts +0 -3
  277. package/dist/components/logo/index.js +0 -1
  278. package/dist/components/logo/types.d.ts +0 -12
  279. package/dist/components/lottie/index.d.ts +0 -3
  280. package/dist/components/lottie/index.js +0 -1
  281. package/dist/components/lottie/styles.d.ts +0 -402
  282. package/dist/components/lottie/types.d.ts +0 -11
  283. package/dist/components/menu/index.d.ts +0 -4
  284. package/dist/components/menu/index.js +0 -1
  285. package/dist/components/menu/types.d.ts +0 -31
  286. package/dist/components/message-banner/index.d.ts +0 -3
  287. package/dist/components/message-banner/index.js +0 -1
  288. package/dist/components/message-banner/index.stories.d.ts +0 -7
  289. package/dist/components/message-banner/styles.d.ts +0 -280
  290. package/dist/components/message-banner/types.d.ts +0 -28
  291. package/dist/components/message-banner/utils.d.ts +0 -7
  292. package/dist/components/modal/columns-modal/index.d.ts +0 -3
  293. package/dist/components/modal/columns-modal/index.js +0 -1
  294. package/dist/components/modal/columns-modal/index.stories.d.ts +0 -7
  295. package/dist/components/modal/columns-modal/preview-panel/index.d.ts +0 -3
  296. package/dist/components/modal/columns-modal/preview-panel/index.js +0 -1
  297. package/dist/components/modal/columns-modal/preview-panel/styles.d.ts +0 -376
  298. package/dist/components/modal/columns-modal/preview-panel/types.d.ts +0 -17
  299. package/dist/components/modal/columns-modal/search-panel/index.d.ts +0 -3
  300. package/dist/components/modal/columns-modal/search-panel/index.js +0 -1
  301. package/dist/components/modal/columns-modal/search-panel/styles.d.ts +0 -376
  302. package/dist/components/modal/columns-modal/search-panel/types.d.ts +0 -16
  303. package/dist/components/modal/columns-modal/types.d.ts +0 -16
  304. package/dist/components/modal/filters-modal/applied-filter/index.d.ts +0 -3
  305. package/dist/components/modal/filters-modal/applied-filter/index.js +0 -1
  306. package/dist/components/modal/filters-modal/applied-filter/types.d.ts +0 -31
  307. package/dist/components/modal/filters-modal/applied-filters/index.d.ts +0 -3
  308. package/dist/components/modal/filters-modal/applied-filters/index.js +0 -1
  309. package/dist/components/modal/filters-modal/applied-filters/utils.d.ts +0 -7
  310. package/dist/components/modal/filters-modal/column-filters/index.d.ts +0 -3
  311. package/dist/components/modal/filters-modal/column-filters/index.js +0 -1
  312. package/dist/components/modal/filters-modal/column-filters/index.stories.d.ts +0 -6
  313. package/dist/components/modal/filters-modal/column-filters/types.d.ts +0 -15
  314. package/dist/components/modal/filters-modal/filter-control/index.d.ts +0 -3
  315. package/dist/components/modal/filters-modal/filter-control/index.js +0 -1
  316. package/dist/components/modal/filters-modal/filter-control/types.d.ts +0 -16
  317. package/dist/components/modal/filters-modal/filter-form/form-content/index.d.ts +0 -2
  318. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +0 -1
  319. package/dist/components/modal/filters-modal/filter-form/form-content/types.d.ts +0 -18
  320. package/dist/components/modal/filters-modal/filter-form/hooks/index.d.ts +0 -4
  321. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +0 -1
  322. package/dist/components/modal/filters-modal/filter-form/hooks/types.d.ts +0 -22
  323. package/dist/components/modal/filters-modal/filter-form/index.d.ts +0 -3
  324. package/dist/components/modal/filters-modal/filter-form/index.js +0 -1
  325. package/dist/components/modal/filters-modal/filter-form/types.d.ts +0 -15
  326. package/dist/components/modal/filters-modal/filter-form/utils.d.ts +0 -6
  327. package/dist/components/modal/filters-modal/filters-list/index.d.ts +0 -4
  328. package/dist/components/modal/filters-modal/filters-list/index.js +0 -1
  329. package/dist/components/modal/filters-modal/filters-list/styles.d.ts +0 -376
  330. package/dist/components/modal/filters-modal/filters-list/types.d.ts +0 -34
  331. package/dist/components/modal/filters-modal/index.d.ts +0 -6
  332. package/dist/components/modal/filters-modal/index.js +0 -1
  333. package/dist/components/modal/filters-modal/index.stories.d.ts +0 -16
  334. package/dist/components/modal/filters-modal/optimization/utils.d.ts +0 -10
  335. package/dist/components/modal/filters-modal/styles.d.ts +0 -647
  336. package/dist/components/modal/filters-modal/types.d.ts +0 -98
  337. package/dist/components/modal/filters-modal/utils.d.ts +0 -5
  338. package/dist/components/modal/footer/index.d.ts +0 -3
  339. package/dist/components/modal/footer/index.js +0 -1
  340. package/dist/components/modal/header/index.d.ts +0 -3
  341. package/dist/components/modal/header/index.js +0 -1
  342. package/dist/components/modal/index.d.ts +0 -11
  343. package/dist/components/modal/index.js +0 -1
  344. package/dist/components/modal/index.stories.d.ts +0 -18
  345. package/dist/components/modal/modal-confirm/index.d.ts +0 -3
  346. package/dist/components/modal/modal-confirm/index.js +0 -1
  347. package/dist/components/modal/styles.d.ts +0 -1357
  348. package/dist/components/modal/types.d.ts +0 -94
  349. package/dist/components/modal/utils.d.ts +0 -4
  350. package/dist/components/notification/index.d.ts +0 -4
  351. package/dist/components/notification/index.js +0 -1
  352. package/dist/components/notification/index.stories.d.ts +0 -9
  353. package/dist/components/notification/styles.d.ts +0 -7
  354. package/dist/components/notification/types.d.ts +0 -16
  355. package/dist/components/notification/utils.d.ts +0 -4
  356. package/dist/components/notification-sign/index.d.ts +0 -3
  357. package/dist/components/notification-sign/index.js +0 -1
  358. package/dist/components/notification-sign/index.stories.d.ts +0 -6
  359. package/dist/components/notification-sign/styles.d.ts +0 -544
  360. package/dist/components/notification-sign/types.d.ts +0 -16
  361. package/dist/components/number-input/index.d.ts +0 -5
  362. package/dist/components/number-input/index.js +0 -1
  363. package/dist/components/number-input/index.stories.d.ts +0 -6
  364. package/dist/components/number-input/styles.d.ts +0 -570
  365. package/dist/components/number-input/types.d.ts +0 -17
  366. package/dist/components/oauth-selector/index.d.ts +0 -5
  367. package/dist/components/oauth-selector/index.js +0 -1
  368. package/dist/components/oauth-selector/index.stories.d.ts +0 -7
  369. package/dist/components/oauth-selector/option-container/index.d.ts +0 -3
  370. package/dist/components/oauth-selector/option-container/index.js +0 -1
  371. package/dist/components/oauth-selector/types.d.ts +0 -45
  372. package/dist/components/pop-up/description/index.d.ts +0 -6
  373. package/dist/components/pop-up/description/index.js +0 -1
  374. package/dist/components/pop-up/index.d.ts +0 -4
  375. package/dist/components/pop-up/index.js +0 -1
  376. package/dist/components/pop-up/index.stories.d.ts +0 -8
  377. package/dist/components/pop-up/types.d.ts +0 -60
  378. package/dist/components/premium-feature/index.d.ts +0 -3
  379. package/dist/components/premium-feature/index.js +0 -1
  380. package/dist/components/premium-feature/index.stories.d.ts +0 -9
  381. package/dist/components/premium-feature/styles.d.ts +0 -270
  382. package/dist/components/premium-feature/types.d.ts +0 -14
  383. package/dist/components/priority-score/index.d.ts +0 -3
  384. package/dist/components/priority-score/index.js +0 -1
  385. package/dist/components/priority-score/index.stories.d.ts +0 -6
  386. package/dist/components/priority-score/types.d.ts +0 -9
  387. package/dist/components/progress-bar/index.d.ts +0 -3
  388. package/dist/components/progress-bar/index.js +0 -1
  389. package/dist/components/progress-bar/index.stories.d.ts +0 -185
  390. package/dist/components/progress-bar/styles.d.ts +0 -13
  391. package/dist/components/progress-bar/types.d.ts +0 -24
  392. package/dist/components/progress-indicator/in-progress-icon/index.d.ts +0 -3
  393. package/dist/components/progress-indicator/in-progress-icon/index.js +0 -1
  394. package/dist/components/progress-indicator/index.d.ts +0 -5
  395. package/dist/components/progress-indicator/index.js +0 -1
  396. package/dist/components/progress-indicator/step/index.d.ts +0 -3
  397. package/dist/components/progress-indicator/step/index.js +0 -1
  398. package/dist/components/progress-indicator/styles.d.ts +0 -14
  399. package/dist/components/progress-indicator/types.d.ts +0 -46
  400. package/dist/components/radio-button/index.d.ts +0 -3
  401. package/dist/components/radio-button/index.js +0 -1
  402. package/dist/components/radio-button/index.stories.d.ts +0 -121
  403. package/dist/components/radio-button/styles.d.ts +0 -541
  404. package/dist/components/radio-button/types.d.ts +0 -14
  405. package/dist/components/scroll-button/index.d.ts +0 -4
  406. package/dist/components/scroll-button/index.js +0 -1
  407. package/dist/components/scroll-button/styles.d.ts +0 -274
  408. package/dist/components/scroll-button/types.d.ts +0 -25
  409. package/dist/components/search/index.d.ts +0 -3
  410. package/dist/components/search/index.js +0 -1
  411. package/dist/components/search/index.stories.d.ts +0 -7
  412. package/dist/components/search/styles.d.ts +0 -839
  413. package/dist/components/search/types.d.ts +0 -12
  414. package/dist/components/severity-badge/index.d.ts +0 -4
  415. package/dist/components/severity-badge/index.js +0 -1
  416. package/dist/components/severity-badge/index.stories.d.ts +0 -8
  417. package/dist/components/severity-badge/types.d.ts +0 -26
  418. package/dist/components/severity-badge/utils.d.ts +0 -3
  419. package/dist/components/severity-overview/badge/index.d.ts +0 -3
  420. package/dist/components/severity-overview/badge/index.js +0 -1
  421. package/dist/components/severity-overview/index.d.ts +0 -3
  422. package/dist/components/severity-overview/index.js +0 -1
  423. package/dist/components/severity-overview/index.stories.d.ts +0 -6
  424. package/dist/components/severity-overview/types.d.ts +0 -40
  425. package/dist/components/severity-overview/utils.d.ts +0 -3
  426. package/dist/components/show-on-hover/index.d.ts +0 -3
  427. package/dist/components/show-on-hover/index.js +0 -1
  428. package/dist/components/show-on-hover/styles.d.ts +0 -270
  429. package/dist/components/show-on-hover/types.d.ts +0 -12
  430. package/dist/components/slide-out-menu/index.d.ts +0 -6
  431. package/dist/components/slide-out-menu/index.js +0 -1
  432. package/dist/components/slide-out-menu/index.stories.d.ts +0 -8
  433. package/dist/components/slide-out-menu/menu-item/index.d.ts +0 -4
  434. package/dist/components/slide-out-menu/menu-item/index.js +0 -1
  435. package/dist/components/slide-out-menu/styles.d.ts +0 -333
  436. package/dist/components/slide-out-menu/types.d.ts +0 -43
  437. package/dist/components/slider/index.d.ts +0 -3
  438. package/dist/components/slider/index.js +0 -1
  439. package/dist/components/slider/index.stories.d.ts +0 -7
  440. package/dist/components/slider/styles.d.ts +0 -546
  441. package/dist/components/slider/thumb/index.d.ts +0 -3
  442. package/dist/components/slider/thumb/index.js +0 -1
  443. package/dist/components/slider/types.d.ts +0 -19
  444. package/dist/components/slider/utils.d.ts +0 -2
  445. package/dist/components/step-lapse/index.d.ts +0 -3
  446. package/dist/components/step-lapse/index.js +0 -1
  447. package/dist/components/step-lapse/index.stories.d.ts +0 -6
  448. package/dist/components/step-lapse/styles.d.ts +0 -812
  449. package/dist/components/step-lapse/types.d.ts +0 -44
  450. package/dist/components/table/context/index.d.ts +0 -3
  451. package/dist/components/table/context/index.js +0 -1
  452. package/dist/components/table/context/types.d.ts +0 -27
  453. package/dist/components/table/export-csv/index.d.ts +0 -4
  454. package/dist/components/table/export-csv/index.js +0 -1
  455. package/dist/components/table/export-csv/types.d.ts +0 -25
  456. package/dist/components/table/export-csv/utils.d.ts +0 -2
  457. package/dist/components/table/index.d.ts +0 -24
  458. package/dist/components/table/index.js +0 -1
  459. package/dist/components/table/index.stories.d.ts +0 -22
  460. package/dist/components/table/pagination/pagination-control/index.d.ts +0 -2
  461. package/dist/components/table/pagination/pagination-control/index.js +0 -1
  462. package/dist/components/table/pagination/pagination-control/styles.d.ts +0 -6
  463. package/dist/components/table/pagination/pagination-dropdown/index.d.ts +0 -2
  464. package/dist/components/table/pagination/pagination-dropdown/index.js +0 -1
  465. package/dist/components/table/pagination/pagination-size/index.d.ts +0 -2
  466. package/dist/components/table/pagination/pagination-size/index.js +0 -1
  467. package/dist/components/table/sort-icon/index.d.ts +0 -3
  468. package/dist/components/table/sort-icon/index.js +0 -1
  469. package/dist/components/table/sort-icon/styles.d.ts +0 -5
  470. package/dist/components/table/sort-icon/types.d.ts +0 -9
  471. package/dist/components/table/styles.d.ts +0 -812
  472. package/dist/components/table/table-body/index.d.ts +0 -3
  473. package/dist/components/table/table-body/index.js +0 -1
  474. package/dist/components/table/table-body/styles.d.ts +0 -270
  475. package/dist/components/table/table-column-toggle/index.d.ts +0 -3
  476. package/dist/components/table/table-column-toggle/index.js +0 -1
  477. package/dist/components/table/table-content/head/index.d.ts +0 -3
  478. package/dist/components/table/table-content/head/index.js +0 -1
  479. package/dist/components/table/table-content/index.d.ts +0 -2
  480. package/dist/components/table/table-content/index.js +0 -1
  481. package/dist/components/table/table-footer/footer-content/index.d.ts +0 -4
  482. package/dist/components/table/table-footer/footer-content/index.js +0 -1
  483. package/dist/components/table/table-footer/index.d.ts +0 -4
  484. package/dist/components/table/table-footer/index.js +0 -1
  485. package/dist/components/table/table-options/caption-content/index.d.ts +0 -4
  486. package/dist/components/table/table-options/caption-content/index.js +0 -1
  487. package/dist/components/table/table-options/controls-content/index.d.ts +0 -4
  488. package/dist/components/table/table-options/controls-content/index.js +0 -1
  489. package/dist/components/table/table-options/highlighted-content/index.d.ts +0 -4
  490. package/dist/components/table/table-options/highlighted-content/index.js +0 -1
  491. package/dist/components/table/table-options/index.d.ts +0 -4
  492. package/dist/components/table/table-options/index.js +0 -1
  493. package/dist/components/table/table-options/styles.d.ts +0 -808
  494. package/dist/components/table/types.d.ts +0 -34
  495. package/dist/components/table/wrapper/index.d.ts +0 -4
  496. package/dist/components/table/wrapper/index.js +0 -1
  497. package/dist/components/table-button/index.d.ts +0 -3
  498. package/dist/components/table-button/index.js +0 -1
  499. package/dist/components/table-button/index.stories.d.ts +0 -112
  500. package/dist/components/table-button/styles.d.ts +0 -280
  501. package/dist/components/table-button/types.d.ts +0 -16
  502. package/dist/components/tabs/index.d.ts +0 -4
  503. package/dist/components/tabs/index.js +0 -1
  504. package/dist/components/tabs/index.stories.d.ts +0 -10
  505. package/dist/components/tabs/styles.d.ts +0 -6
  506. package/dist/components/tabs/tab/index.d.ts +0 -4
  507. package/dist/components/tabs/tab/index.js +0 -1
  508. package/dist/components/tabs/types.d.ts +0 -57
  509. package/dist/components/tag/index.d.ts +0 -4
  510. package/dist/components/tag/index.js +0 -1
  511. package/dist/components/tag/index.stories.d.ts +0 -9
  512. package/dist/components/tag/styles.d.ts +0 -7
  513. package/dist/components/tag/types.d.ts +0 -32
  514. package/dist/components/timeline/card/index.d.ts +0 -3
  515. package/dist/components/timeline/card/index.js +0 -1
  516. package/dist/components/timeline/index.d.ts +0 -5
  517. package/dist/components/timeline/index.js +0 -1
  518. package/dist/components/timeline/index.stories.d.ts +0 -6
  519. package/dist/components/timeline/styles.d.ts +0 -8
  520. package/dist/components/timeline/types.d.ts +0 -24
  521. package/dist/components/toggle/index.d.ts +0 -5
  522. package/dist/components/toggle/index.js +0 -1
  523. package/dist/components/toggle/index.stories.d.ts +0 -125
  524. package/dist/components/toggle/styles.d.ts +0 -810
  525. package/dist/components/toggle/types.d.ts +0 -30
  526. package/dist/components/tooltip/index.d.ts +0 -4
  527. package/dist/components/tooltip/index.js +0 -1
  528. package/dist/components/tooltip/index.stories.d.ts +0 -8
  529. package/dist/components/tooltip/styles.d.ts +0 -337
  530. package/dist/components/tooltip/types.d.ts +0 -29
  531. package/dist/components/tour/index.d.ts +0 -6
  532. package/dist/components/tour/index.js +0 -1
  533. package/dist/components/tour/types.d.ts +0 -14
  534. package/dist/components/typography/heading/index.d.ts +0 -3
  535. package/dist/components/typography/heading/index.js +0 -1
  536. package/dist/components/typography/index.d.ts +0 -4
  537. package/dist/components/typography/index.js +0 -1
  538. package/dist/components/typography/span/index.d.ts +0 -4
  539. package/dist/components/typography/span/index.js +0 -1
  540. package/dist/components/typography/styles.d.ts +0 -832
  541. package/dist/components/typography/text/index.d.ts +0 -3
  542. package/dist/components/typography/text/index.js +0 -1
  543. package/dist/components/typography/types.d.ts +0 -29
  544. package/dist/components-CaofXyDH.js +0 -3084
  545. package/dist/components-D7mt_Qr_.mjs +0 -12146
  546. package/dist/gradients.svg +0 -13
  547. package/dist/hooks/index.d.ts +0 -9
  548. package/dist/hooks/index.js +0 -1
  549. package/dist/hooks/use-carousel.d.ts +0 -6
  550. package/dist/hooks/use-click-outside.d.ts +0 -2
  551. package/dist/hooks/use-cloudinary-image.d.ts +0 -13
  552. package/dist/hooks/use-columns-modal.d.ts +0 -23
  553. package/dist/hooks/use-debounced-callback.d.ts +0 -4
  554. package/dist/hooks/use-modal.d.ts +0 -11
  555. package/dist/hooks/use-search.d.ts +0 -5
  556. package/dist/index.d.ts +0 -65
  557. package/dist/index.js +0 -1
  558. package/dist/utils/date.d.ts +0 -5
  559. package/dist/utils/open-url.d.ts +0 -1
  560. package/dist/vendor-DGfjRRUz.js +0 -223
  561. package/dist/vendor-Nr1PjBcL.mjs +0 -45708
@@ -1,3084 +0,0 @@
1
- "use strict";const t=require("react/jsx-runtime"),u=require("react"),l=require("./vendor-DGfjRRUz.js"),se=require("react-dom"),We=require("react-router-dom"),Y=e=>({getVariant:(n,i)=>e(n)[i]}),St=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"],Qn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},ei={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},ti={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},ni={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},ii={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},oi={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},ri={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},ai={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},si={type:{primary:"Roboto, sans-serif",poppins:"'Poppins', sans-serif",mono:"'Space Mono', monospace"},heading:{xxl:"64px",xl:"48px",lg:"32px",md:"24px",sm:"20px",xs:"16px"},text:{xl:"20px",lg:"18px",md:"16px",sm:"14px",xs:"12px"},weight:{bold:"700",semibold:"600",regular:"400"}},li={none:"none",sm:"0px 1px 2px 0px rgba(16, 24, 40, 0.15)",md:"0px 4px 6px 0px rgba(16, 24, 40, 0.15)",lg:"0px 8px 24px 0px rgba(16, 24, 40, 0.15)"},ci={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},di={0:"0rem",.125:"0.125rem",.188:"0.188rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",1:"1rem",1.25:"1.25rem",1.5:"1.5rem",1.75:"1.75rem",2:"2rem",2.25:"2.25rem",2.5:"2.5rem",3:"3rem",3.5:"3.5rem",4:"4rem",4.5:"4.5rem",5:"5rem",6:"6rem"},pi=["lock-keyhole","bars-sort","bolt","books","brain-circuit","briefcase","bug","buildings","bullseye-pointer","calendar-clock","calendar-xmark","chart-network","clipboard-check","comment","envelope","eye","file","flag","globe","hand-holding-dollar","hands-clapping","headset","hexagon-exclamation","light-emergency-on","magnifying-glass","pen-line","plane-departure","screwdriver-wrench","sensor-triangle-exclamation","shield-check","sidebar","skull","sliders","star-christmas","telescope","trash","unlock","user-group","user-hoodie","xmark"],gi=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],D={typography:si,shadows:li,breakpoints:ci,spacing:di,palette:{primary:ei,complementary:ti,error:ni,info:ri,warning:ii,success:oi,black:"#0c111d",white:"#ffffff",gray:Qn,gradients:ai}},ui=({children:e})=>t.jsx(l.Xe,{theme:D,children:e}),N=(e,n)=>n===void 0?"":`${e}: ${n};`,he=e=>{const n=e.py??e.pt??0,i=e.px??e.pr??0,o=e.py??e.pb??0,r=e.px??e.pl??0;if(e.padding){const[a,c,s,d]=e.padding;return`padding: ${D.spacing[a]} ${D.spacing[c]} ${D.spacing[s]} ${D.spacing[d]};`}return`padding: ${D.spacing[n]} ${D.spacing[i]} ${D.spacing[o]} ${D.spacing[r]};`},ye=e=>{const n=e.my??e.mt??0,i=e.mx??e.mr??0,o=e.my??e.mb??0,r=e.mx??e.ml??0;if(e.margin){const[a,c,s,d]=e.margin;return`margin: ${D.spacing[a]} ${D.spacing[c]} ${D.spacing[s]} ${D.spacing[d]};`}return`margin: ${D.spacing[n]} ${D.spacing[i]} ${D.spacing[o]} ${D.spacing[r]};`},be=e=>{const n=N("position",e.position),i=N("top",e.top),o=N("right",e.right),r=N("bottom",e.bottom),a=N("left",e.left),c=N("z-index",e.zIndex);return`
2
- ${n}
3
- ${i}
4
- ${o}
5
- ${r}
6
- ${a}
7
- ${c}
8
- `},$e=e=>{const n=N("border",e.border),i=N("border-top",e.borderTop),o=N("border-right",e.borderRight),r=N("border-bottom",e.borderBottom),a=N("border-left",e.borderLeft),c=N("border-color",e.borderColor),s=N("border-radius",e.borderRadius);return`
9
- ${n}
10
- ${i}
11
- ${o}
12
- ${r}
13
- ${a}
14
- ${c}
15
- ${s}
16
- `},xi=e=>e.includes("x")?"overflow-x: auto;":"",fi=e=>e.includes("y")?"overflow-y: auto;":"",me=e=>{const n=e.scroll?`
17
- ${xi(e.scroll)}
18
- ${fi(e.scroll)}
19
- `:"",i=N("visibility",e.visibility),o=N("display",e.display),r=N("height",e.height),a=N("width",e.width),c=N("max-height",e.maxHeight),s=N("max-width",e.maxWidth),d=N("min-height",e.minHeight),p=N("min-width",e.minWidth),g=N("box-shadow",e.shadow?D.shadows[e.shadow]:void 0),x=N("gap",e.gap===void 0?void 0:D.spacing[e.gap]),f=N("background-color",e.bgColor),h=N("background",e.bgGradient),y=N("flex-direction",e.flexDirection),$=N("flex-grow",e.flexGrow),m=N("justify-content",e.justify),j=N("justify-self",e.justifySelf),w=N("align-items",e.alignItems),v=N("align-self",e.alignSelf),k=N("flex-wrap",e.wrap);return`
20
- ${n}
21
- ${i}
22
- ${o}
23
- ${r}
24
- ${a}
25
- ${c}
26
- ${s}
27
- ${d}
28
- ${p}
29
- ${g}
30
- ${f}
31
- ${h}
32
- ${x}
33
- ${y}
34
- ${$}
35
- ${m}
36
- ${j}
37
- ${w}
38
- ${v}
39
- ${k}
40
- `},we=e=>{const n=N("color",e.color),i=N("font-family",e.fontFamily),o=N("font-size",e.fontSize),r=N("font-weight",e.fontWeight),a=N("line-spacing",e.letterSpacing),c=N("line-height",e.lineSpacing),s=N("text-align",e.textAlign),d=N("text-decoration",e.textDecoration),p=N("text-overflow",e.textOverflow),g=N("white-space",e.whiteSpace),x=N("word-break",e.wordBreak),f=N("word-wrap",e.wordWrap);return`
41
- ${n}
42
- ${i}
43
- ${o}
44
- ${r}
45
- ${a}
46
- ${c}
47
- ${s}
48
- ${d}
49
- ${p}
50
- ${g}
51
- ${x}
52
- ${f}
53
- `},je=e=>{const n=N("cursor",e.cursor),i=N("border-color",e.borderColorHover),o=N("background-color",e.bgColorHover),r=N("box-shadow",e.shadowHover===void 0?void 0:D.shadows[e.shadowHover]),a=N("transition",e.transition);return`
54
- ${n}
55
-
56
- &:hover {
57
- ${a||"transition: all 0.2s;"}
58
- ${i}
59
- ${o}
60
- ${r}
61
- }
62
- `},ve={shouldForwardProp:e=>!St.includes(e)},ke=l.st.div.withConfig(ve)`
63
- ${he}
64
- ${ye}
65
- ${be}
66
- ${me}
67
- ${we}
68
- ${$e}
69
- ${je}
70
- `,Ze=l.st.button.withConfig(ve)`
71
- ${he}
72
- ${ye}
73
- ${be}
74
- ${me}
75
- ${we}
76
- ${$e}
77
- ${je}
78
- `,qe=l.st.p.withConfig(ve)`
79
- ${he}
80
- ${ye}
81
- ${be}
82
- ${me}
83
- ${we}
84
- ${$e}
85
- ${je}
86
- `,Xe=l.st.span.withConfig(ve)`
87
- ${he}
88
- ${ye}
89
- ${be}
90
- ${me}
91
- ${we}
92
- ${$e}
93
- ${je}
94
- `,hi=l.st(ke)`
95
- ${({theme:e,$center:n=!1,$styleMd:i,$styleSm:o})=>`
96
- ${n?"margin: auto;":""}
97
- scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
98
- scroll-padding: ${e.spacing[.5]};
99
-
100
- @media screen
101
- and (min-width: ${e.breakpoints.mobile})
102
- and (max-width: ${e.breakpoints.tablet})
103
- {
104
- ${i};
105
- }
106
-
107
- @media screen and (max-width: ${e.breakpoints.mobile}) {
108
- ${o};
109
- }
110
- `}
111
- `,b=u.forwardRef(function({as:n="div",center:i,children:o,id:r,onHover:a,onLeave:c,styleMd:s,styleSm:d,...p},g){return t.jsx(hi,{$center:i,$styleMd:s,$styleSm:d,as:n,id:r,onMouseLeave:c,onMouseOver:a,ref:g,...p,children:o})}),yi=l.st(qe)`
112
- ${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:o="block",$fontFamily:r=e.typography.type.primary,$fontWeight:a="bold",$letterSpacing:c=0,$lineSpacing:s=1.5,$lineSpacingSm:d,$overflow:p="unset",$size:g,$sizeMd:x,$sizeSm:f,$textFill:h="unset",$whiteSpace:y="pre-line",$wordBreak:$="normal"})=>`
113
- background: ${n};
114
- color: ${i};
115
- display: ${o};
116
- font-family: ${r};
117
- font-size: ${e.typography.heading[g]};
118
- font-weight: ${e.typography.weight[a]};
119
- letter-spacing: ${c};
120
- line-height: ${e.spacing[s]};
121
- overflow: ${p};
122
- width: ${o==="block"?"100%":"auto"};
123
- white-space: ${y};
124
- word-break: ${$};
125
- background-clip: text;
126
- -webkit-background-clip: text;
127
- -webkit-text-fill-color: ${h};
128
-
129
- @media screen
130
- and (min-width: ${e.breakpoints.mobile})
131
- and (max-width: ${e.breakpoints.tablet})
132
- {
133
- font-size: ${e.typography.heading[x??g]};
134
- }
135
-
136
- @media screen and (max-width: ${e.breakpoints.mobile}) {
137
- font-size: ${e.typography.heading[f??g]};
138
- line-height: ${e.spacing[d??s]};
139
- }
140
- `}
141
- `,zt=l.st(qe)`
142
- ${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:o="block",$fontFamily:r=e.typography.type.primary,$fontWeight:a="regular",$fontStyle:c="normal",$letterSpacing:s=0,$lineSpacing:d=1.25,$lineSpacingSm:p,$overflow:g="unset",$size:x,$sizeMd:f,$sizeSm:h,$textFill:y="unset",$whiteSpace:$="pre-line",$wordBreak:m="normal"})=>`
143
- background: ${n};
144
- color: ${i};
145
- display: ${o};
146
- font-family: ${r};
147
- font-size: ${e.typography.text[x]};
148
- font-style: ${c};
149
- font-weight: ${e.typography.weight[a]};
150
- letter-spacing: ${s};
151
- line-height: ${e.spacing[d]};
152
- overflow: ${g};
153
- width: ${o==="block"?"100%":"auto"};
154
- white-space: ${$};
155
- word-break: ${m};
156
- background-clip: text;
157
- -webkit-background-clip: text;
158
- -webkit-text-fill-color: ${y};
159
-
160
- @media screen
161
- and (min-width: ${e.breakpoints.mobile})
162
- and (max-width: ${e.breakpoints.tablet})
163
- {
164
- font-size: ${e.typography.text[f??x]};
165
- }
166
-
167
- @media screen and (max-width: ${e.breakpoints.mobile}) {
168
- font-size: ${e.typography.text[h??x]};
169
- line-height: ${e.spacing[p??d]};
170
- }
171
- `}
172
- `,bi=l.st(Xe)`
173
- ${({theme:e,$color:n=e.palette.gray[600],$content:i=void 0,$display:o="inline",$fontWeight:r="regular",$size:a,$lineSpacing:c=1.25})=>`
174
- color: ${n};
175
- display: ${o};
176
- font-family: ${e.typography.type.primary};
177
- font-size: ${e.typography.text[a]};
178
- font-weight: ${e.typography.weight[r]};
179
- line-height: ${e.spacing[c]};
180
- max-width: 100%;
181
- width: ${o==="block"?"100%":"auto"};
182
-
183
- ${i===void 0?"":`&::after { content: "${i}"; }`}
184
- `}
185
- `,K=u.forwardRef(function({bgGradient:n,children:i,className:o,color:r,display:a,fontFamily:c,fontWeight:s,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,overflow:x,size:f,sizeMd:h,sizeSm:y,textFill:$,whiteSpace:m,wordBreak:j,...w},v){return t.jsx(yi,{$bgGradient:n,$color:r,$display:a,$fontFamily:c,$fontWeight:s,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$overflow:x,$size:f,$sizeMd:h,$sizeSm:y,$textFill:$,$whiteSpace:m,$wordBreak:j,className:o,ref:v,...w,children:i})}),ue=u.forwardRef(function({children:n,color:i,content:o,display:r,fontFamily:a,fontWeight:c,letterSpacing:s,lineSpacing:d,lineSpacingSm:p,size:g,sizeMd:x,sizeSm:f,...h},y){return t.jsx(bi,{$color:i,$content:o,$display:r,$fontFamily:a,$fontWeight:c,$letterSpacing:s,$lineSpacing:d,$lineSpacingSm:p,$size:g,$sizeMd:x,$sizeSm:f,ref:y,...h,children:n})}),I=u.forwardRef(function({bgGradient:n,children:i,className:o,color:r,display:a,fontFamily:c,fontWeight:s,letterSpacing:d,lineSpacing:p,lineSpacingSm:g,overflow:x,size:f,sizeMd:h,sizeSm:y,textFill:$,whiteSpace:m,wordBreak:j,fontStyle:w,...v},k){return t.jsx(zt,{$bgGradient:n,$color:r,$display:a,$fontFamily:c,$fontStyle:w,$fontWeight:s,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:g,$overflow:x,$size:f,$sizeMd:h,$sizeSm:y,$textFill:$,$whiteSpace:m,$wordBreak:j,className:o,ref:k,...v,children:i})}),It=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(I,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return t.jsxs(b,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[n,e.extraElement?t.jsx(b,{children:e.extraElement}):void 0]})},$i={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},mi=l.st(Xe)`
186
- ${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:o,$rotation:r,$size:a,$secondaryColor:c})=>{const s=o?"":"brightness(50%)",d=o??"";return`
187
- color: ${n};
188
- cursor: ${e?"pointer":"inherit"};
189
- font-size: ${$i[a]};
190
- line-height: 0;
191
- vertical-align: middle;
192
- pointer-events: inherit;
193
- opacity: ${i?"0.5":"1"};
194
-
195
- > svg {
196
- --fa-secondary-color: ${c};
197
- transform: ${r===void 0?"":`rotate(${r}deg)`};
198
- }
199
-
200
- .fill-gradient-01 path {
201
- fill: url(/gradients.svg#gradient-01);
202
- fill: url(#gradient-01);
203
- }
204
- .fill-gradient-02 path {
205
- fill: url(/gradients.svg#gradient-02);
206
- fill: url(#gradient-02);
207
- }
208
-
209
- ${e?`&:hover {
210
- filter: ${s};
211
- color: ${d};
212
- }`:""}
213
- `}}
214
- `;l.st.div`
215
- cursor: pointer;
216
- transition: all 0.2s ease-in-out;
217
-
218
- &:hover:not([disabled]) {
219
- transform: scale(1.2);
220
- }
221
- `;const E=u.forwardRef(function({clickable:n,disabled:i,hoverColor:o,icon:r,iconClass:a="",iconColor:c,iconMask:s,iconSize:d,iconTransform:p,iconType:g="fa-solid",onClick:x,rotation:f,spanClass:h,secondaryColor:y,...$},m){return t.jsx(mi,{$clickable:n,$color:c,$disabled:i,$hoverColor:o,$rotation:f,$secondaryColor:y,$size:d,className:h,"data-testid":`${r}-icon`,onClick:x,ref:m,...$,children:t.jsx("i",{className:`${g} fa-${r} ${a}`,...s!==void 0?{"data-fa-mask":s}:{},...p!==void 0?{"data-fa-transform":p}:{}})},`${g}-${r}`)}),wi=u.forwardRef(function({aligned:n="end",items:i,bgColor:o},r){const a=l.Je(),[c,s]=u.useState(i.map(p=>p.expanded??!1)),d=u.useCallback(p=>g=>{g.preventDefault(),s(x=>x.map((f,h)=>h===p?!f:f))},[]);return t.jsx(b,{borderColor:a.palette.gray[200],borderTop:"1px solid",ref:r,children:i.map((p,g)=>{const x=c[g];return t.jsxs(b,{bgColor:o??a.palette.white,borderBottom:"1px solid",borderColor:a.palette.gray[200],children:[t.jsx(b,{"aria-controls":`panel-${p.title}`,"aria-expanded":x,"aria-label":p.title,as:"button",bgColor:o??a.palette.white,bgColorHover:a.palette.gray[100],cursor:"pointer",display:"flex",onClick:d(g),padding:[.75,.75,.75,.75],width:"100%",children:t.jsxs(b,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(I,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:p.title}),t.jsx(E,{icon:x?"chevron-up":"chevron-down",iconColor:a.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),x&&t.jsx(It,{item:p})]},p.title)})})}),ji=e=>{switch(e){case"warning":return"triangle-exclamation";case"info":return"circle-info";case"success":return"circle-check";case"error":default:return"circle-exclamation"}},{getVariant:vi}=Y(e=>({error:`
222
- background: ${e.palette.error[50]};
223
- border: 1px solid ${e.palette.error[500]};
224
- color: ${e.palette.error[700]};
225
-
226
- button {
227
- color: ${e.palette.error[700]};
228
-
229
- &:hover:not([disabled]) {
230
- background-color: ${e.palette.error[200]};
231
- color: ${e.palette.error[700]};
232
- }
233
- }
234
- `,info:`
235
- background: ${e.palette.info[50]};
236
- border: 1px solid ${e.palette.info[500]};
237
- color: ${e.palette.info[700]};
238
-
239
- button {
240
- color: ${e.palette.info[700]};
241
-
242
- &:hover:not([disabled]) {
243
- background-color: ${e.palette.info[200]};
244
- color: ${e.palette.info[700]};
245
- }
246
- }
247
- `,success:`
248
- background: ${e.palette.success[50]};
249
- border: 1px solid ${e.palette.success[500]};
250
- color: ${e.palette.success[700]};
251
-
252
- button {
253
- color: ${e.palette.success[700]};
254
-
255
- &:hover:not([disabled]) {
256
- background-color: ${e.palette.success[200]};
257
- color: ${e.palette.success[700]};
258
- }
259
- }
260
- `,warning:`
261
- background: ${e.palette.warning[50]};
262
- border: 1px solid ${e.palette.warning[500]};
263
- color: ${e.palette.warning[700]};
264
-
265
- button {
266
- color: ${e.palette.warning[700]};
267
-
268
- &:hover:not([disabled]) {
269
- background-color: ${e.palette.warning[200]};
270
- color: ${e.palette.warning[700]};
271
- }
272
- }
273
- `})),ki=l.st.div`
274
- ${({theme:e,$variant:n})=>`
275
- background: transparent;
276
- align-items: center;
277
- border-radius: ${e.spacing[.25]};
278
- display: inline-flex;
279
- font-family: ${e.typography.type.primary};
280
- font-size: ${e.typography.text.sm};
281
- font-weight: ${e.typography.weight.bold};
282
- line-height: ${e.spacing[1.25]};
283
- min-width: 250px;
284
- width: 100%;
285
- padding: ${e.spacing[.75]};
286
- position: relative;
287
- gap: ${e.spacing[.75]};
288
-
289
- button {
290
- background-color: transparent;
291
- }
292
-
293
- ${vi(e,n??"error")}
294
- `}
295
- `,Ci=l.st.div`
296
- padding-right: 4px;
297
- width: 100%;
298
- `,{getVariant:Si}=Y(e=>({ghost:`
299
- background: transparent;
300
- border: none;
301
- color: ${e.palette.gray[800]};
302
- --btn-padding-x: ${e.spacing[.5]};
303
- --btn-padding-y: ${e.spacing[.625]};
304
- --btn-spacing: ${e.spacing[.25]};
305
-
306
- &:disabled {
307
- color: ${e.palette.gray[400]};
308
- cursor: not-allowed;
309
- }
310
-
311
- &:hover:not([disabled]) {
312
- background-color: ${e.palette.gray[100]};
313
- color: ${e.palette.gray[800]};
314
- }
315
- `,link:`
316
- --btn-padding-x: 0;
317
- --btn-padding-y: 0;
318
- color: ${e.palette.gray[800]};
319
-
320
- &:hover {
321
- color: ${e.palette.gray[500]};
322
- }
323
- `,primary:`
324
- background: ${e.palette.primary[500]};
325
- border: none;
326
- color: ${e.palette.white};
327
- --btn-spacing: ${e.spacing[.25]};
328
-
329
- &:disabled {
330
- background: ${e.palette.gray[200]};
331
- color: ${e.palette.gray[400]};
332
- cursor: not-allowed;
333
- }
334
-
335
- &:hover:not([disabled]) {
336
- background-color: ${e.palette.primary[700]};
337
- color: ${e.palette.white};
338
- }
339
- `,secondary:`
340
- background: ${e.palette.gray[800]};
341
- border: none;
342
- color: ${e.palette.white};
343
- --btn-spacing: ${e.spacing[.25]};
344
-
345
- &:disabled {
346
- background: ${e.palette.gray[200]};
347
- color: ${e.palette.gray[400]};
348
- cursor: not-allowed;
349
- }
350
-
351
- &:hover:not([disabled]) {
352
- background-color: ${e.palette.gray[600]};
353
- color: ${e.palette.white};
354
- }
355
- `,tertiary:`
356
- background: transparent;
357
- border: 1px solid ${e.palette.primary[500]};
358
- color: ${e.palette.primary[500]};
359
- --btn-spacing: ${e.spacing[.25]};
360
-
361
- &:disabled {
362
- background: transparent;
363
- border: 1px solid ${e.palette.gray[200]};
364
- color: ${e.palette.gray[300]};
365
- cursor: not-allowed;
366
- }
367
-
368
- &:hover:not([disabled]) {
369
- background-color: ${e.palette.primary[500]};
370
- color: ${e.palette.white};
371
- }
372
- `})),Tt=l.st(Ze)`
373
- ${({theme:e,justify:n,$size:i,$variant:o})=>`
374
- align-items: center;
375
- border-radius: var(--btn-spacing);
376
- cursor: pointer;
377
- display: inline-flex;
378
- font-family: ${e.typography.type.primary};
379
- font-size: ${i??e.typography.text.sm};
380
- font-weight: ${e.typography.weight.regular};
381
- gap: var(--btn-spacing);
382
- justify-content: ${n??"center"};
383
- line-height: ${e.spacing[1.25]};
384
- padding: var(--btn-padding-y) var(--btn-padding-x);
385
- position: relative;
386
- text-align: start;
387
- transition: all 0.5s ease;
388
- white-space: nowrap;
389
-
390
- @media screen and (max-width: ${e.breakpoints.mobile}) {
391
- ${o!=="link"?`--btn-padding-y: ${e.spacing[1]}`:""};
392
- }
393
-
394
- ${Si(e,o??"primary")}
395
- `}
396
- `,zi=l.st(Tt)`
397
- ${({theme:e,borderRadius:n="4px",px:i=.5,py:o=.5})=>`
398
- --btn-spacing: ${n};
399
- --btn-padding-x: ${e.spacing[i]};
400
- --btn-padding-y: ${e.spacing[o]};
401
-
402
- align-items: center;
403
- line-height: 0;
404
- text-align: center;
405
-
406
- > span {
407
- margin: 0 !important;
408
- }
409
- `}
410
- `,Ii=l.st(ke)``,Ti=l.st.div`
411
- ${({theme:e,$maxWidth:n="320px"})=>`
412
- background-color: ${e.palette.gray[700]};
413
- border-radius: 8px;
414
- color: ${e.palette.white};
415
- font-size: ${e.typography.text.xs};
416
- max-width: ${n};
417
- padding: ${e.spacing[.75]};
418
- width: max-content;
419
- z-index: 999999;
420
- `}
421
- `,J=({children:e,disabled:n=!1,display:i="inline-block",height:o,icon:r,iconColor:a,iconSize:c,id:s,maxWidth:d,nodeTip:p,place:g="bottom",tip:x="",title:f="",hide:h=x===""&&f===""&&p===void 0,width:y})=>{const $=l.Je(),[m,j]=u.useState(!1),{refs:w,floatingStyles:v,context:k}=l.useFloating({middleware:[l.flip({fallbackAxisSideDirection:"start"}),l.offset({mainAxis:10}),l.shift()],onOpenChange:j,open:m,placement:g,whileElementsMounted:l.autoUpdate}),C=l.useHover(k,{delay:{close:0,open:500},move:!1}),R=l.useFocus(k),z=l.useRole(k,{role:r?"label":"tooltip"}),{getReferenceProps:S,getFloatingProps:F}=l.useInteractions([C,R,z]);return n?t.jsx(u.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(Ii,{...S(),display:i,height:o,id:s,ref:w.setReference,width:y,children:r?t.jsx(E,{clickable:!0,disabled:n,icon:r,iconColor:a,iconSize:c??"xxs",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&se.createPortal(t.jsxs(Ti,{...F(),$maxWidth:d,id:`floating-${s}`,ref:w.setFloating,style:v,children:[l.lodashExports.isEmpty(f)?void 0:t.jsx(I,{color:$.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:f}),l.lodashExports.isEmpty(x)?void 0:t.jsx(I,{color:$.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:x}),l.lodashExports.isEmpty(p)?void 0:p]}),document.getElementById("root")??document.body)]})},M=u.forwardRef(function({borderRadius:n,disabled:i,icon:o,iconColor:r,iconSize:a="xxs",iconTransform:c,iconType:s,id:d,justify:p="center",onClick:g,px:x,py:f,type:h="button",tooltip:y,tooltipPlace:$,value:m,variant:j="primary",...w},v){const k=t.jsx(zi,{$variant:j,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:p,onClick:g,px:x,py:f,ref:v,type:h,value:m,...w,children:t.jsx(E,{clickable:!1,icon:o,iconColor:r,iconSize:a,iconTransform:c,iconType:s})}),R=(h+(j??"")+(d??o)).replace(/ /u,"_");return y===void 0?k:t.jsx(J,{id:`${R}-tooltip`,place:$,tip:y,children:k})}),Ei=u.forwardRef(function({autoHide:n=!1,children:i,closable:o=!1,iconEnabled:r=!0,onTimeOut:a,show:c=!0,time:s=8,variant:d="error",id:p,...g},x){const[f,h]=u.useState(c),y=u.useCallback(()=>{h(!1)},[]);return u.useEffect(()=>{const $=setTimeout(()=>{a==null||a(!0),n&&y()},s*1e3);return()=>{clearTimeout($)}},[n,y,s,a]),u.useEffect(()=>{h(c)},[c,h]),t.jsx(b,{display:f?"block":"none",ref:x,role:"alert",...g,children:t.jsxs(ki,{$variant:d,id:p,children:[r?t.jsx(E,{clickable:!1,icon:ji(d),iconSize:"xs",iconType:"fa-light"}):void 0,t.jsx(Ci,{children:i}),o?t.jsx(M,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:y,px:.125,py:.125,variant:"ghost"}):void 0]})})}),ut=l.st.div`
422
- ${({theme:e})=>`
423
- align-items: center;
424
- background-color: ${e.palette.gray[200]};
425
- border-radius: 100%;
426
- color: ${e.palette.gray[800]};
427
- display: flex;
428
- font-family: ${e.typography.type.primary};
429
- font-size: ${e.typography.text.xs};
430
- font-weight: 500;
431
- line-height: 18px;
432
- justify-content: center;
433
- text-align: center;
434
- width: ${e.spacing[1.25]};
435
- height: ${e.spacing[1.25]};
436
- `}
437
- `,Ri=l.st.div`
438
- ul,
439
- ol {
440
- padding-top: 6px;
441
- padding-bottom: 6px;
442
- background-color: #fff;
443
- position: absolute;
444
- top: 40px;
445
- right: 1px;
446
- z-index: 1;
447
- }
448
-
449
- .no-hover,
450
- .user-info {
451
- text-decoration: none;
452
- display: flex;
453
- justify-content: space-between;
454
- height: auto;
455
- }
456
-
457
- .user-info,
458
- .commit-info {
459
- padding-left: 16px;
460
- padding-right: 16px;
461
- }
462
-
463
- .user-info {
464
- padding-top: 10px;
465
- padding-bottom: 1px;
466
- }
467
-
468
- .commit-info {
469
- padding-top: 1px;
470
- padding-bottom: 10px;
471
- }
472
-
473
- li {
474
- list-style-type: none;
475
- }
476
-
477
- span {
478
- white-space: nowrap;
479
- }
480
-
481
- a {
482
- color: ${({theme:e})=>e.palette.gray[800]};
483
- text-decoration: none;
484
- padding: unset;
485
- }
486
-
487
- a:hover {
488
- text-decoration: none;
489
- color: ${({theme:e})=>e.palette.gray[800]};
490
- }
491
-
492
- #menu-profile-container ul {
493
- min-width: unset;
494
- width: auto;
495
- z-index: 10;
496
- }
497
-
498
- #menu-profile-container li div {
499
- min-width: unset;
500
- }
501
- `,{getVariant:Di}=Y(e=>({default:`
502
- background-color: ${e.palette.gray[200]};
503
- color: ${e.palette.gray[800]};
504
- `,error:`
505
- &.high {
506
- background-color: ${e.palette.error[700]};
507
- color: ${e.palette.white};
508
- }
509
- &.low {
510
- background-color: ${e.palette.error[50]};
511
- color: ${e.palette.error[700]};
512
- }
513
- &.medium {
514
- background-color: ${e.palette.error[500]};
515
- color: ${e.palette.error[50]};
516
- }
517
- `,inactive:`
518
- background-color: ${e.palette.gray[200]};
519
- color: ${e.palette.gray[600]};
520
- `,info:`
521
- &.high {
522
- background-color: ${e.palette.info[700]};
523
- color: ${e.palette.white};
524
- }
525
- &.low {
526
- background-color: ${e.palette.info[50]};
527
- color: ${e.palette.info[700]};
528
- }
529
- &.medium {
530
- background-color: ${e.palette.info[500]};
531
- color: ${e.palette.info[50]};
532
- }
533
- `,reachable:`
534
- background-color: ${e.palette.gray[50]};
535
- color: ${e.palette.gray[800]};
536
- `,remediation:`
537
- background-color: inherit;
538
- border: 1px solid ${e.palette.gray[300]};
539
- color: ${e.palette.gray[400]};
540
- `,role:`
541
- background-color: ${e.palette.gray[800]};
542
- color: ${e.palette.white};
543
- `,success:`
544
- &.high {
545
- background-color: ${e.palette.success[700]};
546
- color: ${e.palette.white};
547
- }
548
- &.low {
549
- background-color: ${e.palette.success[50]};
550
- color: ${e.palette.success[700]};
551
- }
552
- &.medium {
553
- background-color: ${e.palette.success[500]};
554
- color: ${e.palette.success[50]};
555
- }
556
- `,technique:`
557
- --tag-padding-y: ${e.spacing[.25]};
558
- --tag-padding-x: ${e.spacing[.75]};
559
-
560
- background-color: inherit;
561
- border: 1px solid ${e.palette.success[800]};
562
- color: ${e.palette.success[800]};
563
- `,warning:`
564
- &.high {
565
- background-color: ${e.palette.warning[600]};
566
- color: ${e.palette.white};
567
- }
568
- &.low {
569
- background-color: ${e.palette.warning[50]};
570
- color: ${e.palette.warning[700]};
571
- }
572
- &.medium {
573
- background-color: ${e.palette.warning[400]};
574
- color: ${e.palette.warning[700]};
575
- }
576
- `})),Ni=l.st.span`
577
- ${({theme:e,$fontSize:n=e.typography.text.xs,$variant:i})=>`
578
- align-items: center;
579
- border-radius: ${e.spacing[i==="technique"?1:.25]};
580
- display: inline-flex;
581
- gap: ${e.spacing[.25]};
582
- font-family: ${e.typography.type.primary};
583
- font-size: ${n};
584
- font-style: normal;
585
- font-weight: ${e.typography.weight.regular};
586
- justify-content: center;
587
- line-height: 18px;
588
- padding: var(--tag-padding-y) var(--tag-padding-x);
589
- white-space: nowrap;
590
- width: max-content;
591
-
592
- ~ a {
593
- font-size: ${e.typography.text.xs};
594
- display: flex;
595
- }
596
-
597
- ${Di(e,i)}
598
- `}
599
- `,{getVariant:Fi}=Y(e=>({highRelevance:`
600
- color: ${e.palette.primary[500]};
601
-
602
- &:hover:not([disabled]) {
603
- color: ${e.palette.primary[400]};
604
- }
605
- `,lowRelevance:`
606
- color: ${e.palette.gray[800]};
607
-
608
- &:hover:not([disabled]) {
609
- color: ${e.palette.gray[500]};
610
- }
611
- `})),Et=l.nt`
612
- ${({theme:e,$color:n,$variant:i})=>`
613
- align-items: center;
614
- cursor: pointer;
615
- font-family: ${e.typography.type.primary};
616
- font-size: ${e.typography.text.sm};
617
- font-weight: ${e.typography.weight.regular};
618
- gap: ${e.spacing[.25]};
619
- line-height: ${e.spacing[1.25]};
620
- text-decoration: underline;
621
- word-break: break-word;
622
- word-wrap: break-word;
623
-
624
- &:disabled {
625
- color: ${e.palette.gray[300]};
626
- cursor: not-allowed;
627
- }
628
-
629
- &:has(button) {
630
- text-decoration: none;
631
- }
632
-
633
- ${n?`color: ${n}`:Fi(e,i)}
634
- `}
635
- `,Li=l.st.a`
636
- ${Et}
637
- `,Ai=l.st(We.Link)`
638
- ${Et}
639
- `,Z=({children:e,color:n,download:i,href:o,iconPosition:r="right",onClick:a,target:c,variant:s="lowRelevance"})=>{const d=o.startsWith("https://"),p=t.jsx(E,{icon:i===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return d?t.jsxs(Li,{$color:n,$variant:s,download:i,href:o,onClick:a,rel:"nofollow noopener noreferrer",target:c??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(Ai,{$variant:s,download:i,onClick:a,rel:"nofollow noopener noreferrer",target:c,to:o,children:[c!==void 0&&r==="left"?p:void 0,e,c!==void 0&&r==="right"?p:void 0]})},U=({disabled:e,icon:n,iconColor:i="inherit",iconType:o="fa-light",id:r="close-tag",filterValues:a="",fontSize:c,href:s,linkLabel:d,onClose:p,priority:g="default",tagTitle:x="",tagLabel:f,variant:h="default"})=>{const y=f.length>25&&l.lodashExports.isEmpty(x+a),$=`${f.slice(0,25)}...`;return t.jsxs(ue,{className:"gap-0.5",display:s===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Ni,{$fontSize:c,$variant:h,className:g,children:[n&&t.jsx(E,{icon:n,iconColor:i,iconSize:"xxs",iconType:o}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:x}),t.jsx("span",{children:y?$:f}),t.jsx("strong",{className:"w-full",children:a})]}),p?t.jsx(M,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),s===void 0?void 0:t.jsx(Z,{href:s,children:d})]})},Rt=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");l.lodashExports.isObject(i)&&(i.opener=null)},P=u.forwardRef(function({children:n,disabled:i=!1,external:o=!1,fontSize:r,href:a,id:c,icon:s,iconColor:d,iconType:p,name:g,onClick:x,rightIcon:f,tag:h,type:y="button",tooltip:$,tooltipPlace:m="bottom",underline:j=!1,value:w,variant:v="primary",width:k,...C},R){const z=$!==void 0,S=`${c}-tooltip`,F=u.useCallback(()=>{a&&Rt(a,o)},[o,a]),T=t.jsxs(Tt,{$size:r,$variant:v,"aria-disabled":i,className:j?"underline":void 0,disabled:i,id:c,name:g,onClick:v==="link"?F:x,ref:R,type:y,value:w,width:k,...z?{"data-tooltip-id":S}:{},...C,children:[s!==void 0&&t.jsx(E,{icon:s,iconColor:d??void 0,iconSize:"xs",iconType:p??"fa-light"}),n,f||v==="link"?t.jsx(E,{icon:f??"arrow-right",iconSize:"xs",iconType:"fa-light"}):void 0,h===void 0?null:t.jsx(U,{tagLabel:h,variant:"default"})]});return z?t.jsx(J,{disabled:!z,id:S,place:m,tip:$,width:k,children:T}):T}),Pi=u.forwardRef(function({children:n,onClick:i,userName:o,showIcon:r=!1,showUsername:a=!1},c){const s=!!i;return t.jsx(b,{id:"navbar-user-profile",ref:c,zIndex:9999,children:t.jsxs(b,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[s?t.jsxs(P,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(ut,{children:o[0].toUpperCase()}),a?t.jsx(I,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:o.split(" ")[0]}):void 0,r?t.jsx(E,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs(b,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(ut,{children:o[0].toUpperCase()}),a?t.jsxs(I,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",o.split(" ")[0],"!"]}):void 0,r?t.jsx(E,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(Ri,{children:n})]})})}),De=({authorEmail:e,date:n,description:i,descriptionColor:o,id:r,title:a,titleColor:c,textAlign:s,textSpacing:d=0,tooltip:p})=>{const g=l.Je();return t.jsxs(b,{width:"100%",children:[typeof a=="string"||p?t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,width:"100%",children:[typeof a=="string"?t.jsx(I,{color:c??g.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:s,wordBreak:"break-word",children:a}):a,p&&t.jsx(J,{icon:"circle-info",id:r,place:"top",tip:p})]}):void 0,t.jsxs(b,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(I,{color:o??g.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:s,wordBreak:"break-word",children:i}),n&&t.jsx(I,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(I,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Author: ${e}`})]})]})},xt=l.st(b).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
640
- & img {
641
- display: block;
642
- }
643
-
644
- &::after {
645
- content: "";
646
- position: absolute;
647
- top: 0;
648
- left: 0;
649
- width: 100%;
650
- height: 100%;
651
- pointer-events: none;
652
- ${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
653
- }
654
- `,Mi=e=>{if(l._.isNil(e))return"";const n=e.split(".");return(n.length>1?l._.last(n):"").toLowerCase()},Oi=(e,n)=>l._.isUndefined(n)?!1:l._.includes(e,Mi(n)),Dt=({alt:e,fileType:n,width:i="100%",opacity:o=0,src:r,height:a="auto",videoViewStatus:c})=>{const[s,d]=u.useState({start:!1,half:!1,end:!1}),p=u.useCallback(g=>{if(!c)return;const x=g.target,f=x.currentTime/x.duration*100;f>5&&f<50?(s.start||c("start"),d({start:!0,half:!1,end:!1})):f>=50&&f<99?(s.half||c("half"),d({start:!0,half:!0,end:!1})):f>=99?(s.end||c("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[c,s]);return n==="video"||Oi(["webm"],r)?t.jsx(xt,{$opacity:o,children:t.jsx(Z,{href:r,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:p,style:{height:a,width:i},children:[t.jsx("source",{src:r,type:"video/webm"}),r]})})}):t.jsx(xt,{$opacity:o,children:t.jsx("img",{alt:e,src:r,style:{height:a,width:i}})})},Wi=({alt:e,authorEmail:n,date:i,description:o,src:r,children:a,isEditing:c,onClick:s,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:x=!0,videoViewStatus:f})=>{const h=l.Je(),[y,$]=u.useState(!1),m=u.useCallback(()=>{$(!0)},[]),j=u.useCallback(()=>{$(!1)},[]);return t.jsxs(b,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:m,onLeave:j,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(b,{cursor:c?"unset":"pointer",display:"inline-flex",justify:"center",onClick:s,position:"relative",width:"100%",children:a===void 0?t.jsxs(u.Fragment,{children:[t.jsx(Dt,{alt:e,fileType:g,height:"147px",opacity:y?.3:0,src:r,videoViewStatus:f,width:"100%"}),x?t.jsx(b,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(M,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):a}),p?null:t.jsx(De,{authorEmail:n,date:i,description:o,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:d})]})},Hi=l.st.div`
655
- ${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:o="auto"})=>`
656
- display: flex;
657
- background-color: ${e.palette.white};
658
- border-radius: ${e.spacing[.25]};
659
- border: 1px solid ${e.palette.gray[200]};
660
- flex-direction: column;
661
- justify-content: center;
662
- gap: ${e.spacing[.5]};
663
- min-width: ${i};
664
- min-height: ${o};
665
- padding: ${e.spacing[1]};
666
-
667
- input {
668
- color: ${e.palette.gray[800]};
669
- line-height: ${e.spacing[1.5]};
670
- text-align: ${n};
671
- }
672
- `}
673
- `,Qe=({htmlFor:e,label:n,link:i,required:o,tooltip:r,weight:a="normal"})=>{const c=l.Je(),s=`${e}-tooltip`,d=r!==void 0&&!l.lodashExports.isEmpty(r);return t.jsxs("label",{className:"flex gap-1 w-full",htmlFor:e,style:{fontWeight:c.typography.weight[a]},children:[n,o&&t.jsx(E,{icon:"asterisk",iconColor:c.palette.error[500],iconSize:"xxss"}),i?t.jsx(Z,{href:i,target:"_blank"}):null,d?t.jsx(J,{display:"inline-flex",icon:"circle-info",id:s,place:"top",tip:r}):null]})},Bi=l.st.div`
674
- ${({theme:e})=>`
675
- align-items: flex-start;
676
- display: inline-flex;
677
- flex-direction: column;
678
- gap: ${e.spacing[.25]};
679
- position: relative;
680
- width: 100%;
681
-
682
- label {
683
- color: ${e.palette.gray[800]};
684
- }
685
-
686
- &:has(input.date-input) {
687
- div {
688
- padding-right: 0;
689
- }
690
- }
691
-
692
- &:has(input[type="file"]) {
693
- div {
694
- border-right: unset;
695
- padding-right: 0;
696
-
697
- &:hover, &:focus-within {
698
- border-right: unset;
699
- }
700
- }
701
- }
702
-
703
- > *:not(.error-msg) {
704
- font-family: ${e.typography.type.primary};
705
- font-size: ${e.typography.text.sm};
706
- font-style: normal;
707
- font-weight: ${e.typography.weight.regular};
708
- line-height: ${e.spacing[1.25]};
709
- }
710
- `}
711
- `,te=l.st.div`
712
- ${({theme:e,$overflowX:n})=>`
713
- align-items: center;
714
- display: flex;
715
- border-radius: ${e.spacing[.5]};
716
- border: 1px solid;
717
- border-color: ${e.palette.gray[300]};
718
- color: ${e.palette.gray[600]};
719
- gap: ${e.spacing[.625]};
720
- justify-content: space-between;
721
- height: 40px;
722
- overflow-x: ${n??"unset"};
723
- padding: ${n===void 0?`${e.spacing[.625]} ${e.spacing[.75]}`:`${e.spacing[.25]} ${e.spacing[.75]}`};
724
- width: 100%;
725
- white-space: nowrap;
726
-
727
- input, textarea {
728
- background: inherit;
729
- color: ${e.palette.gray[800]};
730
- cursor: inherit;
731
- outline: none;
732
- resize: none;
733
- width: 100%;
734
-
735
- &::placeholder {
736
- color: ${e.palette.gray[400]};
737
- }
738
-
739
- &:focus-visible {
740
- outline: none;
741
- }
742
-
743
- &[type="number"] {
744
- appearance: textfield;
745
- }
746
-
747
- &::-webkit-outer-spin-button,
748
- &::-webkit-inner-spin-button {
749
- appearance: none;
750
- margin: 0;
751
- }
752
-
753
- &::-webkit-calendar-picker-indicator {
754
- display: none !important;
755
- }
756
- }
757
-
758
- input.date-input {
759
- display: none;
760
- width: 0;
761
- }
762
-
763
- &:has(textarea) {
764
- align-items: start;
765
- height: auto;
766
- }
767
-
768
- &:has(input[type="number"]) {
769
- padding-right: 0;
770
- }
771
-
772
- textarea {
773
- min-height: ${e.spacing[6]};
774
- }
775
-
776
- span:not(.action) {
777
- font-size: 14px;
778
- }
779
-
780
- &.disabled {
781
- background: ${e.palette.gray[100]};
782
- cursor: not-allowed;
783
-
784
- > * {
785
- color: ${e.palette.gray[400]};
786
- }
787
- }
788
-
789
- &.error:not(.disabled) {
790
- border: 1px solid ${e.palette.error[500]};
791
- }
792
-
793
- &.success:not(.disabled) {
794
- border: 1px solid ${e.palette.success[500]};
795
- }
796
-
797
- &:focus-within:not(.disabled, .error) {
798
- background: ${e.palette.white};
799
- border: 2px solid ${e.palette.black};
800
-
801
- button.action-btn {
802
- height: 36px;
803
- width: 40px;
804
- }
805
-
806
- * > .success-icon {
807
- display: none;
808
- }
809
- }
810
-
811
- &:hover:not(:focus-within, .disabled, .error, .success) {
812
- background: ${e.palette.white};
813
- border: 1px solid ${e.palette.gray[600]};
814
- }
815
- `}
816
- `,V=({children:e,id:n,error:i,helpLink:o,helpLinkText:r="Link here",helpText:a,htmlFor:c,label:s,linkPosition:d="down",maxLength:p,required:g,tooltip:x,value:f,weight:h})=>{const y=l.Je(),$=f?f.length:0;return t.jsxs(Bi,{id:n,children:[s===void 0?void 0:t.jsx(Qe,{htmlFor:c,label:s,link:d==="up"?o:void 0,required:g,tooltip:x,weight:h}),e,i||p?t.jsxs(b,{display:"flex",justify:i===void 0?"end":"space-between",width:"100%",children:[i&&t.jsx(I,{className:"error-msg",color:y.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:i}),p&&t.jsx(U,{priority:"low",tagLabel:`${$}/${p}`,variant:"error"})]}):void 0,a||o?t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[a&&t.jsxs(t.Fragment,{children:[t.jsx(E,{icon:"circle-info",iconColor:y.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(I,{color:y.palette.gray[400],display:"inline-block",size:"sm",children:a})]}),o&&d==="down"?t.jsx(Z,{href:o,children:r}):void 0]}):void 0]})},Ce=({className:e,children:n,isFilter:i=!1,popoverRef:o,state:r,triggerRef:a,...c})=>{var x;const s=u.useRef(null),d=(x=a==null?void 0:a.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:p}=l.$f2f8a6077418541e$export$542a6fd13ac93354({...c,popoverRef:o??s,triggerRef:a,isNonModal:o?!0:void 0},r),g=u.useCallback(f=>{f.preventDefault()},[]);return t.jsx(l.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...p,className:e,id:"popover",onPointerDown:i?g:void 0,ref:o??s,style:{...p.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},_i=l.st.ul`
817
- ${({theme:e,$multiSelection:n})=>`
818
- align-self: center;
819
- background: ${e.palette.white};
820
- border: 1px solid ${e.palette.gray[200]};
821
- border-radius: ${e.spacing[.25]};
822
- box-shadow: ${e.shadows.md};
823
- list-style: none;
824
- max-height: 200px;
825
- min-width: 240px;
826
- overflow: hidden auto;
827
- padding: ${e.spacing[.25]} 0;
828
- scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
829
- scroll-padding: ${e.spacing[.5]};
830
- width: 95%;
831
-
832
- > li:first-child {
833
- border-bottom: ${n?`1px solid ${e.palette.gray[200]}`:"unset"};
834
- }
835
- `}
836
- `,Vi=l.st.li`
837
- ${({theme:e,$multiSelection:n})=>`
838
- align-items: center;
839
- color: ${e.palette.gray[800]};
840
- cursor: pointer;
841
- display: flex;
842
- gap: ${e.spacing[.5]};
843
- justify-content: space-between;
844
- line-height: ${e.spacing[1.25]};
845
- padding: ${n?`${e.spacing[.125]} ${e.spacing[.75]}`:`${e.spacing[.25]} ${e.spacing[1]}`};
846
-
847
- a, p, label {
848
- display: inline-flex;
849
- overflow: hidden;
850
- padding: ${n?e.spacing[.25]:"0"};
851
- width: 100%;
852
- }
853
-
854
- > div {
855
- width: 100%;
856
- }
857
-
858
- span {
859
- color: ${e.palette.gray[700]};
860
- }
861
-
862
- &:hover:not(.disabled, .selected) {
863
- background: ${e.palette.gray[100]};
864
- }
865
-
866
- &.selected {
867
- background: ${n?"unset":e.palette.gray[200]};
868
- }
869
-
870
- &.disabled {
871
- background: ${e.palette.gray[100]};
872
- cursor: not-allowed;
873
-
874
- p, span {
875
- color: ${e.palette.gray[500]};
876
- }
877
- }
878
- `}
879
- `,Ji=l.st.label`
880
- ${({theme:e})=>`
881
- align-items: center;
882
- color: ${e.palette.gray[600]};
883
- display: flex;
884
- cursor: pointer;
885
- font-family: ${e.typography.type.primary};
886
- font-size: ${e.typography.text.sm};
887
- font-weight: ${e.typography.weight.regular};
888
- line-height: ${e.spacing[1]};
889
- letter-spacing: 0;
890
- position: relative;
891
- text-align: left;
892
-
893
- &[aria-disabled="true"] {
894
- color: ${e.palette.gray[300]};
895
- cursor: not-allowed;
896
- }
897
-
898
- input {
899
- position: absolute;
900
- opacity: 0;
901
- cursor: pointer;
902
- }
903
-
904
- svg {
905
- background-color: ${e.palette.white};
906
- border-radius: ${e.spacing[.25]};
907
- border: 1px solid ${e.palette.gray[600]};
908
- top: 0;
909
- left: 0;
910
- height: ${e.spacing[.5]};
911
- margin-right: ${e.spacing[.5]};
912
- width: ${e.spacing[.5]};
913
- padding: ${e.spacing[.25]};
914
- }
915
-
916
- svg > path {
917
- fill: ${e.palette.white};
918
- }
919
-
920
- input:checked ~ span > svg {
921
- background-color: ${e.palette.primary[500]};
922
- border: 1px solid ${e.palette.primary[500]};
923
- }
924
-
925
- input:disabled ~ span > svg {
926
- border: 1px solid ${e.palette.gray[300]};
927
- cursor: not-allowed;
928
- }
929
-
930
- input:not(:disabled):hover ~ span > svg {
931
- box-shadow: 0 0 0 4px ${e.palette.gray[100]};
932
- }
933
-
934
- input:checked:disabled ~ span > svg {
935
- background-color: ${e.palette.gray[300]};
936
- border: 1px solid ${e.palette.gray[300]};
937
- }
938
-
939
- input:not(:disabled):hover:checked ~ span > svg {
940
- box-shadow: 0 0 0 4px ${e.palette.primary[50]};
941
- }
942
-
943
- input:checked ~ span > svg > path {
944
- fill: ${e.palette.white};
945
- }
946
-
947
- input:checked:disabled ~ span > svg > path {
948
- fill: ${e.palette.white};
949
- }
950
- `}
951
- `,oe=u.forwardRef(function({checked:n,disabled:i=!1,label:o,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,tooltip:p,value:g,...x},f){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(Ji,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":r,checked:n,"data-testid":o??g,disabled:i,id:r,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,ref:f,type:"checkbox",value:g,...x}),t.jsx(E,{disabled:i,icon:"check",iconSize:"sm"}),o??g]}),p===void 0?void 0:t.jsx(J,{icon:"circle-info",id:p,place:"right",tip:p})]})}),ne=(e,n,i=!1,o)=>{u.useEffect(()=>{var a;const r=c=>{e&&!e.contains(c.target)&&!(o!=null&&o.contains(c.target))&&n()};return i?(document.addEventListener("mousedown",r,!0),()=>{document.removeEventListener("mousedown",r,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("mousedown",r,!0),()=>{var c;(c=document.getElementById("root"))==null||c.removeEventListener("mousedown",r,!0)})},[i,e,o,n])},Nt=({item:e,multiSelection:n,name:i,register:o,setInputValue:r,setValue:a,state:c,watch:s})=>{var z,S,F;const d=l.Je(),p=u.useRef(null),g=e.props.hrefLang,x=c.disabledKeys,f=Array.from(c.collection.getKeys()).filter(T=>!Array.from(x).includes(T)&&T!=="All"),{optionProps:h,isSelected:y,isFocused:$,isDisabled:m}=l.$293f70390ea03370$export$497855f14858aa34({key:e.key},c,p),j=[y?"selected":"",$?"focused":"",m?"disabled":""].join(" "),w=u.useCallback(T=>{r(""),a==null||a(`${i}Options`,""),T.currentTarget.checked&&(r(T.currentTarget.value),a==null||a(`${i}Options`,f))},[f,i,r,a]),v=u.useCallback(()=>{const T=s==null?void 0:s(`${i}Options`),L=typeof T=="string"?[T]:T;l.isEqual(f,L)&&!Array.from(x).includes("All")?(a==null||a("checkAll","All vulnerability types"),r("All vulnerability types")):(a==null||a("checkAll",""),r((L==null?void 0:L.length)<=2?L.join(", "):`${L.slice(0,2).join(", ")+`, +${L.length-2} more`}`))},[x,f,i,r,a,s]),k=e.key==="All"?t.jsx(oe,{...o==null?void 0:o("checkAll",{onChange:w}),label:(z=e.rendered)==null?void 0:z.toString(),name:"checkAll",value:(S=e.rendered)==null?void 0:S.toString()}):t.jsx(oe,{...o==null?void 0:o(`${i}Options`,{onChange:v}),label:(F=e.rendered)==null?void 0:F.toString(),name:`${i}Options`,value:e.key.toString()}),C=n&&!m?k:t.jsx(I,{color:d.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),R=u.useCallback(T=>{var L;T.preventDefault(),r(((L=e.rendered)==null?void 0:L.toString())??""),c.setSelectedKey(e.key),setTimeout(()=>{c.setOpen(!1)},50),Rt(g)},[g,e.key,e.rendered,c,r]);return ne(document.getElementsByClassName("dropdown")[0],()=>{n&&c.close()},!0,document.getElementById("combobox")),t.jsxs(Vi,{...!n&&!g?h:{},$multiSelection:n,className:j,ref:p,children:[g?t.jsx(Z,{href:g,onClick:R,children:C}):C,y&&!m&&!n?t.jsx(E,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(U,{tagLabel:e.textValue,variant:"inactive"})]})},He=({field:e,disabled:n=!1,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,label:s,loadingItems:d,name:p,multiSelection:g=!1,items:x,onBlur:f,onChange:h,placeholder:y,register:$,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>{var pt;const R=l.Je(),z=n?void 0:o,S=(e==null?void 0:e.value)??v,[F,T]=u.useState(((pt=x.find(A=>A.value===S))==null?void 0:pt.name)??""),[L,G]=u.useState(S),[X,ie]=u.useState(x),[O,H]=u.useState(!1),{contains:W}=l.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),le=u.useRef(null),Pe=u.useRef(null),Me=u.useRef(null),lt=u.useRef(null),ct=u.useRef(null),_n=u.useMemo(()=>x.toSorted((A,B)=>{const _=Array.from(i??[]),ce=_.includes(A.value),gt=_.includes(B.value);return ce&&!gt?1:!ce&&gt?-1:0}).map(A=>W(A.name,F)||O?t.jsx(l.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":A.value,hrefLang:A.href,textValue:A.tag,children:A.name},A.value):null),[W,i,F,x,O]),Vn=u.useCallback(A=>{const B=A.split(/,|\s/u).slice(-1)[0].trim();T(g?B:A),A===""||A.endsWith(",")?H(!0):(H(!1),G(_=>{const ce=A===""?"":_;return e&&e.onChange(ce),h&&h(A),ce}),ie(x.filter(_=>W(_.name,g?B:A))))},[W,x,e,g,h]),Jn=u.useCallback(A=>{var B;T(((B=x.find(_=>_.value===A))==null?void 0:B.name)??""),G(A?String(A):""),e&&e.onChange(A),h&&h(A?String(A):""),ie(x)},[x,e,h]),dt=u.useCallback(A=>{A.key==="Enter"&&A.preventDefault(),H(!1)},[]),Un=u.useCallback(()=>{f&&f(),e&&e.onBlur()},[e,f]),Gn=u.useCallback(()=>{H(!0)},[]),Q=l.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:g,allowsEmptyCollection:!0,disabledKeys:i,inputValue:F,items:X,menuTrigger:"focus",shouldCloseOnBlur:!g,selectedKey:L,onBlur:Un,onInputChange:Vn,onKeyDown:dt,onKeyUp:Gn,onOpenChange(A,B){H(A&&(B==="manual"||B==="focus")),A&&setTimeout(()=>{var _;return(_=le.current)==null?void 0:_.focus()},50)},onSelectionChange:g?void 0:Jn,children:_n}),{buttonProps:Yn,inputProps:Kn,listBoxProps:Zn}=l.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:F,buttonRef:Pe,id:p,inputRef:le,label:s??p,listBoxRef:Me,name:p,placeholder:y,popoverRef:ct},Q),{listBoxProps:qn}=l.$c132121280ec012d$export$50eacbbf140a3141(Zn,Q,Me),{buttonProps:Xn}=l.$701a24aa0da5b062$export$ea18c227d4417cc3(Yn,Pe);return u.useEffect(()=>{var A;if((d===!1||!S)&&!g){const B=((A=x.find(_=>_.value===S))==null?void 0:A.name)??"";T(B),G(B)}},[S,x,d,g]),t.jsxs(V,{error:z,helpLink:r,helpLinkText:a,helpText:c,htmlFor:p,id:"combobox",label:s,required:m,tooltip:w,weight:C,children:[t.jsxs(te,{className:`${n?"disabled":""} ${z?"error":""}`,ref:lt,children:[t.jsx("input",{...Kn,"aria-invalid":z?"true":"false","aria-label":p,disabled:n,onKeyDown:dt,ref:le}),z?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:R.palette.error[500],iconSize:"xs"}):void 0,t.jsx(M,{...Xn,className:"action",disabled:n,icon:Q.isOpen&&!n?"chevron-up":"chevron-down",iconColor:R.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:Pe,type:"button",variant:"ghost"})]}),Q.isOpen&&Q.collection.size>0&&!n?t.jsx(Ce,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:ct,state:Q,triggerRef:lt,children:t.jsx(_i,{...qn,$multiSelection:g&&!Array.from(i??[]).includes("All"),ref:Me,children:[...Q.collection].map(A=>t.jsx(Nt,{item:A,multiSelection:g,name:p,register:$,setInputValue:T,setValue:j,state:Q,watch:k},A.key))})}):null]})},et=({control:e,disabled:n=!1,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,label:s,loadingItems:d,name:p,multiSelection:g,items:x,onBlur:f,onChange:h,placeholder:y,register:$,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>e?t.jsx(l.Controller,{control:e,name:p,render:({field:R,fieldState:z})=>{var S;return t.jsx(He,{disabled:n,disabledKeys:i,error:(S=z.error)==null?void 0:S.message,field:R,helpLink:r,helpLinkText:a,helpText:c,items:x,label:s,loadingItems:d,multiSelection:g,name:p,onBlur:f,onChange:h,placeholder:y,register:$,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})},rules:{required:m}}):t.jsx(He,{disabled:n,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,items:x,label:s,loadingItems:d,multiSelection:g,name:p,onBlur:f,onChange:h,placeholder:y,required:m,tooltip:w,value:v,weight:C}),Ui=l.st.div`
952
- ${({theme:e})=>`
953
- align-items: center;
954
- color: ${e.palette.gray[800]};
955
- display: flex;
956
- font-family: ${e.typography.type.primary};
957
- font-size: ${e.typography.text.sm};
958
- font-weight: ${e.typography.weight.bold};
959
- gap: ${e.spacing[.5]};
960
- height: 40px;
961
- justify-content: center;
962
- line-height: ${e.spacing[1.25]};
963
- text-align: center;
964
- padding: ${e.spacing[.5]} 0;
965
- width: 200px;
966
- word-spacing: ${e.spacing[.25]};
967
-
968
- &:not(:hover) .year-selection {
969
- display: none;
970
- }
971
- `}
972
- `,Gi=l.st.div.attrs({className:"year-selection"})`
973
- align-items: flex-start;
974
- display: flex;
975
- flex-direction: column;
976
- gap: 6px;
977
- height: 14px;
978
- justify-content: center;
979
- margin-bottom: 10px;
980
- padding: 0 0.5px;
981
- position: relative;
982
- width: 8px;
983
- `,ft=l.st.tr`
984
- align-items: flex-start;
985
- display: flex;
986
- padding: ${({theme:e})=>e.spacing[.25]} 0;
987
- width: 100%;
988
- `,Ft=l.nt`
989
- ${({theme:e})=>`
990
- align-items: center;
991
- color: ${e.palette.gray[800]};
992
- cursor: pointer;
993
- display: flex;
994
- flex-direction: column;
995
- font-family: ${e.typography.type.primary};
996
- font-size: ${e.typography.text.sm};
997
- font-weight: ${e.typography.weight.regular};
998
- height: ${e.spacing[2.5]};
999
- justify-content: center;
1000
- line-height: ${e.spacing[1.25]};
1001
- text-align: center;
1002
- width: ${e.spacing[2.5]};
1003
- `}
1004
- `,Yi=l.st.th`
1005
- ${Ft}
1006
- `,Ki=l.st.td`
1007
- ${({theme:e})=>`
1008
- ${Ft}
1009
- height: ${e.spacing[2.5]};
1010
- width: ${e.spacing[2.5]};
1011
-
1012
- &#range {
1013
- background: ${e.palette.primary[25]};
1014
- }
1015
-
1016
- div:not(.dot) {
1017
- align-items: center;
1018
- display: flex;
1019
- flex-direction: column;
1020
- font-size: ${e.typography.text.sm};
1021
- justify-content: center;
1022
- height: ${e.spacing[2.5]};
1023
- line-height: ${e.spacing[1.25]};
1024
- position: relative;
1025
- text-align: center;
1026
- width: ${e.spacing[2.5]};
1027
-
1028
- &:focus-visible {
1029
- outline: none;
1030
- }
1031
-
1032
- &:hover:not(.disabled, .selected, .range) {
1033
- background: ${e.palette.gray[100]};
1034
- }
1035
-
1036
- &.disabled {
1037
- color: ${e.palette.gray[400]};
1038
- cursor: auto;
1039
- }
1040
-
1041
- &.selected {
1042
- background: ${e.palette.primary[500]};
1043
- color: ${e.palette.white};
1044
- }
1045
-
1046
- &.focused {
1047
- border: 2px solid ${e.palette.primary[500]};
1048
- }
1049
-
1050
- &.today:not(.selected) {
1051
- color: ${e.palette.primary[500]};
1052
- font-weight: ${e.typography.weight.bold};
1053
- }
1054
- }
1055
- `}
1056
- `,Zi=l.st.div.attrs({className:"dot"})`
1057
- position: absolute;
1058
- top: 48%;
1059
-
1060
- > span {
1061
- font-size: 4px;
1062
- }
1063
- `,ht=l.st.button`
1064
- cursor: pointer;
1065
- display: flex;
1066
-
1067
- > span {
1068
- height: 3.5px;
1069
- width: 7px;
1070
- }
1071
- `,tt=l.st.div`
1072
- ${({theme:e})=>`
1073
- align-items: end;
1074
- border-top: 1px solid ${e.palette.gray[200]};
1075
- display: flex;
1076
- flex-direction: row-reverse;
1077
- gap: ${e.spacing[.5]};
1078
- height: 44px;
1079
- margin-bottom: ${e.spacing[.25]};
1080
- padding: 0 ${e.spacing[.25]};
1081
- width: 100%;
1082
- `}
1083
- `,Lt=({state:e,date:n})=>{const i=u.useRef(null),o=l.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,l.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:a,isSelected:c,isDisabled:s,formattedDate:d}=l.$36a0ac60f04457c5$export$136073280381448e({date:n},e,i),p="highlightedRange"in e&&!l.lodashExports.isNull(e.highlightedRange)?l.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):c,g="highlightedRange"in e&&!l.lodashExports.isNull(e.highlightedRange)?l.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):c,x=c&&!s&&!(p||g)?"range":"";return t.jsx(Ki,{id:x,...r,children:t.jsxs("div",{...a,className:`cell ${p||g?"selected":""}
1084
- ${s?"disabled":""} ${o?"today":""}
1085
- ${!e.isFocused&&!o?"focused":""} ${x}`,ref:i,children:[d,o?t.jsx(Zi,{children:t.jsx(E,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},Ne=({state:e,...n})=>{const{locale:i}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:o}=l.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),r=l.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,i);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(ft,{children:o.map((a,c)=>{const s=`key_${c}`;return t.jsx(Yi,{children:a},s)})})}),t.jsx("tbody",{children:[...new Array(r).keys()].map(a=>t.jsx(ft,{children:e.getDatesInWeek(a).map((c,s)=>{const d=`key_${s}`;return c?t.jsx(Lt,{date:c,state:e},d):t.jsx("td",{},d)})},a))})]})},qi=l.st(Ze)`
1086
- align-items: center;
1087
- background-color: inherit;
1088
- border-color: inherit;
1089
- display: flex;
1090
- height: 38px;
1091
- justify-content: center;
1092
- width: 40px;
1093
- margin: ${({$margin:e="0"})=>l.nt`
1094
- ${e}
1095
- `};
1096
-
1097
- &:disabled {
1098
- cursor: not-allowed;
1099
- }
1100
-
1101
- &:hover:not(:disabled) {
1102
- background-color: ${({theme:e})=>e.palette.gray[100]};
1103
- cursor: pointer;
1104
- }
1105
- `,Xi=l.st.div`
1106
- ${({theme:e})=>`
1107
- align-items: flex-start;
1108
- background: ${e.palette.white};
1109
- border: 1px solid ${e.palette.gray[200]};
1110
- border-radius: ${e.spacing[.5]};
1111
- box-shadow: ${e.shadows.md};
1112
- display: inline-flex;
1113
- flex-direction: column;
1114
- gap: ${e.spacing[.25]};
1115
- height: auto;
1116
- padding: ${e.spacing[.25]};
1117
- width: 292px;
1118
- `}
1119
- `,Qi=l.st.button`
1120
- ${({theme:e,$disabled:n,$focus:i,$header:o})=>{const r=i?"34px":"40px";return`
1121
- align-items: center;
1122
- border-radius: ${o?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
1123
- border-left: inherit;
1124
- display: flex;
1125
- height: ${o?"38px":r};
1126
- justify-content: center;
1127
- outline: none;
1128
- width: ${o?"38px":"40px"};
1129
-
1130
- &:hover {
1131
- background-color: ${e.palette.gray[n?500:100]};
1132
- }
1133
- `}}
1134
- `,eo=l.st.div`
1135
- ${({theme:e})=>`
1136
- align-items: center;
1137
- background: transparent;
1138
- border-radius: ${e.spacing[.5]} 0 0 ${e.spacing[.5]};
1139
- border-color: inherit;
1140
- display: flex;
1141
- height: 100%;
1142
- justify-content: space-between;
1143
- width: calc(100% - 40px);
1144
- `}
1145
- `,to=l.st.div`
1146
- align-items: center;
1147
- display: flex;
1148
- justify-content: flex-end;
1149
- gap: ${({theme:e})=>e.spacing[.5]};
1150
- flex: 1 0 0;
1151
- `,yt=l.st.div`
1152
- ${({theme:e})=>`
1153
- align-items: center;
1154
- align-self: stretch;
1155
- background-color: ${e.palette.gray[200]};
1156
- border-radius: ${e.spacing[.25]};
1157
- display: flex;
1158
- font-family: ${e.typography.type.primary};
1159
- gap: ${e.spacing[.25]};
1160
- line-height: ${e.spacing[1.5]};
1161
- padding: 2px ${e.spacing[.25]};
1162
- `}
1163
- `,bt=l.st.button`
1164
- ${({theme:e})=>`
1165
- align-items: center;
1166
- background-color: inherit;
1167
- border: 0.5px solid ${e.palette.gray[200]};
1168
- border-radius: 7px;
1169
- color: ${e.palette.gray[800]};
1170
- cursor: pointer;
1171
- display: flex;
1172
- font-weight: ${e.typography.weight.regular};
1173
- justify-content: center;
1174
- gap: 10px;
1175
- padding: 2px 10px;
1176
-
1177
- &#active {
1178
- background-color: ${e.palette.white};
1179
- box-shadow: ${e.shadows.md};
1180
- font-weight: ${e.typography.weight.bold};
1181
- }
1182
- `}
1183
- `,Te=({disabled:e=!1,icon:n,props:i})=>{const o=u.useRef(null),{buttonProps:r}=l.$701a24aa0da5b062$export$ea18c227d4417cc3(i,o);return t.jsx(Qi,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:o,type:"button",children:t.jsx(E,{icon:n,iconColor:D.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Fe=({state:e,prevButtonProps:n,nextButtonProps:i,title:o})=>{const r=e.focusedDate,a=u.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),c=u.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(Te,{icon:"chevron-left",props:n}),t.jsxs(Ui,{children:[o,t.jsxs(Gi,{children:[t.jsx(ht,{"aria-label":"top",onClick:a,children:t.jsx(E,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(ht,{"aria-label":"bottom",onClick:c,children:t.jsx(E,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(Te,{icon:"chevron-right",props:i})]})},At=({onClose:e,props:n})=>{const{locale:i}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=l.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:a,title:c}=l.$9942cad8a072a530$export$3ee915f8151bd4f1(n,o);return t.jsxs("div",{className:"calendar",children:[t.jsx(Fe,{nextButtonProps:a,prevButtonProps:r,state:o,title:c}),t.jsx(Ne,{state:o}),t.jsx(tt,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Pt=({segment:e,state:n})=>{const i=l.Je(),o=u.useRef(null),a={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:c}=l.$32489daedd52963e$export$1315d136e6f7581(a,n,o),s=i.palette.gray[a.isEditable?800:500];return t.jsx("div",{...a.type!=="literal"&&{...c,className:"segment-cell"},ref:o,style:a.type==="literal"?void 0:{color:a.isPlaceholder?i.palette.gray[400]:s},children:a.isPlaceholder?a.placeholder:a.text})},Mt=({disabled:e,error:n=!1,props:i})=>{const o=l.Je(),r=u.useRef(null),a=l.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:c}=l.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,a,r),s=u.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),g=d.currentTarget;Object.values(p).some(x=>x.contains(g))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(eo,{...c,onClick:s,children:[t.jsx("div",{className:"flex flex-row",style:{color:o.palette.gray[l.lodashExports.isNil(a.value)?400:800]},tabIndex:-1,children:a.segments.map((d,p)=>{const g=`key_${p}`;return t.jsx(Pt,{segment:{...d,isEditable:!e},state:a},g)})}),n?t.jsx(E,{icon:"exclamation-circle",iconColor:o.palette.error[500],iconSize:"xs"}):void 0]})},Ot=e=>{const n=u.useRef(null),i=l.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:o}=i,r=!l.lodashExports.isNil(o)&&o.hour<12?"AM":"PM",[a,c]=u.useState(l.lodashExports.isNil(o)?"AM":r),{fieldProps:s}=l.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=u.useCallback(p=>{const g=p.currentTarget.name;g!==a&&(l.lodashExports.isNil(o)||(g==="AM"?i.setSegment("dayPeriod",0):g==="PM"&&i.setSegment("dayPeriod",12))),c(g)},[a,i,o]);return t.jsxs(to,{children:[t.jsx(yt,{...s,ref:n,children:i.segments.slice(0,-2).map((p,g)=>{const x=`key_${g}`;return t.jsx(Pt,{segment:p,state:i},x)})}),t.jsxs(yt,{children:[t.jsx(bt,{id:a==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(bt,{id:a==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Ee=e=>e&&e!=="-"?l.dayjs(e).format("YYYY-MM-DD"):"-",no=e=>e&&e!=="-"?l.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",$t=(e,n)=>l.dayjs(String(e).replace(/-/gu,"/")).hour(n.hour).minute(n.minute).second(n.second).format("YYYY/MM/DD hh:mm A"),xe=({error:e,buttonProps:n,datePickerRef:i,disabled:o=!1,granularity:r="day",fieldProps:a,groupProps:c,name:s,register:d,required:p,setValue:g,value:x})=>{const f=u.useCallback(h=>{if(!h)return;const y=r==="day"?Ee(String(h)):no(String(h));a.onChange&&a.onChange(h??null),g&&g(s,y,{shouldDirty:!0})},[a,r,s,g]);return t.jsxs(te,{...c,className:`${o?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(Mt,{disabled:o,error:e!=null,props:{...a,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(Te,{disabled:o,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(s,{required:p}),"aria-label":s,className:"date-input",disabled:o,id:s,name:s,type:"text",value:x??""})]})},Le=({children:e,...n})=>{const i=u.useRef(null),{dialogProps:o}=l.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(Xi,{...o,ref:i,children:e})},Wt=({disabled:e=!1,error:n,helpLink:i,helpLinkText:o,helpText:r,required:a,label:c,name:s,register:d,setValue:p,tooltip:g,watch:x,...f})=>{const h=u.useRef(null),y=x==null?void 0:x(s),$=u.useCallback(z=>{p&&z&&p(s,Ee(String(z)),{shouldDirty:!0})},[s,p]),m=l.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,onChange(z){$(z)},...!l._.isNil(y)&&!l._.isEmpty(y)&&l.dayjs(y).isValid()?{defaultValue:l.$fae977aafc393c5c$export$6b862160d295c8e(y.replace(/\//gu,"-"))}:{}}),{close:j}=m,{groupProps:w,fieldProps:v,buttonProps:k,dialogProps:C,calendarProps:R}=l.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":c??s,name:s},m,h);return t.jsxs(V,{error:n,helpLink:i,helpLinkText:o,helpText:r,htmlFor:s,label:c,required:a,tooltip:g,children:[t.jsx(xe,{buttonProps:k,datePickerRef:h,disabled:e,error:n,fieldProps:v,groupProps:w,name:s,register:d,required:a,setValue:p,value:y}),m.isOpen&&!e?t.jsx(Ce,{offset:8,placement:"bottom start",state:m,triggerRef:h,children:t.jsx(Le,{...C,children:t.jsx(At,{onClose:j,props:R})})}):null]})},Ht=({onClose:e,props:n})=>{const{locale:i}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=u.useRef(null),r=l.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:a,nextButtonProps:c,title:s}=l.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,o);return t.jsxs("div",{className:"calendar-range",ref:o,children:[t.jsx(Fe,{nextButtonProps:c,prevButtonProps:a,state:r,title:s}),t.jsx(Ne,{state:r}),t.jsx(tt,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},io=l.st.div`
1184
- ${({theme:e,$disabled:n,$show:i})=>`
1185
- border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
1186
- display: flex;
1187
- gap: ${e.spacing[.25]};
1188
- width: 100%;
1189
-
1190
- ~ div {
1191
- background: ${n?e.palette.gray[200]:e.palette.white};
1192
- }
1193
- `}
1194
- `,Bt=({disabled:e=!1,error:n,label:i,name:o,required:r,tooltip:a,register:c,setValue:s,propsMax:d,propsMin:p,variant:g="default",...x})=>{const f=`${o}Max`,h=`${o}Min`,y=u.useRef(null),$=u.useCallback(S=>{s&&S&&(s((d==null?void 0:d.name)??f,Ee(String(S.end))),s((p==null?void 0:p.name)??h,Ee(String(S.start))))},[f,h,s,d,p]),m=l.$93c38a5e28be6249$export$e50a61c1de9f574({...x,endName:(d==null?void 0:d.name)??f,startName:(p==null?void 0:p.name)??h,onChange(S){$(S)}}),{close:j}=m,{groupProps:w,startFieldProps:v,endFieldProps:k,buttonProps:C,dialogProps:R,calendarProps:z}=l.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...x,"aria-label":i??o},m,y);return t.jsxs(V,{error:n,htmlFor:o,label:i,required:r,tooltip:a,children:[t.jsxs(io,{$disabled:e,$show:n!==void 0,ref:y,style:{flexDirection:g==="filters"?"column":"row"},children:[t.jsx(xe,{buttonProps:C,datePickerRef:y,disabled:e,error:n,fieldProps:{...v,"aria-label":`${v["aria-label"]} ${o}`,validate:S=>k.value&&S>k.value?"Start date must be less than or equal to end date":null},groupProps:w,name:(p==null?void 0:p.name)??h,register:c,setValue:s,value:p==null?void 0:p.value}),t.jsx(xe,{buttonProps:C,datePickerRef:y,disabled:e,error:n,fieldProps:{...k,"aria-label":`${k["aria-label"]} ${o}`,validate:S=>v.value&&S<v.value?"End date must be greater than or equal to start date":null},groupProps:w,name:(d==null?void 0:d.name)??f,register:c,setValue:s,value:d==null?void 0:d.value})]}),m.isOpen&&!e?t.jsx(Ce,{offset:8,placement:"bottom start",state:m,triggerRef:y,children:t.jsx(Le,{...R,children:t.jsx(Ht,{onClose:j,props:z})})}):null]})},oo=l.st.div`
1195
- ${({theme:e})=>`
1196
- align-items: center;
1197
- border-top: 1px solid ${e.palette.gray[200]};
1198
- display: flex;
1199
- gap: ${e.spacing[1.5]};
1200
- justify-content: center;
1201
- padding: ${e.spacing[.5]} ${e.spacing[1.25]};
1202
- `}
1203
- `,ro=l.st.div`
1204
- align-items: center;
1205
- display: flex;
1206
- gap: ${({theme:e})=>e.spacing[.5]};
1207
- justify-content: flex-end;
1208
- flex: 1 0 0;
1209
- `,_t=({handleTimeChange:e,onClose:n,props:i,timeState:o})=>{const r=l.Je(),{locale:a}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),c=l.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:a}),{prevButtonProps:s,nextButtonProps:d,title:p}=l.$9942cad8a072a530$export$3ee915f8151bd4f1(i,c);return t.jsxs("div",{className:"calendar",children:[t.jsx(Fe,{nextButtonProps:d,prevButtonProps:s,state:c,title:p}),t.jsx(Ne,{state:c}),t.jsxs(oo,{children:[t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(ro,{children:t.jsx(Ot,{hourCycle:12,label:"time-field",onChange:e,value:o.timeValue})})]}),t.jsx(tt,{children:t.jsx(P,{onClick:n,variant:"ghost",children:"Cancel"})})]})},ao=e=>{const{disabled:n=!1,error:i,required:o,label:r,name:a,tooltip:c,register:s,setValue:d,watch:p}=e,g=p==null?void 0:p(a),x=u.useRef(null),f=l.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:o,shouldCloseOnSelect:!1,value:l._.isNil(g)||l._.isEmpty(g)||g==="-"||l.dayjs(g,"YYYY/MM/DD hh:mm A").isValid()===!1?null:l.$fae977aafc393c5c$export$588937bcd60ade55(l.dayjs(g,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=f,{groupProps:y,fieldProps:$,buttonProps:m,dialogProps:j,calendarProps:w}=l.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,x),v=u.useCallback(C=>{if(w.onChange&&w.onChange(C),f.timeValue){const R=$t(C,f.timeValue);d==null||d(a,R,{shouldDirty:!0})}else f.setDateValue(C)},[w,a,d,f]),k=u.useCallback(C=>{if(C){f.setTimeValue(C);const R=f.dateValue;if(R){const z=$t(R,C);d==null||d(a,z,{shouldDirty:!0})}}},[f,d,a]);return t.jsxs(V,{error:i,htmlFor:a,label:r,required:o,tooltip:c,children:[t.jsx(xe,{buttonProps:m,datePickerRef:x,disabled:n,error:i,fieldProps:$,granularity:"minute",groupProps:y,name:a,register:s,setValue:d,value:g}),f.isOpen&&!n?t.jsx(Ce,{offset:8,placement:"bottom start",state:f,triggerRef:x,children:t.jsx(Le,{...j,children:t.jsx(_t,{handleTimeChange:k,onClose:h,props:{...w,onChange:v},timeState:f})})}):null]})},so=({children:e,currentValue:n,externalLink:i,isEditing:o,label:r,name:a,tooltip:c})=>{if(o)return t.jsx("div",{children:e});const s=l.lodashExports.isNil(n)?"":n,d=String(i??s);return t.jsxs(b,{children:[t.jsx(Qe,{htmlFor:a,label:r,tooltip:c,weight:"bold"}),d.startsWith("https://")?t.jsx(Z,{href:d,children:s}):t.jsx(I,{size:"md",children:s})]})},Ae=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:o,helpText:r,error:a,id:c,indexArray:s=0,isValid:d,isTouched:p,label:g,linkPosition:x,name:f,maskValue:h=!1,onPaste:y,placeholder:$,removeItemArray:m,register:j,suggestions:w,tooltip:v,type:k="text",weight:C,...R})=>{const{required:z,onBlur:S,onChange:F}=R,T=l.Je(),L=e?void 0:a,[G,X]=u.useState(""),ie=u.useCallback(W=>{X(W.target.value),F==null||F(W)},[F]),O=d&&p&&!e&&G.trim()!=="",H=u.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]);return t.jsxs(V,{error:L,helpLink:i,helpLinkText:o,helpText:r,htmlFor:f,label:g,linkPosition:x,required:z,tooltip:v,weight:C,children:[t.jsxs(te,{className:`
1210
- ${e?"disabled":""} ${L?"error":""} ${O?"success":""}
1211
- `,children:[n?t.jsx(E,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":L?"true":"false","aria-label":f,"aria-required":z,autoComplete:"off",className:h?"sr-block":"","data-testid":`${f}-input`,disabled:e,id:f,list:w?`list_${f}`:void 0,onKeyDown:H,onPaste:y,placeholder:$,type:k,...j?j(f,{required:z,onBlur:S,onChange:ie}):{...R,onChange:ie}}),L?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"xs"}):void 0,O?t.jsx(E,{icon:"check-circle",iconClass:"success-icon",iconColor:T.palette.success[500],iconSize:"xs"}):void 0,c==="array"&&s>0?t.jsx(M,{color:T.palette.gray[400],icon:"trash",iconSize:"xxs",iconType:"fa-light",onClick:m?m(s):void 0,variant:"ghost"}):void 0]}),w?t.jsx("datalist",{id:`list_${f}`,children:w.map(W=>t.jsx("option",{value:W},W))}):void 0]})},lo=l.st.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,co=l.st.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
1212
- gap: 12px;
1213
- `,po=l.st.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
1214
- gap: 8px;
1215
- `,Ie=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,go=l.st.div.attrs({className:"comp-col"})`
1216
- word-wrap: break-word;
1217
-
1218
- ${({$width:e=null})=>e===null?"":`width: ${e}`};
1219
-
1220
- ${({$paddingTop:e})=>`padding-top: ${e??0}px;`}
1221
-
1222
- @media (width <= 768px) {
1223
- ${({$sm:e})=>Ie(e)}
1224
- }
1225
-
1226
- @media (width >= 768px) and (width <= 992px) {
1227
- ${({$md:e})=>Ie(e)}
1228
- }
1229
-
1230
- @media (width >= 992px) {
1231
- ${({$lg:e})=>Ie(e)}
1232
- }
1233
-
1234
- ${({$xl:e})=>l.isNumber(e)?`@media (min-width: 1200px) { ${Ie(e)} }`:""}
1235
-
1236
- > .comp-card {
1237
- height: 100%;
1238
- }
1239
- `,Be=({children:e,xl:n,lg:i,md:o,sm:r,paddingTop:a,width:c})=>t.jsx(go,{$lg:i,$md:o,$paddingTop:a,$sm:r,$width:c,$xl:n,children:e}),uo=l.st.div.attrs({className:"comp-gap"})`
1240
- ${({$disp:e="flex",$mh:n=4,$mv:i=4})=>`
1241
- align-items: center;
1242
- display: ${e};
1243
- margin: ${-i}px ${-n}px;
1244
-
1245
- > * {
1246
- margin: ${i}px ${n}px;
1247
- }
1248
- `}
1249
- `,xo=({children:e,disp:n,mh:i,mv:o})=>t.jsx(uo,{$disp:n,$mh:i,$mv:o,children:e}),fo=l.st.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
1250
- ${({$align:e="stretch",$cols:n=100,$colsPadding:i=6,$justify:o="start"})=>`
1251
- align-items: ${e};
1252
- justify-content: ${o};
1253
- margin: -6px;
1254
- text-align: ${o};
1255
-
1256
- --cols: ${n};
1257
-
1258
- > *:not(.comp-col) {
1259
- width: 100%;
1260
- margin: 6px;
1261
- }
1262
-
1263
- > .comp-col {
1264
- padding: ${i}px;
1265
- }
1266
- `}
1267
- `,Vt=({align:e,children:n,cols:i,colsPadding:o,justify:r})=>t.jsx(fo,{$align:e,$cols:i,$colsPadding:o,$justify:r,children:n}),_e=({addText:e,append:n,disabled:i=!1,fields:o,fieldState:r,initValue:a="",index:c=0,required:s,label:d,max:p=100,name:g,onBlur:x,onChange:f,placeholder:h,tooltip:y,remove:$,value:m})=>{var v;const j=u.useCallback(()=>{n==null||n(a)},[n,a]),w=u.useCallback(k=>()=>{$==null||$(k)},[$]);return t.jsxs(Vt,{align:"start",children:[t.jsx(Be,{lg:75,md:75,sm:75,children:t.jsx(Ae,{disabled:i,error:r?(v=r.error)==null?void 0:v.message:void 0,id:"array",indexArray:c,isTouched:r?r.isTouched:void 0,isValid:r?!r.invalid:void 0,label:d,name:g,onBlur:x,onChange:f,placeholder:h,removeItemArray:w,required:s,tooltip:y,value:m})}),c<p-1&&c+1===(o==null?void 0:o.length)?t.jsx(Be,{lg:25,md:25,sm:25,children:t.jsx(P,{disabled:i,icon:"plus",onClick:j,variant:"ghost",width:"100%",children:e??"Add"})}):void 0]})},ho=({addText:e,append:n,control:i,disabled:o,fields:r,initValue:a="",required:c,label:s,max:d=void 0,name:p="array-field",onChange:g,placeholder:x,remove:f,tooltip:h})=>i&&r?t.jsx(u.Fragment,{children:r.map((y,$)=>t.jsx(l.Controller,{control:i,name:`${p}.${$}`,render:({field:m,fieldState:j})=>t.jsx(_e,{addText:e,append:n,disabled:o,fieldState:j,fields:r,index:$,initValue:a,label:s,max:d,name:m.name,onBlur:m.onBlur,onChange:g??m.onChange,placeholder:x,remove:f,required:c,tooltip:h,value:typeof m.value=="object"?m.value.value:m.value}),index:$},y.id))}):t.jsx(_e,{addText:e,disabled:o,initValue:a,label:s,max:d,name:p,onChange:g,placeholder:x,required:c,tooltip:h}),yo=l.st(zt)`
1268
- white-space: nowrap;
1269
- margin-right: ${({theme:e})=>e.spacing[.25]};
1270
- text-overflow: ellipsis;
1271
- overflow: hidden;
1272
- max-width: 80%;
1273
- `,bo=l.st.input`
1274
- opacity: 0;
1275
- position: absolute;
1276
- visibility: hidden;
1277
- width: 0;
1278
- `,fe=(e,n,i)=>{const o=new Event(e);return Object.defineProperty(o,"target",{value:{name:n,value:i}}),o},$o=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},mo=({accept:e,disabled:n=!1,error:i,label:o,helpLink:r,helpText:a,id:c,multiple:s,name:d,onChange:p,required:g,register:x,setValue:f,tooltip:h,watch:y,weight:$})=>{const m=l.Je(),j=n?void 0:i,w=u.useRef(null),v=x==null?void 0:x(d,{required:g}),k=y==null?void 0:y(d),C=$o(k),R=u.useCallback(()=>{const F=fe("change",d,void 0);f&&f(d,void 0),v&&v.onChange(F)},[v,d,f]),z=u.useCallback(F=>{const{files:T}=F.currentTarget,L=fe("change",d,T&&T.length>0?T:void 0);T&&T.length>0&&(p==null||p(L),f&&f(d,T),v&&v.onChange(L))},[v,d,p,f]),S=u.useCallback(F=>{n?F.preventDefault():w.current&&w.current.click()},[n]);return t.jsxs(V,{error:j,helpLink:r,helpText:a,htmlFor:c??d,label:o,required:g,tooltip:h,weight:$,children:[t.jsxs(te,{className:`${n?"disabled":""} ${j?"error":""}`,children:[t.jsx(yo,{$size:"xs",children:C}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.625,children:[l.lodashExports.isEmpty(C)?void 0:t.jsx(M,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:R,variant:"ghost",width:"20px"}),j&&t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}),t.jsxs(P,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:S,variant:"primary",width:"96px",children:[t.jsx(E,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]})]}),t.jsx(bo,{...v,accept:e,"aria-label":d,"data-testid":d,disabled:n,id:c??d,multiple:s,name:d,onChange:z,ref:w,type:"file"})]})},wo=l.st.input`
1279
- border: none;
1280
- background: transparent;
1281
- min-width: 15rem;
1282
- padding: 0;
1283
- flex: 1;
1284
- `,Ve=({disabled:e=!1,error:n,field:i,helpLink:o,helpLinkText:r,helpText:a,label:c,name:s="input-tag",onChange:d,onRemove:p,placeholder:g,required:x,tooltip:f,value:h,weight:y})=>{const $=l.Je(),m=e?void 0:n,[j,w]=u.useState(""),v=d?h:i==null?void 0:i.value,k=u.useMemo(()=>v&&typeof v=="string"?v.split(",").filter(Boolean):[],[v]),C=u.useCallback(T=>{const G=[...new Set(T.filter(Boolean))].join(","),X=fe("change",s,G);i&&i.onChange(X),d&&d(X)},[i,s,d]),R=u.useCallback(T=>{w(T.target.value)},[]),z=u.useCallback(T=>{const L=j.trim();L.length&&!k.includes(L)&&(T.preventDefault(),C([...k,L]),w("")),i&&i.onBlur()},[j,i,C,k]),S=u.useCallback(T=>{const L=j.trim();T.key==="Enter"&&L.length===0&&T.preventDefault(),["Enter",","].includes(T.key)&&L.length>0&&!k.includes(L)?(T.preventDefault(),C([...k,L]),w("")):T.key==="Backspace"&&!L.length&&k.length&&(T.preventDefault(),p==null||p(k[k.length-1]),C(k.slice(0,-1)))},[j,p,C,k]),F=u.useCallback(T=>()=>{p==null||p(T),C(k.filter(L=>L!==T))},[p,C,k]);return t.jsx(V,{error:m,helpLink:o,helpLinkText:r,helpText:a,htmlFor:s,label:c,required:x,tooltip:f,weight:y,children:t.jsxs(te,{$overflowX:"auto",className:`${e?"disabled":""} ${m?"error":""}`,children:[k.map(T=>t.jsx(U,{disabled:e,onClose:F(T),tagLabel:T},T)),t.jsx(wo,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":s,"aria-required":x,autoComplete:"off",id:s,onBlur:z,onChange:R,onKeyDown:S,placeholder:k.length===0?g:void 0,ref:i==null?void 0:i.ref,type:"text",value:j}),m?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"xs"}):void 0]})})},jo=({disabled:e=!1,control:n,error:i,helpLink:o,helpLinkText:r,helpText:a,label:c,name:s="input-tag",onChange:d,onRemove:p,placeholder:g,required:x,tooltip:f,value:h,weight:y})=>n?t.jsx(l.Controller,{control:n,name:s,render:({field:$})=>t.jsx(Ve,{disabled:e,error:i,field:$,helpLink:o,helpLinkText:r,helpText:a,label:c,name:s,onRemove:p,placeholder:g,required:x,tooltip:f,weight:y}),rules:{required:x}}):t.jsx(Ve,{disabled:e,error:i,helpLink:o,helpLinkText:r,helpText:a,label:c,name:s,onChange:d,onRemove:p,placeholder:g,required:x,tooltip:f,value:h,weight:y}),Je=u.forwardRef(function({disabled:n,icon:i,margin:o,onClick:r,...a},c){return t.jsx(qi,{$margin:o,"aria-label":i,className:"action-btn",disabled:n,onClick:r,ref:c,type:"button",...a,children:t.jsx(E,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),Re=({error:e,decimalPlaces:n=0,disabled:i=!1,id:o,maxLength:r,max:a=1/0,min:c=0,name:s,onChange:d,placeholder:p,register:g,required:x,setValue:f,value:h})=>{const y=l.Je(),$=i?void 0:e,m=n<0?0:n,[j,w]=u.useState(h?l._.toNumber(h):0),v=u.useCallback(()=>{const z=(j-10**-m).toFixed(m),S=Math.max(Number(c),Number(z));f&&f(s,S,{shouldDirty:!0}),w(S);const F=fe("change",s,z);d&&d(F)},[j,m,c,f,s,d]),k=u.useCallback(()=>{const z=(j+10**-m).toFixed(m),S=Math.min(Number(a),Number(z)>Number(c)?Number(z):Number(c));f&&f(s,S,{shouldDirty:!0}),w(S);const F=fe("change",s,z);d&&d(F)},[j,m,a,c,f,s,d]),C=u.useCallback(z=>{const{value:S}=z.target,F=/\d+/u.test(S)&&!l._.isEmpty(S);f&&f(s,F?S:void 0),d&&d(z),w(Number(S))},[s,d,f]),R=u.useCallback(z=>{z.key==="Enter"&&z.preventDefault()},[]);return t.jsxs(te,{className:`${i?"disabled":""} ${$?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":$?"true":"false","aria-label":s,"aria-required":x,autoComplete:"off",disabled:i,id:o??s,max:a,min:c,onChange:C,onKeyDown:R,placeholder:p,required:x,step:10**-m,type:"number",value:j,...g==null?void 0:g(s,{maxLength:r,max:a,min:c,onChange:C,value:h,valueAsNumber:!0})}),$&&t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}),t.jsx(Je,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:v,px:.75,py:.75}),t.jsx(Je,{borderRadius:`0 ${y.spacing[.5]} ${y.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:k,px:.75,py:.75})]})},Jt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:o,helpText:r,id:a,label:c,linkPosition:s,maxLength:d,max:p,min:g,name:x,onChange:f,placeholder:h,register:y,required:$,setValue:m,tooltip:j,value:w,watch:v,weight:k})=>t.jsx(V,{error:n?void 0:i,helpLink:o,helpText:r,htmlFor:x,label:c,linkPosition:s,maxLength:d,required:$,tooltip:j,weight:k,children:t.jsx(Re,{decimalPlaces:e,disabled:n,error:i,id:a,max:p,maxLength:d,min:g,name:x,onChange:f,placeholder:h,register:y,required:$,setValue:m,value:v?v(x):w})}),Ut=({disabled:e=!1,error:n,name:i,label:o,propsMax:r,propsMin:a,required:c,tooltip:s,variant:d="default"})=>{const p=`${i}Max`,g=`${i}Min`;return t.jsx(V,{error:n,htmlFor:i,label:o,required:c,tooltip:s,children:t.jsxs(b,{display:"flex",flexDirection:d==="filters"?"column":"row",gap:.25,width:"100%",children:[t.jsx(Re,{...a,disabled:e,error:n,name:(a==null?void 0:a.name)??g}),t.jsx(Re,{...r,disabled:e,error:n,name:(r==null?void 0:r.name)??p})]})})},vo=l.st.div`
1285
- ${({theme:e})=>`
1286
- align-items: flex-start;
1287
- align-self: stretch;
1288
- display: flex;
1289
- gap: ${e.spacing[.5]};
1290
-
1291
- > button, div {
1292
- border: 1px solid ${e.palette.gray[300]};
1293
- border-radius: ${e.spacing[.5]};
1294
- }
1295
-
1296
- &.disabled {
1297
- > button, div {
1298
- background: ${e.palette.gray[100]};
1299
- color: ${e.palette.gray[400]};
1300
- cursor: not-allowed;
1301
- }
1302
- }
1303
-
1304
- &.error:not(.disabled) {
1305
- > button, div {
1306
- border: 1px solid ${e.palette.error[500]};
1307
- }
1308
- }
1309
-
1310
- &:focus-within:not(.disabled, .error) {
1311
- > button, div {
1312
- background: ${e.palette.white};
1313
- border: 2px solid ${e.palette.black};
1314
- }
1315
- }
1316
-
1317
- &:hover:not(:focus-within, .disabled, .error) {
1318
- > button, div {
1319
- background: ${e.palette.white};
1320
- border-color: ${e.palette.gray[600]};
1321
- }
1322
- }
1323
- `}
1324
- `,ko=l.st.button`
1325
- ${({theme:e})=>`
1326
- align-items: center;
1327
- background: inherit;
1328
- border-color: inherit;
1329
- display: flex;
1330
- gap: ${e.spacing[.25]};
1331
- height: 40px;
1332
- min-width: 67px;
1333
- padding: ${e.spacing[.625]} ${e.spacing[1]};
1334
-
1335
- &:disabled {
1336
- background: ${e.palette.gray[100]};
1337
- cursor: not-allowed;
1338
- }
1339
- `}
1340
- `,Co=l.st.ul`
1341
- ${({theme:e})=>`
1342
- align-items: flex-start;
1343
- box-shadow: ${e.shadows.md};
1344
- display: flex;
1345
- flex-direction: column;
1346
- margin-top: ${e.spacing[.25]};
1347
- max-height: 190px;
1348
- overflow: hidden auto;
1349
- scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
1350
- scroll-padding: ${e.spacing[.5]};
1351
- scrollbar-width: thin;
1352
- width: max-content;
1353
- `}
1354
- `,So=l.st.li`
1355
- ${({theme:e})=>`
1356
- align-items: center;
1357
- background: ${e.palette.white};
1358
- cursor: pointer;
1359
- display: inline-flex;
1360
- font-size: ${e.typography.text.sm};
1361
- gap: ${e.spacing[.5]};
1362
- height: 38px;
1363
- line-height: ${e.spacing[1.25]};
1364
- padding: ${e.spacing[.5]} ${e.spacing[1]};
1365
- width: 190px;
1366
-
1367
- &:hover {
1368
- background: ${e.palette.gray[100]};
1369
- }
1370
- `}
1371
- `,zo=l.st.p`
1372
- color: ${({theme:e})=>e.palette.gray[800]};
1373
- font-size: inherit;
1374
- min-width: 55%;
1375
- overflow: hidden;
1376
- text-overflow: ellipsis;
1377
- white-space: nowrap;
1378
- `,Io=({disabled:e,error:n,label:i,name:o,placeholder:r,required:a,register:c,tooltip:s,value:d,watch:p,weight:g})=>{const x=l.Je(),f=u.useRef(null),h=e?void 0:n,y=(p==null?void 0:p(o))??d,[$,m]=u.useState(!1),[j,w]=u.useState(""),{refs:v,floatingStyles:k}=l.useFloating$1({placement:"bottom-start",whileElementsMounted:l.autoUpdate}),{inputRef:C,inputValue:R,handlePhoneValueChange:z,country:S,setCountry:F}=l.ee({countries:l.R,defaultCountry:"co",forceDialCode:!0,value:y?String(y):""}),T=u.useCallback(O=>{O.key==="Enter"&&O.preventDefault()},[]),L=u.useCallback(O=>{O.preventDefault(),m(H=>!H),$||w("")},[$]),G=u.useCallback(O=>()=>{F(O),m(!1),w("")},[F,m]),X=u.useCallback(O=>{O.key.length===1?w(H=>H+O.key):O.key==="Backspace"&&w(H=>H.slice(0,-1))},[]),ie=l.R.filter(O=>{const{name:H}=l.M(O);return H.toLowerCase().includes(j.toLowerCase())});return ne(v.floating.current,()=>{m(!1),w("")},!0),t.jsx(V,{error:h,htmlFor:o,label:i,required:a,tooltip:s,weight:g,children:t.jsxs(vo,{className:`${e?"disabled":""} ${h?"error":""}`,ref:f,children:[t.jsxs(ko,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:X,ref:v.setReference,children:[t.jsx(l.q,{iso2:S.iso2,size:"16px"}),t.jsx(E,{icon:"angle-down",iconColor:x.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(te,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":o,"aria-required":a,autoComplete:"off","data-testid":`${o}-input`,disabled:e,id:o,name:o,onKeyDown:T,placeholder:r,ref:C,type:"tel",value:R,...c==null?void 0:c(o,{required:a,onChange:z})}),h?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:x.palette.error[500],iconSize:"xs"}):void 0]}),$&&se.createPortal(t.jsx(Co,{ref:v.setFloating,style:k,children:ie.map(O=>{const{dialCode:H,iso2:W,name:le}=l.M(O);return t.jsxs(So,{onClick:G(W),value:W,children:[t.jsx(l.q,{iso2:W,size:"16px"}),t.jsx(zo,{children:le}),t.jsx(I,{color:x.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+H})]},W)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},To=({disabled:e=!1,error:n,helpLink:i,helpText:o,isTouched:r,isValid:a,label:c,name:s="input-text",id:d,maskValue:p=!1,maxLength:g,onBlur:x,placeholder:f,register:h,required:y,rows:$,tooltip:m,watch:j,weight:w,value:v})=>{const k=l.Je(),C=(j==null?void 0:j(s))??v,R=a&&r&&!e,z=e?void 0:n;return t.jsx(V,{error:z,helpLink:i,helpText:o,htmlFor:s,label:c,maxLength:g,required:y,tooltip:m,value:C?String(C):void 0,weight:w,children:t.jsxs(te,{className:`
1379
- ${e?"disabled":""} ${z?"error":""} ${R?"success":""}
1380
- `,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":z?"true":"false","aria-label":s,"aria-required":y,className:p?"sr-block":"","data-testid":`${s}-text-area`,disabled:e,id:d??s,maxLength:g,placeholder:f,rows:$,value:C,...h==null?void 0:h(s,{required:y,onBlur:x})}),z?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"xs"}):void 0,R?t.jsx(E,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"xs"}):void 0]})})},Eo=({control:e,description:n,disabled:i,id:o,items:r,align:a,inputType:c="text",inputNumberProps:s,minHeight:d,minWidth:p,name:g,placeholder:x,textAlign:f,tooltip:h,title:y,value:$,isTouched:m,isValid:j,error:w,onChange:v,register:k,setValue:C,watch:R})=>{const z=u.useMemo(()=>{if(c==="text")return t.jsx(Ae,{disabled:i,error:w,isTouched:m,isValid:j,name:g,placeholder:x,register:k});if(c==="date")return t.jsx(Wt,{disabled:i,error:w,name:g,register:k,setValue:C,watch:R});if(c==="select"&&r)return t.jsx(et,{control:e,disabled:i,items:r,name:g,placeholder:x,value:$});const{decimalPlaces:S,max:F,min:T}=s??{};return t.jsx(Jt,{decimalPlaces:S,disabled:i,error:w,max:F,min:T,name:g,onChange:v,placeholder:x,register:k,setValue:C,value:$,watch:R})},[e,i,w,s,c,m,j,r,g,v,x,k,C,$,R]);return t.jsxs(Hi,{$align:a,$minHeight:d,$minWidth:p,children:[t.jsx(De,{description:n,id:o,textAlign:f,title:y,tooltip:h}),z]})},Ro=l.st.div`
1381
- display: flex;
1382
- align-self: flex-start;
1383
- margin-left: auto;
1384
- width: 40px;
1385
- height: auto;
1386
- `,Gt=(e,n)=>{const[o,r]=u.useState(0),[a,c]=u.useState(0);return u.useEffect(()=>{a===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[a,n]),u.useEffect(()=>{const s=setInterval(()=>{c(d=>d===100?0:d+1)},e);return()=>{clearInterval(s)}},[e]),{cycle:o,progress:a,setCycle:r,setProgress:c}},Yt=({publicId:e,format:n="webp"})=>{const i=u.useMemo(()=>new l.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return u.useMemo(()=>i.image(e).format(n),[i,e,n])},Se=e=>{const[n,i]=u.useState(!1),o=u.useCallback(()=>{i(!0)},[]),r=u.useCallback(()=>{i(!1)},[]),a=u.useCallback(()=>{i(c=>!c)},[]);return{close:r,isOpen:n,name:e,open:o,setIsOpen:i,toggle:a}},Kt=({name:e,items:n,columnOrder:i,setColumnOrder:o})=>{const r=u.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...x})=>({...x,visible:!0,locked:g})),...n.filter(({locked:g})=>!g)],[n]),[a,c]=u.useState(r),s=u.useCallback(g=>{const x=g.filter(({locked:$})=>!$),h=[...g.filter(({locked:$})=>$),...x],y=h.map(({name:$})=>$);c($=>[...h,...$.filter(({name:m})=>!y.includes(m))]),o&&o(h.map(({id:$})=>$))},[o]),d=u.useCallback(()=>{const g=a.map(x=>{var h;const f=(i==null?void 0:i.includes(x.id))??!1;return(h=x.toggleVisibility)==null||h.call(x,f),{...x,visible:f}}).toSorted((x,f)=>{const h=(i==null?void 0:i.indexOf(x.id))??0,y=(i==null?void 0:i.indexOf(f.id))??0;return Number(f.visible)!==Number(x.visible)?Number(f.visible)-Number(x.visible):h-y});c(g),o==null||o(i)},[a,i,o]),p=u.useMemo(()=>l.some(a,g=>((i==null?void 0:i.includes(g.id))??!1)!==g.visible),[a,i]);return{setColumns:s,resetToDefault:d,columns:a,...Se(e),hasChanged:p}},nt=(e,n)=>u.useMemo(()=>l._.debounce(e,n),[e,n]),Do=e=>{const[n,i]=u.useState(),o=nt(r=>{i(r)},(e==null?void 0:e.debounceWait)??300);return[n,o]},No=({alt:e="img",height:n="",width:i="",plugins:o=[l.lazyload(),l.placeholder()],publicId:r})=>{const a=Yt({publicId:r});return t.jsx(l.AdvancedImage,{alt:e,cldImg:a,height:n,plugins:o,width:i})},ee=u.memo(No),Fo=l.st.label`
1387
- ${({theme:e})=>`
1388
- align-items: center;
1389
- display: flex;
1390
- color: ${e.palette.gray[600]};
1391
- cursor: pointer;
1392
- font-family: ${e.typography.type.primary};
1393
- font-size: ${e.typography.text.sm};
1394
- font-weight: ${e.typography.weight.regular};
1395
- gap: ${e.spacing[.5]};
1396
- line-height: ${e.typography.text.lg};
1397
- text-align: left;
1398
- position: relative;
1399
-
1400
- &[aria-disabled="true"] {
1401
- color: ${e.palette.gray[300]};
1402
- cursor: not-allowed;
1403
- }
1404
-
1405
- input {
1406
- position: absolute;
1407
- opacity: 0;
1408
- cursor: pointer;
1409
- width: 0;
1410
- }
1411
-
1412
- .checkmark {
1413
- position: relative;
1414
- top: 0;
1415
- left: 0;
1416
- height: 16px;
1417
- width: 16px;
1418
- background-color: ${e.palette.white};
1419
- border-radius: 50%;
1420
- border: 1px solid ${e.palette.gray[600]};
1421
- }
1422
-
1423
- input:disabled ~ .checkmark {
1424
- border: 1px solid ${e.palette.gray[300]};
1425
- background-color: ${e.palette.white};
1426
- cursor: not-allowed;
1427
- }
1428
-
1429
- input:not(:disabled):checked ~ .checkmark {
1430
- background-color: ${e.palette.white};
1431
- border: 1px solid ${e.palette.primary[500]};
1432
- }
1433
-
1434
- input:not(:disabled):hover ~ .checkmark {
1435
- background-color: ${e.palette.white};
1436
- box-shadow: 0 0 0 4px ${e.palette.gray[100]};
1437
- }
1438
-
1439
- input:not(:disabled):hover:checked ~ .checkmark {
1440
- background-color: ${e.palette.white};
1441
- box-shadow: 0 0 0 4px ${e.palette.primary[50]};
1442
- }
1443
-
1444
- .checkmark::after {
1445
- content: "";
1446
- position: absolute;
1447
- display: none;
1448
- top: 3px;
1449
- left: 3px;
1450
- width: 8px;
1451
- height: 8px;
1452
- border-radius: 50%;
1453
- background: ${e.palette.primary[500]};
1454
- }
1455
-
1456
- input:checked ~ .checkmark::after {
1457
- display: block;
1458
- }
1459
-
1460
- input:disabled:checked ~ .checkmark::after {
1461
- background-color: ${e.palette.gray[300]};
1462
- }
1463
-
1464
- `}
1465
- `,Lo=l.st.span.attrs({className:"checkmark"})``,it=u.forwardRef(function({checked:n,disabled:i=!1,label:o,name:r,onChange:a,onClick:c,value:s,...d},p){return t.jsxs(Fo,{"aria-disabled":i,"aria-label":o??r,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":o??r,checked:n,disabled:i,name:r,onChange:a,onClick:c,ref:p,type:"radio",value:s,...d}),t.jsx(Lo,{}),o??null]})}),Ao=({alt:e,customDescription:n,imageId:i,icon:o,selectorProps:r,onClick:a,register:c,bgColor:s,title:d,isATag:p=!1,width:g="fit-content"})=>{const x=l.Je();return t.jsxs(b,{alignItems:"center",bgColor:s??"",border:`1px solid ${x.palette.gray[200]}`,borderColorHover:x.palette.gray[600],borderRadius:x.spacing[.25],display:"inline-flex",pr:p?1:0,shadowHover:"md",width:g,children:[t.jsxs(b,{display:"inline-flex",padding:[1,1,1,1],children:[t.jsx(b,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(it,{defaultChecked:r.defaultChecked,name:r.name,onClick:a,value:r.value,...c==null?void 0:c(r.name)})}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[!p&&i!==void 0&&t.jsx(ee,{alt:e??"card image",height:"32px",publicId:i,width:"32px"}),o===void 0?void 0:t.jsx(E,{icon:o,iconSize:"sm",iconType:"fa-light"}),t.jsxs(b,{display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(I,{color:x.palette.gray[800],fontWeight:"bold",size:"sm",children:d}),n===void 0?void 0:t.jsx(b,{children:n})]})]})]}),p&&t.jsx(Ro,{children:t.jsx(ee,{alt:e??"tag image",height:"40px",publicId:i??"tag image",width:"40px"})})]})},de=l.st.div`
1466
- ${({theme:e})=>`
1467
- align-items: center;
1468
- background-color: ${e.palette.gray[200]};
1469
- border-radius: 34px;
1470
- cursor: pointer;
1471
- display: flex;
1472
- height: 20px;
1473
- position: relative;
1474
- transition: 0.2s;
1475
- width: 36px;
1476
- `}
1477
- `,Po=l.st.div`
1478
- ${({theme:e})=>`
1479
- background-color: ${e.palette.white};
1480
- border-radius: 50%;
1481
- height: ${e.spacing[1]};
1482
- left: 2px;
1483
- position: absolute;
1484
- transition: 0.2s;
1485
- width: ${e.spacing[1]};
1486
- z-index: 1;
1487
- `}
1488
- `,Mo=l.st.label`
1489
- display: inline-block;
1490
-
1491
- input {
1492
- position: absolute;
1493
- height: 0;
1494
- opacity: 0;
1495
- width: 0;
1496
- }
1497
-
1498
- input:checked + ${de} {
1499
- background-color: ${({theme:e})=>e.palette.primary[500]};
1500
- }
1501
-
1502
- input:checked + ${de} > div {
1503
- transform: translateX(100%);
1504
- }
1505
-
1506
- input:disabled + ${de} {
1507
- cursor: not-allowed;
1508
- background-color: ${({theme:e})=>e.palette.gray[100]};
1509
- }
1510
-
1511
- input:disabled + ${de} > div {
1512
- background-color: ${({theme:e})=>e.palette.gray[200]};
1513
- border: 1px solid ${({theme:e})=>e.palette.gray[200]};
1514
- }
1515
- `,Zt=u.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:o,name:r,leftDescription:a,leftDescriptionMinWidth:c,rightDescription:s,onChange:d,...p},g){const x=n===!0?"on":"off",f=typeof a=="object"&&a.on&&a.off?a[x]:a,h=u.useCallback(y=>{y.stopPropagation()},[]);return t.jsxs(b,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:o,children:[t.jsx(b,{minWidth:c,children:f}),t.jsxs(Mo,{onClick:h,role:"switch",children:[t.jsx("input",{...p,"aria-disabled":i,"aria-label":r,checked:n===!0,disabled:i,name:r,onChange:d,ref:g,type:"checkbox"}),t.jsx(de,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(Po,{})})]}),s]})}),Oo=({id:e,title:n,toggles:i,minWidth:o="auto",height:r="auto"})=>{const a=l.Je();return t.jsxs(b,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${a.palette.gray[200]}`,borderRadius:a.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:r,justify:"center",minHeight:"100px",minWidth:o,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(De,{id:e,title:n}),t.jsx(b,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(c=>t.jsx(Zt,{...c},`$card-toggle-${c.name}`))})]})},Wo=l.st.div`
1516
- position: relative;
1517
- margin: auto;
1518
- overflow: hidden;
1519
- `,Ho=l.st.div`
1520
- display: flex;
1521
- transition: transform 0.5s ease-in-out;
1522
- transform: translateX(
1523
- ${({$currentIndex:e})=>-e*100}%
1524
- );
1525
- `,Bo=l.st.div`
1526
- align-items: center;
1527
- display: flex;
1528
- justify-content: center;
1529
- min-width: 100%;
1530
- `,_o=l.st.button`
1531
- ${({theme:e,$isActive:n})=>`
1532
- background-color: ${n?e.palette.primary[400]:e.palette.white};
1533
- border: none;
1534
- border-radius: 50%;
1535
- cursor: pointer;
1536
- height: ${e.spacing[.75]};
1537
- width: ${e.spacing[.75]};
1538
- `}
1539
- `,Vo=l.st.div`
1540
- align-items: center;
1541
- display: flex;
1542
- gap: ${({theme:e})=>e.spacing[.5]};
1543
- justify-content: center;
1544
- margin-top: ${({theme:e})=>e.spacing[2]};
1545
- `,Jo=({slides:e,interval:n=300})=>{const{cycle:i,setCycle:o,setProgress:r}=Gt(n,e.length),a=u.useCallback(c=>()=>{o(c),r(0)},[o,r]);return t.jsxs(Wo,{"aria-roledescription":"carousel",children:[t.jsx(Ho,{$currentIndex:i,children:e.map((c,s)=>{const d=`slide-${s}`;return t.jsx(Bo,{"aria-label":d,"aria-roledescription":"slide",children:c.content},d)})}),t.jsx(Vo,{children:e.map((c,s)=>{const d=`nav-button-${s}`;return t.jsx(_o,{$isActive:s===i,"aria-label":`Go to slide ${s+1}`,"data-testid":s===i?"active":"inactive",onClick:a(s)},d)})})]})},qt=l.st.div`
1546
- ${({theme:e})=>`
1547
- background-color: ${e.palette.gray[100]};
1548
- border-radius: ${e.spacing[.25]};
1549
- display: inline-flex;
1550
- padding: ${e.spacing[1]};
1551
- position: relative;
1552
- width: fit-content;
1553
-
1554
- .line-highlight.language-none {
1555
- background: ${e.palette.gray[100]};
1556
- }
1557
-
1558
- .line-highlight {
1559
- background: hsl(354deg 88% 93% / 50%);
1560
- font-family: ${e.typography.type.mono};
1561
- font-size: ${e.typography.text.xs};
1562
- line-height: ${e.spacing[1]};
1563
- }
1564
-
1565
- .line-highlight::before,
1566
- .line-highlight[data-end]::after {
1567
- background: ${e.palette.primary[300]};
1568
- background-color: hsl(355deg 89% 36%);
1569
- color: ${e.palette.white};
1570
- }
1571
-
1572
- pre code {
1573
- color: #161616;
1574
- font-family: ${e.typography.type.mono};
1575
- font-size: ${e.typography.text.xs};
1576
- line-height: ${e.spacing[1]};
1577
- }
1578
-
1579
- pre:not(.line-highlight) {
1580
- margin-top: unset;
1581
- margin-bottom: unset;
1582
- padding: unset;
1583
- width: 100%;
1584
- }
1585
-
1586
- span:hover {
1587
- background-color: ${e.palette.gray[200]};
1588
- }
1589
-
1590
- .no-data,
1591
- pre.line-highlight {
1592
- background-color: ${e.palette.gray[100]};
1593
- padding-top: unset;
1594
- padding-bottom: unset;
1595
- }
1596
- `}
1597
- `,Uo=l.st.div`
1598
- ${({theme:e})=>`
1599
- align-items: end;
1600
- background-color: ${e.palette.gray[100]};
1601
- display: flex;
1602
- flex-direction: column;
1603
- justify-content: space-between;
1604
- min-width: 103px;
1605
- margin-right: ${e.spacing[1]};
1606
- padding-top: ${e.spacing[1]};
1607
- padding-bottom: ${e.spacing[1]};
1608
- position: relative;
1609
- padding-left: unset;
1610
-
1611
- button:hover:not([disabled]) {
1612
- background-color: ${e.palette.gray[200]};
1613
- }
1614
- `}
1615
- `,Xt=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(u.useEffect(()=>{l.prismExports.highlightAll()},[]),t.jsx(qt,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":l._.isNil(n)||l._.isString(n)?0:n.offset+.7,...i!==void 0?{"data-line":String(Number(i))}:{},children:l._.isNil(n)||l._.isString(n)||l._.isEmpty(n.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:n.content})})})),Go=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i,variant:o="normal"})=>{const r=l.Je(),[a,c]=u.useState(!1),[s,d]=u.useState(!0),p=u.useCallback(()=>{c(h=>!h)},[c]),g=u.useCallback(()=>{if(l._.isNil(n)||l._.isEmpty(n)||!l._.isString(n))return d(!1),e;const h=n.split(`
1616
- `);return h.length>8&&!a?`${[...h].splice(0,7).join(`
1617
- `)}
1618
- ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),x=u.useMemo(g,[g]),f=u.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return o==="location"?t.jsx(Xt,{noCodeMessage:e,snippet:n,specific:i}):t.jsxs(b,{bgColor:r.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(qt,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:x})})}),t.jsxs(Uo,{children:[t.jsx(M,{height:r.spacing[2.5],icon:"copy",iconColor:r.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:f,variant:"ghost",width:r.spacing[2.5]}),s?t.jsxs(P,{onClick:p,variant:"ghost",children:[a?"Show Less":"Show more",t.jsx(E,{icon:a?"chevron-up":"chevron-down",iconColor:r.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:f})]}):!1]})]})},{getVariant:Yo}=Y(e=>({fixed:`
1619
- height: auto;
1620
- min-width: 300px;
1621
- padding: ${e.spacing[1.25]};
1622
- overflow: hidden auto;
1623
- `,lg:`
1624
- width: 80%;
1625
-
1626
- @media screen and (min-width: ${e.breakpoints.sm}) {
1627
- width: 72%;
1628
- }
1629
- `,md:`
1630
- width: 60%;
1631
-
1632
- @media screen and (min-width: ${e.breakpoints.sm}) {
1633
- width: 48%;
1634
- }
1635
- `,sm:`
1636
- width: 40%;
1637
-
1638
- @media screen and (min-width: ${e.breakpoints.sm}) {
1639
- width: 32%;
1640
- }
1641
- `})),Qt=l.st.div.attrs({className:"comp-modal fixed inset-0 overflow-auto"})`
1642
- align-items: center;
1643
- background-color: ${({$bgColor:e="rgb(52 64 84 / 70%)"})=>e};
1644
- display: flex;
1645
- justify-content: center;
1646
- z-index: 99999;
1647
- `,ot=l.st(b)`
1648
- ${({theme:e,$size:n})=>`
1649
- background-color: ${e.palette.white};
1650
- border: 1px solid ${e.palette.gray[200]};
1651
- border-radius: ${e.spacing[.25]};
1652
- color: ${e.palette.gray[800]};
1653
- display: flex;
1654
- font-family: ${e.typography.type.primary};
1655
- font-size: ${e.typography.text.sm};
1656
- max-height: 80%;
1657
- min-height: minmax(content-fit, 32%);
1658
- box-shadow: ${e.shadows.lg};
1659
- margin: auto;
1660
- white-space: pre-line;
1661
-
1662
- ${Yo(e,n)}
1663
- `}
1664
- `,Ko=l.st.div`
1665
- ${({theme:e})=>`
1666
- background-color: ${e.palette.white};
1667
- border-bottom: 1px solid ${e.palette.gray[200]};
1668
- border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
1669
- display: flex;
1670
- flex-direction: column;
1671
- overflow: hidden auto;
1672
- padding: 0 ${e.spacing[1.5]} ${e.spacing[1.5]} ${e.spacing[1.5]};
1673
- scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
1674
- scroll-padding: ${e.spacing[.5]};
1675
-
1676
- &:has(form) {
1677
- flex-direction: unset;
1678
- overflow: hidden;
1679
- padding: 0;
1680
- }
1681
- `}
1682
- `,Zo=l.st.div`
1683
- border-radius: ${({theme:e})=>`${e.spacing[.25]} ${e.spacing[.25]} 0 0`};
1684
- display: block;
1685
- overflow: unset;
1686
- height: max-content;
1687
- max-height: 100%;
1688
- max-width: 100%;
1689
- padding: ${({theme:e})=>`${e.spacing[1.25]}`};
1690
- padding-bottom: ${({theme:e})=>`${e.spacing[1.5]}`};
1691
- position: sticky;
1692
- `,qo=l.st.div.attrs({className:"flex items-center justify-between"})``,Xo=l.st.div`
1693
- ${({theme:e})=>`
1694
- border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
1695
- display: flex;
1696
- flex-direction: row;
1697
- gap: ${e.spacing[.75]};
1698
- justify-content: space-between;
1699
- max-width: 392px;
1700
-
1701
- > label {
1702
- margin: 0;
1703
- flex: 1 1 auto;
1704
- }
1705
-
1706
- > div {
1707
- display: flex;
1708
- flex-direction: row;
1709
- flex: 1 1 auto;
1710
- gap: ${e.spacing[.75]};
1711
- margin-right: ${e.spacing[.75]};
1712
-
1713
- > button {
1714
- justify-content: center;
1715
- max-width: 190px;
1716
- }
1717
- }
1718
-
1719
- > div:last-child {
1720
- margin-right: 0;
1721
- }
1722
- `}
1723
- `,Qo=l.st.div`
1724
- img {
1725
- margin: 0 calc(-${({theme:e})=>e.spacing[1.25]} - 1px)
1726
- ${({theme:e})=>e.spacing[1.25]};
1727
-
1728
- min-width: calc(100% + 2px + ${({theme:e})=>e.spacing[3]});
1729
- height: 185px;
1730
- object-fit: cover;
1731
-
1732
- ${({$framed:e=!1})=>e?`
1733
- border-radius: 8px;
1734
- min-width: 100%;
1735
- margin-left: 0;
1736
- margin-right: 0;
1737
- `:""}
1738
- }
1739
- `,en=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:o=void 0})=>{const{close:r}=n,a=u.useCallback(()=>{o!=null&&o.onClick&&o.onClick(),r()},[o,r]),c=u.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),r()},[i,r]);return[i,o].some(d=>!l.lodashExports.isEmpty(d))?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(Xo,{children:t.jsxs("div",{children:[o&&t.jsx(P,{id:o.id,onClick:a,variant:"tertiary",width:"100%",children:o.text}),i&&t.jsx(P,{id:i.id,onClick:c,variant:"primary",width:"100%",children:i.text})]})})]}):null},tn=({title:e,description:n,modalRef:i,otherActions:o,onClose:r})=>{const a=l.Je(),c=u.useCallback(()=>{r==null||r(),i.close()},[i,r]);return u.useEffect(()=>{const s=d=>{d.key==="Escape"&&c()};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[c]),t.jsxs(Zo,{children:[t.jsxs(qo,{children:[typeof e=="string"?t.jsx(K,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",wordBreak:"break-word",children:e}):e,t.jsxs("div",{className:"items-center flex gap-3",children:[o,t.jsx(M,{icon:"close",iconColor:a.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:c,px:.25,py:.25,variant:"ghost"})]})]}),n&&l.lodashExports.isString(n)&&!l.lodashExports.isEmpty(n)?t.jsx(I,{mt:.5,size:"sm",children:n}):void 0,n&&!l.lodashExports.isString(n)&&t.jsx(ue,{display:"block",mt:.5,size:"sm",children:n})]})},nn=({disabled:e,id:n="modal-confirm",onCancel:i,onConfirm:o="submit",txtCancel:r,txtConfirm:a})=>{const c=o==="submit";return t.jsxs(b,{display:"flex",gap:.75,maxWidth:i?"392px":"190px",mt:1.5,children:[i?t.jsx(P,{id:`${n}-cancel`,justify:"center",onClick:i,variant:"tertiary",width:"100%",children:r??"Cancel"}):void 0,t.jsx(P,{disabled:e,id:n,justify:"center",onClick:c?void 0:o,type:c?"submit":"button",variant:"primary",width:"100%",children:a??"Confirm"})]})},er=(e,n,i)=>i?n==="secondary"?`3px solid ${e.palette.primary[100]}`:`3px solid ${e.palette.primary[500]}`:"unset",tr=l.st.div`
1740
- display: flex;
1741
- flex-direction: row;
1742
- gap: ${({theme:e})=>e.spacing[.25]};
1743
- border-bottom: ${({theme:e,$borderButton:n,$variant:i})=>er(e,i,n)};
1744
- align-items: center;
1745
- padding: ${({theme:e})=>e.spacing[.625]}
1746
- ${({theme:e})=>e.spacing[.5]};
1747
- padding-bottom: ${({theme:e,$borderButton:n})=>n?`calc(${e.spacing[.625]} - 2px)`:e.spacing[.625]};
1748
-
1749
- &:hover:not([disabled]) {
1750
- background-color: ${({theme:e})=>e.palette.gray[100]};
1751
- color: ${({theme:e})=>e.palette.gray[800]};
1752
- }
1753
-
1754
- a {
1755
- align-items: center;
1756
- background: transparent;
1757
- color: ${({theme:e})=>e.palette.gray[800]};
1758
- font-family: ${({theme:e})=>e.typography.type.primary};
1759
- font-size: ${({theme:e})=>e.typography.text.sm};
1760
- display: flex;
1761
- font-weight: ${({theme:e})=>e.typography.weight.regular};
1762
- position: relative;
1763
- text-align: center;
1764
- text-decoration: unset;
1765
- width: auto;
1766
- cursor: pointer;
1767
-
1768
- &:disabled {
1769
- cursor: not-allowed;
1770
- background-color: ${({theme:e})=>e.palette.gray[300]};
1771
- color: ${({theme:e})=>e.palette.gray[300]};
1772
- }
1773
-
1774
- &.active {
1775
- background-color: transparent;
1776
-
1777
- &:hover {
1778
- background-color: transparent;
1779
- }
1780
- }
1781
- }
1782
- `,nr=l.st(ke)`
1783
- ${({theme:e,$variant:n})=>`
1784
- align-items: center;
1785
- background: ${n==="error"?e.palette.primary[400]:e.palette.warning[500]};
1786
- border-radius: 100%;
1787
- font-family: ${e.typography.type.primary};
1788
- justify-content: center;
1789
- padding: 0;
1790
- position: absolute;
1791
- z-index: 11;
1792
- width: ${e.spacing[.5]};
1793
- height: ${e.spacing[.5]};
1794
- `}
1795
- `,ir=l.st.div`
1796
- align-items: center;
1797
- color: ${({theme:e})=>e.palette.white};
1798
- display: flex;
1799
- font-size: 6px;
1800
- font-weight: ${({theme:e})=>e.typography.weight.bold};
1801
- justify-content: center;
1802
- `,on=u.forwardRef(function({numberIndicator:n,show:i,variant:o="error",...r},a){return t.jsx(nr,{$variant:o,className:i?"flex":"hidden","data-testid":"notification-sign",ref:a,...r,children:n&&t.jsx(ir,{children:n<=9?n:9})})}),rn=({end:e=!1,label:n,id:i,isActive:o=!1,link:r,notificationSign:a,onClick:c,tooltip:s="",variant:d="primary",tag:p})=>{const{pathname:g}=We.useLocation(),x=o||(d==="primary"?g.includes(r):g.endsWith(r));return t.jsx(J,{display:"flex",id:`${i}-tooltip`,tip:s,children:t.jsxs(tr,{$borderButton:x,$variant:d,children:[t.jsxs(We.NavLink,{end:e,id:i,onClick:c,to:r,children:[n,t.jsx(on,{left:a==null?void 0:a.left,numberIndicator:a==null?void 0:a.numberIndicator,show:a==null?void 0:a.show,top:a==null?void 0:a.top,variant:a==null?void 0:a.variant})]}),p===void 0?null:t.jsx(U,{tagLabel:`${p}`,variant:"default"})]})})},rt=({items:e,borders:n=!0,box:i=!1,variant:o="primary"})=>{const r=l.Je();return t.jsx(b,{alignItems:"center",bgColor:r.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:i?r.palette.gray[200]:void 0,borderRadius:i?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:i?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:i?"max-content":"100%",children:e.map(({end:a,id:c,isActive:s,link:d,label:p,notificationSign:g,onClick:x,tag:f,tooltip:h})=>t.jsx(rn,{end:a,id:c,isActive:s,label:p,link:d,notificationSign:g,onClick:x,tag:f,tooltip:h,variant:o},c))})},re=u.forwardRef(function({color:n=D.palette.gray[100],mt:i=.5,mb:o=.5,width:r,...a},c){return t.jsx(b,{as:"hr",borderTop:`1px solid ${n}`,mb:o,mt:i,ref:c,width:r??"100%",...a})}),or=l.st.li`
1803
- ${({theme:e})=>`
1804
- align-items: center;
1805
- background-color: ${e.palette.white};
1806
- color: ${e.palette.gray[800]};
1807
- cursor: pointer;
1808
- display: flex;
1809
- font-size: ${e.typography.text.sm};
1810
- font-weight: ${e.typography.weight.regular};
1811
- justify-content: space-between;
1812
- gap: ${e.spacing[.625]};
1813
- line-height: ${e.spacing[1.25]};
1814
- list-style-type: none;
1815
- min-height: 40px;
1816
- min-width: 240px;
1817
- padding: ${e.spacing[.625]} ${e.spacing[1]};
1818
-
1819
- p,
1820
- a {
1821
- word-break: break-word;
1822
- }
1823
-
1824
- & > label {
1825
- margin: unset;
1826
- }
1827
-
1828
- a {
1829
- color: ${e.palette.gray[500]};
1830
- }
1831
-
1832
- &[aria-disabled="true"] {
1833
- color: ${e.palette.gray[300]};
1834
- cursor: not-allowed;
1835
-
1836
- a {
1837
- color: ${e.palette.gray[300]};
1838
- }
1839
- }
1840
-
1841
- &[aria-selected="true"] {
1842
- background-color: ${e.palette.gray[200]};
1843
- }
1844
-
1845
- &:hover:not([aria-selected="true"]) {
1846
- background-color: ${e.palette.gray[100]};
1847
- }
1848
- `}
1849
- `,an=l.st.ul`
1850
- ${({theme:e})=>`
1851
- background-color: ${e.palette.white};
1852
- border: 1px solid ${e.palette.gray[200]};
1853
- border-radius: ${e.spacing[.25]};
1854
- box-shadow: ${e.shadows.md};
1855
- display: inline-block;
1856
- margin: unset;
1857
- min-width: 240px;
1858
- padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
1859
- `}
1860
- `,ze=({children:e,disabled:n=!1,icon:i,iconType:o="fa-light",href:r,onClick:a,onClickIcon:c,onKeyDown:s,rightIcon:d,selected:p=!1,value:g,...x})=>{const h=l.Je().palette.gray[n?300:800],y=n?u.Children.map(e,$=>u.isValidElement($)?u.cloneElement($,{disabled:n,...$.props}):$):e;return t.jsxs(or,{"aria-disabled":n,"aria-label":g,"aria-selected":p,"data-testid":g,onClick:a,onKeyDown:s,value:g,...x,children:[i!==void 0||g!==void 0?t.jsxs(b,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(E,{disabled:n,icon:i,iconColor:h,iconSize:"xxs",iconType:o}):null,r===void 0?y:t.jsx(Z,{href:r,children:y})]}):null,p||d?t.jsx(E,{disabled:n,icon:d??"check",iconClass:"selected",iconColor:h,iconSize:"xs",iconType:o,onClick:c}):null]})},rr=l.st(ze)`
1861
- margin-top: 10px;
1862
- border: 1px solid ${({theme:e})=>e.palette.gray[300]};
1863
- border-radius: 4px;
1864
- min-width: unset;
1865
-
1866
- svg {
1867
- color: ${({theme:e})=>e.palette.gray[400]};
1868
- }
1869
-
1870
- &[aria-disabled="true"] {
1871
- background: ${({theme:e})=>e.palette.gray[100]};
1872
- color: ${({theme:e})=>e.palette.gray[500]};
1873
- }
1874
-
1875
- &[aria-selected="true"]:not([aria-disabled="true"]) {
1876
- background-color: unset;
1877
- }
1878
- `,sn=({items:e,onReorder:n,title:i,description:o,onClickClose:r})=>{const a=u.useCallback(c=>()=>{r(c)},[r]);return t.jsxs(l.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:n,style:{height:"max-content",padding:"1.25rem 0",width:"45%"},values:e,children:[t.jsxs(b,{display:"flex",gap:.25,children:[t.jsx(K,{display:"flex",size:"xs",children:i}),t.jsx(U,{priority:"high",tagLabel:String(e.filter(c=>c.visible).length),variant:"error"})]}),t.jsx(I,{size:"sm",children:o}),e.map(c=>c.visible?t.jsx(l.ReorderItem,{as:"div",dragListener:!c.locked,item:c.name,value:c,children:t.jsx(rr,{disabled:c.locked,icon:"grid-2",label:c.name,onClickIcon:c.locked?void 0:a(c.id),rightIcon:c.locked?"lock":"close",selected:c.visible,value:c.name,children:c.name})},c.name):void 0)]})},ar=l.st(ze)`
1879
- padding: 7px 8px;
1880
-
1881
- &[aria-selected="true"] {
1882
- background-color: unset;
1883
- }
1884
-
1885
- svg {
1886
- &.fa-check {
1887
- border-radius: 2px;
1888
- }
1889
-
1890
- &.selected {
1891
- display: none;
1892
- }
1893
- }
1894
- `,ln=({options:e,title:n,checkboxesName:i,defaultCollapsed:o,onChange:r})=>{const a=l.Je(),[c,s]=u.useState(o??!1),d=u.useCallback(()=>{s(p=>!p)},[]);return t.jsxs(b,{"aria-label":n,bgColor:c?a.palette.gray[50]:a.palette.white,border:"1px solid"+a.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,role:"region",width:"100%",children:[t.jsxs(b,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(I,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:n}),t.jsx(E,{icon:c?"chevron-up":"chevron-down",iconColor:a.palette.gray[400],iconSize:"xs"})]}),c?t.jsx(b,{display:"flex",gap:.75,wrap:"wrap",children:e.map(p=>t.jsx(b,{border:"1px solid",borderColor:a.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(oe,{checked:p.visible,disabled:p.locked,label:p.name,name:`${i}-${p.name}`,onChange:r,value:p.name})},p.name))}):void 0]})},cn=e=>e.reduce((i,o)=>o.group?i[o.group]?{...i,[o.group]:[...i[o.group],o]}:{...i,[o.group]:[o]}:i,{}),sr=l.st.input`
1895
- ${({theme:e})=>`
1896
- background: none;
1897
- border: none !important;
1898
- box-shadow: none;
1899
- box-sizing: border-box;
1900
- color: ${e.palette.gray[800]};
1901
- font-family: ${e.typography.type.primary};
1902
- font-size: ${e.typography.text.sm};
1903
- outline: none;
1904
- width: 100%;
1905
-
1906
- &:-webkit-autofill {
1907
- -webkit-background-clip: text;
1908
- }
1909
-
1910
- &::placeholder {
1911
- color: ${e.palette.gray[400]};
1912
- }
1913
-
1914
- &:is(:hover, :focus)::-webkit-search-cancel-button {
1915
- display:none;
1916
- }
1917
-
1918
- ::-webkit-search-decoration,
1919
- ::-webkit-search-results-button,
1920
- ::-webkit-search-results-decoration {
1921
- display:none;
1922
- }
1923
- `}
1924
- `,lr=l.st.div`
1925
- ${({theme:e})=>`
1926
- align-items: center;
1927
- background-color: ${e.palette.white};
1928
- border: 1px solid ${e.palette.gray[300]};
1929
- border-radius: ${e.spacing[.5]};
1930
- display: flex;
1931
- height: 40px;
1932
- gap: ${e.spacing[.5]};
1933
- padding: ${e.spacing[.5]};
1934
- width: 100%;
1935
-
1936
- &:hover {
1937
- border-color: ${e.palette.gray[600]};
1938
- }
1939
-
1940
- &:focus-within {
1941
- border: 2px solid ${e.palette.black};
1942
- }
1943
- `}
1944
- `,cr=l.st.div`
1945
- ${({theme:e})=>`
1946
- background-color: ${e.palette.white};
1947
- border-radius: ${e.spacing[.5]};
1948
- width: 250px;
1949
- `}
1950
- `,ae=({name:e,smallSearch:n=!1,onClear:i,onChange:o,value:r,...a})=>{const c=u.useRef(null),s=l.Je(),[d,p]=u.useState(!1),[g,x]=u.useState(r??""),{refs:f,floatingStyles:h}=l.useFloating$1(),y=u.useCallback(()=>{p(v=>!v)},[]),$=u.useCallback(v=>{v.key==="Enter"&&v.preventDefault()},[]),m=u.useCallback(v=>{x(v.target.value),o==null||o(v)},[o]),j=u.useCallback(()=>{x(""),i==null||i()},[i]);ne(f.floating.current,()=>{p(!1)},!0);const w=t.jsxs(lr,{children:[t.jsx(E,{icon:"magnifying-glass",iconColor:s.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(sr,{id:e,name:e,onChange:m,onKeyDown:$,ref:c,type:"search",value:g,...a}),!l.lodashExports.isEmpty(g)&&t.jsx(M,{icon:"xmark",iconColor:s.palette.gray[300],iconSize:"xs",iconType:"fa-light",onClick:j,px:.25,py:.25,type:"reset",variant:"ghost"})]});return n?t.jsxs(u.Fragment,{children:[t.jsx(M,{border:`1px solid ${s.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:y,ref:f.setReference,variant:"ghost"}),d?t.jsx(cr,{ref:f.setFloating,style:h,children:w}):void 0]}):w},dn=({columns:e,formId:n,onChangeHandler:i,variant:o})=>{const r=u.useRef(null),[a,c]=u.useState([]),[s,d]=u.useState(""),p=u.useCallback(x=>{const{value:f}=x.target;d(f)},[]),g=u.useCallback(()=>{r.current&&(r.current.reset(),d(""))},[r]);return u.useEffect(()=>{c(e.filter(x=>{var f;return o==="grouped"?x.name.toLowerCase().includes(s.toLowerCase())||((f=x.group)==null?void 0:f.includes(s.toLowerCase())):x.name.toLowerCase().includes(s.toLowerCase())}))},[e,s,o]),o==="grouped"?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(ae,{name:"search",onChange:p,onClear:g,value:s})}),t.jsx("form",{"data-testid":n,id:n,onReset:g,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(cn(a)).map(([x,f],h)=>{const y=`li-checkbox${x}`;return t.jsx(ln,{checkboxesName:x,defaultCollapsed:h===0,onChange:i,options:f,title:x},y)})})]}):t.jsxs(b,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(ae,{name:"search",onChange:p,onClear:g,value:s})}),t.jsx("form",{"data-testid":n,id:n,onReset:g,style:{paddingTop:"0.625rem"},children:a.map(x=>{const f=`li-checkbox-${x.name}`;return t.jsx(ar,{selected:x.visible,value:f,width:"content",children:t.jsx(oe,{checked:x.visible,disabled:x.locked,label:x.name,name:x.name,onChange:i,value:x.name})},f)})})]})},pn=({_containerId:e="portals",title:n,modalRef:i,variant:o})=>{const r=l.Je(),a=u.useRef(null),[c,s]=u.useState(void 0),d=u.useCallback(x=>{const{checked:f,value:h}=x.target,y=i.columns.map($=>{var m;return $.name===h?((m=$.toggleVisibility)==null||m.call($,f),{...$,visible:f}):$});i.setColumns(y)},[i]),p=u.useCallback(x=>{const f=i.columns.map(h=>{var y;return h.id===x?((y=h.toggleVisibility)==null||y.call(h,!1),{...h,visible:!1}):h});i.setColumns(f)},[i]),g=u.useCallback(()=>{var f;const x=(f=a.current)==null?void 0:f.scrollHeight;c!==x&&s(x)},[c]);return i.isOpen?se.createPortal(t.jsx(Qt,{"aria-label":i.name,"aria-modal":"true",children:t.jsxs(ot,{$size:"md",flexDirection:"column",children:[t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(K,{size:"sm",children:n}),t.jsx(M,{icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:i.close,px:.25,py:.25,variant:"ghost"})]}),t.jsx(re,{mb:0,mt:0}),t.jsxs(b,{display:"flex",gap:1.25,onScroll:g,px:1.25,ref:a,scroll:"y",width:"100%",children:[t.jsx(dn,{columns:i.columns,formId:"columns-visibility",onChangeHandler:d,variant:o}),t.jsx(b,{borderLeft:`2px solid ${r.palette.gray[100]}`,height:c?`${c}px`:"auto"}),t.jsx(sn,{description:"Click and drag to reorder the columns",items:i.columns,onClickClose:p,onReorder:i.setColumns,title:"Reorder columns"})]}),t.jsx(re,{mb:0,mt:0}),t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(P,{disabled:!i.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:i.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to default"}),t.jsx(P,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},dr=l.st(ze)`
1951
- padding: 8px;
1952
- min-height: 36px;
1953
- min-width: unset;
1954
- `,pr=l.st.div.attrs({className:"comp-modal absolute top-[55px] overflow-auto"})`
1955
- align-items: center;
1956
- background-color: ${({$bgColor:e="rgb(52 64 84 / 70%)"})=>e};
1957
- display: flex;
1958
- justify-content: center;
1959
- z-index: 99999;
1960
- `,mt=l.st(ze)`
1961
- padding: 7px 8px;
1962
- word-wrap: break-word;
1963
-
1964
- svg.fa-check {
1965
- border-radius: 2px;
1966
- }
1967
- `,gn=({control:e,option:n,register:i,setValue:o})=>{var r,a,c,s,d;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(r=n.options)==null?void 0:r.map(g=>t.jsx(mt,{value:g.value,width:"content",children:t.jsx(oe,{...i("checkbox"),label:g.label,value:g.value})},`li-checkbox-${g.value}`))});case"radioButton":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[n.label,(a=n.options)==null?void 0:a.map(g=>t.jsx(mt,{value:g.value,width:"content",children:t.jsx(it,{...i("radio"),label:g.label,value:g.value})},`li-radio-${g.value}`))]});case"select":return t.jsx(et,{control:e,items:((c=n.options)==null?void 0:c.map(g=>({name:g.label??"",value:g.value})))??[],label:n.label,name:`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`,placeholder:n.placeholder,value:n.value});case"text":const p=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Ae,{label:n.label,name:p,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Ut,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:o},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:o},variant:"filters"});case"dateRange":return t.jsx(Bt,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(s=n.maxValue)==null?void 0:s.toString()},propsMin:{name:"minValue",value:(d=n.minValue)==null?void 0:d.toString()},register:i,setValue:o,variant:"filters"});default:return t.jsx("div",{})}},un=({control:e,items:n,register:i,setValue:o})=>t.jsx(t.Fragment,{children:n.map((r,a)=>{const c=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(gn,{control:e,option:r,register:i,setValue:o}),a<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},c)})}),xn=e=>{var s,d,p,g,x;const[n,i]=u.useState([...e]),{control:o,register:r,handleSubmit:a,setValue:c}=l.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter(y=>y.checked).map(y=>y.value))??[]}),radio:((p=(d=(s=e.find(f=>f.type==="radioButton"))==null?void 0:s.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:p.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(g=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:g.minValue,maxValue:(x=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:x.maxValue}});return{control:o,items:n,setItems:i,register:r,handleSubmit:a,setValue:c}},gr=(e,n)=>{var i,o,r,a,c;n("checkbox",e.filter(s=>s.type==="checkboxes").flatMap(s=>{var d;return((d=s.options)==null?void 0:d.filter(p=>p.checked).map(p=>p.value))??[]})),n("radio",((r=(o=(i=e.find(s=>s.type==="radioButton"))==null?void 0:i.options)==null?void 0:o.find(({checked:s})=>s))==null?void 0:r.value)??""),n("text",e.filter(s=>["text","select"].includes(s.type)).reduce((s,d)=>({...s,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),n("minValue",(a=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:a.minValue),n("maxValue",(c=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:c.maxValue)},ur=(e,n)=>(e==null?void 0:e.filter(i=>{var o;return((o=i.label)==null?void 0:o.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??i.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],xr=async(e,n)=>await Promise.all(e.map(async i=>{if(i.type==="checkboxes"){const r=(i.filterOptions?await i.filterOptions(i.options??[],n):ur(i.options??[],n)).filter((a,c,s)=>s.findIndex(d=>d.value===a.value)===c);return{...i,options:r}}return i})),Ue=({options:e,onSearch:n,onSubmit:i,id:o,selectedFilter:r})=>{const{control:a,items:c,setItems:s,register:d,handleSubmit:p,setValue:g}=xn(e),x=e.some(y=>y.type==="checkboxes"&&y.hideSearch!==!0),f=u.useCallback(async y=>{const{value:$}=y.target;n&&n($);const m=await xr(e,$);s(m)},[e,n,s]),h=u.useCallback(y=>{i&&i(y)},[i]);return u.useEffect(()=>{s(e),gr(e,g)},[e,s,g]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:o,style:{writingMode:"horizontal-tb",maxWidth:"300px",width:"100%"},children:[x&&t.jsxs("div",{children:[r,t.jsx(ae,{onChange:f})]}),t.jsxs("form",{id:o,onSubmit:p(h),children:[t.jsx(un,{control:a,items:c,register:d,setValue:g}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})},fn=({options:e,variant:n,onApplyFilters:i,onSearch:o,setDirection:r,setHandler:a})=>{const c=l.Je(),[s,d]=u.useState(e),[p,g]=u.useState([]),[x,f]=u.useState({}),[h,y]=u.useState(""),$=u.useCallback(w=>()=>{const v=s.find(C=>C.label===w),k=!(v!=null&&v.filterOptions.some(C=>C.type==="dateRange"||C.type==="select"));a==null||a(k??!0),y(w),g((v==null?void 0:v.filterOptions)??[])},[s,a]),m=u.useCallback(w=>{const v=[...w.checkbox,...Object.values(w.text??{}),...w.radio?[w.radio]:[],...w.minValue?[String(w.minValue)]:[],...w.maxValue?[String(w.maxValue)]:[]];f(S=>v.length>0?{...S,[h]:v}:S);const k=S=>{var F,T;return{...S,options:(F=S.options)==null?void 0:F.map(L=>({...L,checked:w.checkbox.includes(L.value)||w.radio===L.value})),value:["text","select"].includes(S.type)?((T=w.text)==null?void 0:T[`${String(S.key)}-${S.filterFn??"caseInsensitive"}`])??S.value:S.value,minValue:["numberRange","dateRange"].includes(S.type)?w.minValue:S.minValue,maxValue:["numberRange","dateRange"].includes(S.type)?w.maxValue:S.maxValue}},C=S=>S.label===h?{...S,filterOptions:S.filterOptions.map(k)}:S,R=s.map(C);d(S=>S.map(C));const z=R.flatMap(({filterOptions:S})=>S);i(z),g([])},[s,i,h]),j=u.useCallback((w,v)=>{const k=`li-filter-option-${w}`;return t.jsxs(dr,{icon:v,onClick:$(w),style:{minWidth:"180px",writingMode:"horizontal-tb"},value:k,width:"100%",children:[w,x[w]===void 0?void 0:t.jsx(U,{tagLabel:x[w].length.toString()})]},k)},[x,$]);return u.useEffect(()=>{const w=e.reduce((v,{label:k,filterOptions:C})=>{const R=C.flatMap(({value:F,minValue:T,maxValue:L})=>[T,L,F]).filter(Boolean),z=C.flatMap(({options:F})=>F??[]).filter(({checked:F=!1})=>F).map(({value:F})=>F),S=[...R,...z];return S.length===0?v:{...v,[k]:S}},{});f(w),p.length>0&&r&&r("column")},[p,e,r]),n==="grouped"?t.jsx(b,{display:"flex",flexDirection:"row",maxHeight:p.length>0?"unset":"360px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:p.length>0?t.jsx(Ue,{id:"filters-options",onSearch:o,onSubmit:m,options:p,selectedFilter:h}):Object.entries(cn(e)).map(([w,v])=>t.jsxs(b,{style:{writingMode:"horizontal-tb"},children:[t.jsx(I,{color:c.palette.gray[400],mb:.25,size:"sm",children:w}),v.map(({label:k,icon:C="filter-list"})=>j(k,C))]},w))}):t.jsx(b,{display:"flex",flexDirection:"row",maxHeight:p.length>0?"unset":"200px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:p.length>0?t.jsx(Ue,{id:"filters-options",onSearch:o,onSubmit:m,options:p,selectedFilter:h}):e.map(({label:w,icon:v="filter-list"})=>j(w,v))})},hn=({options:e,onApplyFilters:n,onSearch:i,modalRef:o,variant:r})=>{const[a,c]=u.useState("row"),[s,d]=u.useState(!0),p=l.Je(),g=u.useRef(null),x=t.jsx(M,{icon:"close",iconColor:p.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,px:.25,py:.25,variant:"ghost"});return u.useEffect(()=>{const f=h=>{const y=g.current;y&&!y.contains(h.target)&&o.close()};if(s)return document.addEventListener("mousedown",f,!0),()=>{document.removeEventListener("mousedown",f,!0)}},[g,s,o]),t.jsx(pr,{$bgColor:"transparent","aria-label":o.name,children:t.jsxs(ot,{$size:"fixed",alignItems:a==="row"?"start":"end",display:"flex",flexDirection:a,gap:.5,id:"filters-list",justify:"space-between",position:"relative",px:1.25,py:1.25,ref:g,style:{maxWidth:"620px",overflow:"hidden",width:"fit-content"},children:[a==="column"?x:void 0,t.jsx(fn,{onApplyFilters:n,onSearch:i,options:e,setDirection:c,setHandler:d,variant:r}),a==="row"?x:void 0]})})};function fr(e){if(e)return e}function yn(e){if(!e||e.length===0)return;const n=e.filter(o=>o.checked).map(o=>o.label??o.value);return n.length===0?void 0:n.join(", ")}function hr(e,n,i){const o=i??"",r=l._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),a=l._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!l._.isUndefined(r)&&!l._.isUndefined(a))return`${r}${o} - ${a}${o}`;if(!l._.isUndefined(r))return`Min ${r}${o}`;if(!l._.isUndefined(a))return`Max ${a}${o}`}function yr(e,n){if(l.dayjs_minExports.extend(l.localizedFormat),!(l._.isUndefined(e)&&l._.isUndefined(n))){if(e!==""&&n!==""&&!l._.isUndefined(e)&&!l._.isUndefined(n))return`${l.dayjs(e).format("LL")} - ${l.dayjs(n).format("LL")}`;if(e!==""&&!l._.isUndefined(e))return`From ${l.dayjs(e).format("LL")}`;if(n!==""&&!l._.isUndefined(n))return`To ${l.dayjs(n).format("LL")}`}}function br(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const pe=({filter:e,icon:n="filter-list",label:i,onClose:o,filterValue:r})=>l._.isNil(r)||l._.isEmpty(String(r))?null:t.jsx(U,{filterValues:r,icon:n,id:"remove-filter",onClose:o(e),tagLabel:`${i} `}),$r=({options:e,onClose:n})=>{const i=e.flatMap(o=>o.filterOptions.map(r=>{const{filterFn:a,label:c,type:s,value:d,options:p,minValue:g,maxValue:x}=r;switch(s){case"numberRange":{const f=hr(g,x,o.placeholder);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case"dateRange":{const f=yr(g==null?void 0:g.toString(),x==null?void 0:x.toString());return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case"radioButton":case"checkboxes":{const f=yn(p);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case void 0:case"select":case"text":default:{const f=fr(d),h=br(s,o.label,a);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:h,onClose:n},c)}}})).filter(o=>{if(o===null)return!1;const{filterValue:r}=o.props;return!l._.isNil(r)&&!l._.isEmpty(String(r))});return i.length>0?t.jsx(b,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},mr=e=>e.map(n=>{const i={key:String(n.key),type:n.type},o=(()=>{let r={...i};if(n.filterFn&&(r={...r,filterFn:n.filterFn}),n.value&&(r={...r,value:n.value}),n.minValue!==void 0&&n.minValue!==null&&(r={...r,minValue:n.minValue}),n.maxValue!==void 0&&n.maxValue!==null&&(r={...r,maxValue:n.maxValue}),n.options&&n.options.length>0){const a=n.options.filter(c=>c.checked).map(c=>c.value);a.length>0&&(r={...r,selectedValues:a})}return r})();return Object.keys(o).length>2?o:null}).filter(Boolean),wr=(e,n)=>n.map(i=>{const o=e.find(a=>a.key===String(i.key)&&a.type===i.type);return o?(()=>{let a={...i};return o.filterFn&&(a={...a,filterFn:o.filterFn}),o.value!==void 0&&o.value!==null&&(a={...a,value:o.value}),o.minValue!==void 0&&o.minValue!==null&&(a={...a,minValue:o.minValue}),o.maxValue!==void 0&&o.maxValue!==null&&(a={...a,maxValue:o.maxValue}),o.selectedValues&&i.options&&(a={...a,options:i.options.map(c=>{var s;return{...c,checked:((s=o.selectedValues)==null?void 0:s.includes(c.value))??!1}})}),a})():i}),Oe=(e,n)=>{const i=mr(e);n(JSON.stringify(i))},jr=(e,n)=>{const i=e();if(!i)return n;try{const o=JSON.parse(i);return wr(o,n)}catch{return n}},vr=(e,n)=>{function i(c,s){if(s.value===""||s.value===void 0||l._.defaultTo(s.isBackFilter,!1))return!0;switch(s.filterFn){case"includesInsensitive":return String(c[s.key]).toLowerCase().includes(s.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(c[s.key]).toLowerCase()===s.value.toLowerCase()}}function o(c,s){if(!s.options||s.options.length===0)return!0;const d=s.options.filter(p=>p.checked).map(p=>p.value);return d.length===0?!0:d.includes(String(c[s.key]))}function r(c,s,d){const p=d(String(c[s.key])),{minValue:g,maxValue:x}=s,f=l._.isEmpty(g)&&typeof g!="number"?void 0:d(String(g)),h=l._.isEmpty(x)&&typeof x!="number"?void 0:d(String(x));return l._.isUndefined(f)&&l._.isUndefined(h)?!0:(f??-1/0)<=p&&p<=(h??1/0)}function a(c){return n.every(s=>{if(typeof s.key=="function")return s.key(c,s.value);switch(s.type){case"radioButton":case"checkboxes":return o(c,s);case"numberRange":return r(c,s,Number);case"dateRange":return r(c,s,d=>new Date(d));case"select":case"text":default:return i(c,s)}})}return e.filter(a)},wt=e=>[...e.flatMap(({options:i})=>i).filter(i=>i==null?void 0:i.checked),...e.flatMap(i=>[i.value,i.maxValue,i.minValue]).filter(Boolean)].length,kr=e=>{var i;const n=((i=e.options)==null?void 0:i.map(o=>({...o,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},Cr=({dataset:e,setValues:n,getValues:i,options:o,setFilteredDataset:r,onFiltersChange:a,onReset:c,onSearch:s,variant:d="ungrouped"})=>{const p=Se("filters-modal"),[g,x]=u.useState(!1),[f,h]=u.useState([]),[y,$]=u.useState(wt(f)),m=o.map(C=>({...C,filterOptions:C.filterOptions.map(R=>f.find(S=>S.key===R.key&&S.type===R.type&&S.filterFn===R.filterFn)??{...R})})),j=u.useCallback(C=>{h([...C]),Oe(C,n)},[h,n]),w=u.useCallback(()=>{c&&c(),p.isOpen||x(!0),p.toggle()},[p,c]),v=u.useCallback(C=>()=>{c&&c();const R=f.map(z=>z.key===C.key&&z.type===C.type&&z.filterFn===C.filterFn?kr(z):z);h(R),Oe(R,n)},[f,c,n]);return u.useEffect(()=>{const C=o.flatMap(z=>z.filterOptions);if(C.flatMap(z=>z.value).filter(Boolean).length>0||C.flatMap(z=>z.options).filter(z=>(z==null?void 0:z.checked)===void 0).length>0)h(C),g&&Oe(C,n);else if(g){const z=jr(i,C);h(z)}else h(C)},[o,h,n,i,g]),u.useEffect(()=>{r&&e!==void 0&&r(vr(e,f)),$(wt(f)),a==null||a(f)},[e,f,r,$,a]),{Filters:()=>t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx(b,{pr:.25,children:t.jsx(P,{icon:"filter",id:"filter-btn",onClick:w,tag:y.toString(),variant:"ghost"})}),p.isOpen&&t.jsx(hn,{modalRef:p,onApplyFilters:j,onSearch:s,options:m,variant:d})]}),options:m,removeFilter:v}},at=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:o=void 0,confirmButton:r=void 0,content:a=void 0,description:c=void 0,modalRef:s,otherActions:d=void 0,onClose:p=void 0,tabItems:g=void 0,title:x=void 0,size:f,id:h="modal-container"})=>{const y=l.Je(),$=t.jsx(Qt,{"aria-label":s.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(ot,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!l._.isEmpty(x)&&!l._.isNil(x)&&t.jsx(tn,{description:c,modalRef:s,onClose:p,otherActions:d,title:x}),g&&t.jsx(b,{borderTop:`1px solid ${y.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(rt,{items:g})}),(l._.isObject(a)||o)&&t.jsxs(Ko,{children:[o,l._.isObject(a)&&l._.isString(a.imageSrc)&&t.jsx(Qo,{$framed:a.imageFramed,children:t.jsx(ee,{alt:"modal-img",publicId:a.imageSrc})}),l._.isObject(a)&&l._.isString(a.imageText)&&t.jsx(I,{size:"sm",children:a.imageText})]}),t.jsx(en,{alert:n,cancelButton:i,confirmButton:r,modalRef:s})]})});return e&&s.isOpen?se.createPortal($,document.getElementById("portals")??document.body):s.isOpen?$:null},Sr=(e,n,i)=>{const o=Se("confirm-dialog-modal"),r=u.useRef(null),a=u.useCallback(async()=>(o.open(),new Promise(p=>{r.current=p})),[o]),c=u.useCallback(()=>{var p;o.close(),(p=r.current)==null||p.call(r,!0)},[o]),s=u.useCallback(()=>{var p;o.close(),(p=r.current)==null||p.call(r,!1)},[o]);return[a,({children:p})=>{const[g,x]=u.useState(i),f=u.useCallback(()=>{x({...i})},[]),h=u.useCallback(m=>()=>{x(j=>({...j,[m]:{...j[m],state:!j[m].state}}))},[]),y=!Object.values(g).every(({state:m})=>m),$=Object.entries(g).map(([m,{state:j,label:w}])=>t.jsx(oe,{defaultChecked:j,label:w,name:m,onChange:h(m)},m));return t.jsxs(at,{"data-testid":e,id:e,modalRef:{...o,close:s},onClose:f,size:"sm",title:n,children:[p,t.jsx(b,{display:"flex",flexDirection:"column",gap:.5,children:$}),t.jsx(nn,{disabled:y,id:e,onConfirm:c})]})}]},zr=()=>{const[e,n]=u.useState(!1),[i,o]=u.useState(),r=u.useRef(null),a=Se("confirm-dialog-modal"),c=u.useCallback(async g=>(o(g),n(!0),new Promise(x=>{r.current=x})),[]),s=u.useCallback(()=>{var g;n(!1),o(void 0),(g=r.current)==null||g.call(r,!0)},[]),d=u.useCallback(()=>{var g;n(!1),o(void 0),(g=r.current)==null||g.call(r,!1)},[]);return u.useEffect(()=>{a.setIsOpen(e)},[e,a]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:x})=>t.jsxs(at,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(i==null?void 0:i.id)??"modal-confirm",onClick:s,text:"Confirm"},description:i==null?void 0:i.message,id:g,modalRef:{...a,close:d},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,x]}),confirm:c}},Ir=2e3,Tr=({content:e})=>{const[n,i]=u.useState("Copy"),o=u.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{i("Copied"),setTimeout(()=>{i("Copy")},Ir)}).catch(()=>{i("Failed to copy")})},[e]);return t.jsx(M,{icon:"copy",iconSize:"xs",iconType:"fa-light",onClick:o,tooltip:n,variant:"ghost"})},Er=l.st.ul`
1968
- ${({theme:e})=>`
1969
- align-items: flex-start;
1970
- border-radius: ${e.spacing[.25]};
1971
- border: 1px solid ${e.palette.gray[200]};
1972
- background: ${e.palette.white};
1973
- box-shadow: ${e.shadows.md};
1974
- display: flex;
1975
- flex-direction: column;
1976
- padding: ${e.spacing[.25]} 0;
1977
- width: 166px;
1978
- z-index: 9999;
1979
- `}
1980
- `,Rr=l.st.li`
1981
- ${({theme:e})=>`
1982
- align-items: center;
1983
- background: ${e.palette.white}
1984
- color: ${e.palette.gray[800]};
1985
- cursor: pointer;
1986
- display: flex;
1987
- font-family: ${e.typography.type.primary};
1988
- font-size: ${e.typography.text.sm};
1989
- font-style: normal;
1990
- font-weight: ${e.typography.weight.regular};
1991
- gap: ${e.spacing[.5]};
1992
- line-height: ${e.spacing[1.25]};
1993
- padding: ${e.spacing[.25]} ${e.spacing[1]};
1994
- width: 100%;
1995
-
1996
- &:hover:not([aria-disabled="true"]) {
1997
- background: ${e.palette.gray[100]};
1998
- }
1999
-
2000
- &[aria-disabled="true"] {
2001
- background: ${e.palette.gray[100]};
2002
- color: ${e.palette.gray[500]};
2003
- cursor: not-allowed;
2004
- }
2005
- `}
2006
- `,Dr=({icon:e,iconColor:n,id:i,showChevron:o,options:r,title:a})=>{const c=l.Je(),[s,d]=u.useState(!1),p=s?"chevron-up":"chevron-down",{refs:g,floatingStyles:x}=l.useFloating({middleware:[l.offset({mainAxis:4})],placement:"bottom-start"}),f=u.useCallback(()=>{d(h=>!h)},[]);return ne(g.floating.current,()=>{d(!1)},!0,document.getElementById("dropdown-toggle")),t.jsxs(u.Fragment,{children:[t.jsx(P,{"aria-label":a,icon:e,iconColor:n,iconType:"fa-solid",id:`dropdown-toggle-${i}`,onClick:f,ref:g.setReference,rightIcon:o?p:void 0,variant:"ghost",children:a}),s?t.jsx(Er,{ref:g.setFloating,style:x,children:r.map(h=>{const y=({})=>{h.onClick(),d(!1)};return t.jsxs(Rr,{"aria-disabled":h.disabled,"aria-label":h.label,onClick:h.disabled?void 0:y,children:[t.jsx(E,{icon:h.icon,iconColor:h.iconColor??c.palette.gray[300],iconSize:"xxs",iconType:"fa-light"}),h.label]},h.label)})}):void 0]})},Ge=({buttonProps:e,variant:n})=>t.jsx(P,{onClick:e.onClick,variant:n,children:e.text}),Nr=l.st.div`
2007
- display: flex;
2008
- flex-direction: column;
2009
- align-items: center;
2010
- padding: ${({theme:e,$padding:n})=>e.spacing[n]};
2011
- max-width: 900px;
2012
- white-space: pre-line;
2013
- margin: 0 auto;
2014
- `,Fr=l.st.div`
2015
- display: flex;
2016
- flex-direction: row;
2017
- justify-content: center;
2018
- align-items: center;
2019
- background-color: transparent;
2020
- width: 96px;
2021
- height: 96px;
2022
- margin-bottom: ${({theme:e})=>e.spacing[2]};
2023
-
2024
- > img {
2025
- width: 100%;
2026
- }
2027
- `,Lr=l.st.div`
2028
- display: flex;
2029
- flex-direction: row;
2030
- margin: 0;
2031
- margin-bottom: ${({theme:e})=>e.spacing[2]};
2032
-
2033
- > * {
2034
- margin-right: ${({theme:e})=>e.spacing[.75]};
2035
- }
2036
-
2037
- > *:last-child {
2038
- margin-right: 0;
2039
- }
2040
- `,jt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},Ar=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:o="integrates/empty/addRoot",padding:r=1.25,title:a,size:c="md"})=>{const s=(n??e)!==void 0;return t.jsxs(Nr,{$padding:r,children:[t.jsx(Fr,{children:t.jsx(ee,{alt:"empty-icon",publicId:o})}),t.jsx(K,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:jt[c].title,textAlign:"center",children:a}),t.jsx(I,{mb:s?2:void 0,size:jt[c].description,textAlign:"center",children:i}),s?t.jsxs(Lr,{children:[e&&t.jsx(Ge,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(Ge,{buttonProps:n,variant:"primary"})]}):void 0]})},Pr=({children:e})=>{const n=l.useFormContext();return e({...n})},Mr=l.st.form`
2041
- ${({theme:e})=>`
2042
- align-items: flex-start;
2043
- align-self: stretch;
2044
- display: flex;
2045
- flex-direction: column;
2046
- gap: ${e.spacing[.5]};
2047
- overflow: hidden auto;
2048
- width: 100%;
2049
- `}
2050
- `,Or=({alert:e,buttonAlignment:n,cancelButton:i,children:o,confirmButton:r,defaultDisabled:a=!0,id:c="modal-confirm",maxButtonWidth:s="392px",mode:d,onSubmit:p,padding:g=!0,showButtons:x=!0,yupSchema:f,...h})=>{const y=l.Je(),$=l.useForm({...h,mode:d??"all",resolver:f?l.o(f):void 0});function m(k){k.stopPropagation(),$.handleSubmit(p)(k)}const w=x?`calc(100% - ${e?"139px":"83px"})`:"100%",v=g?1.5:0;return t.jsx(l.FormProvider,{...$,children:t.jsx(Mr,{onSubmit:m,children:t.jsxs(b,{scroll:"y",width:"100%",children:[t.jsx(b,{borderRadius:`0 0 ${y.spacing[.25]} ${y.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:w,pb:v,pt:0,px:v,scroll:"y",children:o}),x&&t.jsxs(b,{borderRadius:`0 0 ${y.spacing[.25]} ${y.spacing[.25]}`,borderTop:`1px solid ${y.palette.gray[200]}`,display:"flex",flexDirection:n?"unset":"column",gap:.625,justify:n??"stretch",position:"sticky",px:1.25,py:1.25,children:[e,t.jsxs(b,{display:"flex",gap:.75,maxWidth:s,children:[i?t.jsx(P,{icon:i.icon,id:`${c}-cancel`,justify:"center",onClick:i.onClick,type:"reset",variant:"tertiary",width:"100%",children:i.label??"Cancel"}):void 0,t.jsx(P,{disabled:((r==null?void 0:r.disabled)??!1)||$.formState.isSubmitting||a&&!$.formState.isDirty,icon:r==null?void 0:r.icon,id:c,justify:"center",type:"submit",width:"100%",children:(r==null?void 0:r.label)??"Confirm"})]})]})]})})})},Wr=l.st(ke)`
2051
- display: grid;
2052
- gap: ${({$gap:e=1.25})=>`${e}rem`};
2053
- grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
2054
-
2055
- ${({theme:e,$xl:n,$lg:i,$md:o})=>`
2056
- @media (width >= ${e.breakpoints.sm}) {
2057
- grid-template-columns: repeat(${o}, 1fr);
2058
- }
2059
-
2060
- @media (width >= ${e.breakpoints.md}) {
2061
- grid-template-columns: repeat(${i}, 1fr);
2062
- }
2063
-
2064
- @media (width >= ${e.breakpoints.lg}) {
2065
- grid-template-columns: repeat(${n}, 1fr);
2066
- }
2067
- `}
2068
- `,Hr=u.forwardRef(function({children:n,md:i,sm:o,lg:r,xl:a,gap:c,...s},d){return t.jsx(Wr,{$gap:c,$lg:r,$md:i,$sm:o,$xl:a,ref:d,...s,children:n})}),Br=l.st.div`
2069
- ${({theme:e,$itemsLength:n})=>`
2070
- display: flex;
2071
- background-color: ${e.palette.white};
2072
- border: 1px solid ${e.palette.gray[200]};
2073
- border-radius: ${e.spacing[.25]};
2074
- box-shadow: ${e.shadows.lg};
2075
- flex-direction: column;
2076
- min-width: 507px;
2077
- max-width: ${n<=4?"507px":"980px"};
2078
- padding: ${e.spacing[1.5]};
2079
-
2080
- @media screen and (max-width: 980px) and (min-width: 742px) {
2081
- width: 742px;
2082
- }
2083
- @media screen and (max-width: 742px) {
2084
- width: 507px;
2085
- }
2086
- `}
2087
- `,st=l.st.div`
2088
- ${({theme:e,$isSelected:n})=>`
2089
- align-items: center;
2090
- background-color: ${n?e.palette.gray[100]:e.palette.white};
2091
- border: 1px solid ${e.palette.gray[200]};
2092
- border-radius: ${e.spacing[.25]};
2093
- cursor: pointer;
2094
- display: flex;
2095
- flex-direction: ${n?"row-reverse":"row"};
2096
- min-height: 50px;
2097
- padding: ${e.spacing[1]} ${e.spacing[.625]};
2098
- width: 215px;
2099
-
2100
- &:hover {
2101
- background-color: ${e.palette.gray[100]};
2102
- }
2103
- `}
2104
- `,bn=({isSelected:e=!1,label:n,onSelect:i})=>{const o=l.Je(),r=u.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(st,{$isSelected:e,onClick:r,children:[e?t.jsx(E,{icon:"check",iconColor:o.palette.gray[800],iconSize:"xs"}):null,t.jsx(I,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},_r=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:o,onClose:r,selectedItem:a,title:c,variant:s})=>{const d=l.Je(),[p,g]=u.useState(n),[x,f]=u.useState(""),h=u.useCallback(m=>{g(j=>j.filter(w=>String(w.name).toLowerCase().includes(m.toLocaleLowerCase())))},[g]),y=u.useCallback(m=>{m.currentTarget&&(f(m.currentTarget.value),h(m.currentTarget.value))},[f,h]);u.useEffect(()=>{g(n),h(x)},[n,h,x]);const $=t.jsx(b,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(b,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(Br,{$itemsLength:p.length,children:[t.jsxs(b,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(I,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:c}),t.jsx(M,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx(b,{mt:1,children:t.jsx(ae,{onInput:y,placeholder:"Search"})}),t.jsx(re,{mb:1,mt:1}),t.jsxs(b,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[s==="organization-selector"?t.jsx(st,{onClick:i,children:t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsx(E,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(I,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,p.map(m=>t.jsx(bn,{isSelected:a.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:o},m.name))]})]})})});return e?se.createPortal($,document.body):t.jsx("div",{})},Vr=({description:e,height:n="auto",leftIconName:i,children:o,rightIconName:r,title:a,tooltipId:c,tooltipTip:s,tooltipPlace:d="bottom",variant:p="centered",width:g="318px"})=>{const x=l.Je(),f=p==="centered",h=c&&t.jsx(J,{icon:r??i,iconColor:x.palette.gray[800],id:c,place:d,tip:s});return t.jsxs(b,{alignItems:f?"center":"flex-start",bgColor:x.palette.gray[50],border:`1px solid ${x.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:f?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:g,children:[t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[f||l.lodashExports.isUndefined(i)?void 0:h,t.jsx(I,{color:f?x.palette.gray[800]:x.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||l.lodashExports.isUndefined(r)?void 0:h]}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!l.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[l.lodashExports.isUndefined(a)?void 0:t.jsx(K,{fontWeight:"bold",size:"md",children:a}),o]}),f&&!l.lodashExports.isUndefined(r)?h:void 0]})]})},Jr=({actions:e,children:n,header:i,title:o,tabs:r,footer:a})=>{const c=l.Je();return t.jsxs(b,{alignItems:"flex-start",bgColor:c.palette.white,borderLeft:`1px solid ${c.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs(b,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${c.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(I,{color:c.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:o}),i]}),e&&t.jsx(b,{display:"flex",gap:.25,children:e.map(({icon:s,onClick:d},p)=>t.jsx(M,{icon:s??"paper-plane",iconColor:c.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${p}-${s}`))})]}),t.jsx(b,{display:"flex",pt:.25,width:"100%",children:t.jsx(rt,{items:r})}),t.jsx(b,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),a&&t.jsx(b,{alignSelf:"stretch",borderTop:`1px solid ${c.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:a.map(({icon:s,text:d,onClick:p},g)=>t.jsx(P,{icon:s,onClick:p,variant:g===0?"primary":"tertiary",width:"100%",children:d},`${g}-${d}`))})]})},Ur=l.st.span`
2105
- ${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
2106
- background-color: ${n};
2107
- border-radius: 5px;
2108
- color: ${e.palette.white};
2109
- font-size: 10px;
2110
- padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
2111
- text-decoration: ${i}
2112
- `}
2113
- `,Gr=({bgColor:e,children:n,txtDecoration:i,ml:o=1})=>t.jsx(Ur,{$bgColor:e,$txtDecoration:i,className:`ml-${o}`,children:n}),Yr={lg:"56",md:"30",sm:"12"},{getVariant:Kr}=Y(e=>({blue:`stroke: ${e.palette.info[500]};`,red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),Zr=l.ct`
2114
- 0% {
2115
- transform: rotateZ(0deg);
2116
- }
2117
- 100% {
2118
- transform: rotateZ(360deg)
2119
- }
2120
- `,qr=l.ct`
2121
- 0%,
2122
- 25% {
2123
- stroke-dashoffset: 280;
2124
- transform: rotate(0);
2125
- }
2126
-
2127
- 50%,
2128
- 75% {
2129
- stroke-dashoffset: 75;
2130
- transform: rotate(45deg);
2131
- }
2132
-
2133
- 100% {
2134
- stroke-dashoffset: 280;
2135
- transform: rotate(360deg);
2136
- }
2137
- `,Xr=l.st.svg`
2138
- ${({$size:e="md"})=>l.nt`
2139
- animation: ${Zr} 2s linear infinite;
2140
- animation-timing-function: linear;
2141
- display: inline-block;
2142
- width: ${Yr[e]}px;
2143
- `}
2144
- `,Qr=l.st.circle`
2145
- ${({theme:e,$color:n="red"})=>l.nt`
2146
- animation: 1.4s ease-in-out infinite both ${qr};
2147
- display: block;
2148
- fill: transparent;
2149
- stroke-linecap: round;
2150
- stroke-dasharray: 283;
2151
- stroke-dashoffset: 280;
2152
- stroke-width: 10px;
2153
- transform-origin: 50% 50%;
2154
-
2155
- ${Kr(e,n)}
2156
- `}
2157
- `,ea=l.st.circle`
2158
- display: block;
2159
- fill: transparent;
2160
- stroke: ${({theme:e})=>e.palette.gray[200]};
2161
- stroke-linecap: round;
2162
- stroke-width: 10px;
2163
- transform-origin: 50% 50%;
2164
- opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
2165
- `,$n=({color:e="red",label:n,size:i})=>{const o=l.Je();return t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsxs(Xr,{$size:i,viewBox:"0 0 100 100",children:[t.jsx(ea,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(Qr,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(I,{color:e==="red"||e==="blue"?o.palette.gray[700]:o.palette.white,ml:.5,size:"sm",children:n})]})},ta={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},na=({publicId:e,variant:n})=>t.jsx(b,{...ta[n],children:t.jsx(ee,{alt:"logo",publicId:e})}),ia=l.st(l.Lottie).attrs(({autoplay:e=!0})=>({autoplay:e,className:"comp-lottie"}))`
2166
- ${({$size:e=16})=>`
2167
- height: ${e}px;
2168
- width: ${e}px;
2169
- `}
2170
- `,oa=e=>{const{size:n}=e;return t.jsx(ia,{$size:n,...e})},ra=({children:e,commitSha:n,commitShortSha:i,parentElement:o,userInfo:r,setVisibility:a})=>{const c=l.Je(),{userName:s,email:d,phone:p,userRole:g}=r;return ne(o,()=>{a(!1)}),t.jsxs(an,{children:[t.jsx("li",{className:"user-info",children:t.jsxs(b,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(I,{color:c.palette.gray[800],fontWeight:"bold",size:"sm",children:s}),t.jsx(I,{color:c.palette.gray[400],size:"sm",children:d}),l.lodashExports.isUndefined(p)?void 0:t.jsx(I,{color:c.palette.gray[400],size:"sm",children:p})]}),t.jsx(b,{children:t.jsx(U,{tagLabel:g,variant:"role"})})]})}),t.jsx(re,{}),e,t.jsx(re,{}),t.jsx("li",{className:"commit-info",children:t.jsx(Z,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${n}`,iconPosition:"hidden",children:t.jsx(I,{color:c.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},aa=l.st.button`
2171
- align-items: center;
2172
- background-color: transparent;
2173
- border: unset;
2174
- cursor: pointer;
2175
- display: flex;
2176
- justify-content: center;
2177
- gap: 5px;
2178
- padding: 0;
2179
-
2180
- &:hover p {
2181
- color: ${D.palette.primary[200]};
2182
- }
2183
-
2184
- &:hover span {
2185
- color: ${D.palette.primary[200]};
2186
- }
2187
- `,sa=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:o="regular",show:r=!0,icon:a,onClose:c,buttonSide:s="end"})=>{const d=l.Je(),[p,g]=u.useState(r),x=u.useCallback(()=>{g(!1),c==null||c()},[c]);u.useEffect(()=>{g(r)},[r,g]);const f=t.jsxs(aa,{onClick:n,children:[t.jsx(I,{color:d.palette.white,fontWeight:o,size:"sm",textDecoration:"underline",children:i}),t.jsx(E,{icon:a??"arrow-right",iconColor:d.palette.white,iconSize:"xs",iconType:o==="bold"?"fa-regular":"fa-light"})]});return t.jsxs(b,{alignItems:"center",bgGradient:d.palette.gradients["01"],display:p?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs(b,{display:"flex",gap:.5,justify:"center",width:"100%",children:[s==="start"&&n?f:void 0,t.jsx(b,{children:typeof e=="string"?t.jsx(I,{color:d.palette.white,display:"inline",size:"sm",children:e}):e}),s==="end"&&n?f:void 0]}),t.jsx(E,{clickable:!0,hoverColor:d.palette.primary[200],icon:"close",iconColor:d.palette.white,iconSize:"xs",iconType:"fa-light",onClick:x})]})},la=l.st.div`
2188
- ${({theme:e,$variant:n})=>`
2189
- background: ${e.palette.white};
2190
- border: 1px solid ${e.palette.gray[200]};
2191
- border-radius: ${e.spacing[.25]};
2192
- border-left: 4px solid ${e.palette[n][500]};
2193
- box-shadow: ${e.shadows.md};
2194
- position: relative;
2195
- display: flex;
2196
- width: 360px;
2197
- padding: ${e.spacing[1.25]} ${e.spacing[1]} ${e.spacing[1.25]} ${e.spacing[.75]};
2198
- gap: ${e.spacing[.5]};
2199
-
2200
- button {
2201
- position: absolute;
2202
- top: 20px;
2203
- right: 16px;
2204
- }
2205
- `}
2206
- `,ca=l.st.div`
2207
- ${({theme:e,$variant:n})=>`
2208
- height: ${e.spacing[2.5]};
2209
- width: ${e.spacing[2.5]};
2210
- position: relative;
2211
- flex-shrink: 0;
2212
-
2213
- & .ellipse-1,
2214
- & .ellipse-2,
2215
- & .icon {
2216
- top: 50%;
2217
- left: 50%;
2218
- transform: translate(-50%, -50%);
2219
- position: absolute;
2220
- }
2221
-
2222
- & .ellipse-1 {
2223
- transform: scale(2.5) translate(-20%, -20%);
2224
- color: ${e.palette[n][50]};
2225
- position: absolute;
2226
- }
2227
-
2228
- & .ellipse-2 {
2229
- transform: scale(2) translate(-25%, -25%);
2230
- color: ${e.palette[n][200]};
2231
- }
2232
-
2233
- & .icon {
2234
- color: ${e.palette[n][500]};
2235
- }
2236
- `}
2237
- `,da=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",pa=({description:e,onClose:n,title:i,variant:o})=>{const r=l.Je(),a=u.useCallback(()=>{n==null||n()},[n]);return t.jsxs(la,{$variant:o,className:`notification notification__${o}`,role:"alertdialog",children:[t.jsxs(ca,{$variant:o,children:[t.jsx(E,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(E,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(E,{icon:da(o),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(b,{pr:1.5,children:[t.jsx(K,{fontWeight:"bold",size:"xs",children:i}),t.jsx(I,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(M,{height:"fit-content",icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:a,px:.125,py:.125,variant:"ghost"})]})},ga=l.st.div`
2238
- width: fit-content;
2239
- border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
2240
- border-radius: 4px;
2241
- background: none;
2242
- color: ${({theme:e})=>e.palette.black};
2243
- font-family: ${({theme:e})=>e.typography.type.primary};
2244
- font-size: ${({theme:e})=>e.typography.text.md};
2245
- height: 40px;
2246
- display: flex;
2247
- align-items: center;
2248
- justify-content: center;
2249
- padding: 0.5em;
2250
- `,ua=l.st.input`
2251
- width: 4em;
2252
- appearance: textfield;
2253
- border-style: none;
2254
- padding: 0.5rem;
2255
- padding-top: 0.5rem;
2256
- padding-bottom: 0.5rem;
2257
- padding-left: 0.5rem;
2258
- background: none;
2259
-
2260
- &:focus {
2261
- border-color: unset;
2262
- box-shadow: none;
2263
- outline: none;
2264
- }
2265
-
2266
- &::-webkit-outer-spin-button,
2267
- &::-webkit-inner-spin-button {
2268
- opacity: 1;
2269
- }
2270
- `,xa=u.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:o=0,max:r,min:a,name:c,onEnter:s,tooltipMessage:d,...p},g){const x=i<0?0:i,[f,h]=u.useState(Number(o).toFixed(x)),y=u.useCallback(j=>{const w=l.lodashExports.toNumber(j.target.value);j.target.value.endsWith(".")?h(j.target.value):w>=Number(a)&&w<=Number(r)&&(h(String(w)),n&&s(l.lodashExports.toNumber(w.toFixed(x)))),j.stopPropagation()},[n,x,r,a,s]),$=u.useCallback(j=>{j.currentTarget.contains(j.relatedTarget)||h(Number(o).toFixed(x)),j.stopPropagation()},[x,o]),m=u.useCallback(j=>{j.stopPropagation(),j.key==="Enter"&&!l.lodashExports.isEmpty(j.currentTarget.value)&&s(l.lodashExports.toNumber(j.currentTarget.value))},[s]);return t.jsx(ga,{onBlur:$,tabIndex:-1,children:t.jsx(J,{id:"numberInputTooltip",tip:d,children:t.jsx(ua,{...p,"aria-label":c,"aria-valuemax":Number(r),"aria-valuemin":Number(a),"aria-valuenow":Number(f),max:r,min:a,name:c,onChange:y,onKeyUp:m,ref:g,step:10**-x,type:"number",value:f})})})}),fa={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Ye=({icon:e,label:n,onClick:i,onlyLabel:o=!1,provider:r="GitLab"})=>{const a=l.Je();return t.jsxs(b,{alignItems:"center",bgColorHover:a.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:i,pb:.5,pl:.25,pr:.25,pt:.5,children:[o?!1:t.jsx(b,{height:"24px",width:"24px",children:e===void 0?t.jsx(ee,{alt:`${r} Logo`,height:"100%",publicId:fa[r],width:"100%"}):t.jsx(E,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx(b,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(I,{color:a.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:o?"break-spaces":"nowrap",wordWrap:"unset",children:n??r})})]})},ha=({align:e="end",buttonLabel:n="Add Credential",children:i,id:o,manualOption:r,providers:a})=>{const c=l.Je(),[s,d]=u.useState(!1),p=u.useRef(null);ne(p.current,()=>{d(!1)},!0);const g=u.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),x=u.useCallback(()=>{d(h=>!h)},[d]),f=u.useCallback(h=>y=>{var $;($=a[h])==null||$.onClick(y),d(!1)},[a]);return t.jsxs(b,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(P,{icon:"plus",onClick:x,variant:"primary",children:n}),t.jsxs(b,{alignItems:"center",bgColor:"#fff",border:`1px solid ${c.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:o,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:s?"visible":"hidden",zIndex:10,children:[Object.keys(a).map(h=>t.jsx(Ye,{onClick:f(h),provider:h},h)),r===void 0?void 0:t.jsx(Ye,{icon:"square-plus",label:r.label??"Add manually",onClick:g}),i]})]})},ya=l.st.div`
2271
- ${({theme:e})=>`
2272
- height: ${e.spacing[1]};
2273
- width: ${e.spacing[1]};
2274
- position: relative;
2275
- flex-shrink: 0;
2276
-
2277
- & .ellipse-1,
2278
- & .ellipse-2,
2279
- & .icon {
2280
- top: 50%;
2281
- left: 50%;
2282
- transform: translate(-50%, -50%);
2283
- position: absolute;
2284
- }
2285
-
2286
- & .ellipse-1 {
2287
- color: ${e.palette.warning[200]};
2288
- position: absolute;
2289
- }
2290
-
2291
- & .ellipse-2 {
2292
- transform: scale(0.75) translate(-67%, -66%);
2293
- color: ${e.palette.warning[400]};
2294
- }
2295
-
2296
- & .icon {
2297
- color: ${e.palette.warning[600]};
2298
- font-size: ${e.spacing[.5]};
2299
- }
2300
- `}
2301
- `,mn=({margin:e,onClick:n,text:i})=>{const o=l.Je(),r=t.jsxs(ya,{children:[t.jsx(E,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(E,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(E,{icon:"crown",iconClass:"icon",iconSize:"xs"})]});return i!==void 0?t.jsx(b,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:t.jsxs(b,{alignItems:"center",bgColor:o.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[r,t.jsx(I,{color:o.palette.warning[500],display:"inline",ml:.25,size:"xs",children:i})]})}):t.jsx(b,{display:"inline-block",mr:e,onClick:n,children:r})},ba=({score:e})=>{const n=l.Je(),i=e<=33?"priority-bars-low":"priority-bars-medium",o=e>66||e===0?"priority-bars-high":i;return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(E,{icon:o,iconClass:e<=66?"fa-kit-duotone":"",iconColor:e>0?n.palette.primary[500]:n.palette.gray[200],iconSize:"xs",iconType:"fa-kit",secondaryColor:n.palette.gray[200]}),t.jsx(I,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:$a}=Y(e=>({compliance:`
2302
- display: inline-flex;
2303
-
2304
- &.horizontal {
2305
- height: ${e.spacing[.75]};
2306
- }
2307
- &.vertical {
2308
- width: ${e.spacing[.75]};
2309
- }
2310
- `,default:`
2311
- display: inline-flex;
2312
-
2313
- &.horizontal {
2314
- height: ${e.spacing[.5]};
2315
- }
2316
- &.vertical {
2317
- width: ${e.spacing[.5]};
2318
- }
2319
- .progress-bar {
2320
- background-color: ${e.palette.primary[500]};
2321
- }
2322
- `,progressIndicator:`
2323
- display: flex;
2324
-
2325
- &.horizontal {
2326
- height: ${e.spacing[.125]};
2327
- }
2328
- &.vertical {
2329
- width: ${e.spacing[.125]};
2330
- }
2331
- .progress-bar {
2332
- background-color: ${e.palette.primary[500]};
2333
- }
2334
- `,progressIndicatorError:`
2335
- display: flex;
2336
-
2337
- &.horizontal {
2338
- height: ${e.spacing[.125]};
2339
- }
2340
- &.vertical {
2341
- width: ${e.spacing[.125]};
2342
- }
2343
- .progress-bar {
2344
- background-color: ${e.palette.error[200]};
2345
- }
2346
- `,small:`
2347
- color: ${e.palette.primary[500]};
2348
- display: inline-flex;
2349
-
2350
- &.horizontal {
2351
- height: ${e.spacing[.25]};
2352
- }
2353
- &.vertical {
2354
- width: ${e.spacing[.25]};
2355
- }
2356
- .progress-bar {
2357
- background-color: ${e.palette.primary[500]};
2358
- }
2359
- `})),ma=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],wa=l.st.div`
2360
- ${({theme:e,$minWidth:n,$orientation:i,$rounded:o,$variant:r})=>`
2361
- background-color: ${e.palette.gray[100]};
2362
- border-radius: ${o?"100px":"unset"};
2363
- ${i==="horizontal"?"min-width":"min-height"}: ${n}px;
2364
- ${i==="horizontal"?"":"height: 100%;"}
2365
-
2366
- ${$a(e,r)}
2367
-
2368
- `}
2369
- `,ja=l.st.div`
2370
- ${({theme:e,$percentage:n,$rounded:i,$variant:o})=>`
2371
- display: inline-flex;
2372
- width: ${n}%;
2373
- max-width: 100%;
2374
- min-width: 0%;
2375
- height: 100%;
2376
- border-radius: ${i?"100px":"unset"};
2377
- border-end-end-radius: ${i&&n<100?"0":"inherit"};
2378
- border-start-end-radius: ${i&&n<100?"0":"inherit"};
2379
- background-color: ${o==="compliance"?ma(e,n):"inherit"};
2380
- `}
2381
- `,wn=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:o=!1,orientation:r="horizontal",rounded:a=!0,variant:c="default"})=>{const s=o&&i==="left",d=o?t.jsx(b,{alignItems:"center",display:"flex",justify:s?"flex-end":"flex-start",width:"40px",children:t.jsx(I,{ml:.5,mr:s?.5:0,size:"sm",children:`${n}%`})}):null,p=t.jsx(wa,{$minWidth:e,$orientation:r,$rounded:a,$variant:c,className:r,children:t.jsx(ja,{$percentage:n,$rounded:a,$variant:c,className:"progress-bar"})});return t.jsxs(b,{alignItems:"center",display:"inline-flex",flexDirection:s?"row-reverse":"row",height:r==="horizontal"?"auto":"100%",maxWidth:s?`${e+43}px`:void 0,minWidth:s?`${e+43}px`:void 0,textAlign:"end",children:[p,d]})},jn=({onClick:e})=>t.jsx("svg",{className:"in-progress-icon",fill:"none",height:"13",onClick:e,viewBox:"0 0 12 13",width:"12",xmlns:"http://www.w3.org/2000/svg",children:t.jsxs("g",{id:"Group 8",children:[t.jsx("path",{d:"M9.40199 3.00342L9.95715 2.34182C9.42087 1.88791 8.80949 1.53109 8.15051 1.28741L7.8552 2.09852C8.41952 2.30786 8.94298 2.61408 9.40199 3.00342Z",fill:"#1D2939"}),t.jsx("path",{d:"M11.1498 6.08815L11.9998 5.90982C11.8803 5.21957 11.6409 4.55558 11.2923 3.94793L10.5444 4.36018C10.8429 4.89758 11.0476 5.48194 11.1498 6.08815Z",fill:"#1D2939"}),t.jsx("path",{d:"M7.8552 11.8057L8.15051 12.6168C8.80949 12.3731 9.42087 12.0163 9.95715 11.5624L9.40199 10.9008C8.94298 11.2901 8.41952 11.5963 7.8552 11.8057Z",fill:"#1D2939"}),t.jsx("path",{d:"M10.5444 9.54409L11.2923 9.97608C11.6411 9.36144 11.8805 8.69095 12 7.99444L11.1498 7.84459C11.0476 8.44177 10.8427 9.01676 10.5444 9.54409Z",fill:"#1D2939"}),t.jsx("path",{d:"M6.04789 13V0.904236C4.44389 0.904236 2.90559 1.54142 1.77139 2.67562C0.637187 3.80982 0 5.34813 0 6.95213C0 8.55613 0.637187 10.0944 1.77139 11.2286C2.90559 12.3628 4.44389 13 6.04789 13Z",fill:"#1D2939"})]})}),vn=(e,n)=>{switch(e){case"completed":return n.palette.success[500];case"disabled":return n.palette.gray[300];case"error":return n.palette.error[500];case"in progress":return n.palette.gray[800];case"not completed":default:return n.palette.gray[800]}},va=l.st(E)`
2382
- box-sizing: border-box;
2383
-
2384
- border-right: ${({theme:e,$variant:n})=>n==="in progress"?`1px dashed ${vn("in progress",e)}`:"unset"};
2385
- border-radius: 50%;
2386
- `,ka=l.st.div`
2387
- ${({$minWidth:e,$orientation:n})=>`
2388
- display: flex;
2389
- flex-direction: ${n==="horizontal"?"row":"column"};
2390
-
2391
- @media (width <= ${e}) {
2392
- display: flex;
2393
- flex-flow: row wrap;
2394
- }
2395
- `}
2396
- `,Ca=150,Sa=({label:e,minWidth:n=Ca,state:i="not completed",stepNumber:o=1,title:r,onClick:a,orientation:c="horizontal"})=>{const s=l.Je(),d={completed:"circle-check",disabled:"circle-dashed",error:"circle-exclamation","in progress":"circle-half","not completed":"circle-dashed"},p=i==="disabled";return t.jsxs(b,{display:"inline-flex",flexDirection:c==="horizontal"?"column":"row",minWidth:`${n}px`,children:[t.jsx(wn,{minWidth:n,orientation:c,percentage:p||i==="not completed"?0:100,rounded:!1,variant:i==="error"?"progressIndicatorError":"progressIndicator"}),t.jsxs(b,{display:"flex",gap:.5,px:.5,py:.5,width:"100%",children:[i==="in progress"?t.jsx(jn,{onClick:a}):t.jsx(va,{$variant:i,clickable:!p,disabled:p,icon:d[i],iconColor:vn(i,s),iconSize:"xs",iconType:"fa-light",onClick:p?void 0:a}),t.jsxs(b,{children:[t.jsx(I,{color:s.palette.gray[p?300:800],fontWeight:"bold",size:"sm",children:`${o}.${r}`}),e===void 0?null:t.jsx(I,{color:s.palette.gray[p?300:600],size:"xs",children:e})]})]})]})},za=150,Ia=({children:e,orientation:n="horizontal",minWidth:i=za})=>{const o=u.Children.toArray(e),r=u.useMemo(()=>u.Children.count(e),[e]),a=u.useMemo(()=>r*i,[r,i]);return t.jsx(ka,{$minWidth:`${a}px`,$orientation:n,children:o.map(c=>u.cloneElement(c,{minWidth:i,orientation:n}))})},kn=({description:e="",highlightDescription:n="",mobile:i})=>{const o=l.Je(),r=i?"md":"lg",a=typeof n=="string",c=a?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(I,{display:"inline",lineSpacing:1.5,size:r,textAlign:i?"start":"center",children:a?t.jsxs(u.Fragment,{children:[t.jsx(ue,{color:o.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:n}),e]}):e.split(c).map((s,d)=>n.includes(s)?t.jsx(ue,{color:o.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:s},`${d+1}-bold`):s)}):t.jsx(I,{lineSpacing:1.5,size:r,textAlign:i?"start":"center",children:e})},Ta=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:o,confirmButton:r,container:a,description:c,highlightDescription:s="",image:d,maxWidth:p,mobile:g=!1,title:x,titleColor:f})=>{const h=l.Je(),{alt:y,src:$,width:m="77px",height:j="77px"}=d,w=u.useCallback(()=>{n==null||n.onClick()},[n]),v=u.useCallback(()=>{r==null||r.onClick()},[r]),k=t.jsx(K,{color:f,fontWeight:"bold",lineSpacing:g?1.5:2.5,mb:g?1.5:0,size:g?"sm":"lg",textAlign:g?"start":"center",children:x}),C=t.jsx(ee,{alt:y,height:j,publicId:$,width:m}),R=t.jsx(b,{alignItems:"center","aria-label":x,"aria-modal":"true",bgColor:i?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:e?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:t.jsxs(b,{bgColor:h.palette.white,border:`1px solid ${h.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:p,position:"relative",px:g?1.5:2.5,py:g?1.5:2.5,shadow:"lg",width:g?"335px":"100%",zIndex:11,children:[t.jsxs(b,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[g?k:void 0,g?t.jsx(b,{alignItems:"center",height:j,justify:"center",mr:0,children:t.jsx(b,{bgColor:h.palette.gray[100],left:"0",position:"absolute",textAlign:"center",width:"100%",children:C})}):C,t.jsxs(b,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[g?void 0:k,t.jsx(kn,{description:c,highlightDescription:s,mobile:g})]})]}),o&&t.jsx(b,{mb:1,scroll:"y",children:t.jsx(b,{height:"100%",children:o})}),t.jsxs(b,{alignItems:"flex-start",display:"flex",gap:1,justify:g?"start":"center",children:[l.lodashExports.isObject(r)?t.jsx(P,{onClick:v,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,l.lodashExports.isObject(n)?t.jsx(P,{onClick:w,variant:(n==null?void 0:n.variant)??"tertiary",children:n==null?void 0:n.text},n==null?void 0:n.key):void 0]})]})});return e?se.createPortal(R,a??document.body):R},Ea=l.st.div.attrs({className:"comp-scroll-up"})`
2397
- position: fixed;
2398
- bottom: ${({bottom:e})=>e??"unset"};
2399
- right: ${({right:e})=>e??"unset"};
2400
- z-index: ${({zIndex:e})=>e??"unset"};
2401
- left: ${({left:e})=>e??"unset"};
2402
- `,Ra=({scrollerId:e="dashboard",left:n,visibleAt:i=500,bottom:o,right:r,zIndex:a=100})=>{const[c,s]=u.useState(!1),[d,p]=u.useState(null),g=l.Je();u.useEffect(()=>{p(document.getElementById(e)),d==null||d.addEventListener("scroll",()=>{s(d.scrollTop>i)})},[d,e,i]);const x=u.useCallback(()=>{d==null||d.scrollTo({behavior:"smooth",top:0})},[d]);return c?t.jsx(Ea,{bottom:o,left:n,right:r,zIndex:a,children:t.jsx(M,{borderRadius:"50%",height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:x,style:{backgroundColor:g.palette.black,borderRadius:"50%",color:g.palette.white},width:"40px"})}):null},Da={critical:{bgColor:D.palette.primary[700],colorL:D.palette.gray[800],colorR:D.palette.white},disable:{bgColor:D.palette.gray[200],colorL:D.palette.gray[400],colorR:D.palette.gray[400]},high:{bgColor:D.palette.error[500],colorL:D.palette.gray[800],colorR:D.palette.white},low:{bgColor:D.palette.warning[200],colorL:D.palette.gray[800],colorR:D.palette.gray[800]},medium:{bgColor:D.palette.warning[500],colorL:D.palette.gray[800],colorR:D.palette.gray[800]}},Na=({textL:e,textR:n,variant:i})=>{const o=l.Je(),{bgColor:r,colorL:a,colorR:c}=Da[i];return t.jsxs(b,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(b,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${r}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(I,{color:a,size:"xs",children:e})}):void 0,t.jsx(b,{alignItems:"center",bgColor:r,border:`1px solid ${r}`,borderRadius:e?"0px 4px 4px 0px":"4px",display:"flex",padding:e?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:t.jsx(I,{color:c,size:"xs",children:n})})]})},Fa=(e,n)=>{const i={critical:D.palette.primary[700],high:D.palette.error[500],low:D.palette.warning[200],medium:D.palette.warning[500],none:D.palette.gray[200]},o={disabled:D.palette.gray[400],enabled:D.palette.gray[800]},r={critical:D.palette.white,high:D.palette.white,low:D.palette.gray[800],medium:D.palette.gray[800],none:D.palette.gray[400]};return{iconColor:n<1?i.none:i[e],iconText:l.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?r.none:r[e],textColor:n<1?o.disabled:o.enabled}},ge=({variant:e,value:n})=>{const{iconColor:i,iconText:o,iconTextColor:r,textColor:a}=Fa(e,n),c=l.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(J,{id:c,place:"top",tip:c,children:t.jsx(b,{alignItems:"center",bgColor:i,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(I,{color:r,size:"sm",textAlign:"center",children:o})})}),t.jsx(I,{color:a,size:"sm",children:n})]})},La=({critical:e,high:n,medium:i,low:o})=>t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(ge,{value:e,variant:"critical"}),t.jsx(ge,{value:n,variant:"high"}),t.jsx(ge,{value:i,variant:"medium"}),t.jsx(ge,{value:o,variant:"low"})]}),Aa=l.st.div`
2403
- ${({theme:e})=>`
2404
- border-radius: ${e.spacing[.25]};
2405
- cursor: pointer;
2406
- display: flex;
2407
- gap: ${e.spacing[.5]};
2408
- justify-content: end;
2409
- position: relative;
2410
- z-index: 20;
2411
-
2412
- &:hover {
2413
- background-color: ${e.palette.gray[100]};
2414
- }
2415
-
2416
- &:hover > div {
2417
- display: block;
2418
- }
2419
- `}
2420
- `,Pa=({visibleElement:e,hiddenElement:n})=>t.jsxs(Aa,{children:[e,t.jsx(b,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),Cn=({customBadge:e=void 0,description:n,icon:i,onClick:o,requiresUpgrade:r=!1,title:a})=>{const c=l.Je();return t.jsxs(b,{bgColor:c.palette.white,bgColorHover:c.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:o,px:1.25,py:1,width:"100%",children:[t.jsx(b,{alignItems:"center",bgColor:c.palette.gray[300],borderRadius:c.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(E,{icon:i,iconColor:c.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),t.jsxs(b,{children:[t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(I,{color:c.palette.gray[800],size:"sm",children:a}),r?t.jsx(mn,{text:"Upgrade"}):void 0,e]}),t.jsx(I,{color:c.palette.gray[400],size:"xs",children:n})]})]})},Ma=l.st(l.m.div)`
2421
- ${({theme:e})=>`
2422
- background-color: ${e.palette.white};
2423
- box-shadow: ${e.shadows.lg};
2424
- max-width: 350px;
2425
- min-width: 350px;
2426
- height: 100%;
2427
- position: absolute;
2428
- right: 0;
2429
- top: 0;
2430
- overflow: hidden auto;
2431
- scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
2432
- scroll-padding: ${e.spacing[.5]};
2433
- scrollbar-width: thin;
2434
- z-index: 99999;
2435
-
2436
- > div {
2437
- border: 1px solid ${e.palette.gray[100]};
2438
- width: auto;
2439
- min-height: 100vh;
2440
- height: auto;
2441
- }
2442
- `}
2443
- `,Oa=({children:e,closeIconId:n="close-menu",isOpen:i,items:o,onClose:r,primaryButtonText:a,primaryOnClick:c,secondaryButtonText:s,secondaryOnClick:d,title:p})=>{const g=l.Je(),x=u.useRef(null),f=u.useCallback(h=>()=>{h(),r()},[r]);return u.useEffect(()=>{const h=["mousedown","touchstart"],y=$=>{var k;const m=$.target,j=document.getElementById("helpBtn"),w=document.getElementById("filter-btn"),v=(m===j||((j==null?void 0:j.contains(m))??!1)||m===w||(w==null?void 0:w.contains(m)))??!1;i&&!v&&!(((k=x.current)==null?void 0:k.contains(m))??!1)&&r()};return h.forEach($=>{document.addEventListener($,y,{passive:!0})}),()=>{h.forEach($=>{document.removeEventListener($,y)})}},[i,r]),t.jsx(l.LazyMotion,{features:l.domAnimation,children:t.jsx(Ma,{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(b,{height:"100%",position:"relative",children:[t.jsxs(b,{alignItems:"center",bgColor:g.palette.white,borderBottom:"1px solid",borderColor:g.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[t.jsx(I,{color:g.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),t.jsx(M,{icon:"close",iconColor:g.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:r,px:.25,py:.25,variant:"ghost"})]}),t.jsxs(b,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs(b,{py:1.25,children:[(o??[]).map(({customBadge:h,description:y,icon:$,onClick:m,requiresUpgrade:j,title:w})=>t.jsx(Cn,{customBadge:h,description:y,icon:$,onClick:f(m),requiresUpgrade:j,title:w},w)),e&&t.jsx(b,{px:1.25,children:e})]}),a===void 0?void 0:t.jsxs(b,{alignItems:"center",bgColor:g.palette.white,borderColor:g.palette.gray[200],borderTop:"1px solid",bottom:"0",display:"flex",gap:1.25,justify:"end",padding:[1.25,1.25,1.25,1.25],position:"sticky",width:"100%",zIndex:40,children:[s===void 0?void 0:t.jsx(P,{color:`${g.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:s}),t.jsx(P,{onClick:c,type:"submit",children:a})]})]})]})})})},Wa=(e,n)=>n>=50?`
2444
- ${e.palette.gray[200]} 50%,
2445
- ${e.palette.primary[500]} 50.05%,
2446
- ${e.palette.primary[500]} ${n}%,
2447
- ${e.palette.gray[200]} ${n}%
2448
- `:`
2449
- ${e.palette.gray[200]} ${n}%,
2450
- ${e.palette.primary[500]} ${n}%,
2451
- ${e.palette.primary[500]} 50%,
2452
- ${e.palette.gray[200]} 50.05%,
2453
- ${e.palette.gray[200]} 100%
2454
- `,Ha=l.st.div`
2455
- ${({theme:e,$min:n,$value:i})=>`
2456
- align-items: center;
2457
- align-self: stretch;
2458
- display: flex;
2459
- flex-direction: column;
2460
- justify-content: end;
2461
- gap: ${e.spacing[.75]};
2462
- width: 100%;
2463
-
2464
- .track {
2465
- background: linear-gradient(
2466
- to right,
2467
- ${n>=0?`
2468
- ${e.palette.primary[500]} ${i}%,
2469
- ${e.palette.gray[200]} ${i}%
2470
- `:Wa(e,i)}
2471
- );
2472
- border-radius: ${e.spacing[.125]};
2473
- height: ${e.spacing[.25]};
2474
- width: 100%;
2475
- }
2476
-
2477
- .track.disabled {
2478
- opacity: 0.4;
2479
- }
2480
-
2481
- .thumb {
2482
- background: ${e.palette.white};
2483
- border-radius: ${e.spacing[1.25]};
2484
- box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.30);
2485
- top: 50%;
2486
- height: 20px;
2487
- width: 20px;
2488
- }
2489
-
2490
- .thumb.dragging {
2491
- border: 1px solid ${e.palette.primary[500]};
2492
- }
2493
- `}
2494
- `,Ba=l.st.div`
2495
- ${({theme:e})=>`
2496
- align-items: center;
2497
- display: flex;
2498
- justify-content: space-between;
2499
- height: ${e.spacing[.625]};
2500
- width: 100%;
2501
-
2502
- p {
2503
- color: ${e.palette.gray[400]};
2504
- font-family: ${e.typography.type.primary};
2505
- font-size: ${e.spacing[.5]};
2506
- }
2507
- `}
2508
- `,_a=l.st.output`
2509
- ${({theme:e})=>`
2510
- align-items: flex-end;
2511
- border-radius: ${e.spacing[.5]};
2512
- border: 1px solid ${e.palette.gray[300]};
2513
- background: ${e.palette.white};
2514
- display: flex;
2515
- gap: ${e.spacing[.625]};
2516
- padding: ${e.spacing[.625]} ${e.spacing[.75]};
2517
- width: 59px;
2518
- `}
2519
- `,Sn=({state:e,trackRef:n,index:i,name:o})=>{const r=u.useRef(null),{thumbProps:a,inputProps:c,isDragging:s}=l.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:r},e);return t.jsx("div",{...a,className:`thumb ${s?"dragging":""}`,children:t.jsx(l.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...c,"aria-label":o,ref:r})})})},Va=(e,n,i)=>Math.round((i-e)/(n-e)*100),Ja=e=>{const n=l.Je(),i=u.useRef(null),{label:o,minValue:r=0,maxValue:a=100,name:c,setValue:s,watch:d}=e,p=l.$a916eb452884faea$export$b7a616150fdb9f44(),g=l.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:p,onChange(y){s==null||s(c,y)},value:d==null?void 0:d(c)}),x=Va(r,a,g.getThumbValue(0)),{groupProps:f,trackProps:h}=l.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":c,id:c},g,i);return t.jsx(V,{htmlFor:c,label:o,children:t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(Ha,{...f,$min:r??0,$value:x,className:"slider",children:[t.jsx("div",{...h,className:`track ${g.isDisabled?"disabled":""}`,ref:i,children:t.jsx(Sn,{index:0,name:c,state:g,trackRef:i})}),t.jsxs(Ba,{children:[t.jsx("p",{children:`${p.format(r)} (Low)`}),r<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${p.format(a)} (High)`})]})]}),t.jsx(_a,{children:t.jsx(I,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:g.getThumbValueLabel(0)})})]})})},{getVariant:Ua}=Y(e=>({completed:`
2520
- background-color: ${e.palette.primary[500]};
2521
- color: ${e.palette.white};
2522
-
2523
- &::after {
2524
- background-color: ${e.palette.primary[500]};
2525
- }
2526
- `,current:`
2527
- background-color: ${e.palette.primary[500]};
2528
- color: ${e.palette.white};
2529
-
2530
- &::after {
2531
- background-color: ${e.palette.gray[200]};
2532
- }
2533
- `,disabled:`
2534
- background-color: ${e.palette.gray[200]};
2535
- outline: 1px solid ${e.palette.gray[400]};
2536
- outline-offset: -1px;
2537
- color: ${e.palette.gray[400]};
2538
-
2539
- &::after {
2540
- background-color: ${e.palette.gray[200]};
2541
- }
2542
- `})),Ga=l.st.div`
2543
- ${({theme:e})=>`
2544
- align-items: stretch;
2545
- background-color: ${e.palette.white};
2546
- display: flex;
2547
- flex-direction: column;
2548
- height: 100%;
2549
- padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
2550
- scroll-behavior: unset;
2551
- `}
2552
- `,Ya=l.st.div`
2553
- display: flex;
2554
- flex-direction: row;
2555
- margin-bottom: ${({theme:e})=>e.spacing[2]};
2556
-
2557
- &:last-child > div:first-child > span::after {
2558
- display: none;
2559
- }
2560
- `,Ka=l.st.div`
2561
- ${({theme:e})=>`
2562
- display: inline-flex;
2563
- font-family: ${e.typography.type.primary};
2564
- font-size: ${e.typography.text.sm};
2565
- line-height: ${e.spacing[1.25]};
2566
- margin-top: ${e.spacing[1]};
2567
-
2568
- & > button:first-child {
2569
- margin-right: ${e.spacing[.5]};
2570
- }
2571
- `}
2572
- `,Za=l.st.span`
2573
- ${({theme:e,$variant:n})=>`
2574
- border-radius: 6px;
2575
- display: inline-block;
2576
- text-align: center;
2577
- font-size: ${e.typography.text.sm};
2578
- font-weight: ${e.typography.weight.bold};
2579
- font-family: ${e.typography.type.primary};
2580
- line-height: ${e.spacing[1]};
2581
- padding: ${`${e.spacing[.5]} ${e.spacing[.5]}`};
2582
- height: ${e.spacing[2]};
2583
- width: ${e.spacing[2]};
2584
-
2585
- &::after {
2586
- content: "";
2587
- position: absolute;
2588
- top: calc(32px + ${e.spacing[.5]});
2589
- left: 50%;
2590
- bottom: 0;
2591
- width: 2px;
2592
- height: calc(100% - ${e.spacing[1]});
2593
- }
2594
-
2595
- ${Ua(e,n)}
2596
- `}
2597
- `,qa=({button:{disabled:e=!1,text:n,type:i="button",onClick:o},steps:r})=>{const[a,c]=u.useState(1),s=u.useCallback((d,p)=>()=>{c(g=>g+d),p==null||p()},[]);return t.jsx(Ga,{children:r.map((d,p)=>{const{content:g,title:x,nextAction:f,previousAction:h}=d,y=p+1,$=y===a?"current":"disabled",m=y<a?"completed":$;return t.jsxs(Ya,{children:[t.jsx(b,{maxWidth:"40px",position:"relative",children:t.jsx(Za,{$variant:m,children:m==="completed"?t.jsx(E,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):y})}),t.jsxs(b,{ml:1.5,width:"100%",children:[t.jsx(K,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:x}),m==="current"&&t.jsxs(b,{children:[g,t.jsxs(Ka,{children:[a>1&&t.jsx(P,{disabled:d.isDisabledPrevious??!1,onClick:s(-1,h),variant:"tertiary",children:"Previous"}),a<r.length?t.jsx(P,{disabled:d.isDisabledNext??!1,onClick:s(1,f),variant:"primary",children:"Next step"}):t.jsx(P,{disabled:e,onClick:o,type:i,variant:"primary",children:n})]})]})]})]},d.title)})})},Xa=e=>{const n=(r,a)=>a.reduce((s,[d,p])=>{if(u.isValidElement(p)||d==="__typename")return s.concat([["",""]]);if(typeof p=="object"&&p){const x=Object.entries(p);return s.concat(n(d,x))}const g=r===""?"":`${r}.`;return s.concat([[g+d,p]])},[]),i=Object.entries(e),o=n("",i).filter(([r])=>r!=="");return Object.fromEntries(o)},vt=e=>e.map(Xa),zn=({csvConfig:e={},data:n,children:i})=>{const{columns:o=void 0,export:r=!1,headers:a={},name:c="Report"}=e,s=u.useMemo(()=>l._.isUndefined(o)?vt(n):vt(n).map(g=>l._.pick(g,o)),[n,o]),d=u.useMemo(()=>s.length>0&&!l._.isEmpty(a),[s.length,a]),p=u.useMemo(()=>(d?Object.keys(s[0]):[]).map(g=>l._.includes(Object.keys(a),g)?{key:g,label:a[g]}:{key:g,label:g}),[d,s,a]);return r?t.jsx(l.CSVLink,{data:s,filename:c,headers:d?p:void 0,children:i}):t.jsx(u.Fragment,{children:i})},In=e=>{const{table:n}=e,{meta:i}=n.options,[o,r]=u.useState(0),[,a]=n.getHeaderGroups(),c=n.getState(),s=u.useMemo(()=>n.getAllLeafColumns().filter(x=>x.id!=="selection"),[n]),d=u.useMemo(()=>s.map(x=>{var f;return{group:(f=x.parent)==null?void 0:f.id,id:x.id,locked:x.getIsPinned()==="left",name:x.columnDef.header,toggleVisibility:x.toggleVisibility,visible:x.getIsVisible()}}),[s]),p=Kt({columnOrder:(i==null?void 0:i.defaultColumnOrder)??[],items:d,name:"table-column-management",setColumnOrder:n.setColumnOrder}),g=u.useCallback(()=>{p.toggle()},[p]);return u.useEffect(()=>{r(n.getVisibleLeafColumns().filter(x=>x.id!=="selection").length)},[n,c]),t.jsxs("div",{id:"columns-filter",children:[t.jsx(P,{icon:"columns",id:"columns-toggle-btn",onClick:g,variant:"ghost",children:t.jsx("p",{children:o})}),t.jsx(pn,{modalRef:p,title:"Manage columns",variant:l.isNil(a)?"ungrouped":"grouped"})]})},q=u.createContext({containerRef:void 0,elementName:"",handleUnselectAll:void 0,hidden:!1,onKeyDown:void 0,selected:0,tableSize:0,tableRef:void 0,table:void 0}),Qa=l.st.span`
2598
- transition: all 150ms;
2599
- width: 5px;
2600
- height: 10px;
2601
- padding: ${({theme:e})=>e.spacing[.625]};
2602
- display: flex;
2603
- flex-direction: column;
2604
- justify-content: center;
2605
- gap: 0.125rem;
2606
- align-items: center;
2607
-
2608
- svg {
2609
- margin-top: -4px;
2610
- margin-bottom: -2px;
2611
- }
2612
-
2613
- span:first-child {
2614
- transition: opacity 150ms;
2615
- opacity: ${({$variant:e})=>e==="desc"?0:1};
2616
- }
2617
-
2618
- span:last-child {
2619
- transition: opacity 150ms;
2620
- opacity: ${({$variant:e})=>e==="asc"?0:1};
2621
- }
2622
- `,Ke=e=>{const n=l.Je(),{variant:i}=e;return t.jsxs(Qa,{$variant:i,children:[t.jsx(E,{icon:"caret-up",iconColor:n.palette.gray[700],iconSize:"xxss",iconType:"fa-solid"}),t.jsx(E,{icon:"caret-down",iconColor:n.palette.gray[700],iconSize:"xxss",iconType:"fa-solid"})]})},es=l.st.div`
2623
- position: relative;
2624
-
2625
- div:has(table) {
2626
- scrollbar-color: ${({theme:e})=>e.palette.gray[600]}
2627
- transparent;
2628
- scrollbar-width: thin;
2629
- overflow-x: auto;
2630
- margin-left: -3px;
2631
- padding-left: 3px;
2632
- padding-bottom: 5px;
2633
- }
2634
-
2635
- table {
2636
- overflow-x: hidden;
2637
- white-space: nowrap;
2638
- margin: 0;
2639
- border-collapse: collapse;
2640
- width: 100%;
2641
- }
2642
-
2643
- table thead {
2644
- background-color: ${({theme:e})=>e.palette.gray[50]};
2645
- position: sticky;
2646
- z-index: 1;
2647
- top: 0;
2648
- }
2649
-
2650
- table tbody {
2651
- background-color: ${({theme:e})=>e.palette.white};
2652
- }
2653
-
2654
- table tr {
2655
- height: ${({theme:e})=>e.spacing[2.5]};
2656
- border: 1px solid ${({theme:e})=>e.palette.gray[200]};
2657
- }
2658
-
2659
- table thead tr {
2660
- background-color: transparent;
2661
- border-bottom: none;
2662
- }
2663
-
2664
- table thead tr:hover {
2665
- background-color: transparent;
2666
- }
2667
-
2668
- table thead tr:first-child {
2669
- height: ${({theme:e})=>e.spacing[2.5]};
2670
- border: none;
2671
- }
2672
-
2673
- table tbody tr {
2674
- &:has(input[disabled]) {
2675
- background-color: ${({theme:e})=>e.palette.gray[100]};
2676
- }
2677
-
2678
- &:has(input[disabled]):hover {
2679
- background-color: ${({theme:e})=>e.palette.gray[100]};
2680
- }
2681
- }
2682
-
2683
- table tr:hover:not([aria-expanded="true"], #description) {
2684
- background-color: ${({theme:e})=>e.palette.gray[50]};
2685
- }
2686
-
2687
- table tr#description {
2688
- align-items: center;
2689
- background-color: ${({theme:e})=>e.palette.gray[50]};
2690
- }
2691
-
2692
- table tbody tr.row-no-data {
2693
- &:hover {
2694
- background-color: ${({theme:e})=>e.palette.white};
2695
- }
2696
- }
2697
-
2698
- tr {
2699
- &:first-child th:first-child > div {
2700
- border-top-left-radius: 8px;
2701
- }
2702
-
2703
- &:first-child th:last-child > div {
2704
- border-top-right-radius: 8px;
2705
- }
2706
-
2707
- th {
2708
- position: relative;
2709
- font-size: ${({theme:e})=>e.typography.text.sm};
2710
- font-weight: ${({theme:e})=>e.typography.weight.bold};
2711
- color: ${({theme:e})=>e.palette.gray[800]};
2712
- padding: unset;
2713
- height: ${({theme:e})=>e.spacing[3]};
2714
- white-space: pre-line;
2715
-
2716
- &:hover div:first-child {
2717
- background-color: ${({theme:e})=>e.palette.gray[300]};
2718
- }
2719
-
2720
- &:first-child {
2721
- border-right: 1px solid ${({theme:e})=>e.palette.gray[25]};
2722
-
2723
- svg {
2724
- margin-right: unset;
2725
- }
2726
-
2727
- &:has(input) {
2728
- padding: unset;
2729
- }
2730
-
2731
- &:has(input) + th:nth-child(2) {
2732
- border-right: 1px solid
2733
- ${({theme:e})=>e.palette.gray[25]};
2734
- }
2735
-
2736
- &:hover div:first-child {
2737
- background-color: ${({theme:e})=>e.palette.gray[200]};
2738
- }
2739
- }
2740
- }
2741
- }
2742
-
2743
- tbody tr:not(.row-no-data) td {
2744
- font-size: ${({theme:e})=>e.typography.text.sm};
2745
- white-space: pre-line;
2746
- padding-left: 8px;
2747
- padding-right: 8px;
2748
-
2749
- &.clickable {
2750
- cursor: pointer;
2751
-
2752
- &:hover p {
2753
- text-decoration: underline;
2754
- color: ${({theme:e})=>e.palette.gray[400]};
2755
- }
2756
-
2757
- &:has(input) {
2758
- padding: ${({theme:e})=>e.spacing[.5]};
2759
-
2760
- & + td:hover p {
2761
- text-decoration: underline;
2762
- color: ${({theme:e})=>e.palette.gray[400]};
2763
- }
2764
- }
2765
- }
2766
-
2767
- &:first-child {
2768
- border-right: 1px solid ${({theme:e})=>e.palette.gray[200]};
2769
-
2770
- svg {
2771
- margin-right: unset;
2772
- }
2773
-
2774
- &:has(input) {
2775
- padding: ${({theme:e})=>e.spacing[.5]};
2776
-
2777
- & + td {
2778
- cursor: pointer;
2779
- border-right: 1px solid
2780
- ${({theme:e})=>e.palette.gray[200]};
2781
- }
2782
- }
2783
- }
2784
- }
2785
- `,ts=l.st.div`
2786
- ${({$width:e,theme:n})=>`
2787
- display: flex;
2788
- flex-direction: column;
2789
- align-items: stretch;
2790
- flex: 1 0 auto;
2791
- padding-right: 5px;
2792
- width: ${e}px;
2793
-
2794
- div {
2795
- position: relative;
2796
- font-weight: 400;
2797
- font-size: ${n.typography.text.sm};
2798
- text-align: left;
2799
-
2800
- color: ${n.palette.gray[600]};
2801
- background-color: ${n.palette.gray[100]};
2802
- border-radius: ${n.spacing[.25]};
2803
- padding: ${n.spacing[.5]} ${n.spacing[.75]};
2804
- margin: ${n.spacing[.5]} 0;
2805
- height: ${n.spacing[2.25]};
2806
-
2807
- span {
2808
- text-decoration: underline;
2809
- cursor: pointer;
2810
- }
2811
- }
2812
- `}
2813
- `,ns=l.st.div`
2814
- align-items: center;
2815
- background-color: transparent;
2816
- display: flex;
2817
- gap: ${({theme:e})=>e.spacing[1]};
2818
- padding: ${({theme:e})=>`${e.spacing[.75]} ${e.spacing[1.25]}`};
2819
-
2820
- .pagination-container {
2821
- display: flex;
2822
- flex-direction: row;
2823
- align-items: center;
2824
- gap: ${({theme:e})=>e.spacing[1]};
2825
- }
2826
-
2827
- .footer-container {
2828
- display: flex;
2829
- align-items: center;
2830
- flex: 1 0 auto;
2831
- height: 100%;
2832
-
2833
- &::before {
2834
- display: block;
2835
- content: "";
2836
- height: ${({theme:e})=>e.typography.text.md};
2837
- border-left: 1px solid ${({theme:e})=>e.palette.gray[300]};
2838
- margin: 0;
2839
- margin-right: ${({theme:e})=>e.spacing[.5]};
2840
- }
2841
- }
2842
- `,kt=l.st.div`
2843
- transition: all 150ms;
2844
- content: "";
2845
- z-index: 2;
2846
- position: absolute;
2847
- bottom: 0;
2848
- right: -1px;
2849
- width: 30px;
2850
- height: 100%;
2851
- margin-right: 0;
2852
- cursor: col-resize;
2853
- user-select: none;
2854
- touch-action: none;
2855
- border-right: 1px solid transparent;
2856
-
2857
- &:hover {
2858
- transition: all 150ms;
2859
- border-right: 1px solid ${({theme:e})=>e.palette.black};
2860
- }
2861
- `,Tn=()=>{const e=l.Je(),{table:n}=u.useContext(q),{groupHeaders:i,tooltips:o}=(n==null?void 0:n.options.meta)??{},r=u.useCallback(p=>()=>{p.column.getCanSort()&&(n==null||n.setPageIndex(0),p.column.toggleSorting())},[n]),a=p=>g=>{p.getResizeHandler()(g)};if(i)return t.jsx("thead",{children:n==null?void 0:n.getHeaderGroups().map(p=>t.jsx("tr",{"data-testid":"row-headers",children:p.headers.map(g=>{var y;const{isPlaceholder:x}=g,f=x?g.subHeaders[0]:g;return l._.isUndefined(g.column.parent)&&g.depth>1?null:t.jsxs("th",{colSpan:f.colSpan,id:`header-${f.id}`,rowSpan:x?0:1,style:{borderRight:g.headerGroup.headers.indexOf(g)!==g.headerGroup.headers.length-1?"1px solid white":void 0,position:"relative",width:g.getSize()},children:[t.jsxs(b,{alignItems:"center",bgColor:e.palette.gray[200],borderBottom:x?void 0:`1px solid${e.palette.white}`,display:"flex",gap:.25,height:x?"6rem":"3rem",lineSpacing:0,onClick:r(f),pl:.5,pt:x?3:0,whiteSpace:"nowrap",width:"100%",children:[l.flexRender(f.column.columnDef.header,f.getContext()),f.column.getCanSort()?t.jsx(Ke,{variant:f.column.getIsSorted()}):void 0,(o==null?void 0:o.map($=>$.columnId).includes(f.id))??!1?t.jsx(J,{icon:"circle-info",id:f.id,place:"right",tip:((y=o==null?void 0:o.find($=>$.columnId===f.id))==null?void 0:y.tip)??""}):void 0]}),f.column.getCanResize()&&t.jsx(kt,{onMouseDown:a(g)})]},f.id)})},p.id))});const[c,s]=(n==null?void 0:n.getHeaderGroups())??[],d=l.lodashExports.isNil(s)?c:s;return t.jsx("thead",{children:t.jsx("tr",{"data-testid":"row-headers",children:d.headers.map(p=>{var g;return t.jsxs("th",{id:`header-${p.id}`,style:{position:"relative",width:p.getSize()},children:[t.jsxs(b,{alignItems:"center",bgColor:e.palette.gray[200],display:"flex",gap:.25,height:"3rem",lineSpacing:0,onClick:r(p),px:.5,whiteSpace:"nowrap",width:"100%",children:[l.flexRender(p.column.columnDef.header,p.getContext()),p.column.getCanSort()?t.jsx(Ke,{variant:p.column.getIsSorted()}):void 0,(o==null?void 0:o.map(x=>x.columnId).includes(p.id))??!1?t.jsx(J,{icon:"circle-info",id:p.id,place:"right",tip:((g=o==null?void 0:o.find(x=>x.columnId===p.id))==null?void 0:g.tip)??""}):void 0]}),p.column.getCanResize()&&t.jsx(kt,{onMouseDown:a(p)})]},p.id)})})})},is=l.st.div`
2862
- align-items: center;
2863
- display: flex;
2864
- width: 100%;
2865
- `,En=()=>{const e=l.Je(),{table:n}=u.useContext(q),{loading:i}=(n==null?void 0:n.options.meta)??{},o=u.useMemo(()=>{const{enableRowSelection:s,enableMultiRowSelection:d}=(n==null?void 0:n.options)??{};return s||d?1:0},[n==null?void 0:n.options]),r=u.useCallback((s,d)=>{if(d===o)return p=>{var g,x;p.stopPropagation(),(x=(g=n==null?void 0:n.options)==null?void 0:g.onRowClick)==null||x.call(g,s)}},[o,n]),a=u.useCallback(s=>d=>{d.stopPropagation(),s.toggleExpanded()},[]),c=u.useCallback(s=>{const{meta:d}=(n==null?void 0:n.options)??{},{onExpand:p=void 0}=d??{};return p?p(s):null},[n]);return i?t.jsx("tbody",{children:t.jsx("tr",{className:"row-loading","data-testid":"row-loading",children:t.jsx("td",{colSpan:(n==null?void 0:n.getVisibleLeafColumns().length)??0,children:t.jsx(b,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:t.jsx($n,{size:"md"})})})})}):(n==null?void 0:n.getRowModel().rows.length)===0?t.jsx("tbody",{children:t.jsx("tr",{className:"row-no-data","data-testid":"row-no-data",children:t.jsx("td",{colSpan:n.getVisibleLeafColumns().length+1,children:t.jsx(I,{color:e.palette.gray[800],size:"sm",textAlign:"center",children:"No data to display"})})})}):t.jsx("tbody",{children:n==null?void 0:n.getRowModel().rows.map(s=>t.jsxs(u.Fragment,{children:[t.jsx("tr",{"aria-expanded":s.getIsExpanded(),"data-testid":`row-${s.id}`,children:s.getVisibleCells().map((d,p)=>t.jsx("td",{className:p===o&&n.options.onRowClick?"clickable":"","data-testid":`cell-${d.id}`,onClick:r(s,p),children:t.jsxs(is,{children:[p===o&&s.getCanExpand()?t.jsx("button",{onClick:a(s),style:{cursor:"pointer",marginRight:"1rem"},children:t.jsx(E,{icon:s.getIsExpanded()?"angle-up":"angle-down",iconSize:"xs",iconType:"fa-light"})}):void 0,l.flexRender(d.column.columnDef.cell,d.getContext())]})},d.id))}),s.getIsExpanded()?t.jsx("tr",{"data-testid":`row-${s.id}-expand`,id:"description",children:t.jsx("td",{colSpan:100,children:c(s)})}):void 0]},s.id))})},Rn=()=>{const{containerRef:e,hidden:n,elementName:i,handleUnselectAll:o,onKeyDown:r,selected:a,tableSize:c,tableRef:s}=u.useContext(q);return t.jsxs("div",{ref:e,children:[n?void 0:t.jsx(ts,{$width:c,children:t.jsxs("div",{children:[t.jsx("b",{children:`${a} ${i} `}),`${a===1?"has":"have"} been selected. `,t.jsx("span",{onClick:o,onKeyDown:r,role:"link",tabIndex:0,children:"Unselect all"})]})}),t.jsxs("table",{ref:s,children:[t.jsx(Tn,{}),t.jsx(En,{})]})]})},Ct=l.st(M)`
2866
- ${({theme:e,$padding:n})=>`
2867
- background-color: ${e.palette.white};
2868
- border: 1px solid ${e.palette.gray[200]};
2869
- border-radius: 2px;
2870
- padding: ${n??e.spacing[.25]};
2871
-
2872
- path {
2873
- fill: ${e.palette.gray[700]};
2874
- }
2875
-
2876
- &:disabled {
2877
- cursor: not-allowed;
2878
- background: ${e.palette.gray[200]};
2879
- border-color: ${e.palette.gray[200]};
2880
-
2881
- path {
2882
- fill: ${e.palette.gray[400]};
2883
- }
2884
- }
2885
-
2886
- &:hover:not([disabled]) {
2887
- color: inherit;
2888
- background-color: ${e.palette.gray[100]};
2889
- }
2890
- `}
2891
- `,Dn=()=>{const{table:e}=u.useContext(q),{pagination:{pageIndex:n}={pageIndex:0}}=(e==null?void 0:e.getState())??{},i=(e==null?void 0:e.getPageCount())??0,o=u.useCallback(()=>{e==null||e.setPageIndex(n+1)},[n,e]),r=u.useCallback(()=>{e==null||e.previousPage()},[e]);return t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[t.jsx(Ct,{$padding:"4px 6px",disabled:!(e!=null&&e.getCanPreviousPage()),icon:"chevron-left",iconSize:"xxs",id:"go-previous",onClick:r,variant:"ghost"}),t.jsx(Ct,{$padding:"4px 6px",disabled:n>i-2,icon:"chevron-right",iconSize:"xxs",id:"go-next",onClick:o,variant:"ghost"})]})},os=10,rs=20,as=50,ss=100,Nn=()=>{const e=l.Je(),{table:n}=u.useContext(q),i=(n==null?void 0:n.getRowCount())??0,[o,r]=u.useState(!1),[a,c]=u.useState((n==null?void 0:n.getState().pagination.pageSize)??10),{refs:s,floatingStyles:d}=l.useFloating$1({middleware:[l.offset({mainAxis:4})],open:o,placement:"top-end",whileElementsMounted:l.autoUpdate}),p=u.useMemo(()=>l.transform([os,rs,as,ss],(h,y)=>(h.push(y),y<=i),[]),[i]),g=u.useCallback(()=>{o&&r(!1)},[o]),x=u.useCallback(()=>{r(h=>!h)},[]),f=u.useCallback(h=>()=>{c(h),n==null||n.setPageSize(h),r(!1)},[n,c]);return ne(s.reference.current,()=>{r(!1)},!0,s.floating.current),u.useEffect(()=>(window.addEventListener("scrollend",g,!0),()=>{window.removeEventListener("scrollend",g,!0)}),[g]),t.jsxs(u.Fragment,{children:[t.jsxs(b,{alignItems:"center",bgColor:e.palette.white,border:"1px solid",borderColor:e.palette.gray[200],borderRadius:"4px",display:"flex",minHeight:"24px",px:.25,children:[t.jsx(I,{pr:.25,size:"sm",children:a}),t.jsx(M,{color:e.palette.gray[400],icon:o?"chevron-up":"chevron-down",iconSize:"xxs",id:"paginator-dropdown",onClick:x,ref:s.setReference,variant:"ghost"})]}),o?t.jsx(b,{bgColor:e.palette.white,border:`1px solid ${e.palette.gray[200]}`,borderRadius:e.spacing[.5],display:"flex",flexDirection:"column",px:.25,py:.25,ref:s.setFloating,shadow:"md",style:d,children:p.map(h=>{const y=f(h);return t.jsx(b,{bgColor:a===h?e.palette.gray[800]:"transparent",bgColorHover:e.palette.gray[a===h?800:100],borderRadius:e.spacing["0.25"],cursor:"pointer",maxWidth:"40px",minWidth:"40px",onClick:y,px:.25,py:.25,children:t.jsx(I,{color:a===h?e.palette.white:e.palette.gray[600],size:"sm",textAlign:"center",children:h})},h)})}):void 0]})},Fn=()=>{const{table:e}=u.useContext(q),{pagination:{pageIndex:n,pageSize:i}={pageIndex:0,pageSize:10}}=(e==null?void 0:e.getState())??{},o=(e==null?void 0:e.getRowCount())??0,r=u.useCallback((a,c,s)=>{if(s===0)return"0 of 0";if(c*a>=s)return`${s} of ${s}`;const d=c*a+1,p=Math.min(c*(a+1),s);return`${d}-${p} of ${s}`},[]);return t.jsx(I,{display:"inline-block",fontWeight:"bold",size:"sm",children:r(n,i,o)})},Ln=({children:e})=>t.jsxs(ns,{children:[t.jsxs("div",{className:"pagination-container",children:[t.jsx(Fn,{}),t.jsx(Nn,{}),t.jsx(Dn,{})]}),e]}),An=({children:e})=>t.jsx("div",{className:"footer-container",children:e}),ls=l.st.div.attrs({className:"search-container"})`
2892
- ${({theme:e})=>`
2893
- display: flex;
2894
- flex-direction: column;
2895
- justify-content: center;
2896
- flex: 1 0 320px;
2897
-
2898
- > div {
2899
- align-items: center;
2900
- background-color: ${e.palette.white};
2901
- border: 1px solid;
2902
- border-color: ${e.palette.gray[300]};
2903
- border-radius: ${e.spacing[.5]};
2904
- display: flex;
2905
- height: 40px;
2906
- padding: ${e.spacing[.5]};
2907
- max-width: 100%;
2908
- width: 100%;
2909
-
2910
- &:hover {
2911
- border-color: ${e.palette.gray[600]};
2912
- }
2913
-
2914
- &:focus-within {
2915
- border: 2px solid;
2916
- border-color: ${e.palette.black};
2917
- }
2918
-
2919
- span {
2920
- margin-top: -${e.spacing[.125]};
2921
- margin-right: ${e.spacing[.5]};
2922
- }
2923
-
2924
- input {
2925
- background: none;
2926
- border: none !important;
2927
- box-shadow: none;
2928
- box-sizing: border-box;
2929
- color: ${e.palette.gray[800]};
2930
- font-family: ${e.typography.type.primary};
2931
- font-size: ${e.typography.text.sm};
2932
- outline: none;
2933
- width: 100%;
2934
- line-height: ${e.spacing[.75]};
2935
- }
2936
- }
2937
- `}
2938
- `,cs=l.st.div.attrs({className:"controls-container"})`
2939
- display: flex;
2940
- flex: 1 0 50%;
2941
-
2942
- .controls-container > :first-child {
2943
- display: flex;
2944
- align-items: center;
2945
- gap: ${({theme:e})=>e.spacing[.125]};
2946
- }
2947
-
2948
- #actions-container {
2949
- display: flex;
2950
- align-items: center;
2951
- justify-content: flex-end;
2952
- width: 100%;
2953
- }
2954
- `,ds=l.st.div`
2955
- display: flex;
2956
- flex-wrap: wrap;
2957
- width: 100%;
2958
- justify-content: space-between;
2959
- gap: ${({theme:e})=>e.spacing[1]};
2960
- margin-bottom: ${({theme:e})=>e.spacing[1]};
2961
-
2962
- .highlight-container {
2963
- flex: 1 0 auto;
2964
- }
2965
-
2966
- .highlight-container ~ .controls-container {
2967
- flex: 1 0 100%;
2968
- }
2969
- `,ps=500,Pn=({children:e})=>{const{table:n}=u.useContext(q),{onSearch:i,search:o,searchPlaceholder:r="Search"}=(n==null?void 0:n.options.meta)??{},a=nt(s=>{i==null||i(s.target.value)},ps),c=u.useCallback(()=>{i==null||i("")},[i]);return t.jsxs(ds,{children:[i===void 0?void 0:t.jsx(ls,{children:t.jsx(ae,{name:"search",onChange:a,onClear:c,placeholder:r,value:o})}),e]})},Mn=({children:e})=>t.jsx(b,{display:"flex",flexDirection:"column",children:t.jsx("div",{className:"caption-container",children:e})}),On=({children:e})=>t.jsx(cs,{children:e}),Wn=({children:e})=>t.jsx("div",{className:"highlight-container",children:e}),gs=160,Hn=({children:e,table:n})=>{var f;const i=u.useRef(null),o=u.useRef(null),{id:r}=n.options.meta??{},{enableMultiRowSelection:a}=(n==null?void 0:n.options)??{},c=Object.keys(n.getState().rowSelection).length,s=c===1?"item":"items",d=c===0||!a,p=Math.max(((f=i.current)==null?void 0:f.clientWidth)??0,n.getTotalSize()+gs),g=u.useCallback(()=>{n.resetRowSelection()},[n]),x=u.useCallback(h=>{h.key==="Enter"&&g()},[g]);return u.useEffect(()=>{n.setPageIndex(0)},[n]),t.jsx(q.Provider,{value:{containerRef:i,elementName:s,handleUnselectAll:g,hidden:d,onKeyDown:x,selected:c,tableSize:p,tableRef:o,table:n},children:t.jsx(es,{id:r,children:e})})},us=Object.assign(Hn,{Caption:Mn,Columns:In,Content:Rn,Controls:On,Export:zn,Footer:Ln,FooterContent:An,Highlighted:Wn,Options:Pn}),xs=l.st.button`
2970
- ${({theme:e})=>`
2971
- align-items: center;
2972
- background-color: ${e.palette.white};
2973
- border: 1px solid ${e.palette.gray[100]};
2974
- border-radius: ${e.spacing[.25]};
2975
- color: ${e.palette.gray[800]};
2976
- cursor: pointer;
2977
- display: flex;
2978
- font-size: ${e.typography.text.sm};
2979
- gap: ${e.spacing[.25]};
2980
- height: 21px;
2981
- width: 21px;
2982
- justify-content: center;
2983
- padding: 6px;
2984
- transition: all 0.25s ease;
2985
-
2986
- &[aria-label] {
2987
- height: auto;
2988
- width: auto;
2989
- }
2990
-
2991
- &.success {
2992
- border-color: ${e.palette.success[500]};
2993
- color: ${e.palette.success[500]};
2994
-
2995
- &:hover {
2996
- background-color: ${e.palette.success[200]};
2997
- }
2998
- }
2999
-
3000
- &:disabled {
3001
- cursor: not-allowed;
3002
- background: ${e.palette.gray[200]};
3003
- border-color: ${e.palette.gray[200]};
3004
- color: ${e.palette.gray[300]};
3005
- }
3006
-
3007
- &:hover:not(.success) {
3008
- background-color: ${e.palette.gray[100]};
3009
- }
3010
- `}
3011
- `,fs={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},hs=({disabled:e=!1,icon:n,id:i,label:o,name:r,onClick:a,type:c="button",variant:s})=>{const d=l.Je(),p=t.jsxs(xs,{"aria-label":r??void 0,className:s,disabled:e,id:i,onClick:a,type:c,children:[t.jsx(E,{clickable:!1,icon:n??fs[s].icon,iconSize:r===void 0?"xxs":"xs",iconType:"fa-light"}),r??void 0]});return t.jsxs(b,{alignItems:"center",display:"flex",children:[p,o&&t.jsx(I,{color:d.palette.gray[800],ml:.5,size:"sm",children:o})]})},ys=l.st.div`
3012
- ${({theme:e,$size:n})=>`
3013
- align-items: center;
3014
- background-color: ${e.palette.white};
3015
- border: 1px solid ${e.palette.gray[200]};
3016
- border-radius: ${e.spacing[.25]};
3017
- display: flex;
3018
- flex-direction: column;
3019
- gap: ${e.spacing[.5]};
3020
- min-height: 180px;
3021
- padding: ${e.spacing[1.5]};
3022
- width: 510px;
3023
-
3024
- p {
3025
- font-style: normal;
3026
- line-height: ${e.spacing[1.25]};
3027
- text-align: ${n==="long"?"":"center"};
3028
- }
3029
-
3030
- &:hover {
3031
- border: 1px solid ${e.palette.gray[600]};
3032
- }
3033
- `}
3034
- `,bs=l.st.div`
3035
- ${({theme:e,$size:n})=>`
3036
- display: ${n==="long"?"flex":"block"};
3037
- flex-direction: column;
3038
- gap: ${e.spacing[1.5]};
3039
- position: relative;
3040
- max-width: 1100px;
3041
- margin: 0 auto 0 auto;
3042
-
3043
- div.timeline-card {
3044
- width: ${n==="long"?"510px":"auto"};
3045
- margin-left: ${n==="long"?"0px":"30px"};
3046
- margin-bottom: ${n==="long"?"0px":e.spacing[.5]};
3047
- }
3048
-
3049
- &::before {
3050
- background-color: ${e.palette.gray[200]};
3051
- border-radius: 5px;
3052
- height: 100%;
3053
- width: 4px;
3054
- transform: translate(-50%, 0);
3055
- }
3056
-
3057
- > * {
3058
- &:nth-child(even) {
3059
- align-self: end;
3060
- }
3061
-
3062
- &:nth-child(odd) {
3063
- align-self: start;
3064
- }
3065
-
3066
- &::before {
3067
- position: absolute;
3068
- background-color: ${e.palette.primary[500]};
3069
- border-radius: 50%;
3070
- height: 14px;
3071
- width: 14px;
3072
- z-index: 1;
3073
- }
3074
- }
3075
-
3076
- &::before,
3077
- > *::before {
3078
- content: "";
3079
- left: ${n==="long"?"50%":"0px"};
3080
- position: absolute;
3081
- transform: translateX(-50%);
3082
- }
3083
- `}
3084
- `,Bn=({date:e,description:n,title:i,size:o="long"})=>{const r=l.Je();return t.jsxs(ys,{$size:o,className:"timeline-card",children:[t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(I,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((a,c)=>{const s=`${a}#${c}`;return t.jsx(I,{size:"sm",textAlign:"center",wordBreak:"break-word",children:a},s)})})]})},$s=({items:e})=>{const n=u.useRef(null),[i,o]=u.useState("long");return u.useEffect(()=>{n.current&&o(n.current.offsetWidth<=1100?"small":"long")},[]),t.jsx(b,{ref:n,width:"100%",children:t.jsx(bs,{$size:i,children:e.map((r,a)=>t.jsx(Bn,{date:r.date,description:r.description,size:i,title:r.title},`${r.title}-${a}`))})})},ms={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:""},ws=({run:e,steps:n,onFinish:i})=>{const[o,r]=u.useState(e),[a,c]=u.useState(0),s=u.useCallback(d=>{const{action:p,index:g,status:x,type:f}=d;[l.EVENTS.STEP_AFTER,l.EVENTS.TARGET_NOT_FOUND].includes(f)?c(g+(p===l.ACTIONS.PREV?-1:1)):([l.STATUS.FINISHED,l.STATUS.SKIPPED].includes(x)||p==="close")&&(r(!1),l.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(l.components_default,{callback:s,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:o,spotlightClicks:!0,stepIndex:a,steps:n,styles:{buttonNext:{display:a===n.length-1?"none":"block"},options:{zIndex:9999}}})};exports.Accordion=wi;exports.AccordionContent=It;exports.ActionButton=Je;exports.Alert=Ei;exports.AppliedFilter=pe;exports.AppliedFilters=$r;exports.ArrayField=_e;exports.Avatar=Pi;exports.BaseButtonComponent=Ze;exports.BaseComponent=ke;exports.BaseSpanComponent=Xe;exports.BaseTextComponent=qe;exports.Body=En;exports.Button=P;exports.Button$1=Te;exports.ButtonToolbarCenter=lo;exports.ButtonToolbarRow=po;exports.ButtonToolbarStartRow=co;exports.Calendar=At;exports.Calendar$1=Ht;exports.Calendar$2=_t;exports.CalendarCell=Lt;exports.CalendarGrid=Ne;exports.CaptionContent=Mn;exports.CardHeader=De;exports.CardWithImage=Wi;exports.CardWithInput=Eo;exports.CardWithOptions=ln;exports.CardWithSelector=Ao;exports.CardWithSwitch=Oo;exports.Carousel=Jo;exports.Checkbox=oe;exports.CodeSnippet=Go;exports.Col=Be;exports.ColumFilters=hn;exports.ColumnToggle=In;exports.ColumnsModal=pn;exports.ComboBox=et;exports.ComboBoxField=He;exports.Container=b;exports.ControlsContent=On;exports.CopyButton=Tr;exports.CustomThemeProvider=ui;exports.DateField=Mt;exports.DateSelector=xe;exports.Description=kn;exports.Dialog=Le;exports.Divider=re;exports.Dropdown=Dr;exports.Editable=so;exports.EmptyButton=Ge;exports.EmptyState=Ar;exports.ExportCsv=zn;exports.FilePreview=Dt;exports.FilterControl=gn;exports.FilterForm=Ue;exports.FilterFormContent=un;exports.FiltersList=fn;exports.FooterContent=An;exports.Form=Or;exports.Gap=xo;exports.GridContainer=Hr;exports.GroupSelector=_r;exports.Head=Tn;exports.Header=Fe;exports.Header$1=tn;exports.Heading=K;exports.HighlightedContent=Wn;exports.Icon=E;exports.IconButton=M;exports.InProgressIcon=jn;exports.IndicatorCard=Vr;exports.InfoSidebar=Jr;exports.InnerForm=Pr;exports.Input=Ae;exports.InputArray=ho;exports.InputDate=Wt;exports.InputDateRange=Bt;exports.InputDateTime=ao;exports.InputFile=mo;exports.InputNumber=Jt;exports.InputNumberRange=Ut;exports.InputTags=jo;exports.Label=Qe;exports.Link=Z;exports.ListItem=ze;exports.ListItemsWrapper=an;exports.LittleFlag=Gr;exports.Loading=$n;exports.LocationCode=Xt;exports.Logo=na;exports.Lottie=oa;exports.MemoizedImage=ee;exports.Menu=ra;exports.MenuItem=Cn;exports.MessageBanner=sa;exports.Modal=at;exports.ModalConfirm=nn;exports.ModalFooter=en;exports.Notification=pa;exports.NotificationSign=on;exports.NumberField=Re;exports.NumberInput=xa;exports.OAuthSelector=ha;exports.Option=Nt;exports.OptionBoxContainer=st;exports.OptionContainer=Ye;exports.OptionContainer$1=bn;exports.OutlineContainer=V;exports.PaginationControl=Dn;exports.PaginationDropdown=Nn;exports.PaginationSize=Fn;exports.PhoneInput=Io;exports.PopUp=Ta;exports.Popover=Ce;exports.PremiumFeature=mn;exports.PreviewPanel=sn;exports.PriorityScore=ba;exports.ProgressBar=wn;exports.ProgressIndicator=Ia;exports.ProgressStep=Sa;exports.RadioButton=it;exports.Row=Vt;exports.ScrollUpButton=Ra;exports.Search=ae;exports.SearchPanel=dn;exports.SeverityBadge=Na;exports.SeverityOverview=La;exports.SeverityOverviewBadge=ge;exports.ShowOnHover=Pa;exports.SlideOutMenu=Oa;exports.Slider=Ja;exports.SortIcon=Ke;exports.Span=ue;exports.StepLapse=qa;exports.Tab=rn;exports.Table=us;exports.Table$1=Hn;exports.TableButton=hs;exports.TableContent=Rn;exports.TableContext=q;exports.TableFooter=Ln;exports.TableOptions=Pn;exports.Tabs=rt;exports.Tag=U;exports.TagsField=Ve;exports.Text=I;exports.TextArea=To;exports.Thumb=Sn;exports.TimeField=Ot;exports.TimeLine=$s;exports.TimeLineCard=Bn;exports.Toggle=Zt;exports.Tooltip=J;exports.Tour=ws;exports.baseStep=ms;exports.formatCheckValues=yn;exports.getStyledConfig=ve;exports.hiddenProps=St;exports.icons=pi;exports.setBorder=$e;exports.setDisplay=me;exports.setInteraction=je;exports.setMargin=ye;exports.setPadding=he;exports.setPosition=be;exports.setText=we;exports.theme=D;exports.uniqueIcons=gi;exports.useCarousel=Gt;exports.useClickOutside=ne;exports.useCloudinaryImage=Yt;exports.useColumnsModal=Kt;exports.useConditionsDialog=Sr;exports.useConfirmDialog=zr;exports.useDebouncedCallback=nt;exports.useFilterForm=xn;exports.useFilters=Cr;exports.useModal=Se;exports.useSearch=Do;exports.variantBuilder=Y;