@fluidattacks/design 3.7.11 → 3.7.12-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/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/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/filters-list/index.js +1 -1
- package/dist/components/modal/filters-modal/options-selector/index.js +1 -1
- package/dist/components/modal/filters-modal/single-column-filters/index.js +1 -1
- package/dist/components/modal/filters-modal/styles.d.ts +2 -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-Cw3orcUd.mjs → components--kyx1gv4.mjs} +1261 -1212
- package/dist/{components-B3dbWAOX.js → components-D2-MaYIE.js} +179 -173
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),p=require("react"),s=require("./vendor-DNbqU5jS.js"),G=require("react-dom"),Re=require("react-router-dom"),V=e=>({getVariant:(n,i)=>e(n)[i]}),it=["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"],
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),p=require("react"),s=require("./vendor-DNbqU5jS.js"),G=require("react-dom"),Re=require("react-router-dom"),V=e=>({getVariant:(n,i)=>e(n)[i]}),it=["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"],cn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},dn={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},pn={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},gn={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},un={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},xn={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},fn={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},hn={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},bn={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"}},$n={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)"},yn={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},mn={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"},wn=["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"],jn=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],C={typography:bn,shadows:$n,breakpoints:yn,spacing:mn,palette:{primary:dn,complementary:pn,error:gn,info:fn,warning:un,success:xn,black:"#0c111d",white:"#ffffff",gray:cn,gradients:hn}},kn=({children:e})=>t.jsx(s.ot,{theme:C,children:e}),T=(e,n)=>n===void 0?"":`${e}: ${n};`,oe=e=>{const n=e.py??e.pt??0,i=e.px??e.pr??0,a=e.py??e.pb??0,r=e.px??e.pl??0;if(e.padding){const[o,l,c,d]=e.padding;return`padding: ${C.spacing[o]} ${C.spacing[l]} ${C.spacing[c]} ${C.spacing[d]};`}return`padding: ${C.spacing[n]} ${C.spacing[i]} ${C.spacing[a]} ${C.spacing[r]};`},se=e=>{const n=e.my??e.mt??0,i=e.mx??e.mr??0,a=e.my??e.mb??0,r=e.mx??e.ml??0;if(e.margin){const[o,l,c,d]=e.margin;return`margin: ${C.spacing[o]} ${C.spacing[l]} ${C.spacing[c]} ${C.spacing[d]};`}return`margin: ${C.spacing[n]} ${C.spacing[i]} ${C.spacing[a]} ${C.spacing[r]};`},le=e=>{const n=T("position",e.position),i=T("top",e.top),a=T("right",e.right),r=T("bottom",e.bottom),o=T("left",e.left),l=T("z-index",e.zIndex);return`
|
|
2
2
|
${n}
|
|
3
3
|
${i}
|
|
4
4
|
${a}
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
${o}
|
|
14
14
|
${l}
|
|
15
15
|
${c}
|
|
16
|
-
`},
|
|
17
|
-
${kn(e.scroll)}
|
|
16
|
+
`},Cn=e=>e.includes("x")?"overflow-x: auto;":"",vn=e=>e.includes("y")?"overflow-y: auto;":"",de=e=>{const n=e.scroll?`
|
|
18
17
|
${Cn(e.scroll)}
|
|
19
|
-
|
|
18
|
+
${vn(e.scroll)}
|
|
19
|
+
`:"",i=T("visibility",e.visibility),a=T("display",e.display),r=T("height",e.height),o=T("width",e.width),l=T("max-height",e.maxHeight),c=T("max-width",e.maxWidth),d=T("min-height",e.minHeight),g=T("min-width",e.minWidth),u=T("box-shadow",e.shadow?C.shadows[e.shadow]:void 0),f=T("gap",e.gap===void 0?void 0:C.spacing[e.gap]),x=T("background-color",e.bgColor),h=T("background",e.bgGradient),y=T("flex-direction",e.flexDirection),$=T("flex-grow",e.flexGrow),m=T("justify-content",e.justify),w=T("justify-self",e.justifySelf),j=T("align-items",e.alignItems),v=T("align-self",e.alignSelf),z=T("flex-wrap",e.wrap);return`
|
|
20
20
|
${n}
|
|
21
21
|
${i}
|
|
22
22
|
${a}
|
|
@@ -27,9 +27,9 @@
|
|
|
27
27
|
${d}
|
|
28
28
|
${g}
|
|
29
29
|
${u}
|
|
30
|
-
${f}
|
|
31
|
-
${h}
|
|
32
30
|
${x}
|
|
31
|
+
${h}
|
|
32
|
+
${f}
|
|
33
33
|
${y}
|
|
34
34
|
${$}
|
|
35
35
|
${m}
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
${j}
|
|
38
38
|
${v}
|
|
39
39
|
${z}
|
|
40
|
-
`},pe=e=>{const n=T("color",e.color),i=T("font-family",e.fontFamily),a=T("font-size",e.fontSize),r=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),g=T("text-overflow",e.textOverflow),u=T("white-space",e.whiteSpace),
|
|
40
|
+
`},pe=e=>{const n=T("color",e.color),i=T("font-family",e.fontFamily),a=T("font-size",e.fontSize),r=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),g=T("text-overflow",e.textOverflow),u=T("white-space",e.whiteSpace),f=T("word-break",e.wordBreak),x=T("word-wrap",e.wordWrap);return`
|
|
41
41
|
${n}
|
|
42
42
|
${i}
|
|
43
43
|
${a}
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
${d}
|
|
49
49
|
${g}
|
|
50
50
|
${u}
|
|
51
|
-
${x}
|
|
52
51
|
${f}
|
|
52
|
+
${x}
|
|
53
53
|
`},ge=e=>{const n=T("cursor",e.cursor),i=T("border-color",e.borderColorHover),a=T("background-color",e.bgColorHover),r=T("box-shadow",e.shadowHover===void 0?void 0:C.shadows[e.shadowHover]),o=T("transition",e.transition);return`
|
|
54
54
|
${n}
|
|
55
55
|
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
${pe}
|
|
92
92
|
${ce}
|
|
93
93
|
${ge}
|
|
94
|
-
`,
|
|
94
|
+
`,Sn=s.dt(Q)`
|
|
95
95
|
${({theme:e,$center:n=!1,$styleMd:i,$styleSm:a})=>`
|
|
96
96
|
${n?"margin: auto;":""}
|
|
97
97
|
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
${a};
|
|
109
109
|
}
|
|
110
110
|
`}
|
|
111
|
-
`,b=p.forwardRef(function({as:n="div",center:i,children:a,id:r,onHover:o,onLeave:l,styleMd:c,styleSm:d,...g},u){return t.jsx(
|
|
112
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:g,$sizeMd:u,$sizeSm:
|
|
111
|
+
`,b=p.forwardRef(function({as:n="div",center:i,children:a,id:r,onHover:o,onLeave:l,styleMd:c,styleSm:d,...g},u){return t.jsx(Sn,{$center:i,$styleMd:c,$styleSm:d,as:n,id:r,onMouseLeave:l,onMouseOver:o,ref:u,...g,children:a})}),zn=s.dt(He)`
|
|
112
|
+
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:g,$sizeMd:u,$sizeSm:f,$textFill:x="unset",$wordBreak:h="normal"})=>`
|
|
113
113
|
background: ${n};
|
|
114
114
|
color: ${i};
|
|
115
115
|
display: ${a};
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
word-break: ${h};
|
|
123
123
|
background-clip: text;
|
|
124
124
|
-webkit-background-clip: text;
|
|
125
|
-
-webkit-text-fill-color: ${
|
|
125
|
+
-webkit-text-fill-color: ${x};
|
|
126
126
|
|
|
127
127
|
@media screen
|
|
128
128
|
and (min-width: ${e.breakpoints.mobile})
|
|
@@ -132,12 +132,12 @@
|
|
|
132
132
|
}
|
|
133
133
|
|
|
134
134
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
135
|
-
font-size: ${e.typography.heading[
|
|
135
|
+
font-size: ${e.typography.heading[f??g]};
|
|
136
136
|
line-height: ${e.spacing[d??c]};
|
|
137
137
|
}
|
|
138
138
|
`}
|
|
139
139
|
`,rt=s.dt(He)`
|
|
140
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:g,$sizeMd:u,$sizeSm:
|
|
140
|
+
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:a="block",$fontFamily:r=e.typography.type.primary,$fontWeight:o="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:g,$sizeMd:u,$sizeSm:f,$textFill:x="unset",$wordBreak:h="normal"})=>`
|
|
141
141
|
background: ${n};
|
|
142
142
|
color: ${i};
|
|
143
143
|
display: ${a};
|
|
@@ -150,7 +150,7 @@
|
|
|
150
150
|
word-break: ${h};
|
|
151
151
|
background-clip: text;
|
|
152
152
|
-webkit-background-clip: text;
|
|
153
|
-
-webkit-text-fill-color: ${
|
|
153
|
+
-webkit-text-fill-color: ${x};
|
|
154
154
|
|
|
155
155
|
@media screen
|
|
156
156
|
and (min-width: ${e.breakpoints.mobile})
|
|
@@ -160,11 +160,11 @@
|
|
|
160
160
|
}
|
|
161
161
|
|
|
162
162
|
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
163
|
-
font-size: ${e.typography.text[
|
|
163
|
+
font-size: ${e.typography.text[f??g]};
|
|
164
164
|
line-height: ${e.spacing[d??c]};
|
|
165
165
|
}
|
|
166
166
|
`}
|
|
167
|
-
`,
|
|
167
|
+
`,In=s.dt.span`
|
|
168
168
|
${({theme:e,$color:n=e.palette.gray[600],$content:i=void 0,$display:a="inline",$fontWeight:r="regular",$size:o,$lineSpacing:l=1.25})=>`
|
|
169
169
|
color: ${n};
|
|
170
170
|
display: ${a};
|
|
@@ -176,11 +176,11 @@
|
|
|
176
176
|
|
|
177
177
|
${i===void 0?"":`&::after { content: "${i}"; }`}
|
|
178
178
|
`}
|
|
179
|
-
`,
|
|
179
|
+
`,L=p.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:g,lineSpacingSm:u,size:f,sizeMd:x,sizeSm:h,textFill:y,wordBreak:$,...m},w){return t.jsx(zn,{$bgGradient:n,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:g,$lineSpacingSm:u,$size:f,$sizeMd:x,$sizeSm:h,$textFill:y,$wordBreak:$,className:a,ref:w,...m,children:i})}),we=p.forwardRef(function({children:n,color:i,content:a,display:r,fontFamily:o,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:g,size:u,sizeMd:f,sizeSm:x,...h},y){return t.jsx(In,{$color:i,$content:a,$display:r,$fontFamily:o,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:g,$size:u,$sizeMd:f,$sizeSm:x,ref:y,...h,children:n})}),k=p.forwardRef(function({bgGradient:n,children:i,className:a,color:r,display:o,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:g,lineSpacingSm:u,size:f,sizeMd:x,sizeSm:h,textFill:y,wordBreak:$,...m},w){return t.jsx(rt,{$bgGradient:n,$color:r,$display:o,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:g,$lineSpacingSm:u,$size:f,$sizeMd:x,$sizeSm:h,$textFill:y,$wordBreak:$,className:a,ref:w,...m,children:i})}),ot=({item:e})=>t.jsxs(b,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[e.description?t.jsx(k,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):void 0,e.extraElement?t.jsx(b,{children:e.extraElement}):void 0]}),Tn={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},Nn=s.dt(at)`
|
|
180
180
|
${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:a,$rotation:r,$size:o,$secondaryColor:l})=>{const c=a?"":"brightness(50%)",d=a??"";return`
|
|
181
181
|
color: ${n};
|
|
182
182
|
cursor: ${e?"pointer":"inherit"};
|
|
183
|
-
font-size: ${
|
|
183
|
+
font-size: ${Tn[o]};
|
|
184
184
|
line-height: 0;
|
|
185
185
|
vertical-align: middle;
|
|
186
186
|
pointer-events: inherit;
|
|
@@ -212,7 +212,7 @@
|
|
|
212
212
|
&:hover:not([disabled]) {
|
|
213
213
|
transform: scale(1.2);
|
|
214
214
|
}
|
|
215
|
-
`;const S=p.forwardRef(function({clickable:n,disabled:i,hoverColor:a,icon:r,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:g,iconType:u="fa-solid",onClick:
|
|
215
|
+
`;const S=p.forwardRef(function({clickable:n,disabled:i,hoverColor:a,icon:r,iconClass:o="",iconColor:l,iconMask:c,iconSize:d,iconTransform:g,iconType:u="fa-solid",onClick:f,rotation:x,spanClass:h,secondaryColor:y,...$},m){return t.jsx(Nn,{$clickable:n,$color:l,$disabled:i,$hoverColor:a,$rotation:x,$secondaryColor:y,$size:d,className:h,"data-testid":`${r}-icon`,onClick:f,ref:m,...$,children:t.jsx("i",{className:`${u} fa-${r} ${o}`,...c!==void 0?{"data-fa-mask":c}:{},...g!==void 0?{"data-fa-transform":g}:{}})},`${u}-${r}`)}),En=p.forwardRef(function({aligned:n="end",items:i,bgColor:a},r){const o=s.nt(),[l,c]=p.useState(!1),[d,g]=p.useState(-1),u=p.useCallback(f=>()=>{g(f),c(f===d?x=>!x:!0)},[d]);return t.jsx(b,{ref:r,children:i.map((f,x)=>{const h=x===d&&l;return t.jsxs(b,{bgColor:a??o.palette.white,children:[t.jsx(b,{"aria-controls":`panel-${f.title}`,"aria-expanded":l,"aria-label":f.title,as:"button",bgColor:a??o.palette.white,bgColorHover:o.palette.gray[100],borderBottom:h||x===i.length-1?"1px solid":void 0,borderColor:o.palette.gray[200],borderTop:"1px solid",cursor:"pointer",display:"flex",onClick:u(x),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(k,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:f.title}),t.jsx(S,{icon:h?"chevron-up":"chevron-down",iconColor:o.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),h&&t.jsx(ot,{item:f})]},f.title)})})}),Rn=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:Dn}=V(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]};
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
color: ${e.palette.warning[700]};
|
|
265
265
|
}
|
|
266
266
|
}
|
|
267
|
-
`})),
|
|
267
|
+
`})),Pn=s.dt.div`
|
|
268
268
|
${({theme:e,$variant:n})=>`
|
|
269
269
|
background: transparent;
|
|
270
270
|
align-items: center;
|
|
@@ -284,12 +284,12 @@
|
|
|
284
284
|
background-color: transparent;
|
|
285
285
|
}
|
|
286
286
|
|
|
287
|
-
${
|
|
287
|
+
${Dn(e,n??"error")}
|
|
288
288
|
`}
|
|
289
|
-
`,
|
|
289
|
+
`,Fn=s.dt.div`
|
|
290
290
|
padding-right: 4px;
|
|
291
291
|
width: 100%;
|
|
292
|
-
`,{getVariant:
|
|
292
|
+
`,{getVariant:Ln}=V(e=>({ghost:`
|
|
293
293
|
background: transparent;
|
|
294
294
|
border: none;
|
|
295
295
|
color: ${e.palette.gray[800]};
|
|
@@ -385,9 +385,9 @@
|
|
|
385
385
|
${n!=="link"?`--btn-padding-y: ${e.spacing[1]}`:""};
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
${
|
|
388
|
+
${Ln(e,n??"primary")}
|
|
389
389
|
`}
|
|
390
|
-
`,
|
|
390
|
+
`,Wn=s.dt(st)`
|
|
391
391
|
${({theme:e,$borderRadius:n="4px",$px:i=.5,$py:a=.5})=>`
|
|
392
392
|
--btn-spacing: ${n};
|
|
393
393
|
--btn-padding-x: ${e.spacing[i]};
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
margin: 0 !important;
|
|
402
402
|
}
|
|
403
403
|
`}
|
|
404
|
-
`,
|
|
404
|
+
`,On=s.dt(Q)``,Bn=s.dt.div`
|
|
405
405
|
${({theme:e,$maxWidth:n="320px"})=>`
|
|
406
406
|
> :is(.react-tooltip, .react-tooltip__show, .react-tooltip__closing) {
|
|
407
407
|
background-color: ${e.palette.gray[700]};
|
|
@@ -414,7 +414,7 @@
|
|
|
414
414
|
--rt-opacity: 1;
|
|
415
415
|
}
|
|
416
416
|
`}
|
|
417
|
-
`,U=p.forwardRef(function({children:n,disabled:i=!1,display:a="inline-block",effect:r="solid",icon:o,iconColor:l,iconSize:c,id:d,maxWidth:g,nodeTip:u,place:
|
|
417
|
+
`,U=p.forwardRef(function({children:n,disabled:i=!1,display:a="inline-block",effect:r="solid",icon:o,iconColor:l,iconSize:c,id:d,maxWidth:g,nodeTip:u,place:f="bottom",tip:x="",title:h="",hide:y=x===""&&h===""&&u===void 0,...$},m){const w=s.nt(),[j,v]=p.useState(!1),z=p.useRef(null),I=p.useCallback(()=>{z.current!==null&&clearTimeout(z.current),z.current=setTimeout(()=>{v(!0)},100)},[]),F=p.useCallback(()=>{z.current!==null&&clearTimeout(z.current),z.current=setTimeout(()=>{v(!1)},100)},[]);return i?t.jsx(p.StrictMode,{children:n}):t.jsxs(On,{"data-tooltip-id":d,display:a,onMouseLeave:F,onMouseMove:I,ref:m,role:"tooltip",...$,children:[o?t.jsx(S,{clickable:!0,disabled:i,icon:o,iconColor:l,iconSize:c??"xxs",iconType:j?"fa-solid":"fa-light"}):n,G.createPortal(t.jsx(Bn,{$maxWidth:g,children:t.jsxs(s.M,{delayShow:500,disableStyleInjection:"core",float:r==="float"?!0:void 0,globalCloseEvents:{resize:!0},hidden:y||!j,id:d,middlewares:[s.flip({fallbackAxisSideDirection:"start"}),s.offset({mainAxis:10})],noArrow:r==="float",place:f,children:[s.lodashExports.isEmpty(h)?void 0:t.jsx(k,{color:w.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:h}),s.lodashExports.isEmpty(x)?void 0:t.jsx(k,{color:w.palette.gray[100],lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:x}),s.lodashExports.isEmpty(u)?void 0:u]})}),document.getElementById("root")??document.body)]})}),O=p.forwardRef(function({borderRadius:n,disabled:i,icon:a,iconColor:r,iconSize:o="xxs",iconTransform:l,iconType:c,id:d,justify:g="center",onClick:u,px:f,py:x,type:h="button",tooltip:y,tooltipPlace:$,value:m,variant:w="primary",...j},v){const z=t.jsx(Wn,{$borderRadius:n,$px:f,$py:x,$variant:w,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:g,onClick:u,ref:v,type:h,value:m,...j,children:t.jsx(S,{clickable:!1,icon:a,iconColor:r,iconSize:o,iconTransform:l,iconType:c})}),F=(h+(w??"")+(d??a)).replace(/ /u,"_");return y===void 0?z:t.jsx(U,{id:`${F}-tooltip`,place:$,tip:y,children:z})}),Mn=p.forwardRef(function({autoHide:n=!1,children:i,closable:a=!1,onTimeOut:r,show:o=!0,time:l=8,variant:c="error",id:d,...g},u){const[f,x]=p.useState(o),h=p.useCallback(()=>{x(!1)},[]);return p.useEffect(()=>{const y=setTimeout(()=>{r==null||r(!0),n&&h()},l*1e3);return()=>{clearTimeout(y)}},[n,h,l,r]),p.useEffect(()=>{x(o)},[o,x]),t.jsx(b,{display:f?"block":"none",ref:u,role:"alert",...g,children:t.jsxs(Pn,{$variant:c,id:d,children:[t.jsx(S,{clickable:!1,icon:Rn(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(Fn,{children:i}),a?t.jsx(O,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:h,px:.125,py:.125,variant:"ghost"}):void 0]})})}),{getVariant:An}=V(e=>({default:`
|
|
418
418
|
background-color: ${e.palette.gray[200]};
|
|
419
419
|
color: ${e.palette.gray[800]};
|
|
420
420
|
`,error:`
|
|
@@ -489,7 +489,7 @@
|
|
|
489
489
|
background-color: ${e.palette.warning[400]};
|
|
490
490
|
color: ${e.palette.warning[700]};
|
|
491
491
|
}
|
|
492
|
-
`})),
|
|
492
|
+
`})),Hn=s.dt.span`
|
|
493
493
|
${({theme:e,$fontSize:n=e.typography.text.xs,$variant:i})=>`
|
|
494
494
|
align-items: center;
|
|
495
495
|
border-radius: ${e.spacing[i==="technique"?1:.25]};
|
|
@@ -510,9 +510,9 @@
|
|
|
510
510
|
display: flex;
|
|
511
511
|
}
|
|
512
512
|
|
|
513
|
-
${
|
|
513
|
+
${An(e,i)}
|
|
514
514
|
`}
|
|
515
|
-
`,{getVariant:
|
|
515
|
+
`,{getVariant:_n}=V(e=>({highRelevance:`
|
|
516
516
|
color: ${e.palette.primary[500]};
|
|
517
517
|
|
|
518
518
|
&:hover:not([disabled]) {
|
|
@@ -546,13 +546,13 @@
|
|
|
546
546
|
text-decoration: none;
|
|
547
547
|
}
|
|
548
548
|
|
|
549
|
-
${n??
|
|
549
|
+
${n??_n(e,i)}
|
|
550
550
|
`}
|
|
551
|
-
`,
|
|
551
|
+
`,Gn=s.dt.a`
|
|
552
552
|
${lt}
|
|
553
|
-
`,
|
|
553
|
+
`,Vn=s.dt(Re.Link)`
|
|
554
554
|
${lt}
|
|
555
|
-
`,X=({children:e,color:n,download:i,href:a,iconPosition:r="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),g=t.jsx(S,{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(
|
|
555
|
+
`,X=({children:e,color:n,download:i,href:a,iconPosition:r="right",onClick:o,target:l,variant:c="lowRelevance"})=>{const d=a.startsWith("https://"),g=t.jsx(S,{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(Gn,{$color:n,$variant:c,download:i,href:a,onClick:o,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?g:void 0,e,r==="right"?g:void 0]}):t.jsxs(Vn,{$variant:c,download:i,onClick:o,rel:"nofollow noopener noreferrer",target:l,to:a,children:[l!==void 0&&r==="left"?g:void 0,e,l!==void 0&&r==="right"?g:void 0]})},q=({disabled:e,icon:n,iconColor:i="inherit",iconType:a="fa-light",id:r="close-tag",filterValues:o="",fontSize:l,href:c,linkLabel:d,onClose:g,priority:u="default",tagTitle:f="",tagLabel:x,variant:h="default"})=>{const y=x.length>25&&s.lodashExports.isEmpty(f+o),$=`${x.slice(0,25)}...`;return t.jsxs(we,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Hn,{$fontSize:l,$variant:h,className:u,children:[n&&t.jsx(S,{icon:n,iconColor:i,iconSize:"xxs",iconType:a}),t.jsxs("span",{children:[t.jsx("strong",{children:f}),t.jsx("span",{children:y?$:x}),t.jsx("strong",{children:o})]}),g?t.jsx(O,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:g,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(X,{href:c,children:d})]})},Un=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");s.lodashExports.isObject(i)&&(i.opener=null)},D=p.forwardRef(function({children:n,disabled:i=!1,external:a=!1,href:r,id:o,icon:l,name:c,onClick:d,showArrow:g=!1,tag:u,type:f="button",tooltip:x,tooltipPlace:h="bottom",underline:y=!1,value:$,variant:m="primary",...w},j){const v=x!==void 0,z=`${o}-tooltip`,I=p.useCallback(()=>{r&&Un(r,a)},[a,r]);return t.jsx(U,{disabled:!v,id:z,place:h,tip:x,children:t.jsxs(st,{$variant:m,"aria-disabled":i,className:y?"underline":void 0,disabled:i,id:o,name:c,onClick:m==="link"?I:d,ref:j,type:f,value:$,...v?{"data-tooltip-id":z}:{},...w,children:[l!==void 0&&t.jsx(S,{icon:l,iconSize:"xs",iconType:"fa-light"}),n,(g||m==="link")&&t.jsx(S,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"}),u===void 0?null:t.jsx(q,{tagLabel:u,variant:"inactive"})]})})}),ve=({authorEmail:e,date:n,description:i,descriptionColor:a,id:r,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(k,{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(k,{color:a??u.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(k,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(k,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`$Author: ${e}`}),g&&t.jsx(U,{icon:"circle-info",id:r,tip:g})]})]})},Ke=s.dt(b).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
556
556
|
& img {
|
|
557
557
|
display: block;
|
|
558
558
|
}
|
|
@@ -567,7 +567,7 @@
|
|
|
567
567
|
pointer-events: none;
|
|
568
568
|
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
569
569
|
}
|
|
570
|
-
`,
|
|
570
|
+
`,Yn=e=>{if(s._.isNil(e))return"";const n=e.split(".");return(n.length>1?s._.last(n):"").toLowerCase()},qn=(e,n)=>s._.isUndefined(n)?!1:s._.includes(e,Yn(n)),ct=({alt:e,fileType:n,width:i="100%",opacity:a=0,src:r,height:o="auto"})=>n==="video"||qn(["webm"],r)?t.jsx(Ke,{$opacity:a,children:t.jsxs("video",{controls:!0,height:o,muted:!0,width:i,children:[t.jsx("source",{src:r,type:"video/webm"}),t.jsx(X,{href:r,iconPosition:"hidden",children:r})]})}):t.jsx(Ke,{$opacity:a,children:t.jsx("img",{alt:e,height:o,src:r,width:i})}),Kn=({alt:e,authorEmail:n,date:i,description:a,src:r,children:o,isEditing:l,onClick:c,title:d,hideDescription:g=!1,headerType:u="image",showMaximize:f=!0})=>{const x=s.nt(),[h,y]=p.useState(!1),$=p.useCallback(()=>{y(!0)},[]),m=p.useCallback(()=>{y(!1)},[]);return t.jsxs(b,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:x.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:$,onLeave:m,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(ct,{alt:e,fileType:u,height:"147px",opacity:h?.3:0,src:r,width:"100%"}),f?t.jsx(b,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(O,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):o}),g?null:t.jsx(ve,{authorEmail:n,date:i,description:a,descriptionColor:x.palette.gray[600],id:`${e}-card-header`,title:d})]})},Xn=s.dt.div`
|
|
571
571
|
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:a="auto"})=>`
|
|
572
572
|
display: flex;
|
|
573
573
|
background-color: ${e.palette.white};
|
|
@@ -586,7 +586,7 @@
|
|
|
586
586
|
text-align: ${n};
|
|
587
587
|
}
|
|
588
588
|
`}
|
|
589
|
-
`,
|
|
589
|
+
`,Zn=s.dt.ul`
|
|
590
590
|
${({theme:e})=>`
|
|
591
591
|
align-self: center;
|
|
592
592
|
background: ${e.palette.white};
|
|
@@ -601,7 +601,7 @@
|
|
|
601
601
|
scroll-padding: ${e.spacing[.5]};
|
|
602
602
|
width: 95%;
|
|
603
603
|
`}
|
|
604
|
-
`,
|
|
604
|
+
`,Jn=s.dt.li`
|
|
605
605
|
${({theme:e})=>`
|
|
606
606
|
align-items: center;
|
|
607
607
|
color: ${e.palette.gray[800]};
|
|
@@ -634,7 +634,7 @@
|
|
|
634
634
|
cursor: not-allowed;
|
|
635
635
|
}
|
|
636
636
|
`}
|
|
637
|
-
`,dt=({item:e,state:n})=>{const i=p.useRef(null),{optionProps:a,isSelected:r,isFocused:o,isDisabled:l}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},n,i),c=[r?"selected":"",o?"focused":"",l?"disabled":""].join(" ");return t.jsxs(
|
|
637
|
+
`,dt=({item:e,state:n})=>{const i=p.useRef(null),{optionProps:a,isSelected:r,isFocused:o,isDisabled:l}=s.$293f70390ea03370$export$497855f14858aa34({key:e.key},n,i),c=[r?"selected":"",o?"focused":"",l?"disabled":""].join(" ");return t.jsxs(Jn,{...a,className:c,ref:i,children:[e.rendered,r?t.jsx(S,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0]})},_e=({htmlFor:e,label:n,required:i,tooltip:a,weight:r="normal"})=>{const o=s.nt(),l=`${e}-tooltip`,c=a!==void 0&&!s.lodashExports.isEmpty(a);return t.jsxs("label",{className:`flex font-${r} gap-1 w-full`,htmlFor:e,children:[n,i&&t.jsx(S,{icon:"asterisk",iconColor:o.palette.error[500],iconSize:"xxss"}),c?t.jsx(U,{display:"inline-flex",icon:"circle-info",id:l,place:"top",tip:a}):null]})},Qn=s.dt.div`
|
|
638
638
|
${({theme:e})=>`
|
|
639
639
|
align-items: flex-start;
|
|
640
640
|
display: inline-flex;
|
|
@@ -773,7 +773,7 @@
|
|
|
773
773
|
border: 1px solid ${e.palette.gray[600]};
|
|
774
774
|
}
|
|
775
775
|
`}
|
|
776
|
-
`,
|
|
776
|
+
`,M=({children:e,error:n,helpLink:i,helpLinkText:a="Link here",helpText:r,htmlFor:o,label:l,maxLength:c,required:d,tooltip:g,value:u,weight:f})=>{const x=s.nt(),h=u?u.length:0;return t.jsxs(Qn,{children:[l===void 0?void 0:t.jsx(_e,{htmlFor:o,label:l,required:d,tooltip:g,weight:f}),e,n||c?t.jsxs(b,{display:"flex",justify:n===void 0?"end":"space-between",width:"100%",children:[n&&t.jsx(k,{className:"error-msg",color:x.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:n}),c&&t.jsx(q,{priority:"low",tagLabel:`${h}/${c}`,variant:"error"})]}):void 0,r||i?t.jsxs(b,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[r&&t.jsxs(t.Fragment,{children:[t.jsx(S,{icon:"circle-info",iconColor:x.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(k,{color:x.palette.gray[400],display:"inline-block",size:"sm",children:r})]}),i&&t.jsx(X,{href:i,children:a})]}):void 0]})},xe=({className:e,children:n,isFilter:i=!1,popoverRef:a,state:r,triggerRef:o,...l})=>{var f;const c=p.useRef(null),d=(f=o==null?void 0:o.current)==null?void 0:f.getBoundingClientRect(),{popoverProps:g}=s.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:a??c,triggerRef:o,isNonModal:a?!0:void 0},r),u=p.useCallback(x=>{x.preventDefault()},[]);return t.jsx(s.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...g,className:e,onPointerDown:i?u:void 0,ref:a??c,style:{...g.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},ei=({disabled:e=!1,error:n,helpLink:i,helpLinkText:a,helpText:r,label:o,loadingItems:l,name:c,items:d,placeholder:g,register:u,required:f,setValue:x,tooltip:h,value:y,weight:$,...m})=>{var qe;const w=s.nt(),{onChange:j}=m,v=p.useRef(null),z=p.useRef(null),I=p.useRef(null),F=p.useRef(null),W=p.useRef(null),[R,N]=p.useState(((qe=d.find(P=>P.value===y))==null?void 0:qe.name)??""),[E,B]=p.useState(y?String(y):""),[_,be]=p.useState(d),[Ye,ee]=p.useState(!1),{contains:$e}=s.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),Qt=p.useMemo(()=>d.map(P=>$e(P.name,R)||Ye?t.jsx(s.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{children:P.name},P.value):null),[$e,R,d,Ye]),en=p.useCallback(P=>{N(P),P===""?ee(!0):(ee(!1),B(A=>{const te=P===""?"":A;return x&&x(c,te),j&&j(te),te}),be(d.filter(A=>$e(A.name,P))))},[$e,d,c,j,x]),tn=p.useCallback(P=>{var A;N(((A=d.find(te=>te.value===P))==null?void 0:A.name)??""),B(P?String(P):""),x&&x(c,P),j&&j(P?String(P):""),be(d)},[d,c,j,x]),nn=p.useCallback(P=>{P.key==="Enter"&&P.preventDefault(),ee(!1)},[]),Y=s.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsEmptyCollection:!0,autoFocus:!1,inputValue:R,items:_,menuTrigger:"focus",shouldCloseOnBlur:!0,selectedKey:E,onInputChange:en,onKeyDown:nn,onKeyUp:()=>{ee(!0)},onOpenChange(P,A){ee(P&&(A==="manual"||A==="focus"))},onSelectionChange:tn,children:Qt}),{buttonProps:an,inputProps:rn,listBoxProps:on}=s.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:R,buttonRef:z,id:c,inputRef:v,label:o,listBoxRef:I,name:c,placeholder:g,popoverRef:W},Y),{listBoxProps:sn}=s.$c132121280ec012d$export$50eacbbf140a3141(on,Y,I),{buttonProps:ln}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(an,z);return p.useEffect(()=>{var P;l===!1&&N(((P=d.find(A=>A.value===y))==null?void 0:P.name)??"")},[d,l,y]),t.jsxs(M,{error:n,helpLink:i,helpLinkText:a,helpText:r,htmlFor:c,label:o,required:f,tooltip:h,weight:$,children:[t.jsxs(K,{className:`${e?"disabled":""} ${n?"error":""}`,ref:F,children:[t.jsx("input",{...u?u(c,{required:f}):{},...rn,"aria-invalid":n?"true":"false","aria-label":c,disabled:e,ref:v}),n?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:w.palette.error[500],iconSize:"xs"}):void 0,t.jsx(O,{...ln,className:"action",icon:Y.isOpen?"chevron-up":"chevron-down",iconColor:w.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:z,type:"button",variant:"ghost"})]}),Y.isOpen&&Y.collection.size>0&&!e?t.jsx(xe,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:W,state:Y,triggerRef:F,children:t.jsx(Zn,{...sn,ref:I,children:[...Y.collection].map(P=>t.jsx(dt,{item:P,state:Y},P.key))})}):null]})},ti=s.dt.div`
|
|
777
777
|
${({theme:e})=>`
|
|
778
778
|
align-items: center;
|
|
779
779
|
color: ${e.palette.gray[800]};
|
|
@@ -794,7 +794,7 @@
|
|
|
794
794
|
display: none;
|
|
795
795
|
}
|
|
796
796
|
`}
|
|
797
|
-
`,
|
|
797
|
+
`,ni=s.dt.div.attrs({className:"year-selection"})`
|
|
798
798
|
align-items: flex-start;
|
|
799
799
|
display: flex;
|
|
800
800
|
flex-direction: column;
|
|
@@ -826,9 +826,9 @@
|
|
|
826
826
|
text-align: center;
|
|
827
827
|
width: ${e.spacing[2.5]};
|
|
828
828
|
`}
|
|
829
|
-
`,
|
|
829
|
+
`,ii=s.dt.th`
|
|
830
830
|
${pt}
|
|
831
|
-
`,
|
|
831
|
+
`,ai=s.dt.td`
|
|
832
832
|
${({theme:e})=>`
|
|
833
833
|
${pt}
|
|
834
834
|
height: ${e.spacing[2.5]};
|
|
@@ -878,7 +878,7 @@
|
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
`}
|
|
881
|
-
`,
|
|
881
|
+
`,ri=s.dt.div.attrs({className:"dot"})`
|
|
882
882
|
position: absolute;
|
|
883
883
|
top: 48%;
|
|
884
884
|
|
|
@@ -905,9 +905,9 @@
|
|
|
905
905
|
padding: 0 ${e.spacing[.25]};
|
|
906
906
|
width: 100%;
|
|
907
907
|
`}
|
|
908
|
-
`,gt=({state:e,date:n})=>{const i=p.useRef(null),a=s.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,s.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,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,
|
|
908
|
+
`,gt=({state:e,date:n})=>{const i=p.useRef(null),a=s.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,s.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,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,f=l&&!c&&!(g||u)?"range":"";return t.jsx(ai,{id:f,...r,children:t.jsxs("div",{...o,className:`cell ${g||u?"selected":""}
|
|
909
909
|
${c?"disabled":""} ${a?"today":""}
|
|
910
|
-
${!e.isFocused&&!a?"focused":""} ${
|
|
910
|
+
${!e.isFocused&&!a?"focused":""} ${f}`,ref:i,children:[d,a?t.jsx(ri,{children:t.jsx(S,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},Se=({state:e,...n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:a}=s.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),r=s.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,i);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(Xe,{children:a.map((o,l)=>{const c=`key_${l}`;return t.jsx(ii,{children:o},c)})})}),t.jsx("tbody",{children:[...new Array(r).keys()].map(o=>t.jsx(Xe,{children:e.getDatesInWeek(o).map((l,c)=>{const d=`key_${c}`;return l?t.jsx(gt,{date:l,state:e},d):t.jsx("td",{},d)})},o))})]})},oi=s.dt(Ae)`
|
|
911
911
|
align-items: center;
|
|
912
912
|
background-color: inherit;
|
|
913
913
|
border-color: inherit;
|
|
@@ -927,7 +927,7 @@
|
|
|
927
927
|
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
928
928
|
cursor: pointer;
|
|
929
929
|
}
|
|
930
|
-
`,
|
|
930
|
+
`,si=s.dt.div`
|
|
931
931
|
${({theme:e})=>`
|
|
932
932
|
align-items: flex-start;
|
|
933
933
|
background: ${e.palette.white};
|
|
@@ -941,7 +941,7 @@
|
|
|
941
941
|
padding: ${e.spacing[.25]};
|
|
942
942
|
width: 292px;
|
|
943
943
|
`}
|
|
944
|
-
`,
|
|
944
|
+
`,li=s.dt.button`
|
|
945
945
|
${({theme:e,$disabled:n,$focus:i,$header:a})=>{const r=i?"34px":"40px";return`
|
|
946
946
|
align-items: center;
|
|
947
947
|
border-radius: ${a?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
|
|
@@ -956,7 +956,7 @@
|
|
|
956
956
|
background-color: ${e.palette.gray[n?500:100]};
|
|
957
957
|
}
|
|
958
958
|
`}}
|
|
959
|
-
`,
|
|
959
|
+
`,ci=s.dt.div`
|
|
960
960
|
${({theme:e})=>`
|
|
961
961
|
align-items: center;
|
|
962
962
|
background: transparent;
|
|
@@ -967,7 +967,7 @@
|
|
|
967
967
|
justify-content: space-between;
|
|
968
968
|
width: calc(100% - 40px);
|
|
969
969
|
`}
|
|
970
|
-
`,
|
|
970
|
+
`,di=s.dt.div`
|
|
971
971
|
align-items: center;
|
|
972
972
|
display: flex;
|
|
973
973
|
justify-content: flex-end;
|
|
@@ -1005,7 +1005,7 @@
|
|
|
1005
1005
|
font-weight: ${e.typography.weight.bold};
|
|
1006
1006
|
}
|
|
1007
1007
|
`}
|
|
1008
|
-
`,je=({disabled:e=!1,icon:n,props:i})=>{const a=p.useRef(null),{buttonProps:r}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,a);return t.jsx(
|
|
1008
|
+
`,je=({disabled:e=!1,icon:n,props:i})=>{const a=p.useRef(null),{buttonProps:r}=s.$701a24aa0da5b062$export$ea18c227d4417cc3(i,a);return t.jsx(li,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:a,type:"button",children:t.jsx(S,{icon:n,iconColor:C.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},ze=({state:e,prevButtonProps:n,nextButtonProps:i,title:a})=>{const r=e.focusedDate,o=p.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),l=p.useCallback(()=>{e.setFocusedDate(r.subtract({years:1}))},[r,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(je,{icon:"chevron-left",props:n}),t.jsxs(ti,{children:[a,t.jsxs(ni,{children:[t.jsx(Ze,{"aria-label":"top",onClick:o,children:t.jsx(S,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(Ze,{"aria-label":"bottom",onClick:l,children:t.jsx(S,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(je,{icon:"chevron-right",props:i})]})},ut=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=s.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:o,title:l}=s.$9942cad8a072a530$export$3ee915f8151bd4f1(n,a);return t.jsxs("div",{className:"calendar",children:[t.jsx(ze,{nextButtonProps:o,prevButtonProps:r,state:a,title:l}),t.jsx(Se,{state:a}),t.jsx(Ge,{children:t.jsx(D,{onClick:e,variant:"ghost",children:"Cancel"})})]})},xt=({segment:e,state:n})=>{const i=s.nt(),a=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,a),c=i.palette.gray[o.isEditable?800:500];return t.jsx("div",{...o.type!=="literal"&&{...l,className:"segment-cell"},ref:a,style:o.type==="literal"?void 0:{color:o.isPlaceholder?i.palette.gray[400]:c},children:o.isPlaceholder?o.placeholder:o.text})},ft=({disabled:e,error:n=!1,props:i})=>{const a=s.nt(),r=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,r),c=p.useCallback(d=>{const g=document.getElementsByClassName("segment-cell"),u=d.currentTarget;Object.values(g).some(f=>f.contains(u))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(ci,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:a.palette.gray[s.lodashExports.isNil(o.value)?400:800]},tabIndex:-1,children:o.segments.map((d,g)=>{const u=`key_${g}`;return t.jsx(xt,{segment:{...d,isEditable:!e},state:o},u)})}),n?t.jsx(S,{icon:"exclamation-circle",iconColor:a.palette.error[500],iconSize:"xs"}):void 0]})},ht=e=>{const n=p.useRef(null),i=s.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:a}=i,r=!s.lodashExports.isNil(a)&&a.hour<12?"AM":"PM",[o,l]=p.useState(s.lodashExports.isNil(a)?"AM":r),{fieldProps:c}=s.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=p.useCallback(g=>{const u=g.currentTarget.name;u!==o&&(s.lodashExports.isNil(a)||(u==="AM"?i.setSegment("dayPeriod",0):u==="PM"&&i.setSegment("dayPeriod",12))),l(u)},[o,i,a]);return t.jsxs(di,{children:[t.jsx(Je,{...c,ref:n,children:i.segments.slice(0,-2).map((g,u)=>{const f=`key_${u}`;return t.jsx(xt,{segment:g,state:i},f)})}),t.jsxs(Je,{children:[t.jsx(Qe,{id:o==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(Qe,{id:o==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},bt=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD"):"-",pi=e=>e&&e!=="-"?s.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",gi=e=>e&&e!=="-"?s.dayjs(e).format("YYYY/MM/DD hh:mm A"):"-",ae=({error:e,buttonProps:n,datePickerRef:i,disabled:a=!1,granularity:r="day",fieldProps:o,groupProps:l,name:c,register:d,required:g,setValue:u,value:f})=>{const x=p.useCallback(h=>{o.onChange&&o.onChange(h),u&&u(c,r==="day"?bt(String(h)):pi(String(h)))},[o,r,c,u]);return t.jsxs(K,{...l,className:`${a?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(ft,{disabled:a,error:e!=null,props:{...o,autoFocus:!1,granularity:r,onChange:x,shouldForceLeadingZeros:!0}}),t.jsx(je,{disabled:a,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{...d==null?void 0:d(c,{required:g}),"aria-label":c,className:"date-input",disabled:a,id:c,name:c,type:"text",value:f})]})},Ie=({children:e,...n})=>{const i=p.useRef(null),{dialogProps:a}=s.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(si,{...a,ref:i,children:e})},$t=({disabled:e=!1,error:n,helpLink:i,helpLinkText:a,helpText:r,required:o,label:l,name:c,register:d,setValue:g,tooltip:u,watch:f,...x})=>{const h=p.useRef(null),y=f==null?void 0:f(c),$=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...x,value:s._.isNil(y)||s._.isEmpty(y)||y==="-"?null:s.$fae977aafc393c5c$export$6b862160d295c8e(y.replace(/\//gu,"-"))}),{close:m}=$,{groupProps:w,fieldProps:j,buttonProps:v,dialogProps:z,calendarProps:I}=s.$6057a3d2a53a12fd$export$42df105a73306d51({...x,"aria-label":l??c,name:c},$,h),F=p.useCallback(W=>{I.onChange&&I.onChange(W),g&&g(c,bt(W.toString()))},[I,c,g]);return t.jsxs(M,{error:n,helpLink:i,helpLinkText:a,helpText:r,htmlFor:c,label:l,required:o,tooltip:u,children:[t.jsx(ae,{buttonProps:v,datePickerRef:h,disabled:e,error:n,fieldProps:j,groupProps:w,name:c,register:d,required:o,setValue:g,value:y}),$.isOpen&&!e?t.jsx(xe,{offset:8,placement:"bottom start",state:$,triggerRef:h,children:t.jsx(Ie,{...z,children:t.jsx(ut,{onClose:m,props:{...I,onChange:F}})})}):null]})},yt=({onClose:e,props:n})=>{const{locale:i}=s.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),a=p.useRef(null),r=s.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:s.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:o,nextButtonProps:l,title:c}=s.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,a);return t.jsxs("div",{className:"calendar-range",ref:a,children:[t.jsx(ze,{nextButtonProps:l,prevButtonProps:o,state:r,title:c}),t.jsx(Se,{state:r}),t.jsx(Ge,{children:t.jsx(D,{onClick:e,variant:"ghost",children:"Cancel"})})]})},ui=s.dt.div`
|
|
1009
1009
|
${({theme:e,$disabled:n,$show:i})=>`
|
|
1010
1010
|
border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
|
|
1011
1011
|
display: flex;
|
|
@@ -1016,7 +1016,7 @@
|
|
|
1016
1016
|
background: ${n?e.palette.gray[200]:e.palette.white};
|
|
1017
1017
|
}
|
|
1018
1018
|
`}
|
|
1019
|
-
`,
|
|
1019
|
+
`,xi=({disabled:e=!1,error:n,label:i,name:a,required:r,tooltip:o,register:l,setValue:c,...d})=>{const g=`${a}Max`,u=`${a}Min`,f=p.useRef(null),x=s.$93c38a5e28be6249$export$e50a61c1de9f574(d),{close:h}=x,{groupProps:y,startFieldProps:$,endFieldProps:m,buttonProps:w,dialogProps:j,calendarProps:v}=s.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...d,"aria-label":i??a},x,f),z=p.useCallback(I=>{I&&v.onChange&&v.onChange(I)},[v]);return t.jsxs(M,{error:n,htmlFor:a,label:i,required:r,tooltip:o,children:[t.jsxs(ui,{$disabled:e,$show:n!==void 0,ref:f,children:[t.jsx(ae,{buttonProps:w,datePickerRef:f,disabled:e,error:n,fieldProps:{...$,"aria-label":`${$["aria-label"]} ${a}`,validate:I=>m.value&&I>m.value?"Start date must be less than or equal to end date":null},groupProps:y,name:u,register:l,setValue:c}),t.jsx(ae,{buttonProps:w,datePickerRef:f,disabled:e,error:n,fieldProps:{...m,"aria-label":`${m["aria-label"]} ${a}`,validate:I=>$.value&&I<$.value?"End date must be greater than or equal to start date":null},groupProps:y,name:g,register:l,setValue:c})]}),x.isOpen&&!e?t.jsx(xe,{offset:8,placement:"bottom start",state:x,triggerRef:f,children:t.jsx(Ie,{...j,children:t.jsx(yt,{onClose:h,props:{...v,onChange:z}})})}):null]})},fi=s.dt.div`
|
|
1020
1020
|
${({theme:e})=>`
|
|
1021
1021
|
align-items: center;
|
|
1022
1022
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -1025,32 +1025,32 @@
|
|
|
1025
1025
|
justify-content: center;
|
|
1026
1026
|
padding: ${e.spacing[.5]} ${e.spacing[1.25]};
|
|
1027
1027
|
`}
|
|
1028
|
-
`,
|
|
1028
|
+
`,hi=s.dt.div`
|
|
1029
1029
|
align-items: center;
|
|
1030
1030
|
display: flex;
|
|
1031
1031
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1032
1032
|
justify-content: flex-end;
|
|
1033
1033
|
flex: 1 0 0;
|
|
1034
|
-
`,mt=({handleTimeChange:e,onClose:n,props:i,timeState:a})=>{const r=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(ze,{nextButtonProps:d,prevButtonProps:c,state:l,title:g}),t.jsx(Se,{state:l}),t.jsxs(
|
|
1035
|
-
${e?"disabled":""} ${o?"error":""} ${
|
|
1036
|
-
`,children:[n?t.jsx(S,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":o?"true":"false","aria-label":g,"aria-required":j,autoComplete:"off",className:u?"sr-block":"","data-testid":`${g}-input`,disabled:e,id:g,onKeyDown:
|
|
1034
|
+
`,mt=({handleTimeChange:e,onClose:n,props:i,timeState:a})=>{const r=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(ze,{nextButtonProps:d,prevButtonProps:c,state:l,title:g}),t.jsx(Se,{state:l}),t.jsxs(fi,{children:[t.jsx(k,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(hi,{children:t.jsx(ht,{hourCycle:12,label:"time-field",onChange:e,value:a.timeValue})})]}),t.jsx(Ge,{children:t.jsx(D,{onClick:n,variant:"ghost",children:"Cancel"})})]})},bi=e=>{const{disabled:n=!1,error:i,required:a,label:r,name:o,tooltip:l,register:c,setValue:d,watch:g}=e,u=g==null?void 0:g(o),f=p.useRef(null),x=s.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:a,shouldCloseOnSelect:!1,value:s._.isNil(u)||s._.isEmpty(u)||u==="-"?null:s.$fae977aafc393c5c$export$588937bcd60ade55(u.replace(/\//gu,"-"))}),{close:h}=x,{groupProps:y,fieldProps:$,buttonProps:m,dialogProps:w,calendarProps:j}=s.$6057a3d2a53a12fd$export$42df105a73306d51(e,x,f),v=p.useCallback(I=>{j.onChange&&j.onChange(I),d==null||d(o,gi(String(I).replace(/-/gu,"/")))},[j,o,d]),z=p.useCallback(I=>{I&&x.setTimeValue(I)},[x]);return t.jsxs(M,{error:i,htmlFor:o,label:r,required:a,tooltip:l,children:[t.jsx(ae,{buttonProps:m,datePickerRef:f,disabled:n,error:i,fieldProps:$,granularity:"minute",groupProps:y,name:o,register:c,setValue:d,value:u}),x.isOpen&&!n?t.jsx(xe,{offset:8,placement:"bottom start",state:x,triggerRef:f,children:t.jsx(Ie,{...w,children:t.jsx(mt,{handleTimeChange:z,onClose:h,props:{...j,onChange:v},timeState:x})})}):null]})},$i=({children:e,currentValue:n,externalLink:i,isEditing:a,label:r,name:o,tooltip:l})=>{if(a)return t.jsx("div",{children:e});const c=s.lodashExports.isNil(n)?"":n,d=String(i??c);return t.jsxs(b,{children:[t.jsx(_e,{htmlFor:o,label:r,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(X,{href:d,children:c}):t.jsx(k,{size:"md",children:c})]})},wt=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:a,helpText:r,error:o,isValid:l,isTouched:c,label:d,name:g,maskValue:u=!1,onPaste:f,placeholder:x,register:h,tooltip:y,type:$="text",weight:m,...w})=>{const{required:j,onBlur:v,onChange:z}=w,I=s.nt(),F=l&&c&&!e,W=p.useCallback(R=>{R.key==="Enter"&&R.preventDefault()},[]);return t.jsx(M,{error:o,helpLink:i,helpLinkText:a,helpText:r,htmlFor:g,label:d,required:j,tooltip:y,weight:m,children:t.jsxs(K,{className:`
|
|
1035
|
+
${e?"disabled":""} ${o?"error":""} ${F?"success":""}
|
|
1036
|
+
`,children:[n?t.jsx(S,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":o?"true":"false","aria-label":g,"aria-required":j,autoComplete:"off",className:u?"sr-block":"","data-testid":`${g}-input`,disabled:e,id:g,onKeyDown:W,onPaste:f,placeholder:x,type:$,...h?h(g,{required:j,onBlur:v,onChange:z}):{...w}}),o?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:I.palette.error[500],iconSize:"xs"}):void 0,F?t.jsx(S,{icon:"check-circle",iconClass:"success-icon",iconColor:I.palette.success[500],iconSize:"xs"}):void 0]})})},yi=s.dt(rt)`
|
|
1037
1037
|
white-space: nowrap;
|
|
1038
1038
|
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1039
1039
|
text-overflow: ellipsis;
|
|
1040
1040
|
overflow: hidden;
|
|
1041
1041
|
max-width: 80%;
|
|
1042
|
-
`,
|
|
1042
|
+
`,mi=s.dt.input`
|
|
1043
1043
|
opacity: 0;
|
|
1044
1044
|
position: absolute;
|
|
1045
1045
|
visibility: hidden;
|
|
1046
1046
|
width: 0;
|
|
1047
|
-
`,De=(e,n,i)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:n,value:i}}),a},
|
|
1047
|
+
`,De=(e,n,i)=>{const a=new Event(e);return Object.defineProperty(a,"target",{value:{name:n,value:i}}),a},wi=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},ji=({accept:e,disabled:n=!1,error:i,label:a,helpLink:r,helpText:o,id:l,multiple:c,name:d,onChange:g,required:u,register:f,setValue:x,tooltip:h,watch:y,weight:$})=>{const m=s.nt(),w=p.useRef(null),j=y==null?void 0:y(d),v=wi(j),z=f==null?void 0:f(d,{required:u}),I=p.useCallback(()=>{const R=De("change",d,void 0);x&&x(d,""),z&&z.onChange(R)},[z,d,x]),F=p.useCallback(R=>{const{files:N}=R.currentTarget,E=De("change",d,N&&N.length>0?N:void 0);g==null||g(E),z&&z.onChange(E)},[z,d,g]),W=p.useCallback(R=>{n?R.preventDefault():w.current&&w.current.click()},[n]);return t.jsxs(M,{error:i,helpLink:r,helpText:o,htmlFor:l??d,label:a,required:u,tooltip:h,weight:$,children:[t.jsxs(K,{className:`${n?"disabled":""} ${i?"error":""}`,children:[t.jsx(yi,{$size:"xs",children:v}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[s.lodashExports.isEmpty(v)?void 0:t.jsx(O,{color:m.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:I,variant:"ghost",width:"20px"}),i&&t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"})]}),t.jsxs(D,{border:n?`1px solid ${m.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:W,variant:"primary",width:"96px",children:[t.jsx(S,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]}),t.jsx(mi,{...z&&{ref:z.ref,onBlur:z.onBlur},accept:e,"aria-label":d,"data-testid":d,disabled:n,id:l??d,multiple:c,name:d,onChange:F,onClick:I,ref:w,required:void 0,type:"file",value:void 0})]})},ki=s.dt.input`
|
|
1048
1048
|
border: none;
|
|
1049
1049
|
background: transparent;
|
|
1050
1050
|
min-width: 15rem;
|
|
1051
1051
|
padding: 0;
|
|
1052
1052
|
flex: 1;
|
|
1053
|
-
`,Pe=({disabled:e=!1,error:n,field:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:g,placeholder:u,required:
|
|
1053
|
+
`,Pe=({disabled:e=!1,error:n,field:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:g,placeholder:u,required:f,tooltip:x,value:h,weight:y})=>{const $=s.nt(),[m,w]=p.useState(""),j=d?h:i==null?void 0:i.value,v=p.useMemo(()=>j&&typeof j=="string"?j.split(",").filter(Boolean):[],[j]),z=p.useCallback(N=>{const B=[...new Set(N.filter(Boolean))].join(","),_=De("change",c,B);i&&i.onChange(_),d&&d(_)},[i,c,d]),I=p.useCallback(N=>{w(N.target.value)},[]),F=p.useCallback(N=>{const E=m.trim();E.length&&!v.includes(E)&&(N.preventDefault(),z([...v,E]),w("")),i&&i.onBlur()},[m,i,z,v]),W=p.useCallback(N=>{const E=m.trim();N.key==="Enter"&&E.length===0&&N.preventDefault(),["Enter",","].includes(N.key)&&E.length>0&&!v.includes(E)?(N.preventDefault(),z([...v,E]),w("")):N.key==="Backspace"&&!E.length&&v.length&&(N.preventDefault(),g==null||g(v[v.length-1]),z(v.slice(0,-1)))},[m,g,z,v]),R=p.useCallback(N=>()=>{g==null||g(N),z(v.filter(E=>E!==N))},[g,z,v]);return t.jsx(M,{error:n,helpLink:a,helpLinkText:r,helpText:o,htmlFor:c,label:l,required:f,tooltip:x,weight:y,children:t.jsxs(K,{$overflowX:"auto",className:`${e?"disabled":""} ${n?"error":""}`,children:[v.map(N=>t.jsx(q,{disabled:e,onClose:R(N),tagLabel:N},N)),t.jsx(ki,{"aria-hidden":!1,"aria-invalid":n?"true":"false","aria-label":c,"aria-required":f,autoComplete:"off",id:c,onBlur:F,onChange:I,onKeyDown:W,placeholder:v.length===0?u:void 0,ref:i==null?void 0:i.ref,type:"text",value:m}),n?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"xs"}):void 0]})})},Ci=({disabled:e=!1,control:n,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c="input-tag",onChange:d,onRemove:g,placeholder:u,required:f,tooltip:x,value:h,weight:y})=>n?t.jsx(s.Controller,{control:n,name:c,render:({field:$})=>t.jsx(Pe,{disabled:e,error:i,field:$,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onRemove:g,placeholder:u,required:f,tooltip:x,weight:y}),rules:{required:f}}):t.jsx(Pe,{disabled:e,error:i,helpLink:a,helpLinkText:r,helpText:o,label:l,name:c,onChange:d,onRemove:g,placeholder:u,required:f,tooltip:x,value:h,weight:y}),Fe=p.forwardRef(function({disabled:n,icon:i,margin:a,onClick:r,...o},l){return t.jsx(oi,{$margin:a,"aria-label":i,className:"action-btn",disabled:n,onClick:r,ref:l,type:"button",...o,children:t.jsx(S,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),ke=({error:e,decimalPlaces:n=0,disabled:i=!1,id:a,maxLength:r,max:o=1/0,min:l=0,name:c,onChange:d,placeholder:g,register:u,required:f,setValue:x,value:h})=>{const y=s.nt(),$=p.useMemo(()=>n<0?0:n,[n]),m=p.useMemo(()=>h===void 0?0:s._.toNumber(h),[h]),w=p.useCallback(()=>{const I=(m-10**-$).toFixed($);x&&x(c,Math.max(Number(l),Number(I)))},[$,m,l,c,x]),j=p.useCallback(()=>{const I=(m+10**-$).toFixed($);x&&x(c,Math.min(Number(o),Number(I)>Number(l)?Number(I):Number(l)))},[$,m,o,l,c,x]),v=p.useCallback(I=>{const{value:F}=I.target,W=/\d+/u.test(F)&&!s._.isEmpty(F);x&&x(c,W?Number(F):void 0),d&&d(I)},[c,d,x]),z=p.useCallback(I=>{I.key==="Enter"&&I.preventDefault()},[]);return t.jsxs(K,{className:`${i?"disabled":""} ${e?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":e?"true":"false","aria-label":c,"aria-required":f,autoComplete:"off",disabled:i,id:a??c,max:o,min:l,onKeyDown:z,placeholder:g,required:f,step:10**-$,type:"number",...u==null?void 0:u(c,{required:f,maxLength:r,max:o,min:l,onChange:v})}),e&&t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:y.palette.error[500],iconSize:"xs"}),t.jsx(Fe,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:w,px:.75,py:.75}),t.jsx(Fe,{borderRadius:`0 ${y.spacing[.5]} ${y.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:j,px:.75,py:.75})]})},jt=({decimalPlaces:e,disabled:n=!1,error:i,helpLink:a,helpText:r,id:o,label:l,maxLength:c,max:d,min:g,name:u,onChange:f,placeholder:x,register:h,required:y,setValue:$,tooltip:m,value:w,watch:j,weight:v})=>t.jsx(M,{error:i,helpLink:a,helpText:r,htmlFor:u,label:l,maxLength:c,required:y,tooltip:m,weight:v,children:t.jsx(ke,{decimalPlaces:e,disabled:n,error:i,id:o,max:d,maxLength:c,min:g,name:u,onChange:f,placeholder:x,register:h,required:y,setValue:$,value:f?w:j==null?void 0:j(u)})}),vi=({disabled:e=!1,error:n,name:i,label:a,propsMax:r,propsMin:o,required:l,tooltip:c})=>{const d=`${i}Max`,g=`${i}Min`;return t.jsx(M,{error:n,htmlFor:i,label:a,required:l,tooltip:c,children:t.jsxs(b,{display:"flex",gap:.25,width:"100%",children:[t.jsx(ke,{...o,disabled:e,error:n,name:d}),t.jsx(ke,{...r,disabled:e,error:n,name:g})]})})},Si=s.dt.div`
|
|
1054
1054
|
${({theme:e})=>`
|
|
1055
1055
|
align-items: flex-start;
|
|
1056
1056
|
align-self: stretch;
|
|
@@ -1090,7 +1090,7 @@
|
|
|
1090
1090
|
}
|
|
1091
1091
|
}
|
|
1092
1092
|
`}
|
|
1093
|
-
`,
|
|
1093
|
+
`,zi=s.dt.button`
|
|
1094
1094
|
${({theme:e})=>`
|
|
1095
1095
|
align-items: center;
|
|
1096
1096
|
background: inherit;
|
|
@@ -1106,7 +1106,7 @@
|
|
|
1106
1106
|
cursor: not-allowed;
|
|
1107
1107
|
}
|
|
1108
1108
|
`}
|
|
1109
|
-
`,
|
|
1109
|
+
`,Ii=s.dt.ul`
|
|
1110
1110
|
${({theme:e})=>`
|
|
1111
1111
|
align-items: flex-start;
|
|
1112
1112
|
box-shadow: ${e.shadows.md};
|
|
@@ -1119,7 +1119,7 @@
|
|
|
1119
1119
|
scrollbar-width: thin;
|
|
1120
1120
|
width: max-content;
|
|
1121
1121
|
`}
|
|
1122
|
-
`,
|
|
1122
|
+
`,Ti=s.dt.li`
|
|
1123
1123
|
${({theme:e})=>`
|
|
1124
1124
|
align-items: center;
|
|
1125
1125
|
background: ${e.palette.white};
|
|
@@ -1136,16 +1136,16 @@
|
|
|
1136
1136
|
background: ${e.palette.gray[100]};
|
|
1137
1137
|
}
|
|
1138
1138
|
`}
|
|
1139
|
-
`,
|
|
1139
|
+
`,Ni=s.dt.p`
|
|
1140
1140
|
color: ${({theme:e})=>e.palette.gray[800]};
|
|
1141
1141
|
font-size: inherit;
|
|
1142
1142
|
min-width: 55%;
|
|
1143
1143
|
overflow: hidden;
|
|
1144
1144
|
text-overflow: ellipsis;
|
|
1145
1145
|
white-space: nowrap;
|
|
1146
|
-
`,Z=(e,n,i=!1)=>{p.useEffect(()=>{var r;const a=o=>{e&&!e.contains(o.target)&&n()};return i?(document.addEventListener("click",a,!0),()=>{document.removeEventListener("click",a,!0)}):((r=document.getElementById("root"))==null||r.addEventListener("click",a,!0),()=>{var o;(o=document.getElementById("root"))==null||o.removeEventListener("click",a,!0)})},[i,e,n])},
|
|
1146
|
+
`,Z=(e,n,i=!1)=>{p.useEffect(()=>{var r;const a=o=>{e&&!e.contains(o.target)&&n()};return i?(document.addEventListener("click",a,!0),()=>{document.removeEventListener("click",a,!0)}):((r=document.getElementById("root"))==null||r.addEventListener("click",a,!0),()=>{var o;(o=document.getElementById("root"))==null||o.removeEventListener("click",a,!0)})},[i,e,n])},Ei=({disabled:e,error:n,label:i,name:a,placeholder:r,required:o,register:l,tooltip:c,value:d,weight:g})=>{const u=s.nt(),f=p.useRef(null),[x,h]=p.useState(!1),[y,$]=p.useState(""),{refs:m,floatingStyles:w}=s.useFloating({placement:"bottom-start",whileElementsMounted:s.autoUpdate}),{inputValue:j,handlePhoneValueChange:v,country:z,setCountry:I}=s.ee({countries:s.R,defaultCountry:"us",forceDialCode:!0,value:d?String(d):void 0}),F=p.useCallback(()=>{h(E=>!E),x||$("")},[x]),W=p.useCallback(E=>()=>{I(E),h(!1),$("")},[I,h]),R=p.useCallback(E=>{E.key.length===1?$(B=>B+E.key):E.key==="Backspace"&&$(B=>B.slice(0,-1))},[]),N=s.R.filter(E=>{const{name:B}=s.M$1(E);return B.toLowerCase().includes(y.toLowerCase())});return Z(m.floating.current,()=>{h(!1),$("")},!0),t.jsx(M,{error:n,htmlFor:a,label:i,required:o,tooltip:c,weight:g,children:t.jsxs(Si,{className:`${e?"disabled":""} ${n?"error":""}`,ref:f,children:[t.jsxs(zi,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:F,onKeyDown:R,ref:m.setReference,children:[t.jsx(s.q,{iso2:z.iso2,size:"16px"}),t.jsx(S,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(K,{className:`${e?"disabled":""} ${n?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":n?"true":"false","aria-label":a,"aria-required":o,autoComplete:"off","data-testid":`${a}-input`,disabled:e,id:a,name:a,placeholder:r,type:"tel",value:j,...l==null?void 0:l(a,{required:o,onChange:v})}),n?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),x&&G.createPortal(t.jsx(Ii,{ref:m.setFloating,style:w,children:N.map(E=>{const{dialCode:B,iso2:_,name:be}=s.M$1(E);return t.jsxs(Ti,{onClick:W(_),value:_,children:[t.jsx(s.q,{iso2:_,size:"16px"}),t.jsx(Ni,{children:be}),t.jsx(k,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+B})]},_)})}),document.getElementById("root")??document.body)]})})},Ri=({disabled:e=!1,error:n,helpLink:i,helpText:a,isTouched:r,isValid:o,label:l,name:c="input-text",id:d,maskValue:g=!1,maxLength:u,placeholder:f,register:x,required:h,rows:y,tooltip:$,watch:m,weight:w})=>{const j=s.nt(),v=m==null?void 0:m(c),z=o&&r&&!e;return t.jsx(M,{error:n,helpLink:i,helpText:a,htmlFor:c,label:l,maxLength:u,required:h,tooltip:$,value:v?String(v):void 0,weight:w,children:t.jsxs(K,{className:`
|
|
1147
1147
|
${e?"disabled":""} ${n?"error":""} ${z?"success":""}
|
|
1148
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":n?"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:
|
|
1148
|
+
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":n?"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:f,rows:y,...x==null?void 0:x(c,{required:h})}),n?t.jsx(S,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:j.palette.error[500],iconSize:"xs"}):void 0,z?t.jsx(S,{icon:"check-circle",iconClass:"success-icon",iconColor:j.palette.success[500],iconSize:"xs"}):void 0]})})},Di=({description:e,disabled:n,id:i,align:a,inputType:r="text",inputNumberProps:o,minHeight:l,minWidth:c,name:d,placeholder:g,tooltip:u,title:f})=>{const x=p.useMemo(()=>{if(r==="text")return t.jsx(wt,{disabled:n,name:d,placeholder:g});if(r==="date")return t.jsx($t,{disabled:n,name:d});const{decimalPlaces:h,max:y,min:$}=o??{};return t.jsx(jt,{decimalPlaces:h,disabled:n,max:y,min:$,name:d,placeholder:g})},[n,o,r,d,g]);return t.jsxs(Xn,{$align:a,$minHeight:l,$minWidth:c,children:[t.jsx(ve,{description:e,id:i,title:f,tooltip:u}),x]})},Pi=s.dt.label`
|
|
1149
1149
|
${({theme:e})=>`
|
|
1150
1150
|
align-items: start;
|
|
1151
1151
|
color: ${e.palette.gray[600]};
|
|
@@ -1217,7 +1217,7 @@
|
|
|
1217
1217
|
fill: ${e.palette.white};
|
|
1218
1218
|
}
|
|
1219
1219
|
`}
|
|
1220
|
-
`,Te=p.forwardRef(function({disabled:n=!1,label:i,name:a,onChange:r,onClick:o,onFocus:l,onKeyDown:c,value:d,...g},u){return t.jsxs(
|
|
1220
|
+
`,Te=p.forwardRef(function({disabled:n=!1,label:i,name:a,onChange:r,onClick:o,onFocus:l,onKeyDown:c,value:d,...g},u){return t.jsxs(Pi,{"aria-disabled":n,children:[t.jsx("input",{"aria-disabled":n,"aria-label":a,disabled:n,id:a,name:a,onChange:r,onClick:o,onFocus:l,onKeyDown:c,ref:u,type:"checkbox",value:d,...g}),t.jsx(S,{disabled:n,icon:"check",iconSize:"sm"}),i??d]})}),kt=({options:e,title:n,checkboxesName:i,onChange:a})=>{const r=s.nt(),[o,l]=p.useState(!1),c=p.useCallback(()=>{l(d=>!d)},[]);return t.jsxs(b,{bgColor:o?r.palette.gray[50]:r.palette.white,border:"1px solid"+r.palette.gray[300],borderRadius:"8px",display:"inline-flex",flexDirection:"column",gap:1.25,px:.75,py:.625,width:"100%",children:[t.jsxs(b,{alignItems:"center",cursor:"pointer",display:"flex",onClick:c,children:[t.jsx(L,{size:"xs",children:n}),t.jsx(S,{icon:o?"chevron-up":"chevron-down",iconColor:r.palette.gray[400],iconSize:"xs"})]}),o?t.jsx(b,{display:"flex",gap:.75,wrap:"wrap",children:e.map(d=>t.jsx(b,{border:"1px solid",borderColor:r.palette.gray[300],borderRadius:"4px",px:.5,py:.5,children:t.jsx(Te,{checked:d.visible,disabled:d.locked,label:d.name,name:i,onChange:a,value:d.name})},d.name))}):void 0]})},Ct=(e,n)=>{const[a,r]=p.useState(0),[o,l]=p.useState(0);return p.useEffect(()=>{o===100&&(()=>{r(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:a,progress:o,setCycle:r,setProgress:l}},vt=({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])},St=(e,n)=>p.useMemo(()=>s._.debounce(e,n),[e,n]),zt=e=>{const[n,i]=p.useState(!1),a=p.useCallback(()=>{i(!0)},[]),r=p.useCallback(()=>{i(!1)},[]),o=p.useCallback(()=>{i(l=>!l)},[]);return{close:r,isOpen:n,name:e,open:a,setIsOpen:i,toggle:o}},Fi=e=>{const[n,i]=p.useState(),a=St(r=>{i(r)},(e==null?void 0:e.debounceWait)??300);return[n,a]},Li=({alt:e="img",height:n="",width:i="",plugins:a=[s.lazyload(),s.placeholder()],publicId:r})=>{const o=vt({publicId:r});return t.jsx(s.AdvancedImage,{alt:e,cldImg:o,height:n,plugins:a,width:i})},H=p.memo(Li),Wi=s.dt.label`
|
|
1221
1221
|
${({theme:e})=>`
|
|
1222
1222
|
align-items: center;
|
|
1223
1223
|
display: flex;
|
|
@@ -1296,7 +1296,7 @@
|
|
|
1296
1296
|
}
|
|
1297
1297
|
|
|
1298
1298
|
`}
|
|
1299
|
-
`,
|
|
1299
|
+
`,Oi=s.dt.span.attrs({className:"checkmark"})``,It=p.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:a,name:r,onChange:o,onClick:l,value:c,...d},g){return t.jsxs(Wi,{"aria-disabled":i,"aria-label":r,role:"radiogroup",children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":r,defaultChecked:n,disabled:i,name:r,onChange:o,onClick:l,ref:g,type:"radio",value:c,...d}),t.jsx(Oi,{}),a??null]})}),Bi=({alt:e,imageId:n,icon:i,selectorProps:a,onClick:r,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(It,{name:a.name,onClick:r,value:a.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(H,{alt:e??"card image",height:"32px",publicId:n,width:"32px"}),i===void 0?void 0:t.jsx(S,{icon:i,iconSize:"sm",iconType:"fa-light"}),t.jsx(L,{fontWeight:"bold",lineSpacing:1.75,size:"xs",children:o})]})]})},ne=s.dt.div`
|
|
1300
1300
|
${({theme:e})=>`
|
|
1301
1301
|
align-items: center;
|
|
1302
1302
|
background-color: ${e.palette.gray[200]};
|
|
@@ -1308,7 +1308,7 @@
|
|
|
1308
1308
|
transition: 0.2s;
|
|
1309
1309
|
width: 36px;
|
|
1310
1310
|
`}
|
|
1311
|
-
`,
|
|
1311
|
+
`,Mi=s.dt.div`
|
|
1312
1312
|
${({theme:e})=>`
|
|
1313
1313
|
background-color: ${e.palette.white};
|
|
1314
1314
|
border-radius: 50%;
|
|
@@ -1319,7 +1319,7 @@
|
|
|
1319
1319
|
width: ${e.spacing[1]};
|
|
1320
1320
|
z-index: 1;
|
|
1321
1321
|
`}
|
|
1322
|
-
`,
|
|
1322
|
+
`,Ai=s.dt.label`
|
|
1323
1323
|
display: inline-block;
|
|
1324
1324
|
|
|
1325
1325
|
input {
|
|
@@ -1346,22 +1346,22 @@
|
|
|
1346
1346
|
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1347
1347
|
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1348
1348
|
}
|
|
1349
|
-
`,Tt=p.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:a,name:r,leftDescription:o,rightDescription:l,...c},d){const g=n===!0?"on":"off",u=typeof o=="object"&&o.on&&o.off?o[g]:o,
|
|
1349
|
+
`,Tt=p.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:a,name:r,leftDescription:o,rightDescription:l,...c},d){const g=n===!0?"on":"off",u=typeof o=="object"&&o.on&&o.off?o[g]:o,f=p.useCallback(x=>{x.stopPropagation()},[]);return t.jsxs(b,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:a,children:[u,t.jsxs(Ai,{onClick:f,role:"switch",children:[t.jsx("input",{...c,"aria-disabled":i,"aria-label":r,checked:n===!0,disabled:i,name:r,ref:d,type:"checkbox"}),t.jsx(ne,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(Mi,{})})]}),l]})}),Hi=({id:e,title:n,toggles:i,minWidth:a="auto",height:r="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:r,justify:"center",minHeight:"100px",minWidth:a,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(ve,{id:e,title:n}),t.jsx(b,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(l=>t.jsx(Tt,{...l},`$card-toggle-${l.name}`))})]})},_i=s.dt.div`
|
|
1350
1350
|
position: relative;
|
|
1351
1351
|
margin: auto;
|
|
1352
1352
|
overflow: hidden;
|
|
1353
|
-
`,
|
|
1353
|
+
`,Gi=s.dt.div`
|
|
1354
1354
|
display: flex;
|
|
1355
1355
|
transition: transform 0.5s ease-in-out;
|
|
1356
1356
|
transform: translateX(
|
|
1357
1357
|
${({$currentIndex:e})=>-e*100}%
|
|
1358
1358
|
);
|
|
1359
|
-
`,
|
|
1359
|
+
`,Vi=s.dt.div`
|
|
1360
1360
|
align-items: center;
|
|
1361
1361
|
display: flex;
|
|
1362
1362
|
justify-content: center;
|
|
1363
1363
|
min-width: 100%;
|
|
1364
|
-
`,
|
|
1364
|
+
`,Ui=s.dt.button`
|
|
1365
1365
|
${({theme:e,$isActive:n})=>`
|
|
1366
1366
|
background-color: ${n?e.palette.primary[400]:e.palette.white};
|
|
1367
1367
|
border: none;
|
|
@@ -1370,13 +1370,13 @@
|
|
|
1370
1370
|
height: ${e.spacing[.75]};
|
|
1371
1371
|
width: ${e.spacing[.75]};
|
|
1372
1372
|
`}
|
|
1373
|
-
`,
|
|
1373
|
+
`,Yi=s.dt.div`
|
|
1374
1374
|
align-items: center;
|
|
1375
1375
|
display: flex;
|
|
1376
1376
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1377
1377
|
justify-content: center;
|
|
1378
1378
|
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
1379
|
-
`,
|
|
1379
|
+
`,qi=({slides:e,interval:n=300})=>{const{cycle:i,setCycle:a,setProgress:r}=Ct(n,e.length),o=p.useCallback(l=>()=>{a(l),r(0)},[a,r]);return t.jsxs(_i,{"aria-roledescription":"carousel",children:[t.jsx(Gi,{$currentIndex:i,children:e.map((l,c)=>{const d=`slide-${c}`;return t.jsx(Vi,{"aria-label":d,"aria-roledescription":"slide",children:l.content},d)})}),t.jsx(Yi,{children:e.map((l,c)=>{const d=`nav-button-${c}`;return t.jsx(Ui,{$isActive:c===i,"aria-label":`Go to slide ${c+1}`,"data-testid":c===i?"active":"inactive",onClick:o(c)},d)})})]})},Nt=s.dt.div`
|
|
1380
1380
|
${({theme:e})=>`
|
|
1381
1381
|
background-color: ${e.palette.gray[100]};
|
|
1382
1382
|
border-radius: ${e.spacing[.25]};
|
|
@@ -1428,7 +1428,7 @@
|
|
|
1428
1428
|
padding-bottom: unset;
|
|
1429
1429
|
}
|
|
1430
1430
|
`}
|
|
1431
|
-
`,
|
|
1431
|
+
`,Ki=s.dt.div`
|
|
1432
1432
|
${({theme:e})=>`
|
|
1433
1433
|
align-items: end;
|
|
1434
1434
|
background-color: ${e.palette.gray[100]};
|
|
@@ -1446,10 +1446,10 @@
|
|
|
1446
1446
|
background-color: ${e.palette.gray[200]};
|
|
1447
1447
|
}
|
|
1448
1448
|
`}
|
|
1449
|
-
`,
|
|
1450
|
-
`);return
|
|
1449
|
+
`,Xi=({noCodeMessage:e="Code snippet not available",snippet:n})=>{const i=s.nt(),[a,r]=p.useState(!1),[o,l]=p.useState(!0),c=p.useCallback(()=>{r(f=>!f)},[r]),d=p.useCallback(()=>{if(s._.isNil(n)||s._.isEmpty(n)||!s._.isString(n))return l(!1),e;const f=n.split(`
|
|
1450
|
+
`);return f.length>8&&!a?`${[...f].splice(0,7).join(`
|
|
1451
1451
|
`)}
|
|
1452
|
-
${
|
|
1452
|
+
${f[8]}...`:(f.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(async()=>{await navigator.clipboard.writeText(g)},[g]);return t.jsxs(b,{bgColor:i.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(Nt,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:g})})}),t.jsxs(Ki,{children:[t.jsx(O,{height:i.spacing[2.5],icon:"copy",iconColor:i.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:u,variant:"ghost",width:i.spacing[2.5]}),o?t.jsxs(D,{onClick:c,variant:"ghost",children:[a?"Show Less":"Show more",t.jsx(S,{icon:a?"chevron-up":"chevron-down",iconColor:i.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:u})]}):!1]})]})},Zi=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(p.useEffect(()=>{s.prismExports.highlightAll()},[]),t.jsx(Nt,{"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})})})),{getVariant:Ji}=V(e=>({fixed:`
|
|
1453
1453
|
width: 300px;
|
|
1454
1454
|
padding: ${e.spacing[1.25]};
|
|
1455
1455
|
overflow: hidden auto;
|
|
@@ -1503,9 +1503,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1503
1503
|
}
|
|
1504
1504
|
}
|
|
1505
1505
|
|
|
1506
|
-
${
|
|
1506
|
+
${Ji(e,n)}
|
|
1507
1507
|
`}
|
|
1508
|
-
`,
|
|
1508
|
+
`,Qi=s.dt.div`
|
|
1509
1509
|
${({theme:e})=>`
|
|
1510
1510
|
background-color: ${e.palette.white};
|
|
1511
1511
|
border-bottom: 1px solid ${e.palette.gray[200]};
|
|
@@ -1523,7 +1523,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1523
1523
|
padding: 0;
|
|
1524
1524
|
}
|
|
1525
1525
|
`}
|
|
1526
|
-
`,
|
|
1526
|
+
`,ea=s.dt.div`
|
|
1527
1527
|
border-radius: ${({theme:e})=>`${e.spacing[.25]} ${e.spacing[.25]} 0 0`};
|
|
1528
1528
|
display: block;
|
|
1529
1529
|
overflow: unset;
|
|
@@ -1532,7 +1532,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1532
1532
|
max-width: 100%;
|
|
1533
1533
|
padding: ${({theme:e})=>`${e.spacing[1.25]}`};
|
|
1534
1534
|
position: sticky;
|
|
1535
|
-
`,
|
|
1535
|
+
`,ta=s.dt.div.attrs({className:"flex items-center justify-between mb-1.5"})``,na=s.dt.div`
|
|
1536
1536
|
${({theme:e})=>`
|
|
1537
1537
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
1538
1538
|
display: flex;
|
|
@@ -1563,7 +1563,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1563
1563
|
margin-right: 0;
|
|
1564
1564
|
}
|
|
1565
1565
|
`}
|
|
1566
|
-
`,
|
|
1566
|
+
`,ia=s.dt.div`
|
|
1567
1567
|
img {
|
|
1568
1568
|
margin: 0 calc(-${({theme:e})=>e.spacing[1.25]} - 1px)
|
|
1569
1569
|
${({theme:e})=>e.spacing[1.25]};
|
|
@@ -1579,7 +1579,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1579
1579
|
margin-right: 0;
|
|
1580
1580
|
`:""}
|
|
1581
1581
|
}
|
|
1582
|
-
`,Et=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:a=void 0})=>{const{close:r}=n,o=p.useCallback(()=>{a!=null&&a.onClick&&a.onClick(),r()},[a,r]),l=p.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),r()},[i,r]);return[i,a].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(
|
|
1582
|
+
`,Et=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:a=void 0})=>{const{close:r}=n,o=p.useCallback(()=>{a!=null&&a.onClick&&a.onClick(),r()},[a,r]),l=p.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),r()},[i,r]);return[i,a].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(na,{children:t.jsxs("div",{children:[a&&t.jsx(D,{onClick:o,variant:"tertiary",width:"100%",children:a.text}),i&&t.jsx(D,{onClick:l,variant:"primary",width:"100%",children:i.text})]})})]}):null},aa=s.dt.button`
|
|
1583
1583
|
${({theme:e})=>`
|
|
1584
1584
|
align-items: center;
|
|
1585
1585
|
color: ${e.palette.gray[500]};
|
|
@@ -1599,7 +1599,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1599
1599
|
color: ${e.palette.gray[800]};
|
|
1600
1600
|
}
|
|
1601
1601
|
`}
|
|
1602
|
-
`,
|
|
1602
|
+
`,ra=s.dt.div`
|
|
1603
1603
|
${({theme:e})=>`
|
|
1604
1604
|
align-items: center;
|
|
1605
1605
|
border-bottom: 2px solid ${e.palette.gray[200]};
|
|
@@ -1608,11 +1608,11 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1608
1608
|
height: ${e.spacing[3]};
|
|
1609
1609
|
width: max-content;
|
|
1610
1610
|
`}
|
|
1611
|
-
`,
|
|
1611
|
+
`,oa=(e,n,i)=>i?n==="secondary"?`3px solid ${e.palette.primary[100]}`:`3px solid ${e.palette.primary[500]}`:"unset",sa=s.dt.div`
|
|
1612
1612
|
display: flex;
|
|
1613
1613
|
flex-direction: row;
|
|
1614
1614
|
gap: ${({theme:e})=>e.spacing[.25]};
|
|
1615
|
-
border-bottom: ${({theme:e,$borderButton:n,$variant:i})=>
|
|
1615
|
+
border-bottom: ${({theme:e,$borderButton:n,$variant:i})=>oa(e,i,n)};
|
|
1616
1616
|
align-items: center;
|
|
1617
1617
|
padding: ${({theme:e})=>e.spacing[.625]}
|
|
1618
1618
|
${({theme:e})=>e.spacing[.5]};
|
|
@@ -1651,7 +1651,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1651
1651
|
}
|
|
1652
1652
|
}
|
|
1653
1653
|
}
|
|
1654
|
-
`,
|
|
1654
|
+
`,la=s.dt(Q)`
|
|
1655
1655
|
${({theme:e,$variant:n})=>`
|
|
1656
1656
|
align-items: center;
|
|
1657
1657
|
background: ${n==="error"?e.palette.primary[400]:e.palette.warning[500]};
|
|
@@ -1664,14 +1664,14 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1664
1664
|
width: ${e.spacing[.5]};
|
|
1665
1665
|
height: ${e.spacing[.5]};
|
|
1666
1666
|
`}
|
|
1667
|
-
`,
|
|
1667
|
+
`,ca=s.dt.div`
|
|
1668
1668
|
align-items: center;
|
|
1669
1669
|
color: ${({theme:e})=>e.palette.white};
|
|
1670
1670
|
display: flex;
|
|
1671
1671
|
font-size: 6px;
|
|
1672
1672
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1673
1673
|
justify-content: center;
|
|
1674
|
-
`,Rt=p.forwardRef(function({numberIndicator:n,show:i,variant:a="error",...r},o){return t.jsx(
|
|
1674
|
+
`,Rt=p.forwardRef(function({numberIndicator:n,show:i,variant:a="error",...r},o){return t.jsx(la,{$variant:a,className:i?"flex":"hidden","data-testid":"notification-sign",ref:o,...r,children:n&&t.jsx(ca,{children:n<=9?n:9})})}),Dt=({end:e=!1,label:n,id:i,isActive:a=!1,link:r,notificationSign:o,onClick:l,tooltip:c="",variant:d="primary",tag:g})=>{const{pathname:u}=Re.useLocation(),f=a||(d==="primary"?u.includes(r):u.endsWith(r));return t.jsx(U,{display:"flex",id:`${i}-tooltip`,tip:c,children:t.jsxs(sa,{$borderButton:f,$variant:d,children:[t.jsxs(Re.NavLink,{end:e,id:i,onClick:l,to:r,children:[n,t.jsx(Rt,{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(q,{tagLabel:`${g}`,variant:"default"})]})})},Ve=({items:e,borders:n=!0,box:i=!1,variant:a="primary"})=>{const r=s.nt();return t.jsx(b,{alignItems:"center",bgColor:r.palette.white,border:i?"1px solid":void 0,borderBottom:n?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:i?r.palette.gray[200]:void 0,borderRadius:i?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,id:"tablist",padding:i?[0,0,0,0]:void 0,pl:n?1.25:void 0,pr:n?1.25:void 0,role:"tablist",width:i?"max-content":"100%",children:e.map(({end:o,id:l,isActive:c,link:d,label:g,notificationSign:u,onClick:f,tag:x,tooltip:h})=>t.jsx(Dt,{end:o,id:l,isActive:c,label:g,link:d,notificationSign:u,onClick:f,tag:x,tooltip:h,variant:a},l))})},Pt=({tabItems:e,title:n,description:i,modalRef:a,otherActions:r,onClose:o})=>{const l=s.nt(),c=p.useCallback(()=>{o==null||o(),a.close()},[a,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(ea,{children:[t.jsxs(ta,{children:[typeof n=="string"?t.jsx(L,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",children:n}):n,t.jsxs("div",{className:"items-center flex gap-3",children:[r,t.jsx(O,{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(k,{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(Ve,{items:e})})]})},Ft=({disabled:e,id:n="modal-confirm",onCancel:i,onConfirm:a="submit",txtCancel:r,txtConfirm:o})=>{const l=a==="submit";return t.jsxs(b,{display:"flex",gap:.75,maxWidth:i?"392px":"190px",mt:1.5,children:[i?t.jsx(D,{id:`${n}-cancel`,justify:"center",onClick:i,variant:"tertiary",width:"100%",children:r??"Cancel"}):void 0,t.jsx(D,{disabled:e,id:n,justify:"center",onClick:l?void 0:a,type:l?"submit":"button",variant:"primary",width:"100%",children:o??"Confirm"})]})},Lt=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:a=void 0,confirmButton:r=void 0,content:o=void 0,description:l="",modalRef:c,otherActions:d=void 0,onClose:g=void 0,tabItems:u,title:f="",size:x,id:h="modal-container"})=>{const y=()=>t.jsx(Ne,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(fe,{$size:x,"data-testid":h,id:h,children:[!s._.isEmpty(f)&&t.jsx(Pt,{description:l,modalRef:c,onClose:g,otherActions:d,tabItems:u,title:f}),(s._.isObject(o)||a)&&t.jsxs(Qi,{children:[a,s._.isObject(o)&&s._.isString(o.imageSrc)&&t.jsx(ia,{$framed:o.imageFramed,children:t.jsx(H,{alt:"modal-img",publicId:o.imageSrc})}),s._.isObject(o)&&s._.isString(o.imageText)&&t.jsx(k,{size:"sm",children:o.imageText})]}),t.jsx(Et,{alert:n,cancelButton:i,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?G.createPortal(y(),document.getElementById("portals")??document.body):c.isOpen?y():null},da=()=>{const[e,n]=p.useState(!1),[i,a]=p.useState(),r=p.useRef(null),o=zt("confirm-dialog-modal"),l=p.useCallback(async u=>(a(u),n(!0),new Promise(f=>{r.current=f})),[]),c=p.useCallback(()=>{var u;n(!1),a(void 0),(u=r.current)==null||u.call(r,!0)},[]),d=p.useCallback(()=>{var u;n(!1),a(void 0),(u=r.current)==null||u.call(r,!1)},[]);return p.useEffect(()=>{o.setIsOpen(e)},[e,o]),{ConfirmDialog:({id:u="confirm-dialog-modal",children:f})=>t.jsx(Lt,{id:u,modalRef:{...o,close:d},size:"sm",title:i==null?void 0:i.title,children:t.jsxs(b,{display:"flex",flexDirection:"column",children:[f,i==null?void 0:i.message,t.jsx(Ft,{id:i==null?void 0:i.id,onCancel:d,onConfirm:c})]})}),confirm:l}},pa=s.dt.button`
|
|
1675
1675
|
display: flex;
|
|
1676
1676
|
position: relative;
|
|
1677
1677
|
height: 32px;
|
|
@@ -1694,7 +1694,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1694
1694
|
display: none;
|
|
1695
1695
|
}
|
|
1696
1696
|
}
|
|
1697
|
-
`,
|
|
1697
|
+
`,ga=s.dt.div`
|
|
1698
1698
|
${({theme:e})=>`
|
|
1699
1699
|
display: flex;
|
|
1700
1700
|
flex-direction: column;
|
|
@@ -1735,7 +1735,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1735
1735
|
}
|
|
1736
1736
|
}
|
|
1737
1737
|
`}
|
|
1738
|
-
`,Le=({containerRef:e,id:n})=>{const i=s.nt(),a=n==="desktop"?380:342,r=p.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?a:-a,behavior:"smooth"})}},[e,a]),o=p.useCallback(l=>t.jsxs(
|
|
1738
|
+
`,Le=({containerRef:e,id:n})=>{const i=s.nt(),a=n==="desktop"?380:342,r=p.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?a:-a,behavior:"smooth"})}},[e,a]),o=p.useCallback(l=>t.jsxs(pa,{onClick:r(l),children:[t.jsx(S,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"hovered",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),t.jsx(S,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"uncover",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-light"})]}),[r,i]);return t.jsxs(b,{alignItems:"center",display:"flex",gap:1,id:n,width:"max-content",children:[o("left"),o("right")]})},We=({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(k,{color:i.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},Wt=({eventDate:e})=>{const n=s.nt(),i=s.lodashExports.isEmpty(e)?null:e==null?void 0:e.split("-");if(i){const[a,r]=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(L,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:a}),t.jsx(k,{color:n.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:r.toUpperCase()})]})}return null},ua=s.dt.div`
|
|
1739
1739
|
${({theme:e})=>`
|
|
1740
1740
|
align-items: flex-start;
|
|
1741
1741
|
display: flex;
|
|
@@ -1780,7 +1780,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1780
1780
|
}
|
|
1781
1781
|
}
|
|
1782
1782
|
`}
|
|
1783
|
-
`,Ot=({author:e,buttonText:n,description:i,eventDate:a,href:r,imageId:o,mode:l="light",publishDate:c,readingTime:d,tag:g,tagPosition:u="top",title:
|
|
1783
|
+
`,Ot=({author:e,buttonText:n,description:i,eventDate:a,href:r,imageId:o,mode:l="light",publishDate:c,readingTime:d,tag:g,tagPosition:u="top",title:f})=>{const x=s.nt(),h=c==null?void 0:c.split("-"),y=l==="dark",$=t.jsxs(ua,{"data-testid":`content-card-${f}`,children:[o||a||g&&u==="top"?t.jsxs(b,{id:"card-image",position:"relative",children:[o&&t.jsx(H,{publicId:o}),u==="top"&&t.jsx(We,{tag:g,tagPosition:u}),t.jsx(Wt,{eventDate:a})]}):void 0,t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:[u==="bottom"&&t.jsx(We,{tag:g,tagPosition:u}),e||h||d?t.jsxs(b,{display:"flex",justify:"space-between",width:"100%",children:[e&&h&&t.jsx(k,{color:x.palette.gray[y?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(S,{icon:"eye",iconColor:x.palette.gray[y?300:400],iconSize:"xs",iconType:"fa-light"}),t.jsx(k,{color:x.palette.gray[y?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:d})]})]}):void 0,t.jsx(L,{className:`title-${l}`,color:y?x.palette.white:x.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:f}),i&&t.jsx(k,{color:x.palette.gray[y?100:600],size:"md",sizeSm:"sm",children:i}),n&&r&&t.jsx(D,{href:r,variant:"link",children:n})]})]});return r?t.jsx("a",{className:"flex w-fit",href:r,rel:"noopener noreferrer",target:"_self",children:$}):$},xa=({description:e,items:n,title:i,titleHighlighted:a})=>{const r=p.useRef(null);return t.jsxs(ga,{"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(L,{display:"inline",fontWeight:"semibold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:[i+" "," ",t.jsx("span",{className:"inline",children:a})]}),t.jsx(k,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:e})]}),t.jsx(Le,{containerRef:r,id:"desktop"})]}),t.jsx(b,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:r,scroll:"x",children:t.jsx(b,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:n.map((o,l)=>t.jsx(Ot,{...o},`${l}-${o.title}`))})}),t.jsx(Le,{containerRef:r,id:"mobile"})]})},J=p.forwardRef(function({color:n=C.palette.gray[100],mt:i=.5,mb:a=.5,...r},o){return t.jsx(b,{as:"hr",borderBottom:`1px solid ${n}`,mb:a,mt:i,ref:o,width:"100%",...r})}),Oe=({buttonProps:e,variant:n})=>t.jsx(D,{onClick:e.onClick,variant:n,children:e.text}),fa=s.dt.div`
|
|
1784
1784
|
display: flex;
|
|
1785
1785
|
flex-direction: column;
|
|
1786
1786
|
align-items: center;
|
|
@@ -1788,7 +1788,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1788
1788
|
max-width: 900px;
|
|
1789
1789
|
white-space: pre-line;
|
|
1790
1790
|
margin: 0 auto;
|
|
1791
|
-
`,
|
|
1791
|
+
`,ha=s.dt.div`
|
|
1792
1792
|
display: flex;
|
|
1793
1793
|
flex-direction: row;
|
|
1794
1794
|
justify-content: center;
|
|
@@ -1801,7 +1801,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1801
1801
|
> img {
|
|
1802
1802
|
width: 100%;
|
|
1803
1803
|
}
|
|
1804
|
-
`,
|
|
1804
|
+
`,ba=s.dt.div`
|
|
1805
1805
|
display: flex;
|
|
1806
1806
|
flex-direction: row;
|
|
1807
1807
|
margin: 0;
|
|
@@ -1814,7 +1814,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1814
1814
|
> *:last-child {
|
|
1815
1815
|
margin-right: 0;
|
|
1816
1816
|
}
|
|
1817
|
-
`,et={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}}
|
|
1817
|
+
`,et={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}},$a=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:a="integrates/empty/addRoot",padding:r=1.25,title:o,size:l="md"})=>{const c=(n??e)!==void 0;return t.jsxs(fa,{$padding:r,children:[t.jsx(ha,{children:t.jsx(H,{alt:"empty-icon",publicId:a})}),t.jsx(L,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:et[l].title,textAlign:"center",children:o}),t.jsx(k,{mb:c?2:void 0,size:et[l].description,textAlign:"center",children:i}),c?t.jsxs(ba,{children:[e&&t.jsx(Oe,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(Oe,{buttonProps:n,variant:"primary"})]}):void 0]})},ya=s.dt.form`
|
|
1818
1818
|
${({theme:e})=>`
|
|
1819
1819
|
align-items: flex-start;
|
|
1820
1820
|
align-self: stretch;
|
|
@@ -1824,7 +1824,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1824
1824
|
overflow: hidden auto;
|
|
1825
1825
|
width: 100%;
|
|
1826
1826
|
`}
|
|
1827
|
-
`,
|
|
1827
|
+
`,ma=({alert:e,cancelLabel:n,children:i,id:a="modal-confirm",mode:r,onCancel:o,onSubmit:l,showButtons:c=!0,submitLabel:d,submitDisabled:g=!1,yupSchema:u,...f})=>{const x=s.nt(),h=s.useForm({...f,mode:r??"all",resolver:u?s.o(u):void 0}),{control:y,getValues:$,setValue:m,register:w,watch:j,formState:{errors:v,isValid:z,dirtyFields:I}}=h,F=W=>p.Children.map(W,R=>{var N;if(R&&p.isValidElement(R)){const E=R.props.children,B=R.props.name?p.createElement(R.type,{...R.props,control:y,error:(N=v[R.props.name])==null?void 0:N.message,isValid:z,isTouched:I[R.props.name],register:w,setValue:m,value:$(R.props.name),watch:j,key:R.props.name}):R;return E?p.createElement(B.type,{...B.props,children:F(E)}):B}return R});return t.jsx(s.FormProvider,{...h,children:t.jsx(ya,{onSubmit:h.handleSubmit(l),children:t.jsxs(b,{scroll:"y",width:"100%",children:[t.jsx(b,{borderRadius:`0 0 ${x.spacing[.25]} ${x.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:F(i)}),c&&t.jsxs(b,{borderRadius:`0 0 ${x.spacing[.25]} ${x.spacing[.25]}`,borderTop:`1px solid ${x.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(D,{id:`${a}-cancel`,justify:"center",onClick:o,type:"reset",variant:"tertiary",width:"100%",children:n??"Cancel"}):void 0,t.jsx(D,{disabled:g,id:a,justify:"center",type:"submit",width:"100%",children:d??"Confirm"})]})]})]})})})},wa=s.dt(Q)`
|
|
1828
1828
|
display: grid;
|
|
1829
1829
|
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
1830
1830
|
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
@@ -1842,7 +1842,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1842
1842
|
grid-template-columns: repeat(${n}, 1fr);
|
|
1843
1843
|
}
|
|
1844
1844
|
`}
|
|
1845
|
-
`,
|
|
1845
|
+
`,ja=p.forwardRef(function({children:n,md:i,sm:a,lg:r,xl:o,gap:l,...c},d){return t.jsx(wa,{$gap:l,$lg:r,$md:i,$sm:a,$xl:o,ref:d,...c,children:n})}),ka=s.dt.div`
|
|
1846
1846
|
${({theme:e,$itemsLength:n})=>`
|
|
1847
1847
|
display: flex;
|
|
1848
1848
|
background-color: ${e.palette.white};
|
|
@@ -1878,7 +1878,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1878
1878
|
background-color: ${e.palette.gray[100]};
|
|
1879
1879
|
}
|
|
1880
1880
|
`}
|
|
1881
|
-
`,Bt=({isSelected:e=!1,label:n,onSelect:i})=>{const a=s.nt(),r=p.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(Ue,{$isSelected:e,onClick:r,children:[e?t.jsx(S,{icon:"check",iconColor:a.palette.gray[800],iconSize:"md"}):null,t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},
|
|
1881
|
+
`,Bt=({isSelected:e=!1,label:n,onSelect:i})=>{const a=s.nt(),r=p.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(Ue,{$isSelected:e,onClick:r,children:[e?t.jsx(S,{icon:"check",iconColor:a.palette.gray[800],iconSize:"md"}):null,t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},Ca=s.dt.input`
|
|
1882
1882
|
${({theme:e})=>`
|
|
1883
1883
|
background: none;
|
|
1884
1884
|
border: none !important;
|
|
@@ -1894,7 +1894,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1894
1894
|
color: ${e.palette.gray[400]};
|
|
1895
1895
|
}
|
|
1896
1896
|
`}
|
|
1897
|
-
`,
|
|
1897
|
+
`,va=s.dt.div`
|
|
1898
1898
|
${({theme:e})=>`
|
|
1899
1899
|
align-items: center;
|
|
1900
1900
|
background-color: ${e.palette.white};
|
|
@@ -1914,13 +1914,13 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1914
1914
|
border: 2px solid ${e.palette.black};
|
|
1915
1915
|
}
|
|
1916
1916
|
`}
|
|
1917
|
-
`,
|
|
1917
|
+
`,Sa=s.dt.div`
|
|
1918
1918
|
${({theme:e})=>`
|
|
1919
1919
|
background-color: ${e.palette.white};
|
|
1920
1920
|
border-radius: ${e.spacing[.5]};
|
|
1921
1921
|
width: 250px;
|
|
1922
1922
|
`}
|
|
1923
|
-
`,re=p.forwardRef(function({name:n,smallSearch:i=!1,value:a,...r},o){const l=s.nt(),[c,d]=p.useState(!1),{refs:g,floatingStyles:u}=s.useFloating(),
|
|
1923
|
+
`,re=p.forwardRef(function({name:n,smallSearch:i=!1,value:a,...r},o){const l=s.nt(),[c,d]=p.useState(!1),{refs:g,floatingStyles:u}=s.useFloating(),f=p.useCallback(()=>{d(h=>!h)},[]);Z(g.floating.current,()=>{d(!1)},!0);const x=t.jsxs(va,{children:[t.jsx(S,{icon:"magnifying-glass",iconColor:l.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(Ca,{...r,id:n,name:n,ref:o,value:a}),!s.lodashExports.isEmpty(a)&&t.jsx(O,{icon:"xmark",iconColor:l.palette.gray[300],iconSize:"xs",iconType:"fa-light",px:.25,py:.25,type:"reset",variant:"ghost"})]});return i?t.jsxs(p.Fragment,{children:[t.jsx(O,{border:`1px solid ${l.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:f,ref:g.setReference,variant:"ghost"}),c?t.jsx(Sa,{ref:g.setFloating,style:u,children:x}):void 0]}):x}),za=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:a,onClose:r,selectedItem:o,title:l,variant:c})=>{const d=s.nt(),[g,u]=p.useState(n),[f,x]=p.useState(""),h=p.useCallback(m=>{u(w=>w.filter(j=>String(j.name).toLowerCase().includes(m.toLocaleLowerCase())))},[u]),y=p.useCallback(m=>{m.currentTarget&&(x(m.currentTarget.value),h(m.currentTarget.value))},[x,h]);p.useEffect(()=>{u(n),h(f)},[n,h,f]);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(ka,{$itemsLength:g.length,children:[t.jsxs(b,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(k,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(O,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:r,variant:"ghost"})]}),t.jsx(b,{mt:1,children:t.jsx(re,{onInput:y,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(Ue,{onClick:i,children:t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsx(S,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(k,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,g.map(m=>t.jsx(Bt,{isSelected:o.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:a},m.name))]})]})})});return e?G.createPortal($(),document.body):t.jsx("div",{})},Ia=({description:e,height:n="auto",leftIconName:i,children:a,rightIconName:r,title:o,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:g="centered",width:u="318px"})=>{const f=s.nt(),x=g==="centered",h=t.jsx(U,{icon:r??i,iconColor:f.palette.gray[800],id:l,place:d,tip:c});return t.jsxs(b,{alignItems:x?"center":"flex-start",bgColor:f.palette.gray[50],border:`1px solid ${f.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:x?"column":"column-reverse",gap:.5,height:n,justify:"center",padding:[1.25,1.25,1.25,1.25],width:u,children:[t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[x||s.lodashExports.isUndefined(i)?void 0:h,t.jsx(k,{color:x?f.palette.gray[800]:f.palette.gray[400],size:"md",textAlign:x?"center":"start",children:e}),x||s.lodashExports.isUndefined(r)?void 0:h]}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[x&&!s.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[s.lodashExports.isUndefined(o)?void 0:t.jsx(L,{fontWeight:"bold",size:"md",children:o}),a]}),x&&!s.lodashExports.isUndefined(r)?h:void 0]})]})},Ta=({actions:e,children:n,header:i,title:a,tabs:r,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(k,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:a}),i]}),e&&t.jsx(b,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},g)=>t.jsx(O,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${g}-${c}`))})]}),t.jsx(b,{display:"flex",pt:.25,width:"100%",children:t.jsx(Ve,{items:r})}),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(D,{icon:c,onClick:g,variant:u===0?"primary":"tertiary",width:"100%",children:d},`${u}-${d}`))})]})},Na=s.dt.div`
|
|
1924
1924
|
${({theme:e})=>`
|
|
1925
1925
|
align-items: flex-start;
|
|
1926
1926
|
backdrop-filter: blur(3.15px);
|
|
@@ -1972,7 +1972,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1972
1972
|
}
|
|
1973
1973
|
}
|
|
1974
1974
|
`}
|
|
1975
|
-
`,
|
|
1975
|
+
`,Ea=s.dt.div`
|
|
1976
1976
|
align-items: center;
|
|
1977
1977
|
position: absolute;
|
|
1978
1978
|
justify-content: center;
|
|
@@ -1986,7 +1986,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
1986
1986
|
height: 260px;
|
|
1987
1987
|
width: 260px;
|
|
1988
1988
|
}
|
|
1989
|
-
`,Mt=({icon:e})=>t.jsx(
|
|
1989
|
+
`,Mt=({icon:e})=>t.jsx(Ea,{children:t.jsx(S,{icon:e,iconColor:C.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),Ra=({category:e,description:n,href:i,icon:a,location:r,title:o})=>{const l=s.nt();return t.jsxs(Na,{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(k,{color:l.palette.white,size:"sm",sizeSm:"xs",children:e}),t.jsx(L,{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(k,{color:l.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),t.jsx(k,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:r})]})]}),t.jsxs(b,{alignItems:"self-start",display:"flex",flexDirection:"column",gap:2,height:"100%",id:"hovered",justify:"space-between",pt:1,children:[t.jsx(L,{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(k,{color:l.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:n}),t.jsx(D,{external:!0,href:i,variant:"link",width:"max-content",children:"Download now"})]})]}),t.jsx(Mt,{icon:a})]})},Da=s.dt.button`
|
|
1990
1990
|
${({theme:e})=>`
|
|
1991
1991
|
align-items: center;
|
|
1992
1992
|
border-left: 3px solid transparent;
|
|
@@ -2029,7 +2029,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2029
2029
|
}
|
|
2030
2030
|
}
|
|
2031
2031
|
`}
|
|
2032
|
-
`,
|
|
2032
|
+
`,Pa=s.dt.div`
|
|
2033
2033
|
${({theme:e})=>`
|
|
2034
2034
|
align-items: center;
|
|
2035
2035
|
background-color: transparent;
|
|
@@ -2059,7 +2059,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2059
2059
|
color: ${e.palette.gray[800]};
|
|
2060
2060
|
}
|
|
2061
2061
|
`}
|
|
2062
|
-
`,
|
|
2062
|
+
`,Fa=s.dt.div`
|
|
2063
2063
|
${({theme:e})=>`
|
|
2064
2064
|
background-color: ${e.palette.white};
|
|
2065
2065
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
@@ -2074,7 +2074,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2074
2074
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
2075
2075
|
}
|
|
2076
2076
|
`}
|
|
2077
|
-
`,
|
|
2077
|
+
`,La=s.dt.div`
|
|
2078
2078
|
${({theme:e})=>`
|
|
2079
2079
|
align-items: flex-start;
|
|
2080
2080
|
cursor: pointer;
|
|
@@ -2096,11 +2096,11 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2096
2096
|
}
|
|
2097
2097
|
}
|
|
2098
2098
|
`}
|
|
2099
|
-
`,At=({disabled:e=!1,mode:n,onClick:i,text:a})=>t.jsx(
|
|
2099
|
+
`,At=({disabled:e=!1,mode:n,onClick:i,text:a})=>t.jsx(Da,{className:`${e&&"disabled"} ${n}`,disabled:e,onClick:i,children:t.jsx(k,{color:"inherit",size:"sm",sizeSm:"xs",children:a})}),Wa=[{text:"EN"},{text:"ES"}],Oa=({items:e,handleClick:n,mode:i="light"})=>{const a=e??Wa,[r,o]=p.useState(a[0].text),l=p.useCallback(c=>()=>{n(c.text),o(c.text)},[n]);return t.jsxs(La,{children:[t.jsxs(Pa,{className:i,children:[t.jsx(S,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),r]}),t.jsx(Fa,{children:a.map((c,d)=>t.jsx(At,{disabled:c.disabled,mode:i,onClick:l(c),text:c.text},`${c.text}_${d}`))})]})},Ba=s.dt.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,Ma=s.dt.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
2100
2100
|
gap: 12px;
|
|
2101
|
-
`,
|
|
2101
|
+
`,Aa=s.dt.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
|
|
2102
2102
|
gap: 8px;
|
|
2103
|
-
`,ye=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,
|
|
2103
|
+
`,ye=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,Ha=s.dt.div.attrs({className:"comp-col"})`
|
|
2104
2104
|
word-break: break-word;
|
|
2105
2105
|
|
|
2106
2106
|
${({$width:e=null})=>e===null?"":`width: ${e}`};
|
|
@@ -2124,7 +2124,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2124
2124
|
> .comp-card {
|
|
2125
2125
|
height: 100%;
|
|
2126
2126
|
}
|
|
2127
|
-
`,
|
|
2127
|
+
`,_a=({children:e,xl:n,lg:i,md:a,sm:r,paddingTop:o,width:l})=>t.jsx(Ha,{$lg:i,$md:a,$paddingTop:o,$sm:r,$width:l,$xl:n,children:e}),Ga=s.dt.div.attrs({className:"comp-gap"})`
|
|
2128
2128
|
${({$disp:e="flex",$mh:n=4,$mv:i=4})=>`
|
|
2129
2129
|
align-items: center;
|
|
2130
2130
|
display: ${e};
|
|
@@ -2134,7 +2134,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2134
2134
|
margin: ${i}px ${n}px;
|
|
2135
2135
|
}
|
|
2136
2136
|
`}
|
|
2137
|
-
`,
|
|
2137
|
+
`,Va=({children:e,disp:n,mh:i,mv:a})=>t.jsx(Ga,{$disp:n,$mh:i,$mv:a,children:e}),Ua=s.dt.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
|
|
2138
2138
|
${({$align:e="stretch",$cols:n=100,$colsPadding:i=6,$justify:a="start"})=>`
|
|
2139
2139
|
align-items: ${e};
|
|
2140
2140
|
justify-content: ${a};
|
|
@@ -2152,7 +2152,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2152
2152
|
padding: ${i}px;
|
|
2153
2153
|
}
|
|
2154
2154
|
`}
|
|
2155
|
-
`,
|
|
2155
|
+
`,Ya=({align:e,children:n,cols:i,colsPadding:a,justify:r})=>t.jsx(Ua,{$align:e,$cols:i,$colsPadding:a,$justify:r,children:n}),qa=s.dt.li`
|
|
2156
2156
|
${({theme:e})=>`
|
|
2157
2157
|
align-items: center;
|
|
2158
2158
|
background-color: ${e.palette.white};
|
|
@@ -2211,7 +2211,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2211
2211
|
min-width: 240px;
|
|
2212
2212
|
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
2213
2213
|
`}
|
|
2214
|
-
`,he=({children:e,disabled:n=!1,icon:i,iconType:a="fa-light",href:r,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:g=!1,value:u,...
|
|
2214
|
+
`,he=({children:e,disabled:n=!1,icon:i,iconType:a="fa-light",href:r,onClick:o,onClickIcon:l,onKeyDown:c,rightIcon:d,selected:g=!1,value:u,...f})=>{const h=s.nt().palette.gray[n?300:800],y=n?p.Children.map(e,$=>p.isValidElement($)?p.cloneElement($,{disabled:n,...$.props}):$):e;return t.jsxs(qa,{"aria-disabled":n,"aria-label":u,"aria-selected":g,"data-testid":u,onClick:o,onKeyDown:c,value:u,...f,children:[i!==void 0||u!==void 0?t.jsxs(b,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(S,{disabled:n,icon:i,iconColor:h,iconSize:"xs",iconType:a}):null,r===void 0?y:t.jsx(X,{href:r,children:y})]}):null,g||d?t.jsx(S,{disabled:n,icon:d??"check",iconColor:h,iconSize:"xs",iconType:a,onClick:l}):null]})},Ka=s.dt.span`
|
|
2215
2215
|
${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
|
|
2216
2216
|
background-color: ${n};
|
|
2217
2217
|
border-radius: 5px;
|
|
@@ -2220,14 +2220,14 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2220
2220
|
padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
|
|
2221
2221
|
text-decoration: ${i}
|
|
2222
2222
|
`}
|
|
2223
|
-
`,
|
|
2223
|
+
`,Xa=({bgColor:e,children:n,txtDecoration:i,ml:a=1})=>t.jsx(Ka,{$bgColor:e,$txtDecoration:i,className:`ml-${a}`,children:n}),Za={lg:"56",md:"30",sm:"12"},{getVariant:Ja}=V(e=>({red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),Qa=s.mt`
|
|
2224
2224
|
0% {
|
|
2225
2225
|
transform: rotateZ(0deg);
|
|
2226
2226
|
}
|
|
2227
2227
|
100% {
|
|
2228
2228
|
transform: rotateZ(360deg)
|
|
2229
2229
|
}
|
|
2230
|
-
`,
|
|
2230
|
+
`,er=s.mt`
|
|
2231
2231
|
0%,
|
|
2232
2232
|
25% {
|
|
2233
2233
|
stroke-dashoffset: 280;
|
|
@@ -2244,16 +2244,16 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2244
2244
|
stroke-dashoffset: 280;
|
|
2245
2245
|
transform: rotate(360deg);
|
|
2246
2246
|
}
|
|
2247
|
-
`,
|
|
2247
|
+
`,tr=s.dt.svg`
|
|
2248
2248
|
${({$size:e="md"})=>s.lt`
|
|
2249
|
-
animation: ${
|
|
2249
|
+
animation: ${Qa} 2s linear infinite;
|
|
2250
2250
|
animation-timing-function: linear;
|
|
2251
2251
|
display: inline-block;
|
|
2252
|
-
width: ${
|
|
2252
|
+
width: ${Za[e]}px;
|
|
2253
2253
|
`}
|
|
2254
|
-
`,
|
|
2254
|
+
`,nr=s.dt.circle`
|
|
2255
2255
|
${({theme:e,$color:n="red"})=>s.lt`
|
|
2256
|
-
animation: 1.4s ease-in-out infinite both ${
|
|
2256
|
+
animation: 1.4s ease-in-out infinite both ${er};
|
|
2257
2257
|
display: block;
|
|
2258
2258
|
fill: transparent;
|
|
2259
2259
|
stroke-linecap: round;
|
|
@@ -2262,9 +2262,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2262
2262
|
stroke-width: 10px;
|
|
2263
2263
|
transform-origin: 50% 50%;
|
|
2264
2264
|
|
|
2265
|
-
${
|
|
2265
|
+
${Ja(e,n)}
|
|
2266
2266
|
`}
|
|
2267
|
-
`,
|
|
2267
|
+
`,ir=s.dt.circle`
|
|
2268
2268
|
display: block;
|
|
2269
2269
|
fill: transparent;
|
|
2270
2270
|
stroke: ${({theme:e})=>e.palette.gray[200]};
|
|
@@ -2272,7 +2272,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2272
2272
|
stroke-width: 10px;
|
|
2273
2273
|
transform-origin: 50% 50%;
|
|
2274
2274
|
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2275
|
-
`,
|
|
2275
|
+
`,ar=({color:e="red",label:n,size:i})=>{const a=s.nt();return t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsxs(tr,{$size:i,viewBox:"0 0 100 100",children:[t.jsx(ir,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(nr,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(k,{color:e==="red"?a.palette.gray[700]:a.palette.white,ml:.5,size:"sm",children:n})]})},rr=s.dt.div`
|
|
2276
2276
|
display: flex;
|
|
2277
2277
|
height: 80px;
|
|
2278
2278
|
max-width: 1440px;
|
|
@@ -2302,7 +2302,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2302
2302
|
);
|
|
2303
2303
|
right: 0;
|
|
2304
2304
|
}
|
|
2305
|
-
`,
|
|
2305
|
+
`,or=s.dt.div`
|
|
2306
2306
|
display: flex;
|
|
2307
2307
|
gap: 40px;
|
|
2308
2308
|
animation: clients-animation 50s linear infinite;
|
|
@@ -2317,7 +2317,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2317
2317
|
transform: translateX(calc(-180px * 15));
|
|
2318
2318
|
}
|
|
2319
2319
|
}
|
|
2320
|
-
`,
|
|
2320
|
+
`,sr=["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"],lr=({fusion:e=!1,logos:n=sr})=>t.jsxs(rr,{children:[e&&t.jsx(tt,{className:"left"}),t.jsx(or,{children:[...n,...n].map((i,a)=>t.jsx(H,{alt:`${i}-${a}`,height:"80px",plugins:[s.placeholder()],publicId:i,width:"140px"},`${i}-${a}`))}),e&&t.jsx(tt,{className:"right"})]}),cr={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},dr=({publicId:e,variant:n})=>t.jsx(b,{...cr[n],children:t.jsx(H,{alt:"logo",publicId:e})}),pr=({children:e,commitSha:n,commitShortSha:i,parentElement:a,userInfo:r,setVisibility:o})=>{const l=s.nt(),{userName:c,email:d,phone:g,userRole:u}=r;return Z(a,()=>{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(k,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(k,{color:l.palette.gray[400],size:"sm",children:d}),s.lodashExports.isUndefined(g)?void 0:t.jsx(k,{color:l.palette.gray[400],size:"sm",children:g})]}),t.jsx(b,{children:t.jsx(q,{tagLabel:u,variant:"role"})})]})}),t.jsx(J,{}),e,t.jsx(J,{}),t.jsx("li",{className:"commit-info",children:t.jsx(X,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${n}`,iconPosition:"hidden",children:t.jsx(k,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},gr=s.dt.button`
|
|
2321
2321
|
align-items: center;
|
|
2322
2322
|
background-color: transparent;
|
|
2323
2323
|
border: unset;
|
|
@@ -2334,26 +2334,32 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2334
2334
|
&:hover span {
|
|
2335
2335
|
color: ${C.palette.primary[200]};
|
|
2336
2336
|
}
|
|
2337
|
-
`,
|
|
2337
|
+
`,ur=e=>e==="platform"?{normal:"sm",small:void 0}:{normal:"md",small:"sm"},xr=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:a="regular",icon:r,onClose:o,variant:l="web"})=>{const c=s.nt(),[d,g]=p.useState(!0),u=p.useCallback(()=>{g(!1),o==null||o()},[o]),f=ur(l);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:[t.jsx(b,{children:typeof e=="string"?t.jsx(k,{color:c.palette.white,display:"inline",size:f.normal,sizeSm:f.small,children:e}):e}),n?t.jsxs(gr,{onClick:n,children:[t.jsx(k,{color:c.palette.white,fontWeight:a,size:f.normal,sizeSm:f.small,textDecoration:"underline",children:i}),t.jsx(S,{icon:r??"arrow-right",iconColor:c.palette.white,iconSize:"xs",iconType:a==="bold"?"fa-regular":"fa-light"})]}):void 0]}),t.jsx(S,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"xs",iconType:"fa-light",onClick:u})]})},fr=s.dt(he)`
|
|
2338
2338
|
margin-top: 10px;
|
|
2339
2339
|
border: 1px solid ${({theme:e})=>e.palette.gray[300]};
|
|
2340
2340
|
border-radius: 4px;
|
|
2341
2341
|
min-width: unset;
|
|
2342
|
-
`,_t=({items:e,onReorder:n,title:i,description:a,onClickClose:r})=>{const o=p.useCallback(l=>()=>{r(l)},[r]);return t.jsxs(s.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:n,style:{overflowY:"auto",width:"content-fit"},values:e,children:[t.jsxs(b,{display:"flex",gap:.25,children:[t.jsx(
|
|
2342
|
+
`,_t=({items:e,onReorder:n,title:i,description:a,onClickClose:r})=>{const o=p.useCallback(l=>()=>{r(l)},[r]);return t.jsxs(s.ReorderGroup,{as:"div",axis:"y",layoutScroll:!0,onReorder:n,style:{overflowY:"auto",width:"content-fit"},values:e,children:[t.jsxs(b,{display:"flex",gap:.25,children:[t.jsx(L,{display:"flex",size:"xs",children:i}),t.jsx(q,{priority:"high",tagLabel:String(e.length),variant:"error"})]}),t.jsx(k,{size:"sm",children:a}),e.map(l=>l.visible?t.jsx(s.ReorderItem,{as:"div",dragListener:!l.locked,item:l.name,value:l,children:t.jsx(fr,{disabled:l.locked,icon:"grid-horizontal",label:l.name,onClickIcon:o(l.name),rightIcon:l.locked?"lock":"close",value:l.name,children:l.name})},l.name):void 0)]})},hr=s.dt(he)`
|
|
2343
2343
|
padding: 7px 8px;
|
|
2344
2344
|
|
|
2345
2345
|
svg.fa-check {
|
|
2346
2346
|
border-radius: 2px;
|
|
2347
2347
|
}
|
|
2348
|
-
`,Gt=e=>e.reduce((i,a)=>a.group?i[a.group]?{...i,[a.group]:[...i[a.group],a]}:{...i,[a.group]:[a]}:i,{}),Vt=({columns:e,formId:n,onChangeHandler:i,variant:a})=>{const[r,o]=p.useState([]),[l,c]=p.useState(""),d=p.useRef(null),g=p.useCallback(
|
|
2348
|
+
`,Gt=e=>e.reduce((i,a)=>a.group?i[a.group]?{...i,[a.group]:[...i[a.group],a]}:{...i,[a.group]:[a]}:i,{}),Vt=({columns:e,formId:n,onChangeHandler:i,variant:a})=>{const[r,o]=p.useState([]),[l,c]=p.useState(""),d=p.useRef(null),g=p.useCallback(f=>{const{value:x}=f.target;c(x)},[]),u=p.useCallback(()=>{d.current&&(d.current.reset(),c(""))},[d]);return p.useEffect(()=>{o(e.filter(f=>{var x;return a==="grouped"?f.name.toLowerCase().includes(l.toLowerCase())||((x=f.group)==null?void 0:x.includes(l.toLowerCase())):f.name.toLowerCase().includes(l.toLowerCase())}))},[e,l,a]),a==="grouped"?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:d,children:t.jsx(re,{name:"search",onChange:g,type:"search"})}),t.jsx("form",{id:n,onReset:u,style:{display:"flex",flexDirection:"column",gap:"0.625rem",overflowY:"auto",overflowX:"hidden"},children:Object.entries(Gt(r)).map(([f,x])=>{const h=`li-checkbox${f}`;return t.jsx(kt,{checkboxesName:f,onChange:i,options:x,title:f},h)})})]}):t.jsxs(b,{py:1.25,width:"55%",children:[t.jsx("form",{id:"search-form",ref:d,children:t.jsx(re,{name:"search",onChange:g,type:"search"})}),t.jsx("form",{id:n,onReset:u,style:{paddingTop:"0.625rem",overflowY:"auto",overflowX:"hidden"},children:r.map(f=>{const x=`li-checkbox-${f.name}`;return t.jsx(hr,{value:x,width:"content",children:t.jsx(Te,{checked:f.visible,disabled:f.locked,label:f.name,name:f.name,onChange:i,value:f.name})},x)})})]})},br=({_containerId:e="portals",title:n,modalRef:i,variant:a})=>{const r=s.nt(),o=p.useCallback(c=>{const{checked:d,value:g}=c.target;i.setColumns(i.columns.map(u=>u.name===g?{...u,visible:d}:u))},[i]),l=p.useCallback(c=>{const d=i.columns.map(g=>g.name===c?{...g,visible:!1}:g);i.setColumns(d)},[i]);return i.isOpen?G.createPortal(t.jsxs(fe,{$size:"md",children:[t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(L,{size:"sm",children:n}),t.jsx(O,{icon:"close",iconColor:r.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",px:1.25,width:"100%",children:[t.jsx(Vt,{columns:i.columns,formId:"columns-visibility",onChangeHandler:o,variant:a}),t.jsx(b,{borderLeft:`2px solid ${r.palette.gray[100]}`,mx:1.25}),t.jsx(b,{py:1.25,width:"45%",children:t.jsx(_t,{description:"Drag and drop to reorder columns",items:i.columns,onClickClose:l,onReorder:i.setColumns,title:"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(D,{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(D,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save Changes"})]})]}),document.getElementById(e)??document.body):t.jsx("div",{})},$r=s.dt(he)`
|
|
2349
2349
|
padding: 8px;
|
|
2350
|
-
|
|
2350
|
+
`,yr=s.dt(he)`
|
|
2351
2351
|
padding: 7px 8px;
|
|
2352
2352
|
|
|
2353
2353
|
svg.fa-check {
|
|
2354
2354
|
border-radius: 2px;
|
|
2355
2355
|
}
|
|
2356
|
-
`,
|
|
2356
|
+
`,Ut=s.dt(O)`
|
|
2357
|
+
position: absolute;
|
|
2358
|
+
right: 20px;
|
|
2359
|
+
top: 20px;
|
|
2360
|
+
background-color: ${({theme:e})=>e.palette.white};
|
|
2361
|
+
color: ${({theme:e})=>e.palette.gray[400]};
|
|
2362
|
+
`,Be=({options:e,onSubmit:n,id:i,open:a})=>{const[r,o]=p.useState([]),{register:l,handleSubmit:c,setValue:d}=s.useForm({defaultValues:{checkbox:e.filter(x=>x.checked).map(x=>x.value)}}),g=p.useCallback(x=>{const{value:h}=x.target;o(e.filter(y=>{var $;return(($=y.label)==null?void 0:$.toLowerCase().includes(h.toLowerCase()))??y.value.toLowerCase().includes(h.toLowerCase())}))},[e]),u=p.useCallback(x=>{n&&n(x.checkbox)},[n]);p.useEffect(()=>{o(e),d("checkbox",e.filter(x=>x.checked).map(x=>x.value))},[e,d]);const f=t.jsx(Ne,{$bgColor:"transparent",children:t.jsxs(fe,{$size:"fixed",gap:1.25,children:[t.jsx(re,{onChange:g}),t.jsxs("form",{id:i,onSubmit:c(u),style:{overflowY:"auto"},children:[r.map(x=>{const h=`li-checkbox${x.value}`;return t.jsx(yr,{value:h,width:"content",children:t.jsx(Te,{...l("checkbox"),label:x.label,value:x.value})},h)}),t.jsx(D,{mt:1,type:"submit",children:"Apply"})]})]})});return a?G.createPortal(f,document.getElementById("portals")??document.body):t.jsx("div",{})},Ce=({options:e,variant:n,onApplyFilters:i})=>{const a=s.nt(),[r,o]=p.useState(e),[l,c]=p.useState([]),[d,g]=p.useState({}),[u,f]=p.useState(""),x=p.useCallback($=>()=>{const m=r.find(w=>w.label===$);f($),c((m==null?void 0:m.filterOptions)??[])},[r]),h=p.useCallback($=>{g(j=>$.length>0?{...j,[u]:$}:j);const m=j=>({...j,checked:$.includes(j.value)}),w=j=>j.label===u?{...j,filterOptions:j.filterOptions.map(m)}:j;o(j=>j.map(w)),i({[u]:$}),c([])},[i,u]),y=p.useCallback(($,m)=>{const w=`li-filter-option-${$}`;return t.jsxs($r,{icon:m,onClick:x($),value:w,width:"100%",children:[$,d[$]===void 0?void 0:t.jsx(q,{tagLabel:d[$].length.toString()})]},w)},[d,x]);return p.useEffect(()=>{const $=e.reduce((m,{label:w,filterOptions:j})=>{const v=j.filter(({checked:z=!1})=>z).map(({value:z})=>z);return v.length===0?m:{...m,[w]:v}},{});g($)},[e]),n==="grouped"?t.jsxs(b,{flexGrow:1,position:"relative",zIndex:80,children:[Object.entries(Gt(e)).map(([$,m])=>t.jsxs(b,{width:"100%",children:[t.jsx(k,{color:a.palette.gray[400],mb:.25,size:"sm",children:$}),m.map(({label:w,icon:j="filter-list"})=>y(w,j))]},$)),t.jsx(Be,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]}):t.jsxs(b,{flexGrow:1,children:[e.map(({label:$,icon:m="filter-list"})=>y($,m)),t.jsx(Be,{id:"filters-options",onSubmit:h,open:l.length>0,options:l})]})},mr=({_containerId:e="portals",options:n,onApplyFilters:i,modalRef:a})=>a.isOpen?G.createPortal(t.jsx(Ne,{$bgColor:"transparent",children:t.jsxs(fe,{$size:"fixed",position:"relative",children:[t.jsx(Ut,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:a.close,px:.25,py:.25,variant:"ghost"}),t.jsx(Ce,{onApplyFilters:i,options:n,variant:"ungrouped"})]})}),document.getElementById(e)??document.body):t.jsx("div",{}),wr=({_containerId:e="portals",rightColumnOptions:n,leftColumnOptions:i,variant:a,onApplyFilters:r,modalRef:o})=>o.isOpen?G.createPortal(t.jsx(Ne,{$bgColor:"transparent",children:t.jsxs(fe,{$size:"lg",position:"relative",children:[t.jsx(Ut,{icon:"close",iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:o.close,px:.25,py:.25,variant:"ghost"}),t.jsxs(b,{display:"flex",gap:1,justify:"space-between",px:1.25,py:1.25,children:[t.jsx(Ce,{onApplyFilters:r,options:i,variant:a}),t.jsx(Ce,{onApplyFilters:r,options:n,variant:a})]})]})}),document.getElementById(e)??document.body):t.jsx("div",{}),jr=s.dt.div`
|
|
2357
2363
|
${({theme:e,$variant:n})=>`
|
|
2358
2364
|
background: ${e.palette.white};
|
|
2359
2365
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2372,7 +2378,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2372
2378
|
right: 16px;
|
|
2373
2379
|
}
|
|
2374
2380
|
`}
|
|
2375
|
-
`,
|
|
2381
|
+
`,kr=s.dt.div`
|
|
2376
2382
|
${({theme:e,$variant:n})=>`
|
|
2377
2383
|
height: ${e.spacing[2.5]};
|
|
2378
2384
|
width: ${e.spacing[2.5]};
|
|
@@ -2403,7 +2409,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2403
2409
|
color: ${e.palette[n][500]};
|
|
2404
2410
|
}
|
|
2405
2411
|
`}
|
|
2406
|
-
`,
|
|
2412
|
+
`,Cr=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",vr=({description:e,onClose:n,title:i,variant:a})=>{const r=s.nt(),o=p.useCallback(()=>{n==null||n()},[n]);return t.jsxs(jr,{$variant:a,className:`notification notification__${a}`,role:"alertdialog",children:[t.jsxs(kr,{$variant:a,children:[t.jsx(S,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(S,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(S,{icon:Cr(a),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(b,{pr:1.5,children:[t.jsx(L,{fontWeight:"bold",size:"xs",children:i}),t.jsx(k,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(O,{height:"fit-content",icon:"close",iconColor:r.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:o,px:.125,py:.125,variant:"ghost"})]})},Sr=s.dt.div`
|
|
2407
2413
|
width: fit-content;
|
|
2408
2414
|
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2409
2415
|
border-radius: 4px;
|
|
@@ -2416,7 +2422,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2416
2422
|
align-items: center;
|
|
2417
2423
|
justify-content: center;
|
|
2418
2424
|
padding: 0.5em;
|
|
2419
|
-
`,
|
|
2425
|
+
`,zr=s.dt.input`
|
|
2420
2426
|
width: 4em;
|
|
2421
2427
|
appearance: textfield;
|
|
2422
2428
|
border-style: none;
|
|
@@ -2436,7 +2442,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2436
2442
|
&::-webkit-inner-spin-button {
|
|
2437
2443
|
opacity: 1;
|
|
2438
2444
|
}
|
|
2439
|
-
`,
|
|
2445
|
+
`,Ir=p.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:a=0,max:r,min:o,name:l,onEnter:c,tooltipMessage:d,...g},u){const f=i<0?0:i,[x,h]=p.useState(Number(a).toFixed(f)),y=p.useCallback(w=>{const j=s.lodashExports.toNumber(w.target.value);w.target.value.endsWith(".")?h(w.target.value):j>=Number(o)&&j<=Number(r)&&(h(String(j)),n&&c(s.lodashExports.toNumber(j.toFixed(f)))),w.stopPropagation()},[n,f,r,o,c]),$=p.useCallback(w=>{w.currentTarget.contains(w.relatedTarget)||h(Number(a).toFixed(f)),w.stopPropagation()},[f,a]),m=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(Sr,{onBlur:$,tabIndex:-1,children:t.jsx(U,{id:"numberInputTooltip",tip:d,children:t.jsx(zr,{...g,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(o),"aria-valuenow":Number(x),max:r,min:o,name:l,onChange:y,onKeyUp:m,ref:u,step:10**-f,type:"number",value:x})})})}),Tr={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Me=({icon:e,label:n,onClick:i,onlyLabel:a=!1,provider:r="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:[a?!1:t.jsx(b,{height:"24px",width:"24px",children:e===void 0?t.jsx(H,{alt:`${r} Logo`,height:"100%",publicId:Tr[r],width:"100%"}):t.jsx(S,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx(b,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(k,{color:o.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:a?"break-spaces":"nowrap",wordWrap:"unset",children:n??r})})]})},Nr=({align:e="end",buttonLabel:n="Add Credential",children:i,id:a,manualOption:r,providers:o})=>{const l=s.nt(),[c,d]=p.useState(!1),g=p.useRef(null);Z(g.current,()=>{d(!1)},!0);const u=p.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),f=p.useCallback(()=>{d(h=>!h)},[d]),x=p.useCallback(h=>y=>{var $;($=o[h])==null||$.onClick(y),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(D,{icon:"plus",onClick:f,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:a,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(Me,{onClick:x(h),provider:h},h)),r===void 0?void 0:t.jsx(Me,{icon:"square-plus",label:r.label??"Add manually",onClick:u}),i]})]})},Yt=()=>t.jsx(b,{alignItems:"center",bgColor:C.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(k,{bgGradient:C.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),Er=s.dt.div`
|
|
2440
2446
|
${({className:e,theme:n})=>`
|
|
2441
2447
|
align-items: flex-start;
|
|
2442
2448
|
border-radius: ${n.spacing[1]};
|
|
@@ -2501,8 +2507,8 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2501
2507
|
width: 320px;
|
|
2502
2508
|
}
|
|
2503
2509
|
`}
|
|
2504
|
-
`;const
|
|
2505
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},
|
|
2510
|
+
`;const Rr={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
|
|
2511
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},Dr=({description:e,onClick:n,plan:i})=>{const{title:a,description:r,benefits:o,buttonText:l}=Rr[i],c=e??r;return t.jsxs(Er,{className:i,children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&t.jsx(Yt,{}),t.jsx(L,{color:C.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:a}),t.jsx(k,{color:C.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:o})]}),t.jsx(k,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(D,{onClick:n,variant:"primary",children:l})]})},qt=({description:e="",highlightDescription:n=""})=>{const i=s.nt(),a=typeof n=="string",r=a?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(k,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:a?t.jsxs(p.Fragment,{children:[t.jsx(we,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:n}),e]}):e.split(r).map((o,l)=>n.includes(o)?t.jsx(we,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:o},`${l+1}-bold`):o)}):t.jsx(k,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},Pr=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:a,confirmButton:r,container:o,description:l,highlightDescription:c="",image:d,maxWidth:g,title:u,titleColor:f})=>{const x=s.nt(),{alt:h,src:y,width:$="77px",height:m="77px"}=d,w=p.useCallback(()=>{n==null||n.onClick()},[n]),j=p.useCallback(()=>{r==null||r.onClick()},[r]),v=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:x.palette.white,border:`1px solid ${x.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(H,{alt:h,height:m,publicId:y,width:$})}),t.jsxs(b,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[t.jsx(L,{color:f,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:u}),t.jsx(qt,{description:l,highlightDescription:c})]})]}),a&&t.jsx(b,{mb:1,scroll:"y",children:t.jsx(b,{height:"100%",children:a})}),t.jsxs(b,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[s.lodashExports.isObject(r)?t.jsx(D,{onClick:j,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,s.lodashExports.isObject(n)?t.jsx(D,{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?G.createPortal(v,o??document.body):v},Fr=s.dt.div`
|
|
2506
2512
|
${({theme:e})=>`
|
|
2507
2513
|
height: ${e.spacing[1]};
|
|
2508
2514
|
width: ${e.spacing[1]};
|
|
@@ -2533,7 +2539,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2533
2539
|
font-size: ${e.spacing[.5]};
|
|
2534
2540
|
}
|
|
2535
2541
|
`}
|
|
2536
|
-
`,
|
|
2542
|
+
`,Kt=({margin:e,onClick:n,text:i})=>{const a=s.nt(),r=t.jsxs(Fr,{children:[t.jsx(S,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(S,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(S,{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:a.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[r,t.jsx(k,{color:a.palette.warning[500],display:"inline",ml:.25,size:"xs",children:i})]})}):t.jsx(b,{display:"inline-block",mr:e,onClick:n,children:r})},Lr=({score:e})=>{const n=s.nt(),i=e<=33?"priority-bars-low":"priority-bars-medium",a=e>66||e===0?"priority-bars-high":i;return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(S,{icon:a,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(k,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:Wr}=V(e=>({compliance:`
|
|
2537
2543
|
display: inline-flex;
|
|
2538
2544
|
|
|
2539
2545
|
&.horizontal {
|
|
@@ -2591,17 +2597,17 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2591
2597
|
.progress-bar {
|
|
2592
2598
|
background-color: ${e.palette.primary[500]};
|
|
2593
2599
|
}
|
|
2594
|
-
`})),
|
|
2600
|
+
`})),Or=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],Br=s.dt.div`
|
|
2595
2601
|
${({theme:e,$minWidth:n,$orientation:i,$rounded:a,$variant:r})=>`
|
|
2596
2602
|
background-color: ${e.palette.gray[100]};
|
|
2597
2603
|
border-radius: ${a?"100px":"unset"};
|
|
2598
2604
|
${i==="horizontal"?"min-width":"min-height"}: ${n}px;
|
|
2599
2605
|
${i==="horizontal"?"":"height: 100%;"}
|
|
2600
2606
|
|
|
2601
|
-
${
|
|
2607
|
+
${Wr(e,r)}
|
|
2602
2608
|
|
|
2603
2609
|
`}
|
|
2604
|
-
`,
|
|
2610
|
+
`,Mr=s.dt.div`
|
|
2605
2611
|
${({theme:e,$percentage:n,$rounded:i,$variant:a})=>`
|
|
2606
2612
|
display: inline-flex;
|
|
2607
2613
|
width: ${n}%;
|
|
@@ -2611,9 +2617,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2611
2617
|
border-radius: ${i?"100px":"unset"};
|
|
2612
2618
|
border-end-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2613
2619
|
border-start-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2614
|
-
background-color: ${a==="compliance"?
|
|
2620
|
+
background-color: ${a==="compliance"?Or(e,n):"inherit"};
|
|
2615
2621
|
`}
|
|
2616
|
-
`,
|
|
2622
|
+
`,Ar=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:a=!1,orientation:r="horizontal",rounded:o=!0,variant:l="default"})=>{const c=a&&i==="left",d=a?t.jsx(b,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(k,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,g=t.jsx(Br,{$minWidth:e,$orientation:r,$rounded:o,$variant:l,className:r,children:t.jsx(Mr,{$percentage:n,$rounded:o,$variant:l,className:"progress-bar"})});return t.jsxs(b,{alignItems:"center",display:"inline-flex",flexDirection:c?"row-reverse":"row",height:r==="horizontal"?"auto":"100%",maxWidth:c?`${e+43}px`:void 0,minWidth:c?`${e+43}px`:void 0,textAlign:"end",children:[g,d]})},Hr=s.dt(Q)`
|
|
2617
2623
|
animation: ${({$animationTime:e})=>`progress-bar ${e}s ease-in-out`};
|
|
2618
2624
|
animation-fill-mode: both;
|
|
2619
2625
|
|
|
@@ -2626,12 +2632,12 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2626
2632
|
width: 100%;
|
|
2627
2633
|
}
|
|
2628
2634
|
}
|
|
2629
|
-
`,
|
|
2635
|
+
`,_r=e=>e*1e3/100,Gr=({progressTime:e=10,onComplete:n})=>{const i=s.nt(),a=100,[r,o]=p.useState(0);return p.useEffect(()=>{r===a&&(n==null||n())},[r,n]),p.useEffect(()=>{const l=setInterval(()=>{o(c=>c===a?0:c+1)},_r(e));return()=>{clearInterval(l)}},[r,e]),t.jsx(b,{bgColor:i.palette.gray[200],height:"4px",children:t.jsx(Hr,{$animationTime:e,bgGradient:i.palette.gradients["01"],height:"100%",width:`${r}%`})})},Vr=s.dt.div.attrs({className:"comp-scroll-up"})`
|
|
2630
2636
|
bottom: 15px;
|
|
2631
2637
|
position: fixed;
|
|
2632
2638
|
right: 140px;
|
|
2633
2639
|
z-index: 100;
|
|
2634
|
-
`,
|
|
2640
|
+
`,Ur=({scrollerId:e="dashboard",visibleAt:n=500})=>{const[i,a]=p.useState(!1),[r,o]=p.useState(null);p.useEffect(()=>{o(document.getElementById(e)),r==null||r.addEventListener("scroll",()=>{a(r.scrollTop>n)})},[r,e,n]);const l=p.useCallback(()=>{r==null||r.scrollTo({behavior:"smooth",top:0})},[r]);return i?t.jsx(Vr,{children:t.jsx(O,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},Yr=s.dt.a`
|
|
2635
2641
|
${({theme:e})=>`
|
|
2636
2642
|
align-items: center;
|
|
2637
2643
|
display: flex;
|
|
@@ -2676,7 +2682,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2676
2682
|
width: 270px;
|
|
2677
2683
|
}
|
|
2678
2684
|
`}
|
|
2679
|
-
`,
|
|
2685
|
+
`,qr=s.dt.div.attrs({className:"icon-wrap"})`
|
|
2680
2686
|
${({theme:e})=>`
|
|
2681
2687
|
align-items: center;
|
|
2682
2688
|
background: ${e.palette.primary[25]};
|
|
@@ -2691,7 +2697,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2691
2697
|
font-size: 20px;
|
|
2692
2698
|
}
|
|
2693
2699
|
`}
|
|
2694
|
-
`,
|
|
2700
|
+
`,Kr=s.dt.div`
|
|
2695
2701
|
${({theme:e})=>`
|
|
2696
2702
|
align-items: flex-start;
|
|
2697
2703
|
display: flex;
|
|
@@ -2723,7 +2729,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2723
2729
|
width: 320px;
|
|
2724
2730
|
}
|
|
2725
2731
|
`}
|
|
2726
|
-
`,
|
|
2732
|
+
`,Xr=s.dt.form`
|
|
2727
2733
|
${({theme:e})=>`
|
|
2728
2734
|
align-items: center;
|
|
2729
2735
|
display: flex;
|
|
@@ -2732,7 +2738,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2732
2738
|
padding: ${e.spacing[1]} ${e.spacing[1.5]};
|
|
2733
2739
|
width: 100%;
|
|
2734
2740
|
`}
|
|
2735
|
-
`,
|
|
2741
|
+
`,Zr=s.dt.input`
|
|
2736
2742
|
${({theme:e})=>`
|
|
2737
2743
|
flex: 1 0 0;
|
|
2738
2744
|
border: none;
|
|
@@ -2758,7 +2764,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2758
2764
|
font-size: ${e.typography.text.sm};
|
|
2759
2765
|
}
|
|
2760
2766
|
`}
|
|
2761
|
-
`,
|
|
2767
|
+
`,Jr=s.dt.button`
|
|
2762
2768
|
${({theme:e})=>`
|
|
2763
2769
|
align-items: center;
|
|
2764
2770
|
border-radius: ${e.spacing[.5]};
|
|
@@ -2821,7 +2827,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2821
2827
|
height: ${e.spacing[.5]};
|
|
2822
2828
|
}
|
|
2823
2829
|
`}
|
|
2824
|
-
`,me=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:a,title:r}=e,o=String(a).startsWith("/pages/")?String(a).replace("/pages/","/"):String(a);return t.jsxs(
|
|
2830
|
+
`,me=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:a,title:r}=e,o=String(a).startsWith("/pages/")?String(a).replace("/pages/","/"):String(a);return t.jsxs(Yr,{href:o,rel:"nofollow noopener noreferrer",children:[i&&t.jsx(qr,{children:t.jsx(S,{icon:n,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),t.jsx(k,{color:C.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(r)})]})},Qr=[{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"}],nt={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},eo=({items:e,placeholder:n="Search",refine:i,query:a})=>{const[r,o]=p.useState(a),[l,c]=p.useState(!1),d=p.useRef(null),g=p.useRef(null),u=r.length>=2,f=p.useCallback(w=>{o(w),i(w)},[i]),x=p.useCallback(()=>{f("")},[f]),h=p.useCallback(()=>{c(!0)},[]),y=p.useCallback(w=>{f(w.currentTarget.value)},[f]),$=p.useCallback(w=>{w.preventDefault(),w.stopPropagation(),x(),g.current&&g.current.focus()},[x]),m=p.useCallback(w=>{w.preventDefault(),w.stopPropagation(),g.current&&g.current.blur()},[]);return Z(d.current,()=>{x(),c(!1)},!0),t.jsxs(Kr,{ref:d,children:[t.jsxs(Xr,{action:"",noValidate:!0,onReset:$,onSubmit:m,role:"search",children:[t.jsxs("div",{className:"flex gap-2 w-full",children:[t.jsx("div",{className:"h-10 p-2",children:t.jsx(S,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),t.jsx(Zr,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:y,onFocus:h,placeholder:n,ref:g,spellCheck:!1,type:"search",value:r})]}),u&&t.jsx(Jr,{type:"reset",children:t.jsx(S,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&r.length<2&&t.jsxs(Ee,{children:[t.jsx(k,{color:C.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:Qr.map(({hit:w,icon:j},v)=>t.jsx(me,{hit:w,icon:j,showIcon:!0},`${j}-${v}`))}),t.jsx(k,{color:C.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),t.jsx(me,{hit:nt.hit,icon:nt.icon,showIcon:!0})]}),u&&e.length>0&&t.jsxs(Ee,{$showHits:u,children:[t.jsx(k,{color:C.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(me,{hit:w},w.objectID))})]}),u&&e.length===0&&t.jsx(Ee,{$empty:e.length===0,children:t.jsxs("div",{className:"items-center flex flex-col gap-4 py-[90px] w-full",children:[t.jsx(H,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),t.jsx(L,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),t.jsxs(k,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${r}” did not match.`,t.jsx("br",{}),"Please try again."]}),t.jsx(D,{onClick:x,variant:"secondary",children:"Clear search"})]})})]})},to={critical:{bgColor:C.palette.primary[700],colorL:C.palette.gray[800],colorR:C.palette.white},disable:{bgColor:C.palette.gray[200],colorL:C.palette.gray[400],colorR:C.palette.gray[400]},high:{bgColor:C.palette.error[500],colorL:C.palette.gray[800],colorR:C.palette.white},low:{bgColor:C.palette.warning[200],colorL:C.palette.gray[800],colorR:C.palette.gray[800]},medium:{bgColor:C.palette.warning[500],colorL:C.palette.gray[800],colorR:C.palette.gray[800]}},no=({textL:e,textR:n,variant:i})=>{const a=s.nt(),{bgColor:r,colorL:o,colorR:l}=to[i];return t.jsxs(b,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(b,{alignItems:"center",bgColor:a.palette.white,border:`1px solid ${r}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(k,{color:o,size:"xs",children:e})}):void 0,t.jsx(b,{alignItems:"center",bgColor:r,border:`1px solid ${r}`,borderRadius:e?"0px 4px 4px 0px":"4px",display:"flex",padding:e?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:t.jsx(k,{color:l,size:"xs",children:n})})]})},io=(e,n)=>{const i={critical:C.palette.primary[700],high:C.palette.error[500],low:C.palette.warning[200],medium:C.palette.warning[500],none:C.palette.gray[200]},a={disabled:C.palette.gray[400],enabled:C.palette.gray[800]},r={critical:C.palette.white,high:C.palette.white,low:C.palette.gray[800],medium:C.palette.gray[800],none:C.palette.gray[400]};return{iconColor:n<1?i.none:i[e],iconText:s.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?r.none:r[e],textColor:n<1?a.disabled:a.enabled}},ie=({variant:e,value:n})=>{const{iconColor:i,iconText:a,iconTextColor:r,textColor:o}=io(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(U,{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(k,{color:r,size:"sm",textAlign:"center",children:a})})}),t.jsx(k,{color:o,size:"sm",children:n})]})},ao=({critical:e,high:n,medium:i,low:a})=>t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(ie,{value:e,variant:"critical"}),t.jsx(ie,{value:n,variant:"high"}),t.jsx(ie,{value:i,variant:"medium"}),t.jsx(ie,{value:a,variant:"low"})]}),ro=s.dt.div`
|
|
2825
2831
|
${({theme:e})=>`
|
|
2826
2832
|
border-radius: ${e.spacing[.25]};
|
|
2827
2833
|
cursor: pointer;
|
|
@@ -2839,7 +2845,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2839
2845
|
display: block;
|
|
2840
2846
|
}
|
|
2841
2847
|
`}
|
|
2842
|
-
`,
|
|
2848
|
+
`,oo=({visibleElement:e,hiddenElement:n})=>t.jsxs(ro,{children:[e,t.jsx(b,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),Xt=({customBadge:e=void 0,description:n,icon:i,onClick:a,requiresUpgrade:r=!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:a,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(S,{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(k,{color:l.palette.gray[800],size:"sm",children:o}),r?t.jsx(Kt,{text:"Upgrade"}):void 0,e]}),t.jsx(k,{color:l.palette.gray[400],size:"xs",children:n})]})]})},so=s.dt(s.m.div)`
|
|
2843
2849
|
${({theme:e})=>`
|
|
2844
2850
|
background-color: ${e.palette.white};
|
|
2845
2851
|
box-shadow: ${e.shadows.lg};
|
|
@@ -2862,7 +2868,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2862
2868
|
height: auto;
|
|
2863
2869
|
}
|
|
2864
2870
|
`}
|
|
2865
|
-
`,
|
|
2871
|
+
`,lo=({children:e,closeIconId:n="close-menu",isOpen:i,items:a,onClose:r,primaryButtonText:o,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:g})=>{const u=s.nt(),f=p.useRef(null),x=p.useCallback(h=>()=>{h(),r()},[r]);return Z(f.current,()=>{r()},!0),t.jsx(s.LazyMotion,{features:s.domAnimation,children:t.jsx(so,{animate:i?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:f,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(k,{color:u.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:g}),t.jsx(O,{icon:"close",iconColor:u.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:n,onClick:r,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:[(a??[]).map(({customBadge:h,description:y,icon:$,onClick:m,requiresUpgrade:w,title:j})=>t.jsx(Xt,{customBadge:h,description:y,icon:$,onClick:x(m),requiresUpgrade:w,title:j},j)),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(D,{color:`${u.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(D,{onClick:l,type:"submit",children:o})]})]})]})})})},co=(e,n)=>n>=50?`
|
|
2866
2872
|
${e.palette.gray[200]} 50%,
|
|
2867
2873
|
${e.palette.primary[500]} 50.05%,
|
|
2868
2874
|
${e.palette.primary[500]} ${n}%,
|
|
@@ -2873,7 +2879,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2873
2879
|
${e.palette.primary[500]} 50%,
|
|
2874
2880
|
${e.palette.gray[200]} 50.05%,
|
|
2875
2881
|
${e.palette.gray[200]} 100%
|
|
2876
|
-
`,
|
|
2882
|
+
`,po=s.dt.div`
|
|
2877
2883
|
${({theme:e,$min:n,$value:i})=>`
|
|
2878
2884
|
align-items: center;
|
|
2879
2885
|
align-self: stretch;
|
|
@@ -2889,7 +2895,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2889
2895
|
${n>=0?`
|
|
2890
2896
|
${e.palette.primary[500]} ${i}%,
|
|
2891
2897
|
${e.palette.gray[200]} ${i}%
|
|
2892
|
-
`:
|
|
2898
|
+
`:co(e,i)}
|
|
2893
2899
|
);
|
|
2894
2900
|
border-radius: ${e.spacing[.125]};
|
|
2895
2901
|
height: ${e.spacing[.25]};
|
|
@@ -2913,7 +2919,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2913
2919
|
border: 1px solid ${e.palette.primary[500]};
|
|
2914
2920
|
}
|
|
2915
2921
|
`}
|
|
2916
|
-
`,
|
|
2922
|
+
`,go=s.dt.div`
|
|
2917
2923
|
${({theme:e})=>`
|
|
2918
2924
|
align-items: center;
|
|
2919
2925
|
display: flex;
|
|
@@ -2927,7 +2933,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2927
2933
|
font-size: ${e.spacing[.5]};
|
|
2928
2934
|
}
|
|
2929
2935
|
`}
|
|
2930
|
-
`,
|
|
2936
|
+
`,uo=s.dt.output`
|
|
2931
2937
|
${({theme:e})=>`
|
|
2932
2938
|
align-items: flex-end;
|
|
2933
2939
|
border-radius: ${e.spacing[.5]};
|
|
@@ -2938,7 +2944,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2938
2944
|
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
2939
2945
|
width: 59px;
|
|
2940
2946
|
`}
|
|
2941
|
-
`,
|
|
2947
|
+
`,Zt=({state:e,trackRef:n,index:i,name:a})=>{const r=p.useRef(null),{thumbProps:o,inputProps:l,isDragging:c}=s.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:r},e);return t.jsx("div",{...o,className:`thumb ${c?"dragging":""}`,children:t.jsx(s.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{...l,"aria-label":a,ref:r})})})},xo=(e,n,i)=>Math.round((i-e)/(n-e)*100),fo=e=>{const n=s.nt(),i=p.useRef(null),{label:a,minValue:r=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(y){c==null||c(l,y)},value:d==null?void 0:d(l)}),f=xo(r,o,u.getThumbValue(0)),{groupProps:x,trackProps:h}=s.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":l,id:l},u,i);return t.jsx(M,{htmlFor:l,label:a,children:t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(po,{...x,$min:r??0,$value:f,className:"slider",children:[t.jsx("div",{...h,className:`track ${u.isDisabled?"disabled":""}`,ref:i,children:t.jsx(Zt,{index:0,name:l,state:u,trackRef:i})}),t.jsxs(go,{children:[t.jsx("p",{children:`${g.format(r)} (Low)`}),r<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${g.format(o)} (High)`})]})]}),t.jsx(uo,{children:t.jsx(k,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:u.getThumbValueLabel(0)})})]})})},{getVariant:ho}=V(e=>({completed:`
|
|
2942
2948
|
background-color: ${e.palette.primary[500]};
|
|
2943
2949
|
color: ${e.palette.white};
|
|
2944
2950
|
|
|
@@ -2961,7 +2967,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2961
2967
|
&::after {
|
|
2962
2968
|
background-color: ${e.palette.gray[200]};
|
|
2963
2969
|
}
|
|
2964
|
-
`})),
|
|
2970
|
+
`})),bo=s.dt.div`
|
|
2965
2971
|
${({theme:e})=>`
|
|
2966
2972
|
align-items: stretch;
|
|
2967
2973
|
background-color: ${e.palette.white};
|
|
@@ -2971,7 +2977,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2971
2977
|
padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
|
|
2972
2978
|
scroll-behavior: unset;
|
|
2973
2979
|
`}
|
|
2974
|
-
|
|
2980
|
+
`,$o=s.dt.div`
|
|
2975
2981
|
display: flex;
|
|
2976
2982
|
flex-direction: row;
|
|
2977
2983
|
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
@@ -2979,7 +2985,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2979
2985
|
&:last-child > div:first-child > span::after {
|
|
2980
2986
|
display: none;
|
|
2981
2987
|
}
|
|
2982
|
-
|
|
2988
|
+
`,yo=s.dt.div`
|
|
2983
2989
|
${({theme:e})=>`
|
|
2984
2990
|
display: inline-flex;
|
|
2985
2991
|
font-family: ${e.typography.type.primary};
|
|
@@ -2991,7 +2997,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
2991
2997
|
margin-right: ${e.spacing[.5]};
|
|
2992
2998
|
}
|
|
2993
2999
|
`}
|
|
2994
|
-
`,
|
|
3000
|
+
`,mo=s.dt.span`
|
|
2995
3001
|
${({theme:e,$variant:n})=>`
|
|
2996
3002
|
border-radius: 6px;
|
|
2997
3003
|
display: inline-block;
|
|
@@ -3014,9 +3020,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3014
3020
|
height: calc(100% - ${e.spacing[1]});
|
|
3015
3021
|
}
|
|
3016
3022
|
|
|
3017
|
-
${
|
|
3023
|
+
${ho(e,n)}
|
|
3018
3024
|
`}
|
|
3019
|
-
`,
|
|
3025
|
+
`,wo=({button:{disabled:e=!1,text:n,type:i="button",onClick:a},steps:r})=>{const[o,l]=p.useState(1),c=p.useCallback((d,g)=>()=>{l(u=>u+d),g==null||g()},[]);return t.jsx(bo,{children:r.map((d,g)=>{const{content:u,title:f,nextAction:x,previousAction:h}=d,y=g+1,$=y===o?"current":"disabled",m=y<o?"completed":$;return t.jsxs($o,{children:[t.jsx(b,{maxWidth:"40px",position:"relative",children:t.jsx(mo,{$variant:m,children:m==="completed"?t.jsx(S,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):y})}),t.jsxs(b,{ml:1.5,width:"100%",children:[t.jsx(L,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:f}),m==="current"&&t.jsxs(b,{children:[u,t.jsxs(yo,{children:[o>1&&t.jsx(D,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,h),variant:"tertiary",children:"Previous"}),o<r.length?t.jsx(D,{disabled:d.isDisabledNext??!1,onClick:c(1,x),variant:"primary",children:"Next step"}):t.jsx(D,{disabled:e,onClick:a,type:i,variant:"primary",children:n})]})]})]})]},d.title)})})},jo=s.dt.button`
|
|
3020
3026
|
${({theme:e})=>`
|
|
3021
3027
|
align-items: center;
|
|
3022
3028
|
background-color: ${e.palette.white};
|
|
@@ -3058,7 +3064,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3058
3064
|
background-color: ${e.palette.gray[100]};
|
|
3059
3065
|
}
|
|
3060
3066
|
`}
|
|
3061
|
-
`,
|
|
3067
|
+
`,ko={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Co=({disabled:e=!1,icon:n,id:i,label:a,name:r,onClick:o,type:l="button",variant:c})=>{const d=s.nt(),g=t.jsxs(jo,{"aria-label":r??void 0,className:c,disabled:e,id:i,onClick:o,type:l,children:[t.jsx(S,{clickable:!1,icon:n??ko[c].icon,iconSize:r===void 0?"xxs":"xs",iconType:"fa-light"}),r??void 0]});return t.jsxs(b,{alignItems:"center",display:"flex",children:[g,a&&t.jsx(k,{color:d.palette.gray[800],ml:.5,size:"sm",children:a})]})},vo=({items:e})=>t.jsx(ra,{children:e.map(({isActive:n,label:i,onClick:a},r)=>t.jsx(aa,{className:n?"active":"",onClick:a,type:"button",children:t.jsx(L,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:i})},`${i}-${r}`))}),So=s.dt.div`
|
|
3062
3068
|
${({theme:e})=>`
|
|
3063
3069
|
align-items: center;
|
|
3064
3070
|
background-color: ${e.palette.white};
|
|
@@ -3080,7 +3086,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3080
3086
|
border: 1px solid ${e.palette.gray[600]};
|
|
3081
3087
|
}
|
|
3082
3088
|
`}
|
|
3083
|
-
`,
|
|
3089
|
+
`,zo=s.dt.div`
|
|
3084
3090
|
${({theme:e})=>`
|
|
3085
3091
|
display: flex;
|
|
3086
3092
|
flex-direction: column;
|
|
@@ -3151,7 +3157,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3151
3157
|
}
|
|
3152
3158
|
}
|
|
3153
3159
|
`}
|
|
3154
|
-
`,
|
|
3160
|
+
`,Jt=({date:e,description:n,title:i})=>{const a=s.nt();return t.jsxs(So,{className:"timeline-card",children:[t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(k,{color:a.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((r,o)=>{const l=`${r}#${o}`;return t.jsx(k,{size:"sm",textAlign:"center",wordBreak:"break-word",children:r},l)})})]})},Io=({items:e})=>t.jsx(zo,{children:e.map((n,i)=>t.jsx(Jt,{date:n.date,description:n.description,title:n.title},`${n.title}-${i}`))}),To=s.dt.div`
|
|
3155
3161
|
${({theme:e})=>`
|
|
3156
3162
|
align-items: center;
|
|
3157
3163
|
display: flex;
|
|
@@ -3181,7 +3187,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3181
3187
|
width: 320px;
|
|
3182
3188
|
}
|
|
3183
3189
|
`}
|
|
3184
|
-
`,
|
|
3190
|
+
`,No=s.dt.button`
|
|
3185
3191
|
${({theme:e})=>`
|
|
3186
3192
|
align-items: center;
|
|
3187
3193
|
background: linear-gradient(
|
|
@@ -3210,7 +3216,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3210
3216
|
color: ${e.palette.white};
|
|
3211
3217
|
}
|
|
3212
3218
|
`}
|
|
3213
|
-
`,
|
|
3219
|
+
`,Eo=({defaultSelection:e,options:n,handleClick:i})=>{const[a,r]=p.useState(e??n[0]),o=p.useCallback(l=>()=>{r(l),i(l)},[i]);return t.jsx(To,{children:n.map((l,c)=>t.jsx(No,{className:`${l.includes(a)&&"selected"}`,onClick:o(l),children:t.jsx(k,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:l})},`${l}-${c}`))})},Ro={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:""},Do=({run:e,steps:n,onFinish:i})=>{const[a,r]=p.useState(e),[o,l]=p.useState(0),c=p.useCallback(d=>{const{action:g,index:u,status:f,type:x}=d;[s.EVENTS.STEP_AFTER,s.EVENTS.TARGET_NOT_FOUND].includes(x)?l(u+(g===s.ACTIONS.PREV?-1:1)):([s.STATUS.FINISHED,s.STATUS.SKIPPED].includes(f)||g==="close")&&(r(!1),s.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(s.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:a,spotlightClicks:!0,stepIndex:o,steps:n,styles:{buttonNext:{display:o===n.length-1?"none":"block"},options:{zIndex:9999}}})},Po=s.dt.form`
|
|
3214
3220
|
${({theme:e})=>`
|
|
3215
3221
|
align-items: center;
|
|
3216
3222
|
background: ${e.palette.gray[50]};
|
|
@@ -3238,7 +3244,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3238
3244
|
width: 320px;
|
|
3239
3245
|
}
|
|
3240
3246
|
`}
|
|
3241
|
-
`,
|
|
3247
|
+
`,Fo=s.dt.div`
|
|
3242
3248
|
align-items: flex-start;
|
|
3243
3249
|
align-self: stretch;
|
|
3244
3250
|
display: flex;
|
|
@@ -3252,7 +3258,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3252
3258
|
text-align: center;
|
|
3253
3259
|
}
|
|
3254
3260
|
}
|
|
3255
|
-
`,
|
|
3261
|
+
`,Lo=s.dt.div`
|
|
3256
3262
|
${({theme:e})=>`
|
|
3257
3263
|
align-items: flex-start;
|
|
3258
3264
|
align-self: stretch;
|
|
@@ -3273,4 +3279,4 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[a,n,e]),g=p.useMemo(d,[d]),u=p.useCallback(a
|
|
|
3273
3279
|
flex-direction: column;
|
|
3274
3280
|
}
|
|
3275
3281
|
`}
|
|
3276
|
-
`,
|
|
3282
|
+
`,Wo=({children:e,name:n,onSubmit:i,submitDisabled:a,submitLabel:r="Submit"})=>t.jsx(Po,{"aria-label":n,name:n,onSubmit:i,children:t.jsxs(Fo,{children:[e,t.jsx(D,{disabled:a,type:"submit",children:r})]})});exports.Accordion=En;exports.AccordionContent=ot;exports.ActionButton=Fe;exports.Alert=Mn;exports.BaseButtonComponent=Ae;exports.BaseComponent=Q;exports.BaseSpanComponent=at;exports.BaseTextComponent=He;exports.Button=D;exports.Button$1=je;exports.ButtonToolbarCenter=Ba;exports.ButtonToolbarRow=Aa;exports.ButtonToolbarStartRow=Ma;exports.Calendar=ut;exports.Calendar$1=yt;exports.Calendar$2=mt;exports.CalendarCell=gt;exports.CalendarGrid=Se;exports.CardHeader=ve;exports.CardWithImage=Kn;exports.CardWithInput=Di;exports.CardWithOptions=kt;exports.CardWithSelector=Bi;exports.CardWithSwitch=Hi;exports.Carousel=qi;exports.CategoryTag=We;exports.Checkbox=Te;exports.Code=Zi;exports.CodeSnippet=Xi;exports.Col=_a;exports.ColumnsModal=br;exports.ComboBox=ei;exports.Container=b;exports.ContentCard=Ot;exports.ContentCardCarousel=xa;exports.CustomThemeProvider=kn;exports.DateField=ft;exports.DateSelector=ae;exports.Description=qt;exports.Dialog=Ie;exports.Divider=J;exports.Editable=$i;exports.EmptyButton=Oe;exports.EmptyState=$a;exports.EventDate=Wt;exports.FilePreview=ct;exports.FiltersList=Ce;exports.FixedTabs=vo;exports.Form=ma;exports.FormItem=Lo;exports.Gap=Va;exports.GridContainer=ja;exports.GroupSelector=za;exports.Header=ze;exports.Header$1=Pt;exports.Heading=L;exports.Icon=S;exports.IconButton=O;exports.IndicatorCard=Ia;exports.InfoSidebar=Ta;exports.Input=wt;exports.InputDate=$t;exports.InputDateRange=xi;exports.InputDateTime=bi;exports.InputFile=ji;exports.InputNumber=jt;exports.InputNumberRange=vi;exports.InputTags=Ci;exports.InteractiveCard=Ra;exports.InteractiveIcon=Mt;exports.ItemList=At;exports.ItemSearching=me;exports.Label=_e;exports.LanguageSelector=Oa;exports.Link=X;exports.ListItem=he;exports.ListItemsWrapper=Ht;exports.LittleFlag=Xa;exports.Loading=ar;exports.Logo=dr;exports.LogoCarousel=lr;exports.MemoizedImage=H;exports.Menu=pr;exports.MenuItem=Xt;exports.MessageBanner=xr;exports.Modal=Lt;exports.ModalConfirm=Ft;exports.ModalFooter=Et;exports.Notification=vr;exports.NotificationSign=Rt;exports.NumberField=ke;exports.NumberInput=Ir;exports.OAuthSelector=Nr;exports.Option=dt;exports.OptionBoxContainer=Ue;exports.OptionContainer=Me;exports.OptionContainer$1=Bt;exports.OptionsSelector=Be;exports.OutlineContainer=M;exports.PhoneInput=Ei;exports.PlanCard=Dr;exports.PopUp=Pr;exports.Popover=xe;exports.PremiumFeature=Kt;exports.PreviewPanel=_t;exports.PriorityScore=Lr;exports.Progress=Gr;exports.ProgressBar=Ar;exports.RadioButton=It;exports.RecommendedTag=Yt;exports.Row=Ya;exports.ScrollButtons=Le;exports.ScrollUpButton=Ur;exports.Search=re;exports.SearchBar=eo;exports.SearchPanel=Vt;exports.SeverityBadge=no;exports.SeverityOverview=ao;exports.SeverityOverviewBadge=ie;exports.ShowOnHover=oo;exports.SingleColumFilters=mr;exports.SlideOutMenu=lo;exports.Slider=fo;exports.Span=we;exports.StepLapse=wo;exports.Tab=Dt;exports.TableButton=Co;exports.Tabs=Ve;exports.Tag=q;exports.TagsField=Pe;exports.Text=k;exports.TextArea=Ri;exports.Thumb=Zt;exports.TimeField=ht;exports.TimeLine=Io;exports.TimeLineCard=Jt;exports.Toggle=Tt;exports.ToggleButton=Eo;exports.Tooltip=U;exports.Tour=Do;exports.TwoColumnsFilters=wr;exports.WebForm=Wo;exports.baseStep=Ro;exports.getStyledConfig=ue;exports.hiddenProps=it;exports.icons=wn;exports.setBorder=ce;exports.setDisplay=de;exports.setInteraction=ge;exports.setMargin=se;exports.setPadding=oe;exports.setPosition=le;exports.setText=pe;exports.theme=C;exports.uniqueIcons=jn;exports.useCarousel=Ct;exports.useClickOutside=Z;exports.useCloudinaryImage=vt;exports.useConfirmDialog=da;exports.useDebouncedCallback=St;exports.useModal=zt;exports.useSearch=Fi;exports.variantBuilder=V;
|