@fluidattacks/design 3.20.2-pr.1 → 3.20.2-pr.3
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/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/link/types.d.ts +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/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/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-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-73Jvay7k.js → components-D-bpuAkv.js} +136 -136
- package/dist/{components-BtyCUsHI.mjs → components-xIZ5FZRb.mjs} +1496 -1479
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),f=require("react"),s=require("./vendor-DOfNkUnQ.js"),re=require("react-dom"),We=require("react-router-dom"),q=e=>({getVariant:(n,i)=>e(n)[i]}),$t=["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"],zn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},In={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},Tn={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},Fn={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},Nn={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},Dn={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},En={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},Rn={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},Ln={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"}},An={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)"},Pn={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},Wn={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"},Bn=["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"],On=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],F={typography:Ln,shadows:An,breakpoints:Pn,spacing:Wn,palette:{primary:In,complementary:Tn,error:Fn,info:En,warning:Nn,success:Dn,black:"#0c111d",white:"#ffffff",gray:zn,gradients:Rn}},Hn=({children:e})=>t.jsx(s.Xe,{theme:F,children:e}),D=(e,n)=>n===void 0?"":`${e}: ${n};`,fe=e=>{const n=e.py??e.pt??0,i=e.px??e.pr??0,r=e.py??e.pb??0,a=e.px??e.pl??0;if(e.padding){const[o,l,c,d]=e.padding;return`padding: ${F.spacing[o]} ${F.spacing[l]} ${F.spacing[c]} ${F.spacing[d]};`}return`padding: ${F.spacing[n]} ${F.spacing[i]} ${F.spacing[r]} ${F.spacing[a]};`},he=e=>{const n=e.my??e.mt??0,i=e.mx??e.mr??0,r=e.my??e.mb??0,a=e.mx??e.ml??0;if(e.margin){const[o,l,c,d]=e.margin;return`margin: ${F.spacing[o]} ${F.spacing[l]} ${F.spacing[c]} ${F.spacing[d]};`}return`margin: ${F.spacing[n]} ${F.spacing[i]} ${F.spacing[r]} ${F.spacing[a]};`},be=e=>{const n=D("position",e.position),i=D("top",e.top),r=D("right",e.right),a=D("bottom",e.bottom),o=D("left",e.left),l=D("z-index",e.zIndex);return`
|
|
2
2
|
${n}
|
|
3
3
|
${i}
|
|
4
|
-
${a}
|
|
5
4
|
${r}
|
|
5
|
+
${a}
|
|
6
6
|
${o}
|
|
7
7
|
${l}
|
|
8
|
-
`},ye=e=>{const n=D("border",e.border),i=D("border-top",e.borderTop),
|
|
8
|
+
`},ye=e=>{const n=D("border",e.border),i=D("border-top",e.borderTop),r=D("border-right",e.borderRight),a=D("border-bottom",e.borderBottom),o=D("border-left",e.borderLeft),l=D("border-color",e.borderColor),c=D("border-radius",e.borderRadius);return`
|
|
9
9
|
${n}
|
|
10
10
|
${i}
|
|
11
|
-
${a}
|
|
12
11
|
${r}
|
|
12
|
+
${a}
|
|
13
13
|
${o}
|
|
14
14
|
${l}
|
|
15
15
|
${c}
|
|
16
|
-
`},
|
|
17
|
-
${Hn(e.scroll)}
|
|
16
|
+
`},Mn=e=>e.includes("x")?"overflow-x: auto;":"",_n=e=>e.includes("y")?"overflow-y: auto;":"",$e=e=>{const n=e.scroll?`
|
|
18
17
|
${Mn(e.scroll)}
|
|
19
|
-
|
|
18
|
+
${_n(e.scroll)}
|
|
19
|
+
`:"",i=D("visibility",e.visibility),r=D("display",e.display),a=D("height",e.height),o=D("width",e.width),l=D("max-height",e.maxHeight),c=D("max-width",e.maxWidth),d=D("min-height",e.minHeight),g=D("min-width",e.minWidth),p=D("box-shadow",e.shadow?F.shadows[e.shadow]:void 0),u=D("gap",e.gap===void 0?void 0:F.spacing[e.gap]),x=D("background-color",e.bgColor),h=D("background",e.bgGradient),b=D("flex-direction",e.flexDirection),y=D("flex-grow",e.flexGrow),m=D("justify-content",e.justify),j=D("justify-self",e.justifySelf),w=D("align-items",e.alignItems),v=D("align-self",e.alignSelf),k=D("flex-wrap",e.wrap);return`
|
|
20
20
|
${n}
|
|
21
21
|
${i}
|
|
22
|
-
${a}
|
|
23
22
|
${r}
|
|
23
|
+
${a}
|
|
24
24
|
${o}
|
|
25
25
|
${l}
|
|
26
26
|
${c}
|
|
27
27
|
${d}
|
|
28
28
|
${g}
|
|
29
29
|
${p}
|
|
30
|
-
${
|
|
30
|
+
${x}
|
|
31
31
|
${h}
|
|
32
32
|
${u}
|
|
33
33
|
${b}
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
${w}
|
|
38
38
|
${v}
|
|
39
39
|
${k}
|
|
40
|
-
`},me=e=>{const n=D("color",e.color),i=D("font-family",e.fontFamily),
|
|
40
|
+
`},me=e=>{const n=D("color",e.color),i=D("font-family",e.fontFamily),r=D("font-size",e.fontSize),a=D("font-weight",e.fontWeight),o=D("line-spacing",e.letterSpacing),l=D("line-height",e.lineSpacing),c=D("text-align",e.textAlign),d=D("text-decoration",e.textDecoration),g=D("text-overflow",e.textOverflow),p=D("white-space",e.whiteSpace),u=D("word-break",e.wordBreak),x=D("word-wrap",e.wordWrap);return`
|
|
41
41
|
${n}
|
|
42
42
|
${i}
|
|
43
|
-
${a}
|
|
44
43
|
${r}
|
|
44
|
+
${a}
|
|
45
45
|
${o}
|
|
46
46
|
${l}
|
|
47
47
|
${c}
|
|
@@ -49,15 +49,15 @@
|
|
|
49
49
|
${g}
|
|
50
50
|
${p}
|
|
51
51
|
${u}
|
|
52
|
-
${
|
|
53
|
-
`},we=e=>{const n=D("cursor",e.cursor),i=D("border-color",e.borderColorHover),
|
|
52
|
+
${x}
|
|
53
|
+
`},we=e=>{const n=D("cursor",e.cursor),i=D("border-color",e.borderColorHover),r=D("background-color",e.bgColorHover),a=D("box-shadow",e.shadowHover===void 0?void 0:F.shadows[e.shadowHover]),o=D("transition",e.transition);return`
|
|
54
54
|
${n}
|
|
55
55
|
|
|
56
56
|
&:hover {
|
|
57
57
|
${o||"transition: all 0.2s;"}
|
|
58
58
|
${i}
|
|
59
|
-
${a}
|
|
60
59
|
${r}
|
|
60
|
+
${a}
|
|
61
61
|
}
|
|
62
62
|
`},je={shouldForwardProp:e=>!$t.includes(e)},ve=s.st.div.withConfig(je)`
|
|
63
63
|
${fe}
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
${me}
|
|
92
92
|
${ye}
|
|
93
93
|
${we}
|
|
94
|
-
`,
|
|
95
|
-
${({theme:e,$center:n=!1,$styleMd:i,$styleSm:
|
|
94
|
+
`,Jn=s.st(ve)`
|
|
95
|
+
${({theme:e,$center:n=!1,$styleMd:i,$styleSm:r})=>`
|
|
96
96
|
${n?"margin: auto;":""}
|
|
97
97
|
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
98
98
|
scroll-padding: ${e.spacing[.5]};
|
|
@@ -105,21 +105,21 @@
|
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
108
|
-
${
|
|
108
|
+
${r};
|
|
109
109
|
}
|
|
110
110
|
`}
|
|
111
|
-
`,$=
|
|
112
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:
|
|
111
|
+
`,$=f.forwardRef(function({as:n="div",center:i,children:r,id:a,onHover:o,onLeave:l,styleMd:c,styleSm:d,...g},p){return t.jsx(Jn,{$center:i,$styleMd:c,$styleSm:d,as:n,id:a,onMouseLeave:l,onMouseOver:o,ref:p,...g,children:r})}),Un=s.st(Ye)`
|
|
112
|
+
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:r="block",$fontFamily:a=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$overflow:g="unset",$size:p,$sizeMd:u,$sizeSm:x,$textFill:h="unset",$whiteSpace:b="pre-line",$wordBreak:y="normal"})=>`
|
|
113
113
|
background: ${n};
|
|
114
114
|
color: ${i};
|
|
115
|
-
display: ${
|
|
116
|
-
font-family: ${
|
|
115
|
+
display: ${r};
|
|
116
|
+
font-family: ${a};
|
|
117
117
|
font-size: ${e.typography.heading[p]};
|
|
118
118
|
font-weight: ${e.typography.weight[o]};
|
|
119
119
|
letter-spacing: ${l};
|
|
120
120
|
line-height: ${e.spacing[c]};
|
|
121
121
|
overflow: ${g};
|
|
122
|
-
width: ${
|
|
122
|
+
width: ${r==="block"?"100%":"auto"};
|
|
123
123
|
white-space: ${b};
|
|
124
124
|
word-break: ${y};
|
|
125
125
|
background-clip: text;
|
|
@@ -134,23 +134,23 @@
|
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
137
|
-
font-size: ${e.typography.heading[
|
|
137
|
+
font-size: ${e.typography.heading[x??p]};
|
|
138
138
|
line-height: ${e.spacing[d??c]};
|
|
139
139
|
}
|
|
140
140
|
`}
|
|
141
141
|
`,mt=s.st(Ye)`
|
|
142
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:
|
|
142
|
+
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:r="block",$fontFamily:a=e.typography.type.primary,$fontWeight:o="regular",$fontStyle:l="normal",$letterSpacing:c=0,$lineSpacing:d=1.25,$lineSpacingSm:g,$overflow:p="unset",$size:u,$sizeMd:x,$sizeSm:h,$textFill:b="unset",$whiteSpace:y="pre-line",$wordBreak:m="normal"})=>`
|
|
143
143
|
background: ${n};
|
|
144
144
|
color: ${i};
|
|
145
|
-
display: ${
|
|
146
|
-
font-family: ${
|
|
145
|
+
display: ${r};
|
|
146
|
+
font-family: ${a};
|
|
147
147
|
font-size: ${e.typography.text[u]};
|
|
148
148
|
font-style: ${l};
|
|
149
149
|
font-weight: ${e.typography.weight[o]};
|
|
150
150
|
letter-spacing: ${c};
|
|
151
151
|
line-height: ${e.spacing[d]};
|
|
152
152
|
overflow: ${p};
|
|
153
|
-
width: ${
|
|
153
|
+
width: ${r==="block"?"100%":"auto"};
|
|
154
154
|
white-space: ${y};
|
|
155
155
|
word-break: ${m};
|
|
156
156
|
background-clip: text;
|
|
@@ -161,7 +161,7 @@
|
|
|
161
161
|
and (min-width: ${e.breakpoints.mobile})
|
|
162
162
|
and (max-width: ${e.breakpoints.tablet})
|
|
163
163
|
{
|
|
164
|
-
font-size: ${e.typography.text[
|
|
164
|
+
font-size: ${e.typography.text[x??u]};
|
|
165
165
|
}
|
|
166
166
|
|
|
167
167
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
@@ -169,24 +169,24 @@
|
|
|
169
169
|
line-height: ${e.spacing[g??d]};
|
|
170
170
|
}
|
|
171
171
|
`}
|
|
172
|
-
`,
|
|
173
|
-
${({theme:e,$color:n=e.palette.gray[600],$content:i=void 0,$display:
|
|
172
|
+
`,Gn=s.st(qe)`
|
|
173
|
+
${({theme:e,$color:n=e.palette.gray[600],$content:i=void 0,$display:r="inline",$fontWeight:a="regular",$size:o,$lineSpacing:l=1.25})=>`
|
|
174
174
|
color: ${n};
|
|
175
|
-
display: ${
|
|
175
|
+
display: ${r};
|
|
176
176
|
font-family: ${e.typography.type.primary};
|
|
177
177
|
font-size: ${e.typography.text[o]};
|
|
178
|
-
font-weight: ${e.typography.weight[
|
|
178
|
+
font-weight: ${e.typography.weight[a]};
|
|
179
179
|
line-height: ${e.spacing[l]};
|
|
180
180
|
max-width: 100%;
|
|
181
|
-
width: ${
|
|
181
|
+
width: ${r==="block"?"100%":"auto"};
|
|
182
182
|
|
|
183
183
|
${i===void 0?"":`&::after { content: "${i}"; }`}
|
|
184
184
|
`}
|
|
185
|
-
`,U=
|
|
186
|
-
${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:
|
|
185
|
+
`,U=f.forwardRef(function({bgGradient:n,children:i,className:r,color:a,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:g,lineSpacingSm:p,overflow:u,size:x,sizeMd:h,sizeSm:b,textFill:y,whiteSpace:m,wordBreak:j,...w},v){return t.jsx(Un,{$bgGradient:n,$color:a,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:g,$lineSpacingSm:p,$overflow:u,$size:x,$sizeMd:h,$sizeSm:b,$textFill:y,$whiteSpace:m,$wordBreak:j,className:r,ref:v,...w,children:i})}),pe=f.forwardRef(function({children:n,color:i,content:r,display:a,fontFamily:o,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:g,size:p,sizeMd:u,sizeSm:x,...h},b){return t.jsx(Gn,{$color:i,$content:r,$display:a,$fontFamily:o,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:g,$size:p,$sizeMd:u,$sizeSm:x,ref:b,...h,children:n})}),T=f.forwardRef(function({bgGradient:n,children:i,className:r,color:a,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:g,lineSpacingSm:p,overflow:u,size:x,sizeMd:h,sizeSm:b,textFill:y,whiteSpace:m,wordBreak:j,fontStyle:w,...v},k){return t.jsx(mt,{$bgGradient:n,$color:a,$display:o,$fontFamily:l,$fontStyle:w,$fontWeight:c,$letterSpacing:d,$lineSpacing:g,$lineSpacingSm:p,$overflow:u,$size:x,$sizeMd:h,$sizeSm:b,$textFill:y,$whiteSpace:m,$wordBreak:j,className:r,ref:k,...v,children:i})}),wt=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(T,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return t.jsxs($,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[n,e.extraElement?t.jsx($,{children:e.extraElement}):void 0]})},Vn={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},Yn=s.st(qe)`
|
|
186
|
+
${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:r,$rotation:a,$size:o,$secondaryColor:l})=>{const c=r?"":"brightness(50%)",d=r??"";return`
|
|
187
187
|
color: ${n};
|
|
188
188
|
cursor: ${e?"pointer":"inherit"};
|
|
189
|
-
font-size: ${
|
|
189
|
+
font-size: ${Vn[o]};
|
|
190
190
|
line-height: 0;
|
|
191
191
|
vertical-align: middle;
|
|
192
192
|
pointer-events: inherit;
|
|
@@ -194,7 +194,7 @@
|
|
|
194
194
|
|
|
195
195
|
> svg {
|
|
196
196
|
--fa-secondary-color: ${l};
|
|
197
|
-
transform: ${
|
|
197
|
+
transform: ${a===void 0?"":`rotate(${a}deg)`};
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
.fill-gradient-01 path {
|
|
@@ -218,7 +218,7 @@
|
|
|
218
218
|
&:hover:not([disabled]) {
|
|
219
219
|
transform: scale(1.2);
|
|
220
220
|
}
|
|
221
|
-
`;const
|
|
221
|
+
`;const N=f.forwardRef(function({clickable:n,disabled:i,hoverColor:r,icon:a,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:g,iconType:p="fa-solid",onClick:u,rotation:x,spanClass:h,secondaryColor:b,...y},m){return t.jsx(Yn,{$clickable:n,$color:l,$disabled:i,$hoverColor:r,$rotation:x,$secondaryColor:b,$size:d,className:h,"data-testid":`${a}-icon`,onClick:u,ref:m,...y,children:t.jsx("i",{className:`${p} fa-${a} ${o}`,...c!==void 0?{"data-fa-mask":c}:{},...g!==void 0?{"data-fa-transform":g}:{}})},`${p}-${a}`)}),qn=f.forwardRef(function({aligned:n="end",items:i,bgColor:r},a){const o=s.Je(),[l,c]=f.useState(i.map(g=>g.expanded??!1)),d=f.useCallback(g=>p=>{p.preventDefault(),c(u=>u.map((x,h)=>h===g?!x:x))},[]);return t.jsx($,{borderColor:o.palette.gray[200],borderTop:"1px solid",ref:a,children:i.map((g,p)=>{const u=l[p];return t.jsxs($,{bgColor:r??o.palette.white,borderBottom:"1px solid",borderColor:o.palette.gray[200],children:[t.jsx($,{"aria-controls":`panel-${g.title}`,"aria-expanded":u,"aria-label":g.title,as:"button",bgColor:r??o.palette.white,bgColorHover:o.palette.gray[100],cursor:"pointer",display:"flex",onClick:d(p),padding:[.75,.75,.75,.75],width:"100%",children:t.jsxs($,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(T,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:g.title}),t.jsx(N,{icon:u?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),u&&t.jsx(wt,{item:g})]},g.title)})})}),Kn=e=>{switch(e){case"warning":return"triangle-exclamation";case"info":return"circle-info";case"success":return"circle-check";case"error":default:return"circle-exclamation"}},{getVariant:Xn}=q(e=>({error:`
|
|
222
222
|
background: ${e.palette.error[50]};
|
|
223
223
|
border: 1px solid ${e.palette.error[500]};
|
|
224
224
|
color: ${e.palette.error[700]};
|
|
@@ -270,7 +270,7 @@
|
|
|
270
270
|
color: ${e.palette.warning[700]};
|
|
271
271
|
}
|
|
272
272
|
}
|
|
273
|
-
`})),
|
|
273
|
+
`})),Zn=s.st.div`
|
|
274
274
|
${({theme:e,$variant:n})=>`
|
|
275
275
|
background: transparent;
|
|
276
276
|
align-items: center;
|
|
@@ -290,12 +290,12 @@
|
|
|
290
290
|
background-color: transparent;
|
|
291
291
|
}
|
|
292
292
|
|
|
293
|
-
${
|
|
293
|
+
${Xn(e,n??"error")}
|
|
294
294
|
`}
|
|
295
|
-
`,
|
|
295
|
+
`,Qn=s.st.div`
|
|
296
296
|
padding-right: 4px;
|
|
297
297
|
width: 100%;
|
|
298
|
-
`,{getVariant:
|
|
298
|
+
`,{getVariant:ei}=q(e=>({ghost:`
|
|
299
299
|
background: transparent;
|
|
300
300
|
border: none;
|
|
301
301
|
color: ${e.palette.gray[800]};
|
|
@@ -370,7 +370,7 @@
|
|
|
370
370
|
color: ${e.palette.white};
|
|
371
371
|
}
|
|
372
372
|
`})),jt=s.st(Ve)`
|
|
373
|
-
${({theme:e,justify:n,$size:i,$variant:
|
|
373
|
+
${({theme:e,justify:n,$size:i,$variant:r})=>`
|
|
374
374
|
align-items: center;
|
|
375
375
|
border-radius: var(--btn-spacing);
|
|
376
376
|
cursor: pointer;
|
|
@@ -388,16 +388,16 @@
|
|
|
388
388
|
white-space: nowrap;
|
|
389
389
|
|
|
390
390
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
391
|
-
${
|
|
391
|
+
${r!=="link"?`--btn-padding-y: ${e.spacing[1]}`:""};
|
|
392
392
|
}
|
|
393
393
|
|
|
394
|
-
${
|
|
394
|
+
${ei(e,r??"primary")}
|
|
395
395
|
`}
|
|
396
|
-
`,
|
|
397
|
-
${({theme:e,borderRadius:n="4px",px:i=.5,py:
|
|
396
|
+
`,ti=s.st(jt)`
|
|
397
|
+
${({theme:e,borderRadius:n="4px",px:i=.5,py:r=.5})=>`
|
|
398
398
|
--btn-spacing: ${n};
|
|
399
399
|
--btn-padding-x: ${e.spacing[i]};
|
|
400
|
-
--btn-padding-y: ${e.spacing[
|
|
400
|
+
--btn-padding-y: ${e.spacing[r]};
|
|
401
401
|
|
|
402
402
|
align-items: center;
|
|
403
403
|
line-height: 0;
|
|
@@ -407,7 +407,7 @@
|
|
|
407
407
|
margin: 0 !important;
|
|
408
408
|
}
|
|
409
409
|
`}
|
|
410
|
-
`,
|
|
410
|
+
`,ni=s.st(ve)``,ii=s.st.div`
|
|
411
411
|
${({theme:e,$maxWidth:n="320px"})=>`
|
|
412
412
|
background-color: ${e.palette.gray[700]};
|
|
413
413
|
border-radius: 8px;
|
|
@@ -418,7 +418,7 @@
|
|
|
418
418
|
width: max-content;
|
|
419
419
|
z-index: 999999;
|
|
420
420
|
`}
|
|
421
|
-
`,G=({children:e,disabled:n=!1,display:i="inline-block",height:
|
|
421
|
+
`,G=({children:e,disabled:n=!1,display:i="inline-block",height:r,icon:a,iconColor:o,iconSize:l,id:c,maxWidth:d,nodeTip:g,place:p="bottom",tip:u="",title:x="",hide:h=u===""&&x===""&&g===void 0,width:b})=>{const y=s.Je(),[m,j]=f.useState(!1),{refs:w,floatingStyles:v,context:k}=s.useFloating({middleware:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10}),s.shift()],onOpenChange:j,open:m,placement:p,whileElementsMounted:s.autoUpdate}),C=s.useHover(k,{delay:{close:0,open:500},move:!1}),E=s.useFocus(k),I=s.useRole(k,{role:a?"label":"tooltip"}),{getReferenceProps:S,getFloatingProps:R}=s.useInteractions([C,E,I]);return n?t.jsx(f.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(ni,{...S(),display:i,height:r,id:c,ref:w.setReference,width:b,children:a?t.jsx(N,{clickable:!0,disabled:n,icon:a,iconColor:o,iconSize:l??"xxs",iconType:m?"fa-solid":"fa-light"}):e}),m&&!h&&re.createPortal(t.jsxs(ii,{...R(),$maxWidth:d,id:`floating-${c}`,ref:w.setFloating,style:v,children:[s.lodashExports.isEmpty(x)?void 0:t.jsx(T,{color:y.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:x}),s.lodashExports.isEmpty(u)?void 0:t.jsx(T,{color:y.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:u}),s.lodashExports.isEmpty(g)?void 0:g]}),document.getElementById("root")??document.body)]})},O=f.forwardRef(function({borderRadius:n,disabled:i,icon:r,iconColor:a,iconSize:o="xxs",iconTransform:l,iconType:c,id:d,justify:g="center",onClick:p,px:u,py:x,type:h="button",tooltip:b,tooltipPlace:y,value:m,variant:j="primary",...w},v){const k=t.jsx(ti,{$variant:j,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:g,onClick:p,px:u,py:x,ref:v,type:h,value:m,...w,children:t.jsx(N,{clickable:!1,icon:r,iconColor:a,iconSize:o,iconTransform:l,iconType:c})}),E=(h+(j??"")+(d??r)).replace(/ /u,"_");return b===void 0?k:t.jsx(G,{id:`${E}-tooltip`,place:y,tip:b,children:k})}),ai=f.forwardRef(function({autoHide:n=!1,children:i,closable:r=!1,iconEnabled:a=!0,onTimeOut:o,show:l=!0,time:c=8,variant:d="error",id:g,...p},u){const[x,h]=f.useState(l),b=f.useCallback(()=>{h(!1)},[]);return f.useEffect(()=>{const y=setTimeout(()=>{o==null||o(!0),n&&b()},c*1e3);return()=>{clearTimeout(y)}},[n,b,c,o]),f.useEffect(()=>{h(l)},[l,h]),t.jsx($,{display:x?"block":"none",ref:u,role:"alert",...p,children:t.jsxs(Zn,{$variant:d,id:g,children:[a?t.jsx(N,{clickable:!1,icon:Kn(d),iconSize:"xs",iconType:"fa-light"}):void 0,t.jsx(Qn,{children:i}),r?t.jsx(O,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:b,px:.125,py:.125,variant:"ghost"}):void 0]})})}),ct=s.st.div`
|
|
422
422
|
${({theme:e})=>`
|
|
423
423
|
align-items: center;
|
|
424
424
|
background-color: ${e.palette.gray[200]};
|
|
@@ -434,7 +434,7 @@
|
|
|
434
434
|
width: ${e.spacing[1.25]};
|
|
435
435
|
height: ${e.spacing[1.25]};
|
|
436
436
|
`}
|
|
437
|
-
`,
|
|
437
|
+
`,ri=s.st.div`
|
|
438
438
|
ul,
|
|
439
439
|
ol {
|
|
440
440
|
padding-top: 6px;
|
|
@@ -498,7 +498,7 @@
|
|
|
498
498
|
#menu-profile-container li div {
|
|
499
499
|
min-width: unset;
|
|
500
500
|
}
|
|
501
|
-
`,{getVariant:
|
|
501
|
+
`,{getVariant:oi}=q(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
|
+
`})),si=s.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,9 +594,9 @@
|
|
|
594
594
|
display: flex;
|
|
595
595
|
}
|
|
596
596
|
|
|
597
|
-
${
|
|
597
|
+
${oi(e,i)}
|
|
598
598
|
`}
|
|
599
|
-
`,{getVariant:
|
|
599
|
+
`,{getVariant:li}=q(e=>({highRelevance:`
|
|
600
600
|
color: ${e.palette.primary[500]};
|
|
601
601
|
|
|
602
602
|
&:hover:not([disabled]) {
|
|
@@ -630,13 +630,13 @@
|
|
|
630
630
|
text-decoration: none;
|
|
631
631
|
}
|
|
632
632
|
|
|
633
|
-
${n?`color: ${n}`:
|
|
633
|
+
${n?`color: ${n}`:li(e,i)}
|
|
634
634
|
`}
|
|
635
|
-
`,
|
|
635
|
+
`,ci=s.st.a`
|
|
636
636
|
${vt}
|
|
637
|
-
`,
|
|
637
|
+
`,di=s.st(We.Link)`
|
|
638
638
|
${vt}
|
|
639
|
-
`,K=({children:e,color:n,download:i,href:
|
|
639
|
+
`,K=({children:e,color:n,download:i,href:r,iconPosition:a="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=r.startsWith("https://"),g=t.jsx(N,{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(ci,{$color:n,$variant:c,download:i,href:r,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[a==="left"?g:void 0,e,a==="right"?g:void 0]}):t.jsxs(di,{$variant:c,download:i,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:r,children:[l!==void 0&&a==="left"?g:void 0,e,l!==void 0&&a==="right"?g:void 0]})},V=({disabled:e,icon:n,iconColor:i="inherit",iconType:r="fa-light",id:a="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:g,priority:p="default",tagTitle:u="",tagLabel:x,variant:h="default"})=>{const b=x.length>25&&s.lodashExports.isEmpty(u+o),y=`${x.slice(0,25)}...`;return t.jsxs(pe,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(si,{$fontSize:l,$variant:h,className:p,children:[n&&t.jsx(N,{icon:n,iconColor:i,iconSize:"xxs",iconType:r}),t.jsxs("span",{className:"w-full",children:[t.jsx("strong",{children:u}),t.jsx("span",{children:b?y:x}),t.jsx("strong",{className:"w-full",children:o})]}),g?t.jsx(O,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:a,onClick:g,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(K,{href:c,children:d})]})},kt=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(i)&&(i.opener=null)},P=f.forwardRef(function({children:n,disabled:i=!1,external:r=!1,fontSize:a,href:o,id:l,icon:c,iconColor:d,iconType:g,name:p,onClick:u,rightIcon:x,tag:h,type:b="button",tooltip:y,tooltipPlace:m="bottom",underline:j=!1,value:w,variant:v="primary",width:k,...C},E){const I=y!==void 0,S=`${l}-tooltip`,R=f.useCallback(()=>{o&&kt(o,r)},[r,o]),z=t.jsxs(jt,{$size:a,$variant:v,"aria-disabled":i,className:j?"underline":void 0,disabled:i,id:l,name:p,onClick:v==="link"?R:u,ref:E,type:b,value:w,width:k,...I?{"data-tooltip-id":S}:{},...C,children:[c!==void 0&&t.jsx(N,{icon:c,iconColor:d??void 0,iconSize:"xs",iconType:g??"fa-light"}),n,x||v==="link"?t.jsx(N,{icon:x??"arrow-right",iconSize:"xs",iconType:"fa-light"}):void 0,h===void 0?null:t.jsx(V,{tagLabel:h,variant:"default"})]});return I?t.jsx(G,{disabled:!I,id:S,place:m,tip:y,width:k,children:z}):z}),pi=f.forwardRef(function({children:n,onClick:i,userName:r,showIcon:a=!1,showUsername:o=!1},l){const c=!!i;return t.jsx($,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs($,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[c?t.jsxs(P,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(ct,{children:r[0].toUpperCase()}),o?t.jsx(T,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:r.split(" ")[0]}):void 0,a?t.jsx(N,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs($,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(ct,{children:r[0].toUpperCase()}),o?t.jsxs(T,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",r.split(" ")[0],"!"]}):void 0,a?t.jsx(N,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(ri,{children:n})]})})}),Ne=({authorEmail:e,date:n,description:i,descriptionColor:r,id:a,title:o,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:g})=>{const p=s.Je();return t.jsxs($,{width:"100%",children:[typeof o=="string"||g?t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,width:"100%",children:[typeof o=="string"?t.jsx(T,{color:l??p.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:o}):o,g&&t.jsx(G,{icon:"circle-info",id:a,place:"top",tip:g})]}):void 0,t.jsxs($,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(T,{color:r??p.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(T,{color:p.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(T,{color:p.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Author: ${e}`})]})]})},dt=s.st($).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
640
640
|
& img {
|
|
641
641
|
display: block;
|
|
642
642
|
}
|
|
@@ -651,8 +651,8 @@
|
|
|
651
651
|
pointer-events: none;
|
|
652
652
|
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
653
653
|
}
|
|
654
|
-
`,gi=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},ui=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,gi(n)),
|
|
655
|
-
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:
|
|
654
|
+
`,gi=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},ui=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,gi(n)),Ct=({alt:e,fileType:n,width:i="100%",opacity:r=0,src:a,height:o="auto",videoViewStatus:l})=>{const[c,d]=f.useState({start:!1,half:!1,end:!1}),g=f.useCallback(p=>{if(!l)return;const u=p.target,x=u.currentTime/u.duration*100;x>5&&x<50?(c.start||l("start"),d({start:!0,half:!1,end:!1})):x>=50&&x<99?(c.half||l("half"),d({start:!0,half:!0,end:!1})):x>=99?(c.end||l("end"),d({start:!0,half:!0,end:!0})):d({start:!1,half:!1,end:!1})},[l,c]);return n==="video"||ui(["webm"],a)?t.jsx(dt,{$opacity:r,children:t.jsx(K,{href:a,iconPosition:"hidden",children:t.jsxs("video",{controls:!0,muted:!0,onTimeUpdate:g,style:{height:o,width:i},children:[t.jsx("source",{src:a,type:"video/webm"}),a]})})}):t.jsx(dt,{$opacity:r,children:t.jsx("img",{alt:e,src:a,style:{height:o,width:i}})})},xi=({alt:e,authorEmail:n,date:i,description:r,src:a,children:o,isEditing:l,onClick:c,title:d,hideDescription:g=!1,headerType:p="image",showMaximize:u=!0,videoViewStatus:x})=>{const h=s.Je(),[b,y]=f.useState(!1),m=f.useCallback(()=>{y(!0)},[]),j=f.useCallback(()=>{y(!1)},[]);return t.jsxs($,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:h.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:m,onLeave:j,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx($,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(f.Fragment,{children:[t.jsx(Ct,{alt:e,fileType:p,height:"147px",opacity:b?.3:0,src:a,videoViewStatus:x,width:"100%"}),u?t.jsx($,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(O,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),g?null:t.jsx(Ne,{authorEmail:n,date:i,description:r,descriptionColor:h.palette.gray[600],id:`${e}-card-header`,title:d})]})},fi=s.st.div`
|
|
655
|
+
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:r="auto"})=>`
|
|
656
656
|
display: flex;
|
|
657
657
|
background-color: ${e.palette.white};
|
|
658
658
|
border-radius: ${e.spacing[.25]};
|
|
@@ -661,7 +661,7 @@
|
|
|
661
661
|
justify-content: center;
|
|
662
662
|
gap: ${e.spacing[.5]};
|
|
663
663
|
min-width: ${i};
|
|
664
|
-
min-height: ${
|
|
664
|
+
min-height: ${r};
|
|
665
665
|
padding: ${e.spacing[1]};
|
|
666
666
|
|
|
667
667
|
input {
|
|
@@ -670,7 +670,7 @@
|
|
|
670
670
|
text-align: ${n};
|
|
671
671
|
}
|
|
672
672
|
`}
|
|
673
|
-
`,Ke=({htmlFor:e,label:n,link:i,required:
|
|
673
|
+
`,Ke=({htmlFor:e,label:n,link:i,required:r,tooltip:a,weight:o="normal"})=>{const l=s.Je(),c=`${e}-tooltip`,d=a!==void 0&&!s.lodashExports.isEmpty(a);return t.jsxs("label",{className:`flex font-${o} gap-1 w-full`,htmlFor:e,children:[n,r&&t.jsx(N,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xxss"}),i?t.jsx(K,{href:i,target:"_blank"}):null,d?t.jsx(G,{display:"inline-flex",icon:"circle-info",id:c,place:"top",tip:a}):null]})},hi=s.st.div`
|
|
674
674
|
${({theme:e})=>`
|
|
675
675
|
align-items: flex-start;
|
|
676
676
|
display: inline-flex;
|
|
@@ -813,7 +813,7 @@
|
|
|
813
813
|
border: 1px solid ${e.palette.gray[600]};
|
|
814
814
|
}
|
|
815
815
|
`}
|
|
816
|
-
`,J=({children:e,id:n,error:i,helpLink:
|
|
816
|
+
`,J=({children:e,id:n,error:i,helpLink:r,helpLinkText:a="Link here",helpText:o,htmlFor:l,label:c,linkPosition:d="down",maxLength:g,required:p,tooltip:u,value:x,weight:h})=>{const b=s.Je(),y=x?x.length:0;return t.jsxs(hi,{id:n,children:[c===void 0?void 0:t.jsx(Ke,{htmlFor:l,label:c,link:d==="up"?r:void 0,required:p,tooltip:u,weight:h}),e,i||g?t.jsxs($,{display:"flex",justify:i===void 0?"end":"space-between",width:"100%",children:[i&&t.jsx(T,{className:"error-msg",color:b.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:i}),g&&t.jsx(V,{priority:"low",tagLabel:`${y}/${g}`,variant:"error"})]}):void 0,o||r?t.jsxs($,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[o&&t.jsxs(t.Fragment,{children:[t.jsx(N,{icon:"circle-info",iconColor:b.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(T,{color:b.palette.gray[400],display:"inline-block",size:"sm",children:o})]}),r&&d==="down"?t.jsx(K,{href:r,children:a}):void 0]}):void 0]})},ke=({className:e,children:n,isFilter:i=!1,popoverRef:r,state:a,triggerRef:o,...l})=>{var u;const c=f.useRef(null),d=(u=o==null?void 0:o.current)==null?void 0:u.getBoundingClientRect(),{popoverProps:g}=s.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:r??c,triggerRef:o,isNonModal:r?!0:void 0},a),p=f.useCallback(x=>{x.preventDefault()},[]);return t.jsx(s.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...g,className:e,id:"popover",onPointerDown:i?p:void 0,ref:r??c,style:{...g.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},bi=s.st.ul`
|
|
817
817
|
${({theme:e,$multiSelection:n})=>`
|
|
818
818
|
align-self: center;
|
|
819
819
|
background: ${e.palette.white};
|
|
@@ -948,7 +948,7 @@
|
|
|
948
948
|
fill: ${e.palette.white};
|
|
949
949
|
}
|
|
950
950
|
`}
|
|
951
|
-
`,ne=
|
|
951
|
+
`,ne=f.forwardRef(function({checked:n,disabled:i=!1,label:r,name:a,onChange:o,onClick:l,onFocus:c,onKeyDown:d,tooltip:g,value:p,...u},x){return t.jsxs("div",{className:"gap-1 inline-flex items-start",children:[t.jsxs($i,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":a,checked:n,"data-testid":r??p,disabled:i,id:a,name:a,onChange:o,onClick:l,onFocus:c,onKeyDown:d,ref:x,type:"checkbox",value:p,...u}),t.jsx(N,{disabled:i,icon:"check",iconSize:"sm"}),r??p]}),g===void 0?void 0:t.jsx(G,{icon:"circle-info",id:g,place:"right",tip:g})]})}),ie=(e,n,i=!1,r)=>{f.useEffect(()=>{var o;const a=l=>{e&&!e.contains(l.target)&&!(r!=null&&r.contains(l.target))&&n()};return i?(document.addEventListener("mousedown",a,!0),()=>{document.removeEventListener("mousedown",a,!0)}):((o=document.getElementById("root"))==null||o.addEventListener("mousedown",a,!0),()=>{var l;(l=document.getElementById("root"))==null||l.removeEventListener("mousedown",a,!0)})},[i,e,r,n])},St=({item:e,multiSelection:n,name:i,register:r,setInputValue:a,setValue:o,state:l,watch:c})=>{var I,S,R;const d=s.Je(),g=f.useRef(null),p=e.props.hrefLang,u=l.disabledKeys,x=Array.from(l.collection.getKeys()).filter(z=>!Array.from(u).includes(z)&&z!=="All"),{optionProps:h,isSelected:b,isFocused:y,isDisabled:m}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},l,g),j=[b?"selected":"",y?"focused":"",m?"disabled":""].join(" "),w=f.useCallback(z=>{a(""),o==null||o(`${i}Options`,""),z.currentTarget.checked&&(a(z.currentTarget.value),o==null||o(`${i}Options`,x))},[x,i,a,o]),v=f.useCallback(()=>{const z=c==null?void 0:c(`${i}Options`),L=typeof z=="string"?[z]:z;s.isEqual(x,L)&&!Array.from(u).includes("All")?(o==null||o("checkAll","All vulnerability types"),a("All vulnerability types")):(o==null||o("checkAll",""),a((L==null?void 0:L.length)<=2?L.join(", "):`${L.slice(0,2).join(", ")+`, +${L.length-2} more`}`))},[u,x,i,a,o,c]),k=e.key==="All"?t.jsx(ne,{...r==null?void 0:r("checkAll",{onChange:w}),label:(I=e.rendered)==null?void 0:I.toString(),name:"checkAll",value:(S=e.rendered)==null?void 0:S.toString()}):t.jsx(ne,{...r==null?void 0:r(`${i}Options`,{onChange:v}),label:(R=e.rendered)==null?void 0:R.toString(),name:`${i}Options`,value:e.key.toString()}),C=n&&!m?k:t.jsx(T,{color:d.palette.gray[800],size:"sm",textOverflow:"ellipsis",whiteSpace:"nowrap",children:e.rendered}),E=f.useCallback(z=>{var L;z.preventDefault(),a(((L=e.rendered)==null?void 0:L.toString())??""),l.setSelectedKey(e.key),setTimeout(()=>{l.setOpen(!1)},50),kt(p)},[p,e.key,e.rendered,l,a]);return ie(document.getElementsByClassName("dropdown")[0],()=>{n&&l.close()},!0,document.getElementById("combobox")),t.jsxs(yi,{...!n&&!p?h:{},$multiSelection:n,className:j,ref:g,children:[p?t.jsx(K,{href:p,onClick:E,children:C}):C,b&&!m&&!n?t.jsx(N,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0,e.rendered===e.textValue?void 0:t.jsx(V,{tagLabel:e.textValue,variant:"inactive"})]})},Be=({field:e,disabled:n=!1,disabledKeys:i,error:r,helpLink:a,helpLinkText:o,helpText:l,label:c,loadingItems:d,name:g,multiSelection:p=!1,items:u,onBlur:x,onChange:h,placeholder:b,register:y,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>{var st;const E=s.Je(),I=n?void 0:r,S=(e==null?void 0:e.value)??v,[R,z]=f.useState(((st=u.find(A=>A.value===S))==null?void 0:st.name)??""),[L,Y]=f.useState(S),[X,te]=f.useState(u),[W,H]=f.useState(!1),{contains:B}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),oe=f.useRef(null),Ae=f.useRef(null),Pe=f.useRef(null),at=f.useRef(null),rt=f.useRef(null),bn=f.useMemo(()=>u.toSorted((A,M)=>{const _=Array.from(i??[]),se=_.includes(A.value),lt=_.includes(M.value);return se&&!lt?1:!se&<?-1:0}).map(A=>B(A.name,R)||W?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{"aria-label":A.value,hrefLang:A.href,textValue:A.tag,children:A.name},A.value):null),[B,i,R,u,W]),yn=f.useCallback(A=>{const M=A.split(/,|\s/u).slice(-1)[0].trim();z(p?M:A),A===""||A.endsWith(",")?H(!0):(H(!1),Y(_=>{const se=A===""?"":_;return e&&e.onChange(se),h&&h(A),se}),te(u.filter(_=>B(_.name,p?M:A))))},[B,u,e,p,h]),$n=f.useCallback(A=>{var M;z(((M=u.find(_=>_.value===A))==null?void 0:M.name)??""),Y(A?String(A):""),e&&e.onChange(A),h&&h(A?String(A):""),te(u)},[u,e,h]),ot=f.useCallback(A=>{A.key==="Enter"&&A.preventDefault(),H(!1)},[]),mn=f.useCallback(()=>{x&&x(),e&&e.onBlur()},[e,x]),wn=f.useCallback(()=>{H(!0)},[]),Z=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsCustomValue:p,allowsEmptyCollection:!0,disabledKeys:i,inputValue:R,items:X,menuTrigger:"focus",shouldCloseOnBlur:!p,selectedKey:L,onBlur:mn,onInputChange:yn,onKeyDown:ot,onKeyUp:wn,onOpenChange(A,M){H(A&&(M==="manual"||M==="focus")),A&&setTimeout(()=>{var _;return(_=oe.current)==null?void 0:_.focus()},50)},onSelectionChange:p?void 0:$n,children:bn}),{buttonProps:jn,inputProps:vn,listBoxProps:kn}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:R,buttonRef:Ae,id:g,inputRef:oe,label:c??g,listBoxRef:Pe,name:g,placeholder:b,popoverRef:rt},Z),{listBoxProps:Cn}=s.$c132121280ec012d$export$50eacbbf140a3141(kn,Z,Pe),{buttonProps:Sn}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(jn,Ae);return f.useEffect(()=>{var A;if((d===!1||!S)&&!p){const M=((A=u.find(_=>_.value===S))==null?void 0:A.name)??"";z(M),Y(M)}},[S,u,d,p]),t.jsxs(J,{error:I,helpLink:a,helpLinkText:o,helpText:l,htmlFor:g,id:"combobox",label:c,required:m,tooltip:w,weight:C,children:[t.jsxs(ee,{className:`${n?"disabled":""} ${I?"error":""}`,ref:at,children:[t.jsx("input",{...vn,"aria-invalid":I?"true":"false","aria-label":g,disabled:n,onKeyDown:ot,ref:oe}),I?t.jsx(N,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:E.palette.error[500],iconSize:"xs"}):void 0,t.jsx(O,{...Sn,className:"action",disabled:n,icon:Z.isOpen&&!n?"chevron-up":"chevron-down",iconColor:E.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:Ae,type:"button",variant:"ghost"})]}),Z.isOpen&&Z.collection.size>0&&!n?t.jsx(ke,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:rt,state:Z,triggerRef:at,children:t.jsx(bi,{...Cn,$multiSelection:p&&!Array.from(i??[]).includes("All"),ref:Pe,children:[...Z.collection].map(A=>t.jsx(St,{item:A,multiSelection:p,name:g,register:y,setInputValue:z,setValue:j,state:Z,watch:k},A.key))})}):null]})},Xe=({control:e,disabled:n=!1,disabledKeys:i,error:r,helpLink:a,helpLinkText:o,helpText:l,label:c,loadingItems:d,name:g,multiSelection:p,items:u,onBlur:x,onChange:h,placeholder:b,register:y,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})=>e?t.jsx(s.Controller,{control:e,name:g,render:({field:E,fieldState:I})=>{var S;return t.jsx(Be,{disabled:n,disabledKeys:i,error:(S=I.error)==null?void 0:S.message,field:E,helpLink:a,helpLinkText:o,helpText:l,items:u,label:c,loadingItems:d,multiSelection:p,name:g,onBlur:x,onChange:h,placeholder:b,register:y,required:m,setValue:j,tooltip:w,value:v,watch:k,weight:C})},rules:{required:m}}):t.jsx(Be,{disabled:n,disabledKeys:i,error:r,helpLink:a,helpLinkText:o,helpText:l,items:u,label:c,loadingItems:d,multiSelection:p,name:g,onBlur:x,onChange:h,placeholder:b,required:m,tooltip:w,value:v,weight:C}),mi=s.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
|
+
`,zt=s.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
|
`,ji=s.st.th`
|
|
1005
|
-
${
|
|
1005
|
+
${zt}
|
|
1006
1006
|
`,vi=s.st.td`
|
|
1007
1007
|
${({theme:e})=>`
|
|
1008
|
-
${
|
|
1008
|
+
${zt}
|
|
1009
1009
|
height: ${e.spacing[2.5]};
|
|
1010
1010
|
width: ${e.spacing[2.5]};
|
|
1011
1011
|
|
|
@@ -1080,9 +1080,9 @@
|
|
|
1080
1080
|
padding: 0 ${e.spacing[.25]};
|
|
1081
1081
|
width: 100%;
|
|
1082
1082
|
`}
|
|
1083
|
-
`,
|
|
1084
|
-
${c?"disabled":""} ${
|
|
1085
|
-
${!e.isFocused&&!
|
|
1083
|
+
`,It=({state:e,date:n})=>{const i=f.useRef(null),r=s.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,s.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:a,buttonProps:o,isSelected:l,isDisabled:c,formattedDate:d}=s.$36a0ac60f04457c5$export$136073280381448e({date:n},e,i),g="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):l,p="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,u=l&&!c&&!(g||p)?"range":"";return t.jsx(vi,{id:u,...a,children:t.jsxs("div",{...o,className:`cell ${g||p?"selected":""}
|
|
1084
|
+
${c?"disabled":""} ${r?"today":""}
|
|
1085
|
+
${!e.isFocused&&!r?"focused":""} ${u}`,ref:i,children:[d,r?t.jsx(ki,{children:t.jsx(N,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},De=({state:e,...n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:r}=s.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),a=s.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,i);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(pt,{children:r.map((o,l)=>{const c=`key_${l}`;return t.jsx(ji,{children:o},c)})})}),t.jsx("tbody",{children:[...new Array(a).keys()].map(o=>t.jsx(pt,{children:e.getDatesInWeek(o).map((l,c)=>{const d=`key_${c}`;return l?t.jsx(It,{date:l,state:e},d):t.jsx("td",{},d)})},o))})]})},Ci=s.st(Ve)`
|
|
1086
1086
|
align-items: center;
|
|
1087
1087
|
background-color: inherit;
|
|
1088
1088
|
border-color: inherit;
|
|
@@ -1117,15 +1117,15 @@
|
|
|
1117
1117
|
width: 292px;
|
|
1118
1118
|
`}
|
|
1119
1119
|
`,zi=s.st.button`
|
|
1120
|
-
${({theme:e,$disabled:n,$focus:i,$header:
|
|
1120
|
+
${({theme:e,$disabled:n,$focus:i,$header:r})=>{const a=i?"34px":"40px";return`
|
|
1121
1121
|
align-items: center;
|
|
1122
|
-
border-radius: ${
|
|
1122
|
+
border-radius: ${r?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
|
|
1123
1123
|
border-left: inherit;
|
|
1124
1124
|
display: flex;
|
|
1125
|
-
height: ${
|
|
1125
|
+
height: ${r?"38px":a};
|
|
1126
1126
|
justify-content: center;
|
|
1127
1127
|
outline: none;
|
|
1128
|
-
width: ${
|
|
1128
|
+
width: ${r?"38px":"40px"};
|
|
1129
1129
|
|
|
1130
1130
|
&:hover {
|
|
1131
1131
|
background-color: ${e.palette.gray[n?500:100]};
|
|
@@ -1180,7 +1180,7 @@
|
|
|
1180
1180
|
font-weight: ${e.typography.weight.bold};
|
|
1181
1181
|
}
|
|
1182
1182
|
`}
|
|
1183
|
-
`,Ie=({disabled:e=!1,icon:n,props:i})=>{const
|
|
1183
|
+
`,Ie=({disabled:e=!1,icon:n,props:i})=>{const r=f.useRef(null),{buttonProps:a}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,r);return t.jsx(zi,{...a,$disabled:e,$focus:!!a["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:r,type:"button",children:t.jsx(N,{icon:n,iconColor:F.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Ee=({state:e,prevButtonProps:n,nextButtonProps:i,title:r})=>{const a=e.focusedDate,o=f.useCallback(()=>{e.setFocusedDate(a.add({years:1}))},[a,e]),l=f.useCallback(()=>{e.setFocusedDate(a.subtract({years:1}))},[a,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(Ie,{icon:"chevron-left",props:n}),t.jsxs(mi,{children:[r,t.jsxs(wi,{children:[t.jsx(gt,{"aria-label":"top",onClick:o,children:t.jsx(N,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(gt,{"aria-label":"bottom",onClick:l,children:t.jsx(N,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(Ie,{icon:"chevron-right",props:i})]})},Tt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:a,nextButtonProps:o,title:l}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,r);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ee,{nextButtonProps:o,prevButtonProps:a,state:r,title:l}),t.jsx(De,{state:r}),t.jsx(Ze,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Ft=({segment:e,state:n})=>{const i=s.Je(),r=f.useRef(null),o={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=s.$32489daedd52963e$export$1315d136e6f7581(o,n,r),c=i.palette.gray[o.isEditable?800:500];return t.jsx("div",{...o.type!=="literal"&&{...l,className:"segment-cell"},ref:r,style:o.type==="literal"?void 0:{color:o.isPlaceholder?i.palette.gray[400]:c},children:o.isPlaceholder?o.placeholder:o.text})},Nt=({disabled:e,error:n=!1,props:i})=>{const r=s.Je(),a=f.useRef(null),o=s.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=s.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,o,a),c=f.useCallback(d=>{const g=document.getElementsByClassName("segment-cell"),p=d.currentTarget;Object.values(g).some(u=>u.contains(p))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(Ii,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:r.palette.gray[s.lodashExports.isNil(o.value)?400:800]},tabIndex:-1,children:o.segments.map((d,g)=>{const p=`key_${g}`;return t.jsx(Ft,{segment:{...d,isEditable:!e},state:o},p)})}),n?t.jsx(N,{icon:"exclamation-circle",iconColor:r.palette.error[500],iconSize:"xs"}):void 0]})},Dt=e=>{const n=f.useRef(null),i=s.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:r}=i,a=!s.lodashExports.isNil(r)&&r.hour<12?"AM":"PM",[o,l]=f.useState(s.lodashExports.isNil(r)?"AM":a),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=f.useCallback(g=>{const p=g.currentTarget.name;p!==o&&(s.lodashExports.isNil(r)||(p==="AM"?i.setSegment("dayPeriod",0):p==="PM"&&i.setSegment("dayPeriod",12))),l(p)},[o,i,r]);return t.jsxs(Ti,{children:[t.jsx(ut,{...c,ref:n,children:i.segments.slice(0,-2).map((g,p)=>{const u=`key_${p}`;return t.jsx(Ft,{segment:g,state:i},u)})}),t.jsxs(ut,{children:[t.jsx(xt,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(xt,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Te=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",Fi=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",ft=(e,n)=>s.dayjs(String(e).replace(/-/gu,"/")).hour(n.hour).minute(n.minute).second(n.second).format("YYYY/MM/DD hh:mm A"),ge=({error:e,buttonProps:n,datePickerRef:i,disabled:r=!1,granularity:a="day",fieldProps:o,groupProps:l,name:c,register:d,required:g,setValue:p,value:u})=>{const x=f.useCallback(h=>{const b=a==="day"?Te(String(h)):Fi(String(h));o.onChange&&o.onChange(h??null),p&&p(c,b)},[o,a,c,p]);return t.jsxs(ee,{...l,className:`${r?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(Nt,{disabled:r,error:e!=null,props:{...o,autoFocus:!1,granularity:a,onChange:x,shouldForceLeadingZeros:!0}}),t.jsx(Ie,{disabled:r,icon:a==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(c,{required:g}),"aria-label":c,className:"date-input",disabled:r,id:c,name:c,type:"text",value:u??""})]})},Re=({children:e,...n})=>{const i=f.useRef(null),{dialogProps:r}=s.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(Si,{...r,ref:i,children:e})},Et=({disabled:e=!1,error:n,helpLink:i,helpLinkText:r,helpText:a,required:o,label:l,name:c,register:d,setValue:g,tooltip:p,watch:u,...x})=>{const h=f.useRef(null),b=u==null?void 0:u(c),y=f.useCallback(I=>{g&&I&&g(c,Te(String(I)))},[c,g]),m=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...x,onChange(I){y(I)},value:s._.isNil(b)||s._.isEmpty(b)||b==="-"?null:s.$fae977aafc393c5c$export$6b862160d295c8e(b.replace(/\//gu,"-"))}),{close:j}=m,{groupProps:w,fieldProps:v,buttonProps:k,dialogProps:C,calendarProps:E}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...x,"aria-label":l??c,name:c},m,h);return t.jsxs(J,{error:n,helpLink:i,helpLinkText:r,helpText:a,htmlFor:c,label:l,required:o,tooltip:p,children:[t.jsx(ge,{buttonProps:k,datePickerRef:h,disabled:e,error:n,fieldProps:v,groupProps:w,name:c,register:d,required:o,setValue:g,value:b}),m.isOpen&&!e?t.jsx(ke,{offset:8,placement:"bottom start",state:m,triggerRef:h,children:t.jsx(Re,{...C,children:t.jsx(Tt,{onClose:j,props:E})})}):null]})},Rt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=f.useRef(null),a=s.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:o,nextButtonProps:l,title:c}=s.$46a4342aab3d8076$export$87e0539f600c24e5(n,a,r);return t.jsxs("div",{className:"calendar-range",ref:r,children:[t.jsx(Ee,{nextButtonProps:l,prevButtonProps:o,state:a,title:c}),t.jsx(De,{state:a}),t.jsx(Ze,{children:t.jsx(P,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Ni=s.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;
|
|
@@ -1191,7 +1191,7 @@
|
|
|
1191
1191
|
background: ${n?e.palette.gray[200]:e.palette.white};
|
|
1192
1192
|
}
|
|
1193
1193
|
`}
|
|
1194
|
-
`,
|
|
1194
|
+
`,Lt=({disabled:e=!1,error:n,label:i,name:r,required:a,tooltip:o,register:l,setValue:c,propsMax:d,propsMin:g,variant:p="default",...u})=>{const x=`${r}Max`,h=`${r}Min`,b=f.useRef(null),y=f.useCallback(S=>{c&&S&&(c((d==null?void 0:d.name)??x,Te(String(S.end))),c((g==null?void 0:g.name)??h,Te(String(S.start))))},[x,h,c,d,g]),m=s.$93c38a5e28be6249$export$e50a61c1de9f574({...u,endName:(d==null?void 0:d.name)??x,startName:(g==null?void 0:g.name)??h,onChange(S){y(S)}}),{close:j}=m,{groupProps:w,startFieldProps:v,endFieldProps:k,buttonProps:C,dialogProps:E,calendarProps:I}=s.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...u,"aria-label":i??r},m,b);return t.jsxs(J,{error:n,htmlFor:r,label:i,required:a,tooltip:o,children:[t.jsxs(Ni,{$disabled:e,$show:n!==void 0,ref:b,style:{flexDirection:p==="filters"?"column":"row"},children:[t.jsx(ge,{buttonProps:C,datePickerRef:b,disabled:e,error:n,fieldProps:{...v,"aria-label":`${v["aria-label"]} ${r}`,validate:S=>k.value&&S>k.value?"Start date must be less than or equal to end date":null},groupProps:w,name:(g==null?void 0:g.name)??h,register:l,setValue:c,value:g==null?void 0:g.value}),t.jsx(ge,{buttonProps:C,datePickerRef:b,disabled:e,error:n,fieldProps:{...k,"aria-label":`${k["aria-label"]} ${r}`,validate:S=>v.value&&S<v.value?"End date must be greater than or equal to start date":null},groupProps:w,name:(d==null?void 0:d.name)??x,register:l,setValue:c,value:d==null?void 0:d.value})]}),m.isOpen&&!e?t.jsx(ke,{offset:8,placement:"bottom start",state:m,triggerRef:b,children:t.jsx(Re,{...E,children:t.jsx(Rt,{onClose:j,props:I})})}):null]})},Di=s.st.div`
|
|
1195
1195
|
${({theme:e})=>`
|
|
1196
1196
|
align-items: center;
|
|
1197
1197
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -1206,9 +1206,9 @@
|
|
|
1206
1206
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1207
1207
|
justify-content: flex-end;
|
|
1208
1208
|
flex: 1 0 0;
|
|
1209
|
-
`,
|
|
1210
|
-
${e?"disabled":""} ${
|
|
1211
|
-
`,children:[n?t.jsx(
|
|
1209
|
+
`,At=({handleTimeChange:e,onClose:n,props:i,timeState:r})=>{const a=s.Je(),{locale:o}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:c,nextButtonProps:d,title:g}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(i,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(Ee,{nextButtonProps:d,prevButtonProps:c,state:l,title:g}),t.jsx(De,{state:l}),t.jsxs(Di,{children:[t.jsx(T,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(Ei,{children:t.jsx(Dt,{hourCycle:12,label:"time-field",onChange:e,value:r.timeValue})})]}),t.jsx(Ze,{children:t.jsx(P,{onClick:n,variant:"ghost",children:"Cancel"})})]})},Ri=e=>{const{disabled:n=!1,error:i,required:r,label:a,name:o,tooltip:l,register:c,setValue:d,watch:g}=e,p=g==null?void 0:g(o),u=f.useRef(null),x=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:r,shouldCloseOnSelect:!1,value:s._.isNil(p)||s._.isEmpty(p)||p==="-"||s.dayjs(p,"YYYY/MM/DD hh:mm A").isValid()===!1?null:s.$fae977aafc393c5c$export$588937bcd60ade55(s.dayjs(p,"YYYY/MM/DD hh:mm A").format("YYYY-MM-DDTHH:mm:ss"))}),{close:h}=x,{groupProps:b,fieldProps:y,buttonProps:m,dialogProps:j,calendarProps:w}=s.$6057a3d2a53a12fd$export$42df105a73306d51(e,x,u),v=f.useCallback(C=>{if(w.onChange&&w.onChange(C),x.timeValue){const E=ft(C,x.timeValue);d==null||d(o,E,{shouldDirty:!0})}else x.setDateValue(C)},[w,o,d,x]),k=f.useCallback(C=>{if(C){x.setTimeValue(C);const E=x.dateValue;if(E){const I=ft(E,C);d==null||d(o,I,{shouldDirty:!0})}}},[x,d,o]);return t.jsxs(J,{error:i,htmlFor:o,label:a,required:r,tooltip:l,children:[t.jsx(ge,{buttonProps:m,datePickerRef:u,disabled:n,error:i,fieldProps:y,granularity:"minute",groupProps:b,name:o,register:c,setValue:d,value:p}),x.isOpen&&!n?t.jsx(ke,{offset:8,placement:"bottom start",state:x,triggerRef:u,children:t.jsx(Re,{...j,children:t.jsx(At,{handleTimeChange:k,onClose:h,props:{...w,onChange:v},timeState:x})})}):null]})},Li=({children:e,currentValue:n,externalLink:i,isEditing:r,label:a,name:o,tooltip:l})=>{if(r)return t.jsx("div",{children:e});const c=s.lodashExports.isNil(n)?"":n,d=String(i??c);return t.jsxs($,{children:[t.jsx(Ke,{htmlFor:o,label:a,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(K,{href:d,children:c}):t.jsx(T,{size:"md",children:c})]})},Le=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:r,helpText:a,error:o,id:l,indexArray:c=0,isValid:d,isTouched:g,label:p,linkPosition:u,name:x,maskValue:h=!1,onPaste:b,placeholder:y,removeItemArray:m,register:j,suggestions:w,tooltip:v,type:k="text",weight:C,...E})=>{const{required:I,onBlur:S,onChange:R}=E,z=s.Je(),L=e?void 0:o,[Y,X]=f.useState(""),te=f.useCallback(B=>{X(B.target.value),R==null||R(B)},[R]),W=d&&g&&!e&&Y.trim()!=="",H=f.useCallback(B=>{B.key==="Enter"&&B.preventDefault()},[]);return t.jsxs(J,{error:L,helpLink:i,helpLinkText:r,helpText:a,htmlFor:x,label:p,linkPosition:u,required:I,tooltip:v,weight:C,children:[t.jsxs(ee,{className:`
|
|
1210
|
+
${e?"disabled":""} ${L?"error":""} ${W?"success":""}
|
|
1211
|
+
`,children:[n?t.jsx(N,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":L?"true":"false","aria-label":x,"aria-required":I,autoComplete:"off",className:h?"sr-block":"","data-testid":`${x}-input`,disabled:e,id:x,list:w?`list_${x}`:void 0,onKeyDown:H,onPaste:b,placeholder:y,type:k,...j?j(x,{required:I,onBlur:S,onChange:te}):{...E,onChange:te}}),L?t.jsx(N,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:z.palette.error[500],iconSize:"xs"}):void 0,W?t.jsx(N,{icon:"check-circle",iconClass:"success-icon",iconColor:z.palette.success[500],iconSize:"xs"}):void 0,l==="array"&&c>0?t.jsx(O,{color:z.palette.gray[400],icon:"trash",iconSize:"xxs",iconType:"fa-light",onClick:m?m(c):void 0,variant:"ghost"}):void 0]}),w?t.jsx("datalist",{id:`list_${x}`,children:w.map(B=>t.jsx("option",{value:B},B))}):void 0]})},Ai=s.st.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,Pi=s.st.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
1212
1212
|
gap: 12px;
|
|
1213
1213
|
`,Wi=s.st.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
|
|
1214
1214
|
gap: 8px;
|
|
@@ -1236,7 +1236,7 @@
|
|
|
1236
1236
|
> .comp-card {
|
|
1237
1237
|
height: 100%;
|
|
1238
1238
|
}
|
|
1239
|
-
`,Oe=({children:e,xl:n,lg:i,md:
|
|
1239
|
+
`,Oe=({children:e,xl:n,lg:i,md:r,sm:a,paddingTop:o,width:l})=>t.jsx(Bi,{$lg:i,$md:r,$paddingTop:o,$sm:a,$width:l,$xl:n,children:e}),Oi=s.st.div.attrs({className:"comp-gap"})`
|
|
1240
1240
|
${({$disp:e="flex",$mh:n=4,$mv:i=4})=>`
|
|
1241
1241
|
align-items: center;
|
|
1242
1242
|
display: ${e};
|
|
@@ -1246,12 +1246,12 @@
|
|
|
1246
1246
|
margin: ${i}px ${n}px;
|
|
1247
1247
|
}
|
|
1248
1248
|
`}
|
|
1249
|
-
`,Hi=({children:e,disp:n,mh:i,mv:
|
|
1250
|
-
${({$align:e="stretch",$cols:n=100,$colsPadding:i=6,$justify:
|
|
1249
|
+
`,Hi=({children:e,disp:n,mh:i,mv:r})=>t.jsx(Oi,{$disp:n,$mh:i,$mv:r,children:e}),Mi=s.st.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
|
|
1250
|
+
${({$align:e="stretch",$cols:n=100,$colsPadding:i=6,$justify:r="start"})=>`
|
|
1251
1251
|
align-items: ${e};
|
|
1252
|
-
justify-content: ${
|
|
1252
|
+
justify-content: ${r};
|
|
1253
1253
|
margin: -6px;
|
|
1254
|
-
text-align: ${
|
|
1254
|
+
text-align: ${r};
|
|
1255
1255
|
|
|
1256
1256
|
--cols: ${n};
|
|
1257
1257
|
|
|
@@ -1264,7 +1264,7 @@
|
|
|
1264
1264
|
padding: ${i}px;
|
|
1265
1265
|
}
|
|
1266
1266
|
`}
|
|
1267
|
-
`,
|
|
1267
|
+
`,Pt=({align:e,children:n,cols:i,colsPadding:r,justify:a})=>t.jsx(Mi,{$align:e,$cols:i,$colsPadding:r,$justify:a,children:n}),He=({addText:e,append:n,disabled:i=!1,fields:r,fieldState:a,initValue:o="",index:l=0,required:c,label:d,max:g=100,name:p,onBlur:u,onChange:x,placeholder:h,tooltip:b,remove:y,value:m})=>{var v;const j=f.useCallback(()=>{n==null||n(o)},[n,o]),w=f.useCallback(k=>()=>{y==null||y(k)},[y]);return t.jsxs(Pt,{align:"start",children:[t.jsx(Oe,{lg:75,md:75,sm:75,children:t.jsx(Le,{disabled:i,error:a?(v=a.error)==null?void 0:v.message:void 0,id:"array",indexArray:l,isTouched:a?a.isTouched:void 0,isValid:a?!a.invalid:void 0,label:d,name:p,onBlur:u,onChange:x,placeholder:h,removeItemArray:w,required:c,tooltip:b,value:m})}),l<g-1&&l+1===(r==null?void 0:r.length)?t.jsx(Oe,{lg:25,md:25,sm:25,children:t.jsx(P,{disabled:i,icon:"plus",onClick:j,variant:"ghost",width:"100%",children:e??"Add"})}):void 0]})},_i=({addText:e,append:n,control:i,disabled:r,fields:a,initValue:o="",required:l,label:c,max:d=void 0,name:g="array-field",onChange:p,placeholder:u,remove:x,tooltip:h})=>i&&a?t.jsx(f.Fragment,{children:a.map((b,y)=>t.jsx(s.Controller,{control:i,name:`${g}.${y}`,render:({field:m,fieldState:j})=>t.jsx(He,{addText:e,append:n,disabled:r,fieldState:j,fields:a,index:y,initValue:o,label:c,max:d,name:m.name,onBlur:m.onBlur,onChange:p??m.onChange,placeholder:u,remove:x,required:l,tooltip:h,value:typeof m.value=="object"?m.value.value:m.value}),index:y},b.id))}):t.jsx(He,{addText:e,disabled:r,initValue:o,label:c,max:d,name:g,onChange:p,placeholder:u,required:l,tooltip:h}),Ji=s.st(mt)`
|
|
1268
1268
|
white-space: nowrap;
|
|
1269
1269
|
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1270
1270
|
text-overflow: ellipsis;
|
|
@@ -1275,13 +1275,13 @@
|
|
|
1275
1275
|
position: absolute;
|
|
1276
1276
|
visibility: hidden;
|
|
1277
1277
|
width: 0;
|
|
1278
|
-
`,ue=(e,n,i)=>{const
|
|
1278
|
+
`,ue=(e,n,i)=>{const r=new Event(e);return Object.defineProperty(r,"target",{value:{name:n,value:i}}),r},Gi=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Vi=({accept:e,disabled:n=!1,error:i,label:r,helpLink:a,helpText:o,id:l,multiple:c,name:d,onChange:g,required:p,register:u,setValue:x,tooltip:h,watch:b,weight:y})=>{const m=s.Je(),j=n?void 0:i,w=f.useRef(null),v=u==null?void 0:u(d,{required:p}),k=b==null?void 0:b(d),C=Gi(k),E=f.useCallback(()=>{const R=ue("change",d,void 0);x&&x(d,void 0),v&&v.onChange(R)},[v,d,x]),I=f.useCallback(R=>{const{files:z}=R.currentTarget,L=ue("change",d,z&&z.length>0?z:void 0);z&&z.length>0&&(g==null||g(L),x&&x(d,z),v&&v.onChange(L))},[v,d,g,x]),S=f.useCallback(R=>{n?R.preventDefault():w.current&&w.current.click()},[n]);return t.jsxs(J,{error:j,helpLink:a,helpText:o,htmlFor:l??d,label:r,required:p,tooltip:h,weight:y,children:[t.jsxs(ee,{className:`${n?"disabled":""} ${j?"error":""}`,children:[t.jsx(Ji,{$size:"xs",children:C}),t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[s.lodashExports.isEmpty(C)?void 0:t.jsx(O,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:E,variant:"ghost",width:"20px"}),j&&t.jsx(N,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}),t.jsxs(P,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:S,variant:"primary",width:"96px",children:[t.jsx(N,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]})]}),t.jsx(Ui,{...v,accept:e,"aria-label":d,"data-testid":d,disabled:n,id:l??d,multiple:c,name:d,onChange:I,ref:w,type:"file"})]})},Yi=s.st.input`
|
|
1279
1279
|
border: none;
|
|
1280
1280
|
background: transparent;
|
|
1281
1281
|
min-width: 15rem;
|
|
1282
1282
|
padding: 0;
|
|
1283
1283
|
flex: 1;
|
|
1284
|
-
`,Me=({disabled:e=!1,error:n,field:i,helpLink:
|
|
1284
|
+
`,Me=({disabled:e=!1,error:n,field:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:g,placeholder:p,required:u,tooltip:x,value:h,weight:b})=>{const y=s.Je(),m=e?void 0:n,[j,w]=f.useState(""),v=d?h:i==null?void 0:i.value,k=f.useMemo(()=>v&&typeof v=="string"?v.split(",").filter(Boolean):[],[v]),C=f.useCallback(z=>{const Y=[...new Set(z.filter(Boolean))].join(","),X=ue("change",c,Y);i&&i.onChange(X),d&&d(X)},[i,c,d]),E=f.useCallback(z=>{w(z.target.value)},[]),I=f.useCallback(z=>{const L=j.trim();L.length&&!k.includes(L)&&(z.preventDefault(),C([...k,L]),w("")),i&&i.onBlur()},[j,i,C,k]),S=f.useCallback(z=>{const L=j.trim();z.key==="Enter"&&L.length===0&&z.preventDefault(),["Enter",","].includes(z.key)&&L.length>0&&!k.includes(L)?(z.preventDefault(),C([...k,L]),w("")):z.key==="Backspace"&&!L.length&&k.length&&(z.preventDefault(),g==null||g(k[k.length-1]),C(k.slice(0,-1)))},[j,g,C,k]),R=f.useCallback(z=>()=>{g==null||g(z),C(k.filter(L=>L!==z))},[g,C,k]);return t.jsx(J,{error:m,helpLink:r,helpLinkText:a,helpText:o,htmlFor:c,label:l,required:u,tooltip:x,weight:b,children:t.jsxs(ee,{$overflowX:"auto",className:`${e?"disabled":""} ${m?"error":""}`,children:[k.map(z=>t.jsx(V,{disabled:e,onClose:R(z),tagLabel:z},z)),t.jsx(Yi,{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",id:c,onBlur:I,onChange:E,onKeyDown:S,placeholder:k.length===0?p:void 0,ref:i==null?void 0:i.ref,type:"text",value:j}),m?t.jsx(N,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}):void 0]})})},qi=({disabled:e=!1,control:n,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:g,placeholder:p,required:u,tooltip:x,value:h,weight:b})=>n?t.jsx(s.Controller,{control:n,name:c,render:({field:y})=>t.jsx(Me,{disabled:e,error:i,field:y,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c,onRemove:g,placeholder:p,required:u,tooltip:x,weight:b}),rules:{required:u}}):t.jsx(Me,{disabled:e,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c,onChange:d,onRemove:g,placeholder:p,required:u,tooltip:x,value:h,weight:b}),_e=f.forwardRef(function({disabled:n,icon:i,margin:r,onClick:a,...o},l){return t.jsx(Ci,{$margin:r,"aria-label":i,className:"action-btn",disabled:n,onClick:a,ref:l,type:"button",...o,children:t.jsx(N,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),Fe=({error:e,decimalPlaces:n=0,disabled:i=!1,id:r,maxLength:a,max:o=1/0,min:l=0,name:c,onChange:d,placeholder:g,register:p,required:u,setValue:x,value:h})=>{const b=s.Je(),y=i?void 0:e,m=n<0?0:n,[j,w]=f.useState(h?s._.toNumber(h):0),v=f.useCallback(()=>{const I=(j-10**-m).toFixed(m),S=Math.max(Number(l),Number(I));x&&x(c,S,{shouldDirty:!0}),w(S);const R=ue("change",c,I);d&&d(R)},[j,m,l,x,c,d]),k=f.useCallback(()=>{const I=(j+10**-m).toFixed(m),S=Math.min(Number(o),Number(I)>Number(l)?Number(I):Number(l));x&&x(c,S,{shouldDirty:!0}),w(S);const R=ue("change",c,I);d&&d(R)},[j,m,o,l,x,c,d]),C=f.useCallback(I=>{const{value:S}=I.target,R=/\d+/u.test(S)&&!s._.isEmpty(S);x&&x(c,R?S:void 0),d&&d(I),w(Number(S))},[c,d,x]),E=f.useCallback(I=>{I.key==="Enter"&&I.preventDefault()},[]);return t.jsxs(ee,{className:`${i?"disabled":""} ${y?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":y?"true":"false","aria-label":c,"aria-required":u,autoComplete:"off",disabled:i,id:r??c,max:o,min:l,onChange:C,onKeyDown:E,placeholder:g,required:u,step:10**-m,type:"number",value:j,...p==null?void 0:p(c,{maxLength:a,max:o,min:l,onChange:C,value:h,valueAsNumber:!0})}),y&&t.jsx(N,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:b.palette.error[500],iconSize:"xs"}),t.jsx(_e,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:v,px:.75,py:.75}),t.jsx(_e,{borderRadius:`0 ${b.spacing[.5]} ${b.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:k,px:.75,py:.75})]})},Wt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:r,helpText:a,id:o,label:l,linkPosition:c,maxLength:d,max:g,min:p,name:u,onChange:x,placeholder:h,register:b,required:y,setValue:m,tooltip:j,value:w,watch:v,weight:k})=>t.jsx(J,{error:n?void 0:i,helpLink:r,helpText:a,htmlFor:u,label:l,linkPosition:c,maxLength:d,required:y,tooltip:j,weight:k,children:t.jsx(Fe,{decimalPlaces:e,disabled:n,error:i,id:o,max:g,maxLength:d,min:p,name:u,onChange:x,placeholder:h,register:b,required:y,setValue:m,value:v?v(u):w})}),Bt=({disabled:e=!1,error:n,name:i,label:r,propsMax:a,propsMin:o,required:l,tooltip:c,variant:d="default"})=>{const g=`${i}Max`,p=`${i}Min`;return t.jsx(J,{error:n,htmlFor:i,label:r,required:l,tooltip:c,children:t.jsxs($,{display:"flex",flexDirection:d==="filters"?"column":"row",gap:.25,width:"100%",children:[t.jsx(Fe,{...o,disabled:e,error:n,name:(o==null?void 0:o.name)??p}),t.jsx(Fe,{...a,disabled:e,error:n,name:(a==null?void 0:a.name)??g})]})})},Ki=s.st.div`
|
|
1285
1285
|
${({theme:e})=>`
|
|
1286
1286
|
align-items: flex-start;
|
|
1287
1287
|
align-self: stretch;
|
|
@@ -1375,15 +1375,15 @@
|
|
|
1375
1375
|
overflow: hidden;
|
|
1376
1376
|
text-overflow: ellipsis;
|
|
1377
1377
|
white-space: nowrap;
|
|
1378
|
-
`,ta=({disabled:e,error:n,label:i,name:
|
|
1379
|
-
${e?"disabled":""} ${
|
|
1380
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":
|
|
1378
|
+
`,ta=({disabled:e,error:n,label:i,name:r,placeholder:a,required:o,register:l,tooltip:c,value:d,watch:g,weight:p})=>{const u=s.Je(),x=f.useRef(null),h=e?void 0:n,b=(g==null?void 0:g(r))??d,[y,m]=f.useState(!1),[j,w]=f.useState(""),{refs:v,floatingStyles:k}=s.useFloating$1({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputRef:C,inputValue:E,handlePhoneValueChange:I,country:S,setCountry:R}=s.ee({countries:s.R,defaultCountry:"co",forceDialCode:!0,value:b?String(b):""}),z=f.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]),L=f.useCallback(W=>{W.preventDefault(),m(H=>!H),y||w("")},[y]),Y=f.useCallback(W=>()=>{R(W),m(!1),w("")},[R,m]),X=f.useCallback(W=>{W.key.length===1?w(H=>H+W.key):W.key==="Backspace"&&w(H=>H.slice(0,-1))},[]),te=s.R.filter(W=>{const{name:H}=s.M(W);return H.toLowerCase().includes(j.toLowerCase())});return ie(v.floating.current,()=>{m(!1),w("")},!0),t.jsx(J,{error:h,htmlFor:r,label:i,required:o,tooltip:c,weight:p,children:t.jsxs(Ki,{className:`${e?"disabled":""} ${h?"error":""}`,ref:x,children:[t.jsxs(Xi,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:L,onKeyDown:X,ref:v.setReference,children:[t.jsx(s.q,{iso2:S.iso2,size:"16px"}),t.jsx(N,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(ee,{className:`${e?"disabled":""} ${h?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":h?"true":"false","aria-label":r,"aria-required":o,autoComplete:"off","data-testid":`${r}-input`,disabled:e,id:r,name:r,onKeyDown:z,placeholder:a,ref:C,type:"tel",value:E,...l==null?void 0:l(r,{required:o,onChange:I})}),h?t.jsx(N,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),y&&re.createPortal(t.jsx(Zi,{ref:v.setFloating,style:k,children:te.map(W=>{const{dialCode:H,iso2:B,name:oe}=s.M(W);return t.jsxs(Qi,{onClick:Y(B),value:B,children:[t.jsx(s.q,{iso2:B,size:"16px"}),t.jsx(ea,{children:oe}),t.jsx(T,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+H})]},B)})}),document.getElementById("modal-wrapper")??document.getElementById("root")??document.body)]})})},na=({disabled:e=!1,error:n,helpLink:i,helpText:r,isTouched:a,isValid:o,label:l,name:c="input-text",id:d,maskValue:g=!1,maxLength:p,onBlur:u,placeholder:x,register:h,required:b,rows:y,tooltip:m,watch:j,weight:w,value:v})=>{const k=s.Je(),C=(j==null?void 0:j(c))??v,E=o&&a&&!e,I=e?void 0:n;return t.jsx(J,{error:I,helpLink:i,helpText:r,htmlFor:c,label:l,maxLength:p,required:b,tooltip:m,value:C?String(C):void 0,weight:w,children:t.jsxs(ee,{className:`
|
|
1379
|
+
${e?"disabled":""} ${I?"error":""} ${E?"success":""}
|
|
1380
|
+
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":I?"true":"false","aria-label":c,"aria-required":b,className:g?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:p,placeholder:x,rows:y,value:C,...h==null?void 0:h(c,{required:b,onBlur:u})}),I?t.jsx(N,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"xs"}):void 0,E?t.jsx(N,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"xs"}):void 0]})})},ia=({control:e,description:n,disabled:i,id:r,items:a,align:o,inputType:l="text",inputNumberProps:c,minHeight:d,minWidth:g,name:p,placeholder:u,textAlign:x,tooltip:h,title:b,value:y,isTouched:m,isValid:j,error:w,onChange:v,register:k,setValue:C,watch:E})=>{const I=f.useMemo(()=>{if(l==="text")return t.jsx(Le,{disabled:i,error:w,isTouched:m,isValid:j,name:p,placeholder:u,register:k});if(l==="date")return t.jsx(Et,{disabled:i,error:w,name:p,register:k,setValue:C,watch:E});if(l==="select"&&a)return t.jsx(Xe,{control:e,disabled:i,items:a,name:p,placeholder:u,value:y});const{decimalPlaces:S,max:R,min:z}=c??{};return t.jsx(Wt,{decimalPlaces:S,disabled:i,error:w,max:R,min:z,name:p,onChange:v,placeholder:u,register:k,setValue:C,value:y,watch:E})},[e,i,w,c,l,m,j,a,p,v,u,k,C,y,E]);return t.jsxs(fi,{$align:o,$minHeight:d,$minWidth:g,children:[t.jsx(Ne,{description:n,id:r,textAlign:x,title:b,tooltip:h}),I]})},aa=s.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
|
-
`,
|
|
1386
|
+
`,Ot=(e,n)=>{const[r,a]=f.useState(0),[o,l]=f.useState(0);return f.useEffect(()=>{o===100&&(()=>{a(d=>d===n-1?0:d+1)})()},[o,n]),f.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:r,progress:o,setCycle:a,setProgress:l}},Ht=({publicId:e,format:n="webp"})=>{const i=f.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return f.useMemo(()=>i.image(e).format(n),[i,e,n])},Ce=e=>{const[n,i]=f.useState(!1),r=f.useCallback(()=>{i(!0)},[]),a=f.useCallback(()=>{i(!1)},[]),o=f.useCallback(()=>{i(l=>!l)},[]);return{close:a,isOpen:n,name:e,open:r,setIsOpen:i,toggle:o}},ra=({name:e,items:n,columnOrder:i,setColumnOrder:r})=>{const a=f.useMemo(()=>[...n.filter(({locked:p})=>p).map(({locked:p,...u})=>({...u,visible:!0,locked:p})),...n.filter(({locked:p})=>!p)],[n]),[o,l]=f.useState(a),c=f.useCallback(p=>{const u=p.filter(({locked:y})=>!y),h=[...p.filter(({locked:y})=>y),...u],b=h.map(({name:y})=>y);l(y=>[...h,...y.filter(({name:m})=>!b.includes(m))]),r&&r(h.map(({id:y})=>y))},[r]),d=f.useCallback(()=>{const p=o.map(u=>{var h;const x=(i==null?void 0:i.includes(u.id))??!1;return(h=u.toggleVisibility)==null||h.call(u,x),{...u,visible:x}}).toSorted((u,x)=>{const h=(i==null?void 0:i.indexOf(u.id))??0,b=(i==null?void 0:i.indexOf(x.id))??0;return Number(x.visible)!==Number(u.visible)?Number(x.visible)-Number(u.visible):h-b});l(p),r==null||r(i)},[o,i,r]),g=f.useMemo(()=>s.some(o,p=>((i==null?void 0:i.includes(p.id))??!1)!==p.visible),[o,i]);return{setColumns:c,resetToDefault:d,columns:o,...Ce(e),hasChanged:g}},Mt=(e,n)=>f.useMemo(()=>s._.debounce(e,n),[e,n]),oa=e=>{const[n,i]=f.useState(),r=Mt(a=>{i(a)},(e==null?void 0:e.debounceWait)??300);return[n,r]},sa=({alt:e="img",height:n="",width:i="",plugins:r=[s.lazyload(),s.placeholder()],publicId:a})=>{const o=Ht({publicId:a});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:r,width:i})},Q=f.memo(sa),la=s.st.label`
|
|
1387
1387
|
${({theme:e})=>`
|
|
1388
1388
|
align-items: center;
|
|
1389
1389
|
display: flex;
|
|
@@ -1462,7 +1462,7 @@
|
|
|
1462
1462
|
}
|
|
1463
1463
|
|
|
1464
1464
|
`}
|
|
1465
|
-
`,ca=s.st.span.attrs({className:"checkmark"})``,Qe=
|
|
1465
|
+
`,ca=s.st.span.attrs({className:"checkmark"})``,Qe=f.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:r,name:a,onChange:o,onClick:l,value:c,...d},g){return t.jsxs(la,{"aria-disabled":i,"aria-label":r??a,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":r??a,defaultChecked:n,disabled:i,name:a,onChange:o,onClick:l,ref:g,type:"radio",value:c,...d}),t.jsx(ca,{}),r??null]})}),da=({alt:e,customDescription:n,imageId:i,icon:r,selectorProps:a,onClick:o,register:l,bgColor:c,title:d,isATag:g=!1,width:p="fit-content"})=>{const u=s.Je();return t.jsxs($,{alignItems:"center",bgColor:c??"",border:`1px solid ${u.palette.gray[200]}`,borderColorHover:u.palette.gray[600],borderRadius:u.spacing[.25],display:"inline-flex",pr:g?1:0,shadowHover:"md",width:p,children:[t.jsxs($,{display:"inline-flex",padding:[1,1,1,1],children:[t.jsx($,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(Qe,{defaultChecked:a.defaultChecked,name:a.name,onClick:o,value:a.value,...l==null?void 0:l(a.name)})}),t.jsxs($,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[!g&&i!==void 0&&t.jsx(Q,{alt:e??"card image",height:"32px",publicId:i,width:"32px"}),r===void 0?void 0:t.jsx(N,{icon:r,iconSize:"sm",iconType:"fa-light"}),t.jsxs($,{display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(T,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",children:d}),n===void 0?void 0:t.jsx($,{children:n})]})]})]}),g&&t.jsx(aa,{children:t.jsx(Q,{alt:e??"tag image",height:"40px",publicId:i??"tag image",width:"40px"})})]})},le=s.st.div`
|
|
1466
1466
|
${({theme:e})=>`
|
|
1467
1467
|
align-items: center;
|
|
1468
1468
|
background-color: ${e.palette.gray[200]};
|
|
@@ -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
|
-
`,
|
|
1515
|
+
`,_t=f.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:r,name:a,leftDescription:o,leftDescriptionMinWidth:l,rightDescription:c,onChange:d,...g},p){const u=n===!0?"on":"off",x=typeof o=="object"&&o.on&&o.off?o[u]:o,h=f.useCallback(b=>{b.stopPropagation()},[]);return t.jsxs($,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:r,children:[t.jsx($,{minWidth:l,children:x}),t.jsxs(ga,{onClick:h,role:"switch",children:[t.jsx("input",{...g,"aria-disabled":i,"aria-label":a,checked:n===!0,disabled:i,name:a,onChange:d,ref:p,type:"checkbox"}),t.jsx(le,{"aria-label":"Toggle Switch",id:`${a}Toggle`,children:t.jsx(pa,{})})]}),c]})}),ua=({id:e,title:n,toggles:i,minWidth:r="auto",height:a="auto"})=>{const o=s.Je();return t.jsxs($,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${o.palette.gray[200]}`,borderRadius:o.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:a,justify:"center",minHeight:"100px",minWidth:r,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(Ne,{id:e,title:n}),t.jsx($,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(l=>t.jsx(_t,{...l},`$card-toggle-${l.name}`))})]})},xa=s.st.div`
|
|
1516
1516
|
position: relative;
|
|
1517
1517
|
margin: auto;
|
|
1518
1518
|
overflow: hidden;
|
|
@@ -1542,7 +1542,7 @@
|
|
|
1542
1542
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1543
1543
|
justify-content: center;
|
|
1544
1544
|
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
1545
|
-
`,$a=({slides:e,interval:n=300})=>{const{cycle:i,setCycle:
|
|
1545
|
+
`,$a=({slides:e,interval:n=300})=>{const{cycle:i,setCycle:r,setProgress:a}=Ot(n,e.length),o=f.useCallback(l=>()=>{r(l),a(0)},[r,a]);return t.jsxs(xa,{"aria-roledescription":"carousel",children:[t.jsx(fa,{$currentIndex:i,children:e.map((l,c)=>{const d=`slide-${c}`;return t.jsx(ha,{"aria-label":d,"aria-roledescription":"slide",children:l.content},d)})}),t.jsx(ya,{children:e.map((l,c)=>{const d=`nav-button-${c}`;return t.jsx(ba,{$isActive:c===i,"aria-label":`Go to slide ${c+1}`,"data-testid":c===i?"active":"inactive",onClick:o(c)},d)})})]})},Jt=s.st.div`
|
|
1546
1546
|
${({theme:e})=>`
|
|
1547
1547
|
background-color: ${e.palette.gray[100]};
|
|
1548
1548
|
border-radius: ${e.spacing[.25]};
|
|
@@ -1612,10 +1612,10 @@
|
|
|
1612
1612
|
background-color: ${e.palette.gray[200]};
|
|
1613
1613
|
}
|
|
1614
1614
|
`}
|
|
1615
|
-
`,
|
|
1615
|
+
`,Ut=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(f.useEffect(()=>{s.prismExports.highlightAll()},[]),t.jsx(Jt,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":s._.isNil(n)||s._.isString(n)?0:n.offset+.7,...i!==void 0?{"data-line":String(Number(i))}:{},children:s._.isNil(n)||s._.isString(n)||s._.isEmpty(n.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:n.content})})})),wa=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i,variant:r="normal"})=>{const a=s.Je(),[o,l]=f.useState(!1),[c,d]=f.useState(!0),g=f.useCallback(()=>{l(h=>!h)},[l]),p=f.useCallback(()=>{if(s._.isNil(n)||s._.isEmpty(n)||!s._.isString(n))return d(!1),e;const h=n.split(`
|
|
1616
1616
|
`);return h.length>8&&!o?`${[...h].splice(0,7).join(`
|
|
1617
1617
|
`)}
|
|
1618
|
-
${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=
|
|
1618
|
+
${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=f.useMemo(p,[p]),x=f.useCallback(async()=>{await navigator.clipboard.writeText(u)},[u]);return r==="location"?t.jsx(Ut,{noCodeMessage:e,snippet:n,specific:i}):t.jsxs($,{bgColor:a.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(Jt,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:u})})}),t.jsxs(ma,{children:[t.jsx(O,{height:a.spacing[2.5],icon:"copy",iconColor:a.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:x,variant:"ghost",width:a.spacing[2.5]}),c?t.jsxs(P,{onClick:g,variant:"ghost",children:[o?"Show Less":"Show more",t.jsx(N,{icon:o?"chevron-up":"chevron-down",iconColor:a.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:x})]}):!1]})]})},{getVariant:ja}=q(e=>({fixed:`
|
|
1619
1619
|
height: auto;
|
|
1620
1620
|
min-width: 300px;
|
|
1621
1621
|
padding: ${e.spacing[1.25]};
|
|
@@ -1638,7 +1638,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
1638
1638
|
@media screen and (min-width: ${e.breakpoints.sm}) {
|
|
1639
1639
|
width: 32%;
|
|
1640
1640
|
}
|
|
1641
|
-
`})),
|
|
1641
|
+
`})),Gt=s.st.div.attrs({className:"comp-modal fixed inset-0 overflow-auto"})`
|
|
1642
1642
|
align-items: center;
|
|
1643
1643
|
background-color: ${({$bgColor:e="rgb(52 64 84 / 70%)"})=>e};
|
|
1644
1644
|
display: flex;
|
|
@@ -1736,7 +1736,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
1736
1736
|
margin-right: 0;
|
|
1737
1737
|
`:""}
|
|
1738
1738
|
}
|
|
1739
|
-
`,
|
|
1739
|
+
`,Vt=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:r=void 0})=>{const{close:a}=n,o=f.useCallback(()=>{r!=null&&r.onClick&&r.onClick(),a()},[r,a]),l=f.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),a()},[i,a]);return[i,r].some(d=>!s.lodashExports.isEmpty(d))?t.jsxs($,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(Sa,{children:t.jsxs("div",{children:[r&&t.jsx(P,{id:r.id,onClick:o,variant:"tertiary",width:"100%",children:r.text}),i&&t.jsx(P,{id:i.id,onClick:l,variant:"primary",width:"100%",children:i.text})]})})]}):null},Yt=({title:e,description:n,modalRef:i,otherActions:r,onClose:a})=>{const o=s.Je(),l=f.useCallback(()=>{a==null||a(),i.close()},[i,a]);return f.useEffect(()=>{const c=d=>{d.key==="Escape"&&l()};return window.addEventListener("keydown",c),()=>{window.removeEventListener("keydown",c)}},[l]),t.jsxs(ka,{children:[t.jsxs(Ca,{children:[typeof e=="string"?t.jsx(U,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",wordBreak:"break-word",children:e}):e,t.jsxs("div",{className:"items-center flex gap-3",children:[r,t.jsx(O,{icon:"close",iconColor:o.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:l,px:.25,py:.25,variant:"ghost"})]})]}),n&&s.lodashExports.isString(n)&&!s.lodashExports.isEmpty(n)?t.jsx(T,{mt:.5,size:"sm",children:n}):void 0,n&&!s.lodashExports.isString(n)&&t.jsx(pe,{display:"block",mt:.5,size:"sm",children:n})]})},qt=({disabled:e,id:n="modal-confirm",onCancel:i,onConfirm:r="submit",txtCancel:a,txtConfirm:o})=>{const l=r==="submit";return t.jsxs($,{display:"flex",gap:.75,maxWidth:i?"392px":"190px",mt:1.5,children:[i?t.jsx(P,{id:`${n}-cancel`,justify:"center",onClick:i,variant:"tertiary",width:"100%",children:a??"Cancel"}):void 0,t.jsx(P,{disabled:e,id:n,justify:"center",onClick:l?void 0:r,type:l?"submit":"button",variant:"primary",width:"100%",children:o??"Confirm"})]})},Ia=(e,n,i)=>i?n==="secondary"?`3px solid ${e.palette.primary[100]}`:`3px solid ${e.palette.primary[500]}`:"unset",Ta=s.st.div`
|
|
1740
1740
|
display: flex;
|
|
1741
1741
|
flex-direction: row;
|
|
1742
1742
|
gap: ${({theme:e})=>e.spacing[.25]};
|
|
@@ -1799,7 +1799,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),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
|
-
`,
|
|
1802
|
+
`,Kt=f.forwardRef(function({numberIndicator:n,show:i,variant:r="error",...a},o){return t.jsx(Fa,{$variant:r,className:i?"flex":"hidden","data-testid":"notification-sign",ref:o,...a,children:n&&t.jsx(Na,{children:n<=9?n:9})})}),Xt=({end:e=!1,label:n,id:i,isActive:r=!1,link:a,notificationSign:o,onClick:l,tooltip:c="",variant:d="primary",tag:g})=>{const{pathname:p}=We.useLocation(),u=r||(d==="primary"?p.includes(a):p.endsWith(a));return t.jsx(G,{display:"flex",id:`${i}-tooltip`,tip:c,children:t.jsxs(Ta,{$borderButton:u,$variant:d,children:[t.jsxs(We.NavLink,{end:e,id:i,onClick:l,to:a,children:[n,t.jsx(Kt,{left:o==null?void 0:o.left,numberIndicator:o==null?void 0:o.numberIndicator,show:o==null?void 0:o.show,top:o==null?void 0:o.top,variant:o==null?void 0:o.variant})]}),g===void 0?null:t.jsx(V,{tagLabel:`${g}`,variant:"default"})]})})},tt=({items:e,borders:n=!0,box:i=!1,variant:r="primary"})=>{const a=s.Je();return t.jsx($,{alignItems:"center",bgColor:a.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${a.palette.gray[300]}`:void 0,borderColor:i?a.palette.gray[200]:void 0,borderRadius:i?a.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:o,id:l,isActive:c,link:d,label:g,notificationSign:p,onClick:u,tag:x,tooltip:h})=>t.jsx(Xt,{end:o,id:l,isActive:c,label:g,link:d,notificationSign:p,onClick:u,tag:x,tooltip:h,variant:r},l))})},ae=f.forwardRef(function({color:n=F.palette.gray[100],mt:i=.5,mb:r=.5,width:a,...o},l){return t.jsx($,{as:"hr",borderTop:`1px solid ${n}`,mb:r,mt:i,ref:l,width:a??"100%",...o})}),Da=s.st.li`
|
|
1803
1803
|
${({theme:e})=>`
|
|
1804
1804
|
align-items: center;
|
|
1805
1805
|
background-color: ${e.palette.white};
|
|
@@ -1846,7 +1846,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
1846
1846
|
background-color: ${e.palette.gray[100]};
|
|
1847
1847
|
}
|
|
1848
1848
|
`}
|
|
1849
|
-
`,
|
|
1849
|
+
`,Zt=s.st.ul`
|
|
1850
1850
|
${({theme:e})=>`
|
|
1851
1851
|
background-color: ${e.palette.white};
|
|
1852
1852
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -1857,7 +1857,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
1857
1857
|
min-width: 240px;
|
|
1858
1858
|
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
1859
1859
|
`}
|
|
1860
|
-
`,Se=({children:e,disabled:n=!1,icon:i,iconType:
|
|
1860
|
+
`,Se=({children:e,disabled:n=!1,icon:i,iconType:r="fa-light",href:a,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:g=!1,value:p,...u})=>{const h=s.Je().palette.gray[n?300:800],b=n?f.Children.map(e,y=>f.isValidElement(y)?f.cloneElement(y,{disabled:n,...y.props}):y):e;return t.jsxs(Da,{"aria-disabled":n,"aria-label":p,"aria-selected":g,"data-testid":p,onClick:o,onKeyDown:c,value:p,...u,children:[i!==void 0||p!==void 0?t.jsxs($,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(N,{disabled:n,icon:i,iconColor:h,iconSize:"xxs",iconType:r}):null,a===void 0?b:t.jsx(K,{href:a,children:b})]}):null,g||d?t.jsx(N,{disabled:n,icon:d??"check",iconClass:"selected",iconColor:h,iconSize:"xs",iconType:r,onClick:l}):null]})},Ea=s.st(Se)`
|
|
1861
1861
|
margin-top: 10px;
|
|
1862
1862
|
border: 1px solid ${({theme:e})=>e.palette.gray[300]};
|
|
1863
1863
|
border-radius: 4px;
|
|
@@ -1875,7 +1875,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
1875
1875
|
&[aria-selected="true"]:not([aria-disabled="true"]) {
|
|
1876
1876
|
background-color: unset;
|
|
1877
1877
|
}
|
|
1878
|
-
`,
|
|
1878
|
+
`,Qt=({items:e,onReorder:n,title:i,description:r,onClickClose:a})=>{const o=f.useCallback(l=>()=>{a(l)},[a]);return t.jsxs(s.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:n,style:{height:"max-content",padding:"1.25rem 0",width:"45%"},values:e,children:[t.jsxs($,{display:"flex",gap:.25,children:[t.jsx(U,{display:"flex",size:"xs",children:i}),t.jsx(V,{priority:"high",tagLabel:String(e.filter(l=>l.visible).length),variant:"error"})]}),t.jsx(T,{size:"sm",children:r}),e.map(l=>l.visible?t.jsx(s.ReorderItem,{as:"div",dragListener:!l.locked,item:l.name,value:l,children:t.jsx(Ea,{disabled:l.locked,icon:"grid-2",label:l.name,onClickIcon:l.locked?void 0:o(l.id),rightIcon:l.locked?"lock":"close",selected:l.visible,value:l.name,children:l.name})},l.name):void 0)]})},Ra=s.st(Se)`
|
|
1879
1879
|
padding: 7px 8px;
|
|
1880
1880
|
|
|
1881
1881
|
&[aria-selected="true"] {
|
|
@@ -1891,7 +1891,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
1891
1891
|
display: none;
|
|
1892
1892
|
}
|
|
1893
1893
|
}
|
|
1894
|
-
`,
|
|
1894
|
+
`,en=({options:e,title:n,checkboxesName:i,defaultCollapsed:r,onChange:a})=>{const o=s.Je(),[l,c]=f.useState(r??!1),d=f.useCallback(()=>{c(g=>!g)},[]);return t.jsxs($,{"aria-label":n,bgColor:l?o.palette.gray[50]:o.palette.white,border:"1px solid"+o.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:.625,px:.75,py:.625,role:"region",width:"100%",children:[t.jsxs($,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(T,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n}),t.jsx(N,{icon:l?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs"})]}),l?t.jsx($,{display:"flex",gap:.75,wrap:"wrap",children:e.map(g=>t.jsx($,{border:"1px solid",borderColor:o.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(ne,{checked:g.visible,disabled:g.locked,label:g.name,name:`${i}-${g.name}`,onChange:a,value:g.name})},g.name))}):void 0]})},tn=e=>e.reduce((i,r)=>r.group?i[r.group]?{...i,[r.group]:[...i[r.group],r]}:{...i,[r.group]:[r]}:i,{}),La=s.st.input`
|
|
1895
1895
|
${({theme:e})=>`
|
|
1896
1896
|
background: none;
|
|
1897
1897
|
border: none !important;
|
|
@@ -1947,7 +1947,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
1947
1947
|
border-radius: ${e.spacing[.5]};
|
|
1948
1948
|
width: 250px;
|
|
1949
1949
|
`}
|
|
1950
|
-
`,xe=
|
|
1950
|
+
`,xe=f.forwardRef(function({name:n,smallSearch:i=!1,onClear:r,value:a,...o},l){const c=s.Je(),[d,g]=f.useState(!1),{refs:p,floatingStyles:u}=s.useFloating$1(),x=f.useCallback(()=>{g(y=>!y)},[]),h=f.useCallback(y=>{y.key==="Enter"&&y.preventDefault()},[]);ie(p.floating.current,()=>{g(!1)},!0);const b=t.jsxs(Aa,{children:[t.jsx(N,{icon:"magnifying-glass",iconColor:c.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(La,{...o,id:n,name:n,onKeyDown:h,ref:l,type:"search",value:a}),!s.lodashExports.isEmpty(a)&&t.jsx(O,{icon:"xmark",iconColor:c.palette.gray[300],iconSize:"xs",iconType:"fa-light",onClick:r,px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?t.jsxs(f.Fragment,{children:[t.jsx(O,{border:`1px solid ${c.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:x,ref:p.setReference,variant:"ghost"}),d?t.jsx(Pa,{ref:p.setFloating,style:u,children:b}):void 0]}):b}),nn=({columns:e,formId:n,onChangeHandler:i,variant:r})=>{const a=f.useRef(null),[o,l]=f.useState([]),[c,d]=f.useState(""),g=f.useCallback(u=>{const{value:x}=u.target;d(x)},[]),p=f.useCallback(()=>{a.current&&(a.current.reset(),d(""))},[a]);return f.useEffect(()=>{l(e.filter(u=>{var x;return r==="grouped"?u.name.toLowerCase().includes(c.toLowerCase())||((x=u.group)==null?void 0:x.includes(c.toLowerCase())):u.name.toLowerCase().includes(c.toLowerCase())}))},[e,c,r]),r==="grouped"?t.jsxs($,{display:"flex",flexDirection:"column",gap:.625,height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:a,children:t.jsx(xe,{name:"search",onChange:g,onClear:p,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:p,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(tn(o)).map(([u,x],h)=>{const b=`li-checkbox${u}`;return t.jsx(en,{checkboxesName:u,defaultCollapsed:h===0,onChange:i,options:x,title:u},b)})})]}):t.jsxs($,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:a,children:t.jsx(xe,{name:"search",onChange:g,onClear:p,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:p,style:{paddingTop:"0.625rem"},children:o.map(u=>{const x=`li-checkbox-${u.name}`;return t.jsx(Ra,{selected:u.visible,value:x,width:"content",children:t.jsx(ne,{checked:u.visible,disabled:u.locked,label:u.name,name:u.name,onChange:i,value:u.name})},x)})})]})},Wa=({_containerId:e="portals",title:n,modalRef:i,variant:r})=>{const a=s.Je(),o=f.useRef(null),[l,c]=f.useState(void 0),d=f.useCallback(u=>{const{checked:x,value:h}=u.target,b=i.columns.map(y=>{var m;return y.name===h?((m=y.toggleVisibility)==null||m.call(y,x),{...y,visible:x}):y});i.setColumns(b)},[i]),g=f.useCallback(u=>{const x=i.columns.map(h=>{var b;return h.id===u?((b=h.toggleVisibility)==null||b.call(h,!1),{...h,visible:!1}):h});i.setColumns(x)},[i]),p=f.useCallback(()=>{var x;const u=(x=o.current)==null?void 0:x.scrollHeight;l!==u&&c(u)},[l]);return i.isOpen?re.createPortal(t.jsx(Gt,{"aria-label":i.name,"aria-modal":"true",children:t.jsxs(et,{$size:"md",flexDirection:"column",children:[t.jsxs($,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(U,{size:"sm",children:n}),t.jsx(O,{icon:"close",iconColor:a.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:i.close,px:.25,py:.25,variant:"ghost"})]}),t.jsx(ae,{mb:0,mt:0}),t.jsxs($,{display:"flex",gap:1.25,onScroll:p,px:1.25,ref:o,scroll:"y",width:"100%",children:[t.jsx(nn,{columns:i.columns,formId:"columns-visibility",onChangeHandler:d,variant:r}),t.jsx($,{borderLeft:`2px solid ${a.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(Qt,{description:"Click and drag to reorder the columns",items:i.columns,onClickClose:g,onReorder:i.setColumns,title:"Reorder columns"})]}),t.jsx(ae,{mb:0,mt:0}),t.jsxs($,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(P,{disabled:!i.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:i.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to default"}),t.jsx(P,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},Ba=s.st(Se)`
|
|
1951
1951
|
padding: 8px;
|
|
1952
1952
|
min-height: 36px;
|
|
1953
1953
|
min-width: unset;
|
|
@@ -1964,7 +1964,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
1964
1964
|
svg.fa-check {
|
|
1965
1965
|
border-radius: 2px;
|
|
1966
1966
|
}
|
|
1967
|
-
`,nn=({control:e,option:n,register:i,setValue:a})=>{var r,o,l,c,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(p=>t.jsx(ht,{value:p.value,width:"content",children:t.jsx(ne,{...i("checkbox"),label:p.label,value:p.value})},`li-checkbox-${p.value}`))});case"radioButton":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[n.label,(o=n.options)==null?void 0:o.map(p=>t.jsx(ht,{value:p.value,width:"content",children:t.jsx(Qe,{...i("radio"),label:p.label,value:p.value})},`li-radio-${p.value}`))]});case"select":return t.jsx(Xe,{control:e,items:((l=n.options)==null?void 0:l.map(p=>({name:p.label??"",value:p.value})))??[],label:n.label,name:`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`,placeholder:n.placeholder,value:n.value});case"text":const g=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Le,{label:n.label,name:g,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Wt,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:a},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:a},variant:"filters"});case"dateRange":return t.jsx(Rt,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(c=n.maxValue)==null?void 0:c.toString()},propsMin:{name:"minValue",value:(d=n.minValue)==null?void 0:d.toString()},register:i,setValue:a,variant:"filters"});default:return t.jsx("div",{})}},an=({control:e,items:n,register:i,setValue:a})=>t.jsx(t.Fragment,{children:n.map((r,o)=>{const l=`${r.type}-${r.value}-${r.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(nn,{control:e,option:r,register:i,setValue:a}),o<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),rn=e=>{var c,d,g,p,u;const[n,i]=x.useState([...e]),{control:a,register:r,handleSubmit:o,setValue:l}=s.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:((g=(d=(c=e.find(f=>f.type==="radioButton"))==null?void 0:c.options)==null?void 0:d.find(({checked:f})=>f))==null?void 0:g.value)??"",text:e.filter(f=>["text","select"].includes(f.type)).reduce((f,h)=>({...f,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(p=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:p.minValue,maxValue:(u=e.find(f=>["numberRange","dateRange"].includes(f.type)))==null?void 0:u.maxValue}});return{control:a,items:n,setItems:i,register:r,handleSubmit:o,setValue:l}},Ha=(e,n)=>{var i,a,r,o,l;n("checkbox",e.filter(c=>c.type==="checkboxes").flatMap(c=>{var d;return((d=c.options)==null?void 0:d.filter(g=>g.checked).map(g=>g.value))??[]})),n("radio",((r=(a=(i=e.find(c=>c.type==="radioButton"))==null?void 0:i.options)==null?void 0:a.find(({checked:c})=>c))==null?void 0:r.value)??""),n("text",e.filter(c=>["text","select"].includes(c.type)).reduce((c,d)=>({...c,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),n("minValue",(o=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:o.minValue),n("maxValue",(l=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:l.maxValue)},Ma=(e,n)=>(e==null?void 0:e.filter(i=>{var a;return((a=i.label)==null?void 0:a.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??i.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],_a=async(e,n)=>await Promise.all(e.map(async i=>i.type==="checkboxes"?{...i,options:i.filterOptions?await i.filterOptions(i.options??[],n):Ma(i.options??[],n)}:i)),Je=({options:e,onSearch:n,onSubmit:i,id:a,selectedFilter:r})=>{const{control:o,items:l,setItems:c,register:d,handleSubmit:g,setValue:p}=rn(e),u=e.some(b=>b.type==="checkboxes"&&b.hideSearch!==!0),f=x.useCallback(async b=>{const{value:y}=b.target;n&&n(y);const m=await _a(e,y);c(m)},[e,n,c]),h=x.useCallback(b=>{i&&i(b)},[i]);return x.useEffect(()=>{c(e),Ha(e,p)},[e,c,p]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:a,children:[u&&t.jsxs("div",{children:[r,t.jsx(xe,{onChange:f})]}),t.jsxs("form",{id:a,onSubmit:g(h),children:[t.jsx(an,{control:o,items:l,register:d,setValue:p}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})},on=({options:e,variant:n,onApplyFilters:i,onSearch:a,setDirection:r,setHandler:o})=>{const l=s.Je(),[c,d]=x.useState(e),[g,p]=x.useState([]),[u,f]=x.useState({}),[h,b]=x.useState(""),y=x.useCallback(w=>()=>{const v=c.find(C=>C.label===w),k=!(v!=null&&v.filterOptions.some(C=>C.type==="dateRange"||C.type==="select"));o==null||o(k??!0),b(w),p((v==null?void 0:v.filterOptions)??[])},[c,o]),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 N,R;return{...S,options:(N=S.options)==null?void 0:N.map(A=>({...A,checked:w.checkbox.includes(A.value)||w.radio===A.value})),value:["text","select"].includes(S.type)?((R=w.text)==null?void 0:R[`${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,E=c.map(C);d(S=>S.map(C));const z=E.flatMap(({filterOptions:S})=>S);i(z),p([])},[c,i,h]),j=x.useCallback((w,v)=>{const k=`li-filter-option-${w}`;return t.jsxs(Ba,{icon:v,onClick:y(w),style:{minWidth:"180px"},value:k,width:"100%",children:[w,u[w]===void 0?void 0:t.jsx(V,{tagLabel:u[w].length.toString()})]},k)},[u,y]);return x.useEffect(()=>{const w=e.reduce((v,{label:k,filterOptions:C})=>{const E=C.flatMap(({value:N,minValue:R,maxValue:A})=>[R,A,N]).filter(Boolean),z=C.flatMap(({options:N})=>N??[]).filter(({checked:N=!1})=>N).map(({value:N})=>N),S=[...E,...z];return S.length===0?v:{...v,[k]:S}},{});f(w),g.length>0&&r&&r("column")},[g,e,r]),n==="grouped"?t.jsx($,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:g.length>0?"unset":"360px",style:{columnGap:"10px"},width:"100%",wrap:"wrap",children:g.length>0?t.jsx(Je,{id:"filters-options",onSearch:a,onSubmit:m,options:g,selectedFilter:h}):Object.entries(en(e)).map(([w,v])=>t.jsxs($,{children:[t.jsx(I,{color:l.palette.gray[400],mb:.25,size:"sm",children:w}),v.map(({label:k,icon:C="filter-list"})=>j(k,C))]},w))}):t.jsx($,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:g.length>0?"unset":"200px",style:{columnGap:"10px"},width:"100%",wrap:"wrap",children:g.length>0?t.jsx(Je,{id:"filters-options",onSearch:a,onSubmit:m,options:g,selectedFilter:h}):e.map(({label:w,icon:v="filter-list"})=>j(w,v))})},sn=({options:e,onApplyFilters:n,onSearch:i,modalRef:a,variant:r})=>{const[o,l]=x.useState("row"),[c,d]=x.useState(!0),g=s.Je(),p=x.useRef(null),u=t.jsx(O,{icon:"close",iconColor:g.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:a.close,px:.25,py:.25,variant:"ghost"});return x.useEffect(()=>{const f=h=>{const b=p.current;b&&!b.contains(h.target)&&a.close()};if(c)return document.addEventListener("mousedown",f,!0),()=>{document.removeEventListener("mousedown",f,!0)}},[p,c,a]),t.jsx(Oa,{$bgColor:"transparent","aria-label":a.name,children:t.jsxs(et,{$size:"fixed",alignItems:o==="row"?"start":"end",display:"flex",flexDirection:o,gap:.5,id:"filters-list",position:"relative",px:1.25,py:1.25,ref:p,style:{overflow:"hidden",width:"max-content"},children:[o==="column"?u:void 0,t.jsx(on,{onApplyFilters:n,onSearch:i,options:e,setDirection:l,setHandler:d,variant:r}),o==="row"?u:void 0]})})};function Ja(e){if(e)return e}function ln(e){if(!e||e.length===0)return;const n=e.filter(a=>a.checked).map(a=>a.label??a.value);return n.length===0?void 0:n.join(", ")}function Ua(e,n,i){const a=i??"",r=s._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),o=s._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!s._.isUndefined(r)&&!s._.isUndefined(o))return`${r}${a} - ${o}${a}`;if(!s._.isUndefined(r))return`Min ${r}${a}`;if(!s._.isUndefined(o))return`Max ${o}${a}`}function Ga(e,n){if(s.dayjs_minExports.extend(s.localizedFormat),!(s._.isUndefined(e)&&s._.isUndefined(n))){if(e!==""&&n!==""&&!s._.isUndefined(e)&&!s._.isUndefined(n))return`${s.dayjs(e).format("LL")} - ${s.dayjs(n).format("LL")}`;if(e!==""&&!s._.isUndefined(e))return`From ${s.dayjs(e).format("LL")}`;if(n!==""&&!s._.isUndefined(n))return`To ${s.dayjs(n).format("LL")}`}}function Va(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const ce=({filter:e,icon:n="filter-list",label:i,onClose:a,filterValue:r})=>s._.isNil(r)||s._.isEmpty(String(r))?null:t.jsx(V,{filterValues:r,icon:n,id:"remove-filter",onClose:a(e),tagLabel:`${i} `}),Ya=({options:e,onClose:n})=>{const i=e.flatMap(a=>a.filterOptions.map(r=>{const{filterFn:o,label:l,type:c,value:d,options:g,minValue:p,maxValue:u}=r;switch(c){case"numberRange":{const f=Ua(p,u,a.placeholder);return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:n},l)}case"dateRange":{const f=Ga(p==null?void 0:p.toString(),u==null?void 0:u.toString());return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:n},l)}case"radioButton":case"checkboxes":{const f=ln(g);return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:a.label,onClose:n},l)}case void 0:case"select":case"text":default:{const f=Ja(d),h=Va(c,a.label,o);return t.jsx(ce,{filter:r,filterValue:f,icon:a.icon,label:h,onClose:n},l)}}})).filter(a=>{if(a===null)return!1;const{filterValue:r}=a.props;return!s._.isNil(r)&&!s._.isEmpty(String(r))});return i.length>0?t.jsx($,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},qa=(e,n)=>{function i(l,c){if(c.value===""||c.value===void 0||s._.defaultTo(c.isBackFilter,!1))return!0;switch(c.filterFn){case"includesInsensitive":return String(l[c.key]).toLowerCase().includes(c.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[c.key]).toLowerCase()===c.value.toLowerCase()}}function a(l,c){if(!c.options||c.options.length===0)return!0;const d=c.options.filter(g=>g.checked).map(g=>g.value);return d.length===0?!0:d.includes(String(l[c.key]))}function r(l,c,d){const g=d(String(l[c.key])),{minValue:p,maxValue:u}=c,f=s._.isEmpty(p)&&typeof p!="number"?void 0:d(String(p)),h=s._.isEmpty(u)&&typeof u!="number"?void 0:d(String(u));return s._.isUndefined(f)&&s._.isUndefined(h)?!0:(f??-1/0)<=g&&g<=(h??1/0)}function o(l){return n.every(c=>{if(typeof c.key=="function")return c.key(l,c.value);switch(c.type){case"radioButton":case"checkboxes":return a(l,c);case"numberRange":return r(l,c,Number);case"dateRange":return r(l,c,d=>new Date(d));case"select":case"text":default:return i(l,c)}})}return e.filter(o)},bt=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,Ka=e=>{var i;const n=((i=e.options)==null?void 0:i.map(a=>({...a,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},Xa=({dataset:e,localStorageKey:n,options:i,setFilteredDataset:a,onFiltersChange:r,onReset:o,onSearch:l,variant:c="ungrouped"})=>{const d=Ce("filters-modal"),[g,p]=x.useState([]),[u,f]=x.useState(bt(g)),h=i.map(w=>({...w,filterOptions:w.filterOptions.map(v=>g.find(C=>C.key===v.key&&C.type===v.type&&C.filterFn===v.filterFn)??{...v})})),b=x.useCallback(w=>{p([...w]),localStorage.setItem(n,JSON.stringify(w))},[p,n]),y=x.useCallback(()=>{o&&o(),d.toggle()},[d,o]),m=x.useCallback(w=>()=>{o&&o();const v=g.map(k=>k.key===w.key&&k.type===w.type&&k.filterFn===w.filterFn?Ka(k):k);p(v),localStorage.setItem(n,JSON.stringify(v))},[g,n,o]);return x.useEffect(()=>{const w=localStorage.getItem(n),v=i.flatMap(C=>C.filterOptions),k=w?JSON.parse(w):v;v.flatMap(C=>C.value).filter(Boolean).length>0||v.flatMap(C=>C.options).filter(C=>(C==null?void 0:C.checked)===void 0).length>0?(p(v),localStorage.setItem(n,JSON.stringify(v))):p(k)},[n,i,p]),x.useEffect(()=>{a&&e!==void 0&&a(qa(e,g)),f(bt(g)),r==null||r(g)},[e,g,a,f,r]),{Filters:()=>t.jsxs($,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx($,{pr:.25,children:t.jsx(P,{icon:"filter",id:"filterBtn",onClick:y,tag:u.toString(),variant:"ghost"})}),d.isOpen&&t.jsx(sn,{modalRef:d,onApplyFilters:b,onSearch:l,options:h,variant:c})]}),options:h,removeFilter:m}},nt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:a=void 0,confirmButton:r=void 0,content:o=void 0,description:l=void 0,modalRef:c,otherActions:d=void 0,onClose:g=void 0,tabItems:p=void 0,title:u=void 0,size:f,id:h="modal-container"})=>{const b=s.Je(),y=t.jsx(Ut,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(et,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(u)&&!s._.isNil(u)&&t.jsx(Vt,{description:l,modalRef:c,onClose:g,otherActions:d,title:u}),p&&t.jsx($,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(tt,{items:p})}),(s._.isObject(o)||a)&&t.jsxs(va,{children:[a,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(za,{$framed:o.imageFramed,children:t.jsx(Q,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(I,{size:"sm",children:o.imageText})]}),t.jsx(Gt,{alert:n,cancelButton:i,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?re.createPortal(y,document.getElementById("portals")??document.body):c.isOpen?y:null},Za=(e,n,i)=>{const a=Ce("confirm-dialog-modal"),r=x.useRef(null),o=x.useCallback(async()=>(a.open(),new Promise(g=>{r.current=g})),[a]),l=x.useCallback(()=>{var g;a.close(),(g=r.current)==null||g.call(r,!0)},[a]),c=x.useCallback(()=>{var g;a.close(),(g=r.current)==null||g.call(r,!1)},[a]);return[o,({children:g})=>{const[p,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(p).every(({state:m})=>m),y=Object.entries(p).map(([m,{state:j,label:w}])=>t.jsx(ne,{defaultChecked:j,label:w,name:m,onChange:h(m)},m));return t.jsxs(nt,{"data-testid":e,id:e,modalRef:{...a,close:c},onClose:f,size:"sm",title:n,children:[g,t.jsx($,{display:"flex",flexDirection:"column",gap:.5,children:y}),t.jsx(Yt,{disabled:b,id:e,onConfirm:l})]})}]},Qa=()=>{const[e,n]=x.useState(!1),[i,a]=x.useState(),r=x.useRef(null),o=Ce("confirm-dialog-modal"),l=x.useCallback(async p=>(a(p),n(!0),new Promise(u=>{r.current=u})),[]),c=x.useCallback(()=>{var p;n(!1),a(void 0),(p=r.current)==null||p.call(r,!0)},[]),d=x.useCallback(()=>{var p;n(!1),a(void 0),(p=r.current)==null||p.call(r,!1)},[]);return x.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:p="confirm-dialog-modal",children:u})=>t.jsxs(nt,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(i==null?void 0:i.id)??"modal-confirm",onClick:c,text:"Confirm"},description:i==null?void 0:i.message,id:p,modalRef:{...o,close:d},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,u]}),confirm:l}},er=s.st.ul`
|
|
1967
|
+
`,an=({control:e,option:n,register:i,setValue:r})=>{var a,o,l,c,d;switch(n.type){case"checkboxes":return t.jsx("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:(a=n.options)==null?void 0:a.map(p=>t.jsx(ht,{value:p.value,width:"content",children:t.jsx(ne,{...i("checkbox"),label:p.label,value:p.value})},`li-checkbox-${p.value}`))});case"radioButton":return t.jsxs("div",{style:{overflowX:"hidden",overflowY:"auto",maxHeight:"280px"},children:[n.label,(o=n.options)==null?void 0:o.map(p=>t.jsx(ht,{value:p.value,width:"content",children:t.jsx(Qe,{...i("radio"),label:p.label,value:p.value})},`li-radio-${p.value}`))]});case"select":return t.jsx(Xe,{control:e,items:((l=n.options)==null?void 0:l.map(p=>({name:p.label??"",value:p.value})))??[],label:n.label,name:`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`,placeholder:n.placeholder,value:n.value});case"text":const g=`text.${String(n.key)}-${n.filterFn??"caseInsensitive"}`;return t.jsx(Le,{label:n.label,name:g,placeholder:n.placeholder,register:i,value:n.value});case"numberRange":return t.jsx(Bt,{label:n.label,name:String(n.key),propsMax:{placeholder:n.placeholder?`${n.placeholder} Max`:"Max",register:i,name:"maxValue",value:n.maxValue,setValue:r},propsMin:{placeholder:n.placeholder?`${n.placeholder} Min`:"Min",register:i,name:"minValue",value:n.minValue,setValue:r},variant:"filters"});case"dateRange":return t.jsx(Lt,{label:n.label,name:String(n.key),propsMax:{name:"maxValue",value:(c=n.maxValue)==null?void 0:c.toString()},propsMin:{name:"minValue",value:(d=n.minValue)==null?void 0:d.toString()},register:i,setValue:r,variant:"filters"});default:return t.jsx("div",{})}},rn=({control:e,items:n,register:i,setValue:r})=>t.jsx(t.Fragment,{children:n.map((a,o)=>{const l=`${a.type}-${a.value}-${a.filterFn??"default"}`;return t.jsxs("div",{children:[t.jsx(an,{control:e,option:a,register:i,setValue:r}),o<n.length-1&&t.jsx("hr",{style:{margin:"1.25rem 0 0.625rem"}})]},l)})}),on=e=>{var c,d,g,p,u;const[n,i]=f.useState([...e]),{control:r,register:a,handleSubmit:o,setValue:l}=s.useForm({defaultValues:{checkbox:e.filter(x=>x.type==="checkboxes").flatMap(x=>{var h;return((h=x.options)==null?void 0:h.filter(b=>b.checked).map(b=>b.value))??[]}),radio:((g=(d=(c=e.find(x=>x.type==="radioButton"))==null?void 0:c.options)==null?void 0:d.find(({checked:x})=>x))==null?void 0:g.value)??"",text:e.filter(x=>["text","select"].includes(x.type)).reduce((x,h)=>({...x,[`${String(h.key)}-${h.filterFn??"caseInsensitive"}`]:h.value??""}),{}),minValue:(p=e.find(x=>["numberRange","dateRange"].includes(x.type)))==null?void 0:p.minValue,maxValue:(u=e.find(x=>["numberRange","dateRange"].includes(x.type)))==null?void 0:u.maxValue}});return{control:r,items:n,setItems:i,register:a,handleSubmit:o,setValue:l}},Ha=(e,n)=>{var i,r,a,o,l;n("checkbox",e.filter(c=>c.type==="checkboxes").flatMap(c=>{var d;return((d=c.options)==null?void 0:d.filter(g=>g.checked).map(g=>g.value))??[]})),n("radio",((a=(r=(i=e.find(c=>c.type==="radioButton"))==null?void 0:i.options)==null?void 0:r.find(({checked:c})=>c))==null?void 0:a.value)??""),n("text",e.filter(c=>["text","select"].includes(c.type)).reduce((c,d)=>({...c,[`${String(d.key)}-${d.filterFn??"caseInsensitive"}`]:d.value??""}),{})),n("minValue",(o=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:o.minValue),n("maxValue",(l=e.find(c=>["numberRange","dateRange"].includes(c.type)))==null?void 0:l.maxValue)},Ma=(e,n)=>(e==null?void 0:e.filter(i=>{var r;return((r=i.label)==null?void 0:r.toLowerCase().includes((n==null?void 0:n.toLowerCase())??""))??i.value.toLowerCase().includes((n==null?void 0:n.toLowerCase())??"")}))??[],_a=async(e,n)=>await Promise.all(e.map(async i=>i.type==="checkboxes"?{...i,options:i.filterOptions?await i.filterOptions(i.options??[],n):Ma(i.options??[],n)}:i)),Je=({options:e,onSearch:n,onSubmit:i,id:r,selectedFilter:a})=>{const{control:o,items:l,setItems:c,register:d,handleSubmit:g,setValue:p}=on(e),u=e.some(b=>b.type==="checkboxes"&&b.hideSearch!==!0),x=f.useCallback(async b=>{const{value:y}=b.target;n&&n(y);const m=await _a(e,y);c(m)},[e,n,c]),h=f.useCallback(b=>{i&&i(b)},[i]);return f.useEffect(()=>{c(e),Ha(e,p)},[e,c,p]),t.jsxs("div",{className:"flex flex-col gap-[8px]",id:r,children:[u&&t.jsxs("div",{children:[a,t.jsx(xe,{onChange:x})]}),t.jsxs("form",{id:r,onSubmit:g(h),children:[t.jsx(rn,{control:o,items:l,register:d,setValue:p}),t.jsx(P,{mt:1,type:"submit",children:"Apply"})]})]})},sn=({options:e,variant:n,onApplyFilters:i,onSearch:r,setDirection:a,setHandler:o})=>{const l=s.Je(),[c,d]=f.useState(e),[g,p]=f.useState([]),[u,x]=f.useState({}),[h,b]=f.useState(""),y=f.useCallback(w=>()=>{const v=c.find(C=>C.label===w),k=!(v!=null&&v.filterOptions.some(C=>C.type==="dateRange"||C.type==="select"));o==null||o(k??!0),b(w),p((v==null?void 0:v.filterOptions)??[])},[c,o]),m=f.useCallback(w=>{const v=[...w.checkbox,...Object.values(w.text??{}),...w.radio?[w.radio]:[],...w.minValue?[String(w.minValue)]:[],...w.maxValue?[String(w.maxValue)]:[]];x(S=>v.length>0?{...S,[h]:v}:S);const k=S=>{var R,z;return{...S,options:(R=S.options)==null?void 0:R.map(L=>({...L,checked:w.checkbox.includes(L.value)||w.radio===L.value})),value:["text","select"].includes(S.type)?((z=w.text)==null?void 0:z[`${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,E=c.map(C);d(S=>S.map(C));const I=E.flatMap(({filterOptions:S})=>S);i(I),p([])},[c,i,h]),j=f.useCallback((w,v)=>{const k=`li-filter-option-${w}`;return t.jsxs(Ba,{icon:v,onClick:y(w),style:{minWidth:"180px"},value:k,width:"100%",children:[w,u[w]===void 0?void 0:t.jsx(V,{tagLabel:u[w].length.toString()})]},k)},[u,y]);return f.useEffect(()=>{const w=e.reduce((v,{label:k,filterOptions:C})=>{const E=C.flatMap(({value:R,minValue:z,maxValue:L})=>[z,L,R]).filter(Boolean),I=C.flatMap(({options:R})=>R??[]).filter(({checked:R=!1})=>R).map(({value:R})=>R),S=[...E,...I];return S.length===0?v:{...v,[k]:S}},{});x(w),g.length>0&&a&&a("column")},[g,e,a]),n==="grouped"?t.jsx($,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:g.length>0?"unset":"360px",style:{columnGap:"10px"},width:"100%",wrap:"wrap",children:g.length>0?t.jsx(Je,{id:"filters-options",onSearch:r,onSubmit:m,options:g,selectedFilter:h}):Object.entries(tn(e)).map(([w,v])=>t.jsxs($,{children:[t.jsx(T,{color:l.palette.gray[400],mb:.25,size:"sm",children:w}),v.map(({label:k,icon:C="filter-list"})=>j(k,C))]},w))}):t.jsx($,{display:"flex",flexDirection:"column",flexGrow:1,maxHeight:g.length>0?"unset":"200px",style:{columnGap:"10px"},width:"100%",wrap:"wrap",children:g.length>0?t.jsx(Je,{id:"filters-options",onSearch:r,onSubmit:m,options:g,selectedFilter:h}):e.map(({label:w,icon:v="filter-list"})=>j(w,v))})},ln=({options:e,onApplyFilters:n,onSearch:i,modalRef:r,variant:a})=>{const[o,l]=f.useState("row"),[c,d]=f.useState(!0),g=s.Je(),p=f.useRef(null),u=t.jsx(O,{icon:"close",iconColor:g.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:r.close,px:.25,py:.25,variant:"ghost"});return f.useEffect(()=>{const x=h=>{const b=p.current;b&&!b.contains(h.target)&&r.close()};if(c)return document.addEventListener("mousedown",x,!0),()=>{document.removeEventListener("mousedown",x,!0)}},[p,c,r]),t.jsx(Oa,{$bgColor:"transparent","aria-label":r.name,children:t.jsxs(et,{$size:"fixed",alignItems:o==="row"?"start":"end",display:"flex",flexDirection:o,gap:.5,id:"filters-list",position:"relative",px:1.25,py:1.25,ref:p,style:{overflow:"hidden",width:"max-content"},children:[o==="column"?u:void 0,t.jsx(sn,{onApplyFilters:n,onSearch:i,options:e,setDirection:l,setHandler:d,variant:a}),o==="row"?u:void 0]})})};function Ja(e){if(e)return e}function cn(e){if(!e||e.length===0)return;const n=e.filter(r=>r.checked).map(r=>r.label??r.value);return n.length===0?void 0:n.join(", ")}function Ua(e,n,i){const r=i??"",a=s._.isEmpty(e)&&typeof e!="number"||Number.isNaN(e)?void 0:Number(e),o=s._.isEmpty(n)&&typeof n!="number"||Number.isNaN(n)?void 0:Number(String(n));if(!s._.isUndefined(a)&&!s._.isUndefined(o))return`${a}${r} - ${o}${r}`;if(!s._.isUndefined(a))return`Min ${a}${r}`;if(!s._.isUndefined(o))return`Max ${o}${r}`}function Ga(e,n){if(s.dayjs_minExports.extend(s.localizedFormat),!(s._.isUndefined(e)&&s._.isUndefined(n))){if(e!==""&&n!==""&&!s._.isUndefined(e)&&!s._.isUndefined(n))return`${s.dayjs(e).format("LL")} - ${s.dayjs(n).format("LL")}`;if(e!==""&&!s._.isUndefined(e))return`From ${s.dayjs(e).format("LL")}`;if(n!==""&&!s._.isUndefined(n))return`To ${s.dayjs(n).format("LL")}`}}function Va(e,n,i){return e==="select"?n:`${n} ${i==="includesInsensitive"?"contains":"is"}`}const ce=({filter:e,icon:n="filter-list",label:i,onClose:r,filterValue:a})=>s._.isNil(a)||s._.isEmpty(String(a))?null:t.jsx(V,{filterValues:a,icon:n,id:"remove-filter",onClose:r(e),tagLabel:`${i} `}),Ya=({options:e,onClose:n})=>{const i=e.flatMap(r=>r.filterOptions.map(a=>{const{filterFn:o,label:l,type:c,value:d,options:g,minValue:p,maxValue:u}=a;switch(c){case"numberRange":{const x=Ua(p,u,r.placeholder);return t.jsx(ce,{filter:a,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case"dateRange":{const x=Ga(p==null?void 0:p.toString(),u==null?void 0:u.toString());return t.jsx(ce,{filter:a,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case"radioButton":case"checkboxes":{const x=cn(g);return t.jsx(ce,{filter:a,filterValue:x,icon:r.icon,label:r.label,onClose:n},l)}case void 0:case"select":case"text":default:{const x=Ja(d),h=Va(c,r.label,o);return t.jsx(ce,{filter:a,filterValue:x,icon:r.icon,label:h,onClose:n},l)}}})).filter(r=>{if(r===null)return!1;const{filterValue:a}=r.props;return!s._.isNil(a)&&!s._.isEmpty(String(a))});return i.length>0?t.jsx($,{alignItems:"center",display:"flex",gap:.5,pb:1,width:"100%",wrap:"wrap",children:i}):null},qa=(e,n)=>{function i(l,c){if(c.value===""||c.value===void 0||s._.defaultTo(c.isBackFilter,!1))return!0;switch(c.filterFn){case"includesInsensitive":return String(l[c.key]).toLowerCase().includes(c.value.toLowerCase());case"caseInsensitive":case void 0:default:return String(l[c.key]).toLowerCase()===c.value.toLowerCase()}}function r(l,c){if(!c.options||c.options.length===0)return!0;const d=c.options.filter(g=>g.checked).map(g=>g.value);return d.length===0?!0:d.includes(String(l[c.key]))}function a(l,c,d){const g=d(String(l[c.key])),{minValue:p,maxValue:u}=c,x=s._.isEmpty(p)&&typeof p!="number"?void 0:d(String(p)),h=s._.isEmpty(u)&&typeof u!="number"?void 0:d(String(u));return s._.isUndefined(x)&&s._.isUndefined(h)?!0:(x??-1/0)<=g&&g<=(h??1/0)}function o(l){return n.every(c=>{if(typeof c.key=="function")return c.key(l,c.value);switch(c.type){case"radioButton":case"checkboxes":return r(l,c);case"numberRange":return a(l,c,Number);case"dateRange":return a(l,c,d=>new Date(d));case"select":case"text":default:return i(l,c)}})}return e.filter(o)},bt=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,Ka=e=>{var i;const n=((i=e.options)==null?void 0:i.map(r=>({...r,checked:void 0})))??void 0;return{...e,minValue:void 0,maxValue:void 0,value:void 0,options:n}},Xa=({dataset:e,localStorageKey:n,options:i,setFilteredDataset:r,onFiltersChange:a,onReset:o,onSearch:l,variant:c="ungrouped"})=>{const d=Ce("filters-modal"),[g,p]=f.useState([]),[u,x]=f.useState(bt(g)),h=i.map(w=>({...w,filterOptions:w.filterOptions.map(v=>g.find(C=>C.key===v.key&&C.type===v.type&&C.filterFn===v.filterFn)??{...v})})),b=f.useCallback(w=>{p([...w]),localStorage.setItem(n,JSON.stringify(w))},[p,n]),y=f.useCallback(()=>{o&&o(),d.toggle()},[d,o]),m=f.useCallback(w=>()=>{o&&o();const v=g.map(k=>k.key===w.key&&k.type===w.type&&k.filterFn===w.filterFn?Ka(k):k);p(v),localStorage.setItem(n,JSON.stringify(v))},[g,n,o]);return f.useEffect(()=>{const w=localStorage.getItem(n),v=i.flatMap(C=>C.filterOptions),k=w?JSON.parse(w):v;v.flatMap(C=>C.value).filter(Boolean).length>0||v.flatMap(C=>C.options).filter(C=>(C==null?void 0:C.checked)===void 0).length>0?(p(v),localStorage.setItem(n,JSON.stringify(v))):p(k)},[n,i,p]),f.useEffect(()=>{r&&e!==void 0&&r(qa(e,g)),x(bt(g)),a==null||a(g)},[e,g,r,x,a]),{Filters:()=>t.jsxs($,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",position:"relative",wrap:"wrap",children:[t.jsx($,{pr:.25,children:t.jsx(P,{icon:"filter",id:"filterBtn",onClick:y,tag:u.toString(),variant:"ghost"})}),d.isOpen&&t.jsx(ln,{modalRef:d,onApplyFilters:b,onSearch:l,options:h,variant:c})]}),options:h,removeFilter:m}},nt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:r=void 0,confirmButton:a=void 0,content:o=void 0,description:l=void 0,modalRef:c,otherActions:d=void 0,onClose:g=void 0,tabItems:p=void 0,title:u=void 0,size:x,id:h="modal-container"})=>{const b=s.Je(),y=t.jsx(Gt,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(et,{$size:x,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(u)&&!s._.isNil(u)&&t.jsx(Yt,{description:l,modalRef:c,onClose:g,otherActions:d,title:u}),p&&t.jsx($,{borderTop:`1px solid ${b.palette.gray[300]}`,display:"block",mb:1.25,position:"sticky",children:t.jsx(tt,{items:p})}),(s._.isObject(o)||r)&&t.jsxs(va,{children:[r,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(za,{$framed:o.imageFramed,children:t.jsx(Q,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(T,{size:"sm",children:o.imageText})]}),t.jsx(Vt,{alert:n,cancelButton:i,confirmButton:a,modalRef:c})]})});return e&&c.isOpen?re.createPortal(y,document.getElementById("portals")??document.body):c.isOpen?y:null},Za=(e,n,i)=>{const r=Ce("confirm-dialog-modal"),a=f.useRef(null),o=f.useCallback(async()=>(r.open(),new Promise(g=>{a.current=g})),[r]),l=f.useCallback(()=>{var g;r.close(),(g=a.current)==null||g.call(a,!0)},[r]),c=f.useCallback(()=>{var g;r.close(),(g=a.current)==null||g.call(a,!1)},[r]);return[o,({children:g})=>{const[p,u]=f.useState(i),x=f.useCallback(()=>{u({...i})},[]),h=f.useCallback(m=>()=>{u(j=>({...j,[m]:{...j[m],state:!j[m].state}}))},[]),b=!Object.values(p).every(({state:m})=>m),y=Object.entries(p).map(([m,{state:j,label:w}])=>t.jsx(ne,{defaultChecked:j,label:w,name:m,onChange:h(m)},m));return t.jsxs(nt,{"data-testid":e,id:e,modalRef:{...r,close:c},onClose:x,size:"sm",title:n,children:[g,t.jsx($,{display:"flex",flexDirection:"column",gap:.5,children:y}),t.jsx(qt,{disabled:b,id:e,onConfirm:l})]})}]},Qa=()=>{const[e,n]=f.useState(!1),[i,r]=f.useState(),a=f.useRef(null),o=Ce("confirm-dialog-modal"),l=f.useCallback(async p=>(r(p),n(!0),new Promise(u=>{a.current=u})),[]),c=f.useCallback(()=>{var p;n(!1),r(void 0),(p=a.current)==null||p.call(a,!0)},[]),d=f.useCallback(()=>{var p;n(!1),r(void 0),(p=a.current)==null||p.call(a,!1)},[]);return f.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:p="confirm-dialog-modal",children:u})=>t.jsxs(nt,{cancelButton:{onClick:d,text:"Cancel"},confirmButton:{id:(i==null?void 0:i.id)??"modal-confirm",onClick:c,text:"Confirm"},description:i==null?void 0:i.message,id:p,modalRef:{...o,close:d},size:"sm",title:i==null?void 0:i.title,children:[i==null?void 0:i.content,u]}),confirm:l}},er=s.st.ul`
|
|
1968
1968
|
${({theme:e})=>`
|
|
1969
1969
|
align-items: flex-start;
|
|
1970
1970
|
border-radius: ${e.spacing[.25]};
|
|
@@ -2003,7 +2003,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2003
2003
|
cursor: not-allowed;
|
|
2004
2004
|
}
|
|
2005
2005
|
`}
|
|
2006
|
-
`,nr=({icon:e,iconColor:n,id:i,showChevron:
|
|
2006
|
+
`,nr=({icon:e,iconColor:n,id:i,showChevron:r,options:a,title:o})=>{const l=s.Je(),[c,d]=f.useState(!1),g=c?"chevron-up":"chevron-down",{refs:p,floatingStyles:u}=s.useFloating({middleware:[s.offset({mainAxis:4})],placement:"bottom-start"}),x=f.useCallback(()=>{d(h=>!h)},[]);return ie(p.floating.current,()=>{d(!1)},!0,document.getElementById("dropdown-toggle")),t.jsxs(f.Fragment,{children:[t.jsx(P,{"aria-label":o,icon:e,iconColor:n,iconType:"fa-solid",id:`dropdown-toggle-${i}`,onClick:x,ref:p.setReference,rightIcon:r?g:void 0,variant:"ghost",children:o}),c?t.jsx(er,{ref:p.setFloating,style:u,children:a.map(h=>{const b=({})=>{h.onClick(),d(!1)};return t.jsxs(tr,{"aria-disabled":h.disabled,"aria-label":h.label,onClick:h.disabled?void 0:b,children:[t.jsx(N,{icon:h.icon,iconColor:h.iconColor??l.palette.gray[300],iconSize:"xxs",iconType:"fa-light"}),h.label]},h.label)})}):void 0]})},Ue=({buttonProps:e,variant:n})=>t.jsx(P,{onClick:e.onClick,variant:n,children:e.text}),ir=s.st.div`
|
|
2007
2007
|
display: flex;
|
|
2008
2008
|
flex-direction: column;
|
|
2009
2009
|
align-items: center;
|
|
@@ -2037,7 +2037,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2037
2037
|
> *:last-child {
|
|
2038
2038
|
margin-right: 0;
|
|
2039
2039
|
}
|
|
2040
|
-
`,yt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},or=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:
|
|
2040
|
+
`,yt={md:{description:"md",title:"md"},sm:{description:"sm",title:"xs"}},or=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:r="integrates/empty/addRoot",padding:a=1.25,title:o,size:l="md"})=>{const c=(n??e)!==void 0;return t.jsxs(ir,{$padding:a,children:[t.jsx(ar,{children:t.jsx(Q,{alt:"empty-icon",publicId:r})}),t.jsx(U,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:yt[l].title,textAlign:"center",children:o}),t.jsx(T,{mb:c?2:void 0,size:yt[l].description,textAlign:"center",children:i}),c?t.jsxs(rr,{children:[e&&t.jsx(Ue,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(Ue,{buttonProps:n,variant:"primary"})]}):void 0]})},sr=({children:e})=>{const n=s.useFormContext();return e({...n})},lr=s.st.form`
|
|
2041
2041
|
${({theme:e})=>`
|
|
2042
2042
|
align-items: flex-start;
|
|
2043
2043
|
align-self: stretch;
|
|
@@ -2047,14 +2047,14 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2047
2047
|
overflow: hidden auto;
|
|
2048
2048
|
width: 100%;
|
|
2049
2049
|
`}
|
|
2050
|
-
`,cr=({alert:e,buttonAlignment:n,cancelButton:i,children:
|
|
2050
|
+
`,cr=({alert:e,buttonAlignment:n,cancelButton:i,children:r,confirmButton:a,defaultDisabled:o=!0,id:l="modal-confirm",maxButtonWidth:c="392px",mode:d,onSubmit:g,padding:p=!0,showButtons:u=!0,yupSchema:x,...h})=>{const b=s.Je(),y=s.useForm({...h,mode:d??"all",resolver:x?s.o(x):void 0}),j=u?`calc(100% - ${e?"139px":"83px"})`:"100%",w=p?1.5:0;return t.jsx(s.FormProvider,{...y,children:t.jsx(lr,{onSubmit:y.handleSubmit(g),children:t.jsxs($,{scroll:"y",width:"100%",children:[t.jsx($,{borderRadius:`0 0 ${b.spacing[.25]} ${b.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:j,pb:w,pt:0,px:w,scroll:"y",children:r}),u&&t.jsxs($,{borderRadius:`0 0 ${b.spacing[.25]} ${b.spacing[.25]}`,borderTop:`1px solid ${b.palette.gray[200]}`,display:"flex",flexDirection:n?"unset":"column",gap:.625,justify:n??"stretch",position:"sticky",px:1.25,py:1.25,children:[e,t.jsxs($,{display:"flex",gap:.75,maxWidth:c,children:[i?t.jsx(P,{icon:i.icon,id:`${l}-cancel`,justify:"center",onClick:i.onClick,type:"reset",variant:"tertiary",width:"100%",children:i.label??"Cancel"}):void 0,t.jsx(P,{disabled:((a==null?void 0:a.disabled)??!1)||y.formState.isSubmitting||o&&!y.formState.isDirty,icon:a==null?void 0:a.icon,id:l,justify:"center",type:"submit",width:"100%",children:(a==null?void 0:a.label)??"Confirm"})]})]})]})})})},dr=s.st(ve)`
|
|
2051
2051
|
display: grid;
|
|
2052
2052
|
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
2053
2053
|
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
2054
2054
|
|
|
2055
|
-
${({theme:e,$xl:n,$lg:i,$md:
|
|
2055
|
+
${({theme:e,$xl:n,$lg:i,$md:r})=>`
|
|
2056
2056
|
@media (width >= ${e.breakpoints.sm}) {
|
|
2057
|
-
grid-template-columns: repeat(${
|
|
2057
|
+
grid-template-columns: repeat(${r}, 1fr);
|
|
2058
2058
|
}
|
|
2059
2059
|
|
|
2060
2060
|
@media (width >= ${e.breakpoints.md}) {
|
|
@@ -2065,7 +2065,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2065
2065
|
grid-template-columns: repeat(${n}, 1fr);
|
|
2066
2066
|
}
|
|
2067
2067
|
`}
|
|
2068
|
-
`,pr=
|
|
2068
|
+
`,pr=f.forwardRef(function({children:n,md:i,sm:r,lg:a,xl:o,gap:l,...c},d){return t.jsx(dr,{$gap:l,$lg:a,$md:i,$sm:r,$xl:o,ref:d,...c,children:n})}),gr=s.st.div`
|
|
2069
2069
|
${({theme:e,$itemsLength:n})=>`
|
|
2070
2070
|
display: flex;
|
|
2071
2071
|
background-color: ${e.palette.white};
|
|
@@ -2101,7 +2101,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2101
2101
|
background-color: ${e.palette.gray[100]};
|
|
2102
2102
|
}
|
|
2103
2103
|
`}
|
|
2104
|
-
`,
|
|
2104
|
+
`,dn=({isSelected:e=!1,label:n,onSelect:i})=>{const r=s.Je(),a=f.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(it,{$isSelected:e,onClick:a,children:[e?t.jsx(N,{icon:"check",iconColor:r.palette.gray[800],iconSize:"xs"}):null,t.jsx(T,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},ur=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:r,onClose:a,selectedItem:o,title:l,variant:c})=>{const d=s.Je(),[g,p]=f.useState(n),[u,x]=f.useState(""),h=f.useCallback(m=>{p(j=>j.filter(w=>String(w.name).toLowerCase().includes(m.toLocaleLowerCase())))},[p]),b=f.useCallback(m=>{m.currentTarget&&(x(m.currentTarget.value),h(m.currentTarget.value))},[x,h]);f.useEffect(()=>{p(n),h(u)},[n,h,u]);const y=t.jsx($,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx($,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(gr,{$itemsLength:g.length,children:[t.jsxs($,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(T,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(O,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:a,variant:"ghost"})]}),t.jsx($,{mt:1,children:t.jsx(xe,{onInput:b,placeholder:"Search"})}),t.jsx(ae,{mb:1,mt:1}),t.jsxs($,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(it,{onClick:i,children:t.jsxs($,{alignItems:"center",display:"flex",children:[t.jsx(N,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(T,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,g.map(m=>t.jsx(dn,{isSelected:o.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:r},m.name))]})]})})});return e?re.createPortal(y,document.body):t.jsx("div",{})},xr=({description:e,height:n="auto",leftIconName:i,children:r,rightIconName:a,title:o,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:g="centered",width:p="318px"})=>{const u=s.Je(),x=g==="centered",h=l&&t.jsx(G,{icon:a??i,iconColor:u.palette.gray[800],id:l,place:d,tip:c});return t.jsxs($,{alignItems:x?"center":"flex-start",bgColor:u.palette.gray[50],border:`1px solid ${u.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:x?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:p,children:[t.jsxs($,{alignItems:"center",display:"flex",gap:.5,children:[x||s.lodashExports.isUndefined(i)?void 0:h,t.jsx(T,{color:x?u.palette.gray[800]:u.palette.gray[400],size:"md",textAlign:x?"center":"start",children:e}),x||s.lodashExports.isUndefined(a)?void 0:h]}),t.jsxs($,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[x&&!s.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[s.lodashExports.isUndefined(o)?void 0:t.jsx(U,{fontWeight:"bold",size:"md",children:o}),r]}),x&&!s.lodashExports.isUndefined(a)?h:void 0]})]})},fr=({actions:e,children:n,header:i,title:r,tabs:a,footer:o})=>{const l=s.Je();return t.jsxs($,{alignItems:"flex-start",bgColor:l.palette.white,borderLeft:`1px solid ${l.palette.gray[300]}`,display:"flex",flexDirection:"column",maxHeight:"750px",width:"480px",children:[t.jsxs($,{alignItems:"flex-start",alignSelf:"stretch",borderBottom:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.25,justify:"space-between",px:1.25,py:1,children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(T,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:r}),i]}),e&&t.jsx($,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},g)=>t.jsx(O,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${g}-${c}`))})]}),t.jsx($,{display:"flex",pt:.25,width:"100%",children:t.jsx(tt,{items:a})}),t.jsx($,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),o&&t.jsx($,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:o.map(({icon:c,text:d,onClick:g},p)=>t.jsx(P,{icon:c,onClick:g,variant:p===0?"primary":"tertiary",width:"100%",children:d},`${p}-${d}`))})]})},hr=s.st.span`
|
|
2105
2105
|
${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
|
|
2106
2106
|
background-color: ${n};
|
|
2107
2107
|
border-radius: 5px;
|
|
@@ -2110,7 +2110,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2110
2110
|
padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
|
|
2111
2111
|
text-decoration: ${i}
|
|
2112
2112
|
`}
|
|
2113
|
-
`,br=({bgColor:e,children:n,txtDecoration:i,ml:
|
|
2113
|
+
`,br=({bgColor:e,children:n,txtDecoration:i,ml:r=1})=>t.jsx(hr,{$bgColor:e,$txtDecoration:i,className:`ml-${r}`,children:n}),yr={lg:"56",md:"30",sm:"12"},{getVariant:$r}=q(e=>({blue:`stroke: ${e.palette.info[500]};`,red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),mr=s.ct`
|
|
2114
2114
|
0% {
|
|
2115
2115
|
transform: rotateZ(0deg);
|
|
2116
2116
|
}
|
|
@@ -2162,12 +2162,12 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2162
2162
|
stroke-width: 10px;
|
|
2163
2163
|
transform-origin: 50% 50%;
|
|
2164
2164
|
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2165
|
-
`,Cr=({color:e="red",label:n,size:i})=>{const
|
|
2165
|
+
`,Cr=({color:e="red",label:n,size:i})=>{const r=s.Je();return t.jsxs($,{alignItems:"center",display:"flex",children:[t.jsxs(jr,{$size:i,viewBox:"0 0 100 100",children:[t.jsx(kr,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(vr,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(T,{color:e==="red"||e==="blue"?r.palette.gray[700]:r.palette.white,ml:.5,size:"sm",children:n})]})},Sr={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},zr=({publicId:e,variant:n})=>t.jsx($,{...Sr[n],children:t.jsx(Q,{alt:"logo",publicId:e})}),Ir=s.st(s.Lottie).attrs(({autoplay:e=!0})=>({autoplay:e,className:"comp-lottie"}))`
|
|
2166
2166
|
${({$size:e=16})=>`
|
|
2167
2167
|
height: ${e}px;
|
|
2168
2168
|
width: ${e}px;
|
|
2169
2169
|
`}
|
|
2170
|
-
`,Tr=e=>{const{size:n}=e;return t.jsx(Ir,{$size:n,...e})},Fr=({children:e,commitSha:n,commitShortSha:i,parentElement:
|
|
2170
|
+
`,Tr=e=>{const{size:n}=e;return t.jsx(Ir,{$size:n,...e})},Fr=({children:e,commitSha:n,commitShortSha:i,parentElement:r,userInfo:a,setVisibility:o})=>{const l=s.Je(),{userName:c,email:d,phone:g,userRole:p}=a;return ie(r,()=>{o(!1)}),t.jsxs(Zt,{children:[t.jsx("li",{className:"user-info",children:t.jsxs($,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(T,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(T,{color:l.palette.gray[400],size:"sm",children:d}),s.lodashExports.isUndefined(g)?void 0:t.jsx(T,{color:l.palette.gray[400],size:"sm",children:g})]}),t.jsx($,{children:t.jsx(V,{tagLabel:p,variant:"role"})})]})}),t.jsx(ae,{}),e,t.jsx(ae,{}),t.jsx("li",{className:"commit-info",children:t.jsx(K,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${n}`,iconPosition:"hidden",children:t.jsx(T,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},Nr=s.st.button`
|
|
2171
2171
|
align-items: center;
|
|
2172
2172
|
background-color: transparent;
|
|
2173
2173
|
border: unset;
|
|
@@ -2178,13 +2178,13 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2178
2178
|
padding: 0;
|
|
2179
2179
|
|
|
2180
2180
|
&:hover p {
|
|
2181
|
-
color: ${
|
|
2181
|
+
color: ${F.palette.primary[200]};
|
|
2182
2182
|
}
|
|
2183
2183
|
|
|
2184
2184
|
&:hover span {
|
|
2185
|
-
color: ${
|
|
2185
|
+
color: ${F.palette.primary[200]};
|
|
2186
2186
|
}
|
|
2187
|
-
`,Dr=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:
|
|
2187
|
+
`,Dr=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:r="regular",show:a=!0,icon:o,onClose:l,buttonSide:c="end"})=>{const d=s.Je(),[g,p]=f.useState(a),u=f.useCallback(()=>{p(!1),l==null||l()},[l]);f.useEffect(()=>{p(a)},[a,p]);const x=t.jsxs(Nr,{onClick:n,children:[t.jsx(T,{color:d.palette.white,fontWeight:r,size:"sm",textDecoration:"underline",children:i}),t.jsx(N,{icon:o??"arrow-right",iconColor:d.palette.white,iconSize:"xs",iconType:r==="bold"?"fa-regular":"fa-light"})]});return t.jsxs($,{alignItems:"center",bgGradient:d.palette.gradients["01"],display:g?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs($,{display:"flex",gap:.5,justify:"center",width:"100%",children:[c==="start"&&n?x:void 0,t.jsx($,{children:typeof e=="string"?t.jsx(T,{color:d.palette.white,display:"inline",size:"sm",children:e}):e}),c==="end"&&n?x:void 0]}),t.jsx(N,{clickable:!0,hoverColor:d.palette.primary[200],icon:"close",iconColor:d.palette.white,iconSize:"xs",iconType:"fa-light",onClick:u})]})},Er=s.st.div`
|
|
2188
2188
|
${({theme:e,$variant:n})=>`
|
|
2189
2189
|
background: ${e.palette.white};
|
|
2190
2190
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2234,7 +2234,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2234
2234
|
color: ${e.palette[n][500]};
|
|
2235
2235
|
}
|
|
2236
2236
|
`}
|
|
2237
|
-
`,Lr=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Ar=({description:e,onClose:n,title:i,variant:
|
|
2237
|
+
`,Lr=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Ar=({description:e,onClose:n,title:i,variant:r})=>{const a=s.Je(),o=f.useCallback(()=>{n==null||n()},[n]);return t.jsxs(Er,{$variant:r,className:`notification notification__${r}`,role:"alertdialog",children:[t.jsxs(Rr,{$variant:r,children:[t.jsx(N,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(N,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(N,{icon:Lr(r),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs($,{pr:1.5,children:[t.jsx(U,{fontWeight:"bold",size:"xs",children:i}),t.jsx(T,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(O,{height:"fit-content",icon:"close",iconColor:a.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:o,px:.125,py:.125,variant:"ghost"})]})},Pr=s.st.div`
|
|
2238
2238
|
width: fit-content;
|
|
2239
2239
|
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2240
2240
|
border-radius: 4px;
|
|
@@ -2267,7 +2267,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2267
2267
|
&::-webkit-inner-spin-button {
|
|
2268
2268
|
opacity: 1;
|
|
2269
2269
|
}
|
|
2270
|
-
`,Br=
|
|
2270
|
+
`,Br=f.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:r=0,max:a,min:o,name:l,onEnter:c,tooltipMessage:d,...g},p){const u=i<0?0:i,[x,h]=f.useState(Number(r).toFixed(u)),b=f.useCallback(j=>{const w=s.lodashExports.toNumber(j.target.value);j.target.value.endsWith(".")?h(j.target.value):w>=Number(o)&&w<=Number(a)&&(h(String(w)),n&&c(s.lodashExports.toNumber(w.toFixed(u)))),j.stopPropagation()},[n,u,a,o,c]),y=f.useCallback(j=>{j.currentTarget.contains(j.relatedTarget)||h(Number(r).toFixed(u)),j.stopPropagation()},[u,r]),m=f.useCallback(j=>{j.stopPropagation(),j.key==="Enter"&&!s.lodashExports.isEmpty(j.currentTarget.value)&&c(s.lodashExports.toNumber(j.currentTarget.value))},[c]);return t.jsx(Pr,{onBlur:y,tabIndex:-1,children:t.jsx(G,{id:"numberInputTooltip",tip:d,children:t.jsx(Wr,{...g,"aria-label":l,"aria-valuemax":Number(a),"aria-valuemin":Number(o),"aria-valuenow":Number(x),max:a,min:o,name:l,onChange:b,onKeyUp:m,ref:p,step:10**-u,type:"number",value:x})})})}),Or={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Ge=({icon:e,label:n,onClick:i,onlyLabel:r=!1,provider:a="GitLab"})=>{const o=s.Je();return t.jsxs($,{alignItems:"center",bgColorHover:o.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:i,pb:.5,pl:.25,pr:.25,pt:.5,children:[r?!1:t.jsx($,{height:"24px",width:"24px",children:e===void 0?t.jsx(Q,{alt:`${a} Logo`,height:"100%",publicId:Or[a],width:"100%"}):t.jsx(N,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx($,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(T,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:r?"break-spaces":"nowrap",wordWrap:"unset",children:n??a})})]})},Hr=({align:e="end",buttonLabel:n="Add Credential",children:i,id:r,manualOption:a,providers:o})=>{const l=s.Je(),[c,d]=f.useState(!1),g=f.useRef(null);ie(g.current,()=>{d(!1)},!0);const p=f.useCallback(h=>{a==null||a.onClick(h),d(!1)},[a]),u=f.useCallback(()=>{d(h=>!h)},[d]),x=f.useCallback(h=>b=>{var y;(y=o[h])==null||y.onClick(b),d(!1)},[o]);return t.jsxs($,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:g,width:"max-content",zIndex:10,children:[t.jsx(P,{icon:"plus",onClick:u,variant:"primary",children:n}),t.jsxs($,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:r,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:c?"visible":"hidden",zIndex:10,children:[Object.keys(o).map(h=>t.jsx(Ge,{onClick:x(h),provider:h},h)),a===void 0?void 0:t.jsx(Ge,{icon:"square-plus",label:a.label??"Add manually",onClick:p}),i]})]})},Mr=s.st.div`
|
|
2271
2271
|
${({theme:e})=>`
|
|
2272
2272
|
height: ${e.spacing[1]};
|
|
2273
2273
|
width: ${e.spacing[1]};
|
|
@@ -2298,7 +2298,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2298
2298
|
font-size: ${e.spacing[.5]};
|
|
2299
2299
|
}
|
|
2300
2300
|
`}
|
|
2301
|
-
`,
|
|
2301
|
+
`,pn=({margin:e,onClick:n,text:i})=>{const r=s.Je(),a=t.jsxs(Mr,{children:[t.jsx(N,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(N,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(N,{icon:"crown",iconClass:"icon",iconSize:"xs"})]});return i!==void 0?t.jsx($,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:t.jsxs($,{alignItems:"center",bgColor:r.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[a,t.jsx(T,{color:r.palette.warning[500],display:"inline",ml:.25,size:"xs",children:i})]})}):t.jsx($,{display:"inline-block",mr:e,onClick:n,children:a})},_r=({score:e})=>{const n=s.Je(),i=e<=33?"priority-bars-low":"priority-bars-medium",r=e>66||e===0?"priority-bars-high":i;return t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(N,{icon:r,iconClass:e<=66?"fa-kit-duotone":"",iconColor:e>0?n.palette.primary[500]:n.palette.gray[200],iconSize:"xs",iconType:"fa-kit",secondaryColor:n.palette.gray[200]}),t.jsx(T,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:Jr}=q(e=>({compliance:`
|
|
2302
2302
|
display: inline-flex;
|
|
2303
2303
|
|
|
2304
2304
|
&.horizontal {
|
|
@@ -2357,17 +2357,17 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2357
2357
|
background-color: ${e.palette.primary[500]};
|
|
2358
2358
|
}
|
|
2359
2359
|
`})),Ur=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],Gr=s.st.div`
|
|
2360
|
-
${({theme:e,$minWidth:n,$orientation:i,$rounded:
|
|
2360
|
+
${({theme:e,$minWidth:n,$orientation:i,$rounded:r,$variant:a})=>`
|
|
2361
2361
|
background-color: ${e.palette.gray[100]};
|
|
2362
|
-
border-radius: ${
|
|
2362
|
+
border-radius: ${r?"100px":"unset"};
|
|
2363
2363
|
${i==="horizontal"?"min-width":"min-height"}: ${n}px;
|
|
2364
2364
|
${i==="horizontal"?"":"height: 100%;"}
|
|
2365
2365
|
|
|
2366
|
-
${Jr(e,
|
|
2366
|
+
${Jr(e,a)}
|
|
2367
2367
|
|
|
2368
2368
|
`}
|
|
2369
2369
|
`,Vr=s.st.div`
|
|
2370
|
-
${({theme:e,$percentage:n,$rounded:i,$variant:
|
|
2370
|
+
${({theme:e,$percentage:n,$rounded:i,$variant:r})=>`
|
|
2371
2371
|
display: inline-flex;
|
|
2372
2372
|
width: ${n}%;
|
|
2373
2373
|
max-width: 100%;
|
|
@@ -2376,14 +2376,14 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2376
2376
|
border-radius: ${i?"100px":"unset"};
|
|
2377
2377
|
border-end-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2378
2378
|
border-start-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2379
|
-
background-color: ${
|
|
2379
|
+
background-color: ${r==="compliance"?Ur(e,n):"inherit"};
|
|
2380
2380
|
`}
|
|
2381
|
-
`,Yr=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:
|
|
2381
|
+
`,Yr=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:r=!1,orientation:a="horizontal",rounded:o=!0,variant:l="default"})=>{const c=r&&i==="left",d=r?t.jsx($,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(T,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,g=t.jsx(Gr,{$minWidth:e,$orientation:a,$rounded:o,$variant:l,className:a,children:t.jsx(Vr,{$percentage:n,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs($,{alignItems:"center",display:"inline-flex",flexDirection:c?"row-reverse":"row",height:a==="horizontal"?"auto":"100%",maxWidth:c?`${e+43}px`:void 0,minWidth:c?`${e+43}px`:void 0,textAlign:"end",children:[g,d]})},gn=({description:e="",highlightDescription:n="",mobile:i})=>{const r=s.Je(),a=i?"md":"lg",o=typeof n=="string",l=o?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(T,{display:"inline",lineSpacing:1.5,size:a,textAlign:i?"start":"center",children:o?t.jsxs(f.Fragment,{children:[t.jsx(pe,{color:r.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:a,children:n}),e]}):e.split(l).map((c,d)=>n.includes(c)?t.jsx(pe,{color:r.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:a,children:c},`${d+1}-bold`):c)}):t.jsx(T,{lineSpacing:1.5,size:a,textAlign:i?"start":"center",children:e})},qr=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:r,confirmButton:a,container:o,description:l,highlightDescription:c="",image:d,maxWidth:g,mobile:p=!1,title:u,titleColor:x})=>{const h=s.Je(),{alt:b,src:y,width:m="77px",height:j="77px"}=d,w=f.useCallback(()=>{n==null||n.onClick()},[n]),v=f.useCallback(()=>{a==null||a.onClick()},[a]),k=t.jsx(U,{color:x,fontWeight:"bold",lineSpacing:p?1.5:2.5,mb:p?1.5:0,size:p?"sm":"lg",textAlign:p?"start":"center",children:u}),C=t.jsx(Q,{alt:b,height:j,publicId:y,width:m}),E=t.jsx($,{alignItems:"center","aria-label":u,"aria-modal":"true",bgColor:i?"rgba(52, 64, 84, 70%)":"",display:"flex",height:"100vh",justify:"center",left:"0",position:e?"fixed":"absolute",top:"0px",width:"100%",zIndex:99999,children:t.jsxs($,{bgColor:h.palette.white,border:`1px solid ${h.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:g,position:"relative",px:p?1.5:2.5,py:p?1.5:2.5,shadow:"lg",width:p?"335px":"100%",zIndex:11,children:[t.jsxs($,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[p?k:void 0,p?t.jsx($,{alignItems:"center",height:j,justify:"center",mr:0,children:t.jsx($,{bgColor:h.palette.gray[100],left:"0",position:"absolute",textAlign:"center",width:"100%",children:C})}):C,t.jsxs($,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[p?void 0:k,t.jsx(gn,{description:l,highlightDescription:c,mobile:p})]})]}),r&&t.jsx($,{mb:1,scroll:"y",children:t.jsx($,{height:"100%",children:r})}),t.jsxs($,{alignItems:"flex-start",display:"flex",gap:1,justify:p?"start":"center",children:[s.lodashExports.isObject(a)?t.jsx(P,{onClick:v,variant:(a==null?void 0:a.variant)??"primary",children:a==null?void 0:a.text},a==null?void 0:a.key):void 0,s.lodashExports.isObject(n)?t.jsx(P,{onClick:w,variant:(n==null?void 0:n.variant)??"tertiary",children:n==null?void 0:n.text},n==null?void 0:n.key):void 0]})]})});return e?re.createPortal(E,o??document.body):E},Kr=s.st.div.attrs({className:"comp-scroll-up"})`
|
|
2382
2382
|
bottom: 15px;
|
|
2383
2383
|
position: fixed;
|
|
2384
2384
|
right: 140px;
|
|
2385
2385
|
z-index: 100;
|
|
2386
|
-
`,Xr=({scrollerId:e="dashboard",visibleAt:n=500})=>{const[i,
|
|
2386
|
+
`,Xr=({scrollerId:e="dashboard",visibleAt:n=500})=>{const[i,r]=f.useState(!1),[a,o]=f.useState(null);f.useEffect(()=>{o(document.getElementById(e)),a==null||a.addEventListener("scroll",()=>{r(a.scrollTop>n)})},[a,e,n]);const l=f.useCallback(()=>{a==null||a.scrollTo({behavior:"smooth",top:0})},[a]);return i?t.jsx(Kr,{children:t.jsx(O,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},Zr={critical:{bgColor:F.palette.primary[700],colorL:F.palette.gray[800],colorR:F.palette.white},disable:{bgColor:F.palette.gray[200],colorL:F.palette.gray[400],colorR:F.palette.gray[400]},high:{bgColor:F.palette.error[500],colorL:F.palette.gray[800],colorR:F.palette.white},low:{bgColor:F.palette.warning[200],colorL:F.palette.gray[800],colorR:F.palette.gray[800]},medium:{bgColor:F.palette.warning[500],colorL:F.palette.gray[800],colorR:F.palette.gray[800]}},Qr=({textL:e,textR:n,variant:i})=>{const r=s.Je(),{bgColor:a,colorL:o,colorR:l}=Zr[i];return t.jsxs($,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx($,{alignItems:"center",bgColor:r.palette.white,border:`1px solid ${a}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(T,{color:o,size:"xs",children:e})}):void 0,t.jsx($,{alignItems:"center",bgColor:a,border:`1px solid ${a}`,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(T,{color:l,size:"xs",children:n})})]})},eo=(e,n)=>{const i={critical:F.palette.primary[700],high:F.palette.error[500],low:F.palette.warning[200],medium:F.palette.warning[500],none:F.palette.gray[200]},r={disabled:F.palette.gray[400],enabled:F.palette.gray[800]},a={critical:F.palette.white,high:F.palette.white,low:F.palette.gray[800],medium:F.palette.gray[800],none:F.palette.gray[400]};return{iconColor:n<1?i.none:i[e],iconText:s.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?a.none:a[e],textColor:n<1?r.disabled:r.enabled}},de=({variant:e,value:n})=>{const{iconColor:i,iconText:r,iconTextColor:a,textColor:o}=eo(e,n),l=s.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(G,{id:l,place:"top",tip:l,children:t.jsx($,{alignItems:"center",bgColor:i,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(T,{color:a,size:"sm",textAlign:"center",children:r})})}),t.jsx(T,{color:o,size:"sm",children:n})]})},to=({critical:e,high:n,medium:i,low:r})=>t.jsxs($,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(de,{value:e,variant:"critical"}),t.jsx(de,{value:n,variant:"high"}),t.jsx(de,{value:i,variant:"medium"}),t.jsx(de,{value:r,variant:"low"})]}),no=s.st.div`
|
|
2387
2387
|
${({theme:e})=>`
|
|
2388
2388
|
border-radius: ${e.spacing[.25]};
|
|
2389
2389
|
cursor: pointer;
|
|
@@ -2401,7 +2401,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2401
2401
|
display: block;
|
|
2402
2402
|
}
|
|
2403
2403
|
`}
|
|
2404
|
-
`,io=({visibleElement:e,hiddenElement:n})=>t.jsxs(no,{children:[e,t.jsx($,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),
|
|
2404
|
+
`,io=({visibleElement:e,hiddenElement:n})=>t.jsxs(no,{children:[e,t.jsx($,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),un=({customBadge:e=void 0,description:n,icon:i,onClick:r,requiresUpgrade:a=!1,title:o})=>{const l=s.Je();return t.jsxs($,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:r,px:1.25,py:1,width:"100%",children:[t.jsx($,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(N,{icon:i,iconColor:l.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),t.jsxs($,{children:[t.jsxs($,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(T,{color:l.palette.gray[800],size:"sm",children:o}),a?t.jsx(pn,{text:"Upgrade"}):void 0,e]}),t.jsx(T,{color:l.palette.gray[400],size:"xs",children:n})]})]})},ao=s.st(s.m.div)`
|
|
2405
2405
|
${({theme:e})=>`
|
|
2406
2406
|
background-color: ${e.palette.white};
|
|
2407
2407
|
box-shadow: ${e.shadows.lg};
|
|
@@ -2424,7 +2424,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2424
2424
|
height: auto;
|
|
2425
2425
|
}
|
|
2426
2426
|
`}
|
|
2427
|
-
`,ro=({children:e,closeIconId:n="close-menu",isOpen:i,items:
|
|
2427
|
+
`,ro=({children:e,closeIconId:n="close-menu",isOpen:i,items:r,onClose:a,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:g})=>{const p=s.Je(),u=f.useRef(null),x=f.useCallback(h=>()=>{h(),a()},[a]);return f.useEffect(()=>{const h=["mousedown","touchstart"],b=y=>{var k;const m=y.target,j=document.getElementById("helpBtn"),w=document.getElementById("filterBtn"),v=(m===j||((j==null?void 0:j.contains(m))??!1)||m===w||(w==null?void 0:w.contains(m)))??!1;i&&!v&&!(((k=u.current)==null?void 0:k.contains(m))??!1)&&a()};return h.forEach(y=>{document.addEventListener(y,b,{passive:!0})}),()=>{h.forEach(y=>{document.removeEventListener(y,b)})}},[i,a]),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx(ao,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:u,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs($,{height:"100%",position:"relative",children:[t.jsxs($,{alignItems:"center",bgColor:p.palette.white,borderBottom:"1px solid",borderColor:p.palette.gray[200],display:"flex",gap:1.25,justify:"space-between",padding:[1.25,1.25,1.25,1.25],position:"sticky",top:"0",zIndex:40,children:[t.jsx(T,{color:p.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:g}),t.jsx(O,{icon:"close",iconColor:p.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:a,px:.25,py:.25,variant:"ghost"})]}),t.jsxs($,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs($,{py:1.25,children:[(r??[]).map(({customBadge:h,description:b,icon:y,onClick:m,requiresUpgrade:j,title:w})=>t.jsx(un,{customBadge:h,description:b,icon:y,onClick:x(m),requiresUpgrade:j,title:w},w)),e&&t.jsx($,{px:1.25,children:e})]}),o===void 0?void 0:t.jsxs($,{alignItems:"center",bgColor:p.palette.white,borderColor:p.palette.gray[200],borderTop:"1px solid",bottom:"0",display:"flex",gap:1.25,justify:"end",padding:[1.25,1.25,1.25,1.25],position:"sticky",width:"100%",zIndex:40,children:[c===void 0?void 0:t.jsx(P,{color:`${p.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(P,{onClick:l,type:"submit",children:o})]})]})]})})})},oo=(e,n)=>n>=50?`
|
|
2428
2428
|
${e.palette.gray[200]} 50%,
|
|
2429
2429
|
${e.palette.primary[500]} 50.05%,
|
|
2430
2430
|
${e.palette.primary[500]} ${n}%,
|
|
@@ -2500,7 +2500,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2500
2500
|
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
2501
2501
|
width: 59px;
|
|
2502
2502
|
`}
|
|
2503
|
-
`,
|
|
2503
|
+
`,xn=({state:e,trackRef:n,index:i,name:r})=>{const a=f.useRef(null),{thumbProps:o,inputProps:l,isDragging:c}=s.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:a},e);return t.jsx("div",{...o,className:`thumb ${c?"dragging":""}`,children:t.jsx(s.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":r,ref:a})})})},po=(e,n,i)=>Math.round((i-e)/(n-e)*100),go=e=>{const n=s.Je(),i=f.useRef(null),{label:r,minValue:a=0,maxValue:o=100,name:l,setValue:c,watch:d}=e,g=s.$a916eb452884faea$export$b7a616150fdb9f44(),p=s.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:g,onChange(b){c==null||c(l,b)},value:d==null?void 0:d(l)}),u=po(a,o,p.getThumbValue(0)),{groupProps:x,trackProps:h}=s.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},p,i);return t.jsx(J,{htmlFor:l,label:r,children:t.jsxs($,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(so,{...x,$min:a??0,$value:u,className:"slider",children:[t.jsx("div",{...h,className:`track ${p.isDisabled?"disabled":""}`,ref:i,children:t.jsx(xn,{index:0,name:l,state:p,trackRef:i})}),t.jsxs(lo,{children:[t.jsx("p",{children:`${g.format(a)} (Low)`}),a<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${g.format(o)} (High)`})]})]}),t.jsx(co,{children:t.jsx(T,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:p.getThumbValueLabel(0)})})]})})},{getVariant:uo}=q(e=>({completed:`
|
|
2504
2504
|
background-color: ${e.palette.primary[500]};
|
|
2505
2505
|
color: ${e.palette.white};
|
|
2506
2506
|
|
|
@@ -2578,7 +2578,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2578
2578
|
|
|
2579
2579
|
${uo(e,n)}
|
|
2580
2580
|
`}
|
|
2581
|
-
`,yo=({button:{disabled:e=!1,text:n,type:i="button",onClick:
|
|
2581
|
+
`,yo=({button:{disabled:e=!1,text:n,type:i="button",onClick:r},steps:a})=>{const[o,l]=f.useState(1),c=f.useCallback((d,g)=>()=>{l(p=>p+d),g==null||g()},[]);return t.jsx(xo,{children:a.map((d,g)=>{const{content:p,title:u,nextAction:x,previousAction:h}=d,b=g+1,y=b===o?"current":"disabled",m=b<o?"completed":y;return t.jsxs(fo,{children:[t.jsx($,{maxWidth:"40px",position:"relative",children:t.jsx(bo,{$variant:m,children:m==="completed"?t.jsx(N,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):b})}),t.jsxs($,{ml:1.5,width:"100%",children:[t.jsx(U,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:u}),m==="current"&&t.jsxs($,{children:[p,t.jsxs(ho,{children:[o>1&&t.jsx(P,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,h),variant:"tertiary",children:"Previous"}),o<a.length?t.jsx(P,{disabled:d.isDisabledNext??!1,onClick:c(1,x),variant:"primary",children:"Next step"}):t.jsx(P,{disabled:e,onClick:r,type:i,variant:"primary",children:n})]})]})]})]},d.title)})})},$o=s.st.button`
|
|
2582
2582
|
${({theme:e})=>`
|
|
2583
2583
|
align-items: center;
|
|
2584
2584
|
background-color: ${e.palette.white};
|
|
@@ -2620,7 +2620,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2620
2620
|
background-color: ${e.palette.gray[100]};
|
|
2621
2621
|
}
|
|
2622
2622
|
`}
|
|
2623
|
-
`,mo={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},wo=({disabled:e=!1,icon:n,id:i,label:
|
|
2623
|
+
`,mo={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},wo=({disabled:e=!1,icon:n,id:i,label:r,name:a,onClick:o,type:l="button",variant:c})=>{const d=s.Je(),g=t.jsxs($o,{"aria-label":a??void 0,className:c,disabled:e,id:i,onClick:o,type:l,children:[t.jsx(N,{clickable:!1,icon:n??mo[c].icon,iconSize:a===void 0?"xxs":"xs",iconType:"fa-light"}),a??void 0]});return t.jsxs($,{alignItems:"center",display:"flex",children:[g,r&&t.jsx(T,{color:d.palette.gray[800],ml:.5,size:"sm",children:r})]})},jo=s.st.div`
|
|
2624
2624
|
${({theme:e,$size:n})=>`
|
|
2625
2625
|
align-items: center;
|
|
2626
2626
|
background-color: ${e.palette.white};
|
|
@@ -2693,7 +2693,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2693
2693
|
transform: translateX(-50%);
|
|
2694
2694
|
}
|
|
2695
2695
|
`}
|
|
2696
|
-
`,
|
|
2696
|
+
`,fn=({date:e,description:n,title:i,size:r="long"})=>{const a=s.Je();return t.jsxs(jo,{$size:r,className:"timeline-card",children:[t.jsx(T,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(T,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((o,l)=>{const c=`${o}#${l}`;return t.jsx(T,{size:"sm",textAlign:"center",wordBreak:"break-word",children:o},c)})})]})},ko=({items:e})=>{const n=f.useRef(null),[i,r]=f.useState("long");return f.useEffect(()=>{n.current&&r(n.current.offsetWidth<=1100?"small":"long")},[]),t.jsx($,{ref:n,width:"100%",children:t.jsx(vo,{$size:i,children:e.map((a,o)=>t.jsx(fn,{date:a.date,description:a.description,size:i,title:a.title},`${a.title}-${o}`))})})},Co={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:""},So=({run:e,steps:n,onFinish:i})=>{const[r,a]=f.useState(e),[o,l]=f.useState(0),c=f.useCallback(d=>{const{action:g,index:p,status:u,type:x}=d;[s.EVENTS.STEP_AFTER,s.EVENTS.TARGET_NOT_FOUND].includes(x)?l(p+(g===s.ACTIONS.PREV?-1:1)):([s.STATUS.FINISHED,s.STATUS.SKIPPED].includes(u)||g==="close")&&(a(!1),s.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(s.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:r,spotlightClicks:!0,stepIndex:o,steps:n,styles:{buttonNext:{display:o===n.length-1?"none":"block"},options:{zIndex:9999}}})},hn=t.jsx($,{alignItems:"center",bgColor:F.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(T,{bgGradient:F.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),zo=s.st.div`
|
|
2697
2697
|
${({className:e,theme:n})=>`
|
|
2698
2698
|
align-items: flex-start;
|
|
2699
2699
|
border-radius: ${n.spacing[1]};
|
|
@@ -2759,4 +2759,4 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),u=x.useMemo(p,[p]),f=x.useCallback(a
|
|
|
2759
2759
|
}
|
|
2760
2760
|
`}
|
|
2761
2761
|
`;const Io={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
|
|
2762
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},To=({description:e,onClick:n,plan:i})=>{const{title:
|
|
2762
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},To=({description:e,onClick:n,plan:i})=>{const{title:r,description:a,benefits:o,buttonText:l}=Io[i],c=e??a;return t.jsxs(zo,{className:i,children:[t.jsxs($,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&hn,t.jsx(U,{color:F.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:r}),t.jsx(T,{color:F.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:o})]}),t.jsx(T,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(P,{onClick:n,variant:"primary",children:l})]})};exports.Accordion=qn;exports.AccordionContent=wt;exports.ActionButton=_e;exports.Alert=ai;exports.AppliedFilter=ce;exports.AppliedFilters=Ya;exports.ArrayField=He;exports.Avatar=pi;exports.BaseButtonComponent=Ve;exports.BaseComponent=ve;exports.BaseSpanComponent=qe;exports.BaseTextComponent=Ye;exports.Button=P;exports.Button$1=Ie;exports.ButtonToolbarCenter=Ai;exports.ButtonToolbarRow=Wi;exports.ButtonToolbarStartRow=Pi;exports.Calendar=Tt;exports.Calendar$1=Rt;exports.Calendar$2=At;exports.CalendarCell=It;exports.CalendarGrid=De;exports.CardHeader=Ne;exports.CardWithImage=xi;exports.CardWithInput=ia;exports.CardWithOptions=en;exports.CardWithSelector=da;exports.CardWithSwitch=ua;exports.Carousel=$a;exports.Checkbox=ne;exports.CodeSnippet=wa;exports.Col=Oe;exports.ColumFilters=ln;exports.ColumnsModal=Wa;exports.ComboBox=Xe;exports.ComboBoxField=Be;exports.Container=$;exports.CustomThemeProvider=Hn;exports.DateField=Nt;exports.DateSelector=ge;exports.Description=gn;exports.Dialog=Re;exports.Divider=ae;exports.Dropdown=nr;exports.Editable=Li;exports.EmptyButton=Ue;exports.EmptyState=or;exports.FilePreview=Ct;exports.FilterControl=an;exports.FilterForm=Je;exports.FilterFormContent=rn;exports.FiltersList=sn;exports.Form=cr;exports.Gap=Hi;exports.GridContainer=pr;exports.GroupSelector=ur;exports.Header=Ee;exports.Header$1=Yt;exports.Heading=U;exports.Icon=N;exports.IconButton=O;exports.IndicatorCard=xr;exports.InfoSidebar=fr;exports.InnerForm=sr;exports.Input=Le;exports.InputArray=_i;exports.InputDate=Et;exports.InputDateRange=Lt;exports.InputDateTime=Ri;exports.InputFile=Vi;exports.InputNumber=Wt;exports.InputNumberRange=Bt;exports.InputTags=qi;exports.Label=Ke;exports.Link=K;exports.ListItem=Se;exports.ListItemsWrapper=Zt;exports.LittleFlag=br;exports.Loading=Cr;exports.LocationCode=Ut;exports.Logo=zr;exports.Lottie=Tr;exports.MemoizedImage=Q;exports.Menu=Fr;exports.MenuItem=un;exports.MessageBanner=Dr;exports.Modal=nt;exports.ModalConfirm=qt;exports.ModalFooter=Vt;exports.Notification=Ar;exports.NotificationSign=Kt;exports.NumberField=Fe;exports.NumberInput=Br;exports.OAuthSelector=Hr;exports.Option=St;exports.OptionBoxContainer=it;exports.OptionContainer=Ge;exports.OptionContainer$1=dn;exports.OutlineContainer=J;exports.PhoneInput=ta;exports.PlanCard=To;exports.PopUp=qr;exports.Popover=ke;exports.PremiumFeature=pn;exports.PreviewPanel=Qt;exports.PriorityScore=_r;exports.ProgressBar=Yr;exports.RadioButton=Qe;exports.RecommendedTag=hn;exports.Row=Pt;exports.ScrollUpButton=Xr;exports.Search=xe;exports.SearchPanel=nn;exports.SeverityBadge=Qr;exports.SeverityOverview=to;exports.SeverityOverviewBadge=de;exports.ShowOnHover=io;exports.SlideOutMenu=ro;exports.Slider=go;exports.Span=pe;exports.StepLapse=yo;exports.Tab=Xt;exports.TableButton=wo;exports.Tabs=tt;exports.Tag=V;exports.TagsField=Me;exports.Text=T;exports.TextArea=na;exports.Thumb=xn;exports.TimeField=Dt;exports.TimeLine=ko;exports.TimeLineCard=fn;exports.Toggle=_t;exports.Tooltip=G;exports.Tour=So;exports.baseStep=Co;exports.formatCheckValues=cn;exports.getStyledConfig=je;exports.hiddenProps=$t;exports.icons=Bn;exports.setBorder=ye;exports.setDisplay=$e;exports.setInteraction=we;exports.setMargin=he;exports.setPadding=fe;exports.setPosition=be;exports.setText=me;exports.theme=F;exports.uniqueIcons=On;exports.useCarousel=Ot;exports.useClickOutside=ie;exports.useCloudinaryImage=Ht;exports.useColumnsModal=ra;exports.useConditionsDialog=Za;exports.useConfirmDialog=Qa;exports.useDebouncedCallback=Mt;exports.useFilterForm=on;exports.useFilters=Xa;exports.useModal=Ce;exports.useSearch=oa;exports.variantBuilder=q;
|