@fluidattacks/design 3.28.1-pr.1 → 3.28.1-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 (165) 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.js +1 -1
  32. package/dist/components/form/inner-form/index.js +1 -1
  33. package/dist/components/grid-container/index.js +1 -1
  34. package/dist/components/group-selector/index.js +1 -1
  35. package/dist/components/group-selector/option-container/index.js +1 -1
  36. package/dist/components/icon/index.js +1 -1
  37. package/dist/components/icon-button/index.js +1 -1
  38. package/dist/components/info-sidebar/index.js +1 -1
  39. package/dist/components/inputs/fields/combobox/field/index.js +1 -1
  40. package/dist/components/inputs/fields/combobox/index.js +1 -1
  41. package/dist/components/inputs/fields/combobox/option/index.js +1 -1
  42. package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
  43. package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
  44. package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
  45. package/dist/components/inputs/fields/date/calendar/index.js +1 -1
  46. package/dist/components/inputs/fields/date/index.js +1 -1
  47. package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
  48. package/dist/components/inputs/fields/date-range/index.js +1 -1
  49. package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
  50. package/dist/components/inputs/fields/date-time/index.js +1 -1
  51. package/dist/components/inputs/fields/editable/index.js +1 -1
  52. package/dist/components/inputs/fields/input-array/field/index.js +1 -1
  53. package/dist/components/inputs/fields/input-array/index.js +1 -1
  54. package/dist/components/inputs/fields/input-file/index.js +1 -1
  55. package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
  56. package/dist/components/inputs/fields/input-tags/index.js +1 -1
  57. package/dist/components/inputs/fields/number/index.js +1 -1
  58. package/dist/components/inputs/fields/number-range/index.js +1 -1
  59. package/dist/components/inputs/fields/phone/index.js +1 -1
  60. package/dist/components/inputs/fields/text-area/index.js +1 -1
  61. package/dist/components/inputs/fields/text-input/index.js +1 -1
  62. package/dist/components/inputs/index.js +1 -1
  63. package/dist/components/inputs/label/index.js +1 -1
  64. package/dist/components/inputs/outline-container/index.js +1 -1
  65. package/dist/components/inputs/utils/action-button/index.js +1 -1
  66. package/dist/components/inputs/utils/calendar-button/index.js +1 -1
  67. package/dist/components/inputs/utils/date-selector/index.js +1 -1
  68. package/dist/components/inputs/utils/date-time-field/index.js +1 -1
  69. package/dist/components/inputs/utils/dialog/index.js +1 -1
  70. package/dist/components/inputs/utils/number-field/index.js +1 -1
  71. package/dist/components/inputs/utils/popover/index.js +1 -1
  72. package/dist/components/layout/categories/buttons/index.js +1 -1
  73. package/dist/components/layout/categories/column/index.js +1 -1
  74. package/dist/components/layout/categories/gap/index.js +1 -1
  75. package/dist/components/layout/categories/row/index.js +1 -1
  76. package/dist/components/layout/index.js +1 -1
  77. package/dist/components/link/index.js +1 -1
  78. package/dist/components/list-item/index.js +1 -1
  79. package/dist/components/little-flag/index.js +1 -1
  80. package/dist/components/loading/index.js +1 -1
  81. package/dist/components/logo/index.js +1 -1
  82. package/dist/components/lottie/index.js +1 -1
  83. package/dist/components/menu/index.js +1 -1
  84. package/dist/components/message-banner/index.js +1 -1
  85. package/dist/components/modal/columns-modal/index.js +1 -1
  86. package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
  87. package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
  88. package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
  89. package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
  90. package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
  91. package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
  92. package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
  93. package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
  94. package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
  95. package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
  96. package/dist/components/modal/filters-modal/index.js +1 -1
  97. package/dist/components/modal/footer/index.js +1 -1
  98. package/dist/components/modal/header/index.js +1 -1
  99. package/dist/components/modal/index.js +1 -1
  100. package/dist/components/modal/modal-confirm/index.js +1 -1
  101. package/dist/components/notification/index.js +1 -1
  102. package/dist/components/notification-sign/index.js +1 -1
  103. package/dist/components/oauth-selector/index.js +1 -1
  104. package/dist/components/oauth-selector/option-container/index.js +1 -1
  105. package/dist/components/pop-up/description/index.js +1 -1
  106. package/dist/components/pop-up/index.js +1 -1
  107. package/dist/components/premium-feature/index.js +1 -1
  108. package/dist/components/priority-score/index.js +1 -1
  109. package/dist/components/progress-bar/index.js +1 -1
  110. package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
  111. package/dist/components/progress-indicator/index.js +1 -1
  112. package/dist/components/progress-indicator/step/index.js +1 -1
  113. package/dist/components/radio-button/index.js +1 -1
  114. package/dist/components/scroll-button/index.js +1 -1
  115. package/dist/components/search/index.js +1 -1
  116. package/dist/components/severity-badge/index.js +1 -1
  117. package/dist/components/severity-overview/badge/index.js +1 -1
  118. package/dist/components/severity-overview/index.js +1 -1
  119. package/dist/components/show-on-hover/index.js +1 -1
  120. package/dist/components/slide-out-menu/index.js +1 -1
  121. package/dist/components/slide-out-menu/menu-item/index.js +1 -1
  122. package/dist/components/slider/index.js +1 -1
  123. package/dist/components/slider/thumb/index.js +1 -1
  124. package/dist/components/step-lapse/index.js +1 -1
  125. package/dist/components/table/context/index.js +1 -1
  126. package/dist/components/table/export-csv/index.js +1 -1
  127. package/dist/components/table/index.js +1 -1
  128. package/dist/components/table/pagination/pagination-control/index.js +1 -1
  129. package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
  130. package/dist/components/table/pagination/pagination-size/index.js +1 -1
  131. package/dist/components/table/sort-icon/index.js +1 -1
  132. package/dist/components/table/table-body/index.js +1 -1
  133. package/dist/components/table/table-column-toggle/index.js +1 -1
  134. package/dist/components/table/table-content/head/index.js +1 -1
  135. package/dist/components/table/table-content/index.js +1 -1
  136. package/dist/components/table/table-footer/footer-content/index.js +1 -1
  137. package/dist/components/table/table-footer/index.js +1 -1
  138. package/dist/components/table/table-options/caption-content/index.js +1 -1
  139. package/dist/components/table/table-options/controls-content/index.js +1 -1
  140. package/dist/components/table/table-options/highlighted-content/index.js +1 -1
  141. package/dist/components/table/table-options/index.js +1 -1
  142. package/dist/components/table/wrapper/index.js +1 -1
  143. package/dist/components/table-button/index.js +1 -1
  144. package/dist/components/tabs/index.js +1 -1
  145. package/dist/components/tabs/tab/index.js +1 -1
  146. package/dist/components/tag/index.js +1 -1
  147. package/dist/components/timeline/card/index.js +1 -1
  148. package/dist/components/timeline/index.js +1 -1
  149. package/dist/components/toggle/index.js +1 -1
  150. package/dist/components/tooltip/index.js +1 -1
  151. package/dist/components/tour/index.js +1 -1
  152. package/dist/components/typography/heading/index.js +1 -1
  153. package/dist/components/typography/index.js +1 -1
  154. package/dist/components/typography/span/index.js +1 -1
  155. package/dist/components/typography/text/index.js +1 -1
  156. package/dist/{components-D2Dk8wg6.js → components-DZlt4I9w.js} +91 -123
  157. package/dist/{components-BinXnuxC.mjs → components-cyQVDu8b.mjs} +738 -818
  158. package/dist/hooks/index.js +1 -1
  159. package/dist/index.d.ts +0 -1
  160. package/dist/index.js +1 -1
  161. package/package.json +4 -4
  162. package/dist/components/number-input/index.d.ts +0 -5
  163. package/dist/components/number-input/index.js +0 -1
  164. package/dist/components/number-input/styles.d.ts +0 -3
  165. package/dist/components/number-input/types.d.ts +0 -17
@@ -1,11 +1,11 @@
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"),oo=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},tt=oo(u),Q=e=>({getVariant:(n,o)=>e(n)[o]}),Et=["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"],ro={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},io={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},ao={25:"",50:"",100:"#f59dbe",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},so={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},lo={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#f27100",700:"#b54708",800:"",900:""},co={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},po={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},go={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"}},uo={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)"},xo={sm:"1024px",md:"1440px",lg:"1920px"},ho={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"},fo=["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:go,shadows:uo,breakpoints:xo,spacing:ho,palette:{primary:io,complementary:ao,error:so,info:po,warning:lo,success:co,black:"#0c111d",white:"#ffffff",gray:ro}},yo=({children:e})=>t.jsx(f.ThemeProvider,{theme:N,children:e}),F=(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=F("position",e.position),o=F("top",e.top),r=F("right",e.right),i=F("bottom",e.bottom),a=F("left",e.left),l=F("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"),oo=e=>e&&typeof e=="object"&&"default"in e?e:{default:e},tt=oo(u),Q=e=>({getVariant:(n,o)=>e(n)[o]}),Et=["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"],ro={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},io={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},ao={25:"",50:"",100:"#f59dbe",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},so={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},lo={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#f27100",700:"#b54708",800:"",900:""},co={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},po={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},go={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"}},uo={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)"},xo={sm:"1024px",md:"1440px",lg:"1920px"},ho={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"},fo=["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"],F={typography:go,shadows:uo,breakpoints:xo,spacing:ho,palette:{primary:io,complementary:ao,error:so,info:po,warning:lo,success:co,black:"#0c111d",white:"#ffffff",gray:ro}},yo=({children:e})=>t.jsx(f.ThemeProvider,{theme:F,children:e}),N=(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: ${F.spacing[a]} ${F.spacing[l]} ${F.spacing[s]} ${F.spacing[c]};`}return`padding: ${F.spacing[n]} ${F.spacing[o]} ${F.spacing[r]} ${F.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: ${F.spacing[a]} ${F.spacing[l]} ${F.spacing[s]} ${F.spacing[c]};`}return`margin: ${F.spacing[n]} ${F.spacing[o]} ${F.spacing[r]} ${F.spacing[i]};`},we=e=>{const n=N("position",e.position),o=N("top",e.top),r=N("right",e.right),i=N("bottom",e.bottom),a=N("left",e.left),l=N("z-index",e.zIndex);return`
2
2
  ${n}
3
3
  ${o}
4
4
  ${r}
5
5
  ${i}
6
6
  ${a}
7
7
  ${l}
8
- `},je=e=>{const n=F("border",e.border),o=F("border-top",e.borderTop),r=F("border-right",e.borderRight),i=F("border-bottom",e.borderBottom),a=F("border-left",e.borderLeft),l=F("border-color",e.borderColor),s=F("border-radius",e.borderRadius);return`
8
+ `},je=e=>{const n=N("border",e.border),o=N("border-top",e.borderTop),r=N("border-right",e.borderRight),i=N("border-bottom",e.borderBottom),a=N("border-left",e.borderLeft),l=N("border-color",e.borderColor),s=N("border-radius",e.borderRadius);return`
9
9
  ${n}
10
10
  ${o}
11
11
  ${r}
@@ -16,7 +16,7 @@
16
16
  `},bo=e=>e.includes("x")?"overflow-x: auto;":"",$o=e=>e.includes("y")?"overflow-y: auto;":"",ve=e=>{const n=e.scroll?`
17
17
  ${bo(e.scroll)}
18
18
  ${$o(e.scroll)}
19
- `:"",o=F("visibility",e.visibility),r=F("display",e.display),i=F("height",e.height),a=F("width",e.width),l=F("max-height",e.maxHeight),s=F("max-width",e.maxWidth),c=F("min-height",e.minHeight),d=F("min-width",e.minWidth),p=F("box-shadow",e.shadow?N.shadows[e.shadow]:void 0),g=F("gap",e.gap===void 0?void 0:N.spacing[e.gap]),x=F("background-color",e.bgColor),h=F("background",e.bgGradient),b=F("flex-direction",e.flexDirection),w=F("flex-grow",e.flexGrow),m=F("justify-content",e.justify),C=F("justify-self",e.justifySelf),j=F("align-items",e.alignItems),k=F("align-self",e.alignSelf),v=F("flex-wrap",e.wrap);return`
19
+ `:"",o=N("visibility",e.visibility),r=N("display",e.display),i=N("height",e.height),a=N("width",e.width),l=N("max-height",e.maxHeight),s=N("max-width",e.maxWidth),c=N("min-height",e.minHeight),d=N("min-width",e.minWidth),p=N("box-shadow",e.shadow?F.shadows[e.shadow]:void 0),g=N("gap",e.gap===void 0?void 0:F.spacing[e.gap]),x=N("background-color",e.bgColor),h=N("background",e.bgGradient),b=N("flex-direction",e.flexDirection),w=N("flex-grow",e.flexGrow),m=N("justify-content",e.justify),z=N("justify-self",e.justifySelf),j=N("align-items",e.alignItems),k=N("align-self",e.alignSelf),v=N("flex-wrap",e.wrap);return`
20
20
  ${n}
21
21
  ${o}
22
22
  ${r}
@@ -33,11 +33,11 @@
33
33
  ${b}
34
34
  ${w}
35
35
  ${m}
36
- ${C}
36
+ ${z}
37
37
  ${j}
38
38
  ${k}
39
39
  ${v}
40
- `},ke=e=>{const n=F("color",e.color),o=F("font-family",e.fontFamily),r=F("font-size",e.fontSize),i=F("font-weight",e.fontWeight),a=F("line-spacing",e.letterSpacing),l=F("line-height",e.lineSpacing),s=F("text-align",e.textAlign),c=F("text-decoration",e.textDecoration),d=F("text-overflow",e.textOverflow),p=F("white-space",e.whiteSpace),g=F("word-break",e.wordBreak),x=F("word-wrap",e.wordWrap);return`
40
+ `},ke=e=>{const n=N("color",e.color),o=N("font-family",e.fontFamily),r=N("font-size",e.fontSize),i=N("font-weight",e.fontWeight),a=N("line-spacing",e.letterSpacing),l=N("line-height",e.lineSpacing),s=N("text-align",e.textAlign),c=N("text-decoration",e.textDecoration),d=N("text-overflow",e.textOverflow),p=N("white-space",e.whiteSpace),g=N("word-break",e.wordBreak),x=N("word-wrap",e.wordWrap);return`
41
41
  ${n}
42
42
  ${o}
43
43
  ${r}
@@ -50,7 +50,7 @@
50
50
  ${p}
51
51
  ${g}
52
52
  ${x}
53
- `},Ce=e=>{const n=F("cursor",e.cursor),o=F("border-color",e.borderColorHover),r=F("background-color",e.bgColorHover),i=F("box-shadow",e.shadowHover===void 0?void 0:N.shadows[e.shadowHover]),a=F("transition",e.transition);return`
53
+ `},Ce=e=>{const n=N("cursor",e.cursor),o=N("border-color",e.borderColorHover),r=N("background-color",e.bgColorHover),i=N("box-shadow",e.shadowHover===void 0?void 0:F.shadows[e.shadowHover]),a=N("transition",e.transition);return`
54
54
  ${n}
55
55
 
56
56
  &:hover {
@@ -108,7 +108,7 @@
108
108
  ${r};
109
109
  }
110
110
  `}
111
- `,$=u.forwardRef(function({as:n="div",center:o,children:r,id:i,onHover:a,onLeave:l,styleMd:s,styleSm:c,...d},p){return t.jsx(mo,{$center:o,$styleMd:s,$styleSm:c,as:n,id:i,onMouseLeave:l,onMouseOver:a,ref:p,...d,children:r})}),Rt=(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}},wo=f.styled(ot)`
111
+ `,$=u.forwardRef(function({as:n="div",center:o,children:r,id:i,onHover:a,onLeave:l,styleMd:s,styleSm:c,...d},p){return t.jsx(mo,{$center:o,$styleMd:s,$styleSm:c,as:n,id:i,onMouseLeave:l,onMouseOver:a,ref:p,...d,children:r})}),Dt=(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}},wo=f.styled(ot)`
112
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:d,$textFill:p="unset",$whiteSpace:g="pre-line",$wordBreak:x="normal"})=>`
113
113
  background: ${n};
114
114
  color: ${o};
@@ -117,7 +117,7 @@
117
117
  font-size: ${e.typography.heading[c]};
118
118
  font-weight: ${e.typography.weight[a]};
119
119
  letter-spacing: ${l};
120
- line-height: ${e.spacing[Rt(c,!0)]};
120
+ line-height: ${e.spacing[Dt(c,!0)]};
121
121
  overflow: ${s};
122
122
  width: ${r==="block"?"100%":"auto"};
123
123
  white-space: ${g};
@@ -133,7 +133,7 @@
133
133
  font-size: ${e.typography.heading[d??c]};
134
134
  }
135
135
  `}
136
- `,Dt=f.styled(ot)`
136
+ `,Rt=f.styled(ot)`
137
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:d,$sizeMd:p,$textFill:g="unset",$whiteSpace:x="pre-line",$wordBreak:h="normal"})=>`
138
138
  background: ${n};
139
139
  color: ${o};
@@ -143,7 +143,7 @@
143
143
  font-style: ${l};
144
144
  font-weight: ${e.typography.weight[a]};
145
145
  letter-spacing: ${s};
146
- line-height: ${e.spacing[Rt(d)]};
146
+ line-height: ${e.spacing[Dt(d)]};
147
147
  overflow: ${c};
148
148
  width: ${r==="block"?"100%":"auto"};
149
149
  white-space: ${x};
@@ -172,7 +172,7 @@
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:d,lineSpacingSm:p,overflow:g,size:x,sizeMd:h,sizeSm:b,textFill:w,whiteSpace:m,wordBreak:C,...j},k){return t.jsx(wo,{$bgGradient:n,$color:i,$display:a,$fontFamily:l,$fontWeight:s,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$overflow:g,$size:x,$sizeMd:h,$sizeSm:b,$textFill:w,$whiteSpace:m,$wordBreak:C,className:r,ref:k,...j,children:o})}),he=u.forwardRef(function({children:n,color:o,content:r,display:i,fontFamily:a,fontWeight:l,letterSpacing:s,lineSpacing:c,lineSpacingSm:d,size:p,sizeMd:g,sizeSm:x,...h},b){return t.jsx(jo,{$color:o,$content:r,$display:i,$fontFamily:a,$fontWeight:l,$letterSpacing:s,$lineSpacing:c,$lineSpacingSm:d,$size:p,$sizeMd:g,$sizeSm:x,ref:b,...h,children:n})}),E=u.forwardRef(function({bgGradient:n,children:o,className:r,color:i,display:a,fontFamily:l,fontWeight:s,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,overflow:g,size:x,sizeMd:h,sizeSm:b,textFill:w,whiteSpace:m,wordBreak:C,fontStyle:j,...k},v){return t.jsx(Dt,{$bgGradient:n,$color:i,$display:a,$fontFamily:l,$fontStyle:j,$fontWeight:s,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$overflow:g,$size:x,$sizeMd:h,$sizeSm:b,$textFill:w,$whiteSpace:m,$wordBreak:C,className:r,ref:v,...k,children:o})}),Nt=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(E,{mb:e.extraElement?.5:void 0,size:"md",children:e.description}):e.description??void 0;return t.jsxs($,{display:"block",id:`panel-${e.title}`,padding:[.875,.875,.875,.875],children:[n,e.extraElement?t.jsx($,{children:e.extraElement}):void 0]})},Ve={xl:"24px",lg:"16px",md:"14px",sm:"12px",xs:"10px"},vo=e=>Ve[e]?Ve[e]:typeof e=="string"&&e.includes("px")?e:Ve.md,ko=f.styled(rt)`
175
+ `,ee=u.forwardRef(function({bgGradient:n,children:o,className:r,color:i,display:a,fontFamily:l,fontWeight:s,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,overflow:g,size:x,sizeMd:h,sizeSm:b,textFill:w,whiteSpace:m,wordBreak:z,...j},k){return t.jsx(wo,{$bgGradient:n,$color:i,$display:a,$fontFamily:l,$fontWeight:s,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$overflow:g,$size:x,$sizeMd:h,$sizeSm:b,$textFill:w,$whiteSpace:m,$wordBreak:z,className:r,ref:k,...j,children:o})}),he=u.forwardRef(function({children:n,color:o,content:r,display:i,fontFamily:a,fontWeight:l,letterSpacing:s,lineSpacing:c,lineSpacingSm:d,size:p,sizeMd:g,sizeSm:x,...h},b){return t.jsx(jo,{$color:o,$content:r,$display:i,$fontFamily:a,$fontWeight:l,$letterSpacing:s,$lineSpacing:c,$lineSpacingSm:d,$size:p,$sizeMd:g,$sizeSm:x,ref:b,...h,children:n})}),E=u.forwardRef(function({bgGradient:n,children:o,className:r,color:i,display:a,fontFamily:l,fontWeight:s,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,overflow:g,size:x,sizeMd:h,sizeSm:b,textFill:w,whiteSpace:m,wordBreak:z,fontStyle:j,...k},v){return t.jsx(Rt,{$bgGradient:n,$color:i,$display:a,$fontFamily:l,$fontStyle:j,$fontWeight:s,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$overflow:g,$size:x,$sizeMd:h,$sizeSm:b,$textFill:w,$whiteSpace:m,$wordBreak:z,className:r,ref:v,...k,children:o})}),Ft=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(E,{mb:e.extraElement?.5:void 0,size:"md",children:e.description}):e.description??void 0;return t.jsxs($,{display:"block",id:`panel-${e.title}`,padding:[.875,.875,.875,.875],children:[n,e.extraElement?t.jsx($,{children:e.extraElement}):void 0]})},Ve={xl:"24px",lg:"16px",md:"14px",sm:"12px",xs:"10px"},vo=e=>Ve[e]?Ve[e]:typeof e=="string"&&e.includes("px")?e:Ve.md,ko=f.styled(rt)`
176
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`
177
177
  color: ${n};
178
178
  cursor: ${e?"pointer":"inherit"};
@@ -208,7 +208,7 @@
208
208
  &:hover:not([disabled]) {
209
209
  transform: scale(1.2);
210
210
  }
211
- `;const R=u.forwardRef(function({clickable:n,disabled:o,hoverColor:r,icon:i,iconClass:a="",iconColor:l,iconMask:s,iconSize:c,iconTransform:d,iconType:p="fa-solid",onClick:g,rotation:x,spanClass:h,secondaryColor:b,...w},m){return t.jsx(ko,{$clickable:n,$color:l,$disabled:o,$hoverColor:r,$rotation:x,$secondaryColor:b,$size:c,className:h,"data-testid":`${i}-icon`,onClick:g,ref:m,...w,children:t.jsx("i",{className:`${p} fa-${i} ${a}`,...s!==void 0?{"data-fa-mask":s}:{},...d!==void 0?{"data-fa-transform":d}:{}})},`${p}-${i}`)}),Co=u.forwardRef(function({aligned:n="end",items:o,bgColor:r},i){const a=f.useTheme(),[l,s]=u.useState(o.map(d=>d.expanded??!1)),c=u.useCallback(d=>p=>{p.preventDefault(),s(g=>g.map((x,h)=>h===d?!x:x))},[]);return t.jsx($,{borderColor:a.palette.gray[200],borderTop:"1px solid",ref:i,children:o.map((d,p)=>{const g=l[p];return t.jsxs($,{bgColor:r??a.palette.white,borderBottom:"1px solid",borderColor:a.palette.gray[200],children:[t.jsx($,{"aria-controls":`panel-${d.title}`,"aria-expanded":g,"aria-label":d.title,as:"button",bgColor:r??a.palette.white,bgColorHover:a.palette.gray[100],cursor:"pointer",display:"flex",onClick:c(p),padding:[.875,.875,.875,.875],width:"100%",children:t.jsxs($,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(E,{color:a.palette.gray[800],fontWeight:"bold",size:"md",textAlign:"start",children:d.title}),t.jsx(R,{icon:g?"chevron-up":"chevron-down",iconColor:a.palette.gray[400],iconSize:"lg",iconType:"fa-light"})]})}),g&&t.jsx(Nt,{item:d})]},d.title)})})}),So=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:zo}=Q(e=>({error:`
211
+ `;const D=u.forwardRef(function({clickable:n,disabled:o,hoverColor:r,icon:i,iconClass:a="",iconColor:l,iconMask:s,iconSize:c,iconTransform:d,iconType:p="fa-solid",onClick:g,rotation:x,spanClass:h,secondaryColor:b,...w},m){return t.jsx(ko,{$clickable:n,$color:l,$disabled:o,$hoverColor:r,$rotation:x,$secondaryColor:b,$size:c,className:h,"data-testid":`${i}-icon`,onClick:g,ref:m,...w,children:t.jsx("i",{className:`${p} fa-${i} ${a}`,...s!==void 0?{"data-fa-mask":s}:{},...d!==void 0?{"data-fa-transform":d}:{}})},`${p}-${i}`)}),Co=u.forwardRef(function({aligned:n="end",items:o,bgColor:r},i){const a=f.useTheme(),[l,s]=u.useState(o.map(d=>d.expanded??!1)),c=u.useCallback(d=>p=>{p.preventDefault(),s(g=>g.map((x,h)=>h===d?!x:x))},[]);return t.jsx($,{borderColor:a.palette.gray[200],borderTop:"1px solid",ref:i,children:o.map((d,p)=>{const g=l[p];return t.jsxs($,{bgColor:r??a.palette.white,borderBottom:"1px solid",borderColor:a.palette.gray[200],children:[t.jsx($,{"aria-controls":`panel-${d.title}`,"aria-expanded":g,"aria-label":d.title,as:"button",bgColor:r??a.palette.white,bgColorHover:a.palette.gray[100],cursor:"pointer",display:"flex",onClick:c(p),padding:[.875,.875,.875,.875],width:"100%",children:t.jsxs($,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(E,{color:a.palette.gray[800],fontWeight:"bold",size:"md",textAlign:"start",children:d.title}),t.jsx(D,{icon:g?"chevron-up":"chevron-down",iconColor:a.palette.gray[400],iconSize:"lg",iconType:"fa-light"})]})}),g&&t.jsx(Ft,{item:d})]},d.title)})})}),So=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:zo}=Q(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]};
@@ -359,7 +359,7 @@
359
359
  background-color: ${e.palette.primary[500]};
360
360
  color: ${e.palette.white};
361
361
  }
362
- `})),Ft=f.styled(nt)`
362
+ `})),Nt=f.styled(nt)`
363
363
  ${({theme:e,justify:n,$variant:o})=>`
364
364
  align-items: center;
365
365
  border-radius: var(--btn-spacing);
@@ -383,7 +383,7 @@
383
383
 
384
384
  ${Eo(e,o??"primary")}
385
385
  `}
386
- `,Ro=f.styled(Ft)`
386
+ `,Do=f.styled(Nt)`
387
387
  ${({theme:e,disabled:n,borderRadius:o="4px",px:r=.5,py:i=.5,$variant:a})=>`
388
388
  --btn-spacing: ${o};
389
389
  --btn-padding-x: ${e.spacing[r]};
@@ -399,7 +399,7 @@
399
399
  ${n?`color: ${e.palette.gray[300]};`:""}
400
400
  }
