@fluidattacks/design 3.7.8-pr → 3.7.9-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/columns-selector/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/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.d.ts +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/inputs/utils/types.d.ts +2 -0
- 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/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/modal/multiple-selection/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/sortable-list/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-CEh3vrS9.js → components-CMT3jHMr.js} +194 -197
- package/dist/{components-BLfxQmrq.mjs → components-H8BC08FO.mjs} +1524 -1521
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),g=require("react"),a=require("./vendor-CURwPSaG.js"),
|
|
1
|
+
"use strict";const t=require("react/jsx-runtime"),g=require("react"),a=require("./vendor-CURwPSaG.js"),ee=require("react-dom"),Ee=require("react-router-dom"),H=e=>({getVariant:(n,i)=>e(n)[i]}),et=["padding","px","py","pl","pr","pt","pb","margin","mx","my","ml","mr","mt","mb","zIndex","position","top","right","bottom","left","border","borderTop","borderRight","borderBottom","borderLeft","borderColor","borderRadius","scroll","visibility","display","height","width","maxHeight","maxWidth","minHeight","minWidth","shadow","bgColor","bgGradient","gap","flexDirection","flexGrow","justify","justifySelf","alignItems","alignSelf","wrap","color","fontFamily","fontSize","fontWeight","textAlign","whiteSpace","letterSpacing","lineSpacing","textDecoration","textOverflow","whiteSpace","wordBreak","wordWrap","cursor","transition","borderColorHover","bgColorHover","shadowHover"],rn={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},an={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},on={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},sn={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},ln={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},cn={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},dn={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},pn={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},gn={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"}},un={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)"},xn={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},fn={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"},hn=["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"],bn=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],C={typography:gn,shadows:un,breakpoints:xn,spacing:fn,palette:{primary:an,complementary:on,error:sn,info:dn,warning:ln,success:cn,black:"#0c111d",white:"#ffffff",gray:rn,gradients:pn}},$n=({children:e})=>t.jsx(a.ot,{theme:C,children:e}),z=(e,n)=>n===void 0?"":`${e}: ${n};`,se=e=>{const n=e.py??e.pt??0,i=e.px??e.pr??0,o=e.py??e.pb??0,r=e.px??e.pl??0;if(e.padding){const[s,l,c,d]=e.padding;return`padding: ${C.spacing[s]} ${C.spacing[l]} ${C.spacing[c]} ${C.spacing[d]};`}return`padding: ${C.spacing[n]} ${C.spacing[i]} ${C.spacing[o]} ${C.spacing[r]};`},le=e=>{const n=e.my??e.mt??0,i=e.mx??e.mr??0,o=e.my??e.mb??0,r=e.mx??e.ml??0;if(e.margin){const[s,l,c,d]=e.margin;return`margin: ${C.spacing[s]} ${C.spacing[l]} ${C.spacing[c]} ${C.spacing[d]};`}return`margin: ${C.spacing[n]} ${C.spacing[i]} ${C.spacing[o]} ${C.spacing[r]};`},ce=e=>{const n=z("position",e.position),i=z("top",e.top),o=z("right",e.right),r=z("bottom",e.bottom),s=z("left",e.left),l=z("z-index",e.zIndex);return`
|
|
2
2
|
${n}
|
|
3
3
|
${i}
|
|
4
4
|
${o}
|
|
5
5
|
${r}
|
|
6
6
|
${s}
|
|
7
7
|
${l}
|
|
8
|
-
`},de=e=>{const n=
|
|
8
|
+
`},de=e=>{const n=z("border",e.border),i=z("border-top",e.borderTop),o=z("border-right",e.borderRight),r=z("border-bottom",e.borderBottom),s=z("border-left",e.borderLeft),l=z("border-color",e.borderColor),c=z("border-radius",e.borderRadius);return`
|
|
9
9
|
${n}
|
|
10
10
|
${i}
|
|
11
11
|
${o}
|
|
@@ -13,10 +13,10 @@
|
|
|
13
13
|
${s}
|
|
14
14
|
${l}
|
|
15
15
|
${c}
|
|
16
|
-
`}
|
|
17
|
-
${$n(e.scroll)}
|
|
16
|
+
`},yn=e=>e.includes("x")?"overflow-x: auto;":"",mn=e=>e.includes("y")?"overflow-y: auto;":"",pe=e=>{const n=e.scroll?`
|
|
18
17
|
${yn(e.scroll)}
|
|
19
|
-
|
|
18
|
+
${mn(e.scroll)}
|
|
19
|
+
`:"",i=z("visibility",e.visibility),o=z("display",e.display),r=z("height",e.height),s=z("width",e.width),l=z("max-height",e.maxHeight),c=z("max-width",e.maxWidth),d=z("min-height",e.minHeight),p=z("min-width",e.minWidth),u=z("box-shadow",e.shadow?C.shadows[e.shadow]:void 0),f=z("gap",e.gap===void 0?void 0:C.spacing[e.gap]),x=z("background-color",e.bgColor),h=z("background",e.bgGradient),$=z("flex-direction",e.flexDirection),w=z("flex-grow",e.flexGrow),m=z("justify-content",e.justify),y=z("justify-self",e.justifySelf),k=z("align-items",e.alignItems),I=z("align-self",e.alignSelf),S=z("flex-wrap",e.wrap);return`
|
|
20
20
|
${n}
|
|
21
21
|
${i}
|
|
22
22
|
${o}
|
|
@@ -27,17 +27,17 @@
|
|
|
27
27
|
${d}
|
|
28
28
|
${p}
|
|
29
29
|
${u}
|
|
30
|
-
${f}
|
|
31
|
-
${h}
|
|
32
30
|
${x}
|
|
31
|
+
${h}
|
|
32
|
+
${f}
|
|
33
33
|
${$}
|
|
34
|
+
${w}
|
|
34
35
|
${m}
|
|
35
36
|
${y}
|
|
36
|
-
${
|
|
37
|
-
${
|
|
37
|
+
${k}
|
|
38
|
+
${I}
|
|
38
39
|
${S}
|
|
39
|
-
|
|
40
|
-
`},ge=e=>{const n=I("color",e.color),i=I("font-family",e.fontFamily),o=I("font-size",e.fontSize),r=I("font-weight",e.fontWeight),s=I("line-spacing",e.letterSpacing),l=I("line-height",e.lineSpacing),c=I("text-align",e.textAlign),d=I("text-decoration",e.textDecoration),p=I("text-overflow",e.textOverflow),u=I("white-space",e.whiteSpace),x=I("word-break",e.wordBreak),f=I("word-wrap",e.wordWrap);return`
|
|
40
|
+
`},ge=e=>{const n=z("color",e.color),i=z("font-family",e.fontFamily),o=z("font-size",e.fontSize),r=z("font-weight",e.fontWeight),s=z("line-spacing",e.letterSpacing),l=z("line-height",e.lineSpacing),c=z("text-align",e.textAlign),d=z("text-decoration",e.textDecoration),p=z("text-overflow",e.textOverflow),u=z("white-space",e.whiteSpace),f=z("word-break",e.wordBreak),x=z("word-wrap",e.wordWrap);return`
|
|
41
41
|
${n}
|
|
42
42
|
${i}
|
|
43
43
|
${o}
|
|
@@ -48,9 +48,9 @@
|
|
|
48
48
|
${d}
|
|
49
49
|
${p}
|
|
50
50
|
${u}
|
|
51
|
-
${x}
|
|
52
51
|
${f}
|
|
53
|
-
|
|
52
|
+
${x}
|
|
53
|
+
`},ue=e=>{const n=z("cursor",e.cursor),i=z("border-color",e.borderColorHover),o=z("background-color",e.bgColorHover),r=z("box-shadow",e.shadowHover===void 0?void 0:C.shadows[e.shadowHover]),s=z("transition",e.transition);return`
|
|
54
54
|
${n}
|
|
55
55
|
|
|
56
56
|
&:hover {
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
${o}
|
|
60
60
|
${r}
|
|
61
61
|
}
|
|
62
|
-
`},xe=()=>({shouldForwardProp:e=>!et.includes(e)}),
|
|
62
|
+
`},xe=()=>({shouldForwardProp:e=>!et.includes(e)}),te=a.dt.div.withConfig(xe())`
|
|
63
63
|
${se}
|
|
64
64
|
${le}
|
|
65
65
|
${ce}
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
${ge}
|
|
92
92
|
${de}
|
|
93
93
|
${ue}
|
|
94
|
-
`,
|
|
94
|
+
`,wn=a.dt(te)`
|
|
95
95
|
${({theme:e,$center:n=!1,$styleMd:i,$styleSm:o})=>`
|
|
96
96
|
${n?"margin: auto;":""}
|
|
97
97
|
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
@@ -108,8 +108,8 @@
|
|
|
108
108
|
${o};
|
|
109
109
|
}
|
|
110
110
|
`}
|
|
111
|
-
`,b=g.forwardRef(function({as:n="div",center:i,children:o,id:r,onHover:s,onLeave:l,styleMd:c,styleSm:d,...p},u){return t.jsx(
|
|
112
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:o="block",$fontFamily:r=e.typography.type.primary,$fontWeight:s="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:p,$sizeMd:u,$sizeSm:
|
|
111
|
+
`,b=g.forwardRef(function({as:n="div",center:i,children:o,id:r,onHover:s,onLeave:l,styleMd:c,styleSm:d,...p},u){return t.jsx(wn,{$center:i,$styleMd:c,$styleSm:d,as:n,id:r,onMouseLeave:l,onMouseOver:s,ref:u,...p,children:o})}),jn=a.dt(Oe)`
|
|
112
|
+
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[800],$display:o="block",$fontFamily:r=e.typography.type.primary,$fontWeight:s="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:p,$sizeMd:u,$sizeSm:f,$textFill:x="unset",$wordBreak:h="normal"})=>`
|
|
113
113
|
background: ${n};
|
|
114
114
|
color: ${i};
|
|
115
115
|
display: ${o};
|
|
@@ -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??p]};
|
|
136
136
|
line-height: ${e.spacing[d??c]};
|
|
137
137
|
}
|
|
138
138
|
`}
|
|
139
139
|
`,nt=a.dt(Oe)`
|
|
140
|
-
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:o="block",$fontFamily:r=e.typography.type.primary,$fontWeight:s="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:p,$sizeMd:u,$sizeSm:
|
|
140
|
+
${({theme:e,$bgGradient:n="unset",$color:i=e.palette.gray[600],$display:o="block",$fontFamily:r=e.typography.type.primary,$fontWeight:s="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:p,$sizeMd:u,$sizeSm:f,$textFill:x="unset",$wordBreak:h="normal"})=>`
|
|
141
141
|
background: ${n};
|
|
142
142
|
color: ${i};
|
|
143
143
|
display: ${o};
|
|
@@ -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??p]};
|
|
164
164
|
line-height: ${e.spacing[d??c]};
|
|
165
165
|
}
|
|
166
166
|
`}
|
|
167
|
-
`,
|
|
167
|
+
`,kn=a.dt.span`
|
|
168
168
|
${({theme:e,$color:n=e.palette.gray[600],$content:i=void 0,$display:o="inline",$fontWeight:r="regular",$size:s,$lineSpacing:l=1.25})=>`
|
|
169
169
|
color: ${n};
|
|
170
170
|
display: ${o};
|
|
@@ -176,11 +176,11 @@
|
|
|
176
176
|
|
|
177
177
|
${i===void 0?"":`&::after { content: "${i}"; }`}
|
|
178
178
|
`}
|
|
179
|
-
`,
|
|
179
|
+
`,L=g.forwardRef(function({bgGradient:n,children:i,className:o,color:r,display:s,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:u,size:f,sizeMd:x,sizeSm:h,textFill:$,wordBreak:w,...m},y){return t.jsx(jn,{$bgGradient:n,$color:r,$display:s,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:u,$size:f,$sizeMd:x,$sizeSm:h,$textFill:$,$wordBreak:w,className:o,ref:y,...m,children:i})}),we=g.forwardRef(function({children:n,color:i,content:o,display:r,fontFamily:s,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,size:u,sizeMd:f,sizeSm:x,...h},$){return t.jsx(kn,{$color:i,$content:o,$display:r,$fontFamily:s,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$size:u,$sizeMd:f,$sizeSm:x,ref:$,...h,children:n})}),j=g.forwardRef(function({bgGradient:n,children:i,className:o,color:r,display:s,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:u,size:f,sizeMd:x,sizeSm:h,textFill:$,wordBreak:w,...m},y){return t.jsx(nt,{$bgGradient:n,$color:r,$display:s,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:u,$size:f,$sizeMd:x,$sizeSm:h,$textFill:$,$wordBreak:w,className:o,ref:y,...m,children:i})}),it=({item:e})=>t.jsxs(b,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[e.description?t.jsx(j,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):void 0,e.extraElement?t.jsx(b,{children:e.extraElement}):void 0]}),Cn={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},vn=a.dt(tt)`
|
|
180
180
|
${({$clickable:e,$color:n="inherit",$disabled:i=!1,$hoverColor:o,$rotation:r,$size:s,$secondaryColor:l})=>{const c=o?"":"brightness(50%)",d=o??"";return`
|
|
181
181
|
color: ${n};
|
|
182
182
|
cursor: ${e?"pointer":"inherit"};
|
|
183
|
-
font-size: ${
|
|
183
|
+
font-size: ${Cn[s]};
|
|
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
|
|
215
|
+
`;const v=g.forwardRef(function({clickable:n,disabled:i,hoverColor:o,icon:r,iconClass:s="",iconColor:l,iconMask:c,iconSize:d,iconTransform:p,iconType:u="fa-solid",onClick:f,rotation:x,spanClass:h,secondaryColor:$,...w},m){return t.jsx(vn,{$clickable:n,$color:l,$disabled:i,$hoverColor:o,$rotation:x,$secondaryColor:$,$size:d,className:h,"data-testid":`${r}-icon`,onClick:f,ref:m,...w,children:t.jsx("i",{className:`${u} fa-${r} ${s}`,...c!==void 0?{"data-fa-mask":c}:{},...p!==void 0?{"data-fa-transform":p}:{}})},`${u}-${r}`)}),Sn=g.forwardRef(function({aligned:n="end",items:i,bgColor:o},r){const s=a.nt(),[l,c]=g.useState(!1),[d,p]=g.useState(-1),u=g.useCallback(f=>()=>{p(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:o??s.palette.white,children:[t.jsx(b,{"aria-controls":`panel-${f.title}`,"aria-expanded":l,"aria-label":f.title,as:"button",bgColor:o??s.palette.white,bgColorHover:s.palette.gray[100],borderBottom:h||x===i.length-1?"1px solid":void 0,borderColor:s.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(j,{color:s.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:f.title}),t.jsx(v,{icon:h?"chevron-up":"chevron-down",iconColor:s.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),h&&t.jsx(it,{item:f})]},f.title)})})}),zn=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:In}=H(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
|
+
`})),Tn=a.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
|
+
${In(e,n??"error")}
|
|
288
288
|
`}
|
|
289
|
-
`,
|
|
289
|
+
`,Nn=a.dt.div`
|
|
290
290
|
padding-right: 4px;
|
|
291
291
|
width: 100%;
|
|
292
|
-
`,{getVariant:
|
|
292
|
+
`,{getVariant:Rn}=H(e=>({ghost:`
|
|
293
293
|
background: transparent;
|
|
294
294
|
border: none;
|
|
295
295
|
color: ${e.palette.gray[800]};
|
|
@@ -385,7 +385,7 @@
|
|
|
385
385
|
${n!=="link"?`--btn-padding-y: ${e.spacing[1]}`:""};
|
|
386
386
|
}
|
|
387
387
|
|
|
388
|
-
${
|
|
388
|
+
${Rn(e,n??"primary")}
|
|
389
389
|
`}
|
|
390
390
|
`,En=a.dt(rt)`
|
|
391
391
|
${({theme:e,$borderRadius:n="4px",$px:i=.5,$py:o=.5})=>`
|
|
@@ -401,7 +401,7 @@
|
|
|
401
401
|
margin: 0 !important;
|
|
402
402
|
}
|
|
403
403
|
`}
|
|
404
|
-
`,
|
|
404
|
+
`,Dn=a.dt(te)``,Fn=a.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
|
-
`,G=g.forwardRef(function({children:n,disabled:i=!1,display:o="inline-block",effect:r="solid",icon:s,iconColor:l,iconSize:c,id:d,maxWidth:p,nodeTip:u,place:
|
|
417
|
+
`,G=g.forwardRef(function({children:n,disabled:i=!1,display:o="inline-block",effect:r="solid",icon:s,iconColor:l,iconSize:c,id:d,maxWidth:p,nodeTip:u,place:f="bottom",tip:x="",title:h="",hide:$=x===""&&h===""&&u===void 0,...w},m){const y=a.nt(),[k,I]=g.useState(!1),S=g.useRef(null),N=g.useCallback(()=>{S.current!==null&&clearTimeout(S.current),S.current=setTimeout(()=>{I(!0)},100)},[]),E=g.useCallback(()=>{S.current!==null&&clearTimeout(S.current),S.current=setTimeout(()=>{I(!1)},100)},[]);return i?t.jsx(g.StrictMode,{children:n}):t.jsxs(Dn,{"data-tooltip-id":d,display:o,onMouseLeave:E,onMouseMove:N,ref:m,role:"tooltip",...w,children:[s?t.jsx(v,{clickable:!0,disabled:i,icon:s,iconColor:l,iconSize:c??"xxs",iconType:k?"fa-solid":"fa-light"}):n,ee.createPortal(t.jsx(Fn,{$maxWidth:p,children:t.jsxs(a.M,{delayShow:500,float:r==="float"?!0:void 0,globalCloseEvents:{resize:!0},hidden:$||!k,id:d,middlewares:[a.flip({fallbackAxisSideDirection:"start"}),a.offset({mainAxis:10})],noArrow:r==="float",place:f,children:[a.lodashExports.isEmpty(h)?void 0:t.jsx(j,{color:y.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:h}),a.lodashExports.isEmpty(x)?void 0:t.jsx(j,{color:y.palette.gray[100],lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:x}),a.lodashExports.isEmpty(u)?void 0:u]})}),document.getElementById("root")??document.body)]})}),O=g.forwardRef(function({borderRadius:n,disabled:i,icon:o,iconColor:r,iconSize:s="xxs",iconTransform:l,iconType:c,id:d,justify:p="center",onClick:u,px:f,py:x,type:h="button",tooltip:$,tooltipPlace:w,value:m,variant:y="primary",...k},I){const S=t.jsx(En,{$borderRadius:n,$px:f,$py:x,$variant:y,"aria-disabled":i,"aria-label":d,borderRadius:n,disabled:i,id:d,justify:p,onClick:u,ref:I,type:h,value:m,...k,children:t.jsx(v,{clickable:!1,icon:o,iconColor:r,iconSize:s,iconTransform:l,iconType:c})}),E=(h+(y??"")+(d??o)).replace(/ /u,"_");return $===void 0?S:t.jsx(G,{id:`${E}-tooltip`,place:w,tip:$,children:S})}),Pn=g.forwardRef(function({autoHide:n=!1,children:i,closable:o=!1,onTimeOut:r,show:s=!0,time:l=8,variant:c="error",id:d,...p},u){const[f,x]=g.useState(s),h=g.useCallback(()=>{x(!1)},[]);return g.useEffect(()=>{const $=setTimeout(()=>{r==null||r(!0),n&&h()},l*1e3);return()=>{clearTimeout($)}},[n,h,l,r]),g.useEffect(()=>{x(s)},[s,x]),t.jsx(b,{display:f?"block":"none",ref:u,role:"alert",...p,children:t.jsxs(Tn,{$variant:c,id:d,children:[t.jsx(v,{clickable:!1,icon:zn(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(Nn,{children:i}),o?t.jsx(O,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:h,px:.125,py:.125,variant:"ghost"}):void 0]})})}),{getVariant:Wn}=H(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
|
+
`})),Mn=a.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
|
+
${Wn(e,i)}
|
|
514
514
|
`}
|
|
515
|
-
`,{getVariant:
|
|
515
|
+
`,{getVariant:Ln}=H(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??Ln(e,i)}
|
|
550
550
|
`}
|
|
551
|
-
`,
|
|
551
|
+
`,Bn=a.dt.a`
|
|
552
552
|
${at}
|
|
553
|
-
`,
|
|
553
|
+
`,On=a.dt(Ee.Link)`
|
|
554
554
|
${at}
|
|
555
|
-
`,
|
|
555
|
+
`,X=({children:e,color:n,download:i,href:o,iconPosition:r="right",onClick:s,target:l,variant:c="lowRelevance"})=>{const d=o.startsWith("https://"),p=t.jsx(v,{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(Bn,{$color:n,$variant:c,download:i,href:o,onClick:s,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[r==="left"?p:void 0,e,r==="right"?p:void 0]}):t.jsxs(On,{$variant:c,download:i,onClick:s,rel:"nofollow noopener noreferrer",target:l,to:o,children:[l!==void 0&&r==="left"?p:void 0,e,l!==void 0&&r==="right"?p:void 0]})},Z=({disabled:e,icon:n,iconColor:i="inherit",iconType:o="fa-light",id:r="close-tag",filterValues:s="",fontSize:l,href:c,linkLabel:d,onClose:p,priority:u="default",tagTitle:f="",tagLabel:x,variant:h="default"})=>{const $=x.length>25&&a.lodashExports.isEmpty(f+s),w=`${x.slice(0,25)}...`;return t.jsxs(we,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Mn,{$fontSize:l,$variant:h,className:u,children:[n&&t.jsx(v,{icon:n,iconColor:i,iconSize:"xxs",iconType:o}),t.jsxs("span",{children:[t.jsx("strong",{children:f}),t.jsx("span",{children:$?w:x}),t.jsx("strong",{children:s})]}),p?t.jsx(O,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:r,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(X,{href:c,children:d})]})},An=(e,n=!0)=>{const i=window.open(e,n?void 0:"_self","noopener,noreferrer,");a.lodashExports.isObject(i)&&(i.opener=null)},R=g.forwardRef(function({children:n,disabled:i=!1,external:o=!1,href:r,id:s,icon:l,name:c,onClick:d,showArrow:p=!1,tag:u,type:f="button",tooltip:x,tooltipPlace:h="bottom",underline:$=!1,value:w,variant:m="primary",...y},k){const I=x!==void 0,S=`${s}-tooltip`,N=g.useCallback(()=>{r&&An(r,o)},[o,r]);return t.jsx(G,{disabled:!I,id:S,place:h,tip:x,children:t.jsxs(rt,{$variant:m,"aria-disabled":i,className:$?"underline":void 0,disabled:i,id:s,name:c,onClick:m==="link"?N:d,ref:k,type:f,value:w,...I?{"data-tooltip-id":S}:{},...y,children:[l!==void 0&&t.jsx(v,{icon:l,iconSize:"xs",iconType:"fa-light"}),n,(p||m==="link")&&t.jsx(v,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"}),u===void 0?null:t.jsx(Z,{tagLabel:u,variant:"inactive"})]})})}),ve=({authorEmail:e,date:n,description:i,descriptionColor:o,id:r,title:s,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:p})=>{const u=a.nt();return t.jsxs(b,{width:"100%",children:[typeof s=="string"?t.jsx(j,{color:l??u.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:s}):s,t.jsxs(b,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[i&&t.jsx(j,{color:o??u.palette.gray[800],fontWeight:i===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:i}),n&&t.jsx(j,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${n.split(" ")[0]}`}),e&&t.jsx(j,{color:u.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`$Author: ${e}`}),p&&t.jsx(G,{icon:"circle-info",id:r,tip:p})]})]})},Ue=a.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
|
+
`,_n=e=>{if(a._.isNil(e))return"";const n=e.split(".");return(n.length>1?a._.last(n):"").toLowerCase()},Vn=(e,n)=>a._.isUndefined(n)?!1:a._.includes(e,_n(n)),ot=({alt:e,fileType:n,width:i="100%",opacity:o=0,src:r,height:s="auto"})=>n==="video"||Vn(["webm"],r)?t.jsx(Ue,{$opacity:o,children:t.jsxs("video",{controls:!0,height:s,muted:!0,width:i,children:[t.jsx("source",{src:r,type:"video/webm"}),t.jsx(X,{href:r,iconPosition:"hidden",children:r})]})}):t.jsx(Ue,{$opacity:o,children:t.jsx("img",{alt:e,height:s,src:r,width:i})}),Hn=({alt:e,authorEmail:n,date:i,description:o,src:r,children:s,isEditing:l,onClick:c,title:d,hideDescription:p=!1,headerType:u="image",showMaximize:f=!0})=>{const x=a.nt(),[h,$]=g.useState(!1),w=g.useCallback(()=>{$(!0)},[]),m=g.useCallback(()=>{$(!1)},[]);return t.jsxs(b,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:x.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:w,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:s===void 0?t.jsxs(g.Fragment,{children:[t.jsx(ot,{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]}):s}),p?null:t.jsx(ve,{authorEmail:n,date:i,description:o,descriptionColor:x.palette.gray[600],id:`${e}-card-header`,title:d})]})},Gn=a.dt.div`
|
|
571
571
|
${({theme:e,$align:n="center",$minWidth:i="auto",$minHeight:o="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
|
+
`,Un=a.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
|
+
`,Yn=a.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
|
-
`,st=({item:e,state:n})=>{const i=g.useRef(null),{optionProps:o,isSelected:r,isFocused:s,isDisabled:l}=a.$293f70390ea03370$export$497855f14858aa34({key:e.key},n,i),c=[r?"selected":"",s?"focused":"",l?"disabled":""].join(" ");return t.jsxs(
|
|
637
|
+
`,st=({item:e,state:n})=>{const i=g.useRef(null),{optionProps:o,isSelected:r,isFocused:s,isDisabled:l}=a.$293f70390ea03370$export$497855f14858aa34({key:e.key},n,i),c=[r?"selected":"",s?"focused":"",l?"disabled":""].join(" ");return t.jsxs(Yn,{...o,className:c,ref:i,children:[e.rendered,r?t.jsx(v,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0]})},Ae=({htmlFor:e,label:n,required:i,tooltip:o,weight:r="normal"})=>{const s=a.nt(),l=`${e}-tooltip`,c=o!==void 0&&!a.lodashExports.isEmpty(o);return t.jsxs("label",{className:`flex font-${r} gap-1 w-full`,htmlFor:e,children:[n,i&&t.jsx(v,{icon:"asterisk",iconColor:s.palette.error[500],iconSize:"xxss"}),c?t.jsx(G,{display:"inline-flex",icon:"circle-info",id:l,place:"top",tip:o}):null]})},Kn=a.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
|
-
`,A=({children:e,error:n,helpLink:i,helpLinkText:o="Link here",helpText:r,htmlFor:s,label:l,maxLength:c,required:d,tooltip:p,value:u,weight:
|
|
776
|
+
`,A=({children:e,error:n,helpLink:i,helpLinkText:o="Link here",helpText:r,htmlFor:s,label:l,maxLength:c,required:d,tooltip:p,value:u,weight:f})=>{const x=a.nt(),h=u?u.length:0;return t.jsxs(Kn,{children:[l===void 0?void 0:t.jsx(Ae,{htmlFor:s,label:l,required:d,tooltip:p,weight:f}),e,n||c?t.jsxs(b,{display:"flex",justify:n===void 0?"end":"space-between",width:"100%",children:[n&&t.jsx(j,{className:"error-msg",color:x.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:n}),c&&t.jsx(Z,{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(v,{icon:"circle-info",iconColor:x.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(j,{color:x.palette.gray[400],display:"inline-block",size:"sm",children:r})]}),i&&t.jsx(X,{href:i,children:o})]}):void 0]})},fe=({className:e,children:n,isFilter:i=!1,popoverRef:o,state:r,triggerRef:s,...l})=>{var f;const c=g.useRef(null),d=(f=s==null?void 0:s.current)==null?void 0:f.getBoundingClientRect(),{popoverProps:p}=a.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:o??c,triggerRef:s,isNonModal:o?!0:void 0},r),u=g.useCallback(x=>{x.preventDefault()},[]);return t.jsx(a.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...p,className:e,onPointerDown:i?u:void 0,ref:o??c,style:{...p.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:n})})},qn=({disabled:e=!1,helpLink:n,helpLinkText:i,helpText:o,label:r,loadingItems:s,name:l,items:c,onBlur:d,onChange:p,placeholder:u,required:f,tooltip:x,weight:h})=>{var Ge;const $=a.nt(),{control:w,setValue:m}=a.useFormContext(),{field:{value:y,onBlur:k,ref:I},fieldState:{error:S}}=a.useController({name:l,control:w,disabled:e,rules:{required:f}}),[N,E]=g.useState(((Ge=c.find(F=>F.value===y))==null?void 0:Ge.name)??""),[T,M]=g.useState(y),[W,P]=g.useState(c),{contains:D}=a.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),ne=g.useRef(null),B=g.useRef(null),_=g.useRef(null),q=g.useRef(null),he=g.useRef(null),Kt=g.useMemo(()=>c.map(F=>D(F.name,N)?t.jsx(a.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{children:F.name},F.value):null),[D,N,c]),qt=g.useCallback(F=>{E(F),M(Y=>{const $e=F===""?"":Y;return m(l,$e),p&&p(F),$e}),P(c.filter(Y=>D(Y.name,F)))},[D,c,l,m,p]),Xt=g.useCallback(F=>{var Y;E(((Y=c.find($e=>$e.value===F))==null?void 0:Y.name)??""),M(F?String(F):""),m(l,F),p&&p(F?String(F):""),P(c)},[c,l,m,p]),Zt=g.useCallback(()=>{d&&d(),k()},[k,d]),U=a.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsEmptyCollection:!0,inputValue:N,items:W,shouldCloseOnBlur:!0,selectedKey:T,onBlur:Zt,onInputChange:qt,onSelectionChange:Xt,children:Kt}),{buttonProps:Jt,inputProps:be,listBoxProps:Qt}=a.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:N,buttonRef:B,id:l,inputRef:ne,label:r,listBoxRef:_,name:l,placeholder:u,popoverRef:he},U),en=g.useCallback(F=>{be.onKeyDown&&be.onKeyDown(F),F.key==="Enter"&&F.preventDefault()},[be]),{listBoxProps:tn}=a.$c132121280ec012d$export$50eacbbf140a3141(Qt,U,_),{buttonProps:nn}=a.$701a24aa0da5b062$export$ea18c227d4417cc3(Jt,B);return g.useEffect(()=>{var F;s===!1&&E(((F=c.find(Y=>Y.value===y))==null?void 0:F.name)??"")},[y,c,s]),t.jsxs(A,{error:S?S.message:void 0,helpLink:n,helpLinkText:i,helpText:o,htmlFor:l,label:r,required:f,tooltip:x,weight:h,children:[t.jsxs(K,{className:`${e?"disabled":""} ${S?"error":""}`,ref:q,children:[t.jsx("input",{...be,"aria-invalid":S?"true":"false","aria-label":l,onKeyDown:en,ref:I}),S?t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:$.palette.error[500],iconSize:"xs"}):void 0,t.jsx(O,{...nn,className:"action",icon:U.isOpen?"chevron-up":"chevron-down",iconColor:$.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:B,type:"button",variant:"ghost"})]}),U.isOpen&&U.collection.size>0&&!e?t.jsx(fe,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:he,state:U,triggerRef:q,children:t.jsx(Un,{...tn,ref:_,children:[...U.collection].map(F=>t.jsx(st,{item:F,state:U},F.key))})}):null]})},Xn=a.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
|
+
`,Zn=a.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
|
+
`,Jn=a.dt.th`
|
|
830
830
|
${lt}
|
|
831
|
-
`,
|
|
831
|
+
`,Qn=a.dt.td`
|
|
832
832
|
${({theme:e})=>`
|
|
833
833
|
${lt}
|
|
834
834
|
height: ${e.spacing[2.5]};
|
|
@@ -878,7 +878,7 @@
|
|
|
878
878
|
}
|
|
879
879
|
}
|
|
880
880
|
`}
|
|
881
|
-
`,
|
|
881
|
+
`,ei=a.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
|
-
`,ct=({state:e,date:n})=>{const i=g.useRef(null),o=a.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,a.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:s,isSelected:l,isDisabled:c,formattedDate:d}=a.$36a0ac60f04457c5$export$136073280381448e({date:n},e,i),p="highlightedRange"in e&&!a.lodashExports.isNull(e.highlightedRange)?a.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):l,u="highlightedRange"in e&&!a.lodashExports.isNull(e.highlightedRange)?a.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,
|
|
908
|
+
`,ct=({state:e,date:n})=>{const i=g.useRef(null),o=a.$14e0f24ef4ac5c92$export$629b0a497aa65267(n,a.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:r,buttonProps:s,isSelected:l,isDisabled:c,formattedDate:d}=a.$36a0ac60f04457c5$export$136073280381448e({date:n},e,i),p="highlightedRange"in e&&!a.lodashExports.isNull(e.highlightedRange)?a.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.start):l,u="highlightedRange"in e&&!a.lodashExports.isNull(e.highlightedRange)?a.$14e0f24ef4ac5c92$export$ea39ec197993aef0(n,e.highlightedRange.end):l,f=l&&!c&&!(p||u)?"range":"";return t.jsx(Qn,{id:f,...r,children:t.jsxs("div",{...s,className:`cell ${p||u?"selected":""}
|
|
909
909
|
${c?"disabled":""} ${o?"today":""}
|
|
910
|
-
${!e.isFocused&&!o?"focused":""} ${
|
|
910
|
+
${!e.isFocused&&!o?"focused":""} ${f}`,ref:i,children:[d,o?t.jsx(ei,{children:t.jsx(v,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},Se=({state:e,...n})=>{const{locale:i}=a.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:o}=a.$e3031d1f8c9d64eb$export$cb95147730a423f5(n,e),r=a.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,i);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(Ye,{children:o.map((s,l)=>{const c=`key_${l}`;return t.jsx(Jn,{children:s},c)})})}),t.jsx("tbody",{children:[...new Array(r).keys()].map(s=>t.jsx(Ye,{children:e.getDatesInWeek(s).map((l,c)=>{const d=`key_${c}`;return l?t.jsx(ct,{date:l,state:e},d):t.jsx("td",{},d)})},s))})]})},ti=a.dt(Be)`
|
|
911
911
|
align-items: center;
|
|
912
912
|
background-color: inherit;
|
|
913
913
|
border-color: inherit;
|
|
@@ -923,7 +923,7 @@
|
|
|
923
923
|
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
924
924
|
cursor: pointer;
|
|
925
925
|
}
|
|
926
|
-
`,
|
|
926
|
+
`,ni=a.dt.div`
|
|
927
927
|
${({theme:e})=>`
|
|
928
928
|
align-items: flex-start;
|
|
929
929
|
background: ${e.palette.white};
|
|
@@ -937,7 +937,7 @@
|
|
|
937
937
|
padding: ${e.spacing[.25]};
|
|
938
938
|
width: 292px;
|
|
939
939
|
`}
|
|
940
|
-
`,
|
|
940
|
+
`,ii=a.dt.button`
|
|
941
941
|
${({theme:e,$disabled:n,$focus:i,$header:o})=>{const r=i?"34px":"40px";return`
|
|
942
942
|
align-items: center;
|
|
943
943
|
border-radius: ${o?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
|
|
@@ -952,7 +952,7 @@
|
|
|
952
952
|
background-color: ${e.palette.gray[n?500:100]};
|
|
953
953
|
}
|
|
954
954
|
`}}
|
|
955
|
-
`,
|
|
955
|
+
`,ri=a.dt.div`
|
|
956
956
|
${({theme:e})=>`
|
|
957
957
|
align-items: center;
|
|
958
958
|
background: transparent;
|
|
@@ -963,7 +963,7 @@
|
|
|
963
963
|
justify-content: space-between;
|
|
964
964
|
width: calc(100% - 40px);
|
|
965
965
|
`}
|
|
966
|
-
`,
|
|
966
|
+
`,ai=a.dt.div`
|
|
967
967
|
align-items: center;
|
|
968
968
|
display: flex;
|
|
969
969
|
justify-content: flex-end;
|
|
@@ -1001,7 +1001,7 @@
|
|
|
1001
1001
|
font-weight: ${e.typography.weight.bold};
|
|
1002
1002
|
}
|
|
1003
1003
|
`}
|
|
1004
|
-
`,
|
|
1004
|
+
`,je=({disabled:e=!1,icon:n,props:i})=>{const o=g.useRef(null),{buttonProps:r}=a.$701a24aa0da5b062$export$ea18c227d4417cc3(i,o);return t.jsx(ii,{...r,$disabled:e,$focus:!!r["aria-expanded"],$header:n==="calendar"||n==="calendar-clock",disabled:e,ref:o,type:"button",children:t.jsx(v,{icon:n,iconColor:C.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},ze=({state:e,prevButtonProps:n,nextButtonProps:i,title:o})=>{const r=e.focusedDate,s=g.useCallback(()=>{e.setFocusedDate(r.add({years:1}))},[r,e]),l=g.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(Xn,{children:[o,t.jsxs(Zn,{children:[t.jsx(Ke,{"aria-label":"top",onClick:s,children:t.jsx(v,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(Ke,{"aria-label":"bottom",onClick:l,children:t.jsx(v,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(je,{icon:"chevron-right",props:i})]})},dt=({onClose:e,props:n})=>{const{locale:i}=a.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=a.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:a.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:r,nextButtonProps:s,title:l}=a.$9942cad8a072a530$export$3ee915f8151bd4f1(n,o);return t.jsxs("div",{className:"calendar",children:[t.jsx(ze,{nextButtonProps:s,prevButtonProps:r,state:o,title:l}),t.jsx(Se,{state:o}),t.jsx(_e,{children:t.jsx(R,{onClick:e,variant:"ghost",children:"Cancel"})})]})},pt=({segment:e,state:n})=>{const i=a.nt(),o=g.useRef(null),s={...e,placeholder:{day:"dd",dayPeriod:"(AM/PM)",era:"",hour:"hh",literal:"",minute:"mm",month:"mm",second:"",timeZoneName:"",year:"yyyy"}[e.type]},{segmentProps:l}=a.$32489daedd52963e$export$1315d136e6f7581(s,n,o),c=i.palette.gray[s.isEditable?800:500];return t.jsx("div",{...s.type!=="literal"&&{...l,className:"segment-cell"},ref:o,style:s.type==="literal"?void 0:{color:s.isPlaceholder?i.palette.gray[400]:c},children:s.isPlaceholder?s.placeholder:s.text})},gt=({disabled:e,error:n=!1,props:i})=>{const o=a.nt(),r=g.useRef(null),s=a.$3c0fc76039f1c516$export$60e84778edff6d26({...i,createCalendar:a.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=a.$16f0b7bb276bc17e$export$5591b0b878c1a989(i,s,r),c=g.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),u=d.currentTarget;Object.values(p).some(f=>f.contains(u))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(ri,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:o.palette.gray[a.lodashExports.isNil(s.value)?400:800]},tabIndex:-1,children:s.segments.map((d,p)=>{const u=`key_${p}`;return t.jsx(pt,{segment:{...d,isEditable:!e},state:s},u)})}),n?t.jsx(v,{icon:"exclamation-circle",iconColor:o.palette.error[500],iconSize:"xs"}):void 0]})},ut=e=>{const n=g.useRef(null),i=a.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:o}=i,r=!a.lodashExports.isNil(o)&&o.hour<12?"AM":"PM",[s,l]=g.useState(a.lodashExports.isNil(o)?"AM":r),{fieldProps:c}=a.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,i,n),d=g.useCallback(p=>{const u=p.currentTarget.name;u!==s&&(a.lodashExports.isNil(o)||(u==="AM"?i.setSegment("dayPeriod",0):u==="PM"&&i.setSegment("dayPeriod",12))),l(u)},[s,i,o]);return t.jsxs(ai,{children:[t.jsx(qe,{...c,ref:n,children:i.segments.slice(0,-2).map((p,u)=>{const f=`key_${u}`;return t.jsx(pt,{segment:p,state:i},f)})}),t.jsxs(qe,{children:[t.jsx(Xe,{id:s==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(Xe,{id:s==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},ke=e=>e&&e!=="-"?a.dayjs(e).format("YYYY-MM-DD"):"-",oi=e=>e&&e!=="-"?a.dayjs(e).format("YYYY-MM-DD hh:mm A"):"-",si=e=>e&&e!=="-"?a.dayjs(e).format("YYYY/MM/DD hh:mm A"):"-",ae=({error:e,buttonProps:n,datePickerRef:i,disabled:o=!1,granularity:r="day",fieldProps:s,groupProps:l,name:c,onChange:d,formRef:p,setValue:u})=>{const f=g.useCallback(x=>{s.onChange&&s.onChange(x),r==="day"?u(c,ke(String(x))):u(c,oi(String(x)))},[s,r,c,u]);return t.jsxs(K,{...l,className:`${o?"disabled":""} ${e?"error":""}`,ref:i,children:[t.jsx(gt,{disabled:o,error:e!=null,props:{...s,autoFocus:!1,granularity:r,onChange:f,shouldForceLeadingZeros:!0}}),t.jsx(je,{disabled:o,icon:r==="minute"?"calendar-clock":"calendar",props:n}),t.jsx("input",{"aria-label":c,className:"date-input",disabled:o,id:c,name:c,onChange:d,ref:p,type:"text"})]})},Ie=({children:e,...n})=>{const i=g.useRef(null),{dialogProps:o}=a.$40df3f8667284809$export$d55e7ee900f34e93(n,i);return t.jsx(ni,{...o,ref:i,children:e})},xt=({disabled:e=!1,helpLink:n,helpLinkText:i,helpText:o,required:r,label:s,name:l,tooltip:c,...d})=>{const{control:p,setValue:u}=a.useFormContext(),{field:{onBlur:f,onChange:x,value:h,ref:$},fieldState:{error:w}}=a.useController({name:l,control:p,disabled:e,rules:{required:r}}),m=g.useRef(null),y=a.$ab5bf3f618090389$export$87194bb378cc3ac2({...d,onBlur:f,onChange:x,value:a._.isNil(h)||a._.isEmpty(h)||h==="-"?null:a.$fae977aafc393c5c$export$6b862160d295c8e(h.replace(/\//gu,"-"))}),{close:k}=y,{groupProps:I,fieldProps:S,buttonProps:N,dialogProps:E,calendarProps:T}=a.$6057a3d2a53a12fd$export$42df105a73306d51({...d,"aria-label":s??l,name:l},y,m),M=g.useCallback(W=>{T.onChange&&T.onChange(W),console.log(W.toString()),u(l,ke(W.toString()))},[T,l,u]);return t.jsxs(A,{error:w?w.message:void 0,helpLink:n,helpLinkText:i,helpText:o,htmlFor:l,label:s,required:r,tooltip:c,children:[t.jsx(ae,{buttonProps:N,datePickerRef:m,disabled:e,error:w==null?void 0:w.message,fieldProps:S,formRef:$,groupProps:I,name:l,onChange:x,required:r,setValue:u}),y.isOpen&&!e?t.jsx(fe,{offset:8,placement:"bottom start",state:y,triggerRef:m,children:t.jsx(Ie,{...E,children:t.jsx(dt,{onClose:k,props:{...T,onChange:M}})})}):null]})},ft=({onClose:e,props:n})=>{const{locale:i}=a.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),o=g.useRef(null),r=a.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...n,createCalendar:a.$64244302c3013299$export$dd0bbc9b26defe37,locale:i}),{prevButtonProps:s,nextButtonProps:l,title:c}=a.$46a4342aab3d8076$export$87e0539f600c24e5(n,r,o);return t.jsxs("div",{className:"calendar-range",ref:o,children:[t.jsx(ze,{nextButtonProps:l,prevButtonProps:s,state:r,title:c}),t.jsx(Se,{state:r}),t.jsx(_e,{children:t.jsx(R,{onClick:e,variant:"ghost",children:"Cancel"})})]})},li=a.dt.div`
|
|
1005
1005
|
${({theme:e,$disabled:n,$show:i})=>`
|
|
1006
1006
|
border-color: ${i?e.palette.error[500]:e.palette.gray[300]};
|
|
1007
1007
|
display: flex;
|
|
@@ -1012,7 +1012,7 @@
|
|
|
1012
1012
|
background: ${n?e.palette.gray[200]:e.palette.white};
|
|
1013
1013
|
}
|
|
1014
1014
|
`}
|
|
1015
|
-
`,
|
|
1015
|
+
`,ci=({disabled:e=!1,label:n,name:i,required:o,tooltip:r,...s})=>{const{control:l,setValue:c}=a.useFormContext(),d=`${i}Max`,p=`${i}Min`,{field:{onChange:u,ref:f},fieldState:{error:x}}=a.useController({name:d,control:l,disabled:e,rules:{required:o}}),{field:{onChange:h,ref:$},fieldState:{error:w}}=a.useController({name:p,control:l,disabled:e,rules:{required:o}}),m=(x==null?void 0:x.message)??(w==null?void 0:w.message),y=g.useRef(null),k=a.$93c38a5e28be6249$export$e50a61c1de9f574(s),{close:I}=k,{groupProps:S,startFieldProps:N,endFieldProps:E,buttonProps:T,dialogProps:M,calendarProps:W}=a.$887cac91b7cc8801$export$12fd5f0e9f4bb192({...s,"aria-label":n??i},k,y),P=g.useCallback(D=>{D&&(W.onChange&&W.onChange(D),c(p,ke(String(D.start))),c(d,ke(String(D.end))))},[W,d,p,c]);return t.jsxs(A,{error:m,htmlFor:i,label:n,required:o,tooltip:r,children:[t.jsxs(li,{$disabled:e,$show:m!==void 0,ref:y,children:[t.jsx(ae,{buttonProps:T,datePickerRef:y,disabled:e,error:m,fieldProps:{...N,"aria-label":`${N["aria-label"]} ${i}`,validate:D=>E.value&&D>E.value?"Start date must be less than or equal to end date":null},formRef:$,groupProps:S,name:p,onChange:h,setValue:c}),t.jsx(ae,{buttonProps:T,datePickerRef:y,disabled:e,error:m,fieldProps:{...E,"aria-label":`${E["aria-label"]} ${i}`,validate:D=>N.value&&D<N.value?"End date must be greater than or equal to start date":null},formRef:f,groupProps:S,name:d,onChange:u,setValue:c})]}),k.isOpen&&!e?t.jsx(fe,{offset:8,placement:"bottom start",state:k,triggerRef:y,children:t.jsx(Ie,{...M,children:t.jsx(ft,{onClose:I,props:{...W,onChange:P}})})}):null]})},di=a.dt.div`
|
|
1016
1016
|
${({theme:e})=>`
|
|
1017
1017
|
align-items: center;
|
|
1018
1018
|
border-top: 1px solid ${e.palette.gray[200]};
|
|
@@ -1021,32 +1021,32 @@
|
|
|
1021
1021
|
justify-content: center;
|
|
1022
1022
|
padding: ${e.spacing[.5]} ${e.spacing[1.25]};
|
|
1023
1023
|
`}
|
|
1024
|
-
`,
|
|
1024
|
+
`,pi=a.dt.div`
|
|
1025
1025
|
align-items: center;
|
|
1026
1026
|
display: flex;
|
|
1027
1027
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1028
1028
|
justify-content: flex-end;
|
|
1029
1029
|
flex: 1 0 0;
|
|
1030
|
-
`,ht=({handleTimeChange:e,onClose:n,props:i,timeState:o})=>{const r=a.nt(),{locale:s}=a.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=a.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:a.$64244302c3013299$export$dd0bbc9b26defe37,locale:s}),{prevButtonProps:c,nextButtonProps:d,title:p}=a.$9942cad8a072a530$export$3ee915f8151bd4f1(i,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(
|
|
1031
|
-
${e?"disabled":""} ${
|
|
1032
|
-
`,children:[n?t.jsx(
|
|
1030
|
+
`,ht=({handleTimeChange:e,onClose:n,props:i,timeState:o})=>{const r=a.nt(),{locale:s}=a.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=a.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:a.$64244302c3013299$export$dd0bbc9b26defe37,locale:s}),{prevButtonProps:c,nextButtonProps:d,title:p}=a.$9942cad8a072a530$export$3ee915f8151bd4f1(i,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(ze,{nextButtonProps:d,prevButtonProps:c,state:l,title:p}),t.jsx(Se,{state:l}),t.jsxs(di,{children:[t.jsx(j,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(pi,{children:t.jsx(ut,{hourCycle:12,label:"time-field",onChange:e,value:o.timeValue})})]}),t.jsx(_e,{children:t.jsx(R,{onClick:n,variant:"ghost",children:"Cancel"})})]})},gi=e=>{const{disabled:n=!1,required:i,label:o,name:r,tooltip:s}=e,l=g.useRef(null),{control:c,setValue:d}=a.useFormContext(),{field:{onBlur:p,onChange:u,ref:f,value:x},fieldState:{error:h}}=a.useController({name:r,control:c,disabled:n,rules:{required:i}}),$=a.$ab5bf3f618090389$export$87194bb378cc3ac2({...e,granularity:"minute",hourCycle:12,isDisabled:n,isRequired:i,shouldCloseOnSelect:!1,onBlur:p,onChange:u,value:a._.isNil(x)||a._.isEmpty(x)||x==="-"?null:a.$fae977aafc393c5c$export$588937bcd60ade55(x.replace(/\//gu,"-"))}),{close:w}=$,{groupProps:m,fieldProps:y,buttonProps:k,dialogProps:I,calendarProps:S}=a.$6057a3d2a53a12fd$export$42df105a73306d51(e,$,l),N=g.useCallback(T=>{S.onChange&&S.onChange(T),d(r,si(String(T).replace(/-/gu,"/")))},[S,r,d]),E=g.useCallback(T=>{T&&$.setTimeValue(T)},[$]);return t.jsxs(A,{error:h==null?void 0:h.message,htmlFor:r,label:o,required:i,tooltip:s,children:[t.jsx(ae,{buttonProps:k,datePickerRef:l,disabled:n,error:h==null?void 0:h.message,fieldProps:y,formRef:f,granularity:"minute",groupProps:m,name:r,onChange:u,setValue:d}),$.isOpen&&!n?t.jsx(fe,{offset:8,placement:"bottom start",state:$,triggerRef:l,children:t.jsx(Ie,{...I,children:t.jsx(ht,{handleTimeChange:E,onClose:w,props:{...S,onChange:N},timeState:$})})}):null]})},ui=({children:e,currentValue:n,externalLink:i,isEditing:o,label:r,name:s,tooltip:l})=>{if(o)return t.jsx("div",{children:e});const c=a.lodashExports.isNil(n)?"":n,d=String(i??c);return t.jsxs(b,{children:[t.jsx(Ae,{htmlFor:s,label:r,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(X,{href:d,children:c}):t.jsx(j,{size:"md",children:c})]})},bt=({disabled:e=!1,hasIcon:n=!1,helpLink:i,helpLinkText:o,helpText:r,label:s,name:l,maskValue:c=!1,onBlur:d,onChange:p,onPaste:u,placeholder:f,required:x,tooltip:h,type:$="text",weight:w})=>{const m=a.nt(),{register:y,formState:{errors:k,isValid:I},getFieldState:S}=a.useFormContext(),{isTouched:N}=S(l),E=k[l]?String(k[l].message):void 0,T=I&&N&&!e,M=g.useCallback(W=>{W.key==="Enter"&&W.preventDefault()},[]);return t.jsx(A,{error:E,helpLink:i,helpLinkText:o,helpText:r,htmlFor:l,label:s,required:x,tooltip:h,weight:w,children:t.jsxs(K,{className:`
|
|
1031
|
+
${e?"disabled":""} ${E?"error":""} ${T?"success":""}
|
|
1032
|
+
`,children:[n?t.jsx(v,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":E?"true":"false","aria-label":l,"aria-required":x,autoComplete:"off",className:c?"sr-block":"","data-testid":`${l}-input`,id:l,onKeyDown:M,onPaste:u,placeholder:f,type:$,...y(l,{disabled:e,required:x,onBlur:d,onChange:p})}),E?t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:m.palette.error[500],iconSize:"xs"}):void 0,T?t.jsx(v,{icon:"check-circle",iconClass:"success-icon",iconColor:m.palette.success[500],iconSize:"xs"}):void 0]})})},xi=a.dt(nt)`
|
|
1033
1033
|
white-space: nowrap;
|
|
1034
1034
|
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1035
1035
|
text-overflow: ellipsis;
|
|
1036
1036
|
overflow: hidden;
|
|
1037
1037
|
max-width: 80%;
|
|
1038
|
-
`,
|
|
1038
|
+
`,fi=a.dt.input`
|
|
1039
1039
|
opacity: 0;
|
|
1040
1040
|
position: absolute;
|
|
1041
1041
|
visibility: hidden;
|
|
1042
1042
|
width: 0;
|
|
1043
|
-
`,De=(e,n,i)=>{const o=new Event(e);return Object.defineProperty(o,"target",{value:{name:n,value:i}}),o},
|
|
1043
|
+
`,De=(e,n,i)=>{const o=new Event(e);return Object.defineProperty(o,"target",{value:{name:n,value:i}}),o},hi=e=>{const n=e;return n?Array.from(n).map(i=>i.name).join(", "):""},bi=({accept:e,disabled:n=!1,label:i,helpLink:o,helpText:r,id:s,multiple:l,name:c,onChange:d,required:p,tooltip:u,weight:f})=>{const x=a.nt(),h=g.useRef(null),{control:$,setValue:w}=a.useFormContext(),{field:{value:m,onChange:y},fieldState:{error:k}}=a.useController({name:c,control:$,disabled:n,rules:{required:p}}),I=hi(m),S=g.useCallback(()=>{const T=De("change",c,void 0);y(T),w(c,"")},[c,y,w]),N=g.useCallback(T=>{const{files:M}=T.currentTarget,W=De("change",c,M&&M.length>0?M:void 0);d==null||d(W),y(W)},[c,y,d]),E=g.useCallback(T=>{n?T.preventDefault():h.current&&h.current.click()},[n]);return t.jsxs(A,{error:k?k.message:void 0,helpLink:o,helpText:r,htmlFor:s??c,label:i,required:p,tooltip:u,weight:f,children:[t.jsxs(K,{className:`${n?"disabled":""} ${k?"error":""}`,children:[t.jsx(xi,{$size:"xs",children:I}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,children:[a.lodashExports.isEmpty(I)?void 0:t.jsx(O,{color:x.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",onClick:S,variant:"ghost",width:"20px"}),k&&t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:x.palette.error[500],iconSize:"xs"})]}),t.jsxs(R,{border:n?`1px solid ${x.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",onClick:E,variant:"primary",width:"96px",children:[t.jsx(v,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]}),t.jsx(fi,{accept:e,"aria-label":c,"data-testid":c,disabled:n,id:s??c,multiple:l,name:c,onChange:N,onClick:S,ref:h,required:void 0,type:"file",value:void 0})]})},$i=a.dt.input`
|
|
1044
1044
|
border: none;
|
|
1045
1045
|
background: transparent;
|
|
1046
1046
|
min-width: 15rem;
|
|
1047
1047
|
padding: 0;
|
|
1048
1048
|
flex: 1;
|
|
1049
|
-
|
|
1049
|
+
`,yi=({disabled:e=!1,helpLink:n,helpLinkText:i,helpText:o,label:r,name:s="input-tag",onRemove:l,placeholder:c,required:d,tooltip:p,weight:u})=>{const f=a.nt(),[x,h]=g.useState(""),{control:$}=a.useFormContext(),{field:{value:w,onBlur:m,onChange:y,ref:k},fieldState:{error:I}}=a.useController({name:s,control:$,disabled:e,rules:{required:d}}),S=g.useMemo(()=>w&&typeof w=="string"?w.split(",").filter(Boolean):[],[w]),N=g.useCallback(P=>{const ne=[...new Set(P.filter(Boolean))].join(","),B=De("change",s,ne);y(B)},[s,y]),E=g.useCallback(P=>{h(P.target.value)},[]),T=g.useCallback(P=>{const D=x.trim();D.length&&!S.includes(D)&&(P.preventDefault(),N([...S,D]),h("")),m()},[x,m,N,S]),M=g.useCallback(P=>{const D=x.trim();P.key==="Enter"&&D.length===0&&P.preventDefault(),["Enter",","].includes(P.key)&&D.length>0&&!S.includes(D)?(P.preventDefault(),N([...S,D]),h("")):P.key==="Backspace"&&!D.length&&S.length&&(P.preventDefault(),l==null||l(S[S.length-1]),N(S.slice(0,-1)))},[x,l,N,S]),W=g.useCallback(P=>()=>{l==null||l(P),N(S.filter(D=>D!==P))},[l,N,S]);return t.jsx(A,{error:I?I.message:void 0,helpLink:n,helpLinkText:i,helpText:o,htmlFor:s,label:r,required:d,tooltip:p,weight:u,children:t.jsxs(K,{$overflowX:"auto",className:`${e?"disabled":""} ${I?"error":""}`,children:[S.map(P=>t.jsx(Z,{disabled:e,onClose:W(P),tagLabel:P},P)),t.jsx($i,{"aria-hidden":!1,"aria-invalid":I?"true":"false","aria-label":s,"aria-required":d,autoComplete:"off",id:s,onBlur:T,onChange:E,onKeyDown:M,placeholder:S.length===0?c:void 0,ref:k,type:"text",value:x}),I?t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:f.palette.error[500],iconSize:"xs"}):void 0]})})},Fe=g.forwardRef(function({disabled:n,icon:i,margin:o,onClick:r,...s},l){return t.jsx(ti,{$margin:o,"aria-label":i,className:"action-btn",disabled:n,onClick:r,ref:l,type:"button",...s,children:t.jsx(v,{icon:i,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),Ce=({error:e,decimalPlaces:n=0,disabled:i=!1,id:o,maxLength:r,max:s=1/0,min:l=0,name:c,onChange:d,placeholder:p,required:u})=>{const f=a.nt(),{control:x,setValue:h}=a.useFormContext(),{field:{value:$,onChange:w,onBlur:m,ref:y}}=a.useController({name:c,control:x,disabled:i,rules:{required:u,maxLength:r,max:s,min:l}}),k=g.useMemo(()=>n<0?0:n,[n]),I=g.useCallback(()=>$===void 0?0:a._.toNumber($),[$]),S=g.useCallback(()=>{const T=(I()-10**-k).toFixed(k);h(c,Math.max(Number(l),Number(T)))},[k,I,l,c,h]),N=g.useCallback(()=>{const T=(I()+10**-k).toFixed(k);h(c,Math.min(Number(s),Number(T)>Number(l)?Number(T):Number(l)))},[k,I,s,l,c,h]),E=g.useCallback(T=>{const{value:M}=T.target;/\d+/u.test(M)&&!a._.isEmpty(M)?d?d(T):w(T):h(c,void 0)},[c,w,d,h]);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":u,autoComplete:"off",disabled:i,id:o??c,max:s,min:l,name:c,onBlur:m,onChange:E,placeholder:p,ref:y,required:void 0,step:10**-k,type:"number",value:/^-?\d+/u.test(String($))?$:""}),e&&t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:f.palette.error[500],iconSize:"xs"}),t.jsx(Fe,{borderLeft:"inherit",borderRight:"inherit",disabled:i,icon:"minus",margin:"0 -0.625rem 0 0",onClick:S,px:.75,py:.75}),t.jsx(Fe,{borderRadius:`0 ${f.spacing[.5]} ${f.spacing[.5]} 0`,disabled:i,icon:"plus",onClick:N,px:.75,py:.75})]})},$t=({decimalPlaces:e,disabled:n=!1,helpLink:i,helpText:o,id:r,label:s,maxLength:l,max:c,min:d,name:p,onChange:u,placeholder:f,required:x,tooltip:h,weight:$})=>{const{formState:{errors:w}}=a.useFormContext(),m=w[p]?String(w[p].message):void 0;return t.jsx(A,{error:m,helpLink:i,helpText:o,htmlFor:p,label:s,maxLength:l,required:x,tooltip:h,weight:$,children:t.jsx(Ce,{decimalPlaces:e,disabled:n,error:m,id:r,max:c,maxLength:l,min:d,name:p,onChange:u,placeholder:f,required:x})})},mi=({disabled:e=!1,name:n,label:i,propsMax:o,propsMin:r,required:s,tooltip:l})=>{const{formState:{errors:c}}=a.useFormContext(),d=`${n}Max`,p=`${n}Min`,u=c[d]?String(c[d].message):void 0,f=c[p]?String(c[p].message):void 0,x=u??f;return t.jsx(A,{error:x,htmlFor:n,label:i,required:s,tooltip:l,children:t.jsxs(b,{display:"flex",gap:.25,width:"100%",children:[t.jsx(Ce,{...r,disabled:e,error:x,name:d}),t.jsx(Ce,{...o,disabled:e,error:x,name:p})]})})},wi=a.dt.div`
|
|
1050
1050
|
${({theme:e})=>`
|
|
1051
1051
|
align-items: flex-start;
|
|
1052
1052
|
align-self: stretch;
|
|
@@ -1086,7 +1086,7 @@
|
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
1088
|
`}
|
|
1089
|
-
`,
|
|
1089
|
+
`,ji=a.dt.button`
|
|
1090
1090
|
${({theme:e})=>`
|
|
1091
1091
|
align-items: center;
|
|
1092
1092
|
background: inherit;
|
|
@@ -1102,7 +1102,7 @@
|
|
|
1102
1102
|
cursor: not-allowed;
|
|
1103
1103
|
}
|
|
1104
1104
|
`}
|
|
1105
|
-
`,
|
|
1105
|
+
`,ki=a.dt.ul`
|
|
1106
1106
|
${({theme:e})=>`
|
|
1107
1107
|
align-items: flex-start;
|
|
1108
1108
|
box-shadow: ${e.shadows.md};
|
|
@@ -1115,7 +1115,7 @@
|
|
|
1115
1115
|
scrollbar-width: thin;
|
|
1116
1116
|
width: max-content;
|
|
1117
1117
|
`}
|
|
1118
|
-
`,
|
|
1118
|
+
`,Ci=a.dt.li`
|
|
1119
1119
|
${({theme:e})=>`
|
|
1120
1120
|
align-items: center;
|
|
1121
1121
|
background: ${e.palette.white};
|
|
@@ -1132,16 +1132,16 @@
|
|
|
1132
1132
|
background: ${e.palette.gray[100]};
|
|
1133
1133
|
}
|
|
1134
1134
|
`}
|
|
1135
|
-
`,
|
|
1135
|
+
`,vi=a.dt.p`
|
|
1136
1136
|
color: ${({theme:e})=>e.palette.gray[800]};
|
|
1137
1137
|
font-size: inherit;
|
|
1138
1138
|
min-width: 55%;
|
|
1139
1139
|
overflow: hidden;
|
|
1140
1140
|
text-overflow: ellipsis;
|
|
1141
1141
|
white-space: nowrap;
|
|
1142
|
-
`,
|
|
1143
|
-
${e?"disabled":""} ${
|
|
1144
|
-
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":
|
|
1142
|
+
`,J=(e,n,i=!1)=>{g.useEffect(()=>{var r;const o=s=>{e&&!e.contains(s.target)&&n()};return i?(document.addEventListener("click",o,!0),()=>{document.removeEventListener("click",o,!0)}):((r=document.getElementById("root"))==null||r.addEventListener("click",o,!0),()=>{var s;(s=document.getElementById("root"))==null||s.removeEventListener("click",o,!0)})},[i,e,n])},Si=({disabled:e,label:n,name:i,placeholder:o,required:r,tooltip:s,weight:l})=>{const c=a.nt(),d=g.useRef(null),{control:p}=a.useFormContext(),{field:{onBlur:u,onChange:f,ref:x,value:h},fieldState:{error:$}}=a.useController({name:i,control:p,disabled:e,rules:{required:r}}),[w,m]=g.useState(!1),[y,k]=g.useState(""),{refs:I,floatingStyles:S}=a.useFloating({placement:"bottom-start",whileElementsMounted:a.autoUpdate}),{inputValue:N,handlePhoneValueChange:E,country:T,setCountry:M}=a.ee({countries:a.R,defaultCountry:"us",forceDialCode:!0,onChange:f,value:h?String(h):void 0}),W=g.useCallback(()=>{m(B=>!B),w||k("")},[w]),P=g.useCallback(B=>()=>{M(B),m(!1),k("")},[M,m]),D=g.useCallback(B=>{B.key.length===1?k(_=>_+B.key):B.key==="Backspace"&&k(_=>_.slice(0,-1))},[]),ne=a.R.filter(B=>{const{name:_}=a.M$1(B);return _.toLowerCase().includes(y.toLowerCase())});return J(I.floating.current,()=>{m(!1),k("")},!0),t.jsx(A,{error:$?$.message:void 0,htmlFor:i,label:n,required:r,tooltip:s,weight:l,children:t.jsxs(wi,{className:`${e?"disabled":""} ${$?"error":""}`,ref:d,children:[t.jsxs(ji,{"aria-label":"country-selector","data-testid":"country-selector",disabled:e,id:"country-selector",onClick:W,onKeyDown:D,ref:I.setReference,children:[t.jsx(a.q,{iso2:T.iso2,size:"16px"}),t.jsx(v,{icon:"angle-down",iconColor:c.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(K,{className:`${e?"disabled":""} ${$?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":$?"true":"false","aria-label":i,"aria-required":r,autoComplete:"off","data-testid":`${i}-input`,disabled:e,id:i,name:i,onBlur:u,onChange:E,placeholder:o,ref:x,type:"tel",value:N}),$?t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:c.palette.error[500],iconSize:"xs"}):void 0]}),w&&ee.createPortal(t.jsx(ki,{ref:I.setFloating,style:S,children:ne.map(B=>{const{dialCode:_,iso2:q,name:he}=a.M$1(B);return t.jsxs(Ci,{onClick:P(q),value:q,children:[t.jsx(a.q,{iso2:q,size:"16px"}),t.jsx(vi,{children:he}),t.jsx(j,{color:c.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+_})]},q)})}),document.getElementById("root")??document.body)]})})},zi=({disabled:e=!1,helpLink:n,helpText:i,label:o,name:r="input-text",id:s,maskValue:l=!1,maxLength:c,placeholder:d,required:p,rows:u,tooltip:f,weight:x})=>{const h=a.nt(),{control:$}=a.useFormContext(),{field:w,fieldState:{error:m,isTouched:y},formState:{isValid:k}}=a.useController({name:r,control:$,disabled:e,rules:{maxLength:c,required:p}}),I=k&&y&&!e;return t.jsx(A,{error:m?m.message:void 0,helpLink:n,helpText:i,htmlFor:r,label:o,maxLength:c,required:p,tooltip:f,value:w.value?String(w.value):void 0,weight:x,children:t.jsxs(K,{className:`
|
|
1143
|
+
${e?"disabled":""} ${m?"error":""} ${I?"success":""}
|
|
1144
|
+
`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":m?"true":"false","aria-label":r,"aria-required":p,className:l?"sr-block":"","data-testid":`${r}-text-area`,disabled:e,id:s??r,maxLength:c,placeholder:d,rows:u,...w}),m?t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:h.palette.error[500],iconSize:"xs"}):void 0,I?t.jsx(v,{icon:"check-circle",iconClass:"success-icon",iconColor:h.palette.success[500],iconSize:"xs"}):void 0]})})},Ii=({description:e,disabled:n,id:i,align:o,inputType:r="text",inputNumberProps:s,minHeight:l,minWidth:c,name:d,placeholder:p,tooltip:u,title:f})=>{const x=g.useMemo(()=>{if(r==="text")return t.jsx(bt,{disabled:n,name:d,placeholder:p});if(r==="date")return t.jsx(xt,{disabled:n,name:d});const{decimalPlaces:h,max:$,min:w}=s??{};return t.jsx($t,{decimalPlaces:h,disabled:n,max:$,min:w,name:d,placeholder:p})},[n,s,r,d,p]);return t.jsxs(Gn,{$align:o,$minHeight:l,$minWidth:c,children:[t.jsx(ve,{description:e,id:i,title:f,tooltip:u}),x]})},Ti=a.dt.label`
|
|
1145
1145
|
${({theme:e})=>`
|
|
1146
1146
|
align-items: start;
|
|
1147
1147
|
color: ${e.palette.gray[600]};
|
|
@@ -1213,7 +1213,7 @@
|
|
|
1213
1213
|
fill: ${e.palette.white};
|
|
1214
1214
|
}
|
|
1215
1215
|
`}
|
|
1216
|
-
`,
|
|
1216
|
+
`,Te=g.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:o,name:r,onChange:s,onClick:l,onFocus:c,onKeyDown:d,value:p,...u},f){return t.jsxs(Ti,{"aria-disabled":i,children:[t.jsx("input",{"aria-checked":n,"aria-disabled":i,"aria-label":r,defaultChecked:n,disabled:i,id:r,name:r,onChange:s,onClick:l,onFocus:c,onKeyDown:d,ref:f,type:"checkbox",value:p,...u}),t.jsx(v,{disabled:i,icon:"check",iconSize:"sm"}),o??p]})}),yt=({options:e,title:n,checkboxesName:i,onChange:o})=>{const r=a.nt(),[s,l]=g.useState(!1),c=g.useCallback(()=>{l(d=>!d)},[]);return t.jsxs(b,{bgColor:s?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(v,{icon:s?"chevron-up":"chevron-down",iconColor:r.palette.gray[400],iconSize:"xs"})]}),s?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,{defaultChecked:d.defaultChecked,disabled:d.disabled,label:d.label,name:i,onChange:o,value:d.value})},d.value))}):void 0]})},mt=(e,n)=>{const[o,r]=g.useState(0),[s,l]=g.useState(0);return g.useEffect(()=>{s===100&&(()=>{r(d=>d===n-1?0:d+1)})()},[s,n]),g.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:o,progress:s,setCycle:r,setProgress:l}},wt=({publicId:e,format:n="webp"})=>{const i=g.useMemo(()=>new a.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return g.useMemo(()=>i.image(e).format(n),[i,e,n])},jt=(e,n)=>g.useMemo(()=>a._.debounce(e,n),[e,n]),kt=e=>{const[n,i]=g.useState(!1),o=g.useCallback(()=>{i(!0)},[]),r=g.useCallback(()=>{i(!1)},[]),s=g.useCallback(()=>{i(l=>!l)},[]);return{close:r,isOpen:n,name:e,open:o,setIsOpen:i,toggle:s}},Ni=e=>{const[n,i]=g.useState(),o=jt(r=>{i(r)},(e==null?void 0:e.debounceWait)??300);return[n,o]},Ri=({alt:e="img",height:n="",width:i="",plugins:o=[a.lazyload(),a.placeholder()],publicId:r})=>{const s=wt({publicId:r});return t.jsx(a.AdvancedImage,{alt:e,cldImg:s,height:n,plugins:o,width:i})},V=g.memo(Ri),Ei=a.dt.label`
|
|
1217
1217
|
${({theme:e})=>`
|
|
1218
1218
|
align-items: center;
|
|
1219
1219
|
display: flex;
|
|
@@ -1292,7 +1292,7 @@
|
|
|
1292
1292
|
}
|
|
1293
1293
|
|
|
1294
1294
|
`}
|
|
1295
|
-
`,
|
|
1295
|
+
`,Di=a.dt.span.attrs({className:"checkmark"})``,Ct=g.forwardRef(function({defaultChecked:n=!1,disabled:i=!1,label:o,name:r,onChange:s,onClick:l,value:c,...d},p){return t.jsxs(Ei,{"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:s,onClick:l,ref:p,type:"radio",value:c,...d}),t.jsx(Di,{}),o??null]})}),Fi=({alt:e,imageId:n,icon:i,selectorProps:o,onClick:r,title:s,width:l="fit-content"})=>{const c=a.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(Ct,{name:o.name,onClick:r,value:o.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(V,{alt:e??"card image",height:"32px",publicId:n,width:"32px"}),i===void 0?void 0:t.jsx(v,{icon:i,iconSize:"sm",iconType:"fa-light"}),t.jsx(L,{fontWeight:"bold",lineSpacing:1.75,size:"xs",children:s})]})]})},ie=a.dt.div`
|
|
1296
1296
|
${({theme:e})=>`
|
|
1297
1297
|
align-items: center;
|
|
1298
1298
|
background-color: ${e.palette.gray[200]};
|
|
@@ -1304,7 +1304,7 @@
|
|
|
1304
1304
|
transition: 0.2s;
|
|
1305
1305
|
width: 36px;
|
|
1306
1306
|
`}
|
|
1307
|
-
`,
|
|
1307
|
+
`,Pi=a.dt.div`
|
|
1308
1308
|
${({theme:e})=>`
|
|
1309
1309
|
background-color: ${e.palette.white};
|
|
1310
1310
|
border-radius: 50%;
|
|
@@ -1315,7 +1315,7 @@
|
|
|
1315
1315
|
width: ${e.spacing[1]};
|
|
1316
1316
|
z-index: 1;
|
|
1317
1317
|
`}
|
|
1318
|
-
`,
|
|
1318
|
+
`,Wi=a.dt.label`
|
|
1319
1319
|
display: inline-block;
|
|
1320
1320
|
|
|
1321
1321
|
input {
|
|
@@ -1342,22 +1342,22 @@
|
|
|
1342
1342
|
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1343
1343
|
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1344
1344
|
}
|
|
1345
|
-
`,vt=g.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:o,name:r,leftDescription:s,rightDescription:l,...c},d){const p=n===!0?"on":"off",u=typeof s=="object"&&s.on&&s.off?s[p]:s,
|
|
1345
|
+
`,vt=g.forwardRef(function({defaultChecked:n,disabled:i=!1,justify:o,name:r,leftDescription:s,rightDescription:l,...c},d){const p=n===!0?"on":"off",u=typeof s=="object"&&s.on&&s.off?s[p]:s,f=g.useCallback(x=>{x.stopPropagation()},[]);return t.jsxs(b,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:o,children:[u,t.jsxs(Wi,{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(ie,{"aria-label":"Toggle Switch",id:`${r}Toggle`,children:t.jsx(Pi,{})})]}),l]})}),Mi=({id:e,title:n,toggles:i,minWidth:o="auto",height:r="auto"})=>{const s=a.nt();return t.jsxs(b,{alignItems:"center",bgColor:s.palette.white,border:`1px solid ${s.palette.gray[200]}`,borderRadius:s.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:r,justify:"center",minHeight:"100px",minWidth:o,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(ve,{id:e,title:n}),t.jsx(b,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:i.map(l=>t.jsx(vt,{...l},`$card-toggle-${l.name}`))})]})},Li=a.dt.div`
|
|
1346
1346
|
position: relative;
|
|
1347
1347
|
margin: auto;
|
|
1348
1348
|
overflow: hidden;
|
|
1349
|
-
`,
|
|
1349
|
+
`,Bi=a.dt.div`
|
|
1350
1350
|
display: flex;
|
|
1351
1351
|
transition: transform 0.5s ease-in-out;
|
|
1352
1352
|
transform: translateX(
|
|
1353
1353
|
${({$currentIndex:e})=>-e*100}%
|
|
1354
1354
|
);
|
|
1355
|
-
`,
|
|
1355
|
+
`,Oi=a.dt.div`
|
|
1356
1356
|
align-items: center;
|
|
1357
1357
|
display: flex;
|
|
1358
1358
|
justify-content: center;
|
|
1359
1359
|
min-width: 100%;
|
|
1360
|
-
`,
|
|
1360
|
+
`,Ai=a.dt.button`
|
|
1361
1361
|
${({theme:e,$isActive:n})=>`
|
|
1362
1362
|
background-color: ${n?e.palette.primary[400]:e.palette.white};
|
|
1363
1363
|
border: none;
|
|
@@ -1366,13 +1366,13 @@
|
|
|
1366
1366
|
height: ${e.spacing[.75]};
|
|
1367
1367
|
width: ${e.spacing[.75]};
|
|
1368
1368
|
`}
|
|
1369
|
-
`,
|
|
1369
|
+
`,_i=a.dt.div`
|
|
1370
1370
|
align-items: center;
|
|
1371
1371
|
display: flex;
|
|
1372
1372
|
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1373
1373
|
justify-content: center;
|
|
1374
1374
|
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
1375
|
-
`,
|
|
1375
|
+
`,Vi=({slides:e,interval:n=300})=>{const{cycle:i,setCycle:o,setProgress:r}=mt(n,e.length),s=g.useCallback(l=>()=>{o(l),r(0)},[o,r]);return t.jsxs(Li,{"aria-roledescription":"carousel",children:[t.jsx(Bi,{$currentIndex:i,children:e.map((l,c)=>{const d=`slide-${c}`;return t.jsx(Oi,{"aria-label":d,"aria-roledescription":"slide",children:l.content},d)})}),t.jsx(_i,{children:e.map((l,c)=>{const d=`nav-button-${c}`;return t.jsx(Ai,{$isActive:c===i,"aria-label":`Go to slide ${c+1}`,"data-testid":c===i?"active":"inactive",onClick:s(c)},d)})})]})},St=a.dt.div`
|
|
1376
1376
|
${({theme:e})=>`
|
|
1377
1377
|
background-color: ${e.palette.gray[100]};
|
|
1378
1378
|
border-radius: ${e.spacing[.25]};
|
|
@@ -1424,7 +1424,7 @@
|
|
|
1424
1424
|
padding-bottom: unset;
|
|
1425
1425
|
}
|
|
1426
1426
|
`}
|
|
1427
|
-
`,
|
|
1427
|
+
`,Hi=a.dt.div`
|
|
1428
1428
|
${({theme:e})=>`
|
|
1429
1429
|
align-items: end;
|
|
1430
1430
|
background-color: ${e.palette.gray[100]};
|
|
@@ -1442,10 +1442,10 @@
|
|
|
1442
1442
|
background-color: ${e.palette.gray[200]};
|
|
1443
1443
|
}
|
|
1444
1444
|
`}
|
|
1445
|
-
`,
|
|
1446
|
-
`);return
|
|
1445
|
+
`,Gi=({noCodeMessage:e="Code snippet not available",snippet:n})=>{const i=a.nt(),[o,r]=g.useState(!1),[s,l]=g.useState(!0),c=g.useCallback(()=>{r(f=>!f)},[r]),d=g.useCallback(()=>{if(a._.isNil(n)||a._.isEmpty(n)||!a._.isString(n))return l(!1),e;const f=n.split(`
|
|
1446
|
+
`);return f.length>8&&!o?`${[...f].splice(0,7).join(`
|
|
1447
1447
|
`)}
|
|
1448
|
-
${
|
|
1448
|
+
${f[8]}...`:(f.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(async()=>{await navigator.clipboard.writeText(p)},[p]);return t.jsxs(b,{bgColor:i.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(St,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:p})})}),t.jsxs(Hi,{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]}),s?t.jsxs(R,{onClick:c,variant:"ghost",children:[o?"Show Less":"Show more",t.jsx(v,{icon:o?"chevron-up":"chevron-down",iconColor:i.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:u})]}):!1]})]})},Ui=({noCodeMessage:e="Code snippet not available",snippet:n,specific:i})=>(g.useEffect(()=>{a.prismExports.highlightAll()},[]),t.jsx(St,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":a._.isNil(n)||a._.isString(n)?0:n.offset+.7,...i!==void 0?{"data-line":String(Number(i))}:{},children:a._.isNil(n)||a._.isString(n)||a._.isEmpty(n.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:n.content})})})),Yi=a.dt.li`
|
|
1449
1449
|
${({theme:e})=>`
|
|
1450
1450
|
align-items: center;
|
|
1451
1451
|
background-color: ${e.palette.white};
|
|
@@ -1504,13 +1504,13 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1504
1504
|
min-width: 240px;
|
|
1505
1505
|
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
1506
1506
|
`}
|
|
1507
|
-
`,
|
|
1507
|
+
`,Ne=({children:e,disabled:n=!1,icon:i,iconType:o="fa-light",href:r,onClick:s,onKeyDown:l,rightIcon:c,selected:d=!1,value:p,...u})=>{const x=a.nt().palette.gray[n?300:800],h=n?g.Children.map(e,$=>g.isValidElement($)?g.cloneElement($,{disabled:n,...$.props}):$):e;return t.jsxs(Yi,{"aria-disabled":n,"aria-label":p,"aria-selected":d,"data-testid":p,onClick:s,onKeyDown:l,value:p,...u,children:[i!==void 0||p!==void 0?t.jsxs(b,{alignItems:"center",display:"flex",gap:.625,children:[i?t.jsx(v,{disabled:n,icon:i,iconColor:x,iconSize:"xs",iconType:o}):null,r===void 0?h:t.jsx(X,{href:r,children:h})]}):null,d||c?t.jsx(v,{disabled:n,icon:c??"check",iconColor:x,iconSize:"xs",iconType:o}):null]})},Ki=a.dt(Ne)`
|
|
1508
1508
|
padding: 7px 8px;
|
|
1509
1509
|
|
|
1510
1510
|
svg.fa-check {
|
|
1511
1511
|
border-radius: 2px;
|
|
1512
1512
|
}
|
|
1513
|
-
`,
|
|
1513
|
+
`,qi=e=>e.reduce((i,o)=>i[o.name]?{...i,[o.name]:[...i[o.name],o]}:{...i,[o.name]:[o]},{}),Xi=a.dt.input`
|
|
1514
1514
|
${({theme:e})=>`
|
|
1515
1515
|
background: none;
|
|
1516
1516
|
border: none !important;
|
|
@@ -1526,7 +1526,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1526
1526
|
color: ${e.palette.gray[400]};
|
|
1527
1527
|
}
|
|
1528
1528
|
`}
|
|
1529
|
-
`,
|
|
1529
|
+
`,Zi=a.dt.div`
|
|
1530
1530
|
${({theme:e})=>`
|
|
1531
1531
|
align-items: center;
|
|
1532
1532
|
background-color: ${e.palette.white};
|
|
@@ -1546,39 +1546,36 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1546
1546
|
border: 2px solid ${e.palette.black};
|
|
1547
1547
|
}
|
|
1548
1548
|
`}
|
|
1549
|
-
`,
|
|
1549
|
+
`,Ji=a.dt.div`
|
|
1550
1550
|
${({theme:e})=>`
|
|
1551
1551
|
background-color: ${e.palette.white};
|
|
1552
1552
|
border-radius: ${e.spacing[.5]};
|
|
1553
1553
|
width: 250px;
|
|
1554
1554
|
`}
|
|
1555
|
-
`,oe=g.forwardRef(function({name:n,smallSearch:i=!1,value:o,...r},s){const l=a.nt(),[c,d]=g.useState(!1),{refs:p,floatingStyles:u}=a.useFloating(),
|
|
1555
|
+
`,oe=g.forwardRef(function({name:n,smallSearch:i=!1,value:o,...r},s){const l=a.nt(),[c,d]=g.useState(!1),{refs:p,floatingStyles:u}=a.useFloating(),f=g.useCallback(()=>{d(h=>!h)},[]);J(p.floating.current,()=>{d(!1)},!0);const x=t.jsxs(Zi,{children:[t.jsx(v,{icon:"magnifying-glass",iconColor:l.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(Xi,{...r,id:n,name:n,ref:s,value:o}),!a.lodashExports.isEmpty(o)&&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(g.Fragment,{children:[t.jsx(O,{border:`1px solid ${l.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:f,ref:p.setReference,variant:"ghost"}),c?t.jsx(Ji,{ref:p.setFloating,style:u,children:x}):void 0]}):x}),It=({columns:e,formId:n,onChangeHandler:i,variant:o})=>o==="grouped"?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,py:1.25,width:"55%",children:[t.jsx(oe,{}),t.jsx("form",{id:n,style:{display:"flex",flexDirection:"column",gap:"0.625rem",overflowY:"auto",overflowX:"hidden"},children:Object.entries(qi(e)).map(([r,s])=>{const l=`li-checkbox${r}`;return t.jsx(yt,{checkboxesName:r,onChange:i,options:s,title:r},l)})})]}):t.jsxs(b,{py:1.25,width:"55%",children:[t.jsx(oe,{}),t.jsx("form",{id:n,style:{paddingTop:"0.625rem",overflowY:"auto",overflowX:"hidden"},children:e.map((r,s)=>{const l=`li-checkbox${s}`;return t.jsx(Ki,{value:l,width:"content",children:t.jsx(Te,{defaultChecked:r.defaultChecked,disabled:r.disabled,label:r.label,name:r.name,onChange:i,value:r.value})},l)})})]}),{getVariant:Qi}=H(e=>({fixed:`
|
|
1556
1556
|
width: 300px;
|
|
1557
1557
|
padding: ${e.spacing[1.25]};
|
|
1558
1558
|
overflow: hidden auto;
|
|
1559
1559
|
gap: ${e.spacing[1.25]};
|
|
1560
1560
|
`,lg:`
|
|
1561
|
-
|
|
1561
|
+
width: 80%;
|
|
1562
|
+
|
|
1563
|
+
@media screen and (min-width: ${e.breakpoints.sm}) {
|
|
1562
1564
|
width: 72%;
|
|
1563
1565
|
}
|
|
1564
|
-
@media screen and (max-width: ${e.breakpoints.sm}) {
|
|
1565
|
-
width: 80%;
|
|
1566
|
-
}
|
|
1567
1566
|
`,md:`
|
|
1568
|
-
|
|
1567
|
+
width: 60%;
|
|
1568
|
+
|
|
1569
|
+
@media screen and (min-width: ${e.breakpoints.sm}) {
|
|
1569
1570
|
width: 48%;
|
|
1570
1571
|
}
|
|
1571
|
-
@media screen and (max-width: ${e.breakpoints.sm}) {
|
|
1572
|
-
width: 60%;
|
|
1573
|
-
}
|
|
1574
1572
|
`,sm:`
|
|
1575
|
-
|
|
1573
|
+
width: 40%;
|
|
1574
|
+
|
|
1575
|
+
@media screen and (min-width: ${e.breakpoints.sm}) {
|
|
1576
1576
|
width: 32%;
|
|
1577
1577
|
}
|
|
1578
|
-
|
|
1579
|
-
width: 40%;
|
|
1580
|
-
}
|
|
1581
|
-
`})),Qi=a.dt.div.attrs({className:"comp-modal fixed inset-0 overflow-auto"})`
|
|
1578
|
+
`})),er=a.dt.div.attrs({className:"comp-modal fixed inset-0 overflow-auto"})`
|
|
1582
1579
|
align-items: center;
|
|
1583
1580
|
background-color: rgb(52 64 84 / 70%);
|
|
1584
1581
|
display: flex;
|
|
@@ -1609,9 +1606,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1609
1606
|
}
|
|
1610
1607
|
}
|
|
1611
1608
|
|
|
1612
|
-
${
|
|
1609
|
+
${Qi(e,n)}
|
|
1613
1610
|
`}
|
|
1614
|
-
`,
|
|
1611
|
+
`,tr=a.dt.div`
|
|
1615
1612
|
${({theme:e})=>`
|
|
1616
1613
|
background-color: ${e.palette.white};
|
|
1617
1614
|
border-bottom: 1px solid ${e.palette.gray[200]};
|
|
@@ -1627,7 +1624,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1627
1624
|
padding: 0;
|
|
1628
1625
|
}
|
|
1629
1626
|
`}
|
|
1630
|
-
`,
|
|
1627
|
+
`,nr=a.dt.div`
|
|
1631
1628
|
border-radius: ${({theme:e})=>`${e.spacing[.25]} ${e.spacing[.25]} 0 0`};
|
|
1632
1629
|
display: block;
|
|
1633
1630
|
overflow: unset;
|
|
@@ -1636,7 +1633,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1636
1633
|
max-width: 100%;
|
|
1637
1634
|
padding: ${({theme:e})=>`${e.spacing[1.25]}`};
|
|
1638
1635
|
position: sticky;
|
|
1639
|
-
`,
|
|
1636
|
+
`,ir=a.dt.div.attrs({className:"flex items-center justify-between mb-1.5"})``,rr=a.dt.div`
|
|
1640
1637
|
${({theme:e})=>`
|
|
1641
1638
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
1642
1639
|
display: flex;
|
|
@@ -1667,7 +1664,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1667
1664
|
margin-right: 0;
|
|
1668
1665
|
}
|
|
1669
1666
|
`}
|
|
1670
|
-
`,
|
|
1667
|
+
`,ar=a.dt.div`
|
|
1671
1668
|
img {
|
|
1672
1669
|
margin: 0 calc(-${({theme:e})=>e.spacing[1.25]} - 1px)
|
|
1673
1670
|
${({theme:e})=>e.spacing[1.25]};
|
|
@@ -1683,7 +1680,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1683
1680
|
margin-right: 0;
|
|
1684
1681
|
`:""}
|
|
1685
1682
|
}
|
|
1686
|
-
`,Tt=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:o=void 0})=>{const{close:r}=n,s=g.useCallback(()=>{o!=null&&o.onClick&&o.onClick(),r()},[o,r]),l=g.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),r()},[i,r]);return[i,o].some(d=>!a.lodashExports.isEmpty(d))?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(
|
|
1683
|
+
`,Tt=({alert:e,modalRef:n,confirmButton:i=void 0,cancelButton:o=void 0})=>{const{close:r}=n,s=g.useCallback(()=>{o!=null&&o.onClick&&o.onClick(),r()},[o,r]),l=g.useCallback(()=>{i!=null&&i.onClick&&i.onClick(),r()},[i,r]);return[i,o].some(d=>!a.lodashExports.isEmpty(d))?t.jsxs(b,{display:"flex",flexDirection:"column",gap:.625,position:"sticky",px:1.25,py:1.25,children:[e,t.jsx(rr,{children:t.jsxs("div",{children:[o&&t.jsx(R,{onClick:s,variant:"tertiary",width:"100%",children:o.text}),i&&t.jsx(R,{onClick:l,variant:"primary",width:"100%",children:i.text})]})})]}):null},Nt=({title:e,description:n,modalRef:i,otherActions:o,onClose:r})=>{const s=a.nt(),l=g.useCallback(()=>{r==null||r(),i.close()},[i,r]);return g.useEffect(()=>{const c=d=>{d.key==="Escape"&&l()};return window.addEventListener("keydown",c),()=>{window.removeEventListener("keydown",c)}},[l]),t.jsxs(nr,{children:[t.jsxs(ir,{children:[typeof e=="string"?t.jsx(L,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",children:e}):e,t.jsxs("div",{className:"items-center flex gap-3",children:[o,t.jsx(O,{icon:"close",iconColor:s.palette.gray[400],iconSize:"xs",iconTransform:"grow-2",iconType:"fa-light",id:"modal-close",onClick:l,px:.25,py:.25,variant:"ghost"})]})]}),n&&a.lodashExports.isString(n)&&!a.lodashExports.isEmpty(n)?t.jsx(j,{mt:.5,size:"sm",children:n}):n]})},Rt=({disabled:e,id:n="modal-confirm",onCancel:i,onConfirm:o="submit",txtCancel:r,txtConfirm:s})=>{const l=o==="submit";return t.jsxs(b,{display:"flex",gap:.75,maxWidth:i?"392px":"190px",mt:1.5,children:[i?t.jsx(R,{id:`${n}-cancel`,justify:"center",onClick:i,variant:"tertiary",width:"100%",children:r??"Cancel"}):void 0,t.jsx(R,{disabled:e,id:n,justify:"center",onClick:l?void 0:o,type:l?"submit":"button",variant:"primary",width:"100%",children:s??"Confirm"})]})},Et=({_portal:e=!0,alert:n,cancelButton:i=void 0,children:o=void 0,confirmButton:r=void 0,content:s=void 0,description:l="",modalRef:c,otherActions:d=void 0,onClose:p=void 0,title:u="",size:f,id:x="modal-container"})=>{const h=()=>t.jsx(er,{"aria-label":c.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(Ve,{$size:f,"data-testid":x,id:x,children:[!a._.isEmpty(u)&&t.jsx(Nt,{description:l,modalRef:c,onClose:p,otherActions:d,title:u}),(a._.isObject(s)||o)&&t.jsxs(tr,{children:[o,a._.isObject(s)&&a._.isString(s.imageSrc)&&t.jsx(ar,{$framed:s.imageFramed,children:t.jsx(V,{alt:"modal-img",publicId:s.imageSrc})}),a._.isObject(s)&&a._.isString(s.imageText)&&t.jsx(j,{size:"sm",children:s.imageText})]}),t.jsx(Tt,{alert:n,cancelButton:i,confirmButton:r,modalRef:c})]})});return e&&c.isOpen?ee.createPortal(h(),document.getElementById("portals")??document.body):c.isOpen?h():null},or=()=>{const[e,n]=g.useState(!1),[i,o]=g.useState(),r=g.useRef(null),s=kt("confirm-dialog-modal"),l=g.useCallback(async u=>(o(u),n(!0),new Promise(f=>{r.current=f})),[]),c=g.useCallback(()=>{var u;n(!1),o(void 0),(u=r.current)==null||u.call(r,!0)},[]),d=g.useCallback(()=>{var u;n(!1),o(void 0),(u=r.current)==null||u.call(r,!1)},[]);return g.useEffect(()=>{s.setIsOpen(e)},[e,s]),{ConfirmDialog:({id:u="confirm-dialog-modal",children:f})=>t.jsx(Et,{id:u,modalRef:{...s,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(Rt,{id:i==null?void 0:i.id,onCancel:d,onConfirm:c})]})}),confirm:l}},sr=a.dt.button`
|
|
1687
1684
|
display: flex;
|
|
1688
1685
|
position: relative;
|
|
1689
1686
|
height: 32px;
|
|
@@ -1706,7 +1703,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1706
1703
|
display: none;
|
|
1707
1704
|
}
|
|
1708
1705
|
}
|
|
1709
|
-
`,
|
|
1706
|
+
`,lr=a.dt.div`
|
|
1710
1707
|
${({theme:e})=>`
|
|
1711
1708
|
display: flex;
|
|
1712
1709
|
flex-direction: column;
|
|
@@ -1747,7 +1744,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1747
1744
|
}
|
|
1748
1745
|
}
|
|
1749
1746
|
`}
|
|
1750
|
-
`,Pe=({containerRef:e,id:n})=>{const i=a.nt(),o=n==="desktop"?380:342,r=g.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?o:-o,behavior:"smooth"})}},[e,o]),s=g.useCallback(l=>t.jsxs(
|
|
1747
|
+
`,Pe=({containerRef:e,id:n})=>{const i=a.nt(),o=n==="desktop"?380:342,r=g.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?o:-o,behavior:"smooth"})}},[e,o]),s=g.useCallback(l=>t.jsxs(sr,{onClick:r(l),children:[t.jsx(v,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"hovered",iconColor:i.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),t.jsx(v,{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:[s("left"),s("right")]})},We=({tag:e,tagPosition:n})=>{const i=a.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(j,{color:i.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},Dt=({eventDate:e})=>{const n=a.nt(),i=a.lodashExports.isEmpty(e)?null:e==null?void 0:e.split("-");if(i){const[o,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:o}),t.jsx(j,{color:n.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:r.toUpperCase()})]})}return null},cr=a.dt.div`
|
|
1751
1748
|
${({theme:e})=>`
|
|
1752
1749
|
align-items: flex-start;
|
|
1753
1750
|
display: flex;
|
|
@@ -1792,7 +1789,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1792
1789
|
}
|
|
1793
1790
|
}
|
|
1794
1791
|
`}
|
|
1795
|
-
`,Ft=({author:e,buttonText:n,description:i,eventDate:o,href:r,imageId:s,mode:l="light",publishDate:c,readingTime:d,tag:p,tagPosition:u="top",title:
|
|
1792
|
+
`,Ft=({author:e,buttonText:n,description:i,eventDate:o,href:r,imageId:s,mode:l="light",publishDate:c,readingTime:d,tag:p,tagPosition:u="top",title:f})=>{const x=a.nt(),h=c==null?void 0:c.split("-"),$=l==="dark",w=t.jsxs(cr,{"data-testid":`content-card-${f}`,children:[s||o||p&&u==="top"?t.jsxs(b,{id:"card-image",position:"relative",children:[s&&t.jsx(V,{publicId:s}),u==="top"&&t.jsx(We,{tag:p,tagPosition:u}),t.jsx(Dt,{eventDate:o})]}):void 0,t.jsxs(b,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:[u==="bottom"&&t.jsx(We,{tag:p,tagPosition:u}),e||h||d?t.jsxs(b,{display:"flex",justify:"space-between",width:"100%",children:[e&&h&&t.jsx(j,{color:x.palette.gray[$?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(v,{icon:"eye",iconColor:x.palette.gray[$?300:400],iconSize:"xs",iconType:"fa-light"}),t.jsx(j,{color:x.palette.gray[$?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:d})]})]}):void 0,t.jsx(L,{className:`title-${l}`,color:$?x.palette.white:x.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:f}),i&&t.jsx(j,{color:x.palette.gray[$?100:600],size:"md",sizeSm:"sm",children:i}),n&&r&&t.jsx(R,{href:r,variant:"link",children:n})]})]});return r?t.jsx("a",{className:"flex w-fit",href:r,rel:"noopener noreferrer",target:"_self",children:w}):w},dr=({description:e,items:n,title:i,titleHighlighted:o})=>{const r=g.useRef(null);return t.jsxs(lr,{"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:o})]}),t.jsx(j,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:e})]}),t.jsx(Pe,{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((s,l)=>t.jsx(Ft,{...s},`${l}-${s.title}`))})}),t.jsx(Pe,{containerRef:r,id:"mobile"})]})},Q=g.forwardRef(function({color:n=C.palette.gray[100],mt:i=.5,mb:o=.5,...r},s){return t.jsx(b,{as:"hr",borderBottom:`1px solid ${n}`,mb:o,mt:i,ref:s,width:"100%",...r})}),Me=({buttonProps:e,variant:n})=>t.jsx(R,{onClick:e.onClick,variant:n,children:e.text}),pr=a.dt.div`
|
|
1796
1793
|
display: flex;
|
|
1797
1794
|
flex-direction: column;
|
|
1798
1795
|
align-items: center;
|
|
@@ -1800,7 +1797,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1800
1797
|
max-width: 900px;
|
|
1801
1798
|
white-space: pre-line;
|
|
1802
1799
|
margin: 0 auto;
|
|
1803
|
-
`,
|
|
1800
|
+
`,gr=a.dt.div`
|
|
1804
1801
|
display: flex;
|
|
1805
1802
|
flex-direction: row;
|
|
1806
1803
|
justify-content: center;
|
|
@@ -1813,7 +1810,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1813
1810
|
> img {
|
|
1814
1811
|
width: 100%;
|
|
1815
1812
|
}
|
|
1816
|
-
`,
|
|
1813
|
+
`,ur=a.dt.div`
|
|
1817
1814
|
display: flex;
|
|
1818
1815
|
flex-direction: row;
|
|
1819
1816
|
margin: 0;
|
|
@@ -1826,7 +1823,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1826
1823
|
> *:last-child {
|
|
1827
1824
|
margin-right: 0;
|
|
1828
1825
|
}
|
|
1829
|
-
`,Ze={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}},
|
|
1826
|
+
`,Ze={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}},xr=({cancelButton:e=void 0,confirmButton:n=void 0,description:i,imageSrc:o="integrates/empty/addRoot",padding:r=1.25,title:s,size:l="md"})=>{const c=(n??e)!==void 0;return t.jsxs(pr,{$padding:r,children:[t.jsx(gr,{children:t.jsx(V,{alt:"empty-icon",publicId:o})}),t.jsx(L,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:Ze[l].title,textAlign:"center",children:s}),t.jsx(j,{mb:c?2:void 0,size:Ze[l].description,textAlign:"center",children:i}),c?t.jsxs(ur,{children:[e&&t.jsx(Me,{buttonProps:e,variant:"tertiary"}),n&&t.jsx(Me,{buttonProps:n,variant:"primary"})]}):void 0]})},fr=a.dt.form`
|
|
1830
1827
|
${({theme:e})=>`
|
|
1831
1828
|
align-items: flex-start;
|
|
1832
1829
|
align-self: stretch;
|
|
@@ -1836,7 +1833,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1836
1833
|
overflow: hidden auto;
|
|
1837
1834
|
width: 100%;
|
|
1838
1835
|
`}
|
|
1839
|
-
`,
|
|
1836
|
+
`,hr=({alert:e,cancelLabel:n,children:i,id:o="modal-confirm",mode:r,onCancel:s,onSubmit:l,showButtons:c=!0,submitLabel:d,submitDisabled:p=!1,yupSchema:u,...f})=>{const x=a.nt(),h=a.useForm({...f,mode:r??"all",resolver:u?a.o(u):void 0});return t.jsx(a.FormProvider,{...h,children:t.jsx(fr,{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: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:[s?t.jsx(R,{id:`${o}-cancel`,justify:"center",onClick:s,type:"reset",variant:"tertiary",width:"100%",children:n??"Cancel"}):void 0,t.jsx(R,{disabled:p,id:o,justify:"center",type:"submit",width:"100%",children:d??"Confirm"})]})]})]})})})},br=a.dt(te)`
|
|
1840
1837
|
display: grid;
|
|
1841
1838
|
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
1842
1839
|
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
@@ -1854,7 +1851,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1854
1851
|
grid-template-columns: repeat(${n}, 1fr);
|
|
1855
1852
|
}
|
|
1856
1853
|
`}
|
|
1857
|
-
|
|
1854
|
+
`,$r=g.forwardRef(function({children:n,md:i,sm:o,lg:r,xl:s,gap:l,...c},d){return t.jsx(br,{$gap:l,$lg:r,$md:i,$sm:o,$xl:s,ref:d,...c,children:n})}),yr=a.dt.div`
|
|
1858
1855
|
${({theme:e,$itemsLength:n})=>`
|
|
1859
1856
|
display: flex;
|
|
1860
1857
|
background-color: ${e.palette.white};
|
|
@@ -1890,7 +1887,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1890
1887
|
background-color: ${e.palette.gray[100]};
|
|
1891
1888
|
}
|
|
1892
1889
|
`}
|
|
1893
|
-
`,Pt=({isSelected:e=!1,label:n,onSelect:i})=>{const o=a.nt(),r=g.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(He,{$isSelected:e,onClick:r,children:[e?t.jsx(
|
|
1890
|
+
`,Pt=({isSelected:e=!1,label:n,onSelect:i})=>{const o=a.nt(),r=g.useCallback(()=>{i&&i(n)},[i,n]);return t.jsxs(He,{$isSelected:e,onClick:r,children:[e?t.jsx(v,{icon:"check",iconColor:o.palette.gray[800],iconSize:"md"}):null,t.jsx(j,{color:o.palette.gray[800],fontWeight:"bold",size:"sm",children:n})]})},mr=({isOpen:e=!0,items:n,handleNewOrganization:i,onSelect:o,onClose:r,selectedItem:s,title:l,variant:c})=>{const d=a.nt(),[p,u]=g.useState(n),[f,x]=g.useState(""),h=g.useCallback(m=>{u(y=>y.filter(k=>String(k.name).toLowerCase().includes(m.toLocaleLowerCase())))},[u]),$=g.useCallback(m=>{m.currentTarget&&(x(m.currentTarget.value),h(m.currentTarget.value))},[x,h]);g.useEffect(()=>{u(n),h(f)},[n,h,f]);const w=()=>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(yr,{$itemsLength:p.length,children:[t.jsxs(b,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(j,{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(oe,{onInput:$,placeholder:"Search"})}),t.jsx(Q,{mb:1,mt:1}),t.jsxs(b,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(He,{onClick:i,children:t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsx(v,{icon:"square-plus",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",mr:.5}),t.jsx(j,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,p.map(m=>t.jsx(Pt,{isSelected:s.toLowerCase()===m.name,label:m.name.charAt(0).toUpperCase()+m.name.slice(1),onSelect:o},m.name))]})]})})});return e?ee.createPortal(w(),document.body):t.jsx("div",{})},wr=({description:e,height:n="auto",leftIconName:i,children:o,rightIconName:r,title:s,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:p="centered",width:u="318px"})=>{const f=a.nt(),x=p==="centered",h=t.jsx(G,{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||a.lodashExports.isUndefined(i)?void 0:h,t.jsx(j,{color:x?f.palette.gray[800]:f.palette.gray[400],size:"md",textAlign:x?"center":"start",children:e}),x||a.lodashExports.isUndefined(r)?void 0:h]}),t.jsxs(b,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[x&&!a.lodashExports.isUndefined(i)?h:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[a.lodashExports.isUndefined(s)?void 0:t.jsx(L,{fontWeight:"bold",size:"md",children:s}),o]}),x&&!a.lodashExports.isUndefined(r)?h:void 0]})]})},jr=a.dt.button`
|
|
1894
1891
|
${({theme:e})=>`
|
|
1895
1892
|
align-items: center;
|
|
1896
1893
|
color: ${e.palette.gray[500]};
|
|
@@ -1910,7 +1907,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1910
1907
|
color: ${e.palette.gray[800]};
|
|
1911
1908
|
}
|
|
1912
1909
|
`}
|
|
1913
|
-
`,
|
|
1910
|
+
`,kr=a.dt.div`
|
|
1914
1911
|
${({theme:e})=>`
|
|
1915
1912
|
align-items: center;
|
|
1916
1913
|
border-bottom: 2px solid ${e.palette.gray[200]};
|
|
@@ -1919,11 +1916,11 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1919
1916
|
height: ${e.spacing[3]};
|
|
1920
1917
|
width: max-content;
|
|
1921
1918
|
`}
|
|
1922
|
-
`,
|
|
1919
|
+
`,Cr=(e,n,i)=>i?n==="primary"?`3px solid ${e.palette.primary[500]}`:`3px solid ${e.palette.primary[100]}`:"unset",vr=a.dt.div`
|
|
1923
1920
|
display: flex;
|
|
1924
1921
|
flex-direction: row;
|
|
1925
1922
|
gap: ${({theme:e})=>e.spacing[.25]};
|
|
1926
|
-
border-bottom: ${({theme:e,$borderButton:n,$variant:i})=>
|
|
1923
|
+
border-bottom: ${({theme:e,$borderButton:n,$variant:i})=>Cr(e,i,n)};
|
|
1927
1924
|
align-items: center;
|
|
1928
1925
|
padding: ${({theme:e})=>e.spacing[.625]}
|
|
1929
1926
|
${({theme:e})=>e.spacing[.5]};
|
|
@@ -1962,7 +1959,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1962
1959
|
}
|
|
1963
1960
|
}
|
|
1964
1961
|
}
|
|
1965
|
-
`,
|
|
1962
|
+
`,Sr=a.dt(te)`
|
|
1966
1963
|
${({theme:e,$variant:n})=>`
|
|
1967
1964
|
align-items: center;
|
|
1968
1965
|
background: ${n==="error"?e.palette.primary[400]:e.palette.warning[500]};
|
|
@@ -1975,14 +1972,14 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
1975
1972
|
width: ${e.spacing[.5]};
|
|
1976
1973
|
height: ${e.spacing[.5]};
|
|
1977
1974
|
`}
|
|
1978
|
-
`,
|
|
1975
|
+
`,zr=a.dt.div`
|
|
1979
1976
|
align-items: center;
|
|
1980
1977
|
color: ${({theme:e})=>e.palette.white};
|
|
1981
1978
|
display: flex;
|
|
1982
1979
|
font-size: 6px;
|
|
1983
1980
|
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1984
1981
|
justify-content: center;
|
|
1985
|
-
`,Wt=g.forwardRef(function({numberIndicator:n,show:i,variant:o="error",...r},s){return t.jsx(
|
|
1982
|
+
`,Wt=g.forwardRef(function({numberIndicator:n,show:i,variant:o="error",...r},s){return t.jsx(Sr,{$variant:o,className:i?"flex":"hidden","data-testid":"notification-sign",ref:s,...r,children:n&&t.jsx(zr,{children:n<=9?n:9})})}),Mt=({end:e=!1,label:n,id:i,isActive:o=!1,link:r,notificationSign:s,onClick:l,tooltip:c="",variant:d="primary",tag:p})=>{const{pathname:u}=Ee.useLocation(),f=o||(d==="primary"?u.includes(r):u.endsWith(r));return t.jsx(G,{display:"flex",id:`${i}-tooltip`,tip:c,children:t.jsxs(vr,{$borderButton:f,$variant:d,children:[t.jsxs(Ee.NavLink,{end:e,id:i,onClick:l,to:r,children:[n,t.jsx(Wt,{left:s==null?void 0:s.left,numberIndicator:s==null?void 0:s.numberIndicator,show:s==null?void 0:s.show,top:s==null?void 0:s.top,variant:s==null?void 0:s.variant})]}),p===void 0?null:t.jsx(Z,{tagLabel:`${p}`,variant:"default"})]})})},Lt=({items:e,borders:n=!0,box:i=!1,variant:o="primary"})=>{const r=a.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,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:s,id:l,isActive:c,link:d,label:p,notificationSign:u,onClick:f,tag:x,tooltip:h})=>t.jsx(Mt,{end:s,id:l,isActive:c,label:p,link:d,notificationSign:u,onClick:f,tag:x,tooltip:h,variant:o},l))})},Ir=({actions:e,children:n,header:i,title:o,tabs:r,footer:s})=>{const l=a.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(j,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:o}),i]}),e&&t.jsx(b,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},p)=>t.jsx(O,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${p}-${c}`))})]}),t.jsx(b,{display:"flex",pt:.25,width:"100%",children:t.jsx(Lt,{items:r})}),t.jsx(b,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:n}),s&&t.jsx(b,{alignSelf:"stretch",borderTop:`1px solid ${l.palette.gray[300]}`,display:"flex",gap:.5,justify:"end",px:1.25,py:1,children:s.map(({icon:c,text:d,onClick:p},u)=>t.jsx(R,{icon:c,onClick:p,variant:u===0?"primary":"tertiary",width:"100%",children:d},`${u}-${d}`))})]})},Tr=a.dt.div`
|
|
1986
1983
|
${({theme:e})=>`
|
|
1987
1984
|
align-items: flex-start;
|
|
1988
1985
|
backdrop-filter: blur(3.15px);
|
|
@@ -2034,7 +2031,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2034
2031
|
}
|
|
2035
2032
|
}
|
|
2036
2033
|
`}
|
|
2037
|
-
`,
|
|
2034
|
+
`,Nr=a.dt.div`
|
|
2038
2035
|
align-items: center;
|
|
2039
2036
|
position: absolute;
|
|
2040
2037
|
justify-content: center;
|
|
@@ -2048,7 +2045,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2048
2045
|
height: 260px;
|
|
2049
2046
|
width: 260px;
|
|
2050
2047
|
}
|
|
2051
|
-
`,Bt=({icon:e})=>t.jsx(
|
|
2048
|
+
`,Bt=({icon:e})=>t.jsx(Nr,{children:t.jsx(v,{icon:e,iconColor:C.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),Rr=({category:e,description:n,href:i,icon:o,location:r,title:s})=>{const l=a.nt();return t.jsxs(Tr,{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(j,{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:s})]}),t.jsxs("div",{className:"flex flex-col gap-0.5",children:[t.jsx(j,{color:l.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),t.jsx(j,{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:s}),t.jsxs("div",{className:"flex flex-col gap-8",children:[t.jsx(j,{color:l.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:n}),t.jsx(R,{external:!0,href:i,variant:"link",width:"max-content",children:"Download now"})]})]}),t.jsx(Bt,{icon:o})]})},Er=a.dt.button`
|
|
2052
2049
|
${({theme:e})=>`
|
|
2053
2050
|
align-items: center;
|
|
2054
2051
|
border-left: 3px solid transparent;
|
|
@@ -2091,7 +2088,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2091
2088
|
}
|
|
2092
2089
|
}
|
|
2093
2090
|
`}
|
|
2094
|
-
`,
|
|
2091
|
+
`,Dr=a.dt.div`
|
|
2095
2092
|
${({theme:e})=>`
|
|
2096
2093
|
align-items: center;
|
|
2097
2094
|
background-color: transparent;
|
|
@@ -2121,7 +2118,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2121
2118
|
color: ${e.palette.gray[800]};
|
|
2122
2119
|
}
|
|
2123
2120
|
`}
|
|
2124
|
-
`,
|
|
2121
|
+
`,Fr=a.dt.div`
|
|
2125
2122
|
${({theme:e})=>`
|
|
2126
2123
|
background-color: ${e.palette.white};
|
|
2127
2124
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
@@ -2136,7 +2133,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2136
2133
|
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
2137
2134
|
}
|
|
2138
2135
|
`}
|
|
2139
|
-
`,
|
|
2136
|
+
`,Pr=a.dt.div`
|
|
2140
2137
|
${({theme:e})=>`
|
|
2141
2138
|
align-items: flex-start;
|
|
2142
2139
|
cursor: pointer;
|
|
@@ -2158,11 +2155,11 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2158
2155
|
}
|
|
2159
2156
|
}
|
|
2160
2157
|
`}
|
|
2161
|
-
`,Ot=({disabled:e=!1,mode:n,onClick:i,text:o})=>t.jsx(Er,{className:`${e&&"disabled"} ${n}`,disabled:e,onClick:i,children:t.jsx(j,{color:"inherit",size:"sm",sizeSm:"xs",children:o})}),
|
|
2158
|
+
`,Ot=({disabled:e=!1,mode:n,onClick:i,text:o})=>t.jsx(Er,{className:`${e&&"disabled"} ${n}`,disabled:e,onClick:i,children:t.jsx(j,{color:"inherit",size:"sm",sizeSm:"xs",children:o})}),Wr=[{text:"EN"},{text:"ES"}],Mr=({items:e,handleClick:n,mode:i="light"})=>{const o=e??Wr,[r,s]=g.useState(o[0].text),l=g.useCallback(c=>()=>{n(c.text),s(c.text)},[n]);return t.jsxs(Pr,{children:[t.jsxs(Dr,{className:i,children:[t.jsx(v,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),r]}),t.jsx(Fr,{children:o.map((c,d)=>t.jsx(Ot,{disabled:c.disabled,mode:i,onClick:l(c),text:c.text},`${c.text}_${d}`))})]})},Lr=a.dt.div.attrs({className:"flex flex-wrap justify-center pv3 w-100"})``,Br=a.dt.div.attrs({className:"flex flex-wrap items-center justify-start mb2"})`
|
|
2162
2159
|
gap: 12px;
|
|
2163
|
-
`,
|
|
2160
|
+
`,Or=a.dt.div.attrs({className:"flex flex-wrap items-center justify-end mb2"})`
|
|
2164
2161
|
gap: 8px;
|
|
2165
|
-
|
|
2162
|
+
`,ye=e=>e===void 0?"flex-grow: 1;":`width: calc(${e}00% / var(--cols));`,Ar=a.dt.div.attrs({className:"comp-col"})`
|
|
2166
2163
|
word-break: break-word;
|
|
2167
2164
|
|
|
2168
2165
|
${({$width:e=null})=>e===null?"":`width: ${e}`};
|
|
@@ -2170,23 +2167,23 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2170
2167
|
${({$paddingTop:e})=>`padding-top: ${e??0}px;`}
|
|
2171
2168
|
|
|
2172
2169
|
@media (width <= 768px) {
|
|
2173
|
-
${({$sm:e})
|
|
2170
|
+
${({$sm:e})=>ye(e)}
|
|
2174
2171
|
}
|
|
2175
2172
|
|
|
2176
2173
|
@media (width >= 768px) and (width <= 992px) {
|
|
2177
|
-
${({$md:e})
|
|
2174
|
+
${({$md:e})=>ye(e)}
|
|
2178
2175
|
}
|
|
2179
2176
|
|
|
2180
2177
|
@media (width >= 992px) {
|
|
2181
|
-
${({$lg:e})
|
|
2178
|
+
${({$lg:e})=>ye(e)}
|
|
2182
2179
|
}
|
|
2183
2180
|
|
|
2184
|
-
${({$xl:e})=>a.isNumber(e)?`@media (min-width: 1200px) { ${
|
|
2181
|
+
${({$xl:e})=>a.isNumber(e)?`@media (min-width: 1200px) { ${ye(e)} }`:""}
|
|
2185
2182
|
|
|
2186
2183
|
> .comp-card {
|
|
2187
2184
|
height: 100%;
|
|
2188
2185
|
}
|
|
2189
|
-
`,
|
|
2186
|
+
`,_r=({children:e,xl:n,lg:i,md:o,sm:r,paddingTop:s,width:l})=>t.jsx(Ar,{$lg:i,$md:o,$paddingTop:s,$sm:r,$width:l,$xl:n,children:e}),Vr=a.dt.div.attrs({className:"comp-gap"})`
|
|
2190
2187
|
${({$disp:e="flex",$mh:n=4,$mv:i=4})=>`
|
|
2191
2188
|
align-items: center;
|
|
2192
2189
|
display: ${e};
|
|
@@ -2196,7 +2193,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2196
2193
|
margin: ${i}px ${n}px;
|
|
2197
2194
|
}
|
|
2198
2195
|
`}
|
|
2199
|
-
`,
|
|
2196
|
+
`,Hr=({children:e,disp:n,mh:i,mv:o})=>t.jsx(Vr,{$disp:n,$mh:i,$mv:o,children:e}),Gr=a.dt.div.attrs({className:"comp-row flex flex-row flex-wrap"})`
|
|
2200
2197
|
${({$align:e="stretch",$cols:n=100,$colsPadding:i=6,$justify:o="start"})=>`
|
|
2201
2198
|
align-items: ${e};
|
|
2202
2199
|
justify-content: ${o};
|
|
@@ -2214,7 +2211,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2214
2211
|
padding: ${i}px;
|
|
2215
2212
|
}
|
|
2216
2213
|
`}
|
|
2217
|
-
`,
|
|
2214
|
+
`,Ur=({align:e,children:n,cols:i,colsPadding:o,justify:r})=>t.jsx(Gr,{$align:e,$cols:i,$colsPadding:o,$justify:r,children:n}),Yr=a.dt.span`
|
|
2218
2215
|
${({theme:e,$bgColor:n=e.palette.secondary[500],$txtDecoration:i="none"})=>`
|
|
2219
2216
|
background-color: ${n};
|
|
2220
2217
|
border-radius: 5px;
|
|
@@ -2223,14 +2220,14 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2223
2220
|
padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
|
|
2224
2221
|
text-decoration: ${i}
|
|
2225
2222
|
`}
|
|
2226
|
-
`,
|
|
2223
|
+
`,Kr=({bgColor:e,children:n,txtDecoration:i,ml:o=1})=>t.jsx(Yr,{$bgColor:e,$txtDecoration:i,className:`ml-${o}`,children:n}),qr={lg:"56",md:"30",sm:"12"},{getVariant:Xr}=H(e=>({red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),Zr=a.mt`
|
|
2227
2224
|
0% {
|
|
2228
2225
|
transform: rotateZ(0deg);
|
|
2229
2226
|
}
|
|
2230
2227
|
100% {
|
|
2231
2228
|
transform: rotateZ(360deg)
|
|
2232
2229
|
}
|
|
2233
|
-
`,
|
|
2230
|
+
`,Jr=a.mt`
|
|
2234
2231
|
0%,
|
|
2235
2232
|
25% {
|
|
2236
2233
|
stroke-dashoffset: 280;
|
|
@@ -2247,16 +2244,16 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2247
2244
|
stroke-dashoffset: 280;
|
|
2248
2245
|
transform: rotate(360deg);
|
|
2249
2246
|
}
|
|
2250
|
-
`,
|
|
2247
|
+
`,Qr=a.dt.svg`
|
|
2251
2248
|
${({$size:e="md"})=>a.lt`
|
|
2252
|
-
animation: ${
|
|
2249
|
+
animation: ${Zr} 2s linear infinite;
|
|
2253
2250
|
animation-timing-function: linear;
|
|
2254
2251
|
display: inline-block;
|
|
2255
|
-
width: ${
|
|
2252
|
+
width: ${qr[e]}px;
|
|
2256
2253
|
`}
|
|
2257
|
-
`,
|
|
2254
|
+
`,ea=a.dt.circle`
|
|
2258
2255
|
${({theme:e,$color:n="red"})=>a.lt`
|
|
2259
|
-
animation: 1.4s ease-in-out infinite both ${
|
|
2256
|
+
animation: 1.4s ease-in-out infinite both ${Jr};
|
|
2260
2257
|
display: block;
|
|
2261
2258
|
fill: transparent;
|
|
2262
2259
|
stroke-linecap: round;
|
|
@@ -2265,9 +2262,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2265
2262
|
stroke-width: 10px;
|
|
2266
2263
|
transform-origin: 50% 50%;
|
|
2267
2264
|
|
|
2268
|
-
${
|
|
2265
|
+
${Xr(e,n)}
|
|
2269
2266
|
`}
|
|
2270
|
-
`,
|
|
2267
|
+
`,ta=a.dt.circle`
|
|
2271
2268
|
display: block;
|
|
2272
2269
|
fill: transparent;
|
|
2273
2270
|
stroke: ${({theme:e})=>e.palette.gray[200]};
|
|
@@ -2275,7 +2272,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2275
2272
|
stroke-width: 10px;
|
|
2276
2273
|
transform-origin: 50% 50%;
|
|
2277
2274
|
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2278
|
-
`,
|
|
2275
|
+
`,na=({color:e="red",label:n,size:i})=>{const o=a.nt();return t.jsxs(b,{alignItems:"center",display:"flex",children:[t.jsxs(Qr,{$size:i,viewBox:"0 0 100 100",children:[t.jsx(ta,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(ea,{$color:e,cx:"50",cy:"50",r:"45"})]}),n&&t.jsx(j,{color:e==="red"?o.palette.gray[700]:o.palette.white,ml:.5,size:"sm",children:n})]})},ia=a.dt.div`
|
|
2279
2276
|
display: flex;
|
|
2280
2277
|
height: 80px;
|
|
2281
2278
|
max-width: 1440px;
|
|
@@ -2305,7 +2302,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2305
2302
|
);
|
|
2306
2303
|
right: 0;
|
|
2307
2304
|
}
|
|
2308
|
-
`,
|
|
2305
|
+
`,ra=a.dt.div`
|
|
2309
2306
|
display: flex;
|
|
2310
2307
|
gap: 40px;
|
|
2311
2308
|
animation: clients-animation 50s linear infinite;
|
|
@@ -2320,7 +2317,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2320
2317
|
transform: translateX(calc(-180px * 15));
|
|
2321
2318
|
}
|
|
2322
2319
|
}
|
|
2323
|
-
`,
|
|
2320
|
+
`,aa=["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"],oa=({fusion:e=!1,logos:n=aa})=>t.jsxs(ia,{children:[e&&t.jsx(Je,{className:"left"}),t.jsx(ra,{children:[...n,...n].map((i,o)=>t.jsx(V,{alt:`${i}-${o}`,height:"80px",plugins:[a.placeholder()],publicId:i,width:"140px"},`${i}-${o}`))}),e&&t.jsx(Je,{className:"right"})]}),sa={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},la=({publicId:e,variant:n})=>t.jsx(b,{...sa[n],children:t.jsx(V,{alt:"logo",publicId:e})}),ca=({children:e,commitSha:n,commitShortSha:i,parentElement:o,userInfo:r,setVisibility:s})=>{const l=a.nt(),{userName:c,email:d,phone:p,userRole:u}=r;return J(o,()=>{s(!1)}),t.jsxs(zt,{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(j,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(j,{color:l.palette.gray[400],size:"sm",children:d}),a.lodashExports.isUndefined(p)?void 0:t.jsx(j,{color:l.palette.gray[400],size:"sm",children:p})]}),t.jsx(b,{children:t.jsx(Z,{tagLabel:u,variant:"role"})})]})}),t.jsx(Q,{}),e,t.jsx(Q,{}),t.jsx("li",{className:"commit-info",children:t.jsx(X,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${n}`,iconPosition:"hidden",children:t.jsx(j,{color:l.palette.gray[400],size:"xs",children:`commit : ${i}`})})})]})},da=a.dt.button`
|
|
2324
2321
|
align-items: center;
|
|
2325
2322
|
background-color: transparent;
|
|
2326
2323
|
border: unset;
|
|
@@ -2331,24 +2328,24 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2331
2328
|
padding: 0;
|
|
2332
2329
|
|
|
2333
2330
|
&:hover p {
|
|
2334
|
-
color: ${
|
|
2331
|
+
color: ${C.palette.primary[200]};
|
|
2335
2332
|
}
|
|
2336
2333
|
|
|
2337
2334
|
&:hover span {
|
|
2338
|
-
color: ${
|
|
2335
|
+
color: ${C.palette.primary[200]};
|
|
2339
2336
|
}
|
|
2340
|
-
`,
|
|
2337
|
+
`,pa=e=>e==="platform"?{normal:"sm",small:void 0}:{normal:"md",small:"sm"},ga=({message:e,onClickButton:n,buttonText:i,buttonFontWeight:o="regular",icon:r,onClose:s,variant:l="web"})=>{const c=a.nt(),[d,p]=g.useState(!0),u=g.useCallback(()=>{p(!1),s==null||s()},[s]),f=pa(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(j,{color:c.palette.white,display:"inline",size:f.normal,sizeSm:f.small,children:e}):e}),n?t.jsxs(da,{onClick:n,children:[t.jsx(j,{color:c.palette.white,fontWeight:o,size:f.normal,sizeSm:f.small,textDecoration:"underline",children:i}),t.jsx(v,{icon:r??"arrow-right",iconColor:c.palette.white,iconSize:"xs",iconType:o==="bold"?"fa-regular":"fa-light"})]}):void 0]}),t.jsx(v,{clickable:!0,hoverColor:c.palette.primary[200],icon:"close",iconColor:c.palette.white,iconSize:"xs",iconType:"fa-light",onClick:u})]})},ua=a.dt(Ne)`
|
|
2341
2338
|
margin-top: 10px;
|
|
2342
2339
|
border: 1px solid ${({theme:e})=>e.palette.gray[300]};
|
|
2343
2340
|
border-radius: 4px;
|
|
2344
2341
|
min-width: unset;
|
|
2345
|
-
`,At=({items:e,onReorder:n,title:i,description:o})=>t.jsxs(a.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
|
+
`,At=({items:e,onReorder:n,title:i,description:o})=>t.jsxs(a.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(Z,{priority:"high",tagLabel:String(e.length),variant:"error"})]}),t.jsx(j,{size:"sm",children:o}),e.map(r=>t.jsx(a.ReorderItem,{as:"div",dragListener:!r.disabled,item:r.value,value:r,children:t.jsx(ua,{...r,icon:"grid-horizontal",rightIcon:r.disabled?"lock":"close",children:r.value})},r.value))]}),xa=({_portal:e=!0,title:n,modalRef:i,distribution:o})=>{const r=a.nt(),s=g.useCallback(c=>{const{checked:d,value:p}=c.target,u=i.columnVisibility.map(f=>f.value===p?{...f,checked:d}:f);i.setColumnVisibility(u)},[i]),l=t.jsxs(Ve,{$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(Q,{mb:0,mt:0}),t.jsxs(b,{display:"flex",px:1.25,width:"100%",children:[t.jsx(It,{columns:i.columnVisibility,formId:"columns-visibility",onChangeHandler:s,variant:o}),t.jsx(b,{borderLeft:`2px solid ${r.palette.gray[100]}`,mx:1.25}),t.jsx(b,{py:1.25,width:"45%",children:t.jsx(At,{description:"Drag and drop to reorder columns",items:i.columnsOrder,onReorder:i.setColumnsOrder,title:"Columns"})})]}),t.jsx(Q,{mb:0,mt:0}),t.jsxs(b,{display:"flex",justify:"space-between",px:1.25,py:1.25,children:[t.jsx(R,{disabled:!i.hasChanged,form:"columns-visibility",id:"columns-modal-cancel",justify:"center",onClick:i.resetToDefault,type:"reset",variant:"tertiary",children:"Reset to Default"}),t.jsx(R,{id:"columns-modal-submit",justify:"center",onClick:i.close,variant:"primary",children:"Save Changes"})]})]});return e&&i.isOpen?ee.createPortal(l,document.getElementById("portals")??document.body):i.isOpen?l:t.jsx("div",{})},fa=a.dt(Ne)`
|
|
2346
2343
|
padding: 7px 8px;
|
|
2347
2344
|
|
|
2348
2345
|
svg.fa-check {
|
|
2349
2346
|
border-radius: 2px;
|
|
2350
2347
|
}
|
|
2351
|
-
`,
|
|
2348
|
+
`,ha=({options:e,onSubmit:n,id:i})=>{const o=e.filter(c=>c.checked).map(c=>c.value),{register:r,handleSubmit:s}=a.useForm({defaultValues:{checkbox:o}}),l=g.useCallback(c=>{n&&n(c.checkbox)},[n]);return t.jsxs(Ve,{$size:"fixed",children:[t.jsx(oe,{}),t.jsxs("form",{id:i,onSubmit:s(l),style:{overflowY:"auto"},children:[e.map((c,d)=>{const p=`li-checkbox${d}`;return t.jsx(fa,{value:p,width:"content",children:t.jsx(Te,{...r("checkbox"),label:c.label,value:c.value})},p)}),t.jsx(R,{mt:1,type:"submit",children:"Apply"})]})]})},ba=a.dt.div`
|
|
2352
2349
|
${({theme:e,$variant:n})=>`
|
|
2353
2350
|
background: ${e.palette.white};
|
|
2354
2351
|
border: 1px solid ${e.palette.gray[200]};
|
|
@@ -2367,7 +2364,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2367
2364
|
right: 16px;
|
|
2368
2365
|
}
|
|
2369
2366
|
`}
|
|
2370
|
-
|
|
2367
|
+
`,$a=a.dt.div`
|
|
2371
2368
|
${({theme:e,$variant:n})=>`
|
|
2372
2369
|
height: ${e.spacing[2.5]};
|
|
2373
2370
|
width: ${e.spacing[2.5]};
|
|
@@ -2398,7 +2395,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2398
2395
|
color: ${e.palette[n][500]};
|
|
2399
2396
|
}
|
|
2400
2397
|
`}
|
|
2401
|
-
|
|
2398
|
+
`,ya=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",ma=({description:e,onClose:n,title:i,variant:o})=>{const r=a.nt(),s=g.useCallback(()=>{n==null||n()},[n]);return t.jsxs(ba,{$variant:o,className:`notification notification__${o}`,role:"alertdialog",children:[t.jsxs($a,{$variant:o,children:[t.jsx(v,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(v,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(v,{icon:ya(o),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(j,{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:s,px:.125,py:.125,variant:"ghost"})]})},wa=a.dt.div`
|
|
2402
2399
|
width: fit-content;
|
|
2403
2400
|
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2404
2401
|
border-radius: 4px;
|
|
@@ -2411,7 +2408,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2411
2408
|
align-items: center;
|
|
2412
2409
|
justify-content: center;
|
|
2413
2410
|
padding: 0.5em;
|
|
2414
|
-
`,
|
|
2411
|
+
`,ja=a.dt.input`
|
|
2415
2412
|
width: 4em;
|
|
2416
2413
|
appearance: textfield;
|
|
2417
2414
|
border-style: none;
|
|
@@ -2431,7 +2428,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2431
2428
|
&::-webkit-inner-spin-button {
|
|
2432
2429
|
opacity: 1;
|
|
2433
2430
|
}
|
|
2434
|
-
`,
|
|
2431
|
+
`,ka=g.forwardRef(function({autoUpdate:n=!1,decimalPlaces:i=0,defaultValue:o=0,max:r,min:s,name:l,onEnter:c,tooltipMessage:d,...p},u){const f=i<0?0:i,[x,h]=g.useState(Number(o).toFixed(f)),$=g.useCallback(y=>{const k=a.lodashExports.toNumber(y.target.value);y.target.value.endsWith(".")?h(y.target.value):k>=Number(s)&&k<=Number(r)&&(h(String(k)),n&&c(a.lodashExports.toNumber(k.toFixed(f)))),y.stopPropagation()},[n,f,r,s,c]),w=g.useCallback(y=>{y.currentTarget.contains(y.relatedTarget)||h(Number(o).toFixed(f)),y.stopPropagation()},[f,o]),m=g.useCallback(y=>{y.stopPropagation(),y.key==="Enter"&&!a.lodashExports.isEmpty(y.currentTarget.value)&&c(a.lodashExports.toNumber(y.currentTarget.value))},[c]);return t.jsx(wa,{onBlur:w,tabIndex:-1,children:t.jsx(G,{id:"numberInputTooltip",tip:d,children:t.jsx(ja,{...p,"aria-label":l,"aria-valuemax":Number(r),"aria-valuemin":Number(s),"aria-valuenow":Number(x),max:r,min:s,name:l,onChange:$,onKeyUp:m,ref:u,step:10**-f,type:"number",value:x})})})}),Ca={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Le=({icon:e,label:n,onClick:i,onlyLabel:o=!1,provider:r="GitLab"})=>{const s=a.nt();return t.jsxs(b,{alignItems:"center",bgColorHover:s.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:[o?!1:t.jsx(b,{height:"24px",width:"24px",children:e===void 0?t.jsx(V,{alt:`${r} Logo`,height:"100%",publicId:Ca[r],width:"100%"}):t.jsx(v,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx(b,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(j,{color:s.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:o?"break-spaces":"nowrap",wordWrap:"unset",children:n??r})})]})},va=({align:e="end",buttonLabel:n="Add Credential",children:i,id:o,manualOption:r,providers:s})=>{const l=a.nt(),[c,d]=g.useState(!1),p=g.useRef(null);J(p.current,()=>{d(!1)},!0);const u=g.useCallback(h=>{r==null||r.onClick(h),d(!1)},[r]),f=g.useCallback(()=>{d(h=>!h)},[d]),x=g.useCallback(h=>$=>{var w;(w=s[h])==null||w.onClick($),d(!1)},[s]);return t.jsxs(b,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(R,{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:o,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:c?"visible":"hidden",zIndex:10,children:[Object.keys(s).map(h=>t.jsx(Le,{onClick:x(h),provider:h},h)),r===void 0?void 0:t.jsx(Le,{icon:"square-plus",label:r.label??"Add manually",onClick:u}),i]})]})},_t=()=>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(j,{bgGradient:C.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),Sa=a.dt.div`
|
|
2435
2432
|
${({className:e,theme:n})=>`
|
|
2436
2433
|
align-items: flex-start;
|
|
2437
2434
|
border-radius: ${n.spacing[1]};
|
|
@@ -2496,8 +2493,8 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2496
2493
|
width: 320px;
|
|
2497
2494
|
}
|
|
2498
2495
|
`}
|
|
2499
|
-
`;const
|
|
2500
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},
|
|
2496
|
+
`;const za={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
|
|
2497
|
+
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},Ia=({description:e,onClick:n,plan:i})=>{const{title:o,description:r,benefits:s,buttonText:l}=za[i],c=e??r;return t.jsxs(Sa,{className:i,children:[t.jsxs(b,{display:"flex",flexDirection:"column",gap:.25,pt:i==="essential"?1.75:0,children:[i==="advanced"&&t.jsx(_t,{}),t.jsx(L,{color:C.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:o}),t.jsx(j,{color:C.palette.gray[400],fontWeight:"semibold",pb:i==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:s})]}),t.jsx(j,{lineSpacing:1.5,lineSpacingSm:1.25,pb:i==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(R,{onClick:n,variant:"primary",children:l})]})},Vt=({description:e="",highlightDescription:n=""})=>{const i=a.nt(),o=typeof n=="string",r=o?"":new RegExp(`(${n.join("|")})`,"u");return n.length>0?t.jsx(j,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:o?t.jsxs(g.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((s,l)=>n.includes(s)?t.jsx(we,{color:i.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:s},`${l+1}-bold`):s)}):t.jsx(j,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},Ta=({_portal:e=!1,cancelButton:n,darkBackground:i=!1,children:o,confirmButton:r,container:s,description:l,highlightDescription:c="",image:d,maxWidth:p,title:u,titleColor:f})=>{const x=a.nt(),{alt:h,src:$,width:w="77px",height:m="77px"}=d,y=g.useCallback(()=>{n==null||n.onClick()},[n]),k=g.useCallback(()=>{r==null||r.onClick()},[r]),I=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:p,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(V,{alt:h,height:m,publicId:$,width:w})}),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(Vt,{description:l,highlightDescription:c})]})]}),o&&t.jsx(b,{mb:1,scroll:"y",children:t.jsx(b,{height:"100%",children:o})}),t.jsxs(b,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[a.lodashExports.isObject(r)?t.jsx(R,{onClick:k,variant:(r==null?void 0:r.variant)??"primary",children:r==null?void 0:r.text},r==null?void 0:r.key):void 0,a.lodashExports.isObject(n)?t.jsx(R,{onClick:y,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?ee.createPortal(I,s??document.body):I},Na=a.dt.div`
|
|
2501
2498
|
${({theme:e})=>`
|
|
2502
2499
|
height: ${e.spacing[1]};
|
|
2503
2500
|
width: ${e.spacing[1]};
|
|
@@ -2528,7 +2525,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2528
2525
|
font-size: ${e.spacing[.5]};
|
|
2529
2526
|
}
|
|
2530
2527
|
`}
|
|
2531
|
-
`,Ht=({margin:e,onClick:n,text:i})=>{const o=a.nt(),r=t.jsxs(
|
|
2528
|
+
`,Ht=({margin:e,onClick:n,text:i})=>{const o=a.nt(),r=t.jsxs(Na,{children:[t.jsx(v,{icon:"circle",iconClass:"ellipse-1",iconSize:"xs"}),t.jsx(v,{icon:"circle",iconClass:"ellipse-2",iconSize:"xs"}),t.jsx(v,{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:o.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[r,t.jsx(j,{color:o.palette.warning[500],display:"inline",ml:.25,size:"xs",children:i})]})}):t.jsx(b,{display:"inline-block",mr:e,onClick:n,children:r})},Ra=({score:e})=>{const n=a.nt(),i=e<=33?"priority-bars-low":"priority-bars-medium",o=e>66||e===0?"priority-bars-high":i;return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(v,{icon:o,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(j,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:Ea}=H(e=>({compliance:`
|
|
2532
2529
|
display: inline-flex;
|
|
2533
2530
|
|
|
2534
2531
|
&.horizontal {
|
|
@@ -2586,7 +2583,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2586
2583
|
.progress-bar {
|
|
2587
2584
|
background-color: ${e.palette.primary[500]};
|
|
2588
2585
|
}
|
|
2589
|
-
`})),
|
|
2586
|
+
`})),Da=(e,n)=>n<50?e.palette.error[500]:n<80?e.palette.warning[500]:e.palette.success[500],Fa=a.dt.div`
|
|
2590
2587
|
${({theme:e,$minWidth:n,$orientation:i,$rounded:o,$variant:r})=>`
|
|
2591
2588
|
background-color: ${e.palette.gray[100]};
|
|
2592
2589
|
border-radius: ${o?"100px":"unset"};
|
|
@@ -2596,7 +2593,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2596
2593
|
${Ea(e,r)}
|
|
2597
2594
|
|
|
2598
2595
|
`}
|
|
2599
|
-
`,
|
|
2596
|
+
`,Pa=a.dt.div`
|
|
2600
2597
|
${({theme:e,$percentage:n,$rounded:i,$variant:o})=>`
|
|
2601
2598
|
display: inline-flex;
|
|
2602
2599
|
width: ${n}%;
|
|
@@ -2606,9 +2603,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2606
2603
|
border-radius: ${i?"100px":"unset"};
|
|
2607
2604
|
border-end-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2608
2605
|
border-start-end-radius: ${i&&n<100?"0":"inherit"};
|
|
2609
|
-
background-color: ${o==="compliance"?
|
|
2606
|
+
background-color: ${o==="compliance"?Da(e,n):"inherit"};
|
|
2610
2607
|
`}
|
|
2611
|
-
`,
|
|
2608
|
+
`,Wa=({minWidth:e=100,percentage:n,percentageLocation:i="right",showPercentage:o=!1,orientation:r="horizontal",rounded:s=!0,variant:l="default"})=>{const c=o&&i==="left",d=o?t.jsx(b,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(j,{ml:.5,mr:c?.5:0,size:"sm",children:`${n}%`})}):null,p=t.jsx(Fa,{$minWidth:e,$orientation:r,$rounded:s,$variant:l,className:r,children:t.jsx(Pa,{$percentage:n,$rounded:s,$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:[p,d]})},Ma=a.dt(te)`
|
|
2612
2609
|
animation: ${({$animationTime:e})=>`progress-bar ${e}s ease-in-out`};
|
|
2613
2610
|
animation-fill-mode: both;
|
|
2614
2611
|
|
|
@@ -2621,12 +2618,12 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2621
2618
|
width: 100%;
|
|
2622
2619
|
}
|
|
2623
2620
|
}
|
|
2624
|
-
`,
|
|
2621
|
+
`,La=e=>e*1e3/100,Ba=({progressTime:e=10,onComplete:n})=>{const i=a.nt(),o=100,[r,s]=g.useState(0);return g.useEffect(()=>{r===o&&(n==null||n())},[r,n]),g.useEffect(()=>{const l=setInterval(()=>{s(c=>c===o?0:c+1)},La(e));return()=>{clearInterval(l)}},[r,e]),t.jsx(b,{bgColor:i.palette.gray[200],height:"4px",children:t.jsx(Ma,{$animationTime:e,bgGradient:i.palette.gradients["01"],height:"100%",width:`${r}%`})})},Oa=a.dt.div.attrs({className:"comp-scroll-up"})`
|
|
2625
2622
|
bottom: 15px;
|
|
2626
2623
|
position: fixed;
|
|
2627
2624
|
right: 140px;
|
|
2628
2625
|
z-index: 100;
|
|
2629
|
-
`,
|
|
2626
|
+
`,Aa=({scrollerId:e="dashboard",visibleAt:n=500})=>{const[i,o]=g.useState(!1),[r,s]=g.useState(null);g.useEffect(()=>{s(document.getElementById(e)),r==null||r.addEventListener("scroll",()=>{o(r.scrollTop>n)})},[r,e,n]);const l=g.useCallback(()=>{r==null||r.scrollTo({behavior:"smooth",top:0})},[r]);return i?t.jsx(Oa,{children:t.jsx(O,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},_a=a.dt.a`
|
|
2630
2627
|
${({theme:e})=>`
|
|
2631
2628
|
align-items: center;
|
|
2632
2629
|
display: flex;
|
|
@@ -2671,7 +2668,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2671
2668
|
width: 270px;
|
|
2672
2669
|
}
|
|
2673
2670
|
`}
|
|
2674
|
-
`,
|
|
2671
|
+
`,Va=a.dt.div.attrs({className:"icon-wrap"})`
|
|
2675
2672
|
${({theme:e})=>`
|
|
2676
2673
|
align-items: center;
|
|
2677
2674
|
background: ${e.palette.primary[25]};
|
|
@@ -2686,7 +2683,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2686
2683
|
font-size: 20px;
|
|
2687
2684
|
}
|
|
2688
2685
|
`}
|
|
2689
|
-
`,
|
|
2686
|
+
`,Ha=a.dt.div`
|
|
2690
2687
|
${({theme:e})=>`
|
|
2691
2688
|
align-items: flex-start;
|
|
2692
2689
|
display: flex;
|
|
@@ -2718,7 +2715,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2718
2715
|
width: 320px;
|
|
2719
2716
|
}
|
|
2720
2717
|
`}
|
|
2721
|
-
`,
|
|
2718
|
+
`,Ga=a.dt.form`
|
|
2722
2719
|
${({theme:e})=>`
|
|
2723
2720
|
align-items: center;
|
|
2724
2721
|
display: flex;
|
|
@@ -2727,7 +2724,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2727
2724
|
padding: ${e.spacing[1]} ${e.spacing[1.5]};
|
|
2728
2725
|
width: 100%;
|
|
2729
2726
|
`}
|
|
2730
|
-
`,
|
|
2727
|
+
`,Ua=a.dt.input`
|
|
2731
2728
|
${({theme:e})=>`
|
|
2732
2729
|
flex: 1 0 0;
|
|
2733
2730
|
border: none;
|
|
@@ -2753,7 +2750,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2753
2750
|
font-size: ${e.typography.text.sm};
|
|
2754
2751
|
}
|
|
2755
2752
|
`}
|
|
2756
|
-
`,
|
|
2753
|
+
`,Ya=a.dt.button`
|
|
2757
2754
|
${({theme:e})=>`
|
|
2758
2755
|
align-items: center;
|
|
2759
2756
|
border-radius: ${e.spacing[.5]};
|
|
@@ -2773,7 +2770,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2773
2770
|
background-color: ${e.palette.gray[100]};
|
|
2774
2771
|
}
|
|
2775
2772
|
`}
|
|
2776
|
-
`,
|
|
2773
|
+
`,Re=a.dt.div.attrs({className:"dropdown"})`
|
|
2777
2774
|
${({theme:e,$empty:n=!1,$showHits:i=!1})=>`
|
|
2778
2775
|
align-items: flex-start;
|
|
2779
2776
|
align-self: stretch;
|
|
@@ -2816,7 +2813,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2816
2813
|
height: ${e.spacing[.5]};
|
|
2817
2814
|
}
|
|
2818
2815
|
`}
|
|
2819
|
-
`,
|
|
2816
|
+
`,me=({hit:e,icon:n="infinity",showIcon:i=!1})=>{const{slug:o,title:r}=e,s=String(o).startsWith("/pages/")?String(o).replace("/pages/","/"):String(o);return t.jsxs(_a,{href:s,rel:"nofollow noopener noreferrer",children:[i&&t.jsx(Va,{children:t.jsx(v,{icon:n,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),t.jsx(j,{color:C.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(r)})]})},Ka=[{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"}],Qe={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},qa=({items:e,placeholder:n="Search",refine:i,query:o})=>{const[r,s]=g.useState(o),[l,c]=g.useState(!1),d=g.useRef(null),p=g.useRef(null),u=r.length>=2,f=g.useCallback(y=>{s(y),i(y)},[i]),x=g.useCallback(()=>{f("")},[f]),h=g.useCallback(()=>{c(!0)},[]),$=g.useCallback(y=>{f(y.currentTarget.value)},[f]),w=g.useCallback(y=>{y.preventDefault(),y.stopPropagation(),x(),p.current&&p.current.focus()},[x]),m=g.useCallback(y=>{y.preventDefault(),y.stopPropagation(),p.current&&p.current.blur()},[]);return J(d.current,()=>{x(),c(!1)},!0),t.jsxs(Ha,{ref:d,children:[t.jsxs(Ga,{action:"",noValidate:!0,onReset:w,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(v,{icon:"magnifying-glass",iconSize:"sm",iconType:"fa-light"})}),t.jsx(Ua,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:$,onFocus:h,placeholder:n,ref:p,spellCheck:!1,type:"search",value:r})]}),u&&t.jsx(Ya,{type:"reset",children:t.jsx(v,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&r.length<2&&t.jsxs(Re,{children:[t.jsx(j,{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:Ka.map(({hit:y,icon:k},I)=>t.jsx(me,{hit:y,icon:k,showIcon:!0},`${k}-${I}`))}),t.jsx(j,{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:Qe.hit,icon:Qe.icon,showIcon:!0})]}),u&&e.length>0&&t.jsxs(Re,{$showHits:u,children:[t.jsx(j,{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(y=>t.jsx(me,{hit:y},y.objectID))})]}),u&&e.length===0&&t.jsx(Re,{$empty:e.length===0,children:t.jsxs("div",{className:"items-center flex flex-col gap-4 py-[90px] w-full",children:[t.jsx(V,{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(j,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${r}” did not match.`,t.jsx("br",{}),"Please try again."]}),t.jsx(R,{onClick:x,variant:"secondary",children:"Clear search"})]})})]})},Xa={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]}},Za=({textL:e,textR:n,variant:i})=>{const o=a.nt(),{bgColor:r,colorL:s,colorR:l}=Xa[i];return t.jsxs(b,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(b,{alignItems:"center",bgColor:o.palette.white,border:`1px solid ${r}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(j,{color:s,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(j,{color:l,size:"xs",children:n})})]})},Ja=(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]},o={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:a.lodashExports.capitalize(e.charAt(0)),iconTextColor:n<1?r.none:r[e],textColor:n<1?o.disabled:o.enabled}},re=({variant:e,value:n})=>{const{iconColor:i,iconText:o,iconTextColor:r,textColor:s}=Ja(e,n),l=a.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(G,{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(j,{color:r,size:"sm",textAlign:"center",children:o})})}),t.jsx(j,{color:s,size:"sm",children:n})]})},Qa=({critical:e,high:n,medium:i,low:o})=>t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(re,{value:e,variant:"critical"}),t.jsx(re,{value:n,variant:"high"}),t.jsx(re,{value:i,variant:"medium"}),t.jsx(re,{value:o,variant:"low"})]}),eo=a.dt.div`
|
|
2820
2817
|
${({theme:e})=>`
|
|
2821
2818
|
border-radius: ${e.spacing[.25]};
|
|
2822
2819
|
cursor: pointer;
|
|
@@ -2834,7 +2831,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2834
2831
|
display: block;
|
|
2835
2832
|
}
|
|
2836
2833
|
`}
|
|
2837
|
-
`,
|
|
2834
|
+
`,to=({visibleElement:e,hiddenElement:n})=>t.jsxs(eo,{children:[e,t.jsx(b,{display:"none",position:"absolute",top:"100%",zIndex:10,children:n})]}),Gt=({customBadge:e=void 0,description:n,icon:i,onClick:o,requiresUpgrade:r=!1,title:s})=>{const l=a.nt();return t.jsxs(b,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:o,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(v,{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(j,{color:l.palette.gray[800],size:"sm",children:s}),r?t.jsx(Ht,{text:"Upgrade"}):void 0,e]}),t.jsx(j,{color:l.palette.gray[400],size:"xs",children:n})]})]})},no=a.dt(a.m.div)`
|
|
2838
2835
|
${({theme:e})=>`
|
|
2839
2836
|
background-color: ${e.palette.white};
|
|
2840
2837
|
box-shadow: ${e.shadows.lg};
|
|
@@ -2857,7 +2854,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2857
2854
|
height: auto;
|
|
2858
2855
|
}
|
|
2859
2856
|
`}
|
|
2860
|
-
`,
|
|
2857
|
+
`,io=({children:e,closeIconId:n="close-menu",isOpen:i,items:o,onClose:r,primaryButtonText:s,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:p})=>{const u=a.nt(),f=g.useRef(null),x=g.useCallback(h=>()=>{h(),r()},[r]);return J(f.current,()=>{r()},!0),t.jsx(a.LazyMotion,{features:a.domAnimation,children:t.jsx(no,{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(j,{color:u.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),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:[(o??[]).map(({customBadge:h,description:$,icon:w,onClick:m,requiresUpgrade:y,title:k})=>t.jsx(Gt,{customBadge:h,description:$,icon:w,onClick:x(m),requiresUpgrade:y,title:k},k)),e&&t.jsx(b,{px:1.25,children:e})]}),s===void 0?void 0:t.jsxs(b,{alignItems:"center",bgColor:u.palette.white,borderColor:u.palette.gray[200],borderTop:"1px solid",bottom:"0",display:"flex",gap:1.25,justify:"end",padding:[1.25,1.25,1.25,1.25],position:"sticky",width:"100%",zIndex:40,children:[c===void 0?void 0:t.jsx(R,{color:`${u.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(R,{onClick:l,type:"submit",children:s})]})]})]})})})},ro=(e,n)=>n>=50?`
|
|
2861
2858
|
${e.palette.gray[200]} 50%,
|
|
2862
2859
|
${e.palette.primary[500]} 50.05%,
|
|
2863
2860
|
${e.palette.primary[500]} ${n}%,
|
|
@@ -2868,7 +2865,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2868
2865
|
${e.palette.primary[500]} 50%,
|
|
2869
2866
|
${e.palette.gray[200]} 50.05%,
|
|
2870
2867
|
${e.palette.gray[200]} 100%
|
|
2871
|
-
`,
|
|
2868
|
+
`,ao=a.dt.div`
|
|
2872
2869
|
${({theme:e,$min:n,$value:i})=>`
|
|
2873
2870
|
align-items: center;
|
|
2874
2871
|
align-self: stretch;
|
|
@@ -2884,7 +2881,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2884
2881
|
${n>=0?`
|
|
2885
2882
|
${e.palette.primary[500]} ${i}%,
|
|
2886
2883
|
${e.palette.gray[200]} ${i}%
|
|
2887
|
-
`:
|
|
2884
|
+
`:ro(e,i)}
|
|
2888
2885
|
);
|
|
2889
2886
|
border-radius: ${e.spacing[.125]};
|
|
2890
2887
|
height: ${e.spacing[.25]};
|
|
@@ -2908,7 +2905,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2908
2905
|
border: 1px solid ${e.palette.primary[500]};
|
|
2909
2906
|
}
|
|
2910
2907
|
`}
|
|
2911
|
-
`,
|
|
2908
|
+
`,oo=a.dt.div`
|
|
2912
2909
|
${({theme:e})=>`
|
|
2913
2910
|
align-items: center;
|
|
2914
2911
|
display: flex;
|
|
@@ -2922,7 +2919,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2922
2919
|
font-size: ${e.spacing[.5]};
|
|
2923
2920
|
}
|
|
2924
2921
|
`}
|
|
2925
|
-
`,
|
|
2922
|
+
`,so=a.dt.output`
|
|
2926
2923
|
${({theme:e})=>`
|
|
2927
2924
|
align-items: flex-end;
|
|
2928
2925
|
border-radius: ${e.spacing[.5]};
|
|
@@ -2933,7 +2930,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2933
2930
|
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
2934
2931
|
width: 59px;
|
|
2935
2932
|
`}
|
|
2936
|
-
`,Ut=({state:e,trackRef:n,index:i})=>{const o=g.useRef(null),{thumbProps:r,inputProps:s,isDragging:l}=a.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:o},e);return t.jsx("div",{...r,className:`thumb ${l?"dragging":""}`,children:t.jsx(a.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{ref:o,...s})})})},
|
|
2933
|
+
`,Ut=({state:e,trackRef:n,index:i})=>{const o=g.useRef(null),{thumbProps:r,inputProps:s,isDragging:l}=a.$47b897dc8cdb026b$export$8d15029008292ae({index:i,trackRef:n,inputRef:o},e);return t.jsx("div",{...r,className:`thumb ${l?"dragging":""}`,children:t.jsx(a.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{ref:o,...s})})})},lo=(e,n,i)=>Math.round((i-e)/(n-e)*100),co=e=>{const n=a.nt(),i=g.useRef(null),{isDisabled:o,label:r,name:s}=e,{control:l}=a.useFormContext(),{field:{onChange:c,value:d}}=a.useController({name:s,control:l,disabled:o}),{minValue:p=0,maxValue:u=100}=e,f=a.$a916eb452884faea$export$b7a616150fdb9f44(),x=a.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:f,onChange:c,value:d}),h=lo(p,u,x.getThumbValue(0)),{groupProps:$,trackProps:w}=a.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":"slider",id:s},x,i);return t.jsx(A,{htmlFor:s,label:r,children:t.jsxs(b,{alignItems:"center",display:"inline-flex",gap:1.25,pl:.5,width:"100%",children:[t.jsxs(ao,{...$,$min:p??0,$value:h,className:"slider",children:[t.jsx("div",{...w,className:`track ${x.isDisabled?"disabled":""}`,ref:i,children:t.jsx(Ut,{index:0,state:x,trackRef:i})}),t.jsxs(oo,{children:[t.jsx("p",{children:`${f.format(p)} (Low)`}),p<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${f.format(u)} (High)`})]})]}),t.jsx(so,{children:t.jsx(j,{color:n.palette.gray[800],size:"sm",textAlign:"right",children:x.getThumbValueLabel(0)})})]})})},{getVariant:po}=H(e=>({completed:`
|
|
2937
2934
|
background-color: ${e.palette.primary[500]};
|
|
2938
2935
|
color: ${e.palette.white};
|
|
2939
2936
|
|
|
@@ -2956,7 +2953,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2956
2953
|
&::after {
|
|
2957
2954
|
background-color: ${e.palette.gray[200]};
|
|
2958
2955
|
}
|
|
2959
|
-
`})),
|
|
2956
|
+
`})),go=a.dt.div`
|
|
2960
2957
|
${({theme:e})=>`
|
|
2961
2958
|
align-items: stretch;
|
|
2962
2959
|
background-color: ${e.palette.white};
|
|
@@ -2966,7 +2963,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2966
2963
|
padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
|
|
2967
2964
|
scroll-behavior: unset;
|
|
2968
2965
|
`}
|
|
2969
|
-
`,
|
|
2966
|
+
`,uo=a.dt.div`
|
|
2970
2967
|
display: flex;
|
|
2971
2968
|
flex-direction: row;
|
|
2972
2969
|
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
@@ -2974,7 +2971,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2974
2971
|
&:last-child > div:first-child > span::after {
|
|
2975
2972
|
display: none;
|
|
2976
2973
|
}
|
|
2977
|
-
`,
|
|
2974
|
+
`,xo=a.dt.div`
|
|
2978
2975
|
${({theme:e})=>`
|
|
2979
2976
|
display: inline-flex;
|
|
2980
2977
|
font-family: ${e.typography.type.primary};
|
|
@@ -2986,7 +2983,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
2986
2983
|
margin-right: ${e.spacing[.5]};
|
|
2987
2984
|
}
|
|
2988
2985
|
`}
|
|
2989
|
-
`,
|
|
2986
|
+
`,fo=a.dt.span`
|
|
2990
2987
|
${({theme:e,$variant:n})=>`
|
|
2991
2988
|
border-radius: 6px;
|
|
2992
2989
|
display: inline-block;
|
|
@@ -3009,9 +3006,9 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
3009
3006
|
height: calc(100% - ${e.spacing[1]});
|
|
3010
3007
|
}
|
|
3011
3008
|
|
|
3012
|
-
${
|
|
3009
|
+
${po(e,n)}
|
|
3013
3010
|
`}
|
|
3014
|
-
`,
|
|
3011
|
+
`,ho=({button:{disabled:e=!1,text:n,type:i="button",onClick:o},steps:r})=>{const[s,l]=g.useState(1),c=g.useCallback((d,p)=>()=>{l(u=>u+d),p==null||p()},[]);return t.jsx(go,{children:r.map((d,p)=>{const{content:u,title:f,nextAction:x,previousAction:h}=d,$=p+1,w=$===s?"current":"disabled",m=$<s?"completed":w;return t.jsxs(uo,{children:[t.jsx(b,{maxWidth:"40px",position:"relative",children:t.jsx(fo,{$variant:m,children:m==="completed"?t.jsx(v,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):$})}),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(xo,{children:[s>1&&t.jsx(R,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,h),variant:"tertiary",children:"Previous"}),s<r.length?t.jsx(R,{disabled:d.isDisabledNext??!1,onClick:c(1,x),variant:"primary",children:"Next step"}):t.jsx(R,{disabled:e,onClick:o,type:i,variant:"primary",children:n})]})]})]})]},d.title)})})},bo=a.dt.button`
|
|
3015
3012
|
${({theme:e})=>`
|
|
3016
3013
|
align-items: center;
|
|
3017
3014
|
background-color: ${e.palette.white};
|
|
@@ -3053,7 +3050,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
3053
3050
|
background-color: ${e.palette.gray[100]};
|
|
3054
3051
|
}
|
|
3055
3052
|
`}
|
|
3056
|
-
|
|
3053
|
+
`,$o={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},yo=({disabled:e=!1,icon:n,id:i,label:o,name:r,onClick:s,type:l="button",variant:c})=>{const d=a.nt(),p=t.jsxs(bo,{"aria-label":r??void 0,className:c,disabled:e,id:i,onClick:s,type:l,children:[t.jsx(v,{clickable:!1,icon:n??$o[c].icon,iconSize:r===void 0?"xxs":"xs",iconType:"fa-light"}),r??void 0]});return t.jsxs(b,{alignItems:"center",display:"flex",children:[p,o&&t.jsx(j,{color:d.palette.gray[800],ml:.5,size:"sm",children:o})]})},mo=({items:e})=>t.jsx(kr,{children:e.map(({isActive:n,label:i,onClick:o},r)=>t.jsx(jr,{className:n?"active":"",onClick:o,type:"button",children:t.jsx(L,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:i})},`${i}-${r}`))}),wo=a.dt.div`
|
|
3057
3054
|
${({theme:e})=>`
|
|
3058
3055
|
align-items: center;
|
|
3059
3056
|
background-color: ${e.palette.white};
|
|
@@ -3075,7 +3072,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
3075
3072
|
border: 1px solid ${e.palette.gray[600]};
|
|
3076
3073
|
}
|
|
3077
3074
|
`}
|
|
3078
|
-
`,
|
|
3075
|
+
`,jo=a.dt.div`
|
|
3079
3076
|
${({theme:e})=>`
|
|
3080
3077
|
display: flex;
|
|
3081
3078
|
flex-direction: column;
|
|
@@ -3146,7 +3143,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
3146
3143
|
}
|
|
3147
3144
|
}
|
|
3148
3145
|
`}
|
|
3149
|
-
`,Yt=({date:e,description:n,title:i})=>{const o=a.nt();return t.jsxs(
|
|
3146
|
+
`,Yt=({date:e,description:n,title:i})=>{const o=a.nt();return t.jsxs(wo,{className:"timeline-card",children:[t.jsx(j,{color:o.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(j,{color:o.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:i}),t.jsx("div",{children:n.map((r,s)=>{const l=`${r}#${s}`;return t.jsx(j,{size:"sm",textAlign:"center",wordBreak:"break-word",children:r},l)})})]})},ko=({items:e})=>t.jsx(jo,{children:e.map((n,i)=>t.jsx(Yt,{date:n.date,description:n.description,title:n.title},`${n.title}-${i}`))}),Co=a.dt.div`
|
|
3150
3147
|
${({theme:e})=>`
|
|
3151
3148
|
align-items: center;
|
|
3152
3149
|
display: flex;
|
|
@@ -3176,7 +3173,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
3176
3173
|
width: 320px;
|
|
3177
3174
|
}
|
|
3178
3175
|
`}
|
|
3179
|
-
`,
|
|
3176
|
+
`,vo=a.dt.button`
|
|
3180
3177
|
${({theme:e})=>`
|
|
3181
3178
|
align-items: center;
|
|
3182
3179
|
background: linear-gradient(
|
|
@@ -3205,7 +3202,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
3205
3202
|
color: ${e.palette.white};
|
|
3206
3203
|
}
|
|
3207
3204
|
`}
|
|
3208
|
-
`,
|
|
3205
|
+
`,So=({defaultSelection:e,options:n,handleClick:i})=>{const[o,r]=g.useState(e??n[0]),s=g.useCallback(l=>()=>{r(l),i(l)},[i]);return t.jsx(Co,{children:n.map((l,c)=>t.jsx(vo,{className:`${l.includes(o)&&"selected"}`,onClick:s(l),children:t.jsx(j,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:l})},`${l}-${c}`))})},zo={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:""},Io=({run:e,steps:n,onFinish:i})=>{const[o,r]=g.useState(e),[s,l]=g.useState(0),c=g.useCallback(d=>{const{action:p,index:u,status:f,type:x}=d;[a.EVENTS.STEP_AFTER,a.EVENTS.TARGET_NOT_FOUND].includes(x)?l(u+(p===a.ACTIONS.PREV?-1:1)):([a.STATUS.FINISHED,a.STATUS.SKIPPED].includes(f)||p==="close")&&(r(!1),a.lodashExports.isUndefined(i)||i())},[i]);return t.jsx(a.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:o,spotlightClicks:!0,stepIndex:s,steps:n,styles:{buttonNext:{display:s===n.length-1?"none":"block"},options:{zIndex:9999}}})},To=a.dt.form`
|
|
3209
3206
|
${({theme:e})=>`
|
|
3210
3207
|
align-items: center;
|
|
3211
3208
|
background: ${e.palette.gray[50]};
|
|
@@ -3233,7 +3230,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
3233
3230
|
width: 320px;
|
|
3234
3231
|
}
|
|
3235
3232
|
`}
|
|
3236
|
-
`,
|
|
3233
|
+
`,No=a.dt.div`
|
|
3237
3234
|
align-items: flex-start;
|
|
3238
3235
|
align-self: stretch;
|
|
3239
3236
|
display: flex;
|
|
@@ -3247,7 +3244,7 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
3247
3244
|
text-align: center;
|
|
3248
3245
|
}
|
|
3249
3246
|
}
|
|
3250
|
-
`,
|
|
3247
|
+
`,Ro=a.dt.div`
|
|
3251
3248
|
${({theme:e})=>`
|
|
3252
3249
|
align-items: flex-start;
|
|
3253
3250
|
align-self: stretch;
|
|
@@ -3268,4 +3265,4 @@ ${x[8]}...`:(x.length<8&&l(!1),n)},[o,n,e]),p=g.useMemo(d,[d]),u=g.useCallback(a
|
|
|
3268
3265
|
flex-direction: column;
|
|
3269
3266
|
}
|
|
3270
3267
|
`}
|
|
3271
|
-
`,Eo=({children:e,name:n,onSubmit:i,submitDisabled:o,submitLabel:r="Submit"})=>t.jsx(
|
|
3268
|
+
`,Eo=({children:e,name:n,onSubmit:i,submitDisabled:o,submitLabel:r="Submit"})=>t.jsx(To,{"aria-label":n,name:n,onSubmit:i,children:t.jsxs(No,{children:[e,t.jsx(R,{disabled:o,type:"submit",children:r})]})});exports.Accordion=Sn;exports.AccordionContent=it;exports.ActionButton=Fe;exports.Alert=Pn;exports.BaseButtonComponent=Be;exports.BaseComponent=te;exports.BaseSpanComponent=tt;exports.BaseTextComponent=Oe;exports.Button=R;exports.Button$1=je;exports.ButtonToolbarCenter=Lr;exports.ButtonToolbarRow=Or;exports.ButtonToolbarStartRow=Br;exports.Calendar=dt;exports.Calendar$1=ft;exports.Calendar$2=ht;exports.CalendarCell=ct;exports.CalendarGrid=Se;exports.CardHeader=ve;exports.CardWithImage=Hn;exports.CardWithInput=Ii;exports.CardWithOptions=yt;exports.CardWithSelector=Fi;exports.CardWithSwitch=Mi;exports.Carousel=Vi;exports.CategoryTag=We;exports.Checkbox=Te;exports.Code=Ui;exports.CodeSnippet=Gi;exports.Col=_r;exports.ColumnsModal=xa;exports.ColumnsSelector=It;exports.ComboBox=qn;exports.Container=b;exports.ContentCard=Ft;exports.ContentCardCarousel=dr;exports.CustomThemeProvider=$n;exports.DateField=gt;exports.DateSelector=ae;exports.Description=Vt;exports.Dialog=Ie;exports.Divider=Q;exports.Editable=ui;exports.EmptyButton=Me;exports.EmptyState=xr;exports.EventDate=Dt;exports.FilePreview=ot;exports.FixedTabs=mo;exports.Form=hr;exports.FormItem=Ro;exports.Gap=Hr;exports.GridContainer=$r;exports.GroupSelector=mr;exports.Header=ze;exports.Header$1=Nt;exports.Heading=L;exports.Icon=v;exports.IconButton=O;exports.IndicatorCard=wr;exports.InfoSidebar=Ir;exports.Input=bt;exports.InputDate=xt;exports.InputDateRange=ci;exports.InputDateTime=gi;exports.InputFile=bi;exports.InputNumber=$t;exports.InputNumberRange=mi;exports.InputTags=yi;exports.InteractiveCard=Rr;exports.InteractiveIcon=Bt;exports.ItemList=Ot;exports.ItemSearching=me;exports.Label=Ae;exports.LanguageSelector=Mr;exports.Link=X;exports.ListItem=Ne;exports.ListItemsWrapper=zt;exports.LittleFlag=Kr;exports.Loading=na;exports.Logo=la;exports.LogoCarousel=oa;exports.MemoizedImage=V;exports.Menu=ca;exports.MenuItem=Gt;exports.MessageBanner=ga;exports.Modal=Et;exports.ModalConfirm=Rt;exports.ModalFooter=Tt;exports.MultipleSelection=ha;exports.Notification=ma;exports.NotificationSign=Wt;exports.NumberField=Ce;exports.NumberInput=ka;exports.OAuthSelector=va;exports.Option=st;exports.OptionBoxContainer=He;exports.OptionContainer=Le;exports.OptionContainer$1=Pt;exports.OutlineContainer=A;exports.PhoneInput=Si;exports.PlanCard=Ia;exports.PopUp=Ta;exports.Popover=fe;exports.PremiumFeature=Ht;exports.PriorityScore=Ra;exports.Progress=Ba;exports.ProgressBar=Wa;exports.RadioButton=Ct;exports.RecommendedTag=_t;exports.Row=Ur;exports.ScrollButtons=Pe;exports.ScrollUpButton=Aa;exports.Search=oe;exports.SearchBar=qa;exports.SeverityBadge=Za;exports.SeverityOverview=Qa;exports.SeverityOverviewBadge=re;exports.ShowOnHover=to;exports.SlideOutMenu=io;exports.Slider=co;exports.SortableList=At;exports.Span=we;exports.StepLapse=ho;exports.Tab=Mt;exports.TableButton=yo;exports.Tabs=Lt;exports.Tag=Z;exports.Text=j;exports.TextArea=zi;exports.Thumb=Ut;exports.TimeField=ut;exports.TimeLine=ko;exports.TimeLineCard=Yt;exports.Toggle=vt;exports.ToggleButton=So;exports.Tooltip=G;exports.Tour=Io;exports.WebForm=Eo;exports.baseStep=zo;exports.getStyledConfig=xe;exports.hiddenProps=et;exports.icons=hn;exports.setBorder=de;exports.setDisplay=pe;exports.setInteraction=ue;exports.setMargin=le;exports.setPadding=se;exports.setPosition=ce;exports.setText=ge;exports.theme=C;exports.uniqueIcons=bn;exports.useCarousel=mt;exports.useClickOutside=J;exports.useCloudinaryImage=wt;exports.useConfirmDialog=or;exports.useDebouncedCallback=jt;exports.useModal=kt;exports.useSearch=Ni;exports.variantBuilder=H;
|