@fluidattacks/design 3.24.5-pr → 3.24.6-pr
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.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/conditions-dialog/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/copy-button/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/dropdown/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/inner-form/index.js +1 -1
- package/dist/components/grid-container/index.js +1 -1
- package/dist/components/group-selector/index.js +1 -1
- package/dist/components/group-selector/option-container/index.js +1 -1
- package/dist/components/icon/index.js +1 -1
- package/dist/components/icon-button/index.js +1 -1
- package/dist/components/indicator-card/index.js +1 -1
- package/dist/components/info-sidebar/index.js +1 -1
- package/dist/components/inputs/fields/combobox/field/index.js +1 -1
- package/dist/components/inputs/fields/combobox/index.js +1 -1
- package/dist/components/inputs/fields/combobox/option/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/cell/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/grid/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/header/index.js +1 -1
- package/dist/components/inputs/fields/date/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.js +1 -1
- package/dist/components/inputs/fields/date-time/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-time/index.js +1 -1
- package/dist/components/inputs/fields/editable/index.js +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-array/field/index.js +1 -1
- package/dist/components/inputs/fields/input-array/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/field/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.js +1 -1
- package/dist/components/inputs/index.js +1 -1
- package/dist/components/inputs/label/index.js +1 -1
- package/dist/components/inputs/outline-container/index.js +1 -1
- package/dist/components/inputs/utils/action-button/index.js +1 -1
- package/dist/components/inputs/utils/calendar-button/index.js +1 -1
- package/dist/components/inputs/utils/date-selector/index.js +1 -1
- package/dist/components/inputs/utils/date-time-field/index.js +1 -1
- package/dist/components/inputs/utils/dialog/index.js +1 -1
- package/dist/components/inputs/utils/number-field/index.js +1 -1
- package/dist/components/inputs/utils/popover/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/lottie/index.js +1 -1
- package/dist/components/menu/index.js +1 -1
- package/dist/components/message-banner/index.js +1 -1
- package/dist/components/modal/columns-modal/index.js +1 -1
- package/dist/components/modal/columns-modal/preview-panel/index.js +1 -1
- package/dist/components/modal/columns-modal/search-panel/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filter/index.js +1 -1
- package/dist/components/modal/filters-modal/applied-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/form-content/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/hooks/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-form/utils.d.ts +1 -1
- package/dist/components/modal/filters-modal/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/index.js +1 -1
- package/dist/components/modal/footer/index.js +1 -1
- package/dist/components/modal/header/index.js +1 -1
- package/dist/components/modal/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/progress-indicator/in-progress-icon/index.js +1 -1
- package/dist/components/progress-indicator/index.js +1 -1
- package/dist/components/progress-indicator/step/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table/context/index.js +1 -1
- package/dist/components/table/export-csv/index.js +1 -1
- package/dist/components/table/index.js +1 -1
- package/dist/components/table/pagination/pagination-control/index.js +1 -1
- package/dist/components/table/pagination/pagination-dropdown/index.js +1 -1
- package/dist/components/table/pagination/pagination-size/index.js +1 -1
- package/dist/components/table/sort-icon/index.js +1 -1
- package/dist/components/table/table-body/index.js +1 -1
- package/dist/components/table/table-column-toggle/index.js +1 -1
- package/dist/components/table/table-content/head/index.js +1 -1
- package/dist/components/table/table-content/index.js +1 -1
- package/dist/components/table/table-footer/footer-content/index.js +1 -1
- package/dist/components/table/table-footer/index.js +1 -1
- package/dist/components/table/table-options/caption-content/index.js +1 -1
- package/dist/components/table/table-options/controls-content/index.js +1 -1
- package/dist/components/table/table-options/highlighted-content/index.js +1 -1
- package/dist/components/table/table-options/index.js +1 -1
- package/dist/components/table/wrapper/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tag/index.js +1 -1
- package/dist/components/timeline/card/index.js +1 -1
- package/dist/components/timeline/index.js +1 -1
- package/dist/components/toggle/index.js +1 -1
- package/dist/components/tooltip/index.js +1 -1
- package/dist/components/tour/index.js +1 -1
- package/dist/components/typography/heading/index.js +1 -1
- package/dist/components/typography/index.js +1 -1
- package/dist/components/typography/span/index.js +1 -1
- package/dist/components/typography/text/index.js +1 -1
- package/dist/{components-VbHoecE9.mjs → components-IWkHA0k2.mjs} +215 -214
- package/dist/{components-D7f7nxmJ.js → components-XATbdocP.js} +38 -38
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),x=require("react"),l=require("./vendor-9f4XgOcG.js"),se=require("react-dom"),Oe=require("react-router-dom"),K=e=>({getVariant:(n,i)=>e(n)[i]}),Ct=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"],Qn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},ei={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},ti={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},ni={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},ii={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},oi={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},ri={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},ai={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},si={type:{primary:"Roboto, sans-serif",poppins:"'Poppins', sans-serif",mono:"'Space Mono', monospace"},heading:{xxl:"64px",xl:"48px",lg:"32px",md:"24px",sm:"20px",xs:"16px"},text:{xl:"20px",lg:"18px",md:"16px",sm:"14px",xs:"12px"},weight:{bold:"700",semibold:"600",regular:"400"}},li={none:"none",sm:"0px 1px 2px 0px rgba(16, 24, 40, 0.15)",md:"0px 4px 6px 0px rgba(16, 24, 40, 0.15)",lg:"0px 8px 24px 0px rgba(16, 24, 40, 0.15)"},ci={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},di={0:"0rem",.125:"0.125rem",.188:"0.188rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",1:"1rem",1.25:"1.25rem",1.5:"1.5rem",1.75:"1.75rem",2:"2rem",2.25:"2.25rem",2.5:"2.5rem",3:"3rem",3.5:"3.5rem",4:"4rem",4.5:"4.5rem",5:"5rem",6:"6rem"},pi=["lock-keyhole","bars-sort","bolt","books","brain-circuit","briefcase","bug","buildings","bullseye-pointer","calendar-clock","calendar-xmark","chart-network","clipboard-check","comment","envelope","eye","file","flag","globe","hand-holding-dollar","hands-clapping","headset","hexagon-exclamation","light-emergency-on","magnifying-glass","pen-line","plane-departure","screwdriver-wrench","sensor-triangle-exclamation","shield-check","sidebar","skull","sliders","star-christmas","telescope","trash","unlock","user-group","user-hoodie","xmark"],gi=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),x=require("react"),l=require("./vendor-9f4XgOcG.js"),se=require("react-dom"),Oe=require("react-router-dom"),K=e=>({getVariant:(n,i)=>e(n)[i]}),Ct=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"],Qn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},ei={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},ti={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},ni={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},ii={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},oi={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},ri={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},ai={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},si={type:{primary:"Roboto, sans-serif",poppins:"'Poppins', sans-serif",mono:"'Space Mono', monospace"},heading:{xxl:"64px",xl:"48px",lg:"32px",md:"24px",sm:"20px",xs:"16px"},text:{xl:"20px",lg:"18px",md:"16px",sm:"14px",xs:"12px"},weight:{bold:"700",semibold:"600",regular:"400"}},li={none:"none",sm:"0px 1px 2px 0px rgba(16, 24, 40, 0.15)",md:"0px 4px 6px 0px rgba(16, 24, 40, 0.15)",lg:"0px 8px 24px 0px rgba(16, 24, 40, 0.15)"},ci={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},di={0:"0rem",.125:"0.125rem",.188:"0.188rem",.25:"0.25rem",.5:"0.5rem",.625:"0.625rem",.75:"0.75rem",1:"1rem",1.25:"1.25rem",1.5:"1.5rem",1.75:"1.75rem",2:"2rem",2.25:"2.25rem",2.5:"2.5rem",3:"3rem",3.5:"3.5rem",4:"4rem",4.5:"4.5rem",5:"5rem",6:"6rem"},pi=["lock-keyhole","bars-sort","bolt","books","brain-circuit","briefcase","bug","buildings","bullseye-pointer","calendar-clock","calendar-xmark","chart-network","clipboard-check","comment","envelope","eye","file","flag","globe","hand-holding-dollar","hands-clapping","headset","hexagon-exclamation","light-emergency-on","magnifying-glass","pen-line","plane-departure","screwdriver-wrench","sensor-triangle-exclamation","shield-check","sidebar","skull","sliders","star-christmas","telescope","trash","unlock","user-group","user-hoodie","xmark"],gi=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],N={typography:si,shadows:li,breakpoints:ci,spacing:di,palette:{primary:ei,complementary:ti,error:ni,info:ri,warning:ii,success:oi,black:"#0c111d",white:"#ffffff",gray:Qn,gradients:ai}},ui=({children:e})=>t.jsx(l.Xe,{theme:N,children:e}),F=(e,n)=>n===void 0?"":`${e}: ${n};`,he=e=>{const n=e.py??e.pt??0,i=e.px??e.pr??0,o=e.py??e.pb??0,r=e.px??e.pl??0;if(e.padding){const[a,c,s,d]=e.padding;return`padding: ${N.spacing[a]} ${N.spacing[c]} ${N.spacing[s]} ${N.spacing[d]};`}return`padding: ${N.spacing[n]} ${N.spacing[i]} ${N.spacing[o]} ${N.spacing[r]};`},be=e=>{const n=e.my??e.mt??0,i=e.mx??e.mr??0,o=e.my??e.mb??0,r=e.mx??e.ml??0;if(e.margin){const[a,c,s,d]=e.margin;return`margin: ${N.spacing[a]} ${N.spacing[c]} ${N.spacing[s]} ${N.spacing[d]};`}return`margin: ${N.spacing[n]} ${N.spacing[i]} ${N.spacing[o]} ${N.spacing[r]};`},ye=e=>{const n=F("position",e.position),i=F("top",e.top),o=F("right",e.right),r=F("bottom",e.bottom),a=F("left",e.left),c=F("z-index",e.zIndex);return`
|
|
2
2
|
${n}
|
|
3
3
|
${i}
|
|
4
4
|
${o}
|
|
5
5
|
${r}
|
|
6
6
|
${a}
|
|
7
7
|
${c}
|
|
8
|
-
`},$e=e=>{const n=
|
|
8
|
+
`},$e=e=>{const n=F("border",e.border),i=F("border-top",e.borderTop),o=F("border-right",e.borderRight),r=F("border-bottom",e.borderBottom),a=F("border-left",e.borderLeft),c=F("border-color",e.borderColor),s=F("border-radius",e.borderRadius);return`
|
|
9
9
|
${n}
|
|
10
10
|
${i}
|
|
11
11
|
${o}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
`},xi=e=>e.includes("x")?"overflow-x: auto;":"",fi=e=>e.includes("y")?"overflow-y: auto;":"",me=e=>{const n=e.scroll?`
|
|
17
17
|
${xi(e.scroll)}
|
|
18
18
|
${fi(e.scroll)}
|
|
19
|
-
`:"",i=
|
|
19
|
+
`:"",i=F("visibility",e.visibility),o=F("display",e.display),r=F("height",e.height),a=F("width",e.width),c=F("max-height",e.maxHeight),s=F("max-width",e.maxWidth),d=F("min-height",e.minHeight),p=F("min-width",e.minWidth),g=F("box-shadow",e.shadow?N.shadows[e.shadow]:void 0),u=F("gap",e.gap===void 0?void 0:N.spacing[e.gap]),f=F("background-color",e.bgColor),h=F("background",e.bgGradient),b=F("flex-direction",e.flexDirection),$=F("flex-grow",e.flexGrow),m=F("justify-content",e.justify),j=F("justify-self",e.justifySelf),w=F("align-items",e.alignItems),v=F("align-self",e.alignSelf),k=F("flex-wrap",e.wrap);return`
|
|
20
20
|
${n}
|
|
21
21
|
${i}
|
|
22
22
|
${o}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
${w}
|
|
38
38
|
${v}
|
|
39
39
|
${k}
|
|
40
|
-
`},we=e=>{const n=
|
|
40
|
+
`},we=e=>{const n=F("color",e.color),i=F("font-family",e.fontFamily),o=F("font-size",e.fontSize),r=F("font-weight",e.fontWeight),a=F("line-spacing",e.letterSpacing),c=F("line-height",e.lineSpacing),s=F("text-align",e.textAlign),d=F("text-decoration",e.textDecoration),p=F("text-overflow",e.textOverflow),g=F("white-space",e.whiteSpace),u=F("word-break",e.wordBreak),f=F("word-wrap",e.wordWrap);return`
|
|
41
41
|
${n}
|
|
42
42
|
${i}
|
|
43
43
|
${o}
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
${g}
|
|
51
51
|
${u}
|
|
52
52
|
${f}
|
|
53
|
-
`},je=e=>{const n=
|
|
53
|
+
`},je=e=>{const n=F("cursor",e.cursor),i=F("border-color",e.borderColorHover),o=F("background-color",e.bgColorHover),r=F("box-shadow",e.shadowHover===void 0?void 0:N.shadows[e.shadowHover]),a=F("transition",e.transition);return`
|
|
54
54
|
${n}
|
|
55
55
|
|
|
56
56
|
&:hover {
|
|
@@ -498,7 +498,7 @@
|
|
|
498
498
|
#menu-profile-container li div {
|
|
499
499
|
min-width: unset;
|
|
500
500
|
}
|
|
501
|
-
`,{getVariant:
|
|
501
|
+
`,{getVariant:Ni}=K(e=>({default:`
|
|
502
502
|
background-color: ${e.palette.gray[200]};
|
|
503
503
|
color: ${e.palette.gray[800]};
|
|
504
504
|
`,error:`
|
|
@@ -573,7 +573,7 @@
|
|
|
573
573
|
background-color: ${e.palette.warning[400]};
|
|
574
574
|
color: ${e.palette.warning[700]};
|
|
575
575
|
}
|
|
576
|
-
`})),
|
|
576
|
+
`})),Fi=l.st.span`
|
|
577
577
|
${({theme:e,$fontSize:n=e.typography.text.xs,$variant:i})=>`
|
|
578
578
|
align-items: center;
|
|
579
579
|
border-radius: ${e.spacing[i==="technique"?1:.25]};
|
|
@@ -594,7 +594,7 @@
|
|
|
594
594
|
display: flex;
|
|
595
595
|
}
|
|
596
596
|
|
|
597
|
-
${
|
|
597
|
+
${Ni(e,i)}
|
|
598
598
|
`}
|
|
599
599
|
`,{getVariant:Di}=K(e=>({highRelevance:`
|
|
600
600
|
color: ${e.palette.primary[500]};
|
|
@@ -636,7 +636,7 @@
|
|
|
636
636
|
${Tt}
|
|
637
637
|
`,Ai=l.st(Oe.Link)`
|
|
638
638
|
${Tt}
|
|
639
|
-
`,Z=({children:e,color:n,download:i,href:o,iconPosition:r="right",onClick:a,target:c,variant:s="lowRelevance"})=>{const d=o.startsWith("https://"),p=t.jsx(E,{icon:i===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return d?t.jsxs(Li,{$color:n,$variant:s,download:i,href:o,onClick:a,rel:"nofollow noopener noreferrer",target:c??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(Ai,{$variant:s,download:i,onClick:a,rel:"nofollow noopener noreferrer",target:c,to:o,children:[c!==void 0&&r==="left"?p:void 0,e,c!==void 0&&r==="right"?p:void 0]})},G=({disabled:e,icon:n,iconColor:i="inherit",iconType:o="fa-light",id:r="close-tag",filterValues:a="",fontSize:c,href:s,linkLabel:d,onClose:p,priority:g="default",tagTitle:u="",tagLabel:f,variant:h="default"})=>{const b=f.length>25&&l.lodashExports.isEmpty(u+a),$=`${f.slice(0,25)}...`;return t.jsxs(ue,{className:"gap-0.5",display:s===void 0?"initial":"flex",size:"sm",children:[t.jsxs(
|
|
639
|
+
`,Z=({children:e,color:n,download:i,href:o,iconPosition:r="right",onClick:a,target:c,variant:s="lowRelevance"})=>{const d=o.startsWith("https://"),p=t.jsx(E,{icon:i===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return d?t.jsxs(Li,{$color:n,$variant:s,download:i,href:o,onClick:a,rel:"nofollow noopener noreferrer",target:c??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(Ai,{$variant:s,download:i,onClick:a,rel:"nofollow noopener noreferrer",target:c,to:o,children:[c!==void 0&&r==="left"?p:void 0,e,c!==void 0&&r==="right"?p:void 0]})},G=({disabled:e,icon:n,iconColor:i="inherit",iconType:o="fa-light",id:r="close-tag",filterValues:a="",fontSize:c,href:s,linkLabel:d,onClose:p,priority:g="default",tagTitle:u="",tagLabel:f,variant:h="default"})=>{const b=f.length>25&&l.lodashExports.isEmpty(u+a),$=`${f.slice(0,25)}...`;return t.jsxs(ue,{className:"gap-0.5",display:s===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Fi,{$fontSize:c,$variant:h,className:g,children:[n&&t.jsx(E,{icon:n,iconColor:i,iconSize:"xxs",iconType:o}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:u}),t.jsx("span",{children:b?$:f}),t.jsx("strong",{className:"w-full",children:a})]}),p?t.jsx(M,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),s===void 0?void 0:t.jsx(Z,{href:s,children:d})]})},Et=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");l.lodashExports.isObject(i)&&(i.opener=null)},P=x.forwardRef(function({children:n,disabled:i=!1,external:o=!1,fontSize:r,href:a,id:c,icon:s,iconColor:d,iconType:p,name:g,onClick:u,rightIcon:f,tag:h,type:b="button",tooltip:$,tooltipPlace:m="bottom",underline:j=!1,value:w,variant:v="primary",width:k,...C},I){const R=$!==void 0,S=`${c}-tooltip`,D=x.useCallback(()=>{a&&Et(a,o)},[o,a]),T=t.jsxs(It,{$size:r,$variant:v,"aria-disabled":i,className:j?"underline":void 0,disabled:i,id:c,name:g,onClick:v==="link"?D:u,ref:I,type:b,value:w,width:k,...R?{"data-tooltip-id":S}:{},...C,children:[s!==void 0&&t.jsx(E,{icon:s,iconColor:d??void 0,iconSize:"xs",iconType:p??"fa-light"}),n,f||v==="link"?t.jsx(E,{icon:f??"arrow-right",iconSize:"xs",iconType:"fa-light"}):void 0,h===void 0?null:t.jsx(G,{tagLabel:h,variant:"default"})]});return R?t.jsx(U,{disabled:!R,id:S,place:m,tip:$,width:k,children:T}):T}),Pi=x.forwardRef(function({children:n,onClick:i,userName:o,showIcon:r=!1,showUsername:a=!1},c){const s=!!i;return t.jsx(y,{id:"navbar-user-profile",ref:c,zIndex:9999,children:t.jsxs(y,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[s?t.jsxs(P,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(gt,{children:o[0].toUpperCase()}),a?t.jsx(z,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:o.split(" ")[0]}):void 0,r?t.jsx(E,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs(y,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(gt,{children:o[0].toUpperCase()}),a?t.jsxs(z,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",o.split(" ")[0],"!"]}):void 0,r?t.jsx(E,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(Ri,{children:n})]})})}),Ne=({authorEmail:e,date:n,description:i,descriptionColor:o,id:r,title:a,titleColor:c,textAlign:s,textSpacing:d=0,tooltip:p})=>{const g=l.Je();return t.jsxs(y,{width:"100%",children:[typeof a=="string"||p?t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:.5,width:"100%",children:[typeof a=="string"?t.jsx(z,{color:c??g.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:s,wordBreak:"break-word",children:a}):a,p&&t.jsx(U,{icon:"circle-info",id:r,place:"top",tip:p})]}):void 0,t.jsxs(y,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(z,{color:o??g.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:s,wordBreak:"break-word",children:i}),n&&t.jsx(z,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(z,{color:g.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:s,wordBreak:"break-word",children:`Author: ${e}`})]})]})},ut=l.st(y).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
640
640
|
& img {
|
|
641
641
|
display: block;
|
|
642
642
|
}
|
|
@@ -651,7 +651,7 @@
|
|
|
651
651
|
pointer-events: none;
|
|
652
652
|
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
653
653
|
}
|
|
654
|
-
`,Mi=e=>{if(l._.isNil(e))return"";const n=e.split(".");return(n.length>1?l._.last(n):"").toLowerCase()},Oi=(e,n)=>l._.isUndefined(n)?!1:l._.includes(e,Mi(n)),Rt=({alt:e,fileType:n,width:i="100%",opacity:o=0,src:r,height:a="auto",videoViewStatus:c})=>{const[s,d]=x.useState({start:!1,half:!1,end:!1}),p=x.useCallback(g=>{if(!c)return;const u=g.target,f=u.currentTime/u.duration*100;f>5&&f<50?(s.start||c("start"),d({start:!0,half:!1,end:!1})):f>=50&&f<99?(s.half||c("half"),d({start:!0,half:!0,end:!1})):f>=99?(s.end||c("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[c,s]);return n==="video"||Oi(["webm"],r)?t.jsx(ut,{$opacity:o,children:t.jsx(Z,{href:r,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:p,style:{height:a,width:i},children:[t.jsx("source",{src:r,type:"video/webm"}),r]})})}):t.jsx(ut,{$opacity:o,children:t.jsx("img",{alt:e,src:r,style:{height:a,width:i}})})},Wi=({alt:e,authorEmail:n,date:i,description:o,src:r,children:a,isEditing:c,onClick:s,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:u=!0,videoViewStatus:f})=>{const h=l.Je(),[b,$]=x.useState(!1),m=x.useCallback(()=>{$(!0)},[]),j=x.useCallback(()=>{$(!1)},[]);return t.jsxs(y,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:m,onLeave:j,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(y,{cursor:c?"unset":"pointer",display:"inline-flex",justify:"center",onClick:s,position:"relative",width:"100%",children:a===void 0?t.jsxs(x.Fragment,{children:[t.jsx(Rt,{alt:e,fileType:g,height:"147px",opacity:b?.3:0,src:r,videoViewStatus:f,width:"100%"}),u?t.jsx(y,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(M,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):a}),p?null:t.jsx(
|
|
654
|
+
`,Mi=e=>{if(l._.isNil(e))return"";const n=e.split(".");return(n.length>1?l._.last(n):"").toLowerCase()},Oi=(e,n)=>l._.isUndefined(n)?!1:l._.includes(e,Mi(n)),Rt=({alt:e,fileType:n,width:i="100%",opacity:o=0,src:r,height:a="auto",videoViewStatus:c})=>{const[s,d]=x.useState({start:!1,half:!1,end:!1}),p=x.useCallback(g=>{if(!c)return;const u=g.target,f=u.currentTime/u.duration*100;f>5&&f<50?(s.start||c("start"),d({start:!0,half:!1,end:!1})):f>=50&&f<99?(s.half||c("half"),d({start:!0,half:!0,end:!1})):f>=99?(s.end||c("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[c,s]);return n==="video"||Oi(["webm"],r)?t.jsx(ut,{$opacity:o,children:t.jsx(Z,{href:r,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:p,style:{height:a,width:i},children:[t.jsx("source",{src:r,type:"video/webm"}),r]})})}):t.jsx(ut,{$opacity:o,children:t.jsx("img",{alt:e,src:r,style:{height:a,width:i}})})},Wi=({alt:e,authorEmail:n,date:i,description:o,src:r,children:a,isEditing:c,onClick:s,title:d,hideDescription:p=!1,headerType:g="image",showMaximize:u=!0,videoViewStatus:f})=>{const h=l.Je(),[b,$]=x.useState(!1),m=x.useCallback(()=>{$(!0)},[]),j=x.useCallback(()=>{$(!1)},[]);return t.jsxs(y,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:m,onLeave:j,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(y,{cursor:c?"unset":"pointer",display:"inline-flex",justify:"center",onClick:s,position:"relative",width:"100%",children:a===void 0?t.jsxs(x.Fragment,{children:[t.jsx(Rt,{alt:e,fileType:g,height:"147px",opacity:b?.3:0,src:r,videoViewStatus:f,width:"100%"}),u?t.jsx(y,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(M,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):a}),p?null:t.jsx(Ne,{authorEmail:n,date:i,description:o,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:d})]})},Hi=l.st.div`
|
|
655
655
|
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:o="auto"})=>`
|
|
656
656
|
display: flex;
|
|
657
657
|
background-color: ${e.palette.white};
|
|
@@ -948,7 +948,7 @@
|
|
|
948
948
|
fill: ${e.palette.white};
|
|
949
949
|
}
|
|
950
950
|
`}
|
|
951
|
-
`,oe=x.forwardRef(function({checked:n,disabled:i=!1,label:o,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,tooltip:p,value:g,...u},f){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(Ui,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":r,checked:n,"data-testid":o??g,disabled:i,id:r,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,ref:f,type:"checkbox",value:g,...u}),t.jsx(E,{disabled:i,icon:"check",iconSize:"sm"}),o??g]}),p===void 0?void 0:t.jsx(U,{icon:"circle-info",id:p,place:"right",tip:p})]})}),ne=(e,n,i=!1,o)=>{x.useEffect(()=>{var a;const r=c=>{e&&!e.contains(c.target)&&!(o!=null&&o.contains(c.target))&&n()};return i?(document.addEventListener("mousedown",r,!0),()=>{document.removeEventListener("mousedown",r,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("mousedown",r,!0),()=>{var c;(c=document.getElementById("root"))==null||c.removeEventListener("mousedown",r,!0)})},[i,e,o,n])},
|
|
951
|
+
`,oe=x.forwardRef(function({checked:n,disabled:i=!1,label:o,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,tooltip:p,value:g,...u},f){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs(Ui,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":r,checked:n,"data-testid":o??g,disabled:i,id:r,name:r,onChange:a,onClick:c,onFocus:s,onKeyDown:d,ref:f,type:"checkbox",value:g,...u}),t.jsx(E,{disabled:i,icon:"check",iconSize:"sm"}),o??g]}),p===void 0?void 0:t.jsx(U,{icon:"circle-info",id:p,place:"right",tip:p})]})}),ne=(e,n,i=!1,o)=>{x.useEffect(()=>{var a;const r=c=>{e&&!e.contains(c.target)&&!(o!=null&&o.contains(c.target))&&n()};return i?(document.addEventListener("mousedown",r,!0),()=>{document.removeEventListener("mousedown",r,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("mousedown",r,!0),()=>{var c;(c=document.getElementById("root"))==null||c.removeEventListener("mousedown",r,!0)})},[i,e,o,n])},Nt=({item:e,multiSelection:n,name:i,register:o,setInputValue:r,setValue:a,state:c,watch:s})=>{var R,S,D;const d=l.Je(),p=x.useRef(null),g=e.props.hrefLang,u=c.disabledKeys,f=Array.from(c.collection.getKeys()).filter(T=>!Array.from(u).includes(T)&&T!=="All"),{optionProps:h,isSelected:b,isFocused:$,isDisabled:m}=l.$293f70390ea03370$export$497855f14858aa34({key:e.key},c,p),j=[b?"selected":"",$?"focused":"",m?"disabled":""].join(" "),w=x.useCallback(T=>{r(""),a==null||a(`${i}Options`,""),T.currentTarget.checked&&(r(T.currentTarget.value),a==null||a(`${i}Options`,f))},[f,i,r,a]),v=x.useCallback(()=>{const T=s==null?void 0:s(`${i}Options`),L=typeof T=="string"?[T]:T;l.isEqual(f,L)&&!Array.from(u).includes("All")?(a==null||a("checkAll","All vulnerability types"),r("All vulnerability types")):(a==null||a("checkAll",""),r((L==null?void 0:L.length)<=2?L.join(", "):`${L.slice(0,2).join(", ")+`, +${L.length-2} more`}`))},[u,f,i,r,a,s]),k=e.key==="All"?t.jsx(oe,{...o==null?void 0:o("checkAll",{onChange:w}),label:(R=e.rendered)==null?void 0:R.toString(),name:"checkAll",value:(S=e.rendered)==null?void 0:S.toString()}):t.jsx(oe,{...o==null?void 0:o(`${i}Options`,{onChange:v}),label:(D=e.rendered)==null?void 0:D.toString(),name:`${i}Options`,value:e.key.toString()}),C=n&&!m?k:t.jsx(z,{color:d.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),I=x.useCallback(T=>{var L;T.preventDefault(),r(((L=e.rendered)==null?void 0:L.toString())??""),c.setSelectedKey(e.key),setTimeout(()=>{c.setOpen(!1)},50),Et(g)},[g,e.key,e.rendered,c,r]);return ne(document.getElementsByClassName("dropdown")[0],()=>{n&&c.close()},!0,document.getElementById("combobox")),t.jsxs(Ji,{...!n&&!g?h:{},$multiSelection:n,className:j,ref:p,children:[g?t.jsx(Z,{href:g,onClick:I,children:C}):C,b&&!m&&!n?t.jsx(E,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(G,{tagLabel:e.textValue,variant:"inactive"})]})},We=({field:e,disabled:n=!1,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,label:s,loadingItems:d,name:p,multiSelection:g=!1,items:u,onBlur:f,onChange:h,placeholder:b,register:$,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>{var dt;const I=l.Je(),R=n?void 0:o,S=(e==null?void 0:e.value)??v,[D,T]=x.useState(((dt=u.find(A=>A.value===S))==null?void 0:dt.name)??""),[L,Y]=x.useState(S),[X,ie]=x.useState(u),[O,H]=x.useState(!1),{contains:W}=l.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),le=x.useRef(null),Pe=x.useRef(null),Me=x.useRef(null),st=x.useRef(null),lt=x.useRef(null),_n=x.useMemo(()=>u.toSorted((A,B)=>{const _=Array.from(i??[]),ce=_.includes(A.value),pt=_.includes(B.value);return ce&&!pt?1:!ce&&pt?-1:0}).map(A=>W(A.name,D)||O?t.jsx(l.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":A.value,hrefLang:A.href,textValue:A.tag,children:A.name},A.value):null),[W,i,D,u,O]),Jn=x.useCallback(A=>{const B=A.split(/,|\s/u).slice(-1)[0].trim();T(g?B:A),A===""||A.endsWith(",")?H(!0):(H(!1),Y(_=>{const ce=A===""?"":_;return e&&e.onChange(ce),h&&h(A),ce}),ie(u.filter(_=>W(_.name,g?B:A))))},[W,u,e,g,h]),Un=x.useCallback(A=>{var B;T(((B=u.find(_=>_.value===A))==null?void 0:B.name)??""),Y(A?String(A):""),e&&e.onChange(A),h&&h(A?String(A):""),ie(u)},[u,e,h]),ct=x.useCallback(A=>{A.key==="Enter"&&A.preventDefault(),H(!1)},[]),Vn=x.useCallback(()=>{f&&f(),e&&e.onBlur()},[e,f]),Gn=x.useCallback(()=>{H(!0)},[]),Q=l.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:g,allowsEmptyCollection:!0,disabledKeys:i,inputValue:D,items:X,menuTrigger:"focus",shouldCloseOnBlur:!g,selectedKey:L,onBlur:Vn,onInputChange:Jn,onKeyDown:ct,onKeyUp:Gn,onOpenChange(A,B){H(A&&(B==="manual"||B==="focus")),A&&setTimeout(()=>{var _;return(_=le.current)==null?void 0:_.focus()},50)},onSelectionChange:g?void 0:Un,children:_n}),{buttonProps:Yn,inputProps:Kn,listBoxProps:Zn}=l.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:D,buttonRef:Pe,id:p,inputRef:le,label:s??p,listBoxRef:Me,name:p,placeholder:b,popoverRef:lt},Q),{listBoxProps:qn}=l.$c132121280ec012d$export$50eacbbf140a3141(Zn,Q,Me),{buttonProps:Xn}=l.$701a24aa0da5b062$export$ea18c227d4417cc3(Yn,Pe);return x.useEffect(()=>{var A;if((d===!1||!S)&&!g){const B=((A=u.find(_=>_.value===S))==null?void 0:A.name)??"";T(B),Y(B)}},[S,u,d,g]),t.jsxs(J,{error:R,helpLink:r,helpLinkText:a,helpText:c,htmlFor:p,id:"combobox",label:s,required:m,tooltip:w,weight:C,children:[t.jsxs(te,{className:`${n?"disabled":""} ${R?"error":""}`,ref:st,children:[t.jsx("input",{...Kn,"aria-invalid":R?"true":"false","aria-label":p,disabled:n,onKeyDown:ct,ref:le}),R?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:I.palette.error[500],iconSize:"xs"}):void 0,t.jsx(M,{...Xn,className:"action",disabled:n,icon:Q.isOpen&&!n?"chevron-up":"chevron-down",iconColor:I.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:Pe,type:"button",variant:"ghost"})]}),Q.isOpen&&Q.collection.size>0&&!n?t.jsx(Ce,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:lt,state:Q,triggerRef:st,children:t.jsx(_i,{...qn,$multiSelection:g&&!Array.from(i??[]).includes("All"),ref:Me,children:[...Q.collection].map(A=>t.jsx(Nt,{item:A,multiSelection:g,name:p,register:$,setInputValue:T,setValue:j,state:Q,watch:k},A.key))})}):null]})},Qe=({control:e,disabled:n=!1,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,label:s,loadingItems:d,name:p,multiSelection:g,items:u,onBlur:f,onChange:h,placeholder:b,register:$,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>e?t.jsx(l.Controller,{control:e,name:p,render:({field:I,fieldState:R})=>{var S;return t.jsx(We,{disabled:n,disabledKeys:i,error:(S=R.error)==null?void 0:S.message,field:I,helpLink:r,helpLinkText:a,helpText:c,items:u,label:s,loadingItems:d,multiSelection:g,name:p,onBlur:f,onChange:h,placeholder:b,register:$,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})},rules:{required:m}}):t.jsx(We,{disabled:n,disabledKeys:i,error:o,helpLink:r,helpLinkText:a,helpText:c,items:u,label:s,loadingItems:d,multiSelection:g,name:p,onBlur:f,onChange:h,placeholder:b,required:m,tooltip:w,value:v,weight:C}),Vi=l.st.div`
|
|
952
952
|
${({theme:e})=>`
|
|
953
953
|
align-items: center;
|
|
954
954
|
color: ${e.palette.gray[800]};
|
|
@@ -985,7 +985,7 @@
|
|
|
985
985
|
display: flex;
|
|
986
986
|
padding: ${({theme:e})=>e.spacing[.25]} 0;
|
|
987
987
|
width: 100%;
|
|
988
|
-
`,
|
|
988
|
+
`,Ft=l.nt`
|
|
989
989
|
${({theme:e})=>`
|
|
990
990
|
align-items: center;
|
|
991
991
|
color: ${e.palette.gray[800]};
|
|
@@ -1002,10 +1002,10 @@
|
|
|
1002
1002
|
width: ${e.spacing[2.5]};
|
|
1003
1003
|
`}
|
|
1004
1004
|
`,Yi=l.st.th`
|
|
1005
|
-
${
|
|
1005
|
+
${Ft}
|
|
1006
1006
|
`,Ki=l.st.td`
|
|
1007
1007
|
${({theme:e})=>`
|
|
1008
|
-
${
|
|
1008
|
+
${Ft}
|
|
1009
1009
|
height: ${e.spacing[2.5]};
|
|
1010
1010
|
width: ${e.spacing[2.5]};
|
|
1011
1011
|
|
|
@@ -1082,7 +1082,7 @@
|
|
|
1082
1082
|
`}
|
|
1083
1083
|
`,Dt=({state:e,date:n})=>{const i=x.useRef(null),o=l.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,l.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:a,isSelected:c,isDisabled:s,formattedDate:d}=l.$36a0ac60f04457c5$export$136073280381448e({date:n},e,i),p="highlightedRange"in e&&!l.lodashExports.isNull(e.highlightedRange)?l.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):c,g="highlightedRange"in e&&!l.lodashExports.isNull(e.highlightedRange)?l.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):c,u=c&&!s&&!(p||g)?"range":"";return t.jsx(Ki,{id:u,...r,children:t.jsxs("div",{...a,className:`cell ${p||g?"selected":""}
|
|
1084
1084
|
${s?"disabled":""} ${o?"today":""}
|
|
1085
|
-
${!e.isFocused&&!o?"focused":""} ${u}`,ref:i,children:[d,o?t.jsx(Zi,{children:t.jsx(E,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},
|
|
1085
|
+
${!e.isFocused&&!o?"focused":""} ${u}`,ref:i,children:[d,o?t.jsx(Zi,{children:t.jsx(E,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},Fe=({state:e,...n})=>{const{locale:i}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:o}=l.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),r=l.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,i);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(xt,{children:o.map((a,c)=>{const s=`key_${c}`;return t.jsx(Yi,{children:a},s)})})}),t.jsx("tbody",{children:[...new Array(r).keys()].map(a=>t.jsx(xt,{children:e.getDatesInWeek(a).map((c,s)=>{const d=`key_${s}`;return c?t.jsx(Dt,{date:c,state:e},d):t.jsx("td",{},d)})},a))})]})},qi=l.st(Ke)`
|
|
1086
1086
|
align-items: center;
|
|
1087
1087
|
background-color: inherit;
|
|
1088
1088
|
border-color: inherit;
|
|
@@ -1180,7 +1180,7 @@
|
|
|
1180
1180
|
font-weight: ${e.typography.weight.bold};
|
|
1181
1181
|
}
|
|
1182
1182
|
`}
|
|
1183
|
-
`,Te=({disabled:e=!1,icon:n,props:i})=>{const o=x.useRef(null),{buttonProps:r}=l.$701a24aa0da5b062$export$ea18c227d4417cc3(i,o);return t.jsx(Qi,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:o,type:"button",children:t.jsx(E,{icon:n,iconColor:
|
|
1183
|
+
`,Te=({disabled:e=!1,icon:n,props:i})=>{const o=x.useRef(null),{buttonProps:r}=l.$701a24aa0da5b062$export$ea18c227d4417cc3(i,o);return t.jsx(Qi,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:o,type:"button",children:t.jsx(E,{icon:n,iconColor:N.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},De=({state:e,prevButtonProps:n,nextButtonProps:i,title:o})=>{const r=e.focusedDate,a=x.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),c=x.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(Te,{icon:"chevron-left",props:n}),t.jsxs(Vi,{children:[o,t.jsxs(Gi,{children:[t.jsx(ft,{"aria-label":"top",onClick:a,children:t.jsx(E,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(ft,{"aria-label":"bottom",onClick:c,children:t.jsx(E,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(Te,{icon:"chevron-right",props:i})]})},Lt=({onClose:e,props:n})=>{const{locale:i}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=l.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:a,title:c}=l.$9942cad8a072a530$export$3ee915f8151bd4f1(n,o);return t.jsxs("div",{className:"calendar",children:[t.jsx(De,{nextButtonProps:a,prevButtonProps:r,state:o,title:c}),t.jsx(Fe,{state:o}),t.jsx(et,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},At=({segment:e,state:n})=>{const i=l.Je(),o=x.useRef(null),a={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:c}=l.$32489daedd52963e$export$1315d136e6f7581(a,n,o),s=i.palette.gray[a.isEditable?800:500];return t.jsx("div",{...a.type!=="literal"&&{...c,className:"segment-cell"},ref:o,style:a.type==="literal"?void 0:{color:a.isPlaceholder?i.palette.gray[400]:s},children:a.isPlaceholder?a.placeholder:a.text})},Pt=({disabled:e,error:n=!1,props:i})=>{const o=l.Je(),r=x.useRef(null),a=l.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:c}=l.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,a,r),s=x.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),g=d.currentTarget;Object.values(p).some(u=>u.contains(g))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(eo,{...c,onClick:s,children:[t.jsx("div",{className:"flex flex-row",style:{color:o.palette.gray[l.lodashExports.isNil(a.value)?400:800]},tabIndex:-1,children:a.segments.map((d,p)=>{const g=`key_${p}`;return t.jsx(At,{segment:{...d,isEditable:!e},state:a},g)})}),n?t.jsx(E,{icon:"exclamation-circle",iconColor:o.palette.error[500],iconSize:"xs"}):void 0]})},Mt=e=>{const n=x.useRef(null),i=l.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:o}=i,r=!l.lodashExports.isNil(o)&&o.hour<12?"AM":"PM",[a,c]=x.useState(l.lodashExports.isNil(o)?"AM":r),{fieldProps:s}=l.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=x.useCallback(p=>{const g=p.currentTarget.name;g!==a&&(l.lodashExports.isNil(o)||(g==="AM"?i.setSegment("dayPeriod",0):g==="PM"&&i.setSegment("dayPeriod",12))),c(g)},[a,i,o]);return t.jsxs(to,{children:[t.jsx(ht,{...s,ref:n,children:i.segments.slice(0,-2).map((p,g)=>{const u=`key_${g}`;return t.jsx(At,{segment:p,state:i},u)})}),t.jsxs(ht,{children:[t.jsx(bt,{id:a==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(bt,{id:a==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Ee=e=>e&&e!=="-"?l.dayjs(e).format("YYYY-MM-DD"):"-",no=e=>e&&e!=="-"?l.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",yt=(e,n)=>l.dayjs(String(e).replace(/-/gu,"/")).hour(n.hour).minute(n.minute).second(n.second).format("YYYY/MM/DD hh:mm A"),xe=({error:e,buttonProps:n,datePickerRef:i,disabled:o=!1,granularity:r="day",fieldProps:a,groupProps:c,name:s,register:d,required:p,setValue:g,value:u})=>{const f=x.useCallback(h=>{if(!h)return;const b=r==="day"?Ee(String(h)):no(String(h));a.onChange&&a.onChange(h??null),g&&g(s,b,{shouldDirty:!0})},[a,r,s,g]);return t.jsxs(te,{...c,className:`${o?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(Pt,{disabled:o,error:e!=null,props:{...a,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(Te,{disabled:o,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(s,{required:p}),"aria-label":s,className:"date-input",disabled:o,id:s,name:s,type:"text",value:u??""})]})},Le=({children:e,...n})=>{const i=x.useRef(null),{dialogProps:o}=l.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(Xi,{...o,ref:i,children:e})},Ot=({disabled:e=!1,error:n,helpLink:i,helpLinkText:o,helpText:r,required:a,label:c,name:s,register:d,setValue:p,tooltip:g,watch:u,...f})=>{const h=x.useRef(null),b=u==null?void 0:u(s),$=x.useCallback(R=>{p&&R&&p(s,Ee(String(R)),{shouldDirty:!0})},[s,p]),m=l.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,onChange(R){$(R)},...!l._.isNil(b)&&!l._.isEmpty(b)&&l.dayjs(b).isValid()?{defaultValue:l.$fae977aafc393c5c$export$6b862160d295c8e(b.replace(/\//gu,"-"))}:{}}),{close:j}=m,{groupProps:w,fieldProps:v,buttonProps:k,dialogProps:C,calendarProps:I}=l.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":c??s,name:s},m,h);return t.jsxs(J,{error:n,helpLink:i,helpLinkText:o,helpText:r,htmlFor:s,label:c,required:a,tooltip:g,children:[t.jsx(xe,{buttonProps:k,datePickerRef:h,disabled:e,error:n,fieldProps:v,groupProps:w,name:s,register:d,required:a,setValue:p,value:b}),m.isOpen&&!e?t.jsx(Ce,{offset:8,placement:"bottom start",state:m,triggerRef:h,children:t.jsx(Le,{...C,children:t.jsx(Lt,{onClose:j,props:I})})}):null]})},Wt=({onClose:e,props:n})=>{const{locale:i}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=x.useRef(null),r=l.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:a,nextButtonProps:c,title:s}=l.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,o);return t.jsxs("div",{className:"calendar-range",ref:o,children:[t.jsx(De,{nextButtonProps:c,prevButtonProps:a,state:r,title:s}),t.jsx(Fe,{state:r}),t.jsx(et,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},io=l.st.div`
|
|
1184
1184
|
${({theme:e,$disabled:n,$show:i})=>`
|
|
1185
1185
|
border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
|
|
1186
1186
|
display: flex;
|
|
@@ -1206,7 +1206,7 @@
|
|
|
1206
1206
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1207
1207
|
justify-content: flex-end;
|
|
1208
1208
|
flex: 1 0 0;
|
|
1209
|
-
`,Bt=({handleTimeChange:e,onClose:n,props:i,timeState:o})=>{const r=l.Je(),{locale:a}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),c=l.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:a}),{prevButtonProps:s,nextButtonProps:d,title:p}=l.$9942cad8a072a530$export$3ee915f8151bd4f1(i,c);return t.jsxs("div",{className:"calendar",children:[t.jsx(De,{nextButtonProps:d,prevButtonProps:s,state:c,title:p}),t.jsx(
|
|
1209
|
+
`,Bt=({handleTimeChange:e,onClose:n,props:i,timeState:o})=>{const r=l.Je(),{locale:a}=l.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),c=l.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:l.$64244302c3013299$export$dd0bbc9b26defe37,locale:a}),{prevButtonProps:s,nextButtonProps:d,title:p}=l.$9942cad8a072a530$export$3ee915f8151bd4f1(i,c);return t.jsxs("div",{className:"calendar",children:[t.jsx(De,{nextButtonProps:d,prevButtonProps:s,state:c,title:p}),t.jsx(Fe,{state:c}),t.jsxs(oo,{children:[t.jsx(z,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(ro,{children:t.jsx(Mt,{hourCycle:12,label:"time-field",onChange:e,value:o.timeValue})})]}),t.jsx(et,{children:t.jsx(P,{onClick:n,variant:"ghost",children:"Cancel"})})]})},ao=e=>{const{disabled:n=!1,error:i,required:o,label:r,name:a,tooltip:c,register:s,setValue:d,watch:p}=e,g=p==null?void 0:p(a),u=x.useRef(null),f=l.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:o,shouldCloseOnSelect:!1,value:l._.isNil(g)||l._.isEmpty(g)||g==="-"||l.dayjs(g,"YYYY/MM/DD hh:mm A").isValid()===!1?null:l.$fae977aafc393c5c$export$588937bcd60ade55(l.dayjs(g,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=f,{groupProps:b,fieldProps:$,buttonProps:m,dialogProps:j,calendarProps:w}=l.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,u),v=x.useCallback(C=>{if(w.onChange&&w.onChange(C),f.timeValue){const I=yt(C,f.timeValue);d==null||d(a,I,{shouldDirty:!0})}else f.setDateValue(C)},[w,a,d,f]),k=x.useCallback(C=>{if(C){f.setTimeValue(C);const I=f.dateValue;if(I){const R=yt(I,C);d==null||d(a,R,{shouldDirty:!0})}}},[f,d,a]);return t.jsxs(J,{error:i,htmlFor:a,label:r,required:o,tooltip:c,children:[t.jsx(xe,{buttonProps:m,datePickerRef:u,disabled:n,error:i,fieldProps:$,granularity:"minute",groupProps:b,name:a,register:s,setValue:d,value:g}),f.isOpen&&!n?t.jsx(Ce,{offset:8,placement:"bottom start",state:f,triggerRef:u,children:t.jsx(Le,{...j,children:t.jsx(Bt,{handleTimeChange:k,onClose:h,props:{...w,onChange:v},timeState:f})})}):null]})},so=({children:e,currentValue:n,externalLink:i,isEditing:o,label:r,name:a,tooltip:c})=>{if(o)return t.jsx("div",{children:e});const s=l.lodashExports.isNil(n)?"":n,d=String(i??s);return t.jsxs(y,{children:[t.jsx(Xe,{htmlFor:a,label:r,tooltip:c,weight:"bold"}),d.startsWith("https://")?t.jsx(Z,{href:d,children:s}):t.jsx(z,{size:"md",children:s})]})},Ae=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:o,helpText:r,error:a,id:c,indexArray:s=0,isValid:d,isTouched:p,label:g,linkPosition:u,name:f,maskValue:h=!1,onPaste:b,placeholder:$,removeItemArray:m,register:j,suggestions:w,tooltip:v,type:k="text",weight:C,...I})=>{const{required:R,onBlur:S,onChange:D}=I,T=l.Je(),L=e?void 0:a,[Y,X]=x.useState(""),ie=x.useCallback(W=>{X(W.target.value),D==null||D(W)},[D]),O=d&&p&&!e&&Y.trim()!=="",H=x.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]);return t.jsxs(J,{error:L,helpLink:i,helpLinkText:o,helpText:r,htmlFor:f,label:g,linkPosition:u,required:R,tooltip:v,weight:C,children:[t.jsxs(te,{className:`
|
|
1210
1210
|
${e?"disabled":""} ${L?"error":""} ${O?"success":""}
|
|
1211
1211
|
`,children:[n?t.jsx(E,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":L?"true":"false","aria-label":f,"aria-required":R,autoComplete:"off",className:h?"sr-block":"","data-testid":`${f}-input`,disabled:e,id:f,list:w?`list_${f}`:void 0,onKeyDown:H,onPaste:b,placeholder:$,type:k,...j?j(f,{required:R,onBlur:S,onChange:ie}):{...I,onChange:ie}}),L?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"xs"}):void 0,O?t.jsx(E,{icon:"check-circle",iconClass:"success-icon",iconColor:T.palette.success[500],iconSize:"xs"}):void 0,c==="array"&&s>0?t.jsx(M,{color:T.palette.gray[400],icon:"trash",iconSize:"xxs",iconType:"fa-light",onClick:m?m(s):void 0,variant:"ghost"}):void 0]}),w?t.jsx("datalist",{id:`list_${f}`,children:w.map(W=>t.jsx("option",{value:W},W))}):void 0]})},lo=l.st.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,co=l.st.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
1212
1212
|
gap: 12px;
|
|
@@ -1377,13 +1377,13 @@
|
|
|
1377
1377
|
white-space: nowrap;
|
|
1378
1378
|
`,Io=({disabled:e,error:n,label:i,name:o,placeholder:r,required:a,register:c,tooltip:s,value:d,watch:p,weight:g})=>{const u=l.Je(),f=x.useRef(null),h=e?void 0:n,b=(p==null?void 0:p(o))??d,[$,m]=x.useState(!1),[j,w]=x.useState(""),{refs:v,floatingStyles:k}=l.useFloating$1({placement:"bottom-start",whileElementsMounted:l.autoUpdate}),{inputRef:C,inputValue:I,handlePhoneValueChange:R,country:S,setCountry:D}=l.ee({countries:l.R,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),T=x.useCallback(O=>{O.key==="Enter"&&O.preventDefault()},[]),L=x.useCallback(O=>{O.preventDefault(),m(H=>!H),$||w("")},[$]),Y=x.useCallback(O=>()=>{D(O),m(!1),w("")},[D,m]),X=x.useCallback(O=>{O.key.length===1?w(H=>H+O.key):O.key==="Backspace"&&w(H=>H.slice(0,-1))},[]),ie=l.R.filter(O=>{const{name:H}=l.M(O);return H.toLowerCase().includes(j.toLowerCase())});return ne(v.floating.current,()=>{m(!1),w("")},!0),t.jsx(J,{error:h,htmlFor:o,label:i,required:a,tooltip:s,weight:g,children:t.jsxs(vo,{className:`${e?"disabled":""} ${h?"error":""}`,ref:f,children:[t.jsxs(ko,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:X,ref:v.setReference,children:[t.jsx(l.q,{iso2:S.iso2,size:"16px"}),t.jsx(E,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(te,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":o,"aria-required":a,autoComplete:"off","data-testid":`${o}-input`,disabled:e,id:o,name:o,onKeyDown:T,placeholder:r,ref:C,type:"tel",value:I,...c==null?void 0:c(o,{required:a,onChange:R})}),h?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),$&&se.createPortal(t.jsx(Co,{ref:v.setFloating,style:k,children:ie.map(O=>{const{dialCode:H,iso2:W,name:le}=l.M(O);return t.jsxs(So,{onClick:Y(W),value:W,children:[t.jsx(l.q,{iso2:W,size:"16px"}),t.jsx(zo,{children:le}),t.jsx(z,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+H})]},W)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},To=({disabled:e=!1,error:n,helpLink:i,helpText:o,isTouched:r,isValid:a,label:c,name:s="input-text",id:d,maskValue:p=!1,maxLength:g,onBlur:u,placeholder:f,register:h,required:b,rows:$,tooltip:m,watch:j,weight:w,value:v})=>{const k=l.Je(),C=(j==null?void 0:j(s))??v,I=a&&r&&!e,R=e?void 0:n;return t.jsx(J,{error:R,helpLink:i,helpText:o,htmlFor:s,label:c,maxLength:g,required:b,tooltip:m,value:C?String(C):void 0,weight:w,children:t.jsxs(te,{className:`
|
|
1379
1379
|
${e?"disabled":""} ${R?"error":""} ${I?"success":""}
|
|
1380
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":R?"true":"false","aria-label":s,"aria-required":b,className:p?"sr-block":"","data-testid":`${s}-text-area`,disabled:e,id:d??s,maxLength:g,placeholder:f,rows:$,value:C,...h==null?void 0:h(s,{required:b,onBlur:u})}),R?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"xs"}):void 0,I?t.jsx(E,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"xs"}):void 0]})})},Eo=({control:e,description:n,disabled:i,id:o,items:r,align:a,inputType:c="text",inputNumberProps:s,minHeight:d,minWidth:p,name:g,placeholder:u,textAlign:f,tooltip:h,title:b,value:$,isTouched:m,isValid:j,error:w,onChange:v,register:k,setValue:C,watch:I})=>{const R=x.useMemo(()=>{if(c==="text")return t.jsx(Ae,{disabled:i,error:w,isTouched:m,isValid:j,name:g,placeholder:u,register:k});if(c==="date")return t.jsx(Ot,{disabled:i,error:w,name:g,register:k,setValue:C,watch:I});if(c==="select"&&r)return t.jsx(Qe,{control:e,disabled:i,items:r,name:g,placeholder:u,value:$});const{decimalPlaces:S,max:D,min:T}=s??{};return t.jsx(Jt,{decimalPlaces:S,disabled:i,error:w,max:D,min:T,name:g,onChange:v,placeholder:u,register:k,setValue:C,value:$,watch:I})},[e,i,w,s,c,m,j,r,g,v,u,k,C,$,I]);return t.jsxs(Hi,{$align:a,$minHeight:d,$minWidth:p,children:[t.jsx(
|
|
1380
|
+
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":R?"true":"false","aria-label":s,"aria-required":b,className:p?"sr-block":"","data-testid":`${s}-text-area`,disabled:e,id:d??s,maxLength:g,placeholder:f,rows:$,value:C,...h==null?void 0:h(s,{required:b,onBlur:u})}),R?t.jsx(E,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"xs"}):void 0,I?t.jsx(E,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"xs"}):void 0]})})},Eo=({control:e,description:n,disabled:i,id:o,items:r,align:a,inputType:c="text",inputNumberProps:s,minHeight:d,minWidth:p,name:g,placeholder:u,textAlign:f,tooltip:h,title:b,value:$,isTouched:m,isValid:j,error:w,onChange:v,register:k,setValue:C,watch:I})=>{const R=x.useMemo(()=>{if(c==="text")return t.jsx(Ae,{disabled:i,error:w,isTouched:m,isValid:j,name:g,placeholder:u,register:k});if(c==="date")return t.jsx(Ot,{disabled:i,error:w,name:g,register:k,setValue:C,watch:I});if(c==="select"&&r)return t.jsx(Qe,{control:e,disabled:i,items:r,name:g,placeholder:u,value:$});const{decimalPlaces:S,max:D,min:T}=s??{};return t.jsx(Jt,{decimalPlaces:S,disabled:i,error:w,max:D,min:T,name:g,onChange:v,placeholder:u,register:k,setValue:C,value:$,watch:I})},[e,i,w,s,c,m,j,r,g,v,u,k,C,$,I]);return t.jsxs(Hi,{$align:a,$minHeight:d,$minWidth:p,children:[t.jsx(Ne,{description:n,id:o,textAlign:f,title:b,tooltip:h}),R]})},Ro=l.st.div`
|
|
1381
1381
|
display: flex;
|
|
1382
1382
|
align-self: flex-start;
|
|
1383
1383
|
margin-left: auto;
|
|
1384
1384
|
width: 40px;
|
|
1385
1385
|
height: auto;
|
|
1386
|
-
`,Vt=(e,n)=>{const[o,r]=x.useState(0),[a,c]=x.useState(0);return x.useEffect(()=>{a===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[a,n]),x.useEffect(()=>{const s=setInterval(()=>{c(d=>d===100?0:d+1)},e);return()=>{clearInterval(s)}},[e]),{cycle:o,progress:a,setCycle:r,setProgress:c}},Gt=({publicId:e,format:n="webp"})=>{const i=x.useMemo(()=>new l.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return x.useMemo(()=>i.image(e).format(n),[i,e,n])},Se=e=>{const[n,i]=x.useState(!1),o=x.useCallback(()=>{i(!0)},[]),r=x.useCallback(()=>{i(!1)},[]),a=x.useCallback(()=>{i(c=>!c)},[]);return{close:r,isOpen:n,name:e,open:o,setIsOpen:i,toggle:a}},Yt=({name:e,items:n,columnOrder:i,setColumnOrder:o})=>{const r=x.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...u})=>({...u,visible:!0,locked:g})),...n.filter(({locked:g})=>!g)],[n]),[a,c]=x.useState(r),s=x.useCallback(g=>{const u=g.filter(({locked:$})=>!$),h=[...g.filter(({locked:$})=>$),...u],b=h.map(({name:$})=>$);c($=>[...h,...$.filter(({name:m})=>!b.includes(m))]),o&&o(h.map(({id:$})=>$))},[o]),d=x.useCallback(()=>{const g=a.map(u=>{var h;const f=(i==null?void 0:i.includes(u.id))??!1;return(h=u.toggleVisibility)==null||h.call(u,f),{...u,visible:f}}).toSorted((u,f)=>{const h=(i==null?void 0:i.indexOf(u.id))??0,b=(i==null?void 0:i.indexOf(f.id))??0;return Number(f.visible)!==Number(u.visible)?Number(f.visible)-Number(u.visible):h-b});c(g),o==null||o(i)},[a,i,o]),p=x.useMemo(()=>l.some(a,g=>((i==null?void 0:i.includes(g.id))??!1)!==g.visible),[a,i]);return{setColumns:s,resetToDefault:d,columns:a,...Se(e),hasChanged:p}},tt=(e,n)=>x.useMemo(()=>l._.debounce(e,n),[e,n]),
|
|
1386
|
+
`,Vt=(e,n)=>{const[o,r]=x.useState(0),[a,c]=x.useState(0);return x.useEffect(()=>{a===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[a,n]),x.useEffect(()=>{const s=setInterval(()=>{c(d=>d===100?0:d+1)},e);return()=>{clearInterval(s)}},[e]),{cycle:o,progress:a,setCycle:r,setProgress:c}},Gt=({publicId:e,format:n="webp"})=>{const i=x.useMemo(()=>new l.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return x.useMemo(()=>i.image(e).format(n),[i,e,n])},Se=e=>{const[n,i]=x.useState(!1),o=x.useCallback(()=>{i(!0)},[]),r=x.useCallback(()=>{i(!1)},[]),a=x.useCallback(()=>{i(c=>!c)},[]);return{close:r,isOpen:n,name:e,open:o,setIsOpen:i,toggle:a}},Yt=({name:e,items:n,columnOrder:i,setColumnOrder:o})=>{const r=x.useMemo(()=>[...n.filter(({locked:g})=>g).map(({locked:g,...u})=>({...u,visible:!0,locked:g})),...n.filter(({locked:g})=>!g)],[n]),[a,c]=x.useState(r),s=x.useCallback(g=>{const u=g.filter(({locked:$})=>!$),h=[...g.filter(({locked:$})=>$),...u],b=h.map(({name:$})=>$);c($=>[...h,...$.filter(({name:m})=>!b.includes(m))]),o&&o(h.map(({id:$})=>$))},[o]),d=x.useCallback(()=>{const g=a.map(u=>{var h;const f=(i==null?void 0:i.includes(u.id))??!1;return(h=u.toggleVisibility)==null||h.call(u,f),{...u,visible:f}}).toSorted((u,f)=>{const h=(i==null?void 0:i.indexOf(u.id))??0,b=(i==null?void 0:i.indexOf(f.id))??0;return Number(f.visible)!==Number(u.visible)?Number(f.visible)-Number(u.visible):h-b});c(g),o==null||o(i)},[a,i,o]),p=x.useMemo(()=>l.some(a,g=>((i==null?void 0:i.includes(g.id))??!1)!==g.visible),[a,i]);return{setColumns:s,resetToDefault:d,columns:a,...Se(e),hasChanged:p}},tt=(e,n)=>x.useMemo(()=>l._.debounce(e,n),[e,n]),No=e=>{const[n,i]=x.useState(),o=tt(r=>{i(r)},(e==null?void 0:e.debounceWait)??300);return[n,o]},Fo=({alt:e="img",height:n="",width:i="",plugins:o=[l.lazyload(),l.placeholder()],publicId:r})=>{const a=Gt({publicId:r});return t.jsx(l.AdvancedImage,{alt:e,cldImg:a,height:n,plugins:o,width:i})},ee=x.memo(Fo),Do=l.st.label`
|
|
1387
1387
|
${({theme:e})=>`
|
|
1388
1388
|
align-items: center;
|
|
1389
1389
|
display: flex;
|
|
@@ -1512,7 +1512,7 @@
|
|
|
1512
1512
|
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1513
1513
|
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1514
1514
|
}
|
|
1515
|
-
`,Kt=x.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:o,name:r,leftDescription:a,leftDescriptionMinWidth:c,rightDescription:s,onChange:d,...p},g){const u=n===!0?"on":"off",f=typeof a=="object"&&a.on&&a.off?a[u]:a,h=x.useCallback(b=>{b.stopPropagation()},[]);return t.jsxs(y,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:o,children:[t.jsx(y,{minWidth:c,children:f}),t.jsxs(Mo,{onClick:h,role:"switch",children:[t.jsx("input",{...p,"aria-disabled":i,"aria-label":r,checked:n===!0,disabled:i,name:r,onChange:d,ref:g,type:"checkbox"}),t.jsx(de,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(Po,{})})]}),s]})}),Oo=({id:e,title:n,toggles:i,minWidth:o="auto",height:r="auto"})=>{const a=l.Je();return t.jsxs(y,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${a.palette.gray[200]}`,borderRadius:a.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:r,justify:"center",minHeight:"100px",minWidth:o,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(
|
|
1515
|
+
`,Kt=x.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:o,name:r,leftDescription:a,leftDescriptionMinWidth:c,rightDescription:s,onChange:d,...p},g){const u=n===!0?"on":"off",f=typeof a=="object"&&a.on&&a.off?a[u]:a,h=x.useCallback(b=>{b.stopPropagation()},[]);return t.jsxs(y,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:o,children:[t.jsx(y,{minWidth:c,children:f}),t.jsxs(Mo,{onClick:h,role:"switch",children:[t.jsx("input",{...p,"aria-disabled":i,"aria-label":r,checked:n===!0,disabled:i,name:r,onChange:d,ref:g,type:"checkbox"}),t.jsx(de,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(Po,{})})]}),s]})}),Oo=({id:e,title:n,toggles:i,minWidth:o="auto",height:r="auto"})=>{const a=l.Je();return t.jsxs(y,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${a.palette.gray[200]}`,borderRadius:a.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:r,justify:"center",minHeight:"100px",minWidth:o,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(Ne,{id:e,title:n}),t.jsx(y,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(c=>t.jsx(Kt,{...c},`$card-toggle-${c.name}`))})]})},Wo=l.st.div`
|
|
1516
1516
|
position: relative;
|
|
1517
1517
|
margin: auto;
|
|
1518
1518
|
overflow: hidden;
|
|
@@ -1799,7 +1799,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
1799
1799
|
font-size: 6px;
|
|
1800
1800
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1801
1801
|
justify-content: center;
|
|
1802
|
-
`,nn=x.forwardRef(function({numberIndicator:n,show:i,variant:o="error",...r},a){return t.jsx(nr,{$variant:o,className:i?"flex":"hidden","data-testid":"notification-sign",ref:a,...r,children:n&&t.jsx(ir,{children:n<=9?n:9})})}),on=({end:e=!1,label:n,id:i,isActive:o=!1,link:r,notificationSign:a,onClick:c,tooltip:s="",variant:d="primary",tag:p})=>{const{pathname:g}=Oe.useLocation(),u=o||(d==="primary"?g.includes(r):g.endsWith(r));return t.jsx(U,{display:"flex",id:`${i}-tooltip`,tip:s,children:t.jsxs(tr,{$borderButton:u,$variant:d,children:[t.jsxs(Oe.NavLink,{end:e,id:i,onClick:c,to:r,children:[n,t.jsx(nn,{left:a==null?void 0:a.left,numberIndicator:a==null?void 0:a.numberIndicator,show:a==null?void 0:a.show,top:a==null?void 0:a.top,variant:a==null?void 0:a.variant})]}),p===void 0?null:t.jsx(G,{tagLabel:`${p}`,variant:"default"})]})})},ot=({items:e,borders:n=!0,box:i=!1,variant:o="primary"})=>{const r=l.Je();return t.jsx(y,{alignItems:"center",bgColor:r.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:i?r.palette.gray[200]:void 0,borderRadius:i?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:i?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:i?"max-content":"100%",children:e.map(({end:a,id:c,isActive:s,link:d,label:p,notificationSign:g,onClick:u,tag:f,tooltip:h})=>t.jsx(on,{end:a,id:c,isActive:s,label:p,link:d,notificationSign:g,onClick:u,tag:f,tooltip:h,variant:o},c))})},re=x.forwardRef(function({color:n=
|
|
1802
|
+
`,nn=x.forwardRef(function({numberIndicator:n,show:i,variant:o="error",...r},a){return t.jsx(nr,{$variant:o,className:i?"flex":"hidden","data-testid":"notification-sign",ref:a,...r,children:n&&t.jsx(ir,{children:n<=9?n:9})})}),on=({end:e=!1,label:n,id:i,isActive:o=!1,link:r,notificationSign:a,onClick:c,tooltip:s="",variant:d="primary",tag:p})=>{const{pathname:g}=Oe.useLocation(),u=o||(d==="primary"?g.includes(r):g.endsWith(r));return t.jsx(U,{display:"flex",id:`${i}-tooltip`,tip:s,children:t.jsxs(tr,{$borderButton:u,$variant:d,children:[t.jsxs(Oe.NavLink,{end:e,id:i,onClick:c,to:r,children:[n,t.jsx(nn,{left:a==null?void 0:a.left,numberIndicator:a==null?void 0:a.numberIndicator,show:a==null?void 0:a.show,top:a==null?void 0:a.top,variant:a==null?void 0:a.variant})]}),p===void 0?null:t.jsx(G,{tagLabel:`${p}`,variant:"default"})]})})},ot=({items:e,borders:n=!0,box:i=!1,variant:o="primary"})=>{const r=l.Je();return t.jsx(y,{alignItems:"center",bgColor:r.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:i?r.palette.gray[200]:void 0,borderRadius:i?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:i?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:i?"max-content":"100%",children:e.map(({end:a,id:c,isActive:s,link:d,label:p,notificationSign:g,onClick:u,tag:f,tooltip:h})=>t.jsx(on,{end:a,id:c,isActive:s,label:p,link:d,notificationSign:g,onClick:u,tag:f,tooltip:h,variant:o},c))})},re=x.forwardRef(function({color:n=N.palette.gray[100],mt:i=.5,mb:o=.5,width:r,...a},c){return t.jsx(y,{as:"hr",borderTop:`1px solid ${n}`,mb:o,mt:i,ref:c,width:r??"100%",...a})}),or=l.st.li`
|
|
1803
1803
|
${({theme:e})=>`
|
|
1804
1804
|
align-items: center;
|
|
1805
1805
|
background-color: ${e.palette.white};
|
|
@@ -1964,7 +1964,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
1964
1964
|
svg.fa-check {
|
|
1965
1965
|
border-radius: 2px;
|
|
1966
1966
|
}
|
|
1967
|
-
`,pn=({control:e,option:n,register:i,setValue:o})=>{var r,a,c,s,d;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(r=n.options)==null?void 0:r.map(g=>t.jsx($t,{value:g.value,width:"content",children:t.jsx(oe,{...i("checkbox"),label:g.label,value:g.value})},`li-checkbox-${g.value}`))});case"radioButton":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[n.label,(a=n.options)==null?void 0:a.map(g=>t.jsx($t,{value:g.value,width:"content",children:t.jsx(nt,{...i("radio"),label:g.label,value:g.value})},`li-radio-${g.value}`))]});case"select":return t.jsx(Qe,{control:e,items:((c=n.options)==null?void 0:c.map(g=>({name:g.label??"",value:g.value})))??[],label:n.label,name:`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`,placeholder:n.placeholder,value:n.value});case"text":const p=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Ae,{label:n.label,name:p,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Ut,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:o},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:o},variant:"filters"});case"dateRange":return t.jsx(Ht,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(s=n.maxValue)==null?void 0:s.toString()},propsMin:{name:"minValue",value:(d=n.minValue)==null?void 0:d.toString()},register:i,setValue:o,variant:"filters"});default:return t.jsx("div",{})}},gn=({control:e,items:n,register:i,setValue:o})=>t.jsx(t.Fragment,{children:n.map((r,a)=>{const c=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(pn,{control:e,option:r,register:i,setValue:o}),a<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},c)})}),un=e=>{var s,d,p,g,u;const[n,i]=x.useState([...e]),{control:o,register:r,handleSubmit:a,setValue:c}=l.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter(b=>b.checked).map(b=>b.value))??[]}),radio:((p=(d=(s=e.find(f=>f.type==="radioButton"))==null?void 0:s.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:p.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(g=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:g.minValue,maxValue:(u=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:u.maxValue}});return{control:o,items:n,setItems:i,register:r,handleSubmit:a,setValue:c}},gr=(e,n)=>{var i,o,r,a,c;n("checkbox",e.filter(s=>s.type==="checkboxes").flatMap(s=>{var d;return((d=s.options)==null?void 0:d.filter(p=>p.checked).map(p=>p.value))??[]})),n("radio",((r=(o=(i=e.find(s=>s.type==="radioButton"))==null?void 0:i.options)==null?void 0:o.find(({checked:s})=>s))==null?void 0:r.value)??""),n("text",e.filter(s=>["text","select"].includes(s.type)).reduce((s,d)=>({...s,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),n("minValue",(a=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:a.minValue),n("maxValue",(c=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:c.maxValue)},ur=(e,n)=>(e==null?void 0:e.filter(i=>{var o;return((o=i.label)==null?void 0:o.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??i.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],xr=async(e,n)=>await Promise.all(e.map(async i=>i.type==="checkboxes"?{...i,options:i.filterOptions?await i.filterOptions(i.options??[],n):ur(i.options??[],n)}:i)),Ue=({options:e,onSearch:n,onSubmit:i,id:o,selectedFilter:r})=>{const{control:a,items:c,setItems:s,register:d,handleSubmit:p,setValue:g}=un(e),u=e.some(b=>b.type==="checkboxes"&&b.hideSearch!==!0),f=x.useCallback(async b=>{const{value:$}=b.target;n&&n($);const m=await xr(e,$);s(m)},[e,n,s]),h=x.useCallback(b=>{i&&i(b)},[i]);return x.useEffect(()=>{s(e),gr(e,g)},[e,s,g]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:o,style:{writingMode:"horizontal-tb",maxWidth:"300px",width:"100%"},children:[u&&t.jsxs("div",{children:[r,t.jsx(ae,{onChange:f})]}),t.jsxs("form",{id:o,onSubmit:p(h),children:[t.jsx(gn,{control:a,items:c,register:d,setValue:g}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})},xn=({options:e,variant:n,onApplyFilters:i,onSearch:o,setDirection:r,setHandler:a})=>{const c=l.Je(),[s,d]=x.useState(e),[p,g]=x.useState([]),[u,f]=x.useState({}),[h,b]=x.useState(""),$=x.useCallback(w=>()=>{const v=s.find(C=>C.label===w),k=!(v!=null&&v.filterOptions.some(C=>C.type==="dateRange"||C.type==="select"));a==null||a(k??!0),b(w),g((v==null?void 0:v.filterOptions)??[])},[s,a]),m=x.useCallback(w=>{const v=[...w.checkbox,...Object.values(w.text??{}),...w.radio?[w.radio]:[],...w.minValue?[String(w.minValue)]:[],...w.maxValue?[String(w.maxValue)]:[]];f(S=>v.length>0?{...S,[h]:v}:S);const k=S=>{var D,T;return{...S,options:(D=S.options)==null?void 0:D.map(L=>({...L,checked:w.checkbox.includes(L.value)||w.radio===L.value})),value:["text","select"].includes(S.type)?((T=w.text)==null?void 0:T[`${String(S.key)}-${S.filterFn??"caseInsensitive"}`])??S.value:S.value,minValue:["numberRange","dateRange"].includes(S.type)?w.minValue:S.minValue,maxValue:["numberRange","dateRange"].includes(S.type)?w.maxValue:S.maxValue}},C=S=>S.label===h?{...S,filterOptions:S.filterOptions.map(k)}:S,I=s.map(C);d(S=>S.map(C));const R=I.flatMap(({filterOptions:S})=>S);i(R),g([])},[s,i,h]),j=x.useCallback((w,v)=>{const k=`li-filter-option-${w}`;return t.jsxs(dr,{icon:v,onClick:$(w),style:{minWidth:"180px",writingMode:"horizontal-tb"},value:k,width:"100%",children:[w,u[w]===void 0?void 0:t.jsx(G,{tagLabel:u[w].length.toString()})]},k)},[u,$]);return x.useEffect(()=>{const w=e.reduce((v,{label:k,filterOptions:C})=>{const I=C.flatMap(({value:D,minValue:T,maxValue:L})=>[T,L,D]).filter(Boolean),R=C.flatMap(({options:D})=>D??[]).filter(({checked:D=!1})=>D).map(({value:D})=>D),S=[...I,...R];return S.length===0?v:{...v,[k]:S}},{});f(w),p.length>0&&r&&r("column")},[p,e,r]),n==="grouped"?t.jsx(y,{display:"flex",flexDirection:"row",maxHeight:p.length>0?"unset":"360px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:p.length>0?t.jsx(Ue,{id:"filters-options",onSearch:o,onSubmit:m,options:p,selectedFilter:h}):Object.entries(ln(e)).map(([w,v])=>t.jsxs(y,{style:{writingMode:"horizontal-tb"},children:[t.jsx(z,{color:c.palette.gray[400],mb:.25,size:"sm",children:w}),v.map(({label:k,icon:C="filter-list"})=>j(k,C))]},w))}):t.jsx(y,{display:"flex",flexDirection:"row",maxHeight:p.length>0?"unset":"200px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:p.length>0?t.jsx(Ue,{id:"filters-options",onSearch:o,onSubmit:m,options:p,selectedFilter:h}):e.map(({label:w,icon:v="filter-list"})=>j(w,v))})},fn=({options:e,onApplyFilters:n,onSearch:i,modalRef:o,variant:r})=>{const[a,c]=x.useState("row"),[s,d]=x.useState(!0),p=l.Je(),g=x.useRef(null),u=t.jsx(M,{icon:"close",iconColor:p.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,px:.25,py:.25,variant:"ghost"});return x.useEffect(()=>{const f=h=>{const b=g.current;b&&!b.contains(h.target)&&o.close()};if(s)return document.addEventListener("mousedown",f,!0),()=>{document.removeEventListener("mousedown",f,!0)}},[g,s,o]),t.jsx(pr,{$bgColor:"transparent","aria-label":o.name,children:t.jsxs(it,{$size:"fixed",alignItems:a==="row"?"start":"end",display:"flex",flexDirection:a,gap:.5,id:"filters-list",justify:"space-between",position:"relative",px:1.25,py:1.25,ref:g,style:{maxWidth:"620px",overflow:"hidden",width:"fit-content"},children:[a==="column"?u:void 0,t.jsx(xn,{onApplyFilters:n,onSearch:i,options:e,setDirection:c,setHandler:d,variant:r}),a==="row"?u:void 0]})})};function fr(e){if(e)return e}function hn(e){if(!e||e.length===0)return;const n=e.filter(o=>o.checked).map(o=>o.label??o.value);return n.length===0?void 0:n.join(", ")}function hr(e,n,i){const o=i??"",r=l._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),a=l._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!l._.isUndefined(r)&&!l._.isUndefined(a))return`${r}${o} - ${a}${o}`;if(!l._.isUndefined(r))return`Min ${r}${o}`;if(!l._.isUndefined(a))return`Max ${a}${o}`}function br(e,n){if(l.dayjs_minExports.extend(l.localizedFormat),!(l._.isUndefined(e)&&l._.isUndefined(n))){if(e!==""&&n!==""&&!l._.isUndefined(e)&&!l._.isUndefined(n))return`${l.dayjs(e).format("LL")} - ${l.dayjs(n).format("LL")}`;if(e!==""&&!l._.isUndefined(e))return`From ${l.dayjs(e).format("LL")}`;if(n!==""&&!l._.isUndefined(n))return`To ${l.dayjs(n).format("LL")}`}}function yr(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const pe=({filter:e,icon:n="filter-list",label:i,onClose:o,filterValue:r})=>l._.isNil(r)||l._.isEmpty(String(r))?null:t.jsx(G,{filterValues:r,icon:n,id:"remove-filter",onClose:o(e),tagLabel:`${i} `}),$r=({options:e,onClose:n})=>{const i=e.flatMap(o=>o.filterOptions.map(r=>{const{filterFn:a,label:c,type:s,value:d,options:p,minValue:g,maxValue:u}=r;switch(s){case"numberRange":{const f=hr(g,u,o.placeholder);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case"dateRange":{const f=br(g==null?void 0:g.toString(),u==null?void 0:u.toString());return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case"radioButton":case"checkboxes":{const f=hn(p);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case void 0:case"select":case"text":default:{const f=fr(d),h=yr(s,o.label,a);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:h,onClose:n},c)}}})).filter(o=>{if(o===null)return!1;const{filterValue:r}=o.props;return!l._.isNil(r)&&!l._.isEmpty(String(r))});return i.length>0?t.jsx(y,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},mr=(e,n)=>{function i(c,s){if(s.value===""||s.value===void 0||l._.defaultTo(s.isBackFilter,!1))return!0;switch(s.filterFn){case"includesInsensitive":return String(c[s.key]).toLowerCase().includes(s.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(c[s.key]).toLowerCase()===s.value.toLowerCase()}}function o(c,s){if(!s.options||s.options.length===0)return!0;const d=s.options.filter(p=>p.checked).map(p=>p.value);return d.length===0?!0:d.includes(String(c[s.key]))}function r(c,s,d){const p=d(String(c[s.key])),{minValue:g,maxValue:u}=s,f=l._.isEmpty(g)&&typeof g!="number"?void 0:d(String(g)),h=l._.isEmpty(u)&&typeof u!="number"?void 0:d(String(u));return l._.isUndefined(f)&&l._.isUndefined(h)?!0:(f??-1/0)<=p&&p<=(h??1/0)}function a(c){return n.every(s=>{if(typeof s.key=="function")return s.key(c,s.value);switch(s.type){case"radioButton":case"checkboxes":return o(c,s);case"numberRange":return r(c,s,Number);case"dateRange":return r(c,s,d=>new Date(d));case"select":case"text":default:return i(c,s)}})}return e.filter(a)},mt=e=>[...e.flatMap(({options:i})=>i).filter(i=>i==null?void 0:i.checked),...e.flatMap(i=>[i.value,i.maxValue,i.minValue]).filter(Boolean)].length,wr=e=>{var i;const n=((i=e.options)==null?void 0:i.map(o=>({...o,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},jr=({dataset:e,localStorageKey:n,storage:i,options:o,setFilteredDataset:r,onFiltersChange:a,onReset:c,onSearch:s,variant:d="ungrouped"})=>{const p=Se("filters-modal"),[g,u]=x.useState([]),[f,h]=x.useState(mt(g)),b=o.map(v=>({...v,filterOptions:v.filterOptions.map(k=>g.find(I=>I.key===k.key&&I.type===k.type&&I.filterFn===k.filterFn)??{...k})})),$=x.useCallback(v=>{u([...v]),i.setItem(n,JSON.stringify(v))},[u,n,i]),m=x.useCallback(()=>{c&&c(),p.toggle()},[p,c]),j=x.useCallback(v=>()=>{c&&c();const k=g.map(C=>C.key===v.key&&C.type===v.type&&C.filterFn===v.filterFn?wr(C):C);u(k),i.setItem(n,JSON.stringify(k))},[g,n,c,i]);return x.useEffect(()=>{const v=i.getItem(n),k=o.flatMap(I=>I.filterOptions),C=v?JSON.parse(v):k;k.flatMap(I=>I.value).filter(Boolean).length>0||k.flatMap(I=>I.options).filter(I=>(I==null?void 0:I.checked)===void 0).length>0?(u(k),i.setItem(n,JSON.stringify(k))):u(C)},[n,o,u,i]),x.useEffect(()=>{r&&e!==void 0&&r(mr(e,g)),h(mt(g)),a==null||a(g)},[e,g,r,h,a]),{Filters:()=>t.jsxs(y,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx(y,{pr:.25,children:t.jsx(P,{icon:"filter",id:"filter-btn",onClick:m,tag:f.toString(),variant:"ghost"})}),p.isOpen&&t.jsx(fn,{modalRef:p,onApplyFilters:$,onSearch:s,options:b,variant:d})]}),options:b,removeFilter:j}},rt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:o=void 0,confirmButton:r=void 0,content:a=void 0,description:c=void 0,modalRef:s,otherActions:d=void 0,onClose:p=void 0,tabItems:g=void 0,title:u=void 0,size:f,id:h="modal-container"})=>{const b=l.Je(),$=t.jsx(Xt,{"aria-label":s.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(it,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!l._.isEmpty(u)&&!l._.isNil(u)&&t.jsx(en,{description:c,modalRef:s,onClose:p,otherActions:d,title:u}),g&&t.jsx(y,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(ot,{items:g})}),(l._.isObject(a)||o)&&t.jsxs(Ko,{children:[o,l._.isObject(a)&&l._.isString(a.imageSrc)&&t.jsx(Qo,{$framed:a.imageFramed,children:t.jsx(ee,{alt:"modal-img",publicId:a.imageSrc})}),l._.isObject(a)&&l._.isString(a.imageText)&&t.jsx(z,{size:"sm",children:a.imageText})]}),t.jsx(Qt,{alert:n,cancelButton:i,confirmButton:r,modalRef:s})]})});return e&&s.isOpen?se.createPortal($,document.getElementById("portals")??document.body):s.isOpen?$:null},vr=(e,n,i)=>{const o=Se("confirm-dialog-modal"),r=x.useRef(null),a=x.useCallback(async()=>(o.open(),new Promise(p=>{r.current=p})),[o]),c=x.useCallback(()=>{var p;o.close(),(p=r.current)==null||p.call(r,!0)},[o]),s=x.useCallback(()=>{var p;o.close(),(p=r.current)==null||p.call(r,!1)},[o]);return[a,({children:p})=>{const[g,u]=x.useState(i),f=x.useCallback(()=>{u({...i})},[]),h=x.useCallback(m=>()=>{u(j=>({...j,[m]:{...j[m],state:!j[m].state}}))},[]),b=!Object.values(g).every(({state:m})=>m),$=Object.entries(g).map(([m,{state:j,label:w}])=>t.jsx(oe,{defaultChecked:j,label:w,name:m,onChange:h(m)},m));return t.jsxs(rt,{"data-testid":e,id:e,modalRef:{...o,close:s},onClose:f,size:"sm",title:n,children:[p,t.jsx(y,{display:"flex",flexDirection:"column",gap:.5,children:$}),t.jsx(tn,{disabled:b,id:e,onConfirm:c})]})}]},kr=()=>{const[e,n]=x.useState(!1),[i,o]=x.useState(),r=x.useRef(null),a=Se("confirm-dialog-modal"),c=x.useCallback(async g=>(o(g),n(!0),new Promise(u=>{r.current=u})),[]),s=x.useCallback(()=>{var g;n(!1),o(void 0),(g=r.current)==null||g.call(r,!0)},[]),d=x.useCallback(()=>{var g;n(!1),o(void 0),(g=r.current)==null||g.call(r,!1)},[]);return x.useEffect(()=>{a.setIsOpen(e)},[e,a]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:u})=>t.jsxs(rt,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(i==null?void 0:i.id)??"modal-confirm",onClick:s,text:"Confirm"},description:i==null?void 0:i.message,id:g,modalRef:{...a,close:d},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,u]}),confirm:c}},Cr=2e3,Sr=({content:e})=>{const[n,i]=x.useState("Copy"),o=x.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{i("Copied"),setTimeout(()=>{i("Copy")},Cr)}).catch(()=>{i("Failed to copy")})},[e]);return t.jsx(M,{icon:"copy",iconSize:"xs",iconType:"fa-light",onClick:o,tooltip:n,variant:"ghost"})},zr=l.st.ul`
|
|
1967
|
+
`,pn=({control:e,option:n,register:i,setValue:o})=>{var r,a,c,s,d;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(r=n.options)==null?void 0:r.map(g=>t.jsx($t,{value:g.value,width:"content",children:t.jsx(oe,{...i("checkbox"),label:g.label,value:g.value})},`li-checkbox-${g.value}`))});case"radioButton":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[n.label,(a=n.options)==null?void 0:a.map(g=>t.jsx($t,{value:g.value,width:"content",children:t.jsx(nt,{...i("radio"),label:g.label,value:g.value})},`li-radio-${g.value}`))]});case"select":return t.jsx(Qe,{control:e,items:((c=n.options)==null?void 0:c.map(g=>({name:g.label??"",value:g.value})))??[],label:n.label,name:`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`,placeholder:n.placeholder,value:n.value});case"text":const p=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Ae,{label:n.label,name:p,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Ut,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:o},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:o},variant:"filters"});case"dateRange":return t.jsx(Ht,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(s=n.maxValue)==null?void 0:s.toString()},propsMin:{name:"minValue",value:(d=n.minValue)==null?void 0:d.toString()},register:i,setValue:o,variant:"filters"});default:return t.jsx("div",{})}},gn=({control:e,items:n,register:i,setValue:o})=>t.jsx(t.Fragment,{children:n.map((r,a)=>{const c=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(pn,{control:e,option:r,register:i,setValue:o}),a<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},c)})}),un=e=>{var s,d,p,g,u;const[n,i]=x.useState([...e]),{control:o,register:r,handleSubmit:a,setValue:c}=l.useForm({defaultValues:{checkbox:e.filter(f=>f.type==="checkboxes").flatMap(f=>{var h;return((h=f.options)==null?void 0:h.filter(b=>b.checked).map(b=>b.value))??[]}),radio:((p=(d=(s=e.find(f=>f.type==="radioButton"))==null?void 0:s.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:p.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(g=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:g.minValue,maxValue:(u=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:u.maxValue}});return{control:o,items:n,setItems:i,register:r,handleSubmit:a,setValue:c}},gr=(e,n)=>{var i,o,r,a,c;n("checkbox",e.filter(s=>s.type==="checkboxes").flatMap(s=>{var d;return((d=s.options)==null?void 0:d.filter(p=>p.checked).map(p=>p.value))??[]})),n("radio",((r=(o=(i=e.find(s=>s.type==="radioButton"))==null?void 0:i.options)==null?void 0:o.find(({checked:s})=>s))==null?void 0:r.value)??""),n("text",e.filter(s=>["text","select"].includes(s.type)).reduce((s,d)=>({...s,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),n("minValue",(a=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:a.minValue),n("maxValue",(c=e.find(s=>["numberRange","dateRange"].includes(s.type)))==null?void 0:c.maxValue)},ur=(e,n)=>(e==null?void 0:e.filter(i=>{var o;return((o=i.label)==null?void 0:o.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??i.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],xr=async(e,n,i)=>await Promise.all(e.map(async(o,r)=>{if(o.type==="checkboxes"){const a=n[r];return{...o,options:o.filterOptions?await o.filterOptions((a==null?void 0:a.options)??[],i):ur((a==null?void 0:a.options)??[],i)}}return o})),Ue=({options:e,onSearch:n,onSubmit:i,id:o,selectedFilter:r})=>{const{control:a,items:c,setItems:s,register:d,handleSubmit:p,setValue:g}=un(e),u=e.some(b=>b.type==="checkboxes"&&b.hideSearch!==!0),f=x.useCallback(async b=>{const{value:$}=b.target;n&&n($);const m=await xr(c,e,$);s(m)},[c,e,n,s]),h=x.useCallback(b=>{i&&i(b)},[i]);return x.useEffect(()=>{s(e),gr(e,g)},[e,s,g]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:o,style:{writingMode:"horizontal-tb",maxWidth:"300px",width:"100%"},children:[u&&t.jsxs("div",{children:[r,t.jsx(ae,{onChange:f})]}),t.jsxs("form",{id:o,onSubmit:p(h),children:[t.jsx(gn,{control:a,items:c,register:d,setValue:g}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})},xn=({options:e,variant:n,onApplyFilters:i,onSearch:o,setDirection:r,setHandler:a})=>{const c=l.Je(),[s,d]=x.useState(e),[p,g]=x.useState([]),[u,f]=x.useState({}),[h,b]=x.useState(""),$=x.useCallback(w=>()=>{const v=s.find(C=>C.label===w),k=!(v!=null&&v.filterOptions.some(C=>C.type==="dateRange"||C.type==="select"));a==null||a(k??!0),b(w),g((v==null?void 0:v.filterOptions)??[])},[s,a]),m=x.useCallback(w=>{const v=[...w.checkbox,...Object.values(w.text??{}),...w.radio?[w.radio]:[],...w.minValue?[String(w.minValue)]:[],...w.maxValue?[String(w.maxValue)]:[]];f(S=>v.length>0?{...S,[h]:v}:S);const k=S=>{var D,T;return{...S,options:(D=S.options)==null?void 0:D.map(L=>({...L,checked:w.checkbox.includes(L.value)||w.radio===L.value})),value:["text","select"].includes(S.type)?((T=w.text)==null?void 0:T[`${String(S.key)}-${S.filterFn??"caseInsensitive"}`])??S.value:S.value,minValue:["numberRange","dateRange"].includes(S.type)?w.minValue:S.minValue,maxValue:["numberRange","dateRange"].includes(S.type)?w.maxValue:S.maxValue}},C=S=>S.label===h?{...S,filterOptions:S.filterOptions.map(k)}:S,I=s.map(C);d(S=>S.map(C));const R=I.flatMap(({filterOptions:S})=>S);i(R),g([])},[s,i,h]),j=x.useCallback((w,v)=>{const k=`li-filter-option-${w}`;return t.jsxs(dr,{icon:v,onClick:$(w),style:{minWidth:"180px",writingMode:"horizontal-tb"},value:k,width:"100%",children:[w,u[w]===void 0?void 0:t.jsx(G,{tagLabel:u[w].length.toString()})]},k)},[u,$]);return x.useEffect(()=>{const w=e.reduce((v,{label:k,filterOptions:C})=>{const I=C.flatMap(({value:D,minValue:T,maxValue:L})=>[T,L,D]).filter(Boolean),R=C.flatMap(({options:D})=>D??[]).filter(({checked:D=!1})=>D).map(({value:D})=>D),S=[...I,...R];return S.length===0?v:{...v,[k]:S}},{});f(w),p.length>0&&r&&r("column")},[p,e,r]),n==="grouped"?t.jsx(y,{display:"flex",flexDirection:"row",maxHeight:p.length>0?"unset":"360px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:p.length>0?t.jsx(Ue,{id:"filters-options",onSearch:o,onSubmit:m,options:p,selectedFilter:h}):Object.entries(ln(e)).map(([w,v])=>t.jsxs(y,{style:{writingMode:"horizontal-tb"},children:[t.jsx(z,{color:c.palette.gray[400],mb:.25,size:"sm",children:w}),v.map(({label:k,icon:C="filter-list"})=>j(k,C))]},w))}):t.jsx(y,{display:"flex",flexDirection:"row",maxHeight:p.length>0?"unset":"200px",style:{rowGap:"10px",writingMode:"vertical-lr"},wrap:"wrap",children:p.length>0?t.jsx(Ue,{id:"filters-options",onSearch:o,onSubmit:m,options:p,selectedFilter:h}):e.map(({label:w,icon:v="filter-list"})=>j(w,v))})},fn=({options:e,onApplyFilters:n,onSearch:i,modalRef:o,variant:r})=>{const[a,c]=x.useState("row"),[s,d]=x.useState(!0),p=l.Je(),g=x.useRef(null),u=t.jsx(M,{icon:"close",iconColor:p.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,px:.25,py:.25,variant:"ghost"});return x.useEffect(()=>{const f=h=>{const b=g.current;b&&!b.contains(h.target)&&o.close()};if(s)return document.addEventListener("mousedown",f,!0),()=>{document.removeEventListener("mousedown",f,!0)}},[g,s,o]),t.jsx(pr,{$bgColor:"transparent","aria-label":o.name,children:t.jsxs(it,{$size:"fixed",alignItems:a==="row"?"start":"end",display:"flex",flexDirection:a,gap:.5,id:"filters-list",justify:"space-between",position:"relative",px:1.25,py:1.25,ref:g,style:{maxWidth:"620px",overflow:"hidden",width:"fit-content"},children:[a==="column"?u:void 0,t.jsx(xn,{onApplyFilters:n,onSearch:i,options:e,setDirection:c,setHandler:d,variant:r}),a==="row"?u:void 0]})})};function fr(e){if(e)return e}function hn(e){if(!e||e.length===0)return;const n=e.filter(o=>o.checked).map(o=>o.label??o.value);return n.length===0?void 0:n.join(", ")}function hr(e,n,i){const o=i??"",r=l._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),a=l._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!l._.isUndefined(r)&&!l._.isUndefined(a))return`${r}${o} - ${a}${o}`;if(!l._.isUndefined(r))return`Min ${r}${o}`;if(!l._.isUndefined(a))return`Max ${a}${o}`}function br(e,n){if(l.dayjs_minExports.extend(l.localizedFormat),!(l._.isUndefined(e)&&l._.isUndefined(n))){if(e!==""&&n!==""&&!l._.isUndefined(e)&&!l._.isUndefined(n))return`${l.dayjs(e).format("LL")} - ${l.dayjs(n).format("LL")}`;if(e!==""&&!l._.isUndefined(e))return`From ${l.dayjs(e).format("LL")}`;if(n!==""&&!l._.isUndefined(n))return`To ${l.dayjs(n).format("LL")}`}}function yr(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const pe=({filter:e,icon:n="filter-list",label:i,onClose:o,filterValue:r})=>l._.isNil(r)||l._.isEmpty(String(r))?null:t.jsx(G,{filterValues:r,icon:n,id:"remove-filter",onClose:o(e),tagLabel:`${i} `}),$r=({options:e,onClose:n})=>{const i=e.flatMap(o=>o.filterOptions.map(r=>{const{filterFn:a,label:c,type:s,value:d,options:p,minValue:g,maxValue:u}=r;switch(s){case"numberRange":{const f=hr(g,u,o.placeholder);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case"dateRange":{const f=br(g==null?void 0:g.toString(),u==null?void 0:u.toString());return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case"radioButton":case"checkboxes":{const f=hn(p);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:o.label,onClose:n},c)}case void 0:case"select":case"text":default:{const f=fr(d),h=yr(s,o.label,a);return t.jsx(pe,{filter:r,filterValue:f,icon:o.icon,label:h,onClose:n},c)}}})).filter(o=>{if(o===null)return!1;const{filterValue:r}=o.props;return!l._.isNil(r)&&!l._.isEmpty(String(r))});return i.length>0?t.jsx(y,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},mr=(e,n)=>{function i(c,s){if(s.value===""||s.value===void 0||l._.defaultTo(s.isBackFilter,!1))return!0;switch(s.filterFn){case"includesInsensitive":return String(c[s.key]).toLowerCase().includes(s.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(c[s.key]).toLowerCase()===s.value.toLowerCase()}}function o(c,s){if(!s.options||s.options.length===0)return!0;const d=s.options.filter(p=>p.checked).map(p=>p.value);return d.length===0?!0:d.includes(String(c[s.key]))}function r(c,s,d){const p=d(String(c[s.key])),{minValue:g,maxValue:u}=s,f=l._.isEmpty(g)&&typeof g!="number"?void 0:d(String(g)),h=l._.isEmpty(u)&&typeof u!="number"?void 0:d(String(u));return l._.isUndefined(f)&&l._.isUndefined(h)?!0:(f??-1/0)<=p&&p<=(h??1/0)}function a(c){return n.every(s=>{if(typeof s.key=="function")return s.key(c,s.value);switch(s.type){case"radioButton":case"checkboxes":return o(c,s);case"numberRange":return r(c,s,Number);case"dateRange":return r(c,s,d=>new Date(d));case"select":case"text":default:return i(c,s)}})}return e.filter(a)},mt=e=>[...e.flatMap(({options:i})=>i).filter(i=>i==null?void 0:i.checked),...e.flatMap(i=>[i.value,i.maxValue,i.minValue]).filter(Boolean)].length,wr=e=>{var i;const n=((i=e.options)==null?void 0:i.map(o=>({...o,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},jr=({dataset:e,localStorageKey:n,storage:i,options:o,setFilteredDataset:r,onFiltersChange:a,onReset:c,onSearch:s,variant:d="ungrouped"})=>{const p=Se("filters-modal"),[g,u]=x.useState([]),[f,h]=x.useState(mt(g)),b=o.map(v=>({...v,filterOptions:v.filterOptions.map(k=>g.find(I=>I.key===k.key&&I.type===k.type&&I.filterFn===k.filterFn)??{...k})})),$=x.useCallback(v=>{u([...v]),i.setItem(n,JSON.stringify(v))},[u,n,i]),m=x.useCallback(()=>{c&&c(),p.toggle()},[p,c]),j=x.useCallback(v=>()=>{c&&c();const k=g.map(C=>C.key===v.key&&C.type===v.type&&C.filterFn===v.filterFn?wr(C):C);u(k),i.setItem(n,JSON.stringify(k))},[g,n,c,i]);return x.useEffect(()=>{const v=i.getItem(n),k=o.flatMap(I=>I.filterOptions),C=v?JSON.parse(v):k;k.flatMap(I=>I.value).filter(Boolean).length>0||k.flatMap(I=>I.options).filter(I=>(I==null?void 0:I.checked)===void 0).length>0?(u(k),i.setItem(n,JSON.stringify(k))):u(C)},[n,o,u,i]),x.useEffect(()=>{r&&e!==void 0&&r(mr(e,g)),h(mt(g)),a==null||a(g)},[e,g,r,h,a]),{Filters:()=>t.jsxs(y,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx(y,{pr:.25,children:t.jsx(P,{icon:"filter",id:"filter-btn",onClick:m,tag:f.toString(),variant:"ghost"})}),p.isOpen&&t.jsx(fn,{modalRef:p,onApplyFilters:$,onSearch:s,options:b,variant:d})]}),options:b,removeFilter:j}},rt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:o=void 0,confirmButton:r=void 0,content:a=void 0,description:c=void 0,modalRef:s,otherActions:d=void 0,onClose:p=void 0,tabItems:g=void 0,title:u=void 0,size:f,id:h="modal-container"})=>{const b=l.Je(),$=t.jsx(Xt,{"aria-label":s.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(it,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!l._.isEmpty(u)&&!l._.isNil(u)&&t.jsx(en,{description:c,modalRef:s,onClose:p,otherActions:d,title:u}),g&&t.jsx(y,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(ot,{items:g})}),(l._.isObject(a)||o)&&t.jsxs(Ko,{children:[o,l._.isObject(a)&&l._.isString(a.imageSrc)&&t.jsx(Qo,{$framed:a.imageFramed,children:t.jsx(ee,{alt:"modal-img",publicId:a.imageSrc})}),l._.isObject(a)&&l._.isString(a.imageText)&&t.jsx(z,{size:"sm",children:a.imageText})]}),t.jsx(Qt,{alert:n,cancelButton:i,confirmButton:r,modalRef:s})]})});return e&&s.isOpen?se.createPortal($,document.getElementById("portals")??document.body):s.isOpen?$:null},vr=(e,n,i)=>{const o=Se("confirm-dialog-modal"),r=x.useRef(null),a=x.useCallback(async()=>(o.open(),new Promise(p=>{r.current=p})),[o]),c=x.useCallback(()=>{var p;o.close(),(p=r.current)==null||p.call(r,!0)},[o]),s=x.useCallback(()=>{var p;o.close(),(p=r.current)==null||p.call(r,!1)},[o]);return[a,({children:p})=>{const[g,u]=x.useState(i),f=x.useCallback(()=>{u({...i})},[]),h=x.useCallback(m=>()=>{u(j=>({...j,[m]:{...j[m],state:!j[m].state}}))},[]),b=!Object.values(g).every(({state:m})=>m),$=Object.entries(g).map(([m,{state:j,label:w}])=>t.jsx(oe,{defaultChecked:j,label:w,name:m,onChange:h(m)},m));return t.jsxs(rt,{"data-testid":e,id:e,modalRef:{...o,close:s},onClose:f,size:"sm",title:n,children:[p,t.jsx(y,{display:"flex",flexDirection:"column",gap:.5,children:$}),t.jsx(tn,{disabled:b,id:e,onConfirm:c})]})}]},kr=()=>{const[e,n]=x.useState(!1),[i,o]=x.useState(),r=x.useRef(null),a=Se("confirm-dialog-modal"),c=x.useCallback(async g=>(o(g),n(!0),new Promise(u=>{r.current=u})),[]),s=x.useCallback(()=>{var g;n(!1),o(void 0),(g=r.current)==null||g.call(r,!0)},[]),d=x.useCallback(()=>{var g;n(!1),o(void 0),(g=r.current)==null||g.call(r,!1)},[]);return x.useEffect(()=>{a.setIsOpen(e)},[e,a]),{ConfirmDialog:({id:g="confirm-dialog-modal",children:u})=>t.jsxs(rt,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(i==null?void 0:i.id)??"modal-confirm",onClick:s,text:"Confirm"},description:i==null?void 0:i.message,id:g,modalRef:{...a,close:d},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,u]}),confirm:c}},Cr=2e3,Sr=({content:e})=>{const[n,i]=x.useState("Copy"),o=x.useCallback(()=>{navigator.clipboard.writeText(e).then(()=>{i("Copied"),setTimeout(()=>{i("Copy")},Cr)}).catch(()=>{i("Failed to copy")})},[e]);return t.jsx(M,{icon:"copy",iconSize:"xs",iconType:"fa-light",onClick:o,tooltip:n,variant:"ghost"})},zr=l.st.ul`
|
|
1968
1968
|
${({theme:e})=>`
|
|
1969
1969
|
align-items: flex-start;
|
|
1970
1970
|
border-radius: ${e.spacing[.25]};
|
|
@@ -2024,7 +2024,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2024
2024
|
> img {
|
|
2025
2025
|
width: 100%;
|
|
2026
2026
|
}
|
|
2027
|
-
`,
|
|
2027
|
+
`,Nr=l.st.div`
|
|
2028
2028
|
display: flex;
|
|
2029
2029
|
flex-direction: row;
|
|
2030
2030
|
margin: 0;
|
|
@@ -2037,7 +2037,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2037
2037
|
> *:last-child {
|
|
2038
2038
|
margin-right: 0;
|
|
2039
2039
|
}
|
|
2040
|
-
`,wt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},
|
|
2040
|
+
`,wt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},Fr=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:o="integrates/empty/addRoot",padding:r=1.25,title:a,size:c="md"})=>{const s=(n??e)!==void 0;return t.jsxs(Er,{$padding:r,children:[t.jsx(Rr,{children:t.jsx(ee,{alt:"empty-icon",publicId:o})}),t.jsx(V,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:wt[c].title,textAlign:"center",children:a}),t.jsx(z,{mb:s?2:void 0,size:wt[c].description,textAlign:"center",children:i}),s?t.jsxs(Nr,{children:[e&&t.jsx(Ve,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(Ve,{buttonProps:n,variant:"primary"})]}):void 0]})},Dr=({children:e})=>{const n=l.useFormContext();return e({...n})},Lr=l.st.form`
|
|
2041
2041
|
${({theme:e})=>`
|
|
2042
2042
|
align-items: flex-start;
|
|
2043
2043
|
align-self: stretch;
|
|
@@ -2178,11 +2178,11 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2178
2178
|
padding: 0;
|
|
2179
2179
|
|
|
2180
2180
|
&:hover p {
|
|
2181
|
-
color: ${
|
|
2181
|
+
color: ${N.palette.primary[200]};
|
|
2182
2182
|
}
|
|
2183
2183
|
|
|
2184
2184
|
&:hover span {
|
|
2185
|
-
color: ${
|
|
2185
|
+
color: ${N.palette.primary[200]};
|
|
2186
2186
|
}
|
|
2187
2187
|
`,oa=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:o="regular",show:r=!0,icon:a,onClose:c,buttonSide:s="end"})=>{const d=l.Je(),[p,g]=x.useState(r),u=x.useCallback(()=>{g(!1),c==null||c()},[c]);x.useEffect(()=>{g(r)},[r,g]);const f=t.jsxs(ia,{onClick:n,children:[t.jsx(z,{color:d.palette.white,fontWeight:o,size:"sm",textDecoration:"underline",children:i}),t.jsx(E,{icon:a??"arrow-right",iconColor:d.palette.white,iconSize:"xs",iconType:o==="bold"?"fa-regular":"fa-light"})]});return t.jsxs(y,{alignItems:"center",bgGradient:d.palette.gradients["01"],display:p?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs(y,{display:"flex",gap:.5,justify:"center",width:"100%",children:[s==="start"&&n?f:void 0,t.jsx(y,{children:typeof e=="string"?t.jsx(z,{color:d.palette.white,display:"inline",size:"sm",children:e}):e}),s==="end"&&n?f:void 0]}),t.jsx(E,{clickable:!0,hoverColor:d.palette.primary[200],icon:"close",iconColor:d.palette.white,iconSize:"xs",iconType:"fa-light",onClick:u})]})},ra=l.st.div`
|
|
2188
2188
|
${({theme:e,$variant:n})=>`
|
|
@@ -2399,7 +2399,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2399
2399
|
right: ${({right:e})=>e??"unset"};
|
|
2400
2400
|
z-index: ${({zIndex:e})=>e??"unset"};
|
|
2401
2401
|
left: ${({left:e})=>e??"unset"};
|
|
2402
|
-
`,Ia=({scrollerId:e="dashboard",left:n,visibleAt:i=500,bottom:o,right:r,zIndex:a=100})=>{const[c,s]=x.useState(!1),[d,p]=x.useState(null),g=l.Je();x.useEffect(()=>{p(document.getElementById(e)),d==null||d.addEventListener("scroll",()=>{s(d.scrollTop>i)})},[d,e,i]);const u=x.useCallback(()=>{d==null||d.scrollTo({behavior:"smooth",top:0})},[d]);return c?t.jsx(za,{bottom:o,left:n,right:r,zIndex:a,children:t.jsx(M,{borderRadius:"50%",height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:u,style:{backgroundColor:g.palette.black,borderRadius:"50%",color:g.palette.white},width:"40px"})}):null},Ta={critical:{bgColor:
|
|
2402
|
+
`,Ia=({scrollerId:e="dashboard",left:n,visibleAt:i=500,bottom:o,right:r,zIndex:a=100})=>{const[c,s]=x.useState(!1),[d,p]=x.useState(null),g=l.Je();x.useEffect(()=>{p(document.getElementById(e)),d==null||d.addEventListener("scroll",()=>{s(d.scrollTop>i)})},[d,e,i]);const u=x.useCallback(()=>{d==null||d.scrollTo({behavior:"smooth",top:0})},[d]);return c?t.jsx(za,{bottom:o,left:n,right:r,zIndex:a,children:t.jsx(M,{borderRadius:"50%",height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:u,style:{backgroundColor:g.palette.black,borderRadius:"50%",color:g.palette.white},width:"40px"})}):null},Ta={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]}},Ea=({textL:e,textR:n,variant:i})=>{const o=l.Je(),{bgColor:r,colorL:a,colorR:c}=Ta[i];return t.jsxs(y,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(y,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${r}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(z,{color:a,size:"xs",children:e})}):void 0,t.jsx(y,{alignItems:"center",bgColor:r,border:`1px solid ${r}`,borderRadius:e?"0px 4px 4px 0px":"4px",display:"flex",padding:e?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:t.jsx(z,{color:c,size:"xs",children:n})})]})},Ra=(e,n)=>{const i={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]},o={disabled:N.palette.gray[400],enabled:N.palette.gray[800]},r={critical:N.palette.white,high:N.palette.white,low:N.palette.gray[800],medium:N.palette.gray[800],none:N.palette.gray[400]};return{iconColor:n<1?i.none:i[e],iconText:l.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?r.none:r[e],textColor:n<1?o.disabled:o.enabled}},ge=({variant:e,value:n})=>{const{iconColor:i,iconText:o,iconTextColor:r,textColor:a}=Ra(e,n),c=l.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(U,{id:c,place:"top",tip:c,children:t.jsx(y,{alignItems:"center",bgColor:i,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(z,{color:r,size:"sm",textAlign:"center",children:o})})}),t.jsx(z,{color:a,size:"sm",children:n})]})},Na=({critical:e,high:n,medium:i,low:o})=>t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(ge,{value:e,variant:"critical"}),t.jsx(ge,{value:n,variant:"high"}),t.jsx(ge,{value:i,variant:"medium"}),t.jsx(ge,{value:o,variant:"low"})]}),Fa=l.st.div`
|
|
2403
2403
|
${({theme:e})=>`
|
|
2404
2404
|
border-radius: ${e.spacing[.25]};
|
|
2405
2405
|
cursor: pointer;
|
|
@@ -2417,7 +2417,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2417
2417
|
display: block;
|
|
2418
2418
|
}
|
|
2419
2419
|
`}
|
|
2420
|
-
`,Da=({visibleElement:e,hiddenElement:n})=>t.jsxs(
|
|
2420
|
+
`,Da=({visibleElement:e,hiddenElement:n})=>t.jsxs(Fa,{children:[e,t.jsx(y,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),kn=({customBadge:e=void 0,description:n,icon:i,onClick:o,requiresUpgrade:r=!1,title:a})=>{const c=l.Je();return t.jsxs(y,{bgColor:c.palette.white,bgColorHover:c.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:o,px:1.25,py:1,width:"100%",children:[t.jsx(y,{alignItems:"center",bgColor:c.palette.gray[300],borderRadius:c.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(E,{icon:i,iconColor:c.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),t.jsxs(y,{children:[t.jsxs(y,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(z,{color:c.palette.gray[800],size:"sm",children:a}),r?t.jsx($n,{text:"Upgrade"}):void 0,e]}),t.jsx(z,{color:c.palette.gray[400],size:"xs",children:n})]})]})},La=l.st(l.m.div)`
|
|
2421
2421
|
${({theme:e})=>`
|
|
2422
2422
|
background-color: ${e.palette.white};
|
|
2423
2423
|
box-shadow: ${e.shadows.lg};
|
|
@@ -2862,7 +2862,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2862
2862
|
display: flex;
|
|
2863
2863
|
overflow-wrap: anywhere;
|
|
2864
2864
|
width: ${({$width:e})=>e}px;
|
|
2865
|
-
`,
|
|
2865
|
+
`,Tn=()=>{const e=l.Je(),{table:n}=x.useContext(q),{loading:i}=(n==null?void 0:n.options.meta)??{},o=x.useMemo(()=>{const{enableRowSelection:s,enableMultiRowSelection:d}=(n==null?void 0:n.options)??{};return s||d?1:0},[n==null?void 0:n.options]),r=x.useCallback((s,d)=>{if(d===o)return p=>{var g,u;p.stopPropagation(),(u=(g=n==null?void 0:n.options)==null?void 0:g.onRowClick)==null||u.call(g,s)}},[o,n]),a=x.useCallback(s=>d=>{d.stopPropagation(),s.toggleExpanded()},[]),c=x.useCallback(s=>{const{meta:d}=(n==null?void 0:n.options)??{},{onExpand:p=void 0}=d??{};return p?p(s):null},[n]);return i?t.jsx("tbody",{children:t.jsx("tr",{className:"row-loading","data-testid":"row-loading",children:t.jsx("td",{colSpan:(n==null?void 0:n.getVisibleLeafColumns().length)??0,children:t.jsx(y,{alignItems:"center",display:"flex",justify:"center",width:"100%",children:t.jsx(yn,{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(z,{color:e.palette.gray[800],size:"sm",textAlign:"center",children:"No data to display"})})})}):t.jsx("tbody",{children:n==null?void 0:n.getRowModel().rows.map(s=>t.jsxs(x.Fragment,{children:[t.jsx("tr",{"aria-expanded":s.getIsExpanded(),"data-testid":`row-${s.id}`,children:s.getVisibleCells().map((d,p)=>t.jsx("td",{className:p===o&&n.options.onRowClick?"clickable":"","data-testid":`cell-${d.id}`,onClick:r(s,p),children:t.jsxs(es,{$width:`${d.column.getSize()}`,children:[p===o&&s.getCanExpand()?t.jsx("button",{onClick:a(s),style:{cursor:"pointer",marginRight:"1rem"},children:t.jsx(E,{icon:s.getIsExpanded()?"angle-up":"angle-down",iconSize:"xs",iconType:"fa-light"})}):void 0,l.flexRender(d.column.columnDef.cell,d.getContext())]})},d.id))}),s.getIsExpanded()?t.jsx("tr",{"data-testid":`row-${s.id}-expand`,id:"description",children:t.jsx("td",{colSpan:100,children:c(s)})}):void 0]},s.id))})},En=()=>{const{containerRef:e,hidden:n,elementName:i,handleUnselectAll:o,onKeyDown:r,selected:a,tableSize:c,tableRef:s}=x.useContext(q);return t.jsxs("div",{ref:e,children:[n?void 0:t.jsx(Xa,{$width:c,children:t.jsxs("div",{children:[t.jsx("b",{children:`${a} ${i} `}),`${a===1?"has":"have"} been selected. `,t.jsx("span",{onClick:o,onKeyDown:r,role:"link",tabIndex:0,children:"Unselect all"})]})}),t.jsxs("table",{ref:s,children:[t.jsx(In,{}),t.jsx(Tn,{})]})]})},kt=l.st(M)`
|
|
2866
2866
|
${({theme:e,$padding:n})=>`
|
|
2867
2867
|
background-color: ${e.palette.white};
|
|
2868
2868
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2888,7 +2888,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2888
2888
|
background-color: ${e.palette.gray[100]};
|
|
2889
2889
|
}
|
|
2890
2890
|
`}
|
|
2891
|
-
`,Rn=()=>{const{table:e}=x.useContext(q),{pagination:{pageIndex:n}={pageIndex:0}}=(e==null?void 0:e.getState())??{},i=(e==null?void 0:e.getPageCount())??0,o=x.useCallback(()=>{e==null||e.setPageIndex(n+1)},[n,e]),r=x.useCallback(()=>{e==null||e.previousPage()},[e]);return t.jsxs(y,{alignItems:"center",display:"flex",gap:.5,children:[t.jsx(kt,{$padding:"4px 6px",disabled:!(e!=null&&e.getCanPreviousPage()),icon:"chevron-left",iconSize:"xxs",id:"go-previous",onClick:r,variant:"ghost"}),t.jsx(kt,{$padding:"4px 6px",disabled:n>i-2,icon:"chevron-right",iconSize:"xxs",id:"go-next",onClick:o,variant:"ghost"})]})},
|
|
2891
|
+
`,Rn=()=>{const{table:e}=x.useContext(q),{pagination:{pageIndex:n}={pageIndex:0}}=(e==null?void 0:e.getState())??{},i=(e==null?void 0:e.getPageCount())??0,o=x.useCallback(()=>{e==null||e.setPageIndex(n+1)},[n,e]),r=x.useCallback(()=>{e==null||e.previousPage()},[e]);return t.jsxs(y,{alignItems:"center",display:"flex",gap:.5,children:[t.jsx(kt,{$padding:"4px 6px",disabled:!(e!=null&&e.getCanPreviousPage()),icon:"chevron-left",iconSize:"xxs",id:"go-previous",onClick:r,variant:"ghost"}),t.jsx(kt,{$padding:"4px 6px",disabled:n>i-2,icon:"chevron-right",iconSize:"xxs",id:"go-next",onClick:o,variant:"ghost"})]})},ts=10,ns=20,is=50,os=100,Nn=()=>{const e=l.Je(),{table:n}=x.useContext(q),i=(n==null?void 0:n.getRowCount())??0,[o,r]=x.useState(!1),[a,c]=x.useState((n==null?void 0:n.getState().pagination.pageSize)??10),{refs:s,floatingStyles:d}=l.useFloating$1({middleware:[l.offset({mainAxis:4})],open:o,placement:"top-end",whileElementsMounted:l.autoUpdate}),p=x.useMemo(()=>l.transform([ts,ns,is,os],(h,b)=>{(b<=i||h.length===0)&&h.push(b)},[]),[i]),g=x.useCallback(()=>{o&&r(!1)},[o]),u=x.useCallback(()=>{r(h=>!h)},[]),f=x.useCallback(h=>()=>{c(h),n==null||n.setPageSize(h),r(!1)},[n,c]);return ne(s.reference.current,()=>{r(!1)},!0,s.floating.current),x.useEffect(()=>(window.addEventListener("scrollend",g,!0),()=>{window.removeEventListener("scrollend",g,!0)}),[g]),t.jsxs(x.Fragment,{children:[t.jsxs(y,{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(z,{pr:.25,size:"sm",children:a}),t.jsx(M,{color:e.palette.gray[400],icon:o?"chevron-up":"chevron-down",iconSize:"xxs",id:"paginator-dropdown",onClick:u,ref:s.setReference,variant:"ghost"})]}),o?t.jsx(y,{bgColor:e.palette.white,border:`1px solid ${e.palette.gray[200]}`,borderRadius:e.spacing[.5],display:"flex",flexDirection:"column",px:.25,py:.25,ref:s.setFloating,shadow:"md",style:d,children:p.map(h=>{const b=f(h);return t.jsx(y,{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(z,{color:a===h?e.palette.white:e.palette.gray[600],size:"sm",textAlign:"center",children:h})},h)})}):void 0]})},Fn=()=>{const{table:e}=x.useContext(q),{pagination:{pageIndex:n,pageSize:i}={pageIndex:0,pageSize:10}}=(e==null?void 0:e.getState())??{},o=(e==null?void 0:e.getRowCount())??0,r=x.useCallback((a,c,s)=>{if(s===0)return"0 of 0";if(c*a>=s)return`${s} of ${s}`;const d=c*a+1,p=Math.min(c*(a+1),s);return`${d}-${p} of ${s}`},[]);return t.jsx(z,{display:"inline-block",fontWeight:"bold",size:"sm",children:r(n,i,o)})},Dn=({children:e})=>t.jsxs(Qa,{children:[t.jsxs("div",{className:"pagination-container",children:[t.jsx(Fn,{}),t.jsx(Nn,{}),t.jsx(Rn,{})]}),e]}),Ln=({children:e})=>t.jsx("div",{className:"footer-container",children:e}),rs=l.st.div.attrs({className:"search-container"})`
|
|
2892
2892
|
${({theme:e})=>`
|
|
2893
2893
|
display: flex;
|
|
2894
2894
|
flex-direction: column;
|
|
@@ -2935,7 +2935,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2935
2935
|
}
|
|
2936
2936
|
}
|
|
2937
2937
|
`}
|
|
2938
|
-
`,
|
|
2938
|
+
`,as=l.st.div.attrs({className:"controls-container"})`
|
|
2939
2939
|
display: flex;
|
|
2940
2940
|
flex: 1 0 50%;
|
|
2941
2941
|
|
|
@@ -2951,7 +2951,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2951
2951
|
justify-content: flex-end;
|
|
2952
2952
|
width: 100%;
|
|
2953
2953
|
}
|
|
2954
|
-
`,
|
|
2954
|
+
`,ss=l.st.div`
|
|
2955
2955
|
display: flex;
|
|
2956
2956
|
flex-wrap: wrap;
|
|
2957
2957
|
width: 100%;
|
|
@@ -2966,7 +2966,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
2966
2966
|
.highlight-container ~ .controls-container {
|
|
2967
2967
|
flex: 1 0 100%;
|
|
2968
2968
|
}
|
|
2969
|
-
`,
|
|
2969
|
+
`,ls=500,An=({children:e})=>{const{table:n}=x.useContext(q),{onSearch:i,search:o,searchPlaceholder:r}=(n==null?void 0:n.options.meta)??{},a=x.useRef(null);x.useEffect(()=>{o===""&&(a.current.value="")},[o]);const c=tt(s=>{i==null||i(s.target.value)},ls);return t.jsxs(ss,{children:[i===void 0?void 0:t.jsx(rs,{children:t.jsx(ae,{name:"search",onChange:c,placeholder:r,ref:a})}),e]})},Pn=({children:e})=>t.jsx(y,{display:"flex",flexDirection:"column",children:t.jsx("div",{className:"caption-container",children:e})}),Mn=({children:e})=>t.jsx(as,{children:e}),On=({children:e})=>t.jsx("div",{className:"highlight-container",children:e}),cs=160,Wn=({children:e,table:n})=>{var f;const i=x.useRef(null),o=x.useRef(null),{id:r}=n.options.meta??{},{enableMultiRowSelection:a}=(n==null?void 0:n.options)??{},c=Object.keys(n.getState().rowSelection).length,s=c===1?"item":"items",d=c===0||!a,p=Math.max(((f=i.current)==null?void 0:f.clientWidth)??0,n.getTotalSize()+cs),g=x.useCallback(()=>{n.resetRowSelection()},[n]),u=x.useCallback(h=>{h.key==="Enter"&&g()},[g]);return x.useEffect(()=>{n.setPageIndex(0)},[n]),t.jsx(q.Provider,{value:{containerRef:i,elementName:s,handleUnselectAll:g,hidden:d,onKeyDown:u,selected:c,tableSize:p,tableRef:o,table:n},children:t.jsx(qa,{id:r,children:e})})},ds=Object.assign(Wn,{Caption:Pn,Columns:zn,Content:En,Controls:Mn,Export:Sn,Footer:Dn,FooterContent:Ln,Highlighted:On,Options:An}),ps=l.st.button`
|
|
2970
2970
|
${({theme:e})=>`
|
|
2971
2971
|
align-items: center;
|
|
2972
2972
|
background-color: ${e.palette.white};
|
|
@@ -3008,7 +3008,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
3008
3008
|
background-color: ${e.palette.gray[100]};
|
|
3009
3009
|
}
|
|
3010
3010
|
`}
|
|
3011
|
-
`,
|
|
3011
|
+
`,gs={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},us=({disabled:e=!1,icon:n,id:i,label:o,name:r,onClick:a,type:c="button",variant:s})=>{const d=l.Je(),p=t.jsxs(ps,{"aria-label":r??void 0,className:s,disabled:e,id:i,onClick:a,type:c,children:[t.jsx(E,{clickable:!1,icon:n??gs[s].icon,iconSize:r===void 0?"xxs":"xs",iconType:"fa-light"}),r??void 0]});return t.jsxs(y,{alignItems:"center",display:"flex",children:[p,o&&t.jsx(z,{color:d.palette.gray[800],ml:.5,size:"sm",children:o})]})},xs=l.st.div`
|
|
3012
3012
|
${({theme:e,$size:n})=>`
|
|
3013
3013
|
align-items: center;
|
|
3014
3014
|
background-color: ${e.palette.white};
|
|
@@ -3031,7 +3031,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
3031
3031
|
border: 1px solid ${e.palette.gray[600]};
|
|
3032
3032
|
}
|
|
3033
3033
|
`}
|
|
3034
|
-
`,
|
|
3034
|
+
`,fs=l.st.div`
|
|
3035
3035
|
${({theme:e,$size:n})=>`
|
|
3036
3036
|
display: ${n==="long"?"flex":"block"};
|
|
3037
3037
|
flex-direction: column;
|
|
@@ -3081,7 +3081,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
3081
3081
|
transform: translateX(-50%);
|
|
3082
3082
|
}
|
|
3083
3083
|
`}
|
|
3084
|
-
`,Hn=({date:e,description:n,title:i,size:o="long"})=>{const r=l.Je();return t.jsxs(
|
|
3084
|
+
`,Hn=({date:e,description:n,title:i,size:o="long"})=>{const r=l.Je();return t.jsxs(xs,{$size:o,className:"timeline-card",children:[t.jsx(z,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(z,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((a,c)=>{const s=`${a}#${c}`;return t.jsx(z,{size:"sm",textAlign:"center",wordBreak:"break-word",children:a},s)})})]})},hs=({items:e})=>{const n=x.useRef(null),[i,o]=x.useState("long");return x.useEffect(()=>{n.current&&o(n.current.offsetWidth<=1100?"small":"long")},[]),t.jsx(y,{ref:n,width:"100%",children:t.jsx(fs,{$size:i,children:e.map((r,a)=>t.jsx(Hn,{date:r.date,description:r.description,size:i,title:r.title},`${r.title}-${a}`))})})},bs={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:""},ys=({run:e,steps:n,onFinish:i})=>{const[o,r]=x.useState(e),[a,c]=x.useState(0),s=x.useCallback(d=>{const{action:p,index:g,status:u,type:f}=d;[l.EVENTS.STEP_AFTER,l.EVENTS.TARGET_NOT_FOUND].includes(f)?c(g+(p===l.ACTIONS.PREV?-1:1)):([l.STATUS.FINISHED,l.STATUS.SKIPPED].includes(u)||p==="close")&&(r(!1),l.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(l.components_default,{callback:s,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:o,spotlightClicks:!0,stepIndex:a,steps:n,styles:{buttonNext:{display:a===n.length-1?"none":"block"},options:{zIndex:9999}}})},Bn=t.jsx(y,{alignItems:"center",bgColor:N.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(z,{bgGradient:N.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),$s=l.st.div`
|
|
3085
3085
|
${({className:e,theme:n})=>`
|
|
3086
3086
|
align-items: flex-start;
|
|
3087
3087
|
border-radius: ${n.spacing[1]};
|
|
@@ -3146,5 +3146,5 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[a,n,e]),u=x.useMemo(g,[g]),f=x.useCallback(a
|
|
|
3146
3146
|
width: 320px;
|
|
3147
3147
|
}
|
|
3148
3148
|
`}
|
|
3149
|
-
`;const
|
|
3150
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},
|
|
3149
|
+
`;const ms={advanced:{title:"Advanced plan",benefits:"Leverage vulnerability scanning + AI + expert intelligence",buttonText:"Contact sales",description:"For teams that want to discover risk exposure with speed and accuracy.",priceGroup:"$1,579"},essential:{title:"Essential plan",benefits:"Leverage vulnerability scanning",buttonText:"Start a 21-day free trial",description:`For teams that want to discover risk exposure quickly
|
|
3150
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},ws=({description:e,onClick:n,plan:i})=>{const{title:o,description:r,benefits:a,buttonText:c}=ms[i],s=e??r;return t.jsxs($s,{className:i,children:[t.jsxs(y,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&Bn,t.jsx(V,{color:N.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:o}),t.jsx(z,{color:N.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:a})]}),t.jsx(z,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:s}),t.jsx(P,{onClick:n,variant:"primary",children:c})]})};exports.Accordion=wi;exports.AccordionContent=zt;exports.ActionButton=Je;exports.Alert=Ei;exports.AppliedFilter=pe;exports.AppliedFilters=$r;exports.ArrayField=Be;exports.Avatar=Pi;exports.BaseButtonComponent=Ke;exports.BaseComponent=ke;exports.BaseSpanComponent=qe;exports.BaseTextComponent=Ze;exports.Body=Tn;exports.Button=P;exports.Button$1=Te;exports.ButtonToolbarCenter=lo;exports.ButtonToolbarRow=po;exports.ButtonToolbarStartRow=co;exports.Calendar=Lt;exports.Calendar$1=Wt;exports.Calendar$2=Bt;exports.CalendarCell=Dt;exports.CalendarGrid=Fe;exports.CaptionContent=Pn;exports.CardHeader=Ne;exports.CardWithImage=Wi;exports.CardWithInput=Eo;exports.CardWithOptions=sn;exports.CardWithSelector=Ao;exports.CardWithSwitch=Oo;exports.Carousel=Uo;exports.Checkbox=oe;exports.CodeSnippet=Go;exports.Col=He;exports.ColumFilters=fn;exports.ColumnToggle=zn;exports.ColumnsModal=dn;exports.ComboBox=Qe;exports.ComboBoxField=We;exports.Container=y;exports.ControlsContent=Mn;exports.CopyButton=Sr;exports.CustomThemeProvider=ui;exports.DateField=Pt;exports.DateSelector=xe;exports.Description=vn;exports.Dialog=Le;exports.Divider=re;exports.Dropdown=Tr;exports.Editable=so;exports.EmptyButton=Ve;exports.EmptyState=Fr;exports.ExportCsv=Sn;exports.FilePreview=Rt;exports.FilterControl=pn;exports.FilterForm=Ue;exports.FilterFormContent=gn;exports.FiltersList=xn;exports.FooterContent=Ln;exports.Form=Ar;exports.Gap=xo;exports.GridContainer=Mr;exports.GroupSelector=Wr;exports.Head=In;exports.Header=De;exports.Header$1=en;exports.Heading=V;exports.HighlightedContent=On;exports.Icon=E;exports.IconButton=M;exports.InProgressIcon=wn;exports.IndicatorCard=Hr;exports.InfoSidebar=Br;exports.InnerForm=Dr;exports.Input=Ae;exports.InputArray=ho;exports.InputDate=Ot;exports.InputDateRange=Ht;exports.InputDateTime=ao;exports.InputFile=mo;exports.InputNumber=Jt;exports.InputNumberRange=Ut;exports.InputTags=jo;exports.Label=Xe;exports.Link=Z;exports.ListItem=ze;exports.ListItemsWrapper=rn;exports.LittleFlag=Jr;exports.Loading=yn;exports.LocationCode=qt;exports.Logo=Qr;exports.Lottie=ta;exports.MemoizedImage=ee;exports.Menu=na;exports.MenuItem=kn;exports.MessageBanner=oa;exports.Modal=rt;exports.ModalConfirm=tn;exports.ModalFooter=Qt;exports.Notification=la;exports.NotificationSign=nn;exports.NumberField=Re;exports.NumberInput=pa;exports.OAuthSelector=ua;exports.Option=Nt;exports.OptionBoxContainer=at;exports.OptionContainer=Ge;exports.OptionContainer$1=bn;exports.OutlineContainer=J;exports.PaginationControl=Rn;exports.PaginationDropdown=Nn;exports.PaginationSize=Fn;exports.PhoneInput=Io;exports.PlanCard=ws;exports.PopUp=Sa;exports.Popover=Ce;exports.PremiumFeature=$n;exports.PreviewPanel=an;exports.PriorityScore=fa;exports.ProgressBar=mn;exports.ProgressIndicator=Ca;exports.ProgressStep=va;exports.RadioButton=nt;exports.RecommendedTag=Bn;exports.Row=_t;exports.ScrollUpButton=Ia;exports.Search=ae;exports.SearchPanel=cn;exports.SeverityBadge=Ea;exports.SeverityOverview=Na;exports.SeverityOverviewBadge=ge;exports.ShowOnHover=Da;exports.SlideOutMenu=Aa;exports.Slider=Ba;exports.SortIcon=Ye;exports.Span=ue;exports.StepLapse=Ya;exports.Tab=on;exports.Table=ds;exports.Table$1=Wn;exports.TableButton=us;exports.TableContent=En;exports.TableContext=q;exports.TableFooter=Dn;exports.TableOptions=An;exports.Tabs=ot;exports.Tag=G;exports.TagsField=_e;exports.Text=z;exports.TextArea=To;exports.Thumb=Cn;exports.TimeField=Mt;exports.TimeLine=hs;exports.TimeLineCard=Hn;exports.Toggle=Kt;exports.Tooltip=U;exports.Tour=ys;exports.baseStep=bs;exports.formatCheckValues=hn;exports.getStyledConfig=ve;exports.hiddenProps=Ct;exports.icons=pi;exports.setBorder=$e;exports.setDisplay=me;exports.setInteraction=je;exports.setMargin=be;exports.setPadding=he;exports.setPosition=ye;exports.setText=we;exports.theme=N;exports.uniqueIcons=gi;exports.useCarousel=Vt;exports.useClickOutside=ne;exports.useCloudinaryImage=Gt;exports.useColumnsModal=Yt;exports.useConditionsDialog=vr;exports.useConfirmDialog=kr;exports.useDebouncedCallback=tt;exports.useFilterForm=un;exports.useFilters=jr;exports.useModal=Se;exports.useSearch=No;exports.variantBuilder=K;
|