401
401
  `}
402
- `,Do=f.styled(ze)``,No=f.styled.div`
402
+ `,Ro=f.styled(ze)``,Fo=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
- `,Fo=f.styled.div`
413
+ `,No=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
- `,Y=({children:e,disabled:n=!1,display:o="inline-block",height:r,icon:i,iconColor:a,iconSize:l,id:s,maxWidth:c,nodeTip:d,place:p="bottom",tip:g="",title:x="",hide:h=g===""&&x===""&&d===void 0,width:b})=>{const w=f.useTheme(),[m,C]=u.useState(!1),{refs:j,floatingStyles:k,context:v,placement:S}=y.useFloating({middleware:[y.flip({fallbackAxisSideDirection:"start"}),y.offset({mainAxis:10}),y.shift()],onOpenChange:C,open:m,placement:p,whileElementsMounted:y.autoUpdate}),T=y.useHover(v,{delay:{close:0,open:500},move:!1}),D=y.useFocus(v),z=y.useRole(v,{role:i?"label":"tooltip"}),{getReferenceProps:A,getFloatingProps:I}=y.useInteractions([T,D,z]),L=u.useMemo(()=>S.startsWith("top")?"top":S.startsWith("bottom")?"bottom":S.startsWith("left")?"left":S.startsWith("right")?"right":"bottom",[S]);return n?t.jsx(u.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(Do,{...A(),display:o,height:r,id:s,ref:j.setReference,width:b,children:i?t.jsx(R,{clickable:!0,disabled:n,icon:i,iconColor:a,iconSize:l??"sm",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&le.createPortal(t.jsxs(No,{...I(),$maxWidth:c,id:`floating-${s}`,ref:j.setFloating,style:k,children:[y.lodashExports.isEmpty(x)?void 0:t.jsx(E,{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(E,{color:w.palette.gray[100],size:"sm",textAlign:"start",whiteSpace:"normal",wordWrap:"break-word",children:g}),y.lodashExports.isEmpty(d)?void 0:d,t.jsx(Fo,{$placement:L,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:d="center",onClick:p,px:g,py:x,type:h="button",tooltip:b,tooltipPlace:w,value:m,variant:C="primary",...j},k){const v=t.jsx(Ro,{$variant:C,"aria-disabled":o,"aria-label":c,borderRadius:n,disabled:o,id:c,justify:d,onClick:p,px:g,py:x,ref:k,type:h,value:m,...j,children:t.jsx(R,{clickable:!1,icon:r,iconColor:i,iconSize:a,iconTransform:l,iconType:s})}),T=(h+(C??"")+(c??r)).replace(/ /u,"_");return b===void 0?v:t.jsx(Y,{id:`${T}-tooltip`,place:w,tip:b,children:v})}),Lo=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:d,...p},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($,{display:x?"block":"none",ref:g,role:"alert",...p,children:t.jsxs(To,{$variant:c,id:d,children:[i?t.jsx(R,{clickable:!1,icon:So(c),iconSize:"lg",iconType:"fa-light"}):void 0,t.jsx(Io,{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]})})}),yt=f.styled.div`
438
+ `,K=({children:e,disabled:n=!1,display:o="inline-block",height:r,icon:i,iconColor:a,iconSize:l,id:s,maxWidth:c,nodeTip:d,place:p="bottom",tip:g="",title:x="",hide:h=g===""&&x===""&&d===void 0,width:b})=>{const w=f.useTheme(),[m,z]=u.useState(!1),{refs:j,floatingStyles:k,context:v,placement:C}=y.useFloating({middleware:[y.flip({fallbackAxisSideDirection:"start"}),y.offset({mainAxis:10}),y.shift()],onOpenChange:z,open:m,placement:p,whileElementsMounted:y.autoUpdate}),T=y.useHover(v,{delay:{close:0,open:500},move:!1}),R=y.useFocus(v),S=y.useRole(v,{role:i?"label":"tooltip"}),{getReferenceProps:A,getFloatingProps:I}=y.useInteractions([T,R,S]),L=u.useMemo(()=>C.startsWith("top")?"top":C.startsWith("bottom")?"bottom":C.startsWith("left")?"left":C.startsWith("right")?"right":"bottom",[C]);return n?t.jsx(u.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(Ro,{...A(),display:o,height:r,id:s,ref:j.setReference,width:b,children:i?t.jsx(D,{clickable:!0,disabled:n,icon:i,iconColor:a,iconSize:l??"sm",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&le.createPortal(t.jsxs(Fo,{...I(),$maxWidth:c,id:`floating-${s}`,ref:j.setFloating,style:k,children:[y.lodashExports.isEmpty(x)?void 0:t.jsx(E,{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(E,{color:w.palette.gray[100],size:"sm",textAlign:"start",whiteSpace:"normal",wordWrap:"break-word",children:g}),y.lodashExports.isEmpty(d)?void 0:d,t.jsx(No,{$placement:L,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:d="center",onClick:p,px:g,py:x,type:h="button",tooltip:b,tooltipPlace:w,value:m,variant:z="primary",...j},k){const v=t.jsx(Do,{$variant:z,"aria-disabled":o,"aria-label":c,borderRadius:n,disabled:o,id:c,justify:d,onClick:p,px:g,py:x,ref:k,type:h,value:m,...j,children:t.jsx(D,{clickable:!1,icon:r,iconColor:i,iconSize:a,iconTransform:l,iconType:s})}),T=(h+(z??"")+(c??r)).replace(/ /u,"_");return b===void 0?v:t.jsx(K,{id:`${T}-tooltip`,place:w,tip:b,children:v})}),Lo=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:d,...p},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($,{display:x?"block":"none",ref:g,role:"alert",...p,children:t.jsxs(To,{$variant:c,id:d,children:[i?t.jsx(D,{clickable:!1,icon:So(c),iconSize:"lg",iconType:"fa-light"}):void 0,t.jsx(Io,{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]})})}),yt=f.styled.div`
439
439
  ${({theme:e})=>`
440
440
  align-items: center;
441
441
  background-color: ${e.palette.gray[200]};
@@ -536,7 +536,7 @@
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
- `,De=u.forwardRef(function({numberIndicator:n,show:o,variant:r="error",...i},a){return t.jsx(Po,{$numberIndicator:n,$variant:r,className:o?"flex":"hidden","data-testid":"notification-sign",ref:a,...i,children:n&&t.jsx(Oo,{children:n<=9?n:9})})}),{getVariant:Mo}=Q(e=>({default:`
539
+ `,Re=u.forwardRef(function({numberIndicator:n,show:o,variant:r="error",...i},a){return t.jsx(Po,{$numberIndicator:n,$variant:r,className:o?"flex":"hidden","data-testid":"notification-sign",ref:a,...i,children:n&&t.jsx(Oo,{children:n<=9?n:9})})}),{getVariant:Mo}=Q(e=>({default:`
540
540
  background-color: ${e.palette.gray[200]};
541
541
  color: ${e.palette.gray[800]};
542
542
  `,error:`
@@ -679,7 +679,7 @@
679
679
  ${Lt}
680
680
  `,_o=f.styled(Ge.Link)`
681
681
  ${Lt}
682
- `,te=({children:e,color:n,download:o,href:r,iconPosition:i="right",onClick:a,target:l,variant:s="lowRelevance",wrap:c=!1})=>{const d=r.startsWith("https://"),p=t.jsx(R,{icon:o===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"sm",iconType:"fa-light",ml:.25,mr:.25});return d?t.jsxs(Bo,{$color:n,$variant:s,$wrap:c,download:o,href:r,onClick:a,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[i==="left"?p:void 0,e,i==="right"?p:void 0]}):t.jsxs(_o,{$variant:s,$wrap:c,download:o,onClick:a,rel:"nofollow noopener noreferrer",target:l,to:r,children:[l!==void 0&&i==="left"?p:void 0,e,l!==void 0&&i==="right"?p: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:d,priority:p="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(Wo,{$fontSize:l,$variant:h,className:p,children:[n&&t.jsx(R,{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})]}),d?t.jsx(H,{disabled:e,icon:"xmark",iconSize:"sm",iconType:"fa-light",id:i,onClick:d,px:.125,py:.125,variant:"ghost"}):void 0]}),s===void 0?void 0:t.jsx(te,{href:s,children:c})]})},At=(e,n=!0)=>{const o=window.open(e,n?void 0:"_self","noopener,noreferrer,");y.lodashExports.isObject(o)&&(o.opener=null)},O=u.forwardRef(function({children:n,disabled:o=!1,external:r=!1,href:i,id:a,icon:l,iconColor:s,iconType:c,name:d,dotNotification:p,notification:g,onClick:x,rightIcon:h,tag:b,type:w="button",tooltip:m,tooltipPlace:C="bottom",underline:j=!1,value:k,variant:v="primary",width:S,...T},D){const z=m!==void 0,A=`${a}-tooltip`,I=u.useCallback(()=>{i&&At(i,r)},[r,i]),L=t.jsxs(Ft,{$variant:v,"aria-disabled":o,className:j?"underline":void 0,disabled:o,id:a,name:d,onClick:v==="link"?I:x,ref:D,type:w,value:k,width:S,...z?{"data-tooltip-id":A}:{},...T,children:[p&&v==="ghost"&&!o?t.jsx(De,{left:l!==void 0?"13%":"1%",show:!0,top:"20%",variant:"error"}):void 0,l!==void 0&&t.jsx(R,{icon:l,iconColor:s??void 0,iconSize:"lg",iconType:c??"fa-light"}),n,h||v==="link"?t.jsx(R,{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(De,{numberIndicator:g,show:!0,variant:"error"}):void 0]});return z?t.jsx(Y,{disabled:!z,id:A,place:C,tip:m,width:S,children:L}):L}),Vo=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($,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs($,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[s?t.jsxs(O,{onClick:o,px:.5,py:.5,variant:"ghost",children:[t.jsx(yt,{children:r[0].toUpperCase()}),a?t.jsx(E,{color:c.palette.gray[800],display:"inline",ml:.5,size:"md",children:r.split(" ")[0]}):void 0,i?t.jsx(R,{clickable:!1,icon:"ellipsis-v",iconSize:"xs",ml:.5}):void 0]}):t.jsxs($,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(yt,{children:r[0].toUpperCase()}),a?t.jsxs(E,{color:c.palette.gray[800],display:"inline",ml:.5,size:"md",children:["Hi ",r.split(" ")[0],"!"]}):void 0,i?t.jsx(R,{clickable:!1,icon:"ellipsis-v",iconSize:"xs",ml:.5}):void 0]}),t.jsx(Ao,{children:n})]})})}),Le=({authorEmail:e,date:n,description:o,descriptionColor:r,id:i,title:a,titleColor:l,textAlign:s,textSpacing:c=0,tooltip:d})=>{const p=f.useTheme();return t.jsxs($,{width:"100%",children:[typeof a=="string"||d?t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,width:"100%",children:[typeof a=="string"?t.jsx(E,{color:l??p.palette.gray[800],fontWeight:"bold",mb:c,size:"md",textAlign:s,wordBreak:"break-word",children:a}):a,d&&t.jsx(Y,{icon:"circle-info",id:i,place:"top",tip:d})]}):void 0,t.jsxs($,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[o&&t.jsx(E,{color:r??p.palette.gray[800],fontWeight:o===void 0?"bold":"regular",size:"md",textAlign:s,wordBreak:"break-word",children:o}),n&&t.jsx(E,{color:p.palette.gray[800],fontWeight:"bold",size:"md",textAlign:s,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(E,{color:p.palette.gray[800],fontWeight:"bold",size:"md",textAlign:s,wordBreak:"break-word",children:`Author: ${e}`})]})]})},bt=f.styled($).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
682
+ `,te=({children:e,color:n,download:o,href:r,iconPosition:i="right",onClick:a,target:l,variant:s="lowRelevance",wrap:c=!1})=>{const d=r.startsWith("https://"),p=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 d?t.jsxs(Bo,{$color:n,$variant:s,$wrap:c,download:o,href:r,onClick:a,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[i==="left"?p:void 0,e,i==="right"?p:void 0]}):t.jsxs(_o,{$variant:s,$wrap:c,download:o,onClick:a,rel:"nofollow noopener noreferrer",target:l,to:r,children:[l!==void 0&&i==="left"?p:void 0,e,l!==void 0&&i==="right"?p: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:d,priority:p="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(Wo,{$fontSize:l,$variant:h,className:p,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})]}),d?t.jsx(H,{disabled:e,icon:"xmark",iconSize:"sm",iconType:"fa-light",id:i,onClick:d,px:.125,py:.125,variant:"ghost"}):void 0]}),s===void 0?void 0:t.jsx(te,{href:s,children:c})]})},At=(e,n=!0)=>{const o=window.open(e,n?void 0:"_self","noopener,noreferrer,");y.lodashExports.isObject(o)&&(o.opener=null)},O=u.forwardRef(function({children:n,disabled:o=!1,external:r=!1,href:i,id:a,icon:l,iconColor:s,iconType:c,name:d,dotNotification:p,notification:g,onClick:x,rightIcon:h,tag:b,type:w="button",tooltip:m,tooltipPlace:z="bottom",underline:j=!1,value:k,variant:v="primary",width:C,...T},R){const S=m!==void 0,A=`${a}-tooltip`,I=u.useCallback(()=>{i&&At(i,r)},[r,i]),L=t.jsxs(Nt,{$variant:v,"aria-disabled":o,className:j?"underline":void 0,disabled:o,id:a,name:d,onClick:v==="link"?I:x,ref:R,type:w,value:k,width:C,...S?{"data-tooltip-id":A}:{},...T,children:[p&&v==="ghost"&&!o?t.jsx(Re,{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(Re,{numberIndicator:g,show:!0,variant:"error"}):void 0]});return S?t.jsx(K,{disabled:!S,id:A,place:z,tip:m,width:C,children:L}):L}),Vo=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($,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs($,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[s?t.jsxs(O,{onClick:o,px:.5,py:.5,variant:"ghost",children:[t.jsx(yt,{children:r[0].toUpperCase()}),a?t.jsx(E,{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($,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(yt,{children:r[0].toUpperCase()}),a?t.jsxs(E,{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(Ao,{children:n})]})})}),Le=({authorEmail:e,date:n,description:o,descriptionColor:r,id:i,title:a,titleColor:l,textAlign:s,textSpacing:c=0,tooltip:d})=>{const p=f.useTheme();return t.jsxs($,{width:"100%",children:[typeof a=="string"||d?t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,width:"100%",children:[typeof a=="string"?t.jsx(E,{color:l??p.palette.gray[800],fontWeight:"bold",mb:c,size:"md",textAlign:s,wordBreak:"break-word",children:a}):a,d&&t.jsx(K,{icon:"circle-info",id:i,place:"top",tip:d})]}):void 0,t.jsxs($,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[o&&t.jsx(E,{color:r??p.palette.gray[800],fontWeight:o===void 0?"bold":"regular",size:"md",textAlign:s,wordBreak:"break-word",children:o}),n&&t.jsx(E,{color:p.palette.gray[800],fontWeight:"bold",size:"md",textAlign:s,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(E,{color:p.palette.gray[800],fontWeight:"bold",size:"md",textAlign:s,wordBreak:"break-word",children:`Author: ${e}`})]})]})},bt=f.styled($).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
683
683
  & img {
684
684
  display: block;
685
685
  }
@@ -694,7 +694,7 @@
694
694
  pointer-events: none;
695
695
  ${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
696
696
  }
697
- `,Uo=e=>{if(y._.isNil(e))return"";const n=e.split(".");return(n.length>1?y._.last(n):"").toLowerCase()},Go=(e,n)=>y._.isUndefined(n)?!1:y._.includes(e,Uo(n)),Pt=({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}),d=u.useCallback(p=>{if(!l)return;const g=p.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"||Go(["webm"],i)?t.jsx(bt,{$opacity:r,children:t.jsx(te,{href:i,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:d,style:{height:a,width:o},children:[t.jsx("source",{src:i,type:"video/webm"}),i]})})}):t.jsx(bt,{$opacity:r,children:t.jsx("img",{alt:e,src:i,style:{height:a,width:o}})})},Yo=({alt:e,authorEmail:n,date:o,description:r,src:i,children:a,isEditing:l,onClick:s,title:c,hideDescription:d=!1,headerType:p="image",showMaximize:g=!0,videoViewStatus:x})=>{const h=f.useTheme(),[b,w]=u.useState(!1),m=u.useCallback(()=>{w(!0)},[]),C=u.useCallback(()=>{w(!1)},[]);return t.jsxs($,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:m,onLeave:C,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx($,{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(Pt,{alt:e,fileType:p,height:"147px",opacity:b?.3:0,src:i,videoViewStatus:x,width:"100%"}),g?t.jsx($,{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}),d?null:t.jsx(Le,{authorEmail:n,date:o,description:r,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:c})]})},Ko=f.styled.div`
697
+ `,Uo=e=>{if(y._.isNil(e))return"";const n=e.split(".");return(n.length>1?y._.last(n):"").toLowerCase()},Go=(e,n)=>y._.isUndefined(n)?!1:y._.includes(e,Uo(n)),Pt=({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}),d=u.useCallback(p=>{if(!l)return;const g=p.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"||Go(["webm"],i)?t.jsx(bt,{$opacity:r,children:t.jsx(te,{href:i,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:d,style:{height:a,width:o},children:[t.jsx("source",{src:i,type:"video/webm"}),i]})})}):t.jsx(bt,{$opacity:r,children:t.jsx("img",{alt:e,src:i,style:{height:a,width:o}})})},Yo=({alt:e,authorEmail:n,date:o,description:r,src:i,children:a,isEditing:l,onClick:s,title:c,hideDescription:d=!1,headerType:p="image",showMaximize:g=!0,videoViewStatus:x})=>{const h=f.useTheme(),[b,w]=u.useState(!1),m=u.useCallback(()=>{w(!0)},[]),z=u.useCallback(()=>{w(!1)},[]);return t.jsxs($,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:m,onLeave:z,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx($,{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(Pt,{alt:e,fileType:p,height:"147px",opacity:b?.3:0,src:i,videoViewStatus:x,width:"100%"}),g?t.jsx($,{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}),d?null:t.jsx(Le,{authorEmail:n,date:o,description:r,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:c})]})},Ko=f.styled.div`
698
698
  ${({theme:e,$align:n="center",$minWidth:o="auto",$minHeight:r="auto"})=>`
699
699
  display: flex;
700
700
  background-color: ${e.palette.white};
@@ -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(R,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xs",spanClass:"required-icon"}),c?t.jsx(Y,{display:"inline-flex",icon:"circle-info",id:s,place:"top",tip:i}):null,o?t.jsx(te,{href:o,target:"_blank"}):null]})},Zo=f.styled.div`
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]})},Zo=f.styled.div`
717
717
  ${({theme:e})=>`
718
718
  align-items: flex-start;
719
719
  display: inline-flex;
@@ -777,6 +777,7 @@
777
777
  width: ${o==="compact"?"110px":"100%"};
778
778
  font-size: ${e.typography.text.md};
779
779
 
780
+ font-family: ${e.typography.type.primary};
780
781
  input, textarea {
781
782
  background: inherit;
782
783
  color: ${e.palette.gray[800]};
@@ -894,7 +895,7 @@
894
895
  line-height: 18px;
895
896
  text-align: left;
896
897
  `}
897
- `,K=({children:e,disabled:n,id:o,error:r,helpLink:i,helpLinkText:a="Link here",helpText:l,htmlFor:s,label:c,linkPosition:d="down",maxLength:p,required:g,tooltip:x,value:h,weight:b})=>{const w=f.useTheme(),m=h?h.length:0;return t.jsxs(Zo,{id:o,children:[c===void 0?void 0:t.jsx(it,{htmlFor:s,label:c,link:d==="up"?i:void 0,required:g,tooltip:x,weight:b}),e,r||p?t.jsxs($,{display:"flex",justify:r===void 0?"end":"space-between",width:"100%",children:[r&&t.jsx(E,{className:"error-msg",color:w.palette.error[500],display:"block",size:"md",children:r}),p&&t.jsx(X,{priority:"low",tagLabel:`${m}/${p}`,variant:n?"inactive":"error"})]}):void 0,l||i?t.jsxs($,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[l&&t.jsxs(t.Fragment,{children:[t.jsx(R,{icon:"circle-info",iconColor:w.palette.gray[400],iconSize:"sm",iconType:"fa-light"}),t.jsx(E,{color:w.palette.gray[400],display:"inline-block",size:"md",children:l})]}),i&&d==="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),d=(x=a==null?void 0:a.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:p}=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",{...p,className:e,id:"popover",onPointerDown:o?g:void 0,ref:r??c,style:{...p.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:d==null?void 0:d.width}:{}},children:n})})},Jo=f.styled.ul`
898
+ `,Y=({children:e,disabled:n,id:o,error:r,helpLink:i,helpLinkText:a="Link here",helpText:l,htmlFor:s,label:c,linkPosition:d="down",maxLength:p,required:g,tooltip:x,value:h,weight:b})=>{const w=f.useTheme(),m=h?h.length:0;return t.jsxs(Zo,{id:o,children:[c===void 0?void 0:t.jsx(it,{htmlFor:s,label:c,link:d==="up"?i:void 0,required:g,tooltip:x,weight:b}),e,r||p?t.jsxs($,{display:"flex",justify:r===void 0?"end":"space-between",width:"100%",children:[r&&t.jsx(E,{className:"error-msg",color:w.palette.error[500],display:"block",size:"md",children:r}),p&&t.jsx(X,{priority:"low",tagLabel:`${m}/${p}`,variant:n?"inactive":"error"})]}):void 0,l||i?t.jsxs($,{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(E,{color:w.palette.gray[400],display:"inline-block",size:"md",children:l})]}),i&&d==="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),d=(x=a==null?void 0:a.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:p}=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",{...p,className:e,id:"popover",onPointerDown:o?g:void 0,ref:r??c,style:{...p.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:d==null?void 0:d.width}:{}},children:n})})},Jo=f.styled.ul`
898
899
  ${({theme:e,$multiSelection:n})=>`
899
900
  align-self: center;
900
901
  background: ${e.palette.white};
@@ -1029,7 +1030,7 @@
1029
1030
  fill: ${e.palette.white};
1030
1031
  }
1031
1032
  `}
1032
- `,ie=u.forwardRef(function({checked:n,disabled:o=!1,label:r,name:i,onChange:a,onClick:l,onFocus:s,onKeyDown:c,tooltip:d,value:p,...g},x){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(er,{"aria-disabled":o,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":o,"aria-hidden":!1,"aria-label":i,checked:n,"data-testid":r??p,disabled:o,id:i,name:i,onChange:a,onClick:l,onFocus:s,onKeyDown:c,ref:x,type:"checkbox",value:p,...g}),t.jsx(R,{disabled:o,icon:"check",iconSize:"xl"}),r??p]}),d===void 0?void 0:t.jsx(Y,{icon:"circle-info",id:d,place:"right",tip:d})]})}),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])},Ot=({item:e,multiSelection:n,name:o,register:r,setInputValue:i,setValue:a,state:l,watch:s})=>{var D,z,A;const c=f.useTheme(),d=u.useRef(null),p=e.props.hrefLang,g=l.disabledKeys,x=Array.from(l.collection.getKeys()).filter(I=>!Array.from(g).includes(I)&&I!=="All"),{optionProps:h,isSelected:b,isFocused:w,isDisabled:m}=y.$293f70390ea03370$export$497855f14858aa34({key:e.key},l,d),C=[b?"selected":"",w?"focused":"",m?"disabled":""].join(" "),j=u.useCallback(I=>{i(""),a==null||a(`${o}Options`,""),I.currentTarget.checked&&(i(I.currentTarget.value),a==null||a(`${o}Options`,x))},[x,o,i,a]),k=u.useCallback(()=>{const I=s==null?void 0:s(`${o}Options`),L=typeof I=="string"?[I]:I;y.isEqual(x,L)&&!Array.from(g).includes("All")?(a==null||a("checkAll","All vulnerability types"),i("All vulnerability types")):(a==null||a("checkAll",""),i((L==null?void 0:L.length)<=2?L.join(", "):`${L.slice(0,2).join(", ")+`, +${L.length-2} more`}`))},[g,x,o,i,a,s]),v=e.key==="All"?t.jsx(ie,{...r==null?void 0:r("checkAll",{onChange:j}),label:(D=e.rendered)==null?void 0:D.toString(),name:"checkAll",value:(z=e.rendered)==null?void 0:z.toString()}):t.jsx(ie,{...r==null?void 0:r(`${o}Options`,{onChange:k}),label:(A=e.rendered)==null?void 0:A.toString(),name:`${o}Options`,value:e.key.toString()}),S=n&&!m?v:t.jsx(E,{color:c.palette.gray[800],size:"md",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),T=u.useCallback(I=>{var L;I.preventDefault(),i(((L=e.rendered)==null?void 0:L.toString())??""),l.setSelectedKey(e.key),setTimeout(()=>{l.setOpen(!1)},50),At(p)},[p,e.key,e.rendered,l,i]);return ne(document.getElementsByClassName("dropdown")[0],()=>{n&&l.close()},!0,document.getElementById("combobox")),t.jsxs(Qo,{...!n&&!p?h:{},$multiSelection:n,className:C,ref:d,children:[p?t.jsx(te,{href:p,onClick:T,children:S}):S,b&&!m&&!n?t.jsx(R,{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:d,multiSelection:p=!1,items:g,onBlur:x,onChange:h,placeholder:b,register:w,required:m,setValue:C,tooltip:j,value:k,watch:v,weight:S})=>{var ht;const T=f.useTheme(),D=n?void 0:r,z=(e==null?void 0:e.value)??k,[A,I]=u.useState(((ht=g.find(P=>P.value===z))==null?void 0:ht.name)??""),[L,M]=u.useState(z),[B,V]=u.useState(g),[_,W]=u.useState(!1),{contains:J}=y.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),ce=u.useRef(null),We=u.useRef(null),He=u.useRef(null),Be=u.useRef(null),_e=u.useRef(null),Yn=u.useMemo(()=>g.toSorted((P,U)=>{const G=Array.from(o??[]),de=G.includes(P.value),ft=G.includes(U.value);return de&&!ft?1:!de&&ft?-1:0}).map(P=>J(P.name,A)||_?t.jsx(y.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":P.value,hrefLang:P.href,textValue:P.tag,children:P.name},P.value):null),[J,o,A,g,_]),Kn=u.useCallback(P=>{const U=P.split(/,|\s/u).slice(-1)[0].trim();I(p?U:P),P===""||P.endsWith(",")?W(!0):(W(!1),M(G=>{const de=P===""?"":G;return e&&e.onChange(de),h&&h(P),de}),V(g.filter(G=>J(G.name,p?U:P))))},[J,g,e,p,h]),Zn=u.useCallback(P=>{var U;I(((U=g.find(G=>G.value===P))==null?void 0:U.name)??""),M(P?String(P):""),e&&e.onChange(P),h&&h(P?String(P):""),V(g)},[g,e,h]),xt=u.useCallback(P=>{P.key==="Enter"&&P.preventDefault(),W(!1)},[]),qn=u.useCallback(()=>{x&&x(),e&&e.onBlur()},[e,x]),Xn=u.useCallback(()=>{W(!0)},[]),Z=y.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:p,allowsEmptyCollection:!0,disabledKeys:o,inputValue:A,items:B,menuTrigger:"focus",shouldCloseOnBlur:!p,selectedKey:L,onBlur:qn,onInputChange:Kn,onKeyDown:xt,onKeyUp:Xn,onOpenChange(P,U){W(P&&(U==="manual"||U==="focus")),P&&setTimeout(()=>{var G;return(G=ce.current)==null?void 0:G.focus()},50)},onSelectionChange:p?void 0:Zn,children:Yn}),{buttonProps:Jn,inputProps:Qn,listBoxProps:eo}=y.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:A,buttonRef:We,id:d,inputRef:ce,label:s??d,listBoxRef:He,name:d,placeholder:b,popoverRef:_e},Z),{listBoxProps:to}=y.$c132121280ec012d$export$50eacbbf140a3141(eo,Z,He),{buttonProps:no}=y.$701a24aa0da5b062$export$ea18c227d4417cc3(Jn,We);return ne(Be.current,()=>{Z.isOpen&&!p&&Z.close()},!0,_e.current),u.useEffect(()=>{var P;if((c===!1||!z)&&!p){const U=((P=g.find(G=>G.value===z))==null?void 0:P.name)??"";I(U),M(U)}},[z,g,c,p]),t.jsxs(K,{error:D,helpLink:i,helpLinkText:a,helpText:l,htmlFor:d,id:"combobox",label:s,required:m,tooltip:j,weight:S,children:[t.jsxs(q,{className:`${n?"disabled":""} ${D?"error":""}`,ref:Be,children:[t.jsx("input",{...Qn,"aria-invalid":D?"true":"false","aria-label":d,disabled:n,onKeyDown:xt,ref:ce}),D?t.jsx(R,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"lg"}):void 0,t.jsx(H,{...no,className:"action",disabled:n,icon:Z.isOpen&&!n?"chevron-up":"chevron-down",iconColor:T.palette.gray[400],iconSize:"sm",iconType:"fa-light",px:.125,py:.125,ref:We,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:Be,children:t.jsx(Jo,{...to,$multiSelection:p&&!Array.from(o??[]).includes("All"),ref:He,children:[...Z.collection].map(P=>t.jsx(Ot,{item:P,multiSelection:p,name:d,register:w,setInputValue:I,setValue:C,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:d,multiSelection:p,items:g,onBlur:x,onChange:h,placeholder:b,register:w,required:m,setValue:C,tooltip:j,value:k,watch:v,weight:S})=>e?t.jsx(y.Controller,{control:e,name:d,render:({field:T,fieldState:D})=>{var z;return t.jsx(Ye,{disabled:n,disabledKeys:o,error:(z=D.error)==null?void 0:z.message,field:T,helpLink:i,helpLinkText:a,helpText:l,items:g,label:s,loadingItems:c,multiSelection:p,name:d,onBlur:x,onChange:h,placeholder:b,register:w,required:m,setValue:C,tooltip:j,value:k,watch:v,weight:S})},rules:{required:m}}):t.jsx(Ye,{disabled:n,disabledKeys:o,error:r,helpLink:i,helpLinkText:a,helpText:l,items:g,label:s,loadingItems:c,multiSelection:p,name:d,onBlur:x,onChange:h,placeholder:b,required:m,tooltip:j,value:k,weight:S}),tr=f.styled.div`
1033
+ `,ie=u.forwardRef(function({checked:n,disabled:o=!1,label:r,name:i,onChange:a,onClick:l,onFocus:s,onKeyDown:c,tooltip:d,value:p,...g},x){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(er,{"aria-disabled":o,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":o,"aria-hidden":!1,"aria-label":i,checked:n,"data-testid":r??p,disabled:o,id:i,name:i,onChange:a,onClick:l,onFocus:s,onKeyDown:c,ref:x,type:"checkbox",value:p,...g}),t.jsx(D,{disabled:o,icon:"check",iconSize:"xl"}),r??p]}),d===void 0?void 0:t.jsx(K,{icon:"circle-info",id:d,place:"right",tip:d})]})}),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])},Ot=({item:e,multiSelection:n,name:o,register:r,setInputValue:i,setValue:a,state:l,watch:s})=>{var R,S,A;const c=f.useTheme(),d=u.useRef(null),p=e.props.hrefLang,g=l.disabledKeys,x=Array.from(l.collection.getKeys()).filter(I=>!Array.from(g).includes(I)&&I!=="All"),{optionProps:h,isSelected:b,isFocused:w,isDisabled:m}=y.$293f70390ea03370$export$497855f14858aa34({key:e.key},l,d),z=[b?"selected":"",w?"focused":"",m?"disabled":""].join(" "),j=u.useCallback(I=>{i(""),a==null||a(`${o}Options`,""),I.currentTarget.checked&&(i(I.currentTarget.value),a==null||a(`${o}Options`,x))},[x,o,i,a]),k=u.useCallback(()=>{const I=s==null?void 0:s(`${o}Options`),L=typeof I=="string"?[I]:I;y.isEqual(x,L)&&!Array.from(g).includes("All")?(a==null||a("checkAll","All vulnerability types"),i("All vulnerability types")):(a==null||a("checkAll",""),i((L==null?void 0:L.length)<=2?L.join(", "):`${L.slice(0,2).join(", ")+`, +${L.length-2} more`}`))},[g,x,o,i,a,s]),v=e.key==="All"?t.jsx(ie,{...r==null?void 0:r("checkAll",{onChange:j}),label:(R=e.rendered)==null?void 0:R.toString(),name:"checkAll",value:(S=e.rendered)==null?void 0:S.toString()}):t.jsx(ie,{...r==null?void 0:r(`${o}Options`,{onChange:k}),label:(A=e.rendered)==null?void 0:A.toString(),name:`${o}Options`,value:e.key.toString()}),C=n&&!m?v:t.jsx(E,{color:c.palette.gray[800],size:"md",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),T=u.useCallback(I=>{var L;I.preventDefault(),i(((L=e.rendered)==null?void 0:L.toString())??""),l.setSelectedKey(e.key),setTimeout(()=>{l.setOpen(!1)},50),At(p)},[p,e.key,e.rendered,l,i]);return ne(document.getElementsByClassName("dropdown")[0],()=>{n&&l.close()},!0,document.getElementById("combobox")),t.jsxs(Qo,{...!n&&!p?h:{},$multiSelection:n,className:z,ref:d,children:[p?t.jsx(te,{href:p,onClick:T,children:C}):C,b&&!m&&!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:d,multiSelection:p=!1,items:g,onBlur:x,onChange:h,placeholder:b,register:w,required:m,setValue:z,tooltip:j,value:k,watch:v,weight:C})=>{var ht;const T=f.useTheme(),R=n?void 0:r,S=(e==null?void 0:e.value)??k,[A,I]=u.useState(((ht=g.find(P=>P.value===S))==null?void 0:ht.name)??""),[L,M]=u.useState(S),[B,V]=u.useState(g),[_,W]=u.useState(!1),{contains:J}=y.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),ce=u.useRef(null),We=u.useRef(null),He=u.useRef(null),Be=u.useRef(null),_e=u.useRef(null),Yn=u.useMemo(()=>g.toSorted((P,U)=>{const G=Array.from(o??[]),de=G.includes(P.value),ft=G.includes(U.value);return de&&!ft?1:!de&&ft?-1:0}).map(P=>J(P.name,A)||_?t.jsx(y.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":P.value,hrefLang:P.href,textValue:P.tag,children:P.name},P.value):null),[J,o,A,g,_]),Kn=u.useCallback(P=>{const U=P.split(/,|\s/u).slice(-1)[0].trim();I(p?U:P),P===""||P.endsWith(",")?W(!0):(W(!1),M(G=>{const de=P===""?"":G;return e&&e.onChange(de),h&&h(P),de}),V(g.filter(G=>J(G.name,p?U:P))))},[J,g,e,p,h]),Zn=u.useCallback(P=>{var U;I(((U=g.find(G=>G.value===P))==null?void 0:U.name)??""),M(P?String(P):""),e&&e.onChange(P),h&&h(P?String(P):""),V(g)},[g,e,h]),xt=u.useCallback(P=>{P.key==="Enter"&&P.preventDefault(),W(!1)},[]),qn=u.useCallback(()=>{x&&x(),e&&e.onBlur()},[e,x]),Xn=u.useCallback(()=>{W(!0)},[]),Z=y.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:p,allowsEmptyCollection:!0,disabledKeys:o,inputValue:A,items:B,menuTrigger:"focus",shouldCloseOnBlur:!p,selectedKey:L,onBlur:qn,onInputChange:Kn,onKeyDown:xt,onKeyUp:Xn,onOpenChange(P,U){W(P&&(U==="manual"||U==="focus")),P&&setTimeout(()=>{var G;return(G=ce.current)==null?void 0:G.focus()},50)},onSelectionChange:p?void 0:Zn,children:Yn}),{buttonProps:Jn,inputProps:Qn,listBoxProps:eo}=y.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:A,buttonRef:We,id:d,inputRef:ce,label:s??d,listBoxRef:He,name:d,placeholder:b,popoverRef:_e},Z),{listBoxProps:to}=y.$c132121280ec012d$export$50eacbbf140a3141(eo,Z,He),{buttonProps:no}=y.$701a24aa0da5b062$export$ea18c227d4417cc3(Jn,We);return ne(Be.current,()=>{Z.isOpen&&!p&&Z.close()},!0,_e.current),u.useEffect(()=>{var P;if((c===!1||!S)&&!p){const U=((P=g.find(G=>G.value===S))==null?void 0:P.name)??"";I(U),M(U)}},[S,g,c,p]),t.jsxs(Y,{error:R,helpLink:i,helpLinkText:a,helpText:l,htmlFor:d,id:"combobox",label:s,required:m,tooltip:j,weight:C,children:[t.jsxs(q,{className:`${n?"disabled":""} ${R?"error":""}`,ref:Be,children:[t.jsx("input",{...Qn,"aria-invalid":R?"true":"false","aria-label":d,disabled:n,onKeyDown:xt,ref:ce}),R?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"lg"}):void 0,t.jsx(H,{...no,className:"action",disabled:n,icon:Z.isOpen&&!n?"chevron-up":"chevron-down",iconColor:T.palette.gray[400],iconSize:"sm",iconType:"fa-light",px:.125,py:.125,ref:We,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:Be,children:t.jsx(Jo,{...to,$multiSelection:p&&!Array.from(o??[]).includes("All"),ref:He,children:[...Z.collection].map(P=>t.jsx(Ot,{item:P,multiSelection:p,name:d,register:w,setInputValue:I,setValue:z,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:d,multiSelection:p,items:g,onBlur:x,onChange:h,placeholder:b,register:w,required:m,setValue:z,tooltip:j,value:k,watch:v,weight:C})=>e?t.jsx(y.Controller,{control:e,name:d,render:({field:T,fieldState:R})=>{var S;return t.jsx(Ye,{disabled:n,disabledKeys:o,error:(S=R.error)==null?void 0:S.message,field:T,helpLink:i,helpLinkText:a,helpText:l,items:g,label:s,loadingItems:c,multiSelection:p,name:d,onBlur:x,onChange:h,placeholder:b,register:w,required:m,setValue:z,tooltip:j,value:k,watch:v,weight:C})},rules:{required:m}}):t.jsx(Ye,{disabled:n,disabledKeys:o,error:r,helpLink:i,helpLinkText:a,helpText:l,items:g,label:s,loadingItems:c,multiSelection:p,name:d,onBlur:x,onChange:h,placeholder:b,required:m,tooltip:j,value:k,weight:C}),tr=f.styled.div`
1033
1034
  ${({theme:e})=>`
1034
1035
  align-items: center;
1035
1036
  color: ${e.palette.gray[800]};
@@ -1163,7 +1164,7 @@
1163
1164
  `}
1164
1165
  `,Wt=({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),d="highlightedRange"in e&&!y.lodashExports.isNull(e.highlightedRange)?y.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):l,p="highlightedRange"in e&&!y.lodashExports.isNull(e.highlightedRange)?y.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,g=l&&!s&&!(d||p)?"range":"";return t.jsx(rr,{id:g,...i,children:t.jsxs("div",{...a,className:`cell ${d||p?"selected":""}
1165
1166
  ${s?"disabled":""} ${r?"today":""}
1166
- ${!e.isFocused&&!r?"focused":""} ${g}`,ref:o,children:[c,r?t.jsx(ir,{children:t.jsx(R,{clickable:!1,icon:"circle",iconSize:"sm"})}):void 0]})})},Ae=({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($t,{children:r.map((a,l)=>{const s=`key_${l}`;return t.jsx(or,{children:a},s)})})}),t.jsx("tbody",{children:[...new Array(i).keys()].map(a=>t.jsx($t,{children:e.getDatesInWeek(a).map((l,s)=>{const c=`key_${s}`;return l?t.jsx(Wt,{date:l,state:e},c):t.jsx("td",{},c)})},a))})]})},ar=f.styled(nt)`
1167
+ ${!e.isFocused&&!r?"focused":""} ${g}`,ref:o,children:[c,r?t.jsx(ir,{children:t.jsx(D,{clickable:!1,icon:"circle",iconSize:"sm"})}):void 0]})})},Ae=({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($t,{children:r.map((a,l)=>{const s=`key_${l}`;return t.jsx(or,{children:a},s)})})}),t.jsx("tbody",{children:[...new Array(i).keys()].map(a=>t.jsx($t,{children:e.getDatesInWeek(a).map((l,s)=>{const c=`key_${s}`;return l?t.jsx(Wt,{date:l,state:e},c):t.jsx("td",{},c)})},a))})]})},ar=f.styled(nt)`
1167
1168
  align-items: center;
1168
1169
  background-color: inherit;
1169
1170
  border-color: inherit;
@@ -1261,7 +1262,7 @@
1261
1262
  font-weight: ${e.typography.weight.bold};
1262
1263
  }
1263
1264
  `}
1264
- `,Ne=({disabled:e=!1,icon:n,props:o})=>{const r=u.useRef(null),{buttonProps:i}=y.$701a24aa0da5b062$export$ea18c227d4417cc3(o,r);return t.jsx(lr,{...i,$disabled:e,$focus:!!i["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:r,type:"button",children:t.jsx(R,{icon:n,iconColor:N.palette.gray[e?400:700],iconSize:"lg",iconType:"fa-light"})})},Pe=({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(tr,{children:[r,t.jsxs(nr,{children:[t.jsx(mt,{"aria-label":"top",onClick:l,children:t.jsx(R,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xs"})}),t.jsx(mt,{"aria-label":"bottom",onClick:s,children:t.jsx(R,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xs"})})]})]}),t.jsx(Ne,{icon:"chevron-right",props:o})]})},Ht=({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(Pe,{nextButtonProps:a,prevButtonProps:i,state:r,title:l}),t.jsx(Ae,{state:r}),t.jsx(st,{children:t.jsx(O,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Bt=({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})},_t=({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 d=document.getElementsByClassName("segment-cell"),p=c.currentTarget;Object.values(d).some(g=>g.contains(p))||(c.preventDefault(),c.stopPropagation())},[]);return t.jsxs(cr,{...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,d)=>{const p=`key_${d}`;return t.jsx(Bt,{segment:{...c,isEditable:!e},state:a},p)})}),n?t.jsx(R,{icon:"exclamation-circle",iconColor:r.palette.error[500],iconSize:"lg"}):void 0]})},Vt=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(d=>{const p=d.currentTarget.name;p!==a&&(y.lodashExports.isNil(r)||(p==="AM"?o.setSegment("dayPeriod",0):p==="PM"&&o.setSegment("dayPeriod",12))),l(p)},[a,o,r]);return t.jsxs(dr,{children:[t.jsx(wt,{...s,ref:n,children:o.segments.slice(0,-2).map((d,p)=>{const g=`key_${p}`;return t.jsx(Bt,{segment:d,state:o},g)})}),t.jsxs(wt,{children:[t.jsx(jt,{id:a==="AM"?"active":"",name:"AM",onClick:c,type:"button",children:"AM"}),t.jsx(jt,{id:a==="PM"?"active":"",name:"PM",onClick:c,type:"button",children:"PM"})]})]})},Fe=e=>e&&e!=="-"?y.dayjs(e).format("YYYY-MM-DD"):"-",pr=e=>e&&e!=="-"?y.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",vt=(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:d,setValue:p,value:g})=>{const x=u.useCallback(h=>{if(!h)return;const b=i==="day"?Fe(String(h)):pr(String(h));a.onChange&&a.onChange(h??null),p&&p(s,b,{shouldDirty:!0})},[a,i,s,p]);return t.jsxs(q,{...l,className:`${r?"disabled":""} ${e?"error":""}`,ref:o,children:[t.jsx(_t,{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:d}),"aria-label":s,className:"date-input",disabled:r,id:s,name:s,type:"text",value:g??""})]})},Oe=({children:e,...n})=>{const o=u.useRef(null),{dialogProps:r}=y.$40df3f8667284809$export$d55e7ee900f34e93(n,o);return t.jsx(sr,{...r,ref:o,children:e})},Ut=({disabled:e=!1,error:n,helpLink:o,helpLinkText:r,helpText:i,required:a,label:l,name:s,register:c,setValue:d,tooltip:p,watch:g,...x})=>{const h=u.useRef(null),b=g==null?void 0:g(s),w=u.useCallback(D=>{d&&D&&d(s,Fe(String(D)),{shouldDirty:!0})},[s,d]),m=y.$ab5bf3f618090389$export$87194bb378cc3ac2({...x,onChange(D){w(D)},...!y._.isNil(b)&&!y._.isEmpty(b)&&y.dayjs(b).isValid()?{defaultValue:y.$fae977aafc393c5c$export$6b862160d295c8e(b.replace(/\//gu,"-"))}:{}}),{close:C}=m,{groupProps:j,fieldProps:k,buttonProps:v,dialogProps:S,calendarProps:T}=y.$6057a3d2a53a12fd$export$42df105a73306d51({...x,"aria-label":l??s,name:s},m,h);return t.jsxs(K,{error:e?void 0:n,helpLink:o,helpLinkText:r,helpText:i,htmlFor:s,label:l,required:a,tooltip:p,children:[t.jsx(fe,{buttonProps:v,datePickerRef:h,disabled:e,error:n,fieldProps:k,groupProps:j,name:s,register:c,required:a,setValue:d,value:b}),m.isOpen&&!e?t.jsx(Te,{offset:8,placement:"bottom start",state:m,triggerRef:h,children:t.jsx(Oe,{...S,children:t.jsx(Ht,{onClose:C,props:T})})}):null]})},Gt=({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(Pe,{nextButtonProps:l,prevButtonProps:a,state:i,title:s}),t.jsx(Ae,{state:i}),t.jsx(st,{children:t.jsx(O,{onClick:e,variant:"ghost",children:"Cancel"})})]})},gr=f.styled.div`
1265
+ `,Fe=({disabled:e=!1,icon:n,props:o})=>{const r=u.useRef(null),{buttonProps:i}=y.$701a24aa0da5b062$export$ea18c227d4417cc3(o,r);return t.jsx(lr,{...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:F.palette.gray[e?400:700],iconSize:"lg",iconType:"fa-light"})})},Pe=({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(Fe,{icon:"chevron-left",props:n}),t.jsxs(tr,{children:[r,t.jsxs(nr,{children:[t.jsx(mt,{"aria-label":"top",onClick:l,children:t.jsx(D,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xs"})}),t.jsx(mt,{"aria-label":"bottom",onClick:s,children:t.jsx(D,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xs"})})]})]}),t.jsx(Fe,{icon:"chevron-right",props:o})]})},Ht=({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(Pe,{nextButtonProps:a,prevButtonProps:i,state:r,title:l}),t.jsx(Ae,{state:r}),t.jsx(st,{children:t.jsx(O,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Bt=({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})},_t=({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 d=document.getElementsByClassName("segment-cell"),p=c.currentTarget;Object.values(d).some(g=>g.contains(p))||(c.preventDefault(),c.stopPropagation())},[]);return t.jsxs(cr,{...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,d)=>{const p=`key_${d}`;return t.jsx(Bt,{segment:{...c,isEditable:!e},state:a},p)})}),n?t.jsx(D,{icon:"exclamation-circle",iconColor:r.palette.error[500],iconSize:"lg"}):void 0]})},Vt=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(d=>{const p=d.currentTarget.name;p!==a&&(y.lodashExports.isNil(r)||(p==="AM"?o.setSegment("dayPeriod",0):p==="PM"&&o.setSegment("dayPeriod",12))),l(p)},[a,o,r]);return t.jsxs(dr,{children:[t.jsx(wt,{...s,ref:n,children:o.segments.slice(0,-2).map((d,p)=>{const g=`key_${p}`;return t.jsx(Bt,{segment:d,state:o},g)})}),t.jsxs(wt,{children:[t.jsx(jt,{id:a==="AM"?"active":"",name:"AM",onClick:c,type:"button",children:"AM"}),t.jsx(jt,{id:a==="PM"?"active":"",name:"PM",onClick:c,type:"button",children:"PM"})]})]})},Ne=e=>e&&e!=="-"?y.dayjs(e).format("YYYY-MM-DD"):"-",pr=e=>e&&e!=="-"?y.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",vt=(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:d,setValue:p,value:g})=>{const x=u.useCallback(h=>{if(!h)return;const b=i==="day"?Ne(String(h)):pr(String(h));a.onChange&&a.onChange(h??null),p&&p(s,b,{shouldDirty:!0})},[a,i,s,p]);return t.jsxs(q,{...l,className:`${r?"disabled":""} ${e?"error":""}`,ref:o,children:[t.jsx(_t,{disabled:r,error:e!=null,props:{...a,autoFocus:!1,granularity:i,onChange:x,shouldForceLeadingZeros:!0}}),t.jsx(Fe,{disabled:r,icon:i==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...c==null?void 0:c(s,{required:d}),"aria-label":s,className:"date-input",disabled:r,id:s,name:s,type:"text",value:g??""})]})},Oe=({children:e,...n})=>{const o=u.useRef(null),{dialogProps:r}=y.$40df3f8667284809$export$d55e7ee900f34e93(n,o);return t.jsx(sr,{...r,ref:o,children:e})},Ut=({disabled:e=!1,error:n,helpLink:o,helpLinkText:r,helpText:i,required:a,label:l,name:s,register:c,setValue:d,tooltip:p,watch:g,...x})=>{const h=u.useRef(null),b=g==null?void 0:g(s),w=u.useCallback(R=>{d&&R&&d(s,Ne(String(R)),{shouldDirty:!0})},[s,d]),m=y.$ab5bf3f618090389$export$87194bb378cc3ac2({...x,onChange(R){w(R)},...!y._.isNil(b)&&!y._.isEmpty(b)&&y.dayjs(b).isValid()?{defaultValue:y.$fae977aafc393c5c$export$6b862160d295c8e(b.replace(/\//gu,"-"))}:{}}),{close:z}=m,{groupProps:j,fieldProps:k,buttonProps:v,dialogProps:C,calendarProps:T}=y.$6057a3d2a53a12fd$export$42df105a73306d51({...x,"aria-label":l??s,name:s},m,h);return t.jsxs(Y,{error:e?void 0:n,helpLink:o,helpLinkText:r,helpText:i,htmlFor:s,label:l,required:a,tooltip:p,children:[t.jsx(fe,{buttonProps:v,datePickerRef:h,disabled:e,error:n,fieldProps:k,groupProps:j,name:s,register:c,required:a,setValue:d,value:b}),m.isOpen&&!e?t.jsx(Te,{offset:8,placement:"bottom start",state:m,triggerRef:h,children:t.jsx(Oe,{...C,children:t.jsx(Ht,{onClose:z,props:T})})}):null]})},Gt=({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(Pe,{nextButtonProps:l,prevButtonProps:a,state:i,title:s}),t.jsx(Ae,{state:i}),t.jsx(st,{children:t.jsx(O,{onClick:e,variant:"ghost",children:"Cancel"})})]})},gr=f.styled.div`
1265
1266
  ${({theme:e,$disabled:n,$show:o})=>`
1266
1267
  border-color: ${o?e.palette.error[500]:e.palette.gray[300]};
1267
1268
  display: flex;
@@ -1272,7 +1273,7 @@
1272
1273
  background: ${n?e.palette.gray[200]:e.palette.white};
1273
1274
  }
1274
1275
  `}
1275
- `,Yt=({disabled:e=!1,error:n,label:o,name:r,required:i,tooltip:a,register:l,setValue:s,propsMax:c,propsMin:d,variant:p="default",...g})=>{const x=`${r}Max`,h=`${r}Min`,b=u.useRef(null),w=u.useCallback(z=>{s&&z&&(s((c==null?void 0:c.name)??x,Fe(String(z.end))),s((d==null?void 0:d.name)??h,Fe(String(z.start))))},[x,h,s,c,d]),m=y.$93c38a5e28be6249$export$e50a61c1de9f574({...g,endName:(c==null?void 0:c.name)??x,startName:(d==null?void 0:d.name)??h,onChange(z){w(z)}}),{close:C}=m,{groupProps:j,startFieldProps:k,endFieldProps:v,buttonProps:S,dialogProps:T,calendarProps:D}=y.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...g,"aria-label":o??r},m,b);return t.jsxs(K,{error:e?void 0:n,htmlFor:r,label:o,required:i,tooltip:a,children:[t.jsxs(gr,{$disabled:e,$show:n!==void 0,ref:b,style:{flexDirection:p==="filters"?"column":"row"},children:[t.jsx(fe,{buttonProps:S,datePickerRef:b,disabled:e,error:n,fieldProps:{...k,"aria-label":`${k["aria-label"]} ${r}`,validate:z=>v.value&&z>v.value?"Start date must be less than or equal to end date":null},groupProps:j,name:(d==null?void 0:d.name)??h,register:l,setValue:s,value:d==null?void 0:d.value}),t.jsx(fe,{buttonProps:S,datePickerRef:b,disabled:e,error:n,fieldProps:{...v,"aria-label":`${v["aria-label"]} ${r}`,validate:z=>k.value&&z<k.value?"End date must be greater than or equal to start date":null},groupProps:j,name:(c==null?void 0:c.name)??x,register:l,setValue:s,value:c==null?void 0:c.value})]}),m.isOpen&&!e?t.jsx(Te,{offset:8,placement:"bottom start",state:m,triggerRef:b,children:t.jsx(Oe,{...T,children:t.jsx(Gt,{onClose:C,props:D})})}):null]})},ur=f.styled.div`
1276
+ `,Yt=({disabled:e=!1,error:n,label:o,name:r,required:i,tooltip:a,register:l,setValue:s,propsMax:c,propsMin:d,variant:p="default",...g})=>{const x=`${r}Max`,h=`${r}Min`,b=u.useRef(null),w=u.useCallback(S=>{s&&S&&(s((c==null?void 0:c.name)??x,Ne(String(S.end))),s((d==null?void 0:d.name)??h,Ne(String(S.start))))},[x,h,s,c,d]),m=y.$93c38a5e28be6249$export$e50a61c1de9f574({...g,endName:(c==null?void 0:c.name)??x,startName:(d==null?void 0:d.name)??h,onChange(S){w(S)}}),{close:z}=m,{groupProps:j,startFieldProps:k,endFieldProps:v,buttonProps:C,dialogProps:T,calendarProps:R}=y.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...g,"aria-label":o??r},m,b);return t.jsxs(Y,{error:e?void 0:n,htmlFor:r,label:o,required:i,tooltip:a,children:[t.jsxs(gr,{$disabled:e,$show:n!==void 0,ref:b,style:{flexDirection:p==="filters"?"column":"row"},children:[t.jsx(fe,{buttonProps:C,datePickerRef:b,disabled:e,error:n,fieldProps:{...k,"aria-label":`${k["aria-label"]} ${r}`,validate:S=>v.value&&S>v.value?"Start date must be less than or equal to end date":null},groupProps:j,name:(d==null?void 0:d.name)??h,register:l,setValue:s,value:d==null?void 0:d.value}),t.jsx(fe,{buttonProps:C,datePickerRef:b,disabled:e,error:n,fieldProps:{...v,"aria-label":`${v["aria-label"]} ${r}`,validate:S=>k.value&&S<k.value?"End date must be greater than or equal to start date":null},groupProps:j,name:(c==null?void 0:c.name)??x,register:l,setValue:s,value:c==null?void 0:c.value})]}),m.isOpen&&!e?t.jsx(Te,{offset:8,placement:"bottom start",state:m,triggerRef:b,children:t.jsx(Oe,{...T,children:t.jsx(Gt,{onClose:z,props:R})})}):null]})},ur=f.styled.div`
1276
1277
  ${({theme:e})=>`
1277
1278
  align-items: center;
1278
1279
  border-top: 1px solid ${e.palette.gray[200]};
@@ -1287,13 +1288,13 @@
1287
1288
  gap: ${({theme:e})=>e.spacing[.5]};
1288
1289
  justify-content: flex-end;
1289
1290
  flex: 1 0 0;
1290
- `,Kt=({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:d}=y.$9942cad8a072a530$export$3ee915f8151bd4f1(o,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Pe,{nextButtonProps:c,prevButtonProps:s,state:l,title:d}),t.jsx(Ae,{state:l}),t.jsxs(ur,{children:[t.jsx(E,{color:i.palette.gray[800],fontWeight:"bold",size:"md",children:"Time"}),t.jsx(xr,{children:t.jsx(Vt,{hourCycle:12,label:"time-field",onChange:e,value:r.timeValue})})]}),t.jsx(st,{children:t.jsx(O,{onClick:n,variant:"ghost",children:"Cancel"})})]})},hr=e=>{const{disabled:n=!1,error:o,required:r,label:i,name:a,tooltip:l,register:s,setValue:c,watch:d}=e,p=d==null?void 0:d(a),g=u.useRef(null),x=y.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:r,shouldCloseOnSelect:!1,value:y._.isNil(p)||y._.isEmpty(p)||p==="-"||y.dayjs(p,"YYYY/MM/DD hh:mm A").isValid()===!1?null:y.$fae977aafc393c5c$export$588937bcd60ade55(y.dayjs(p,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=x,{groupProps:b,fieldProps:w,buttonProps:m,dialogProps:C,calendarProps:j}=y.$6057a3d2a53a12fd$export$42df105a73306d51(e,x,g),k=u.useCallback(S=>{if(j.onChange&&j.onChange(S),x.timeValue){const T=vt(S,x.timeValue);c==null||c(a,T,{shouldDirty:!0})}else x.setDateValue(S)},[j,a,c,x]),v=u.useCallback(S=>{if(S){x.setTimeValue(S);const T=x.dateValue;if(T){const D=vt(T,S);c==null||c(a,D,{shouldDirty:!0})}}},[x,c,a]);return t.jsxs(K,{error:n?void 0:o,htmlFor:a,label:i,required:r,tooltip:l,children:[t.jsx(fe,{buttonProps:m,datePickerRef:g,disabled:n,error:o,fieldProps:w,granularity:"minute",groupProps:b,name:a,register:s,setValue:c,value:p}),x.isOpen&&!n?t.jsx(Te,{offset:8,placement:"bottom start",state:x,triggerRef:g,children:t.jsx(Oe,{...C,children:t.jsx(Kt,{handleTimeChange:v,onClose:h,props:{...j,onChange:k},timeState:x})})}):null]})},fr=({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($,{children:[t.jsx(it,{htmlFor:a,label:i,tooltip:l,weight:"bold"}),c.startsWith("https://")?t.jsx(te,{href:c,children:s}):t.jsx(E,{size:"md",children:s})]})},Me=({disabled:e=!1,hasIcon:n=!1,helpLink:o,helpLinkText:r,helpText:i,error:a,id:l,indexArray:s=0,isValid:c,isTouched:d,label:p,name:g,maskValue:x=!1,onPaste:h,placeholder:b,removeItemArray:w,register:m,suggestions:C,tooltip:j,type:k="text",weight:v,...S})=>{const{required:T,onBlur:D,onChange:z}=S,A=f.useTheme(),I=e?void 0:a,[L,M]=u.useState(""),B=u.useCallback(W=>{M(W.target.value),z==null||z(W)},[z]),V=c&&d&&!e&&L.trim()!=="",_=u.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]);return t.jsxs(K,{error:I,helpLink:o,helpLinkText:r,helpText:i,htmlFor:g,label:p,required:T,tooltip:j,weight:v,children:[t.jsxs(q,{className:`
1291
+ `,Kt=({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:d}=y.$9942cad8a072a530$export$3ee915f8151bd4f1(o,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Pe,{nextButtonProps:c,prevButtonProps:s,state:l,title:d}),t.jsx(Ae,{state:l}),t.jsxs(ur,{children:[t.jsx(E,{color:i.palette.gray[800],fontWeight:"bold",size:"md",children:"Time"}),t.jsx(xr,{children:t.jsx(Vt,{hourCycle:12,label:"time-field",onChange:e,value:r.timeValue})})]}),t.jsx(st,{children:t.jsx(O,{onClick:n,variant:"ghost",children:"Cancel"})})]})},hr=e=>{const{disabled:n=!1,error:o,required:r,label:i,name:a,tooltip:l,register:s,setValue:c,watch:d}=e,p=d==null?void 0:d(a),g=u.useRef(null),x=y.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:r,shouldCloseOnSelect:!1,value:y._.isNil(p)||y._.isEmpty(p)||p==="-"||y.dayjs(p,"YYYY/MM/DD hh:mm A").isValid()===!1?null:y.$fae977aafc393c5c$export$588937bcd60ade55(y.dayjs(p,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=x,{groupProps:b,fieldProps:w,buttonProps:m,dialogProps:z,calendarProps:j}=y.$6057a3d2a53a12fd$export$42df105a73306d51(e,x,g),k=u.useCallback(C=>{if(j.onChange&&j.onChange(C),x.timeValue){const T=vt(C,x.timeValue);c==null||c(a,T,{shouldDirty:!0})}else x.setDateValue(C)},[j,a,c,x]),v=u.useCallback(C=>{if(C){x.setTimeValue(C);const T=x.dateValue;if(T){const R=vt(T,C);c==null||c(a,R,{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:m,datePickerRef:g,disabled:n,error:o,fieldProps:w,granularity:"minute",groupProps:b,name:a,register:s,setValue:c,value:p}),x.isOpen&&!n?t.jsx(Te,{offset:8,placement:"bottom start",state:x,triggerRef:g,children:t.jsx(Oe,{...z,children:t.jsx(Kt,{handleTimeChange:v,onClose:h,props:{...j,onChange:k},timeState:x})})}):null]})},fr=({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($,{children:[t.jsx(it,{htmlFor:a,label:i,tooltip:l,weight:"bold"}),c.startsWith("https://")?t.jsx(te,{href:c,children:s}):t.jsx(E,{size:"md",children:s})]})},Me=({disabled:e=!1,hasIcon:n=!1,helpLink:o,helpLinkText:r,helpText:i,error:a,id:l,indexArray:s=0,isValid:c,isTouched:d,label:p,name:g,maskValue:x=!1,onPaste:h,placeholder:b,removeItemArray:w,register:m,suggestions:z,tooltip:j,type:k="text",weight:v,...C})=>{const{required:T,onBlur:R,onChange:S}=C,A=f.useTheme(),I=e?void 0:a,[L,M]=u.useState(""),B=u.useCallback(W=>{M(W.target.value),S==null||S(W)},[S]),V=c&&d&&!e&&L.trim()!=="",_=u.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]);return t.jsxs(Y,{error:I,helpLink:o,helpLinkText:r,helpText:i,htmlFor:g,label:p,required:T,tooltip:j,weight:v,children:[t.jsxs(q,{className:`
1291
1292
  ${e?"disabled":""} ${I?"error":""} ${V?"success":""}
1292
- `,children:[n?t.jsx(R,{icon:"user",iconSize:"xl",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":I?"true":"false","aria-label":g,"aria-required":T,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:k,...m?m(g,{required:T,onBlur:D,onChange:B}):{...S,onChange:B}}),I?t.jsx(R,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:A.palette.error[500],iconSize:"lg"}):void 0,V?t.jsx(R,{icon:"check-circle",iconClass:"success-icon",iconColor:A.palette.success[500],iconSize:"lg"}):void 0,l==="array"&&s>0?t.jsx(H,{color:A.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]})},yr=f.styled.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,br=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":I?"true":"false","aria-label":g,"aria-required":T,autoComplete:"off",className:x?"sr-block":"","data-testid":`${g}-input`,disabled:e,id:g,list:z?`list_${g}`:void 0,onKeyDown:_,onPaste:h,placeholder:b,type:k,...m?m(g,{required:T,onBlur:R,onChange:B}):{...C,onChange:B}}),I?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:A.palette.error[500],iconSize:"lg"}):void 0,V?t.jsx(D,{icon:"check-circle",iconClass:"success-icon",iconColor:A.palette.success[500],iconSize:"lg"}):void 0,l==="array"&&s>0?t.jsx(H,{color:A.palette.gray[400],icon:"trash",iconSize:"sm",iconType:"fa-light",onClick:w?w(s):void 0,variant:"ghost"}):void 0]}),z?t.jsx("datalist",{id:`list_${g}`,children:z.map(W=>t.jsx("option",{value:W},W))}):void 0]})},yr=f.styled.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,br=f.styled.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
1293
1294
  gap: 12px;
1294
1295
  `,$r=f.styled.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
1295
1296
  gap: 8px;
1296
- `,Re=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,mr=f.styled.div.attrs({className:"comp-col"})`
1297
+ `,De=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,mr=f.styled.div.attrs({className:"comp-col"})`
1297
1298
  word-wrap: break-word;
1298
1299
 
1299
1300
  ${({$width:e=null})=>e===null?"":`width: ${e}`};
@@ -1301,18 +1302,18 @@
1301
1302
  ${({$paddingTop:e})=>`padding-top: ${e??0}px;`}
1302
1303
 
1303
1304
  @media (width <= 768px) {
1304
- ${({$sm:e})=>Re(e)}
1305
+ ${({$sm:e})=>De(e)}
1305
1306
  }
1306
1307
 
1307
1308
  @media (width >= 768px) and (width <= 992px) {
1308
- ${({$md:e})=>Re(e)}
1309
+ ${({$md:e})=>De(e)}
1309
1310
  }
1310
1311
 
1311
1312
  @media (width >= 992px) {
1312
- ${({$lg:e})=>Re(e)}
1313
+ ${({$lg:e})=>De(e)}
1313
1314
  }
1314
1315
 
1315
- ${({$xl:e})=>y.isNumber(e)?`@media (min-width: 1200px) { ${Re(e)} }`:""}
1316
+ ${({$xl:e})=>y.isNumber(e)?`@media (min-width: 1200px) { ${De(e)} }`:""}
1316
1317
 
1317
1318
  > .comp-card {
1318
1319
  height: 100%;
@@ -1345,7 +1346,7 @@
1345
1346
  padding: ${o}px;
1346
1347
  }
1347
1348
  `}
1348
- `,Zt=({align:e,children:n,cols:o,colsPadding:r,justify:i})=>t.jsx(vr,{$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:d=100,name:p,onBlur:g,onChange:x,placeholder:h,tooltip:b,remove:w,value:m})=>{var k;const C=u.useCallback(()=>{n==null||n(a)},[n,a]),j=u.useCallback(v=>()=>{w==null||w(v)},[w]);return t.jsxs(Zt,{align:"start",children:[t.jsx(Ke,{lg:75,md:75,sm:75,children:t.jsx(Me,{disabled:o,error:i?(k=i.error)==null?void 0:k.message:void 0,id:"array",indexArray:l,isTouched:i?i.isTouched:void 0,isValid:i?!i.invalid:void 0,label:c,name:p,onBlur:g,onChange:x,placeholder:h,removeItemArray:j,required:s,tooltip:b,value:m})}),l<d-1&&l+1===(r==null?void 0:r.length)?t.jsx(Ke,{lg:25,md:25,sm:25,children:t.jsx(O,{disabled:o,icon:"plus",onClick:C,variant:"ghost",width:"max-content",children:e??"Add"})}):void 0]})},kr=({addText:e,append:n,control:o,disabled:r,fields:i,initValue:a="",required:l,label:s,max:c=void 0,name:d="array-field",onChange:p,placeholder:g,remove:x,tooltip:h})=>o&&i?t.jsx(u.Fragment,{children:i.map((b,w)=>t.jsx(y.Controller,{control:o,name:`${d}.${w}`,render:({field:m,fieldState:C})=>t.jsx(Ze,{addText:e,append:n,disabled:r,fieldState:C,fields:i,index:w,initValue:a,label:s,max:c,name:m.name,onBlur:m.onBlur,onChange:p??m.onChange,placeholder:g,remove:x,required:l,tooltip:h,value:typeof m.value=="object"?m.value.value:m.value}),index:w},b.id))}):t.jsx(Ze,{addText:e,disabled:r,initValue:a,label:s,max:c,name:d,onChange:p,placeholder:g,required:l,tooltip:h}),Cr=f.styled(Dt)`
1349
+ `,Zt=({align:e,children:n,cols:o,colsPadding:r,justify:i})=>t.jsx(vr,{$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:d=100,name:p,onBlur:g,onChange:x,placeholder:h,tooltip:b,remove:w,value:m})=>{var k;const z=u.useCallback(()=>{n==null||n(a)},[n,a]),j=u.useCallback(v=>()=>{w==null||w(v)},[w]);return t.jsxs(Zt,{align:"start",children:[t.jsx(Ke,{lg:75,md:75,sm:75,children:t.jsx(Me,{disabled:o,error:i?(k=i.error)==null?void 0:k.message:void 0,id:"array",indexArray:l,isTouched:i?i.isTouched:void 0,isValid:i?!i.invalid:void 0,label:c,name:p,onBlur:g,onChange:x,placeholder:h,removeItemArray:j,required:s,tooltip:b,value:m})}),l<d-1&&l+1===(r==null?void 0:r.length)?t.jsx(Ke,{lg:25,md:25,sm:25,children:t.jsx(O,{disabled:o,icon:"plus",onClick:z,variant:"ghost",width:"max-content",children:e??"Add"})}):void 0]})},kr=({addText:e,append:n,control:o,disabled:r,fields:i,initValue:a="",required:l,label:s,max:c=void 0,name:d="array-field",onChange:p,placeholder:g,remove:x,tooltip:h})=>o&&i?t.jsx(u.Fragment,{children:i.map((b,w)=>t.jsx(y.Controller,{control:o,name:`${d}.${w}`,render:({field:m,fieldState:z})=>t.jsx(Ze,{addText:e,append:n,disabled:r,fieldState:z,fields:i,index:w,initValue:a,label:s,max:c,name:m.name,onBlur:m.onBlur,onChange:p??m.onChange,placeholder:g,remove:x,required:l,tooltip:h,value:typeof m.value=="object"?m.value.value:m.value}),index:w},b.id))}):t.jsx(Ze,{addText:e,disabled:r,initValue:a,label:s,max:c,name:d,onChange:p,placeholder:g,required:l,tooltip:h}),Cr=f.styled(Rt)`
1349
1350
  white-space: nowrap;
1350
1351
  margin-right: ${({theme:e})=>e.spacing[.25]};
1351
1352
  text-overflow: ellipsis;
@@ -1356,13 +1357,13 @@
1356
1357
  position: absolute;
1357
1358
  visibility: hidden;
1358
1359
  width: 0;
1359
- `,ye=(e,n,o)=>{const r=new Event(e);return Object.defineProperty(r,"target",{value:{name:n,value:o}}),r},zr=e=>{const n=e;return n?Array.from(n).map(o=>o.name).join(", "):""},Tr=({accept:e,disabled:n=!1,error:o,label:r,helpLink:i,helpText:a,id:l,multiple:s,name:c,onChange:d,required:p,register:g,setValue:x,tooltip:h,watch:b,weight:w})=>{const m=f.useTheme(),C=n?void 0:o,j=u.useRef(null),k=g==null?void 0:g(c,{required:p}),v=b==null?void 0:b(c),S=zr(v),T=u.useCallback(()=>{const A=ye("change",c,void 0);x&&x(c,void 0),k&&k.onChange(A)},[k,c,x]),D=u.useCallback(A=>{const{files:I}=A.currentTarget,L=ye("change",c,I&&I.length>0?I:void 0);I&&I.length>0&&(d==null||d(L),x&&x(c,I),k&&k.onChange(L))},[k,c,d,x]),z=u.useCallback(A=>{n?A.preventDefault():j.current&&j.current.click()},[n]);return t.jsxs(K,{error:C,helpLink:i,helpText:a,htmlFor:l??c,label:r,required:p,tooltip:h,weight:w,children:[t.jsxs(q,{className:`${n?"disabled":""} ${C?"error":""}`,children:[t.jsx(Cr,{$size:"md",children:S}),t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[y.lodashExports.isEmpty(S)||n?void 0:t.jsx(H,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"64px",iconType:"fa-light",onClick:T,variant:"ghost",width:"20px"}),C&&t.jsx(R,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"lg"}),t.jsxs(O,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:z,variant:"primary",width:"96px",children:[t.jsx(R,{icon:"search",iconSize:"xl",mr:.5}),"Add file"]})]})]}),t.jsx(Sr,{...k,accept:e,"aria-label":c,"data-testid":c,disabled:n,id:l??c,multiple:s,name:c,onChange:D,ref:j,type:"file"})]})},Ir=f.styled.input`
1360
+ `,ye=(e,n,o)=>{const r=new Event(e);return Object.defineProperty(r,"target",{value:{name:n,value:o}}),r},zr=e=>{const n=e;return n?Array.from(n).map(o=>o.name).join(", "):""},Tr=({accept:e,disabled:n=!1,error:o,label:r,helpLink:i,helpText:a,id:l,multiple:s,name:c,onChange:d,required:p,register:g,setValue:x,tooltip:h,watch:b,weight:w})=>{const m=f.useTheme(),z=n?void 0:o,j=u.useRef(null),k=g==null?void 0:g(c,{required:p}),v=b==null?void 0:b(c),C=zr(v),T=u.useCallback(()=>{const A=ye("change",c,void 0);x&&x(c,void 0),k&&k.onChange(A)},[k,c,x]),R=u.useCallback(A=>{const{files:I}=A.currentTarget,L=ye("change",c,I&&I.length>0?I:void 0);I&&I.length>0&&(d==null||d(L),x&&x(c,I),k&&k.onChange(L))},[k,c,d,x]),S=u.useCallback(A=>{n?A.preventDefault():j.current&&j.current.click()},[n]);return t.jsxs(Y,{error:z,helpLink:i,helpText:a,htmlFor:l??c,label:r,required:p,tooltip:h,weight:w,children:[t.jsxs(q,{className:`${n?"disabled":""} ${z?"error":""}`,children:[t.jsx(Cr,{$size:"md",children:C}),t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[y.lodashExports.isEmpty(C)||n?void 0:t.jsx(H,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"64px",iconType:"fa-light",onClick:T,variant:"ghost",width:"20px"}),z&&t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"lg"}),t.jsxs(O,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:S,variant:"primary",width:"96px",children:[t.jsx(D,{icon:"search",iconSize:"xl",mr:.5}),"Add file"]})]})]}),t.jsx(Sr,{...k,accept:e,"aria-label":c,"data-testid":c,disabled:n,id:l??c,multiple:s,name:c,onChange:R,ref:j,type:"file"})]})},Ir=f.styled.input`
1360
1361
  border: none;
1361
1362
  background: transparent;
1362
1363
  min-width: 15rem;
1363
1364
  padding: 0;
1364
1365
  flex: 1;
1365
- `,qe=({disabled:e=!1,error:n,field:o,helpLink:r,helpLinkText:i,helpText:a,label:l,name:s="input-tag",onChange:c,onRemove:d,placeholder:p,required:g,tooltip:x,value:h,weight:b})=>{const w=f.useTheme(),m=e?void 0:n,[C,j]=u.useState(""),k=c?h:o==null?void 0:o.value,v=u.useMemo(()=>k&&typeof k=="string"?k.split(",").filter(Boolean):[],[k]),S=u.useCallback(I=>{const M=[...new Set(I.filter(Boolean))].join(","),B=ye("change",s,M);o&&o.onChange(B),c&&c(B)},[o,s,c]),T=u.useCallback(I=>{j(I.target.value)},[]),D=u.useCallback(I=>{const L=C.trim();L.length&&!v.includes(L)&&(I.preventDefault(),S([...v,L]),j("")),o&&o.onBlur()},[C,o,S,v]),z=u.useCallback(I=>{const L=C.trim();I.key==="Enter"&&L.length===0&&I.preventDefault(),["Enter",","].includes(I.key)&&L.length>0&&!v.includes(L)?(I.preventDefault(),S([...v,L]),j("")):I.key==="Backspace"&&!L.length&&v.length&&(I.preventDefault(),d==null||d(v[v.length-1]),S(v.slice(0,-1)))},[C,d,S,v]),A=u.useCallback(I=>()=>{d==null||d(I),S(v.filter(L=>L!==I))},[d,S,v]);return t.jsx(K,{error:m,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":""} ${m?"error":""}`,children:[v.map(I=>t.jsx(X,{disabled:e,onClose:A(I),tagLabel:I},I)),t.jsx(Ir,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":s,"aria-required":g,autoComplete:"off",disabled:e,id:s,onBlur:D,onChange:T,onKeyDown:z,placeholder:v.length===0?p:void 0,ref:o==null?void 0:o.ref,type:"text",value:C}),m?t.jsx(R,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"lg"}):void 0]})})},Er=({disabled:e=!1,control:n,error:o,helpLink:r,helpLinkText:i,helpText:a,label:l,name:s="input-tag",onChange:c,onRemove:d,placeholder:p,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:d,placeholder:p,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:d,placeholder:p,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(ar,{$margin:r,"aria-label":o,className:"action-btn",disabled:n,onClick:i,ref:l,type:"button",...a,children:t.jsx(R,{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:d,placeholder:p,register:g,required:x,setValue:h,tooltipMessage:b,value:w,variant:m="full",defaultValue:C})=>{const j=f.useTheme(),k=o?void 0:e,v=n<0?0:n,[S,T]=u.useState(w?y._.toNumber(w):C?y._.toNumber(C):0),D=u.useCallback(()=>{const M=(S-10**-v).toFixed(v),B=Math.max(Number(l),Number(M));h&&h(s,B,{shouldDirty:!0}),T(B);const V=ye("change",s,M);c&&c(V)},[S,v,l,h,s,c]),z=u.useCallback(()=>{const M=(S+10**-v).toFixed(v),B=Math.min(Number(a),Number(M)>Number(l)?Number(M):Number(l));h&&h(s,B,{shouldDirty:!0}),T(B);const V=ye("change",s,M);c&&c(V)},[S,v,a,l,h,s,c]),A=u.useCallback(M=>{const{value:B}=M.target,V=/\d+/u.test(B)&&!y._.isEmpty(B);h&&h(s,V?B:void 0),c&&c(M),T(Number(B))},[s,c,h]),I=u.useCallback(M=>{M.stopPropagation(),M.key==="Enter"&&!y.lodashExports.isEmpty(M.currentTarget.value)&&(d==null||d(y.lodashExports.toNumber(M.currentTarget.value)))},[d]),L=()=>t.jsx("input",{"aria-hidden":!1,"aria-invalid":k?"true":"false","aria-label":s,"aria-required":x,autoComplete:"off",disabled:o,id:r??s,max:a,min:l,onChange:A,onKeyUp:I,placeholder:p,required:x,step:10**-v,type:"number",value:S,...g==null?void 0:g(s,{maxLength:i,max:a,min:l,onChange:A,value:w,valueAsNumber:!0})});return t.jsxs(q,{$variant:m,className:`${o?"disabled":""} ${k?"error":""}`,children:[m==="compact"&&b?t.jsx(Y,{id:`numberInputTooltip-${s}`,tip:b,width:"100%",children:L()}):L(),k&&t.jsx(R,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:j.palette.error[500],iconSize:"lg"}),m==="compact"?t.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",borderLeft:"inherit"},children:[t.jsx(pe,{borderRadius:`0 ${j.spacing[.5]} 0 0`,disabled:o,icon:"plus",onClick:z,px:.25}),t.jsx(qo,{}),t.jsx(pe,{borderRadius:`0 0 ${j.spacing[.5]} 0`,disabled:o,icon:"minus",onClick:D,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:D,px:.75,py:.75}),t.jsx(pe,{borderRadius:`0 ${j.spacing[.5]} ${j.spacing[.5]} 0`,disabled:o,icon:"plus",onClick:z,px:.75,py:.75})]})]})},qt=({autoUpdate:e,decimalPlaces:n,disabled:o=!1,error:r,helpLink:i,helpLinkText:a,helpText:l,id:s,label:c,linkPosition:d,maxLength:p,max:g,min:x,name:h,onChange:b,onEnter:w,placeholder:m,register:C,required:j,setValue:k,tooltip:v,tooltipMessage:S,value:T,variant:D="full",watch:z,weight:A,defaultValue:I})=>D==="compact"?t.jsx(be,{"aria-label":h,autoUpdate:e,decimalPlaces:n,defaultValue:I??Number(T??0),disabled:o,max:g,min:x,name:h,onEnter:w??(()=>{}),tooltipMessage:S,value:T,variant:D}):t.jsx(K,{error:o?void 0:r,helpLink:i,helpLinkText:a,helpText:l,htmlFor:h,label:c,linkPosition:d,maxLength:p,required:j,tooltip:v,weight:A,children:t.jsx(be,{decimalPlaces:n,disabled:o,error:r,id:s,max:g,maxLength:p,min:x,name:h,onChange:b,placeholder:m,register:C,required:j,setValue:k,value:z?z(h):T,variant:D})}),Xt=({disabled:e=!1,error:n,name:o,label:r,propsMax:i,propsMin:a,required:l,tooltip:s,variant:c="default"})=>{const d=`${o}Max`,p=`${o}Min`;return t.jsx(K,{error:e?void 0:n,htmlFor:o,label:r,required:l,tooltip:s,children:t.jsxs($,{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)??p}),t.jsx(be,{...i,disabled:e,error:n,name:(i==null?void 0:i.name)??d})]})})},Rr=f.styled.div`
1366
+ `,qe=({disabled:e=!1,error:n,field:o,helpLink:r,helpLinkText:i,helpText:a,label:l,name:s="input-tag",onChange:c,onRemove:d,placeholder:p,required:g,tooltip:x,value:h,weight:b})=>{const w=f.useTheme(),m=e?void 0:n,[z,j]=u.useState(""),k=c?h:o==null?void 0:o.value,v=u.useMemo(()=>k&&typeof k=="string"?k.split(",").filter(Boolean):[],[k]),C=u.useCallback(I=>{const M=[...new Set(I.filter(Boolean))].join(","),B=ye("change",s,M);o&&o.onChange(B),c&&c(B)},[o,s,c]),T=u.useCallback(I=>{j(I.target.value)},[]),R=u.useCallback(I=>{const L=z.trim();L.length&&!v.includes(L)&&(I.preventDefault(),C([...v,L]),j("")),o&&o.onBlur()},[z,o,C,v]),S=u.useCallback(I=>{const L=z.trim();I.key==="Enter"&&L.length===0&&I.preventDefault(),["Enter",","].includes(I.key)&&L.length>0&&!v.includes(L)?(I.preventDefault(),C([...v,L]),j("")):I.key==="Backspace"&&!L.length&&v.length&&(I.preventDefault(),d==null||d(v[v.length-1]),C(v.slice(0,-1)))},[z,d,C,v]),A=u.useCallback(I=>()=>{d==null||d(I),C(v.filter(L=>L!==I))},[d,C,v]);return t.jsx(Y,{error:m,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":""} ${m?"error":""}`,children:[v.map(I=>t.jsx(X,{disabled:e,onClose:A(I),tagLabel:I},I)),t.jsx(Ir,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":s,"aria-required":g,autoComplete:"off",disabled:e,id:s,onBlur:R,onChange:T,onKeyDown:S,placeholder:v.length===0?p:void 0,ref:o==null?void 0:o.ref,type:"text",value:z}),m?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"lg"}):void 0]})})},Er=({disabled:e=!1,control:n,error:o,helpLink:r,helpLinkText:i,helpText:a,label:l,name:s="input-tag",onChange:c,onRemove:d,placeholder:p,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:d,placeholder:p,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:d,placeholder:p,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(ar,{$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:d,placeholder:p,register:g,required:x,setValue:h,tooltipMessage:b,value:w,variant:m="full",defaultValue:z})=>{const j=f.useTheme(),k=o?void 0:e,v=n<0?0:n,[C,T]=u.useState(w?y._.toNumber(w):z?y._.toNumber(z):0),R=u.useCallback(()=>{const M=(C-10**-v).toFixed(v),B=Math.max(Number(l),Number(M));h&&h(s,B,{shouldDirty:!0}),T(B);const V=ye("change",s,M);c&&c(V)},[C,v,l,h,s,c]),S=u.useCallback(()=>{const M=(C+10**-v).toFixed(v),B=Math.min(Number(a),Number(M)>Number(l)?Number(M):Number(l));h&&h(s,B,{shouldDirty:!0}),T(B);const V=ye("change",s,M);c&&c(V)},[C,v,a,l,h,s,c]),A=u.useCallback(M=>{const{value:B}=M.target,V=/\d+/u.test(B)&&!y._.isEmpty(B);h&&h(s,V?B:void 0),c&&c(M),T(Number(B))},[s,c,h]),I=u.useCallback(M=>{M.stopPropagation(),M.key==="Enter"&&!y.lodashExports.isEmpty(M.currentTarget.value)&&(d==null||d(y.lodashExports.toNumber(M.currentTarget.value)))},[d]),L=()=>t.jsx("input",{"aria-hidden":!1,"aria-invalid":k?"true":"false","aria-label":s,"aria-required":x,autoComplete:"off",disabled:o,id:r??s,max:a,min:l,onChange:A,onKeyUp:I,placeholder:p,required:x,step:10**-v,type:"number",value:C,...g==null?void 0:g(s,{maxLength:i,max:a,min:l,onChange:A,value:w,valueAsNumber:!0})});return t.jsxs(q,{$variant:m,className:`${o?"disabled":""} ${k?"error":""}`,children:[m==="compact"&&b?t.jsx(K,{id:`numberInputTooltip-${s}`,tip:b,width:"100%",children:L()}):L(),k&&t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:j.palette.error[500],iconSize:"lg"}),m==="compact"?t.jsxs("div",{style:{display:"flex",flexDirection:"column",height:"100%",justifyContent:"center",borderLeft:"inherit"},children:[t.jsx(pe,{borderRadius:`0 ${j.spacing[.5]} 0 0`,disabled:o,icon:"plus",onClick:S,px:.25}),t.jsx(qo,{}),t.jsx(pe,{borderRadius:`0 0 ${j.spacing[.5]} 0`,disabled:o,icon:"minus",onClick:R,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:R,px:.75,py:.75}),t.jsx(pe,{borderRadius:`0 ${j.spacing[.5]} ${j.spacing[.5]} 0`,disabled:o,icon:"plus",onClick:S,px:.75,py:.75})]})]})},qt=({autoUpdate:e,decimalPlaces:n,disabled:o=!1,error:r,helpLink:i,helpLinkText:a,helpText:l,id:s,label:c,linkPosition:d,maxLength:p,max:g,min:x,name:h,onChange:b,onEnter:w,placeholder:m,register:z,required:j,setValue:k,tooltip:v,tooltipMessage:C,value:T,variant:R="full",watch:S,weight:A,defaultValue:I})=>R==="compact"?t.jsx(be,{"aria-label":h,autoUpdate:e,decimalPlaces:n,defaultValue:I??Number(T??0),disabled:o,max:g,min:x,name:h,onEnter:w??(()=>{}),tooltipMessage:C,value:T,variant:R}):t.jsx(Y,{error:o?void 0:r,helpLink:i,helpLinkText:a,helpText:l,htmlFor:h,label:c,linkPosition:d,maxLength:p,required:j,tooltip:v,weight:A,children:t.jsx(be,{decimalPlaces:n,disabled:o,error:r,id:s,max:g,maxLength:p,min:x,name:h,onChange:b,placeholder:m,register:z,required:j,setValue:k,value:S?S(h):T,variant:R})}),Xt=({disabled:e=!1,error:n,name:o,label:r,propsMax:i,propsMin:a,required:l,tooltip:s,variant:c="default"})=>{const d=`${o}Max`,p=`${o}Min`;return t.jsx(Y,{error:e?void 0:n,htmlFor:o,label:r,required:l,tooltip:s,children:t.jsxs($,{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)??p}),t.jsx(be,{...i,disabled:e,error:n,name:(i==null?void 0:i.name)??d})]})})},Dr=f.styled.div`
1366
1367
  ${({theme:e})=>`
