@fluidattacks/design 3.9.9 → 3.10.0-pr
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/@core/index.js +1 -1
- package/dist/components/accordion/accordion-content/index.js +1 -1
- package/dist/components/accordion/index.js +1 -1
- package/dist/components/alert/index.js +1 -1
- package/dist/components/avatar/index.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/card/card-header/index.js +1 -1
- package/dist/components/card/card-with-image/index.js +1 -1
- package/dist/components/card/card-with-input/index.js +1 -1
- package/dist/components/card/card-with-options/index.js +1 -1
- package/dist/components/card/card-with-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/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/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-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/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/layout/categories/buttons/index.js +1 -1
- package/dist/components/layout/categories/column/index.js +1 -1
- package/dist/components/layout/categories/gap/index.js +1 -1
- package/dist/components/layout/categories/row/index.js +1 -1
- package/dist/components/layout/index.js +1 -1
- package/dist/components/link/index.js +1 -1
- package/dist/components/list-item/index.js +1 -1
- package/dist/components/little-flag/index.js +1 -1
- package/dist/components/loading/index.js +1 -1
- package/dist/components/logo/index.js +1 -1
- package/dist/components/logo-carousel/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/fields/options-selector/index.js +1 -1
- package/dist/components/modal/filters-modal/filter-control/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/filters-modal/single-column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/two-columns-filters/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/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/search-bar/index.js +1 -1
- package/dist/components/search-bar/item-searching/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/fixed-tabs/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/toggle-buttons/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/web-form/index.js +1 -1
- package/dist/{components-OhSpolWE.js → components-BGGqBvrD.js} +84 -84
- package/dist/{components-DUaKDDna.mjs → components-DxLM6vwQ.mjs} +874 -861
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),p=require("react"),s=require("./vendor-B1UgKeXD.js"),V=require("react-dom"),Re=require("react-router-dom"),U=e=>({getVariant:(n,i)=>e(n)[i]}),pt=["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"],bn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},$n={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},yn={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},mn={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},wn={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},jn={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},kn={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},Cn={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},vn={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"}},Sn={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)"},zn={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},In={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"},Tn=["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"],Nn=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],I={typography:vn,shadows:Sn,breakpoints:zn,spacing:In,palette:{primary:$n,complementary:yn,error:mn,info:kn,warning:wn,success:jn,black:"#0c111d",white:"#ffffff",gray:bn,gradients:Cn}},En=({children:e})=>t.jsx(s.ot,{theme:I,children:e}),N=(e,n)=>n===void 0?"":`${e}: ${n};`,le=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: ${I.spacing[o]} ${I.spacing[l]} ${I.spacing[c]} ${I.spacing[d]};`}return`padding: ${I.spacing[n]} ${I.spacing[i]} ${I.spacing[r]} ${I.spacing[a]};`},ce=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: ${I.spacing[o]} ${I.spacing[l]} ${I.spacing[c]} ${I.spacing[d]};`}return`margin: ${I.spacing[n]} ${I.spacing[i]} ${I.spacing[r]} ${I.spacing[a]};`},de=e=>{const n=N("position",e.position),i=N("top",e.top),r=N("right",e.right),a=N("bottom",e.bottom),o=N("left",e.left),l=N("z-index",e.zIndex);return`
|
|
2
2
|
${n}
|
|
3
3
|
${i}
|
|
4
4
|
${r}
|
|
5
5
|
${a}
|
|
6
6
|
${o}
|
|
7
7
|
${l}
|
|
8
|
-
`},pe=e=>{const n=
|
|
8
|
+
`},pe=e=>{const n=N("border",e.border),i=N("border-top",e.borderTop),r=N("border-right",e.borderRight),a=N("border-bottom",e.borderBottom),o=N("border-left",e.borderLeft),l=N("border-color",e.borderColor),c=N("border-radius",e.borderRadius);return`
|
|
9
9
|
${n}
|
|
10
10
|
${i}
|
|
11
11
|
${r}
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
`},Fn=e=>e.includes("x")?"overflow-x: auto;":"",Rn=e=>e.includes("y")?"overflow-y: auto;":"",ge=e=>{const n=e.scroll?`
|
|
17
17
|
${Fn(e.scroll)}
|
|
18
18
|
${Rn(e.scroll)}
|
|
19
|
-
`:"",i=
|
|
19
|
+
`:"",i=N("visibility",e.visibility),r=N("display",e.display),a=N("height",e.height),o=N("width",e.width),l=N("max-height",e.maxHeight),c=N("max-width",e.maxWidth),d=N("min-height",e.minHeight),g=N("min-width",e.minWidth),u=N("box-shadow",e.shadow?I.shadows[e.shadow]:void 0),x=N("gap",e.gap===void 0?void 0:I.spacing[e.gap]),f=N("background-color",e.bgColor),h=N("background",e.bgGradient),m=N("flex-direction",e.flexDirection),$=N("flex-grow",e.flexGrow),y=N("justify-content",e.justify),w=N("justify-self",e.justifySelf),k=N("align-items",e.alignItems),S=N("align-self",e.alignSelf),C=N("flex-wrap",e.wrap);return`
|
|
20
20
|
${n}
|
|
21
21
|
${i}
|
|
22
22
|
${r}
|
|
@@ -25,19 +25,19 @@
|
|
|
25
25
|
${l}
|
|
26
26
|
${c}
|
|
27
27
|
${d}
|
|
28
|
-
${
|
|
28
|
+
${g}
|
|
29
29
|
${u}
|
|
30
30
|
${f}
|
|
31
31
|
${h}
|
|
32
32
|
${x}
|
|
33
|
-
${y}
|
|
34
|
-
${$}
|
|
35
33
|
${m}
|
|
34
|
+
${$}
|
|
35
|
+
${y}
|
|
36
36
|
${w}
|
|
37
|
+
${k}
|
|
38
|
+
${S}
|
|
37
39
|
${C}
|
|
38
|
-
|
|
39
|
-
${I}
|
|
40
|
-
`},ue=e=>{const n=T("color",e.color),i=T("font-family",e.fontFamily),r=T("font-size",e.fontSize),a=T("font-weight",e.fontWeight),o=T("line-spacing",e.letterSpacing),l=T("line-height",e.lineSpacing),c=T("text-align",e.textAlign),d=T("text-decoration",e.textDecoration),p=T("text-overflow",e.textOverflow),u=T("white-space",e.whiteSpace),x=T("word-break",e.wordBreak),f=T("word-wrap",e.wordWrap);return`
|
|
40
|
+
`},ue=e=>{const n=N("color",e.color),i=N("font-family",e.fontFamily),r=N("font-size",e.fontSize),a=N("font-weight",e.fontWeight),o=N("line-spacing",e.letterSpacing),l=N("line-height",e.lineSpacing),c=N("text-align",e.textAlign),d=N("text-decoration",e.textDecoration),g=N("text-overflow",e.textOverflow),u=N("white-space",e.whiteSpace),x=N("word-break",e.wordBreak),f=N("word-wrap",e.wordWrap);return`
|
|
41
41
|
${n}
|
|
42
42
|
${i}
|
|
43
43
|
${r}
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
${l}
|
|
47
47
|
${c}
|
|
48
48
|
${d}
|
|
49
|
-
${
|
|
49
|
+
${g}
|
|
50
50
|
${u}
|
|
51
51
|
${x}
|
|
52
52
|
${f}
|
|
53
|
-
`},xe=e=>{const n=
|
|
53
|
+
`},xe=e=>{const n=N("cursor",e.cursor),i=N("border-color",e.borderColorHover),r=N("background-color",e.bgColorHover),a=N("box-shadow",e.shadowHover===void 0?void 0:I.shadows[e.shadowHover]),o=N("transition",e.transition);return`
|
|
54
54
|
${n}
|
|
55
55
|
|
|
56
56
|
&:hover {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
${r}
|
|
60
60
|
${a}
|
|
61
61
|
}
|
|
62
|
-
`},fe=()=>({shouldForwardProp:e=>!pt.includes(e)}),
|
|
62
|
+
`},fe=()=>({shouldForwardProp:e=>!pt.includes(e)}),ee=s.dt.div.withConfig(fe())`
|
|
63
63
|
${le}
|
|
64
64
|
${ce}
|
|
65
65
|
${de}
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
${ue}
|
|
92
92
|
${pe}
|
|
93
93
|
${xe}
|
|
94
|
-
`,Dn=s.dt(
|
|
94
|
+
`,Dn=s.dt(ee)`
|
|
95
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]};
|
|
@@ -108,13 +108,13 @@
|
|
|
108
108
|
${r};
|
|
109
109
|
}
|
|
110
110
|
`}
|
|
111
|
-
`,b=
|
|
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,$size:
|
|
111
|
+
`,b=p.forwardRef(function({as:n="div",center:i,children:r,id:a,onHover:o,onLeave:l,styleMd:c,styleSm:d,...g},u){return t.jsx(Dn,{$center:i,$styleMd:c,$styleSm:d,as:n,id:a,onMouseLeave:l,onMouseOver:o,ref:u,...g,children:r})}),Pn=s.dt(Ge)`
|
|
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,$size:g,$sizeMd:u,$sizeSm:x,$textFill:f="unset",$wordBreak:h="normal"})=>`
|
|
113
113
|
background: ${n};
|
|
114
114
|
color: ${i};
|
|
115
115
|
display: ${r};
|
|
116
116
|
font-family: ${a};
|
|
117
|
-
font-size: ${e.typography.heading[
|
|
117
|
+
font-size: ${e.typography.heading[g]};
|
|
118
118
|
font-weight: ${e.typography.weight[o]};
|
|
119
119
|
letter-spacing: ${l};
|
|
120
120
|
line-height: ${e.spacing[c]};
|
|
@@ -128,21 +128,21 @@
|
|
|
128
128
|
and (min-width: ${e.breakpoints.mobile})
|
|
129
129
|
and (max-width: ${e.breakpoints.tablet})
|
|
130
130
|
{
|
|
131
|
-
font-size: ${e.typography.heading[u??
|
|
131
|
+
font-size: ${e.typography.heading[u??g]};
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
135
|
-
font-size: ${e.typography.heading[x??
|
|
135
|
+
font-size: ${e.typography.heading[x??g]};
|
|
136
136
|
line-height: ${e.spacing[d??c]};
|
|
137
137
|
}
|
|
138
138
|
`}
|
|
139
139
|
`,ut=s.dt(Ge)`
|
|
140
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:r="block",$fontFamily:a=e.typography.type.primary,$fontWeight:o="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:
|
|
140
|
+
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:r="block",$fontFamily:a=e.typography.type.primary,$fontWeight:o="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:g,$sizeMd:u,$sizeSm:x,$textFill:f="unset",$wordBreak:h="normal"})=>`
|
|
141
141
|
background: ${n};
|
|
142
142
|
color: ${i};
|
|
143
143
|
display: ${r};
|
|
144
144
|
font-family: ${a};
|
|
145
|
-
font-size: ${e.typography.text[
|
|
145
|
+
font-size: ${e.typography.text[g]};
|
|
146
146
|
font-weight: ${e.typography.weight[o]};
|
|
147
147
|
letter-spacing: ${l};
|
|
148
148
|
line-height: ${e.spacing[c]};
|
|
@@ -156,11 +156,11 @@
|
|
|
156
156
|
and (min-width: ${e.breakpoints.mobile})
|
|
157
157
|
and (max-width: ${e.breakpoints.tablet})
|
|
158
158
|
{
|
|
159
|
-
font-size: ${e.typography.text[u??
|
|
159
|
+
font-size: ${e.typography.text[u??g]};
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
163
|
-
font-size: ${e.typography.text[x??
|
|
163
|
+
font-size: ${e.typography.text[x??g]};
|
|
164
164
|
line-height: ${e.spacing[d??c]};
|
|
165
165
|
}
|
|
166
166
|
`}
|
|
@@ -176,7 +176,7 @@
|
|
|
176
176
|
|
|
177
177
|
${i===void 0?"":`&::after { content: "${i}"; }`}
|
|
178
178
|
`}
|
|
179
|
-
`,W=
|
|
179
|
+
`,W=p.forwardRef(function({bgGradient:n,children:i,className:r,color:a,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:g,lineSpacingSm:u,size:x,sizeMd:f,sizeSm:h,textFill:m,wordBreak:$,...y},w){return t.jsx(Pn,{$bgGradient:n,$color:a,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:g,$lineSpacingSm:u,$size:x,$sizeMd:f,$sizeSm:h,$textFill:m,$wordBreak:$,className:r,ref:w,...y,children:i})}),je=p.forwardRef(function({children:n,color:i,content:r,display:a,fontFamily:o,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:g,size:u,sizeMd:x,sizeSm:f,...h},m){return t.jsx(Ln,{$color:i,$content:r,$display:a,$fontFamily:o,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:g,$size:u,$sizeMd:x,$sizeSm:f,ref:m,...h,children:n})}),v=p.forwardRef(function({bgGradient:n,children:i,className:r,color:a,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:g,lineSpacingSm:u,size:x,sizeMd:f,sizeSm:h,textFill:m,wordBreak:$,...y},w){return t.jsx(ut,{$bgGradient:n,$color:a,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:g,$lineSpacingSm:u,$size:x,$sizeMd:f,$sizeSm:h,$textFill:m,$wordBreak:$,className:r,ref:w,...y,children:i})}),xt=({item:e})=>{const n=e.description&&typeof e.description=="string"?t.jsx(v,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):e.description??void 0;return t.jsxs(b,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[n,e.extraElement?t.jsx(b,{children:e.extraElement}):void 0]})},Bn={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},Wn=s.dt(gt)`
|
|
180
180
|
${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:r,$rotation:a,$size:o,$secondaryColor:l})=>{const c=r?"":"brightness(50%)",d=r??"";return`
|
|
181
181
|
color: ${n};
|
|
182
182
|
cursor: ${e?"pointer":"inherit"};
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
&:hover:not([disabled]) {
|
|
213
213
|
transform: scale(1.2);
|
|
214
214
|
}
|
|
215
|
-
`;const
|
|
215
|
+
`;const z=p.forwardRef(function({clickable:n,disabled:i,hoverColor:r,icon:a,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:g,iconType:u="fa-solid",onClick:x,rotation:f,spanClass:h,secondaryColor:m,...$},y){return t.jsx(Wn,{$clickable:n,$color:l,$disabled:i,$hoverColor:r,$rotation:f,$secondaryColor:m,$size:d,className:h,"data-testid":`${a}-icon`,onClick:x,ref:y,...$,children:t.jsx("i",{className:`${u} fa-${a} ${o}`,...c!==void 0?{"data-fa-mask":c}:{},...g!==void 0?{"data-fa-transform":g}:{}})},`${u}-${a}`)}),Mn=p.forwardRef(function({aligned:n="end",items:i,bgColor:r},a){const o=s.nt(),[l,c]=p.useState(!1),[d,g]=p.useState(-1),u=p.useCallback(x=>()=>{g(x),c(x===d?f=>!f:!0)},[d]);return t.jsx(b,{ref:a,children:i.map((x,f)=>{const h=f===d&&l;return t.jsxs(b,{bgColor:r??o.palette.white,children:[t.jsx(b,{"aria-controls":`panel-${x.title}`,"aria-expanded":l,"aria-label":x.title,as:"button",bgColor:r??o.palette.white,bgColorHover:o.palette.gray[100],borderBottom:h||f===i.length-1?"1px solid":void 0,borderColor:o.palette.gray[200],borderTop:"1px solid",cursor:"pointer",display:"flex",onClick:u(f),padding:[.75,.75,.75,.75],width:"100%",children:t.jsxs(b,{as:"summary",display:"flex",flexDirection:n==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(v,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:x.title}),t.jsx(z,{icon:h?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),h&&t.jsx(xt,{item:x})]},x.title)})})}),An=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:On}=U(e=>({error:`
|
|
216
216
|
background: ${e.palette.error[50]};
|
|
217
217
|
border: 1px solid ${e.palette.error[500]};
|
|
218
218
|
color: ${e.palette.error[700]};
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
margin: 0 !important;
|
|
402
402
|
}
|
|
403
403
|
`}
|
|
404
|
-
`,Un=s.dt(
|
|
404
|
+
`,Un=s.dt(ee)``,Yn=s.dt.div`
|
|
405
405
|
${({theme:e,$maxWidth:n="320px"})=>`
|
|
406
406
|
background-color: ${e.palette.gray[700]};
|
|
407
407
|
border-radius: 8px;
|
|
@@ -412,7 +412,7 @@
|
|
|
412
412
|
width: max-content;
|
|
413
413
|
z-index: 999999;
|
|
414
414
|
`}
|
|
415
|
-
`,Y=({children:e,disabled:n=!1,display:i="inline-block",height:r,icon:a,iconColor:o,iconSize:l,id:c,maxWidth:d,nodeTip:
|
|
415
|
+
`,Y=({children:e,disabled:n=!1,display:i="inline-block",height:r,icon:a,iconColor:o,iconSize:l,id:c,maxWidth:d,nodeTip:g,place:u="bottom",tip:x="",title:f="",hide:h=x===""&&f===""&&g===void 0,width:m})=>{const $=s.nt(),[y,w]=p.useState(!1),{refs:k,floatingStyles:S,context:C}=s.useFloating({middleware:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10}),s.shift()],onOpenChange:w,open:y,placement:u,whileElementsMounted:s.autoUpdate}),j=s.useHover(C,{delay:{close:0,open:500},move:!1}),T=s.useFocus(C),P=s.useRole(C,{role:a?"label":"tooltip"}),{getReferenceProps:L,getFloatingProps:B}=s.useInteractions([j,T,P]);return n?t.jsx(p.StrictMode,{children:e}):t.jsxs(t.Fragment,{children:[t.jsx(Un,{...L(),display:i,height:r,id:c,ref:k.setReference,width:m,children:a?t.jsx(z,{clickable:!0,disabled:n,icon:a,iconColor:o,iconSize:l??"xxs",iconType:y?"fa-solid":"fa-light"}):e}),y&&!h&&V.createPortal(t.jsxs(Yn,{...B(),$maxWidth:d,id:`floating-${c}`,ref:k.setFloating,style:S,children:[s.lodashExports.isEmpty(f)?void 0:t.jsx(v,{color:$.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:f}),s.lodashExports.isEmpty(x)?void 0:t.jsx(v,{color:$.palette.gray[100],lineSpacing:1.5,size:"sm",textAlign:"start",wordWrap:"break-word",children:x}),s.lodashExports.isEmpty(g)?void 0:g]}),document.getElementById("root")??document.body)]})},M=p.forwardRef(function({borderRadius:n,disabled:i,icon:r,iconColor:a,iconSize:o="xxs",iconTransform:l,iconType:c,id:d,justify:g="center",onClick:u,px:x,py:f,type:h="button",tooltip:m,tooltipPlace:$,value:y,variant:w="primary",...k},S){const C=t.jsx(Gn,{$borderRadius:n,$px:x,$py:f,$variant:w,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:g,onClick:u,ref:S,type:h,value:y,...k,children:t.jsx(z,{clickable:!1,icon:r,iconColor:a,iconSize:o,iconTransform:l,iconType:c})}),T=(h+(w??"")+(d??r)).replace(/ /u,"_");return m===void 0?C:t.jsx(Y,{id:`${T}-tooltip`,place:$,tip:m,children:C})}),Kn=p.forwardRef(function({autoHide:n=!1,children:i,closable:r=!1,onTimeOut:a,show:o=!0,time:l=8,variant:c="error",id:d,...g},u){const[x,f]=p.useState(o),h=p.useCallback(()=>{f(!1)},[]);return p.useEffect(()=>{const m=setTimeout(()=>{a==null||a(!0),n&&h()},l*1e3);return()=>{clearTimeout(m)}},[n,h,l,a]),p.useEffect(()=>{f(o)},[o,f]),t.jsx(b,{display:x?"block":"none",ref:u,role:"alert",...g,children:t.jsxs(Hn,{$variant:c,id:d,children:[t.jsx(z,{clickable:!1,icon:An(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(_n,{children:i}),r?t.jsx(M,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:h,px:.125,py:.125,variant:"ghost"}):void 0]})})}),nt=s.dt.div`
|
|
416
416
|
${({theme:e})=>`
|
|
417
417
|
align-items: center;
|
|
418
418
|
background-color: ${e.palette.gray[200]};
|
|
@@ -630,7 +630,7 @@
|
|
|
630
630
|
${ht}
|
|
631
631
|
`,ei=s.dt(Re.Link)`
|
|
632
632
|
${ht}
|
|
633
|
-
`,q=({children:e,color:n,download:i,href:r,iconPosition:a="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=r.startsWith("https://"),
|
|
633
|
+
`,q=({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(z,{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(Qn,{$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(ei,{$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]})},X=({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:u="default",tagTitle:x="",tagLabel:f,variant:h="default"})=>{const m=f.length>25&&s.lodashExports.isEmpty(x+o),$=`${f.slice(0,25)}...`;return t.jsxs(je,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Zn,{$fontSize:l,$variant:h,className:u,children:[n&&t.jsx(z,{icon:n,iconColor:i,iconSize:"xxs",iconType:r}),t.jsxs("span",{children:[t.jsx("strong",{children:x}),t.jsx("span",{children:m?$:f}),t.jsx("strong",{children:o})]}),g?t.jsx(M,{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(q,{href:c,children:d})]})},ti=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(i)&&(i.opener=null)},R=p.forwardRef(function({children:n,disabled:i=!1,external:r=!1,href:a,id:o,icon:l,name:c,onClick:d,showArrow:g=!1,tag:u,type:x="button",tooltip:f,tooltipPlace:h="bottom",underline:m=!1,value:$,variant:y="primary",...w},k){const S=f!==void 0,C=`${o}-tooltip`,j=p.useCallback(()=>{a&&ti(a,r)},[r,a]);return t.jsx(Y,{disabled:!S,id:C,place:h,tip:f,children:t.jsxs(ft,{$variant:y,"aria-disabled":i,className:m?"underline":void 0,disabled:i,id:o,name:c,onClick:y==="link"?j:d,ref:k,type:x,value:$,...S?{"data-tooltip-id":C}:{},...w,children:[l!==void 0&&t.jsx(z,{icon:l,iconSize:"xs",iconType:"fa-light"}),n,(g||y==="link")&&t.jsx(z,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"}),u===void 0?null:t.jsx(X,{tagLabel:u,variant:"inactive"})]})})}),ni=p.forwardRef(function({children:n,onClick:i,userName:r,showIcon:a=!1,showUsername:o=!1},l){const c=!!i;return t.jsx(b,{id:"navbar-user-profile",ref:l,zIndex:9999,children:t.jsxs(b,{alignItems:"end",display:"flex",flexDirection:"column",position:"relative",zIndex:30,children:[c?t.jsxs(R,{onClick:i,pb:.5,pl:.5,pr:.5,pt:.5,variant:"ghost",children:[t.jsx(nt,{children:r[0].toUpperCase()}),o?t.jsx(v,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:r.split(" ")[0]}):void 0,a?t.jsx(z,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}):t.jsxs(b,{alignItems:"center",display:"flex",px:.5,py:.5,children:[t.jsx(nt,{children:r[0].toUpperCase()}),o?t.jsxs(v,{color:"#1d2939",display:"inline",ml:.5,size:"sm",children:["Hi ",r.split(" ")[0],"!"]}):void 0,a?t.jsx(z,{clickable:!1,icon:"ellipsis-v",iconSize:"xxss",ml:.5}):void 0]}),t.jsx(qn,{children:n})]})})}),Se=({authorEmail:e,date:n,description:i,descriptionColor:r,id:a,title:o,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:g})=>{const u=s.nt();return t.jsxs(b,{width:"100%",children:[typeof o=="string"?t.jsx(v,{color:l??u.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:o}):o,t.jsxs(b,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(v,{color:r??u.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(v,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(v,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Author: ${e}`}),g&&t.jsx(Y,{icon:"circle-info",id:a,tip:g})]})]})},it=s.dt(b).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
634
634
|
& img {
|
|
635
635
|
display: block;
|
|
636
636
|
}
|
|
@@ -645,7 +645,7 @@
|
|
|
645
645
|
pointer-events: none;
|
|
646
646
|
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
647
647
|
}
|
|
648
|
-
`,ii=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},ai=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,ii(n)),bt=({alt:e,fileType:n,width:i="100%",opacity:r=0,src:a,height:o="auto"})=>n==="video"||ai(["webm"],a)?t.jsx(it,{$opacity:r,children:t.jsxs("video",{controls:!0,muted:!0,style:{height:o,width:i},children:[t.jsx("source",{src:a,type:"video/webm"}),t.jsx(q,{href:a,iconPosition:"hidden",children:a})]})}):t.jsx(it,{$opacity:r,children:t.jsx("img",{alt:e,src:a,style:{height:o,width:i}})}),ri=({alt:e,authorEmail:n,date:i,description:r,src:a,children:o,isEditing:l,onClick:c,title:d,hideDescription:
|
|
648
|
+
`,ii=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},ai=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,ii(n)),bt=({alt:e,fileType:n,width:i="100%",opacity:r=0,src:a,height:o="auto"})=>n==="video"||ai(["webm"],a)?t.jsx(it,{$opacity:r,children:t.jsxs("video",{controls:!0,muted:!0,style:{height:o,width:i},children:[t.jsx("source",{src:a,type:"video/webm"}),t.jsx(q,{href:a,iconPosition:"hidden",children:a})]})}):t.jsx(it,{$opacity:r,children:t.jsx("img",{alt:e,src:a,style:{height:o,width:i}})}),ri=({alt:e,authorEmail:n,date:i,description:r,src:a,children:o,isEditing:l,onClick:c,title:d,hideDescription:g=!1,headerType:u="image",showMaximize:x=!0})=>{const f=s.nt(),[h,m]=p.useState(!1),$=p.useCallback(()=>{m(!0)},[]),y=p.useCallback(()=>{m(!1)},[]);return t.jsxs(b,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:f.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:$,onLeave:y,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(b,{cursor:l?"unset":"pointer",display:"inline-flex",justify:"center",onClick:c,position:"relative",width:"100%",children:o===void 0?t.jsxs(p.Fragment,{children:[t.jsx(bt,{alt:e,fileType:u,height:"147px",opacity:h?.3:0,src:a,width:"100%"}),x?t.jsx(b,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(M,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),g?null:t.jsx(Se,{authorEmail:n,date:i,description:r,descriptionColor:f.palette.gray[600],id:`${e}-card-header`,title:d})]})},oi=s.dt.div`
|
|
649
649
|
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:r="auto"})=>`
|
|
650
650
|
display: flex;
|
|
651
651
|
background-color: ${e.palette.white};
|
|
@@ -664,7 +664,7 @@
|
|
|
664
664
|
text-align: ${n};
|
|
665
665
|
}
|
|
666
666
|
`}
|
|
667
|
-
`,Ue=({htmlFor:e,label:n,link:i,required:r,tooltip:a,weight:o="normal"})=>{const l=s.nt(),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(
|
|
667
|
+
`,Ue=({htmlFor:e,label:n,link:i,required:r,tooltip:a,weight:o="normal"})=>{const l=s.nt(),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(z,{icon:"asterisk",iconColor:l.palette.error[500],iconSize:"xxss"}),i?t.jsx(q,{href:i,target:"_blank"}):null,d?t.jsx(Y,{display:"inline-flex",icon:"circle-info",id:c,place:"top",tip:a}):null]})},si=s.dt.div`
|
|
668
668
|
${({theme:e})=>`
|
|
669
669
|
align-items: flex-start;
|
|
670
670
|
display: inline-flex;
|
|
@@ -803,7 +803,7 @@
|
|
|
803
803
|
border: 1px solid ${e.palette.gray[600]};
|
|
804
804
|
}
|
|
805
805
|
`}
|
|
806
|
-
`,O=({children:e,error:n,helpLink:i,helpLinkText:r="Link here",helpText:a,htmlFor:o,label:l,linkPosition:c="down",maxLength:d,required:
|
|
806
|
+
`,O=({children:e,error:n,helpLink:i,helpLinkText:r="Link here",helpText:a,htmlFor:o,label:l,linkPosition:c="down",maxLength:d,required:g,tooltip:u,value:x,weight:f})=>{const h=s.nt(),m=x?x.length:0;return t.jsxs(si,{children:[l===void 0?void 0:t.jsx(Ue,{htmlFor:o,label:l,link:c==="up"?i:void 0,required:g,tooltip:u,weight:f}),e,n||d?t.jsxs(b,{display:"flex",justify:n===void 0?"end":"space-between",width:"100%",children:[n&&t.jsx(v,{className:"error-msg",color:h.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:n}),d&&t.jsx(X,{priority:"low",tagLabel:`${m}/${d}`,variant:"error"})]}):void 0,a||i?t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[a&&t.jsxs(t.Fragment,{children:[t.jsx(z,{icon:"circle-info",iconColor:h.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(v,{color:h.palette.gray[400],display:"inline-block",size:"sm",children:a})]}),i&&c==="down"?t.jsx(q,{href:i,children:r}):void 0]}):void 0]})},he=({className:e,children:n,isFilter:i=!1,popoverRef:r,state:a,triggerRef:o,...l})=>{var x;const c=p.useRef(null),d=(x=o==null?void 0:o.current)==null?void 0:x.getBoundingClientRect(),{popoverProps:g}=s.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:r??c,triggerRef:o,isNonModal:r?!0:void 0},a),u=p.useCallback(f=>{f.preventDefault()},[]);return t.jsx(s.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...g,className:e,onPointerDown:i?u:void 0,ref:r??c,style:{...g.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},li=s.dt.ul`
|
|
807
807
|
${({theme:e})=>`
|
|
808
808
|
align-self: center;
|
|
809
809
|
background: ${e.palette.white};
|
|
@@ -851,7 +851,7 @@
|
|
|
851
851
|
cursor: not-allowed;
|
|
852
852
|
}
|
|
853
853
|
`}
|
|
854
|
-
`,$t=({item:e,state:n})=>{const i=
|
|
854
|
+
`,$t=({item:e,state:n})=>{const i=p.useRef(null),{optionProps:r,isSelected:a,isFocused:o,isDisabled:l}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},n,i),c=[a?"selected":"",o?"focused":"",l?"disabled":""].join(" ");return t.jsxs(ci,{...r,className:c,ref:i,children:[e.rendered,a?t.jsx(z,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0]})},De=({field:e,disabled:n=!1,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,loadingItems:c,name:d,items:g,onBlur:u,onChange:x,placeholder:f,required:h,tooltip:m,value:$,weight:y})=>{var tt;const w=s.nt(),k=n?void 0:i,S=(e==null?void 0:e.value)??$,[C,j]=p.useState(((tt=g.find(D=>D.value===S))==null?void 0:tt.name)??""),[T,P]=p.useState(S),[L,B]=p.useState(g),[F,E]=p.useState(!1),{contains:A}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),_=p.useRef(null),ae=p.useRef(null),Ee=p.useRef(null),Je=p.useRef(null),Qe=p.useRef(null),ln=p.useMemo(()=>g.map(D=>A(D.name,C)||F?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{children:D.name},D.value):null),[A,C,g,F]),cn=p.useCallback(D=>{j(D),D===""?E(!0):(E(!1),P(H=>{const ye=D===""?"":H;return e&&e.onChange(ye),x&&x(D),ye}),B(g.filter(H=>A(H.name,D))))},[A,g,e,x]),dn=p.useCallback(D=>{var H;j(((H=g.find(ye=>ye.value===D))==null?void 0:H.name)??""),P(D?String(D):""),e&&e.onChange(D),x&&x(D?String(D):""),B(g)},[g,e,x]),et=p.useCallback(D=>{D.key==="Enter"&&D.preventDefault(),E(!1)},[]),pn=p.useCallback(()=>{u&&u(),e&&e.onBlur()},[e,u]),K=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsEmptyCollection:!0,inputValue:C,items:L,menuTrigger:"focus",shouldCloseOnBlur:!0,selectedKey:T,onBlur:pn,onInputChange:cn,onKeyDown:et,onKeyUp:()=>{E(!0)},onOpenChange(D,H){E(D&&(H==="manual"||H==="focus"))},onSelectionChange:dn,children:ln}),{buttonProps:gn,inputProps:un,listBoxProps:xn}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:C,buttonRef:ae,id:d,inputRef:_,label:l??d,listBoxRef:Ee,name:d,placeholder:f,popoverRef:Qe},K),{listBoxProps:fn}=s.$c132121280ec012d$export$50eacbbf140a3141(xn,K,Ee),{buttonProps:hn}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(gn,ae);return p.useEffect(()=>{var D;(c===!1||!S)&&j(((D=g.find(H=>H.value===S))==null?void 0:D.name)??"")},[S,g,c]),t.jsxs(O,{error:k,helpLink:r,helpLinkText:a,helpText:o,htmlFor:d,label:l,required:h,tooltip:m,weight:y,children:[t.jsxs(Z,{className:`${n?"disabled":""} ${k?"error":""}`,ref:Je,children:[t.jsx("input",{...un,"aria-invalid":k?"true":"false","aria-label":d,onKeyDown:et,ref:_}),k?t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"xs"}):void 0,t.jsx(M,{...hn,className:"action",icon:K.isOpen?"chevron-up":"chevron-down",iconColor:w.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:ae,type:"button",variant:"ghost"})]}),K.isOpen&&K.collection.size>0&&!n?t.jsx(he,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:Qe,state:K,triggerRef:Je,children:t.jsx(li,{...fn,ref:Ee,children:[...K.collection].map(D=>t.jsx($t,{item:D,state:K},D.key))})}):null]})},di=({control:e,disabled:n=!1,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,loadingItems:c,name:d,items:g,onBlur:u,onChange:x,placeholder:f,required:h,tooltip:m,value:$,weight:y})=>e?t.jsx(s.Controller,{control:e,name:d,render:({field:w})=>t.jsx(De,{disabled:n,error:i,field:w,helpLink:r,helpLinkText:a,helpText:o,items:g,label:l,loadingItems:c,name:d,onBlur:u,onChange:x,placeholder:f,required:h,tooltip:m,value:$,weight:y}),rules:{required:h}}):t.jsx(De,{disabled:n,error:i,helpLink:r,helpLinkText:a,helpText:o,items:g,label:l,loadingItems:c,name:d,onBlur:u,onChange:x,placeholder:f,required:h,tooltip:m,value:$,weight:y}),pi=s.dt.div`
|
|
855
855
|
${({theme:e})=>`
|
|
856
856
|
align-items: center;
|
|
857
857
|
color: ${e.palette.gray[800]};
|
|
@@ -983,9 +983,9 @@
|
|
|
983
983
|
padding: 0 ${e.spacing[.25]};
|
|
984
984
|
width: 100%;
|
|
985
985
|
`}
|
|
986
|
-
`,mt=({state:e,date:n})=>{const i=
|
|
986
|
+
`,mt=({state:e,date:n})=>{const i=p.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,u="highlightedRange"in e&&!s.lodashExports.isNull(e.highlightedRange)?s.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,x=l&&!c&&!(g||u)?"range":"";return t.jsx(xi,{id:x,...a,children:t.jsxs("div",{...o,className:`cell ${g||u?"selected":""}
|
|
987
987
|
${c?"disabled":""} ${r?"today":""}
|
|
988
|
-
${!e.isFocused&&!r?"focused":""} ${x}`,ref:i,children:[d,r?t.jsx(fi,{children:t.jsx(
|
|
988
|
+
${!e.isFocused&&!r?"focused":""} ${x}`,ref:i,children:[d,r?t.jsx(fi,{children:t.jsx(z,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},ze=({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(at,{children:r.map((o,l)=>{const c=`key_${l}`;return t.jsx(ui,{children:o},c)})})}),t.jsx("tbody",{children:[...new Array(a).keys()].map(o=>t.jsx(at,{children:e.getDatesInWeek(o).map((l,c)=>{const d=`key_${c}`;return l?t.jsx(mt,{date:l,state:e},d):t.jsx("td",{},d)})},o))})]})},hi=s.dt(Ve)`
|
|
989
989
|
align-items: center;
|
|
990
990
|
background-color: inherit;
|
|
991
991
|
border-color: inherit;
|
|
@@ -1083,7 +1083,7 @@
|
|
|
1083
1083
|
font-weight: ${e.typography.weight.bold};
|
|
1084
1084
|
}
|
|
1085
1085
|
`}
|
|
1086
|
-
`,ke=({disabled:e=!1,icon:n,props:i})=>{const r=
|
|
1086
|
+
`,ke=({disabled:e=!1,icon:n,props:i})=>{const r=p.useRef(null),{buttonProps:a}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,r);return t.jsx($i,{...a,$disabled:e,$focus:!!a["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:r,type:"button",children:t.jsx(z,{icon:n,iconColor:I.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},Ie=({state:e,prevButtonProps:n,nextButtonProps:i,title:r})=>{const a=e.focusedDate,o=p.useCallback(()=>{e.setFocusedDate(a.add({years:1}))},[a,e]),l=p.useCallback(()=>{e.setFocusedDate(a.subtract({years:1}))},[a,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(ke,{icon:"chevron-left",props:n}),t.jsxs(pi,{children:[r,t.jsxs(gi,{children:[t.jsx(rt,{"aria-label":"top",onClick:o,children:t.jsx(z,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(rt,{"aria-label":"bottom",onClick:l,children:t.jsx(z,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(ke,{icon:"chevron-right",props:i})]})},wt=({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(Ie,{nextButtonProps:o,prevButtonProps:a,state:r,title:l}),t.jsx(ze,{state:r}),t.jsx(Ye,{children:t.jsx(R,{onClick:e,variant:"ghost",children:"Cancel"})})]})},jt=({segment:e,state:n})=>{const i=s.nt(),r=p.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})},kt=({disabled:e,error:n=!1,props:i})=>{const r=s.nt(),a=p.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=p.useCallback(d=>{const g=document.getElementsByClassName("segment-cell"),u=d.currentTarget;Object.values(g).some(x=>x.contains(u))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(yi,{...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 u=`key_${g}`;return t.jsx(jt,{segment:{...d,isEditable:!e},state:o},u)})}),n?t.jsx(z,{icon:"exclamation-circle",iconColor:r.palette.error[500],iconSize:"xs"}):void 0]})},Ct=e=>{const n=p.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]=p.useState(s.lodashExports.isNil(r)?"AM":a),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=p.useCallback(g=>{const u=g.currentTarget.name;u!==o&&(s.lodashExports.isNil(r)||(u==="AM"?i.setSegment("dayPeriod",0):u==="PM"&&i.setSegment("dayPeriod",12))),l(u)},[o,i,r]);return t.jsxs(mi,{children:[t.jsx(ot,{...c,ref:n,children:i.segments.slice(0,-2).map((g,u)=>{const x=`key_${u}`;return t.jsx(jt,{segment:g,state:i},x)})}),t.jsxs(ot,{children:[t.jsx(st,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(st,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},vt=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",wi=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",ji=e=>e&&e!=="-"?s.dayjs(e).format("YYYY/MM/DD hh:mm A"):"-",se=({error:e,buttonProps:n,datePickerRef:i,disabled:r=!1,granularity:a="day",fieldProps:o,groupProps:l,name:c,register:d,required:g,setValue:u,value:x})=>{const f=p.useCallback(h=>{o.onChange&&o.onChange(h),u&&u(c,a==="day"?vt(String(h)):wi(String(h)))},[o,a,c,u]);return t.jsxs(Z,{...l,className:`${r?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(kt,{disabled:r,error:e!=null,props:{...o,autoFocus:!1,granularity:a,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(ke,{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:x})]})},Te=({children:e,...n})=>{const i=p.useRef(null),{dialogProps:r}=s.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(bi,{...r,ref:i,children:e})},St=({disabled:e=!1,error:n,helpLink:i,helpLinkText:r,helpText:a,required:o,label:l,name:c,register:d,setValue:g,tooltip:u,watch:x,...f})=>{const h=p.useRef(null),m=x==null?void 0:x(c),$=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...f,value:s._.isNil(m)||s._.isEmpty(m)||m==="-"?null:s.$fae977aafc393c5c$export$6b862160d295c8e(m.replace(/\//gu,"-"))}),{close:y}=$,{groupProps:w,fieldProps:k,buttonProps:S,dialogProps:C,calendarProps:j}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...f,"aria-label":l??c,name:c},$,h),T=p.useCallback(P=>{j.onChange&&j.onChange(P),g&&g(c,vt(P.toString()))},[j,c,g]);return t.jsxs(O,{error:n,helpLink:i,helpLinkText:r,helpText:a,htmlFor:c,label:l,required:o,tooltip:u,children:[t.jsx(se,{buttonProps:S,datePickerRef:h,disabled:e,error:n,fieldProps:k,groupProps:w,name:c,register:d,required:o,setValue:g,value:m}),$.isOpen&&!e?t.jsx(he,{offset:8,placement:"bottom start",state:$,triggerRef:h,children:t.jsx(Te,{...C,children:t.jsx(wt,{onClose:y,props:{...j,onChange:T}})})}):null]})},zt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=p.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(Ie,{nextButtonProps:l,prevButtonProps:o,state:a,title:c}),t.jsx(ze,{state:a}),t.jsx(Ye,{children:t.jsx(R,{onClick:e,variant:"ghost",children:"Cancel"})})]})},ki=s.dt.div`
|
|
1087
1087
|
${({theme:e,$disabled:n,$show:i})=>`
|
|
1088
1088
|
border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
|
|
1089
1089
|
display: flex;
|
|
@@ -1094,7 +1094,7 @@
|
|
|
1094
1094
|
background: ${n?e.palette.gray[200]:e.palette.white};
|
|
1095
1095
|
}
|
|
1096
1096
|
`}
|
|
1097
|
-
`,Ci=({disabled:e=!1,error:n,label:i,name:r,required:a,tooltip:o,register:l,setValue:c,...d})=>{const
|
|
1097
|
+
`,Ci=({disabled:e=!1,error:n,label:i,name:r,required:a,tooltip:o,register:l,setValue:c,...d})=>{const g=`${r}Max`,u=`${r}Min`,x=p.useRef(null),f=s.$93c38a5e28be6249$export$e50a61c1de9f574(d),{close:h}=f,{groupProps:m,startFieldProps:$,endFieldProps:y,buttonProps:w,dialogProps:k,calendarProps:S}=s.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...d,"aria-label":i??r},f,x),C=p.useCallback(j=>{j&&S.onChange&&S.onChange(j)},[S]);return t.jsxs(O,{error:n,htmlFor:r,label:i,required:a,tooltip:o,children:[t.jsxs(ki,{$disabled:e,$show:n!==void 0,ref:x,children:[t.jsx(se,{buttonProps:w,datePickerRef:x,disabled:e,error:n,fieldProps:{...$,"aria-label":`${$["aria-label"]} ${r}`,validate:j=>y.value&&j>y.value?"Start date must be less than or equal to end date":null},groupProps:m,name:u,register:l,setValue:c}),t.jsx(se,{buttonProps:w,datePickerRef:x,disabled:e,error:n,fieldProps:{...y,"aria-label":`${y["aria-label"]} ${r}`,validate:j=>$.value&&j<$.value?"End date must be greater than or equal to start date":null},groupProps:m,name:g,register:l,setValue:c})]}),f.isOpen&&!e?t.jsx(he,{offset:8,placement:"bottom start",state:f,triggerRef:x,children:t.jsx(Te,{...k,children:t.jsx(zt,{onClose:h,props:{...S,onChange:C}})})}):null]})},vi=s.dt.div`
|
|
1098
1098
|
${({theme:e})=>`
|
|
1099
1099
|
align-items: center;
|
|
1100
1100
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -1109,9 +1109,9 @@
|
|
|
1109
1109
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1110
1110
|
justify-content: flex-end;
|
|
1111
1111
|
flex: 1 0 0;
|
|
1112
|
-
`,It=({handleTimeChange:e,onClose:n,props:i,timeState:r})=>{const a=s.nt(),{locale:o}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:o}),{prevButtonProps:c,nextButtonProps:d,title:
|
|
1112
|
+
`,It=({handleTimeChange:e,onClose:n,props:i,timeState:r})=>{const a=s.nt(),{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(Ie,{nextButtonProps:d,prevButtonProps:c,state:l,title:g}),t.jsx(ze,{state:l}),t.jsxs(vi,{children:[t.jsx(v,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(Si,{children:t.jsx(Ct,{hourCycle:12,label:"time-field",onChange:e,value:r.timeValue})})]}),t.jsx(Ye,{children:t.jsx(R,{onClick:n,variant:"ghost",children:"Cancel"})})]})},zi=e=>{const{disabled:n=!1,error:i,required:r,label:a,name:o,tooltip:l,register:c,setValue:d,watch:g}=e,u=g==null?void 0:g(o),x=p.useRef(null),f=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:r,shouldCloseOnSelect:!1,value:s._.isNil(u)||s._.isEmpty(u)||u==="-"?null:s.$fae977aafc393c5c$export$588937bcd60ade55(u.replace(/\//gu,"-"))}),{close:h}=f,{groupProps:m,fieldProps:$,buttonProps:y,dialogProps:w,calendarProps:k}=s.$6057a3d2a53a12fd$export$42df105a73306d51(e,f,x),S=p.useCallback(j=>{k.onChange&&k.onChange(j),d==null||d(o,ji(String(j).replace(/-/gu,"/")))},[k,o,d]),C=p.useCallback(j=>{j&&f.setTimeValue(j)},[f]);return t.jsxs(O,{error:i,htmlFor:o,label:a,required:r,tooltip:l,children:[t.jsx(se,{buttonProps:y,datePickerRef:x,disabled:n,error:i,fieldProps:$,granularity:"minute",groupProps:m,name:o,register:c,setValue:d,value:u}),f.isOpen&&!n?t.jsx(he,{offset:8,placement:"bottom start",state:f,triggerRef:x,children:t.jsx(Te,{...w,children:t.jsx(It,{handleTimeChange:C,onClose:h,props:{...k,onChange:S},timeState:f})})}):null]})},Ii=({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(b,{children:[t.jsx(Ue,{htmlFor:o,label:a,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(q,{href:d,children:c}):t.jsx(v,{size:"md",children:c})]})},Ke=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:r,helpText:a,error:o,isValid:l,isTouched:c,label:d,linkPosition:g,name:u,maskValue:x=!1,onPaste:f,placeholder:h,register:m,tooltip:$,type:y="text",weight:w,...k})=>{const{required:S,onBlur:C,onChange:j}=k,T=s.nt(),P=e?void 0:o,L=l&&c&&!e,B=p.useCallback(F=>{F.key==="Enter"&&F.preventDefault()},[]);return t.jsx(O,{error:P,helpLink:i,helpLinkText:r,helpText:a,htmlFor:u,label:d,linkPosition:g,required:S,tooltip:$,weight:w,children:t.jsxs(Z,{className:`
|
|
1113
1113
|
${e?"disabled":""} ${P?"error":""} ${L?"success":""}
|
|
1114
|
-
`,children:[n?t.jsx(
|
|
1114
|
+
`,children:[n?t.jsx(z,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":P?"true":"false","aria-label":u,"aria-required":S,autoComplete:"off",className:x?"sr-block":"","data-testid":`${u}-input`,disabled:e,id:u,onKeyDown:B,onPaste:f,placeholder:h,type:y,...m?m(u,{required:S,onBlur:C,onChange:j}):{...k}}),P?t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:T.palette.error[500],iconSize:"xs"}):void 0,L?t.jsx(z,{icon:"check-circle",iconClass:"success-icon",iconColor:T.palette.success[500],iconSize:"xs"}):void 0]})})},Ti=s.dt(ut)`
|
|
1115
1115
|
white-space: nowrap;
|
|
1116
1116
|
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1117
1117
|
text-overflow: ellipsis;
|
|
@@ -1122,13 +1122,13 @@
|
|
|
1122
1122
|
position: absolute;
|
|
1123
1123
|
visibility: hidden;
|
|
1124
1124
|
width: 0;
|
|
1125
|
-
`,Pe=(e,n,i)=>{const r=new Event(e);return Object.defineProperty(r,"target",{value:{name:n,value:i}}),r},Ei=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Fi=({accept:e,disabled:n=!1,error:i,label:r,helpLink:a,helpText:o,id:l,multiple:c,name:d,onChange:
|
|
1125
|
+
`,Pe=(e,n,i)=>{const r=new Event(e);return Object.defineProperty(r,"target",{value:{name:n,value:i}}),r},Ei=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},Fi=({accept:e,disabled:n=!1,error:i,label:r,helpLink:a,helpText:o,id:l,multiple:c,name:d,onChange:g,required:u,register:x,setValue:f,tooltip:h,watch:m,weight:$})=>{const y=s.nt(),w=n?void 0:i,k=p.useRef(null),S=m==null?void 0:m(d),C=Ei(S),j=x==null?void 0:x(d,{required:u}),T=p.useCallback(()=>{const B=Pe("change",d,void 0);f&&f(d,""),j&&j.onChange(B)},[j,d,f]),P=p.useCallback(B=>{const{files:F}=B.currentTarget,E=Pe("change",d,F&&F.length>0?F:void 0);g==null||g(E),j&&j.onChange(E)},[j,d,g]),L=p.useCallback(B=>{n?B.preventDefault():k.current&&k.current.click()},[n]);return t.jsxs(O,{error:w,helpLink:a,helpText:o,htmlFor:l??d,label:r,required:u,tooltip:h,weight:$,children:[t.jsxs(Z,{className:`${n?"disabled":""} ${w?"error":""}`,children:[t.jsx(Ti,{$size:"xs",children:C}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[s.lodashExports.isEmpty(C)?void 0:t.jsx(M,{color:y.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:T,variant:"ghost",width:"20px"}),w&&t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"})]}),t.jsxs(R,{border:n?`1px solid ${y.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:L,variant:"primary",width:"96px",children:[t.jsx(z,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]}),t.jsx(Ni,{...j&&{ref:j.ref,onBlur:j.onBlur},accept:e,"aria-label":d,"data-testid":d,disabled:n,id:l??d,multiple:c,name:d,onChange:P,onClick:T,ref:k,required:void 0,type:"file",value:void 0})]})},Ri=s.dt.input`
|
|
1126
1126
|
border: none;
|
|
1127
1127
|
background: transparent;
|
|
1128
1128
|
min-width: 15rem;
|
|
1129
1129
|
padding: 0;
|
|
1130
1130
|
flex: 1;
|
|
1131
|
-
`,Le=({disabled:e=!1,error:n,field:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:
|
|
1131
|
+
`,Le=({disabled:e=!1,error:n,field:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:g,placeholder:u,required:x,tooltip:f,value:h,weight:m})=>{const $=s.nt(),y=e?void 0:n,[w,k]=p.useState(""),S=d?h:i==null?void 0:i.value,C=p.useMemo(()=>S&&typeof S=="string"?S.split(",").filter(Boolean):[],[S]),j=p.useCallback(F=>{const A=[...new Set(F.filter(Boolean))].join(","),_=Pe("change",c,A);i&&i.onChange(_),d&&d(_)},[i,c,d]),T=p.useCallback(F=>{k(F.target.value)},[]),P=p.useCallback(F=>{const E=w.trim();E.length&&!C.includes(E)&&(F.preventDefault(),j([...C,E]),k("")),i&&i.onBlur()},[w,i,j,C]),L=p.useCallback(F=>{const E=w.trim();F.key==="Enter"&&E.length===0&&F.preventDefault(),["Enter",","].includes(F.key)&&E.length>0&&!C.includes(E)?(F.preventDefault(),j([...C,E]),k("")):F.key==="Backspace"&&!E.length&&C.length&&(F.preventDefault(),g==null||g(C[C.length-1]),j(C.slice(0,-1)))},[w,g,j,C]),B=p.useCallback(F=>()=>{g==null||g(F),j(C.filter(E=>E!==F))},[g,j,C]);return t.jsx(O,{error:y,helpLink:r,helpLinkText:a,helpText:o,htmlFor:c,label:l,required:x,tooltip:f,weight:m,children:t.jsxs(Z,{$overflowX:"auto",className:`${e?"disabled":""} ${y?"error":""}`,children:[C.map(F=>t.jsx(X,{disabled:e,onClose:B(F),tagLabel:F},F)),t.jsx(Ri,{"aria-hidden":!1,"aria-invalid":y?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",id:c,onBlur:P,onChange:T,onKeyDown:L,placeholder:C.length===0?u:void 0,ref:i==null?void 0:i.ref,type:"text",value:w}),y?t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"xs"}):void 0]})})},Di=({disabled:e=!1,control:n,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:g,placeholder:u,required:x,tooltip:f,value:h,weight:m})=>n?t.jsx(s.Controller,{control:n,name:c,render:({field:$})=>t.jsx(Le,{disabled:e,error:i,field:$,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c,onRemove:g,placeholder:u,required:x,tooltip:f,weight:m}),rules:{required:x}}):t.jsx(Le,{disabled:e,error:i,helpLink:r,helpLinkText:a,helpText:o,label:l,name:c,onChange:d,onRemove:g,placeholder:u,required:x,tooltip:f,value:h,weight:m}),Be=p.forwardRef(function({disabled:n,icon:i,margin:r,onClick:a,...o},l){return t.jsx(hi,{$margin:r,"aria-label":i,className:"action-btn",disabled:n,onClick:a,ref:l,type:"button",...o,children:t.jsx(z,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),Ce=({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:u,required:x,setValue:f,value:h})=>{const m=s.nt(),$=i?void 0:e,y=p.useMemo(()=>n<0?0:n,[n]),w=p.useMemo(()=>h===void 0?0:s._.toNumber(h),[h]),k=p.useCallback(()=>{const T=(w-10**-y).toFixed(y);f&&f(c,Math.max(Number(l),Number(T)))},[y,w,l,c,f]),S=p.useCallback(()=>{const T=(w+10**-y).toFixed(y);f&&f(c,Math.min(Number(o),Number(T)>Number(l)?Number(T):Number(l)))},[y,w,o,l,c,f]),C=p.useCallback(T=>{const{value:P}=T.target,L=/\d+/u.test(P)&&!s._.isEmpty(P);f&&f(c,L?Number(P):void 0),d&&d(T)},[c,d,f]),j=p.useCallback(T=>{T.key==="Enter"&&T.preventDefault()},[]);return t.jsxs(Z,{className:`${i?"disabled":""} ${$?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":$?"true":"false","aria-label":c,"aria-required":x,autoComplete:"off",disabled:i,id:r??c,max:o,min:l,onKeyDown:j,placeholder:g,required:x,step:10**-y,type:"number",...u==null?void 0:u(c,{required:x,maxLength:a,max:o,min:l,onChange:C})}),$&&t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}),t.jsx(Be,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:k,px:.75,py:.75}),t.jsx(Be,{borderRadius:`0 ${m.spacing[.5]} ${m.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:S,px:.75,py:.75})]})},Tt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:r,helpText:a,id:o,label:l,linkPosition:c,maxLength:d,max:g,min:u,name:x,onChange:f,placeholder:h,register:m,required:$,setValue:y,tooltip:w,value:k,watch:S,weight:C})=>t.jsx(O,{error:n?void 0:i,helpLink:r,helpText:a,htmlFor:x,label:l,linkPosition:c,maxLength:d,required:$,tooltip:w,weight:C,children:t.jsx(Ce,{decimalPlaces:e,disabled:n,error:i,id:o,max:g,maxLength:d,min:u,name:x,onChange:f,placeholder:h,register:m,required:$,setValue:y,value:f?k:S==null?void 0:S(x)})}),Pi=({disabled:e=!1,error:n,name:i,label:r,propsMax:a,propsMin:o,required:l,tooltip:c})=>{const d=`${i}Max`,g=`${i}Min`;return t.jsx(O,{error:n,htmlFor:i,label:r,required:l,tooltip:c,children:t.jsxs(b,{display:"flex",gap:.25,width:"100%",children:[t.jsx(Ce,{...o,disabled:e,error:n,name:d}),t.jsx(Ce,{...a,disabled:e,error:n,name:g})]})})},Li=s.dt.div`
|
|
1132
1132
|
${({theme:e})=>`
|
|
1133
1133
|
align-items: flex-start;
|
|
1134
1134
|
align-self: stretch;
|
|
@@ -1221,9 +1221,9 @@
|
|
|
1221
1221
|
overflow: hidden;
|
|
1222
1222
|
text-overflow: ellipsis;
|
|
1223
1223
|
white-space: nowrap;
|
|
1224
|
-
`,
|
|
1225
|
-
${e?"disabled":""} ${j?"error":""} ${
|
|
1226
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":j?"true":"false","aria-label":c,"aria-required":h,className:
|
|
1224
|
+
`,te=(e,n,i=!1)=>{p.useEffect(()=>{var a;const r=o=>{e&&!e.contains(o.target)&&n()};return i?(document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("click",r,!0),()=>{var o;(o=document.getElementById("root"))==null||o.removeEventListener("click",r,!0)})},[i,e,n])},Oi=({disabled:e,error:n,label:i,name:r,placeholder:a,required:o,register:l,tooltip:c,value:d,weight:g})=>{const u=s.nt(),x=p.useRef(null),f=e?void 0:n,[h,m]=p.useState(!1),[$,y]=p.useState(""),{refs:w,floatingStyles:k}=s.useFloating$1({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputValue:S,handlePhoneValueChange:C,country:j,setCountry:T}=s.ee({countries:s.R,defaultCountry:"us",forceDialCode:!0,value:d?String(d):void 0}),P=p.useCallback(()=>{m(E=>!E),h||y("")},[h]),L=p.useCallback(E=>()=>{T(E),m(!1),y("")},[T,m]),B=p.useCallback(E=>{E.key.length===1?y(A=>A+E.key):E.key==="Backspace"&&y(A=>A.slice(0,-1))},[]),F=s.R.filter(E=>{const{name:A}=s.M(E);return A.toLowerCase().includes($.toLowerCase())});return te(w.floating.current,()=>{m(!1),y("")},!0),t.jsx(O,{error:f,htmlFor:r,label:i,required:o,tooltip:c,weight:g,children:t.jsxs(Li,{className:`${e?"disabled":""} ${f?"error":""}`,ref:x,children:[t.jsxs(Bi,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:P,onKeyDown:B,ref:w.setReference,children:[t.jsx(s.q,{iso2:j.iso2,size:"16px"}),t.jsx(z,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(Z,{className:`${e?"disabled":""} ${f?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":f?"true":"false","aria-label":r,"aria-required":o,autoComplete:"off","data-testid":`${r}-input`,disabled:e,id:r,name:r,placeholder:a,type:"tel",value:S,...l==null?void 0:l(r,{required:o,onChange:C})}),f?t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),h&&V.createPortal(t.jsx(Wi,{ref:w.setFloating,style:k,children:F.map(E=>{const{dialCode:A,iso2:_,name:ae}=s.M(E);return t.jsxs(Mi,{onClick:L(_),value:_,children:[t.jsx(s.q,{iso2:_,size:"16px"}),t.jsx(Ai,{children:ae}),t.jsx(v,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+A})]},_)})}),document.getElementById("root")??document.body)]})})},Hi=({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:u,placeholder:x,register:f,required:h,rows:m,tooltip:$,watch:y,weight:w})=>{const k=s.nt(),S=y==null?void 0:y(c),C=o&&a&&!e,j=e?void 0:n;return t.jsx(O,{error:j,helpLink:i,helpText:r,htmlFor:c,label:l,maxLength:u,required:h,tooltip:$,value:S?String(S):void 0,weight:w,children:t.jsxs(Z,{className:`
|
|
1225
|
+
${e?"disabled":""} ${j?"error":""} ${C?"success":""}
|
|
1226
|
+
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":j?"true":"false","aria-label":c,"aria-required":h,className:g?"sr-block":"","data-testid":`${c}-text-area`,disabled:e,id:d??c,maxLength:u,placeholder:x,rows:m,...f==null?void 0:f(c,{required:h})}),j?t.jsx(z,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:k.palette.error[500],iconSize:"xs"}):void 0,C?t.jsx(z,{icon:"check-circle",iconClass:"success-icon",iconColor:k.palette.success[500],iconSize:"xs"}):void 0]})})},_i=({description:e,disabled:n,id:i,align:r,inputType:a="text",inputNumberProps:o,minHeight:l,minWidth:c,name:d,placeholder:g,tooltip:u,title:x})=>{const f=p.useMemo(()=>{if(a==="text")return t.jsx(Ke,{disabled:n,name:d,placeholder:g});if(a==="date")return t.jsx(St,{disabled:n,name:d});const{decimalPlaces:h,max:m,min:$}=o??{};return t.jsx(Tt,{decimalPlaces:h,disabled:n,max:m,min:$,name:d,placeholder:g})},[n,o,a,d,g]);return t.jsxs(oi,{$align:r,$minHeight:l,$minWidth:c,children:[t.jsx(Se,{description:e,id:i,title:x,tooltip:u}),f]})},Vi=s.dt.label`
|
|
1227
1227
|
${({theme:e})=>`
|
|
1228
1228
|
align-items: center;
|
|
1229
1229
|
color: ${e.palette.gray[600]};
|
|
@@ -1295,7 +1295,7 @@
|
|
|
1295
1295
|
fill: ${e.palette.white};
|
|
1296
1296
|
}
|
|
1297
1297
|
`}
|
|
1298
|
-
`,be=
|
|
1298
|
+
`,be=p.forwardRef(function({checked:n,disabled:i=!1,label:r,name:a,onChange:o,onClick:l,onFocus:c,onKeyDown:d,value:g,...u},x){return t.jsxs(Vi,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-hidden":!1,"aria-label":a,checked:n,disabled:i,id:a,name:a,onChange:o,onClick:l,onFocus:c,onKeyDown:d,ref:x,type:"checkbox",value:g,...u}),t.jsx(z,{disabled:i,icon:"check",iconSize:"sm"}),r??g]})}),Nt=({options:e,title:n,checkboxesName:i,defaultCollapsed:r,onChange:a})=>{const o=s.nt(),[l,c]=p.useState(r??!1),d=p.useCallback(()=>{c(g=>!g)},[]);return t.jsxs(b,{"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(b,{alignItems:"center",cursor:"pointer",display:"flex",onClick:d,children:[t.jsx(v,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n}),t.jsx(z,{icon:l?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs"})]}),l?t.jsx(b,{display:"flex",gap:.75,wrap:"wrap",children:e.map(g=>t.jsx(b,{border:"1px solid",borderColor:o.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(be,{checked:g.visible,disabled:g.locked,label:g.name,name:`${i}-${g.name}`,onChange:a,value:g.name})},g.name))}):void 0]})},Et=(e,n)=>{const[r,a]=p.useState(0),[o,l]=p.useState(0);return p.useEffect(()=>{o===100&&(()=>{a(d=>d===n-1?0:d+1)})()},[o,n]),p.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:r,progress:o,setCycle:a,setProgress:l}},Ft=({publicId:e,format:n="webp"})=>{const i=p.useMemo(()=>new s.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return p.useMemo(()=>i.image(e).format(n),[i,e,n])},Ne=e=>{const[n,i]=p.useState(!1),r=p.useCallback(()=>{i(!0)},[]),a=p.useCallback(()=>{i(!1)},[]),o=p.useCallback(()=>{i(l=>!l)},[]);return{close:a,isOpen:n,name:e,open:r,setIsOpen:i,toggle:o}},Gi=({name:e,items:n,columnOrder:i,setColumnOrder:r})=>{const a=p.useMemo(()=>[...n.filter(({locked:u})=>u).map(({locked:u,...x})=>({...x,visible:!0,locked:u})),...n.filter(({locked:u})=>!u).sort((u,x)=>u.visible===x.visible?0:u.visible?-1:1)],[n]),[o,l]=p.useState(a),c=p.useCallback(u=>{const x=u.filter(({locked:$})=>!$),h=[...u.filter(({locked:$})=>$),...x],m=h.map(({name:$})=>$);l($=>[...h,...$.filter(({name:y})=>!m.includes(y))]),r&&r(h.map(({id:$})=>$))},[r]),d=p.useCallback(()=>{const u=o.map(x=>{var h;const f=(i==null?void 0:i.includes(x.id))??!1;return(h=x.toggleVisibility)==null||h.call(x,f),{...x,visible:f}}).toSorted((x,f)=>{const h=(i==null?void 0:i.indexOf(x.id))??0,m=(i==null?void 0:i.indexOf(f.id))??0;return Number(f.visible)!==Number(x.visible)?Number(f.visible)-Number(x.visible):h-m});l(u),r==null||r(i)},[o,i,r]),g=p.useMemo(()=>s.some(o,u=>((i==null?void 0:i.includes(u.id))??!1)!==u.visible),[o,i]);return{setColumns:c,resetToDefault:d,columns:o,...Ne(e),hasChanged:g}},Rt=(e,n)=>p.useMemo(()=>s._.debounce(e,n),[e,n]),Ui=e=>{const[n,i]=p.useState(),r=Rt(a=>{i(a)},(e==null?void 0:e.debounceWait)??300);return[n,r]},Yi=({alt:e="img",height:n="",width:i="",plugins:r=[s.lazyload(),s.placeholder()],publicId:a})=>{const o=Ft({publicId:a});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:r,width:i})},G=p.memo(Yi),Ki=s.dt.label`
|
|
1299
1299
|
${({theme:e})=>`
|
|
1300
1300
|
align-items: center;
|
|
1301
1301
|
display: flex;
|
|
@@ -1374,7 +1374,7 @@
|
|
|
1374
1374
|
}
|
|
1375
1375
|
|
|
1376
1376
|
`}
|
|
1377
|
-
`,qi=s.dt.span.attrs({className:"checkmark"})``,qe=
|
|
1377
|
+
`,qi=s.dt.span.attrs({className:"checkmark"})``,qe=p.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:r,name:a,onChange:o,onClick:l,value:c,...d},g){return t.jsxs(Ki,{"aria-disabled":i,"aria-label":a,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":a,defaultChecked:n,disabled:i,name:a,onChange:o,onClick:l,ref:g,type:"radio",value:c,...d}),t.jsx(qi,{}),r??null]})}),Xi=({alt:e,imageId:n,icon:i,selectorProps:r,onClick:a,title:o,width:l="fit-content"})=>{const c=s.nt();return t.jsxs(b,{alignItems:"center",border:`1px solid ${c.palette.gray[200]}`,borderColorHover:c.palette.gray[600],borderRadius:c.spacing[.25],display:"inline-flex",padding:[1,1,1,1],shadowHover:"md",width:l,children:[t.jsx(b,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(qe,{name:r.name,onClick:a,value:r.value})}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[n===void 0?void 0:t.jsx(G,{alt:e??"card image",height:"32px",publicId:n,width:"32px"}),i===void 0?void 0:t.jsx(z,{icon:i,iconSize:"sm",iconType:"fa-light"}),t.jsx(W,{fontWeight:"bold",lineSpacing:1.75,size:"xs",children:o})]})]})},re=s.dt.div`
|
|
1378
1378
|
${({theme:e})=>`
|
|
1379
1379
|
align-items: center;
|
|
1380
1380
|
background-color: ${e.palette.gray[200]};
|
|
@@ -1424,7 +1424,7 @@
|
|
|
1424
1424
|
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1425
1425
|
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1426
1426
|
}
|
|
1427
|
-
`,Dt=
|
|
1427
|
+
`,Dt=p.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:r,name:a,leftDescription:o,leftDescriptionMinWidth:l,rightDescription:c,...d},g){const u=n===!0?"on":"off",x=typeof o=="object"&&o.on&&o.off?o[u]:o,f=p.useCallback(h=>{h.stopPropagation()},[]);return t.jsxs(b,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:r,children:[t.jsx(b,{minWidth:l,children:x}),t.jsxs(Ji,{onClick:f,role:"switch",children:[t.jsx("input",{...d,"aria-disabled":i,"aria-label":a,checked:n===!0,disabled:i,name:a,ref:g,type:"checkbox"}),t.jsx(re,{"aria-label":"Toggle Switch",id:`${a}Toggle`,children:t.jsx(Zi,{})})]}),c]})}),Qi=({id:e,title:n,toggles:i,minWidth:r="auto",height:a="auto"})=>{const o=s.nt();return t.jsxs(b,{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(Se,{id:e,title:n}),t.jsx(b,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(l=>t.jsx(Dt,{...l},`$card-toggle-${l.name}`))})]})},ea=s.dt.div`
|
|
1428
1428
|
position: relative;
|
|
1429
1429
|
margin: auto;
|
|
1430
1430
|
overflow: hidden;
|
|
@@ -1454,7 +1454,7 @@
|
|
|
1454
1454
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1455
1455
|
justify-content: center;
|
|
1456
1456
|
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
1457
|
-
`,ra=({slides:e,interval:n=300})=>{const{cycle:i,setCycle:r,setProgress:a}=Et(n,e.length),o=
|
|
1457
|
+
`,ra=({slides:e,interval:n=300})=>{const{cycle:i,setCycle:r,setProgress:a}=Et(n,e.length),o=p.useCallback(l=>()=>{r(l),a(0)},[r,a]);return t.jsxs(ea,{"aria-roledescription":"carousel",children:[t.jsx(ta,{$currentIndex:i,children:e.map((l,c)=>{const d=`slide-${c}`;return t.jsx(na,{"aria-label":d,"aria-roledescription":"slide",children:l.content},d)})}),t.jsx(aa,{children:e.map((l,c)=>{const d=`nav-button-${c}`;return t.jsx(ia,{$isActive:c===i,"aria-label":`Go to slide ${c+1}`,"data-testid":c===i?"active":"inactive",onClick:o(c)},d)})})]})},Pt=s.dt.div`
|
|
1458
1458
|
${({theme:e})=>`
|
|
1459
1459
|
background-color: ${e.palette.gray[100]};
|
|
1460
1460
|
border-radius: ${e.spacing[.25]};
|
|
@@ -1524,10 +1524,10 @@
|
|
|
1524
1524
|
background-color: ${e.palette.gray[200]};
|
|
1525
1525
|
}
|
|
1526
1526
|
`}
|
|
1527
|
-
`,Lt=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(
|
|
1527
|
+
`,Lt=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(p.useEffect(()=>{s.prismExports.highlightAll()},[]),t.jsx(Pt,{"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})})})),sa=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i,variant:r="normal"})=>{const a=s.nt(),[o,l]=p.useState(!1),[c,d]=p.useState(!0),g=p.useCallback(()=>{l(h=>!h)},[l]),u=p.useCallback(()=>{if(s._.isNil(n)||s._.isEmpty(n)||!s._.isString(n))return d(!1),e;const h=n.split(`
|
|
1528
1528
|
`);return h.length>8&&!o?`${[...h].splice(0,7).join(`
|
|
1529
1529
|
`)}
|
|
1530
|
-
${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=
|
|
1530
|
+
${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=p.useMemo(u,[u]),f=p.useCallback(async()=>{await navigator.clipboard.writeText(x)},[x]);return r==="location"?t.jsx(Lt,{noCodeMessage:e,snippet:n,specific:i}):t.jsxs(b,{bgColor:a.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(Pt,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:x})})}),t.jsxs(oa,{children:[t.jsx(M,{height:a.spacing[2.5],icon:"copy",iconColor:a.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:f,variant:"ghost",width:a.spacing[2.5]}),c?t.jsxs(R,{onClick:g,variant:"ghost",children:[o?"Show Less":"Show more",t.jsx(z,{icon:o?"chevron-up":"chevron-down",iconColor:a.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:f})]}):!1]})]})},{getVariant:la}=U(e=>({fixed:`
|
|
1531
1531
|
width: 300px;
|
|
1532
1532
|
padding: ${e.spacing[1.25]};
|
|
1533
1533
|
overflow: hidden auto;
|
|
@@ -1656,7 +1656,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
1656
1656
|
margin-right: 0;
|
|
1657
1657
|
`:""}
|
|
1658
1658
|
}
|
|
1659
|
-
`,Bt=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:r=void 0})=>{const{close:a}=n,o=
|
|
1659
|
+
`,Bt=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:r=void 0})=>{const{close:a}=n,o=p.useCallback(()=>{r!=null&&r.onClick&&r.onClick(),a()},[r,a]),l=p.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),a()},[i,a]);return[i,r].some(d=>!s.lodashExports.isEmpty(d))?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(ga,{children:t.jsxs("div",{children:[r&&t.jsx(R,{onClick:o,variant:"tertiary",width:"100%",children:r.text}),i&&t.jsx(R,{onClick:l,variant:"primary",width:"100%",children:i.text})]})})]}):null},xa=s.dt.button`
|
|
1660
1660
|
${({theme:e})=>`
|
|
1661
1661
|
align-items: center;
|
|
1662
1662
|
color: ${e.palette.gray[500]};
|
|
@@ -1728,7 +1728,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
1728
1728
|
}
|
|
1729
1729
|
}
|
|
1730
1730
|
}
|
|
1731
|
-
`,$a=s.dt(
|
|
1731
|
+
`,$a=s.dt(ee)`
|
|
1732
1732
|
${({theme:e,$variant:n})=>`
|
|
1733
1733
|
align-items: center;
|
|
1734
1734
|
background: ${n==="error"?e.palette.primary[400]:e.palette.warning[500]};
|
|
@@ -1748,7 +1748,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
1748
1748
|
font-size: 6px;
|
|
1749
1749
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1750
1750
|
justify-content: center;
|
|
1751
|
-
`,Wt=
|
|
1751
|
+
`,Wt=p.forwardRef(function({numberIndicator:n,show:i,variant:r="error",...a},o){return t.jsx($a,{$variant:r,className:i?"flex":"hidden","data-testid":"notification-sign",ref:o,...a,children:n&&t.jsx(ya,{children:n<=9?n:9})})}),Mt=({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:u}=Re.useLocation(),x=r||(d==="primary"?u.includes(a):u.endsWith(a));return t.jsx(Y,{display:"flex",id:`${i}-tooltip`,tip:c,children:t.jsxs(ba,{$borderButton:x,$variant:d,children:[t.jsxs(Re.NavLink,{end:e,id:i,onClick:l,to:a,children:[n,t.jsx(Wt,{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(X,{tagLabel:`${g}`,variant:"default"})]})})},Xe=({items:e,borders:n=!0,box:i=!1,variant:r="primary"})=>{const a=s.nt();return t.jsx(b,{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:u,onClick:x,tag:f,tooltip:h})=>t.jsx(Mt,{end:o,id:l,isActive:c,label:g,link:d,notificationSign:u,onClick:x,tag:f,tooltip:h,variant:r},l))})},At=({tabItems:e,title:n,description:i,modalRef:r,otherActions:a,onClose:o})=>{const l=s.nt(),c=p.useCallback(()=>{o==null||o(),r.close()},[r,o]);return p.useEffect(()=>{const d=g=>{g.key==="Escape"&&c()};return window.addEventListener("keydown",d),()=>{window.removeEventListener("keydown",d)}},[c]),t.jsxs(t.Fragment,{children:[t.jsxs(da,{children:[t.jsxs(pa,{children:[typeof n=="string"?t.jsx(W,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",children:n}):n,t.jsxs("div",{className:"items-center flex gap-3",children:[a,t.jsx(M,{icon:"close",iconColor:l.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:c,px:.25,py:.25,variant:"ghost"})]})]}),i&&s.lodashExports.isString(i)&&!s.lodashExports.isEmpty(i)?t.jsx(v,{mt:.5,size:"sm",children:i}):i]}),e&&t.jsx(b,{borderTop:`1px solid ${l.palette.gray[300]}`,display:"block",position:"sticky",children:t.jsx(Xe,{items:e})})]})},Ot=({disabled:e,id:n="modal-confirm",onCancel:i,onConfirm:r="submit",txtCancel:a,txtConfirm:o})=>{const l=r==="submit";return t.jsxs(b,{display:"flex",gap:.75,maxWidth:i?"392px":"190px",mt:1.5,children:[i?t.jsx(R,{id:`${n}-cancel`,justify:"center",onClick:i,variant:"tertiary",width:"100%",children:a??"Cancel"}):void 0,t.jsx(R,{disabled:e,id:n,justify:"center",onClick:l?void 0:r,type:l?"submit":"button",variant:"primary",width:"100%",children:o??"Confirm"})]})},J=p.forwardRef(function({color:n=I.palette.gray[100],mt:i=.5,mb:r=.5,width:a,...o},l){return t.jsx(b,{as:"hr",borderBottom:`1px solid ${n}`,mb:r,mt:i,ref:l,width:a??"100%",...o})}),ma=s.dt.li`
|
|
1752
1752
|
${({theme:e})=>`
|
|
1753
1753
|
align-items: center;
|
|
1754
1754
|
background-color: ${e.palette.white};
|
|
@@ -1806,7 +1806,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
1806
1806
|
min-width: 240px;
|
|
1807
1807
|
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
1808
1808
|
`}
|
|
1809
|
-
`,$e=({children:e,disabled:n=!1,icon:i,iconType:r="fa-light",href:a,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:
|
|
1809
|
+
`,$e=({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:u,...x})=>{const h=s.nt().palette.gray[n?300:800],m=n?p.Children.map(e,$=>p.isValidElement($)?p.cloneElement($,{disabled:n,...$.props}):$):e;return t.jsxs(ma,{"aria-disabled":n,"aria-label":u,"aria-selected":g,"data-testid":u,onClick:o,onKeyDown:c,value:u,...x,children:[i!==void 0||u!==void 0?t.jsxs(b,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(z,{disabled:n,icon:i,iconColor:h,iconSize:"xxs",iconType:r}):null,a===void 0?m:t.jsx(q,{href:a,children:m})]}):null,g||d?t.jsx(z,{disabled:n,icon:d??"check",iconClass:"selected",iconColor:h,iconSize:"xs",iconType:r,onClick:l}):null]})},wa=s.dt($e)`
|
|
1810
1810
|
margin-top: 10px;
|
|
1811
1811
|
border: 1px solid ${({theme:e})=>e.palette.gray[300]};
|
|
1812
1812
|
border-radius: 4px;
|
|
@@ -1824,7 +1824,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
1824
1824
|
&[aria-selected="true"]:not([aria-disabled="true"]) {
|
|
1825
1825
|
background-color: unset;
|
|
1826
1826
|
}
|
|
1827
|
-
`,_t=({items:e,onReorder:n,title:i,description:r,onClickClose:a})=>{const o=
|
|
1827
|
+
`,_t=({items:e,onReorder:n,title:i,description:r,onClickClose:a})=>{const o=p.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(b,{display:"flex",gap:.25,children:[t.jsx(W,{display:"flex",size:"xs",children:i}),t.jsx(X,{priority:"high",tagLabel:String(e.filter(l=>l.visible).length),variant:"error"})]}),t.jsx(v,{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(wa,{disabled:l.locked,icon:"grid-2",label:l.name,onClickIcon:o(l.id),rightIcon:l.locked?"lock":"close",selected:l.visible,value:l.name,children:l.name})},l.name):void 0)]})},ja=s.dt($e)`
|
|
1828
1828
|
padding: 7px 8px;
|
|
1829
1829
|
|
|
1830
1830
|
&[aria-selected="true"] {
|
|
@@ -1896,7 +1896,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
1896
1896
|
border-radius: ${e.spacing[.5]};
|
|
1897
1897
|
width: 250px;
|
|
1898
1898
|
`}
|
|
1899
|
-
`,
|
|
1899
|
+
`,Q=p.forwardRef(function({name:n,smallSearch:i=!1,onClear:r,value:a,...o},l){const c=s.nt(),[d,g]=p.useState(!1),{refs:u,floatingStyles:x}=s.useFloating$1(),f=p.useCallback(()=>{g($=>!$)},[]),h=p.useCallback($=>{$.key==="Enter"&&$.preventDefault()},[]);te(u.floating.current,()=>{g(!1)},!0);const m=t.jsxs(Ca,{children:[t.jsx(z,{icon:"magnifying-glass",iconColor:c.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(ka,{...o,id:n,name:n,onKeyDown:h,ref:l,type:"search",value:a}),!s.lodashExports.isEmpty(a)&&t.jsx(M,{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(p.Fragment,{children:[t.jsx(M,{border:`1px solid ${c.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:f,ref:u.setReference,variant:"ghost"}),d?t.jsx(va,{ref:u.setFloating,style:x,children:m}):void 0]}):m}),Gt=({columns:e,formId:n,onChangeHandler:i,variant:r})=>{const a=p.useRef(null),[o,l]=p.useState([]),[c,d]=p.useState(""),g=p.useCallback(x=>{const{value:f}=x.target;d(f)},[]),u=p.useCallback(()=>{a.current&&(a.current.reset(),d(""))},[a]);return p.useEffect(()=>{l(e.filter(x=>{var f;return r==="grouped"?x.name.toLowerCase().includes(c.toLowerCase())||((f=x.group)==null?void 0:f.includes(c.toLowerCase())):x.name.toLowerCase().includes(c.toLowerCase())}))},[e,c,r]),r==="grouped"?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:a,children:t.jsx(Q,{name:"search",onChange:g,onClear:u,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:u,style:{display:"flex",flexDirection:"column",gap:"0.625rem"},children:Object.entries(Vt(o)).map(([x,f],h)=>{const m=`li-checkbox${x}`;return t.jsx(Nt,{checkboxesName:x,defaultCollapsed:h===0,onChange:i,options:f,title:x},m)})})]}):t.jsxs(b,{height:"100%",id:"columns-buttons",py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:a,children:t.jsx(Q,{name:"search",onChange:g,onClear:u,value:c})}),t.jsx("form",{"data-testid":n,id:n,onReset:u,style:{paddingTop:"0.625rem"},children:o.map(x=>{const f=`li-checkbox-${x.name}`;return t.jsx(ja,{selected:x.visible,value:f,width:"content",children:t.jsx(be,{checked:x.visible,disabled:x.locked,label:x.name,name:x.name,onChange:i,value:x.name})},f)})})]})},Sa=({_containerId:e="portals",title:n,modalRef:i,variant:r})=>{const a=s.nt(),o=p.useRef(null),[l,c]=p.useState(void 0),d=p.useCallback(x=>{const{checked:f,value:h}=x.target,m=i.columns.map($=>{var y;return $.name===h?((y=$.toggleVisibility)==null||y.call($,f),{...$,visible:f}):$});i.setColumns(m)},[i]),g=p.useCallback(x=>{const f=i.columns.map(h=>{var m;return h.id===x?((m=h.toggleVisibility)==null||m.call(h,!1),{...h,visible:!1}):h});i.setColumns(f)},[i]),u=p.useCallback(()=>{var f;const x=(f=o.current)==null?void 0:f.scrollHeight;l!==x&&c(x)},[l]);return i.isOpen?V.createPortal(t.jsx(ne,{"aria-label":i.name,"aria-modal":"true",children:t.jsxs(ie,{$size:"md",flexDirection:"column",children:[t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(W,{size:"sm",children:n}),t.jsx(M,{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(J,{mb:0,mt:0}),t.jsxs(b,{display:"flex",gap:1.25,onScroll:u,px:1.25,ref:o,scroll:"y",width:"100%",children:[t.jsx(Gt,{columns:i.columns,formId:"columns-visibility",onChangeHandler:d,variant:r}),t.jsx(b,{borderLeft:`2px solid ${a.palette.gray[100]}`,height:l?`${l}px`:"auto"}),t.jsx(_t,{description:"Click and drag to reorder the columns",items:i.columns,onClickClose:g,onReorder:i.setColumns,title:"Reorder columns"})]}),t.jsx(J,{mb:0,mt:0}),t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(R,{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(R,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save"})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{})},za=s.dt($e)`
|
|
1900
1900
|
padding: 8px;
|
|
1901
1901
|
min-width: unset;
|
|
1902
1902
|
`,We=s.dt($e)`
|
|
@@ -1908,7 +1908,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
1908
1908
|
`,Ut=s.dt(M)`
|
|
1909
1909
|
background-color: ${({theme:e})=>e.palette.white};
|
|
1910
1910
|
color: ${({theme:e})=>e.palette.gray[400]};
|
|
1911
|
-
`,Yt=({option:e,register:n})=>{var i,r;switch(e.type){case"checkboxes":return t.jsx("div",{style:{overflowY:"auto",maxHeight:"280px"},children:(i=e.options)==null?void 0:i.map(a=>t.jsx(We,{value:a.value,width:"content",children:t.jsx(be,{...n("checkbox"),label:a.label,value:a.value})},`li-checkbox-${a.value}`))});case"radioButton":return t.jsx("div",{style:{overflowY:"auto",maxHeight:"280px"},children:(r=e.options)==null?void 0:r.map(a=>t.jsx(We,{value:a.value,width:"content",children:t.jsx(qe,{...n("radio"),label:a.label,value:a.value})},`li-radio-${a.value}`))});case"text":return t.jsx(Ke,{label:e.label,name:e.type,register:n,value:e.value});default:return t.jsx("div",{})}},Me=({options:e,onSubmit:n,id:i,open:r})=>{const[a,o]=
|
|
1911
|
+
`,Yt=({option:e,register:n})=>{var i,r;switch(e.type){case"checkboxes":return t.jsx("div",{style:{overflowY:"auto",maxHeight:"280px"},children:(i=e.options)==null?void 0:i.map(a=>t.jsx(We,{value:a.value,width:"content",children:t.jsx(be,{...n("checkbox"),label:a.label,value:a.value})},`li-checkbox-${a.value}`))});case"radioButton":return t.jsx("div",{style:{overflowY:"auto",maxHeight:"280px"},children:(r=e.options)==null?void 0:r.map(a=>t.jsx(We,{value:a.value,width:"content",children:t.jsx(qe,{...n("radio"),label:a.label,value:a.value})},`li-radio-${a.value}`))});case"text":return t.jsx(Ke,{label:e.label,name:e.type,register:n,value:e.value});default:return t.jsx("div",{})}},Me=({options:e,onSubmit:n,id:i,open:r})=>{var h,m,$;const[a,o]=p.useState(e),{register:l,handleSubmit:c,setValue:d}=s.useForm({defaultValues:{checkbox:e.filter(y=>y.type==="checkboxes").flatMap(y=>{var w;return((w=y.options)==null?void 0:w.filter(k=>k.checked).map(k=>k.value))??[]}),radio:(($=(m=(h=e.find(y=>y.type==="radioButton"))==null?void 0:h.options)==null?void 0:m.find(({checked:y})=>y))==null?void 0:$.value)??"",text:""}}),g=e.some(y=>y.type==="checkboxes"),u=p.useCallback(y=>{const{value:w}=y.target,k=e.map(S=>{var C;return S.type==="checkboxes"?{...S,options:(C=S.options)==null?void 0:C.filter(j=>{var T;return((T=j.label)==null?void 0:T.toLowerCase().includes(w.toLowerCase()))??j.value.toLowerCase().includes(w.toLowerCase())})}:S});o(k)},[e]),x=p.useCallback(y=>{n&&n(y)},[n]);p.useEffect(()=>{var y,w,k,S;o(e),d("checkbox",e.filter(C=>C.type==="checkboxes").flatMap(C=>{var j;return((j=C.options)==null?void 0:j.filter(T=>T.checked).map(T=>T.value))??[]})),d("radio",((k=(w=(y=e.find(C=>C.type==="radioButton"))==null?void 0:y.options)==null?void 0:w.find(({checked:C})=>C))==null?void 0:k.value)??""),d("text",(S=e.find(C=>C.type==="text"))==null?void 0:S.value)},[e,d]);const f=t.jsx(ne,{$bgColor:"transparent",children:t.jsxs(ie,{$size:"fixed",flexDirection:"column",gap:1.25,children:[g&&t.jsx(Q,{onChange:u}),t.jsxs("form",{id:i,onSubmit:c(x),children:[a.map(y=>{const w=`${y.type}-${y.value}`;return t.jsx(Yt,{option:y,register:l},w)}),t.jsx(R,{mt:1,type:"submit",children:"Apply"})]})]})});return r?V.createPortal(f,document.getElementById("portals")??document.body):t.jsx("div",{})},ve=({options:e,variant:n,onApplyFilters:i})=>{const r=s.nt(),[a,o]=p.useState(e),[l,c]=p.useState([]),[d,g]=p.useState({}),[u,x]=p.useState(""),f=p.useCallback($=>()=>{const y=a.find(w=>w.label===$);x($),c((y==null?void 0:y.filterOptions)??[])},[a]),h=p.useCallback($=>{const y=[...$.checkbox,...$.text?[$.text]:[],...$.radio?[$.radio]:[]];g(j=>y.length>0?{...j,[u]:y}:j);const w=j=>{var T;return{...j,options:(T=j.options)==null?void 0:T.map(P=>({...P,checked:$.checkbox.includes(P.value)||$.radio===P.value})),value:j.label===u?$.text:j.value}},k=j=>j.label===u?{...j,filterOptions:j.filterOptions.map(w)}:j,S=a.map(k);o(j=>j.map(k));const C=S.flatMap(({filterOptions:j})=>j);i(C),c([])},[a,i,u]),m=p.useCallback(($,y)=>{const w=`li-filter-option-${$}`;return t.jsxs(za,{icon:y,onClick:f($),value:w,width:"100%",children:[$,d[$]===void 0?void 0:t.jsx(X,{tagLabel:d[$].length.toString()})]},w)},[d,f]);return p.useEffect(()=>{const $=e.reduce((y,{label:w,filterOptions:k})=>{const S=k.map(({value:T})=>T).filter(Boolean),C=k.flatMap(({options:T})=>T??[]).filter(({checked:T=!1})=>T).map(({value:T})=>T),j=[...S,...C];return j.length===0?y:{...y,[w]:j}},{});g($)},[e]),n==="grouped"?t.jsxs(b,{flexGrow:1,position:"relative",zIndex:80,children:[Object.entries(Vt(e)).map(([$,y])=>t.jsxs(b,{width:"100%",children:[t.jsx(v,{color:r.palette.gray[400],mb:.25,size:"sm",children:$}),y.map(({label:w,icon:k="filter-list"})=>m(w,k))]},$)),t.jsx(Me,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]}):t.jsxs(b,{flexGrow:1,children:[e.map(({label:$,icon:y="filter-list"})=>m($,y)),t.jsx(Me,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]})},Kt=({_containerId:e="portals",options:n,onApplyFilters:i,modalRef:r})=>r.isOpen?V.createPortal(t.jsx(ne,{$bgColor:"transparent","aria-label":r.name,"aria-modal":"true",children:t.jsxs(ie,{$size:"fixed",alignItems:"start",display:"flex",flexDirection:"row",gap:.5,position:"relative",children:[t.jsx(ve,{onApplyFilters:i,options:n,variant:"ungrouped"}),t.jsx(Ut,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:r.close,variant:"ghost"})]})}),document.getElementById(e)??document.body):t.jsx("div",{}),Ia=({_containerId:e="portals",rightColumnOptions:n,leftColumnOptions:i,variant:r,onApplyFilters:a,modalRef:o})=>o.isOpen?V.createPortal(t.jsx(ne,{$bgColor:"transparent","aria-label":o.name,"aria-modal":"true",children:t.jsxs(ie,{$size:"lg",alignItems:"start",flexDirection:"row",gap:1,position:"relative",px:1.25,py:1.25,children:[t.jsxs(b,{display:"flex",flexGrow:1,gap:1,justify:"space-between",children:[t.jsx(ve,{onApplyFilters:a,options:i,variant:r}),t.jsx(ve,{onApplyFilters:a,options:n,variant:r})]}),t.jsx(Ut,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,variant:"ghost"})]})}),document.getElementById(e)??document.body):t.jsx("div",{}),Ta=(e,n)=>{function i(o,l){return l.value===""||l.value===void 0||s._.defaultTo(l.isBackFilter,!1)?!0:String(o[l.key]).toLowerCase().includes(l.value.toLowerCase())}function r(o,l){if(!l.options||l.options.length===0)return!0;const c=l.options.filter(d=>d.checked).map(d=>d.value);return c.length===0?!0:c.includes(String(o[l.key]))}function a(o){return n.every(l=>{if(typeof l.key=="function")return l.key(o,l.value);switch(l.type){case"radioButton":case"checkboxes":return r(o,l);case"text":default:return i(o,l)}})}return e.filter(a)},Na=({dataset:e,key:n,options:i,setFilteredDataset:r})=>{const a=Ne("filters-modal"),[o,l]=p.useState([]);p.useEffect(()=>{const g=localStorage.getItem(n);g&&l(JSON.parse(g))},[n]);const c=i.map(g=>({...g,filterOptions:g.filterOptions.map(u=>o.find(f=>f.key===u.key&&f.type===u.type)??{...u})})),d=p.useCallback(g=>{l([...g]),localStorage.setItem(n,JSON.stringify(g))},[l,n]);return p.useEffect(()=>{r(Ta(e,o))},[e,o,r]),t.jsxs(p.Fragment,{children:[t.jsx(b,{alignItems:"center",display:"flex",gap:.25,maxWidth:"100%",wrap:"wrap",children:t.jsx(b,{pr:.25,children:t.jsx(R,{icon:"filter",id:"filterBtn",onClick:a.toggle,variant:"ghost"})})}),t.jsx(Kt,{modalRef:a,onApplyFilters:d,options:c})]})},qt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:r=void 0,confirmButton:a=void 0,content:o=void 0,description:l="",modalRef:c,otherActions:d=void 0,onClose:g=void 0,tabItems:u,title:x="",size:f,id:h="modal-container"})=>{const m=()=>t.jsx(ne,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(ie,{$size:f,"data-testid":h,flexDirection:"column",id:h,children:[!s._.isEmpty(x)&&t.jsx(At,{description:l,modalRef:c,onClose:g,otherActions:d,tabItems:u,title:x}),(s._.isObject(o)||r)&&t.jsxs(ca,{children:[r,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(ua,{$framed:o.imageFramed,children:t.jsx(G,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(v,{size:"sm",children:o.imageText})]}),t.jsx(Bt,{alert:n,cancelButton:i,confirmButton:a,modalRef:c})]})});return e&&c.isOpen?V.createPortal(m(),document.getElementById("portals")??document.body):c.isOpen?m():null},Ea=()=>{const[e,n]=p.useState(!1),[i,r]=p.useState(),a=p.useRef(null),o=Ne("confirm-dialog-modal"),l=p.useCallback(async u=>(r(u),n(!0),new Promise(x=>{a.current=x})),[]),c=p.useCallback(()=>{var u;n(!1),r(void 0),(u=a.current)==null||u.call(a,!0)},[]),d=p.useCallback(()=>{var u;n(!1),r(void 0),(u=a.current)==null||u.call(a,!1)},[]);return p.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:u="confirm-dialog-modal",children:x})=>t.jsx(qt,{id:u,modalRef:{...o,close:d},size:"sm",title:i==null?void 0:i.title,children:t.jsxs(b,{display:"flex",flexDirection:"column",children:[x,i==null?void 0:i.message,t.jsx(Ot,{id:i==null?void 0:i.id,onCancel:d,onConfirm:c})]})}),confirm:l}},Fa=s.dt.button`
|
|
1912
1912
|
display: flex;
|
|
1913
1913
|
position: relative;
|
|
1914
1914
|
height: 32px;
|
|
@@ -1972,7 +1972,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
1972
1972
|
}
|
|
1973
1973
|
}
|
|
1974
1974
|
`}
|
|
1975
|
-
`,Ae=({containerRef:e,id:n})=>{const i=s.nt(),r=n==="desktop"?380:342,a=
|
|
1975
|
+
`,Ae=({containerRef:e,id:n})=>{const i=s.nt(),r=n==="desktop"?380:342,a=p.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?r:-r,behavior:"smooth"})}},[e,r]),o=p.useCallback(l=>t.jsxs(Fa,{onClick:a(l),children:[t.jsx(z,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"hovered",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),t.jsx(z,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"uncover",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-light"})]}),[a,i]);return t.jsxs(b,{alignItems:"center",display:"flex",gap:1,id:n,width:"max-content",children:[o("left"),o("right")]})},Oe=({tag:e,tagPosition:n})=>{const i=s.nt();return e?t.jsx(b,{alignItems:"center",bgColor:i.palette.white,borderRadius:"8px",display:"flex",justify:"center",margin:n==="top"?[.75,.75,.75,.75]:void 0,padding:[.25,.5,.25,.5],position:n==="top"?"absolute":"relative",top:"0",width:"max-content",children:t.jsx(v,{color:i.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},Xt=({eventDate:e})=>{const n=s.nt(),i=s.lodashExports.isEmpty(e)?null:e==null?void 0:e.split("-");if(i){const[r,a]=i;return t.jsxs(b,{alignItems:"center",bgColor:n.palette.white,borderRadius:"8px",display:"flex",flexDirection:"column",margin:[.75,.75,.75,.75],padding:[.75,1.5,.75,1.5],position:"absolute",right:"0",shadow:"md",top:"0",children:[t.jsx(W,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:r}),t.jsx(v,{color:n.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:a.toUpperCase()})]})}return null},Da=s.dt.div`
|
|
1976
1976
|
${({theme:e})=>`
|
|
1977
1977
|
align-items: flex-start;
|
|
1978
1978
|
display: flex;
|
|
@@ -2017,7 +2017,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2017
2017
|
}
|
|
2018
2018
|
}
|
|
2019
2019
|
`}
|
|
2020
|
-
`,Zt=({author:e,buttonText:n,description:i,eventDate:r,href:a,imageId:o,mode:l="light",publishDate:c,readingTime:d,tag:
|
|
2020
|
+
`,Zt=({author:e,buttonText:n,description:i,eventDate:r,href:a,imageId:o,mode:l="light",publishDate:c,readingTime:d,tag:g,tagPosition:u="top",title:x})=>{const f=s.nt(),h=c==null?void 0:c.split("-"),m=l==="dark",$=t.jsxs(Da,{"data-testid":`content-card-${x}`,children:[o||r||g&&u==="top"?t.jsxs(b,{id:"card-image",position:"relative",children:[o&&t.jsx(G,{publicId:o}),u==="top"&&t.jsx(Oe,{tag:g,tagPosition:u}),t.jsx(Xt,{eventDate:r})]}):void 0,t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:[u==="bottom"&&t.jsx(Oe,{tag:g,tagPosition:u}),e||h||d?t.jsxs(b,{display:"flex",justify:"space-between",width:"100%",children:[e&&h&&t.jsx(v,{color:f.palette.gray[m?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${h[0]} ${h[1]}, ${h[2]}`}),d&&t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[t.jsx(z,{icon:"eye",iconColor:f.palette.gray[m?300:400],iconSize:"xs",iconType:"fa-light"}),t.jsx(v,{color:f.palette.gray[m?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:d})]})]}):void 0,t.jsx(W,{className:`title-${l}`,color:m?f.palette.white:f.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:x}),i&&t.jsx(v,{color:f.palette.gray[m?100:600],size:"md",sizeSm:"sm",children:i}),n&&a&&t.jsx(R,{href:a,variant:"link",children:n})]})]});return a?t.jsx("a",{className:"flex w-fit",href:a,rel:"noopener noreferrer",target:"_self",children:$}):$},Pa=({description:e,items:n,title:i,titleHighlighted:r})=>{const a=p.useRef(null);return t.jsxs(Ra,{"data-testid":"content-card-carousel",children:[t.jsxs(b,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[t.jsxs(W,{display:"inline",fontWeight:"semibold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:[i+" "," ",t.jsx("span",{className:"inline",children:r})]}),t.jsx(v,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:e})]}),t.jsx(Ae,{containerRef:a,id:"desktop"})]}),t.jsx(b,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:a,scroll:"x",children:t.jsx(b,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:n.map((o,l)=>t.jsx(Zt,{...o},`${l}-${o.title}`))})}),t.jsx(Ae,{containerRef:a,id:"mobile"})]})},He=({buttonProps:e,variant:n})=>t.jsx(R,{onClick:e.onClick,variant:n,children:e.text}),La=s.dt.div`
|
|
2021
2021
|
display: flex;
|
|
2022
2022
|
flex-direction: column;
|
|
2023
2023
|
align-items: center;
|
|
@@ -2051,7 +2051,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2051
2051
|
> *:last-child {
|
|
2052
2052
|
margin-right: 0;
|
|
2053
2053
|
}
|
|
2054
|
-
`,lt={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}},Ma=({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(La,{$padding:a,children:[t.jsx(Ba,{children:t.jsx(G,{alt:"empty-icon",publicId:r})}),t.jsx(W,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:lt[l].title,textAlign:"center",children:o}),t.jsx(
|
|
2054
|
+
`,lt={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}},Ma=({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(La,{$padding:a,children:[t.jsx(Ba,{children:t.jsx(G,{alt:"empty-icon",publicId:r})}),t.jsx(W,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:lt[l].title,textAlign:"center",children:o}),t.jsx(v,{mb:c?2:void 0,size:lt[l].description,textAlign:"center",children:i}),c?t.jsxs(Wa,{children:[e&&t.jsx(He,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(He,{buttonProps:n,variant:"primary"})]}):void 0]})},Aa=s.dt.form`
|
|
2055
2055
|
${({theme:e})=>`
|
|
2056
2056
|
align-items: flex-start;
|
|
2057
2057
|
align-self: stretch;
|
|
@@ -2061,7 +2061,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2061
2061
|
overflow: hidden auto;
|
|
2062
2062
|
width: 100%;
|
|
2063
2063
|
`}
|
|
2064
|
-
`,Oa=({alert:e,cancelLabel:n,children:i,id:r="modal-confirm",mode:a,onCancel:o,onSubmit:l,showButtons:c=!0,submitLabel:d,submitDisabled:
|
|
2064
|
+
`,Oa=({alert:e,cancelLabel:n,children:i,id:r="modal-confirm",mode:a,onCancel:o,onSubmit:l,showButtons:c=!0,submitLabel:d,submitDisabled:g=!1,yupSchema:u,...x})=>{const f=s.nt(),h=s.useForm({...x,mode:a??"all",resolver:u?s.o(u):void 0}),{control:m,getValues:$,setValue:y,register:w,watch:k,formState:{errors:S,isValid:C,dirtyFields:j}}=h,T=P=>p.Children.map(P,L=>{var B;if(L&&p.isValidElement(L)){const F=L.props.children,E=L.props.name?p.createElement(L.type,{...L.props,control:m,error:(B=S[L.props.name])==null?void 0:B.message,isValid:C,isTouched:j[L.props.name],register:w,setValue:y,value:$(L.props.name),watch:k,key:L.props.name}):L;return F?p.createElement(E.type,{...E.props,children:T(F)}):E}return L});return t.jsx(s.FormProvider,{...h,children:t.jsx(Aa,{onSubmit:h.handleSubmit(l),children:t.jsxs(b,{scroll:"y",width:"100%",children:[t.jsx(b,{borderRadius:`0 0 ${f.spacing[.25]} ${f.spacing[.25]}`,display:"flex",flexDirection:"column",gap:.5,height:e?"calc(100% - 139px)":"calc(100% - 83px)",px:1.5,py:1.5,scroll:"y",children:T(i)}),c&&t.jsxs(b,{borderRadius:`0 0 ${f.spacing[.25]} ${f.spacing[.25]}`,borderTop:`1px solid ${f.palette.gray[200]}`,display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsxs(b,{display:"flex",gap:.75,maxWidth:"392px",children:[o?t.jsx(R,{id:`${r}-cancel`,justify:"center",onClick:o,type:"reset",variant:"tertiary",width:"100%",children:n??"Cancel"}):void 0,t.jsx(R,{disabled:g,id:r,justify:"center",type:"submit",width:"100%",children:d??"Confirm"})]})]})]})})})},Ha=s.dt(ee)`
|
|
2065
2065
|
display: grid;
|
|
2066
2066
|
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
2067
2067
|
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
@@ -2079,7 +2079,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2079
2079
|
grid-template-columns: repeat(${n}, 1fr);
|
|
2080
2080
|
}
|
|
2081
2081
|
`}
|
|
2082
|
-
`,_a=
|
|
2082
|
+
`,_a=p.forwardRef(function({children:n,md:i,sm:r,lg:a,xl:o,gap:l,...c},d){return t.jsx(Ha,{$gap:l,$lg:a,$md:i,$sm:r,$xl:o,ref:d,...c,children:n})}),Va=s.dt.div`
|
|
2083
2083
|
${({theme:e,$itemsLength:n})=>`
|
|
2084
2084
|
display: flex;
|
|
2085
2085
|
background-color: ${e.palette.white};
|
|
@@ -2115,7 +2115,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2115
2115
|
background-color: ${e.palette.gray[100]};
|
|
2116
2116
|
}
|
|
2117
2117
|
`}
|
|
2118
|
-
`,Jt=({isSelected:e=!1,label:n,onSelect:i})=>{const r=s.nt(),a=
|
|
2118
|
+
`,Jt=({isSelected:e=!1,label:n,onSelect:i})=>{const r=s.nt(),a=p.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(Ze,{$isSelected:e,onClick:a,children:[e?t.jsx(z,{icon:"check",iconColor:r.palette.gray[800],iconSize:"md"}):null,t.jsx(v,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},Ga=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:r,onClose:a,selectedItem:o,title:l,variant:c})=>{const d=s.nt(),[g,u]=p.useState(n),[x,f]=p.useState(""),h=p.useCallback(y=>{u(w=>w.filter(k=>String(k.name).toLowerCase().includes(y.toLocaleLowerCase())))},[u]),m=p.useCallback(y=>{y.currentTarget&&(f(y.currentTarget.value),h(y.currentTarget.value))},[f,h]);p.useEffect(()=>{u(n),h(x)},[n,h,x]);const $=()=>t.jsx(b,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(b,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(Va,{$itemsLength:g.length,children:[t.jsxs(b,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(v,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(M,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:a,variant:"ghost"})]}),t.jsx(b,{mt:1,children:t.jsx(Q,{onInput:m,placeholder:"Search"})}),t.jsx(J,{mb:1,mt:1}),t.jsxs(b,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(Ze,{onClick:i,children:t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsx(z,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(v,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,g.map(y=>t.jsx(Jt,{isSelected:o.toLowerCase()===y.name,label:y.name.charAt(0).toUpperCase()+y.name.slice(1),onSelect:r},y.name))]})]})})});return e?V.createPortal($(),document.body):t.jsx("div",{})},Ua=({description:e,height:n="auto",leftIconName:i,children:r,rightIconName:a,title:o,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:g="centered",width:u="318px"})=>{const x=s.nt(),f=g==="centered",h=l&&t.jsx(Y,{icon:a??i,iconColor:x.palette.gray[800],id:l,place:d,tip:c});return t.jsxs(b,{alignItems:f?"center":"flex-start",bgColor:x.palette.gray[50],border:`1px solid ${x.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:f?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:u,children:[t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[f||s.lodashExports.isUndefined(i)?void 0:h,t.jsx(v,{color:f?x.palette.gray[800]:x.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||s.lodashExports.isUndefined(a)?void 0:h]}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!s.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[s.lodashExports.isUndefined(o)?void 0:t.jsx(W,{fontWeight:"bold",size:"md",children:o}),r]}),f&&!s.lodashExports.isUndefined(a)?h:void 0]})]})},Ya=({actions:e,children:n,header:i,title:r,tabs:a,footer:o})=>{const l=s.nt();return t.jsxs(b,{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(b,{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(b,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(v,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:r}),i]}),e&&t.jsx(b,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},g)=>t.jsx(M,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${g}-${c}`))})]}),t.jsx(b,{display:"flex",pt:.25,width:"100%",children:t.jsx(Xe,{items:a})}),t.jsx(b,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),o&&t.jsx(b,{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},u)=>t.jsx(R,{icon:c,onClick:g,variant:u===0?"primary":"tertiary",width:"100%",children:d},`${u}-${d}`))})]})},Ka=s.dt.div`
|
|
2119
2119
|
${({theme:e})=>`
|
|
2120
2120
|
align-items: flex-start;
|
|
2121
2121
|
backdrop-filter: blur(3.15px);
|
|
@@ -2181,7 +2181,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2181
2181
|
height: 260px;
|
|
2182
2182
|
width: 260px;
|
|
2183
2183
|
}
|
|
2184
|
-
`,Qt=({icon:e})=>t.jsx(qa,{children:t.jsx(
|
|
2184
|
+
`,Qt=({icon:e})=>t.jsx(qa,{children:t.jsx(z,{icon:e,iconColor:I.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),Xa=({category:e,description:n,href:i,icon:r,location:a,title:o})=>{const l=s.nt();return t.jsxs(Ka,{children:[t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:1.5,height:"100%",id:"uncover",justify:"space-between",children:[t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(v,{color:l.palette.white,size:"sm",sizeSm:"xs",children:e}),t.jsx(W,{color:l.palette.white,fontWeight:"bold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:o})]}),t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(v,{color:l.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),t.jsx(v,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:a})]})]}),t.jsxs(b,{alignItems:"self-start",display:"flex",flexDirection:"column",gap:2,height:"100%",id:"hovered",justify:"space-between",pt:1,children:[t.jsx(W,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.75,lineSpacingSm:1.5,size:"md",sizeSm:"sm",children:o}),t.jsxs("div",{className:"flex flex-col gap-8",children:[t.jsx(v,{color:l.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:n}),t.jsx(R,{external:!0,href:i,variant:"link",width:"max-content",children:"Download now"})]})]}),t.jsx(Qt,{icon:r})]})},Za=s.dt.button`
|
|
2185
2185
|
${({theme:e})=>`
|
|
2186
2186
|
align-items: center;
|
|
2187
2187
|
border-left: 3px solid transparent;
|
|
@@ -2291,7 +2291,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2291
2291
|
}
|
|
2292
2292
|
}
|
|
2293
2293
|
`}
|
|
2294
|
-
`,en=({disabled:e=!1,mode:n,onClick:i,text:r})=>t.jsx(Za,{className:`${e&&"disabled"} ${n}`,disabled:e,onClick:i,children:t.jsx(
|
|
2294
|
+
`,en=({disabled:e=!1,mode:n,onClick:i,text:r})=>t.jsx(Za,{className:`${e&&"disabled"} ${n}`,disabled:e,onClick:i,children:t.jsx(v,{color:"inherit",size:"sm",sizeSm:"xs",children:r})}),tr=[{text:"EN"},{text:"ES"}],nr=({items:e,handleClick:n,mode:i="light"})=>{const r=e??tr,[a,o]=p.useState(r[0].text),l=p.useCallback(c=>()=>{n(c.text),o(c.text)},[n]);return t.jsxs(er,{children:[t.jsxs(Ja,{className:i,children:[t.jsx(z,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),a]}),t.jsx(Qa,{children:r.map((c,d)=>t.jsx(en,{disabled:c.disabled,mode:i,onClick:l(c),text:c.text},`${c.text}_${d}`))})]})},ir=s.dt.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,ar=s.dt.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
2295
2295
|
gap: 12px;
|
|
2296
2296
|
`,rr=s.dt.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
|
|
2297
2297
|
gap: 8px;
|
|
@@ -2408,7 +2408,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2408
2408
|
stroke-width: 10px;
|
|
2409
2409
|
transform-origin: 50% 50%;
|
|
2410
2410
|
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2411
|
-
`,wr=({color:e="red",label:n,size:i})=>{const r=s.nt();return t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsxs($r,{$size:i,viewBox:"0 0 100 100",children:[t.jsx(mr,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(yr,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(
|
|
2411
|
+
`,wr=({color:e="red",label:n,size:i})=>{const r=s.nt();return t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsxs($r,{$size:i,viewBox:"0 0 100 100",children:[t.jsx(mr,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(yr,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(v,{color:e==="red"?r.palette.gray[700]:r.palette.white,ml:.5,size:"sm",children:n})]})},jr=s.dt.div`
|
|
2412
2412
|
display: flex;
|
|
2413
2413
|
height: 80px;
|
|
2414
2414
|
max-width: 1440px;
|
|
@@ -2453,7 +2453,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2453
2453
|
transform: translateX(calc(-180px * 15));
|
|
2454
2454
|
}
|
|
2455
2455
|
}
|
|
2456
|
-
`,Cr=["airs/clients-carousel/color/bancolombia","airs/clients-carousel/color/itau_colombia","airs/clients-carousel/color/lulo_bank","airs/clients-carousel/color/oxxo_international","airs/clients-carousel/color/interbank","airs/clients-carousel/color/global_bank","airs/clients-carousel/color/gesa","airs/clients-carousel/color/copa_airlines","airs/clients-carousel/color/consubanco","airs/clients-carousel/color/bantrab","airs/clients-carousel/color/banistmo","airs/clients-carousel/color/banco_internacional","airs/clients-carousel/color/banco_general","airs/clients-carousel/color/banbif","airs/clients-carousel/color/avianca"],vr=({fusion:e=!1,logos:n=Cr})=>t.jsxs(jr,{children:[e&&t.jsx(ct,{className:"left"}),t.jsx(kr,{children:[...n,...n].map((i,r)=>t.jsx(G,{alt:`${i}-${r}`,height:"80px",plugins:[s.placeholder()],publicId:i,width:"140px"},`${i}-${r}`))}),e&&t.jsx(ct,{className:"right"})]}),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(b,{...Sr[n],children:t.jsx(G,{alt:"logo",publicId:e})}),Ir=({children:e,commitSha:n,commitShortSha:i,parentElement:r,userInfo:a,setVisibility:o})=>{const l=s.nt(),{userName:c,email:d,phone:
|
|
2456
|
+
`,Cr=["airs/clients-carousel/color/bancolombia","airs/clients-carousel/color/itau_colombia","airs/clients-carousel/color/lulo_bank","airs/clients-carousel/color/oxxo_international","airs/clients-carousel/color/interbank","airs/clients-carousel/color/global_bank","airs/clients-carousel/color/gesa","airs/clients-carousel/color/copa_airlines","airs/clients-carousel/color/consubanco","airs/clients-carousel/color/bantrab","airs/clients-carousel/color/banistmo","airs/clients-carousel/color/banco_internacional","airs/clients-carousel/color/banco_general","airs/clients-carousel/color/banbif","airs/clients-carousel/color/avianca"],vr=({fusion:e=!1,logos:n=Cr})=>t.jsxs(jr,{children:[e&&t.jsx(ct,{className:"left"}),t.jsx(kr,{children:[...n,...n].map((i,r)=>t.jsx(G,{alt:`${i}-${r}`,height:"80px",plugins:[s.placeholder()],publicId:i,width:"140px"},`${i}-${r}`))}),e&&t.jsx(ct,{className:"right"})]}),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(b,{...Sr[n],children:t.jsx(G,{alt:"logo",publicId:e})}),Ir=({children:e,commitSha:n,commitShortSha:i,parentElement:r,userInfo:a,setVisibility:o})=>{const l=s.nt(),{userName:c,email:d,phone:g,userRole:u}=a;return te(r,()=>{o(!1)}),t.jsxs(Ht,{children:[t.jsx("li",{className:"user-info",children:t.jsxs(b,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(v,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(v,{color:l.palette.gray[400],size:"sm",children:d}),s.lodashExports.isUndefined(g)?void 0:t.jsx(v,{color:l.palette.gray[400],size:"sm",children:g})]}),t.jsx(b,{children:t.jsx(X,{tagLabel:u,variant:"role"})})]})}),t.jsx(J,{}),e,t.jsx(J,{}),t.jsx("li",{className:"commit-info",children:t.jsx(q,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${n}`,iconPosition:"hidden",children:t.jsx(v,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},Tr=s.dt.button`
|
|
2457
2457
|
align-items: center;
|
|
2458
2458
|
background-color: transparent;
|
|
2459
2459
|
border: unset;
|
|
@@ -2464,13 +2464,13 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2464
2464
|
padding: 0;
|
|
2465
2465
|
|
|
2466
2466
|
&:hover p {
|
|
2467
|
-
color: ${
|
|
2467
|
+
color: ${I.palette.primary[200]};
|
|
2468
2468
|
}
|
|
2469
2469
|
|
|
2470
2470
|
&:hover span {
|
|
2471
|
-
color: ${
|
|
2471
|
+
color: ${I.palette.primary[200]};
|
|
2472
2472
|
}
|
|
2473
|
-
`,Nr=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:r="regular",icon:a,onClose:o,buttonSide:l="end"})=>{const c=s.nt(),[d,
|
|
2473
|
+
`,Nr=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:r="regular",icon:a,onClose:o,buttonSide:l="end"})=>{const c=s.nt(),[d,g]=p.useState(!0),u=p.useCallback(()=>{g(!1),o==null||o()},[o]),x=t.jsxs(Tr,{onClick:n,children:[t.jsx(v,{color:c.palette.white,fontWeight:r,size:"sm",textDecoration:"underline",children:i}),t.jsx(z,{icon:a??"arrow-right",iconColor:c.palette.white,iconSize:"xs",iconType:r==="bold"?"fa-regular":"fa-light"})]});return t.jsxs(b,{alignItems:"center",bgGradient:c.palette.gradients["01"],display:d?"flex":"none",id:"message-banner",justify:"space-between",padding:[.75,.75,.75,.75],children:[t.jsxs(b,{display:"flex",gap:.5,justify:"center",width:"100%",children:[l==="start"&&n?x:void 0,t.jsx(b,{children:typeof e=="string"?t.jsx(v,{color:c.palette.white,display:"inline",size:"sm",children:e}):e}),l==="end"&&n?x:void 0]}),t.jsx(z,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"xs",iconType:"fa-light",onClick:u})]})},Er=({options:e,onSubmit:n,id:i,open:r})=>{const[a,o]=p.useState([]),{register:l,handleSubmit:c,setValue:d}=s.useForm({defaultValues:{checkbox:e.filter(f=>f.checked).map(f=>f.value)}}),g=p.useCallback(f=>{const{value:h}=f.target;o(e.filter(m=>{var $;return(($=m.label)==null?void 0:$.toLowerCase().includes(h.toLowerCase()))??m.value.toLowerCase().includes(h.toLowerCase())}))},[e]),u=p.useCallback(f=>{n&&n(f.checkbox)},[n]);p.useEffect(()=>{o(e),d("checkbox",e.filter(f=>f.checked).map(f=>f.value))},[e,d]);const x=t.jsx(ne,{$bgColor:"transparent",children:t.jsxs(ie,{$size:"fixed",flexDirection:"column",gap:1.25,children:[t.jsx(Q,{onChange:g}),t.jsxs("form",{id:i,onSubmit:c(u),style:{overflowY:"auto"},children:[a.map(f=>{const h=`li-checkbox${f.value}`;return t.jsx(We,{value:h,width:"content",children:t.jsx(be,{...l("checkbox"),label:f.label,value:f.value})},h)}),t.jsx(R,{mt:1,type:"submit",children:"Apply"})]})]})});return r?V.createPortal(x,document.getElementById("portals")??document.body):t.jsx("div",{})},Fr=s.dt.div`
|
|
2474
2474
|
${({theme:e,$variant:n})=>`
|
|
2475
2475
|
background: ${e.palette.white};
|
|
2476
2476
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2520,7 +2520,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2520
2520
|
color: ${e.palette[n][500]};
|
|
2521
2521
|
}
|
|
2522
2522
|
`}
|
|
2523
|
-
`,Dr=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Pr=({description:e,onClose:n,title:i,variant:r})=>{const a=s.nt(),o=
|
|
2523
|
+
`,Dr=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Pr=({description:e,onClose:n,title:i,variant:r})=>{const a=s.nt(),o=p.useCallback(()=>{n==null||n()},[n]);return t.jsxs(Fr,{$variant:r,className:`notification notification__${r}`,role:"alertdialog",children:[t.jsxs(Rr,{$variant:r,children:[t.jsx(z,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(z,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(z,{icon:Dr(r),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(b,{pr:1.5,children:[t.jsx(W,{fontWeight:"bold",size:"xs",children:i}),t.jsx(v,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(M,{height:"fit-content",icon:"close",iconColor:a.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:o,px:.125,py:.125,variant:"ghost"})]})},Lr=s.dt.div`
|
|
2524
2524
|
width: fit-content;
|
|
2525
2525
|
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2526
2526
|
border-radius: 4px;
|
|
@@ -2553,7 +2553,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2553
2553
|
&::-webkit-inner-spin-button {
|
|
2554
2554
|
opacity: 1;
|
|
2555
2555
|
}
|
|
2556
|
-
`,Wr=
|
|
2556
|
+
`,Wr=p.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:r=0,max:a,min:o,name:l,onEnter:c,tooltipMessage:d,...g},u){const x=i<0?0:i,[f,h]=p.useState(Number(r).toFixed(x)),m=p.useCallback(w=>{const k=s.lodashExports.toNumber(w.target.value);w.target.value.endsWith(".")?h(w.target.value):k>=Number(o)&&k<=Number(a)&&(h(String(k)),n&&c(s.lodashExports.toNumber(k.toFixed(x)))),w.stopPropagation()},[n,x,a,o,c]),$=p.useCallback(w=>{w.currentTarget.contains(w.relatedTarget)||h(Number(r).toFixed(x)),w.stopPropagation()},[x,r]),y=p.useCallback(w=>{w.stopPropagation(),w.key==="Enter"&&!s.lodashExports.isEmpty(w.currentTarget.value)&&c(s.lodashExports.toNumber(w.currentTarget.value))},[c]);return t.jsx(Lr,{onBlur:$,tabIndex:-1,children:t.jsx(Y,{id:"numberInputTooltip",tip:d,children:t.jsx(Br,{...g,"aria-label":l,"aria-valuemax":Number(a),"aria-valuemin":Number(o),"aria-valuenow":Number(f),max:a,min:o,name:l,onChange:m,onKeyUp:y,ref:u,step:10**-x,type:"number",value:f})})})}),Mr={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},_e=({icon:e,label:n,onClick:i,onlyLabel:r=!1,provider:a="GitLab"})=>{const o=s.nt();return t.jsxs(b,{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(b,{height:"24px",width:"24px",children:e===void 0?t.jsx(G,{alt:`${a} Logo`,height:"100%",publicId:Mr[a],width:"100%"}):t.jsx(z,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx(b,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(v,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:r?"break-spaces":"nowrap",wordWrap:"unset",children:n??a})})]})},Ar=({align:e="end",buttonLabel:n="Add Credential",children:i,id:r,manualOption:a,providers:o})=>{const l=s.nt(),[c,d]=p.useState(!1),g=p.useRef(null);te(g.current,()=>{d(!1)},!0);const u=p.useCallback(h=>{a==null||a.onClick(h),d(!1)},[a]),x=p.useCallback(()=>{d(h=>!h)},[d]),f=p.useCallback(h=>m=>{var $;($=o[h])==null||$.onClick(m),d(!1)},[o]);return t.jsxs(b,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:g,width:"max-content",zIndex:10,children:[t.jsx(R,{icon:"plus",onClick:x,variant:"primary",children:n}),t.jsxs(b,{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(_e,{onClick:f(h),provider:h},h)),a===void 0?void 0:t.jsx(_e,{icon:"square-plus",label:a.label??"Add manually",onClick:u}),i]})]})},tn=()=>t.jsx(b,{alignItems:"center",bgColor:I.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(v,{bgGradient:I.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),Or=s.dt.div`
|
|
2557
2557
|
${({className:e,theme:n})=>`
|
|
2558
2558
|
align-items: flex-start;
|
|
2559
2559
|
border-radius: ${n.spacing[1]};
|
|
@@ -2619,7 +2619,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2619
2619
|
}
|
|
2620
2620
|
`}
|
|
2621
2621
|
`;const Hr={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
|
|
2622
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},_r=({description:e,onClick:n,plan:i})=>{const{title:r,description:a,benefits:o,buttonText:l}=Hr[i],c=e??a;return t.jsxs(Or,{className:i,children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&t.jsx(tn,{}),t.jsx(W,{color:
|
|
2622
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},_r=({description:e,onClick:n,plan:i})=>{const{title:r,description:a,benefits:o,buttonText:l}=Hr[i],c=e??a;return t.jsxs(Or,{className:i,children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&t.jsx(tn,{}),t.jsx(W,{color:I.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:r}),t.jsx(v,{color:I.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:o})]}),t.jsx(v,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(R,{onClick:n,variant:"primary",children:l})]})},nn=({description:e="",highlightDescription:n=""})=>{const i=s.nt(),r=typeof n=="string",a=r?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(v,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:r?t.jsxs(p.Fragment,{children:[t.jsx(je,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:n}),e]}):e.split(a).map((o,l)=>n.includes(o)?t.jsx(je,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:o},`${l+1}-bold`):o)}):t.jsx(v,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},Vr=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:r,confirmButton:a,container:o,description:l,highlightDescription:c="",image:d,maxWidth:g,title:u,titleColor:x})=>{const f=s.nt(),{alt:h,src:m,width:$="77px",height:y="77px"}=d,w=p.useCallback(()=>{n==null||n.onClick()},[n]),k=p.useCallback(()=>{a==null||a.onClick()},[a]),S=t.jsx(b,{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(b,{bgColor:f.palette.white,border:`1px solid ${f.palette.gray[200]}`,borderRadius:"8px",display:"inline-flex",flexDirection:"column",maxWidth:g,pb:2.5,pl:2.5,pr:2.5,pt:2.5,shadow:"lg",width:"100%",zIndex:11,children:[t.jsxs(b,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(b,{children:t.jsx(G,{alt:h,height:y,publicId:m,width:$})}),t.jsxs(b,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[t.jsx(W,{color:x,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:u}),t.jsx(nn,{description:l,highlightDescription:c})]})]}),r&&t.jsx(b,{mb:1,scroll:"y",children:t.jsx(b,{height:"100%",children:r})}),t.jsxs(b,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[s.lodashExports.isObject(a)?t.jsx(R,{onClick:k,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(R,{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?V.createPortal(S,o??document.body):S},Gr=s.dt.div`
|
|
2623
2623
|
${({theme:e})=>`
|
|
2624
2624
|
height: ${e.spacing[1]};
|
|
2625
2625
|
width: ${e.spacing[1]};
|
|
@@ -2650,7 +2650,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2650
2650
|
font-size: ${e.spacing[.5]};
|
|
2651
2651
|
}
|
|
2652
2652
|
`}
|
|
2653
|
-
`,an=({margin:e,onClick:n,text:i})=>{const r=s.nt(),a=t.jsxs(Gr,{children:[t.jsx(
|
|
2653
|
+
`,an=({margin:e,onClick:n,text:i})=>{const r=s.nt(),a=t.jsxs(Gr,{children:[t.jsx(z,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(z,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(z,{icon:"crown",iconClass:"icon",iconSize:"xs"})]});return i!==void 0?t.jsx(b,{cursor:"pointer",display:"inline-block",mr:e,onClick:n,children:t.jsxs(b,{alignItems:"center",bgColor:r.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[a,t.jsx(v,{color:r.palette.warning[500],display:"inline",ml:.25,size:"xs",children:i})]})}):t.jsx(b,{display:"inline-block",mr:e,onClick:n,children:a})},Ur=({score:e})=>{const n=s.nt(),i=e<=33?"priority-bars-low":"priority-bars-medium",r=e>66||e===0?"priority-bars-high":i;return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(z,{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(v,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:Yr}=U(e=>({compliance:`
|
|
2654
2654
|
display: inline-flex;
|
|
2655
2655
|
|
|
2656
2656
|
&.horizontal {
|
|
@@ -2730,7 +2730,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2730
2730
|
border-start-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2731
2731
|
background-color: ${r==="compliance"?Kr(e,n):"inherit"};
|
|
2732
2732
|
`}
|
|
2733
|
-
`,Zr=({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(b,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(
|
|
2733
|
+
`,Zr=({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(b,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(v,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,g=t.jsx(qr,{$minWidth:e,$orientation:a,$rounded:o,$variant:l,className:a,children:t.jsx(Xr,{$percentage:n,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs(b,{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]})},Jr=s.dt(ee)`
|
|
2734
2734
|
animation: ${({$animationTime:e})=>`progress-bar ${e}s ease-in-out`};
|
|
2735
2735
|
animation-fill-mode: both;
|
|
2736
2736
|
|
|
@@ -2743,12 +2743,12 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2743
2743
|
width: 100%;
|
|
2744
2744
|
}
|
|
2745
2745
|
}
|
|
2746
|
-
`,Qr=e=>e*1e3/100,eo=({progressTime:e=10,onComplete:n})=>{const i=s.nt(),r=100,[a,o]=
|
|
2746
|
+
`,Qr=e=>e*1e3/100,eo=({progressTime:e=10,onComplete:n})=>{const i=s.nt(),r=100,[a,o]=p.useState(0);return p.useEffect(()=>{a===r&&(n==null||n())},[a,n]),p.useEffect(()=>{const l=setInterval(()=>{o(c=>c===r?0:c+1)},Qr(e));return()=>{clearInterval(l)}},[a,e]),t.jsx(b,{bgColor:i.palette.gray[200],height:"4px",children:t.jsx(Jr,{$animationTime:e,bgGradient:i.palette.gradients["01"],height:"100%",width:`${a}%`})})},to=s.dt.div.attrs({className:"comp-scroll-up"})`
|
|
2747
2747
|
bottom: 15px;
|
|
2748
2748
|
position: fixed;
|
|
2749
2749
|
right: 140px;
|
|
2750
2750
|
z-index: 100;
|
|
2751
|
-
`,no=({scrollerId:e="dashboard",visibleAt:n=500})=>{const[i,r]=
|
|
2751
|
+
`,no=({scrollerId:e="dashboard",visibleAt:n=500})=>{const[i,r]=p.useState(!1),[a,o]=p.useState(null);p.useEffect(()=>{o(document.getElementById(e)),a==null||a.addEventListener("scroll",()=>{r(a.scrollTop>n)})},[a,e,n]);const l=p.useCallback(()=>{a==null||a.scrollTo({behavior:"smooth",top:0})},[a]);return i?t.jsx(to,{children:t.jsx(M,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},io=s.dt.a`
|
|
2752
2752
|
${({theme:e})=>`
|
|
2753
2753
|
align-items: center;
|
|
2754
2754
|
display: flex;
|
|
@@ -2938,7 +2938,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2938
2938
|
height: ${e.spacing[.5]};
|
|
2939
2939
|
}
|
|
2940
2940
|
`}
|
|
2941
|
-
`,we=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:r,title:a}=e,o=String(r).startsWith("/pages/")?String(r).replace("/pages/","/"):String(r);return t.jsxs(io,{href:o,rel:"nofollow noopener noreferrer",children:[i&&t.jsx(ao,{children:t.jsx(
|
|
2941
|
+
`,we=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:r,title:a}=e,o=String(r).startsWith("/pages/")?String(r).replace("/pages/","/"):String(r);return t.jsxs(io,{href:o,rel:"nofollow noopener noreferrer",children:[i&&t.jsx(ao,{children:t.jsx(z,{icon:n,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),t.jsx(v,{color:I.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(a)})]})},co=[{hit:{slug:"/services/continuous-hacking/",title:"Continuous Hacking"},icon:"infinity"},{hit:{slug:"/platform/",title:"Platform"},icon:"sidebar"},{hit:{slug:"/plans/",title:"Plans"},icon:"star-christmas"},{hit:{slug:"/blog/",title:"Blog"},icon:"pen-line"}],dt={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},po=({items:e,placeholder:n="Search",refine:i,query:r})=>{const[a,o]=p.useState(r),[l,c]=p.useState(!1),d=p.useRef(null),g=p.useRef(null),u=a.length>=2,x=p.useCallback(w=>{o(w),i(w)},[i]),f=p.useCallback(()=>{x("")},[x]),h=p.useCallback(()=>{c(!0)},[]),m=p.useCallback(w=>{x(w.currentTarget.value)},[x]),$=p.useCallback(w=>{w.preventDefault(),w.stopPropagation(),f(),g.current&&g.current.focus()},[f]),y=p.useCallback(w=>{w.preventDefault(),w.stopPropagation(),g.current&&g.current.blur()},[]);return te(d.current,()=>{f(),c(!1)},!0),t.jsxs(ro,{ref:d,children:[t.jsxs(oo,{action:"",noValidate:!0,onReset:$,onSubmit:y,role:"search",children:[t.jsxs("div",{className:"flex gap-2 w-full",children:[t.jsx("div",{className:"h-10 p-2",children:t.jsx(z,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),t.jsx(so,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:m,onFocus:h,placeholder:n,ref:g,spellCheck:!1,type:"search",value:a})]}),u&&t.jsx(lo,{type:"reset",children:t.jsx(z,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&a.length<2&&t.jsxs(Fe,{children:[t.jsx(v,{color:I.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Suggested"}),t.jsx("div",{className:"flex flex-col items-start self-stretch",children:co.map(({hit:w,icon:k},S)=>t.jsx(we,{hit:w,icon:k,showIcon:!0},`${k}-${S}`))}),t.jsx(v,{color:I.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),t.jsx(we,{hit:dt.hit,icon:dt.icon,showIcon:!0})]}),u&&e.length>0&&t.jsxs(Fe,{$showHits:u,children:[t.jsx(v,{color:I.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Results"}),t.jsx("div",{className:"flex flex-col items-start self-stretch",children:e.map(w=>t.jsx(we,{hit:w},w.objectID))})]}),u&&e.length===0&&t.jsx(Fe,{$empty:e.length===0,children:t.jsxs("div",{className:"items-center flex flex-col gap-4 py-[90px] w-full",children:[t.jsx(G,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),t.jsx(W,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),t.jsxs(v,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${a}” did not match.`,t.jsx("br",{}),"Please try again."]}),t.jsx(R,{onClick:f,variant:"secondary",children:"Clear search"})]})})]})},go={critical:{bgColor:I.palette.primary[700],colorL:I.palette.gray[800],colorR:I.palette.white},disable:{bgColor:I.palette.gray[200],colorL:I.palette.gray[400],colorR:I.palette.gray[400]},high:{bgColor:I.palette.error[500],colorL:I.palette.gray[800],colorR:I.palette.white},low:{bgColor:I.palette.warning[200],colorL:I.palette.gray[800],colorR:I.palette.gray[800]},medium:{bgColor:I.palette.warning[500],colorL:I.palette.gray[800],colorR:I.palette.gray[800]}},uo=({textL:e,textR:n,variant:i})=>{const r=s.nt(),{bgColor:a,colorL:o,colorR:l}=go[i];return t.jsxs(b,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(b,{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(v,{color:o,size:"xs",children:e})}):void 0,t.jsx(b,{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(v,{color:l,size:"xs",children:n})})]})},xo=(e,n)=>{const i={critical:I.palette.primary[700],high:I.palette.error[500],low:I.palette.warning[200],medium:I.palette.warning[500],none:I.palette.gray[200]},r={disabled:I.palette.gray[400],enabled:I.palette.gray[800]},a={critical:I.palette.white,high:I.palette.white,low:I.palette.gray[800],medium:I.palette.gray[800],none:I.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}},oe=({variant:e,value:n})=>{const{iconColor:i,iconText:r,iconTextColor:a,textColor:o}=xo(e,n),l=s.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(Y,{id:l,place:"top",tip:l,children:t.jsx(b,{alignItems:"center",bgColor:i,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(v,{color:a,size:"sm",textAlign:"center",children:r})})}),t.jsx(v,{color:o,size:"sm",children:n})]})},fo=({critical:e,high:n,medium:i,low:r})=>t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(oe,{value:e,variant:"critical"}),t.jsx(oe,{value:n,variant:"high"}),t.jsx(oe,{value:i,variant:"medium"}),t.jsx(oe,{value:r,variant:"low"})]}),ho=s.dt.div`
|
|
2942
2942
|
${({theme:e})=>`
|
|
2943
2943
|
border-radius: ${e.spacing[.25]};
|
|
2944
2944
|
cursor: pointer;
|
|
@@ -2956,7 +2956,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2956
2956
|
display: block;
|
|
2957
2957
|
}
|
|
2958
2958
|
`}
|
|
2959
|
-
`,bo=({visibleElement:e,hiddenElement:n})=>t.jsxs(ho,{children:[e,t.jsx(b,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),rn=({customBadge:e=void 0,description:n,icon:i,onClick:r,requiresUpgrade:a=!1,title:o})=>{const l=s.nt();return t.jsxs(b,{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(b,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(
|
|
2959
|
+
`,bo=({visibleElement:e,hiddenElement:n})=>t.jsxs(ho,{children:[e,t.jsx(b,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),rn=({customBadge:e=void 0,description:n,icon:i,onClick:r,requiresUpgrade:a=!1,title:o})=>{const l=s.nt();return t.jsxs(b,{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(b,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(z,{icon:i,iconColor:l.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),t.jsxs(b,{children:[t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(v,{color:l.palette.gray[800],size:"sm",children:o}),a?t.jsx(an,{text:"Upgrade"}):void 0,e]}),t.jsx(v,{color:l.palette.gray[400],size:"xs",children:n})]})]})},$o=s.dt(s.m.div)`
|
|
2960
2960
|
${({theme:e})=>`
|
|
2961
2961
|
background-color: ${e.palette.white};
|
|
2962
2962
|
box-shadow: ${e.shadows.lg};
|
|
@@ -2979,7 +2979,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
2979
2979
|
height: auto;
|
|
2980
2980
|
}
|
|
2981
2981
|
`}
|
|
2982
|
-
`,yo=({children:e,closeIconId:n="close-menu",isOpen:i,items:r,onClose:a,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:
|
|
2982
|
+
`,yo=({children:e,closeIconId:n="close-menu",isOpen:i,items:r,onClose:a,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:g})=>{const u=s.nt(),x=p.useRef(null),f=p.useCallback(h=>()=>{h(),a()},[a]);return p.useEffect(()=>{const h=["mousedown","touchstart"],m=$=>{var C;const y=$.target,w=document.getElementById("helpBtn"),k=document.getElementById("filterBtn"),S=(y===w||((w==null?void 0:w.contains(y))??!1)||y===k||(k==null?void 0:k.contains(y)))??!1;i&&!S&&!(((C=x.current)==null?void 0:C.contains(y))??!1)&&a()};return h.forEach($=>{document.addEventListener($,m,{passive:!0})}),()=>{h.forEach($=>{document.removeEventListener($,m)})}},[i,a]),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx($o,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:x,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs(b,{height:"100%",position:"relative",children:[t.jsxs(b,{alignItems:"center",bgColor:u.palette.white,borderBottom:"1px solid",borderColor:u.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(v,{color:u.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:g}),t.jsx(M,{icon:"close",iconColor:u.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:a,px:.25,py:.25,variant:"ghost"})]}),t.jsxs(b,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs(b,{py:1.25,children:[(r??[]).map(({customBadge:h,description:m,icon:$,onClick:y,requiresUpgrade:w,title:k})=>t.jsx(rn,{customBadge:h,description:m,icon:$,onClick:f(y),requiresUpgrade:w,title:k},k)),e&&t.jsx(b,{px:1.25,children:e})]}),o===void 0?void 0:t.jsxs(b,{alignItems:"center",bgColor:u.palette.white,borderColor:u.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(R,{color:`${u.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(R,{onClick:l,type:"submit",children:o})]})]})]})})})},mo=(e,n)=>n>=50?`
|
|
2983
2983
|
${e.palette.gray[200]} 50%,
|
|
2984
2984
|
${e.palette.primary[500]} 50.05%,
|
|
2985
2985
|
${e.palette.primary[500]} ${n}%,
|
|
@@ -3055,7 +3055,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
3055
3055
|
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
3056
3056
|
width: 59px;
|
|
3057
3057
|
`}
|
|
3058
|
-
`,on=({state:e,trackRef:n,index:i,name:r})=>{const a=
|
|
3058
|
+
`,on=({state:e,trackRef:n,index:i,name:r})=>{const a=p.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})})})},Co=(e,n,i)=>Math.round((i-e)/(n-e)*100),vo=e=>{const n=s.nt(),i=p.useRef(null),{label:r,minValue:a=0,maxValue:o=100,name:l,setValue:c,watch:d}=e,g=s.$a916eb452884faea$export$b7a616150fdb9f44(),u=s.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:g,onChange(m){c==null||c(l,m)},value:d==null?void 0:d(l)}),x=Co(a,o,u.getThumbValue(0)),{groupProps:f,trackProps:h}=s.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},u,i);return t.jsx(O,{htmlFor:l,label:r,children:t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(wo,{...f,$min:a??0,$value:x,className:"slider",children:[t.jsx("div",{...h,className:`track ${u.isDisabled?"disabled":""}`,ref:i,children:t.jsx(on,{index:0,name:l,state:u,trackRef:i})}),t.jsxs(jo,{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(ko,{children:t.jsx(v,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:u.getThumbValueLabel(0)})})]})})},{getVariant:So}=U(e=>({completed:`
|
|
3059
3059
|
background-color: ${e.palette.primary[500]};
|
|
3060
3060
|
color: ${e.palette.white};
|
|
3061
3061
|
|
|
@@ -3133,7 +3133,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
3133
3133
|
|
|
3134
3134
|
${So(e,n)}
|
|
3135
3135
|
`}
|
|
3136
|
-
`,Eo=({button:{disabled:e=!1,text:n,type:i="button",onClick:r},steps:a})=>{const[o,l]=
|
|
3136
|
+
`,Eo=({button:{disabled:e=!1,text:n,type:i="button",onClick:r},steps:a})=>{const[o,l]=p.useState(1),c=p.useCallback((d,g)=>()=>{l(u=>u+d),g==null||g()},[]);return t.jsx(zo,{children:a.map((d,g)=>{const{content:u,title:x,nextAction:f,previousAction:h}=d,m=g+1,$=m===o?"current":"disabled",y=m<o?"completed":$;return t.jsxs(Io,{children:[t.jsx(b,{maxWidth:"40px",position:"relative",children:t.jsx(No,{$variant:y,children:y==="completed"?t.jsx(z,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):m})}),t.jsxs(b,{ml:1.5,width:"100%",children:[t.jsx(W,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:x}),y==="current"&&t.jsxs(b,{children:[u,t.jsxs(To,{children:[o>1&&t.jsx(R,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,h),variant:"tertiary",children:"Previous"}),o<a.length?t.jsx(R,{disabled:d.isDisabledNext??!1,onClick:c(1,f),variant:"primary",children:"Next step"}):t.jsx(R,{disabled:e,onClick:r,type:i,variant:"primary",children:n})]})]})]})]},d.title)})})},Fo=s.dt.button`
|
|
3137
3137
|
${({theme:e})=>`
|
|
3138
3138
|
align-items: center;
|
|
3139
3139
|
background-color: ${e.palette.white};
|
|
@@ -3175,7 +3175,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
3175
3175
|
background-color: ${e.palette.gray[100]};
|
|
3176
3176
|
}
|
|
3177
3177
|
`}
|
|
3178
|
-
`,Ro={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Do=({disabled:e=!1,icon:n,id:i,label:r,name:a,onClick:o,type:l="button",variant:c})=>{const d=s.nt(),
|
|
3178
|
+
`,Ro={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Do=({disabled:e=!1,icon:n,id:i,label:r,name:a,onClick:o,type:l="button",variant:c})=>{const d=s.nt(),g=t.jsxs(Fo,{"aria-label":a??void 0,className:c,disabled:e,id:i,onClick:o,type:l,children:[t.jsx(z,{clickable:!1,icon:n??Ro[c].icon,iconSize:a===void 0?"xxs":"xs",iconType:"fa-light"}),a??void 0]});return t.jsxs(b,{alignItems:"center",display:"flex",children:[g,r&&t.jsx(v,{color:d.palette.gray[800],ml:.5,size:"sm",children:r})]})},Po=({items:e})=>t.jsx(fa,{children:e.map(({isActive:n,label:i,onClick:r},a)=>t.jsx(xa,{className:n?"active":"",onClick:r,type:"button",children:t.jsx(W,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:i})},`${i}-${a}`))}),Lo=s.dt.div`
|
|
3179
3179
|
${({theme:e})=>`
|
|
3180
3180
|
align-items: center;
|
|
3181
3181
|
background-color: ${e.palette.white};
|
|
@@ -3268,7 +3268,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
3268
3268
|
}
|
|
3269
3269
|
}
|
|
3270
3270
|
`}
|
|
3271
|
-
`,sn=({date:e,description:n,title:i})=>{const r=s.nt();return t.jsxs(Lo,{className:"timeline-card",children:[t.jsx(
|
|
3271
|
+
`,sn=({date:e,description:n,title:i})=>{const r=s.nt();return t.jsxs(Lo,{className:"timeline-card",children:[t.jsx(v,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(v,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((a,o)=>{const l=`${a}#${o}`;return t.jsx(v,{size:"sm",textAlign:"center",wordBreak:"break-word",children:a},l)})})]})},Wo=({items:e})=>t.jsx(Bo,{children:e.map((n,i)=>t.jsx(sn,{date:n.date,description:n.description,title:n.title},`${n.title}-${i}`))}),Mo=s.dt.div`
|
|
3272
3272
|
${({theme:e})=>`
|
|
3273
3273
|
align-items: center;
|
|
3274
3274
|
display: flex;
|
|
@@ -3327,7 +3327,7 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
3327
3327
|
color: ${e.palette.white};
|
|
3328
3328
|
}
|
|
3329
3329
|
`}
|
|
3330
|
-
`,Oo=({defaultSelection:e,options:n,handleClick:i})=>{const[r,a]=
|
|
3330
|
+
`,Oo=({defaultSelection:e,options:n,handleClick:i})=>{const[r,a]=p.useState(e??n[0]),o=p.useCallback(l=>()=>{a(l),i(l)},[i]);return t.jsx(Mo,{children:n.map((l,c)=>t.jsx(Ao,{className:`${l.includes(r)&&"selected"}`,onClick:o(l),children:t.jsx(v,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:l})},`${l}-${c}`))})},Ho={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:""},_o=({run:e,steps:n,onFinish:i})=>{const[r,a]=p.useState(e),[o,l]=p.useState(0),c=p.useCallback(d=>{const{action:g,index:u,status:x,type:f}=d;[s.EVENTS.STEP_AFTER,s.EVENTS.TARGET_NOT_FOUND].includes(f)?l(u+(g===s.ACTIONS.PREV?-1:1)):([s.STATUS.FINISHED,s.STATUS.SKIPPED].includes(x)||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}}})},Vo=s.dt.form`
|
|
3331
3331
|
${({theme:e})=>`
|
|
3332
3332
|
align-items: center;
|
|
3333
3333
|
background: ${e.palette.gray[50]};
|
|
@@ -3390,4 +3390,4 @@ ${h[8]}...`:(h.length<8&&d(!1),n)},[o,n,e]),x=g.useMemo(u,[u]),f=g.useCallback(a
|
|
|
3390
3390
|
flex-direction: column;
|
|
3391
3391
|
}
|
|
3392
3392
|
`}
|
|
3393
|
-
`,Yo=({children:e,name:n,onSubmit:i,submitDisabled:r,submitLabel:a="Submit"})=>t.jsx(Vo,{"aria-label":n,name:n,onSubmit:i,children:t.jsxs(Go,{children:[e,t.jsx(R,{disabled:r,type:"submit",children:a})]})});exports.Accordion=Mn;exports.AccordionContent=xt;exports.ActionButton=Be;exports.Alert=Kn;exports.Avatar=ni;exports.BaseButtonComponent=Ve;exports.BaseComponent=
|
|
3393
|
+
`,Yo=({children:e,name:n,onSubmit:i,submitDisabled:r,submitLabel:a="Submit"})=>t.jsx(Vo,{"aria-label":n,name:n,onSubmit:i,children:t.jsxs(Go,{children:[e,t.jsx(R,{disabled:r,type:"submit",children:a})]})});exports.Accordion=Mn;exports.AccordionContent=xt;exports.ActionButton=Be;exports.Alert=Kn;exports.Avatar=ni;exports.BaseButtonComponent=Ve;exports.BaseComponent=ee;exports.BaseSpanComponent=gt;exports.BaseTextComponent=Ge;exports.Button=R;exports.Button$1=ke;exports.ButtonToolbarCenter=ir;exports.ButtonToolbarRow=rr;exports.ButtonToolbarStartRow=ar;exports.Calendar=wt;exports.Calendar$1=zt;exports.Calendar$2=It;exports.CalendarCell=mt;exports.CalendarGrid=ze;exports.CardHeader=Se;exports.CardWithImage=ri;exports.CardWithInput=_i;exports.CardWithOptions=Nt;exports.CardWithSelector=Xi;exports.CardWithSwitch=Qi;exports.Carousel=ra;exports.CategoryTag=Oe;exports.Checkbox=be;exports.CodeSnippet=sa;exports.Col=sr;exports.ColumnsModal=Sa;exports.ComboBox=di;exports.ComboBoxField=De;exports.Container=b;exports.ContentCard=Zt;exports.ContentCardCarousel=Pa;exports.CustomThemeProvider=En;exports.DateField=kt;exports.DateSelector=se;exports.Description=nn;exports.Dialog=Te;exports.Divider=J;exports.Editable=Ii;exports.EmptyButton=He;exports.EmptyState=Ma;exports.EventDate=Xt;exports.FilePreview=bt;exports.FilterControl=Yt;exports.FilterForm=Me;exports.Filters=Na;exports.FiltersList=ve;exports.FixedTabs=Po;exports.Form=Oa;exports.FormItem=Uo;exports.Gap=cr;exports.GridContainer=_a;exports.GroupSelector=Ga;exports.Header=Ie;exports.Header$1=At;exports.Heading=W;exports.Icon=z;exports.IconButton=M;exports.IndicatorCard=Ua;exports.InfoSidebar=Ya;exports.Input=Ke;exports.InputDate=St;exports.InputDateRange=Ci;exports.InputDateTime=zi;exports.InputFile=Fi;exports.InputNumber=Tt;exports.InputNumberRange=Pi;exports.InputTags=Di;exports.InteractiveCard=Xa;exports.InteractiveIcon=Qt;exports.ItemList=en;exports.ItemSearching=we;exports.Label=Ue;exports.LanguageSelector=nr;exports.Link=q;exports.ListItem=$e;exports.ListItemsWrapper=Ht;exports.LittleFlag=ur;exports.Loading=wr;exports.LocationCode=Lt;exports.Logo=zr;exports.LogoCarousel=vr;exports.MemoizedImage=G;exports.Menu=Ir;exports.MenuItem=rn;exports.MessageBanner=Nr;exports.Modal=qt;exports.ModalConfirm=Ot;exports.ModalFooter=Bt;exports.Notification=Pr;exports.NotificationSign=Wt;exports.NumberField=Ce;exports.NumberInput=Wr;exports.OAuthSelector=Ar;exports.Option=$t;exports.OptionBoxContainer=Ze;exports.OptionContainer=_e;exports.OptionContainer$1=Jt;exports.OptionsSelector=Er;exports.OutlineContainer=O;exports.PhoneInput=Oi;exports.PlanCard=_r;exports.PopUp=Vr;exports.Popover=he;exports.PremiumFeature=an;exports.PreviewPanel=_t;exports.PriorityScore=Ur;exports.Progress=eo;exports.ProgressBar=Zr;exports.RadioButton=qe;exports.RecommendedTag=tn;exports.Row=pr;exports.ScrollButtons=Ae;exports.ScrollUpButton=no;exports.Search=Q;exports.SearchBar=po;exports.SearchPanel=Gt;exports.SeverityBadge=uo;exports.SeverityOverview=fo;exports.SeverityOverviewBadge=oe;exports.ShowOnHover=bo;exports.SingleColumFilters=Kt;exports.SlideOutMenu=yo;exports.Slider=vo;exports.Span=je;exports.StepLapse=Eo;exports.Tab=Mt;exports.TableButton=Do;exports.Tabs=Xe;exports.Tag=X;exports.TagsField=Le;exports.Text=v;exports.TextArea=Hi;exports.Thumb=on;exports.TimeField=Ct;exports.TimeLine=Wo;exports.TimeLineCard=sn;exports.Toggle=Dt;exports.ToggleButton=Oo;exports.Tooltip=Y;exports.Tour=_o;exports.TwoColumnsFilters=Ia;exports.WebForm=Yo;exports.baseStep=Ho;exports.getStyledConfig=fe;exports.hiddenProps=pt;exports.icons=Tn;exports.setBorder=pe;exports.setDisplay=ge;exports.setInteraction=xe;exports.setMargin=ce;exports.setPadding=le;exports.setPosition=de;exports.setText=ue;exports.theme=I;exports.uniqueIcons=Nn;exports.useCarousel=Et;exports.useClickOutside=te;exports.useCloudinaryImage=Ft;exports.useColumnsModal=Gi;exports.useConfirmDialog=Ea;exports.useDebouncedCallback=Rt;exports.useModal=Ne;exports.useSearch=Ui;exports.variantBuilder=U;
|