@fluidattacks/design 3.28.4-pr.5 → 3.28.5-pr.2

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 (170) hide show
  1. package/dist/components/@core/index.js +1 -1
  2. package/dist/components/accordion/accordion-content/index.js +1 -1
  3. package/dist/components/accordion/index.js +1 -1
  4. package/dist/components/alert/index.js +1 -1
  5. package/dist/components/avatar/index.js +1 -1
  6. package/dist/components/button/index.js +1 -1
  7. package/dist/components/card/card-header/index.js +1 -1
  8. package/dist/components/card/card-with-image/index.js +1 -1
  9. package/dist/components/card/card-with-input/index.js +1 -1
  10. package/dist/components/card/card-with-options/index.js +1 -1
  11. package/dist/components/card/card-with-selector/index.js +1 -1
  12. package/dist/components/card/card-with-switch/index.js +1 -1
  13. package/dist/components/card/index.js +1 -1
  14. package/dist/components/card/indicator-card/index.js +1 -1
  15. package/dist/components/card-container/index.js +1 -1
  16. package/dist/components/carousel/index.js +1 -1
  17. package/dist/components/checkbox/index.js +1 -1
  18. package/dist/components/cloud-image/index.js +1 -1
  19. package/dist/components/code-snippet/index.js +1 -1
  20. package/dist/components/code-snippet/location-code/index.js +1 -1
  21. package/dist/components/colors/index.js +1 -1
  22. package/dist/components/conditions-dialog/index.js +1 -1
  23. package/dist/components/confirm-dialog/index.js +1 -1
  24. package/dist/components/container/index.js +1 -1
  25. package/dist/components/copy-button/index.js +1 -1
  26. package/dist/components/divider/index.js +1 -1
  27. package/dist/components/dropdown/index.js +1 -1
  28. package/dist/components/empty-state/empty-button/index.js +1 -1
  29. package/dist/components/empty-state/index.js +1 -1
  30. package/dist/components/file-preview/index.js +1 -1
  31. package/dist/components/form/index.d.ts +1 -1
  32. package/dist/components/form/index.js +1 -1
  33. package/dist/components/form/inner-form/index.js +1 -1
  34. package/dist/components/form/types.d.ts +2 -0
  35. package/dist/components/grid-container/index.js +1 -1
  36. package/dist/components/group-selector/index.js +1 -1
  37. package/dist/components/group-selector/option-container/index.js +1 -1
  38. package/dist/components/icon/index.js +1 -1
  39. package/dist/components/icon-button/index.js +1 -1
  40. package/dist/components/info-sidebar/index.js +1 -1
  41. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  42. package/dist/components/inputs/fields/combobox/index.js +1 -1
  43. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  44. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  45. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  46. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  47. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  48. package/dist/components/inputs/fields/date/index.js +1 -1
  49. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  50. package/dist/components/inputs/fields/date-range/index.js +1 -1
  51. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  52. package/dist/components/inputs/fields/date-time/index.js +1 -1
  53. package/dist/components/inputs/fields/editable/index.js +1 -1
  54. package/dist/components/inputs/fields/input-array/field/index.js +1 -1
  55. package/dist/components/inputs/fields/input-array/index.js +1 -1
  56. package/dist/components/inputs/fields/input-file/index.js +1 -1
  57. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  58. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  59. package/dist/components/inputs/fields/number/index.js +1 -1
  60. package/dist/components/inputs/fields/number-range/index.js +1 -1
  61. package/dist/components/inputs/fields/phone/index.js +1 -1
  62. package/dist/components/inputs/fields/text-area/index.js +1 -1
  63. package/dist/components/inputs/fields/text-input/index.js +1 -1
  64. package/dist/components/inputs/index.js +1 -1
  65. package/dist/components/inputs/label/index.js +1 -1
  66. package/dist/components/inputs/outline-container/index.js +1 -1
  67. package/dist/components/inputs/utils/action-button/index.js +1 -1
  68. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  69. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  70. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  71. package/dist/components/inputs/utils/dialog/index.js +1 -1
  72. package/dist/components/inputs/utils/number-field/index.js +1 -1
  73. package/dist/components/inputs/utils/popover/index.js +1 -1
  74. package/dist/components/layout/categories/buttons/index.js +1 -1
  75. package/dist/components/layout/categories/column/index.js +1 -1
  76. package/dist/components/layout/categories/gap/index.js +1 -1
  77. package/dist/components/layout/categories/row/index.js +1 -1
  78. package/dist/components/layout/index.js +1 -1
  79. package/dist/components/link/index.js +1 -1
  80. package/dist/components/list-item/index.js +1 -1
  81. package/dist/components/little-flag/index.js +1 -1
  82. package/dist/components/loading/index.js +1 -1
  83. package/dist/components/logo/index.js +1 -1
  84. package/dist/components/lottie/index.js +1 -1
  85. package/dist/components/menu/index.js +1 -1
  86. package/dist/components/message-banner/index.js +1 -1
  87. package/dist/components/modal/columns-modal/index.js +1 -1
  88. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  89. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  90. package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
  91. package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
  92. package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
  93. package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
  94. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
  95. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
  96. package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
  97. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  98. package/dist/components/modal/filters-modal/index.js +1 -1
  99. package/dist/components/modal/footer/index.js +1 -1
  100. package/dist/components/modal/header/index.js +1 -1
  101. package/dist/components/modal/index.js +1 -1
  102. package/dist/components/modal/modal-confirm/index.js +1 -1
  103. package/dist/components/notification/index.js +1 -1
  104. package/dist/components/notification-sign/index.js +1 -1
  105. package/dist/components/oauth-selector/index.js +1 -1
  106. package/dist/components/oauth-selector/option-container/index.js +1 -1
  107. package/dist/components/pop-up/description/index.js +1 -1
  108. package/dist/components/pop-up/index.js +1 -1
  109. package/dist/components/premium-feature/index.js +1 -1
  110. package/dist/components/priority-score/index.js +1 -1
  111. package/dist/components/progress-bar/index.js +1 -1
  112. package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
  113. package/dist/components/progress-indicator/index.js +1 -1
  114. package/dist/components/progress-indicator/step/index.js +1 -1
  115. package/dist/components/radio-button/index.js +1 -1
  116. package/dist/components/rank-position/icon/index.d.ts +3 -0
  117. package/dist/components/rank-position/icon/index.js +1 -0
  118. package/dist/components/rank-position/index.d.ts +3 -0
  119. package/dist/components/rank-position/index.js +1 -0
  120. package/dist/components/rank-position/index.stories.d.ts +6 -0
  121. package/dist/components/rank-position/types.d.ts +21 -0
  122. package/dist/components/scroll-button/index.js +1 -1
  123. package/dist/components/search/index.js +1 -1
  124. package/dist/components/severity-badge/index.js +1 -1
  125. package/dist/components/severity-overview/badge/index.js +1 -1
  126. package/dist/components/severity-overview/index.js +1 -1
  127. package/dist/components/show-on-hover/index.js +1 -1
  128. package/dist/components/slide-out-menu/index.js +1 -1
  129. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  130. package/dist/components/slider/index.js +1 -1
  131. package/dist/components/slider/thumb/index.js +1 -1
  132. package/dist/components/step-lapse/index.js +1 -1
  133. package/dist/components/table/context/index.js +1 -1
  134. package/dist/components/table/export-csv/index.js +1 -1
  135. package/dist/components/table/index.js +1 -1
  136. package/dist/components/table/pagination/pagination-control/index.js +1 -1
  137. package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
  138. package/dist/components/table/pagination/pagination-size/index.js +1 -1
  139. package/dist/components/table/sort-icon/index.js +1 -1
  140. package/dist/components/table/table-body/index.js +1 -1
  141. package/dist/components/table/table-column-toggle/index.js +1 -1
  142. package/dist/components/table/table-content/head/index.js +1 -1
  143. package/dist/components/table/table-content/index.js +1 -1
  144. package/dist/components/table/table-footer/footer-content/index.js +1 -1
  145. package/dist/components/table/table-footer/index.js +1 -1
  146. package/dist/components/table/table-options/caption-content/index.js +1 -1
  147. package/dist/components/table/table-options/controls-content/index.js +1 -1
  148. package/dist/components/table/table-options/highlighted-content/index.js +1 -1
  149. package/dist/components/table/table-options/index.js +1 -1
  150. package/dist/components/table/wrapper/index.js +1 -1
  151. package/dist/components/table-button/index.js +1 -1
  152. package/dist/components/tabs/index.js +1 -1
  153. package/dist/components/tabs/styles.d.ts +1 -0
  154. package/dist/components/tabs/tab/index.d.ts +3 -1
  155. package/dist/components/tabs/tab/index.js +1 -1
  156. package/dist/components/tag/index.js +1 -1
  157. package/dist/components/timeline/card/index.js +1 -1
  158. package/dist/components/timeline/index.js +1 -1
  159. package/dist/components/toggle/index.js +1 -1
  160. package/dist/components/tooltip/index.js +1 -1
  161. package/dist/components/tour/index.js +1 -1
  162. package/dist/components/typography/heading/index.js +1 -1
  163. package/dist/components/typography/index.js +1 -1
  164. package/dist/components/typography/span/index.js +1 -1
  165. package/dist/components/typography/text/index.js +1 -1
  166. package/dist/{components-BjRBQuvI.js → components-3MQGSjNa.js} +218 -216
  167. package/dist/{components-Due30LcL.mjs → components-CvssFD_a.mjs} +827 -731
  168. package/dist/hooks/index.js +1 -1
  169. package/dist/index.js +1 -1
  170. package/package.json +1 -1
@@ -1,26 +1,26 @@
1
- "use strict";const t=require("react/jsx-runtime"),u=require("react"),f=require("styled-components"),y=require("./vendor-Cg77_nBF.js"),le=require("react-dom"),Ge=require("react-router-dom"),io=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},tt=io(u),Q=e=>({getVariant:(n,o)=>e(n)[o]}),Dt=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"],ao={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},so={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},lo={25:"",50:"",100:"#f59dbe",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},co={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},po={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#f27100",700:"#b54708",800:"",900:""},go={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},uo={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},xo={type:{primary:"Roboto, sans-serif",mono:"'Space Mono', monospace"},heading:{lg:"32px",md:"24px",sm:"20px",xs:"16px"},text:{lg:"16px",md:"14px",sm:"12px",xs:"10px"},weight:{bold:"700",regular:"400"}},ho={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)"},fo={sm:"1024px",md:"1440px",lg:"1920px"},yo={0:"0rem",.125:"0.125rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",.875:"0.875rem",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",4:"4rem",5:"5rem",6:"6rem"},bo=["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","arrow-down","arrow-left","arrow-right","arrow-up","plus","minus","check","circle-question"],N={typography:xo,shadows:ho,breakpoints:fo,spacing:yo,palette:{primary:so,complementary:lo,error:co,info:uo,warning:po,success:go,black:"#0c111d",white:"#ffffff",gray:ao}},$o=({children:e})=>t.jsx(f.ThemeProvider,{theme:N,children:e}),L=(e,n)=>n===void 0?"":`${e}: ${n};`,$e=e=>{const n=e.py??e.pt??0,o=e.px??e.pr??0,r=e.py??e.pb??0,i=e.px??e.pl??0;if(e.padding){const[a,l,s,c]=e.padding;return`padding: ${N.spacing[a]} ${N.spacing[l]} ${N.spacing[s]} ${N.spacing[c]};`}return`padding: ${N.spacing[n]} ${N.spacing[o]} ${N.spacing[r]} ${N.spacing[i]};`},me=e=>{const n=e.my??e.mt??0,o=e.mx??e.mr??0,r=e.my??e.mb??0,i=e.mx??e.ml??0;if(e.margin){const[a,l,s,c]=e.margin;return`margin: ${N.spacing[a]} ${N.spacing[l]} ${N.spacing[s]} ${N.spacing[c]};`}return`margin: ${N.spacing[n]} ${N.spacing[o]} ${N.spacing[r]} ${N.spacing[i]};`},we=e=>{const n=L("position",e.position),o=L("top",e.top),r=L("right",e.right),i=L("bottom",e.bottom),a=L("left",e.left),l=L("z-index",e.zIndex);return`
1
+ "use strict";const t=require("react/jsx-runtime"),u=require("react"),f=require("styled-components"),y=require("./vendor-Cg77_nBF.js"),le=require("react-dom"),Ge=require("react-router-dom"),ao=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},tt=ao(u),ee=e=>({getVariant:(n,o)=>e(n)[o]}),Dt=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"],so={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},lo={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},co={25:"",50:"",100:"#f59dbe",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},po={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},go={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#f27100",700:"#b54708",800:"",900:""},uo={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},xo={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},ho={type:{primary:"Roboto, sans-serif",mono:"'Space Mono', monospace"},heading:{lg:"32px",md:"24px",sm:"20px",xs:"16px"},text:{lg:"16px",md:"14px",sm:"12px",xs:"10px"},weight:{bold:"700",regular:"400"}},fo={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)"},yo={sm:"1024px",md:"1440px",lg:"1920px"},bo={0:"0rem",.125:"0.125rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",.875:"0.875rem",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",4:"4rem",5:"5rem",6:"6rem"},$o=["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","arrow-down","arrow-left","arrow-right","arrow-up","plus","minus","check","circle-question"],N={typography:ho,shadows:fo,breakpoints:yo,spacing:bo,palette:{primary:lo,complementary:co,error:po,info:xo,warning:go,success:uo,black:"#0c111d",white:"#ffffff",gray:so}},mo=({children:e})=>t.jsx(f.ThemeProvider,{theme:N,children:e}),L=(e,n)=>n===void 0?"":`${e}: ${n};`,$e=e=>{const n=e.py??e.pt??0,o=e.px??e.pr??0,i=e.py??e.pb??0,r=e.px??e.pl??0;if(e.padding){const[a,l,s,c]=e.padding;return`padding: ${N.spacing[a]} ${N.spacing[l]} ${N.spacing[s]} ${N.spacing[c]};`}return`padding: ${N.spacing[n]} ${N.spacing[o]} ${N.spacing[i]} ${N.spacing[r]};`},me=e=>{const n=e.my??e.mt??0,o=e.mx??e.mr??0,i=e.my??e.mb??0,r=e.mx??e.ml??0;if(e.margin){const[a,l,s,c]=e.margin;return`margin: ${N.spacing[a]} ${N.spacing[l]} ${N.spacing[s]} ${N.spacing[c]};`}return`margin: ${N.spacing[n]} ${N.spacing[o]} ${N.spacing[i]} ${N.spacing[r]};`},we=e=>{const n=L("position",e.position),o=L("top",e.top),i=L("right",e.right),r=L("bottom",e.bottom),a=L("left",e.left),l=L("z-index",e.zIndex);return`
2
2
  ${n}
3
3
  ${o}
4
- ${r}
5
4
  ${i}
5
+ ${r}
6
6
  ${a}
7
7
  ${l}
8
- `},ve=e=>{const n=L("border",e.border),o=L("border-top",e.borderTop),r=L("border-right",e.borderRight),i=L("border-bottom",e.borderBottom),a=L("border-left",e.borderLeft),l=L("border-color",e.borderColor),s=L("border-radius",e.borderRadius);return`
8
+ `},je=e=>{const n=L("border",e.border),o=L("border-top",e.borderTop),i=L("border-right",e.borderRight),r=L("border-bottom",e.borderBottom),a=L("border-left",e.borderLeft),l=L("border-color",e.borderColor),s=L("border-radius",e.borderRadius);return`
9
9
  ${n}
10
10
  ${o}
11
- ${r}
12
11
  ${i}
12
+ ${r}
13
13
  ${a}
14
14
  ${l}
15
15
  ${s}
16
- `},mo=e=>e.includes("x")?"overflow-x: auto;":"",wo=e=>e.includes("y")?"overflow-y: auto;":"",je=e=>{const n=e.scroll?`
17
- ${mo(e.scroll)}
16
+ `},wo=e=>e.includes("x")?"overflow-x: auto;":"",jo=e=>e.includes("y")?"overflow-y: auto;":"",ve=e=>{const n=e.scroll?`
18
17
  ${wo(e.scroll)}
19
- `:"",o=L("visibility",e.visibility),r=L("display",e.display),i=L("height",e.height),a=L("width",e.width),l=L("max-height",e.maxHeight),s=L("max-width",e.maxWidth),c=L("min-height",e.minHeight),p=L("min-width",e.minWidth),d=L("box-shadow",e.shadow?N.shadows[e.shadow]:void 0),g=L("gap",e.gap===void 0?void 0:N.spacing[e.gap]),x=L("background-color",e.bgColor),h=L("background",e.bgGradient),b=L("flex-direction",e.flexDirection),w=L("flex-grow",e.flexGrow),$=L("justify-content",e.justify),S=L("justify-self",e.justifySelf),C=L("align-items",e.alignItems),j=L("align-self",e.alignSelf),v=L("flex-wrap",e.wrap);return`
18
+ ${jo(e.scroll)}
19
+ `:"",o=L("visibility",e.visibility),i=L("display",e.display),r=L("height",e.height),a=L("width",e.width),l=L("max-height",e.maxHeight),s=L("max-width",e.maxWidth),c=L("min-height",e.minHeight),p=L("min-width",e.minWidth),d=L("box-shadow",e.shadow?N.shadows[e.shadow]:void 0),g=L("gap",e.gap===void 0?void 0:N.spacing[e.gap]),x=L("background-color",e.bgColor),h=L("background",e.bgGradient),b=L("flex-direction",e.flexDirection),w=L("flex-grow",e.flexGrow),$=L("justify-content",e.justify),C=L("justify-self",e.justifySelf),S=L("align-items",e.alignItems),v=L("align-self",e.alignSelf),j=L("flex-wrap",e.wrap);return`
20
20
  ${n}
21
21
  ${o}
22
- ${r}
23
22
  ${i}
23
+ ${r}
24
24
  ${a}
25
25
  ${l}
26
26
  ${s}
@@ -33,15 +33,15 @@
33
33
  ${b}
34
34
  ${w}
35
35
  ${$}
36
- ${S}
37
36
  ${C}
38
- ${j}
37
+ ${S}
39
38
  ${v}
40
- `},ke=e=>{const n=L("color",e.color),o=L("font-family",e.fontFamily),r=L("font-size",e.fontSize),i=L("font-weight",e.fontWeight),a=L("line-spacing",e.letterSpacing),l=L("line-height",e.lineSpacing),s=L("text-align",e.textAlign),c=L("text-decoration",e.textDecoration),p=L("text-overflow",e.textOverflow),d=L("white-space",e.whiteSpace),g=L("word-break",e.wordBreak),x=L("word-wrap",e.wordWrap);return`
39
+ ${j}
40
+ `},ke=e=>{const n=L("color",e.color),o=L("font-family",e.fontFamily),i=L("font-size",e.fontSize),r=L("font-weight",e.fontWeight),a=L("line-spacing",e.letterSpacing),l=L("line-height",e.lineSpacing),s=L("text-align",e.textAlign),c=L("text-decoration",e.textDecoration),p=L("text-overflow",e.textOverflow),d=L("white-space",e.whiteSpace),g=L("word-break",e.wordBreak),x=L("word-wrap",e.wordWrap);return`
41
41
  ${n}
42
42
  ${o}
43
- ${r}
44
43
  ${i}
44
+ ${r}
45
45
  ${a}
46
46
  ${l}
47
47
  ${s}
@@ -50,49 +50,49 @@
50
50
  ${d}
51
51
  ${g}
52
52
  ${x}
53
- `},Ce=e=>{const n=L("cursor",e.cursor),o=L("border-color",e.borderColorHover),r=L("background-color",e.bgColorHover),i=L("box-shadow",e.shadowHover===void 0?void 0:N.shadows[e.shadowHover]),a=L("transition",e.transition);return`
53
+ `},Ce=e=>{const n=L("cursor",e.cursor),o=L("border-color",e.borderColorHover),i=L("background-color",e.bgColorHover),r=L("box-shadow",e.shadowHover===void 0?void 0:N.shadows[e.shadowHover]),a=L("transition",e.transition);return`
54
54
  ${n}
55
55
 
56
56
  &:hover {
57
57
  ${a||"transition: all 0.2s;"}
58
58
  ${o}
59
- ${r}
60
59
  ${i}
60
+ ${r}
61
61
  }
62
62
  `},Se={shouldForwardProp:e=>!Dt.includes(e)},ze=f.styled.div.withConfig(Se)`
63
63
  ${$e}
64
64
  ${me}
65
65
  ${we}
66
- ${je}
67
- ${ke}
68
66
  ${ve}
67
+ ${ke}
68
+ ${je}
69
69
  ${Ce}
70
70
  `,nt=f.styled.button.withConfig(Se)`
71
71
  ${$e}
72
72
  ${me}
73
73
  ${we}
74
- ${je}
75
- ${ke}
76
74
  ${ve}
75
+ ${ke}
76
+ ${je}
77
77
  ${Ce}
78
78
  `,ot=f.styled.p.withConfig(Se)`
79
79
  ${$e}
80
80
  ${me}
81
81
  ${we}
82
- ${je}
83
- ${ke}
84
82
  ${ve}
83
+ ${ke}
84
+ ${je}
85
85
  ${Ce}
86
- `,rt=f.styled.span.withConfig(Se)`
86
+ `,it=f.styled.span.withConfig(Se)`
87
87
  ${$e}
88
88
  ${me}
89
89
  ${we}
90
- ${je}
91
- ${ke}
92
90
  ${ve}
91
+ ${ke}
92
+ ${je}
93
93
  ${Ce}
94
94
  `,vo=f.styled(ze)`
95
- ${({theme:e,$center:n=!1,$styleMd:o,$styleSm:r})=>`
95
+ ${({theme:e,$center:n=!1,$styleMd:o,$styleSm:i})=>`
96
96
  ${n?"margin: auto;":""}
97
97
  scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
98
98
  scroll-padding: ${e.spacing[.5]};
@@ -105,21 +105,21 @@
105
105
  }
106
106
 
107
107
  @media screen and (max-width: ${e.breakpoints.mobile}) {
108
- ${r};
108
+ ${i};
109
109
  }
110
110
  `}
111
- `,m=u.forwardRef(function({as:n="div",center:o,children:r,id:i,onHover:a,onLeave:l,styleMd:s,styleSm:c,...p},d){return t.jsx(vo,{$center:o,$styleMd:s,$styleSm:c,as:n,id:i,onMouseLeave:l,onMouseOver:a,ref:d,...p,children:r})}),Ft=(e,n=!1)=>{if(n)switch(e){case"lg":return 2.5;case"md":return 2;case"sm":return 1.75;case"xs":return 1.5}switch(e){case"lg":return 1.5;case"md":case"sm":return 1.25;case"xs":return 1}},jo=f.styled(ot)`
112
- ${({theme:e,$bgGradient:n="unset",$color:o=e.palette.gray[800],$display:r="block",$fontFamily:i=e.typography.type.primary,$fontWeight:a="bold",$letterSpacing:l=0,$overflow:s="unset",$size:c,$sizeMd:p,$textFill:d="unset",$whiteSpace:g="pre-line",$wordBreak:x="normal"})=>`
111
+ `,m=u.forwardRef(function({as:n="div",center:o,children:i,id:r,onHover:a,onLeave:l,styleMd:s,styleSm:c,...p},d){return t.jsx(vo,{$center:o,$styleMd:s,$styleSm:c,as:n,id:r,onMouseLeave:l,onMouseOver:a,ref:d,...p,children:i})}),Ft=(e,n=!1)=>{if(n)switch(e){case"lg":return 2.5;case"md":return 2;case"sm":return 1.75;case"xs":return 1.5}switch(e){case"lg":return 1.5;case"md":case"sm":return 1.25;case"xs":return 1}},ko=f.styled(ot)`
112
+ ${({theme:e,$bgGradient:n="unset",$color:o=e.palette.gray[800],$display:i="block",$fontFamily:r=e.typography.type.primary,$fontWeight:a="bold",$letterSpacing:l=0,$overflow:s="unset",$size:c,$sizeMd:p,$textFill:d="unset",$whiteSpace:g="pre-line",$wordBreak:x="normal"})=>`
113
113
  background: ${n};
114
114
  color: ${o};
115
- display: ${r};
116
- font-family: ${i};
115
+ display: ${i};
116
+ font-family: ${r};
117
117
  font-size: ${e.typography.heading[c]};
118
118
  font-weight: ${e.typography.weight[a]};
119
119
  letter-spacing: ${l};
120
120
  line-height: ${e.spacing[Ft(c,!0)]};
121
121
  overflow: ${s};
122
- width: ${r==="block"?"100%":"auto"};
122
+ width: ${i==="block"?"100%":"auto"};
123
123
  white-space: ${g};
124
124
  word-break: ${x};
125
125
  background-clip: text;
@@ -134,18 +134,18 @@
134
134
  }
135
135
  `}
136
136
  `,Nt=f.styled(ot)`
137
- ${({theme:e,$bgGradient:n="unset",$color:o=e.palette.gray[600],$display:r="block",$fontFamily:i=e.typography.type.primary,$fontWeight:a="regular",$fontStyle:l="normal",$letterSpacing:s=0,$overflow:c="unset",$size:p,$sizeMd:d,$textFill:g="unset",$whiteSpace:x="pre-line",$wordBreak:h="normal"})=>`
137
+ ${({theme:e,$bgGradient:n="unset",$color:o=e.palette.gray[600],$display:i="block",$fontFamily:r=e.typography.type.primary,$fontWeight:a="regular",$fontStyle:l="normal",$letterSpacing:s=0,$overflow:c="unset",$size:p,$sizeMd:d,$textFill:g="unset",$whiteSpace:x="pre-line",$wordBreak:h="normal"})=>`
138
138
  background: ${n};
139
139
  color: ${o};
140
- display: ${r};
141
- font-family: ${i};
140
+ display: ${i};
141
+ font-family: ${r};
142
142
  font-size: ${e.typography.text[p]};
143
143
  font-style: ${l};
144
144
  font-weight: ${e.typography.weight[a]};
145
145
  letter-spacing: ${s};
146
146
  line-height: ${e.spacing[Ft(p)]};
147
147
  overflow: ${c};
148
- width: ${r==="block"?"100%":"auto"};
148
+ width: ${i==="block"?"100%":"auto"};
149
149
  white-space: ${x};
150
150
  word-break: ${h};
151
151
  background-clip: text;
@@ -159,24 +159,24 @@
159
159
  font-size: ${e.typography.text[d??p]};
160
160
  }
161
161
  `}
162
- `,ko=f.styled(rt)`
163
- ${({theme:e,$color:n=e.palette.gray[600],$content:o=void 0,$display:r="inline",$fontWeight:i="regular",$size:a,$lineSpacing:l=1.25})=>`
162
+ `,Co=f.styled(it)`
163
+ ${({theme:e,$color:n=e.palette.gray[600],$content:o=void 0,$display:i="inline",$fontWeight:r="regular",$size:a,$lineSpacing:l=1.25})=>`
164
164
  color: ${n};
165
- display: ${r};
165
+ display: ${i};
166
166
  font-family: ${e.typography.type.primary};
167
167
  font-size: ${e.typography.text[a]};
168
- font-weight: ${e.typography.weight[i]};
168
+ font-weight: ${e.typography.weight[r]};
169
169
  line-height: ${e.spacing[l]};
170
170
  max-width: 100%;
171
- width: ${r==="block"?"100%":"auto"};
171
+ width: ${i==="block"?"100%":"auto"};
172
172
 
173
173
  ${o===void 0?"":`&::after { content: "${o}"; }`}
174
174
  `}
175
- `,ee=u.forwardRef(function({bgGradient:n,children:o,className:r,color:i,display:a,fontFamily:l,fontWeight:s,letterSpacing:c,lineSpacing:p,lineSpacingSm:d,overflow:g,size:x,sizeMd:h,sizeSm:b,textFill:w,whiteSpace:$,wordBreak:S,...C},j){return t.jsx(jo,{$bgGradient:n,$color:i,$display:a,$fontFamily:l,$fontWeight:s,$letterSpacing:c,$lineSpacing:p,$lineSpacingSm:d,$overflow:g,$size:x,$sizeMd:h,$sizeSm:b,$textFill:w,$whiteSpace:$,$wordBreak:S,className:r,ref:j,...C,children:o})}),he=u.forwardRef(function({children:n,color:o,content:r,display:i,fontFamily:a,fontWeight:l,letterSpacing:s,lineSpacing:c,lineSpacingSm:p,size:d,sizeMd:g,sizeSm:x,...h},b){return t.jsx(ko,{$color:o,$content:r,$display:i,$fontFamily:a,$fontWeight:l,$letterSpacing:s,$lineSpacing:c,$lineSpacingSm:p,$size:d,$sizeMd:g,$sizeSm:x,ref:b,...h,children:n})}),R=u.forwardRef(function({bgGradient:n,children:o,className:r,color:i,display:a,fontFamily:l,fontWeight:s,letterSpacing:c,lineSpacing:p,lineSpacingSm:d,overflow:g,size:x,sizeMd:h,sizeSm:b,textFill:w,whiteSpace:$,wordBreak:S,fontStyle:C,...j},v){return t.jsx(Nt,{$bgGradient:n,$color:i,$display:a,$fontFamily:l,$fontStyle:C,$fontWeight:s,$letterSpacing:c,$lineSpacing:p,$lineSpacingSm:d,$overflow:g,$size:x,$sizeMd:h,$sizeSm:b,$textFill:w,$whiteSpace:$,$wordBreak:S,className:r,ref:v,...j,children:o})}),Lt=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(R,{mb:e.extraElement?.5:void 0,size:"md",children:e.description}):e.description??void 0;return t.jsxs(m,{display:"block",id:`panel-${e.title}`,padding:[.875,.875,.875,.875],children:[n,e.extraElement?t.jsx(m,{children:e.extraElement}):void 0]})},Ve={xl:"24px",lg:"16px",md:"14px",sm:"12px",xs:"10px"},Co=e=>Ve[e]?Ve[e]:typeof e=="string"&&e.includes("px")?e:Ve.md,So=f.styled(rt)`
176
- ${({$clickable:e,$color:n="inherit",$disabled:o=!1,$hoverColor:r,$rotation:i,$size:a,$secondaryColor:l})=>{const s=r?"":"brightness(50%)",c=r??"";return`
175
+ `,X=u.forwardRef(function({bgGradient:n,children:o,className:i,color:r,display:a,fontFamily:l,fontWeight:s,letterSpacing:c,lineSpacing:p,lineSpacingSm:d,overflow:g,size:x,sizeMd:h,sizeSm:b,textFill:w,whiteSpace:$,wordBreak:C,...S},v){return t.jsx(ko,{$bgGradient:n,$color:r,$display:a,$fontFamily:l,$fontWeight:s,$letterSpacing:c,$lineSpacing:p,$lineSpacingSm:d,$overflow:g,$size:x,$sizeMd:h,$sizeSm:b,$textFill:w,$whiteSpace:$,$wordBreak:C,className:i,ref:v,...S,children:o})}),he=u.forwardRef(function({children:n,color:o,content:i,display:r,fontFamily:a,fontWeight:l,letterSpacing:s,lineSpacing:c,lineSpacingSm:p,size:d,sizeMd:g,sizeSm:x,...h},b){return t.jsx(Co,{$color:o,$content:i,$display:r,$fontFamily:a,$fontWeight:l,$letterSpacing:s,$lineSpacing:c,$lineSpacingSm:p,$size:d,$sizeMd:g,$sizeSm:x,ref:b,...h,children:n})}),R=u.forwardRef(function({bgGradient:n,children:o,className:i,color:r,display:a,fontFamily:l,fontWeight:s,letterSpacing:c,lineSpacing:p,lineSpacingSm:d,overflow:g,size:x,sizeMd:h,sizeSm:b,textFill:w,whiteSpace:$,wordBreak:C,fontStyle:S,...v},j){return t.jsx(Nt,{$bgGradient:n,$color:r,$display:a,$fontFamily:l,$fontStyle:S,$fontWeight:s,$letterSpacing:c,$lineSpacing:p,$lineSpacingSm:d,$overflow:g,$size:x,$sizeMd:h,$sizeSm:b,$textFill:w,$whiteSpace:$,$wordBreak:C,className:i,ref:j,...v,children:o})}),Lt=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(R,{mb:e.extraElement?.5:void 0,size:"md",children:e.description}):e.description??void 0;return t.jsxs(m,{display:"block",id:`panel-${e.title}`,padding:[.875,.875,.875,.875],children:[n,e.extraElement?t.jsx(m,{children:e.extraElement}):void 0]})},Ve={xl:"24px",lg:"16px",md:"14px",sm:"12px",xs:"10px"},So=e=>Ve[e]?Ve[e]:typeof e=="string"&&e.includes("px")?e:Ve.md,zo=f.styled(it)`
176
+ ${({$clickable:e,$color:n="inherit",$disabled:o=!1,$hoverColor:i,$rotation:r,$size:a,$secondaryColor:l})=>{const s=i?"":"brightness(50%)",c=i??"";return`
177
177
  color: ${n};
178
178
  cursor: ${e?"pointer":"inherit"};
179
- font-size: ${Co(a)};
179
+ font-size: ${So(a)};
180
180
  line-height: 0;
181
181
  vertical-align: middle;
182
182
  pointer-events: inherit;
@@ -184,7 +184,7 @@
184
184
 
185
185
  > svg {
186
186
  --fa-secondary-color: ${l};
187
- transform: ${i===void 0?"":`rotate(${i}deg)`};
187
+ transform: ${r===void 0?"":`rotate(${r}deg)`};
188
188
  }
189
189
 
190
190
  .fill-gradient-01 path {
@@ -208,7 +208,7 @@
208
208
  &:hover:not([disabled]) {
209
209
  transform: scale(1.2);
210
210
  }
211
- `;const D=u.forwardRef(function({clickable:n,disabled:o,hoverColor:r,icon:i,iconClass:a="",iconColor:l,iconMask:s,iconSize:c,iconTransform:p,iconType:d="fa-solid",onClick:g,rotation:x,spanClass:h,secondaryColor:b,...w},$){return t.jsx(So,{$clickable:n,$color:l,$disabled:o,$hoverColor:r,$rotation:x,$secondaryColor:b,$size:c,className:h,"data-testid":`${i}-icon`,onClick:g,ref:$,...w,children:t.jsx("i",{className:`${d} fa-${i} ${a}`,...s!==void 0?{"data-fa-mask":s}:{},...p!==void 0?{"data-fa-transform":p}:{}})},`${d}-${i}`)}),zo=u.forwardRef(function({aligned:n="end",items:o,bgColor:r},i){const a=f.useTheme(),[l,s]=u.useState(o.map(p=>p.expanded??!1)),c=u.useCallback(p=>d=>{d.preventDefault(),s(g=>g.map((x,h)=>h===p?!x:x))},[]);return t.jsx(m,{borderColor:a.palette.gray[200],borderTop:"1px solid",ref:i,children:o.map((p,d)=>{const g=l[d];return t.jsxs(m,{bgColor:r??a.palette.white,borderBottom:"1px solid",borderColor:a.palette.gray[200],children:[t.jsx(m,{"aria-controls":`panel-${p.title}`,"aria-expanded":g,"aria-label":p.title,as:"button",bgColor:r??a.palette.white,bgColorHover:a.palette.gray[100],cursor:"pointer",display:"flex",onClick:c(d),padding:[.875,.875,.875,.875],width:"100%",children:t.jsxs(m,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(R,{color:a.palette.gray[800],fontWeight:"bold",size:"md",textAlign:"start",children:p.title}),t.jsx(D,{icon:g?"chevron-up":"chevron-down",iconColor:a.palette.gray[400],iconSize:"lg",iconType:"fa-light"})]})}),g&&t.jsx(Lt,{item:p})]},p.title)})})}),To=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:Io}=Q(e=>({error:`
211
+ `;const D=u.forwardRef(function({clickable:n,disabled:o,hoverColor:i,icon:r,iconClass:a="",iconColor:l,iconMask:s,iconSize:c,iconTransform:p,iconType:d="fa-solid",onClick:g,rotation:x,spanClass:h,secondaryColor:b,...w},$){return t.jsx(zo,{$clickable:n,$color:l,$disabled:o,$hoverColor:i,$rotation:x,$secondaryColor:b,$size:c,className:h,"data-testid":`${r}-icon`,onClick:g,ref:$,...w,children:t.jsx("i",{className:`${d} fa-${r} ${a}`,...s!==void 0?{"data-fa-mask":s}:{},...p!==void 0?{"data-fa-transform":p}:{}})},`${d}-${r}`)}),To=u.forwardRef(function({aligned:n="end",items:o,bgColor:i},r){const a=f.useTheme(),[l,s]=u.useState(o.map(p=>p.expanded??!1)),c=u.useCallback(p=>d=>{d.preventDefault(),s(g=>g.map((x,h)=>h===p?!x:x))},[]);return t.jsx(m,{borderColor:a.palette.gray[200],borderTop:"1px solid",ref:r,children:o.map((p,d)=>{const g=l[d];return t.jsxs(m,{bgColor:i??a.palette.white,borderBottom:"1px solid",borderColor:a.palette.gray[200],children:[t.jsx(m,{"aria-controls":`panel-${p.title}`,"aria-expanded":g,"aria-label":p.title,as:"button",bgColor:i??a.palette.white,bgColorHover:a.palette.gray[100],cursor:"pointer",display:"flex",onClick:c(d),padding:[.875,.875,.875,.875],width:"100%",children:t.jsxs(m,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(R,{color:a.palette.gray[800],fontWeight:"bold",size:"md",textAlign:"start",children:p.title}),t.jsx(D,{icon:g?"chevron-up":"chevron-down",iconColor:a.palette.gray[400],iconSize:"lg",iconType:"fa-light"})]})}),g&&t.jsx(Lt,{item:p})]},p.title)})})}),Io=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:Eo}=ee(e=>({error:`
212
212
  background: ${e.palette.error[50]};
213
213
  border: 1px solid ${e.palette.error[500]};
214
214
  color: ${e.palette.error[700]};
@@ -260,7 +260,7 @@
260
260
  color: ${e.palette.warning[700]};
261
261
  }
262
262
  }
263
- `})),Eo=f.styled.div`
263
+ `})),Ro=f.styled.div`
264
264
  ${({theme:e,$variant:n})=>`
265
265
  background: transparent;
266
266
  align-items: center;
@@ -280,12 +280,12 @@
280
280
  background-color: transparent;
281
281
  }
282
282
 
283
- ${Io(e,n??"error")}
283
+ ${Eo(e,n??"error")}
284
284
  `}
285
- `,Ro=f.styled.div`
285
+ `,Do=f.styled.div`
286
286
  padding-right: 4px;
287
287
  width: 100%;
288
- `,{getVariant:Do}=Q(e=>({ghost:`
288
+ `,{getVariant:Fo}=ee(e=>({ghost:`
289
289
  background: transparent;
290
290
  border: none;
291
291
  color: ${e.palette.gray[800]};
@@ -381,13 +381,13 @@
381
381
  ${o!=="link"?`--btn-padding-y: ${e.spacing[1]}`:""};
382
382
  }
383
383
 
384
- ${Do(e,o??"primary")}
384
+ ${Fo(e,o??"primary")}
385
385
  `}
386
- `,Fo=f.styled(At)`
387
- ${({theme:e,disabled:n,borderRadius:o="4px",px:r=.5,py:i=.5,$variant:a})=>`
386
+ `,No=f.styled(At)`
387
+ ${({theme:e,disabled:n,borderRadius:o="4px",px:i=.5,py:r=.5,$variant:a})=>`
388
388
  --btn-spacing: ${o};
389
- --btn-padding-x: ${e.spacing[r]};
390
- --btn-padding-y: ${e.spacing[i]};
389
+ --btn-padding-x: ${e.spacing[i]};
390
+ --btn-padding-y: ${e.spacing[r]};
391
391
 
392
392
  align-items: center;
393
393
  line-height: 0;
@@ -399,7 +399,7 @@
399
399
  ${n?`color: ${e.palette.gray[300]};`:""}
400
400
  }
401
401
  `}
402
- `,No=f.styled(ze)``,Lo=f.styled.div`
402
+ `,Lo=f.styled(ze)``,Ao=f.styled.div`
403
403
  ${({theme:e,$maxWidth:n="320px"})=>`
404
404
  background-color: ${e.palette.gray[700]};
405
405
  border-radius: 8px;
@@ -410,7 +410,7 @@
410
410
  width: max-content;
411
411
  z-index: 999999;
412
412
  `}
413
- `,Ao=f.styled.div`
413
+ `,Po=f.styled.div`
414
414
  position: absolute;
415
415
  width: 16px;
416
416
  height: 8px;
@@ -435,7 +435,7 @@
435
435
  left: 50%;
436
436
  transform: translateX(-50%) rotate(180deg);
437
437
  `}}}
438
- `,K=({children:e,disabled:n=!1,display:o="inline-block",height:r,icon:i,iconColor:a,iconSize:l,id:s,maxWidth:c,nodeTip:p,place:d="bottom",tip:g="",title:x="",hide:h=g===""&&x===""&&p===void 0,width:b})=>{const w=f.useTheme(),[$,S]=u.useState(!1),{refs:C,floatingStyles:j,context:v,placement:k}=y.useFloating({middleware:[y.flip({fallbackAxisSideDirection:"start"}),y.offset({mainAxis:10}),y.shift()],onOpenChange:S,open:$,placement:d,whileElementsMounted:y.autoUpdate}),z=y.useHover(v,{delay:{close:0,open:500},move:!1}),F=y.useFocus(v),I=y.useRole(v,{role:i?"label":"tooltip"}),{getReferenceProps:E,getFloatingProps:T}=y.useInteractions([z,F,I]),A=u.useMemo(()=>k.startsWith("top")?"top":k.startsWith("bottom")?"bottom":k.startsWith("left")?"left":k.startsWith("right")?"right":"bottom",[k]);return n?t.jsx(u.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(No,{...E(),display:o,height:r,id:s,ref:C.setReference,width:b,children:i?t.jsx(D,{clickable:!0,disabled:n,icon:i,iconColor:a,iconSize:l??"sm",iconType:$?"fa-solid":"fa-light"}):e}),$&&!h&&le.createPortal(t.jsxs(Lo,{...T(),$maxWidth:c,id:`floating-${s}`,ref:C.setFloating,style:j,children:[y.lodashExports.isEmpty(x)?void 0:t.jsx(R,{color:w.palette.white,fontWeight:"bold",mb:.25,size:"sm",textAlign:"start",wordWrap:"break-word",children:x}),y.lodashExports.isEmpty(g)?void 0:t.jsx(R,{color:w.palette.gray[100],size:"sm",textAlign:"start",whiteSpace:"normal",wordWrap:"break-word",children:g}),y.lodashExports.isEmpty(p)?void 0:p,t.jsx(Ao,{$placement:A,children:t.jsx("svg",{fill:"none",height:"8",viewBox:"0 0 16 8",width:"16",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16 0L0 0L6.58579 6.58579C7.36684 7.36684 8.63317 7.36684 9.41421 6.58579L16 0Z",fill:w.palette.gray[700]})})})]}),document.getElementById("root")??document.body)]})},H=u.forwardRef(function({borderRadius:n,disabled:o,icon:r,iconColor:i,iconSize:a="sm",iconTransform:l,iconType:s,id:c,justify:p="center",onClick:d,px:g,py:x,type:h="button",tooltip:b,tooltipPlace:w,value:$,variant:S="primary",...C},j){const v=t.jsx(Fo,{$variant:S,"aria-disabled":o,"aria-label":c,borderRadius:n,disabled:o,id:c,justify:p,onClick:d,px:g,py:x,ref:j,type:h,value:$,...C,children:t.jsx(D,{clickable:!1,icon:r,iconColor:i,iconSize:a,iconTransform:l,iconType:s})}),z=(h+(S??"")+(c??r)).replace(/ /u,"_");return b===void 0?v:t.jsx(K,{id:`${z}-tooltip`,place:w,tip:b,children:v})}),Po=u.forwardRef(function({autoHide:n=!1,children:o,closable:r=!1,iconEnabled:i=!0,onTimeOut:a,show:l=!0,time:s=8,variant:c="error",id:p,...d},g){const[x,h]=u.useState(l),b=u.useCallback(()=>{h(!1)},[]);return u.useEffect(()=>{const w=setTimeout(()=>{a==null||a(!0),n&&b()},s*1e3);return()=>{clearTimeout(w)}},[n,b,s,a]),u.useEffect(()=>{h(l)},[l,h]),t.jsx(m,{display:x?"block":"none",ref:g,role:"alert",...d,children:t.jsxs(Eo,{$variant:c,id:p,children:[i?t.jsx(D,{clickable:!1,icon:To(c),iconSize:"lg",iconType:"fa-light"}):void 0,t.jsx(Ro,{children:o}),r?t.jsx(H,{height:"fit-content",icon:"close",iconSize:"lg",iconType:"fa-light",onClick:b,px:.125,py:.125,variant:"ghost"}):void 0]})})}),$t=f.styled.div`
438
+ `,K=({children:e,disabled:n=!1,display:o="inline-block",height:i,icon:r,iconColor:a,iconSize:l,id:s,maxWidth:c,nodeTip:p,place:d="bottom",tip:g="",title:x="",hide:h=g===""&&x===""&&p===void 0,width:b})=>{const w=f.useTheme(),[$,C]=u.useState(!1),{refs:S,floatingStyles:v,context:j,placement:k}=y.useFloating({middleware:[y.flip({fallbackAxisSideDirection:"start"}),y.offset({mainAxis:10}),y.shift()],onOpenChange:C,open:$,placement:d,whileElementsMounted:y.autoUpdate}),z=y.useHover(j,{delay:{close:0,open:500},move:!1}),F=y.useFocus(j),I=y.useRole(j,{role:r?"label":"tooltip"}),{getReferenceProps:E,getFloatingProps:T}=y.useInteractions([z,F,I]),A=u.useMemo(()=>k.startsWith("top")?"top":k.startsWith("bottom")?"bottom":k.startsWith("left")?"left":k.startsWith("right")?"right":"bottom",[k]);return n?t.jsx(u.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(Lo,{...E(),display:o,height:i,id:s,ref:S.setReference,width:b,children:r?t.jsx(D,{clickable:!0,disabled:n,icon:r,iconColor:a,iconSize:l??"sm",iconType:$?"fa-solid":"fa-light"}):e}),$&&!h&&le.createPortal(t.jsxs(Ao,{...T(),$maxWidth:c,id:`floating-${s}`,ref:S.setFloating,style:v,children:[y.lodashExports.isEmpty(x)?void 0:t.jsx(R,{color:w.palette.white,fontWeight:"bold",mb:.25,size:"sm",textAlign:"start",wordWrap:"break-word",children:x}),y.lodashExports.isEmpty(g)?void 0:t.jsx(R,{color:w.palette.gray[100],size:"sm",textAlign:"start",whiteSpace:"normal",wordWrap:"break-word",children:g}),y.lodashExports.isEmpty(p)?void 0:p,t.jsx(Po,{$placement:A,children:t.jsx("svg",{fill:"none",height:"8",viewBox:"0 0 16 8",width:"16",xmlns:"http://www.w3.org/2000/svg",children:t.jsx("path",{d:"M16 0L0 0L6.58579 6.58579C7.36684 7.36684 8.63317 7.36684 9.41421 6.58579L16 0Z",fill:w.palette.gray[700]})})})]}),document.getElementById("root")??document.body)]})},H=u.forwardRef(function({borderRadius:n,disabled:o,icon:i,iconColor:r,iconSize:a="sm",iconTransform:l,iconType:s,id:c,justify:p="center",onClick:d,px:g,py:x,type:h="button",tooltip:b,tooltipPlace:w,value:$,variant:C="primary",...S},v){const j=t.jsx(No,{$variant:C,"aria-disabled":o,"aria-label":c,borderRadius:n,disabled:o,id:c,justify:p,onClick:d,px:g,py:x,ref:v,type:h,value:$,...S,children:t.jsx(D,{clickable:!1,icon:i,iconColor:r,iconSize:a,iconTransform:l,iconType:s})}),z=(h+(C??"")+(c??i)).replace(/ /u,"_");return b===void 0?j:t.jsx(K,{id:`${z}-tooltip`,place:w,tip:b,children:j})}),Oo=u.forwardRef(function({autoHide:n=!1,children:o,closable:i=!1,iconEnabled:r=!0,onTimeOut:a,show:l=!0,time:s=8,variant:c="error",id:p,...d},g){const[x,h]=u.useState(l),b=u.useCallback(()=>{h(!1)},[]);return u.useEffect(()=>{const w=setTimeout(()=>{a==null||a(!0),n&&b()},s*1e3);return()=>{clearTimeout(w)}},[n,b,s,a]),u.useEffect(()=>{h(l)},[l,h]),t.jsx(m,{display:x?"block":"none",ref:g,role:"alert",...d,children:t.jsxs(Ro,{$variant:c,id:p,children:[r?t.jsx(D,{clickable:!1,icon:Io(c),iconSize:"lg",iconType:"fa-light"}):void 0,t.jsx(Do,{children:o}),i?t.jsx(H,{height:"fit-content",icon:"close",iconSize:"lg",iconType:"fa-light",onClick:b,px:.125,py:.125,variant:"ghost"}):void 0]})})}),$t=f.styled.div`
439
439
  ${({theme:e})=>`
440
440
  align-items: center;
441
441
  background-color: ${e.palette.gray[200]};
@@ -451,7 +451,7 @@
451
451
  width: ${e.spacing[1.25]};
452
452
  height: ${e.spacing[1.25]};
453
453
  `}
454
- `,Oo=f.styled.div`
454
+ `,Mo=f.styled.div`
455
455
  ul,
456
456
  ol {
457
457
  padding-top: 6px;
@@ -515,28 +515,28 @@
515
515
  #menu-profile-container li div {
516
516
  min-width: unset;
517
517
  }
518
- `,Mo=f.styled(ze)`
519
- ${({theme:e,$variant:n,$numberIndicator:o})=>{const r=o!=null&&o>0;return`
518
+ `,Wo=f.styled(ze)`
519
+ ${({theme:e,$variant:n,$numberIndicator:o})=>{const i=o!=null&&o>0;return`
520
520
  align-items: center;
521
521
  background: ${n==="error"?e.palette.primary[400]:e.palette.warning[500]};
522
- border-radius: ${r?"100px":"100%"};
522
+ border-radius: ${i?"100px":"100%"};
523
523
  font-family: ${e.typography.type.primary};
524
524
  justify-content: center;
525
525
  padding: 2px 4px;
526
- position: ${r?"unset":"absolute"};
527
- z-index: ${r?"unset":"11"};
526
+ position: ${i?"unset":"absolute"};
527
+ z-index: ${i?"unset":"11"};
528
528
  max-width: fit-content;
529
- min-width: ${r?e.spacing[1.25]:e.spacing[.5]};
530
- height: ${r?"14px":e.spacing[.5]}};
529
+ min-width: ${i?e.spacing[1.25]:e.spacing[.5]};
530
+ height: ${i?"14px":e.spacing[.5]}};
531
531
  `}}
532
- `,Wo=f.styled.div`
532
+ `,Ho=f.styled.div`
533
533
  align-items: center;
534
534
  color: ${({theme:e})=>e.palette.white};
535
535
  display: flex;
536
536
  font-size: ${({theme:e})=>e.typography.text.sm};
537
537
  font-weight: ${({theme:e})=>e.typography.weight.regular};
538
538
  justify-content: center;
539
- `,Fe=u.forwardRef(function({numberIndicator:n,show:o,variant:r="error",...i},a){return t.jsx(Mo,{$numberIndicator:n,$variant:r,className:o?"flex":"hidden","data-testid":"notification-sign",ref:a,...i,children:n&&t.jsx(Wo,{children:n<=9?n:9})})}),{getVariant:Ho}=Q(e=>({default:`
539
+ `,Fe=u.forwardRef(function({numberIndicator:n,show:o,variant:i="error",...r},a){return t.jsx(Wo,{$numberIndicator:n,$variant:i,className:o?"flex":"hidden","data-testid":"notification-sign",ref:a,...r,children:n&&t.jsx(Ho,{children:n<=9?n:9})})}),{getVariant:Bo}=ee(e=>({default:`
540
540
  background-color: ${e.palette.gray[200]};
541
541
  color: ${e.palette.gray[800]};
542
542
  `,error:`
@@ -611,7 +611,7 @@
611
611
  background-color: ${e.palette.warning[400]};
612
612
  color: ${e.palette.warning[700]};
613
613
  }
614
- `})),Bo=f.styled.span`
614
+ `})),_o=f.styled.span`
615
615
  ${({theme:e,$fontSize:n=e.typography.text.sm,$variant:o})=>`
616
616
  align-items: center;
617
617
  border-radius: ${e.spacing[o==="technique"?1:.25]};
@@ -632,9 +632,9 @@
632
632
  display: flex;
633
633
  }
634
634
 
635
- ${Ho(e,o)}
635
+ ${Bo(e,o)}
636
636
  `}
637
- `,{getVariant:_o}=Q(e=>({highRelevance:`
637
+ `,{getVariant:Vo}=ee(e=>({highRelevance:`
638
638
  color: ${e.palette.primary[500]};
639
639
 
640
640
  &:hover:not([disabled]) {
@@ -647,7 +647,7 @@
647
647
  color: ${e.palette.gray[500]};
648
648
  }
649
649
  `})),Pt=f.css`
650
- ${({theme:e,$color:n,$variant:o,$wrap:r})=>`
650
+ ${({theme:e,$color:n,$variant:o,$wrap:i})=>`
651
651
  align-items: center;
652
652
  cursor: pointer;
653
653
  font-family: ${e.typography.type.primary};
@@ -656,7 +656,7 @@
656
656
  gap: ${e.spacing[.25]};
657
657
  line-height: ${e.spacing[1.25]};
658
658
  text-decoration: underline;
659
- ${r?`
659
+ ${i?`
660
660
  word-break: normal;
661
661
  word-wrap: normal;
662
662
  `:`
@@ -673,13 +673,13 @@
673
673
  text-decoration: none;
674
674
  }
675
675
 
676
- ${n?`color: ${n}`:_o(e,o)}
676
+ ${n?`color: ${n}`:Vo(e,o)}
677
677
  `}
678
- `,Vo=f.styled.a`
678
+ `,Uo=f.styled.a`
679
679
  ${Pt}
680
- `,Uo=f.styled(Ge.Link)`
680
+ `,Go=f.styled(Ge.Link)`
681
681
  ${Pt}
682
- `,te=({children:e,color:n,download:o,href:r,iconPosition:i="right",onClick:a,target:l,variant:s="lowRelevance",wrap:c=!1})=>{const p=r.startsWith("https://"),d=t.jsx(D,{icon:o===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"sm",iconType:"fa-light",ml:.25,mr:.25});return p?t.jsxs(Vo,{$color:n,$variant:s,$wrap:c,download:o,href:r,onClick:a,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[i==="left"?d:void 0,e,i==="right"?d:void 0]}):t.jsxs(Uo,{$variant:s,$wrap:c,download:o,onClick:a,rel:"nofollow noopener noreferrer",target:l,to:r,children:[l!==void 0&&i==="left"?d:void 0,e,l!==void 0&&i==="right"?d:void 0]})},X=({disabled:e,icon:n,iconColor:o="inherit",iconType:r="fa-light",id:i="close-tag",filterValues:a="",fontSize:l,href:s,linkLabel:c,onClose:p,priority:d="default",tagTitle:g="",tagLabel:x,variant:h="default"})=>{const b=x.length>25&&y.lodashExports.isEmpty(g+a),w=`${x.slice(0,25)}...`;return t.jsxs(he,{className:"gap-0.5",display:s===void 0?"initial":"flex",size:"md",children:[t.jsxs(Bo,{$fontSize:l,$variant:h,className:d,children:[n&&t.jsx(D,{icon:n,iconColor:o,iconSize:"sm",iconType:r}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:g}),t.jsx("span",{children:b?w:x}),t.jsx("strong",{className:"w-full",children:a})]}),p?t.jsx(H,{disabled:e,icon:"xmark",iconSize:"sm",iconType:"fa-light",id:i,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),s===void 0?void 0:t.jsx(te,{href:s,children:c})]})},Ot=(e,n=!0)=>{const o=window.open(e,n?void 0:"_self","noopener,noreferrer,");y.lodashExports.isObject(o)&&(o.opener=null)},M=u.forwardRef(function({children:n,disabled:o=!1,external:r=!1,href:i,id:a,icon:l,iconColor:s,iconType:c,name:p,dotNotification:d,notification:g,onClick:x,rightIcon:h,tag:b,type:w="button",tooltip:$,tooltipPlace:S="bottom",underline:C=!1,value:j,variant:v="primary",width:k,...z},F){const I=$!==void 0,E=`${a}-tooltip`,T=u.useCallback(()=>{i&&Ot(i,r)},[r,i]),A=t.jsxs(At,{$variant:v,"aria-disabled":o,className:C?"underline":void 0,disabled:o,id:a,name:p,onClick:v==="link"?T:x,ref:F,type:w,value:j,width:k,...I?{"data-tooltip-id":E}:{},...z,children:[d&&v==="ghost"&&!o?t.jsx(Fe,{left:l!==void 0?"13%":"1%",show:!0,top:"20%",variant:"error"}):void 0,l!==void 0&&t.jsx(D,{icon:l,iconColor:s??void 0,iconSize:"lg",iconType:c??"fa-light"}),n,h||v==="link"?t.jsx(D,{icon:h??"arrow-right",iconSize:"lg",iconType:"fa-light"}):void 0,b===void 0||o?null:t.jsx(X,{tagLabel:b,variant:"default"}),g!==void 0&&v==="ghost"&&!o?t.jsx(Fe,{numberIndicator:g,show:!0,variant:"error"}):void 0]});return I?t.jsx(K,{disabled:!I,id:E,place:S,tip:$,width:k,children:A}):A}),Go=u.forwardRef(function({children:n,onClick:o,userName:r,showIcon:i=!1,showUsername:a=!1},l){const s=!!o,c=f.useTheme();return t.jsx(m,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs(m,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[s?t.jsxs(M,{onClick:o,px:.5,py:.5,variant:"ghost",children:[t.jsx($t,{children:r[0].toUpperCase()}),a?t.jsx(R,{color:c.palette.gray[800],display:"inline",ml:.5,size:"md",children:r.split(" ")[0]}):void 0,i?t.jsx(D,{clickable:!1,icon:"ellipsis-v",iconSize:"xs",ml:.5}):void 0]}):t.jsxs(m,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx($t,{children:r[0].toUpperCase()}),a?t.jsxs(R,{color:c.palette.gray[800],display:"inline",ml:.5,size:"md",children:["Hi ",r.split(" ")[0],"!"]}):void 0,i?t.jsx(D,{clickable:!1,icon:"ellipsis-v",iconSize:"xs",ml:.5}):void 0]}),t.jsx(Oo,{children:n})]})})}),Ae=({authorEmail:e,date:n,description:o,descriptionColor:r,id:i,title:a,titleColor:l,textAlign:s,textSpacing:c=0,tooltip:p})=>{const d=f.useTheme();return t.jsxs(m,{width:"100%",children:[typeof a=="string"||p?t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.5,width:"100%",children:[typeof a=="string"?t.jsx(R,{color:l??d.palette.gray[800],fontWeight:"bold",mb:c,size:"md",textAlign:s,wordBreak:"break-word",children:a}):a,p&&t.jsx(K,{icon:"circle-info",id:i,place:"top",tip:p})]}):void 0,t.jsxs(m,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[o&&t.jsx(R,{color:r??d.palette.gray[800],fontWeight:o===void 0?"bold":"regular",size:"md",textAlign:s,wordBreak:"break-word",children:o}),n&&t.jsx(R,{color:d.palette.gray[800],fontWeight:"bold",size:"md",textAlign:s,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(R,{color:d.palette.gray[800],fontWeight:"bold",size:"md",textAlign:s,wordBreak:"break-word",children:`Author: ${e}`})]})]})},mt=f.styled(m).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
682
+ `,te=({children:e,color:n,download:o,href:i,iconPosition:r="right",onClick:a,target:l,variant:s="lowRelevance",wrap:c=!1})=>{const p=i.startsWith("https://"),d=t.jsx(D,{icon:o===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"sm",iconType:"fa-light",ml:.25,mr:.25});return p?t.jsxs(Uo,{$color:n,$variant:s,$wrap:c,download:o,href:i,onClick:a,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?d:void 0,e,r==="right"?d:void 0]}):t.jsxs(Go,{$variant:s,$wrap:c,download:o,onClick:a,rel:"nofollow noopener noreferrer",target:l,to:i,children:[l!==void 0&&r==="left"?d:void 0,e,l!==void 0&&r==="right"?d:void 0]})},J=({disabled:e,icon:n,iconColor:o="inherit",iconType:i="fa-light",id:r="close-tag",filterValues:a="",fontSize:l,href:s,linkLabel:c,onClose:p,priority:d="default",tagTitle:g="",tagLabel:x,variant:h="default"})=>{const b=x.length>25&&y.lodashExports.isEmpty(g+a),w=`${x.slice(0,25)}...`;return t.jsxs(he,{className:"gap-0.5",display:s===void 0?"initial":"flex",size:"md",children:[t.jsxs(_o,{$fontSize:l,$variant:h,className:d,children:[n&&t.jsx(D,{icon:n,iconColor:o,iconSize:"sm",iconType:i}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:g}),t.jsx("span",{children:b?w:x}),t.jsx("strong",{className:"w-full",children:a})]}),p?t.jsx(H,{disabled:e,icon:"xmark",iconSize:"sm",iconType:"fa-light",id:r,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),s===void 0?void 0:t.jsx(te,{href:s,children:c})]})},Ot=(e,n=!0)=>{const o=window.open(e,n?void 0:"_self","noopener,noreferrer,");y.lodashExports.isObject(o)&&(o.opener=null)},M=u.forwardRef(function({children:n,disabled:o=!1,external:i=!1,href:r,id:a,icon:l,iconColor:s,iconType:c,name:p,dotNotification:d,notification:g,onClick:x,rightIcon:h,tag:b,type:w="button",tooltip:$,tooltipPlace:C="bottom",underline:S=!1,value:v,variant:j="primary",width:k,...z},F){const I=$!==void 0,E=`${a}-tooltip`,T=u.useCallback(()=>{r&&Ot(r,i)},[i,r]),A=t.jsxs(At,{$variant:j,"aria-disabled":o,className:S?"underline":void 0,disabled:o,id:a,name:p,onClick:j==="link"?T:x,ref:F,type:w,value:v,width:k,...I?{"data-tooltip-id":E}:{},...z,children:[d&&j==="ghost"&&!o?t.jsx(Fe,{left:l!==void 0?"13%":"1%",show:!0,top:"20%",variant:"error"}):void 0,l!==void 0&&t.jsx(D,{icon:l,iconColor:s??void 0,iconSize:"lg",iconType:c??"fa-light"}),n,h||j==="link"?t.jsx(D,{icon:h??"arrow-right",iconSize:"lg",iconType:"fa-light"}):void 0,b===void 0||o?null:t.jsx(J,{tagLabel:b,variant:"default"}),g!==void 0&&j==="ghost"&&!o?t.jsx(Fe,{numberIndicator:g,show:!0,variant:"error"}):void 0]});return I?t.jsx(K,{disabled:!I,id:E,place:C,tip:$,width:k,children:A}):A}),Yo=u.forwardRef(function({children:n,onClick:o,userName:i,showIcon:r=!1,showUsername:a=!1},l){const s=!!o,c=f.useTheme();return t.jsx(m,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs(m,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[s?t.jsxs(M,{onClick:o,px:.5,py:.5,variant:"ghost",children:[t.jsx($t,{children:i[0].toUpperCase()}),a?t.jsx(R,{color:c.palette.gray[800],display:"inline",ml:.5,size:"md",children:i.split(" ")[0]}):void 0,r?t.jsx(D,{clickable:!1,icon:"ellipsis-v",iconSize:"xs",ml:.5}):void 0]}):t.jsxs(m,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx($t,{children:i[0].toUpperCase()}),a?t.jsxs(R,{color:c.palette.gray[800],display:"inline",ml:.5,size:"md",children:["Hi ",i.split(" ")[0],"!"]}):void 0,r?t.jsx(D,{clickable:!1,icon:"ellipsis-v",iconSize:"xs",ml:.5}):void 0]}),t.jsx(Mo,{children:n})]})})}),Ae=({authorEmail:e,date:n,description:o,descriptionColor:i,id:r,title:a,titleColor:l,textAlign:s,textSpacing:c=0,tooltip:p})=>{const d=f.useTheme();return t.jsxs(m,{width:"100%",children:[typeof a=="string"||p?t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.5,width:"100%",children:[typeof a=="string"?t.jsx(R,{color:l??d.palette.gray[800],fontWeight:"bold",mb:c,size:"md",textAlign:s,wordBreak:"break-word",children:a}):a,p&&t.jsx(K,{icon:"circle-info",id:r,place:"top",tip:p})]}):void 0,t.jsxs(m,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[o&&t.jsx(R,{color:i??d.palette.gray[800],fontWeight:o===void 0?"bold":"regular",size:"md",textAlign:s,wordBreak:"break-word",children:o}),n&&t.jsx(R,{color:d.palette.gray[800],fontWeight:"bold",size:"md",textAlign:s,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(R,{color:d.palette.gray[800],fontWeight:"bold",size:"md",textAlign:s,wordBreak:"break-word",children:`Author: ${e}`})]})]})},mt=f.styled(m).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
683
683
  & img {
684
684
  display: block;
685
685
  }
@@ -694,8 +694,8 @@
694
694
  pointer-events: none;
695
695
  ${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
696
696
  }
697
- `,Yo=e=>{if(y._.isNil(e))return"";const n=e.split(".");return(n.length>1?y._.last(n):"").toLowerCase()},Ko=(e,n)=>y._.isUndefined(n)?!1:y._.includes(e,Yo(n)),Mt=({alt:e,fileType:n,width:o="100%",opacity:r=0,src:i,height:a="auto",videoViewStatus:l})=>{const[s,c]=u.useState({start:!1,half:!1,end:!1}),p=u.useCallback(d=>{if(!l)return;const g=d.target,x=g.currentTime/g.duration*100;x>5&&x<50?(s.start||l("start"),c({start:!0,half:!1,end:!1})):x>=50&&x<99?(s.half||l("half"),c({start:!0,half:!0,end:!1})):x>=99?(s.end||l("end"),c({start:!0,half:!0,end:!0})):c({start:!1,half:!1,end:!1})},[l,s]);return n==="video"||Ko(["webm"],i)?t.jsx(mt,{$opacity:r,children:t.jsx(te,{href:i,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:p,style:{height:a,width:o},children:[t.jsx("source",{src:i,type:"video/webm"}),i]})})}):t.jsx(mt,{$opacity:r,children:t.jsx("img",{alt:e,src:i,style:{height:a,width:o}})})},Zo=({alt:e,authorEmail:n,date:o,description:r,src:i,children:a,isEditing:l,onClick:s,title:c,hideDescription:p=!1,headerType:d="image",showMaximize:g=!0,videoViewStatus:x})=>{const h=f.useTheme(),[b,w]=u.useState(!1),$=u.useCallback(()=>{w(!0)},[]),S=u.useCallback(()=>{w(!1)},[]);return t.jsxs(m,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:$,onLeave:S,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(m,{bgColor:h.palette.black,borderRadius:h.spacing[.25],cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:s,position:"relative",width:"100%",children:a===void 0?t.jsxs(tt.default.Fragment,{children:[t.jsx(Mt,{alt:e,fileType:d,height:"147px",opacity:b?.3:0,src:i,videoViewStatus:x,width:"100%"}),g?t.jsx(m,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(H,{color:"white",icon:"arrows-maximize",iconSize:"sm",iconType:"fa-light",variant:"secondary"})}):void 0]}):a}),p?null:t.jsx(Ae,{authorEmail:n,date:o,description:r,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:c})]})},qo=f.styled.div`
698
- ${({theme:e,$align:n="center",$minWidth:o="auto",$minHeight:r="auto"})=>`
697
+ `,Ko=e=>{if(y._.isNil(e))return"";const n=e.split(".");return(n.length>1?y._.last(n):"").toLowerCase()},qo=(e,n)=>y._.isUndefined(n)?!1:y._.includes(e,Ko(n)),Mt=({alt:e,fileType:n,width:o="100%",opacity:i=0,src:r,height:a="auto",videoViewStatus:l})=>{const[s,c]=u.useState({start:!1,half:!1,end:!1}),p=u.useCallback(d=>{if(!l)return;const g=d.target,x=g.currentTime/g.duration*100;x>5&&x<50?(s.start||l("start"),c({start:!0,half:!1,end:!1})):x>=50&&x<99?(s.half||l("half"),c({start:!0,half:!0,end:!1})):x>=99?(s.end||l("end"),c({start:!0,half:!0,end:!0})):c({start:!1,half:!1,end:!1})},[l,s]);return n==="video"||qo(["webm"],r)?t.jsx(mt,{$opacity:i,children:t.jsx(te,{href:r,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:p,style:{height:a,width:o},children:[t.jsx("source",{src:r,type:"video/webm"}),r]})})}):t.jsx(mt,{$opacity:i,children:t.jsx("img",{alt:e,src:r,style:{height:a,width:o}})})},Zo=({alt:e,authorEmail:n,date:o,description:i,src:r,children:a,isEditing:l,onClick:s,title:c,hideDescription:p=!1,headerType:d="image",showMaximize:g=!0,videoViewStatus:x})=>{const h=f.useTheme(),[b,w]=u.useState(!1),$=u.useCallback(()=>{w(!0)},[]),C=u.useCallback(()=>{w(!1)},[]);return t.jsxs(m,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:$,onLeave:C,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(m,{bgColor:h.palette.black,borderRadius:h.spacing[.25],cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:s,position:"relative",width:"100%",children:a===void 0?t.jsxs(tt.default.Fragment,{children:[t.jsx(Mt,{alt:e,fileType:d,height:"147px",opacity:b?.3:0,src:r,videoViewStatus:x,width:"100%"}),g?t.jsx(m,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(H,{color:"white",icon:"arrows-maximize",iconSize:"sm",iconType:"fa-light",variant:"secondary"})}):void 0]}):a}),p?null:t.jsx(Ae,{authorEmail:n,date:o,description:i,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:c})]})},Xo=f.styled.div`
698
+ ${({theme:e,$align:n="center",$minWidth:o="auto",$minHeight:i="auto"})=>`
699
699
  display: flex;
700
700
  background-color: ${e.palette.white};
701
701
  border-radius: ${e.spacing[.25]};
@@ -704,7 +704,7 @@
704
704
  justify-content: center;
705
705
  gap: ${e.spacing[.5]};
706
706
  min-width: ${o};
707
- min-height: ${r};
707
+ min-height: ${i};
708
708
  padding: ${e.spacing[1]};
709
709
 
710
710
  input {
@@ -713,7 +713,7 @@
713
713
  text-align: ${n};
714
714
  }
715
715
  `}
716
- `,it=({htmlFor:e,label:n,link:o,required:r,tooltip:i,weight:a="normal"})=>{const l=f.useTheme(),s=`${e}-tooltip`,c=i!==void 0&&!y.lodashExports.isEmpty(i);return t.jsxs("label",{className:"flex gap-1 w-full",htmlFor:e,style:{fontFamily:l.typography.type.primary,fontWeight:l.typography.weight[a]},children:[n,r&&t.jsx(D,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xs",spanClass:"required-icon"}),c?t.jsx(K,{display:"inline-flex",icon:"circle-info",id:s,place:"top",tip:i}):null,o?t.jsx(te,{href:o,target:"_blank"}):null]})},Xo=f.styled.div`
716
+ `,rt=({htmlFor:e,label:n,link:o,required:i,tooltip:r,weight:a="normal"})=>{const l=f.useTheme(),s=`${e}-tooltip`,c=r!==void 0&&!y.lodashExports.isEmpty(r);return t.jsxs("label",{className:"flex gap-1 w-full",htmlFor:e,style:{fontFamily:l.typography.type.primary,fontWeight:l.typography.weight[a]},children:[n,i&&t.jsx(D,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xs",spanClass:"required-icon"}),c?t.jsx(K,{display:"inline-flex",icon:"circle-info",id:s,place:"top",tip:r}):null,o?t.jsx(te,{href:o,target:"_blank"}):null]})},Jo=f.styled.div`
717
717
  ${({theme:e})=>`
718
718
  align-items: flex-start;
719
719
  display: inline-flex;
@@ -760,7 +760,7 @@
760
760
  line-height: ${e.spacing[1.25]};
761
761
  }
762
762
  `}
763
- `,q=f.styled.div`
763
+ `,Z=f.styled.div`
764
764
  ${({theme:e,$overflowX:n,$variant:o})=>`
765
765
  align-items: center;
766
766
  display: flex;
@@ -868,21 +868,21 @@
868
868
  border: 1px solid ${e.palette.gray[600]};
869
869
  }
870
870
  `}
871
- `,Jo=f.styled.div`
871
+ `,Qo=f.styled.div`
872
872
  height: 1px;
873
873
  background-color: ${({theme:e})=>e.palette.gray[300]};
874
874
  flex-shrink: 0;
875
875
  transition: background-color 0.2s ease;
876
876
 
877
- ${q}:hover:not(:focus-within, .disabled, .error, .success) & {
877
+ ${Z}:hover:not(:focus-within, .disabled, .error, .success) & {
878
878
  background-color: ${({theme:e})=>e.palette.gray[600]};
879
879
  transition: none;
880
880
  }
881
881
 
882
- ${q}:focus-within:not(.disabled, .error) & {
882
+ ${Z}:focus-within:not(.disabled, .error) & {
883
883
  border: 1px solid ${({theme:e})=>e.palette.black};
884
884
  }
885
- `,Qo=f.styled.div`
885
+ `,ei=f.styled.div`
886
886
  ${({theme:e,$show:n})=>`
887
887
  align-items: center;
888
888
  align-self: stretch;
@@ -895,7 +895,7 @@
895
895
  line-height: 18px;
896
896
  text-align: left;
897
897
  `}
898
- `,Y=({children:e,disabled:n,id:o,error:r,helpLink:i,helpLinkText:a="Link here",helpText:l,htmlFor:s,label:c,linkPosition:p="down",maxLength:d,required:g,tooltip:x,value:h,weight:b})=>{const w=f.useTheme(),$=h?h.length:0;return t.jsxs(Xo,{id:o,children:[c===void 0?void 0:t.jsx(it,{htmlFor:s,label:c,link:p==="up"?i:void 0,required:g,tooltip:x,weight:b}),e,r||d?t.jsxs(m,{display:"flex",justify:r===void 0?"end":"space-between",width:"100%",children:[r&&t.jsx(R,{className:"error-msg",color:w.palette.error[500],display:"block",size:"md",children:r}),d&&t.jsx(X,{priority:"low",tagLabel:`${$}/${d}`,variant:n?"inactive":"error"})]}):void 0,l||i?t.jsxs(m,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[l&&t.jsxs(t.Fragment,{children:[t.jsx(D,{icon:"circle-info",iconColor:w.palette.gray[400],iconSize:"sm",iconType:"fa-light"}),t.jsx(R,{color:w.palette.gray[400],display:"inline-block",size:"md",children:l})]}),i&&p==="down"?t.jsx(te,{href:i,children:a}):void 0]}):void 0]})},Te=({className:e,children:n,isFilter:o=!1,popoverRef:r,state:i,triggerRef:a,...l})=>{var x;const s=f.useTheme(),c=u.useRef(null),p=(x=a==null?void 0:a.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:d}=y.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:r??c,triggerRef:a,isNonModal:r?!0:void 0,shouldFlip:e==="dropdown"},i),g=u.useCallback(h=>{h.preventDefault()},[]);return t.jsx(y.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...d,className:e,id:"popover",onPointerDown:o?g:void 0,ref:r??c,style:{...d.style,maxHeight:300,overflowY:"auto",scrollbarColor:`${s.palette.gray[600]} ${s.palette.gray[100]}`,scrollPadding:s.spacing[.5],...e==="dropdown"?{display:"flex",justifyContent:"center",width:p==null?void 0:p.width}:{}},children:n})})},er=f.styled.ul`
898
+ `,Y=({children:e,disabled:n,id:o,error:i,helpLink:r,helpLinkText:a="Link here",helpText:l,htmlFor:s,label:c,linkPosition:p="down",maxLength:d,required:g,tooltip:x,value:h,weight:b})=>{const w=f.useTheme(),$=h?h.length:0;return t.jsxs(Jo,{id:o,children:[c===void 0?void 0:t.jsx(rt,{htmlFor:s,label:c,link:p==="up"?r:void 0,required:g,tooltip:x,weight:b}),e,i||d?t.jsxs(m,{display:"flex",justify:i===void 0?"end":"space-between",width:"100%",children:[i&&t.jsx(R,{className:"error-msg",color:w.palette.error[500],display:"block",size:"md",children:i}),d&&t.jsx(J,{priority:"low",tagLabel:`${$}/${d}`,variant:n?"inactive":"error"})]}):void 0,l||r?t.jsxs(m,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[l&&t.jsxs(t.Fragment,{children:[t.jsx(D,{icon:"circle-info",iconColor:w.palette.gray[400],iconSize:"sm",iconType:"fa-light"}),t.jsx(R,{color:w.palette.gray[400],display:"inline-block",size:"md",children:l})]}),r&&p==="down"?t.jsx(te,{href:r,children:a}):void 0]}):void 0]})},Te=({className:e,children:n,isFilter:o=!1,popoverRef:i,state:r,triggerRef:a,...l})=>{var x;const s=f.useTheme(),c=u.useRef(null),p=(x=a==null?void 0:a.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:d}=y.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:i??c,triggerRef:a,isNonModal:i?!0:void 0,shouldFlip:e==="dropdown"},r),g=u.useCallback(h=>{h.preventDefault()},[]);return t.jsx(y.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...d,className:e,id:"popover",onPointerDown:o?g:void 0,ref:i??c,style:{...d.style,maxHeight:300,overflowY:"auto",scrollbarColor:`${s.palette.gray[600]} ${s.palette.gray[100]}`,scrollPadding:s.spacing[.5],...e==="dropdown"?{display:"flex",justifyContent:"center",width:p==null?void 0:p.width}:{}},children:n})})},ti=f.styled.ul`
899
899
  ${({theme:e,$multiSelection:n,$width:o})=>`
900
900
  align-self: center;
901
901
  background: ${e.palette.white};
@@ -915,7 +915,7 @@
915
915
  border-bottom: ${n?`1px solid ${e.palette.gray[200]}`:"unset"};
916
916
  }
917
917
  `}
918
- `,tr=f.styled.li`
918
+ `,ni=f.styled.li`
919
919
  ${({theme:e,$multiSelection:n})=>`
920
920
  align-items: center;
921
921
  color: ${e.palette.gray[800]};
@@ -958,7 +958,7 @@
958
958
  }
959
959
  }
960
960
  `}
961
- `,nr=f.styled.label`
961
+ `,oi=f.styled.label`
962
962
  ${({theme:e})=>`
963
963
  align-items: center;
964
964
  color: ${e.palette.gray[600]};
@@ -1030,7 +1030,7 @@
1030
1030
  fill: ${e.palette.white};
1031
1031
  }
1032
1032
  `}
1033
- `,ie=u.forwardRef(function({checked:n,disabled:o=!1,label:r,name:i,onChange:a,onClick:l,onFocus:s,onKeyDown:c,tooltip:p,value:d,...g},x){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(nr,{"aria-disabled":o,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":o,"aria-hidden":!1,"aria-label":i,checked:n,"data-testid":r??d,disabled:o,id:i,name:i,onChange:a,onClick:l,onFocus:s,onKeyDown:c,ref:x,type:"checkbox",value:d,...g}),t.jsx(D,{disabled:o,icon:"check",iconSize:"xl"}),r??d]}),p===void 0?void 0:t.jsx(K,{icon:"circle-info",id:p,place:"right",tip:p})]})}),ne=(e,n,o=!1,r)=>{u.useEffect(()=>{var a;const i=l=>{e&&!e.contains(l.target)&&!(r!=null&&r.contains(l.target))&&n()};return o?(document.addEventListener("mousedown",i,!0),()=>{document.removeEventListener("mousedown",i,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("mousedown",i,!0),()=>{var l;(l=document.getElementById("root"))==null||l.removeEventListener("mousedown",i,!0)})},[o,e,r,n])},Wt=({item:e,multiSelection:n,name:o,register:r,setInputValue:i,setValue:a,state:l,watch:s})=>{var F,I,E;const c=f.useTheme(),p=u.useRef(null),d=e.props.hrefLang,g=l.disabledKeys,x=Array.from(l.collection.getKeys()).filter(T=>!Array.from(g).includes(T)&&T!=="All"),{optionProps:h,isSelected:b,isFocused:w,isDisabled:$}=y.$293f70390ea03370$export$497855f14858aa34({key:e.key},l,p),S=[b?"selected":"",w?"focused":"",$?"disabled":""].join(" "),C=u.useCallback(T=>{i(""),a==null||a(`${o}Options`,""),T.currentTarget.checked&&(i(T.currentTarget.value),a==null||a(`${o}Options`,x))},[x,o,i,a]),j=u.useCallback(()=>{const T=s==null?void 0:s(`${o}Options`),A=typeof T=="string"?[T]:T;y.isEqual(x,A)&&!Array.from(g).includes("All")?(a==null||a("checkAll","All vulnerability types"),i("All vulnerability types")):(a==null||a("checkAll",""),i((A==null?void 0:A.length)<=2?A.join(", "):`${A.slice(0,2).join(", ")+`, +${A.length-2} more`}`))},[g,x,o,i,a,s]),v=e.key==="All"?t.jsx(ie,{...r==null?void 0:r("checkAll",{onChange:C}),label:(F=e.rendered)==null?void 0:F.toString(),name:"checkAll",value:(I=e.rendered)==null?void 0:I.toString()}):t.jsx(ie,{...r==null?void 0:r(`${o}Options`,{onChange:j}),label:(E=e.rendered)==null?void 0:E.toString(),name:`${o}Options`,value:e.key.toString()}),k=n&&!$?v:t.jsx(R,{color:c.palette.gray[800],size:"md",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),z=u.useCallback(T=>{var A;T.preventDefault(),i(((A=e.rendered)==null?void 0:A.toString())??""),l.setSelectedKey(e.key),setTimeout(()=>{l.setOpen(!1)},50),Ot(d)},[d,e.key,e.rendered,l,i]);return ne(document.getElementsByClassName("dropdown")[0],()=>{n&&l.close()},!0,document.getElementById("combobox")),t.jsxs(tr,{...!n&&!d?h:{},$multiSelection:n,className:S,ref:p,children:[d?t.jsx(te,{href:d,onClick:z,children:k}):k,b&&!$&&!n?t.jsx(D,{icon:"check",iconSize:"sm",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(X,{tagLabel:e.textValue,variant:"inactive"})]})},Ye=({field:e,disabled:n=!1,disabledKeys:o,error:r,helpLink:i,helpLinkText:a,helpText:l,label:s,loadingItems:c,name:p,multiSelection:d=!1,items:g,onBlur:x,onChange:h,placeholder:b,register:w,required:$,setValue:S,tooltip:C,value:j,watch:v,weight:k})=>{var ft,yt;const z=f.useTheme(),F=n?void 0:r,I=(e==null?void 0:e.value)??j,[E,T]=u.useState(((ft=g.find(P=>P.value===I))==null?void 0:ft.name)??""),[A,O]=u.useState(I),[B,V]=u.useState(g),[_,W]=u.useState(!1),{contains:J}=y.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),ce=u.useRef(null),He=u.useRef(null),Be=u.useRef(null),Re=u.useRef(null),_e=u.useRef(null),Kn=u.useMemo(()=>g.toSorted((P,U)=>{const G=Array.from(o??[]),de=G.includes(P.value),bt=G.includes(U.value);return de&&!bt?1:!de&&bt?-1:0}).map(P=>J(P.name,E)||_?t.jsx(y.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":P.value,hrefLang:P.href,textValue:P.tag,children:P.name},P.value):null),[J,o,E,g,_]),Zn=u.useCallback(P=>{const U=P.split(/,|\s/u).slice(-1)[0].trim();T(d?U:P),P===""||P.endsWith(",")?W(!0):(W(!1),O(G=>{const de=P===""?"":G;return e&&e.onChange(de),h&&h(P),de}),V(g.filter(G=>J(G.name,d?U:P))))},[J,g,e,d,h]),qn=u.useCallback(P=>{var U;T(((U=g.find(G=>G.value===P))==null?void 0:U.name)??""),O(P?String(P):""),e&&e.onChange(P),h&&h(P?String(P):""),V(g)},[g,e,h]),ht=u.useCallback(P=>{P.key==="Enter"&&P.preventDefault(),W(!1)},[]),Xn=u.useCallback(()=>{x&&x(),e&&e.onBlur()},[e,x]),Jn=u.useCallback(()=>{W(!0)},[]),Z=y.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:d,allowsEmptyCollection:!0,disabledKeys:o,inputValue:E,items:B,menuTrigger:"focus",shouldCloseOnBlur:!d,selectedKey:A,onBlur:Xn,onInputChange:Zn,onKeyDown:ht,onKeyUp:Jn,onOpenChange(P,U){W(P&&(U==="manual"||U==="focus")),P&&setTimeout(()=>{var G;return(G=ce.current)==null?void 0:G.focus()},50)},onSelectionChange:d?void 0:qn,children:Kn}),{buttonProps:Qn,inputProps:eo,listBoxProps:to}=y.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:E,buttonRef:He,id:p,inputRef:ce,label:s??p,listBoxRef:Be,name:p,placeholder:b,popoverRef:_e},Z),{listBoxProps:no}=y.$c132121280ec012d$export$50eacbbf140a3141(to,Z,Be),{buttonProps:oo}=y.$701a24aa0da5b062$export$ea18c227d4417cc3(Qn,He),{width:ro}=((yt=Re.current)==null?void 0:yt.getBoundingClientRect())??{width:240};return ne(Re.current,()=>{Z.isOpen&&!d&&Z.close()},!0,_e.current),u.useEffect(()=>{var P;if((c===!1||!I)&&!d){const U=((P=g.find(G=>G.value===I))==null?void 0:P.name)??"";T(U),O(U)}},[I,g,c,d]),t.jsxs(Y,{error:F,helpLink:i,helpLinkText:a,helpText:l,htmlFor:p,id:"combobox",label:s,required:$,tooltip:C,weight:k,children:[t.jsxs(q,{className:`${n?"disabled":""} ${F?"error":""}`,ref:Re,children:[t.jsx("input",{...eo,"aria-invalid":F?"true":"false","aria-label":p,disabled:n,onKeyDown:ht,ref:ce}),F?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:z.palette.error[500],iconSize:"lg"}):void 0,t.jsx(H,{...oo,className:"action",disabled:n,icon:Z.isOpen&&!n?"chevron-up":"chevron-down",iconColor:z.palette.gray[400],iconSize:"sm",iconType:"fa-light",px:.125,py:.125,ref:He,type:"button",variant:"ghost"})]}),Z.isOpen&&Z.collection.size>0&&!n?t.jsx(Te,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:_e,state:Z,triggerRef:Re,children:t.jsx(er,{...no,$multiSelection:d&&!Array.from(o??[]).includes("All"),$width:ro,ref:Be,children:[...Z.collection].map(P=>t.jsx(Wt,{item:P,multiSelection:d,name:p,register:w,setInputValue:T,setValue:S,state:Z,watch:v},P.key))})}):null]})},at=({control:e,disabled:n=!1,disabledKeys:o,error:r,helpLink:i,helpLinkText:a,helpText:l,label:s,loadingItems:c,name:p,multiSelection:d,items:g,onBlur:x,onChange:h,placeholder:b,register:w,required:$,setValue:S,tooltip:C,value:j,watch:v,weight:k})=>e?t.jsx(y.Controller,{control:e,name:p,render:({field:z,fieldState:F})=>{var I;return t.jsx(Ye,{disabled:n,disabledKeys:o,error:(I=F.error)==null?void 0:I.message,field:z,helpLink:i,helpLinkText:a,helpText:l,items:g,label:s,loadingItems:c,multiSelection:d,name:p,onBlur:x,onChange:h,placeholder:b,register:w,required:$,setValue:S,tooltip:C,value:j,watch:v,weight:k})},rules:{required:$}}):t.jsx(Ye,{disabled:n,disabledKeys:o,error:r,helpLink:i,helpLinkText:a,helpText:l,items:g,label:s,loadingItems:c,multiSelection:d,name:p,onBlur:x,onChange:h,placeholder:b,required:$,tooltip:C,value:j,weight:k}),or=f.styled.div`
1033
+ `,re=u.forwardRef(function({checked:n,disabled:o=!1,label:i,name:r,onChange:a,onClick:l,onFocus:s,onKeyDown:c,tooltip:p,value:d,...g},x){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(oi,{"aria-disabled":o,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":o,"aria-hidden":!1,"aria-label":r,checked:n,"data-testid":i??d,disabled:o,id:r,name:r,onChange:a,onClick:l,onFocus:s,onKeyDown:c,ref:x,type:"checkbox",value:d,...g}),t.jsx(D,{disabled:o,icon:"check",iconSize:"xl"}),i??d]}),p===void 0?void 0:t.jsx(K,{icon:"circle-info",id:p,place:"right",tip:p})]})}),ne=(e,n,o=!1,i)=>{u.useEffect(()=>{var a;const r=l=>{e&&!e.contains(l.target)&&!(i!=null&&i.contains(l.target))&&n()};return o?(document.addEventListener("mousedown",r,!0),()=>{document.removeEventListener("mousedown",r,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("mousedown",r,!0),()=>{var l;(l=document.getElementById("root"))==null||l.removeEventListener("mousedown",r,!0)})},[o,e,i,n])},Wt=({item:e,multiSelection:n,name:o,register:i,setInputValue:r,setValue:a,state:l,watch:s})=>{var F,I,E;const c=f.useTheme(),p=u.useRef(null),d=e.props.hrefLang,g=l.disabledKeys,x=Array.from(l.collection.getKeys()).filter(T=>!Array.from(g).includes(T)&&T!=="All"),{optionProps:h,isSelected:b,isFocused:w,isDisabled:$}=y.$293f70390ea03370$export$497855f14858aa34({key:e.key},l,p),C=[b?"selected":"",w?"focused":"",$?"disabled":""].join(" "),S=u.useCallback(T=>{r(""),a==null||a(`${o}Options`,""),T.currentTarget.checked&&(r(T.currentTarget.value),a==null||a(`${o}Options`,x))},[x,o,r,a]),v=u.useCallback(()=>{const T=s==null?void 0:s(`${o}Options`),A=typeof T=="string"?[T]:T;y.isEqual(x,A)&&!Array.from(g).includes("All")?(a==null||a("checkAll","All vulnerability types"),r("All vulnerability types")):(a==null||a("checkAll",""),r((A==null?void 0:A.length)<=2?A.join(", "):`${A.slice(0,2).join(", ")+`, +${A.length-2} more`}`))},[g,x,o,r,a,s]),j=e.key==="All"?t.jsx(re,{...i==null?void 0:i("checkAll",{onChange:S}),label:(F=e.rendered)==null?void 0:F.toString(),name:"checkAll",value:(I=e.rendered)==null?void 0:I.toString()}):t.jsx(re,{...i==null?void 0:i(`${o}Options`,{onChange:v}),label:(E=e.rendered)==null?void 0:E.toString(),name:`${o}Options`,value:e.key.toString()}),k=n&&!$?j:t.jsx(R,{color:c.palette.gray[800],size:"md",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),z=u.useCallback(T=>{var A;T.preventDefault(),r(((A=e.rendered)==null?void 0:A.toString())??""),l.setSelectedKey(e.key),setTimeout(()=>{l.setOpen(!1)},50),Ot(d)},[d,e.key,e.rendered,l,r]);return ne(document.getElementsByClassName("dropdown")[0],()=>{n&&l.close()},!0,document.getElementById("combobox")),t.jsxs(ni,{...!n&&!d?h:{},$multiSelection:n,className:C,ref:p,children:[d?t.jsx(te,{href:d,onClick:z,children:k}):k,b&&!$&&!n?t.jsx(D,{icon:"check",iconSize:"sm",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(J,{tagLabel:e.textValue,variant:"inactive"})]})},Ye=({field:e,disabled:n=!1,disabledKeys:o,error:i,helpLink:r,helpLinkText:a,helpText:l,label:s,loadingItems:c,name:p,multiSelection:d=!1,items:g,onBlur:x,onChange:h,placeholder:b,register:w,required:$,setValue:C,tooltip:S,value:v,watch:j,weight:k})=>{var ft,yt;const z=f.useTheme(),F=n?void 0:i,I=(e==null?void 0:e.value)??v,[E,T]=u.useState(((ft=g.find(P=>P.value===I))==null?void 0:ft.name)??""),[A,O]=u.useState(I),[B,V]=u.useState(g),[_,W]=u.useState(!1),{contains:Q}=y.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),ce=u.useRef(null),He=u.useRef(null),Be=u.useRef(null),Re=u.useRef(null),_e=u.useRef(null),qn=u.useMemo(()=>g.toSorted((P,U)=>{const G=Array.from(o??[]),de=G.includes(P.value),bt=G.includes(U.value);return de&&!bt?1:!de&&bt?-1:0}).map(P=>Q(P.name,E)||_?t.jsx(y.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":P.value,hrefLang:P.href,textValue:P.tag,children:P.name},P.value):null),[Q,o,E,g,_]),Zn=u.useCallback(P=>{const U=P.split(/,|\s/u).slice(-1)[0].trim();T(d?U:P),P===""||P.endsWith(",")?W(!0):(W(!1),O(G=>{const de=P===""?"":G;return e&&e.onChange(de),h&&h(P),de}),V(g.filter(G=>Q(G.name,d?U:P))))},[Q,g,e,d,h]),Xn=u.useCallback(P=>{var U;T(((U=g.find(G=>G.value===P))==null?void 0:U.name)??""),O(P?String(P):""),e&&e.onChange(P),h&&h(P?String(P):""),V(g)},[g,e,h]),ht=u.useCallback(P=>{P.key==="Enter"&&P.preventDefault(),W(!1)},[]),Jn=u.useCallback(()=>{x&&x(),e&&e.onBlur()},[e,x]),Qn=u.useCallback(()=>{W(!0)},[]),q=y.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:d,allowsEmptyCollection:!0,disabledKeys:o,inputValue:E,items:B,menuTrigger:"focus",shouldCloseOnBlur:!d,selectedKey:A,onBlur:Jn,onInputChange:Zn,onKeyDown:ht,onKeyUp:Qn,onOpenChange(P,U){W(P&&(U==="manual"||U==="focus")),P&&setTimeout(()=>{var G;return(G=ce.current)==null?void 0:G.focus()},50)},onSelectionChange:d?void 0:Xn,children:qn}),{buttonProps:eo,inputProps:to,listBoxProps:no}=y.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:E,buttonRef:He,id:p,inputRef:ce,label:s??p,listBoxRef:Be,name:p,placeholder:b,popoverRef:_e},q),{listBoxProps:oo}=y.$c132121280ec012d$export$50eacbbf140a3141(no,q,Be),{buttonProps:io}=y.$701a24aa0da5b062$export$ea18c227d4417cc3(eo,He),{width:ro}=((yt=Re.current)==null?void 0:yt.getBoundingClientRect())??{width:240};return ne(Re.current,()=>{q.isOpen&&!d&&q.close()},!0,_e.current),u.useEffect(()=>{var P;if((c===!1||!I)&&!d){const U=((P=g.find(G=>G.value===I))==null?void 0:P.name)??"";T(U),O(U)}},[I,g,c,d]),t.jsxs(Y,{error:F,helpLink:r,helpLinkText:a,helpText:l,htmlFor:p,id:"combobox",label:s,required:$,tooltip:S,weight:k,children:[t.jsxs(Z,{className:`${n?"disabled":""} ${F?"error":""}`,ref:Re,children:[t.jsx("input",{...to,"aria-invalid":F?"true":"false","aria-label":p,disabled:n,onKeyDown:ht,ref:ce}),F?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:z.palette.error[500],iconSize:"lg"}):void 0,t.jsx(H,{...io,className:"action",disabled:n,icon:q.isOpen&&!n?"chevron-up":"chevron-down",iconColor:z.palette.gray[400],iconSize:"sm",iconType:"fa-light",px:.125,py:.125,ref:He,type:"button",variant:"ghost"})]}),q.isOpen&&q.collection.size>0&&!n?t.jsx(Te,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:_e,state:q,triggerRef:Re,children:t.jsx(ti,{...oo,$multiSelection:d&&!Array.from(o??[]).includes("All"),$width:ro,ref:Be,children:[...q.collection].map(P=>t.jsx(Wt,{item:P,multiSelection:d,name:p,register:w,setInputValue:T,setValue:C,state:q,watch:j},P.key))})}):null]})},at=({control:e,disabled:n=!1,disabledKeys:o,error:i,helpLink:r,helpLinkText:a,helpText:l,label:s,loadingItems:c,name:p,multiSelection:d,items:g,onBlur:x,onChange:h,placeholder:b,register:w,required:$,setValue:C,tooltip:S,value:v,watch:j,weight:k})=>e?t.jsx(y.Controller,{control:e,name:p,render:({field:z,fieldState:F})=>{var I;return t.jsx(Ye,{disabled:n,disabledKeys:o,error:(I=F.error)==null?void 0:I.message,field:z,helpLink:r,helpLinkText:a,helpText:l,items:g,label:s,loadingItems:c,multiSelection:d,name:p,onBlur:x,onChange:h,placeholder:b,register:w,required:$,setValue:C,tooltip:S,value:v,watch:j,weight:k})},rules:{required:$}}):t.jsx(Ye,{disabled:n,disabledKeys:o,error:i,helpLink:r,helpLinkText:a,helpText:l,items:g,label:s,loadingItems:c,multiSelection:d,name:p,onBlur:x,onChange:h,placeholder:b,required:$,tooltip:S,value:v,weight:k}),ii=f.styled.div`
1034
1034
  ${({theme:e})=>`
1035
1035
  align-items: center;
1036
1036
  color: ${e.palette.gray[800]};
@@ -1051,7 +1051,7 @@
1051
1051
  display: none;
1052
1052
  }
1053
1053
  `}
1054
- `,rr=f.styled.div.attrs({className:"year-selection"})`
1054
+ `,ri=f.styled.div.attrs({className:"year-selection"})`
1055
1055
  align-items: flex-start;
1056
1056
  display: flex;
1057
1057
  flex-direction: column;
@@ -1083,9 +1083,9 @@
1083
1083
  text-align: center;
1084
1084
  width: ${e.spacing[2.5]};
1085
1085
  `}
1086
- `,ir=f.styled.th`
1086
+ `,ai=f.styled.th`
1087
1087
  ${Ht}
1088
- `,ar=f.styled.td`
1088
+ `,si=f.styled.td`
1089
1089
  ${({theme:e})=>`
1090
1090
  ${Ht}
1091
1091
  height: ${e.spacing[2.5]};
@@ -1135,14 +1135,14 @@
1135
1135
  }
1136
1136
  }
1137
1137
  `}
1138
- `,sr=f.styled.div.attrs({className:"dot"})`
1138
+ `,li=f.styled.div.attrs({className:"dot"})`
1139
1139
  position: absolute;
1140
1140
  top: 48%;
1141
1141
 
1142
1142
  > span {
1143
1143
  font-size: 4px;
1144
1144
  }
1145
- `,vt=f.styled.button`
1145
+ `,jt=f.styled.button`
1146
1146
  cursor: pointer;
1147
1147
  display: flex;
1148
1148
 
@@ -1162,9 +1162,9 @@
1162
1162
  padding: 0 ${e.spacing[.25]};
1163
1163
  width: 100%;
1164
1164
  `}
1165
- `,Bt=({state:e,date:n})=>{const o=u.useRef(null),r=y.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,y.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:i,buttonProps:a,isSelected:l,isDisabled:s,formattedDate:c}=y.$36a0ac60f04457c5$export$136073280381448e({date:n},e,o),p="highlightedRange"in e&&!y.lodashExports.isNull(e.highlightedRange)?y.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):l,d="highlightedRange"in e&&!y.lodashExports.isNull(e.highlightedRange)?y.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,g=l&&!s&&!(p||d)?"range":"";return t.jsx(ar,{id:g,...i,children:t.jsxs("div",{...a,className:`cell ${p||d?"selected":""}
1166
- ${s?"disabled":""} ${r?"today":""}
1167
- ${!e.isFocused&&!r?"focused":""} ${g}`,ref:o,children:[c,r?t.jsx(sr,{children:t.jsx(D,{clickable:!1,icon:"circle",iconSize:"sm"})}):void 0]})})},Pe=({state:e,...n})=>{const{locale:o}=y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:r}=y.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),i=y.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,o);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(wt,{children:r.map((a,l)=>{const s=`key_${l}`;return t.jsx(ir,{children:a},s)})})}),t.jsx("tbody",{children:[...new Array(i).keys()].map(a=>t.jsx(wt,{children:e.getDatesInWeek(a).map((l,s)=>{const c=`key_${s}`;return l?t.jsx(Bt,{date:l,state:e},c):t.jsx("td",{},c)})},a))})]})},lr=f.styled(nt)`
1165
+ `,Bt=({state:e,date:n})=>{const o=u.useRef(null),i=y.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,y.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:a,isSelected:l,isDisabled:s,formattedDate:c}=y.$36a0ac60f04457c5$export$136073280381448e({date:n},e,o),p="highlightedRange"in e&&!y.lodashExports.isNull(e.highlightedRange)?y.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):l,d="highlightedRange"in e&&!y.lodashExports.isNull(e.highlightedRange)?y.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,g=l&&!s&&!(p||d)?"range":"";return t.jsx(si,{id:g,...r,children:t.jsxs("div",{...a,className:`cell ${p||d?"selected":""}
1166
+ ${s?"disabled":""} ${i?"today":""}
1167
+ ${!e.isFocused&&!i?"focused":""} ${g}`,ref:o,children:[c,i?t.jsx(li,{children:t.jsx(D,{clickable:!1,icon:"circle",iconSize:"sm"})}):void 0]})})},Pe=({state:e,...n})=>{const{locale:o}=y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:i}=y.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),r=y.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,o);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(wt,{children:i.map((a,l)=>{const s=`key_${l}`;return t.jsx(ai,{children:a},s)})})}),t.jsx("tbody",{children:[...new Array(r).keys()].map(a=>t.jsx(wt,{children:e.getDatesInWeek(a).map((l,s)=>{const c=`key_${s}`;return l?t.jsx(Bt,{date:l,state:e},c):t.jsx("td",{},c)})},a))})]})},ci=f.styled(nt)`
1168
1168
  align-items: center;
1169
1169
  background-color: inherit;
1170
1170
  border-color: inherit;
@@ -1184,7 +1184,7 @@
1184
1184
  background-color: ${({theme:e})=>e.palette.gray[100]};
1185
1185
  cursor: pointer;
1186
1186
  }
1187
- `,cr=f.styled.div`
1187
+ `,di=f.styled.div`
1188
1188
  ${({theme:e})=>`
1189
1189
  align-items: flex-start;
1190
1190
  background: ${e.palette.white};
@@ -1198,22 +1198,22 @@
1198
1198
  padding: ${e.spacing[.25]};
1199
1199
  width: 292px;
1200
1200
  `}
1201
- `,dr=f.styled.button`
1202
- ${({theme:e,$disabled:n,$focus:o,$header:r})=>{const i=o?"34px":"40px";return`
1201
+ `,pi=f.styled.button`
1202
+ ${({theme:e,$disabled:n,$focus:o,$header:i})=>{const r=o?"34px":"40px";return`
1203
1203
  align-items: center;
1204
- border-radius: ${r?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
1204
+ border-radius: ${i?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
1205
1205
  border-left: inherit;
1206
1206
  display: flex;
1207
- height: ${r?"38px":i};
1207
+ height: ${i?"38px":r};
1208
1208
  justify-content: center;
1209
1209
  outline: none;
1210
- width: ${r?"38px":"40px"};
1210
+ width: ${i?"38px":"40px"};
1211
1211
 
1212
1212
  &:hover {
1213
1213
  background-color: ${e.palette.gray[n?500:100]};
1214
1214
  }
1215
1215
  `}}
1216
- `,pr=f.styled.div`
1216
+ `,gi=f.styled.div`
1217
1217
  ${({theme:e})=>`
1218
1218
  align-items: center;
1219
1219
  background: transparent;
@@ -1224,13 +1224,13 @@
1224
1224
  justify-content: space-between;
1225
1225
  width: calc(100% - 40px);
1226
1226
  `}
1227
- `,gr=f.styled.div`
1227
+ `,ui=f.styled.div`
1228
1228
  align-items: center;
1229
1229
  display: flex;
1230
1230
  justify-content: flex-end;
1231
1231
  gap: ${({theme:e})=>e.spacing[.5]};
1232
1232
  flex: 1 0 0;
1233
- `,jt=f.styled.div`
1233
+ `,vt=f.styled.div`
1234
1234
  ${({theme:e})=>`
1235
1235
  align-items: center;
1236
1236
  align-self: stretch;
@@ -1262,7 +1262,7 @@
1262
1262
  font-weight: ${e.typography.weight.bold};
1263
1263
  }
1264
1264
  `}
1265
- `,Ne=({disabled:e=!1,icon:n,props:o})=>{const r=u.useRef(null),{buttonProps:i}=y.$701a24aa0da5b062$export$ea18c227d4417cc3(o,r);return t.jsx(dr,{...i,$disabled:e,$focus:!!i["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:r,type:"button",children:t.jsx(D,{icon:n,iconColor:N.palette.gray[e?400:700],iconSize:"lg",iconType:"fa-light"})})},Oe=({state:e,prevButtonProps:n,nextButtonProps:o,title:r})=>{const i=e.focusedDate,a=f.useTheme(),l=u.useCallback(()=>{e.setFocusedDate(i.add({years:1}))},[i,e]),s=u.useCallback(()=>{e.setFocusedDate(i.subtract({years:1}))},[i,e]);return t.jsxs("div",{className:"header flex items-start",style:{position:"sticky",top:0,zIndex:2,background:a.palette.white},children:[t.jsx(Ne,{icon:"chevron-left",props:n}),t.jsxs(or,{children:[r,t.jsxs(rr,{children:[t.jsx(vt,{"aria-label":"top",onClick:l,children:t.jsx(D,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xs"})}),t.jsx(vt,{"aria-label":"bottom",onClick:s,children:t.jsx(D,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xs"})})]})]}),t.jsx(Ne,{icon:"chevron-right",props:o})]})},_t=({onClose:e,props:n})=>{const{locale:o}=y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=y.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:y.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:i,nextButtonProps:a,title:l}=y.$9942cad8a072a530$export$3ee915f8151bd4f1(n,r);return t.jsxs("div",{className:"calendar",children:[t.jsx(Oe,{nextButtonProps:a,prevButtonProps:i,state:r,title:l}),t.jsx(Pe,{state:r}),t.jsx(st,{children:t.jsx(M,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Vt=({segment:e,state:n})=>{const o=f.useTheme(),r=u.useRef(null),a={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=y.$32489daedd52963e$export$1315d136e6f7581(a,n,r),s=o.palette.gray[a.isEditable?800:500];return t.jsx("div",{...a.type!=="literal"&&{...l,className:"segment-cell"},ref:r,style:a.type==="literal"?void 0:{color:a.isPlaceholder?o.palette.gray[400]:s},children:a.isPlaceholder?a.placeholder:a.text})},Ut=({disabled:e,error:n=!1,props:o})=>{const r=f.useTheme(),i=u.useRef(null),a=y.$3c0fc76039f1c516$export$60e84778edff6d26({...o,createCalendar:y.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=y.$16f0b7bb276bc17e$export$5591b0b878c1a989(o,a,i),s=u.useCallback(c=>{const p=document.getElementsByClassName("segment-cell"),d=c.currentTarget;Object.values(p).some(g=>g.contains(d))||(c.preventDefault(),c.stopPropagation())},[]);return t.jsxs(pr,{...l,onClick:s,children:[t.jsx("div",{className:"flex flex-row",style:{color:r.palette.gray[y.lodashExports.isNil(a.value)?400:800]},tabIndex:-1,children:a.segments.map((c,p)=>{const d=`key_${p}`;return t.jsx(Vt,{segment:{...c,isEditable:!e},state:a},d)})}),n?t.jsx(D,{icon:"exclamation-circle",iconColor:r.palette.error[500],iconSize:"lg"}):void 0]})},Gt=e=>{const n=u.useRef(null),o=y.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:r}=o,i=!y.lodashExports.isNil(r)&&r.hour<12?"AM":"PM",[a,l]=u.useState(y.lodashExports.isNil(r)?"AM":i),{fieldProps:s}=y.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,o,n),c=u.useCallback(p=>{const d=p.currentTarget.name;d!==a&&(y.lodashExports.isNil(r)||(d==="AM"?o.setSegment("dayPeriod",0):d==="PM"&&o.setSegment("dayPeriod",12))),l(d)},[a,o,r]);return t.jsxs(gr,{children:[t.jsx(jt,{...s,ref:n,children:o.segments.slice(0,-2).map((p,d)=>{const g=`key_${d}`;return t.jsx(Vt,{segment:p,state:o},g)})}),t.jsxs(jt,{children:[t.jsx(kt,{id:a==="AM"?"active":"",name:"AM",onClick:c,type:"button",children:"AM"}),t.jsx(kt,{id:a==="PM"?"active":"",name:"PM",onClick:c,type:"button",children:"PM"})]})]})},Le=e=>e&&e!=="-"?y.dayjs(e).format("YYYY-MM-DD"):"-",ur=e=>e&&e!=="-"?y.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",Ct=(e,n)=>y.dayjs(String(e).replace(/-/gu,"/")).hour(n.hour).minute(n.minute).second(n.second).format("YYYY/MM/DD hh:mm A"),fe=({error:e,buttonProps:n,datePickerRef:o,disabled:r=!1,granularity:i="day",fieldProps:a,groupProps:l,name:s,register:c,required:p,setValue:d,value:g})=>{const x=u.useCallback(h=>{if(!h)return;const b=i==="day"?Le(String(h)):ur(String(h));a.onChange&&a.onChange(h??null),d&&d(s,b,{shouldDirty:!0})},[a,i,s,d]);return t.jsxs(q,{...l,className:`${r?"disabled":""} ${e?"error":""}`,ref:o,children:[t.jsx(Ut,{disabled:r,error:e!=null,props:{...a,autoFocus:!1,granularity:i,onChange:x,shouldForceLeadingZeros:!0}}),t.jsx(Ne,{disabled:r,icon:i==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...c==null?void 0:c(s,{required:p}),"aria-label":s,className:"date-input",disabled:r,id:s,name:s,type:"text",value:g??""})]})},Me=({children:e,...n})=>{const o=u.useRef(null),{dialogProps:r}=y.$40df3f8667284809$export$d55e7ee900f34e93(n,o);return t.jsx(cr,{...r,ref:o,children:e})},Yt=({disabled:e=!1,error:n,helpLink:o,helpLinkText:r,helpText:i,required:a,label:l,name:s,register:c,setValue:p,tooltip:d,watch:g,...x})=>{const h=u.useRef(null),b=g==null?void 0:g(s),w=u.useCallback(F=>{p&&F&&p(s,Le(String(F)),{shouldDirty:!0})},[s,p]),$=y.$ab5bf3f618090389$export$87194bb378cc3ac2({...x,onChange(F){w(F)},...!y._.isNil(b)&&!y._.isEmpty(b)&&y.dayjs(b).isValid()?{defaultValue:y.$fae977aafc393c5c$export$6b862160d295c8e(b.replace(/\//gu,"-"))}:{}}),{close:S}=$,{groupProps:C,fieldProps:j,buttonProps:v,dialogProps:k,calendarProps:z}=y.$6057a3d2a53a12fd$export$42df105a73306d51({...x,"aria-label":l??s,name:s},$,h);return t.jsxs(Y,{error:e?void 0:n,helpLink:o,helpLinkText:r,helpText:i,htmlFor:s,label:l,required:a,tooltip:d,children:[t.jsx(fe,{buttonProps:v,datePickerRef:h,disabled:e,error:n,fieldProps:j,groupProps:C,name:s,register:c,required:a,setValue:p,value:b}),$.isOpen&&!e?t.jsx(Te,{offset:8,placement:"bottom start",state:$,triggerRef:h,children:t.jsx(Me,{...k,children:t.jsx(_t,{onClose:S,props:z})})}):null]})},Kt=({onClose:e,props:n})=>{const{locale:o}=y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=u.useRef(null),i=y.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:y.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:a,nextButtonProps:l,title:s}=y.$46a4342aab3d8076$export$87e0539f600c24e5(n,i,r);return t.jsxs("div",{className:"calendar-range",ref:r,children:[t.jsx(Oe,{nextButtonProps:l,prevButtonProps:a,state:i,title:s}),t.jsx(Pe,{state:i}),t.jsx(st,{children:t.jsx(M,{onClick:e,variant:"ghost",children:"Cancel"})})]})},xr=f.styled.div`
1265
+ `,Ne=({disabled:e=!1,icon:n,props:o})=>{const i=u.useRef(null),{buttonProps:r}=y.$701a24aa0da5b062$export$ea18c227d4417cc3(o,i);return t.jsx(pi,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:i,type:"button",children:t.jsx(D,{icon:n,iconColor:N.palette.gray[e?400:700],iconSize:"lg",iconType:"fa-light"})})},Oe=({state:e,prevButtonProps:n,nextButtonProps:o,title:i})=>{const r=e.focusedDate,a=f.useTheme(),l=u.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),s=u.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",style:{position:"sticky",top:0,zIndex:2,background:a.palette.white},children:[t.jsx(Ne,{icon:"chevron-left",props:n}),t.jsxs(ii,{children:[i,t.jsxs(ri,{children:[t.jsx(jt,{"aria-label":"top",onClick:l,children:t.jsx(D,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xs"})}),t.jsx(jt,{"aria-label":"bottom",onClick:s,children:t.jsx(D,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xs"})})]})]}),t.jsx(Ne,{icon:"chevron-right",props:o})]})},_t=({onClose:e,props:n})=>{const{locale:o}=y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),i=y.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:y.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:r,nextButtonProps:a,title:l}=y.$9942cad8a072a530$export$3ee915f8151bd4f1(n,i);return t.jsxs("div",{className:"calendar",children:[t.jsx(Oe,{nextButtonProps:a,prevButtonProps:r,state:i,title:l}),t.jsx(Pe,{state:i}),t.jsx(st,{children:t.jsx(M,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Vt=({segment:e,state:n})=>{const o=f.useTheme(),i=u.useRef(null),a={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=y.$32489daedd52963e$export$1315d136e6f7581(a,n,i),s=o.palette.gray[a.isEditable?800:500];return t.jsx("div",{...a.type!=="literal"&&{...l,className:"segment-cell"},ref:i,style:a.type==="literal"?void 0:{color:a.isPlaceholder?o.palette.gray[400]:s},children:a.isPlaceholder?a.placeholder:a.text})},Ut=({disabled:e,error:n=!1,props:o})=>{const i=f.useTheme(),r=u.useRef(null),a=y.$3c0fc76039f1c516$export$60e84778edff6d26({...o,createCalendar:y.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=y.$16f0b7bb276bc17e$export$5591b0b878c1a989(o,a,r),s=u.useCallback(c=>{const p=document.getElementsByClassName("segment-cell"),d=c.currentTarget;Object.values(p).some(g=>g.contains(d))||(c.preventDefault(),c.stopPropagation())},[]);return t.jsxs(gi,{...l,onClick:s,children:[t.jsx("div",{className:"flex flex-row",style:{color:i.palette.gray[y.lodashExports.isNil(a.value)?400:800]},tabIndex:-1,children:a.segments.map((c,p)=>{const d=`key_${p}`;return t.jsx(Vt,{segment:{...c,isEditable:!e},state:a},d)})}),n?t.jsx(D,{icon:"exclamation-circle",iconColor:i.palette.error[500],iconSize:"lg"}):void 0]})},Gt=e=>{const n=u.useRef(null),o=y.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:i}=o,r=!y.lodashExports.isNil(i)&&i.hour<12?"AM":"PM",[a,l]=u.useState(y.lodashExports.isNil(i)?"AM":r),{fieldProps:s}=y.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,o,n),c=u.useCallback(p=>{const d=p.currentTarget.name;d!==a&&(y.lodashExports.isNil(i)||(d==="AM"?o.setSegment("dayPeriod",0):d==="PM"&&o.setSegment("dayPeriod",12))),l(d)},[a,o,i]);return t.jsxs(ui,{children:[t.jsx(vt,{...s,ref:n,children:o.segments.slice(0,-2).map((p,d)=>{const g=`key_${d}`;return t.jsx(Vt,{segment:p,state:o},g)})}),t.jsxs(vt,{children:[t.jsx(kt,{id:a==="AM"?"active":"",name:"AM",onClick:c,type:"button",children:"AM"}),t.jsx(kt,{id:a==="PM"?"active":"",name:"PM",onClick:c,type:"button",children:"PM"})]})]})},Le=e=>e&&e!=="-"?y.dayjs(e).format("YYYY-MM-DD"):"-",xi=e=>e&&e!=="-"?y.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",Ct=(e,n)=>y.dayjs(String(e).replace(/-/gu,"/")).hour(n.hour).minute(n.minute).second(n.second).format("YYYY/MM/DD hh:mm A"),fe=({error:e,buttonProps:n,datePickerRef:o,disabled:i=!1,granularity:r="day",fieldProps:a,groupProps:l,name:s,register:c,required:p,setValue:d,value:g})=>{const x=u.useCallback(h=>{if(!h)return;const b=r==="day"?Le(String(h)):xi(String(h));a.onChange&&a.onChange(h??null),d&&d(s,b,{shouldDirty:!0})},[a,r,s,d]);return t.jsxs(Z,{...l,className:`${i?"disabled":""} ${e?"error":""}`,ref:o,children:[t.jsx(Ut,{disabled:i,error:e!=null,props:{...a,autoFocus:!1,granularity:r,onChange:x,shouldForceLeadingZeros:!0}}),t.jsx(Ne,{disabled:i,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...c==null?void 0:c(s,{required:p}),"aria-label":s,className:"date-input",disabled:i,id:s,name:s,type:"text",value:g??""})]})},Me=({children:e,...n})=>{const o=u.useRef(null),{dialogProps:i}=y.$40df3f8667284809$export$d55e7ee900f34e93(n,o);return t.jsx(di,{...i,ref:o,children:e})},Yt=({disabled:e=!1,error:n,helpLink:o,helpLinkText:i,helpText:r,required:a,label:l,name:s,register:c,setValue:p,tooltip:d,watch:g,...x})=>{const h=u.useRef(null),b=g==null?void 0:g(s),w=u.useCallback(F=>{p&&F&&p(s,Le(String(F)),{shouldDirty:!0})},[s,p]),$=y.$ab5bf3f618090389$export$87194bb378cc3ac2({...x,onChange(F){w(F)},...!y._.isNil(b)&&!y._.isEmpty(b)&&y.dayjs(b).isValid()?{defaultValue:y.$fae977aafc393c5c$export$6b862160d295c8e(b.replace(/\//gu,"-"))}:{}}),{close:C}=$,{groupProps:S,fieldProps:v,buttonProps:j,dialogProps:k,calendarProps:z}=y.$6057a3d2a53a12fd$export$42df105a73306d51({...x,"aria-label":l??s,name:s},$,h);return t.jsxs(Y,{error:e?void 0:n,helpLink:o,helpLinkText:i,helpText:r,htmlFor:s,label:l,required:a,tooltip:d,children:[t.jsx(fe,{buttonProps:j,datePickerRef:h,disabled:e,error:n,fieldProps:v,groupProps:S,name:s,register:c,required:a,setValue:p,value:b}),$.isOpen&&!e?t.jsx(Te,{offset:8,placement:"bottom start",state:$,triggerRef:h,children:t.jsx(Me,{...k,children:t.jsx(_t,{onClose:C,props:z})})}):null]})},Kt=({onClose:e,props:n})=>{const{locale:o}=y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),i=u.useRef(null),r=y.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:y.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:a,nextButtonProps:l,title:s}=y.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,i);return t.jsxs("div",{className:"calendar-range",ref:i,children:[t.jsx(Oe,{nextButtonProps:l,prevButtonProps:a,state:r,title:s}),t.jsx(Pe,{state:r}),t.jsx(st,{children:t.jsx(M,{onClick:e,variant:"ghost",children:"Cancel"})})]})},hi=f.styled.div`
1266
1266
  ${({theme:e,$disabled:n,$show:o})=>`
1267
1267
  border-color: ${o?e.palette.error[500]:e.palette.gray[300]};
1268
1268
  display: flex;
@@ -1273,7 +1273,7 @@
1273
1273
  background: ${n?e.palette.gray[200]:e.palette.white};
1274
1274
  }
1275
1275
  `}
1276
- `,Zt=({disabled:e=!1,error:n,label:o,name:r,required:i,tooltip:a,register:l,setValue:s,propsMax:c,propsMin:p,variant:d="default",...g})=>{const x=`${r}Max`,h=`${r}Min`,b=u.useRef(null),w=u.useCallback(I=>{s&&I&&(s((c==null?void 0:c.name)??x,Le(String(I.end))),s((p==null?void 0:p.name)??h,Le(String(I.start))))},[x,h,s,c,p]),$=y.$93c38a5e28be6249$export$e50a61c1de9f574({...g,endName:(c==null?void 0:c.name)??x,startName:(p==null?void 0:p.name)??h,onChange(I){w(I)}}),{close:S}=$,{groupProps:C,startFieldProps:j,endFieldProps:v,buttonProps:k,dialogProps:z,calendarProps:F}=y.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...g,"aria-label":o??r},$,b);return t.jsxs(Y,{error:e?void 0:n,htmlFor:r,label:o,required:i,tooltip:a,children:[t.jsxs(xr,{$disabled:e,$show:n!==void 0,ref:b,style:{flexDirection:d==="filters"?"column":"row"},children:[t.jsx(fe,{buttonProps:k,datePickerRef:b,disabled:e,error:n,fieldProps:{...j,"aria-label":`${j["aria-label"]} ${r}`,validate:I=>v.value&&I>v.value?"Start date must be less than or equal to end date":null},groupProps:C,name:(p==null?void 0:p.name)??h,register:l,setValue:s,value:p==null?void 0:p.value}),t.jsx(fe,{buttonProps:k,datePickerRef:b,disabled:e,error:n,fieldProps:{...v,"aria-label":`${v["aria-label"]} ${r}`,validate:I=>j.value&&I<j.value?"End date must be greater than or equal to start date":null},groupProps:C,name:(c==null?void 0:c.name)??x,register:l,setValue:s,value:c==null?void 0:c.value})]}),$.isOpen&&!e?t.jsx(Te,{offset:8,placement:"bottom start",state:$,triggerRef:b,children:t.jsx(Me,{...z,children:t.jsx(Kt,{onClose:S,props:F})})}):null]})},hr=f.styled.div`
1276
+ `,qt=({disabled:e=!1,error:n,label:o,name:i,required:r,tooltip:a,register:l,setValue:s,propsMax:c,propsMin:p,variant:d="default",...g})=>{const x=`${i}Max`,h=`${i}Min`,b=u.useRef(null),w=u.useCallback(I=>{s&&I&&(s((c==null?void 0:c.name)??x,Le(String(I.end))),s((p==null?void 0:p.name)??h,Le(String(I.start))))},[x,h,s,c,p]),$=y.$93c38a5e28be6249$export$e50a61c1de9f574({...g,endName:(c==null?void 0:c.name)??x,startName:(p==null?void 0:p.name)??h,onChange(I){w(I)}}),{close:C}=$,{groupProps:S,startFieldProps:v,endFieldProps:j,buttonProps:k,dialogProps:z,calendarProps:F}=y.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...g,"aria-label":o??i},$,b);return t.jsxs(Y,{error:e?void 0:n,htmlFor:i,label:o,required:r,tooltip:a,children:[t.jsxs(hi,{$disabled:e,$show:n!==void 0,ref:b,style:{flexDirection:d==="filters"?"column":"row"},children:[t.jsx(fe,{buttonProps:k,datePickerRef:b,disabled:e,error:n,fieldProps:{...v,"aria-label":`${v["aria-label"]} ${i}`,validate:I=>j.value&&I>j.value?"Start date must be less than or equal to end date":null},groupProps:S,name:(p==null?void 0:p.name)??h,register:l,setValue:s,value:p==null?void 0:p.value}),t.jsx(fe,{buttonProps:k,datePickerRef:b,disabled:e,error:n,fieldProps:{...j,"aria-label":`${j["aria-label"]} ${i}`,validate:I=>v.value&&I<v.value?"End date must be greater than or equal to start date":null},groupProps:S,name:(c==null?void 0:c.name)??x,register:l,setValue:s,value:c==null?void 0:c.value})]}),$.isOpen&&!e?t.jsx(Te,{offset:8,placement:"bottom start",state:$,triggerRef:b,children:t.jsx(Me,{...z,children:t.jsx(Kt,{onClose:C,props:F})})}):null]})},fi=f.styled.div`
1277
1277
  ${({theme:e})=>`
1278
1278
  align-items: center;
1279
1279
  border-top: 1px solid ${e.palette.gray[200]};
@@ -1282,19 +1282,19 @@
1282
1282
  justify-content: center;
1283
1283
  padding: ${e.spacing[.5]} ${e.spacing[1.25]};
1284
1284
  `}
1285
- `,fr=f.styled.div`
1285
+ `,yi=f.styled.div`
1286
1286
  align-items: center;
1287
1287
  display: flex;
1288
1288
  gap: ${({theme:e})=>e.spacing[.5]};
1289
1289
  justify-content: flex-end;
1290
1290
  flex: 1 0 0;
1291
- `,qt=({handleTimeChange:e,onClose:n,props:o,timeState:r})=>{const i=f.useTheme(),{locale:a}=y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=y.$131cf43a05231e1e$export$6d095e787d2b5e1f({...o,createCalendar:y.$64244302c3013299$export$dd0bbc9b26defe37,locale:a}),{prevButtonProps:s,nextButtonProps:c,title:p}=y.$9942cad8a072a530$export$3ee915f8151bd4f1(o,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Oe,{nextButtonProps:c,prevButtonProps:s,state:l,title:p}),t.jsx(Pe,{state:l}),t.jsxs(hr,{children:[t.jsx(R,{color:i.palette.gray[800],fontWeight:"bold",size:"md",children:"Time"}),t.jsx(fr,{children:t.jsx(Gt,{hourCycle:12,label:"time-field",onChange:e,value:r.timeValue})})]}),t.jsx(st,{children:t.jsx(M,{onClick:n,variant:"ghost",children:"Cancel"})})]})},yr=e=>{const{disabled:n=!1,error:o,required:r,label:i,name:a,tooltip:l,register:s,setValue:c,watch:p}=e,d=p==null?void 0:p(a),g=u.useRef(null),x=y.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:r,shouldCloseOnSelect:!1,value:y._.isNil(d)||y._.isEmpty(d)||d==="-"||y.dayjs(d,"YYYY/MM/DD hh:mm A").isValid()===!1?null:y.$fae977aafc393c5c$export$588937bcd60ade55(y.dayjs(d,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=x,{groupProps:b,fieldProps:w,buttonProps:$,dialogProps:S,calendarProps:C}=y.$6057a3d2a53a12fd$export$42df105a73306d51(e,x,g),j=u.useCallback(k=>{if(C.onChange&&C.onChange(k),x.timeValue){const z=Ct(k,x.timeValue);c==null||c(a,z,{shouldDirty:!0})}else x.setDateValue(k)},[C,a,c,x]),v=u.useCallback(k=>{if(k){x.setTimeValue(k);const z=x.dateValue;if(z){const F=Ct(z,k);c==null||c(a,F,{shouldDirty:!0})}}},[x,c,a]);return t.jsxs(Y,{error:n?void 0:o,htmlFor:a,label:i,required:r,tooltip:l,children:[t.jsx(fe,{buttonProps:$,datePickerRef:g,disabled:n,error:o,fieldProps:w,granularity:"minute",groupProps:b,name:a,register:s,setValue:c,value:d}),x.isOpen&&!n?t.jsx(Te,{offset:8,placement:"bottom start",state:x,triggerRef:g,children:t.jsx(Me,{...S,children:t.jsx(qt,{handleTimeChange:v,onClose:h,props:{...C,onChange:j},timeState:x})})}):null]})},br=({children:e,currentValue:n,externalLink:o,isEditing:r,label:i,name:a,tooltip:l})=>{if(r)return t.jsx("div",{children:e});const s=y.lodashExports.isNil(n)?"":n,c=String(o??s);return t.jsxs(m,{children:[t.jsx(it,{htmlFor:a,label:i,tooltip:l,weight:"bold"}),c.startsWith("https://")?t.jsx(te,{href:c,children:s}):t.jsx(R,{size:"md",children:s})]})},We=({disabled:e=!1,hasIcon:n=!1,helpLink:o,helpLinkText:r,helpText:i,error:a,id:l,indexArray:s=0,isValid:c,isTouched:p,label:d,name:g,maskValue:x=!1,onPaste:h,placeholder:b,removeItemArray:w,register:$,suggestions:S,tooltip:C,type:j="text",weight:v,...k})=>{const{required:z,onBlur:F,onChange:I}=k,E=f.useTheme(),T=e?void 0:a,[A,O]=u.useState(""),B=u.useCallback(W=>{O(W.target.value),I==null||I(W)},[I]),V=c&&p&&!e&&A.trim()!=="",_=u.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]);return t.jsxs(Y,{error:T,helpLink:o,helpLinkText:r,helpText:i,htmlFor:g,label:d,required:z,tooltip:C,weight:v,children:[t.jsxs(q,{className:`
1291
+ `,Zt=({handleTimeChange:e,onClose:n,props:o,timeState:i})=>{const r=f.useTheme(),{locale:a}=y.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=y.$131cf43a05231e1e$export$6d095e787d2b5e1f({...o,createCalendar:y.$64244302c3013299$export$dd0bbc9b26defe37,locale:a}),{prevButtonProps:s,nextButtonProps:c,title:p}=y.$9942cad8a072a530$export$3ee915f8151bd4f1(o,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Oe,{nextButtonProps:c,prevButtonProps:s,state:l,title:p}),t.jsx(Pe,{state:l}),t.jsxs(fi,{children:[t.jsx(R,{color:r.palette.gray[800],fontWeight:"bold",size:"md",children:"Time"}),t.jsx(yi,{children:t.jsx(Gt,{hourCycle:12,label:"time-field",onChange:e,value:i.timeValue})})]}),t.jsx(st,{children:t.jsx(M,{onClick:n,variant:"ghost",children:"Cancel"})})]})},bi=e=>{const{disabled:n=!1,error:o,required:i,label:r,name:a,tooltip:l,register:s,setValue:c,watch:p}=e,d=p==null?void 0:p(a),g=u.useRef(null),x=y.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:i,shouldCloseOnSelect:!1,value:y._.isNil(d)||y._.isEmpty(d)||d==="-"||y.dayjs(d,"YYYY/MM/DD hh:mm A").isValid()===!1?null:y.$fae977aafc393c5c$export$588937bcd60ade55(y.dayjs(d,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=x,{groupProps:b,fieldProps:w,buttonProps:$,dialogProps:C,calendarProps:S}=y.$6057a3d2a53a12fd$export$42df105a73306d51(e,x,g),v=u.useCallback(k=>{if(S.onChange&&S.onChange(k),x.timeValue){const z=Ct(k,x.timeValue);c==null||c(a,z,{shouldDirty:!0})}else x.setDateValue(k)},[S,a,c,x]),j=u.useCallback(k=>{if(k){x.setTimeValue(k);const z=x.dateValue;if(z){const F=Ct(z,k);c==null||c(a,F,{shouldDirty:!0})}}},[x,c,a]);return t.jsxs(Y,{error:n?void 0:o,htmlFor:a,label:r,required:i,tooltip:l,children:[t.jsx(fe,{buttonProps:$,datePickerRef:g,disabled:n,error:o,fieldProps:w,granularity:"minute",groupProps:b,name:a,register:s,setValue:c,value:d}),x.isOpen&&!n?t.jsx(Te,{offset:8,placement:"bottom start",state:x,triggerRef:g,children:t.jsx(Me,{...C,children:t.jsx(Zt,{handleTimeChange:j,onClose:h,props:{...S,onChange:v},timeState:x})})}):null]})},$i=({children:e,currentValue:n,externalLink:o,isEditing:i,label:r,name:a,tooltip:l})=>{if(i)return t.jsx("div",{children:e});const s=y.lodashExports.isNil(n)?"":n,c=String(o??s);return t.jsxs(m,{children:[t.jsx(rt,{htmlFor:a,label:r,tooltip:l,weight:"bold"}),c.startsWith("https://")?t.jsx(te,{href:c,children:s}):t.jsx(R,{size:"md",children:s})]})},We=({disabled:e=!1,hasIcon:n=!1,helpLink:o,helpLinkText:i,helpText:r,error:a,id:l,indexArray:s=0,isValid:c,isTouched:p,label:d,name:g,maskValue:x=!1,onPaste:h,placeholder:b,removeItemArray:w,register:$,suggestions:C,tooltip:S,type:v="text",weight:j,...k})=>{const{required:z,onBlur:F,onChange:I}=k,E=f.useTheme(),T=e?void 0:a,[A,O]=u.useState(""),B=u.useCallback(W=>{O(W.target.value),I==null||I(W)},[I]),V=c&&p&&!e&&A.trim()!=="",_=u.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]);return t.jsxs(Y,{error:T,helpLink:o,helpLinkText:i,helpText:r,htmlFor:g,label:d,required:z,tooltip:S,weight:j,children:[t.jsxs(Z,{className:`
1292
1292
  ${e?"disabled":""} ${T?"error":""} ${V?"success":""}
1293
- `,children:[n?t.jsx(D,{icon:"user",iconSize:"xl",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":T?"true":"false","aria-label":g,"aria-required":z,autoComplete:"off",className:x?"sr-block":"","data-testid":`${g}-input`,disabled:e,id:g,list:S?`list_${g}`:void 0,onKeyDown:_,onPaste:h,placeholder:b,type:j,...$?$(g,{required:z,onBlur:F,onChange:B}):{...k,onChange:B}}),T?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:E.palette.error[500],iconSize:"lg"}):void 0,V?t.jsx(D,{icon:"check-circle",iconClass:"success-icon",iconColor:E.palette.success[500],iconSize:"lg"}):void 0,l==="array"&&s>0?t.jsx(H,{color:E.palette.gray[400],icon:"trash",iconSize:"sm",iconType:"fa-light",onClick:w?w(s):void 0,variant:"ghost"}):void 0]}),S?t.jsx("datalist",{id:`list_${g}`,children:S.map(W=>t.jsx("option",{value:W},W))}):void 0]})},$r=f.styled.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,mr=f.styled.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
1293
+ `,children:[n?t.jsx(D,{icon:"user",iconSize:"xl",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":T?"true":"false","aria-label":g,"aria-required":z,autoComplete:"off",className:x?"sr-block":"","data-testid":`${g}-input`,disabled:e,id:g,list:C?`list_${g}`:void 0,onKeyDown:_,onPaste:h,placeholder:b,type:v,...$?$(g,{required:z,onBlur:F,onChange:B}):{...k,onChange:B}}),T?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:E.palette.error[500],iconSize:"lg"}):void 0,V?t.jsx(D,{icon:"check-circle",iconClass:"success-icon",iconColor:E.palette.success[500],iconSize:"lg"}):void 0,l==="array"&&s>0?t.jsx(H,{color:E.palette.gray[400],icon:"trash",iconSize:"sm",iconType:"fa-light",onClick:w?w(s):void 0,variant:"ghost"}):void 0]}),C?t.jsx("datalist",{id:`list_${g}`,children:C.map(W=>t.jsx("option",{value:W},W))}):void 0]})},mi=f.styled.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,wi=f.styled.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
1294
1294
  gap: 12px;
1295
- `,wr=f.styled.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
1295
+ `,ji=f.styled.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
1296
1296
  gap: 8px;
1297
- `,De=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,vr=f.styled.div.attrs({className:"comp-col"})`
1297
+ `,De=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,vi=f.styled.div.attrs({className:"comp-col"})`
1298
1298
  word-wrap: break-word;
1299
1299
 
1300
1300
  ${({$width:e=null})=>e===null?"":`width: ${e}`};
@@ -1318,7 +1318,7 @@
1318
1318
  > .comp-card {
1319
1319
  height: 100%;
1320
1320
  }
1321
- `,Ke=({children:e,xl:n,lg:o,md:r,sm:i,paddingTop:a,width:l})=>t.jsx(vr,{$lg:o,$md:r,$paddingTop:a,$sm:i,$width:l,$xl:n,children:e}),jr=f.styled.div.attrs({className:"comp-gap"})`
1321
+ `,Ke=({children:e,xl:n,lg:o,md:i,sm:r,paddingTop:a,width:l})=>t.jsx(vi,{$lg:o,$md:i,$paddingTop:a,$sm:r,$width:l,$xl:n,children:e}),ki=f.styled.div.attrs({className:"comp-gap"})`
1322
1322
  ${({$disp:e="flex",$mh:n=4,$mv:o=4})=>`
1323
1323
  align-items: center;
1324
1324
  display: ${e};
@@ -1328,12 +1328,12 @@
1328
1328
  margin: ${o}px ${n}px;
1329
1329
  }
1330
1330
  `}
1331
- `,kr=({children:e,disp:n,mh:o,mv:r})=>t.jsx(jr,{$disp:n,$mh:o,$mv:r,children:e}),Cr=f.styled.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
1332
- ${({$align:e="stretch",$cols:n=100,$colsPadding:o=6,$justify:r="start"})=>`
1331
+ `,Ci=({children:e,disp:n,mh:o,mv:i})=>t.jsx(ki,{$disp:n,$mh:o,$mv:i,children:e}),Si=f.styled.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
1332
+ ${({$align:e="stretch",$cols:n=100,$colsPadding:o=6,$justify:i="start"})=>`
1333
1333
  align-items: ${e};
1334
- justify-content: ${r};
1334
+ justify-content: ${i};
1335
1335
  margin: -6px;
1336
- text-align: ${r};
1336
+ text-align: ${i};
1337
1337
 
1338
1338
  --cols: ${n};
1339
1339
 
@@ -1346,24 +1346,24 @@
1346
1346
  padding: ${o}px;
1347
1347
  }
1348
1348
  `}
1349
- `,Xt=({align:e,children:n,cols:o,colsPadding:r,justify:i})=>t.jsx(Cr,{$align:e,$cols:o,$colsPadding:r,$justify:i,children:n}),Ze=({addText:e,append:n,disabled:o=!1,fields:r,fieldState:i,initValue:a="",index:l=0,required:s,label:c,max:p=100,name:d,onBlur:g,onChange:x,placeholder:h,tooltip:b,remove:w,value:$})=>{var j;const S=u.useCallback(()=>{n==null||n(a)},[n,a]),C=u.useCallback(v=>()=>{w==null||w(v)},[w]);return t.jsxs(Xt,{align:"start",children:[t.jsx(Ke,{lg:75,md:75,sm:75,children:t.jsx(We,{disabled:o,error:i?(j=i.error)==null?void 0:j.message:void 0,id:"array",indexArray:l,isTouched:i?i.isTouched:void 0,isValid:i?!i.invalid:void 0,label:c,name:d,onBlur:g,onChange:x,placeholder:h,removeItemArray:C,required:s,tooltip:b,value:$})}),l<p-1&&l+1===(r==null?void 0:r.length)?t.jsx(Ke,{lg:25,md:25,sm:25,children:t.jsx(M,{disabled:o,icon:"plus",onClick:S,variant:"ghost",width:"max-content",children:e??"Add"})}):void 0]})},Sr=({addText:e,append:n,control:o,disabled:r,fields:i,initValue:a="",required:l,label:s,max:c=void 0,name:p="array-field",onChange:d,placeholder:g,remove:x,tooltip:h})=>o&&i?t.jsx(u.Fragment,{children:i.map((b,w)=>t.jsx(y.Controller,{control:o,name:`${p}.${w}`,render:({field:$,fieldState:S})=>t.jsx(Ze,{addText:e,append:n,disabled:r,fieldState:S,fields:i,index:w,initValue:a,label:s,max:c,name:$.name,onBlur:$.onBlur,onChange:d??$.onChange,placeholder:g,remove:x,required:l,tooltip:h,value:typeof $.value=="object"?$.value.value:$.value}),index:w},b.id))}):t.jsx(Ze,{addText:e,disabled:r,initValue:a,label:s,max:c,name:p,onChange:d,placeholder:g,required:l,tooltip:h}),zr=f.styled(Nt)`
1349
+ `,Xt=({align:e,children:n,cols:o,colsPadding:i,justify:r})=>t.jsx(Si,{$align:e,$cols:o,$colsPadding:i,$justify:r,children:n}),qe=({addText:e,append:n,disabled:o=!1,fields:i,fieldState:r,initValue:a="",index:l=0,required:s,label:c,max:p=100,name:d,onBlur:g,onChange:x,placeholder:h,tooltip:b,remove:w,value:$})=>{var v;const C=u.useCallback(()=>{n==null||n(a)},[n,a]),S=u.useCallback(j=>()=>{w==null||w(j)},[w]);return t.jsxs(Xt,{align:"start",children:[t.jsx(Ke,{lg:75,md:75,sm:75,children:t.jsx(We,{disabled:o,error:r?(v=r.error)==null?void 0:v.message:void 0,id:"array",indexArray:l,isTouched:r?r.isTouched:void 0,isValid:r?!r.invalid:void 0,label:c,name:d,onBlur:g,onChange:x,placeholder:h,removeItemArray:S,required:s,tooltip:b,value:$})}),l<p-1&&l+1===(i==null?void 0:i.length)?t.jsx(Ke,{lg:25,md:25,sm:25,children:t.jsx(M,{disabled:o,icon:"plus",onClick:C,variant:"ghost",width:"max-content",children:e??"Add"})}):void 0]})},zi=({addText:e,append:n,control:o,disabled:i,fields:r,initValue:a="",required:l,label:s,max:c=void 0,name:p="array-field",onChange:d,placeholder:g,remove:x,tooltip:h})=>o&&r?t.jsx(u.Fragment,{children:r.map((b,w)=>t.jsx(y.Controller,{control:o,name:`${p}.${w}`,render:({field:$,fieldState:C})=>t.jsx(qe,{addText:e,append:n,disabled:i,fieldState:C,fields:r,index:w,initValue:a,label:s,max:c,name:$.name,onBlur:$.onBlur,onChange:d??$.onChange,placeholder:g,remove:x,required:l,tooltip:h,value:typeof $.value=="object"?$.value.value:$.value}),index:w},b.id))}):t.jsx(qe,{addText:e,disabled:i,initValue:a,label:s,max:c,name:p,onChange:d,placeholder:g,required:l,tooltip:h}),Ti=f.styled(Nt)`
1350
1350
  white-space: nowrap;
1351
1351
  margin-right: ${({theme:e})=>e.spacing[.25]};
1352
1352
  text-overflow: ellipsis;
1353
1353
  overflow: hidden;
1354
1354
  max-width: 80%;
1355
- `,Tr=f.styled.input`
1355
+ `,Ii=f.styled.input`
1356
1356
  opacity: 0;
1357
1357
  position: absolute;
1358
1358
  visibility: hidden;
1359
1359
  width: 0;
1360
- `,ye=(e,n,o)=>{const r=new Event(e);return Object.defineProperty(r,"target",{value:{name:n,value:o}}),r},Ir=e=>{const n=e;return n?Array.from(n).map(o=>o.name).join(", "):""},Er=({accept:e,disabled:n=!1,error:o,label:r,helpLink:i,helpText:a,id:l,multiple:s,name:c,onChange:p,required:d,register:g,setValue:x,tooltip:h,watch:b,weight:w})=>{const $=f.useTheme(),S=n?void 0:o,C=u.useRef(null),j=g==null?void 0:g(c,{required:d}),v=b==null?void 0:b(c),k=Ir(v),z=u.useCallback(()=>{const E=ye("change",c,void 0);x&&x(c,void 0),j&&j.onChange(E)},[j,c,x]),F=u.useCallback(E=>{const{files:T}=E.currentTarget,A=ye("change",c,T&&T.length>0?T:void 0);T&&T.length>0&&(p==null||p(A),x&&x(c,T),j&&j.onChange(A))},[j,c,p,x]),I=u.useCallback(E=>{n?E.preventDefault():C.current&&C.current.click()},[n]);return t.jsxs(Y,{error:S,helpLink:i,helpText:a,htmlFor:l??c,label:r,required:d,tooltip:h,weight:w,children:[t.jsxs(q,{className:`${n?"disabled":""} ${S?"error":""}`,children:[t.jsx(zr,{$size:"md",children:k}),t.jsxs(m,{alignItems:"center",display:"flex",gap:.625,children:[y.lodashExports.isEmpty(k)||n?void 0:t.jsx(H,{color:$.palette.gray[400],height:"20px",icon:"xmark",iconSize:"64px",iconType:"fa-light",onClick:z,variant:"ghost",width:"20px"}),S&&t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"lg"}),t.jsxs(M,{border:n?`1px solid ${$.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:I,variant:"primary",width:"96px",children:[t.jsx(D,{icon:"search",iconSize:"xl",mr:.5}),"Add file"]})]})]}),t.jsx(Tr,{...j,accept:e,"aria-label":c,"data-testid":c,disabled:n,id:l??c,multiple:s,name:c,onChange:F,ref:C,type:"file"})]})},Rr=f.styled.input`
1360
+ `,ye=(e,n,o)=>{const i=new Event(e);return Object.defineProperty(i,"target",{value:{name:n,value:o}}),i},Ei=e=>{const n=e;return n?Array.from(n).map(o=>o.name).join(", "):""},Ri=({accept:e,disabled:n=!1,error:o,label:i,helpLink:r,helpText:a,id:l,multiple:s,name:c,onChange:p,required:d,register:g,setValue:x,tooltip:h,watch:b,weight:w})=>{const $=f.useTheme(),C=n?void 0:o,S=u.useRef(null),v=g==null?void 0:g(c,{required:d}),j=b==null?void 0:b(c),k=Ei(j),z=u.useCallback(()=>{const E=ye("change",c,void 0);x&&x(c,void 0),v&&v.onChange(E)},[v,c,x]),F=u.useCallback(E=>{const{files:T}=E.currentTarget,A=ye("change",c,T&&T.length>0?T:void 0);T&&T.length>0&&(p==null||p(A),x&&x(c,T),v&&v.onChange(A))},[v,c,p,x]),I=u.useCallback(E=>{n?E.preventDefault():S.current&&S.current.click()},[n]);return t.jsxs(Y,{error:C,helpLink:r,helpText:a,htmlFor:l??c,label:i,required:d,tooltip:h,weight:w,children:[t.jsxs(Z,{className:`${n?"disabled":""} ${C?"error":""}`,children:[t.jsx(Ti,{$size:"md",children:k}),t.jsxs(m,{alignItems:"center",display:"flex",gap:.625,children:[y.lodashExports.isEmpty(k)||n?void 0:t.jsx(H,{color:$.palette.gray[400],height:"20px",icon:"xmark",iconSize:"64px",iconType:"fa-light",onClick:z,variant:"ghost",width:"20px"}),C&&t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"lg"}),t.jsxs(M,{border:n?`1px solid ${$.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:I,variant:"primary",width:"96px",children:[t.jsx(D,{icon:"search",iconSize:"xl",mr:.5}),"Add file"]})]})]}),t.jsx(Ii,{...v,accept:e,"aria-label":c,"data-testid":c,disabled:n,id:l??c,multiple:s,name:c,onChange:F,ref:S,type:"file"})]})},Di=f.styled.input`
1361
1361
  border: none;
1362
1362
  background: transparent;
1363
1363
  min-width: 15rem;
1364
1364
  padding: 0;
1365
1365
  flex: 1;
1366
- `,qe=({disabled:e=!1,error:n,field:o,helpLink:r,helpLinkText:i,helpText:a,label:l,name:s="input-tag",onChange:c,onRemove:p,placeholder:d,required:g,tooltip:x,value:h,weight:b})=>{const w=f.useTheme(),$=e?void 0:n,[S,C]=u.useState(""),j=c?h:o==null?void 0:o.value,v=u.useMemo(()=>j&&typeof j=="string"?j.split(",").filter(Boolean):[],[j]),k=u.useCallback(T=>{const O=[...new Set(T.filter(Boolean))].join(","),B=ye("change",s,O);o&&o.onChange(B),c&&c(B)},[o,s,c]),z=u.useCallback(T=>{C(T.target.value)},[]),F=u.useCallback(T=>{const A=S.trim();A.length&&!v.includes(A)&&(T.preventDefault(),k([...v,A]),C("")),o&&o.onBlur()},[S,o,k,v]),I=u.useCallback(T=>{const A=S.trim();T.key==="Enter"&&A.length===0&&T.preventDefault(),["Enter",","].includes(T.key)&&A.length>0&&!v.includes(A)?(T.preventDefault(),k([...v,A]),C("")):T.key==="Backspace"&&!A.length&&v.length&&(T.preventDefault(),p==null||p(v[v.length-1]),k(v.slice(0,-1)))},[S,p,k,v]),E=u.useCallback(T=>()=>{p==null||p(T),k(v.filter(A=>A!==T))},[p,k,v]);return t.jsx(Y,{error:$,helpLink:r,helpLinkText:i,helpText:a,htmlFor:s,label:l,required:g,tooltip:x,weight:b,children:t.jsxs(q,{$overflowX:"auto",className:`${e?"disabled":""} ${$?"error":""}`,children:[v.map(T=>t.jsx(X,{disabled:e,onClose:E(T),tagLabel:T},T)),t.jsx(Rr,{"aria-hidden":!1,"aria-invalid":$?"true":"false","aria-label":s,"aria-required":g,autoComplete:"off",disabled:e,id:s,onBlur:F,onChange:z,onKeyDown:I,placeholder:v.length===0?d:void 0,ref:o==null?void 0:o.ref,type:"text",value:S}),$?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"lg"}):void 0]})})},Dr=({disabled:e=!1,control:n,error:o,helpLink:r,helpLinkText:i,helpText:a,label:l,name:s="input-tag",onChange:c,onRemove:p,placeholder:d,required:g,tooltip:x,value:h,weight:b})=>n?t.jsx(y.Controller,{control:n,name:s,render:({field:w})=>t.jsx(qe,{disabled:e,error:o,field:w,helpLink:r,helpLinkText:i,helpText:a,label:l,name:s,onRemove:p,placeholder:d,required:g,tooltip:x,weight:b}),rules:{required:g}}):t.jsx(qe,{disabled:e,error:o,helpLink:r,helpLinkText:i,helpText:a,label:l,name:s,onChange:c,onRemove:p,placeholder:d,required:g,tooltip:x,value:h,weight:b}),pe=u.forwardRef(function({disabled:n,icon:o,margin:r,onClick:i,...a},l){return t.jsx(lr,{$margin:r,"aria-label":o,className:"action-btn",disabled:n,onClick:i,ref:l,type:"button",...a,children:t.jsx(D,{icon:o,iconClass:"action",iconSize:"lg",iconType:"fa-light"})})}),be=({error:e,decimalPlaces:n=0,disabled:o=!1,id:r,maxLength:i,max:a=1/0,min:l=0,name:s,onChange:c,onEnter:p,placeholder:d,register:g,required:x,setValue:h,tooltipMessage:b,value:w,variant:$="full",defaultValue:S})=>{const C=f.useTheme(),j=o?void 0:e,v=n<0?0:n,[k,z]=u.useState(w?y._.toNumber(w):S?y._.toNumber(S):0),F=u.useCallback(()=>{const O=(k-10**-v).toFixed(v),B=Math.max(Number(l),Number(O));h&&h(s,B,{shouldDirty:!0}),z(B);const V=ye("change",s,O);c&&c(V)},[k,v,l,h,s,c]),I=u.useCallback(()=>{const O=(k+10**-v).toFixed(v),B=Math.min(Number(a),Number(O)>Number(l)?Number(O):Number(l));h&&h(s,B,{shouldDirty:!0}),z(B);const V=ye("change",s,O);c&&c(V)},[k,v,a,l,h,s,c]),E=u.useCallback(O=>{const{value:B}=O.target,V=/\d+/u.test(B)&&!y._.isEmpty(B);h&&h(s,V?B:void 0),c&&c(O),z(Number(B))},[s,c,h]),T=u.useCallback(O=>{O.stopPropagation(),O.key==="Enter"&&!y.lodashExports.isEmpty(O.currentTarget.value)&&(p==null||p(y.lodashExports.toNumber(O.currentTarget.value)))},[p]),A=()=>t.jsx("input",{"aria-hidden":!1,"aria-invalid":j?"true":"false","aria-label":s,"aria-required":x,autoComplete:"off",disabled:o,id:r??s,max:a,min:l,onChange:E,onKeyUp:T,placeholder:d,required:x,step:10**-v,type:"number",value:k,...g==null?void 0:g(s,{maxLength:i,max:a,min:l,onChange:E,value:w,valueAsNumber:!0})});return t.jsxs(q,{$variant:$,className:`${o?"disabled":""} ${j?"error":""}`,children:[$==="compact"&&b?t.jsx(K,{id:`numberInputTooltip-${s}`,tip:b,width:"100%",children:A()}):A(),j&&t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:C.palette.error[500],iconSize:"lg"}),$==="compact"?t.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",borderLeft:"inherit"},children:[t.jsx(pe,{borderRadius:`0 ${C.spacing[.5]} 0 0`,disabled:o,icon:"plus",onClick:I,px:.25}),t.jsx(Jo,{}),t.jsx(pe,{borderRadius:`0 0 ${C.spacing[.5]} 0`,disabled:o,icon:"minus",onClick:F,px:.25})]}):t.jsxs(t.Fragment,{children:[t.jsx(pe,{borderLeft:"inherit",borderRight:"inherit",disabled:o,icon:"minus",margin:"0 -0.625rem 0 0",onClick:F,px:.75,py:.75}),t.jsx(pe,{borderRadius:`0 ${C.spacing[.5]} ${C.spacing[.5]} 0`,disabled:o,icon:"plus",onClick:I,px:.75,py:.75})]})]})},Jt=({autoUpdate:e,decimalPlaces:n,disabled:o=!1,error:r,helpLink:i,helpLinkText:a,helpText:l,id:s,label:c,linkPosition:p,maxLength:d,max:g,min:x,name:h,onChange:b,onEnter:w,placeholder:$,register:S,required:C,setValue:j,tooltip:v,tooltipMessage:k,value:z,variant:F="full",watch:I,weight:E,defaultValue:T})=>F==="compact"?t.jsx(be,{"aria-label":h,autoUpdate:e,decimalPlaces:n,defaultValue:T??Number(z??0),disabled:o,max:g,min:x,name:h,onEnter:w??(()=>{}),tooltipMessage:k,value:z,variant:F}):t.jsx(Y,{error:o?void 0:r,helpLink:i,helpLinkText:a,helpText:l,htmlFor:h,label:c,linkPosition:p,maxLength:d,required:C,tooltip:v,weight:E,children:t.jsx(be,{decimalPlaces:n,disabled:o,error:r,id:s,max:g,maxLength:d,min:x,name:h,onChange:b,placeholder:$,register:S,required:C,setValue:j,value:I?I(h):z,variant:F})}),Qt=({disabled:e=!1,error:n,name:o,label:r,propsMax:i,propsMin:a,required:l,tooltip:s,variant:c="default"})=>{const p=`${o}Max`,d=`${o}Min`;return t.jsx(Y,{error:e?void 0:n,htmlFor:o,label:r,required:l,tooltip:s,children:t.jsxs(m,{display:"flex",flexDirection:c==="filters"?"column":"row",gap:.25,width:"100%",children:[t.jsx(be,{...a,disabled:e,error:n,name:(a==null?void 0:a.name)??d}),t.jsx(be,{...i,disabled:e,error:n,name:(i==null?void 0:i.name)??p})]})})},Fr=f.styled.div`
1366
+ `,Ze=({disabled:e=!1,error:n,field:o,helpLink:i,helpLinkText:r,helpText:a,label:l,name:s="input-tag",onChange:c,onRemove:p,placeholder:d,required:g,tooltip:x,value:h,weight:b})=>{const w=f.useTheme(),$=e?void 0:n,[C,S]=u.useState(""),v=c?h:o==null?void 0:o.value,j=u.useMemo(()=>v&&typeof v=="string"?v.split(",").filter(Boolean):[],[v]),k=u.useCallback(T=>{const O=[...new Set(T.filter(Boolean))].join(","),B=ye("change",s,O);o&&o.onChange(B),c&&c(B)},[o,s,c]),z=u.useCallback(T=>{S(T.target.value)},[]),F=u.useCallback(T=>{const A=C.trim();A.length&&!j.includes(A)&&(T.preventDefault(),k([...j,A]),S("")),o&&o.onBlur()},[C,o,k,j]),I=u.useCallback(T=>{const A=C.trim();T.key==="Enter"&&A.length===0&&T.preventDefault(),["Enter",","].includes(T.key)&&A.length>0&&!j.includes(A)?(T.preventDefault(),k([...j,A]),S("")):T.key==="Backspace"&&!A.length&&j.length&&(T.preventDefault(),p==null||p(j[j.length-1]),k(j.slice(0,-1)))},[C,p,k,j]),E=u.useCallback(T=>()=>{p==null||p(T),k(j.filter(A=>A!==T))},[p,k,j]);return t.jsx(Y,{error:$,helpLink:i,helpLinkText:r,helpText:a,htmlFor:s,label:l,required:g,tooltip:x,weight:b,children:t.jsxs(Z,{$overflowX:"auto",className:`${e?"disabled":""} ${$?"error":""}`,children:[j.map(T=>t.jsx(J,{disabled:e,onClose:E(T),tagLabel:T},T)),t.jsx(Di,{"aria-hidden":!1,"aria-invalid":$?"true":"false","aria-label":s,"aria-required":g,autoComplete:"off",disabled:e,id:s,onBlur:F,onChange:z,onKeyDown:I,placeholder:j.length===0?d:void 0,ref:o==null?void 0:o.ref,type:"text",value:C}),$?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"lg"}):void 0]})})},Fi=({disabled:e=!1,control:n,error:o,helpLink:i,helpLinkText:r,helpText:a,label:l,name:s="input-tag",onChange:c,onRemove:p,placeholder:d,required:g,tooltip:x,value:h,weight:b})=>n?t.jsx(y.Controller,{control:n,name:s,render:({field:w})=>t.jsx(Ze,{disabled:e,error:o,field:w,helpLink:i,helpLinkText:r,helpText:a,label:l,name:s,onRemove:p,placeholder:d,required:g,tooltip:x,weight:b}),rules:{required:g}}):t.jsx(Ze,{disabled:e,error:o,helpLink:i,helpLinkText:r,helpText:a,label:l,name:s,onChange:c,onRemove:p,placeholder:d,required:g,tooltip:x,value:h,weight:b}),pe=u.forwardRef(function({disabled:n,icon:o,margin:i,onClick:r,...a},l){return t.jsx(ci,{$margin:i,"aria-label":o,className:"action-btn",disabled:n,onClick:r,ref:l,type:"button",...a,children:t.jsx(D,{icon:o,iconClass:"action",iconSize:"lg",iconType:"fa-light"})})}),be=({error:e,decimalPlaces:n=0,disabled:o=!1,id:i,maxLength:r,max:a=1/0,min:l=0,name:s,onChange:c,onEnter:p,placeholder:d,register:g,required:x,setValue:h,tooltipMessage:b,value:w,variant:$="full",defaultValue:C})=>{const S=f.useTheme(),v=o?void 0:e,j=n<0?0:n,[k,z]=u.useState(w?y._.toNumber(w):C?y._.toNumber(C):0),F=u.useCallback(()=>{const O=(k-10**-j).toFixed(j),B=Math.max(Number(l),Number(O));h&&h(s,B,{shouldDirty:!0}),z(B);const V=ye("change",s,O);c&&c(V)},[k,j,l,h,s,c]),I=u.useCallback(()=>{const O=(k+10**-j).toFixed(j),B=Math.min(Number(a),Number(O)>Number(l)?Number(O):Number(l));h&&h(s,B,{shouldDirty:!0}),z(B);const V=ye("change",s,O);c&&c(V)},[k,j,a,l,h,s,c]),E=u.useCallback(O=>{const{value:B}=O.target,V=/\d+/u.test(B)&&!y._.isEmpty(B);h&&h(s,V?B:void 0),c&&c(O),z(Number(B))},[s,c,h]),T=u.useCallback(O=>{O.stopPropagation(),O.key==="Enter"&&!y.lodashExports.isEmpty(O.currentTarget.value)&&(p==null||p(y.lodashExports.toNumber(O.currentTarget.value)))},[p]),A=()=>t.jsx("input",{"aria-hidden":!1,"aria-invalid":v?"true":"false","aria-label":s,"aria-required":x,autoComplete:"off",disabled:o,id:i??s,max:a,min:l,onChange:E,onKeyUp:T,placeholder:d,required:x,step:10**-j,type:"number",value:k,...g==null?void 0:g(s,{maxLength:r,max:a,min:l,onChange:E,value:w,valueAsNumber:!0})});return t.jsxs(Z,{$variant:$,className:`${o?"disabled":""} ${v?"error":""}`,children:[$==="compact"&&b?t.jsx(K,{id:`numberInputTooltip-${s}`,tip:b,width:"100%",children:A()}):A(),v&&t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:S.palette.error[500],iconSize:"lg"}),$==="compact"?t.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",borderLeft:"inherit"},children:[t.jsx(pe,{borderRadius:`0 ${S.spacing[.5]} 0 0`,disabled:o,icon:"plus",onClick:I,px:.25}),t.jsx(Qo,{}),t.jsx(pe,{borderRadius:`0 0 ${S.spacing[.5]} 0`,disabled:o,icon:"minus",onClick:F,px:.25})]}):t.jsxs(t.Fragment,{children:[t.jsx(pe,{borderLeft:"inherit",borderRight:"inherit",disabled:o,icon:"minus",margin:"0 -0.625rem 0 0",onClick:F,px:.75,py:.75}),t.jsx(pe,{borderRadius:`0 ${S.spacing[.5]} ${S.spacing[.5]} 0`,disabled:o,icon:"plus",onClick:I,px:.75,py:.75})]})]})},Jt=({autoUpdate:e,decimalPlaces:n,disabled:o=!1,error:i,helpLink:r,helpLinkText:a,helpText:l,id:s,label:c,linkPosition:p,maxLength:d,max:g,min:x,name:h,onChange:b,onEnter:w,placeholder:$,register:C,required:S,setValue:v,tooltip:j,tooltipMessage:k,value:z,variant:F="full",watch:I,weight:E,defaultValue:T})=>F==="compact"?t.jsx(be,{"aria-label":h,autoUpdate:e,decimalPlaces:n,defaultValue:T??Number(z??0),disabled:o,max:g,min:x,name:h,onEnter:w??(()=>{}),tooltipMessage:k,value:z,variant:F}):t.jsx(Y,{error:o?void 0:i,helpLink:r,helpLinkText:a,helpText:l,htmlFor:h,label:c,linkPosition:p,maxLength:d,required:S,tooltip:j,weight:E,children:t.jsx(be,{decimalPlaces:n,disabled:o,error:i,id:s,max:g,maxLength:d,min:x,name:h,onChange:b,placeholder:$,register:C,required:S,setValue:v,value:I?I(h):z,variant:F})}),Qt=({disabled:e=!1,error:n,name:o,label:i,propsMax:r,propsMin:a,required:l,tooltip:s,variant:c="default"})=>{const p=`${o}Max`,d=`${o}Min`;return t.jsx(Y,{error:e?void 0:n,htmlFor:o,label:i,required:l,tooltip:s,children:t.jsxs(m,{display:"flex",flexDirection:c==="filters"?"column":"row",gap:.25,width:"100%",children:[t.jsx(be,{...a,disabled:e,error:n,name:(a==null?void 0:a.name)??d}),t.jsx(be,{...r,disabled:e,error:n,name:(r==null?void 0:r.name)??p})]})})},Ni=f.styled.div`
1367
1367
  ${({theme:e})=>`
1368
1368
  align-items: flex-start;
1369
1369
  align-self: stretch;
@@ -1403,7 +1403,7 @@
1403
1403
  }
1404
1404
  }
1405
1405
  `}
1406
- `,Nr=f.styled.button`
1406
+ `,Li=f.styled.button`
1407
1407
  ${({theme:e})=>`
1408
1408
  align-items: center;
1409
1409
  background: inherit;
@@ -1419,7 +1419,7 @@
1419
1419
  cursor: not-allowed;
1420
1420
  }
1421
1421
  `}
1422
- `,Lr=f.styled.ul`
1422
+ `,Ai=f.styled.ul`
1423
1423
  ${({theme:e})=>`
1424
1424
  align-items: flex-start;
1425
1425
  box-shadow: ${e.shadows.md};
@@ -1433,7 +1433,7 @@
1433
1433
  scrollbar-width: thin;
1434
1434
  width: max-content;
1435
1435
  `}
1436
- `,Ar=f.styled.li`
1436
+ `,Pi=f.styled.li`
1437
1437
  ${({theme:e})=>`
1438
1438
  align-items: center;
1439
1439
  background: ${e.palette.white};
@@ -1450,22 +1450,22 @@
1450
1450
  background: ${e.palette.gray[100]};
1451
1451
  }
1452
1452
  `}
1453
- `,Pr=f.styled.p`
1453
+ `,Oi=f.styled.p`
1454
1454
  color: ${({theme:e})=>e.palette.gray[800]};
1455
1455
  font-size: inherit;
1456
1456
  min-width: 55%;
1457
1457
  overflow: hidden;
1458
1458
  text-overflow: ellipsis;
1459
1459
  white-space: nowrap;
1460
- `,Or=({disabled:e,error:n,label:o,name:r,placeholder:i,required:a,register:l,tooltip:s,value:c,watch:p,weight:d})=>{const g=f.useTheme(),x=u.useRef(null),h=e?void 0:n,b=(p==null?void 0:p(r))??c,[w,$]=u.useState(!1),[S,C]=u.useState(""),{refs:j,floatingStyles:v}=y.useFloating$1({placement:"bottom-start",whileElementsMounted:y.autoUpdate}),{inputRef:k,inputValue:z,handlePhoneValueChange:F,country:I,setCountry:E}=y.ee({countries:y._$1,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),T=u.useCallback(_=>{_.key==="Enter"&&_.preventDefault()},[]),A=u.useCallback(_=>{_.preventDefault(),$(W=>!W),w||C("")},[w]),O=u.useCallback(_=>()=>{E(_),$(!1),C("")},[E,$]),B=u.useCallback(_=>{_.key.length===1?C(W=>W+_.key):_.key==="Backspace"&&C(W=>W.slice(0,-1))},[]),V=y._$1.filter(_=>{const{name:W}=y.M(_);return W.toLowerCase().includes(S.toLowerCase())});return ne(j.floating.current,()=>{$(!1),C("")},!0),t.jsx(Y,{error:h,htmlFor:r,label:o,required:a,tooltip:s,weight:d,children:t.jsxs(Fr,{className:`${e?"disabled":""} ${h?"error":""}`,ref:x,children:[t.jsxs(Nr,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:A,onKeyDown:B,ref:j.setReference,children:[t.jsx(y.q,{iso2:I.iso2,size:"16px"}),t.jsx(D,{icon:"angle-down",iconColor:g.palette.gray[400],iconSize:"lg",iconType:"fa-light"})]}),t.jsxs(q,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":r,"aria-required":a,autoComplete:"off","data-testid":`${r}-input`,disabled:e,id:r,name:r,onKeyDown:T,placeholder:i,ref:k,type:"tel",value:z,...l==null?void 0:l(r,{required:a,onChange:F})}),h?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:g.palette.error[500],iconSize:"lg"}):void 0]}),w&&le.createPortal(t.jsx(Lr,{ref:j.setFloating,style:v,children:V.map(_=>{const{dialCode:W,iso2:J,name:ce}=y.M(_);return t.jsxs(Ar,{onClick:O(J),value:J,children:[t.jsx(y.q,{iso2:J,size:"16px"}),t.jsx(Pr,{children:ce}),t.jsx(R,{color:g.palette.gray[400],size:"md",textAlign:"end",children:"+"+W})]},J)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},Mr=({disabled:e=!1,error:n,helpLink:o,helpLinkText:r,helpText:i,isTouched:a,isValid:l,label:s,name:c="input-text",id:p,maskValue:d=!1,maxLength:g,onBlur:x,placeholder:h,register:b,required:w,rows:$,tooltip:S,watch:C,weight:j,value:v})=>{const k=f.useTheme(),z=(C==null?void 0:C(c))??v,F=l&&a&&!e,I=e?void 0:n;return t.jsx(Y,{disabled:e,error:I,helpLink:o,helpLinkText:r,helpText:i,htmlFor:c,label:s,maxLength:g,required:w,tooltip:S,value:z?String(z):void 0,weight:j,children:t.jsxs(q,{className:`
1460
+ `,Mi=({disabled:e,error:n,label:o,name:i,placeholder:r,required:a,register:l,tooltip:s,value:c,watch:p,weight:d})=>{const g=f.useTheme(),x=u.useRef(null),h=e?void 0:n,b=(p==null?void 0:p(i))??c,[w,$]=u.useState(!1),[C,S]=u.useState(""),{refs:v,floatingStyles:j}=y.useFloating$1({placement:"bottom-start",whileElementsMounted:y.autoUpdate}),{inputRef:k,inputValue:z,handlePhoneValueChange:F,country:I,setCountry:E}=y.ee({countries:y._$1,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),T=u.useCallback(_=>{_.key==="Enter"&&_.preventDefault()},[]),A=u.useCallback(_=>{_.preventDefault(),$(W=>!W),w||S("")},[w]),O=u.useCallback(_=>()=>{E(_),$(!1),S("")},[E,$]),B=u.useCallback(_=>{_.key.length===1?S(W=>W+_.key):_.key==="Backspace"&&S(W=>W.slice(0,-1))},[]),V=y._$1.filter(_=>{const{name:W}=y.M(_);return W.toLowerCase().includes(C.toLowerCase())});return ne(v.floating.current,()=>{$(!1),S("")},!0),t.jsx(Y,{error:h,htmlFor:i,label:o,required:a,tooltip:s,weight:d,children:t.jsxs(Ni,{className:`${e?"disabled":""} ${h?"error":""}`,ref:x,children:[t.jsxs(Li,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:A,onKeyDown:B,ref:v.setReference,children:[t.jsx(y.q,{iso2:I.iso2,size:"16px"}),t.jsx(D,{icon:"angle-down",iconColor:g.palette.gray[400],iconSize:"lg",iconType:"fa-light"})]}),t.jsxs(Z,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":i,"aria-required":a,autoComplete:"off","data-testid":`${i}-input`,disabled:e,id:i,name:i,onKeyDown:T,placeholder:r,ref:k,type:"tel",value:z,...l==null?void 0:l(i,{required:a,onChange:F})}),h?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:g.palette.error[500],iconSize:"lg"}):void 0]}),w&&le.createPortal(t.jsx(Ai,{ref:v.setFloating,style:j,children:V.map(_=>{const{dialCode:W,iso2:Q,name:ce}=y.M(_);return t.jsxs(Pi,{onClick:O(Q),value:Q,children:[t.jsx(y.q,{iso2:Q,size:"16px"}),t.jsx(Oi,{children:ce}),t.jsx(R,{color:g.palette.gray[400],size:"md",textAlign:"end",children:"+"+W})]},Q)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},Wi=({disabled:e=!1,error:n,helpLink:o,helpLinkText:i,helpText:r,isTouched:a,isValid:l,label:s,name:c="input-text",id:p,maskValue:d=!1,maxLength:g,onBlur:x,placeholder:h,register:b,required:w,rows:$,tooltip:C,watch:S,weight:v,value:j})=>{const k=f.useTheme(),z=(S==null?void 0:S(c))??j,F=l&&a&&!e,I=e?void 0:n;return t.jsx(Y,{disabled:e,error:I,helpLink:o,helpLinkText:i,helpText:r,htmlFor:c,label:s,maxLength:g,required:w,tooltip:C,value:z?String(z):void 0,weight:v,children:t.jsxs(Z,{className:`
1461
1461
  ${e?"disabled":""} ${I?"error":""} ${F?"success":""}
1462
- `,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":I?"true":"false","aria-label":c,"aria-required":w,className:d?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:p??c,maxLength:g,placeholder:h,rows:$,value:z,...b==null?void 0:b(c,{required:w,onBlur:x})}),I?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"lg"}):void 0,F?t.jsx(D,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"lg"}):void 0]})})},Wr=({control:e,description:n,disabled:o,id:r,items:i,align:a,inputType:l="text",inputNumberProps:s,minHeight:c,minWidth:p,name:d,placeholder:g,textAlign:x,tooltip:h,title:b,value:w,isTouched:$,isValid:S,error:C,onChange:j,register:v,setValue:k,watch:z})=>{const F=u.useMemo(()=>{if(l==="text")return t.jsx(We,{disabled:o,error:C,isTouched:$,isValid:S,name:d,placeholder:g,register:v});if(l==="date")return t.jsx(Yt,{disabled:o,error:C,name:d,register:v,setValue:k,watch:z});if(l==="select"&&i)return t.jsx(at,{control:e,disabled:o,items:i,name:d,placeholder:g,value:w});const{decimalPlaces:I,max:E,min:T}=s??{};return t.jsx(Jt,{decimalPlaces:I,disabled:o,error:C,max:E,min:T,name:d,onChange:j,placeholder:g,register:v,setValue:k,value:w,watch:z})},[e,o,C,s,l,$,S,i,d,j,g,v,k,w,z]);return t.jsxs(qo,{$align:a,$minHeight:c,$minWidth:p,children:[t.jsx(Ae,{description:n,id:r,textAlign:x,title:b,tooltip:h}),F]})},en=({options:e,title:n,checkboxesName:o,defaultBgColor:r,defaultCollapsed:i,onChange:a})=>{const l=f.useTheme(),[s,c]=u.useState(i??!1),p=u.useCallback(()=>{c(d=>!d)},[]);return t.jsxs(m,{"aria-label":n,bgColor:s&&!r?l.palette.gray[50]:l.palette.white,border:"1px solid"+l.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,role:"region",width:"100%",children:[t.jsxs(m,{alignItems:"center",cursor:"pointer",display:"flex",onClick:p,children:[t.jsx(R,{color:l.palette.gray[800],fontWeight:"bold",size:"md",children:n}),t.jsx(D,{icon:s?"chevron-up":"chevron-down",iconColor:l.palette.gray[400],iconSize:"lg"})]}),s?t.jsx(m,{display:"flex",gap:.75,wrap:"wrap",children:e.map(d=>t.jsx(m,{bgColor:l.palette.white,border:"1px solid",borderColor:l.palette.gray[300],borderRadius:l.spacing[.25],px:.5,py:.5,children:t.jsx(ie,{checked:d.visible,disabled:d.locked,label:d.name,name:`${o}-${d.name}`,onChange:a,value:d.name})},d.name))}):void 0]})},Hr=f.styled.div`
1462
+ `,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":I?"true":"false","aria-label":c,"aria-required":w,className:d?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:p??c,maxLength:g,placeholder:h,rows:$,value:z,...b==null?void 0:b(c,{required:w,onBlur:x})}),I?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"lg"}):void 0,F?t.jsx(D,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"lg"}):void 0]})})},Hi=({control:e,description:n,disabled:o,id:i,items:r,align:a,inputType:l="text",inputNumberProps:s,minHeight:c,minWidth:p,name:d,placeholder:g,textAlign:x,tooltip:h,title:b,value:w,isTouched:$,isValid:C,error:S,onChange:v,register:j,setValue:k,watch:z})=>{const F=u.useMemo(()=>{if(l==="text")return t.jsx(We,{disabled:o,error:S,isTouched:$,isValid:C,name:d,placeholder:g,register:j});if(l==="date")return t.jsx(Yt,{disabled:o,error:S,name:d,register:j,setValue:k,watch:z});if(l==="select"&&r)return t.jsx(at,{control:e,disabled:o,items:r,name:d,placeholder:g,value:w});const{decimalPlaces:I,max:E,min:T}=s??{};return t.jsx(Jt,{decimalPlaces:I,disabled:o,error:S,max:E,min:T,name:d,onChange:v,placeholder:g,register:j,setValue:k,value:w,watch:z})},[e,o,S,s,l,$,C,r,d,v,g,j,k,w,z]);return t.jsxs(Xo,{$align:a,$minHeight:c,$minWidth:p,children:[t.jsx(Ae,{description:n,id:i,textAlign:x,title:b,tooltip:h}),F]})},en=({options:e,title:n,checkboxesName:o,defaultBgColor:i,defaultCollapsed:r,onChange:a})=>{const l=f.useTheme(),[s,c]=u.useState(r??!1),p=u.useCallback(()=>{c(d=>!d)},[]);return t.jsxs(m,{"aria-label":n,bgColor:s&&!i?l.palette.gray[50]:l.palette.white,border:"1px solid"+l.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,role:"region",width:"100%",children:[t.jsxs(m,{alignItems:"center",cursor:"pointer",display:"flex",onClick:p,children:[t.jsx(R,{color:l.palette.gray[800],fontWeight:"bold",size:"md",children:n}),t.jsx(D,{icon:s?"chevron-up":"chevron-down",iconColor:l.palette.gray[400],iconSize:"lg"})]}),s?t.jsx(m,{display:"flex",gap:.75,wrap:"wrap",children:e.map(d=>t.jsx(m,{bgColor:l.palette.white,border:"1px solid",borderColor:l.palette.gray[300],borderRadius:l.spacing[.25],px:.5,py:.5,children:t.jsx(re,{checked:d.visible,disabled:d.locked,label:d.name,name:`${o}-${d.name}`,onChange:a,value:d.name})},d.name))}):void 0]})},Bi=f.styled.div`
1463
1463
  display: flex;
1464
1464
  align-self: flex-start;
1465
1465
  margin-left: auto;
1466
1466
  width: 40px;
1467
1467
  height: auto;
1468
- `,tn=(e,n)=>{const[r,i]=u.useState(0),[a,l]=u.useState(0);return u.useEffect(()=>{a===100&&(()=>{i(c=>c===n-1?0:c+1)})()},[a,n]),u.useEffect(()=>{const s=setInterval(()=>{l(c=>c===100?0:c+1)},e);return()=>{clearInterval(s)}},[e]),{cycle:r,progress:a,setCycle:i,setProgress:l}},nn=({publicId:e,format:n="webp"})=>{const o=u.useMemo(()=>new y.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return u.useMemo(()=>o.image(e).format(n),[o,e,n])},Ie=e=>{const[n,o]=u.useState(!1),r=u.useCallback(()=>{o(!0)},[]),i=u.useCallback(()=>{o(!1)},[]),a=u.useCallback(()=>{o(l=>!l)},[]);return{close:i,isOpen:n,name:e,open:r,setIsOpen:o,toggle:a}},Br=e=>e.reduce((n,o)=>({...n,[o.id]:o.visible}),{}),on=({name:e,items:n,columnOrder:o,setColumnOrder:r,setColumnVisibility:i})=>{const a=u.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...x})=>({...x,visible:!0,locked:g})),...n.filter(({locked:g})=>!g)],[n]),[l,s]=u.useState(a),c=u.useCallback(g=>{const x=g.filter(({locked:$})=>!$),b=[...g.filter(({locked:$})=>$),...x],w=b.map(({name:$})=>$);s($=>[...b,...$.filter(({name:S})=>!w.includes(S))]),r&&r(b.map(({id:$})=>$))},[r]),p=u.useCallback(()=>{const g=l.map(x=>({...x,visible:x.locked||((o==null?void 0:o.includes(x.id))??!1)})).toSorted((x,h)=>{if(x.locked&&!h.locked)return-1;if(!x.locked&&h.locked)return 1;if(Number(h.visible)!==Number(x.visible))return Number(h.visible)-Number(x.visible);const b=(o==null?void 0:o.indexOf(x.id))??0,w=(o==null?void 0:o.indexOf(h.id))??0;return b-w});i==null||i(Br(g)),c(g)},[l,o,c,i]),d=u.useMemo(()=>y.some(l,g=>((o==null?void 0:o.includes(g.id))??!1)!==g.visible),[l,o]);return{setColumns:c,resetToDefault:p,columns:l,...Ie(e),hasChanged:d}},lt=(e,n)=>u.useMemo(()=>y._.debounce(e,n),[e,n]),_r=e=>{const[n,o]=u.useState(),r=lt(i=>{o(i)},(e==null?void 0:e.debounceWait)??300);return[n,r]},Vr=({alt:e="img",height:n="",width:o="",plugins:r=[y.lazyload(),y.placeholder()],publicId:i})=>{const a=nn({publicId:i});return t.jsx(y.AdvancedImage,{alt:e,cldImg:a,height:n,plugins:r,width:o})},re=tt.default.memo(Vr),Ur=f.styled.label`
1468
+ `,tn=(e,n)=>{const[i,r]=u.useState(0),[a,l]=u.useState(0);return u.useEffect(()=>{a===100&&(()=>{r(c=>c===n-1?0:c+1)})()},[a,n]),u.useEffect(()=>{const s=setInterval(()=>{l(c=>c===100?0:c+1)},e);return()=>{clearInterval(s)}},[e]),{cycle:i,progress:a,setCycle:r,setProgress:l}},nn=({publicId:e,format:n="webp"})=>{const o=u.useMemo(()=>new y.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return u.useMemo(()=>o.image(e).format(n),[o,e,n])},Ie=e=>{const[n,o]=u.useState(!1),i=u.useCallback(()=>{o(!0)},[]),r=u.useCallback(()=>{o(!1)},[]),a=u.useCallback(()=>{o(l=>!l)},[]);return{close:r,isOpen:n,name:e,open:i,setIsOpen:o,toggle:a}},_i=e=>e.reduce((n,o)=>({...n,[o.id]:o.visible}),{}),on=({name:e,items:n,columnOrder:o,setColumnOrder:i,setColumnVisibility:r})=>{const a=u.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...x})=>({...x,visible:!0,locked:g})),...n.filter(({locked:g})=>!g)],[n]),[l,s]=u.useState(a),c=u.useCallback(g=>{const x=g.filter(({locked:$})=>!$),b=[...g.filter(({locked:$})=>$),...x],w=b.map(({name:$})=>$);s($=>[...b,...$.filter(({name:C})=>!w.includes(C))]),i&&i(b.map(({id:$})=>$))},[i]),p=u.useCallback(()=>{const g=l.map(x=>({...x,visible:x.locked||((o==null?void 0:o.includes(x.id))??!1)})).toSorted((x,h)=>{if(x.locked&&!h.locked)return-1;if(!x.locked&&h.locked)return 1;if(Number(h.visible)!==Number(x.visible))return Number(h.visible)-Number(x.visible);const b=(o==null?void 0:o.indexOf(x.id))??0,w=(o==null?void 0:o.indexOf(h.id))??0;return b-w});r==null||r(_i(g)),c(g)},[l,o,c,r]),d=u.useMemo(()=>y.some(l,g=>((o==null?void 0:o.includes(g.id))??!1)!==g.visible),[l,o]);return{setColumns:c,resetToDefault:p,columns:l,...Ie(e),hasChanged:d}},lt=(e,n)=>u.useMemo(()=>y._.debounce(e,n),[e,n]),Vi=e=>{const[n,o]=u.useState(),i=lt(r=>{o(r)},(e==null?void 0:e.debounceWait)??300);return[n,i]},Ui=({alt:e="img",height:n="",width:o="",plugins:i=[y.lazyload(),y.placeholder()],publicId:r})=>{const a=nn({publicId:r});return t.jsx(y.AdvancedImage,{alt:e,cldImg:a,height:n,plugins:i,width:o})},ie=tt.default.memo(Ui),Gi=f.styled.label`
1469
1469
  ${({theme:e})=>`
1470
1470
  align-items: center;
1471
1471
  display: flex;
@@ -1544,7 +1544,7 @@
1544
1544
  }
1545
1545
 
1546
1546
  `}
1547
- `,Gr=f.styled.span.attrs({className:"checkmark"})``,ct=u.forwardRef(function({checked:n,disabled:o=!1,label:r,name:i,onChange:a,onClick:l,value:s,...c},p){return t.jsxs(Ur,{"aria-disabled":o,"aria-label":r??i,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":o,"aria-label":r??i,checked:n,disabled:o,name:i,onChange:a,onClick:l,ref:p,type:"radio",value:s,...c}),t.jsx(Gr,{}),r??null]})}),Yr=({alt:e,customDescription:n,imageId:o,icon:r,selectorProps:i,onClick:a,register:l,bgColor:s,title:c,isATag:p=!1,width:d="fit-content"})=>{const g=f.useTheme();return t.jsxs(m,{alignItems:"center",bgColor:s??"",border:`1px solid ${g.palette.gray[200]}`,borderColorHover:g.palette.gray[600],borderRadius:g.spacing[.25],display:"inline-flex",pr:p?1:0,shadowHover:"md",width:d,children:[t.jsxs(m,{display:"inline-flex",padding:[1,1,1,1],children:[t.jsx(m,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(ct,{defaultChecked:i.defaultChecked,name:i.name,onClick:a,value:i.value,...l==null?void 0:l(i.name)})}),t.jsxs(m,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[!p&&o!==void 0&&t.jsx(re,{alt:e??"card image",height:"32px",publicId:o,width:"32px"}),r===void 0?void 0:t.jsx(D,{icon:r,iconSize:"xl",iconType:"fa-light"}),t.jsxs(m,{display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(R,{color:g.palette.gray[800],fontWeight:"bold",size:"md",children:c}),n===void 0?void 0:t.jsx(m,{children:n})]})]})]}),p&&t.jsx(Hr,{children:t.jsx(re,{alt:e??"tag image",height:"40px",publicId:o??"tag image",width:"40px"})})]})},ge=f.styled.div`
1547
+ `,Yi=f.styled.span.attrs({className:"checkmark"})``,ct=u.forwardRef(function({checked:n,disabled:o=!1,label:i,name:r,onChange:a,onClick:l,value:s,...c},p){return t.jsxs(Gi,{"aria-disabled":o,"aria-label":i??r,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":o,"aria-label":i??r,checked:n,disabled:o,name:r,onChange:a,onClick:l,ref:p,type:"radio",value:s,...c}),t.jsx(Yi,{}),i??null]})}),Ki=({alt:e,customDescription:n,imageId:o,icon:i,selectorProps:r,onClick:a,register:l,bgColor:s,title:c,isATag:p=!1,width:d="fit-content"})=>{const g=f.useTheme();return t.jsxs(m,{alignItems:"center",bgColor:s??"",border:`1px solid ${g.palette.gray[200]}`,borderColorHover:g.palette.gray[600],borderRadius:g.spacing[.25],display:"inline-flex",pr:p?1:0,shadowHover:"md",width:d,children:[t.jsxs(m,{display:"inline-flex",padding:[1,1,1,1],children:[t.jsx(m,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(ct,{defaultChecked:r.defaultChecked,name:r.name,onClick:a,value:r.value,...l==null?void 0:l(r.name)})}),t.jsxs(m,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[!p&&o!==void 0&&t.jsx(ie,{alt:e??"card image",height:"32px",publicId:o,width:"32px"}),i===void 0?void 0:t.jsx(D,{icon:i,iconSize:"xl",iconType:"fa-light"}),t.jsxs(m,{display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(R,{color:g.palette.gray[800],fontWeight:"bold",size:"md",children:c}),n===void 0?void 0:t.jsx(m,{children:n})]})]})]}),p&&t.jsx(Bi,{children:t.jsx(ie,{alt:e??"tag image",height:"40px",publicId:o??"tag image",width:"40px"})})]})},ge=f.styled.div`
1548
1548
  ${({theme:e})=>`
1549
1549
  align-items: center;
1550
1550
  background-color: ${e.palette.gray[200]};
@@ -1556,7 +1556,7 @@
1556
1556
  transition: 0.2s;
1557
1557
  width: 36px;
1558
1558
  `}
1559
- `,Kr=f.styled.div`
1559
+ `,qi=f.styled.div`
1560
1560
  ${({theme:e})=>`
1561
1561
  background-color: ${e.palette.white};
1562
1562
  border-radius: 50%;
@@ -1567,7 +1567,7 @@
1567
1567
  width: ${e.spacing[1]};
1568
1568
  z-index: 1;
1569
1569
  `}
1570
- `,Zr=f.styled.label`
1570
+ `,Zi=f.styled.label`
1571
1571
  display: inline-block;
1572
1572
 
1573
1573
  input {
@@ -1594,22 +1594,22 @@
1594
1594
  background-color: ${({theme:e})=>e.palette.gray[200]};
1595
1595
  border: 1px solid ${({theme:e})=>e.palette.gray[200]};
1596
1596
  }
1597
- `,rn=u.forwardRef(function({defaultChecked:n,disabled:o=!1,justify:r,name:i,leftDescription:a,leftDescriptionMinWidth:l,rightDescription:s,onChange:c,...p},d){const g=n===!0?"on":"off",x=typeof a=="object"&&a.on&&a.off?a[g]:a,h=u.useCallback(b=>{b.stopPropagation()},[]);return t.jsxs(m,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:r,children:[t.jsx(m,{minWidth:l,children:x}),t.jsxs(Zr,{onClick:h,role:"switch",children:[t.jsx("input",{...p,"aria-disabled":o,"aria-label":i,checked:n===!0,disabled:o,name:i,onChange:c,ref:d,type:"checkbox"}),t.jsx(ge,{"aria-label":"Toggle Switch",id:`${i}Toggle`,children:t.jsx(Kr,{})})]}),s]})}),qr=({id:e,title:n,toggles:o,minWidth:r="auto",height:i="auto"})=>{const a=f.useTheme();return t.jsxs(m,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${a.palette.gray[200]}`,borderRadius:a.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:i,justify:"center",minHeight:"100px",minWidth:r,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(Ae,{id:e,title:n}),t.jsx(m,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:o.map(l=>t.jsx(rn,{...l},`$card-toggle-${l.name}`))})]})},Xr=({description:e,height:n="auto",leftIconName:o,children:r,rightIconName:i,title:a,tooltipId:l,tooltipTip:s,tooltipPlace:c="bottom",variant:p="centered",width:d="318px"})=>{const g=f.useTheme(),x=p==="centered",h=l&&s?t.jsx(K,{display:"flex",icon:i??o,iconColor:g.palette.gray[800],id:l,place:c,tip:s}):void 0;return t.jsxs(m,{alignItems:x?"center":"flex-start",bgColor:g.palette.gray[50],border:`1px solid ${g.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:x?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:d,children:[t.jsxs(m,{alignItems:"center",display:"flex",gap:.5,children:[x||y.isUndefined(o)?void 0:h,t.jsx(R,{color:x?g.palette.gray[800]:g.palette.gray[400],size:"md",textAlign:x?"center":"start",children:e}),x||y.isUndefined(i)?void 0:h]}),t.jsxs(m,{alignItems:"center",display:"flex",gap:.5,children:[x&&!y.isUndefined(o)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[y.isUndefined(a)?void 0:t.jsx(ee,{fontWeight:"bold",size:"sm",children:a}),r]}),x&&!y.isUndefined(i)?h:void 0]})]})},Jr=.5,St=1.25,Qr=({children:e,bgColor:n,border:o,gap:r=Jr,px:i=St,py:a=St,...l})=>{const s=f.useTheme();return t.jsx(m,{bgColor:n??s.palette.white,border:o??`1px solid ${s.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:"column",gap:r,px:i,py:a,...l,children:e})},ei=f.styled.div`
1597
+ `,rn=u.forwardRef(function({defaultChecked:n,disabled:o=!1,justify:i,name:r,leftDescription:a,leftDescriptionMinWidth:l,rightDescription:s,onChange:c,...p},d){const g=n===!0?"on":"off",x=typeof a=="object"&&a.on&&a.off?a[g]:a,h=u.useCallback(b=>{b.stopPropagation()},[]);return t.jsxs(m,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:i,children:[t.jsx(m,{minWidth:l,children:x}),t.jsxs(Zi,{onClick:h,role:"switch",children:[t.jsx("input",{...p,"aria-disabled":o,"aria-label":r,checked:n===!0,disabled:o,name:r,onChange:c,ref:d,type:"checkbox"}),t.jsx(ge,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(qi,{})})]}),s]})}),Xi=({id:e,title:n,toggles:o,minWidth:i="auto",height:r="auto"})=>{const a=f.useTheme();return t.jsxs(m,{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:i,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(Ae,{id:e,title:n}),t.jsx(m,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:o.map(l=>t.jsx(rn,{...l},`$card-toggle-${l.name}`))})]})},Ji=({description:e,height:n="auto",leftIconName:o,children:i,rightIconName:r,title:a,tooltipId:l,tooltipTip:s,tooltipPlace:c="bottom",variant:p="centered",width:d="318px"})=>{const g=f.useTheme(),x=p==="centered",h=l&&s?t.jsx(K,{display:"flex",icon:r??o,iconColor:g.palette.gray[800],id:l,place:c,tip:s}):void 0;return t.jsxs(m,{alignItems:x?"center":"flex-start",bgColor:g.palette.gray[50],border:`1px solid ${g.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:x?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:d,children:[t.jsxs(m,{alignItems:"center",display:"flex",gap:.5,children:[x||y.isUndefined(o)?void 0:h,t.jsx(R,{color:x?g.palette.gray[800]:g.palette.gray[400],size:"md",textAlign:x?"center":"start",children:e}),x||y.isUndefined(r)?void 0:h]}),t.jsxs(m,{alignItems:"center",display:"flex",gap:.5,children:[x&&!y.isUndefined(o)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[y.isUndefined(a)?void 0:t.jsx(X,{fontWeight:"bold",size:"sm",children:a}),i]}),x&&!y.isUndefined(r)?h:void 0]})]})},Qi=.5,St=1.25,er=({children:e,bgColor:n,border:o,gap:i=Qi,px:r=St,py:a=St,...l})=>{const s=f.useTheme();return t.jsx(m,{bgColor:n??s.palette.white,border:o??`1px solid ${s.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:"column",gap:i,px:r,py:a,...l,children:e})},tr=f.styled.div`
1598
1598
  position: relative;
1599
1599
  margin: auto;
1600
1600
  overflow: hidden;
1601
- `,ti=f.styled.div`
1601
+ `,nr=f.styled.div`
1602
1602
  display: flex;
1603
1603
  transition: transform 0.5s ease-in-out;
1604
1604
  transform: translateX(
1605
1605
  ${({$currentIndex:e})=>-e*100}%
1606
1606
  );
1607
- `,ni=f.styled.div`
1607
+ `,or=f.styled.div`
1608
1608
  align-items: center;
1609
1609
  display: flex;
1610
1610
  justify-content: center;
1611
1611
  min-width: 100%;
1612
- `,oi=f.styled.button`
1612
+ `,ir=f.styled.button`
1613
1613
  ${({theme:e,$isActive:n})=>`
1614
1614
  background-color: ${n?e.palette.primary[400]:e.palette.white};
1615
1615
  border: none;
@@ -1618,13 +1618,13 @@
1618
1618
  height: ${e.spacing[.75]};
1619
1619
  width: ${e.spacing[.75]};
1620
1620
  `}
1621
- `,ri=f.styled.div`
1621
+ `,rr=f.styled.div`
1622
1622
  align-items: center;
1623
1623
  display: flex;
1624
1624
  gap: ${({theme:e})=>e.spacing[.5]};
1625
1625
  justify-content: center;
1626
1626
  margin-top: ${({theme:e})=>e.spacing[2]};
1627
- `,ii=({slides:e,interval:n=300})=>{const{cycle:o,setCycle:r,setProgress:i}=tn(n,e.length),a=u.useCallback(l=>()=>{r(l),i(0)},[r,i]);return t.jsxs(ei,{"aria-roledescription":"carousel",children:[t.jsx(ti,{$currentIndex:o,children:e.map((l,s)=>{const c=`slide-${s}`;return t.jsx(ni,{"aria-label":c,"aria-roledescription":"slide",children:l.content},c)})}),t.jsx(ri,{children:e.map((l,s)=>{const c=`nav-button-${s}`;return t.jsx(oi,{$isActive:s===o,"aria-label":`Go to slide ${s+1}`,"data-testid":s===o?"active":"inactive",onClick:a(s)},c)})})]})},an=f.styled.div`
1627
+ `,ar=({slides:e,interval:n=300})=>{const{cycle:o,setCycle:i,setProgress:r}=tn(n,e.length),a=u.useCallback(l=>()=>{i(l),r(0)},[i,r]);return t.jsxs(tr,{"aria-roledescription":"carousel",children:[t.jsx(nr,{$currentIndex:o,children:e.map((l,s)=>{const c=`slide-${s}`;return t.jsx(or,{"aria-label":c,"aria-roledescription":"slide",children:l.content},c)})}),t.jsx(rr,{children:e.map((l,s)=>{const c=`nav-button-${s}`;return t.jsx(ir,{$isActive:s===o,"aria-label":`Go to slide ${s+1}`,"data-testid":s===o?"active":"inactive",onClick:a(s)},c)})})]})},an=f.styled.div`
1628
1628
  ${({theme:e})=>`
1629
1629
  background-color: ${e.palette.gray[100]};
1630
1630
  border-radius: ${e.spacing[.25]};
@@ -1700,7 +1700,7 @@
1700
1700
  padding-bottom: unset;
1701
1701
  }
1702
1702
  `}
1703
- `,ai=f.styled.div`
1703
+ `,sr=f.styled.div`
1704
1704
  ${({theme:e})=>`
1705
1705
  align-items: end;
1706
1706
  background-color: ${e.palette.gray[100]};
@@ -1715,10 +1715,10 @@
1715
1715
  background-color: ${e.palette.gray[200]};
1716
1716
  }
1717
1717
  `}
1718
- `,sn=({noCodeMessage:e="Code snippet not available",snippet:n,specific:o})=>(u.useEffect(()=>{y.prismExports.highlightAll()},[]),t.jsx(an,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":y._.isNil(n)||y._.isString(n)?0:n.offset+.7,...o!==void 0?{"data-line":String(Number(o))}:{},children:y._.isNil(n)||y._.isString(n)||y._.isEmpty(n.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:n.content})})})),si=({noCodeMessage:e="Code snippet not available",snippet:n,specific:o,variant:r="normal",expanded:i=!1})=>{const a=f.useTheme(),[l,s]=u.useState(!1),[c,p]=u.useState(!0),d=u.useCallback(()=>{s(b=>!b)},[s]),g=u.useCallback(()=>{if(y._.isNil(n)||y._.isEmpty(n)||!y._.isString(n))return p(!1),e;const b=n.split(`
1718
+ `,sn=({noCodeMessage:e="Code snippet not available",snippet:n,specific:o})=>(u.useEffect(()=>{y.prismExports.highlightAll()},[]),t.jsx(an,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":y._.isNil(n)||y._.isString(n)?0:n.offset+.7,...o!==void 0?{"data-line":String(Number(o))}:{},children:y._.isNil(n)||y._.isString(n)||y._.isEmpty(n.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:n.content})})})),lr=({noCodeMessage:e="Code snippet not available",snippet:n,specific:o,variant:i="normal",expanded:r=!1})=>{const a=f.useTheme(),[l,s]=u.useState(!1),[c,p]=u.useState(!0),d=u.useCallback(()=>{s(b=>!b)},[s]),g=u.useCallback(()=>{if(y._.isNil(n)||y._.isEmpty(n)||!y._.isString(n))return p(!1),e;const b=n.split(`
1719
1719
  `);return b.length>8&&!l?`${[...b].splice(0,7).join(`
1720
1720
  `)}
1721
- ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return r==="location"?t.jsx(sn,{noCodeMessage:e,snippet:n,specific:o}):t.jsxs(m,{bgColor:a.palette.gray[100],borderRadius:"4px",display:"inline-flex",justify:i?"space-between":"center",minWidth:"565px",position:"relative",px:1,py:1,width:i?"100%":"fit-content",children:[t.jsx(an,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:x})})}),t.jsxs(ai,{children:[t.jsx(H,{height:a.spacing[2.5],icon:"copy",iconColor:a.palette.gray[700],iconSize:"lg",iconType:"fa-light",onClick:h,variant:"ghost",width:a.spacing[2.5]}),c?t.jsxs(M,{onClick:d,variant:"ghost",children:[l?"Show Less":"Show more",t.jsx(D,{icon:l?"chevron-up":"chevron-down",iconColor:a.palette.gray[700],iconSize:"sm",iconType:"fa-light",ml:.25,onClick:h})]}):!1]})]})},{getVariant:li}=Q(e=>({fixed:`
1721
+ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return i==="location"?t.jsx(sn,{noCodeMessage:e,snippet:n,specific:o}):t.jsxs(m,{bgColor:a.palette.gray[100],borderRadius:"4px",display:"inline-flex",justify:r?"space-between":"center",minWidth:"565px",position:"relative",px:1,py:1,width:r?"100%":"fit-content",children:[t.jsx(an,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:x})})}),t.jsxs(sr,{children:[t.jsx(H,{height:a.spacing[2.5],icon:"copy",iconColor:a.palette.gray[700],iconSize:"lg",iconType:"fa-light",onClick:h,variant:"ghost",width:a.spacing[2.5]}),c?t.jsxs(M,{onClick:d,variant:"ghost",children:[l?"Show Less":"Show more",t.jsx(D,{icon:l?"chevron-up":"chevron-down",iconColor:a.palette.gray[700],iconSize:"sm",iconType:"fa-light",ml:.25,onClick:h})]}):!1]})]})},{getVariant:cr}=ee(e=>({fixed:`
1722
1722
  height: auto;
1723
1723
  min-width: 300px;
1724
1724
  padding: ${e.spacing[1.25]};
@@ -1762,9 +1762,9 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
1762
1762
  margin: auto;
1763
1763
  white-space: pre-line;
1764
1764
 
1765
- ${li(e,n)}
1765
+ ${cr(e,n)}
1766
1766
  `}
1767
- `,ci=f.styled.div`
1767
+ `,dr=f.styled.div`
1768
1768
  ${({theme:e})=>`
1769
1769
  background-color: ${e.palette.white};
1770
1770
  border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
@@ -1792,7 +1792,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
1792
1792
  }
1793
1793
  }
1794
1794
  `}
1795
- `,di=f.styled.div`
1795
+ `,pr=f.styled.div`
1796
1796
  border-radius: ${({theme:e})=>`${e.spacing[.25]} ${e.spacing[.25]} 0 0`};
1797
1797
  display: block;
1798
1798
  overflow: unset;
@@ -1802,7 +1802,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
1802
1802
  padding: ${({theme:e})=>`${e.spacing[1.25]}`};
1803
1803
  padding-bottom: ${({theme:e})=>`${e.spacing[1.5]}`};
1804
1804
  position: sticky;
1805
- `,pi=f.styled.div.attrs({className:"flex items-center justify-between"})``,gi=f.styled.div`
1805
+ `,gr=f.styled.div.attrs({className:"flex items-center justify-between"})``,ur=f.styled.div`
1806
1806
  ${({theme:e})=>`
1807
1807
  border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
1808
1808
  display: flex;
@@ -1833,7 +1833,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
1833
1833
  margin-right: 0;
1834
1834
  }
1835
1835
  `}
1836
- `,ui=f.styled.div`
1836
+ `,xr=f.styled.div`
1837
1837
  img {
1838
1838
  margin: 0 calc(-${({theme:e})=>e.spacing[1.25]} - 1px)
1839
1839
  ${({theme:e})=>e.spacing[1.25]};
@@ -1849,15 +1849,17 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
1849
1849
  margin-right: 0;
1850
1850
  `:""}
1851
1851
  }
1852
- `,cn=({alert:e,modalRef:n,confirmButton:o=void 0,cancelButton:r=void 0})=>{const{close:i}=n,a=u.useCallback(()=>{r!=null&&r.onClick&&r.onClick(),i()},[r,i]),l=u.useCallback(()=>{o!=null&&o.onClick&&o.onClick(),i()},[o,i]);return[o,r].some(c=>!y.lodashExports.isEmpty(c))?t.jsxs(m,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(gi,{children:t.jsxs("div",{children:[r&&t.jsx(M,{id:r.id,onClick:a,variant:"tertiary",width:"100%",children:r.text}),o&&t.jsx(M,{id:o.id,onClick:l,variant:"primary",width:"100%",children:o.text})]})})]}):null},dn=({title:e,description:n,modalRef:o,otherActions:r,onClose:i})=>{const a=f.useTheme(),l=u.useCallback(()=>{i==null||i(),o.close()},[o,i]);return u.useEffect(()=>{const s=c=>{c.key==="Escape"&&l()};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[l]),t.jsxs(di,{children:[t.jsxs(pi,{children:[typeof e=="string"?t.jsx(ee,{fontWeight:"bold",mr:1,size:"sm",wordBreak:"break-word",children:e}):e,t.jsxs("div",{className:"items-center flex gap-3",children:[r,t.jsx(H,{icon:"close",iconColor:a.palette.gray[400],iconSize:"lg",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:l,px:.25,py:.25,variant:"ghost"})]})]}),n&&y.lodashExports.isString(n)&&!y.lodashExports.isEmpty(n)?t.jsx(R,{mt:.5,size:"md",children:n}):void 0,n&&!y.lodashExports.isString(n)&&t.jsx(he,{display:"block",mt:.5,size:"md",children:n})]})},pn=({disabled:e,id:n="modal-confirm",onCancel:o,onConfirm:r="submit",txtCancel:i,txtConfirm:a})=>{const l=r==="submit";return t.jsxs(m,{display:"flex",gap:.75,id:"footer",maxWidth:o?"392px":"190px",mt:1.5,children:[o?t.jsx(M,{id:`${n}-cancel`,justify:"center",onClick:o,variant:"tertiary",width:"100%",children:i??"Cancel"}):void 0,t.jsx(M,{disabled:e,id:n,justify:"center",onClick:l?void 0:r,type:l?"submit":"button",variant:"primary",width:"100%",children:a??"Confirm"})]})},xi=(e,n,o)=>o?n==="secondary"?`3px solid ${e.palette.primary[100]}`:`3px solid ${e.palette.primary[500]}`:"unset",hi=f.styled.div`
1852
+ `,cn=({alert:e,modalRef:n,confirmButton:o=void 0,cancelButton:i=void 0})=>{const{close:r}=n,a=u.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),r()},[i,r]),l=u.useCallback(()=>{o!=null&&o.onClick&&o.onClick(),r()},[o,r]);return[o,i].some(c=>!y.lodashExports.isEmpty(c))?t.jsxs(m,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(ur,{children:t.jsxs("div",{children:[i&&t.jsx(M,{id:i.id,onClick:a,variant:"tertiary",width:"100%",children:i.text}),o&&t.jsx(M,{id:o.id,onClick:l,variant:"primary",width:"100%",children:o.text})]})})]}):null},dn=({title:e,description:n,modalRef:o,otherActions:i,onClose:r})=>{const a=f.useTheme(),l=u.useCallback(()=>{r==null||r(),o.close()},[o,r]);return u.useEffect(()=>{const s=c=>{c.key==="Escape"&&l()};return window.addEventListener("keydown",s),()=>{window.removeEventListener("keydown",s)}},[l]),t.jsxs(pr,{children:[t.jsxs(gr,{children:[typeof e=="string"?t.jsx(X,{fontWeight:"bold",mr:1,size:"sm",wordBreak:"break-word",children:e}):e,t.jsxs("div",{className:"items-center flex gap-3",children:[i,t.jsx(H,{icon:"close",iconColor:a.palette.gray[400],iconSize:"lg",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:l,px:.25,py:.25,variant:"ghost"})]})]}),n&&y.lodashExports.isString(n)&&!y.lodashExports.isEmpty(n)?t.jsx(R,{mt:.5,size:"md",children:n}):void 0,n&&!y.lodashExports.isString(n)&&t.jsx(he,{display:"block",mt:.5,size:"md",children:n})]})},pn=({disabled:e,id:n="modal-confirm",onCancel:o,onConfirm:i="submit",txtCancel:r,txtConfirm:a})=>{const l=i==="submit";return t.jsxs(m,{display:"flex",gap:.75,id:"footer",maxWidth:o?"392px":"190px",mt:1.5,children:[o?t.jsx(M,{id:`${n}-cancel`,justify:"center",onClick:o,variant:"tertiary",width:"100%",children:r??"Cancel"}):void 0,t.jsx(M,{disabled:e,id:n,justify:"center",onClick:l?void 0:i,type:l?"submit":"button",variant:"primary",width:"100%",children:a??"Confirm"})]})},hr=(e,n,o)=>o?n==="secondary"?`3px solid ${e.palette.primary[100]}`:`3px solid ${e.palette.primary[500]}`:"unset",fr=f.styled.div`
1853
1853
  display: flex;
1854
1854
  flex-direction: row;
1855
1855
  gap: ${({theme:e})=>e.spacing[.25]};
1856
- border-bottom: ${({theme:e,$borderButton:n,$variant:o})=>xi(e,o,n)};
1856
+ border-bottom: ${({theme:e,$borderButton:n,$variant:o})=>hr(e,o,n)};
1857
1857
  align-items: center;
1858
1858
  padding: ${({theme:e})=>e.spacing[.625]}
1859
1859
  ${({theme:e})=>e.spacing[.5]};
1860
1860
  padding-bottom: ${({theme:e,$borderButton:n})=>n?`calc(${e.spacing[.625]} - 2px)`:e.spacing[.625]};
1861
+ /* Normalize height only when requested (mix of tabs with/without tag) */
1862
+ min-height: ${({$normalize:e})=>e?"44px":void 0};
1861
1863
 
1862
1864
  &:hover:not([disabled]) {
1863
1865
  background-color: ${({theme:e})=>e.palette.gray[100]};
@@ -1892,7 +1894,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
1892
1894
  }
1893
1895
  }
1894
1896
  }
1895
- `,gn=({end:e=!1,label:n,id:o,isActive:r=!1,link:i,notificationSign:a,onClick:l,tooltip:s="",variant:c="primary",tag:p})=>{const{pathname:d}=Ge.useLocation(),g=r||(c==="primary"?d.includes(i):d.endsWith(i));return t.jsx(K,{display:"flex",id:`${o}-tooltip`,tip:s,children:t.jsxs(hi,{$borderButton:g,$variant:c,children:[t.jsx(Ge.NavLink,{end:e,id:o,onClick:l,to:i,children:n}),t.jsx(Fe,{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(X,{tagLabel:`${p}`,variant:"default"})]})})},pt=({items:e,borders:n=!0,box:o=!1,variant:r="primary"})=>{const i=f.useTheme();return t.jsx(m,{alignItems:"center",bgColor:i.palette.white,border:o?"1px solid":void 0,borderBottom:n?`1px solid ${i.palette.gray[300]}`:void 0,borderColor:o?i.palette.gray[200]:void 0,borderRadius:o?i.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:o?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:o?"max-content":"100%",children:e.map(({end:a,id:l,isActive:s,link:c,label:p,notificationSign:d,onClick:g,tag:x,tooltip:h})=>t.jsx(gn,{end:a,id:l,isActive:s,label:p,link:c,notificationSign:d,onClick:g,tag:x,tooltip:h,variant:r},l))})},ae=u.forwardRef(function({color:n=N.palette.gray[100],mt:o=.5,mb:r=.5,width:i,...a},l){return t.jsx(m,{as:"hr",borderTop:`1px solid ${n}`,mb:r,mt:o,ref:l,width:i??"100%",...a})}),fi=f.styled.li`
1897
+ `,gn=({end:e=!1,label:n,id:o,isActive:i=!1,link:r,notificationSign:a,onClick:l,tooltip:s="",variant:c="primary",tag:p,normalizeHeight:d})=>{const{pathname:g}=Ge.useLocation(),x=i||(c==="primary"?g.includes(r):g.endsWith(r));return t.jsx(K,{display:"flex",id:`${o}-tooltip`,tip:s,children:t.jsxs(fr,{$borderButton:x,$variant:c,$normalize:d??!1,children:[t.jsx(Ge.NavLink,{end:e,id:o,onClick:l,to:r,children:n}),t.jsx(Fe,{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(J,{tagLabel:`${p}`,variant:"default"})]})})},pt=({items:e,borders:n=!0,box:o=!1,variant:i="primary"})=>{const r=f.useTheme(),a=e.some(l=>l.tag!==void 0);return t.jsx(m,{alignItems:"center",bgColor:r.palette.white,border:o?"1px solid":void 0,borderBottom:n?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:o?r.palette.gray[200]:void 0,borderRadius:o?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:o?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:o?"max-content":"100%",children:e.map(({end:l,id:s,isActive:c,link:p,label:d,notificationSign:g,onClick:x,tag:h,tooltip:b})=>t.jsx(gn,{end:l,id:s,isActive:c,label:d,link:p,notificationSign:g,onClick:x,tag:h,tooltip:b,variant:i,normalizeHeight:a},s))})},ae=u.forwardRef(function({color:n=N.palette.gray[100],mt:o=.5,mb:i=.5,width:r,...a},l){return t.jsx(m,{as:"hr",borderTop:`1px solid ${n}`,mb:i,mt:o,ref:l,width:r??"100%",...a})}),yr=f.styled.li`
1896
1898
  ${({theme:e})=>`
1897
1899
  align-items: center;
1898
1900
  background-color: ${e.palette.white};
@@ -1950,7 +1952,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
1950
1952
  min-width: 240px;
1951
1953
  padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
1952
1954
  `}
1953
- `,Ee=({children:e,disabled:n=!1,icon:o,iconType:r="fa-light",href:i,onClick:a,onClickIcon:l,onKeyDown:s,rightIcon:c,selected:p=!1,value:d,...g})=>{const h=f.useTheme().palette.gray[n?300:800],b=n?u.Children.map(e,w=>u.isValidElement(w)?u.cloneElement(w,{disabled:n,...w.props}):w):e;return t.jsxs(fi,{"aria-disabled":n,"aria-label":d,"aria-selected":p,"data-testid":d,onClick:a,onKeyDown:s,value:d,...g,children:[o!==void 0||d!==void 0?t.jsxs(m,{alignItems:"center",display:"flex",gap:.625,children:[o?t.jsx(D,{disabled:n,icon:o,iconColor:h,iconSize:"sm",iconType:r}):null,i===void 0?b:t.jsx(te,{href:i,children:b})]}):null,p||c?t.jsx(D,{disabled:n,icon:c??"check",iconClass:"selected",iconColor:h,iconSize:"lg",iconType:r,onClick:l}):null]})},yi=f.styled(Ee)`
1955
+ `,Ee=({children:e,disabled:n=!1,icon:o,iconType:i="fa-light",href:r,onClick:a,onClickIcon:l,onKeyDown:s,rightIcon:c,selected:p=!1,value:d,...g})=>{const h=f.useTheme().palette.gray[n?300:800],b=n?u.Children.map(e,w=>u.isValidElement(w)?u.cloneElement(w,{disabled:n,...w.props}):w):e;return t.jsxs(yr,{"aria-disabled":n,"aria-label":d,"aria-selected":p,"data-testid":d,onClick:a,onKeyDown:s,value:d,...g,children:[o!==void 0||d!==void 0?t.jsxs(m,{alignItems:"center",display:"flex",gap:.625,children:[o?t.jsx(D,{disabled:n,icon:o,iconColor:h,iconSize:"sm",iconType:i}):null,r===void 0?b:t.jsx(te,{href:r,children:b})]}):null,p||c?t.jsx(D,{disabled:n,icon:c??"check",iconClass:"selected",iconColor:h,iconSize:"lg",iconType:i,onClick:l}):null]})},br=f.styled(Ee)`
1954
1956
  margin-top: 10px;
1955
1957
  border: 1px solid ${({theme:e})=>e.palette.gray[300]};
1956
1958
  border-radius: 4px;
@@ -1973,7 +1975,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
1973
1975
  border: 2px solid ${n.palette.black};
1974
1976
  background-color: ${n.palette.white} !important;
1975
1977
  `:""}
1976
- `,xn=({items:e,onReorder:n,title:o,description:r,onClickClose:i})=>{const[a,l]=u.useState(null),s=u.useCallback(g=>()=>{i(g)},[i]),c=u.useCallback(g=>{l(g.name)},[]),p=u.useCallback(()=>{l(null)},[]),d=u.useCallback(g=>()=>{c(g)},[c]);return t.jsxs(y.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:n,style:{height:"max-content",padding:"1.25rem 0",width:"45%"},values:e,children:[t.jsxs(m,{display:"flex",gap:.25,children:[t.jsx(ee,{display:"flex",size:"xs",children:o}),t.jsx(X,{priority:"high",tagLabel:String(e.filter(g=>g.visible).length),variant:"error"})]}),t.jsx(R,{size:"md",children:r}),e.map(g=>g.visible?t.jsx(y.ReorderItem,{as:"div",dragListener:!g.locked,item:g.name,onDragEnd:p,onDragStart:d(g),style:{zIndex:a===g.name?9999:"auto",position:a===g.name?"relative":"static"},value:g,children:t.jsx(yi,{$isDragging:a===g.name,disabled:g.locked,icon:"grip-vertical",iconType:"fa-light",label:g.name,onClickIcon:g.locked?void 0:s(g.id),rightIcon:g.locked?"lock":"close",selected:g.visible,value:g.name,children:g.name})},g.name):void 0)]})},bi=f.styled(Ee)`
1978
+ `,xn=({items:e,onReorder:n,title:o,description:i,onClickClose:r})=>{const[a,l]=u.useState(null),s=u.useCallback(g=>()=>{r(g)},[r]),c=u.useCallback(g=>{l(g.name)},[]),p=u.useCallback(()=>{l(null)},[]),d=u.useCallback(g=>()=>{c(g)},[c]);return t.jsxs(y.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:n,style:{height:"max-content",padding:"1.25rem 0",width:"45%"},values:e,children:[t.jsxs(m,{display:"flex",gap:.25,children:[t.jsx(X,{display:"flex",size:"xs",children:o}),t.jsx(J,{priority:"high",tagLabel:String(e.filter(g=>g.visible).length),variant:"error"})]}),t.jsx(R,{size:"md",children:i}),e.map(g=>g.visible?t.jsx(y.ReorderItem,{as:"div",dragListener:!g.locked,item:g.name,onDragEnd:p,onDragStart:d(g),style:{zIndex:a===g.name?9999:"auto",position:a===g.name?"relative":"static"},value:g,children:t.jsx(br,{$isDragging:a===g.name,disabled:g.locked,icon:"grip-vertical",iconType:"fa-light",label:g.name,onClickIcon:g.locked?void 0:s(g.id),rightIcon:g.locked?"lock":"close",selected:g.visible,value:g.name,children:g.name})},g.name):void 0)]})},$r=f.styled(Ee)`
1977
1979
  padding: 7px 8px;
1978
1980
 
1979
1981
  &[aria-selected="true"] {
@@ -1989,7 +1991,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
1989
1991
  display: none;
1990
1992
  }
1991
1993
  }
1992
- `,gt=e=>e.reduce((o,r)=>r.group?o[r.group]?{...o,[r.group]:[...o[r.group],r]}:{...o,[r.group]:[r]}:o,{}),$i=f.styled.input`
1994
+ `,gt=e=>e.reduce((o,i)=>i.group?o[i.group]?{...o,[i.group]:[...o[i.group],i]}:{...o,[i.group]:[i]}:o,{}),mr=f.styled.input`
1993
1995
  ${({theme:e})=>`
1994
1996
  background: none;
1995
1997
  border: none !important;
@@ -2019,7 +2021,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2019
2021
  display:none;
2020
2022
  }
2021
2023
  `}
2022
- `,mi=f.styled.div`
2024
+ `,wr=f.styled.div`
2023
2025
  ${({theme:e})=>`
2024
2026
  align-items: center;
2025
2027
  background-color: ${e.palette.white};
@@ -2039,17 +2041,17 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2039
2041
  border: 2px solid ${e.palette.black};
2040
2042
  }
2041
2043
  `}
2042
- `,wi=f.styled.div`
2044
+ `,jr=f.styled.div`
2043
2045
  ${({theme:e})=>`
2044
2046
  background-color: ${e.palette.white};
2045
2047
  border-radius: ${e.spacing[.5]};
2046
2048
  width: 250px;
2047
2049
  `}
2048
- `,se=({name:e,smallSearch:n=!1,onClear:o,onChange:r,value:i,...a})=>{const l=u.useRef(null),s=f.useTheme(),[c,p]=u.useState(!1),[d,g]=u.useState(i??""),{refs:x,floatingStyles:h}=y.useFloating$1(),b=u.useCallback(()=>{p(j=>!j)},[]),w=u.useCallback(j=>{j.key==="Enter"&&j.preventDefault()},[]),$=u.useCallback(j=>{g(j.target.value),r==null||r(j)},[r]),S=u.useCallback(()=>{g(""),o==null||o()},[o]);ne(x.floating.current,()=>{p(!1)},!0);const C=t.jsxs(mi,{children:[t.jsx(D,{icon:"magnifying-glass",iconColor:s.palette.gray[700],iconSize:"lg",iconType:"fa-light"}),t.jsx($i,{id:e,name:e,onChange:$,onKeyDown:w,ref:l,type:"search",value:d,...a}),!y.lodashExports.isEmpty(d)&&t.jsx(H,{icon:"xmark",iconColor:s.palette.gray[300],iconSize:"lg",iconType:"fa-light",onClick:S,px:.25,py:.25,type:"reset",variant:"ghost"})]});return n?t.jsxs(u.Fragment,{children:[t.jsx(H,{border:`1px solid ${s.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"lg",iconType:"fa-light",onClick:b,ref:x.setReference,variant:"ghost"}),c?t.jsx(wi,{ref:x.setFloating,style:h,children:C}):void 0]}):C},hn=({columns:e,formId:n,onChangeHandler:o,variant:r})=>{const i=u.useRef(null),[a,l]=u.useState([]),[s,c]=u.useState(""),p=u.useCallback(g=>{const{value:x}=g.target;c(x)},[]),d=u.useCallback(()=>{i.current&&(i.current.reset(),c(""))},[i]);return u.useEffect(()=>{l(e.filter(g=>{var x;return r==="grouped"?g.name.toLowerCase().includes(s.toLowerCase())||((x=g.group)==null?void 0:x.includes(s.toLowerCase())):g.name.toLowerCase().includes(s.toLowerCase())}))},[e,s,r]),r==="grouped"?t.jsxs(m,{display:"flex",flexDirection:"column",gap:.625,height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:i,children:t.jsx(se,{name:"search",onChange:p,onClear:d,value:s})}),t.jsx("form",{"data-testid":n,id:n,onReset:d,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(gt(a)).map(([g,x],h)=>{const b=`li-checkbox${g}`;return t.jsx(en,{checkboxesName:g,defaultBgColor:!0,defaultCollapsed:h===0,onChange:o,options:x,title:g},b)})})]}):t.jsxs(m,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:i,children:t.jsx(se,{name:"search",onChange:p,onClear:d,value:s})}),t.jsx("form",{"data-testid":n,id:n,onReset:d,style:{paddingTop:"0.625rem"},children:a.map(g=>{const x=`li-checkbox-${g.name}`;return t.jsx(bi,{selected:g.visible,value:x,width:"content",children:t.jsx(ie,{checked:g.visible,disabled:g.locked,label:g.name,name:g.name,onChange:o,value:g.name})},x)})})]})},fn=({_containerId:e="portals",title:n,modalRef:o,variant:r})=>{const i=f.useTheme(),a=u.useRef(null),[l,s]=u.useState(void 0),c=u.useCallback(g=>{const{checked:x,value:h}=g.target,b=o.columns.map(w=>{var $;return w.name===h?(($=w.toggleVisibility)==null||$.call(w,x),{...w,visible:x}):w});o.setColumns(b)},[o]),p=u.useCallback(g=>{const x=o.columns.map(h=>{var b;return h.id===g?((b=h.toggleVisibility)==null||b.call(h,!1),{...h,visible:!1}):h});o.setColumns(x)},[o]),d=u.useCallback(()=>{var x;const g=(x=a.current)==null?void 0:x.scrollHeight;l!==g&&s(g)},[l]);return o.isOpen?le.createPortal(t.jsx(ln,{"aria-label":o.name,"aria-modal":"true",children:t.jsxs(dt,{$size:"md",flexDirection:"column",children:[t.jsxs(m,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(ee,{size:"sm",children:n}),t.jsx(H,{icon:"close",iconColor:i.palette.gray[400],iconSize:"lg",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,px:.25,py:.25,variant:"ghost"})]}),t.jsx(ae,{mb:0,mt:0}),t.jsxs(m,{display:"flex",gap:1.25,onScroll:d,px:1.25,ref:a,scroll:"y",width:"100%",children:[t.jsx(hn,{columns:o.columns,formId:"columns-visibility",onChangeHandler:c,variant:r}),t.jsx(m,{borderLeft:`2px solid ${i.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(xn,{description:"Click and drag to reorder the columns",items:o.columns,onClickClose:p,onReorder:o.setColumns,title:"Reorder columns"})]}),t.jsx(ae,{mb:0,mt:0}),t.jsxs(m,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(M,{disabled:!o.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:o.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to default"}),t.jsx(M,{id:"columns-modal-submit",justify:"center",onClick:o.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},vi=f.styled(Ee)`
2050
+ `,se=({name:e,smallSearch:n=!1,onClear:o,onChange:i,value:r,...a})=>{const l=u.useRef(null),s=f.useTheme(),[c,p]=u.useState(!1),[d,g]=u.useState(r??""),{refs:x,floatingStyles:h}=y.useFloating$1(),b=u.useCallback(()=>{p(v=>!v)},[]),w=u.useCallback(v=>{v.key==="Enter"&&v.preventDefault()},[]),$=u.useCallback(v=>{g(v.target.value),i==null||i(v)},[i]),C=u.useCallback(()=>{g(""),o==null||o()},[o]);ne(x.floating.current,()=>{p(!1)},!0);const S=t.jsxs(wr,{children:[t.jsx(D,{icon:"magnifying-glass",iconColor:s.palette.gray[700],iconSize:"lg",iconType:"fa-light"}),t.jsx(mr,{id:e,name:e,onChange:$,onKeyDown:w,ref:l,type:"search",value:d,...a}),!y.lodashExports.isEmpty(d)&&t.jsx(H,{icon:"xmark",iconColor:s.palette.gray[300],iconSize:"lg",iconType:"fa-light",onClick:C,px:.25,py:.25,type:"reset",variant:"ghost"})]});return n?t.jsxs(u.Fragment,{children:[t.jsx(H,{border:`1px solid ${s.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"lg",iconType:"fa-light",onClick:b,ref:x.setReference,variant:"ghost"}),c?t.jsx(jr,{ref:x.setFloating,style:h,children:S}):void 0]}):S},hn=({columns:e,formId:n,onChangeHandler:o,variant:i})=>{const r=u.useRef(null),[a,l]=u.useState([]),[s,c]=u.useState(""),p=u.useCallback(g=>{const{value:x}=g.target;c(x)},[]),d=u.useCallback(()=>{r.current&&(r.current.reset(),c(""))},[r]);return u.useEffect(()=>{l(e.filter(g=>{var x;return i==="grouped"?g.name.toLowerCase().includes(s.toLowerCase())||((x=g.group)==null?void 0:x.includes(s.toLowerCase())):g.name.toLowerCase().includes(s.toLowerCase())}))},[e,s,i]),i==="grouped"?t.jsxs(m,{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(se,{name:"search",onChange:p,onClear:d,value:s})}),t.jsx("form",{"data-testid":n,id:n,onReset:d,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(gt(a)).map(([g,x],h)=>{const b=`li-checkbox${g}`;return t.jsx(en,{checkboxesName:g,defaultBgColor:!0,defaultCollapsed:h===0,onChange:o,options:x,title:g},b)})})]}):t.jsxs(m,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:r,children:t.jsx(se,{name:"search",onChange:p,onClear:d,value:s})}),t.jsx("form",{"data-testid":n,id:n,onReset:d,style:{paddingTop:"0.625rem"},children:a.map(g=>{const x=`li-checkbox-${g.name}`;return t.jsx($r,{selected:g.visible,value:x,width:"content",children:t.jsx(re,{checked:g.visible,disabled:g.locked,label:g.name,name:g.name,onChange:o,value:g.name})},x)})})]})},fn=({_containerId:e="portals",title:n,modalRef:o,variant:i})=>{const r=f.useTheme(),a=u.useRef(null),[l,s]=u.useState(void 0),c=u.useCallback(g=>{const{checked:x,value:h}=g.target,b=o.columns.map(w=>{var $;return w.name===h?(($=w.toggleVisibility)==null||$.call(w,x),{...w,visible:x}):w});o.setColumns(b)},[o]),p=u.useCallback(g=>{const x=o.columns.map(h=>{var b;return h.id===g?((b=h.toggleVisibility)==null||b.call(h,!1),{...h,visible:!1}):h});o.setColumns(x)},[o]),d=u.useCallback(()=>{var x;const g=(x=a.current)==null?void 0:x.scrollHeight;l!==g&&s(g)},[l]);return o.isOpen?le.createPortal(t.jsx(ln,{"aria-label":o.name,"aria-modal":"true",children:t.jsxs(dt,{$size:"md",flexDirection:"column",children:[t.jsxs(m,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(X,{size:"sm",children:n}),t.jsx(H,{icon:"close",iconColor:r.palette.gray[400],iconSize:"lg",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,px:.25,py:.25,variant:"ghost"})]}),t.jsx(ae,{mb:0,mt:0}),t.jsxs(m,{display:"flex",gap:1.25,onScroll:d,px:1.25,ref:a,scroll:"y",width:"100%",children:[t.jsx(hn,{columns:o.columns,formId:"columns-visibility",onChangeHandler:c,variant:i}),t.jsx(m,{borderLeft:`2px solid ${r.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(xn,{description:"Click and drag to reorder the columns",items:o.columns,onClickClose:p,onReorder:o.setColumns,title:"Reorder columns"})]}),t.jsx(ae,{mb:0,mt:0}),t.jsxs(m,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(M,{disabled:!o.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:o.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to default"}),t.jsx(M,{id:"columns-modal-submit",justify:"center",onClick:o.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},vr=f.styled(Ee)`
2049
2051
  padding: 8px;
2050
2052
  min-height: 36px;
2051
2053
  min-width: unset;
2052
- `,ji=f.styled.div.attrs({className:"comp-modal absolute top-[55px] overflow-auto"})`
2054
+ `,kr=f.styled.div.attrs({className:"comp-modal absolute top-[55px] overflow-auto"})`
2053
2055
  align-items: center;
2054
2056
  background-color: ${({$bgColor:e="rgb(52 64 84 / 70%)"})=>e};
2055
2057
  display: flex;
@@ -2062,7 +2064,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2062
2064
  svg.fa-check {
2063
2065
  border-radius: 2px;
2064
2066
  }
2065
- `,yn=({control:e,option:n,register:o,setValue:r})=>{var i,a,l,s,c;switch(n.type){case"checkboxes":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[!n.label||n.label===""?void 0:null,(i=n.options)==null?void 0:i.map(d=>t.jsx(zt,{value:d.value,width:"content",children:t.jsx(ie,{...o("checkbox"),label:d.label,value:d.value})},`li-checkbox-${d.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(d=>t.jsx(zt,{value:d.value,width:"content",children:t.jsx(ct,{...o("radio"),label:d.label,value:d.value})},`li-radio-${d.value}`))]});case"select":return t.jsx(at,{control:e,items:((l=n.options)==null?void 0:l.map(d=>({name:d.label??"",value:d.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(We,{label:n.label,name:p,placeholder:n.placeholder,register:o,value:n.value});case"numberRange":return t.jsx(Qt,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:o,name:"maxValue",value:n.maxValue,setValue:r},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:o,name:"minValue",value:n.minValue,setValue:r},variant:"filters"});case"dateRange":return t.jsx(Zt,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(s=n.maxValue)==null?void 0:s.toString()},propsMin:{name:"minValue",value:(c=n.minValue)==null?void 0:c.toString()},register:o,setValue:r,variant:"filters"});default:return t.jsx("div",{})}},bn=({control:e,items:n,register:o,setValue:r})=>t.jsx(t.Fragment,{children:n.map((i,a)=>{const l=`${i.type}-${i.value}-${i.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(yn,{control:e,option:i,register:o,setValue:r}),a<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),$n=e=>{var s,c,p,d,g;const[n,o]=u.useState([...e]),{control:r,register:i,handleSubmit:a,setValue:l}=y.useForm({defaultValues:{checkbox:e.filter(x=>x.type==="checkboxes").flatMap(x=>{var h;return((h=x.options)==null?void 0:h.filter(b=>b.checked).map(b=>b.value))??[]}),radio:((p=(c=(s=e.find(x=>x.type==="radioButton"))==null?void 0:s.options)==null?void 0:c.find(({checked:x})=>x))==null?void 0:p.value)??"",text:e.filter(x=>["text","select"].includes(x.type)).reduce((x,h)=>({...x,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(d=e.find(x=>["numberRange","dateRange"].includes(x.type)))==null?void 0:d.minValue,maxValue:(g=e.find(x=>["numberRange","dateRange"].includes(x.type)))==null?void 0:g.maxValue}});return{control:r,items:n,setItems:o,register:i,handleSubmit:a,setValue:l}},ki=(e,n)=>{var o,r,i,a,l;n("checkbox",e.filter(s=>s.type==="checkboxes").flatMap(s=>{var c;return((c=s.options)==null?void 0:c.filter(p=>p.checked).map(p=>p.value))??[]})),n("radio",((i=(r=(o=e.find(s=>s.type==="radioButton"))==null?void 0:o.options)==null?void 0:r.find(({checked:s})=>s))==null?void 0:i.value)??""),n("text",e.filter(s=>["text","select"].includes(s.type)).reduce((s,c)=>({...s,[`${String(c.key)}-${c.filterFn??"caseInsensitive"}`]:c.value??""}),{})),n("minValue",(a=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:a.minValue),n("maxValue",(l=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:l.maxValue)},Ci=(e,n)=>(e==null?void 0:e.filter(o=>{var r;return((r=o.label)==null?void 0:r.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??o.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],Si=async(e,n)=>await Promise.all(e.map(async o=>{if(o.type==="checkboxes"){const i=(o.filterOptions?await o.filterOptions(o.options??[],n):Ci(o.options??[],n)).filter((a,l,s)=>s.findIndex(c=>c.value===a.value)===l);return{...o,options:i}}return o})),Xe=({options:e,onSearch:n,onSubmit:o,id:r,selectedFilter:i})=>{const{control:a,items:l,setItems:s,register:c,handleSubmit:p,setValue:d}=$n(e),g=e.some(w=>w.type==="checkboxes"&&w.hideSearch!==!0),x=e.some(w=>w.label&&w.label!==""),h=u.useCallback(async w=>{const{value:$}=w.target;n&&n($);const S=await Si(e,$);s(S)},[e,n,s]),b=u.useCallback(w=>{o&&o(w)},[o]);return u.useEffect(()=>{s(e),ki(e,d)},[e,s,d]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:r,style:{writingMode:"horizontal-tb",maxWidth:"300px",width:"100%"},children:[g&&t.jsxs("div",{children:[x?i:void 0,t.jsx(se,{onChange:h,placeholder:"Search"})]}),t.jsxs("form",{id:r,onSubmit:p(b),children:[t.jsx(bn,{control:a,items:l,register:c,setValue:d}),t.jsx(M,{mt:1,type:"submit",children:"Apply"})]})]})},mn=({options:e,variant:n,onApplyFilters:o,onSearch:r,setDirection:i,setHandler:a,onFilterStateChange:l})=>{const s=f.useTheme(),[c,p]=u.useState(e),[d,g]=u.useState([]),[x,h]=u.useState({}),[b,w]=u.useState(""),$=u.useCallback(j=>()=>{const v=c.find(z=>z.label===j),k=!(v!=null&&v.filterOptions.some(z=>z.type==="dateRange"||z.type==="select"));a==null||a(k??!0),w(j),g((v==null?void 0:v.filterOptions)??[])},[c,a]),S=u.useCallback(j=>{const v=[...j.checkbox,...Object.values(j.text??{}),...j.radio?[j.radio]:[],...j.minValue?[String(j.minValue)]:[],...j.maxValue?[String(j.maxValue)]:[]];h(E=>v.length>0?{...E,[b]:v}:E);const k=E=>{var T,A;return{...E,options:(T=E.options)==null?void 0:T.map(O=>({...O,checked:j.checkbox.includes(O.value)||j.radio===O.value})),value:["text","select"].includes(E.type)?((A=j.text)==null?void 0:A[`${String(E.key)}-${E.filterFn??"caseInsensitive"}`])??E.value:E.value,minValue:["numberRange","dateRange"].includes(E.type)?j.minValue:E.minValue,maxValue:["numberRange","dateRange"].includes(E.type)?j.maxValue:E.maxValue}},z=E=>E.label===b?{...E,filterOptions:E.filterOptions.map(k)}:E,F=c.map(z);p(E=>E.map(z));const I=F.flatMap(({filterOptions:E})=>E);o(I),g([])},[c,o,b]),C=u.useCallback((j,v)=>{const k=`li-filter-option-${j}`;return t.jsxs(vi,{icon:v,onClick:$(j),style:{minWidth:"180px",writingMode:"horizontal-tb"},value:k,width:"100%",children:[j,x[j]===void 0?void 0:t.jsx(X,{tagLabel:x[j].length.toString()})]},k)},[x,$]);return u.useEffect(()=>{const j=e.reduce((v,{label:k,filterOptions:z})=>{const F=z.flatMap(({value:T,minValue:A,maxValue:O})=>[A,O,T]).filter(Boolean),I=z.flatMap(({options:T})=>T??[]).filter(({checked:T=!1})=>T).map(({value:T})=>T),E=[...F,...I];return E.length===0?v:{...v,[k]:E}},{});h(j),d.length>0&&i&&i("column")},[d,e,i]),u.useEffect(()=>{l==null||l(d.length>0)},[d.length,l]),n==="grouped"?t.jsx(m,{display:"flex",flexDirection:"row",maxHeight:d.length>0?"unset":"360px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:d.length>0?t.jsx(Xe,{id:"filters-options",onSearch:r,onSubmit:S,options:d,selectedFilter:b}):Object.entries(gt(e)).map(([j,v])=>t.jsxs(m,{style:{writingMode:"horizontal-tb"},children:[t.jsx(R,{color:s.palette.gray[400],fontWeight:"bold",mb:.25,size:"md",children:j}),v.map(({label:k,icon:z="filter-list"})=>C(k,z))]},j))}):t.jsx(m,{display:"flex",flexDirection:"row",maxHeight:d.length>0?"unset":"200px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:d.length>0?t.jsx(Xe,{id:"filters-options",onSearch:r,onSubmit:S,options:d,selectedFilter:b}):e.map(({label:j,icon:v="filter-list"})=>C(j,v))})},wn=({options:e,onApplyFilters:n,onSearch:o,modalRef:r,variant:i})=>{const[a,l]=u.useState("row"),[s,c]=u.useState(!0),[p,d]=u.useState(!1),x=(i==="grouped"?Object.values(gt(e)).reduce(($,S)=>$+S.length,0):e.length)>5&&!p,h=f.useTheme(),b=u.useRef(null),w=t.jsx(H,{icon:"close",iconColor:h.palette.gray[400],iconSize:"lg",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:r.close,px:.25,py:.25,variant:"ghost"});return u.useEffect(()=>{const $=S=>{const C=b.current;C&&!C.contains(S.target)&&r.close()};if(s)return document.addEventListener("mousedown",$,!0),()=>{document.removeEventListener("mousedown",$,!0)}},[b,s,r]),t.jsx(ji,{$bgColor:"transparent","aria-label":r.name,children:t.jsxs(dt,{$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:b,style:{maxWidth:"620px",overflow:"hidden",width:"fit-content",paddingBottom:x?"0":void 0},children:[a==="column"?w:void 0,t.jsx(mn,{onApplyFilters:n,onFilterStateChange:d,onSearch:o,options:e,setDirection:l,setHandler:c,variant:i}),a==="row"?w:void 0]})})};function zi(e){if(e)return e}function vn(e){if(!e||e.length===0)return;const n=e.filter(r=>r.checked).map(r=>r.label??r.value);return n.length===0?void 0:n.join(", ")}function Ti(e,n,o){const r=o??"",i=y._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),a=y._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!y._.isUndefined(i)&&!y._.isUndefined(a))return`${i}${r} - ${a}${r}`;if(!y._.isUndefined(i))return`Min ${i}${r}`;if(!y._.isUndefined(a))return`Max ${a}${r}`}function Ii(e,n){if(y.dayjs_minExports.extend(y.localizedFormat),!(y._.isUndefined(e)&&y._.isUndefined(n))){if(e!==""&&n!==""&&!y._.isUndefined(e)&&!y._.isUndefined(n))return`${y.dayjs(e).format("LL")} - ${y.dayjs(n).format("LL")}`;if(e!==""&&!y._.isUndefined(e))return`From ${y.dayjs(e).format("LL")}`;if(n!==""&&!y._.isUndefined(n))return`To ${y.dayjs(n).format("LL")}`}}function Ei(e,n,o){return e==="select"?n:`${n} ${o==="includesInsensitive"?"contains":"is"}`}const ue=({filter:e,icon:n="filter-list",label:o,onClose:r,filterValue:i})=>y._.isNil(i)||y._.isEmpty(String(i))?null:t.jsx(X,{filterValues:i,icon:n,id:"remove-filter",onClose:r(e),tagLabel:`${o} `}),Ri=({options:e,onClose:n})=>{const o=e.flatMap(r=>r.filterOptions.map(i=>{const{filterFn:a,label:l,type:s,value:c,options:p,minValue:d,maxValue:g}=i;switch(s){case"numberRange":{const x=Ti(d,g,r.placeholder);return t.jsx(ue,{filter:i,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case"dateRange":{const x=Ii(d==null?void 0:d.toString(),g==null?void 0:g.toString());return t.jsx(ue,{filter:i,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case"radioButton":case"checkboxes":{const x=vn(p);return t.jsx(ue,{filter:i,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case void 0:case"select":case"text":default:{const x=zi(c),h=Ei(s,r.label,a);return t.jsx(ue,{filter:i,filterValue:x,icon:r.icon,label:h,onClose:n},l)}}})).filter(r=>{if(r===null)return!1;const{filterValue:i}=r.props;return!y._.isNil(i)&&!y._.isEmpty(String(i))});return o.length>0?t.jsx(m,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:o}):null},Di=e=>e.map(n=>{const o={key:String(n.key),type:n.type},r=(()=>{let i={...o};if(n.filterFn&&(i={...i,filterFn:n.filterFn}),n.value&&(i={...i,value:n.value}),n.minValue!==void 0&&n.minValue!==null&&(i={...i,minValue:n.minValue}),n.maxValue!==void 0&&n.maxValue!==null&&(i={...i,maxValue:n.maxValue}),n.options&&n.options.length>0){const a=n.options.filter(l=>l.checked).map(l=>l.value);a.length>0&&(i={...i,selectedValues:a})}return i})();return Object.keys(r).length>2?r:null}).filter(Boolean),Fi=(e,n)=>n.map(o=>{const r=e.find(a=>a.key===String(o.key)&&a.type===o.type);return r?(()=>{let a={...o};return r.filterFn&&(a={...a,filterFn:r.filterFn}),r.value!==void 0&&r.value!==null&&(a={...a,value:r.value}),r.minValue!==void 0&&r.minValue!==null&&(a={...a,minValue:r.minValue}),r.maxValue!==void 0&&r.maxValue!==null&&(a={...a,maxValue:r.maxValue}),r.selectedValues&&o.options&&(a={...a,options:o.options.map(l=>{var s;return{...l,checked:((s=r.selectedValues)==null?void 0:s.includes(l.value))??!1}})}),a})():o}),Ue=(e,n)=>{const o=Di(e);n(JSON.stringify(o))},Ni=(e,n)=>{const o=e();if(!o)return n;try{const r=JSON.parse(o);return Fi(r,n)}catch{return n}},Li=(e,n)=>{function o(l,s){if(s.value===""||s.value===void 0||y._.defaultTo(s.isBackFilter,!1))return!0;switch(s.filterFn){case"includesInsensitive":return String(l[s.key]).toLowerCase().includes(s.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[s.key]).toLowerCase()===s.value.toLowerCase()}}function r(l,s){if(!s.options||s.options.length===0)return!0;const c=s.options.filter(p=>p.checked).map(p=>p.value);return c.length===0?!0:c.includes(String(l[s.key]))}function i(l,s,c){const p=c(String(l[s.key])),{minValue:d,maxValue:g}=s,x=y._.isEmpty(d)&&typeof d!="number"?void 0:c(String(d)),h=y._.isEmpty(g)&&typeof g!="number"?void 0:c(String(g));return y._.isUndefined(x)&&y._.isUndefined(h)?!0:(x??-1/0)<=p&&p<=(h??1/0)}function a(l){return n.every(s=>{if(typeof s.key=="function")return s.key(l,s.value);switch(s.type){case"radioButton":case"checkboxes":return r(l,s);case"numberRange":return i(l,s,Number);case"dateRange":return i(l,s,c=>new Date(c));case"select":case"text":default:return o(l,s)}})}return e.filter(a)},Ai=e=>[...e.flatMap(({options:o})=>o).filter(o=>o==null?void 0:o.checked),...e.flatMap(o=>[o.value,o.maxValue,o.minValue]).filter(Boolean)].length,Pi=e=>{var o;const n=((o=e.options)==null?void 0:o.map(r=>({...r,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},Oi=({dataset:e,setValues:n,getValues:o,options:r,setFilteredDataset:i,onFiltersChange:a,onReset:l,onSearch:s,variant:c="ungrouped"})=>{const p=Ie("filters-modal"),[d,g]=u.useState(!1),[x,h]=u.useState([]),b=Ai(x),w=r.map(v=>({...v,filterOptions:v.filterOptions.map(k=>x.find(F=>F.key===k.key&&F.type===k.type&&F.filterFn===k.filterFn)??{...k})})),$=u.useCallback(v=>{h([...v]),Ue(v,n)},[h,n]),S=u.useCallback(()=>{l&&l(),p.isOpen||g(!0),p.toggle()},[p,l]),C=u.useCallback(v=>()=>{l&&l();const k=x.map(z=>z.key===v.key&&z.type===v.type&&z.filterFn===v.filterFn?Pi(z):z);h(k),Ue(k,n)},[x,l,n]);return u.useEffect(()=>{const v=r.flatMap(F=>F.filterOptions),k=o();if((()=>{if(!k)return!1;try{const F=JSON.parse(k);return Array.isArray(F)&&F.length>0}catch{return!1}})()){const F=Ni(o,v);h(F)}else v.flatMap(I=>I.value).filter(Boolean).length>0||v.flatMap(I=>I.options).filter(I=>(I==null?void 0:I.checked)===!0).length>0?(h(v),d&&Ue(v,n)):h(v)},[r,h,n,o,d]),u.useEffect(()=>{i&&e!==void 0&&i(Li(e,x)),a==null||a(x)},[e,x,i,a]),{Filters:()=>t.jsxs(m,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx(m,{pr:.25,children:t.jsx(M,{icon:"filter",id:"filter-btn",onClick:S,tag:b.toString(),variant:"ghost"})}),p.isOpen&&t.jsx(wn,{modalRef:p,onApplyFilters:$,onSearch:s,options:w,variant:c})]}),options:w,removeFilter:C}},ut=({_portal:e=!0,alert:n,cancelButton:o=void 0,children:r=void 0,confirmButton:i=void 0,content:a=void 0,description:l=void 0,modalRef:s,otherActions:c=void 0,onClose:p=void 0,tabItems:d=void 0,title:g=void 0,size:x,id:h="modal-container"})=>{const b=f.useTheme(),[w,$]=u.useState(void 0),S=u.useRef(null),C=u.useRef(!1),j=Array.isArray(d)&&d.length>0,v=o??i;u.useEffect(()=>{if(j&&!C.current&&S.current){const z=S.current.getBoundingClientRect().height;z>50&&($(z),C.current=!0)}s.isOpen||($(void 0),C.current=!1)},[j,s.isOpen]);const k=t.jsx(ln,{"aria-label":s.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(dt,{$size:x,"data-testid":h,flexDirection:"column",id:h,ref:j?S:void 0,style:j&&w?{height:w}:void 0,children:[!y._.isEmpty(g)&&!y._.isNil(g)&&t.jsx(dn,{description:l,modalRef:s,onClose:p,otherActions:c,title:g}),d&&t.jsx(m,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(pt,{items:d})}),(y._.isObject(a)||r)&&t.jsxs(ci,{style:v?{borderBottom:`1px solid ${b.palette.gray[200]}`}:void 0,children:[r,y._.isObject(a)&&y._.isString(a.imageSrc)&&t.jsx(ui,{$framed:a.imageFramed,children:t.jsx(re,{alt:"modal-img",publicId:a.imageSrc})}),y._.isObject(a)&&y._.isString(a.imageText)&&t.jsx(R,{size:"md",children:a.imageText})]}),t.jsx(cn,{alert:n,cancelButton:o,confirmButton:i,modalRef:s})]})});return e&&s.isOpen?le.createPortal(k,document.getElementById("portals")??document.body):s.isOpen?k:null},Mi=(e,n,o)=>{const r=Ie("confirm-dialog-modal"),i=u.useRef(null),a=u.useCallback(async()=>(r.open(),new Promise(p=>{i.current=p})),[r]),l=u.useCallback(()=>{var p;r.close(),(p=i.current)==null||p.call(i,!0)},[r]),s=u.useCallback(()=>{var p;r.close(),(p=i.current)==null||p.call(i,!1)},[r]);return[a,({children:p})=>{const[d,g]=u.useState(o),x=u.useCallback(()=>{g({...o})},[]),h=u.useCallback($=>()=>{g(S=>({...S,[$]:{...S[$],state:!S[$].state}}))},[]),b=!Object.values(d).every(({state:$})=>$),w=Object.entries(d).map(([$,{state:S,label:C}])=>t.jsx(ie,{defaultChecked:S,label:C,name:$,onChange:h($)},$));return t.jsxs(ut,{"data-testid":e,id:e,modalRef:{...r,close:s},onClose:x,size:"sm",title:n,children:[p,t.jsx(m,{display:"flex",flexDirection:"column",gap:.5,children:w}),t.jsx(pn,{disabled:b,id:e,onConfirm:l})]})}]},Wi=()=>{const[e,n]=u.useState(!1),[o,r]=u.useState(),i=u.useRef(null),a=Ie("confirm-dialog-modal"),l=u.useCallback(async d=>(r(d),n(!0),new Promise(g=>{i.current=g})),[]),s=u.useCallback(()=>{var d;n(!1),r(void 0),(d=i.current)==null||d.call(i,!0)},[]),c=u.useCallback(()=>{var d;n(!1),r(void 0),(d=i.current)==null||d.call(i,!1)},[]);return u.useEffect(()=>{a.setIsOpen(e)},[e,a]),{ConfirmDialog:({id:d="confirm-dialog-modal",children:g})=>t.jsxs(ut,{cancelButton:{onClick:c,text:"Cancel"},confirmButton:{id:(o==null?void 0:o.id)??"modal-confirm",onClick:s,text:"Confirm"},description:o==null?void 0:o.message,id:d,modalRef:{...a,close:c},size:"sm",title:o==null?void 0:o.title,children:[o==null?void 0:o.content,g]}),confirm:l}},Hi=2e3,Bi=({content:e})=>{const[n,o]=u.useState("Copy"),r=u.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{o("Copied"),setTimeout(()=>{o("Copy")},Hi)}).catch(()=>{o("Failed to copy")})},[e]);return t.jsx(H,{icon:"copy",iconSize:"lg",iconType:"fa-light",onClick:r,tooltip:n,variant:"ghost"})},_i=f.styled.ul`
2067
+ `,yn=({control:e,option:n,register:o,setValue:i})=>{var r,a,l,s,c;switch(n.type){case"checkboxes":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[!n.label||n.label===""?void 0:null,(r=n.options)==null?void 0:r.map(d=>t.jsx(zt,{value:d.value,width:"content",children:t.jsx(re,{...o("checkbox"),label:d.label,value:d.value})},`li-checkbox-${d.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(d=>t.jsx(zt,{value:d.value,width:"content",children:t.jsx(ct,{...o("radio"),label:d.label,value:d.value})},`li-radio-${d.value}`))]});case"select":return t.jsx(at,{control:e,items:((l=n.options)==null?void 0:l.map(d=>({name:d.label??"",value:d.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(We,{label:n.label,name:p,placeholder:n.placeholder,register:o,value:n.value});case"numberRange":return t.jsx(Qt,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:o,name:"maxValue",value:n.maxValue,setValue:i},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:o,name:"minValue",value:n.minValue,setValue:i},variant:"filters"});case"dateRange":return t.jsx(qt,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(s=n.maxValue)==null?void 0:s.toString()},propsMin:{name:"minValue",value:(c=n.minValue)==null?void 0:c.toString()},register:o,setValue:i,variant:"filters"});default:return t.jsx("div",{})}},bn=({control:e,items:n,register:o,setValue:i})=>t.jsx(t.Fragment,{children:n.map((r,a)=>{const l=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(yn,{control:e,option:r,register:o,setValue:i}),a<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),$n=e=>{var s,c,p,d,g;const[n,o]=u.useState([...e]),{control:i,register:r,handleSubmit:a,setValue:l}=y.useForm({defaultValues:{checkbox:e.filter(x=>x.type==="checkboxes").flatMap(x=>{var h;return((h=x.options)==null?void 0:h.filter(b=>b.checked).map(b=>b.value))??[]}),radio:((p=(c=(s=e.find(x=>x.type==="radioButton"))==null?void 0:s.options)==null?void 0:c.find(({checked:x})=>x))==null?void 0:p.value)??"",text:e.filter(x=>["text","select"].includes(x.type)).reduce((x,h)=>({...x,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(d=e.find(x=>["numberRange","dateRange"].includes(x.type)))==null?void 0:d.minValue,maxValue:(g=e.find(x=>["numberRange","dateRange"].includes(x.type)))==null?void 0:g.maxValue}});return{control:i,items:n,setItems:o,register:r,handleSubmit:a,setValue:l}},Cr=(e,n)=>{var o,i,r,a,l;n("checkbox",e.filter(s=>s.type==="checkboxes").flatMap(s=>{var c;return((c=s.options)==null?void 0:c.filter(p=>p.checked).map(p=>p.value))??[]})),n("radio",((r=(i=(o=e.find(s=>s.type==="radioButton"))==null?void 0:o.options)==null?void 0:i.find(({checked:s})=>s))==null?void 0:r.value)??""),n("text",e.filter(s=>["text","select"].includes(s.type)).reduce((s,c)=>({...s,[`${String(c.key)}-${c.filterFn??"caseInsensitive"}`]:c.value??""}),{})),n("minValue",(a=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:a.minValue),n("maxValue",(l=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:l.maxValue)},Sr=(e,n)=>(e==null?void 0:e.filter(o=>{var i;return((i=o.label)==null?void 0:i.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??o.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],zr=async(e,n)=>await Promise.all(e.map(async o=>{if(o.type==="checkboxes"){const r=(o.filterOptions?await o.filterOptions(o.options??[],n):Sr(o.options??[],n)).filter((a,l,s)=>s.findIndex(c=>c.value===a.value)===l);return{...o,options:r}}return o})),Xe=({options:e,onSearch:n,onSubmit:o,id:i,selectedFilter:r})=>{const{control:a,items:l,setItems:s,register:c,handleSubmit:p,setValue:d}=$n(e),g=e.some(w=>w.type==="checkboxes"&&w.hideSearch!==!0),x=e.some(w=>w.label&&w.label!==""),h=u.useCallback(async w=>{const{value:$}=w.target;n&&n($);const C=await zr(e,$);s(C)},[e,n,s]),b=u.useCallback(w=>{o&&o(w)},[o]);return u.useEffect(()=>{s(e),Cr(e,d)},[e,s,d]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:i,style:{writingMode:"horizontal-tb",maxWidth:"300px",width:"100%"},children:[g&&t.jsxs("div",{children:[x?r:void 0,t.jsx(se,{onChange:h,placeholder:"Search"})]}),t.jsxs("form",{id:i,onSubmit:p(b),children:[t.jsx(bn,{control:a,items:l,register:c,setValue:d}),t.jsx(M,{mt:1,type:"submit",children:"Apply"})]})]})},mn=({options:e,variant:n,onApplyFilters:o,onSearch:i,setDirection:r,setHandler:a,onFilterStateChange:l})=>{const s=f.useTheme(),[c,p]=u.useState(e),[d,g]=u.useState([]),[x,h]=u.useState({}),[b,w]=u.useState(""),$=u.useCallback(v=>()=>{const j=c.find(z=>z.label===v),k=!(j!=null&&j.filterOptions.some(z=>z.type==="dateRange"||z.type==="select"));a==null||a(k??!0),w(v),g((j==null?void 0:j.filterOptions)??[])},[c,a]),C=u.useCallback(v=>{const j=[...v.checkbox,...Object.values(v.text??{}),...v.radio?[v.radio]:[],...v.minValue?[String(v.minValue)]:[],...v.maxValue?[String(v.maxValue)]:[]];h(E=>j.length>0?{...E,[b]:j}:E);const k=E=>{var T,A;return{...E,options:(T=E.options)==null?void 0:T.map(O=>({...O,checked:v.checkbox.includes(O.value)||v.radio===O.value})),value:["text","select"].includes(E.type)?((A=v.text)==null?void 0:A[`${String(E.key)}-${E.filterFn??"caseInsensitive"}`])??E.value:E.value,minValue:["numberRange","dateRange"].includes(E.type)?v.minValue:E.minValue,maxValue:["numberRange","dateRange"].includes(E.type)?v.maxValue:E.maxValue}},z=E=>E.label===b?{...E,filterOptions:E.filterOptions.map(k)}:E,F=c.map(z);p(E=>E.map(z));const I=F.flatMap(({filterOptions:E})=>E);o(I),g([])},[c,o,b]),S=u.useCallback((v,j)=>{const k=`li-filter-option-${v}`;return t.jsxs(vr,{icon:j,onClick:$(v),style:{minWidth:"180px",writingMode:"horizontal-tb"},value:k,width:"100%",children:[v,x[v]===void 0?void 0:t.jsx(J,{tagLabel:x[v].length.toString()})]},k)},[x,$]);return u.useEffect(()=>{const v=e.reduce((j,{label:k,filterOptions:z})=>{const F=z.flatMap(({value:T,minValue:A,maxValue:O})=>[A,O,T]).filter(Boolean),I=z.flatMap(({options:T})=>T??[]).filter(({checked:T=!1})=>T).map(({value:T})=>T),E=[...F,...I];return E.length===0?j:{...j,[k]:E}},{});h(v),d.length>0&&r&&r("column")},[d,e,r]),u.useEffect(()=>{l==null||l(d.length>0)},[d.length,l]),n==="grouped"?t.jsx(m,{display:"flex",flexDirection:"row",maxHeight:d.length>0?"unset":"360px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:d.length>0?t.jsx(Xe,{id:"filters-options",onSearch:i,onSubmit:C,options:d,selectedFilter:b}):Object.entries(gt(e)).map(([v,j])=>t.jsxs(m,{style:{writingMode:"horizontal-tb"},children:[t.jsx(R,{color:s.palette.gray[400],fontWeight:"bold",mb:.25,size:"md",children:v}),j.map(({label:k,icon:z="filter-list"})=>S(k,z))]},v))}):t.jsx(m,{display:"flex",flexDirection:"row",maxHeight:d.length>0?"unset":"200px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:d.length>0?t.jsx(Xe,{id:"filters-options",onSearch:i,onSubmit:C,options:d,selectedFilter:b}):e.map(({label:v,icon:j="filter-list"})=>S(v,j))})},wn=({options:e,onApplyFilters:n,onSearch:o,modalRef:i,variant:r})=>{const[a,l]=u.useState("row"),[s,c]=u.useState(!0),[p,d]=u.useState(!1),x=(r==="grouped"?Object.values(gt(e)).reduce(($,C)=>$+C.length,0):e.length)>5&&!p,h=f.useTheme(),b=u.useRef(null),w=t.jsx(H,{icon:"close",iconColor:h.palette.gray[400],iconSize:"lg",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:i.close,px:.25,py:.25,variant:"ghost"});return u.useEffect(()=>{const $=C=>{const S=b.current;S&&!S.contains(C.target)&&i.close()};if(s)return document.addEventListener("mousedown",$,!0),()=>{document.removeEventListener("mousedown",$,!0)}},[b,s,i]),t.jsx(kr,{$bgColor:"transparent","aria-label":i.name,children:t.jsxs(dt,{$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:b,style:{maxWidth:"620px",overflow:"hidden",width:"fit-content",paddingBottom:x?"0":void 0},children:[a==="column"?w:void 0,t.jsx(mn,{onApplyFilters:n,onFilterStateChange:d,onSearch:o,options:e,setDirection:l,setHandler:c,variant:r}),a==="row"?w:void 0]})})};function Tr(e){if(e)return e}function jn(e){if(!e||e.length===0)return;const n=e.filter(i=>i.checked).map(i=>i.label??i.value);return n.length===0?void 0:n.join(", ")}function Ir(e,n,o){const i=o??"",r=y._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),a=y._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!y._.isUndefined(r)&&!y._.isUndefined(a))return`${r}${i} - ${a}${i}`;if(!y._.isUndefined(r))return`Min ${r}${i}`;if(!y._.isUndefined(a))return`Max ${a}${i}`}function Er(e,n){if(y.dayjs_minExports.extend(y.localizedFormat),!(y._.isUndefined(e)&&y._.isUndefined(n))){if(e!==""&&n!==""&&!y._.isUndefined(e)&&!y._.isUndefined(n))return`${y.dayjs(e).format("LL")} - ${y.dayjs(n).format("LL")}`;if(e!==""&&!y._.isUndefined(e))return`From ${y.dayjs(e).format("LL")}`;if(n!==""&&!y._.isUndefined(n))return`To ${y.dayjs(n).format("LL")}`}}function Rr(e,n,o){return e==="select"?n:`${n} ${o==="includesInsensitive"?"contains":"is"}`}const ue=({filter:e,icon:n="filter-list",label:o,onClose:i,filterValue:r})=>y._.isNil(r)||y._.isEmpty(String(r))?null:t.jsx(J,{filterValues:r,icon:n,id:"remove-filter",onClose:i(e),tagLabel:`${o} `}),Dr=({options:e,onClose:n})=>{const o=e.flatMap(i=>i.filterOptions.map(r=>{const{filterFn:a,label:l,type:s,value:c,options:p,minValue:d,maxValue:g}=r;switch(s){case"numberRange":{const x=Ir(d,g,i.placeholder);return t.jsx(ue,{filter:r,filterValue:x,icon:i.icon,label:i.label,onClose:n},l)}case"dateRange":{const x=Er(d==null?void 0:d.toString(),g==null?void 0:g.toString());return t.jsx(ue,{filter:r,filterValue:x,icon:i.icon,label:i.label,onClose:n},l)}case"radioButton":case"checkboxes":{const x=jn(p);return t.jsx(ue,{filter:r,filterValue:x,icon:i.icon,label:i.label,onClose:n},l)}case void 0:case"select":case"text":default:{const x=Tr(c),h=Rr(s,i.label,a);return t.jsx(ue,{filter:r,filterValue:x,icon:i.icon,label:h,onClose:n},l)}}})).filter(i=>{if(i===null)return!1;const{filterValue:r}=i.props;return!y._.isNil(r)&&!y._.isEmpty(String(r))});return o.length>0?t.jsx(m,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:o}):null},Fr=e=>e.map(n=>{const o={key:String(n.key),type:n.type},i=(()=>{let r={...o};if(n.filterFn&&(r={...r,filterFn:n.filterFn}),n.value&&(r={...r,value:n.value}),n.minValue!==void 0&&n.minValue!==null&&(r={...r,minValue:n.minValue}),n.maxValue!==void 0&&n.maxValue!==null&&(r={...r,maxValue:n.maxValue}),n.options&&n.options.length>0){const a=n.options.filter(l=>l.checked).map(l=>l.value);a.length>0&&(r={...r,selectedValues:a})}return r})();return Object.keys(i).length>2?i:null}).filter(Boolean),Nr=(e,n)=>n.map(o=>{const i=e.find(a=>a.key===String(o.key)&&a.type===o.type);return i?(()=>{let a={...o};return i.filterFn&&(a={...a,filterFn:i.filterFn}),i.value!==void 0&&i.value!==null&&(a={...a,value:i.value}),i.minValue!==void 0&&i.minValue!==null&&(a={...a,minValue:i.minValue}),i.maxValue!==void 0&&i.maxValue!==null&&(a={...a,maxValue:i.maxValue}),i.selectedValues&&o.options&&(a={...a,options:o.options.map(l=>{var s;return{...l,checked:((s=i.selectedValues)==null?void 0:s.includes(l.value))??!1}})}),a})():o}),Ue=(e,n)=>{const o=Fr(e);n(JSON.stringify(o))},Lr=(e,n)=>{const o=e();if(!o)return n;try{const i=JSON.parse(o);return Nr(i,n)}catch{return n}},Ar=(e,n)=>{function o(l,s){if(s.value===""||s.value===void 0||y._.defaultTo(s.isBackFilter,!1))return!0;switch(s.filterFn){case"includesInsensitive":return String(l[s.key]).toLowerCase().includes(s.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[s.key]).toLowerCase()===s.value.toLowerCase()}}function i(l,s){if(!s.options||s.options.length===0)return!0;const c=s.options.filter(p=>p.checked).map(p=>p.value);return c.length===0?!0:c.includes(String(l[s.key]))}function r(l,s,c){const p=c(String(l[s.key])),{minValue:d,maxValue:g}=s,x=y._.isEmpty(d)&&typeof d!="number"?void 0:c(String(d)),h=y._.isEmpty(g)&&typeof g!="number"?void 0:c(String(g));return y._.isUndefined(x)&&y._.isUndefined(h)?!0:(x??-1/0)<=p&&p<=(h??1/0)}function a(l){return n.every(s=>{if(typeof s.key=="function")return s.key(l,s.value);switch(s.type){case"radioButton":case"checkboxes":return i(l,s);case"numberRange":return r(l,s,Number);case"dateRange":return r(l,s,c=>new Date(c));case"select":case"text":default:return o(l,s)}})}return e.filter(a)},Pr=e=>[...e.flatMap(({options:o})=>o).filter(o=>o==null?void 0:o.checked),...e.flatMap(o=>[o.value,o.maxValue,o.minValue]).filter(Boolean)].length,Or=e=>{var o;const n=((o=e.options)==null?void 0:o.map(i=>({...i,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},Mr=({dataset:e,setValues:n,getValues:o,options:i,setFilteredDataset:r,onFiltersChange:a,onReset:l,onSearch:s,variant:c="ungrouped"})=>{const p=Ie("filters-modal"),[d,g]=u.useState(!1),[x,h]=u.useState([]),b=Pr(x),w=i.map(j=>({...j,filterOptions:j.filterOptions.map(k=>x.find(F=>F.key===k.key&&F.type===k.type&&F.filterFn===k.filterFn)??{...k})})),$=u.useCallback(j=>{h([...j]),Ue(j,n)},[h,n]),C=u.useCallback(()=>{l&&l(),p.isOpen||g(!0),p.toggle()},[p,l]),S=u.useCallback(j=>()=>{l&&l();const k=x.map(z=>z.key===j.key&&z.type===j.type&&z.filterFn===j.filterFn?Or(z):z);h(k),Ue(k,n)},[x,l,n]);return u.useEffect(()=>{const j=i.flatMap(F=>F.filterOptions),k=o();if((()=>{if(!k)return!1;try{const F=JSON.parse(k);return Array.isArray(F)&&F.length>0}catch{return!1}})()){const F=Lr(o,j);h(F)}else j.flatMap(I=>I.value).filter(Boolean).length>0||j.flatMap(I=>I.options).filter(I=>(I==null?void 0:I.checked)===!0).length>0?(h(j),d&&Ue(j,n)):h(j)},[i,h,n,o,d]),u.useEffect(()=>{r&&e!==void 0&&r(Ar(e,x)),a==null||a(x)},[e,x,r,a]),{Filters:()=>t.jsxs(m,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx(m,{pr:.25,children:t.jsx(M,{icon:"filter",id:"filter-btn",onClick:C,tag:b.toString(),variant:"ghost"})}),p.isOpen&&t.jsx(wn,{modalRef:p,onApplyFilters:$,onSearch:s,options:w,variant:c})]}),options:w,removeFilter:S}},ut=({_portal:e=!0,alert:n,cancelButton:o=void 0,children:i=void 0,confirmButton:r=void 0,content:a=void 0,description:l=void 0,modalRef:s,otherActions:c=void 0,onClose:p=void 0,tabItems:d=void 0,title:g=void 0,size:x,id:h="modal-container"})=>{const b=f.useTheme(),[w,$]=u.useState(void 0),C=u.useRef(null),S=u.useRef(!1),v=Array.isArray(d)&&d.length>0,j=o??r;u.useEffect(()=>{if(v&&!S.current&&C.current){const z=C.current.getBoundingClientRect().height;z>50&&($(z),S.current=!0)}s.isOpen||($(void 0),S.current=!1)},[v,s.isOpen]);const k=t.jsx(ln,{"aria-label":s.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(dt,{$size:x,"data-testid":h,flexDirection:"column",id:h,ref:v?C:void 0,style:v&&w?{height:w}:void 0,children:[!y._.isEmpty(g)&&!y._.isNil(g)&&t.jsx(dn,{description:l,modalRef:s,onClose:p,otherActions:c,title:g}),d&&t.jsx(m,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(pt,{items:d})}),(y._.isObject(a)||i)&&t.jsxs(dr,{style:j?{borderBottom:`1px solid ${b.palette.gray[200]}`}:void 0,children:[i,y._.isObject(a)&&y._.isString(a.imageSrc)&&t.jsx(xr,{$framed:a.imageFramed,children:t.jsx(ie,{alt:"modal-img",publicId:a.imageSrc})}),y._.isObject(a)&&y._.isString(a.imageText)&&t.jsx(R,{size:"md",children:a.imageText})]}),t.jsx(cn,{alert:n,cancelButton:o,confirmButton:r,modalRef:s})]})});return e&&s.isOpen?le.createPortal(k,document.getElementById("portals")??document.body):s.isOpen?k:null},Wr=(e,n,o)=>{const i=Ie("confirm-dialog-modal"),r=u.useRef(null),a=u.useCallback(async()=>(i.open(),new Promise(p=>{r.current=p})),[i]),l=u.useCallback(()=>{var p;i.close(),(p=r.current)==null||p.call(r,!0)},[i]),s=u.useCallback(()=>{var p;i.close(),(p=r.current)==null||p.call(r,!1)},[i]);return[a,({children:p})=>{const[d,g]=u.useState(o),x=u.useCallback(()=>{g({...o})},[]),h=u.useCallback($=>()=>{g(C=>({...C,[$]:{...C[$],state:!C[$].state}}))},[]),b=!Object.values(d).every(({state:$})=>$),w=Object.entries(d).map(([$,{state:C,label:S}])=>t.jsx(re,{defaultChecked:C,label:S,name:$,onChange:h($)},$));return t.jsxs(ut,{"data-testid":e,id:e,modalRef:{...i,close:s},onClose:x,size:"sm",title:n,children:[p,t.jsx(m,{display:"flex",flexDirection:"column",gap:.5,children:w}),t.jsx(pn,{disabled:b,id:e,onConfirm:l})]})}]},Hr=()=>{const[e,n]=u.useState(!1),[o,i]=u.useState(),r=u.useRef(null),a=Ie("confirm-dialog-modal"),l=u.useCallback(async d=>(i(d),n(!0),new Promise(g=>{r.current=g})),[]),s=u.useCallback(()=>{var d;n(!1),i(void 0),(d=r.current)==null||d.call(r,!0)},[]),c=u.useCallback(()=>{var d;n(!1),i(void 0),(d=r.current)==null||d.call(r,!1)},[]);return u.useEffect(()=>{a.setIsOpen(e)},[e,a]),{ConfirmDialog:({id:d="confirm-dialog-modal",children:g})=>t.jsxs(ut,{cancelButton:{onClick:c,text:"Cancel"},confirmButton:{id:(o==null?void 0:o.id)??"modal-confirm",onClick:s,text:"Confirm"},description:o==null?void 0:o.message,id:d,modalRef:{...a,close:c},size:"sm",title:o==null?void 0:o.title,children:[o==null?void 0:o.content,g]}),confirm:l}},Br=2e3,_r=({content:e})=>{const[n,o]=u.useState("Copy"),i=u.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{o("Copied"),setTimeout(()=>{o("Copy")},Br)}).catch(()=>{o("Failed to copy")})},[e]);return t.jsx(H,{icon:"copy",iconSize:"lg",iconType:"fa-light",onClick:i,tooltip:n,variant:"ghost"})},Vr=f.styled.ul`
2066
2068
  ${({theme:e})=>`
2067
2069
  align-items: flex-start;
2068
2070
  border-radius: ${e.spacing[.25]};
@@ -2075,7 +2077,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2075
2077
  width: 166px;
2076
2078
  z-index: 9999;
2077
2079
  `}
2078
- `,Vi=f.styled.li`
2080
+ `,Ur=f.styled.li`
2079
2081
  ${({theme:e})=>`
2080
2082
  align-items: center;
2081
2083
  background: ${e.palette.white}
@@ -2101,7 +2103,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2101
2103
  cursor: not-allowed;
2102
2104
  }
2103
2105
  `}
2104
- `,Ui=({icon:e,iconColor:n,id:o,showChevron:r,options:i,title:a})=>{const l=f.useTheme(),[s,c]=u.useState(!1),p=s?"chevron-up":"chevron-down",{refs:d,floatingStyles:g}=y.useFloating({middleware:[y.offset({mainAxis:4})],placement:"bottom-start"}),x=u.useCallback(()=>{c(h=>!h)},[]);return ne(s?d.floating.current:null,()=>{c(!1)},!0,document.getElementById(`dropdown-toggle-${o}`)),t.jsxs(u.Fragment,{children:[t.jsx(M,{"aria-label":a,icon:e,iconColor:n,iconType:"fa-solid",id:`dropdown-toggle-${o}`,onClick:x,ref:d.setReference,rightIcon:r?p:void 0,variant:"ghost",children:a}),s?t.jsx(_i,{ref:d.setFloating,style:g,children:i.map(h=>{const b=({})=>{h.onClick(),c(!1)};return t.jsxs(Vi,{"aria-disabled":h.disabled,"aria-label":h.label,onClick:h.disabled?void 0:b,children:[t.jsx(D,{icon:h.icon,iconColor:h.iconColor??l.palette.gray[300],iconSize:"sm",iconType:"fa-light"}),h.label]},h.label)})}):void 0]})},Je=({buttonProps:e,variant:n})=>t.jsx(M,{onClick:e.onClick,variant:n,children:e.text}),Gi=f.styled.div`
2106
+ `,Gr=({icon:e,iconColor:n,id:o,showChevron:i,options:r,title:a})=>{const l=f.useTheme(),[s,c]=u.useState(!1),p=s?"chevron-up":"chevron-down",{refs:d,floatingStyles:g}=y.useFloating({middleware:[y.offset({mainAxis:4})],placement:"bottom-start"}),x=u.useCallback(()=>{c(h=>!h)},[]);return ne(s?d.floating.current:null,()=>{c(!1)},!0,document.getElementById(`dropdown-toggle-${o}`)),t.jsxs(u.Fragment,{children:[t.jsx(M,{"aria-label":a,icon:e,iconColor:n,iconType:"fa-solid",id:`dropdown-toggle-${o}`,onClick:x,ref:d.setReference,rightIcon:i?p:void 0,variant:"ghost",children:a}),s?t.jsx(Vr,{ref:d.setFloating,style:g,children:r.map(h=>{const b=({})=>{h.onClick(),c(!1)};return t.jsxs(Ur,{"aria-disabled":h.disabled,"aria-label":h.label,onClick:h.disabled?void 0:b,children:[t.jsx(D,{icon:h.icon,iconColor:h.iconColor??l.palette.gray[300],iconSize:"sm",iconType:"fa-light"}),h.label]},h.label)})}):void 0]})},Je=({buttonProps:e,variant:n})=>t.jsx(M,{onClick:e.onClick,variant:n,children:e.text}),Yr=f.styled.div`
2105
2107
  display: flex;
2106
2108
  flex-direction: column;
2107
2109
  align-items: center;
@@ -2109,7 +2111,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2109
2111
  max-width: 900px;
2110
2112
  white-space: pre-line;
2111
2113
  margin: 0 auto;
2112
- `,Yi=f.styled.div`
2114
+ `,Kr=f.styled.div`
2113
2115
  display: flex;
2114
2116
  flex-direction: row;
2115
2117
  justify-content: center;
@@ -2122,7 +2124,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2122
2124
  > img {
2123
2125
  width: 100%;
2124
2126
  }
2125
- `,Ki=f.styled.div`
2127
+ `,qr=f.styled.div`
2126
2128
  display: flex;
2127
2129
  flex-direction: row;
2128
2130
  margin: 0;
@@ -2135,7 +2137,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2135
2137
  > *:last-child {
2136
2138
  margin-right: 0;
2137
2139
  }
2138
- `,Tt={md:{description:"md",title:"md"},sm:{description:"md",title:"xs"}},Zi=({cancelButton:e=void 0,confirmButton:n=void 0,description:o,imageSrc:r="integrates/empty/addRoot",padding:i=1.25,title:a,size:l="md"})=>{const s=(n??e)!==void 0;return t.jsxs(Gi,{$padding:i,children:[t.jsx(Yi,{children:t.jsx(re,{alt:"empty-icon",publicId:r})}),t.jsx(ee,{fontWeight:"bold",mb:.25,size:Tt[l].title,textAlign:"center",children:a}),t.jsx(R,{mb:s?2:void 0,size:Tt[l].description,textAlign:"center",children:o}),s?t.jsxs(Ki,{children:[e&&t.jsx(Je,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(Je,{buttonProps:n,variant:"primary"})]}):void 0]})},qi=({children:e})=>{const n=y.useFormContext();return e({...n})},Xi=f.styled.form`
2140
+ `,Tt={md:{description:"md",title:"md"},sm:{description:"md",title:"xs"}},Zr=({cancelButton:e=void 0,confirmButton:n=void 0,description:o,imageSrc:i="integrates/empty/addRoot",padding:r=1.25,title:a,size:l="md"})=>{const s=(n??e)!==void 0;return t.jsxs(Yr,{$padding:r,children:[t.jsx(Kr,{children:t.jsx(ie,{alt:"empty-icon",publicId:i})}),t.jsx(X,{fontWeight:"bold",mb:.25,size:Tt[l].title,textAlign:"center",children:a}),t.jsx(R,{mb:s?2:void 0,size:Tt[l].description,textAlign:"center",children:o}),s?t.jsxs(qr,{children:[e&&t.jsx(Je,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(Je,{buttonProps:n,variant:"primary"})]}):void 0]})},Xr=({children:e})=>{const n=y.useFormContext();return e({...n})},Jr=f.styled.form`
2139
2141
  ${({theme:e})=>`
2140
2142
  align-items: flex-start;
2141
2143
  align-self: stretch;
@@ -2145,14 +2147,14 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2145
2147
  overflow: hidden auto;
2146
2148
  width: 100%;
2147
2149
  `}
2148
- `,Ji=({alert:e,buttonAlignment:n,cancelButton:o,children:r,confirmButton:i,defaultDisabled:a=!0,id:l="modal-confirm",maxButtonWidth:s="392px",mode:c,onSubmit:p,padding:d=!0,showButtons:g=!0,yupSchema:x,...h})=>{const b=f.useTheme(),w=y.useForm({...h,mode:c??"all",resolver:x?y.o(x):void 0});function $(v){v.stopPropagation(),w.handleSubmit(p)(v)}const C=g?`calc(100% - ${e?"139px":"83px"})`:"100%",j=d?1.5:0;return t.jsx(y.FormProvider,{...w,children:t.jsx(Xi,{onSubmit:$,children:t.jsxs(m,{scroll:"y",width:"100%",children:[t.jsx(m,{borderRadius:`0 0 ${b.spacing[.25]} ${b.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:C,pb:j,pt:0,px:j,scroll:"y",children:r}),g&&t.jsxs(m,{borderRadius:`0 0 ${b.spacing[.25]} ${b.spacing[.25]}`,borderTop:`1px solid ${b.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(m,{display:"flex",gap:.75,maxWidth:s,children:[o?t.jsx(M,{icon:o.icon,id:`${l}-cancel`,justify:"center",onClick:o.onClick,type:"reset",variant:"tertiary",width:"100%",children:o.label??"Cancel"}):void 0,t.jsx(M,{disabled:((i==null?void 0:i.disabled)??!1)||w.formState.isSubmitting||a&&!w.formState.isDirty,icon:i==null?void 0:i.icon,id:l,justify:"center",type:"submit",width:"100%",children:(i==null?void 0:i.label)??"Confirm"})]})]})]})})})},Qi=f.styled(ze)`
2150
+ `,Qr=({alert:e,buttonAlignment:n,cancelButton:o,children:i,confirmButton:r,defaultDisabled:a=!0,disableWhenInvalid:l,id:s="modal-confirm",maxButtonWidth:c="392px",mode:p,onSubmit:d,padding:g=!0,showButtons:x=!0,yupSchema:h,...b})=>{const w=f.useTheme(),$=y.useForm({...b,mode:p??"all",resolver:h?y.o(h):void 0});function C(k){k.stopPropagation(),$.handleSubmit(d)(k)}const v=x?`calc(100% - ${e?"139px":"83px"})`:"100%",j=g?1.5:0;return t.jsx(y.FormProvider,{...$,children:t.jsx(Jr,{onSubmit:C,children:t.jsxs(m,{scroll:"y",width:"100%",children:[t.jsx(m,{borderRadius:`0 0 ${w.spacing[.25]} ${w.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:v,pb:j,pt:0,px:j,scroll:"y",children:i}),x&&t.jsxs(m,{borderRadius:`0 0 ${w.spacing[.25]} ${w.spacing[.25]}`,borderTop:`1px solid ${w.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(m,{display:"flex",gap:.75,maxWidth:c,children:[o?t.jsx(M,{icon:o.icon,id:`${s}-cancel`,justify:"center",onClick:o.onClick,type:"reset",variant:"tertiary",width:"100%",children:o.label??"Cancel"}):void 0,t.jsx(M,{disabled:((r==null?void 0:r.disabled)??!1)||$.formState.isSubmitting||l===!0&&!$.formState.isValid||a&&!$.formState.isDirty,icon:r==null?void 0:r.icon,id:s,justify:"center",type:"submit",width:"100%",children:(r==null?void 0:r.label)??"Confirm"})]})]})]})})})},ea=f.styled(ze)`
2149
2151
  display: grid;
2150
2152
  gap: ${({$gap:e=1.25})=>`${e}rem`};
2151
2153
  grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
2152
2154
 
2153
- ${({theme:e,$xl:n,$lg:o,$md:r})=>`
2155
+ ${({theme:e,$xl:n,$lg:o,$md:i})=>`
2154
2156
  @media (width >= ${e.breakpoints.sm}) {
2155
- grid-template-columns: repeat(${r}, 1fr);
2157
+ grid-template-columns: repeat(${i}, 1fr);
2156
2158
  }
2157
2159
 
2158
2160
  @media (width >= ${e.breakpoints.md}) {
@@ -2163,7 +2165,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2163
2165
  grid-template-columns: repeat(${n}, 1fr);
2164
2166
  }
2165
2167
  `}
2166
- `,ea=u.forwardRef(function({children:n,md:o,sm:r,lg:i,xl:a,gap:l,...s},c){return t.jsx(Qi,{$gap:l,$lg:i,$md:o,$sm:r,$xl:a,ref:c,...s,children:n})}),ta=f.styled.div`
2168
+ `,ta=u.forwardRef(function({children:n,md:o,sm:i,lg:r,xl:a,gap:l,...s},c){return t.jsx(ea,{$gap:l,$lg:r,$md:o,$sm:i,$xl:a,ref:c,...s,children:n})}),na=f.styled.div`
2167
2169
  ${({theme:e,$itemsLength:n})=>`
2168
2170
  display: flex;
2169
2171
  background-color: ${e.palette.white};
@@ -2199,7 +2201,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2199
2201
  background-color: ${e.palette.gray[100]};
2200
2202
  }
2201
2203
  `}
2202
- `,jn=({isSelected:e=!1,label:n,onSelect:o})=>{const r=f.useTheme(),i=u.useCallback(()=>{o&&o(n)},[o,n]);return t.jsxs(xt,{$isSelected:e,onClick:i,children:[e?t.jsx(D,{icon:"check",iconColor:r.palette.gray[800],iconSize:"lg"}):null,t.jsx(R,{color:r.palette.gray[800],fontWeight:"bold",size:"md",children:n})]})},na=({isOpen:e=!0,items:n,handleNewOrganization:o,onSelect:r,onClose:i,selectedItem:a,title:l,variant:s})=>{const c=f.useTheme(),[p,d]=u.useState(n),[g,x]=u.useState(""),h=u.useCallback($=>{d(S=>S.filter(C=>String(C.name).toLowerCase().includes($.toLocaleLowerCase())))},[d]),b=u.useCallback($=>{$.currentTarget&&(x($.currentTarget.value),h($.currentTarget.value))},[x,h]);u.useEffect(()=>{d(n),h(g)},[n,h,g]);const w=t.jsx(m,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(m,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(ta,{$itemsLength:p.length,children:[t.jsxs(m,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(R,{color:c.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(H,{icon:"xmark",iconColor:c.palette.gray[400],iconSize:"lg",iconType:"fa-light",onClick:i,variant:"ghost"})]}),t.jsx(m,{mt:1,children:t.jsx(se,{onInput:b,placeholder:"Search"})}),t.jsx(ae,{mb:1,mt:1}),t.jsxs(m,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[s==="organization-selector"?t.jsx(xt,{onClick:o,children:t.jsxs(m,{alignItems:"center",display:"flex",children:[t.jsx(D,{icon:"square-plus",iconColor:c.palette.gray[400],iconSize:"lg",iconType:"fa-light",mr:.5}),t.jsx(R,{color:c.palette.gray[400],size:"md",children:"New organization"})]})}):void 0,p.map($=>t.jsx(jn,{isSelected:a.toLowerCase()===$.name,label:$.name.charAt(0).toUpperCase()+$.name.slice(1),onSelect:r},$.name))]})]})})});return e?le.createPortal(w,document.body):t.jsx("div",{})},oa=({actions:e,children:n,header:o,title:r,tabs:i,footer:a})=>{const l=f.useTheme();return t.jsxs(m,{alignItems:"flex-start",bgColor:l.palette.white,borderLeft:`1px solid ${l.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs(m,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs(m,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(R,{color:l.palette.gray[800],fontWeight:"bold",size:"lg",children:r}),o]}),e&&t.jsx(m,{display:"flex",gap:.25,children:e.map(({icon:s,onClick:c},p)=>t.jsx(H,{icon:s??"paper-plane",iconColor:l.palette.gray[400],iconSize:"sm",iconType:"fa-light",onClick:c,variant:"ghost"},`${p}-${s}`))})]}),t.jsx(m,{display:"flex",pt:.25,width:"100%",children:t.jsx(pt,{items:i})}),t.jsx(m,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),a&&t.jsx(m,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:a.map(({icon:s,text:c,onClick:p},d)=>t.jsx(M,{icon:s,onClick:p,variant:d===0?"primary":"tertiary",width:"100%",children:c},`${d}-${c}`))})]})},ra=f.styled.span`
2204
+ `,vn=({isSelected:e=!1,label:n,onSelect:o})=>{const i=f.useTheme(),r=u.useCallback(()=>{o&&o(n)},[o,n]);return t.jsxs(xt,{$isSelected:e,onClick:r,children:[e?t.jsx(D,{icon:"check",iconColor:i.palette.gray[800],iconSize:"lg"}):null,t.jsx(R,{color:i.palette.gray[800],fontWeight:"bold",size:"md",children:n})]})},oa=({isOpen:e=!0,items:n,handleNewOrganization:o,onSelect:i,onClose:r,selectedItem:a,title:l,variant:s})=>{const c=f.useTheme(),[p,d]=u.useState(n),[g,x]=u.useState(""),h=u.useCallback($=>{d(C=>C.filter(S=>String(S.name).toLowerCase().includes($.toLocaleLowerCase())))},[d]),b=u.useCallback($=>{$.currentTarget&&(x($.currentTarget.value),h($.currentTarget.value))},[x,h]);u.useEffect(()=>{d(n),h(g)},[n,h,g]);const w=t.jsx(m,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(m,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(na,{$itemsLength:p.length,children:[t.jsxs(m,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(R,{color:c.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(H,{icon:"xmark",iconColor:c.palette.gray[400],iconSize:"lg",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx(m,{mt:1,children:t.jsx(se,{onInput:b,placeholder:"Search"})}),t.jsx(ae,{mb:1,mt:1}),t.jsxs(m,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[s==="organization-selector"?t.jsx(xt,{onClick:o,children:t.jsxs(m,{alignItems:"center",display:"flex",children:[t.jsx(D,{icon:"square-plus",iconColor:c.palette.gray[400],iconSize:"lg",iconType:"fa-light",mr:.5}),t.jsx(R,{color:c.palette.gray[400],size:"md",children:"New organization"})]})}):void 0,p.map($=>t.jsx(vn,{isSelected:a.toLowerCase()===$.name,label:$.name.charAt(0).toUpperCase()+$.name.slice(1),onSelect:i},$.name))]})]})})});return e?le.createPortal(w,document.body):t.jsx("div",{})},ia=({actions:e,children:n,header:o,title:i,tabs:r,footer:a})=>{const l=f.useTheme();return t.jsxs(m,{alignItems:"flex-start",bgColor:l.palette.white,borderLeft:`1px solid ${l.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs(m,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs(m,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(R,{color:l.palette.gray[800],fontWeight:"bold",size:"lg",children:i}),o]}),e&&t.jsx(m,{display:"flex",gap:.25,children:e.map(({icon:s,onClick:c},p)=>t.jsx(H,{icon:s??"paper-plane",iconColor:l.palette.gray[400],iconSize:"sm",iconType:"fa-light",onClick:c,variant:"ghost"},`${p}-${s}`))})]}),t.jsx(m,{display:"flex",pt:.25,width:"100%",children:t.jsx(pt,{items:r})}),t.jsx(m,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),a&&t.jsx(m,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:a.map(({icon:s,text:c,onClick:p},d)=>t.jsx(M,{icon:s,onClick:p,variant:d===0?"primary":"tertiary",width:"100%",children:c},`${d}-${c}`))})]})},ra=f.styled.span`
2203
2205
  ${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:o="none"})=>`
2204
2206
  background-color: ${n};
2205
2207
  border-radius: 5px;
@@ -2208,14 +2210,14 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2208
2210
  padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
2209
2211
  text-decoration: ${o}
2210
2212
  `}
2211
- `,ia=({bgColor:e,children:n,txtDecoration:o,ml:r=1})=>t.jsx(ra,{$bgColor:e,$txtDecoration:o,className:`ml-${r}`,children:n}),aa={lg:"56",md:"30",sm:"12"},{getVariant:sa}=Q(e=>({blue:`stroke: ${e.palette.info[500]};`,red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),la=f.keyframes`
2213
+ `,aa=({bgColor:e,children:n,txtDecoration:o,ml:i=1})=>t.jsx(ra,{$bgColor:e,$txtDecoration:o,className:`ml-${i}`,children:n}),sa={lg:"56",md:"30",sm:"12"},{getVariant:la}=ee(e=>({blue:`stroke: ${e.palette.info[500]};`,red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),ca=f.keyframes`
2212
2214
  0% {
2213
2215
  transform: rotateZ(0deg);
2214
2216
  }
2215
2217
  100% {
2216
2218
  transform: rotateZ(360deg)
2217
2219
  }
2218
- `,ca=f.keyframes`
2220
+ `,da=f.keyframes`
2219
2221
  0%,
2220
2222
  25% {
2221
2223
  stroke-dashoffset: 280;
@@ -2232,16 +2234,16 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2232
2234
  stroke-dashoffset: 280;
2233
2235
  transform: rotate(360deg);
2234
2236
  }
2235
- `,da=f.styled.svg`
2237
+ `,pa=f.styled.svg`
2236
2238
  ${({$size:e="md"})=>f.css`
2237
- animation: ${la} 2s linear infinite;
2239
+ animation: ${ca} 2s linear infinite;
2238
2240
  animation-timing-function: linear;
2239
2241
  display: inline-block;
2240
- width: ${aa[e]}px;
2242
+ width: ${sa[e]}px;
2241
2243
  `}
2242
- `,pa=f.styled.circle`
2244
+ `,ga=f.styled.circle`
2243
2245
  ${({theme:e,$color:n="red"})=>f.css`
2244
- animation: 1.4s ease-in-out infinite both ${ca};
2246
+ animation: 1.4s ease-in-out infinite both ${da};
2245
2247
  display: block;
2246
2248
  fill: transparent;
2247
2249
  stroke-linecap: round;
@@ -2250,9 +2252,9 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2250
2252
  stroke-width: 10px;
2251
2253
  transform-origin: 50% 50%;
2252
2254
 
2253
- ${sa(e,n)}
2255
+ ${la(e,n)}
2254
2256
  `}
2255
- `,ga=f.styled.circle`
2257
+ `,ua=f.styled.circle`
2256
2258
  display: block;
2257
2259
  fill: transparent;
2258
2260
  stroke: ${({theme:e})=>e.palette.gray[200]};
@@ -2260,12 +2262,12 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2260
2262
  stroke-width: 10px;
2261
2263
  transform-origin: 50% 50%;
2262
2264
  opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
2263
- `,kn=({color:e="red",label:n,size:o})=>{const r=f.useTheme();return t.jsxs(m,{alignItems:"center",display:"flex",children:[t.jsxs(da,{$size:o,viewBox:"0 0 100 100",children:[t.jsx(ga,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(pa,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(R,{color:e==="red"||e==="blue"?r.palette.gray[700]:r.palette.white,ml:.5,size:"md",children:n})]})},ua={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},xa=({publicId:e,variant:n})=>t.jsx(m,{...ua[n],children:t.jsx(re,{alt:"logo",publicId:e})}),ha=f.styled(y.Lottie).attrs(({autoplay:e=!0})=>({autoplay:e,className:"comp-lottie"}))`
2265
+ `,kn=({color:e="red",label:n,size:o})=>{const i=f.useTheme();return t.jsxs(m,{alignItems:"center",display:"flex",children:[t.jsxs(pa,{$size:o,viewBox:"0 0 100 100",children:[t.jsx(ua,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(ga,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(R,{color:e==="red"||e==="blue"?i.palette.gray[700]:i.palette.white,ml:.5,size:"md",children:n})]})},xa={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},ha=({publicId:e,variant:n})=>t.jsx(m,{...xa[n],children:t.jsx(ie,{alt:"logo",publicId:e})}),fa=f.styled(y.Lottie).attrs(({autoplay:e=!0})=>({autoplay:e,className:"comp-lottie"}))`
2264
2266
  ${({$size:e=16})=>`
2265
2267
  height: ${e}px;
2266
2268
  width: ${e}px;
2267
2269
  `}
2268
- `,fa=e=>{const{size:n}=e;return t.jsx(ha,{$size:n,...e})},ya=({children:e,commitSha:n,commitShortSha:o,parentElement:r,userInfo:i,setVisibility:a})=>{const l=f.useTheme(),{userName:s,email:c,phone:p,userRole:d}=i;return ne(r,()=>{a(!1)}),t.jsxs(un,{children:[t.jsx("li",{className:"user-info",children:t.jsxs(m,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs(m,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(R,{color:l.palette.gray[800],fontWeight:"bold",size:"md",children:s}),t.jsx(R,{color:l.palette.gray[400],size:"md",children:c}),y.lodashExports.isUndefined(p)?void 0:t.jsx(R,{color:l.palette.gray[400],size:"md",children:p})]}),t.jsx(m,{children:t.jsx(X,{tagLabel:d,variant:"role"})})]})}),t.jsx(ae,{}),e,t.jsx(ae,{}),t.jsx("li",{className:"commit-info",children:t.jsx(te,{href:`https://github.com/fluidattacks/universe/tree/${n}`,iconPosition:"hidden",children:t.jsx(R,{color:l.palette.gray[400],size:"sm",children:`commit : ${o}`})})})]})},ba=f.styled.button`
2270
+ `,ya=e=>{const{size:n}=e;return t.jsx(fa,{$size:n,...e})},ba=({children:e,commitSha:n,commitShortSha:o,parentElement:i,userInfo:r,setVisibility:a})=>{const l=f.useTheme(),{userName:s,email:c,phone:p,userRole:d}=r;return ne(i,()=>{a(!1)}),t.jsxs(un,{children:[t.jsx("li",{className:"user-info",children:t.jsxs(m,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs(m,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(R,{color:l.palette.gray[800],fontWeight:"bold",size:"md",children:s}),t.jsx(R,{color:l.palette.gray[400],size:"md",children:c}),y.lodashExports.isUndefined(p)?void 0:t.jsx(R,{color:l.palette.gray[400],size:"md",children:p})]}),t.jsx(m,{children:t.jsx(J,{tagLabel:d,variant:"role"})})]})}),t.jsx(ae,{}),e,t.jsx(ae,{}),t.jsx("li",{className:"commit-info",children:t.jsx(te,{href:`https://github.com/fluidattacks/universe/tree/${n}`,iconPosition:"hidden",children:t.jsx(R,{color:l.palette.gray[400],size:"sm",children:`commit : ${o}`})})})]})},$a=f.styled.button`
2269
2271
  align-items: center;
2270
2272
  background-color: transparent;
2271
2273
  border: unset;
@@ -2282,7 +2284,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2282
2284
  &:hover span {
2283
2285
  color: ${N.palette.primary[200]};
2284
2286
  }
2285
- `,$a=({message:e,onClickButton:n,buttonText:o,buttonFontWeight:r="regular",show:i=!0,icon:a,onClose:l,buttonSide:s="end"})=>{const c=f.useTheme(),[p,d]=u.useState(i),g=u.useCallback(()=>{d(!1),l==null||l()},[l]);u.useEffect(()=>{d(i)},[i,d]);const x=t.jsxs(ba,{onClick:n,children:[t.jsx(R,{color:c.palette.white,fontWeight:r,size:"md",textDecoration:"underline",children:o}),t.jsx(D,{icon:a??"arrow-right",iconColor:c.palette.white,iconSize:"lg",iconType:r==="bold"?"fa-regular":"fa-light"})]});return t.jsxs(m,{alignItems:"center",bgGradient:"linear-gradient(45deg, #f32637 0%, #b8075d 100%)",display:p?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs(m,{display:"flex",gap:.5,justify:"center",width:"100%",children:[s==="start"&&n?x:void 0,t.jsx(m,{children:typeof e=="string"?t.jsx(R,{color:c.palette.white,display:"inline",size:"md",children:e}):e}),s==="end"&&n?x:void 0]}),t.jsx(D,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"lg",iconType:"fa-light",onClick:g})]})},ma=f.styled.div`
2287
+ `,ma=({message:e,onClickButton:n,buttonText:o,buttonFontWeight:i="regular",show:r=!0,icon:a,onClose:l,buttonSide:s="end"})=>{const c=f.useTheme(),[p,d]=u.useState(r),g=u.useCallback(()=>{d(!1),l==null||l()},[l]);u.useEffect(()=>{d(r)},[r,d]);const x=t.jsxs($a,{onClick:n,children:[t.jsx(R,{color:c.palette.white,fontWeight:i,size:"md",textDecoration:"underline",children:o}),t.jsx(D,{icon:a??"arrow-right",iconColor:c.palette.white,iconSize:"lg",iconType:i==="bold"?"fa-regular":"fa-light"})]});return t.jsxs(m,{alignItems:"center",bgGradient:"linear-gradient(45deg, #f32637 0%, #b8075d 100%)",display:p?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs(m,{display:"flex",gap:.5,justify:"center",width:"100%",children:[s==="start"&&n?x:void 0,t.jsx(m,{children:typeof e=="string"?t.jsx(R,{color:c.palette.white,display:"inline",size:"md",children:e}):e}),s==="end"&&n?x:void 0]}),t.jsx(D,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"lg",iconType:"fa-light",onClick:g})]})},wa=f.styled.div`
2286
2288
  ${({theme:e,$variant:n})=>`
2287
2289
  background: ${e.palette.white};
2288
2290
  border: 1px solid ${e.palette.gray[200]};
@@ -2301,7 +2303,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2301
2303
  right: 16px;
2302
2304
  }
2303
2305
  `}
2304
- `,wa=f.styled(ee)`
2306
+ `,ja=f.styled(X)`
2305
2307
  font-size: ${({theme:e})=>e.typography.text.md};
2306
2308
  `,va=f.styled.div`
2307
2309
  ${({theme:e,$variant:n})=>`
@@ -2334,7 +2336,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2334
2336
  color: ${e.palette[n][500]};
2335
2337
  }
2336
2338
  `}
2337
- `,ja=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",ka=({description:e,onClose:n,title:o,variant:r})=>{const i=f.useTheme(),a=u.useCallback(()=>{n==null||n()},[n]);return t.jsxs(ma,{$variant:r,className:`notification notification__${r}`,role:"alertdialog",children:[t.jsxs(va,{$variant:r,children:[t.jsx(D,{icon:"circle",iconClass:"ellipse-1",iconSize:"lg"}),t.jsx(D,{icon:"circle",iconClass:"ellipse-2",iconSize:"lg"}),t.jsx(D,{icon:ja(r),iconClass:"icon",iconSize:"lg",iconType:"fa-light"})]}),t.jsxs(m,{pr:1.5,children:[t.jsx(wa,{fontWeight:"bold",size:"xs",children:o}),t.jsx(R,{size:"md",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(H,{height:"fit-content",icon:"close",iconColor:i.palette.gray[400],iconSize:"lg",iconType:"fa-light",onClick:a,px:.125,py:.125,variant:"ghost"})]})},Ca={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Qe=({icon:e,label:n,onClick:o,onlyLabel:r=!1,provider:i="GitLab"})=>{const a=f.useTheme();return t.jsxs(m,{alignItems:"center",bgColorHover:a.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:o,pb:.5,pl:.25,pr:.25,pt:.5,children:[r?!1:t.jsx(m,{height:"24px",width:"24px",children:e===void 0?t.jsx(re,{alt:`${i} Logo`,height:"100%",publicId:Ca[i],width:"100%"}):t.jsx(D,{icon:e,iconColor:"#000",iconSize:"xl",iconType:"fa-light"})}),t.jsx(m,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(R,{color:a.palette.gray[800],display:"inline",size:"sm",textAlign:"center",whiteSpace:r?"break-spaces":"nowrap",wordWrap:"unset",children:n??i})})]})},Sa=({align:e="end",buttonLabel:n="Add Credential",children:o,id:r,manualOption:i,providers:a})=>{const l=f.useTheme(),[s,c]=u.useState(!1),p=u.useRef(null);ne(p.current,()=>{c(!1)},!0);const d=u.useCallback(h=>{i==null||i.onClick(h),c(!1)},[i]),g=u.useCallback(()=>{c(h=>!h)},[c]),x=u.useCallback(h=>b=>{var w;(w=a[h])==null||w.onClick(b),c(!1)},[a]);return t.jsxs(m,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(M,{icon:"plus",onClick:g,variant:"primary",children:n}),t.jsxs(m,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:r,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:s?"visible":"hidden",zIndex:10,children:[Object.keys(a).map(h=>t.jsx(Qe,{onClick:x(h),provider:h},h)),i===void 0?void 0:t.jsx(Qe,{icon:"square-plus",label:i.label??"Add manually",onClick:d}),o]})]})},za=f.styled.div`
2339
+ `,ka=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Ca=({description:e,onClose:n,title:o,variant:i})=>{const r=f.useTheme(),a=u.useCallback(()=>{n==null||n()},[n]);return t.jsxs(wa,{$variant:i,className:`notification notification__${i}`,role:"alertdialog",children:[t.jsxs(va,{$variant:i,children:[t.jsx(D,{icon:"circle",iconClass:"ellipse-1",iconSize:"lg"}),t.jsx(D,{icon:"circle",iconClass:"ellipse-2",iconSize:"lg"}),t.jsx(D,{icon:ka(i),iconClass:"icon",iconSize:"lg",iconType:"fa-light"})]}),t.jsxs(m,{pr:1.5,children:[t.jsx(ja,{fontWeight:"bold",size:"xs",children:o}),t.jsx(R,{size:"md",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(H,{height:"fit-content",icon:"close",iconColor:r.palette.gray[400],iconSize:"lg",iconType:"fa-light",onClick:a,px:.125,py:.125,variant:"ghost"})]})},Sa={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Qe=({icon:e,label:n,onClick:o,onlyLabel:i=!1,provider:r="GitLab"})=>{const a=f.useTheme();return t.jsxs(m,{alignItems:"center",bgColorHover:a.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:o,pb:.5,pl:.25,pr:.25,pt:.5,children:[i?!1:t.jsx(m,{height:"24px",width:"24px",children:e===void 0?t.jsx(ie,{alt:`${r} Logo`,height:"100%",publicId:Sa[r],width:"100%"}):t.jsx(D,{icon:e,iconColor:"#000",iconSize:"xl",iconType:"fa-light"})}),t.jsx(m,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(R,{color:a.palette.gray[800],display:"inline",size:"sm",textAlign:"center",whiteSpace:i?"break-spaces":"nowrap",wordWrap:"unset",children:n??r})})]})},za=({align:e="end",buttonLabel:n="Add Credential",children:o,id:i,manualOption:r,providers:a})=>{const l=f.useTheme(),[s,c]=u.useState(!1),p=u.useRef(null);ne(p.current,()=>{c(!1)},!0);const d=u.useCallback(h=>{r==null||r.onClick(h),c(!1)},[r]),g=u.useCallback(()=>{c(h=>!h)},[c]),x=u.useCallback(h=>b=>{var w;(w=a[h])==null||w.onClick(b),c(!1)},[a]);return t.jsxs(m,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(M,{icon:"plus",onClick:g,variant:"primary",children:n}),t.jsxs(m,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:i,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:s?"visible":"hidden",zIndex:10,children:[Object.keys(a).map(h=>t.jsx(Qe,{onClick:x(h),provider:h},h)),r===void 0?void 0:t.jsx(Qe,{icon:"square-plus",label:r.label??"Add manually",onClick:d}),o]})]})},Ta=f.styled.div`
2338
2340
  ${({theme:e})=>`
2339
2341
  height: ${e.spacing[1]};
2340
2342
  width: ${e.spacing[1]};
@@ -2365,7 +2367,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2365
2367
  font-size: ${e.spacing[.5]};
2366
2368
  }
2367
2369
  `}
2368
- `,Cn=({margin:e,onClick:n,text:o})=>{const r=f.useTheme(),i=t.jsxs(za,{children:[t.jsx(D,{icon:"circle",iconClass:"ellipse-1",iconSize:"lg"}),t.jsx(D,{icon:"circle",iconClass:"ellipse-2",iconSize:"lg"}),t.jsx(D,{icon:"crown",iconClass:"icon",iconSize:"lg"})]});return o!==void 0?t.jsx(m,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:t.jsxs(m,{alignItems:"center",bgColor:r.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[i,t.jsx(R,{color:r.palette.warning[500],display:"inline",ml:.25,size:"sm",children:o})]})}):t.jsx(m,{display:"inline-block",mr:e,onClick:n,children:i})},Ta=({score:e})=>{const n=f.useTheme(),o=e<=33?"priority-bars-low":"priority-bars-medium",r=e>66||e===0?"priority-bars-high":o;return t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(D,{icon:r,iconClass:e<=66?"fa-kit-duotone":"",iconColor:e>0?n.palette.primary[500]:n.palette.gray[200],iconSize:"lg",iconType:"fa-kit",secondaryColor:n.palette.gray[200]}),t.jsx(R,{color:n.palette.gray[800],size:"md",textAlign:"right",children:e+"%"})]})},{getVariant:Ia}=Q(e=>({compliance:`
2370
+ `,Cn=({margin:e,onClick:n,text:o})=>{const i=f.useTheme(),r=t.jsxs(Ta,{children:[t.jsx(D,{icon:"circle",iconClass:"ellipse-1",iconSize:"lg"}),t.jsx(D,{icon:"circle",iconClass:"ellipse-2",iconSize:"lg"}),t.jsx(D,{icon:"crown",iconClass:"icon",iconSize:"lg"})]});return o!==void 0?t.jsx(m,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:t.jsxs(m,{alignItems:"center",bgColor:i.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[r,t.jsx(R,{color:i.palette.warning[500],display:"inline",ml:.25,size:"sm",children:o})]})}):t.jsx(m,{display:"inline-block",mr:e,onClick:n,children:r})},Ia=({score:e})=>{const n=f.useTheme(),o=e<=33?"priority-bars-low":"priority-bars-medium",i=e>66||e===0?"priority-bars-high":o;return t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(D,{icon:i,iconClass:e<=66?"fa-kit-duotone":"",iconColor:e>0?n.palette.primary[500]:n.palette.gray[200],iconSize:"lg",iconType:"fa-kit",secondaryColor:n.palette.gray[200]}),t.jsx(R,{color:n.palette.gray[800],size:"md",textAlign:"right",children:e+"%"})]})},{getVariant:Ea}=ee(e=>({compliance:`
2369
2371
  display: inline-flex;
2370
2372
 
2371
2373
  &.horizontal {
@@ -2423,18 +2425,18 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2423
2425
  .progress-bar {
2424
2426
  background-color: ${e.palette.primary[500]};
2425
2427
  }
2426
- `})),Ea=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],Ra=f.styled.div`
2427
- ${({theme:e,$minWidth:n,$orientation:o,$rounded:r,$variant:i})=>`
2428
+ `})),Ra=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],Da=f.styled.div`
2429
+ ${({theme:e,$minWidth:n,$orientation:o,$rounded:i,$variant:r})=>`
2428
2430
  background-color: ${e.palette.gray[100]};
2429
- border-radius: ${r?"100px":"unset"};
2431
+ border-radius: ${i?"100px":"unset"};
2430
2432
  ${o==="horizontal"?"min-width":"min-height"}: ${n}px;
2431
2433
  ${o==="horizontal"?"":"height: 100%;"}
2432
2434
 
2433
- ${Ia(e,i)}
2435
+ ${Ea(e,r)}
2434
2436
 
2435
2437
  `}
2436
- `,Da=f.styled.div`
2437
- ${({theme:e,$percentage:n,$rounded:o,$variant:r})=>`
2438
+ `,Fa=f.styled.div`
2439
+ ${({theme:e,$percentage:n,$rounded:o,$variant:i})=>`
2438
2440
  display: inline-flex;
2439
2441
  width: ${n}%;
2440
2442
  max-width: 100%;
@@ -2443,14 +2445,14 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2443
2445
  border-radius: ${o?"100px":"unset"};
2444
2446
  border-end-end-radius: ${o&&n<100?"0":"inherit"};
2445
2447
  border-start-end-radius: ${o&&n<100?"0":"inherit"};
2446
- background-color: ${r==="compliance"?Ea(e,n):"inherit"};
2448
+ background-color: ${i==="compliance"?Ra(e,n):"inherit"};
2447
2449
  `}
2448
- `,Sn=({minWidth:e=100,percentage:n,percentageLocation:o="right",showPercentage:r=!1,orientation:i="horizontal",rounded:a=!0,variant:l="default"})=>{const s=r&&o==="left",c=r?t.jsx(m,{alignItems:"center",display:"flex",justify:s?"flex-end":"flex-start",width:"40px",children:t.jsx(R,{ml:.5,mr:s?.5:0,size:"md",children:`${n}%`})}):null,p=t.jsx(Ra,{$minWidth:e,$orientation:i,$rounded:a,$variant:l,className:i,children:t.jsx(Da,{$percentage:n,$rounded:a,$variant:l,className:"progress-bar"})});return t.jsxs(m,{alignItems:"center",display:"inline-flex",flexDirection:s?"row-reverse":"row",height:i==="horizontal"?"auto":"100%",maxWidth:s?`${e+43}px`:void 0,minWidth:s?`${e+43}px`:void 0,textAlign:"end",children:[p,c]})},zn=({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"})]})}),Tn=(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]}},Fa=f.styled(D)`
2450
+ `,Sn=({minWidth:e=100,percentage:n,percentageLocation:o="right",showPercentage:i=!1,orientation:r="horizontal",rounded:a=!0,variant:l="default"})=>{const s=i&&o==="left",c=i?t.jsx(m,{alignItems:"center",display:"flex",justify:s?"flex-end":"flex-start",width:"40px",children:t.jsx(R,{ml:.5,mr:s?.5:0,size:"md",children:`${n}%`})}):null,p=t.jsx(Da,{$minWidth:e,$orientation:r,$rounded:a,$variant:l,className:r,children:t.jsx(Fa,{$percentage:n,$rounded:a,$variant:l,className:"progress-bar"})});return t.jsxs(m,{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,c]})},zn=({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"})]})}),Tn=(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]}},Na=f.styled(D)`
2449
2451
  box-sizing: border-box;
2450
2452
 
2451
2453
  border-right: ${({theme:e,$variant:n})=>n==="in progress"?`1px dashed ${Tn("in progress",e)}`:"unset"};
2452
2454
  border-radius: 50%;
2453
- `,Na=f.styled.div`
2455
+ `,La=f.styled.div`
2454
2456
  ${({$minWidth:e,$orientation:n})=>`
2455
2457
  display: flex;
2456
2458
  flex-direction: ${n==="horizontal"?"row":"column"};
@@ -2460,13 +2462,13 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2460
2462
  flex-flow: row wrap;
2461
2463
  }
2462
2464
  `}
2463
- `,La=150,Aa=({label:e,minWidth:n=La,state:o="not completed",stepNumber:r=1,title:i,onClick:a,orientation:l="horizontal"})=>{const s=f.useTheme(),c={completed:"circle-check",disabled:"circle-dashed",error:"circle-exclamation","in progress":"circle-half","not completed":"circle-dashed"},p=o==="disabled";return t.jsxs(m,{display:"inline-flex",flexDirection:l==="horizontal"?"column":"row",minWidth:`${n}px`,children:[t.jsx(Sn,{minWidth:n,orientation:l,percentage:p||o==="not completed"?0:100,rounded:!1,variant:o==="error"?"progressIndicatorError":"progressIndicator"}),t.jsxs(m,{display:"flex",gap:.5,px:.5,py:.5,width:"100%",children:[o==="in progress"?t.jsx(zn,{onClick:a}):t.jsx(Fa,{$variant:o,clickable:!p,disabled:p,icon:c[o],iconColor:Tn(o,s),iconSize:"lg",iconType:"fa-light",onClick:p?void 0:a}),t.jsxs(m,{children:[t.jsx(R,{color:s.palette.gray[p?300:800],fontWeight:"bold",size:"md",children:`${r}.${i}`}),e===void 0?null:t.jsx(R,{color:s.palette.gray[p?300:600],size:"sm",children:e})]})]})]})},Pa=150,Oa=({children:e,orientation:n="horizontal",minWidth:o=Pa})=>{const r=u.Children.toArray(e),i=u.useMemo(()=>u.Children.count(e),[e]),a=u.useMemo(()=>i*o,[i,o]);return t.jsx(Na,{$minWidth:`${a}px`,$orientation:n,children:r.map(l=>u.cloneElement(l,{minWidth:o,orientation:n}))})},In=({description:e="",highlightDescription:n="",mobile:o})=>{const r=f.useTheme(),i=o?"md":"lg",a=typeof n=="string",l=a?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(R,{display:"inline",lineSpacing:1.5,size:i,textAlign:o?"start":"center",children:a?t.jsxs(u.Fragment,{children:[t.jsx(he,{color:r.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:i,children:n}),e]}):e.split(l).map((s,c)=>n.includes(s)?t.jsx(he,{color:r.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:i,children:s},`${c+1}-bold`):s)}):t.jsx(R,{lineSpacing:1.5,size:i,textAlign:o?"start":"center",children:e})},Ma=({_portal:e=!1,cancelButton:n,darkBackground:o=!1,children:r,confirmButton:i,container:a,description:l,highlightDescription:s="",image:c,maxWidth:p,mobile:d=!1,title:g,titleColor:x})=>{const h=f.useTheme(),{alt:b,src:w,width:$="77px",height:S="77px"}=c,C=u.useCallback(()=>{n==null||n.onClick()},[n]),j=u.useCallback(()=>{i==null||i.onClick()},[i]),v=t.jsx(ee,{color:x,fontWeight:"bold",lineSpacing:d?1.5:2.5,mb:d?1.5:0,size:d?"sm":"md",textAlign:d?"start":"center",children:g}),k=t.jsx(re,{alt:b,height:S,publicId:w,width:$}),z=t.jsx(m,{alignItems:"center","aria-label":g,"aria-modal":"true",bgColor:o?"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(m,{bgColor:h.palette.white,border:`1px solid ${h.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:p,position:"relative",px:d?1.5:2.5,py:d?1.5:2.5,shadow:"lg",width:d?"335px":"100%",zIndex:11,children:[t.jsxs(m,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[d?v:void 0,d?t.jsx(m,{alignItems:"center",height:S,justify:"center",mr:0,children:t.jsx(m,{bgColor:h.palette.gray[100],left:"0",position:"absolute",textAlign:"center",width:"100%",children:k})}):k,t.jsxs(m,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[d?void 0:v,t.jsx(In,{description:l,highlightDescription:s,mobile:d})]})]}),r&&t.jsx(m,{mb:1,scroll:"y",children:t.jsx(m,{height:"100%",children:r})}),t.jsxs(m,{alignItems:"flex-start",display:"flex",gap:1,justify:d?"start":"center",children:[y.lodashExports.isObject(i)?t.jsx(M,{onClick:j,variant:(i==null?void 0:i.variant)??"primary",children:i==null?void 0:i.text},i==null?void 0:i.key):void 0,y.lodashExports.isObject(n)?t.jsx(M,{onClick:C,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?le.createPortal(z,a??document.body):z},Wa=f.styled.div.attrs({className:"comp-scroll-up"})`
2465
+ `,Aa=150,Pa=({label:e,minWidth:n=Aa,state:o="not completed",stepNumber:i=1,title:r,onClick:a,orientation:l="horizontal"})=>{const s=f.useTheme(),c={completed:"circle-check",disabled:"circle-dashed",error:"circle-exclamation","in progress":"circle-half","not completed":"circle-dashed"},p=o==="disabled";return t.jsxs(m,{display:"inline-flex",flexDirection:l==="horizontal"?"column":"row",minWidth:`${n}px`,children:[t.jsx(Sn,{minWidth:n,orientation:l,percentage:p||o==="not completed"?0:100,rounded:!1,variant:o==="error"?"progressIndicatorError":"progressIndicator"}),t.jsxs(m,{display:"flex",gap:.5,px:.5,py:.5,width:"100%",children:[o==="in progress"?t.jsx(zn,{onClick:a}):t.jsx(Na,{$variant:o,clickable:!p,disabled:p,icon:c[o],iconColor:Tn(o,s),iconSize:"lg",iconType:"fa-light",onClick:p?void 0:a}),t.jsxs(m,{children:[t.jsx(R,{color:s.palette.gray[p?300:800],fontWeight:"bold",size:"md",children:`${i}.${r}`}),e===void 0?null:t.jsx(R,{color:s.palette.gray[p?300:600],size:"sm",children:e})]})]})]})},Oa=150,Ma=({children:e,orientation:n="horizontal",minWidth:o=Oa})=>{const i=u.Children.toArray(e),r=u.useMemo(()=>u.Children.count(e),[e]),a=u.useMemo(()=>r*o,[r,o]);return t.jsx(La,{$minWidth:`${a}px`,$orientation:n,children:i.map(l=>u.cloneElement(l,{minWidth:o,orientation:n}))})},In=({description:e="",highlightDescription:n="",mobile:o})=>{const i=f.useTheme(),r=o?"md":"lg",a=typeof n=="string",l=a?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(R,{display:"inline",lineSpacing:1.5,size:r,textAlign:o?"start":"center",children:a?t.jsxs(u.Fragment,{children:[t.jsx(he,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:n}),e]}):e.split(l).map((s,c)=>n.includes(s)?t.jsx(he,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:r,children:s},`${c+1}-bold`):s)}):t.jsx(R,{lineSpacing:1.5,size:r,textAlign:o?"start":"center",children:e})},Wa=({_portal:e=!1,cancelButton:n,darkBackground:o=!1,children:i,confirmButton:r,container:a,description:l,highlightDescription:s="",image:c,maxWidth:p,mobile:d=!1,title:g,titleColor:x})=>{const h=f.useTheme(),{alt:b,src:w,width:$="77px",height:C="77px"}=c,S=u.useCallback(()=>{n==null||n.onClick()},[n]),v=u.useCallback(()=>{r==null||r.onClick()},[r]),j=t.jsx(X,{color:x,fontWeight:"bold",lineSpacing:d?1.5:2.5,mb:d?1.5:0,size:d?"sm":"md",textAlign:d?"start":"center",children:g}),k=t.jsx(ie,{alt:b,height:C,publicId:w,width:$}),z=t.jsx(m,{alignItems:"center","aria-label":g,"aria-modal":"true",bgColor:o?"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(m,{bgColor:h.palette.white,border:`1px solid ${h.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:p,position:"relative",px:d?1.5:2.5,py:d?1.5:2.5,shadow:"lg",width:d?"335px":"100%",zIndex:11,children:[t.jsxs(m,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[d?j:void 0,d?t.jsx(m,{alignItems:"center",height:C,justify:"center",mr:0,children:t.jsx(m,{bgColor:h.palette.gray[100],left:"0",position:"absolute",textAlign:"center",width:"100%",children:k})}):k,t.jsxs(m,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[d?void 0:j,t.jsx(In,{description:l,highlightDescription:s,mobile:d})]})]}),i&&t.jsx(m,{mb:1,scroll:"y",children:t.jsx(m,{height:"100%",children:i})}),t.jsxs(m,{alignItems:"flex-start",display:"flex",gap:1,justify:d?"start":"center",children:[y.lodashExports.isObject(r)?t.jsx(M,{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,y.lodashExports.isObject(n)?t.jsx(M,{onClick:S,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?le.createPortal(z,a??document.body):z},Ha=f.styled.div.attrs({className:"comp-scroll-up"})`
2464
2466
  position: fixed;
2465
2467
  bottom: ${({bottom:e})=>e??"unset"};
2466
2468
  right: ${({right:e})=>e??"unset"};
2467
2469
  z-index: ${({zIndex:e})=>e??"unset"};
2468
2470
  left: ${({left:e})=>e??"unset"};
2469
- `,Ha=({scrollerId:e="dashboard",left:n,visibleAt:o=500,bottom:r,right:i,zIndex:a=100})=>{const[l,s]=u.useState(!1),[c,p]=u.useState(null),d=f.useTheme();u.useEffect(()=>{p(document.getElementById(e)),c==null||c.addEventListener("scroll",()=>{s(c.scrollTop>o)})},[c,e,o]);const g=u.useCallback(()=>{c==null||c.scrollTo({behavior:"smooth",top:0})},[c]);return l?t.jsx(Wa,{bottom:r,left:n,right:i,zIndex:a,children:t.jsx(H,{borderRadius:"50%",height:"40px",icon:"arrow-up",iconSize:"xl",id:"scroll-up",onClick:g,style:{backgroundColor:d.palette.black,borderRadius:"50%",color:d.palette.white},width:"40px"})}):null},Ba={critical:{bgColor:N.palette.primary[700],colorL:N.palette.gray[800],colorR:N.palette.white},disable:{bgColor:N.palette.gray[200],colorL:N.palette.gray[400],colorR:N.palette.gray[400]},high:{bgColor:N.palette.error[500],colorL:N.palette.gray[800],colorR:N.palette.white},low:{bgColor:N.palette.warning[200],colorL:N.palette.gray[800],colorR:N.palette.gray[800]},medium:{bgColor:N.palette.warning[500],colorL:N.palette.gray[800],colorR:N.palette.gray[800]}},_a=({textL:e,textR:n,variant:o})=>{const r=f.useTheme(),{bgColor:i,colorL:a,colorR:l}=Ba[o];return t.jsxs(m,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(m,{alignItems:"center",bgColor:r.palette.white,border:`1px solid ${i}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(R,{color:a,size:"md",children:e})}):void 0,t.jsx(m,{alignItems:"center",bgColor:i,border:`1px solid ${i}`,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(R,{color:l,size:"md",children:n})})]})},Va=(e,n)=>{const o={critical:N.palette.primary[700],high:N.palette.error[500],low:N.palette.warning[200],medium:N.palette.warning[500],none:N.palette.gray[200]},r={disabled:N.palette.gray[400],enabled:N.palette.gray[800]},i={critical:N.palette.white,high:N.palette.white,low:N.palette.gray[800],medium:N.palette.gray[800],none:N.palette.gray[400]};return{iconColor:n<1?o.none:o[e],iconText:y.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?i.none:i[e],textColor:n<1?r.disabled:r.enabled}},xe=({variant:e,value:n})=>{const{iconColor:o,iconText:r,iconTextColor:i,textColor:a}=Va(e,n),l=y.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(K,{id:l,place:"top",tip:l,children:t.jsx(m,{alignItems:"center",bgColor:o,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(R,{color:i,size:"md",textAlign:"center",children:r})})}),t.jsx(R,{color:a,size:"md",children:n})]})},Ua=({critical:e,high:n,medium:o,low:r})=>t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(xe,{value:e,variant:"critical"}),t.jsx(xe,{value:n,variant:"high"}),t.jsx(xe,{value:o,variant:"medium"}),t.jsx(xe,{value:r,variant:"low"})]}),Ga=f.styled.div`
2471
+ `,Ba=({scrollerId:e="dashboard",left:n,visibleAt:o=500,bottom:i,right:r,zIndex:a=100})=>{const[l,s]=u.useState(!1),[c,p]=u.useState(null),d=f.useTheme();u.useEffect(()=>{p(document.getElementById(e)),c==null||c.addEventListener("scroll",()=>{s(c.scrollTop>o)})},[c,e,o]);const g=u.useCallback(()=>{c==null||c.scrollTo({behavior:"smooth",top:0})},[c]);return l?t.jsx(Ha,{bottom:i,left:n,right:r,zIndex:a,children:t.jsx(H,{borderRadius:"50%",height:"40px",icon:"arrow-up",iconSize:"xl",id:"scroll-up",onClick:g,style:{backgroundColor:d.palette.black,borderRadius:"50%",color:d.palette.white},width:"40px"})}):null},_a={critical:{bgColor:N.palette.primary[700],colorL:N.palette.gray[800],colorR:N.palette.white},disable:{bgColor:N.palette.gray[200],colorL:N.palette.gray[400],colorR:N.palette.gray[400]},high:{bgColor:N.palette.error[500],colorL:N.palette.gray[800],colorR:N.palette.white},low:{bgColor:N.palette.warning[200],colorL:N.palette.gray[800],colorR:N.palette.gray[800]},medium:{bgColor:N.palette.warning[500],colorL:N.palette.gray[800],colorR:N.palette.gray[800]}},Va=({textL:e,textR:n,variant:o})=>{const i=f.useTheme(),{bgColor:r,colorL:a,colorR:l}=_a[o];return t.jsxs(m,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(m,{alignItems:"center",bgColor:i.palette.white,border:`1px solid ${r}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(R,{color:a,size:"md",children:e})}):void 0,t.jsx(m,{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(R,{color:l,size:"md",children:n})})]})},Ua=(e,n)=>{const o={critical:N.palette.primary[700],high:N.palette.error[500],low:N.palette.warning[200],medium:N.palette.warning[500],none:N.palette.gray[200]},i={disabled:N.palette.gray[400],enabled:N.palette.gray[800]},r={critical:N.palette.white,high:N.palette.white,low:N.palette.gray[800],medium:N.palette.gray[800],none:N.palette.gray[400]};return{iconColor:n<1?o.none:o[e],iconText:y.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?r.none:r[e],textColor:n<1?i.disabled:i.enabled}},xe=({variant:e,value:n})=>{const{iconColor:o,iconText:i,iconTextColor:r,textColor:a}=Ua(e,n),l=y.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(K,{id:l,place:"top",tip:l,children:t.jsx(m,{alignItems:"center",bgColor:o,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(R,{color:r,size:"md",textAlign:"center",children:i})})}),t.jsx(R,{color:a,size:"md",children:n})]})},Ga=({critical:e,high:n,medium:o,low:i})=>t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(xe,{value:e,variant:"critical"}),t.jsx(xe,{value:n,variant:"high"}),t.jsx(xe,{value:o,variant:"medium"}),t.jsx(xe,{value:i,variant:"low"})]}),Ya=f.styled.div`
2470
2472
  ${({theme:e})=>`
2471
2473
  border-radius: ${e.spacing[.25]};
2472
2474
  cursor: pointer;
@@ -2484,7 +2486,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2484
2486
  display: block;
2485
2487
  }
2486
2488
  `}
2487
- `,Ya=({visibleElement:e,hiddenElement:n})=>t.jsxs(Ga,{children:[e,t.jsx(m,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),En=({customBadge:e=void 0,description:n,icon:o,onClick:r,requiresUpgrade:i=!1,title:a})=>{const l=f.useTheme();return t.jsxs(m,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:r,px:1.25,py:1,width:"100%",children:[t.jsx(m,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(D,{icon:o,iconColor:l.palette.gray[800],iconSize:"sm",ml:.5,mr:.5})}),t.jsxs(m,{children:[t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(R,{color:l.palette.gray[800],size:"md",children:a}),i?t.jsx(Cn,{text:"Upgrade"}):void 0,e]}),t.jsx(R,{color:l.palette.gray[400],size:"sm",children:n})]})]})},Ka=f.styled(y.m.div)`
2489
+ `,Ka=({visibleElement:e,hiddenElement:n})=>t.jsxs(Ya,{children:[e,t.jsx(m,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),En=({customBadge:e=void 0,description:n,icon:o,onClick:i,requiresUpgrade:r=!1,title:a})=>{const l=f.useTheme();return t.jsxs(m,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:i,px:1.25,py:1,width:"100%",children:[t.jsx(m,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(D,{icon:o,iconColor:l.palette.gray[800],iconSize:"sm",ml:.5,mr:.5})}),t.jsxs(m,{children:[t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(R,{color:l.palette.gray[800],size:"md",children:a}),r?t.jsx(Cn,{text:"Upgrade"}):void 0,e]}),t.jsx(R,{color:l.palette.gray[400],size:"sm",children:n})]})]})},qa=f.styled(y.m.div)`
2488
2490
  ${({theme:e})=>`
2489
2491
  background-color: ${e.palette.white};
2490
2492
  box-shadow: ${e.shadows.lg};
@@ -2507,7 +2509,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2507
2509
  height: auto;
2508
2510
  }
2509
2511
  `}
2510
- `,Za=({children:e,closeIconId:n="close-menu",isOpen:o,items:r,onClose:i,title:a})=>{const l=f.useTheme(),s=u.useRef(null),c=u.useCallback(p=>()=>{p(),i()},[i]);return u.useEffect(()=>{const p=["mousedown","touchstart"],d=g=>{var $;const x=g.target,h=document.getElementById("helpBtn"),b=document.getElementById("filter-btn"),w=(x===h||((h==null?void 0:h.contains(x))??!1)||x===b||(b==null?void 0:b.contains(x)))??!1;o&&!w&&!((($=s.current)==null?void 0:$.contains(x))??!1)&&i()};return p.forEach(g=>{document.addEventListener(g,d,{passive:!0})}),()=>{p.forEach(g=>{document.removeEventListener(g,d)})}},[o,i]),t.jsx(y.LazyMotion,{features:y.domAnimation,children:t.jsx(Ka,{animate:o?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:s,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs(m,{height:"100%",position:"relative",children:[t.jsxs(m,{alignItems:"center",bgColor:l.palette.white,borderBottom:"1px solid",borderColor:l.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(R,{color:l.palette.black,display:"inline",fontWeight:"bold",size:"lg",children:a}),t.jsx(H,{icon:"close",iconColor:l.palette.gray[400],iconSize:"lg",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:i,px:.25,py:.25,variant:"ghost"})]}),t.jsx(m,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:t.jsxs(m,{py:1.25,children:[(r??[]).map(({customBadge:p,description:d,icon:g,onClick:x,requiresUpgrade:h,title:b})=>t.jsx(En,{customBadge:p,description:d,icon:g,onClick:c(x),requiresUpgrade:h,title:b},b)),e&&t.jsx(m,{px:1.25,children:e})]})})]})})})},qa=(e,n)=>n>=50?`
2512
+ `,Za=({children:e,closeIconId:n="close-menu",isOpen:o,items:i,onClose:r,title:a})=>{const l=f.useTheme(),s=u.useRef(null),c=u.useCallback(p=>()=>{p(),r()},[r]);return u.useEffect(()=>{const p=["mousedown","touchstart"],d=g=>{var $;const x=g.target,h=document.getElementById("helpBtn"),b=document.getElementById("filter-btn"),w=(x===h||((h==null?void 0:h.contains(x))??!1)||x===b||(b==null?void 0:b.contains(x)))??!1;o&&!w&&!((($=s.current)==null?void 0:$.contains(x))??!1)&&r()};return p.forEach(g=>{document.addEventListener(g,d,{passive:!0})}),()=>{p.forEach(g=>{document.removeEventListener(g,d)})}},[o,r]),t.jsx(y.LazyMotion,{features:y.domAnimation,children:t.jsx(qa,{animate:o?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:s,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs(m,{height:"100%",position:"relative",children:[t.jsxs(m,{alignItems:"center",bgColor:l.palette.white,borderBottom:"1px solid",borderColor:l.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(R,{color:l.palette.black,display:"inline",fontWeight:"bold",size:"lg",children:a}),t.jsx(H,{icon:"close",iconColor:l.palette.gray[400],iconSize:"lg",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:r,px:.25,py:.25,variant:"ghost"})]}),t.jsx(m,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:t.jsxs(m,{py:1.25,children:[(i??[]).map(({customBadge:p,description:d,icon:g,onClick:x,requiresUpgrade:h,title:b})=>t.jsx(En,{customBadge:p,description:d,icon:g,onClick:c(x),requiresUpgrade:h,title:b},b)),e&&t.jsx(m,{px:1.25,children:e})]})})]})})})},Xa=(e,n)=>n>=50?`
2511
2513
  ${e.palette.gray[200]} 50%,
2512
2514
  ${e.palette.primary[500]} 50.05%,
2513
2515
  ${e.palette.primary[500]} ${n}%,
@@ -2518,7 +2520,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2518
2520
  ${e.palette.primary[500]} 50%,
2519
2521
  ${e.palette.gray[200]} 50.05%,
2520
2522
  ${e.palette.gray[200]} 100%
2521
- `,Xa=f.styled.div`
2523
+ `,Ja=f.styled.div`
2522
2524
  ${({theme:e,$min:n,$value:o})=>`
2523
2525
  align-items: center;
2524
2526
  align-self: stretch;
@@ -2534,7 +2536,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2534
2536
  ${n>=0?`
2535
2537
  ${e.palette.primary[500]} ${o}%,
2536
2538
  ${e.palette.gray[200]} ${o}%
2537
- `:qa(e,o)}
2539
+ `:Xa(e,o)}
2538
2540
  );
2539
2541
  border-radius: ${e.spacing[.125]};
2540
2542
  height: ${e.spacing[.25]};
@@ -2558,7 +2560,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2558
2560
  border: 1px solid ${e.palette.primary[500]};
2559
2561
  }
2560
2562
  `}
2561
- `,Ja=f.styled.div`
2563
+ `,Qa=f.styled.div`
2562
2564
  ${({theme:e})=>`
2563
2565
  align-items: center;
2564
2566
  display: flex;
@@ -2572,7 +2574,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2572
2574
  font-size: ${e.spacing[.5]};
2573
2575
  }
2574
2576
  `}
2575
- `,Qa=f.styled.output`
2577
+ `,es=f.styled.output`
2576
2578
  ${({theme:e})=>`
2577
2579
  align-items: flex-end;
2578
2580
  border-radius: ${e.spacing[.5]};
@@ -2583,7 +2585,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2583
2585
  padding: ${e.spacing[.625]} ${e.spacing[.75]};
2584
2586
  width: 59px;
2585
2587
  `}
2586
- `,Rn=({state:e,trackRef:n,index:o,name:r})=>{const i=u.useRef(null),{thumbProps:a,inputProps:l,isDragging:s}=y.$47b897dc8cdb026b$export$8d15029008292ae({index:o,trackRef:n,inputRef:i},e);return t.jsx("div",{...a,className:`thumb ${s?"dragging":""}`,children:t.jsx(y.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":r,ref:i})})})},es=(e,n,o)=>Math.round((o-e)/(n-e)*100),ts=e=>{const n=f.useTheme(),o=u.useRef(null),{label:r,minValue:i=0,maxValue:a=100,name:l,setValue:s,watch:c}=e,p=y.$a916eb452884faea$export$b7a616150fdb9f44(),d=y.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:p,onChange(b){s==null||s(l,b)},value:c==null?void 0:c(l)}),g=es(i,a,d.getThumbValue(0)),{groupProps:x,trackProps:h}=y.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},d,o);return t.jsx(Y,{htmlFor:l,label:r,children:t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(Xa,{...x,$min:i??0,$value:g,className:"slider",children:[t.jsx("div",{...h,className:`track ${d.isDisabled?"disabled":""}`,ref:o,children:t.jsx(Rn,{index:0,name:l,state:d,trackRef:o})}),t.jsxs(Ja,{children:[t.jsx("p",{children:`${p.format(i)} (Low)`}),i<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${p.format(a)} (High)`})]})]}),t.jsx(Qa,{children:t.jsx(R,{color:n.palette.gray[800],size:"md",textAlign:"right",children:d.getThumbValueLabel(0)})})]})})},{getVariant:ns}=Q(e=>({completed:`
2588
+ `,Rn=({state:e,trackRef:n,index:o,name:i})=>{const r=u.useRef(null),{thumbProps:a,inputProps:l,isDragging:s}=y.$47b897dc8cdb026b$export$8d15029008292ae({index:o,trackRef:n,inputRef:r},e);return t.jsx("div",{...a,className:`thumb ${s?"dragging":""}`,children:t.jsx(y.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":i,ref:r})})})},ts=(e,n,o)=>Math.round((o-e)/(n-e)*100),ns=e=>{const n=f.useTheme(),o=u.useRef(null),{label:i,minValue:r=0,maxValue:a=100,name:l,setValue:s,watch:c}=e,p=y.$a916eb452884faea$export$b7a616150fdb9f44(),d=y.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:p,onChange(b){s==null||s(l,b)},value:c==null?void 0:c(l)}),g=ts(r,a,d.getThumbValue(0)),{groupProps:x,trackProps:h}=y.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},d,o);return t.jsx(Y,{htmlFor:l,label:i,children:t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(Ja,{...x,$min:r??0,$value:g,className:"slider",children:[t.jsx("div",{...h,className:`track ${d.isDisabled?"disabled":""}`,ref:o,children:t.jsx(Rn,{index:0,name:l,state:d,trackRef:o})}),t.jsxs(Qa,{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(es,{children:t.jsx(R,{color:n.palette.gray[800],size:"md",textAlign:"right",children:d.getThumbValueLabel(0)})})]})})},{getVariant:os}=ee(e=>({completed:`
2587
2589
  background-color: ${e.palette.primary[500]};
2588
2590
  color: ${e.palette.white};
2589
2591
 
@@ -2606,7 +2608,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2606
2608
  &::after {
2607
2609
  background-color: ${e.palette.gray[200]};
2608
2610
  }
2609
- `})),os=f.styled.div`
2611
+ `})),is=f.styled.div`
2610
2612
  ${({theme:e})=>`
2611
2613
  align-items: stretch;
2612
2614
  background-color: ${e.palette.white};
@@ -2624,7 +2626,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2624
2626
  &:last-child > div:first-child > span::after {
2625
2627
  display: none;
2626
2628
  }
2627
- `,is=f.styled.div`
2629
+ `,as=f.styled.div`
2628
2630
  ${({theme:e})=>`
2629
2631
  display: inline-flex;
2630
2632
  font-family: ${e.typography.type.primary};
@@ -2636,7 +2638,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2636
2638
  margin-right: ${e.spacing[.5]};
2637
2639
  }
2638
2640
  `}
2639
- `,as=f.styled.span`
2641
+ `,ss=f.styled.span`
2640
2642
  ${({theme:e,$variant:n})=>`
2641
2643
  border-radius: 6px;
2642
2644
  display: inline-block;
@@ -2659,9 +2661,9 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2659
2661
  height: calc(100% - ${e.spacing[1]});
2660
2662
  }
2661
2663
 
2662
- ${ns(e,n)}
2664
+ ${os(e,n)}
2663
2665
  `}
2664
- `,ss=({button:{disabled:e=!1,text:n,type:o="button",onClick:r},steps:i})=>{const[a,l]=u.useState(1),s=u.useCallback((c,p)=>()=>{l(d=>d+c),p==null||p()},[]);return t.jsx(os,{children:i.map((c,p)=>{const{content:d,title:g,nextAction:x,previousAction:h}=c,b=p+1,w=b===a?"current":"disabled",$=b<a?"completed":w;return t.jsxs(rs,{children:[t.jsx(m,{maxWidth:"40px",position:"relative",children:t.jsx(as,{$variant:$,children:$==="completed"?t.jsx(D,{icon:"check",iconSize:"lg",iconType:"fa-solid"}):b})}),t.jsxs(m,{ml:1.5,width:"100%",children:[t.jsx(ee,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:g}),$==="current"&&t.jsxs(m,{children:[d,t.jsxs(is,{children:[a>1&&t.jsx(M,{disabled:c.isDisabledPrevious??!1,onClick:s(-1,h),variant:"tertiary",children:"Previous"}),a<i.length?t.jsx(M,{disabled:c.isDisabledNext??!1,onClick:s(1,x),variant:"primary",children:"Next step"}):t.jsx(M,{disabled:e,onClick:r,type:o,variant:"primary",children:n})]})]})]})]},c.title)})})},ls=e=>{const n=(i,a)=>a.reduce((s,[c,p])=>{if(u.isValidElement(p)||c==="__typename")return s.concat([["",""]]);if(typeof p=="object"&&p){const g=Object.entries(p);return s.concat(n(c,g))}const d=i===""?"":`${i}.`;return s.concat([[d+c,p]])},[]),o=Object.entries(e),r=n("",o).filter(([i])=>i!=="");return Object.fromEntries(r)},It=e=>e.map(ls),Dn=({csvConfig:e={},data:n,children:o})=>{const{columns:r=void 0,export:i=!1,headers:a={},name:l="Report"}=e,s=u.useMemo(()=>y._.isUndefined(r)?It(n):It(n).map(d=>y._.pick(d,r)),[n,r]),c=u.useMemo(()=>s.length>0&&!y._.isEmpty(a),[s.length,a]),p=u.useMemo(()=>(c?Object.keys(s[0]):[]).map(d=>y._.includes(Object.keys(a),d)?{key:d,label:a[d]}:{key:d,label:d}),[c,s,a]);return i?t.jsx(y.CSVLink,{data:s,filename:l,headers:c?p:void 0,children:o}):t.jsx(u.Fragment,{children:o})},Fn=e=>{const{table:n}=e,{meta:o}=n.options,[r,i]=u.useState(0),[,a]=n.getHeaderGroups(),l=n.getState(),s=u.useMemo(()=>n.getAllLeafColumns().filter(g=>g.id!=="selection"),[n]),c=u.useMemo(()=>s.map(g=>{var x;return{group:(x=g.parent)==null?void 0:x.id,id:g.id,locked:g.getIsPinned()==="left",name:g.columnDef.header,toggleVisibility:g.toggleVisibility,visible:g.getIsVisible()}}),[s]),p=on({columnOrder:(o==null?void 0:o.defaultColumnOrder)??[],items:c,name:"table-column-management",setColumnOrder:n.setColumnOrder,setColumnVisibility:n.setColumnVisibility}),d=u.useCallback(()=>{p.toggle()},[p]);return u.useEffect(()=>{i(n.getVisibleLeafColumns().filter(g=>g.id!=="selection").length)},[n,l]),t.jsxs("div",{id:"columns-filter",children:[t.jsx(M,{icon:"columns",id:"columns-toggle-btn",onClick:d,tag:r.toString(),variant:"ghost"}),t.jsx(fn,{modalRef:p,title:"Manage columns",variant:y.isNil(a)?"ungrouped":"grouped"})]})},oe=u.createContext({containerRef:void 0,elementName:"",handleUnselectAll:void 0,hidden:!1,onKeyDown:void 0,selected:0,tableSize:0,tableRef:void 0,table:void 0}),cs=f.styled.span`
2666
+ `,ls=({button:{disabled:e=!1,text:n,type:o="button",onClick:i},steps:r})=>{const[a,l]=u.useState(1),s=u.useCallback((c,p)=>()=>{l(d=>d+c),p==null||p()},[]);return t.jsx(is,{children:r.map((c,p)=>{const{content:d,title:g,nextAction:x,previousAction:h}=c,b=p+1,w=b===a?"current":"disabled",$=b<a?"completed":w;return t.jsxs(rs,{children:[t.jsx(m,{maxWidth:"40px",position:"relative",children:t.jsx(ss,{$variant:$,children:$==="completed"?t.jsx(D,{icon:"check",iconSize:"lg",iconType:"fa-solid"}):b})}),t.jsxs(m,{ml:1.5,width:"100%",children:[t.jsx(X,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:g}),$==="current"&&t.jsxs(m,{children:[d,t.jsxs(as,{children:[a>1&&t.jsx(M,{disabled:c.isDisabledPrevious??!1,onClick:s(-1,h),variant:"tertiary",children:"Previous"}),a<r.length?t.jsx(M,{disabled:c.isDisabledNext??!1,onClick:s(1,x),variant:"primary",children:"Next step"}):t.jsx(M,{disabled:e,onClick:i,type:o,variant:"primary",children:n})]})]})]})]},c.title)})})},cs=e=>{const n=(r,a)=>a.reduce((s,[c,p])=>{if(u.isValidElement(p)||c==="__typename")return s.concat([["",""]]);if(typeof p=="object"&&p){const g=Object.entries(p);return s.concat(n(c,g))}const d=r===""?"":`${r}.`;return s.concat([[d+c,p]])},[]),o=Object.entries(e),i=n("",o).filter(([r])=>r!=="");return Object.fromEntries(i)},It=e=>e.map(cs),Dn=({csvConfig:e={},data:n,children:o})=>{const{columns:i=void 0,export:r=!1,headers:a={},name:l="Report"}=e,s=u.useMemo(()=>y._.isUndefined(i)?It(n):It(n).map(d=>y._.pick(d,i)),[n,i]),c=u.useMemo(()=>s.length>0&&!y._.isEmpty(a),[s.length,a]),p=u.useMemo(()=>(c?Object.keys(s[0]):[]).map(d=>y._.includes(Object.keys(a),d)?{key:d,label:a[d]}:{key:d,label:d}),[c,s,a]);return r?t.jsx(y.CSVLink,{data:s,filename:l,headers:c?p:void 0,children:o}):t.jsx(u.Fragment,{children:o})},Fn=e=>{const{table:n}=e,{meta:o}=n.options,[i,r]=u.useState(0),[,a]=n.getHeaderGroups(),l=n.getState(),s=u.useMemo(()=>n.getAllLeafColumns().filter(g=>g.id!=="selection"),[n]),c=u.useMemo(()=>s.map(g=>{var x;return{group:(x=g.parent)==null?void 0:x.id,id:g.id,locked:g.getIsPinned()==="left",name:g.columnDef.header,toggleVisibility:g.toggleVisibility,visible:g.getIsVisible()}}),[s]),p=on({columnOrder:(o==null?void 0:o.defaultColumnOrder)??[],items:c,name:"table-column-management",setColumnOrder:n.setColumnOrder,setColumnVisibility:n.setColumnVisibility}),d=u.useCallback(()=>{p.toggle()},[p]);return u.useEffect(()=>{r(n.getVisibleLeafColumns().filter(g=>g.id!=="selection").length)},[n,l]),t.jsxs("div",{id:"columns-filter",children:[t.jsx(M,{icon:"columns",id:"columns-toggle-btn",onClick:d,tag:i.toString(),variant:"ghost"}),t.jsx(fn,{modalRef:p,title:"Manage columns",variant:y.isNil(a)?"ungrouped":"grouped"})]})},oe=u.createContext({containerRef:void 0,elementName:"",handleUnselectAll:void 0,hidden:!1,onKeyDown:void 0,selected:0,tableSize:0,tableRef:void 0,table:void 0}),ds=f.styled.span`
2665
2667
  transition: all 150ms;
2666
2668
  width: 5px;
2667
2669
  height: 10px;
@@ -2686,7 +2688,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2686
2688
  transition: opacity 150ms;
2687
2689
  opacity: ${({$variant:e})=>e==="asc"?0:1};
2688
2690
  }
2689
- `,et=e=>{const n=f.useTheme(),{variant:o}=e;return t.jsxs(cs,{$variant:o,children:[t.jsx(D,{icon:"caret-up",iconColor:n.palette.gray[600],iconSize:"xs",iconType:"fa-solid"}),t.jsx(D,{icon:"caret-down",iconColor:n.palette.gray[600],iconSize:"xs",iconType:"fa-solid"})]})},ds=f.styled.div`
2691
+ `,et=e=>{const n=f.useTheme(),{variant:o}=e;return t.jsxs(ds,{$variant:o,children:[t.jsx(D,{icon:"caret-up",iconColor:n.palette.gray[600],iconSize:"xs",iconType:"fa-solid"}),t.jsx(D,{icon:"caret-down",iconColor:n.palette.gray[600],iconSize:"xs",iconType:"fa-solid"})]})},ps=f.styled.div`
2690
2692
  position: relative;
2691
2693
 
2692
2694
  div:has(table) {
@@ -2849,7 +2851,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2849
2851
  }
2850
2852
  }
2851
2853
  }
2852
- `,ps=f.styled.div`
2854
+ `,gs=f.styled.div`
2853
2855
  ${({$width:e,theme:n})=>`
2854
2856
  display: flex;
2855
2857
  flex-direction: column;
@@ -2877,7 +2879,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2877
2879
  }
2878
2880
  }
2879
2881
  `}
2880
- `,gs=f.styled.div`
2882
+ `,us=f.styled.div`
2881
2883
  align-items: center;
2882
2884
  background-color: transparent;
2883
2885
  display: flex;
@@ -2925,11 +2927,11 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2925
2927
  transition: all 150ms;
2926
2928
  border-right: 1px solid ${({theme:e})=>e.palette.black};
2927
2929
  }
2928
- `,Nn=()=>{const e=f.useTheme(),{table:n}=u.useContext(oe),{groupHeaders:o,tooltips:r}=(n==null?void 0:n.options.meta)??{},i=u.useCallback(p=>()=>{p.column.getCanSort()&&(n==null||n.setPageIndex(0),p.column.toggleSorting())},[n]),a=p=>d=>{p.getResizeHandler()(d)};if(o)return t.jsx("thead",{children:n==null?void 0:n.getHeaderGroups().map(p=>t.jsx("tr",{"data-testid":"row-headers",children:p.headers.map(d=>{var b;const{isPlaceholder:g}=d,x=g?d.subHeaders[0]:d;return y._.isUndefined(d.column.parent)&&d.depth>1?null:t.jsxs("th",{colSpan:x.colSpan,id:`header-${x.id}`,rowSpan:g?0:1,style:{borderRight:d.headerGroup.headers.indexOf(d)!==d.headerGroup.headers.length-1?"1px solid white":void 0,position:"relative",width:d.getSize()},children:[t.jsxs(m,{alignItems:"center",bgColor:e.palette.gray[200],borderBottom:g?void 0:`1px solid${e.palette.white}`,display:"flex",gap:.25,height:g?"6rem":"3rem",lineSpacing:0,onClick:i(x),pl:.5,pt:g?3:0,whiteSpace:"nowrap",width:"100%",children:[y.flexRender(x.column.columnDef.header,x.getContext()),x.column.getCanSort()?t.jsx(et,{variant:x.column.getIsSorted()}):void 0,(r==null?void 0:r.map(w=>w.columnId).includes(x.id))??!1?t.jsx(K,{icon:"circle-info",id:x.id,place:"right",tip:((b=r==null?void 0:r.find(w=>w.columnId===x.id))==null?void 0:b.tip)??""}):void 0]}),x.column.getCanResize()&&t.jsx(Et,{onMouseDown:a(d)})]},x.id)})},p.id))});const[l,s]=(n==null?void 0:n.getHeaderGroups())??[],c=y.lodashExports.isNil(s)?l:s;return t.jsx("thead",{children:t.jsx("tr",{"data-testid":"row-headers",children:c.headers.map(p=>{var d;return t.jsxs("th",{id:`header-${p.id}`,style:{position:"relative",width:p.getSize()},children:[t.jsxs(m,{alignItems:"center",bgColor:e.palette.gray[200],display:"flex",gap:.25,height:"3rem",lineSpacing:0,onClick:i(p),px:.5,whiteSpace:"nowrap",width:"100%",children:[y.flexRender(p.column.columnDef.header,p.getContext()),p.column.getCanSort()?t.jsx(et,{variant:p.column.getIsSorted()}):void 0,(r==null?void 0:r.map(g=>g.columnId).includes(p.id))??!1?t.jsx(K,{icon:"circle-info",id:p.id,place:"right",tip:((d=r==null?void 0:r.find(g=>g.columnId===p.id))==null?void 0:d.tip)??""}):void 0]}),p.column.getCanResize()&&t.jsx(Et,{onMouseDown:a(p)})]},p.id)})})})},us=f.styled.div`
2930
+ `,Nn=()=>{const e=f.useTheme(),{table:n}=u.useContext(oe),{groupHeaders:o,tooltips:i}=(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=>d=>{p.getResizeHandler()(d)};if(o)return t.jsx("thead",{children:n==null?void 0:n.getHeaderGroups().map(p=>t.jsx("tr",{"data-testid":"row-headers",children:p.headers.map(d=>{var b;const{isPlaceholder:g}=d,x=g?d.subHeaders[0]:d;return y._.isUndefined(d.column.parent)&&d.depth>1?null:t.jsxs("th",{colSpan:x.colSpan,id:`header-${x.id}`,rowSpan:g?0:1,style:{borderRight:d.headerGroup.headers.indexOf(d)!==d.headerGroup.headers.length-1?"1px solid white":void 0,position:"relative",width:d.getSize()},children:[t.jsxs(m,{alignItems:"center",bgColor:e.palette.gray[200],borderBottom:g?void 0:`1px solid${e.palette.white}`,display:"flex",gap:.25,height:g?"6rem":"3rem",lineSpacing:0,onClick:r(x),pl:.5,pt:g?3:0,whiteSpace:"nowrap",width:"100%",children:[y.flexRender(x.column.columnDef.header,x.getContext()),x.column.getCanSort()?t.jsx(et,{variant:x.column.getIsSorted()}):void 0,(i==null?void 0:i.map(w=>w.columnId).includes(x.id))??!1?t.jsx(K,{icon:"circle-info",id:x.id,place:"right",tip:((b=i==null?void 0:i.find(w=>w.columnId===x.id))==null?void 0:b.tip)??""}):void 0]}),x.column.getCanResize()&&t.jsx(Et,{onMouseDown:a(d)})]},x.id)})},p.id))});const[l,s]=(n==null?void 0:n.getHeaderGroups())??[],c=y.lodashExports.isNil(s)?l:s;return t.jsx("thead",{children:t.jsx("tr",{"data-testid":"row-headers",children:c.headers.map(p=>{var d;return t.jsxs("th",{id:`header-${p.id}`,style:{position:"relative",width:p.getSize()},children:[t.jsxs(m,{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:[y.flexRender(p.column.columnDef.header,p.getContext()),p.column.getCanSort()?t.jsx(et,{variant:p.column.getIsSorted()}):void 0,(i==null?void 0:i.map(g=>g.columnId).includes(p.id))??!1?t.jsx(K,{icon:"circle-info",id:p.id,place:"right",tip:((d=i==null?void 0:i.find(g=>g.columnId===p.id))==null?void 0:d.tip)??""}):void 0]}),p.column.getCanResize()&&t.jsx(Et,{onMouseDown:a(p)})]},p.id)})})})},xs=f.styled.div`
2929
2931
  align-items: center;
2930
2932
  display: flex;
2931
2933
  width: 100%;
2932
- `,Ln=()=>{const e=f.useTheme(),{table:n}=u.useContext(oe),{loading:o}=(n==null?void 0:n.options.meta)??{},r=u.useMemo(()=>{const{enableRowSelection:s,enableMultiRowSelection:c}=(n==null?void 0:n.options)??{};return s||c?1:0},[n==null?void 0:n.options]),i=u.useCallback((s,c)=>{if(c===r)return p=>{var d,g;p.stopPropagation(),(g=(d=n==null?void 0:n.options)==null?void 0:d.onRowClick)==null||g.call(d,s)}},[r,n]),a=u.useCallback(s=>c=>{c.stopPropagation(),s.toggleExpanded()},[]),l=u.useCallback(s=>{const{meta:c}=(n==null?void 0:n.options)??{},{onExpand:p=void 0}=c??{};return p?p(s):null},[n]);return o?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(m,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:t.jsx(kn,{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(R,{color:e.palette.gray[800],size:"md",textAlign:"center",children:"No data to display"})})})}):t.jsx("tbody",{children:n==null?void 0:n.getRowModel().rows.map(s=>t.jsxs(tt.default.Fragment,{children:[t.jsx("tr",{"aria-expanded":s.getIsExpanded(),"data-testid":`row-${s.id}`,children:s.getVisibleCells().map((c,p)=>t.jsx("td",{className:p===r&&n.options.onRowClick?"clickable":"","data-testid":`cell-${c.id}`,onClick:i(s,p),children:t.jsxs(us,{children:[p===r&&s.getCanExpand()?t.jsx("button",{onClick:a(s),style:{cursor:"pointer",marginRight:"1rem"},children:t.jsx(D,{icon:s.getIsExpanded()?"angle-up":"angle-down",iconSize:"lg",iconType:"fa-light"})}):void 0,y.flexRender(c.column.columnDef.cell,c.getContext())]})},c.id))}),s.getIsExpanded()?t.jsx("tr",{"data-testid":`row-${s.id}-expand`,id:"description",children:t.jsx("td",{colSpan:100,children:l(s)})}):void 0]},s.id))})},An=()=>{const{containerRef:e,hidden:n,elementName:o,handleUnselectAll:r,onKeyDown:i,selected:a,tableSize:l,tableRef:s}=u.useContext(oe);return t.jsxs("div",{ref:e,children:[n?void 0:t.jsx(ps,{$width:l,children:t.jsxs("div",{children:[t.jsx("b",{children:`${a} ${o} `}),`${a===1?"has":"have"} been selected. `,t.jsx("span",{onClick:r,onKeyDown:i,role:"link",tabIndex:0,children:"Unselect all"})]})}),t.jsxs("table",{ref:s,children:[t.jsx(Nn,{}),t.jsx(Ln,{})]})]})},Rt=f.styled(H)`
2934
+ `,Ln=()=>{const e=f.useTheme(),{table:n}=u.useContext(oe),{loading:o}=(n==null?void 0:n.options.meta)??{},i=u.useMemo(()=>{const{enableRowSelection:s,enableMultiRowSelection:c}=(n==null?void 0:n.options)??{};return s||c?1:0},[n==null?void 0:n.options]),r=u.useCallback((s,c)=>{if(c===i)return p=>{var d,g;p.stopPropagation(),(g=(d=n==null?void 0:n.options)==null?void 0:d.onRowClick)==null||g.call(d,s)}},[i,n]),a=u.useCallback(s=>c=>{c.stopPropagation(),s.toggleExpanded()},[]),l=u.useCallback(s=>{const{meta:c}=(n==null?void 0:n.options)??{},{onExpand:p=void 0}=c??{};return p?p(s):null},[n]);return o?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(m,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:t.jsx(kn,{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(R,{color:e.palette.gray[800],size:"md",textAlign:"center",children:"No data to display"})})})}):t.jsx("tbody",{children:n==null?void 0:n.getRowModel().rows.map(s=>t.jsxs(tt.default.Fragment,{children:[t.jsx("tr",{"aria-expanded":s.getIsExpanded(),"data-testid":`row-${s.id}`,children:s.getVisibleCells().map((c,p)=>t.jsx("td",{className:p===i&&n.options.onRowClick?"clickable":"","data-testid":`cell-${c.id}`,onClick:r(s,p),children:t.jsxs(xs,{children:[p===i&&s.getCanExpand()?t.jsx("button",{onClick:a(s),style:{cursor:"pointer",marginRight:"1rem"},children:t.jsx(D,{icon:s.getIsExpanded()?"angle-up":"angle-down",iconSize:"lg",iconType:"fa-light"})}):void 0,y.flexRender(c.column.columnDef.cell,c.getContext())]})},c.id))}),s.getIsExpanded()?t.jsx("tr",{"data-testid":`row-${s.id}-expand`,id:"description",children:t.jsx("td",{colSpan:100,children:l(s)})}):void 0]},s.id))})},An=()=>{const{containerRef:e,hidden:n,elementName:o,handleUnselectAll:i,onKeyDown:r,selected:a,tableSize:l,tableRef:s}=u.useContext(oe);return t.jsxs("div",{ref:e,children:[n?void 0:t.jsx(gs,{$width:l,children:t.jsxs("div",{children:[t.jsx("b",{children:`${a} ${o} `}),`${a===1?"has":"have"} been selected. `,t.jsx("span",{onClick:i,onKeyDown:r,role:"link",tabIndex:0,children:"Unselect all"})]})}),t.jsxs("table",{ref:s,children:[t.jsx(Nn,{}),t.jsx(Ln,{})]})]})},Rt=f.styled(H)`
2933
2935
  ${({theme:e,$padding:n})=>`
2934
2936
  background-color: ${e.palette.white};
2935
2937
  border: 1px solid ${e.palette.gray[200]};
@@ -2955,7 +2957,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2955
2957
  background-color: ${e.palette.gray[100]};
2956
2958
  }
2957
2959
  `}
2958
- `,Pn=()=>{const{table:e}=u.useContext(oe),{pagination:{pageIndex:n}={pageIndex:0}}=(e==null?void 0:e.getState())??{},o=(e==null?void 0:e.getPageCount())??0,r=u.useCallback(()=>{e==null||e.setPageIndex(n+1)},[n,e]),i=u.useCallback(()=>{e==null||e.previousPage()},[e]);return t.jsxs(m,{alignItems:"center",display:"flex",gap:.5,children:[t.jsx(Rt,{$padding:"4px 6px",disabled:!(e!=null&&e.getCanPreviousPage()),icon:"chevron-left",iconSize:"sm",iconType:"fa-light",id:"go-previous",onClick:i,variant:"ghost"}),t.jsx(Rt,{$padding:"4px 6px",disabled:n>o-2,icon:"chevron-right",iconSize:"sm",iconType:"fa-light",id:"go-next",onClick:r,variant:"ghost"})]})},xs=10,hs=20,fs=50,ys=100,On=()=>{const e=f.useTheme(),{table:n}=u.useContext(oe),o=(n==null?void 0:n.getRowCount())??0,[r,i]=u.useState(!1),[a,l]=u.useState((n==null?void 0:n.getState().pagination.pageSize)??10),{refs:s,floatingStyles:c}=y.useFloating$1({middleware:[y.offset({mainAxis:4})],open:r,placement:"top-end",whileElementsMounted:y.autoUpdate}),p=u.useMemo(()=>y.transform([xs,hs,fs,ys],(h,b)=>(h.push(b),b<=o),[]),[o]),d=u.useCallback(()=>{r&&i(!1)},[r]),g=u.useCallback(()=>{i(h=>!h)},[]),x=u.useCallback(h=>()=>{l(h),n==null||n.setPageSize(h),i(!1)},[n,l]);return ne(s.reference.current,()=>{i(!1)},!0,s.floating.current),u.useEffect(()=>(window.addEventListener("scrollend",d,!0),()=>{window.removeEventListener("scrollend",d,!0)}),[d]),t.jsxs(u.Fragment,{children:[t.jsxs(m,{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(R,{pr:.25,size:"md",children:a}),t.jsx(H,{color:e.palette.gray[400],icon:r?"chevron-up":"chevron-down",iconSize:"sm",iconType:"fa-light",id:"paginator-dropdown",onClick:g,px:.25,py:.25,ref:s.setReference,variant:"ghost"})]}),r?t.jsx(m,{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:c,children:p.map(h=>{const b=x(h);return t.jsx(m,{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:b,px:.25,py:.25,children:t.jsx(R,{color:a===h?e.palette.white:e.palette.gray[600],size:"md",textAlign:"center",children:h})},h)})}):void 0]})},Mn=()=>{const{table:e}=u.useContext(oe),{pagination:{pageIndex:n,pageSize:o}={pageIndex:0,pageSize:10}}=(e==null?void 0:e.getState())??{},r=(e==null?void 0:e.getRowCount())??0,i=u.useCallback((a,l,s)=>{if(s===0)return"0 of 0";if(l*a>=s)return`${s} of ${s}`;const c=l*a+1,p=Math.min(l*(a+1),s);return`${c}-${p} of ${s}`},[]);return t.jsx(R,{display:"inline-block",fontWeight:"bold",size:"md",children:i(n,o,r)})},Wn=({children:e})=>t.jsxs(gs,{children:[t.jsxs("div",{className:"pagination-container",children:[t.jsx(Mn,{}),t.jsx(On,{}),t.jsx(Pn,{})]}),e]}),Hn=({children:e})=>t.jsx("div",{className:"footer-container",children:e}),bs=f.styled.div.attrs({className:"search-container"})`
2960
+ `,Pn=()=>{const{table:e}=u.useContext(oe),{pagination:{pageIndex:n}={pageIndex:0}}=(e==null?void 0:e.getState())??{},o=(e==null?void 0:e.getPageCount())??0,i=u.useCallback(()=>{e==null||e.setPageIndex(n+1)},[n,e]),r=u.useCallback(()=>{e==null||e.previousPage()},[e]);return t.jsxs(m,{alignItems:"center",display:"flex",gap:.5,children:[t.jsx(Rt,{$padding:"4px 6px",disabled:!(e!=null&&e.getCanPreviousPage()),icon:"chevron-left",iconSize:"sm",iconType:"fa-light",id:"go-previous",onClick:r,variant:"ghost"}),t.jsx(Rt,{$padding:"4px 6px",disabled:n>o-2,icon:"chevron-right",iconSize:"sm",iconType:"fa-light",id:"go-next",onClick:i,variant:"ghost"})]})},hs=10,fs=20,ys=50,bs=100,On=()=>{const e=f.useTheme(),{table:n}=u.useContext(oe),o=(n==null?void 0:n.getRowCount())??0,[i,r]=u.useState(!1),[a,l]=u.useState((n==null?void 0:n.getState().pagination.pageSize)??10),{refs:s,floatingStyles:c}=y.useFloating$1({middleware:[y.offset({mainAxis:4})],open:i,placement:"top-end",whileElementsMounted:y.autoUpdate}),p=u.useMemo(()=>y.transform([hs,fs,ys,bs],(h,b)=>(h.push(b),b<=o),[]),[o]),d=u.useCallback(()=>{i&&r(!1)},[i]),g=u.useCallback(()=>{r(h=>!h)},[]),x=u.useCallback(h=>()=>{l(h),n==null||n.setPageSize(h),r(!1)},[n,l]);return ne(s.reference.current,()=>{r(!1)},!0,s.floating.current),u.useEffect(()=>(window.addEventListener("scrollend",d,!0),()=>{window.removeEventListener("scrollend",d,!0)}),[d]),t.jsxs(u.Fragment,{children:[t.jsxs(m,{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(R,{pr:.25,size:"md",children:a}),t.jsx(H,{color:e.palette.gray[400],icon:i?"chevron-up":"chevron-down",iconSize:"sm",iconType:"fa-light",id:"paginator-dropdown",onClick:g,px:.25,py:.25,ref:s.setReference,variant:"ghost"})]}),i?t.jsx(m,{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:c,children:p.map(h=>{const b=x(h);return t.jsx(m,{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:b,px:.25,py:.25,children:t.jsx(R,{color:a===h?e.palette.white:e.palette.gray[600],size:"md",textAlign:"center",children:h})},h)})}):void 0]})},Mn=()=>{const{table:e}=u.useContext(oe),{pagination:{pageIndex:n,pageSize:o}={pageIndex:0,pageSize:10}}=(e==null?void 0:e.getState())??{},i=(e==null?void 0:e.getRowCount())??0,r=u.useCallback((a,l,s)=>{if(s===0)return"0 of 0";if(l*a>=s)return`${s} of ${s}`;const c=l*a+1,p=Math.min(l*(a+1),s);return`${c}-${p} of ${s}`},[]);return t.jsx(R,{display:"inline-block",fontWeight:"bold",size:"md",children:r(n,o,i)})},Wn=({children:e})=>t.jsxs(us,{children:[t.jsxs("div",{className:"pagination-container",children:[t.jsx(Mn,{}),t.jsx(On,{}),t.jsx(Pn,{})]}),e]}),Hn=({children:e})=>t.jsx("div",{className:"footer-container",children:e}),$s=f.styled.div.attrs({className:"search-container"})`
2959
2961
  ${({theme:e})=>`
2960
2962
  display: flex;
2961
2963
  flex-direction: column;
@@ -3002,7 +3004,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
3002
3004
  }
3003
3005
  }
3004
3006
  `}
3005
- `,$s=f.styled.div.attrs({className:"controls-container"})`
3007
+ `,ms=f.styled.div.attrs({className:"controls-container"})`
3006
3008
  display: flex;
3007
3009
  flex: 1 0 50%;
3008
3010
 
@@ -3018,7 +3020,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
3018
3020
  justify-content: flex-end;
3019
3021
  width: 100%;
3020
3022
  }
3021
- `,ms=f.styled.div`
3023
+ `,ws=f.styled.div`
3022
3024
  display: flex;
3023
3025
  flex-wrap: wrap;
3024
3026
  width: 100%;
@@ -3033,7 +3035,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
3033
3035
  .highlight-container ~ .controls-container {
3034
3036
  flex: 1 0 100%;
3035
3037
  }
3036
- `,ws=500,Bn=({children:e})=>{const{table:n}=u.useContext(oe),{onSearch:o,search:r,searchPlaceholder:i="Search"}=(n==null?void 0:n.options.meta)??{},a=lt(s=>{o==null||o(s.target.value)},ws),l=u.useCallback(()=>{o==null||o("")},[o]);return t.jsxs(ms,{children:[o===void 0?void 0:t.jsx(bs,{children:t.jsx(se,{name:"search",onChange:a,onClear:l,placeholder:i,value:r})}),e]})},_n=({children:e})=>t.jsx(m,{display:"flex",flexDirection:"column",children:t.jsx("div",{className:"caption-container",children:e})}),Vn=({children:e})=>t.jsx($s,{children:e}),Un=({children:e})=>t.jsx("div",{className:"highlight-container",children:e}),vs=160,Gn=({children:e,table:n})=>{var x;const o=u.useRef(null),r=u.useRef(null),{id:i}=n.options.meta??{},{enableMultiRowSelection:a}=(n==null?void 0:n.options)??{},l=Object.keys(n.getState().rowSelection).length,s=l===1?"item":"items",c=l===0||!a,p=Math.max(((x=o.current)==null?void 0:x.clientWidth)??0,n.getTotalSize()+vs),d=u.useCallback(()=>{n.resetRowSelection()},[n]),g=u.useCallback(h=>{h.key==="Enter"&&d()},[d]);return u.useEffect(()=>{n.setPageIndex(0)},[n]),t.jsx(oe.Provider,{value:{containerRef:o,elementName:s,handleUnselectAll:d,hidden:c,onKeyDown:g,selected:l,tableSize:p,tableRef:r,table:n},children:t.jsx(ds,{id:i,children:e})})},js=Object.assign(Gn,{Caption:_n,Columns:Fn,Content:An,Controls:Vn,Export:Dn,Footer:Wn,FooterContent:Hn,Highlighted:Un,Options:Bn}),ks=f.styled.button`
3038
+ `,js=500,Bn=({children:e})=>{const{table:n}=u.useContext(oe),{onSearch:o,search:i,searchPlaceholder:r="Search"}=(n==null?void 0:n.options.meta)??{},a=lt(s=>{o==null||o(s.target.value)},js),l=u.useCallback(()=>{o==null||o("")},[o]);return t.jsxs(ws,{children:[o===void 0?void 0:t.jsx($s,{children:t.jsx(se,{name:"search",onChange:a,onClear:l,placeholder:r,value:i})}),e]})},_n=({children:e})=>t.jsx(m,{display:"flex",flexDirection:"column",children:t.jsx("div",{className:"caption-container",children:e})}),Vn=({children:e})=>t.jsx(ms,{children:e}),Un=({children:e})=>t.jsx("div",{className:"highlight-container",children:e}),vs=160,Gn=({children:e,table:n})=>{var x;const o=u.useRef(null),i=u.useRef(null),{id:r}=n.options.meta??{},{enableMultiRowSelection:a}=(n==null?void 0:n.options)??{},l=Object.keys(n.getState().rowSelection).length,s=l===1?"item":"items",c=l===0||!a,p=Math.max(((x=o.current)==null?void 0:x.clientWidth)??0,n.getTotalSize()+vs),d=u.useCallback(()=>{n.resetRowSelection()},[n]),g=u.useCallback(h=>{h.key==="Enter"&&d()},[d]);return u.useEffect(()=>{n.setPageIndex(0)},[n]),t.jsx(oe.Provider,{value:{containerRef:o,elementName:s,handleUnselectAll:d,hidden:c,onKeyDown:g,selected:l,tableSize:p,tableRef:i,table:n},children:t.jsx(ps,{id:r,children:e})})},ks=Object.assign(Gn,{Caption:_n,Columns:Fn,Content:An,Controls:Vn,Export:Dn,Footer:Wn,FooterContent:Hn,Highlighted:Un,Options:Bn}),Cs=f.styled.button`
3037
3039
  ${({theme:e})=>`
3038
3040
  align-items: center;
3039
3041
  background-color: ${e.palette.white};
@@ -3075,7 +3077,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
3075
3077
  background-color: ${e.palette.gray[100]};
3076
3078
  }
3077
3079
  `}
3078
- `,Cs={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Ss=({disabled:e=!1,icon:n,id:o,label:r,name:i,onClick:a,type:l="button",variant:s})=>{const c=f.useTheme(),p=t.jsxs(ks,{"aria-label":i??void 0,className:s,disabled:e,id:o,onClick:a,type:l,children:[t.jsx(D,{clickable:!1,icon:n??Cs[s].icon,iconSize:i===void 0?"sm":"lg",iconType:"fa-light"}),i??void 0]});return t.jsxs(m,{alignItems:"center",display:"flex",children:[p,r&&t.jsx(R,{color:c.palette.gray[800],ml:.5,size:"md",children:r})]})},zs=f.styled.div`
3080
+ `,Ss={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},zs=({disabled:e=!1,icon:n,id:o,label:i,name:r,onClick:a,type:l="button",variant:s})=>{const c=f.useTheme(),p=t.jsxs(Cs,{"aria-label":r??void 0,className:s,disabled:e,id:o,onClick:a,type:l,children:[t.jsx(D,{clickable:!1,icon:n??Ss[s].icon,iconSize:r===void 0?"sm":"lg",iconType:"fa-light"}),r??void 0]});return t.jsxs(m,{alignItems:"center",display:"flex",children:[p,i&&t.jsx(R,{color:c.palette.gray[800],ml:.5,size:"md",children:i})]})},Ts=f.styled.div`
3079
3081
  ${({theme:e})=>`
3080
3082
  align-items: center;
3081
3083
  background-color: ${e.palette.white};
@@ -3097,7 +3099,7 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
3097
3099
  border: 1px solid ${e.palette.gray[600]};
3098
3100
  }
3099
3101
  `}
3100
- `,Ts=f.styled.div`
3102
+ `,Is=f.styled.div`
3101
3103
  ${({theme:e,$size:n})=>`
3102
3104
  display: ${n==="long"?"flex":"block"};
3103
3105
  flex-direction: column;
@@ -3147,4 +3149,4 @@ ${b[8]}...`:(b.length<8&&p(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
3147
3149
  transform: translateX(-50%);
3148
3150
  }
3149
3151
  `}
3150
- `,Yn=({date:e,description:n,title:o})=>{const r=f.useTheme();return t.jsxs(zs,{className:"timeline-card",children:[t.jsx(R,{color:r.palette.gray[800],fontWeight:"bold",size:"md",textAlign:"start",children:e}),t.jsx(R,{color:r.palette.gray[800],fontWeight:"bold",mb:.5,size:"md",textAlign:"center",children:o}),t.jsx("div",{children:n.map((i,a)=>{const l=`${i}#${a}`;return t.jsx(R,{size:"md",textAlign:"center",wordBreak:"break-word",children:i},l)})})]})},Is=({items:e})=>{const n=u.useRef(null),[o,r]=u.useState("long");return u.useEffect(()=>{n.current&&r(n.current.offsetWidth<=1100?"small":"long")},[]),t.jsx(m,{ref:n,width:"100%",children:t.jsx(Ts,{$size:o,children:e.map((i,a)=>t.jsx(Yn,{date:i.date,description:i.description,size:o,title:i.title},`${i.title}-${a}`))})})},Es={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:""},Rs=({run:e,steps:n,onFinish:o})=>{const[r,i]=u.useState(e),[a,l]=u.useState(0),s=u.useCallback(c=>{const{action:p,index:d,status:g,type:x}=c;[y.EVENTS.STEP_AFTER,y.EVENTS.TARGET_NOT_FOUND].includes(x)?l(d+(p===y.ACTIONS.PREV?-1:1)):([y.STATUS.FINISHED,y.STATUS.SKIPPED].includes(g)||p==="close")&&(i(!1),y.lodashExports.isUndefined(o)||o())},[o]);return t.jsx(y.components_default,{callback:s,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:r,spotlightClicks:!0,stepIndex:a,steps:n,styles:{buttonNext:{display:a===n.length-1?"none":"block"},options:{zIndex:9999}}})};exports.Accordion=zo;exports.AccordionContent=Lt;exports.ActionButton=pe;exports.Alert=Po;exports.AppliedFilter=ue;exports.AppliedFilters=Ri;exports.ArrayField=Ze;exports.Avatar=Go;exports.BaseButtonComponent=nt;exports.BaseComponent=ze;exports.BaseSpanComponent=rt;exports.BaseTextComponent=ot;exports.Body=Ln;exports.Button=M;exports.Button$1=Ne;exports.ButtonToolbarCenter=$r;exports.ButtonToolbarRow=wr;exports.ButtonToolbarStartRow=mr;exports.Calendar=_t;exports.Calendar$1=Kt;exports.Calendar$2=qt;exports.CalendarCell=Bt;exports.CalendarGrid=Pe;exports.CaptionContent=_n;exports.CardContainer=Qr;exports.CardHeader=Ae;exports.CardWithImage=Zo;exports.CardWithInput=Wr;exports.CardWithOptions=en;exports.CardWithSelector=Yr;exports.CardWithSwitch=qr;exports.Carousel=ii;exports.Checkbox=ie;exports.CodeSnippet=si;exports.Col=Ke;exports.ColumFilters=wn;exports.ColumnToggle=Fn;exports.ColumnsModal=fn;exports.ComboBox=at;exports.ComboBoxField=Ye;exports.Container=m;exports.ControlsContent=Vn;exports.CopyButton=Bi;exports.CustomThemeProvider=$o;exports.DateField=Ut;exports.DateSelector=fe;exports.Description=In;exports.Dialog=Me;exports.Divider=ae;exports.Dropdown=Ui;exports.Editable=br;exports.EmptyButton=Je;exports.EmptyState=Zi;exports.ErrorMessage=Qo;exports.ExportCsv=Dn;exports.FilePreview=Mt;exports.FilterControl=yn;exports.FilterForm=Xe;exports.FilterFormContent=bn;exports.FiltersList=mn;exports.FooterContent=Hn;exports.Form=Ji;exports.Gap=kr;exports.GridContainer=ea;exports.GroupSelector=na;exports.Head=Nn;exports.Header=Oe;exports.Header$1=dn;exports.Heading=ee;exports.HighlightedContent=Un;exports.Icon=D;exports.IconButton=H;exports.InProgressIcon=zn;exports.IndicatorCard=Xr;exports.InfoSidebar=oa;exports.InnerForm=qi;exports.InputArray=Sr;exports.InputDate=Yt;exports.InputDateRange=Zt;exports.InputDateTime=yr;exports.InputFile=Er;exports.InputNumber=Jt;exports.InputNumberRange=Qt;exports.InputTags=Dr;exports.Label=it;exports.Link=te;exports.ListItem=Ee;exports.ListItemsWrapper=un;exports.LittleFlag=ia;exports.Loading=kn;exports.LocationCode=sn;exports.Logo=xa;exports.Lottie=fa;exports.MemoizedImage=re;exports.Menu=ya;exports.MenuItem=En;exports.MessageBanner=$a;exports.Modal=ut;exports.ModalConfirm=pn;exports.ModalFooter=cn;exports.Notification=ka;exports.NotificationSign=Fe;exports.NumberField=be;exports.OAuthSelector=Sa;exports.Option=Wt;exports.OptionBoxContainer=xt;exports.OptionContainer=Qe;exports.OptionContainer$1=jn;exports.OutlineContainer=Y;exports.PaginationControl=Pn;exports.PaginationDropdown=On;exports.PaginationSize=Mn;exports.PhoneInput=Or;exports.PopUp=Ma;exports.Popover=Te;exports.PremiumFeature=Cn;exports.PreviewPanel=xn;exports.PriorityScore=Ta;exports.ProgressBar=Sn;exports.ProgressIndicator=Oa;exports.ProgressStep=Aa;exports.RadioButton=ct;exports.Row=Xt;exports.ScrollUpButton=Ha;exports.Search=se;exports.SearchPanel=hn;exports.SeverityBadge=_a;exports.SeverityOverview=Ua;exports.SeverityOverviewBadge=xe;exports.ShowOnHover=Ya;exports.SlideOutMenu=Za;exports.Slider=ts;exports.SortIcon=et;exports.Span=he;exports.StepLapse=ss;exports.Tab=gn;exports.Table=js;exports.Table$1=Gn;exports.TableButton=Ss;exports.TableContent=An;exports.TableContext=oe;exports.TableFooter=Wn;exports.TableOptions=Bn;exports.Tabs=pt;exports.Tag=X;exports.TagsField=qe;exports.Text=R;exports.TextArea=Mr;exports.TextInput=We;exports.Thumb=Rn;exports.TimeField=Gt;exports.TimeLine=Is;exports.TimeLineCard=Yn;exports.Toggle=rn;exports.Tooltip=K;exports.Tour=Rs;exports.baseStep=Es;exports.formatCheckValues=vn;exports.getStyledConfig=Se;exports.hiddenProps=Dt;exports.icons=bo;exports.setBorder=ve;exports.setDisplay=je;exports.setInteraction=Ce;exports.setMargin=me;exports.setPadding=$e;exports.setPosition=we;exports.setText=ke;exports.theme=N;exports.useCarousel=tn;exports.useClickOutside=ne;exports.useCloudinaryImage=nn;exports.useColumnsModal=on;exports.useConditionsDialog=Mi;exports.useConfirmDialog=Wi;exports.useDebouncedCallback=lt;exports.useFilterForm=$n;exports.useFilters=Oi;exports.useModal=Ie;exports.useSearch=_r;exports.variantBuilder=Q;
3152
+ `,Yn=({date:e,description:n,title:o})=>{const i=f.useTheme();return t.jsxs(Ts,{className:"timeline-card",children:[t.jsx(R,{color:i.palette.gray[800],fontWeight:"bold",size:"md",textAlign:"start",children:e}),t.jsx(R,{color:i.palette.gray[800],fontWeight:"bold",mb:.5,size:"md",textAlign:"center",children:o}),t.jsx("div",{children:n.map((r,a)=>{const l=`${r}#${a}`;return t.jsx(R,{size:"md",textAlign:"center",wordBreak:"break-word",children:r},l)})})]})},Es=({items:e})=>{const n=u.useRef(null),[o,i]=u.useState("long");return u.useEffect(()=>{n.current&&i(n.current.offsetWidth<=1100?"small":"long")},[]),t.jsx(m,{ref:n,width:"100%",children:t.jsx(Is,{$size:o,children:e.map((r,a)=>t.jsx(Yn,{date:r.date,description:r.description,size:o,title:r.title},`${r.title}-${a}`))})})},Rs={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:""},Ds=({run:e,steps:n,onFinish:o})=>{const[i,r]=u.useState(e),[a,l]=u.useState(0),s=u.useCallback(c=>{const{action:p,index:d,status:g,type:x}=c;[y.EVENTS.STEP_AFTER,y.EVENTS.TARGET_NOT_FOUND].includes(x)?l(d+(p===y.ACTIONS.PREV?-1:1)):([y.STATUS.FINISHED,y.STATUS.SKIPPED].includes(g)||p==="close")&&(r(!1),y.lodashExports.isUndefined(o)||o())},[o]);return t.jsx(y.components_default,{callback:s,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:i,spotlightClicks:!0,stepIndex:a,steps:n,styles:{buttonNext:{display:a===n.length-1?"none":"block"},options:{zIndex:9999}}})},Kn=({color:e,icon:n})=>t.jsxs("span",{style:{display:"inline-flex",position:"relative"},children:[t.jsxs("span",{className:"fa-stack",style:{zIndex:-1,height:"20px",width:"20px"},children:[t.jsx("i",{className:"fa-solid fa-square fa-stack-2x",style:{color:e,height:"20px",width:"20px"}}),t.jsx("i",{className:"fa-solid fa-circle fa-stack-1x",style:{color:"#ffffff",height:"14px",width:"14px"}})]}),t.jsx("i",{className:`fa-regular fa-${n}`,style:{color:e,position:"absolute",height:"14px",left:"3px",top:"3px",width:"14px"}})]},`${n}-${e}`),Fs=({rank:e})=>{const n=f.useTheme(),o={1:{color:n.palette.error[700],icon:"gauge-max"},2:{color:n.palette.error[500],icon:"gauge-high"},3:{color:n.palette.warning[500],icon:"gauge"},4:{color:n.palette.success[500],icon:"gauge-low"},5:{color:n.palette.info[700],icon:"gauge-min"},6:{color:n.palette.gray[400],icon:"gauge-min"}};return t.jsxs(m,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(Kn,{color:o[e].color,icon:o[e].icon}),t.jsx(X,{fontWeight:"bold",size:"xs",children:e})]})};exports.Accordion=To;exports.AccordionContent=Lt;exports.ActionButton=pe;exports.Alert=Oo;exports.AppliedFilter=ue;exports.AppliedFilters=Dr;exports.ArrayField=qe;exports.Avatar=Yo;exports.BaseButtonComponent=nt;exports.BaseComponent=ze;exports.BaseSpanComponent=it;exports.BaseTextComponent=ot;exports.Body=Ln;exports.Button=M;exports.Button$1=Ne;exports.ButtonToolbarCenter=mi;exports.ButtonToolbarRow=ji;exports.ButtonToolbarStartRow=wi;exports.Calendar=_t;exports.Calendar$1=Kt;exports.Calendar$2=Zt;exports.CalendarCell=Bt;exports.CalendarGrid=Pe;exports.CaptionContent=_n;exports.CardContainer=er;exports.CardHeader=Ae;exports.CardWithImage=Zo;exports.CardWithInput=Hi;exports.CardWithOptions=en;exports.CardWithSelector=Ki;exports.CardWithSwitch=Xi;exports.Carousel=ar;exports.Checkbox=re;exports.CodeSnippet=lr;exports.Col=Ke;exports.ColumFilters=wn;exports.ColumnToggle=Fn;exports.ColumnsModal=fn;exports.ComboBox=at;exports.ComboBoxField=Ye;exports.Container=m;exports.ControlsContent=Vn;exports.CopyButton=_r;exports.CustomThemeProvider=mo;exports.DateField=Ut;exports.DateSelector=fe;exports.Description=In;exports.Dialog=Me;exports.Divider=ae;exports.Dropdown=Gr;exports.Editable=$i;exports.EmptyButton=Je;exports.EmptyState=Zr;exports.ErrorMessage=ei;exports.ExportCsv=Dn;exports.FilePreview=Mt;exports.FilterControl=yn;exports.FilterForm=Xe;exports.FilterFormContent=bn;exports.FiltersList=mn;exports.FooterContent=Hn;exports.Form=Qr;exports.Gap=Ci;exports.GridContainer=ta;exports.GroupSelector=oa;exports.Head=Nn;exports.Header=Oe;exports.Header$1=dn;exports.Heading=X;exports.HighlightedContent=Un;exports.Icon=D;exports.IconButton=H;exports.InProgressIcon=zn;exports.IndicatorCard=Ji;exports.InfoSidebar=ia;exports.InnerForm=Xr;exports.InputArray=zi;exports.InputDate=Yt;exports.InputDateRange=qt;exports.InputDateTime=bi;exports.InputFile=Ri;exports.InputNumber=Jt;exports.InputNumberRange=Qt;exports.InputTags=Fi;exports.Label=rt;exports.Link=te;exports.ListItem=Ee;exports.ListItemsWrapper=un;exports.LittleFlag=aa;exports.Loading=kn;exports.LocationCode=sn;exports.Logo=ha;exports.Lottie=ya;exports.MemoizedImage=ie;exports.Menu=ba;exports.MenuItem=En;exports.MessageBanner=ma;exports.Modal=ut;exports.ModalConfirm=pn;exports.ModalFooter=cn;exports.Notification=Ca;exports.NotificationSign=Fe;exports.NumberField=be;exports.OAuthSelector=za;exports.Option=Wt;exports.OptionBoxContainer=xt;exports.OptionContainer=Qe;exports.OptionContainer$1=vn;exports.OutlineContainer=Y;exports.PaginationControl=Pn;exports.PaginationDropdown=On;exports.PaginationSize=Mn;exports.PhoneInput=Mi;exports.PopUp=Wa;exports.Popover=Te;exports.PremiumFeature=Cn;exports.PreviewPanel=xn;exports.PriorityScore=Ia;exports.ProgressBar=Sn;exports.ProgressIndicator=Ma;exports.ProgressStep=Pa;exports.RadioButton=ct;exports.RankPosition=Fs;exports.RankPositionIcon=Kn;exports.Row=Xt;exports.ScrollUpButton=Ba;exports.Search=se;exports.SearchPanel=hn;exports.SeverityBadge=Va;exports.SeverityOverview=Ga;exports.SeverityOverviewBadge=xe;exports.ShowOnHover=Ka;exports.SlideOutMenu=Za;exports.Slider=ns;exports.SortIcon=et;exports.Span=he;exports.StepLapse=ls;exports.Tab=gn;exports.Table=ks;exports.Table$1=Gn;exports.TableButton=zs;exports.TableContent=An;exports.TableContext=oe;exports.TableFooter=Wn;exports.TableOptions=Bn;exports.Tabs=pt;exports.Tag=J;exports.TagsField=Ze;exports.Text=R;exports.TextArea=Wi;exports.TextInput=We;exports.Thumb=Rn;exports.TimeField=Gt;exports.TimeLine=Es;exports.TimeLineCard=Yn;exports.Toggle=rn;exports.Tooltip=K;exports.Tour=Ds;exports.baseStep=Rs;exports.formatCheckValues=jn;exports.getStyledConfig=Se;exports.hiddenProps=Dt;exports.icons=$o;exports.setBorder=je;exports.setDisplay=ve;exports.setInteraction=Ce;exports.setMargin=me;exports.setPadding=$e;exports.setPosition=we;exports.setText=ke;exports.theme=N;exports.useCarousel=tn;exports.useClickOutside=ne;exports.useCloudinaryImage=nn;exports.useColumnsModal=on;exports.useConditionsDialog=Wr;exports.useConfirmDialog=Hr;exports.useDebouncedCallback=lt;exports.useFilterForm=$n;exports.useFilters=Mr;exports.useModal=Ie;exports.useSearch=Vi;exports.variantBuilder=ee;