1367
1368
  align-items: flex-start;
1368
1369
  align-self: stretch;
@@ -1402,7 +1403,7 @@
1402
1403
  }
1403
1404
  }
1404
1405
  `}
1405
- `,Dr=f.styled.button`
1406
+ `,Rr=f.styled.button`
1406
1407
  ${({theme:e})=>`
1407
1408
  align-items: center;
1408
1409
  background: inherit;
@@ -1418,7 +1419,7 @@
1418
1419
  cursor: not-allowed;
1419
1420
  }
1420
1421
  `}
1421
- `,Nr=f.styled.ul`
1422
+ `,Fr=f.styled.ul`
1422
1423
  ${({theme:e})=>`
1423
1424
  align-items: flex-start;
1424
1425
  box-shadow: ${e.shadows.md};
@@ -1432,7 +1433,7 @@
1432
1433
  scrollbar-width: thin;
1433
1434
  width: max-content;
1434
1435
  `}
1435
- `,Fr=f.styled.li`
1436
+ `,Nr=f.styled.li`
1436
1437
  ${({theme:e})=>`
1437
1438
  align-items: center;
1438
1439
  background: ${e.palette.white};
@@ -1456,15 +1457,15 @@
1456
1457
  overflow: hidden;
1457
1458
  text-overflow: ellipsis;
1458
1459
  white-space: nowrap;
1459
- `,Ar=({disabled:e,error:n,label:o,name:r,placeholder:i,required:a,register:l,tooltip:s,value:c,watch:d,weight:p})=>{const g=f.useTheme(),x=u.useRef(null),h=e?void 0:n,b=(d==null?void 0:d(r))??c,[w,m]=u.useState(!1),[C,j]=u.useState(""),{refs:k,floatingStyles:v}=y.useFloating$1({placement:"bottom-start",whileElementsMounted:y.autoUpdate}),{inputRef:S,inputValue:T,handlePhoneValueChange:D,country:z,setCountry:A}=y.ee({countries:y._$1,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),I=u.useCallback(_=>{_.key==="Enter"&&_.preventDefault()},[]),L=u.useCallback(_=>{_.preventDefault(),m(W=>!W),w||j("")},[w]),M=u.useCallback(_=>()=>{A(_),m(!1),j("")},[A,m]),B=u.useCallback(_=>{_.key.length===1?j(W=>W+_.key):_.key==="Backspace"&&j(W=>W.slice(0,-1))},[]),V=y._$1.filter(_=>{const{name:W}=y.M(_);return W.toLowerCase().includes(C.toLowerCase())});return ne(k.floating.current,()=>{m(!1),j("")},!0),t.jsx(K,{error:h,htmlFor:r,label:o,required:a,tooltip:s,weight:p,children:t.jsxs(Rr,{className:`${e?"disabled":""} ${h?"error":""}`,ref:x,children:[t.jsxs(Dr,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:B,ref:k.setReference,children:[t.jsx(y.q,{iso2:z.iso2,size:"16px"}),t.jsx(R,{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:I,placeholder:i,ref:S,type:"tel",value:T,...l==null?void 0:l(r,{required:a,onChange:D})}),h?t.jsx(R,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:g.palette.error[500],iconSize:"lg"}):void 0]}),w&&le.createPortal(t.jsx(Nr,{ref:k.setFloating,style:v,children:V.map(_=>{const{dialCode:W,iso2:J,name:ce}=y.M(_);return t.jsxs(Fr,{onClick:M(J),value:J,children:[t.jsx(y.q,{iso2:J,size:"16px"}),t.jsx(Lr,{children:ce}),t.jsx(E,{color:g.palette.gray[400],size:"md",textAlign:"end",children:"+"+W})]},J)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},Pr=({disabled:e=!1,error:n,helpLink:o,helpLinkText:r,helpText:i,isTouched:a,isValid:l,label:s,name:c="input-text",id:d,maskValue:p=!1,maxLength:g,onBlur:x,placeholder:h,register:b,required:w,rows:m,tooltip:C,watch:j,weight:k,value:v})=>{const S=f.useTheme(),T=(j==null?void 0:j(c))??v,D=l&&a&&!e,z=e?void 0:n;return t.jsx(K,{disabled:e,error:z,helpLink:o,helpLinkText:r,helpText:i,htmlFor:c,label:s,maxLength:g,required:w,tooltip:C,value:T?String(T):void 0,weight:k,children:t.jsxs(q,{className:`
1460
- ${e?"disabled":""} ${z?"error":""} ${D?"success":""}
1461
- `,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":z?"true":"false","aria-label":c,"aria-required":w,className:p?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:g,placeholder:h,rows:m,value:T,...b==null?void 0:b(c,{required:w,onBlur:x})}),z?t.jsx(R,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:S.palette.error[500],iconSize:"lg"}):void 0,D?t.jsx(R,{icon:"check-circle",iconClass:"success-icon",iconColor:S.palette.success[500],iconSize:"lg"}):void 0]})})},Or=({control:e,description:n,disabled:o,id:r,items:i,align:a,inputType:l="text",inputNumberProps:s,minHeight:c,minWidth:d,name:p,placeholder:g,textAlign:x,tooltip:h,title:b,value:w,isTouched:m,isValid:C,error:j,onChange:k,register:v,setValue:S,watch:T})=>{const D=u.useMemo(()=>{if(l==="text")return t.jsx(Me,{disabled:o,error:j,isTouched:m,isValid:C,name:p,placeholder:g,register:v});if(l==="date")return t.jsx(Ut,{disabled:o,error:j,name:p,register:v,setValue:S,watch:T});if(l==="select"&&i)return t.jsx(at,{control:e,disabled:o,items:i,name:p,placeholder:g,value:w});const{decimalPlaces:z,max:A,min:I}=s??{};return t.jsx(qt,{decimalPlaces:z,disabled:o,error:j,max:A,min:I,name:p,onChange:k,placeholder:g,register:v,setValue:S,value:w,watch:T})},[e,o,j,s,l,m,C,i,p,k,g,v,S,w,T]);return t.jsxs(Ko,{$align:a,$minHeight:c,$minWidth:d,children:[t.jsx(Le,{description:n,id:r,textAlign:x,title:b,tooltip:h}),D]})},Jt=({options:e,title:n,checkboxesName:o,defaultBgColor:r,defaultCollapsed:i,onChange:a})=>{const l=f.useTheme(),[s,c]=u.useState(i??!1),d=u.useCallback(()=>{c(p=>!p)},[]);return t.jsxs($,{"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($,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(E,{color:l.palette.gray[800],fontWeight:"bold",size:"md",children:n}),t.jsx(R,{icon:s?"chevron-up":"chevron-down",iconColor:l.palette.gray[400],iconSize:"lg"})]}),s?t.jsx($,{display:"flex",gap:.75,wrap:"wrap",children:e.map(p=>t.jsx($,{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:p.visible,disabled:p.locked,label:p.name,name:`${o}-${p.name}`,onChange:a,value:p.name})},p.name))}):void 0]})},Mr=f.styled.div`
1460
+ `,Ar=({disabled:e,error:n,label:o,name:r,placeholder:i,required:a,register:l,tooltip:s,value:c,watch:d,weight:p})=>{const g=f.useTheme(),x=u.useRef(null),h=e?void 0:n,b=(d==null?void 0:d(r))??c,[w,m]=u.useState(!1),[z,j]=u.useState(""),{refs:k,floatingStyles:v}=y.useFloating$1({placement:"bottom-start",whileElementsMounted:y.autoUpdate}),{inputRef:C,inputValue:T,handlePhoneValueChange:R,country:S,setCountry:A}=y.ee({countries:y._$1,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),I=u.useCallback(_=>{_.key==="Enter"&&_.preventDefault()},[]),L=u.useCallback(_=>{_.preventDefault(),m(W=>!W),w||j("")},[w]),M=u.useCallback(_=>()=>{A(_),m(!1),j("")},[A,m]),B=u.useCallback(_=>{_.key.length===1?j(W=>W+_.key):_.key==="Backspace"&&j(W=>W.slice(0,-1))},[]),V=y._$1.filter(_=>{const{name:W}=y.M(_);return W.toLowerCase().includes(z.toLowerCase())});return ne(k.floating.current,()=>{m(!1),j("")},!0),t.jsx(Y,{error:h,htmlFor:r,label:o,required:a,tooltip:s,weight:p,children:t.jsxs(Dr,{className:`${e?"disabled":""} ${h?"error":""}`,ref:x,children:[t.jsxs(Rr,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:B,ref:k.setReference,children:[t.jsx(y.q,{iso2:S.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:I,placeholder:i,ref:C,type:"tel",value:T,...l==null?void 0:l(r,{required:a,onChange:R})}),h?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:g.palette.error[500],iconSize:"lg"}):void 0]}),w&&le.createPortal(t.jsx(Fr,{ref:k.setFloating,style:v,children:V.map(_=>{const{dialCode:W,iso2:J,name:ce}=y.M(_);return t.jsxs(Nr,{onClick:M(J),value:J,children:[t.jsx(y.q,{iso2:J,size:"16px"}),t.jsx(Lr,{children:ce}),t.jsx(E,{color:g.palette.gray[400],size:"md",textAlign:"end",children:"+"+W})]},J)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},Pr=({disabled:e=!1,error:n,helpLink:o,helpLinkText:r,helpText:i,isTouched:a,isValid:l,label:s,name:c="input-text",id:d,maskValue:p=!1,maxLength:g,onBlur:x,placeholder:h,register:b,required:w,rows:m,tooltip:z,watch:j,weight:k,value:v})=>{const C=f.useTheme(),T=(j==null?void 0:j(c))??v,R=l&&a&&!e,S=e?void 0:n;return t.jsx(Y,{disabled:e,error:S,helpLink:o,helpLinkText:r,helpText:i,htmlFor:c,label:s,maxLength:g,required:w,tooltip:z,value:T?String(T):void 0,weight:k,children:t.jsxs(q,{className:`
1461
+ ${e?"disabled":""} ${S?"error":""} ${R?"success":""}
1462
+ `,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":S?"true":"false","aria-label":c,"aria-required":w,className:p?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:g,placeholder:h,rows:m,value:T,...b==null?void 0:b(c,{required:w,onBlur:x})}),S?t.jsx(D,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:C.palette.error[500],iconSize:"lg"}):void 0,R?t.jsx(D,{icon:"check-circle",iconClass:"success-icon",iconColor:C.palette.success[500],iconSize:"lg"}):void 0]})})},Or=({control:e,description:n,disabled:o,id:r,items:i,align:a,inputType:l="text",inputNumberProps:s,minHeight:c,minWidth:d,name:p,placeholder:g,textAlign:x,tooltip:h,title:b,value:w,isTouched:m,isValid:z,error:j,onChange:k,register:v,setValue:C,watch:T})=>{const R=u.useMemo(()=>{if(l==="text")return t.jsx(Me,{disabled:o,error:j,isTouched:m,isValid:z,name:p,placeholder:g,register:v});if(l==="date")return t.jsx(Ut,{disabled:o,error:j,name:p,register:v,setValue:C,watch:T});if(l==="select"&&i)return t.jsx(at,{control:e,disabled:o,items:i,name:p,placeholder:g,value:w});const{decimalPlaces:S,max:A,min:I}=s??{};return t.jsx(qt,{decimalPlaces:S,disabled:o,error:j,max:A,min:I,name:p,onChange:k,placeholder:g,register:v,setValue:C,value:w,watch:T})},[e,o,j,s,l,m,z,i,p,k,g,v,C,w,T]);return t.jsxs(Ko,{$align:a,$minHeight:c,$minWidth:d,children:[t.jsx(Le,{description:n,id:r,textAlign:x,title:b,tooltip:h}),R]})},Jt=({options:e,title:n,checkboxesName:o,defaultBgColor:r,defaultCollapsed:i,onChange:a})=>{const l=f.useTheme(),[s,c]=u.useState(i??!1),d=u.useCallback(()=>{c(p=>!p)},[]);return t.jsxs($,{"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($,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(E,{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($,{display:"flex",gap:.75,wrap:"wrap",children:e.map(p=>t.jsx($,{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:p.visible,disabled:p.locked,label:p.name,name:`${o}-${p.name}`,onChange:a,value:p.name})},p.name))}):void 0]})},Mr=f.styled.div`
1462
1463
  display: flex;
1463
1464
  align-self: flex-start;
1464
1465
  margin-left: auto;
1465
1466
  width: 40px;
1466
1467
  height: auto;
1467
- `,Qt=(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}},en=({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}},Wr=e=>e.reduce((n,o)=>({...n,[o.id]:o.visible}),{}),tn=({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:m})=>!m),b=[...g.filter(({locked:m})=>m),...x],w=b.map(({name:m})=>m);s(m=>[...b,...m.filter(({name:C})=>!w.includes(C))]),r&&r(b.map(({id:m})=>m))},[r]),d=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(Wr(g)),c(g)},[l,o,c,i]),p=u.useMemo(()=>y.some(l,g=>((o==null?void 0:o.includes(g.id))??!1)!==g.visible),[l,o]);return{setColumns:c,resetToDefault:d,columns:l,...Ie(e),hasChanged:p}},lt=(e,n)=>u.useMemo(()=>y._.debounce(e,n),[e,n]),Hr=e=>{const[n,o]=u.useState(),r=lt(i=>{o(i)},(e==null?void 0:e.debounceWait)??300);return[n,r]},Br=({alt:e="img",height:n="",width:o="",plugins:r=[y.lazyload(),y.placeholder()],publicId:i})=>{const a=en({publicId:i});return t.jsx(y.AdvancedImage,{alt:e,cldImg:a,height:n,plugins:r,width:o})},re=tt.default.memo(Br),_r=f.styled.label`
1468
+ `,Qt=(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}},en=({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}},Wr=e=>e.reduce((n,o)=>({...n,[o.id]:o.visible}),{}),tn=({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:m})=>!m),b=[...g.filter(({locked:m})=>m),...x],w=b.map(({name:m})=>m);s(m=>[...b,...m.filter(({name:z})=>!w.includes(z))]),r&&r(b.map(({id:m})=>m))},[r]),d=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(Wr(g)),c(g)},[l,o,c,i]),p=u.useMemo(()=>y.some(l,g=>((o==null?void 0:o.includes(g.id))??!1)!==g.visible),[l,o]);return{setColumns:c,resetToDefault:d,columns:l,...Ie(e),hasChanged:p}},lt=(e,n)=>u.useMemo(()=>y._.debounce(e,n),[e,n]),Hr=e=>{const[n,o]=u.useState(),r=lt(i=>{o(i)},(e==null?void 0:e.debounceWait)??300);return[n,r]},Br=({alt:e="img",height:n="",width:o="",plugins:r=[y.lazyload(),y.placeholder()],publicId:i})=>{const a=en({publicId:i});return t.jsx(y.AdvancedImage,{alt:e,cldImg:a,height:n,plugins:r,width:o})},re=tt.default.memo(Br),_r=f.styled.label`
1468
1469
  ${({theme:e})=>`
1469
1470
  align-items: center;
1470
1471
  display: flex;
@@ -1543,7 +1544,7 @@
1543
1544
  }
1544
1545
 
1545
1546
  `}
1546
- `,Vr=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},d){return t.jsxs(_r,{"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:d,type:"radio",value:s,...c}),t.jsx(Vr,{}),r??null]})}),Ur=({alt:e,customDescription:n,imageId:o,icon:r,selectorProps:i,onClick:a,register:l,bgColor:s,title:c,isATag:d=!1,width:p="fit-content"})=>{const g=f.useTheme();return t.jsxs($,{alignItems:"center",bgColor:s??"",border:`1px solid ${g.palette.gray[200]}`,borderColorHover:g.palette.gray[600],borderRadius:g.spacing[.25],display:"inline-flex",pr:d?1:0,shadowHover:"md",width:p,children:[t.jsxs($,{display:"inline-flex",padding:[1,1,1,1],children:[t.jsx($,{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($,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[!d&&o!==void 0&&t.jsx(re,{alt:e??"card image",height:"32px",publicId:o,width:"32px"}),r===void 0?void 0:t.jsx(R,{icon:r,iconSize:"xl",iconType:"fa-light"}),t.jsxs($,{display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(E,{color:g.palette.gray[800],fontWeight:"bold",size:"md",children:c}),n===void 0?void 0:t.jsx($,{children:n})]})]})]}),d&&t.jsx(Mr,{children:t.jsx(re,{alt:e??"tag image",height:"40px",publicId:o??"tag image",width:"40px"})})]})},ge=f.styled.div`
1547
+ `,Vr=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},d){return t.jsxs(_r,{"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:d,type:"radio",value:s,...c}),t.jsx(Vr,{}),r??null]})}),Ur=({alt:e,customDescription:n,imageId:o,icon:r,selectorProps:i,onClick:a,register:l,bgColor:s,title:c,isATag:d=!1,width:p="fit-content"})=>{const g=f.useTheme();return t.jsxs($,{alignItems:"center",bgColor:s??"",border:`1px solid ${g.palette.gray[200]}`,borderColorHover:g.palette.gray[600],borderRadius:g.spacing[.25],display:"inline-flex",pr:d?1:0,shadowHover:"md",width:p,children:[t.jsxs($,{display:"inline-flex",padding:[1,1,1,1],children:[t.jsx($,{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($,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[!d&&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($,{display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(E,{color:g.palette.gray[800],fontWeight:"bold",size:"md",children:c}),n===void 0?void 0:t.jsx($,{children:n})]})]})]}),d&&t.jsx(Mr,{children:t.jsx(re,{alt:e??"tag image",height:"40px",publicId:o??"tag image",width:"40px"})})]})},ge=f.styled.div`
1547
1548
  ${({theme:e})=>`
1548
1549
  align-items: center;
1549
1550
  background-color: ${e.palette.gray[200]};
@@ -1593,7 +1594,7 @@
1593
1594
  background-color: ${({theme:e})=>e.palette.gray[200]};
1594
1595
  border: 1px solid ${({theme:e})=>e.palette.gray[200]};
1595
1596
  }
1596
- `,nn=u.forwardRef(function({defaultChecked:n,disabled:o=!1,justify:r,name:i,leftDescription:a,leftDescriptionMinWidth:l,rightDescription:s,onChange:c,...d},p){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($,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:r,children:[t.jsx($,{minWidth:l,children:x}),t.jsxs(Yr,{onClick:h,role:"switch",children:[t.jsx("input",{...d,"aria-disabled":o,"aria-label":i,checked:n===!0,disabled:o,name:i,onChange:c,ref:p,type:"checkbox"}),t.jsx(ge,{"aria-label":"Toggle Switch",id:`${i}Toggle`,children:t.jsx(Gr,{})})]}),s]})}),Kr=({id:e,title:n,toggles:o,minWidth:r="auto",height:i="auto"})=>{const a=f.useTheme();return t.jsxs($,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${a.palette.gray[200]}`,borderRadius:a.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:i,justify:"center",minHeight:"100px",minWidth:r,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(Le,{id:e,title:n}),t.jsx($,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:o.map(l=>t.jsx(nn,{...l},`$card-toggle-${l.name}`))})]})},Zr=({description:e,height:n="auto",leftIconName:o,children:r,rightIconName:i,title:a,tooltipId:l,tooltipTip:s,tooltipPlace:c="bottom",variant:d="centered",width:p="318px"})=>{const g=f.useTheme(),x=d==="centered",h=l&&s?t.jsx(Y,{display:"flex",icon:i??o,iconColor:g.palette.gray[800],id:l,place:c,tip:s}):void 0;return t.jsxs($,{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:p,children:[t.jsxs($,{alignItems:"center",display:"flex",gap:.5,children:[x||y.isUndefined(o)?void 0:h,t.jsx(E,{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($,{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]})]})},qr=.5,kt=1.25,Xr=({children:e,bgColor:n,border:o,gap:r=qr,px:i=kt,py:a=kt,...l})=>{const s=f.useTheme();return t.jsx($,{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})},Jr=f.styled.div`
1597
+ `,nn=u.forwardRef(function({defaultChecked:n,disabled:o=!1,justify:r,name:i,leftDescription:a,leftDescriptionMinWidth:l,rightDescription:s,onChange:c,...d},p){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($,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:r,children:[t.jsx($,{minWidth:l,children:x}),t.jsxs(Yr,{onClick:h,role:"switch",children:[t.jsx("input",{...d,"aria-disabled":o,"aria-label":i,checked:n===!0,disabled:o,name:i,onChange:c,ref:p,type:"checkbox"}),t.jsx(ge,{"aria-label":"Toggle Switch",id:`${i}Toggle`,children:t.jsx(Gr,{})})]}),s]})}),Kr=({id:e,title:n,toggles:o,minWidth:r="auto",height:i="auto"})=>{const a=f.useTheme();return t.jsxs($,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${a.palette.gray[200]}`,borderRadius:a.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:i,justify:"center",minHeight:"100px",minWidth:r,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(Le,{id:e,title:n}),t.jsx($,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:o.map(l=>t.jsx(nn,{...l},`$card-toggle-${l.name}`))})]})},Zr=({description:e,height:n="auto",leftIconName:o,children:r,rightIconName:i,title:a,tooltipId:l,tooltipTip:s,tooltipPlace:c="bottom",variant:d="centered",width:p="318px"})=>{const g=f.useTheme(),x=d==="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($,{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:p,children:[t.jsxs($,{alignItems:"center",display:"flex",gap:.5,children:[x||y.isUndefined(o)?void 0:h,t.jsx(E,{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($,{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]})]})},qr=.5,kt=1.25,Xr=({children:e,bgColor:n,border:o,gap:r=qr,px:i=kt,py:a=kt,...l})=>{const s=f.useTheme();return t.jsx($,{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})},Jr=f.styled.div`
1597
1598
  position: relative;
1598
1599
  margin: auto;
1599
1600
  overflow: hidden;
@@ -1717,7 +1718,7 @@
1717
1718
  `,rn=({noCodeMessage:e="Code snippet not available",snippet:n,specific:o})=>(u.useEffect(()=>{y.prismExports.highlightAll()},[]),t.jsx(on,{"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})})})),ii=({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,d]=u.useState(!0),p=u.useCallback(()=>{s(b=>!b)},[s]),g=u.useCallback(()=>{if(y._.isNil(n)||y._.isEmpty(n)||!y._.isString(n))return d(!1),e;const b=n.split(`
1718
1719
  `);return b.length>8&&!l?`${[...b].splice(0,7).join(`
1719
1720
  `)}
1720
- ${b[8]}...`:(b.length<8&&d(!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(rn,{noCodeMessage:e,snippet:n,specific:o}):t.jsxs($,{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(on,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:x})})}),t.jsxs(ri,{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(O,{onClick:p,variant:"ghost",children:[l?"Show Less":"Show more",t.jsx(R,{icon:l?"chevron-up":"chevron-down",iconColor:a.palette.gray[700],iconSize:"sm",iconType:"fa-light",ml:.25,onClick:h})]}):!1]})]})},{getVariant:ai}=Q(e=>({fixed:`
1721
+ ${b[8]}...`:(b.length<8&&d(!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(rn,{noCodeMessage:e,snippet:n,specific:o}):t.jsxs($,{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(on,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:x})})}),t.jsxs(ri,{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(O,{onClick:p,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:ai}=Q(e=>({fixed:`
1721
1722
  height: auto;
1722
1723
  min-width: 300px;
1723
1724
  padding: ${e.spacing[1.25]};
@@ -1891,7 +1892,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
1891
1892
  }
1892
1893
  }
1893
1894
  }
1894
- `,dn=({end:e=!1,label:n,id:o,isActive:r=!1,link:i,notificationSign:a,onClick:l,tooltip:s="",variant:c="primary",tag:d})=>{const{pathname:p}=Ge.useLocation(),g=r||(c==="primary"?p.includes(i):p.endsWith(i));return t.jsx(Y,{display:"flex",id:`${o}-tooltip`,tip:s,children:t.jsxs(ui,{$borderButton:g,$variant:c,children:[t.jsx(Ge.NavLink,{end:e,id:o,onClick:l,to:i,children:n}),t.jsx(De,{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}),d===void 0?null:t.jsx(X,{tagLabel:`${d}`,variant:"default"})]})})},pt=({items:e,borders:n=!0,box:o=!1,variant:r="primary"})=>{const i=f.useTheme();return t.jsx($,{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:d,notificationSign:p,onClick:g,tag:x,tooltip:h})=>t.jsx(dn,{end:a,id:l,isActive:s,label:d,link:c,notificationSign:p,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($,{as:"hr",borderTop:`1px solid ${n}`,mb:r,mt:o,ref:l,width:i??"100%",...a})}),xi=f.styled.li`
1895
+ `,dn=({end:e=!1,label:n,id:o,isActive:r=!1,link:i,notificationSign:a,onClick:l,tooltip:s="",variant:c="primary",tag:d})=>{const{pathname:p}=Ge.useLocation(),g=r||(c==="primary"?p.includes(i):p.endsWith(i));return t.jsx(K,{display:"flex",id:`${o}-tooltip`,tip:s,children:t.jsxs(ui,{$borderButton:g,$variant:c,children:[t.jsx(Ge.NavLink,{end:e,id:o,onClick:l,to:i,children:n}),t.jsx(Re,{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}),d===void 0?null:t.jsx(X,{tagLabel:`${d}`,variant:"default"})]})})},pt=({items:e,borders:n=!0,box:o=!1,variant:r="primary"})=>{const i=f.useTheme();return t.jsx($,{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:d,notificationSign:p,onClick:g,tag:x,tooltip:h})=>t.jsx(dn,{end:a,id:l,isActive:s,label:d,link:c,notificationSign:p,onClick:g,tag:x,tooltip:h,variant:r},l))})},ae=u.forwardRef(function({color:n=F.palette.gray[100],mt:o=.5,mb:r=.5,width:i,...a},l){return t.jsx($,{as:"hr",borderTop:`1px solid ${n}`,mb:r,mt:o,ref:l,width:i??"100%",...a})}),xi=f.styled.li`
1895
1896
  ${({theme:e})=>`
1896
1897
  align-items: center;
1897
1898
  background-color: ${e.palette.white};
@@ -1949,7 +1950,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
1949
1950
  min-width: 240px;
1950
1951
  padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
1951
1952
  `}
1952
- `,Ee=({children:e,disabled:n=!1,icon:o,iconType:r="fa-light",href:i,onClick:a,onClickIcon:l,onKeyDown:s,rightIcon:c,selected:d=!1,value:p,...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(xi,{"aria-disabled":n,"aria-label":p,"aria-selected":d,"data-testid":p,onClick:a,onKeyDown:s,value:p,...g,children:[o!==void 0||p!==void 0?t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[o?t.jsx(R,{disabled:n,icon:o,iconColor:h,iconSize:"sm",iconType:r}):null,i===void 0?b:t.jsx(te,{href:i,children:b})]}):null,d||c?t.jsx(R,{disabled:n,icon:c??"check",iconClass:"selected",iconColor:h,iconSize:"lg",iconType:r,onClick:l}):null]})},hi=f.styled(Ee)`
1953
+ `,Ee=({children:e,disabled:n=!1,icon:o,iconType:r="fa-light",href:i,onClick:a,onClickIcon:l,onKeyDown:s,rightIcon:c,selected:d=!1,value:p,...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(xi,{"aria-disabled":n,"aria-label":p,"aria-selected":d,"data-testid":p,onClick:a,onKeyDown:s,value:p,...g,children:[o!==void 0||p!==void 0?t.jsxs($,{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,d||c?t.jsx(D,{disabled:n,icon:c??"check",iconClass:"selected",iconColor:h,iconSize:"lg",iconType:r,onClick:l}):null]})},hi=f.styled(Ee)`
1953
1954
  margin-top: 10px;
1954
1955
  border: 1px solid ${({theme:e})=>e.palette.gray[300]};
1955
1956
  border-radius: 4px;
@@ -2044,7 +2045,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2044
2045
  border-radius: ${e.spacing[.5]};
2045
2046
  width: 250px;
2046
2047
  `}
2047
- `,se=({name:e,smallSearch:n=!1,onClear:o,onChange:r,value:i,...a})=>{const l=u.useRef(null),s=f.useTheme(),[c,d]=u.useState(!1),[p,g]=u.useState(i??""),{refs:x,floatingStyles:h}=y.useFloating$1(),b=u.useCallback(()=>{d(k=>!k)},[]),w=u.useCallback(k=>{k.key==="Enter"&&k.preventDefault()},[]),m=u.useCallback(k=>{g(k.target.value),r==null||r(k)},[r]),C=u.useCallback(()=>{g(""),o==null||o()},[o]);ne(x.floating.current,()=>{d(!1)},!0);const j=t.jsxs(bi,{children:[t.jsx(R,{icon:"magnifying-glass",iconColor:s.palette.gray[700],iconSize:"lg",iconType:"fa-light"}),t.jsx(yi,{id:e,name:e,onChange:m,onKeyDown:w,ref:l,type:"search",value:p,...a}),!y.lodashExports.isEmpty(p)&&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($i,{ref:x.setFloating,style:h,children:j}):void 0]}):j},xn=({columns:e,formId:n,onChangeHandler:o,variant:r})=>{const i=u.useRef(null),[a,l]=u.useState([]),[s,c]=u.useState(""),d=u.useCallback(g=>{const{value:x}=g.target;c(x)},[]),p=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($,{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:d,onClear:p,value:s})}),t.jsx("form",{"data-testid":n,id:n,onReset:p,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(un(a)).map(([g,x],h)=>{const b=`li-checkbox${g}`;return t.jsx(Jt,{checkboxesName:g,defaultBgColor:!0,defaultCollapsed:h===0,onChange:o,options:x,title:g},b)})})]}):t.jsxs($,{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:d,onClear:p,value:s})}),t.jsx("form",{"data-testid":n,id:n,onReset:p,style:{paddingTop:"0.625rem"},children:a.map(g=>{const x=`li-checkbox-${g.name}`;return t.jsx(fi,{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)})})]})},hn=({_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 m;return w.name===h?((m=w.toggleVisibility)==null||m.call(w,x),{...w,visible:x}):w});o.setColumns(b)},[o]),d=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]),p=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(an,{"aria-label":o.name,"aria-modal":"true",children:t.jsxs(dt,{$size:"md",flexDirection:"column",children:[t.jsxs($,{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($,{display:"flex",gap:1.25,onScroll:p,px:1.25,ref:a,scroll:"y",width:"100%",children:[t.jsx(xn,{columns:o.columns,formId:"columns-visibility",onChangeHandler:c,variant:r}),t.jsx($,{borderLeft:`2px solid ${i.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(gn,{description:"Click and drag to reorder the columns",items:o.columns,onClickClose:d,onReorder:o.setColumns,title:"Reorder columns"})]}),t.jsx(ae,{mb:0,mt:0}),t.jsxs($,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(O,{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(O,{id:"columns-modal-submit",justify:"center",onClick:o.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},mi=f.styled(Ee)`
2048
+ `,se=({name:e,smallSearch:n=!1,onClear:o,onChange:r,value:i,...a})=>{const l=u.useRef(null),s=f.useTheme(),[c,d]=u.useState(!1),[p,g]=u.useState(i??""),{refs:x,floatingStyles:h}=y.useFloating$1(),b=u.useCallback(()=>{d(k=>!k)},[]),w=u.useCallback(k=>{k.key==="Enter"&&k.preventDefault()},[]),m=u.useCallback(k=>{g(k.target.value),r==null||r(k)},[r]),z=u.useCallback(()=>{g(""),o==null||o()},[o]);ne(x.floating.current,()=>{d(!1)},!0);const j=t.jsxs(bi,{children:[t.jsx(D,{icon:"magnifying-glass",iconColor:s.palette.gray[700],iconSize:"lg",iconType:"fa-light"}),t.jsx(yi,{id:e,name:e,onChange:m,onKeyDown:w,ref:l,type:"search",value:p,...a}),!y.lodashExports.isEmpty(p)&&t.jsx(H,{icon:"xmark",iconColor:s.palette.gray[300],iconSize:"lg",iconType:"fa-light",onClick:z,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($i,{ref:x.setFloating,style:h,children:j}):void 0]}):j},xn=({columns:e,formId:n,onChangeHandler:o,variant:r})=>{const i=u.useRef(null),[a,l]=u.useState([]),[s,c]=u.useState(""),d=u.useCallback(g=>{const{value:x}=g.target;c(x)},[]),p=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($,{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:d,onClear:p,value:s})}),t.jsx("form",{"data-testid":n,id:n,onReset:p,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(un(a)).map(([g,x],h)=>{const b=`li-checkbox${g}`;return t.jsx(Jt,{checkboxesName:g,defaultBgColor:!0,defaultCollapsed:h===0,onChange:o,options:x,title:g},b)})})]}):t.jsxs($,{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:d,onClear:p,value:s})}),t.jsx("form",{"data-testid":n,id:n,onReset:p,style:{paddingTop:"0.625rem"},children:a.map(g=>{const x=`li-checkbox-${g.name}`;return t.jsx(fi,{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)})})]})},hn=({_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 m;return w.name===h?((m=w.toggleVisibility)==null||m.call(w,x),{...w,visible:x}):w});o.setColumns(b)},[o]),d=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]),p=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(an,{"aria-label":o.name,"aria-modal":"true",children:t.jsxs(dt,{$size:"md",flexDirection:"column",children:[t.jsxs($,{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($,{display:"flex",gap:1.25,onScroll:p,px:1.25,ref:a,scroll:"y",width:"100%",children:[t.jsx(xn,{columns:o.columns,formId:"columns-visibility",onChangeHandler:c,variant:r}),t.jsx($,{borderLeft:`2px solid ${i.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(gn,{description:"Click and drag to reorder the columns",items:o.columns,onClickClose:d,onReorder:o.setColumns,title:"Reorder columns"})]}),t.jsx(ae,{mb:0,mt:0}),t.jsxs($,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(O,{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(O,{id:"columns-modal-submit",justify:"center",onClick:o.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},mi=f.styled(Ee)`
2048
2049
  padding: 8px;
2049
2050
  min-height: 36px;
2050
2051
  min-width: unset;
@@ -2061,7 +2062,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2061
2062
  svg.fa-check {
2062
2063
  border-radius: 2px;
2063
2064
  }
2064
- `,fn=({control:e,option:n,register:o,setValue:r})=>{var i,a,l,s,c;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(i=n.options)==null?void 0:i.map(p=>t.jsx(Ct,{value:p.value,width:"content",children:t.jsx(ie,{...o("checkbox"),label:p.label,value:p.value})},`li-checkbox-${p.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(p=>t.jsx(Ct,{value:p.value,width:"content",children:t.jsx(ct,{...o("radio"),label:p.label,value:p.value})},`li-radio-${p.value}`))]});case"select":return t.jsx(at,{control:e,items:((l=n.options)==null?void 0:l.map(p=>({name:p.label??"",value:p.value})))??[],label:n.label,name:`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`,placeholder:n.placeholder,value:n.value});case"text":const d=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Me,{label:n.label,name:d,placeholder:n.placeholder,register:o,value:n.value});case"numberRange":return t.jsx(Xt,{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(Yt,{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",{})}},yn=({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(fn,{control:e,option:i,register:o,setValue:r}),a<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),bn=e=>{var s,c,d,p,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:((d=(c=(s=e.find(x=>x.type==="radioButton"))==null?void 0:s.options)==null?void 0:c.find(({checked:x})=>x))==null?void 0:d.value)??"",text:e.filter(x=>["text","select"].includes(x.type)).reduce((x,h)=>({...x,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(p=e.find(x=>["numberRange","dateRange"].includes(x.type)))==null?void 0:p.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}},ji=(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(d=>d.checked).map(d=>d.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)},vi=(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())??"")}))??[],ki=async(e,n)=>await Promise.all(e.map(async o=>{if(o.type==="checkboxes"){const i=(o.filterOptions?await o.filterOptions(o.options??[],n):vi(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:d,setValue:p}=bn(e),g=e.some(b=>b.type==="checkboxes"&&b.hideSearch!==!0),x=u.useCallback(async b=>{const{value:w}=b.target;n&&n(w);const m=await ki(e,w);s(m)},[e,n,s]),h=u.useCallback(b=>{o&&o(b)},[o]);return u.useEffect(()=>{s(e),ji(e,p)},[e,s,p]),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:[i,t.jsx(se,{onChange:x})]}),t.jsxs("form",{id:r,onSubmit:d(h),children:[t.jsx(yn,{control:a,items:l,register:c,setValue:p}),t.jsx(O,{mt:1,type:"submit",children:"Apply"})]})]})},$n=({options:e,variant:n,onApplyFilters:o,onSearch:r,setDirection:i,setHandler:a})=>{const l=f.useTheme(),[s,c]=u.useState(e),[d,p]=u.useState([]),[g,x]=u.useState({}),[h,b]=u.useState(""),w=u.useCallback(j=>()=>{const k=s.find(S=>S.label===j),v=!(k!=null&&k.filterOptions.some(S=>S.type==="dateRange"||S.type==="select"));a==null||a(v??!0),b(j),p((k==null?void 0:k.filterOptions)??[])},[s,a]),m=u.useCallback(j=>{const k=[...j.checkbox,...Object.values(j.text??{}),...j.radio?[j.radio]:[],...j.minValue?[String(j.minValue)]:[],...j.maxValue?[String(j.maxValue)]:[]];x(z=>k.length>0?{...z,[h]:k}:z);const v=z=>{var A,I;return{...z,options:(A=z.options)==null?void 0:A.map(L=>({...L,checked:j.checkbox.includes(L.value)||j.radio===L.value})),value:["text","select"].includes(z.type)?((I=j.text)==null?void 0:I[`${String(z.key)}-${z.filterFn??"caseInsensitive"}`])??z.value:z.value,minValue:["numberRange","dateRange"].includes(z.type)?j.minValue:z.minValue,maxValue:["numberRange","dateRange"].includes(z.type)?j.maxValue:z.maxValue}},S=z=>z.label===h?{...z,filterOptions:z.filterOptions.map(v)}:z,T=s.map(S);c(z=>z.map(S));const D=T.flatMap(({filterOptions:z})=>z);o(D),p([])},[s,o,h]),C=u.useCallback((j,k)=>{const v=`li-filter-option-${j}`;return t.jsxs(mi,{icon:k,onClick:w(j),style:{minWidth:"180px",writingMode:"horizontal-tb"},value:v,width:"100%",children:[j,g[j]===void 0?void 0:t.jsx(X,{tagLabel:g[j].length.toString()})]},v)},[g,w]);return u.useEffect(()=>{const j=e.reduce((k,{label:v,filterOptions:S})=>{const T=S.flatMap(({value:A,minValue:I,maxValue:L})=>[I,L,A]).filter(Boolean),D=S.flatMap(({options:A})=>A??[]).filter(({checked:A=!1})=>A).map(({value:A})=>A),z=[...T,...D];return z.length===0?k:{...k,[v]:z}},{});x(j),d.length>0&&i&&i("column")},[d,e,i]),n==="grouped"?t.jsx($,{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:m,options:d,selectedFilter:h}):Object.entries(un(e)).map(([j,k])=>t.jsxs($,{style:{writingMode:"horizontal-tb"},children:[t.jsx(E,{color:l.palette.gray[400],fontWeight:"bold",mb:.25,size:"md",children:j}),k.map(({label:v,icon:S="filter-list"})=>C(v,S))]},j))}):t.jsx($,{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:m,options:d,selectedFilter:h}):e.map(({label:j,icon:k="filter-list"})=>C(j,k))})},mn=({options:e,onApplyFilters:n,onSearch:o,modalRef:r,variant:i})=>{const[a,l]=u.useState("row"),[s,c]=u.useState(!0),d=f.useTheme(),p=u.useRef(null),g=t.jsx(H,{icon:"close",iconColor:d.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 x=h=>{const b=p.current;b&&!b.contains(h.target)&&r.close()};if(s)return document.addEventListener("mousedown",x,!0),()=>{document.removeEventListener("mousedown",x,!0)}},[p,s,r]),t.jsx(wi,{$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:p,style:{maxWidth:"620px",overflow:"hidden",width:"fit-content"},children:[a==="column"?g:void 0,t.jsx($n,{onApplyFilters:n,onSearch:o,options:e,setDirection:l,setHandler:c,variant:i}),a==="row"?g:void 0]})})};function Ci(e){if(e)return e}function wn(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 Si(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 zi(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 Ti(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} `}),Ii=({options:e,onClose:n})=>{const o=e.flatMap(r=>r.filterOptions.map(i=>{const{filterFn:a,label:l,type:s,value:c,options:d,minValue:p,maxValue:g}=i;switch(s){case"numberRange":{const x=Si(p,g,r.placeholder);return t.jsx(ue,{filter:i,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case"dateRange":{const x=zi(p==null?void 0:p.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=wn(d);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=Ci(c),h=Ti(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($,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:o}):null},Ei=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),Ri=(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=Ei(e);n(JSON.stringify(o))},Di=(e,n)=>{const o=e();if(!o)return n;try{const r=JSON.parse(o);return Ri(r,n)}catch{return n}},Ni=(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(d=>d.checked).map(d=>d.value);return c.length===0?!0:c.includes(String(l[s.key]))}function i(l,s,c){const d=c(String(l[s.key])),{minValue:p,maxValue:g}=s,x=y._.isEmpty(p)&&typeof p!="number"?void 0:c(String(p)),h=y._.isEmpty(g)&&typeof g!="number"?void 0:c(String(g));return y._.isUndefined(x)&&y._.isUndefined(h)?!0:(x??-1/0)<=d&&d<=(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)},Fi=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,Li=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}},Ai=({dataset:e,setValues:n,getValues:o,options:r,setFilteredDataset:i,onFiltersChange:a,onReset:l,onSearch:s,variant:c="ungrouped"})=>{const d=Ie("filters-modal"),[p,g]=u.useState(!1),[x,h]=u.useState([]),b=Fi(x),w=r.map(v=>({...v,filterOptions:v.filterOptions.map(S=>x.find(D=>D.key===S.key&&D.type===S.type&&D.filterFn===S.filterFn)??{...S})})),m=u.useCallback(v=>{h([...v]),Ue(v,n)},[h,n]),C=u.useCallback(()=>{l&&l(),d.isOpen||g(!0),d.toggle()},[d,l]),j=u.useCallback(v=>()=>{l&&l();const S=x.map(T=>T.key===v.key&&T.type===v.type&&T.filterFn===v.filterFn?Li(T):T);h(S),Ue(S,n)},[x,l,n]);return u.useEffect(()=>{const v=r.flatMap(D=>D.filterOptions),S=o();if((()=>{if(!S)return!1;try{const D=JSON.parse(S);return Array.isArray(D)&&D.length>0}catch{return!1}})()){const D=Di(o,v);h(D)}else v.flatMap(z=>z.value).filter(Boolean).length>0||v.flatMap(z=>z.options).filter(z=>(z==null?void 0:z.checked)===!0).length>0?(h(v),p&&Ue(v,n)):h(v)},[r,h,n,o,p]),u.useEffect(()=>{i&&e!==void 0&&i(Ni(e,x)),a==null||a(x)},[e,x,i,a]),{Filters:()=>t.jsxs($,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx($,{pr:.25,children:t.jsx(O,{icon:"filter",id:"filter-btn",onClick:C,tag:b.toString(),variant:"ghost"})}),d.isOpen&&t.jsx(mn,{modalRef:d,onApplyFilters:m,onSearch:s,options:w,variant:c})]}),options:w,removeFilter:j}},gt=({_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:d=void 0,tabItems:p=void 0,title:g=void 0,size:x,id:h="modal-container"})=>{const b=f.useTheme(),[w,m]=u.useState(void 0),C=u.useRef(null),j=u.useRef(!1),k=Array.isArray(p)&&p.length>0,v=o??i;u.useEffect(()=>{if(k&&!j.current&&C.current){const T=C.current.getBoundingClientRect().height;T>50&&(m(T),j.current=!0)}s.isOpen||(m(void 0),j.current=!1)},[k,s.isOpen]);const S=t.jsx(an,{"aria-label":s.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(dt,{$size:x,"data-testid":h,flexDirection:"column",id:h,ref:k?C:void 0,style:k&&w?{height:w}:void 0,children:[!y._.isEmpty(g)&&!y._.isNil(g)&&t.jsx(ln,{description:l,modalRef:s,onClose:d,otherActions:c,title:g}),p&&t.jsx($,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(pt,{items:p})}),(y._.isObject(a)||r)&&t.jsxs(si,{style:v?{borderBottom:`1px solid ${b.palette.gray[200]}`}:void 0,children:[r,y._.isObject(a)&&y._.isString(a.imageSrc)&&t.jsx(pi,{$framed:a.imageFramed,children:t.jsx(re,{alt:"modal-img",publicId:a.imageSrc})}),y._.isObject(a)&&y._.isString(a.imageText)&&t.jsx(E,{size:"md",children:a.imageText})]}),t.jsx(sn,{alert:n,cancelButton:o,confirmButton:i,modalRef:s})]})});return e&&s.isOpen?le.createPortal(S,document.getElementById("portals")??document.body):s.isOpen?S:null},Pi=(e,n,o)=>{const r=Ie("confirm-dialog-modal"),i=u.useRef(null),a=u.useCallback(async()=>(r.open(),new Promise(d=>{i.current=d})),[r]),l=u.useCallback(()=>{var d;r.close(),(d=i.current)==null||d.call(i,!0)},[r]),s=u.useCallback(()=>{var d;r.close(),(d=i.current)==null||d.call(i,!1)},[r]);return[a,({children:d})=>{const[p,g]=u.useState(o),x=u.useCallback(()=>{g({...o})},[]),h=u.useCallback(m=>()=>{g(C=>({...C,[m]:{...C[m],state:!C[m].state}}))},[]),b=!Object.values(p).every(({state:m})=>m),w=Object.entries(p).map(([m,{state:C,label:j}])=>t.jsx(ie,{defaultChecked:C,label:j,name:m,onChange:h(m)},m));return t.jsxs(gt,{"data-testid":e,id:e,modalRef:{...r,close:s},onClose:x,size:"sm",title:n,children:[d,t.jsx($,{display:"flex",flexDirection:"column",gap:.5,children:w}),t.jsx(cn,{disabled:b,id:e,onConfirm:l})]})}]},Oi=()=>{const[e,n]=u.useState(!1),[o,r]=u.useState(),i=u.useRef(null),a=Ie("confirm-dialog-modal"),l=u.useCallback(async p=>(r(p),n(!0),new Promise(g=>{i.current=g})),[]),s=u.useCallback(()=>{var p;n(!1),r(void 0),(p=i.current)==null||p.call(i,!0)},[]),c=u.useCallback(()=>{var p;n(!1),r(void 0),(p=i.current)==null||p.call(i,!1)},[]);return u.useEffect(()=>{a.setIsOpen(e)},[e,a]),{ConfirmDialog:({id:p="confirm-dialog-modal",children:g})=>t.jsxs(gt,{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:p,modalRef:{...a,close:c},size:"sm",title:o==null?void 0:o.title,children:[o==null?void 0:o.content,g]}),confirm:l}},Mi=2e3,Wi=({content:e})=>{const[n,o]=u.useState("Copy"),r=u.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{o("Copied"),setTimeout(()=>{o("Copy")},Mi)}).catch(()=>{o("Failed to copy")})},[e]);return t.jsx(H,{icon:"copy",iconSize:"lg",iconType:"fa-light",onClick:r,tooltip:n,variant:"ghost"})},Hi=f.styled.ul`
2065
+ `,fn=({control:e,option:n,register:o,setValue:r})=>{var i,a,l,s,c;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(i=n.options)==null?void 0:i.map(p=>t.jsx(Ct,{value:p.value,width:"content",children:t.jsx(ie,{...o("checkbox"),label:p.label,value:p.value})},`li-checkbox-${p.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(p=>t.jsx(Ct,{value:p.value,width:"content",children:t.jsx(ct,{...o("radio"),label:p.label,value:p.value})},`li-radio-${p.value}`))]});case"select":return t.jsx(at,{control:e,items:((l=n.options)==null?void 0:l.map(p=>({name:p.label??"",value:p.value})))??[],label:n.label,name:`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`,placeholder:n.placeholder,value:n.value});case"text":const d=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Me,{label:n.label,name:d,placeholder:n.placeholder,register:o,value:n.value});case"numberRange":return t.jsx(Xt,{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(Yt,{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",{})}},yn=({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(fn,{control:e,option:i,register:o,setValue:r}),a<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),bn=e=>{var s,c,d,p,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:((d=(c=(s=e.find(x=>x.type==="radioButton"))==null?void 0:s.options)==null?void 0:c.find(({checked:x})=>x))==null?void 0:d.value)??"",text:e.filter(x=>["text","select"].includes(x.type)).reduce((x,h)=>({...x,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(p=e.find(x=>["numberRange","dateRange"].includes(x.type)))==null?void 0:p.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}},ji=(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(d=>d.checked).map(d=>d.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)},vi=(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())??"")}))??[],ki=async(e,n)=>await Promise.all(e.map(async o=>{if(o.type==="checkboxes"){const i=(o.filterOptions?await o.filterOptions(o.options??[],n):vi(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:d,setValue:p}=bn(e),g=e.some(b=>b.type==="checkboxes"&&b.hideSearch!==!0),x=u.useCallback(async b=>{const{value:w}=b.target;n&&n(w);const m=await ki(e,w);s(m)},[e,n,s]),h=u.useCallback(b=>{o&&o(b)},[o]);return u.useEffect(()=>{s(e),ji(e,p)},[e,s,p]),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:[i,t.jsx(se,{onChange:x})]}),t.jsxs("form",{id:r,onSubmit:d(h),children:[t.jsx(yn,{control:a,items:l,register:c,setValue:p}),t.jsx(O,{mt:1,type:"submit",children:"Apply"})]})]})},$n=({options:e,variant:n,onApplyFilters:o,onSearch:r,setDirection:i,setHandler:a})=>{const l=f.useTheme(),[s,c]=u.useState(e),[d,p]=u.useState([]),[g,x]=u.useState({}),[h,b]=u.useState(""),w=u.useCallback(j=>()=>{const k=s.find(C=>C.label===j),v=!(k!=null&&k.filterOptions.some(C=>C.type==="dateRange"||C.type==="select"));a==null||a(v??!0),b(j),p((k==null?void 0:k.filterOptions)??[])},[s,a]),m=u.useCallback(j=>{const k=[...j.checkbox,...Object.values(j.text??{}),...j.radio?[j.radio]:[],...j.minValue?[String(j.minValue)]:[],...j.maxValue?[String(j.maxValue)]:[]];x(S=>k.length>0?{...S,[h]:k}:S);const v=S=>{var A,I;return{...S,options:(A=S.options)==null?void 0:A.map(L=>({...L,checked:j.checkbox.includes(L.value)||j.radio===L.value})),value:["text","select"].includes(S.type)?((I=j.text)==null?void 0:I[`${String(S.key)}-${S.filterFn??"caseInsensitive"}`])??S.value:S.value,minValue:["numberRange","dateRange"].includes(S.type)?j.minValue:S.minValue,maxValue:["numberRange","dateRange"].includes(S.type)?j.maxValue:S.maxValue}},C=S=>S.label===h?{...S,filterOptions:S.filterOptions.map(v)}:S,T=s.map(C);c(S=>S.map(C));const R=T.flatMap(({filterOptions:S})=>S);o(R),p([])},[s,o,h]),z=u.useCallback((j,k)=>{const v=`li-filter-option-${j}`;return t.jsxs(mi,{icon:k,onClick:w(j),style:{minWidth:"180px",writingMode:"horizontal-tb"},value:v,width:"100%",children:[j,g[j]===void 0?void 0:t.jsx(X,{tagLabel:g[j].length.toString()})]},v)},[g,w]);return u.useEffect(()=>{const j=e.reduce((k,{label:v,filterOptions:C})=>{const T=C.flatMap(({value:A,minValue:I,maxValue:L})=>[I,L,A]).filter(Boolean),R=C.flatMap(({options:A})=>A??[]).filter(({checked:A=!1})=>A).map(({value:A})=>A),S=[...T,...R];return S.length===0?k:{...k,[v]:S}},{});x(j),d.length>0&&i&&i("column")},[d,e,i]),n==="grouped"?t.jsx($,{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:m,options:d,selectedFilter:h}):Object.entries(un(e)).map(([j,k])=>t.jsxs($,{style:{writingMode:"horizontal-tb"},children:[t.jsx(E,{color:l.palette.gray[400],fontWeight:"bold",mb:.25,size:"md",children:j}),k.map(({label:v,icon:C="filter-list"})=>z(v,C))]},j))}):t.jsx($,{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:m,options:d,selectedFilter:h}):e.map(({label:j,icon:k="filter-list"})=>z(j,k))})},mn=({options:e,onApplyFilters:n,onSearch:o,modalRef:r,variant:i})=>{const[a,l]=u.useState("row"),[s,c]=u.useState(!0),d=f.useTheme(),p=u.useRef(null),g=t.jsx(H,{icon:"close",iconColor:d.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 x=h=>{const b=p.current;b&&!b.contains(h.target)&&r.close()};if(s)return document.addEventListener("mousedown",x,!0),()=>{document.removeEventListener("mousedown",x,!0)}},[p,s,r]),t.jsx(wi,{$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:p,style:{maxWidth:"620px",overflow:"hidden",width:"fit-content"},children:[a==="column"?g:void 0,t.jsx($n,{onApplyFilters:n,onSearch:o,options:e,setDirection:l,setHandler:c,variant:i}),a==="row"?g:void 0]})})};function Ci(e){if(e)return e}function wn(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 Si(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 zi(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 Ti(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} `}),Ii=({options:e,onClose:n})=>{const o=e.flatMap(r=>r.filterOptions.map(i=>{const{filterFn:a,label:l,type:s,value:c,options:d,minValue:p,maxValue:g}=i;switch(s){case"numberRange":{const x=Si(p,g,r.placeholder);return t.jsx(ue,{filter:i,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case"dateRange":{const x=zi(p==null?void 0:p.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=wn(d);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=Ci(c),h=Ti(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($,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:o}):null},Ei=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),Di=(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=Ei(e);n(JSON.stringify(o))},Ri=(e,n)=>{const o=e();if(!o)return n;try{const r=JSON.parse(o);return Di(r,n)}catch{return n}},Fi=(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(d=>d.checked).map(d=>d.value);return c.length===0?!0:c.includes(String(l[s.key]))}function i(l,s,c){const d=c(String(l[s.key])),{minValue:p,maxValue:g}=s,x=y._.isEmpty(p)&&typeof p!="number"?void 0:c(String(p)),h=y._.isEmpty(g)&&typeof g!="number"?void 0:c(String(g));return y._.isUndefined(x)&&y._.isUndefined(h)?!0:(x??-1/0)<=d&&d<=(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)},Ni=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,Li=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}},Ai=({dataset:e,setValues:n,getValues:o,options:r,setFilteredDataset:i,onFiltersChange:a,onReset:l,onSearch:s,variant:c="ungrouped"})=>{const d=Ie("filters-modal"),[p,g]=u.useState(!1),[x,h]=u.useState([]),b=Ni(x),w=r.map(v=>({...v,filterOptions:v.filterOptions.map(C=>x.find(R=>R.key===C.key&&R.type===C.type&&R.filterFn===C.filterFn)??{...C})})),m=u.useCallback(v=>{h([...v]),Ue(v,n)},[h,n]),z=u.useCallback(()=>{l&&l(),d.isOpen||g(!0),d.toggle()},[d,l]),j=u.useCallback(v=>()=>{l&&l();const C=x.map(T=>T.key===v.key&&T.type===v.type&&T.filterFn===v.filterFn?Li(T):T);h(C),Ue(C,n)},[x,l,n]);return u.useEffect(()=>{const v=r.flatMap(R=>R.filterOptions),C=o();if((()=>{if(!C)return!1;try{const R=JSON.parse(C);return Array.isArray(R)&&R.length>0}catch{return!1}})()){const R=Ri(o,v);h(R)}else v.flatMap(S=>S.value).filter(Boolean).length>0||v.flatMap(S=>S.options).filter(S=>(S==null?void 0:S.checked)===!0).length>0?(h(v),p&&Ue(v,n)):h(v)},[r,h,n,o,p]),u.useEffect(()=>{i&&e!==void 0&&i(Fi(e,x)),a==null||a(x)},[e,x,i,a]),{Filters:()=>t.jsxs($,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx($,{pr:.25,children:t.jsx(O,{icon:"filter",id:"filter-btn",onClick:z,tag:b.toString(),variant:"ghost"})}),d.isOpen&&t.jsx(mn,{modalRef:d,onApplyFilters:m,onSearch:s,options:w,variant:c})]}),options:w,removeFilter:j}},gt=({_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:d=void 0,tabItems:p=void 0,title:g=void 0,size:x,id:h="modal-container"})=>{const b=f.useTheme(),[w,m]=u.useState(void 0),z=u.useRef(null),j=u.useRef(!1),k=Array.isArray(p)&&p.length>0,v=o??i;u.useEffect(()=>{if(k&&!j.current&&z.current){const T=z.current.getBoundingClientRect().height;T>50&&(m(T),j.current=!0)}s.isOpen||(m(void 0),j.current=!1)},[k,s.isOpen]);const C=t.jsx(an,{"aria-label":s.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(dt,{$size:x,"data-testid":h,flexDirection:"column",id:h,ref:k?z:void 0,style:k&&w?{height:w}:void 0,children:[!y._.isEmpty(g)&&!y._.isNil(g)&&t.jsx(ln,{description:l,modalRef:s,onClose:d,otherActions:c,title:g}),p&&t.jsx($,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(pt,{items:p})}),(y._.isObject(a)||r)&&t.jsxs(si,{style:v?{borderBottom:`1px solid ${b.palette.gray[200]}`}:void 0,children:[r,y._.isObject(a)&&y._.isString(a.imageSrc)&&t.jsx(pi,{$framed:a.imageFramed,children:t.jsx(re,{alt:"modal-img",publicId:a.imageSrc})}),y._.isObject(a)&&y._.isString(a.imageText)&&t.jsx(E,{size:"md",children:a.imageText})]}),t.jsx(sn,{alert:n,cancelButton:o,confirmButton:i,modalRef:s})]})});return e&&s.isOpen?le.createPortal(C,document.getElementById("portals")??document.body):s.isOpen?C:null},Pi=(e,n,o)=>{const r=Ie("confirm-dialog-modal"),i=u.useRef(null),a=u.useCallback(async()=>(r.open(),new Promise(d=>{i.current=d})),[r]),l=u.useCallback(()=>{var d;r.close(),(d=i.current)==null||d.call(i,!0)},[r]),s=u.useCallback(()=>{var d;r.close(),(d=i.current)==null||d.call(i,!1)},[r]);return[a,({children:d})=>{const[p,g]=u.useState(o),x=u.useCallback(()=>{g({...o})},[]),h=u.useCallback(m=>()=>{g(z=>({...z,[m]:{...z[m],state:!z[m].state}}))},[]),b=!Object.values(p).every(({state:m})=>m),w=Object.entries(p).map(([m,{state:z,label:j}])=>t.jsx(ie,{defaultChecked:z,label:j,name:m,onChange:h(m)},m));return t.jsxs(gt,{"data-testid":e,id:e,modalRef:{...r,close:s},onClose:x,size:"sm",title:n,children:[d,t.jsx($,{display:"flex",flexDirection:"column",gap:.5,children:w}),t.jsx(cn,{disabled:b,id:e,onConfirm:l})]})}]},Oi=()=>{const[e,n]=u.useState(!1),[o,r]=u.useState(),i=u.useRef(null),a=Ie("confirm-dialog-modal"),l=u.useCallback(async p=>(r(p),n(!0),new Promise(g=>{i.current=g})),[]),s=u.useCallback(()=>{var p;n(!1),r(void 0),(p=i.current)==null||p.call(i,!0)},[]),c=u.useCallback(()=>{var p;n(!1),r(void 0),(p=i.current)==null||p.call(i,!1)},[]);return u.useEffect(()=>{a.setIsOpen(e)},[e,a]),{ConfirmDialog:({id:p="confirm-dialog-modal",children:g})=>t.jsxs(gt,{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:p,modalRef:{...a,close:c},size:"sm",title:o==null?void 0:o.title,children:[o==null?void 0:o.content,g]}),confirm:l}},Mi=2e3,Wi=({content:e})=>{const[n,o]=u.useState("Copy"),r=u.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{o("Copied"),setTimeout(()=>{o("Copy")},Mi)}).catch(()=>{o("Failed to copy")})},[e]);return t.jsx(H,{icon:"copy",iconSize:"lg",iconType:"fa-light",onClick:r,tooltip:n,variant:"ghost"})},Hi=f.styled.ul`
2065
2066
  ${({theme:e})=>`
2066
2067
  align-items: flex-start;
2067
2068
  border-radius: ${e.spacing[.25]};
@@ -2100,7 +2101,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2100
2101
  cursor: not-allowed;
2101
2102
  }
2102
2103
  `}
2103
- `,_i=({icon:e,iconColor:n,id:o,showChevron:r,options:i,title:a})=>{const l=f.useTheme(),[s,c]=u.useState(!1),d=s?"chevron-up":"chevron-down",{refs:p,floatingStyles:g}=y.useFloating({middleware:[y.offset({mainAxis:4})],placement:"bottom-start"}),x=u.useCallback(()=>{c(h=>!h)},[]);return ne(s?p.floating.current:null,()=>{c(!1)},!0,document.getElementById(`dropdown-toggle-${o}`)),t.jsxs(u.Fragment,{children:[t.jsx(O,{"aria-label":a,icon:e,iconColor:n,iconType:"fa-solid",id:`dropdown-toggle-${o}`,onClick:x,ref:p.setReference,rightIcon:r?d:void 0,variant:"ghost",children:a}),s?t.jsx(Hi,{ref:p.setFloating,style:g,children:i.map(h=>{const b=({})=>{h.onClick(),c(!1)};return t.jsxs(Bi,{"aria-disabled":h.disabled,"aria-label":h.label,onClick:h.disabled?void 0:b,children:[t.jsx(R,{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(O,{onClick:e.onClick,variant:n,children:e.text}),Vi=f.styled.div`
2104
+ `,_i=({icon:e,iconColor:n,id:o,showChevron:r,options:i,title:a})=>{const l=f.useTheme(),[s,c]=u.useState(!1),d=s?"chevron-up":"chevron-down",{refs:p,floatingStyles:g}=y.useFloating({middleware:[y.offset({mainAxis:4})],placement:"bottom-start"}),x=u.useCallback(()=>{c(h=>!h)},[]);return ne(s?p.floating.current:null,()=>{c(!1)},!0,document.getElementById(`dropdown-toggle-${o}`)),t.jsxs(u.Fragment,{children:[t.jsx(O,{"aria-label":a,icon:e,iconColor:n,iconType:"fa-solid",id:`dropdown-toggle-${o}`,onClick:x,ref:p.setReference,rightIcon:r?d:void 0,variant:"ghost",children:a}),s?t.jsx(Hi,{ref:p.setFloating,style:g,children:i.map(h=>{const b=({})=>{h.onClick(),c(!1)};return t.jsxs(Bi,{"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(O,{onClick:e.onClick,variant:n,children:e.text}),Vi=f.styled.div`
2104
2105
  display: flex;
2105
2106
  flex-direction: column;
2106
2107
  align-items: center;
@@ -2198,7 +2199,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2198
2199
  background-color: ${e.palette.gray[100]};
2199
2200
  }
2200
2201
  `}
2201
- `,jn=({isSelected:e=!1,label:n,onSelect:o})=>{const r=f.useTheme(),i=u.useCallback(()=>{o&&o(n)},[o,n]);return t.jsxs(ut,{$isSelected:e,onClick:i,children:[e?t.jsx(R,{icon:"check",iconColor:r.palette.gray[800],iconSize:"lg"}):null,t.jsx(E,{color:r.palette.gray[800],fontWeight:"bold",size:"md",children:n})]})},ea=({isOpen:e=!0,items:n,handleNewOrganization:o,onSelect:r,onClose:i,selectedItem:a,title:l,variant:s})=>{const c=f.useTheme(),[d,p]=u.useState(n),[g,x]=u.useState(""),h=u.useCallback(m=>{p(C=>C.filter(j=>String(j.name).toLowerCase().includes(m.toLocaleLowerCase())))},[p]),b=u.useCallback(m=>{m.currentTarget&&(x(m.currentTarget.value),h(m.currentTarget.value))},[x,h]);u.useEffect(()=>{p(n),h(g)},[n,h,g]);const w=t.jsx($,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx($,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(Qi,{$itemsLength:d.length,children:[t.jsxs($,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(E,{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($,{mt:1,children:t.jsx(se,{onInput:b,placeholder:"Search"})}),t.jsx(ae,{mb:1,mt:1}),t.jsxs($,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[s==="organization-selector"?t.jsx(ut,{onClick:o,children:t.jsxs($,{alignItems:"center",display:"flex",children:[t.jsx(R,{icon:"square-plus",iconColor:c.palette.gray[400],iconSize:"lg",iconType:"fa-light",mr:.5}),t.jsx(E,{color:c.palette.gray[400],size:"md",children:"New organization"})]})}):void 0,d.map(m=>t.jsx(jn,{isSelected:a.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:r},m.name))]})]})})});return e?le.createPortal(w,document.body):t.jsx("div",{})},ta=({actions:e,children:n,header:o,title:r,tabs:i,footer:a})=>{const l=f.useTheme();return t.jsxs($,{alignItems:"flex-start",bgColor:l.palette.white,borderLeft:`1px solid ${l.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs($,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(E,{color:l.palette.gray[800],fontWeight:"bold",size:"lg",children:r}),o]}),e&&t.jsx($,{display:"flex",gap:.25,children:e.map(({icon:s,onClick:c},d)=>t.jsx(H,{icon:s??"paper-plane",iconColor:l.palette.gray[400],iconSize:"sm",iconType:"fa-light",onClick:c,variant:"ghost"},`${d}-${s}`))})]}),t.jsx($,{display:"flex",pt:.25,width:"100%",children:t.jsx(pt,{items:i})}),t.jsx($,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),a&&t.jsx($,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:a.map(({icon:s,text:c,onClick:d},p)=>t.jsx(O,{icon:s,onClick:d,variant:p===0?"primary":"tertiary",width:"100%",children:c},`${p}-${c}`))})]})},na=f.styled.span`
2202
+ `,jn=({isSelected:e=!1,label:n,onSelect:o})=>{const r=f.useTheme(),i=u.useCallback(()=>{o&&o(n)},[o,n]);return t.jsxs(ut,{$isSelected:e,onClick:i,children:[e?t.jsx(D,{icon:"check",iconColor:r.palette.gray[800],iconSize:"lg"}):null,t.jsx(E,{color:r.palette.gray[800],fontWeight:"bold",size:"md",children:n})]})},ea=({isOpen:e=!0,items:n,handleNewOrganization:o,onSelect:r,onClose:i,selectedItem:a,title:l,variant:s})=>{const c=f.useTheme(),[d,p]=u.useState(n),[g,x]=u.useState(""),h=u.useCallback(m=>{p(z=>z.filter(j=>String(j.name).toLowerCase().includes(m.toLocaleLowerCase())))},[p]),b=u.useCallback(m=>{m.currentTarget&&(x(m.currentTarget.value),h(m.currentTarget.value))},[x,h]);u.useEffect(()=>{p(n),h(g)},[n,h,g]);const w=t.jsx($,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx($,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(Qi,{$itemsLength:d.length,children:[t.jsxs($,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(E,{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($,{mt:1,children:t.jsx(se,{onInput:b,placeholder:"Search"})}),t.jsx(ae,{mb:1,mt:1}),t.jsxs($,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[s==="organization-selector"?t.jsx(ut,{onClick:o,children:t.jsxs($,{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(E,{color:c.palette.gray[400],size:"md",children:"New organization"})]})}):void 0,d.map(m=>t.jsx(jn,{isSelected:a.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:r},m.name))]})]})})});return e?le.createPortal(w,document.body):t.jsx("div",{})},ta=({actions:e,children:n,header:o,title:r,tabs:i,footer:a})=>{const l=f.useTheme();return t.jsxs($,{alignItems:"flex-start",bgColor:l.palette.white,borderLeft:`1px solid ${l.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs($,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(E,{color:l.palette.gray[800],fontWeight:"bold",size:"lg",children:r}),o]}),e&&t.jsx($,{display:"flex",gap:.25,children:e.map(({icon:s,onClick:c},d)=>t.jsx(H,{icon:s??"paper-plane",iconColor:l.palette.gray[400],iconSize:"sm",iconType:"fa-light",onClick:c,variant:"ghost"},`${d}-${s}`))})]}),t.jsx($,{display:"flex",pt:.25,width:"100%",children:t.jsx(pt,{items:i})}),t.jsx($,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),a&&t.jsx($,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:a.map(({icon:s,text:c,onClick:d},p)=>t.jsx(O,{icon:s,onClick:d,variant:p===0?"primary":"tertiary",width:"100%",children:c},`${p}-${c}`))})]})},na=f.styled.span`
2202
2203
  ${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:o="none"})=>`
2203
2204
  background-color: ${n};
2204
2205
  border-radius: 5px;
@@ -2275,13 +2276,13 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2275
2276
  padding: 0;
2276
2277
 
2277
2278
  &:hover p {
2278
- color: ${N.palette.primary[200]};
2279
+ color: ${F.palette.primary[200]};
2279
2280
  }
2280
2281
 
2281
2282
  &:hover span {
2282
- color: ${N.palette.primary[200]};
2283
+ color: ${F.palette.primary[200]};
2283
2284
  }
2284
- `,ya=({message:e,onClickButton:n,buttonText:o,buttonFontWeight:r="regular",show:i=!0,icon:a,onClose:l,buttonSide:s="end"})=>{const c=f.useTheme(),[d,p]=u.useState(i),g=u.useCallback(()=>{p(!1),l==null||l()},[l]);u.useEffect(()=>{p(i)},[i,p]);const x=t.jsxs(fa,{onClick:n,children:[t.jsx(E,{color:c.palette.white,fontWeight:r,size:"md",textDecoration:"underline",children:o}),t.jsx(R,{icon:a??"arrow-right",iconColor:c.palette.white,iconSize:"lg",iconType:r==="bold"?"fa-regular":"fa-light"})]});return t.jsxs($,{alignItems:"center",bgGradient:"linear-gradient(45deg, #f32637 0%, #b8075d 100%)",display:d?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs($,{display:"flex",gap:.5,justify:"center",width:"100%",children:[s==="start"&&n?x:void 0,t.jsx($,{children:typeof e=="string"?t.jsx(E,{color:c.palette.white,display:"inline",size:"md",children:e}):e}),s==="end"&&n?x:void 0]}),t.jsx(R,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"lg",iconType:"fa-light",onClick:g})]})},ba=f.styled.div`
2285
+ `,ya=({message:e,onClickButton:n,buttonText:o,buttonFontWeight:r="regular",show:i=!0,icon:a,onClose:l,buttonSide:s="end"})=>{const c=f.useTheme(),[d,p]=u.useState(i),g=u.useCallback(()=>{p(!1),l==null||l()},[l]);u.useEffect(()=>{p(i)},[i,p]);const x=t.jsxs(fa,{onClick:n,children:[t.jsx(E,{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($,{alignItems:"center",bgGradient:"linear-gradient(45deg, #f32637 0%, #b8075d 100%)",display:d?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs($,{display:"flex",gap:.5,justify:"center",width:"100%",children:[s==="start"&&n?x:void 0,t.jsx($,{children:typeof e=="string"?t.jsx(E,{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})]})},ba=f.styled.div`
2285
2286
  ${({theme:e,$variant:n})=>`
2286
2287
  background: ${e.palette.white};
2287
2288
  border: 1px solid ${e.palette.gray[200]};
@@ -2333,40 +2334,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2333
2334
  color: ${e.palette[n][500]};
2334
2335
  }
2335
2336
  `}
2336
- `,wa=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",ja=({description:e,onClose:n,title:o,variant:r})=>{const i=f.useTheme(),a=u.useCallback(()=>{n==null||n()},[n]);return t.jsxs(ba,{$variant:r,className:`notification notification__${r}`,role:"alertdialog",children:[t.jsxs(ma,{$variant:r,children:[t.jsx(R,{icon:"circle",iconClass:"ellipse-1",iconSize:"lg"}),t.jsx(R,{icon:"circle",iconClass:"ellipse-2",iconSize:"lg"}),t.jsx(R,{icon:wa(r),iconClass:"icon",iconSize:"lg",iconType:"fa-light"})]}),t.jsxs($,{pr:1.5,children:[t.jsx($a,{fontWeight:"bold",size:"xs",children:o}),t.jsx(E,{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"})]})},va=f.styled.div`
2337
- width: fit-content;
2338
- border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
2339
- border-radius: 4px;
2340
- background: none;
2341
- color: ${({theme:e})=>e.palette.black};
2342
- font-family: ${({theme:e})=>e.typography.type.primary};
2343
- font-size: ${({theme:e})=>e.typography.text.md};
2344
- height: 40px;
2345
- display: flex;
2346
- align-items: center;
2347
- justify-content: center;
2348
- padding: 0.5em;
2349
- `,ka=f.styled.input`
2350
- width: 4em;
2351
- appearance: textfield;
2352
- border-style: none;
2353
- padding: 0.5rem;
2354
- padding-top: 0.5rem;
2355
- padding-bottom: 0.5rem;
2356
- padding-left: 0.5rem;
2357
- background: none;
2358
-
2359
- &:focus {
2360
- border-color: unset;
2361
- box-shadow: none;
2362
- outline: none;
2363
- }
2364
-
2365
- &::-webkit-outer-spin-button,
2366
- &::-webkit-inner-spin-button {
2367
- opacity: 1;
2368
- }
2369
- `,Ca=u.forwardRef(function({autoUpdate:n=!1,decimalPlaces:o=0,defaultValue:r=0,max:i,min:a,name:l,onEnter:s,tooltipMessage:c,...d},p){const g=o<0?0:o,[x,h]=u.useState(Number(r).toFixed(g)),b=u.useCallback(C=>{const j=y.lodashExports.toNumber(C.target.value);C.target.value.endsWith(".")?h(C.target.value):j>=Number(a)&&j<=Number(i)&&(h(String(j)),n&&s(y.lodashExports.toNumber(j.toFixed(g)))),C.stopPropagation()},[n,g,i,a,s]),w=u.useCallback(C=>{C.currentTarget.contains(C.relatedTarget)||h(Number(r).toFixed(g)),C.stopPropagation()},[g,r]),m=u.useCallback(C=>{C.stopPropagation(),C.key==="Enter"&&!y.lodashExports.isEmpty(C.currentTarget.value)&&s(y.lodashExports.toNumber(C.currentTarget.value))},[s]);return t.jsx(va,{onBlur:w,tabIndex:-1,children:t.jsx(Y,{id:"numberInputTooltip",tip:c,children:t.jsx(ka,{...d,"aria-label":l,"aria-valuemax":Number(i),"aria-valuemin":Number(a),"aria-valuenow":Number(x),max:i,min:a,name:l,onChange:b,onKeyUp:m,ref:p,step:10**-g,type:"number",value:x})})})}),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:r=!1,provider:i="GitLab"})=>{const a=f.useTheme();return t.jsxs($,{alignItems:"center",bgColorHover:a.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:o,pb:.5,pl:.25,pr:.25,pt:.5,children:[r?!1:t.jsx($,{height:"24px",width:"24px",children:e===void 0?t.jsx(re,{alt:`${i} Logo`,height:"100%",publicId:Sa[i],width:"100%"}):t.jsx(R,{icon:e,iconColor:"#000",iconSize:"xl",iconType:"fa-light"})}),t.jsx($,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(E,{color:a.palette.gray[800],display:"inline",size:"sm",textAlign:"center",whiteSpace:r?"break-spaces":"nowrap",wordWrap:"unset",children:n??i})})]})},za=({align:e="end",buttonLabel:n="Add Credential",children:o,id:r,manualOption:i,providers:a})=>{const l=f.useTheme(),[s,c]=u.useState(!1),d=u.useRef(null);ne(d.current,()=>{c(!1)},!0);const p=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($,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:d,width:"max-content",zIndex:10,children:[t.jsx(O,{icon:"plus",onClick:g,variant:"primary",children:n}),t.jsxs($,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id: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:p}),o]})]})},Ta=f.styled.div`
2337
+ `,wa=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",ja=({description:e,onClose:n,title:o,variant:r})=>{const i=f.useTheme(),a=u.useCallback(()=>{n==null||n()},[n]);return t.jsxs(ba,{$variant:r,className:`notification notification__${r}`,role:"alertdialog",children:[t.jsxs(ma,{$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:wa(r),iconClass:"icon",iconSize:"lg",iconType:"fa-light"})]}),t.jsxs($,{pr:1.5,children:[t.jsx($a,{fontWeight:"bold",size:"xs",children:o}),t.jsx(E,{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"})]})},va={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($,{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($,{height:"24px",width:"24px",children:e===void 0?t.jsx(re,{alt:`${i} Logo`,height:"100%",publicId:va[i],width:"100%"}):t.jsx(D,{icon:e,iconColor:"#000",iconSize:"xl",iconType:"fa-light"})}),t.jsx($,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(E,{color:a.palette.gray[800],display:"inline",size:"sm",textAlign:"center",whiteSpace:r?"break-spaces":"nowrap",wordWrap:"unset",children:n??i})})]})},ka=({align:e="end",buttonLabel:n="Add Credential",children:o,id:r,manualOption:i,providers:a})=>{const l=f.useTheme(),[s,c]=u.useState(!1),d=u.useRef(null);ne(d.current,()=>{c(!1)},!0);const p=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($,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:d,width:"max-content",zIndex:10,children:[t.jsx(O,{icon:"plus",onClick:g,variant:"primary",children:n}),t.jsxs($,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id: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:p}),o]})]})},Ca=f.styled.div`
2370
2338
  ${({theme:e})=>`
2371
2339
  height: ${e.spacing[1]};
2372
2340
  width: ${e.spacing[1]};
@@ -2397,7 +2365,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2397
2365
  font-size: ${e.spacing[.5]};
2398
2366
  }
2399
2367
  `}
2400
- `,kn=({margin:e,onClick:n,text:o})=>{const r=f.useTheme(),i=t.jsxs(Ta,{children:[t.jsx(R,{icon:"circle",iconClass:"ellipse-1",iconSize:"lg"}),t.jsx(R,{icon:"circle",iconClass:"ellipse-2",iconSize:"lg"}),t.jsx(R,{icon:"crown",iconClass:"icon",iconSize:"lg"})]});return o!==void 0?t.jsx($,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:t.jsxs($,{alignItems:"center",bgColor:r.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[i,t.jsx(E,{color:r.palette.warning[500],display:"inline",ml:.25,size:"sm",children:o})]})}):t.jsx($,{display:"inline-block",mr:e,onClick:n,children:i})},Ia=({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($,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(R,{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(E,{color:n.palette.gray[800],size:"md",textAlign:"right",children:e+"%"})]})},{getVariant:Ea}=Q(e=>({compliance:`
2368
+ `,kn=({margin:e,onClick:n,text:o})=>{const r=f.useTheme(),i=t.jsxs(Ca,{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($,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:t.jsxs($,{alignItems:"center",bgColor:r.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[i,t.jsx(E,{color:r.palette.warning[500],display:"inline",ml:.25,size:"sm",children:o})]})}):t.jsx($,{display:"inline-block",mr:e,onClick:n,children:i})},Sa=({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($,{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(E,{color:n.palette.gray[800],size:"md",textAlign:"right",children:e+"%"})]})},{getVariant:za}=Q(e=>({compliance:`
2401
2369
  display: inline-flex;
2402
2370
 
2403
2371
  &.horizontal {
@@ -2455,17 +2423,17 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2455
2423
  .progress-bar {
2456
2424
  background-color: ${e.palette.primary[500]};
2457
2425
  }
2458
- `})),Ra=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],Da=f.styled.div`
2426
+ `})),Ta=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],Ia=f.styled.div`
2459
2427
  ${({theme:e,$minWidth:n,$orientation:o,$rounded:r,$variant:i})=>`
2460
2428
  background-color: ${e.palette.gray[100]};
2461
2429
  border-radius: ${r?"100px":"unset"};
2462
2430
  ${o==="horizontal"?"min-width":"min-height"}: ${n}px;
2463
2431
  ${o==="horizontal"?"":"height: 100%;"}
2464
2432
 
2465
- ${Ea(e,i)}
2433
+ ${za(e,i)}
2466
2434
 
2467
2435
  `}
2468
- `,Na=f.styled.div`
2436
+ `,Ea=f.styled.div`
2469
2437
  ${({theme:e,$percentage:n,$rounded:o,$variant:r})=>`
2470
2438
  display: inline-flex;
2471
2439
  width: ${n}%;
@@ -2475,14 +2443,14 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2475
2443
  border-radius: ${o?"100px":"unset"};
2476
2444
  border-end-end-radius: ${o&&n<100?"0":"inherit"};
2477
2445
  border-start-end-radius: ${o&&n<100?"0":"inherit"};
2478
- background-color: ${r==="compliance"?Ra(e,n):"inherit"};
2446
+ background-color: ${r==="compliance"?Ta(e,n):"inherit"};
2479
2447
  `}
2480
- `,Cn=({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($,{alignItems:"center",display:"flex",justify:s?"flex-end":"flex-start",width:"40px",children:t.jsx(E,{ml:.5,mr:s?.5:0,size:"md",children:`${n}%`})}):null,d=t.jsx(Da,{$minWidth:e,$orientation:i,$rounded:a,$variant:l,className:i,children:t.jsx(Na,{$percentage:n,$rounded:a,$variant:l,className:"progress-bar"})});return t.jsxs($,{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:[d,c]})},Sn=({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"})]})}),zn=(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(R)`
2448
+ `,Cn=({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($,{alignItems:"center",display:"flex",justify:s?"flex-end":"flex-start",width:"40px",children:t.jsx(E,{ml:.5,mr:s?.5:0,size:"md",children:`${n}%`})}):null,d=t.jsx(Ia,{$minWidth:e,$orientation:i,$rounded:a,$variant:l,className:i,children:t.jsx(Ea,{$percentage:n,$rounded:a,$variant:l,className:"progress-bar"})});return t.jsxs($,{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:[d,c]})},Sn=({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"})]})}),zn=(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]}},Da=f.styled(D)`
2481
2449
  box-sizing: border-box;
2482
2450
 
2483
2451
  border-right: ${({theme:e,$variant:n})=>n==="in progress"?`1px dashed ${zn("in progress",e)}`:"unset"};
2484
2452
  border-radius: 50%;
2485
- `,La=f.styled.div`
2453
+ `,Ra=f.styled.div`
2486
2454
  ${({$minWidth:e,$orientation:n})=>`
2487
2455
  display: flex;
2488
2456
  flex-direction: ${n==="horizontal"?"row":"column"};
@@ -2492,13 +2460,13 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2492
2460
  flex-flow: row wrap;
2493
2461
  }
2494
2462
  `}
2495
- `,Aa=150,Pa=({label:e,minWidth:n=Aa,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"},d=o==="disabled";return t.jsxs($,{display:"inline-flex",flexDirection:l==="horizontal"?"column":"row",minWidth:`${n}px`,children:[t.jsx(Cn,{minWidth:n,orientation:l,percentage:d||o==="not completed"?0:100,rounded:!1,variant:o==="error"?"progressIndicatorError":"progressIndicator"}),t.jsxs($,{display:"flex",gap:.5,px:.5,py:.5,width:"100%",children:[o==="in progress"?t.jsx(Sn,{onClick:a}):t.jsx(Fa,{$variant:o,clickable:!d,disabled:d,icon:c[o],iconColor:zn(o,s),iconSize:"lg",iconType:"fa-light",onClick:d?void 0:a}),t.jsxs($,{children:[t.jsx(E,{color:s.palette.gray[d?300:800],fontWeight:"bold",size:"md",children:`${r}.${i}`}),e===void 0?null:t.jsx(E,{color:s.palette.gray[d?300:600],size:"sm",children:e})]})]})]})},Oa=150,Ma=({children:e,orientation:n="horizontal",minWidth:o=Oa})=>{const r=u.Children.toArray(e),i=u.useMemo(()=>u.Children.count(e),[e]),a=u.useMemo(()=>i*o,[i,o]);return t.jsx(La,{$minWidth:`${a}px`,$orientation:n,children:r.map(l=>u.cloneElement(l,{minWidth:o,orientation:n}))})},Tn=({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(E,{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(E,{lineSpacing:1.5,size:i,textAlign:o?"start":"center",children:e})},Wa=({_portal:e=!1,cancelButton:n,darkBackground:o=!1,children:r,confirmButton:i,container:a,description:l,highlightDescription:s="",image:c,maxWidth:d,mobile:p=!1,title:g,titleColor:x})=>{const h=f.useTheme(),{alt:b,src:w,width:m="77px",height:C="77px"}=c,j=u.useCallback(()=>{n==null||n.onClick()},[n]),k=u.useCallback(()=>{i==null||i.onClick()},[i]),v=t.jsx(ee,{color:x,fontWeight:"bold",lineSpacing:p?1.5:2.5,mb:p?1.5:0,size:p?"sm":"md",textAlign:p?"start":"center",children:g}),S=t.jsx(re,{alt:b,height:C,publicId:w,width:m}),T=t.jsx($,{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($,{bgColor:h.palette.white,border:`1px solid ${h.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:d,position:"relative",px:p?1.5:2.5,py:p?1.5:2.5,shadow:"lg",width:p?"335px":"100%",zIndex:11,children:[t.jsxs($,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[p?v:void 0,p?t.jsx($,{alignItems:"center",height:C,justify:"center",mr:0,children:t.jsx($,{bgColor:h.palette.gray[100],left:"0",position:"absolute",textAlign:"center",width:"100%",children:S})}):S,t.jsxs($,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[p?void 0:v,t.jsx(Tn,{description:l,highlightDescription:s,mobile:p})]})]}),r&&t.jsx($,{mb:1,scroll:"y",children:t.jsx($,{height:"100%",children:r})}),t.jsxs($,{alignItems:"flex-start",display:"flex",gap:1,justify:p?"start":"center",children:[y.lodashExports.isObject(i)?t.jsx(O,{onClick:k,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(O,{onClick:j,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(T,a??document.body):T},Ha=f.styled.div.attrs({className:"comp-scroll-up"})`
2463
+ `,Fa=150,Na=({label:e,minWidth:n=Fa,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"},d=o==="disabled";return t.jsxs($,{display:"inline-flex",flexDirection:l==="horizontal"?"column":"row",minWidth:`${n}px`,children:[t.jsx(Cn,{minWidth:n,orientation:l,percentage:d||o==="not completed"?0:100,rounded:!1,variant:o==="error"?"progressIndicatorError":"progressIndicator"}),t.jsxs($,{display:"flex",gap:.5,px:.5,py:.5,width:"100%",children:[o==="in progress"?t.jsx(Sn,{onClick:a}):t.jsx(Da,{$variant:o,clickable:!d,disabled:d,icon:c[o],iconColor:zn(o,s),iconSize:"lg",iconType:"fa-light",onClick:d?void 0:a}),t.jsxs($,{children:[t.jsx(E,{color:s.palette.gray[d?300:800],fontWeight:"bold",size:"md",children:`${r}.${i}`}),e===void 0?null:t.jsx(E,{color:s.palette.gray[d?300:600],size:"sm",children:e})]})]})]})},La=150,Aa=({children:e,orientation:n="horizontal",minWidth:o=La})=>{const r=u.Children.toArray(e),i=u.useMemo(()=>u.Children.count(e),[e]),a=u.useMemo(()=>i*o,[i,o]);return t.jsx(Ra,{$minWidth:`${a}px`,$orientation:n,children:r.map(l=>u.cloneElement(l,{minWidth:o,orientation:n}))})},Tn=({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(E,{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(E,{lineSpacing:1.5,size:i,textAlign:o?"start":"center",children:e})},Pa=({_portal:e=!1,cancelButton:n,darkBackground:o=!1,children:r,confirmButton:i,container:a,description:l,highlightDescription:s="",image:c,maxWidth:d,mobile:p=!1,title:g,titleColor:x})=>{const h=f.useTheme(),{alt:b,src:w,width:m="77px",height:z="77px"}=c,j=u.useCallback(()=>{n==null||n.onClick()},[n]),k=u.useCallback(()=>{i==null||i.onClick()},[i]),v=t.jsx(ee,{color:x,fontWeight:"bold",lineSpacing:p?1.5:2.5,mb:p?1.5:0,size:p?"sm":"md",textAlign:p?"start":"center",children:g}),C=t.jsx(re,{alt:b,height:z,publicId:w,width:m}),T=t.jsx($,{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($,{bgColor:h.palette.white,border:`1px solid ${h.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:d,position:"relative",px:p?1.5:2.5,py:p?1.5:2.5,shadow:"lg",width:p?"335px":"100%",zIndex:11,children:[t.jsxs($,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[p?v:void 0,p?t.jsx($,{alignItems:"center",height:z,justify:"center",mr:0,children:t.jsx($,{bgColor:h.palette.gray[100],left:"0",position:"absolute",textAlign:"center",width:"100%",children:C})}):C,t.jsxs($,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[p?void 0:v,t.jsx(Tn,{description:l,highlightDescription:s,mobile:p})]})]}),r&&t.jsx($,{mb:1,scroll:"y",children:t.jsx($,{height:"100%",children:r})}),t.jsxs($,{alignItems:"flex-start",display:"flex",gap:1,justify:p?"start":"center",children:[y.lodashExports.isObject(i)?t.jsx(O,{onClick:k,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(O,{onClick:j,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(T,a??document.body):T},Oa=f.styled.div.attrs({className:"comp-scroll-up"})`
2496
2464
  position: fixed;
2497
2465
  bottom: ${({bottom:e})=>e??"unset"};
2498
2466
  right: ${({right:e})=>e??"unset"};
2499
2467
  z-index: ${({zIndex:e})=>e??"unset"};
2500
2468
  left: ${({left:e})=>e??"unset"};
2501
- `,Ba=({scrollerId:e="dashboard",left:n,visibleAt:o=500,bottom:r,right:i,zIndex:a=100})=>{const[l,s]=u.useState(!1),[c,d]=u.useState(null),p=f.useTheme();u.useEffect(()=>{d(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: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:p.palette.black,borderRadius:"50%",color:p.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 r=f.useTheme(),{bgColor:i,colorL:a,colorR:l}=_a[o];return t.jsxs($,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx($,{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(E,{color:a,size:"md",children:e})}):void 0,t.jsx($,{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(E,{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]},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}=Ua(e,n),l=y.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(Y,{id:l,place:"top",tip:l,children:t.jsx($,{alignItems:"center",bgColor:o,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(E,{color:i,size:"md",textAlign:"center",children:r})})}),t.jsx(E,{color:a,size:"md",children:n})]})},Ga=({critical:e,high:n,medium:o,low:r})=>t.jsxs($,{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"})]}),Ya=f.styled.div`
2469
+ `,Ma=({scrollerId:e="dashboard",left:n,visibleAt:o=500,bottom:r,right:i,zIndex:a=100})=>{const[l,s]=u.useState(!1),[c,d]=u.useState(null),p=f.useTheme();u.useEffect(()=>{d(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(Oa,{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:p.palette.black,borderRadius:"50%",color:p.palette.white},width:"40px"})}):null},Wa={critical:{bgColor:F.palette.primary[700],colorL:F.palette.gray[800],colorR:F.palette.white},disable:{bgColor:F.palette.gray[200],colorL:F.palette.gray[400],colorR:F.palette.gray[400]},high:{bgColor:F.palette.error[500],colorL:F.palette.gray[800],colorR:F.palette.white},low:{bgColor:F.palette.warning[200],colorL:F.palette.gray[800],colorR:F.palette.gray[800]},medium:{bgColor:F.palette.warning[500],colorL:F.palette.gray[800],colorR:F.palette.gray[800]}},Ha=({textL:e,textR:n,variant:o})=>{const r=f.useTheme(),{bgColor:i,colorL:a,colorR:l}=Wa[o];return t.jsxs($,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx($,{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(E,{color:a,size:"md",children:e})}):void 0,t.jsx($,{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(E,{color:l,size:"md",children:n})})]})},Ba=(e,n)=>{const o={critical:F.palette.primary[700],high:F.palette.error[500],low:F.palette.warning[200],medium:F.palette.warning[500],none:F.palette.gray[200]},r={disabled:F.palette.gray[400],enabled:F.palette.gray[800]},i={critical:F.palette.white,high:F.palette.white,low:F.palette.gray[800],medium:F.palette.gray[800],none:F.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}=Ba(e,n),l=y.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(K,{id:l,place:"top",tip:l,children:t.jsx($,{alignItems:"center",bgColor:o,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(E,{color:i,size:"md",textAlign:"center",children:r})})}),t.jsx(E,{color:a,size:"md",children:n})]})},_a=({critical:e,high:n,medium:o,low:r})=>t.jsxs($,{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"})]}),Va=f.styled.div`
2502
2470
  ${({theme:e})=>`
2503
2471
  border-radius: ${e.spacing[.25]};
2504
2472
  cursor: pointer;
@@ -2516,7 +2484,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2516
2484
  display: block;
2517
2485
  }
2518
2486
  `}
2519
- `,Ka=({visibleElement:e,hiddenElement:n})=>t.jsxs(Ya,{children:[e,t.jsx($,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),In=({customBadge:e=void 0,description:n,icon:o,onClick:r,requiresUpgrade:i=!1,title:a})=>{const l=f.useTheme();return t.jsxs($,{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($,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(R,{icon:o,iconColor:l.palette.gray[800],iconSize:"sm",ml:.5,mr:.5})}),t.jsxs($,{children:[t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(E,{color:l.palette.gray[800],size:"md",children:a}),i?t.jsx(kn,{text:"Upgrade"}):void 0,e]}),t.jsx(E,{color:l.palette.gray[400],size:"sm",children:n})]})]})},Za=f.styled(y.m.div)`
2487
+ `,Ua=({visibleElement:e,hiddenElement:n})=>t.jsxs(Va,{children:[e,t.jsx($,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),In=({customBadge:e=void 0,description:n,icon:o,onClick:r,requiresUpgrade:i=!1,title:a})=>{const l=f.useTheme();return t.jsxs($,{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($,{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($,{children:[t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(E,{color:l.palette.gray[800],size:"md",children:a}),i?t.jsx(kn,{text:"Upgrade"}):void 0,e]}),t.jsx(E,{color:l.palette.gray[400],size:"sm",children:n})]})]})},Ga=f.styled(y.m.div)`
2520
2488
  ${({theme:e})=>`
2521
2489
  background-color: ${e.palette.white};
2522
2490
  box-shadow: ${e.shadows.lg};
@@ -2539,7 +2507,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2539
2507
  height: auto;
2540
2508
  }
2541
2509
  `}
2542
- `,qa=({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(d=>()=>{d(),i()},[i]);return u.useEffect(()=>{const d=["mousedown","touchstart"],p=g=>{var m;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&&!(((m=s.current)==null?void 0:m.contains(x))??!1)&&i()};return d.forEach(g=>{document.addEventListener(g,p,{passive:!0})}),()=>{d.forEach(g=>{document.removeEventListener(g,p)})}},[o,i]),t.jsx(y.LazyMotion,{features:y.domAnimation,children:t.jsx(Za,{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($,{height:"100%",position:"relative",children:[t.jsxs($,{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(E,{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($,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:t.jsxs($,{py:1.25,children:[(r??[]).map(({customBadge:d,description:p,icon:g,onClick:x,requiresUpgrade:h,title:b})=>t.jsx(In,{customBadge:d,description:p,icon:g,onClick:c(x),requiresUpgrade:h,title:b},b)),e&&t.jsx($,{px:1.25,children:e})]})})]})})})},Xa=(e,n)=>n>=50?`
2510
+ `,Ya=({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(d=>()=>{d(),i()},[i]);return u.useEffect(()=>{const d=["mousedown","touchstart"],p=g=>{var m;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&&!(((m=s.current)==null?void 0:m.contains(x))??!1)&&i()};return d.forEach(g=>{document.addEventListener(g,p,{passive:!0})}),()=>{d.forEach(g=>{document.removeEventListener(g,p)})}},[o,i]),t.jsx(y.LazyMotion,{features:y.domAnimation,children:t.jsx(Ga,{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($,{height:"100%",position:"relative",children:[t.jsxs($,{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(E,{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($,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:t.jsxs($,{py:1.25,children:[(r??[]).map(({customBadge:d,description:p,icon:g,onClick:x,requiresUpgrade:h,title:b})=>t.jsx(In,{customBadge:d,description:p,icon:g,onClick:c(x),requiresUpgrade:h,title:b},b)),e&&t.jsx($,{px:1.25,children:e})]})})]})})})},Ka=(e,n)=>n>=50?`
2543
2511
  ${e.palette.gray[200]} 50%,
2544
2512
  ${e.palette.primary[500]} 50.05%,
2545
2513
  ${e.palette.primary[500]} ${n}%,
@@ -2550,7 +2518,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2550
2518
  ${e.palette.primary[500]} 50%,
2551
2519
  ${e.palette.gray[200]} 50.05%,
2552
2520
  ${e.palette.gray[200]} 100%
2553
- `,Ja=f.styled.div`
2521
+ `,Za=f.styled.div`
2554
2522
  ${({theme:e,$min:n,$value:o})=>`
2555
2523
  align-items: center;
2556
2524
  align-self: stretch;
@@ -2566,7 +2534,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2566
2534
  ${n>=0?`
2567
2535
  ${e.palette.primary[500]} ${o}%,
2568
2536
  ${e.palette.gray[200]} ${o}%
2569
- `:Xa(e,o)}
2537
+ `:Ka(e,o)}
2570
2538
  );
2571
2539
  border-radius: ${e.spacing[.125]};
2572
2540
  height: ${e.spacing[.25]};
@@ -2590,7 +2558,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2590
2558
  border: 1px solid ${e.palette.primary[500]};
2591
2559
  }
2592
2560
  `}
2593
- `,Qa=f.styled.div`
2561
+ `,qa=f.styled.div`
2594
2562
  ${({theme:e})=>`
2595
2563
  align-items: center;
2596
2564
  display: flex;
@@ -2604,7 +2572,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2604
2572
  font-size: ${e.spacing[.5]};
2605
2573
  }
2606
2574
  `}
2607
- `,es=f.styled.output`
2575
+ `,Xa=f.styled.output`
2608
2576
  ${({theme:e})=>`
2609
2577
  align-items: flex-end;
2610
2578
  border-radius: ${e.spacing[.5]};
@@ -2615,7 +2583,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2615
2583
  padding: ${e.spacing[.625]} ${e.spacing[.75]};
2616
2584
  width: 59px;
2617
2585
  `}
2618
- `,En=({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})})})},ts=(e,n,o)=>Math.round((o-e)/(n-e)*100),ns=e=>{const n=f.useTheme(),o=u.useRef(null),{label:r,minValue:i=0,maxValue:a=100,name:l,setValue:s,watch:c}=e,d=y.$a916eb452884faea$export$b7a616150fdb9f44(),p=y.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:d,onChange(b){s==null||s(l,b)},value:c==null?void 0:c(l)}),g=ts(i,a,p.getThumbValue(0)),{groupProps:x,trackProps:h}=y.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},p,o);return t.jsx(K,{htmlFor:l,label:r,children:t.jsxs($,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(Ja,{...x,$min:i??0,$value:g,className:"slider",children:[t.jsx("div",{...h,className:`track ${p.isDisabled?"disabled":""}`,ref:o,children:t.jsx(En,{index:0,name:l,state:p,trackRef:o})}),t.jsxs(Qa,{children:[t.jsx("p",{children:`${d.format(i)} (Low)`}),i<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${d.format(a)} (High)`})]})]}),t.jsx(es,{children:t.jsx(E,{color:n.palette.gray[800],size:"md",textAlign:"right",children:p.getThumbValueLabel(0)})})]})})},{getVariant:os}=Q(e=>({completed:`
2586
+ `,En=({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})})})},Ja=(e,n,o)=>Math.round((o-e)/(n-e)*100),Qa=e=>{const n=f.useTheme(),o=u.useRef(null),{label:r,minValue:i=0,maxValue:a=100,name:l,setValue:s,watch:c}=e,d=y.$a916eb452884faea$export$b7a616150fdb9f44(),p=y.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:d,onChange(b){s==null||s(l,b)},value:c==null?void 0:c(l)}),g=Ja(i,a,p.getThumbValue(0)),{groupProps:x,trackProps:h}=y.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},p,o);return t.jsx(Y,{htmlFor:l,label:r,children:t.jsxs($,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(Za,{...x,$min:i??0,$value:g,className:"slider",children:[t.jsx("div",{...h,className:`track ${p.isDisabled?"disabled":""}`,ref:o,children:t.jsx(En,{index:0,name:l,state:p,trackRef:o})}),t.jsxs(qa,{children:[t.jsx("p",{children:`${d.format(i)} (Low)`}),i<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${d.format(a)} (High)`})]})]}),t.jsx(Xa,{children:t.jsx(E,{color:n.palette.gray[800],size:"md",textAlign:"right",children:p.getThumbValueLabel(0)})})]})})},{getVariant:es}=Q(e=>({completed:`
2619
2587
  background-color: ${e.palette.primary[500]};
2620
2588
  color: ${e.palette.white};
2621
2589
 
@@ -2638,7 +2606,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2638
2606
  &::after {
2639
2607
  background-color: ${e.palette.gray[200]};
2640
2608
  }
2641
- `})),rs=f.styled.div`
2609
+ `})),ts=f.styled.div`
2642
2610
  ${({theme:e})=>`
2643
2611
  align-items: stretch;
2644
2612
  background-color: ${e.palette.white};
@@ -2648,7 +2616,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2648
2616
  padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
2649
2617
  scroll-behavior: unset;
2650
2618
  `}
2651
- `,is=f.styled.div`
2619
+ `,ns=f.styled.div`
2652
2620
  display: flex;
2653
2621
  flex-direction: row;
2654
2622
  margin-bottom: ${({theme:e})=>e.spacing[2]};
@@ -2656,7 +2624,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2656
2624
  &:last-child > div:first-child > span::after {
2657
2625
  display: none;
2658
2626
  }
2659
- `,as=f.styled.div`
2627
+ `,os=f.styled.div`
2660
2628
  ${({theme:e})=>`
2661
2629
  display: inline-flex;
2662
2630
  font-family: ${e.typography.type.primary};
@@ -2668,7 +2636,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2668
2636
  margin-right: ${e.spacing[.5]};
2669
2637
  }
2670
2638
  `}
2671
- `,ss=f.styled.span`
2639
+ `,rs=f.styled.span`
2672
2640
  ${({theme:e,$variant:n})=>`
2673
2641
  border-radius: 6px;
2674
2642
  display: inline-block;
@@ -2691,9 +2659,9 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2691
2659
  height: calc(100% - ${e.spacing[1]});
2692
2660
  }
2693
2661
 
2694
- ${os(e,n)}
2662
+ ${es(e,n)}
2695
2663
  `}
2696
- `,ls=({button:{disabled:e=!1,text:n,type:o="button",onClick:r},steps:i})=>{const[a,l]=u.useState(1),s=u.useCallback((c,d)=>()=>{l(p=>p+c),d==null||d()},[]);return t.jsx(rs,{children:i.map((c,d)=>{const{content:p,title:g,nextAction:x,previousAction:h}=c,b=d+1,w=b===a?"current":"disabled",m=b<a?"completed":w;return t.jsxs(is,{children:[t.jsx($,{maxWidth:"40px",position:"relative",children:t.jsx(ss,{$variant:m,children:m==="completed"?t.jsx(R,{icon:"check",iconSize:"lg",iconType:"fa-solid"}):b})}),t.jsxs($,{ml:1.5,width:"100%",children:[t.jsx(ee,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:g}),m==="current"&&t.jsxs($,{children:[p,t.jsxs(as,{children:[a>1&&t.jsx(O,{disabled:c.isDisabledPrevious??!1,onClick:s(-1,h),variant:"tertiary",children:"Previous"}),a<i.length?t.jsx(O,{disabled:c.isDisabledNext??!1,onClick:s(1,x),variant:"primary",children:"Next step"}):t.jsx(O,{disabled:e,onClick:r,type:o,variant:"primary",children:n})]})]})]})]},c.title)})})},cs=e=>{const n=(i,a)=>a.reduce((s,[c,d])=>{if(u.isValidElement(d)||c==="__typename")return s.concat([["",""]]);if(typeof d=="object"&&d){const g=Object.entries(d);return s.concat(n(c,g))}const p=i===""?"":`${i}.`;return s.concat([[p+c,d]])},[]),o=Object.entries(e),r=n("",o).filter(([i])=>i!=="");return Object.fromEntries(r)},zt=e=>e.map(cs),Rn=({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)?zt(n):zt(n).map(p=>y._.pick(p,r)),[n,r]),c=u.useMemo(()=>s.length>0&&!y._.isEmpty(a),[s.length,a]),d=u.useMemo(()=>(c?Object.keys(s[0]):[]).map(p=>y._.includes(Object.keys(a),p)?{key:p,label:a[p]}:{key:p,label:p}),[c,s,a]);return i?t.jsx(y.CSVLink,{data:s,filename:l,headers:c?d:void 0,children:o}):t.jsx(u.Fragment,{children:o})},Dn=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]),d=tn({columnOrder:(o==null?void 0:o.defaultColumnOrder)??[],items:c,name:"table-column-management",setColumnOrder:n.setColumnOrder,setColumnVisibility:n.setColumnVisibility}),p=u.useCallback(()=>{d.toggle()},[d]);return u.useEffect(()=>{i(n.getVisibleLeafColumns().filter(g=>g.id!=="selection").length)},[n,l]),t.jsxs("div",{id:"columns-filter",children:[t.jsx(O,{icon:"columns",id:"columns-toggle-btn",onClick:p,variant:"ghost",children:t.jsx("p",{children:r})}),t.jsx(hn,{modalRef:d,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`
2664
+ `,is=({button:{disabled:e=!1,text:n,type:o="button",onClick:r},steps:i})=>{const[a,l]=u.useState(1),s=u.useCallback((c,d)=>()=>{l(p=>p+c),d==null||d()},[]);return t.jsx(ts,{children:i.map((c,d)=>{const{content:p,title:g,nextAction:x,previousAction:h}=c,b=d+1,w=b===a?"current":"disabled",m=b<a?"completed":w;return t.jsxs(ns,{children:[t.jsx($,{maxWidth:"40px",position:"relative",children:t.jsx(rs,{$variant:m,children:m==="completed"?t.jsx(D,{icon:"check",iconSize:"lg",iconType:"fa-solid"}):b})}),t.jsxs($,{ml:1.5,width:"100%",children:[t.jsx(ee,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:g}),m==="current"&&t.jsxs($,{children:[p,t.jsxs(os,{children:[a>1&&t.jsx(O,{disabled:c.isDisabledPrevious??!1,onClick:s(-1,h),variant:"tertiary",children:"Previous"}),a<i.length?t.jsx(O,{disabled:c.isDisabledNext??!1,onClick:s(1,x),variant:"primary",children:"Next step"}):t.jsx(O,{disabled:e,onClick:r,type:o,variant:"primary",children:n})]})]})]})]},c.title)})})},as=e=>{const n=(i,a)=>a.reduce((s,[c,d])=>{if(u.isValidElement(d)||c==="__typename")return s.concat([["",""]]);if(typeof d=="object"&&d){const g=Object.entries(d);return s.concat(n(c,g))}const p=i===""?"":`${i}.`;return s.concat([[p+c,d]])},[]),o=Object.entries(e),r=n("",o).filter(([i])=>i!=="");return Object.fromEntries(r)},zt=e=>e.map(as),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)?zt(n):zt(n).map(p=>y._.pick(p,r)),[n,r]),c=u.useMemo(()=>s.length>0&&!y._.isEmpty(a),[s.length,a]),d=u.useMemo(()=>(c?Object.keys(s[0]):[]).map(p=>y._.includes(Object.keys(a),p)?{key:p,label:a[p]}:{key:p,label:p}),[c,s,a]);return i?t.jsx(y.CSVLink,{data:s,filename:l,headers:c?d:void 0,children:o}):t.jsx(u.Fragment,{children:o})},Rn=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]),d=tn({columnOrder:(o==null?void 0:o.defaultColumnOrder)??[],items:c,name:"table-column-management",setColumnOrder:n.setColumnOrder,setColumnVisibility:n.setColumnVisibility}),p=u.useCallback(()=>{d.toggle()},[d]);return u.useEffect(()=>{i(n.getVisibleLeafColumns().filter(g=>g.id!=="selection").length)},[n,l]),t.jsxs("div",{id:"columns-filter",children:[t.jsx(O,{icon:"columns",id:"columns-toggle-btn",onClick:p,variant:"ghost",children:t.jsx("p",{children:r})}),t.jsx(hn,{modalRef:d,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}),ss=f.styled.span`
2697
2665
  transition: all 150ms;
2698
2666
  width: 5px;
2699
2667
  height: 10px;
@@ -2718,7 +2686,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2718
2686
  transition: opacity 150ms;
2719
2687
  opacity: ${({$variant:e})=>e==="asc"?0:1};
2720
2688
  }
2721
- `,et=e=>{const n=f.useTheme(),{variant:o}=e;return t.jsxs(ds,{$variant:o,children:[t.jsx(R,{icon:"caret-up",iconColor:n.palette.gray[700],iconSize:"xs",iconType:"fa-solid"}),t.jsx(R,{icon:"caret-down",iconColor:n.palette.gray[700],iconSize:"xs",iconType:"fa-solid"})]})},ps=f.styled.div`
2689
+ `,et=e=>{const n=f.useTheme(),{variant:o}=e;return t.jsxs(ss,{$variant:o,children:[t.jsx(D,{icon:"caret-up",iconColor:n.palette.gray[700],iconSize:"xs",iconType:"fa-solid"}),t.jsx(D,{icon:"caret-down",iconColor:n.palette.gray[700],iconSize:"xs",iconType:"fa-solid"})]})},ls=f.styled.div`
2722
2690
  position: relative;
2723
2691
 
2724
2692
  div:has(table) {
@@ -2881,7 +2849,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2881
2849
  }
2882
2850
  }
2883
2851
  }
2884
- `,gs=f.styled.div`
2852
+ `,cs=f.styled.div`
2885
2853
  ${({$width:e,theme:n})=>`
2886
2854
  display: flex;
2887
2855
  flex-direction: column;
@@ -2909,7 +2877,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2909
2877
  }
2910
2878
  }
2911
2879
  `}
2912
- `,us=f.styled.div`
2880
+ `,ds=f.styled.div`
2913
2881
  align-items: center;
2914
2882
  background-color: transparent;
2915
2883
  display: flex;
@@ -2957,11 +2925,11 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2957
2925
  transition: all 150ms;
2958
2926
  border-right: 1px solid ${({theme:e})=>e.palette.black};
2959
2927
  }
2960
- `,Nn=()=>{const e=f.useTheme(),{table:n}=u.useContext(oe),{groupHeaders:o,tooltips:r}=(n==null?void 0:n.options.meta)??{},i=u.useCallback(d=>()=>{d.column.getCanSort()&&(n==null||n.setPageIndex(0),d.column.toggleSorting())},[n]),a=d=>p=>{d.getResizeHandler()(p)};if(o)return t.jsx("thead",{children:n==null?void 0:n.getHeaderGroups().map(d=>t.jsx("tr",{"data-testid":"row-headers",children:d.headers.map(p=>{var b;const{isPlaceholder:g}=p,x=g?p.subHeaders[0]:p;return y._.isUndefined(p.column.parent)&&p.depth>1?null:t.jsxs("th",{colSpan:x.colSpan,id:`header-${x.id}`,rowSpan:g?0:1,style:{borderRight:p.headerGroup.headers.indexOf(p)!==p.headerGroup.headers.length-1?"1px solid white":void 0,position:"relative",width:p.getSize()},children:[t.jsxs($,{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(Y,{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(Tt,{onMouseDown:a(p)})]},x.id)})},d.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(d=>{var p;return t.jsxs("th",{id:`header-${d.id}`,style:{position:"relative",width:d.getSize()},children:[t.jsxs($,{alignItems:"center",bgColor:e.palette.gray[200],display:"flex",gap:.25,height:"3rem",lineSpacing:0,onClick:i(d),px:.5,whiteSpace:"nowrap",width:"100%",children:[y.flexRender(d.column.columnDef.header,d.getContext()),d.column.getCanSort()?t.jsx(et,{variant:d.column.getIsSorted()}):void 0,(r==null?void 0:r.map(g=>g.columnId).includes(d.id))??!1?t.jsx(Y,{icon:"circle-info",id:d.id,place:"right",tip:((p=r==null?void 0:r.find(g=>g.columnId===d.id))==null?void 0:p.tip)??""}):void 0]}),d.column.getCanResize()&&t.jsx(Tt,{onMouseDown:a(d)})]},d.id)})})})},xs=f.styled.div`
2928
+ `,Fn=()=>{const e=f.useTheme(),{table:n}=u.useContext(oe),{groupHeaders:o,tooltips:r}=(n==null?void 0:n.options.meta)??{},i=u.useCallback(d=>()=>{d.column.getCanSort()&&(n==null||n.setPageIndex(0),d.column.toggleSorting())},[n]),a=d=>p=>{d.getResizeHandler()(p)};if(o)return t.jsx("thead",{children:n==null?void 0:n.getHeaderGroups().map(d=>t.jsx("tr",{"data-testid":"row-headers",children:d.headers.map(p=>{var b;const{isPlaceholder:g}=p,x=g?p.subHeaders[0]:p;return y._.isUndefined(p.column.parent)&&p.depth>1?null:t.jsxs("th",{colSpan:x.colSpan,id:`header-${x.id}`,rowSpan:g?0:1,style:{borderRight:p.headerGroup.headers.indexOf(p)!==p.headerGroup.headers.length-1?"1px solid white":void 0,position:"relative",width:p.getSize()},children:[t.jsxs($,{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(Tt,{onMouseDown:a(p)})]},x.id)})},d.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(d=>{var p;return t.jsxs("th",{id:`header-${d.id}`,style:{position:"relative",width:d.getSize()},children:[t.jsxs($,{alignItems:"center",bgColor:e.palette.gray[200],display:"flex",gap:.25,height:"3rem",lineSpacing:0,onClick:i(d),px:.5,whiteSpace:"nowrap",width:"100%",children:[y.flexRender(d.column.columnDef.header,d.getContext()),d.column.getCanSort()?t.jsx(et,{variant:d.column.getIsSorted()}):void 0,(r==null?void 0:r.map(g=>g.columnId).includes(d.id))??!1?t.jsx(K,{icon:"circle-info",id:d.id,place:"right",tip:((p=r==null?void 0:r.find(g=>g.columnId===d.id))==null?void 0:p.tip)??""}):void 0]}),d.column.getCanResize()&&t.jsx(Tt,{onMouseDown:a(d)})]},d.id)})})})},ps=f.styled.div`
2961
2929
  align-items: center;
2962
2930
  display: flex;
2963
2931
  width: 100%;
2964
- `,Fn=()=>{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 d=>{var p,g;d.stopPropagation(),(g=(p=n==null?void 0:n.options)==null?void 0:p.onRowClick)==null||g.call(p,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:d=void 0}=c??{};return d?d(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($,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:t.jsx(vn,{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(E,{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,d)=>t.jsx("td",{className:d===r&&n.options.onRowClick?"clickable":"","data-testid":`cell-${c.id}`,onClick:i(s,d),children:t.jsxs(xs,{children:[d===r&&s.getCanExpand()?t.jsx("button",{onClick:a(s),style:{cursor:"pointer",marginRight:"1rem"},children:t.jsx(R,{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))})},Ln=()=>{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(gs,{$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(Fn,{})]})]})},It=f.styled(H)`
2932
+ `,Nn=()=>{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 d=>{var p,g;d.stopPropagation(),(g=(p=n==null?void 0:n.options)==null?void 0:p.onRowClick)==null||g.call(p,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:d=void 0}=c??{};return d?d(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($,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:t.jsx(vn,{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(E,{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,d)=>t.jsx("td",{className:d===r&&n.options.onRowClick?"clickable":"","data-testid":`cell-${c.id}`,onClick:i(s,d),children:t.jsxs(ps,{children:[d===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))})},Ln=()=>{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(cs,{$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(Fn,{}),t.jsx(Nn,{})]})]})},It=f.styled(H)`
2965
2933
  ${({theme:e,$padding:n})=>`
2966
2934
  background-color: ${e.palette.white};
2967
2935
  border: 1px solid ${e.palette.gray[200]};
@@ -2987,7 +2955,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
2987
2955
  background-color: ${e.palette.gray[100]};
2988
2956
  }
2989
2957
  `}
2990
- `,An=()=>{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($,{alignItems:"center",display:"flex",gap:.5,children:[t.jsx(It,{$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(It,{$padding:"4px 6px",disabled:n>o-2,icon:"chevron-right",iconSize:"sm",iconType:"fa-light",id:"go-next",onClick:r,variant:"ghost"})]})},hs=10,fs=20,ys=50,bs=100,Pn=()=>{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}),d=u.useMemo(()=>y.transform([hs,fs,ys,bs],(h,b)=>(h.push(b),b<=o),[]),[o]),p=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",p,!0),()=>{window.removeEventListener("scrollend",p,!0)}),[p]),t.jsxs(u.Fragment,{children:[t.jsxs($,{alignItems:"center",bgColor:e.palette.white,border:"1px solid",borderColor:e.palette.gray[200],borderRadius:"4px",display:"flex",minHeight:"24px",px:.25,children:[t.jsx(E,{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($,{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:d.map(h=>{const b=x(h);return t.jsx($,{bgColor:a===h?e.palette.gray[800]:"transparent",bgColorHover:e.palette.gray[a===h?800:100],borderRadius:e.spacing["0.25"],cursor:"pointer",maxWidth:"40px",minWidth:"40px",onClick:b,px:.25,py:.25,children:t.jsx(E,{color:a===h?e.palette.white:e.palette.gray[600],size:"md",textAlign:"center",children:h})},h)})}):void 0]})},On=()=>{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,d=Math.min(l*(a+1),s);return`${c}-${d} of ${s}`},[]);return t.jsx(E,{display:"inline-block",fontWeight:"bold",size:"md",children:i(n,o,r)})},Mn=({children:e})=>t.jsxs(us,{children:[t.jsxs("div",{className:"pagination-container",children:[t.jsx(On,{}),t.jsx(Pn,{}),t.jsx(An,{})]}),e]}),Wn=({children:e})=>t.jsx("div",{className:"footer-container",children:e}),$s=f.styled.div.attrs({className:"search-container"})`
2958
+ `,An=()=>{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($,{alignItems:"center",display:"flex",gap:.5,children:[t.jsx(It,{$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(It,{$padding:"4px 6px",disabled:n>o-2,icon:"chevron-right",iconSize:"sm",iconType:"fa-light",id:"go-next",onClick:r,variant:"ghost"})]})},gs=10,us=20,xs=50,hs=100,Pn=()=>{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}),d=u.useMemo(()=>y.transform([gs,us,xs,hs],(h,b)=>(h.push(b),b<=o),[]),[o]),p=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",p,!0),()=>{window.removeEventListener("scrollend",p,!0)}),[p]),t.jsxs(u.Fragment,{children:[t.jsxs($,{alignItems:"center",bgColor:e.palette.white,border:"1px solid",borderColor:e.palette.gray[200],borderRadius:"4px",display:"flex",minHeight:"24px",px:.25,children:[t.jsx(E,{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($,{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:d.map(h=>{const b=x(h);return t.jsx($,{bgColor:a===h?e.palette.gray[800]:"transparent",bgColorHover:e.palette.gray[a===h?800:100],borderRadius:e.spacing["0.25"],cursor:"pointer",maxWidth:"40px",minWidth:"40px",onClick:b,px:.25,py:.25,children:t.jsx(E,{color:a===h?e.palette.white:e.palette.gray[600],size:"md",textAlign:"center",children:h})},h)})}):void 0]})},On=()=>{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,d=Math.min(l*(a+1),s);return`${c}-${d} of ${s}`},[]);return t.jsx(E,{display:"inline-block",fontWeight:"bold",size:"md",children:i(n,o,r)})},Mn=({children:e})=>t.jsxs(ds,{children:[t.jsxs("div",{className:"pagination-container",children:[t.jsx(On,{}),t.jsx(Pn,{}),t.jsx(An,{})]}),e]}),Wn=({children:e})=>t.jsx("div",{className:"footer-container",children:e}),fs=f.styled.div.attrs({className:"search-container"})`
2991
2959
  ${({theme:e})=>`
2992
2960
  display: flex;
2993
2961
  flex-direction: column;
@@ -3034,7 +3002,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
3034
3002
  }
3035
3003
  }
3036
3004
  `}
3037
- `,ms=f.styled.div.attrs({className:"controls-container"})`
3005
+ `,ys=f.styled.div.attrs({className:"controls-container"})`
3038
3006
  display: flex;
3039
3007
  flex: 1 0 50%;
3040
3008
 
@@ -3050,7 +3018,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
3050
3018
  justify-content: flex-end;
3051
3019
  width: 100%;
3052
3020
  }
3053
- `,ws=f.styled.div`
3021
+ `,bs=f.styled.div`
3054
3022
  display: flex;
3055
3023
  flex-wrap: wrap;
3056
3024
  width: 100%;
@@ -3065,7 +3033,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
3065
3033
  .highlight-container ~ .controls-container {
3066
3034
  flex: 1 0 100%;
3067
3035
  }
3068
- `,js=500,Hn=({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)},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:i,value:r})}),e]})},Bn=({children:e})=>t.jsx($,{display:"flex",flexDirection:"column",children:t.jsx("div",{className:"caption-container",children:e})}),_n=({children:e})=>t.jsx(ms,{children:e}),Vn=({children:e})=>t.jsx("div",{className:"highlight-container",children:e}),vs=160,Un=({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,d=Math.max(((x=o.current)==null?void 0:x.clientWidth)??0,n.getTotalSize()+vs),p=u.useCallback(()=>{n.resetRowSelection()},[n]),g=u.useCallback(h=>{h.key==="Enter"&&p()},[p]);return u.useEffect(()=>{n.setPageIndex(0)},[n]),t.jsx(oe.Provider,{value:{containerRef:o,elementName:s,handleUnselectAll:p,hidden:c,onKeyDown:g,selected:l,tableSize:d,tableRef:r,table:n},children:t.jsx(ps,{id:i,children:e})})},ks=Object.assign(Un,{Caption:Bn,Columns:Dn,Content:Ln,Controls:_n,Export:Rn,Footer:Mn,FooterContent:Wn,Highlighted:Vn,Options:Hn}),Cs=f.styled.button`
3036
+ `,$s=500,Hn=({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)},$s),l=u.useCallback(()=>{o==null||o("")},[o]);return t.jsxs(bs,{children:[o===void 0?void 0:t.jsx(fs,{children:t.jsx(se,{name:"search",onChange:a,onClear:l,placeholder:i,value:r})}),e]})},Bn=({children:e})=>t.jsx($,{display:"flex",flexDirection:"column",children:t.jsx("div",{className:"caption-container",children:e})}),_n=({children:e})=>t.jsx(ys,{children:e}),Vn=({children:e})=>t.jsx("div",{className:"highlight-container",children:e}),ms=160,Un=({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,d=Math.max(((x=o.current)==null?void 0:x.clientWidth)??0,n.getTotalSize()+ms),p=u.useCallback(()=>{n.resetRowSelection()},[n]),g=u.useCallback(h=>{h.key==="Enter"&&p()},[p]);return u.useEffect(()=>{n.setPageIndex(0)},[n]),t.jsx(oe.Provider,{value:{containerRef:o,elementName:s,handleUnselectAll:p,hidden:c,onKeyDown:g,selected:l,tableSize:d,tableRef:r,table:n},children:t.jsx(ls,{id:i,children:e})})},ws=Object.assign(Un,{Caption:Bn,Columns:Rn,Content:Ln,Controls:_n,Export:Dn,Footer:Mn,FooterContent:Wn,Highlighted:Vn,Options:Hn}),js=f.styled.button`
3069
3037
  ${({theme:e})=>`
3070
3038
  align-items: center;
3071
3039
  background-color: ${e.palette.white};
@@ -3107,7 +3075,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
3107
3075
  background-color: ${e.palette.gray[100]};
3108
3076
  }
3109
3077
  `}
3110
- `,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:r,name:i,onClick:a,type:l="button",variant:s})=>{const c=f.useTheme(),d=t.jsxs(Cs,{"aria-label":i??void 0,className:s,disabled:e,id:o,onClick:a,type:l,children:[t.jsx(R,{clickable:!1,icon:n??Ss[s].icon,iconSize:i===void 0?"sm":"lg",iconType:"fa-light"}),i??void 0]});return t.jsxs($,{alignItems:"center",display:"flex",children:[d,r&&t.jsx(E,{color:c.palette.gray[800],ml:.5,size:"md",children:r})]})},Ts=f.styled.div`
3078
+ `,vs={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},ks=({disabled:e=!1,icon:n,id:o,label:r,name:i,onClick:a,type:l="button",variant:s})=>{const c=f.useTheme(),d=t.jsxs(js,{"aria-label":i??void 0,className:s,disabled:e,id:o,onClick:a,type:l,children:[t.jsx(D,{clickable:!1,icon:n??vs[s].icon,iconSize:i===void 0?"sm":"lg",iconType:"fa-light"}),i??void 0]});return t.jsxs($,{alignItems:"center",display:"flex",children:[d,r&&t.jsx(E,{color:c.palette.gray[800],ml:.5,size:"md",children:r})]})},Cs=f.styled.div`
3111
3079
  ${({theme:e})=>`
3112
3080
  align-items: center;
3113
3081
  background-color: ${e.palette.white};
@@ -3129,7 +3097,7 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
3129
3097
  border: 1px solid ${e.palette.gray[600]};
3130
3098
  }
3131
3099
  `}
3132
- `,Is=f.styled.div`
3100
+ `,Ss=f.styled.div`
3133
3101
  ${({theme:e,$size:n})=>`
3134
3102
  display: ${n==="long"?"flex":"block"};
3135
3103
  flex-direction: column;
@@ -3179,4 +3147,4 @@ ${b[8]}...`:(b.length<8&&d(!1),n)},[l,n,e]),x=u.useMemo(g,[g]),h=u.useCallback(a
3179
3147
  transform: translateX(-50%);
3180
3148
  }
3181
3149
  `}
3182
- `,Gn=({date:e,description:n,title:o})=>{const r=f.useTheme();return t.jsxs(Ts,{className:"timeline-card",children:[t.jsx(E,{color:r.palette.gray[800],fontWeight:"bold",size:"md",textAlign:"start",children:e}),t.jsx(E,{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(E,{size:"md",textAlign:"center",wordBreak:"break-word",children:i},l)})})]})},Es=({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($,{ref:n,width:"100%",children:t.jsx(Is,{$size:o,children:e.map((i,a)=>t.jsx(Gn,{date:i.date,description:i.description,size:o,title:i.title},`${i.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[r,i]=u.useState(e),[a,l]=u.useState(0),s=u.useCallback(c=>{const{action:d,index:p,status:g,type:x}=c;[y.EVENTS.STEP_AFTER,y.EVENTS.TARGET_NOT_FOUND].includes(x)?l(p+(d===y.ACTIONS.PREV?-1:1)):([y.STATUS.FINISHED,y.STATUS.SKIPPED].includes(g)||d==="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=Co;exports.AccordionContent=Nt;exports.ActionButton=pe;exports.Alert=Lo;exports.AppliedFilter=ue;exports.AppliedFilters=Ii;exports.ArrayField=Ze;exports.Avatar=Vo;exports.BaseButtonComponent=nt;exports.BaseComponent=ze;exports.BaseSpanComponent=rt;exports.BaseTextComponent=ot;exports.Body=Fn;exports.Button=O;exports.Button$1=Ne;exports.ButtonToolbarCenter=yr;exports.ButtonToolbarRow=$r;exports.ButtonToolbarStartRow=br;exports.Calendar=Ht;exports.Calendar$1=Gt;exports.Calendar$2=Kt;exports.CalendarCell=Wt;exports.CalendarGrid=Ae;exports.CaptionContent=Bn;exports.CardContainer=Xr;exports.CardHeader=Le;exports.CardWithImage=Yo;exports.CardWithInput=Or;exports.CardWithOptions=Jt;exports.CardWithSelector=Ur;exports.CardWithSwitch=Kr;exports.Carousel=oi;exports.Checkbox=ie;exports.CodeSnippet=ii;exports.Col=Ke;exports.ColumFilters=mn;exports.ColumnToggle=Dn;exports.ColumnsModal=hn;exports.ComboBox=at;exports.ComboBoxField=Ye;exports.Container=$;exports.ControlsContent=_n;exports.CopyButton=Wi;exports.CustomThemeProvider=yo;exports.DateField=_t;exports.DateSelector=fe;exports.Description=Tn;exports.Dialog=Oe;exports.Divider=ae;exports.Dropdown=_i;exports.Editable=fr;exports.EmptyButton=Je;exports.EmptyState=Yi;exports.ErrorMessage=Xo;exports.ExportCsv=Rn;exports.FilePreview=Pt;exports.FilterControl=fn;exports.FilterForm=Xe;exports.FilterFormContent=yn;exports.FiltersList=$n;exports.FooterContent=Wn;exports.Form=qi;exports.Gap=jr;exports.GridContainer=Ji;exports.GroupSelector=ea;exports.Head=Nn;exports.Header=Pe;exports.Header$1=ln;exports.Heading=ee;exports.HighlightedContent=Vn;exports.Icon=R;exports.IconButton=H;exports.InProgressIcon=Sn;exports.IndicatorCard=Zr;exports.InfoSidebar=ta;exports.InnerForm=Ki;exports.InputArray=kr;exports.InputDate=Ut;exports.InputDateRange=Yt;exports.InputDateTime=hr;exports.InputFile=Tr;exports.InputNumber=qt;exports.InputNumberRange=Xt;exports.InputTags=Er;exports.Label=it;exports.Link=te;exports.ListItem=Ee;exports.ListItemsWrapper=pn;exports.LittleFlag=oa;exports.Loading=vn;exports.LocationCode=rn;exports.Logo=ga;exports.Lottie=xa;exports.MemoizedImage=re;exports.Menu=ha;exports.MenuItem=In;exports.MessageBanner=ya;exports.Modal=gt;exports.ModalConfirm=cn;exports.ModalFooter=sn;exports.Notification=ja;exports.NotificationSign=De;exports.NumberField=be;exports.NumberInput=Ca;exports.OAuthSelector=za;exports.Option=Ot;exports.OptionBoxContainer=ut;exports.OptionContainer=Qe;exports.OptionContainer$1=jn;exports.OutlineContainer=K;exports.PaginationControl=An;exports.PaginationDropdown=Pn;exports.PaginationSize=On;exports.PhoneInput=Ar;exports.PopUp=Wa;exports.Popover=Te;exports.PremiumFeature=kn;exports.PreviewPanel=gn;exports.PriorityScore=Ia;exports.ProgressBar=Cn;exports.ProgressIndicator=Ma;exports.ProgressStep=Pa;exports.RadioButton=ct;exports.Row=Zt;exports.ScrollUpButton=Ba;exports.Search=se;exports.SearchPanel=xn;exports.SeverityBadge=Va;exports.SeverityOverview=Ga;exports.SeverityOverviewBadge=xe;exports.ShowOnHover=Ka;exports.SlideOutMenu=qa;exports.Slider=ns;exports.SortIcon=et;exports.Span=he;exports.StepLapse=ls;exports.Tab=dn;exports.Table=ks;exports.Table$1=Un;exports.TableButton=zs;exports.TableContent=Ln;exports.TableContext=oe;exports.TableFooter=Mn;exports.TableOptions=Hn;exports.Tabs=pt;exports.Tag=X;exports.TagsField=qe;exports.Text=E;exports.TextArea=Pr;exports.TextInput=Me;exports.Thumb=En;exports.TimeField=Vt;exports.TimeLine=Es;exports.TimeLineCard=Gn;exports.Toggle=nn;exports.Tooltip=Y;exports.Tour=Ds;exports.baseStep=Rs;exports.formatCheckValues=wn;exports.getStyledConfig=Se;exports.hiddenProps=Et;exports.icons=fo;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=Qt;exports.useClickOutside=ne;exports.useCloudinaryImage=en;exports.useColumnsModal=tn;exports.useConditionsDialog=Pi;exports.useConfirmDialog=Oi;exports.useDebouncedCallback=lt;exports.useFilterForm=bn;exports.useFilters=Ai;exports.useModal=Ie;exports.useSearch=Hr;exports.variantBuilder=Q;
3150
+ `,Gn=({date:e,description:n,title:o})=>{const r=f.useTheme();return t.jsxs(Cs,{className:"timeline-card",children:[t.jsx(E,{color:r.palette.gray[800],fontWeight:"bold",size:"md",textAlign:"start",children:e}),t.jsx(E,{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(E,{size:"md",textAlign:"center",wordBreak:"break-word",children:i},l)})})]})},zs=({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($,{ref:n,width:"100%",children:t.jsx(Ss,{$size:o,children:e.map((i,a)=>t.jsx(Gn,{date:i.date,description:i.description,size:o,title:i.title},`${i.title}-${a}`))})})},Ts={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:""},Is=({run:e,steps:n,onFinish:o})=>{const[r,i]=u.useState(e),[a,l]=u.useState(0),s=u.useCallback(c=>{const{action:d,index:p,status:g,type:x}=c;[y.EVENTS.STEP_AFTER,y.EVENTS.TARGET_NOT_FOUND].includes(x)?l(p+(d===y.ACTIONS.PREV?-1:1)):([y.STATUS.FINISHED,y.STATUS.SKIPPED].includes(g)||d==="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=Co;exports.AccordionContent=Ft;exports.ActionButton=pe;exports.Alert=Lo;exports.AppliedFilter=ue;exports.AppliedFilters=Ii;exports.ArrayField=Ze;exports.Avatar=Vo;exports.BaseButtonComponent=nt;exports.BaseComponent=ze;exports.BaseSpanComponent=rt;exports.BaseTextComponent=ot;exports.Body=Nn;exports.Button=O;exports.Button$1=Fe;exports.ButtonToolbarCenter=yr;exports.ButtonToolbarRow=$r;exports.ButtonToolbarStartRow=br;exports.Calendar=Ht;exports.Calendar$1=Gt;exports.Calendar$2=Kt;exports.CalendarCell=Wt;exports.CalendarGrid=Ae;exports.CaptionContent=Bn;exports.CardContainer=Xr;exports.CardHeader=Le;exports.CardWithImage=Yo;exports.CardWithInput=Or;exports.CardWithOptions=Jt;exports.CardWithSelector=Ur;exports.CardWithSwitch=Kr;exports.Carousel=oi;exports.Checkbox=ie;exports.CodeSnippet=ii;exports.Col=Ke;exports.ColumFilters=mn;exports.ColumnToggle=Rn;exports.ColumnsModal=hn;exports.ComboBox=at;exports.ComboBoxField=Ye;exports.Container=$;exports.ControlsContent=_n;exports.CopyButton=Wi;exports.CustomThemeProvider=yo;exports.DateField=_t;exports.DateSelector=fe;exports.Description=Tn;exports.Dialog=Oe;exports.Divider=ae;exports.Dropdown=_i;exports.Editable=fr;exports.EmptyButton=Je;exports.EmptyState=Yi;exports.ErrorMessage=Xo;exports.ExportCsv=Dn;exports.FilePreview=Pt;exports.FilterControl=fn;exports.FilterForm=Xe;exports.FilterFormContent=yn;exports.FiltersList=$n;exports.FooterContent=Wn;exports.Form=qi;exports.Gap=jr;exports.GridContainer=Ji;exports.GroupSelector=ea;exports.Head=Fn;exports.Header=Pe;exports.Header$1=ln;exports.Heading=ee;exports.HighlightedContent=Vn;exports.Icon=D;exports.IconButton=H;exports.InProgressIcon=Sn;exports.IndicatorCard=Zr;exports.InfoSidebar=ta;exports.InnerForm=Ki;exports.InputArray=kr;exports.InputDate=Ut;exports.InputDateRange=Yt;exports.InputDateTime=hr;exports.InputFile=Tr;exports.InputNumber=qt;exports.InputNumberRange=Xt;exports.InputTags=Er;exports.Label=it;exports.Link=te;exports.ListItem=Ee;exports.ListItemsWrapper=pn;exports.LittleFlag=oa;exports.Loading=vn;exports.LocationCode=rn;exports.Logo=ga;exports.Lottie=xa;exports.MemoizedImage=re;exports.Menu=ha;exports.MenuItem=In;exports.MessageBanner=ya;exports.Modal=gt;exports.ModalConfirm=cn;exports.ModalFooter=sn;exports.Notification=ja;exports.NotificationSign=Re;exports.NumberField=be;exports.OAuthSelector=ka;exports.Option=Ot;exports.OptionBoxContainer=ut;exports.OptionContainer=Qe;exports.OptionContainer$1=jn;exports.OutlineContainer=Y;exports.PaginationControl=An;exports.PaginationDropdown=Pn;exports.PaginationSize=On;exports.PhoneInput=Ar;exports.PopUp=Pa;exports.Popover=Te;exports.PremiumFeature=kn;exports.PreviewPanel=gn;exports.PriorityScore=Sa;exports.ProgressBar=Cn;exports.ProgressIndicator=Aa;exports.ProgressStep=Na;exports.RadioButton=ct;exports.Row=Zt;exports.ScrollUpButton=Ma;exports.Search=se;exports.SearchPanel=xn;exports.SeverityBadge=Ha;exports.SeverityOverview=_a;exports.SeverityOverviewBadge=xe;exports.ShowOnHover=Ua;exports.SlideOutMenu=Ya;exports.Slider=Qa;exports.SortIcon=et;exports.Span=he;exports.StepLapse=is;exports.Tab=dn;exports.Table=ws;exports.Table$1=Un;exports.TableButton=ks;exports.TableContent=Ln;exports.TableContext=oe;exports.TableFooter=Mn;exports.TableOptions=Hn;exports.Tabs=pt;exports.Tag=X;exports.TagsField=qe;exports.Text=E;exports.TextArea=Pr;exports.TextInput=Me;exports.Thumb=En;exports.TimeField=Vt;exports.TimeLine=zs;exports.TimeLineCard=Gn;exports.Toggle=nn;exports.Tooltip=K;exports.Tour=Is;exports.baseStep=Ts;exports.formatCheckValues=wn;exports.getStyledConfig=Se;exports.hiddenProps=Et;exports.icons=fo;exports.setBorder=je;exports.setDisplay=ve;exports.setInteraction=Ce;exports.setMargin=me;exports.setPadding=$e;exports.setPosition=we;exports.setText=ke;exports.theme=F;exports.useCarousel=Qt;exports.useClickOutside=ne;exports.useCloudinaryImage=en;exports.useColumnsModal=tn;exports.useConditionsDialog=Pi;exports.useConfirmDialog=Oi;exports.useDebouncedCallback=lt;exports.useFilterForm=bn;exports.useFilters=Ai;exports.useModal=Ie;exports.useSearch=Hr;exports.variantBuilder=Q;