@fluidattacks/design 3.5.0 → 3.6.1
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/assets/index.css +1 -1
- 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/button/types.d.ts +3 -0
- 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-selector/index.js +1 -1
- package/dist/components/card/card-with-switch/index.js +1 -1
- package/dist/components/card/index.js +1 -1
- package/dist/components/carousel/index.js +1 -1
- package/dist/components/checkbox/index.js +1 -1
- package/dist/components/cloud-image/index.js +1 -1
- package/dist/components/code-snippet/index.js +1 -1
- package/dist/components/code-snippet/location-code/index.js +1 -1
- package/dist/components/colors/index.js +1 -1
- package/dist/components/confirm-dialog/index.js +1 -1
- package/dist/components/container/index.js +1 -1
- package/dist/components/content-card/category-tag/index.js +1 -1
- package/dist/components/content-card/event-date/index.js +1 -1
- package/dist/components/content-card/index.js +1 -1
- package/dist/components/content-card-carousel/index.js +1 -1
- package/dist/components/content-card-carousel/scroll-buttons/index.js +1 -1
- package/dist/components/divider/index.js +1 -1
- package/dist/components/empty-state/empty-button/index.js +1 -1
- package/dist/components/empty-state/index.js +1 -1
- package/dist/components/file-preview/index.js +1 -1
- package/dist/components/form/index.d.ts +2 -1
- package/dist/components/form/index.js +1 -1
- package/dist/components/form/types.d.ts +6 -5
- 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.d.ts +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/combobox/types.d.ts +1 -5
- 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.d.ts +1 -1
- package/dist/components/inputs/fields/date/index.js +1 -1
- package/dist/components/inputs/fields/date/types.d.ts +3 -5
- package/dist/components/inputs/fields/date-range/calendar/index.js +1 -1
- package/dist/components/inputs/fields/date-range/index.d.ts +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.d.ts +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.d.ts +1 -1
- package/dist/components/inputs/fields/input/index.js +1 -1
- package/dist/components/inputs/fields/input-file/index.d.ts +1 -1
- package/dist/components/inputs/fields/input-file/index.js +1 -1
- package/dist/components/inputs/fields/input-tags/index.d.ts +1 -1
- package/dist/components/inputs/fields/input-tags/index.js +1 -1
- package/dist/components/inputs/fields/number/index.d.ts +1 -1
- package/dist/components/inputs/fields/number/index.js +1 -1
- package/dist/components/inputs/fields/number-range/index.d.ts +1 -1
- package/dist/components/inputs/fields/number-range/index.js +1 -1
- package/dist/components/inputs/fields/phone/index.d.ts +1 -1
- package/dist/components/inputs/fields/phone/index.js +1 -1
- package/dist/components/inputs/fields/text-area/index.d.ts +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/styles.d.ts +3 -1
- package/dist/components/inputs/types.d.ts +3 -5
- 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.d.ts +1 -4
- 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 +4 -1
- package/dist/components/interactive-card/icon/index.js +1 -1
- package/dist/components/interactive-card/index.js +1 -1
- package/dist/components/language-selector/index.js +1 -1
- package/dist/components/language-selector/item-list/index.js +1 -1
- package/dist/components/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/index.js +1 -1
- package/dist/components/modal/modal-confirm/index.js +1 -1
- package/dist/components/modal/modal-footer/index.js +1 -1
- package/dist/components/modal/modal-header/index.js +1 -1
- package/dist/components/notification/index.js +1 -1
- package/dist/components/notification-sign/index.js +1 -1
- package/dist/components/number-input/index.js +1 -1
- package/dist/components/oauth-selector/index.js +1 -1
- package/dist/components/oauth-selector/option-container/index.js +1 -1
- package/dist/components/plan-card/index.js +1 -1
- package/dist/components/plan-card/recommended-tag/index.js +1 -1
- package/dist/components/pop-up/description/index.js +1 -1
- package/dist/components/pop-up/index.js +1 -1
- package/dist/components/premium-feature/index.js +1 -1
- package/dist/components/priority-score/index.js +1 -1
- package/dist/components/progress/index.js +1 -1
- package/dist/components/progress-bar/index.js +1 -1
- package/dist/components/radio-button/index.js +1 -1
- package/dist/components/scroll-button/index.js +1 -1
- package/dist/components/search/index.js +1 -1
- package/dist/components/search-bar/index.js +1 -1
- package/dist/components/search-bar/item-searching/index.js +1 -1
- package/dist/components/severity-badge/index.js +1 -1
- package/dist/components/severity-overview/badge/index.js +1 -1
- package/dist/components/severity-overview/index.js +1 -1
- package/dist/components/show-on-hover/index.js +1 -1
- package/dist/components/slide-out-menu/index.js +1 -1
- package/dist/components/slide-out-menu/menu-item/index.js +1 -1
- package/dist/components/slider/index.js +1 -1
- package/dist/components/slider/thumb/index.js +1 -1
- package/dist/components/step-lapse/index.js +1 -1
- package/dist/components/table-button/index.js +1 -1
- package/dist/components/tabs/fixed-tabs/index.js +1 -1
- package/dist/components/tabs/index.d.ts +2 -4
- package/dist/components/tabs/index.js +1 -1
- package/dist/components/tabs/styles.d.ts +5 -2
- package/dist/components/tabs/tab/index.d.ts +1 -1
- package/dist/components/tabs/tab/index.js +1 -1
- package/dist/components/tabs/types.d.ts +8 -0
- 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-C59CBzCj.js +3188 -0
- package/dist/{components-CGvzmRsn.mjs → components-DS1UVPkm.mjs} +3143 -2835
- package/dist/hooks/index.js +1 -1
- package/dist/index.js +1 -1
- package/dist/utils/date.d.ts +2 -1
- package/dist/vendor-BC9dYdeh.js +223 -0
- package/dist/{vendor-C3FxgoUJ.mjs → vendor-WdqNSr9B.mjs} +12713 -11309
- package/package.json +2 -1
- package/dist/components-B4aUPqYW.js +0 -3169
- package/dist/vendor-DF-1WGUy.js +0 -223
|
@@ -1,3169 +0,0 @@
|
|
|
1
|
-
"use strict";const t=require("react/jsx-runtime"),g=require("react"),o=require("./vendor-DF-1WGUy.js"),ee=require("react-dom"),He=require("react-router-dom"),A=e=>({getVariant:(i,n)=>e(i)[n]}),_e=["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"],Mt={25:"#fcfcfd",50:"#f9fafb",100:"#f2f4f7",200:"#eaecf0",300:"#d0d5dd",400:"#98a2b3",500:"#667085",600:"#475467",700:"#2f394b",800:"#212a36",900:"#161b25"},Ot={25:"#fef2f3",50:"#fddfe2",100:"#fbbac0",200:"#f9959e",300:"#f65e6a",400:"#f32637",500:"#bf0b1a",600:"#ac0a17",700:"#9a0915",800:"#870812",900:"#750710"},Ht={25:"",50:"",100:"#ffe6ff",200:"",300:"#b8075d",400:"",500:"#7f0540",600:"",700:"#59042d",800:"",900:"#460323"},_t={25:"",50:"#fef3f2",100:"",200:"#fecdca",300:"",400:"",500:"#f04438",600:"",700:"#b42318",800:"",900:""},Vt={25:"",50:"#fffaeb",100:"",200:"#fef0c7",300:"",400:"#ffd562",500:"#fdb022",600:"#dc6803",700:"#b54708",800:"",900:""},Gt={25:"",50:"#f6fef9",100:"",200:"#a6f4c5",300:"",400:"",500:"#12b76a",600:"",700:"#027a48",800:"",900:""},Ut={25:"",50:"#eff8ff",100:"",200:"#b2ddff",300:"",400:"",500:"#2e90fa",600:"",700:"#175cd3",800:"",900:""},qt={"01":"linear-gradient(45deg, #f32637 0%, #b8075d 100%)","02":"linear-gradient(45deg, #fcfcfd 0%, #667085 100%)"},Kt={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"}},Xt={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)"},Zt={mobile:"480px",tablet:"960px",sm:"1024px",md:"1440px",lg:"1920px"},Yt={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"},Jt=["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"],Qt=[["fal","arrow-down"],["fal","arrow-left"],["fal","arrow-right"],["fal","arrow-up"],["fal","plus"],["fal","minus"],["fas","check"],["fas","circle-question"]],k={typography:Kt,shadows:Xt,breakpoints:Zt,spacing:Yt,palette:{primary:Ot,complementary:Ht,error:_t,info:Ut,warning:Vt,success:Gt,black:"#0c111d",white:"#ffffff",gray:Mt,gradients:qt}},ei=({children:e})=>t.jsx(o.ot,{theme:k,children:e}),C=(e,i)=>i===void 0?"":`${e}: ${i};`,te=e=>{const i=e.py??e.pt??0,n=e.px??e.pr??0,r=e.py??e.pb??0,a=e.px??e.pl??0;if(e.padding){const[s,l,c,d]=e.padding;return`padding: ${k.spacing[s]} ${k.spacing[l]} ${k.spacing[c]} ${k.spacing[d]};`}return`padding: ${k.spacing[i]} ${k.spacing[n]} ${k.spacing[r]} ${k.spacing[a]};`},ie=e=>{const i=e.my??e.mt??0,n=e.mx??e.mr??0,r=e.my??e.mb??0,a=e.mx??e.ml??0;if(e.margin){const[s,l,c,d]=e.margin;return`margin: ${k.spacing[s]} ${k.spacing[l]} ${k.spacing[c]} ${k.spacing[d]};`}return`margin: ${k.spacing[i]} ${k.spacing[n]} ${k.spacing[r]} ${k.spacing[a]};`},ne=e=>{const i=C("position",e.position),n=C("top",e.top),r=C("right",e.right),a=C("bottom",e.bottom),s=C("left",e.left),l=C("z-index",e.zIndex);return`
|
|
2
|
-
${i}
|
|
3
|
-
${n}
|
|
4
|
-
${r}
|
|
5
|
-
${a}
|
|
6
|
-
${s}
|
|
7
|
-
${l}
|
|
8
|
-
`},ae=e=>{const i=C("border",e.border),n=C("border-top",e.borderTop),r=C("border-right",e.borderRight),a=C("border-bottom",e.borderBottom),s=C("border-left",e.borderLeft),l=C("border-color",e.borderColor),c=C("border-radius",e.borderRadius);return`
|
|
9
|
-
${i}
|
|
10
|
-
${n}
|
|
11
|
-
${r}
|
|
12
|
-
${a}
|
|
13
|
-
${s}
|
|
14
|
-
${l}
|
|
15
|
-
${c}
|
|
16
|
-
`},ti=e=>e.includes("x")?"overflow-x: auto;":"",ii=e=>e.includes("y")?"overflow-y: auto;":"",re=e=>{const i=e.scroll?`
|
|
17
|
-
${ti(e.scroll)}
|
|
18
|
-
${ii(e.scroll)}
|
|
19
|
-
`:"",n=C("visibility",e.visibility),r=C("display",e.display),a=C("height",e.height),s=C("width",e.width),l=C("max-height",e.maxHeight),c=C("max-width",e.maxWidth),d=C("min-height",e.minHeight),p=C("min-width",e.minWidth),x=C("box-shadow",e.shadow?k.shadows[e.shadow]:void 0),u=C("gap",e.gap===void 0?void 0:k.spacing[e.gap]),f=C("background-color",e.bgColor),b=C("background",e.bgGradient),$=C("flex-direction",e.flexDirection),w=C("flex-grow",e.flexGrow),j=C("justify-content",e.justify),y=C("justify-self",e.justifySelf),S=C("align-items",e.alignItems),T=C("align-self",e.alignSelf),I=C("flex-wrap",e.wrap);return`
|
|
20
|
-
${i}
|
|
21
|
-
${n}
|
|
22
|
-
${r}
|
|
23
|
-
${a}
|
|
24
|
-
${s}
|
|
25
|
-
${l}
|
|
26
|
-
${c}
|
|
27
|
-
${d}
|
|
28
|
-
${p}
|
|
29
|
-
${x}
|
|
30
|
-
${f}
|
|
31
|
-
${b}
|
|
32
|
-
${u}
|
|
33
|
-
${$}
|
|
34
|
-
${w}
|
|
35
|
-
${j}
|
|
36
|
-
${y}
|
|
37
|
-
${S}
|
|
38
|
-
${T}
|
|
39
|
-
${I}
|
|
40
|
-
`},oe=e=>{const i=C("color",e.color),n=C("font-family",e.fontFamily),r=C("font-size",e.fontSize),a=C("font-weight",e.fontWeight),s=C("line-spacing",e.letterSpacing),l=C("line-height",e.lineSpacing),c=C("text-align",e.textAlign),d=C("text-decoration",e.textDecoration),p=C("text-overflow",e.textOverflow),x=C("white-space",e.whiteSpace),u=C("word-break",e.wordBreak),f=C("word-wrap",e.wordWrap);return`
|
|
41
|
-
${i}
|
|
42
|
-
${n}
|
|
43
|
-
${r}
|
|
44
|
-
${a}
|
|
45
|
-
${s}
|
|
46
|
-
${l}
|
|
47
|
-
${c}
|
|
48
|
-
${d}
|
|
49
|
-
${p}
|
|
50
|
-
${x}
|
|
51
|
-
${u}
|
|
52
|
-
${f}
|
|
53
|
-
`},se=e=>{const i=C("cursor",e.cursor),n=C("border-color",e.borderColorHover),r=C("background-color",e.bgColorHover),a=C("box-shadow",e.shadowHover===void 0?void 0:k.shadows[e.shadowHover]),s=C("transition",e.transition);return`
|
|
54
|
-
${i}
|
|
55
|
-
|
|
56
|
-
&:hover {
|
|
57
|
-
${s||"transition: all 0.2s;"}
|
|
58
|
-
${n}
|
|
59
|
-
${r}
|
|
60
|
-
${a}
|
|
61
|
-
}
|
|
62
|
-
`},le=()=>({shouldForwardProp:e=>!_e.includes(e)}),K=o.dt.div.withConfig(le())`
|
|
63
|
-
${te}
|
|
64
|
-
${ie}
|
|
65
|
-
${ne}
|
|
66
|
-
${re}
|
|
67
|
-
${oe}
|
|
68
|
-
${ae}
|
|
69
|
-
${se}
|
|
70
|
-
`,Te=o.dt.button.withConfig(le())`
|
|
71
|
-
${te}
|
|
72
|
-
${ie}
|
|
73
|
-
${ne}
|
|
74
|
-
${re}
|
|
75
|
-
${oe}
|
|
76
|
-
${ae}
|
|
77
|
-
${se}
|
|
78
|
-
`,Re=o.dt.p.withConfig(le())`
|
|
79
|
-
${te}
|
|
80
|
-
${ie}
|
|
81
|
-
${ne}
|
|
82
|
-
${re}
|
|
83
|
-
${oe}
|
|
84
|
-
${ae}
|
|
85
|
-
${se}
|
|
86
|
-
`,Ve=o.dt.span.withConfig(le())`
|
|
87
|
-
${te}
|
|
88
|
-
${ie}
|
|
89
|
-
${ne}
|
|
90
|
-
${re}
|
|
91
|
-
${oe}
|
|
92
|
-
${ae}
|
|
93
|
-
${se}
|
|
94
|
-
`,ni=o.dt(K)`
|
|
95
|
-
${({theme:e,$center:i=!1,$styleMd:n,$styleSm:r})=>`
|
|
96
|
-
${i?"margin: auto;":""}
|
|
97
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
98
|
-
scroll-padding: ${e.spacing[.5]};
|
|
99
|
-
|
|
100
|
-
@media screen
|
|
101
|
-
and (min-width: ${e.breakpoints.mobile})
|
|
102
|
-
and (max-width: ${e.breakpoints.tablet})
|
|
103
|
-
{
|
|
104
|
-
${n};
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
108
|
-
${r};
|
|
109
|
-
}
|
|
110
|
-
`}
|
|
111
|
-
`,h=g.forwardRef(function({as:i="div",center:n,children:r,id:a,onHover:s,onLeave:l,styleMd:c,styleSm:d,...p},x){return t.jsx(ni,{$center:n,$styleMd:c,$styleSm:d,as:i,id:a,onMouseLeave:l,onMouseOver:s,ref:x,...p,children:r})}),ai=o.dt(Re)`
|
|
112
|
-
${({theme:e,$bgGradient:i="unset",$color:n=e.palette.gray[800],$display:r="block",$fontFamily:a=e.typography.type.primary,$fontWeight:s="bold",$letterSpacing:l=0,$lineSpacing:c=1.5,$lineSpacingSm:d,$size:p,$sizeMd:x,$sizeSm:u,$textFill:f="unset",$wordBreak:b="normal"})=>`
|
|
113
|
-
background: ${i};
|
|
114
|
-
color: ${n};
|
|
115
|
-
display: ${r};
|
|
116
|
-
font-family: ${a};
|
|
117
|
-
font-size: ${e.typography.heading[p]};
|
|
118
|
-
font-weight: ${e.typography.weight[s]};
|
|
119
|
-
letter-spacing: ${l};
|
|
120
|
-
line-height: ${e.spacing[c]};
|
|
121
|
-
width: ${r==="block"?"100%":"auto"};
|
|
122
|
-
word-break: ${b};
|
|
123
|
-
background-clip: text;
|
|
124
|
-
-webkit-background-clip: text;
|
|
125
|
-
-webkit-text-fill-color: ${f};
|
|
126
|
-
|
|
127
|
-
@media screen
|
|
128
|
-
and (min-width: ${e.breakpoints.mobile})
|
|
129
|
-
and (max-width: ${e.breakpoints.tablet})
|
|
130
|
-
{
|
|
131
|
-
font-size: ${e.typography.heading[x??p]};
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
135
|
-
font-size: ${e.typography.heading[u??p]};
|
|
136
|
-
line-height: ${e.spacing[d??c]};
|
|
137
|
-
}
|
|
138
|
-
`}
|
|
139
|
-
`,Ge=o.dt(Re)`
|
|
140
|
-
${({theme:e,$bgGradient:i="unset",$color:n=e.palette.gray[600],$display:r="block",$fontFamily:a=e.typography.type.primary,$fontWeight:s="regular",$letterSpacing:l=0,$lineSpacing:c=1.25,$lineSpacingSm:d,$size:p,$sizeMd:x,$sizeSm:u,$textFill:f="unset",$wordBreak:b="normal"})=>`
|
|
141
|
-
background: ${i};
|
|
142
|
-
color: ${n};
|
|
143
|
-
display: ${r};
|
|
144
|
-
font-family: ${a};
|
|
145
|
-
font-size: ${e.typography.text[p]};
|
|
146
|
-
font-weight: ${e.typography.weight[s]};
|
|
147
|
-
letter-spacing: ${l};
|
|
148
|
-
line-height: ${e.spacing[c]};
|
|
149
|
-
width: ${r==="block"?"100%":"auto"};
|
|
150
|
-
word-break: ${b};
|
|
151
|
-
background-clip: text;
|
|
152
|
-
-webkit-background-clip: text;
|
|
153
|
-
-webkit-text-fill-color: ${f};
|
|
154
|
-
|
|
155
|
-
@media screen
|
|
156
|
-
and (min-width: ${e.breakpoints.mobile})
|
|
157
|
-
and (max-width: ${e.breakpoints.tablet})
|
|
158
|
-
{
|
|
159
|
-
font-size: ${e.typography.text[x??p]};
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
163
|
-
font-size: ${e.typography.text[u??p]};
|
|
164
|
-
line-height: ${e.spacing[d??c]};
|
|
165
|
-
}
|
|
166
|
-
`}
|
|
167
|
-
`,ri=o.dt.span`
|
|
168
|
-
${({theme:e,$color:i=e.palette.gray[600],$content:n=void 0,$display:r="inline",$fontWeight:a="regular",$size:s,$lineSpacing:l=1.25})=>`
|
|
169
|
-
color: ${i};
|
|
170
|
-
display: ${r};
|
|
171
|
-
font-family: ${e.typography.type.primary};
|
|
172
|
-
font-size: ${e.typography.text[s]};
|
|
173
|
-
font-weight: ${e.typography.weight[a]};
|
|
174
|
-
line-height: ${e.spacing[l]};
|
|
175
|
-
width: ${r==="block"?"100%":"auto"};
|
|
176
|
-
|
|
177
|
-
${n===void 0?"":`&::after { content: "${n}"; }`}
|
|
178
|
-
`}
|
|
179
|
-
`,R=g.forwardRef(function({bgGradient:i,children:n,className:r,color:a,display:s,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:x,size:u,sizeMd:f,sizeSm:b,textFill:$,wordBreak:w,...j},y){return t.jsx(ai,{$bgGradient:i,$color:a,$display:s,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:x,$size:u,$sizeMd:f,$sizeSm:b,$textFill:$,$wordBreak:w,className:r,ref:y,...j,children:n})}),xe=g.forwardRef(function({children:i,color:n,content:r,display:a,fontFamily:s,fontWeight:l,letterSpacing:c,lineSpacing:d,lineSpacingSm:p,size:x,sizeMd:u,sizeSm:f,...b},$){return t.jsx(ri,{$color:n,$content:r,$display:a,$fontFamily:s,$fontWeight:l,$letterSpacing:c,$lineSpacing:d,$lineSpacingSm:p,$size:x,$sizeMd:u,$sizeSm:f,ref:$,...b,children:i})}),m=g.forwardRef(function({bgGradient:i,children:n,className:r,color:a,display:s,fontFamily:l,fontWeight:c,letterSpacing:d,lineSpacing:p,lineSpacingSm:x,size:u,sizeMd:f,sizeSm:b,textFill:$,wordBreak:w,...j},y){return t.jsx(Ge,{$bgGradient:i,$color:a,$display:s,$fontFamily:l,$fontWeight:c,$letterSpacing:d,$lineSpacing:p,$lineSpacingSm:x,$size:u,$sizeMd:f,$sizeSm:b,$textFill:$,$wordBreak:w,className:r,ref:y,...j,children:n})}),Ue=({item:e})=>t.jsxs(h,{display:"block",id:`panel-${e.title}`,padding:[.75,.75,.75,.75],children:[e.description?t.jsx(m,{mb:e.extraElement?.5:void 0,size:"sm",children:e.description}):void 0,e.extraElement?t.jsx(h,{children:e.extraElement}):void 0]}),oi={xl:"96px",lg:"64px",md:"32px",sm:"24px",xs:"16px",xxs:"12px",xxss:"10px"},si=o.dt(Ve)`
|
|
180
|
-
${({$clickable:e,$color:i="inherit",$disabled:n=!1,$hoverColor:r,$rotation:a,$size:s,$secondaryColor:l})=>{const c=r?"":"brightness(50%)",d=r??"";return`
|
|
181
|
-
color: ${i};
|
|
182
|
-
cursor: ${e?"pointer":"inherit"};
|
|
183
|
-
font-size: ${oi[s]};
|
|
184
|
-
line-height: 0;
|
|
185
|
-
vertical-align: middle;
|
|
186
|
-
pointer-events: inherit;
|
|
187
|
-
opacity: ${n?"0.5":"1"};
|
|
188
|
-
|
|
189
|
-
> svg {
|
|
190
|
-
--fa-secondary-color: ${l};
|
|
191
|
-
transform: ${a===void 0?"":`rotate(${a}deg)`};
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
.fill-gradient-01 path {
|
|
195
|
-
fill: url(/gradients.svg#gradient-01);
|
|
196
|
-
fill: url(#gradient-01);
|
|
197
|
-
}
|
|
198
|
-
.fill-gradient-02 path {
|
|
199
|
-
fill: url(/gradients.svg#gradient-02);
|
|
200
|
-
fill: url(#gradient-02);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
${e?`&:hover {
|
|
204
|
-
filter: ${c};
|
|
205
|
-
color: ${d};
|
|
206
|
-
}`:""}
|
|
207
|
-
`}}
|
|
208
|
-
`;o.dt.div`
|
|
209
|
-
cursor: pointer;
|
|
210
|
-
transition: all 0.2s ease-in-out;
|
|
211
|
-
|
|
212
|
-
&:hover:not([disabled]) {
|
|
213
|
-
transform: scale(1.2);
|
|
214
|
-
}
|
|
215
|
-
`;const v=g.forwardRef(function({clickable:i,disabled:n,hoverColor:r,icon:a,iconClass:s="",iconColor:l,iconMask:c,iconSize:d,iconTransform:p,iconType:x="fa-solid",onClick:u,rotation:f,spanClass:b,secondaryColor:$,...w},j){return t.jsx(si,{$clickable:i,$color:l,$disabled:n,$hoverColor:r,$rotation:f,$secondaryColor:$,$size:d,className:b,"data-testid":`${a}-icon`,onClick:u,ref:j,...w,children:t.jsx("i",{className:`${x} fa-${a} ${s}`,...c!==void 0?{"data-fa-mask":c}:{},...p!==void 0?{"data-fa-transform":p}:{}})},`${x}-${a}`)}),li=g.forwardRef(function({aligned:i="end",items:n,bgColor:r},a){const s=o.nt(),[l,c]=g.useState(!1),[d,p]=g.useState(-1),x=g.useCallback(u=>()=>{p(u),c(u===d?f=>!f:!0)},[d]);return t.jsx(h,{ref:a,children:n.map((u,f)=>{const b=f===d&&l;return t.jsxs(h,{bgColor:r??s.palette.white,children:[t.jsx(h,{"aria-controls":`panel-${u.title}`,"aria-expanded":l,"aria-label":u.title,as:"button",bgColor:r??s.palette.white,bgColorHover:s.palette.gray[100],borderBottom:b||f===n.length-1?"1px solid":void 0,borderColor:s.palette.gray[200],borderTop:"1px solid",cursor:"pointer",display:"flex",onClick:x(f),padding:[.75,.75,.75,.75],width:"100%",children:t.jsxs(h,{as:"summary",display:"flex",flexDirection:i==="end"?"row":"row-reverse",gap:.75,justify:"space-between",width:"100%",children:[t.jsx(m,{color:s.palette.gray[800],fontWeight:"bold",size:"sm",sizeSm:"sm",textAlign:"start",children:u.title}),t.jsx(v,{icon:b?"chevron-up":"chevron-down",iconColor:s.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]})}),b&&t.jsx(Ue,{item:u})]},u.title)})})}),ci=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:di}=A(e=>({error:`
|
|
216
|
-
background: ${e.palette.error[50]};
|
|
217
|
-
border: 1px solid ${e.palette.error[500]};
|
|
218
|
-
color: ${e.palette.error[700]};
|
|
219
|
-
|
|
220
|
-
button {
|
|
221
|
-
color: ${e.palette.error[700]};
|
|
222
|
-
|
|
223
|
-
&:hover:not([disabled]) {
|
|
224
|
-
background-color: ${e.palette.error[200]};
|
|
225
|
-
color: ${e.palette.error[700]};
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
`,info:`
|
|
229
|
-
background: ${e.palette.info[50]};
|
|
230
|
-
border: 1px solid ${e.palette.info[500]};
|
|
231
|
-
color: ${e.palette.info[700]};
|
|
232
|
-
|
|
233
|
-
button {
|
|
234
|
-
color: ${e.palette.info[700]};
|
|
235
|
-
|
|
236
|
-
&:hover:not([disabled]) {
|
|
237
|
-
background-color: ${e.palette.info[200]};
|
|
238
|
-
color: ${e.palette.info[700]};
|
|
239
|
-
}
|
|
240
|
-
}
|
|
241
|
-
`,success:`
|
|
242
|
-
background: ${e.palette.success[50]};
|
|
243
|
-
border: 1px solid ${e.palette.success[500]};
|
|
244
|
-
color: ${e.palette.success[700]};
|
|
245
|
-
|
|
246
|
-
button {
|
|
247
|
-
color: ${e.palette.success[700]};
|
|
248
|
-
|
|
249
|
-
&:hover:not([disabled]) {
|
|
250
|
-
background-color: ${e.palette.success[200]};
|
|
251
|
-
color: ${e.palette.success[700]};
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
`,warning:`
|
|
255
|
-
background: ${e.palette.warning[50]};
|
|
256
|
-
border: 1px solid ${e.palette.warning[500]};
|
|
257
|
-
color: ${e.palette.warning[700]};
|
|
258
|
-
|
|
259
|
-
button {
|
|
260
|
-
color: ${e.palette.warning[700]};
|
|
261
|
-
|
|
262
|
-
&:hover:not([disabled]) {
|
|
263
|
-
background-color: ${e.palette.warning[200]};
|
|
264
|
-
color: ${e.palette.warning[700]};
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
`})),pi=o.dt.div`
|
|
268
|
-
${({theme:e,$variant:i})=>`
|
|
269
|
-
background: transparent;
|
|
270
|
-
align-items: center;
|
|
271
|
-
border-radius: ${e.spacing[.25]};
|
|
272
|
-
display: inline-flex;
|
|
273
|
-
font-family: ${e.typography.type.primary};
|
|
274
|
-
font-size: ${e.typography.text.sm};
|
|
275
|
-
font-weight: ${e.typography.weight.bold};
|
|
276
|
-
line-height: ${e.spacing[1.25]};
|
|
277
|
-
min-width: 250px;
|
|
278
|
-
width: 100%;
|
|
279
|
-
padding: ${e.spacing[.75]};
|
|
280
|
-
position: relative;
|
|
281
|
-
gap: ${e.spacing[.75]};
|
|
282
|
-
|
|
283
|
-
button {
|
|
284
|
-
background-color: transparent;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
${di(e,i??"error")}
|
|
288
|
-
`}
|
|
289
|
-
`,gi=o.dt.div`
|
|
290
|
-
padding-right: 4px;
|
|
291
|
-
width: 100%;
|
|
292
|
-
`,{getVariant:xi}=A(e=>({ghost:`
|
|
293
|
-
background: transparent;
|
|
294
|
-
border: none;
|
|
295
|
-
color: ${e.palette.gray[800]};
|
|
296
|
-
--btn-padding-x: ${e.spacing[.5]};
|
|
297
|
-
--btn-padding-y: ${e.spacing[.625]};
|
|
298
|
-
--btn-spacing: ${e.spacing[.25]};
|
|
299
|
-
|
|
300
|
-
&:disabled {
|
|
301
|
-
color: ${e.palette.gray[400]};
|
|
302
|
-
cursor: not-allowed;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
&:hover:not([disabled]) {
|
|
306
|
-
background-color: ${e.palette.gray[100]};
|
|
307
|
-
color: ${e.palette.gray[800]};
|
|
308
|
-
}
|
|
309
|
-
`,link:`
|
|
310
|
-
--btn-padding-x: 0;
|
|
311
|
-
--btn-padding-y: 0;
|
|
312
|
-
color: ${e.palette.gray[800]};
|
|
313
|
-
|
|
314
|
-
&:hover {
|
|
315
|
-
color: ${e.palette.gray[500]};
|
|
316
|
-
}
|
|
317
|
-
`,primary:`
|
|
318
|
-
background: ${e.palette.primary[500]};
|
|
319
|
-
border: none;
|
|
320
|
-
color: ${e.palette.white};
|
|
321
|
-
--btn-spacing: ${e.spacing[.25]};
|
|
322
|
-
|
|
323
|
-
&:disabled {
|
|
324
|
-
background: ${e.palette.gray[200]};
|
|
325
|
-
color: ${e.palette.gray[400]};
|
|
326
|
-
cursor: not-allowed;
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
&:hover:not([disabled]) {
|
|
330
|
-
background-color: ${e.palette.primary[700]};
|
|
331
|
-
color: ${e.palette.white};
|
|
332
|
-
}
|
|
333
|
-
`,secondary:`
|
|
334
|
-
background: ${e.palette.gray[800]};
|
|
335
|
-
border: none;
|
|
336
|
-
color: ${e.palette.white};
|
|
337
|
-
--btn-spacing: ${e.spacing[.25]};
|
|
338
|
-
|
|
339
|
-
&:disabled {
|
|
340
|
-
background: ${e.palette.gray[200]};
|
|
341
|
-
color: ${e.palette.gray[400]};
|
|
342
|
-
cursor: not-allowed;
|
|
343
|
-
}
|
|
344
|
-
|
|
345
|
-
&:hover:not([disabled]) {
|
|
346
|
-
background-color: ${e.palette.gray[600]};
|
|
347
|
-
color: ${e.palette.white};
|
|
348
|
-
}
|
|
349
|
-
`,tertiary:`
|
|
350
|
-
background: transparent;
|
|
351
|
-
border: 1px solid ${e.palette.primary[500]};
|
|
352
|
-
color: ${e.palette.primary[500]};
|
|
353
|
-
--btn-spacing: ${e.spacing[.25]};
|
|
354
|
-
|
|
355
|
-
&:disabled {
|
|
356
|
-
background: transparent;
|
|
357
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
358
|
-
color: ${e.palette.gray[300]};
|
|
359
|
-
cursor: not-allowed;
|
|
360
|
-
}
|
|
361
|
-
|
|
362
|
-
&:hover:not([disabled]) {
|
|
363
|
-
background-color: ${e.palette.primary[500]};
|
|
364
|
-
color: ${e.palette.white};
|
|
365
|
-
}
|
|
366
|
-
`})),qe=o.dt(Te)`
|
|
367
|
-
${({theme:e,$variant:i})=>`
|
|
368
|
-
align-items: center;
|
|
369
|
-
border-radius: var(--btn-spacing);
|
|
370
|
-
cursor: pointer;
|
|
371
|
-
display: inline-flex;
|
|
372
|
-
font-family: ${e.typography.type.primary};
|
|
373
|
-
font-size: ${e.typography.text.sm};
|
|
374
|
-
font-weight: ${e.typography.weight.regular};
|
|
375
|
-
gap: var(--btn-spacing);
|
|
376
|
-
justify-content: center;
|
|
377
|
-
line-height: ${e.spacing[1.25]};
|
|
378
|
-
padding: var(--btn-padding-y) var(--btn-padding-x);
|
|
379
|
-
position: relative;
|
|
380
|
-
text-align: start;
|
|
381
|
-
transition: all 0.5s ease;
|
|
382
|
-
white-space: nowrap;
|
|
383
|
-
|
|
384
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
385
|
-
${i!=="link"?`--btn-padding-y: ${e.spacing[1]}`:""};
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
${xi(e,i??"primary")}
|
|
389
|
-
`}
|
|
390
|
-
`,ui=o.dt(qe)`
|
|
391
|
-
${({theme:e,$borderRadius:i="4px",$px:n=.5,$py:r=.5})=>`
|
|
392
|
-
--btn-spacing: ${i};
|
|
393
|
-
--btn-padding-x: ${e.spacing[n]};
|
|
394
|
-
--btn-padding-y: ${e.spacing[r]};
|
|
395
|
-
|
|
396
|
-
align-items: center;
|
|
397
|
-
line-height: 0;
|
|
398
|
-
text-align: center;
|
|
399
|
-
|
|
400
|
-
> span {
|
|
401
|
-
margin: 0 !important;
|
|
402
|
-
}
|
|
403
|
-
`}
|
|
404
|
-
`,fi=o.dt(K)``,hi=o.dt.div`
|
|
405
|
-
${({theme:e,$maxWidth:i="320px"})=>`
|
|
406
|
-
> :is(.react-tooltip, .react-tooltip__show, .react-tooltip__closing) {
|
|
407
|
-
background-color: ${e.palette.gray[700]};
|
|
408
|
-
border-radius: 8px;
|
|
409
|
-
color: ${e.palette.white};
|
|
410
|
-
font-size: ${e.typography.text.xs};
|
|
411
|
-
max-width: ${i};
|
|
412
|
-
padding: ${e.spacing[.75]};
|
|
413
|
-
z-index: 999999;
|
|
414
|
-
--rt-opacity: 1;
|
|
415
|
-
}
|
|
416
|
-
`}
|
|
417
|
-
`,B=g.forwardRef(function({children:i,disabled:n=!1,display:r="inline-block",effect:a="solid",icon:s,iconColor:l,iconSize:c,id:d,maxWidth:p,nodeTip:x,place:u="bottom",tip:f="",title:b="",hide:$=f===""&&b===""&&x===void 0,...w},j){const y=o.nt(),[S,T]=g.useState(!1),I=g.useRef(null),M=g.useCallback(()=>{I.current!==null&&clearTimeout(I.current),I.current=setTimeout(()=>{T(!0)},100)},[]),D=g.useCallback(()=>{I.current!==null&&clearTimeout(I.current),I.current=setTimeout(()=>{T(!1)},100)},[]);return n?t.jsx(g.StrictMode,{children:i}):t.jsxs(fi,{"data-tooltip-id":d,display:r,onMouseLeave:D,onMouseMove:M,ref:j,role:"tooltip",...w,children:[s?t.jsx(v,{clickable:!0,disabled:n,icon:s,iconColor:l,iconSize:c??"xxs",iconType:S?"fa-solid":"fa-light"}):i,ee.createPortal(t.jsx(hi,{$maxWidth:p,children:t.jsxs(o.M,{delayShow:500,float:a==="float"?!0:void 0,globalCloseEvents:{resize:!0},hidden:$||!S,id:d,middlewares:[o.flip({fallbackAxisSideDirection:"start"}),o.offset({mainAxis:10})],noArrow:a==="float",place:u,children:[o.lodashExports.isEmpty(b)?void 0:t.jsx(m,{color:y.palette.white,fontWeight:"bold",lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:b}),o.lodashExports.isEmpty(f)?void 0:t.jsx(m,{color:y.palette.gray[100],lineSpacing:1.5,size:"xs",textAlign:"start",wordWrap:"break-word",children:f}),o.lodashExports.isEmpty(x)?void 0:x]})}),document.getElementById("root")??document.body)]})}),E=g.forwardRef(function({borderRadius:i,disabled:n,icon:r,iconColor:a,iconSize:s="xxs",iconTransform:l,iconType:c,id:d,justify:p="center",onClick:x,px:u,py:f,type:b="button",tooltip:$,tooltipPlace:w,value:j,variant:y="primary",...S},T){const I=t.jsx(ui,{$borderRadius:i,$px:u,$py:f,$variant:y,"aria-disabled":n,"aria-label":d,borderRadius:i,disabled:n,id:d,justify:p,onClick:x,ref:T,type:b,value:j,...S,children:t.jsx(v,{clickable:!1,icon:r,iconColor:a,iconSize:s,iconTransform:l,iconType:c})}),D=(b+(y??"")+(d??r)).replace(/ /u,"_");return $===void 0?I:t.jsx(B,{id:`${D}-tooltip`,place:w,tip:$,children:I})}),bi=g.forwardRef(function({autoHide:i=!1,children:n,closable:r=!1,onTimeOut:a,show:s=!0,time:l=8,variant:c="error",id:d,...p},x){const[u,f]=g.useState(s),b=g.useCallback(()=>{f(!1)},[]);return g.useEffect(()=>{const $=setTimeout(()=>{a==null||a(!0),i&&b()},l*1e3);return()=>{clearTimeout($)}},[i,b,l,a]),g.useEffect(()=>{f(s)},[s,f]),t.jsx(h,{display:u?"block":"none",ref:x,role:"alert",...p,children:t.jsxs(pi,{$variant:c,id:d,children:[t.jsx(v,{clickable:!1,icon:ci(c),iconSize:"xs",iconType:"fa-light"}),t.jsx(gi,{children:n}),r?t.jsx(E,{height:"fit-content",icon:"close",iconSize:"xs",iconType:"fa-light",onClick:b,px:.125,py:.125,variant:"ghost"}):void 0]})})}),$i=(e,i=!0)=>{const n=window.open(e,i?void 0:"_self","noopener,noreferrer,");o.lodashExports.isObject(n)&&(n.opener=null)},z=g.forwardRef(function({children:i,disabled:n=!1,external:r=!1,href:a,id:s,icon:l,name:c,onClick:d,showArrow:p=!1,type:x="button",tooltip:u,tooltipPlace:f="bottom",underline:b=!1,value:$,variant:w="primary",...j},y){const S=u!==void 0,T=`${s}-tooltip`,I=g.useCallback(()=>{a&&$i(a,r)},[r,a]);return t.jsx(B,{disabled:!S,id:T,place:f,tip:u,children:t.jsxs(qe,{$variant:w,"aria-disabled":n,className:b?"underline":void 0,disabled:n,id:s,name:c,onClick:w==="link"?I:d,ref:y,type:x,value:$,...S?{"data-tooltip-id":T}:{},...j,children:[l!==void 0&&t.jsx(v,{icon:l,iconSize:"xs",iconType:"fa-light"}),i,(p||w==="link")&&t.jsx(v,{icon:"arrow-right",iconSize:"xs",iconType:"fa-light"})]})})}),be=({authorEmail:e,date:i,description:n,descriptionColor:r,id:a,title:s,titleColor:l,textAlign:c,textSpacing:d=0,tooltip:p})=>{const x=o.nt();return t.jsxs(h,{width:"100%",children:[typeof s=="string"?t.jsx(m,{color:l??x.palette.gray[800],fontWeight:"bold",mb:d,size:"sm",textAlign:c,wordBreak:"break-word",children:s}):s,t.jsxs(h,{alignItems:"start",display:"flex",flexDirection:"column",gap:.25,children:[n&&t.jsx(m,{color:r??x.palette.gray[800],fontWeight:n===void 0?"bold":"regular",size:"sm",textAlign:c,wordBreak:"break-word",children:n}),i&&t.jsx(m,{color:x.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`Date: ${i.split(" ")[0]}`}),e&&t.jsx(m,{color:x.palette.gray[800],fontWeight:"bold",size:"sm",textAlign:c,wordBreak:"break-word",children:`$Author: ${e}`}),p&&t.jsx(B,{icon:"circle-info",id:a,tip:p})]})]})},Fe=o.dt(h).attrs(({...e})=>({display:"inline-block",position:"relative",...e}))`
|
|
418
|
-
& img {
|
|
419
|
-
display: block;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
&::after {
|
|
423
|
-
content: "";
|
|
424
|
-
position: absolute;
|
|
425
|
-
top: 0;
|
|
426
|
-
left: 0;
|
|
427
|
-
width: 100%;
|
|
428
|
-
height: 100%;
|
|
429
|
-
pointer-events: none;
|
|
430
|
-
${({$opacity:e=0})=>`background-color: rgba(0, 0, 0, ${e});`}
|
|
431
|
-
}
|
|
432
|
-
`,yi=e=>{if(o._.isNil(e))return"";const i=e.split(".");return(i.length>1?o._.last(i):"").toLowerCase()},mi=(e,i)=>o._.isUndefined(i)?!1:o._.includes(e,yi(i)),{getVariant:wi}=A(e=>({highRelevance:`
|
|
433
|
-
color: ${e.palette.primary[500]};
|
|
434
|
-
|
|
435
|
-
&:hover:not([disabled]) {
|
|
436
|
-
color: ${e.palette.primary[400]};
|
|
437
|
-
}
|
|
438
|
-
`,lowRelevance:`
|
|
439
|
-
color: ${e.palette.gray[800]};
|
|
440
|
-
|
|
441
|
-
&:hover:not([disabled]) {
|
|
442
|
-
color: ${e.palette.gray[500]};
|
|
443
|
-
}
|
|
444
|
-
`})),Ke=o.lt`
|
|
445
|
-
${({theme:e,$color:i,$variant:n})=>`
|
|
446
|
-
align-items: center;
|
|
447
|
-
cursor: pointer;
|
|
448
|
-
font-family: ${e.typography.type.primary};
|
|
449
|
-
font-size: ${e.typography.text.sm};
|
|
450
|
-
font-weight: ${e.typography.weight.regular};
|
|
451
|
-
gap: ${e.spacing[.25]};
|
|
452
|
-
line-height: ${e.spacing[1.25]};
|
|
453
|
-
text-decoration: underline;
|
|
454
|
-
word-break: break-word;
|
|
455
|
-
word-wrap: break-word;
|
|
456
|
-
|
|
457
|
-
&:disabled {
|
|
458
|
-
color: ${e.palette.gray[300]};
|
|
459
|
-
cursor: not-allowed;
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
&:has(button) {
|
|
463
|
-
text-decoration: none;
|
|
464
|
-
}
|
|
465
|
-
|
|
466
|
-
${i??wi(e,n)}
|
|
467
|
-
`}
|
|
468
|
-
`,ji=o.dt.a`
|
|
469
|
-
${Ke}
|
|
470
|
-
`,ki=o.dt(He.Link)`
|
|
471
|
-
${Ke}
|
|
472
|
-
`,_=({children:e,color:i,download:n,href:r,iconPosition:a="right",onClick:s,target:l,variant:c="lowRelevance"})=>{const d=r.startsWith("https://"),p=t.jsx(v,{icon:n===void 0?"arrow-up-right-from-square":"arrow-down-to-bracket",iconSize:"xxs",iconType:"fa-regular",ml:.25,mr:.25});return d?t.jsxs(ji,{$color:i,$variant:c,download:n,href:r,onClick:s,rel:"nofollow noopener noreferrer",target:l??"_blank",children:[a==="left"?p:void 0,e,a==="right"?p:void 0]}):t.jsxs(ki,{$variant:c,download:n,onClick:s,rel:"nofollow noopener noreferrer",target:l,to:r,children:[l!==void 0&&a==="left"?p:void 0,e,l!==void 0&&a==="right"?p:void 0]})},Xe=({alt:e,fileType:i,width:n="100%",opacity:r=0,src:a,height:s="auto"})=>i==="video"||mi(["webm"],a)?t.jsx(Fe,{$opacity:r,children:t.jsxs("video",{controls:!0,height:s,muted:!0,width:n,children:[t.jsx("source",{src:a,type:"video/webm"}),t.jsx(_,{href:a,iconPosition:"hidden",children:a})]})}):t.jsx(Fe,{$opacity:r,children:t.jsx("img",{alt:e,height:s,src:a,width:n})}),vi=({alt:e,authorEmail:i,date:n,description:r,src:a,children:s,isEditing:l,onClick:c,title:d,hideDescription:p=!1,headerType:x="image",showMaximize:u=!0})=>{const f=o.nt(),[b,$]=g.useState(!1),w=g.useCallback(()=>{$(!0)},[]),j=g.useCallback(()=>{$(!1)},[]);return t.jsxs(h,{bgColor:"transparent",border:"1px solid transparent",borderColorHover:"black",borderRadius:f.spacing[.25],display:"flex",flexDirection:"column",gap:1,onHover:w,onLeave:j,padding:[.5,.5,.5,.5],width:"100%",children:[t.jsx(h,{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(Xe,{alt:e,fileType:x,height:"147px",opacity:b?.3:0,src:a,width:"100%"}),u?t.jsx(h,{bottom:"10px",position:"absolute",right:"10px",children:t.jsx(E,{color:"white",icon:"arrows-maximize",iconSize:"xxs",iconType:"fa-light",variant:"secondary"})}):void 0]}):s}),p?null:t.jsx(be,{authorEmail:i,date:n,description:r,descriptionColor:f.palette.gray[600],id:`${e}-card-header`,title:d})]})},Ci=o.dt.div`
|
|
473
|
-
${({theme:e,$align:i="center",$minWidth:n="auto",$minHeight:r="auto"})=>`
|
|
474
|
-
display: flex;
|
|
475
|
-
background-color: ${e.palette.white};
|
|
476
|
-
border-radius: ${e.spacing[.25]};
|
|
477
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
478
|
-
flex-direction: column;
|
|
479
|
-
justify-content: center;
|
|
480
|
-
gap: ${e.spacing[.5]};
|
|
481
|
-
min-width: ${n};
|
|
482
|
-
min-height: ${r};
|
|
483
|
-
padding: ${e.spacing[1]};
|
|
484
|
-
|
|
485
|
-
input {
|
|
486
|
-
color: ${e.palette.gray[800]};
|
|
487
|
-
line-height: ${e.spacing[1.5]};
|
|
488
|
-
text-align: ${i};
|
|
489
|
-
}
|
|
490
|
-
`}
|
|
491
|
-
`,Si=o.dt.ul`
|
|
492
|
-
${({theme:e})=>`
|
|
493
|
-
align-self: center;
|
|
494
|
-
background: ${e.palette.white};
|
|
495
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
496
|
-
border-radius: ${e.spacing[.25]};
|
|
497
|
-
box-shadow: ${e.shadows.md};
|
|
498
|
-
list-style: none;
|
|
499
|
-
max-height: 200px;
|
|
500
|
-
min-width: 240px;
|
|
501
|
-
overflow: hidden auto;
|
|
502
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
503
|
-
scroll-padding: ${e.spacing[.5]};
|
|
504
|
-
width: 95%;
|
|
505
|
-
`}
|
|
506
|
-
`,zi=o.dt.li`
|
|
507
|
-
${({theme:e})=>`
|
|
508
|
-
align-items: center;
|
|
509
|
-
color: ${e.palette.gray[800]};
|
|
510
|
-
cursor: pointer;
|
|
511
|
-
display: flex;
|
|
512
|
-
font-family: ${e.typography.type.primary};
|
|
513
|
-
font-size: ${e.typography.text.sm};
|
|
514
|
-
gap: ${e.spacing[.5]};
|
|
515
|
-
justify-content: space-between;
|
|
516
|
-
line-height: ${e.spacing[1.25]};
|
|
517
|
-
padding: ${e.spacing[.25]} ${e.spacing[1]};
|
|
518
|
-
overflow: hidden;
|
|
519
|
-
text-overflow: ellipsis;
|
|
520
|
-
white-space: nowrap;
|
|
521
|
-
|
|
522
|
-
span {
|
|
523
|
-
color: ${e.palette.gray[700]};
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
&:hover {
|
|
527
|
-
background: ${e.palette.gray[100]};
|
|
528
|
-
}
|
|
529
|
-
|
|
530
|
-
&.selected {
|
|
531
|
-
background: ${e.palette.gray[200]};
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
&.disabled {
|
|
535
|
-
color: ${e.palette.gray[400]};
|
|
536
|
-
cursor: not-allowed;
|
|
537
|
-
}
|
|
538
|
-
`}
|
|
539
|
-
`,Ze=({item:e,state:i})=>{const n=g.useRef(null),{optionProps:r,isSelected:a,isFocused:s,isDisabled:l}=o.$293f70390ea03370$export$497855f14858aa34({key:e.value},i,n),c=[a?"selected":"",s?"focused":"",l?"disabled":""].join(" ");return t.jsxs(zi,{...r,className:c,ref:n,children:[e.name,a?t.jsx(v,{icon:"check",iconSize:"xxs",iconType:"fa-light"}):void 0]})},Ne=({htmlFor:e,label:i,required:n,tooltip:r,weight:a="normal"})=>{const s=o.nt(),l=`${e}-tooltip`,c=r!==void 0&&!o.lodashExports.isEmpty(r);return t.jsxs("label",{className:`flex font-${a} gap-1 w-full`,htmlFor:e,children:[i,n&&t.jsx(v,{icon:"asterisk",iconColor:s.palette.error[500],iconSize:"xxss"}),c?t.jsx(B,{display:"inline-flex",icon:"circle-info",id:l,place:"top",tip:r}):null]})},Ii=o.dt.div`
|
|
540
|
-
${({theme:e})=>`
|
|
541
|
-
align-items: flex-start;
|
|
542
|
-
display: inline-flex;
|
|
543
|
-
flex-direction: column;
|
|
544
|
-
gap: ${e.spacing[.25]};
|
|
545
|
-
position: relative;
|
|
546
|
-
width: 100%;
|
|
547
|
-
|
|
548
|
-
label {
|
|
549
|
-
color: ${e.palette.gray[800]};
|
|
550
|
-
}
|
|
551
|
-
|
|
552
|
-
&:has(input.date-input) {
|
|
553
|
-
div {
|
|
554
|
-
padding-right: 0;
|
|
555
|
-
}
|
|
556
|
-
}
|
|
557
|
-
|
|
558
|
-
&:has(input[type="file"]) {
|
|
559
|
-
div {
|
|
560
|
-
border-right: unset;
|
|
561
|
-
padding-right: 0;
|
|
562
|
-
|
|
563
|
-
&:hover, &:focus-within {
|
|
564
|
-
border-right: unset;
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
}
|
|
568
|
-
|
|
569
|
-
> *:not(.error-msg) {
|
|
570
|
-
font-family: ${e.typography.type.primary};
|
|
571
|
-
font-size: ${e.typography.text.sm};
|
|
572
|
-
font-style: normal;
|
|
573
|
-
font-weight: ${e.typography.weight.regular};
|
|
574
|
-
line-height: ${e.spacing[1.25]};
|
|
575
|
-
}
|
|
576
|
-
`}
|
|
577
|
-
`,O=o.dt.div`
|
|
578
|
-
${({theme:e})=>`
|
|
579
|
-
align-items: center;
|
|
580
|
-
display: flex;
|
|
581
|
-
border-radius: ${e.spacing[.5]};
|
|
582
|
-
border: 1px solid;
|
|
583
|
-
border-color: ${e.palette.gray[300]};
|
|
584
|
-
color: ${e.palette.gray[600]};
|
|
585
|
-
gap: ${e.spacing[.625]};
|
|
586
|
-
justify-content: space-between;
|
|
587
|
-
height: 40px;
|
|
588
|
-
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
589
|
-
width: 100%;
|
|
590
|
-
white-space: nowrap;
|
|
591
|
-
|
|
592
|
-
input, textarea {
|
|
593
|
-
background: inherit;
|
|
594
|
-
color: ${e.palette.gray[800]};
|
|
595
|
-
cursor: inherit;
|
|
596
|
-
outline: none;
|
|
597
|
-
resize: none;
|
|
598
|
-
width: 100%;
|
|
599
|
-
|
|
600
|
-
&::placeholder {
|
|
601
|
-
color: ${e.palette.gray[400]};
|
|
602
|
-
}
|
|
603
|
-
|
|
604
|
-
&:focus-visible {
|
|
605
|
-
outline: none;
|
|
606
|
-
}
|
|
607
|
-
|
|
608
|
-
&[type="number"] {
|
|
609
|
-
appearance: textfield;
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
&::-webkit-outer-spin-button,
|
|
613
|
-
&::-webkit-inner-spin-button {
|
|
614
|
-
appearance: none;
|
|
615
|
-
margin: 0;
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
|
|
619
|
-
input.date-input {
|
|
620
|
-
display: none;
|
|
621
|
-
width: 0;
|
|
622
|
-
}
|
|
623
|
-
|
|
624
|
-
&:has(textarea) {
|
|
625
|
-
align-items: start;
|
|
626
|
-
height: auto;
|
|
627
|
-
}
|
|
628
|
-
|
|
629
|
-
&:has(input[type="number"]) {
|
|
630
|
-
padding-right: 0;
|
|
631
|
-
}
|
|
632
|
-
|
|
633
|
-
textarea {
|
|
634
|
-
min-height: ${e.spacing[6]};
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
span:not(.action) {
|
|
638
|
-
font-size: 14px;
|
|
639
|
-
}
|
|
640
|
-
|
|
641
|
-
&.disabled {
|
|
642
|
-
background: ${e.palette.gray[100]};
|
|
643
|
-
color: ${e.palette.gray[400]};
|
|
644
|
-
cursor: not-allowed;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
|
-
&.error:not(.disabled) {
|
|
648
|
-
border: 1px solid ${e.palette.error[500]};
|
|
649
|
-
}
|
|
650
|
-
|
|
651
|
-
&:focus-within:not(.disabled, .error) {
|
|
652
|
-
background: ${e.palette.white};
|
|
653
|
-
border: 2px solid ${e.palette.black};
|
|
654
|
-
|
|
655
|
-
button.action-btn {
|
|
656
|
-
height: 36px;
|
|
657
|
-
width: 40px;
|
|
658
|
-
}
|
|
659
|
-
}
|
|
660
|
-
|
|
661
|
-
&:hover:not(:focus-within, .disabled, .error) {
|
|
662
|
-
background: ${e.palette.white};
|
|
663
|
-
border: 1px solid ${e.palette.gray[600]};
|
|
664
|
-
}
|
|
665
|
-
`}
|
|
666
|
-
`,{getVariant:Ti}=A(e=>({default:`
|
|
667
|
-
background-color: ${e.palette.gray[200]};
|
|
668
|
-
color: ${e.palette.gray[800]};
|
|
669
|
-
`,error:`
|
|
670
|
-
&.high {
|
|
671
|
-
background-color: ${e.palette.error[700]};
|
|
672
|
-
color: ${e.palette.white};
|
|
673
|
-
}
|
|
674
|
-
&.low {
|
|
675
|
-
background-color: ${e.palette.error[50]};
|
|
676
|
-
color: ${e.palette.error[700]};
|
|
677
|
-
}
|
|
678
|
-
&.medium {
|
|
679
|
-
background-color: ${e.palette.error[500]};
|
|
680
|
-
color: ${e.palette.error[50]};
|
|
681
|
-
}
|
|
682
|
-
`,inactive:`
|
|
683
|
-
background-color: ${e.palette.gray[200]};
|
|
684
|
-
color: ${e.palette.gray[600]};
|
|
685
|
-
`,info:`
|
|
686
|
-
&.high {
|
|
687
|
-
background-color: ${e.palette.info[700]};
|
|
688
|
-
color: ${e.palette.white};
|
|
689
|
-
}
|
|
690
|
-
&.low {
|
|
691
|
-
background-color: ${e.palette.info[50]};
|
|
692
|
-
color: ${e.palette.info[700]};
|
|
693
|
-
}
|
|
694
|
-
&.medium {
|
|
695
|
-
background-color: ${e.palette.info[500]};
|
|
696
|
-
color: ${e.palette.info[50]};
|
|
697
|
-
}
|
|
698
|
-
`,reachable:`
|
|
699
|
-
background-color: ${e.palette.gray[50]};
|
|
700
|
-
color: ${e.palette.gray[800]};
|
|
701
|
-
`,remediation:`
|
|
702
|
-
background-color: inherit;
|
|
703
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
704
|
-
color: ${e.palette.gray[400]};
|
|
705
|
-
`,role:`
|
|
706
|
-
background-color: ${e.palette.gray[800]};
|
|
707
|
-
color: ${e.palette.white};
|
|
708
|
-
`,success:`
|
|
709
|
-
&.high {
|
|
710
|
-
background-color: ${e.palette.success[700]};
|
|
711
|
-
color: ${e.palette.white};
|
|
712
|
-
}
|
|
713
|
-
&.low {
|
|
714
|
-
background-color: ${e.palette.success[50]};
|
|
715
|
-
color: ${e.palette.success[700]};
|
|
716
|
-
}
|
|
717
|
-
&.medium {
|
|
718
|
-
background-color: ${e.palette.success[500]};
|
|
719
|
-
color: ${e.palette.success[50]};
|
|
720
|
-
}
|
|
721
|
-
`,technique:`
|
|
722
|
-
--tag-padding-y: ${e.spacing[.25]};
|
|
723
|
-
--tag-padding-x: ${e.spacing[.75]};
|
|
724
|
-
|
|
725
|
-
background-color: inherit;
|
|
726
|
-
border: 1px solid ${e.palette.success[800]};
|
|
727
|
-
color: ${e.palette.success[800]};
|
|
728
|
-
`,warning:`
|
|
729
|
-
&.high {
|
|
730
|
-
background-color: ${e.palette.warning[600]};
|
|
731
|
-
color: ${e.palette.white};
|
|
732
|
-
}
|
|
733
|
-
&.low {
|
|
734
|
-
background-color: ${e.palette.warning[50]};
|
|
735
|
-
color: ${e.palette.warning[700]};
|
|
736
|
-
}
|
|
737
|
-
&.medium {
|
|
738
|
-
background-color: ${e.palette.warning[400]};
|
|
739
|
-
color: ${e.palette.warning[700]};
|
|
740
|
-
}
|
|
741
|
-
`})),Ri=o.dt.span`
|
|
742
|
-
${({theme:e,$fontSize:i=e.typography.text.xs,$variant:n})=>`
|
|
743
|
-
align-items: center;
|
|
744
|
-
border-radius: ${e.spacing[n==="technique"?1:.25]};
|
|
745
|
-
display: inline-flex;
|
|
746
|
-
gap: ${e.spacing[.25]};
|
|
747
|
-
font-family: ${e.typography.type.primary};
|
|
748
|
-
font-size: ${i};
|
|
749
|
-
font-style: normal;
|
|
750
|
-
font-weight: ${e.typography.weight.regular};
|
|
751
|
-
justify-content: center;
|
|
752
|
-
line-height: 18px;
|
|
753
|
-
padding: var(--tag-padding-y) var(--tag-padding-x);
|
|
754
|
-
white-space: nowrap;
|
|
755
|
-
width: max-content;
|
|
756
|
-
|
|
757
|
-
~ a {
|
|
758
|
-
font-size: ${e.typography.text.xs};
|
|
759
|
-
display: flex;
|
|
760
|
-
}
|
|
761
|
-
|
|
762
|
-
${Ti(e,n)}
|
|
763
|
-
`}
|
|
764
|
-
`,$e=({disabled:e,icon:i,iconColor:n="inherit",iconType:r="fa-light",id:a="close-tag",filterValues:s="",fontSize:l,href:c,linkLabel:d,onClose:p,priority:x="default",tagTitle:u="",tagLabel:f,variant:b="default"})=>{const $=f.length>25&&o.lodashExports.isEmpty(u+s),w=`${f.slice(0,25)}...`;return t.jsxs(xe,{className:"gap-0.5",display:c===void 0?"initial":"flex",size:"sm",children:[t.jsxs(Ri,{$fontSize:l,$variant:b,className:x,children:[i&&t.jsx(v,{icon:i,iconColor:n,iconSize:"xxs",iconType:r}),t.jsxs("span",{children:[t.jsx("strong",{children:u}),t.jsx("span",{children:$?w:f}),t.jsx("strong",{children:s})]}),p?t.jsx(E,{disabled:e,icon:"xmark",iconSize:"xxs",iconType:"fa-light",id:a,onClick:p,px:.125,py:.125,variant:"ghost"}):void 0]}),c===void 0?void 0:t.jsx(_,{href:c,children:d})]})},F=({children:e,error:i,helpLink:n,helpLinkText:r="Link here",helpText:a,htmlFor:s,label:l,maxLength:c,required:d,tooltip:p,value:x,weight:u})=>{const f=o.nt(),b=x?x.length:0;return t.jsxs(Ii,{children:[l===void 0?void 0:t.jsx(Ne,{htmlFor:s,label:l,required:d,tooltip:p,weight:u}),e,i||c?t.jsxs(h,{display:"flex",justify:i===void 0?"end":"space-between",width:"100%",children:[i&&t.jsx(m,{className:"error-msg",color:f.palette.error[500],display:"block",lineSpacing:1,size:"sm",children:i}),c&&t.jsx($e,{priority:"low",tagLabel:`${b}/${c}`,variant:"error"})]}):void 0,a||n?t.jsxs(h,{alignItems:"center",display:"flex",gap:.25,width:"100%",children:[a&&t.jsxs(t.Fragment,{children:[t.jsx(v,{icon:"circle-info",iconColor:f.palette.gray[400],iconSize:"xxs",iconType:"fa-light"}),t.jsx(m,{color:f.palette.gray[400],display:"inline-block",size:"sm",children:a})]}),n&&t.jsx(_,{href:n,children:r})]}):void 0]})},ce=({className:e,children:i,isFilter:n=!1,popoverRef:r,state:a,triggerRef:s,...l})=>{var u;const c=g.useRef(null),d=(u=s==null?void 0:s.current)==null?void 0:u.getBoundingClientRect(),{popoverProps:p}=o.$f2f8a6077418541e$export$542a6fd13ac93354({...l,popoverRef:r??c,triggerRef:s},a),x=g.useCallback(f=>{f.preventDefault()},[]);return t.jsx(o.$337b884510726a0d$export$c6fdb837b070b4ff,{children:t.jsx("div",{...p,className:e,onPointerDown:n?x:void 0,ref:r??c,style:{...p.style,...e==="dropdown"?{display:"flex",justifyContent:"center",width:d==null?void 0:d.width}:{}},children:i})})},Ni=g.forwardRef(function({disabled:i=!1,error:n,helpLink:r,helpLinkText:a,helpText:s,label:l,name:c,items:d,onChange:p,required:x,tooltip:u,value:f,weight:b,...$},w){const j=o.nt(),[y,S]=g.useState(f??""),[T,I]=g.useState(f),[M,D]=g.useState(d),{contains:G}=o.$bb77f239b46e8c72$export$3274cf84b703fff({sensitivity:"base"}),X=g.useRef(null),Z=g.useRef(null),de=g.useRef(null),P=g.useRef(null),L=g.useMemo(()=>d.map(N=>G(N.name,y)?t.jsx(o.$c1d7fb2ec91bae71$export$6d08773d2e66f8f2,{children:N.name},N.value):null),[G,y,d]),U=g.useCallback(N=>{S(N),I(q=>{const pe=N===""?"":q;return p==null||p(pe),pe}),D(d.filter(q=>G(q.name,N)))},[G,d,p]),je=g.useCallback(N=>{var q;N&&(S(((q=d.find(pe=>pe.value===N))==null?void 0:q.name)??""),I(String(N)),p==null||p(N),D(d))},[p,d]),H=o.$a9e7382a7d111cb5$export$b453a3bfd4a5fa9e({allowsEmptyCollection:!0,inputValue:y,items:M,shouldCloseOnBlur:!0,selectedKey:T,onInputChange:U,onSelectionChange:je,children:L}),{buttonProps:Wt,inputProps:Dt,listBoxProps:Lt}=o.$c350ade66beef0af$export$8c18d1b4f7232bbf({inputValue:y,items:M,buttonRef:X,id:c,inputRef:w,label:l,listBoxRef:Z,name:c,popoverRef:P},H),{listBoxProps:At}=o.$c132121280ec012d$export$50eacbbf140a3141(Lt,H,Z),{buttonProps:Bt}=o.$701a24aa0da5b062$export$ea18c227d4417cc3(Wt,X);return t.jsxs(F,{error:n,helpLink:r,helpLinkText:a,helpText:s,htmlFor:c,label:l,required:x,tooltip:u,weight:b,children:[t.jsxs(O,{className:`${i?"disabled":""} ${n?"error":""}`,ref:de,children:[t.jsx("input",{...Dt,...$,"aria-invalid":n?"true":"false",ref:w}),n?t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:j.palette.error[500],iconSize:"xs"}):void 0,t.jsx(E,{...Bt,className:"action",icon:H.isOpen?"chevron-up":"chevron-down",iconColor:j.palette.gray[400],iconSize:"xxs",iconType:"fa-light",px:.125,py:.125,ref:X,variant:"ghost"})]}),H.isOpen&&H.collection.size>0&&!i?t.jsx(ce,{className:"dropdown",offset:4,placement:"bottom start",popoverRef:P,state:H,triggerRef:de,children:t.jsx(Si,{...At,ref:Z,children:M.map(N=>t.jsx(Ze,{item:N,state:H},N.value))})}):null]})}),Ei=o.dt.div`
|
|
765
|
-
${({theme:e})=>`
|
|
766
|
-
align-items: center;
|
|
767
|
-
color: ${e.palette.gray[800]};
|
|
768
|
-
display: flex;
|
|
769
|
-
font-family: ${e.typography.type.primary};
|
|
770
|
-
font-size: ${e.typography.text.sm};
|
|
771
|
-
font-weight: ${e.typography.weight.bold};
|
|
772
|
-
gap: ${e.spacing[.5]};
|
|
773
|
-
height: 40px;
|
|
774
|
-
justify-content: center;
|
|
775
|
-
line-height: ${e.spacing[1.25]};
|
|
776
|
-
text-align: center;
|
|
777
|
-
padding: ${e.spacing[.5]} 0;
|
|
778
|
-
width: 200px;
|
|
779
|
-
word-spacing: ${e.spacing[.25]};
|
|
780
|
-
|
|
781
|
-
&:not(:hover) .year-selection {
|
|
782
|
-
display: none;
|
|
783
|
-
}
|
|
784
|
-
`}
|
|
785
|
-
`,Pi=o.dt.div.attrs({className:"year-selection"})`
|
|
786
|
-
align-items: flex-start;
|
|
787
|
-
display: flex;
|
|
788
|
-
flex-direction: column;
|
|
789
|
-
gap: 6px;
|
|
790
|
-
height: 14px;
|
|
791
|
-
justify-content: center;
|
|
792
|
-
margin-bottom: 10px;
|
|
793
|
-
padding: 0 0.5px;
|
|
794
|
-
position: relative;
|
|
795
|
-
width: 8px;
|
|
796
|
-
`,We=o.dt.tr`
|
|
797
|
-
align-items: flex-start;
|
|
798
|
-
display: flex;
|
|
799
|
-
padding: ${({theme:e})=>e.spacing[.25]} 0;
|
|
800
|
-
width: 100%;
|
|
801
|
-
`,Ye=o.lt`
|
|
802
|
-
${({theme:e})=>`
|
|
803
|
-
align-items: center;
|
|
804
|
-
color: ${e.palette.gray[800]};
|
|
805
|
-
cursor: pointer;
|
|
806
|
-
display: flex;
|
|
807
|
-
flex-direction: column;
|
|
808
|
-
font-family: ${e.typography.type.primary};
|
|
809
|
-
font-size: ${e.typography.text.sm};
|
|
810
|
-
font-weight: ${e.typography.weight.regular};
|
|
811
|
-
height: ${e.spacing[2.5]};
|
|
812
|
-
justify-content: center;
|
|
813
|
-
line-height: ${e.spacing[1.25]};
|
|
814
|
-
text-align: center;
|
|
815
|
-
width: ${e.spacing[2.5]};
|
|
816
|
-
`}
|
|
817
|
-
`,Fi=o.dt.th`
|
|
818
|
-
${Ye}
|
|
819
|
-
`,Wi=o.dt.td`
|
|
820
|
-
${({theme:e})=>`
|
|
821
|
-
${Ye}
|
|
822
|
-
height: ${e.spacing[2.5]};
|
|
823
|
-
width: ${e.spacing[2.5]};
|
|
824
|
-
|
|
825
|
-
&#range {
|
|
826
|
-
background: ${e.palette.primary[25]};
|
|
827
|
-
}
|
|
828
|
-
|
|
829
|
-
div:not(.dot) {
|
|
830
|
-
align-items: center;
|
|
831
|
-
display: flex;
|
|
832
|
-
flex-direction: column;
|
|
833
|
-
font-size: ${e.typography.text.sm};
|
|
834
|
-
justify-content: center;
|
|
835
|
-
height: ${e.spacing[2.5]};
|
|
836
|
-
line-height: ${e.spacing[1.25]};
|
|
837
|
-
position: relative;
|
|
838
|
-
text-align: center;
|
|
839
|
-
width: ${e.spacing[2.5]};
|
|
840
|
-
|
|
841
|
-
&:focus-visible {
|
|
842
|
-
outline: none;
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
&:hover:not(.disabled, .selected, .range) {
|
|
846
|
-
background: ${e.palette.gray[100]};
|
|
847
|
-
}
|
|
848
|
-
|
|
849
|
-
&.disabled {
|
|
850
|
-
color: ${e.palette.gray[400]};
|
|
851
|
-
cursor: auto;
|
|
852
|
-
}
|
|
853
|
-
|
|
854
|
-
&.selected {
|
|
855
|
-
background: ${e.palette.primary[500]};
|
|
856
|
-
color: ${e.palette.white};
|
|
857
|
-
}
|
|
858
|
-
|
|
859
|
-
&.focused {
|
|
860
|
-
border: 2px solid ${e.palette.primary[500]};
|
|
861
|
-
}
|
|
862
|
-
|
|
863
|
-
&.today:not(.selected) {
|
|
864
|
-
color: ${e.palette.primary[500]};
|
|
865
|
-
font-weight: ${e.typography.weight.bold};
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
`}
|
|
869
|
-
`,Di=o.dt.div.attrs({className:"dot"})`
|
|
870
|
-
position: absolute;
|
|
871
|
-
top: 48%;
|
|
872
|
-
|
|
873
|
-
> span {
|
|
874
|
-
font-size: 4px;
|
|
875
|
-
}
|
|
876
|
-
`,De=o.dt.button`
|
|
877
|
-
cursor: pointer;
|
|
878
|
-
display: flex;
|
|
879
|
-
|
|
880
|
-
> span {
|
|
881
|
-
height: 3.5px;
|
|
882
|
-
width: 7px;
|
|
883
|
-
}
|
|
884
|
-
`,Ee=o.dt.div`
|
|
885
|
-
${({theme:e})=>`
|
|
886
|
-
align-items: end;
|
|
887
|
-
border-top: 1px solid ${e.palette.gray[200]};
|
|
888
|
-
display: flex;
|
|
889
|
-
flex-direction: row-reverse;
|
|
890
|
-
gap: ${e.spacing[.5]};
|
|
891
|
-
height: 44px;
|
|
892
|
-
margin-bottom: ${e.spacing[.25]};
|
|
893
|
-
padding: 0 ${e.spacing[.25]};
|
|
894
|
-
width: 100%;
|
|
895
|
-
`}
|
|
896
|
-
`,Je=({state:e,date:i})=>{const n=g.useRef(null),r=o.$14e0f24ef4ac5c92$export$629b0a497aa65267(i,o.$14e0f24ef4ac5c92$export$aa8b41735afcabd2()),{cellProps:a,buttonProps:s,isSelected:l,isDisabled:c,formattedDate:d}=o.$36a0ac60f04457c5$export$136073280381448e({date:i},e,n),p="highlightedRange"in e&&!o.lodashExports.isNull(e.highlightedRange)?o.$14e0f24ef4ac5c92$export$ea39ec197993aef0(i,e.highlightedRange.start):l,x="highlightedRange"in e&&!o.lodashExports.isNull(e.highlightedRange)?o.$14e0f24ef4ac5c92$export$ea39ec197993aef0(i,e.highlightedRange.end):l,u=l&&!c&&!(p||x)?"range":"";return t.jsx(Wi,{id:u,...a,children:t.jsxs("div",{...s,className:`cell ${p||x?"selected":""}
|
|
897
|
-
${c?"disabled":""} ${r?"today":""}
|
|
898
|
-
${!e.isFocused&&!r?"focused":""} ${u}`,ref:n,children:[d,r?t.jsx(Di,{children:t.jsx(v,{clickable:!1,icon:"circle",iconSize:"xxs"})}):void 0]})})},ye=({state:e,...i})=>{const{locale:n}=o.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),{weekDays:r}=o.$e3031d1f8c9d64eb$export$cb95147730a423f5(i,e),a=o.$14e0f24ef4ac5c92$export$ccc1b2479e7dd654(e.visibleRange.start,n);return t.jsxs("table",{children:[t.jsx("thead",{children:t.jsx(We,{children:r.map((s,l)=>{const c=`key_${l}`;return t.jsx(Fi,{children:s},c)})})}),t.jsx("tbody",{children:[...new Array(a).keys()].map(s=>t.jsx(We,{children:e.getDatesInWeek(s).map((l,c)=>{const d=`key_${c}`;return l?t.jsx(Je,{date:l,state:e},d):t.jsx("td",{},d)})},s))})]})},Li=o.dt(Te)`
|
|
899
|
-
align-items: center;
|
|
900
|
-
background-color: inherit;
|
|
901
|
-
border-color: inherit;
|
|
902
|
-
display: flex;
|
|
903
|
-
height: 38px;
|
|
904
|
-
justify-content: center;
|
|
905
|
-
width: 40px;
|
|
906
|
-
margin: ${({$margin:e="0"})=>o.lt`
|
|
907
|
-
${e}
|
|
908
|
-
`};
|
|
909
|
-
|
|
910
|
-
&:hover:not(:disabled) {
|
|
911
|
-
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
912
|
-
cursor: pointer;
|
|
913
|
-
}
|
|
914
|
-
`,Ai=o.dt.div`
|
|
915
|
-
${({theme:e})=>`
|
|
916
|
-
align-items: flex-start;
|
|
917
|
-
background: ${e.palette.white};
|
|
918
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
919
|
-
border-radius: ${e.spacing[.5]};
|
|
920
|
-
box-shadow: ${e.shadows.md};
|
|
921
|
-
display: inline-flex;
|
|
922
|
-
flex-direction: column;
|
|
923
|
-
gap: ${e.spacing[.25]};
|
|
924
|
-
height: auto;
|
|
925
|
-
padding: ${e.spacing[.25]};
|
|
926
|
-
width: 292px;
|
|
927
|
-
`}
|
|
928
|
-
`,Bi=o.dt.button`
|
|
929
|
-
${({theme:e,$disabled:i,$focus:n,$header:r})=>{const a=n?"34px":"40px";return`
|
|
930
|
-
align-items: center;
|
|
931
|
-
border-radius: ${r?`0 ${e.spacing[.5]} ${e.spacing[.5]} 0`:"4px"};
|
|
932
|
-
border-left: inherit;
|
|
933
|
-
display: flex;
|
|
934
|
-
height: ${r?"38px":a};
|
|
935
|
-
justify-content: center;
|
|
936
|
-
outline: none;
|
|
937
|
-
width: ${r?"38px":"40px"};
|
|
938
|
-
|
|
939
|
-
&:hover {
|
|
940
|
-
background-color: ${e.palette.gray[i?500:100]};
|
|
941
|
-
}
|
|
942
|
-
`}}
|
|
943
|
-
`,Mi=o.dt.div`
|
|
944
|
-
${({theme:e})=>`
|
|
945
|
-
align-items: center;
|
|
946
|
-
background: transparent;
|
|
947
|
-
border-radius: ${e.spacing[.5]} 0 0 ${e.spacing[.5]};
|
|
948
|
-
border-color: inherit;
|
|
949
|
-
display: flex;
|
|
950
|
-
height: 100%;
|
|
951
|
-
justify-content: space-between;
|
|
952
|
-
width: calc(100% - 40px);
|
|
953
|
-
`}
|
|
954
|
-
`,Oi=o.dt.div`
|
|
955
|
-
align-items: center;
|
|
956
|
-
display: flex;
|
|
957
|
-
justify-content: flex-end;
|
|
958
|
-
gap: ${({theme:e})=>e.spacing[.5]};
|
|
959
|
-
flex: 1 0 0;
|
|
960
|
-
`,Le=o.dt.div`
|
|
961
|
-
${({theme:e})=>`
|
|
962
|
-
align-items: center;
|
|
963
|
-
align-self: stretch;
|
|
964
|
-
background-color: ${e.palette.gray[200]};
|
|
965
|
-
border-radius: ${e.spacing[.25]};
|
|
966
|
-
display: flex;
|
|
967
|
-
font-family: ${e.typography.type.primary};
|
|
968
|
-
gap: ${e.spacing[.25]};
|
|
969
|
-
line-height: ${e.spacing[1.5]};
|
|
970
|
-
padding: 2px ${e.spacing[.25]};
|
|
971
|
-
`}
|
|
972
|
-
`,Ae=o.dt.button`
|
|
973
|
-
${({theme:e})=>`
|
|
974
|
-
align-items: center;
|
|
975
|
-
background-color: inherit;
|
|
976
|
-
border: 0.5px solid ${e.palette.gray[200]};
|
|
977
|
-
border-radius: 7px;
|
|
978
|
-
color: ${e.palette.gray[800]};
|
|
979
|
-
cursor: pointer;
|
|
980
|
-
display: flex;
|
|
981
|
-
font-weight: ${e.typography.weight.regular};
|
|
982
|
-
justify-content: center;
|
|
983
|
-
gap: 10px;
|
|
984
|
-
padding: 2px 10px;
|
|
985
|
-
|
|
986
|
-
&#active {
|
|
987
|
-
background-color: ${e.palette.white};
|
|
988
|
-
box-shadow: ${e.shadows.md};
|
|
989
|
-
font-weight: ${e.typography.weight.bold};
|
|
990
|
-
}
|
|
991
|
-
`}
|
|
992
|
-
`,ue=({disabled:e=!1,icon:i,props:n})=>{const r=g.useRef(null),{buttonProps:a}=o.$701a24aa0da5b062$export$ea18c227d4417cc3(n,r);return t.jsx(Bi,{...a,$disabled:e,$focus:!!a["aria-expanded"],$header:i==="calendar"||i==="calendar-clock",disabled:e,ref:r,type:"button",children:t.jsx(v,{icon:i,iconColor:k.palette.gray[e?400:700],iconSize:"xs",iconType:"fa-light"})})},me=({state:e,prevButtonProps:i,nextButtonProps:n,title:r})=>{const a=e.focusedDate,s=g.useCallback(()=>{e.setFocusedDate(a.add({years:1}))},[a,e]),l=g.useCallback(()=>{e.setFocusedDate(a.subtract({years:1}))},[a,e]);return t.jsxs("div",{className:"header flex items-start",children:[t.jsx(ue,{icon:"chevron-left",props:i}),t.jsxs(Ei,{children:[r,t.jsxs(Pi,{children:[t.jsx(De,{"aria-label":"top",onClick:s,children:t.jsx(v,{icon:"caret-up",iconClass:"fa-sharp",iconSize:"xxss"})}),t.jsx(De,{"aria-label":"bottom",onClick:l,children:t.jsx(v,{icon:"caret-down",iconClass:"fa-sharp",iconSize:"xxss"})})]})]}),t.jsx(ue,{icon:"chevron-right",props:n})]})},Qe=({onClose:e,props:i})=>{const{locale:n}=o.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=o.$131cf43a05231e1e$export$6d095e787d2b5e1f({...i,createCalendar:o.$64244302c3013299$export$dd0bbc9b26defe37,locale:n}),{prevButtonProps:a,nextButtonProps:s,title:l}=o.$9942cad8a072a530$export$3ee915f8151bd4f1(i,r);return t.jsxs("div",{className:"calendar",children:[t.jsx(me,{nextButtonProps:s,prevButtonProps:a,state:r,title:l}),t.jsx(ye,{state:r}),t.jsx(Ee,{children:t.jsx(z,{onClick:e,variant:"ghost",children:"Cancel"})})]})},et=({segment:e,state:i})=>{const n=o.nt(),r=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}=o.$32489daedd52963e$export$1315d136e6f7581(s,i,r),c=n.palette.gray[s.isEditable?800:500];return t.jsx("div",{...s.type!=="literal"&&{...l,className:"segment-cell"},ref:r,style:s.type==="literal"?void 0:{color:s.isPlaceholder?n.palette.gray[400]:c},children:s.isPlaceholder?s.placeholder:s.text})},tt=({disabled:e,error:i=!1,props:n})=>{const r=o.nt(),a=g.useRef(null),s=o.$3c0fc76039f1c516$export$60e84778edff6d26({...n,createCalendar:o.$64244302c3013299$export$dd0bbc9b26defe37,locale:"en-US"}),{fieldProps:l}=o.$16f0b7bb276bc17e$export$5591b0b878c1a989(n,s,a),c=g.useCallback(d=>{const p=document.getElementsByClassName("segment-cell"),x=d.currentTarget;Object.values(p).some(u=>u.contains(x))||(d.preventDefault(),d.stopPropagation())},[]);return t.jsxs(Mi,{...l,onClick:c,children:[t.jsx("div",{className:"flex flex-row",style:{color:r.palette.gray[o.lodashExports.isNil(s.value)?400:800]},tabIndex:-1,children:s.segments.map((d,p)=>{const x=`key_${p}`;return t.jsx(et,{segment:{...d,isEditable:!e},state:s},x)})}),i?t.jsx(v,{icon:"exclamation-circle",iconColor:r.palette.error[500],iconSize:"xs"}):void 0]})},it=e=>{const i=g.useRef(null),n=o.$eff5d8ee529ac4bb$export$fd53cef0cc796101({...e,locale:"en-US",shouldForceLeadingZeros:!0}),{timeValue:r}=n,a=!o.lodashExports.isNil(r)&&r.hour<12?"AM":"PM",[s,l]=g.useState(o.lodashExports.isNil(r)?"AM":a),{fieldProps:c}=o.$16f0b7bb276bc17e$export$4c842f6a241dc825(e,n,i),d=g.useCallback(p=>{const x=p.currentTarget.name;x!==s&&(o.lodashExports.isNil(r)||(x==="AM"?n.setSegment("dayPeriod",0):x==="PM"&&n.setSegment("dayPeriod",12))),l(x)},[s,n,r]);return t.jsxs(Oi,{children:[t.jsx(Le,{...c,ref:i,children:n.segments.slice(0,-2).map((p,x)=>{const u=`key_${x}`;return t.jsx(et,{segment:p,state:n},u)})}),t.jsxs(Le,{children:[t.jsx(Ae,{id:s==="AM"?"active":"",name:"AM",onClick:d,type:"button",children:"AM"}),t.jsx(Ae,{id:s==="PM"?"active":"",name:"PM",onClick:d,type:"button",children:"PM"})]})]})},Q=({error:e,buttonProps:i,datePickerRef:n,disabled:r=!1,granularity:a="day",fieldProps:s,groupProps:l,inputRef:c,name:d,...p})=>t.jsxs(O,{...l,className:`${r?"disabled":""} ${e?"error":""}`,ref:n,children:[t.jsx(tt,{disabled:r,error:e!=null,props:{...s,autoFocus:!1,granularity:a,shouldForceLeadingZeros:!0}}),t.jsx(ue,{disabled:r,icon:a==="minute"?"calendar-clock":"calendar",props:i}),t.jsx("input",{...p,"aria-label":d,className:"date-input",disabled:r,name:d,ref:c,type:"text",value:""})]}),we=({children:e,...i})=>{const n=g.useRef(null),{dialogProps:r}=o.$40df3f8667284809$export$d55e7ee900f34e93(i,n);return t.jsx(Ai,{...r,ref:n,children:e})},nt=g.forwardRef(function({disabled:i=!1,error:n,required:r,label:a,name:s,tooltip:l,value:c,...d},p){const x=g.useRef(null),u=o.$ab5bf3f618090389$export$87194bb378cc3ac2(d),{close:f}=u,{groupProps:b,fieldProps:$,buttonProps:w,dialogProps:j,calendarProps:y}=o.$6057a3d2a53a12fd$export$42df105a73306d51({...d,"aria-label":a??s},u,x);return t.jsxs(F,{error:n,htmlFor:s,label:a,required:r,tooltip:l,children:[t.jsx(Q,{buttonProps:w,datePickerRef:x,disabled:i,error:n,fieldProps:o._.isNil(c)||o._.isEmpty(c)||c==="-"?$:{...$,value:o.$fae977aafc393c5c$export$6b862160d295c8e(c.replace(/\//gu,"-"))},groupProps:b,inputRef:p,name:s}),u.isOpen&&!i?t.jsx(ce,{offset:8,placement:"bottom start",state:u,triggerRef:x,children:t.jsx(we,{...j,children:t.jsx(Qe,{onClose:f,props:{...y}})})}):null]})}),at=({onClose:e,props:i})=>{const{locale:n}=o.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),r=g.useRef(null),a=o.$9a36b6ba2fb1a7c5$export$9a987164d97ecc90({...i,createCalendar:o.$64244302c3013299$export$dd0bbc9b26defe37,locale:n}),{prevButtonProps:s,nextButtonProps:l,title:c}=o.$46a4342aab3d8076$export$87e0539f600c24e5(i,a,r);return t.jsxs("div",{className:"calendar-range",ref:r,children:[t.jsx(me,{nextButtonProps:l,prevButtonProps:s,state:a,title:c}),t.jsx(ye,{state:a}),t.jsx(Ee,{children:t.jsx(z,{onClick:e,variant:"ghost",children:"Cancel"})})]})},Hi=o.dt.div`
|
|
993
|
-
${({theme:e,$disabled:i,$show:n})=>`
|
|
994
|
-
border-color: ${n?e.palette.error[500]:e.palette.gray[300]};
|
|
995
|
-
display: flex;
|
|
996
|
-
gap: ${e.spacing[.25]};
|
|
997
|
-
width: 100%;
|
|
998
|
-
|
|
999
|
-
~ div {
|
|
1000
|
-
background: ${i?e.palette.gray[200]:e.palette.white};
|
|
1001
|
-
}
|
|
1002
|
-
`}
|
|
1003
|
-
`,_i=g.forwardRef(function({disabled:i=!1,error:n,label:r,name:a,required:s,tooltip:l,...c},d){const p=g.useRef(null),x=o.$93c38a5e28be6249$export$e50a61c1de9f574(c),{close:u}=x,f=`min${a}`,b=`max${a}`,{groupProps:$,startFieldProps:w,endFieldProps:j,buttonProps:y,dialogProps:S,calendarProps:T}=o.$887cac91b7cc8801$export$12fd5f0e9f4bb192(c,x,p);return t.jsxs(F,{error:n,htmlFor:a,label:r,required:s,tooltip:l,children:[t.jsxs(Hi,{$disabled:i,$show:n!==void 0,ref:p,children:[t.jsx(Q,{buttonProps:y,datePickerRef:p,disabled:i,error:n,fieldProps:{...w,"aria-label":`${w["aria-label"]} ${a}`,validate:I=>j.value&&I>j.value?"Start date must be less than or equal to end date":null},groupProps:$,inputRef:d,name:f}),t.jsx(Q,{buttonProps:y,datePickerRef:p,disabled:i,error:n,fieldProps:{...j,"aria-label":`${j["aria-label"]} ${a}`,validate:I=>w.value&&I<w.value?"End date must be greater than or equal to start date":null},groupProps:$,inputRef:d,name:b})]}),x.isOpen&&!i?t.jsx(ce,{offset:8,placement:"bottom start",state:x,triggerRef:p,children:t.jsx(we,{...S,children:t.jsx(at,{onClose:u,props:{...T}})})}):null]})}),Vi=o.dt.div`
|
|
1004
|
-
${({theme:e})=>`
|
|
1005
|
-
align-items: center;
|
|
1006
|
-
border-top: 1px solid ${e.palette.gray[200]};
|
|
1007
|
-
display: flex;
|
|
1008
|
-
gap: ${e.spacing[1.5]};
|
|
1009
|
-
justify-content: center;
|
|
1010
|
-
padding: ${e.spacing[.5]} ${e.spacing[1.25]};
|
|
1011
|
-
`}
|
|
1012
|
-
`,Gi=o.dt.div`
|
|
1013
|
-
align-items: center;
|
|
1014
|
-
display: flex;
|
|
1015
|
-
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1016
|
-
justify-content: flex-end;
|
|
1017
|
-
flex: 1 0 0;
|
|
1018
|
-
`,rt=({handleTimeChange:e,onClose:i,props:n,timeState:r})=>{const a=o.nt(),{locale:s}=o.$18f2051aff69b9bf$export$43bb16f9c6d9e3f7(),l=o.$131cf43a05231e1e$export$6d095e787d2b5e1f({...n,createCalendar:o.$64244302c3013299$export$dd0bbc9b26defe37,locale:s}),{prevButtonProps:c,nextButtonProps:d,title:p}=o.$9942cad8a072a530$export$3ee915f8151bd4f1(n,l);return t.jsxs("div",{className:"calendar",children:[t.jsx(me,{nextButtonProps:d,prevButtonProps:c,state:l,title:p}),t.jsx(ye,{state:l}),t.jsxs(Vi,{children:[t.jsx(m,{color:a.palette.gray[800],fontWeight:"bold",size:"sm",children:"Time"}),t.jsx(Gi,{children:t.jsx(it,{hourCycle:12,label:"time-field",onChange:e,value:r.timeValue})})]}),t.jsx(Ee,{children:t.jsx(z,{onClick:i,variant:"ghost",children:"Cancel"})})]})},Ui=g.forwardRef(function(i,n){const r=g.useRef(null),a=o.$ab5bf3f618090389$export$87194bb378cc3ac2({...i,granularity:"minute",hourCycle:12,shouldCloseOnSelect:!1}),{close:s}=a,{disabled:l=!1,error:c,required:d,label:p,name:x,tooltip:u}=i,{groupProps:f,fieldProps:b,buttonProps:$,dialogProps:w,calendarProps:j}=o.$6057a3d2a53a12fd$export$42df105a73306d51(i,a,r),y=g.useCallback(S=>{S&&a.setTimeValue(S)},[a]);return t.jsxs(F,{error:c,htmlFor:x,label:p,required:d,tooltip:u,children:[t.jsx(Q,{buttonProps:$,datePickerRef:r,disabled:l,error:c,fieldProps:b,granularity:"minute",groupProps:f,inputRef:n,name:x}),a.isOpen&&!l?t.jsx(ce,{offset:8,placement:"bottom start",state:a,triggerRef:r,children:t.jsx(we,{...w,children:t.jsx(rt,{handleTimeChange:y,onClose:s,props:{...j},timeState:a})})}):null]})}),qi=({children:e,currentValue:i,externalLink:n,isEditing:r,label:a,name:s,tooltip:l})=>{if(r)return t.jsx("div",{children:e});const c=o.lodashExports.isNil(i)?"":i,d=String(n??c);return t.jsxs(h,{children:[t.jsx(Ne,{htmlFor:s,label:a,tooltip:l,weight:"bold"}),d.startsWith("https://")?t.jsx(_,{href:d,children:c}):t.jsx(m,{size:"md",children:c})]})},ot=g.forwardRef(function({disabled:i=!1,hasIcon:n=!1,helpLink:r,helpLinkText:a,helpText:s,error:l,label:c,name:d,maskValue:p=!1,required:x,tooltip:u,type:f="text",weight:b,...$},w){const j=o.nt();return t.jsx(F,{error:l,helpLink:r,helpLinkText:a,helpText:s,htmlFor:d,label:c,required:x,tooltip:u,weight:b,children:t.jsxs(O,{className:`${i?"disabled":""} ${l?"error":""}`,children:[n?t.jsx(v,{icon:"user",iconSize:"sm",iconType:"fa-light"}):void 0,t.jsx("input",{"aria-hidden":!1,"aria-invalid":l?"true":"false","aria-label":d,"aria-required":x,autoComplete:"off",className:p?"sr-block":"","data-testid":`${d}-input`,disabled:i,id:d,name:d,ref:w,type:f,...$}),l?t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:j.palette.error[500],iconSize:"xs"}):void 0]})})}),Ki=o.dt(Ge)`
|
|
1019
|
-
white-space: nowrap;
|
|
1020
|
-
margin-right: ${({theme:e})=>e.spacing[.25]};
|
|
1021
|
-
text-overflow: ellipsis;
|
|
1022
|
-
overflow: hidden;
|
|
1023
|
-
max-width: 80%;
|
|
1024
|
-
`,Xi=o.dt.input`
|
|
1025
|
-
opacity: 0;
|
|
1026
|
-
position: absolute;
|
|
1027
|
-
visibility: hidden;
|
|
1028
|
-
width: 0;
|
|
1029
|
-
`,Zi=e=>{const i=e;return i?Array.from(i).map(n=>n.name).join(", "):""},Yi=g.forwardRef(function({accept:i,disabled:n=!1,error:r,label:a,helpLink:s,helpText:l,id:c,multiple:d,name:p,required:x,tooltip:u,weight:f,value:b,...$},w){const j=o.nt(),y=Zi(b);return t.jsxs(F,{error:r,helpLink:s,helpText:l,htmlFor:p,label:a,required:x,tooltip:u,weight:f,children:[t.jsxs(O,{className:`${n?"disabled":""} ${r?"error":""}`,children:[t.jsx(Ki,{$size:"xs",children:y}),t.jsxs(h,{display:"flex",gap:.5,children:[o.lodashExports.isEmpty(y)?void 0:t.jsx(E,{color:j.palette.gray[400],height:"20px",icon:"xmark",iconSize:"lg",iconType:"fa-light",variant:"ghost",width:"20px"}),r&&t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:j.palette.error[500],iconSize:"xs"})]}),t.jsxs(z,{border:n?`1px solid ${j.palette.gray[300]} !important`:"",borderRadius:"0px 8px 8px 0px !important",disabled:n,height:"40px",variant:"primary",width:"96px",children:[t.jsx(v,{icon:"search",iconSize:"sm",mr:.5}),"Add file"]})]}),t.jsx(Xi,{accept:i,"aria-label":p,"data-testid":p,disabled:n,id:c,multiple:d,name:p,ref:w,required:void 0,type:"file",value:void 0,...$})]})}),Ji=o.dt.input`
|
|
1030
|
-
border: none;
|
|
1031
|
-
background: transparent;
|
|
1032
|
-
min-width: 15rem;
|
|
1033
|
-
padding: 0;
|
|
1034
|
-
flex: 1;
|
|
1035
|
-
`,Qi=g.forwardRef(function({disabled:i=!1,error:n,label:r,name:a="input-tag",onChange:s,placeholder:l,required:c,tooltip:d,weight:p,value:x,...u},f){const b=g.useMemo(()=>x&&typeof x=="string"?x.split(",").filter(Boolean):[],[x]);return t.jsx(F,{error:n,htmlFor:a,label:r,required:c,tooltip:d,weight:p,children:t.jsxs(O,{className:`${i?"disabled":""} ${n?"error":""}`,children:[b.map($=>t.jsx($e,{disabled:i,tagLabel:$},$)),t.jsx(Ji,{"aria-hidden":!1,"aria-invalid":n?"true":"false","aria-label":a,"aria-required":c,autoComplete:"off",disabled:i,name:a,onChange:s,placeholder:b.length===0?l:void 0,ref:f,type:"text",value:x,...u})]})})}),ve=g.forwardRef(function({disabled:i,icon:n,margin:r,onClick:a,...s},l){return t.jsx(Li,{$margin:r,"aria-label":n,className:"action-btn",disabled:i,onClick:a,ref:l,type:"button",...s,children:t.jsx(v,{icon:n,iconClass:"action",iconSize:"xs",iconType:"fa-light"})})}),fe=({error:e,decimalPlaces:i=0,disabled:n=!1,max:r=1/0,min:a=0,name:s="input-number",placeholder:l,ref:c,required:d,value:p,...x})=>{const u=o.nt(),f=g.useMemo(()=>i<0?0:i,[i]);return t.jsxs(O,{className:`${n?"disabled":""} ${e?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":e?"true":"false","aria-label":s,"aria-required":d,autoComplete:"off",disabled:n,max:r,min:a,placeholder:l,ref:c,required:void 0,step:10**-f,type:"number",value:/^-?\d+/u.test(String(p))?p:"",...x}),e&&t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}),t.jsx(ve,{borderLeft:"inherit",borderRight:"inherit",disabled:n,icon:"minus",margin:"0 -0.625rem 0 0",px:.75,py:.75}),t.jsx(ve,{borderRadius:`0 ${u.spacing[.5]} ${u.spacing[.5]} 0`,disabled:n,icon:"plus",px:.75,py:.75})]})},st=g.forwardRef(function({decimalPlaces:i,disabled:n=!1,error:r,helpLink:a,helpText:s,id:l,label:c,maxLength:d,max:p,min:x,name:u,onChange:f,placeholder:b,required:$,tooltip:w,weight:j,...y},S){return t.jsx(F,{error:r,helpLink:a,helpText:s,htmlFor:u,label:c,maxLength:d,required:$,tooltip:w,weight:j,children:t.jsx(fe,{decimalPlaces:i,disabled:n,error:r,id:l,max:p,min:x,name:u,onChange:f,placeholder:b,ref:S,...y})})}),en=g.forwardRef(function({disabled:i=!1,error:n,name:r,label:a,propsMax:s,propsMin:l,required:c,tooltip:d},p){return t.jsx(F,{error:n,htmlFor:r,label:a,required:c,tooltip:d,children:t.jsxs(h,{display:"flex",gap:.25,width:"100%",children:[t.jsx(fe,{...l,disabled:i,error:n,ref:p}),t.jsx(fe,{...s,disabled:i,error:n,ref:p})]})})}),tn=o.dt.div`
|
|
1036
|
-
${({theme:e})=>`
|
|
1037
|
-
align-items: flex-start;
|
|
1038
|
-
align-self: stretch;
|
|
1039
|
-
display: flex;
|
|
1040
|
-
gap: ${e.spacing[.5]};
|
|
1041
|
-
|
|
1042
|
-
> button, div {
|
|
1043
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
1044
|
-
border-radius: ${e.spacing[.5]};
|
|
1045
|
-
}
|
|
1046
|
-
|
|
1047
|
-
&.disabled {
|
|
1048
|
-
> button, div {
|
|
1049
|
-
background: ${e.palette.gray[100]};
|
|
1050
|
-
color: ${e.palette.gray[400]};
|
|
1051
|
-
cursor: not-allowed;
|
|
1052
|
-
}
|
|
1053
|
-
}
|
|
1054
|
-
|
|
1055
|
-
&.error:not(.disabled) {
|
|
1056
|
-
> button, div {
|
|
1057
|
-
border: 1px solid ${e.palette.error[500]};
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
|
|
1061
|
-
&:focus-within:not(.disabled, .error) {
|
|
1062
|
-
> button, div {
|
|
1063
|
-
background: ${e.palette.white};
|
|
1064
|
-
border: 2px solid ${e.palette.black};
|
|
1065
|
-
}
|
|
1066
|
-
}
|
|
1067
|
-
|
|
1068
|
-
&:hover:not(:focus-within, .disabled, .error) {
|
|
1069
|
-
> button, div {
|
|
1070
|
-
background: ${e.palette.white};
|
|
1071
|
-
border-color: ${e.palette.gray[600]};
|
|
1072
|
-
}
|
|
1073
|
-
}
|
|
1074
|
-
`}
|
|
1075
|
-
`,nn=o.dt.button`
|
|
1076
|
-
${({theme:e})=>`
|
|
1077
|
-
align-items: center;
|
|
1078
|
-
background: inherit;
|
|
1079
|
-
border-color: inherit;
|
|
1080
|
-
display: flex;
|
|
1081
|
-
gap: ${e.spacing[.25]};
|
|
1082
|
-
height: 40px;
|
|
1083
|
-
min-width: 67px;
|
|
1084
|
-
padding: ${e.spacing[.625]} ${e.spacing[1]};
|
|
1085
|
-
|
|
1086
|
-
&:disabled {
|
|
1087
|
-
background: ${e.palette.gray[100]};
|
|
1088
|
-
cursor: not-allowed;
|
|
1089
|
-
}
|
|
1090
|
-
`}
|
|
1091
|
-
`,an=o.dt.ul`
|
|
1092
|
-
${({theme:e})=>`
|
|
1093
|
-
align-items: flex-start;
|
|
1094
|
-
box-shadow: ${e.shadows.md};
|
|
1095
|
-
display: flex;
|
|
1096
|
-
flex-direction: column;
|
|
1097
|
-
max-height: 190px;
|
|
1098
|
-
overflow: hidden auto;
|
|
1099
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
1100
|
-
scroll-padding: ${e.spacing[.5]};
|
|
1101
|
-
scrollbar-width: thin;
|
|
1102
|
-
width: max-content;
|
|
1103
|
-
`}
|
|
1104
|
-
`,rn=o.dt.li`
|
|
1105
|
-
${({theme:e})=>`
|
|
1106
|
-
align-items: center;
|
|
1107
|
-
background: ${e.palette.white};
|
|
1108
|
-
cursor: pointer;
|
|
1109
|
-
display: inline-flex;
|
|
1110
|
-
font-size: ${e.typography.text.sm};
|
|
1111
|
-
gap: ${e.spacing[.5]};
|
|
1112
|
-
height: 38px;
|
|
1113
|
-
line-height: ${e.spacing[1.25]};
|
|
1114
|
-
padding: ${e.spacing[.5]} ${e.spacing[1]};
|
|
1115
|
-
width: 190px;
|
|
1116
|
-
|
|
1117
|
-
&:hover {
|
|
1118
|
-
background: ${e.palette.gray[100]};
|
|
1119
|
-
}
|
|
1120
|
-
`}
|
|
1121
|
-
`,on=o.dt.p`
|
|
1122
|
-
color: ${({theme:e})=>e.palette.gray[800]};
|
|
1123
|
-
font-size: inherit;
|
|
1124
|
-
min-width: 55%;
|
|
1125
|
-
overflow: hidden;
|
|
1126
|
-
text-overflow: ellipsis;
|
|
1127
|
-
white-space: nowrap;
|
|
1128
|
-
`,V=(e,i,n=!1)=>{g.useEffect(()=>{var a;const r=s=>{e&&!e.contains(s.target)&&i()};return n?(document.addEventListener("click",r,!0),()=>{document.removeEventListener("click",r,!0)}):((a=document.getElementById("root"))==null||a.addEventListener("click",r,!0),()=>{var s;(s=document.getElementById("root"))==null||s.removeEventListener("click",r,!0)})},[n,e,i])},sn=g.forwardRef(function({disabled:i,error:n,label:r,name:a,required:s,tooltip:l,value:c,weight:d,...p},x){const u=o.nt(),[f,b]=g.useState(!1),[$,w]=g.useState(""),j=g.useRef(null),{refs:y,floatingStyles:S}=o.useFloating({placement:"bottom-start",whileElementsMounted:o.autoUpdate}),{inputValue:T,handlePhoneValueChange:I,country:M,setCountry:D}=o.ee({countries:o.R,defaultCountry:"us",value:c?String(c):void 0}),G=g.useCallback(()=>{b(P=>!P),f||w("")},[f]),X=g.useCallback(P=>()=>{D(P),b(!1),w("")},[D,b]),Z=g.useCallback(P=>{P.key.length===1?w(L=>L+P.key):P.key==="Backspace"&&w(L=>L.slice(0,-1))},[]),de=o.R.filter(P=>{const{name:L}=o.M$1(P);return L.toLowerCase().includes($.toLowerCase())});return V(y.floating.current,()=>{b(!1),w("")},!0),t.jsx(F,{error:n,htmlFor:a,label:r,required:s,tooltip:l,weight:d,children:t.jsxs(tn,{className:`${i?"disabled":""} ${n?"error":""}`,ref:j,children:[t.jsxs(nn,{"aria-label":"country-selector","data-testid":"country-selector",disabled:i,id:"country-selector",onClick:G,onKeyDown:Z,ref:y.setReference,children:[t.jsx(o.q,{iso2:M.iso2,size:"16px"}),t.jsx(v,{icon:"angle-down",iconColor:u.palette.gray[400],iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(O,{className:`${i?"disabled":""} ${n?"error":""}`,children:[t.jsx("input",{"aria-hidden":!1,"aria-invalid":n?"true":"false","aria-label":a,"aria-required":s,autoComplete:"off","data-testid":`${a}-input`,disabled:i,id:a,name:a,onChange:I,ref:x,type:"tel",value:T,...p}),n?t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:u.palette.error[500],iconSize:"xs"}):void 0]}),f&&ee.createPortal(t.jsx(an,{ref:y.setFloating,style:S,children:de.map(P=>{const{dialCode:L,iso2:U,name:je}=o.M$1(P);return t.jsxs(rn,{onClick:X(U),value:U,children:[t.jsx(o.q,{iso2:U,size:"16px"}),t.jsx(on,{children:je}),t.jsx(m,{color:u.palette.gray[400],size:"sm",sizeSm:"xs",textAlign:"end",children:"+"+L})]},U)})}),document.getElementById("root")??document.body)]})})}),ln=g.forwardRef(function({disabled:i=!1,error:n,helpLink:r,helpText:a,label:s,name:l="input-text",id:c,maskValue:d=!1,maxLength:p,placeholder:x,required:u,rows:f,tooltip:b,value:$,weight:w,...j},y){const S=o.nt();return t.jsx(F,{error:n,helpLink:r,helpText:a,htmlFor:l,label:s,maxLength:p,required:u,tooltip:b,value:$?String($):void 0,weight:w,children:t.jsxs(O,{className:`${i?"disabled":""} ${n?"error":""}`,children:[t.jsx("textarea",{"aria-hidden":!1,"aria-invalid":n?"true":"false","aria-label":l,"aria-required":u,className:d?"sr-block":"","data-testid":`${l}-text-area`,disabled:i,id:c??l,maxLength:p,name:l,placeholder:x,ref:y,rows:f,value:$,...j}),n?t.jsx(v,{icon:"exclamation-circle",iconClass:"error-icon",iconColor:S.palette.error[500],iconSize:"xs"}):void 0]})})}),cn=({description:e,disabled:i,id:n,align:r,inputType:a="text",inputNumberProps:s,minHeight:l,minWidth:c,name:d,placeholder:p,tooltip:x,title:u})=>{const f=g.useMemo(()=>{if(a==="text")return t.jsx(ot,{disabled:i,name:d,placeholder:p});if(a==="date")return t.jsx(nt,{disabled:i,name:d});const{decimalPlaces:b,max:$,min:w}=s??{};return t.jsx(st,{decimalPlaces:b,disabled:i,max:$,min:w,name:d,placeholder:p})},[i,s,a,d,p]);return t.jsxs(Ci,{$align:r,$minHeight:l,$minWidth:c,children:[t.jsx(be,{description:e,id:n,title:u,tooltip:x}),f]})},lt=(e,i)=>{const[r,a]=g.useState(0),[s,l]=g.useState(0);return g.useEffect(()=>{s===100&&(()=>{a(d=>d===i-1?0:d+1)})()},[s,i]),g.useEffect(()=>{const c=setInterval(()=>{l(d=>d===100?0:d+1)},e);return()=>{clearInterval(c)}},[e]),{cycle:r,progress:s,setCycle:a,setProgress:l}},ct=({publicId:e,format:i="webp"})=>{const n=g.useMemo(()=>new o.Cloudinary({cloud:{cloudName:"fluid-attacks"}}),[]);return g.useMemo(()=>n.image(e).format(i),[n,e,i])},dt=(e,i)=>g.useMemo(()=>o._.debounce(e,i),[e,i]),pt=e=>{const[i,n]=g.useState(!1),r=g.useCallback(()=>{n(!0)},[]),a=g.useCallback(()=>{n(!1)},[]),s=g.useCallback(()=>{n(l=>!l)},[]);return{close:a,isOpen:i,name:e,open:r,setIsOpen:n,toggle:s}},dn=e=>{const[i,n]=g.useState(),r=dt(a=>{n(a)},(e==null?void 0:e.debounceWait)??300);return[i,r]},pn=({alt:e="img",height:i="",width:n="",plugins:r=[o.lazyload(),o.placeholder()],publicId:a})=>{const s=ct({publicId:a});return t.jsx(o.AdvancedImage,{alt:e,cldImg:s,height:i,plugins:r,width:n})},W=g.memo(pn),gn=o.dt.label`
|
|
1129
|
-
${({theme:e})=>`
|
|
1130
|
-
align-items: center;
|
|
1131
|
-
display: flex;
|
|
1132
|
-
color: ${e.palette.gray[600]};
|
|
1133
|
-
cursor: pointer;
|
|
1134
|
-
font-family: ${e.typography.type.primary};
|
|
1135
|
-
font-size: ${e.typography.text.sm};
|
|
1136
|
-
font-weight: ${e.typography.weight.regular};
|
|
1137
|
-
gap: ${e.spacing[.5]};
|
|
1138
|
-
line-height: ${e.typography.text.lg};
|
|
1139
|
-
text-align: left;
|
|
1140
|
-
position: relative;
|
|
1141
|
-
|
|
1142
|
-
&[aria-disabled="true"] {
|
|
1143
|
-
color: ${e.palette.gray[300]};
|
|
1144
|
-
cursor: not-allowed;
|
|
1145
|
-
}
|
|
1146
|
-
|
|
1147
|
-
input {
|
|
1148
|
-
position: absolute;
|
|
1149
|
-
opacity: 0;
|
|
1150
|
-
cursor: pointer;
|
|
1151
|
-
width: 0;
|
|
1152
|
-
}
|
|
1153
|
-
|
|
1154
|
-
.checkmark {
|
|
1155
|
-
position: relative;
|
|
1156
|
-
top: 0;
|
|
1157
|
-
left: 0;
|
|
1158
|
-
height: 16px;
|
|
1159
|
-
width: 16px;
|
|
1160
|
-
background-color: ${e.palette.white};
|
|
1161
|
-
border-radius: 50%;
|
|
1162
|
-
border: 1px solid ${e.palette.gray[600]};
|
|
1163
|
-
}
|
|
1164
|
-
|
|
1165
|
-
input:disabled ~ .checkmark {
|
|
1166
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
1167
|
-
background-color: ${e.palette.white};
|
|
1168
|
-
cursor: not-allowed;
|
|
1169
|
-
}
|
|
1170
|
-
|
|
1171
|
-
input:not(:disabled):checked ~ .checkmark {
|
|
1172
|
-
background-color: ${e.palette.white};
|
|
1173
|
-
border: 1px solid ${e.palette.primary[500]};
|
|
1174
|
-
}
|
|
1175
|
-
|
|
1176
|
-
input:not(:disabled):hover ~ .checkmark {
|
|
1177
|
-
background-color: ${e.palette.white};
|
|
1178
|
-
box-shadow: 0 0 0 4px ${e.palette.gray[100]};
|
|
1179
|
-
}
|
|
1180
|
-
|
|
1181
|
-
input:not(:disabled):hover:checked ~ .checkmark {
|
|
1182
|
-
background-color: ${e.palette.white};
|
|
1183
|
-
box-shadow: 0 0 0 4px ${e.palette.primary[50]};
|
|
1184
|
-
}
|
|
1185
|
-
|
|
1186
|
-
.checkmark::after {
|
|
1187
|
-
content: "";
|
|
1188
|
-
position: absolute;
|
|
1189
|
-
display: none;
|
|
1190
|
-
top: 3px;
|
|
1191
|
-
left: 3px;
|
|
1192
|
-
width: 8px;
|
|
1193
|
-
height: 8px;
|
|
1194
|
-
border-radius: 50%;
|
|
1195
|
-
background: ${e.palette.primary[500]};
|
|
1196
|
-
}
|
|
1197
|
-
|
|
1198
|
-
input:checked ~ .checkmark::after {
|
|
1199
|
-
display: block;
|
|
1200
|
-
}
|
|
1201
|
-
|
|
1202
|
-
input:disabled:checked ~ .checkmark::after {
|
|
1203
|
-
background-color: ${e.palette.gray[300]};
|
|
1204
|
-
}
|
|
1205
|
-
|
|
1206
|
-
`}
|
|
1207
|
-
`,xn=o.dt.span.attrs({className:"checkmark"})``,gt=g.forwardRef(function({defaultChecked:i=!1,disabled:n=!1,label:r,name:a,onChange:s,onClick:l,value:c,...d},p){return t.jsxs(gn,{"aria-disabled":n,"aria-label":a,role:"radiogroup",children:[t.jsx("input",{"aria-checked":i,"aria-disabled":n,"aria-label":a,defaultChecked:i,disabled:n,name:a,onChange:s,onClick:l,ref:p,type:"radio",value:c,...d}),t.jsx(xn,{}),r??null]})}),un=({alt:e,imageId:i,icon:n,selectorProps:r,onClick:a,title:s,width:l="fit-content"})=>{const c=o.nt();return t.jsxs(h,{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(h,{alignSelf:"start",display:"flex",width:"fit-content",children:t.jsx(gt,{name:r.name,onClick:a,value:r.value})}),t.jsxs(h,{alignItems:"center",display:"flex",gap:.5,justify:"space-between",ml:1,mr:1,width:"100%",children:[i===void 0?void 0:t.jsx(W,{alt:e??"card image",height:"32px",publicId:i,width:"32px"}),n===void 0?void 0:t.jsx(v,{icon:n,iconSize:"sm",iconType:"fa-light"}),t.jsx(R,{fontWeight:"bold",lineSpacing:1.75,size:"xs",children:s})]})]})},Y=o.dt.div`
|
|
1208
|
-
${({theme:e})=>`
|
|
1209
|
-
align-items: center;
|
|
1210
|
-
background-color: ${e.palette.gray[200]};
|
|
1211
|
-
border-radius: 34px;
|
|
1212
|
-
cursor: pointer;
|
|
1213
|
-
display: flex;
|
|
1214
|
-
height: 20px;
|
|
1215
|
-
position: relative;
|
|
1216
|
-
transition: 0.2s;
|
|
1217
|
-
width: 36px;
|
|
1218
|
-
`}
|
|
1219
|
-
`,fn=o.dt.div`
|
|
1220
|
-
${({theme:e})=>`
|
|
1221
|
-
background-color: ${e.palette.white};
|
|
1222
|
-
border-radius: 50%;
|
|
1223
|
-
height: ${e.spacing[1]};
|
|
1224
|
-
left: 2px;
|
|
1225
|
-
position: absolute;
|
|
1226
|
-
transition: 0.2s;
|
|
1227
|
-
width: ${e.spacing[1]};
|
|
1228
|
-
z-index: 1;
|
|
1229
|
-
`}
|
|
1230
|
-
`,hn=o.dt.label`
|
|
1231
|
-
display: inline-block;
|
|
1232
|
-
|
|
1233
|
-
input {
|
|
1234
|
-
position: absolute;
|
|
1235
|
-
height: 0;
|
|
1236
|
-
opacity: 0;
|
|
1237
|
-
width: 0;
|
|
1238
|
-
}
|
|
1239
|
-
|
|
1240
|
-
input:checked + ${Y} {
|
|
1241
|
-
background-color: ${({theme:e})=>e.palette.primary[500]};
|
|
1242
|
-
}
|
|
1243
|
-
|
|
1244
|
-
input:checked + ${Y} > div {
|
|
1245
|
-
transform: translateX(100%);
|
|
1246
|
-
}
|
|
1247
|
-
|
|
1248
|
-
input:disabled + ${Y} {
|
|
1249
|
-
cursor: not-allowed;
|
|
1250
|
-
background-color: ${({theme:e})=>e.palette.gray[100]};
|
|
1251
|
-
}
|
|
1252
|
-
|
|
1253
|
-
input:disabled + ${Y} > div {
|
|
1254
|
-
background-color: ${({theme:e})=>e.palette.gray[200]};
|
|
1255
|
-
border: 1px solid ${({theme:e})=>e.palette.gray[200]};
|
|
1256
|
-
}
|
|
1257
|
-
`,xt=g.forwardRef(function({defaultChecked:i,disabled:n=!1,justify:r,name:a,leftDescription:s,rightDescription:l,...c},d){const p=i===!0?"on":"off",x=typeof s=="object"&&s.on&&s.off?s[p]:s,u=g.useCallback(f=>{f.stopPropagation()},[]);return t.jsxs(h,{alignItems:"center",display:"flex",fontSize:"14px",gap:.75,justify:r,children:[x,t.jsxs(hn,{onClick:u,role:"switch",children:[t.jsx("input",{...c,"aria-disabled":n,"aria-label":a,checked:i===!0,disabled:n,name:a,ref:d,type:"checkbox"}),t.jsx(Y,{"aria-label":"Toggle Switch",id:`${a}Toggle`,children:t.jsx(fn,{})})]}),l]})}),bn=({id:e,title:i,toggles:n,minWidth:r="auto",height:a="auto"})=>{const s=o.nt();return t.jsxs(h,{alignItems:"center",bgColor:s.palette.white,border:`1px solid ${s.palette.gray[200]}`,borderRadius:s.spacing[.25],display:"flex",flexDirection:"column",gap:.5,height:a,justify:"center",minHeight:"100px",minWidth:r,padding:[1.25,1.25,1.25,1.25],children:[t.jsx(be,{id:e,title:i}),t.jsx(h,{display:"flex",flexDirection:"column",gap:.5,minHeight:"40px",width:"100%",children:n.map(l=>t.jsx(xt,{...l},`$card-toggle-${l.name}`))})]})},$n=o.dt.div`
|
|
1258
|
-
position: relative;
|
|
1259
|
-
margin: auto;
|
|
1260
|
-
overflow: hidden;
|
|
1261
|
-
`,yn=o.dt.div`
|
|
1262
|
-
display: flex;
|
|
1263
|
-
transition: transform 0.5s ease-in-out;
|
|
1264
|
-
transform: translateX(
|
|
1265
|
-
${({$currentIndex:e})=>-e*100}%
|
|
1266
|
-
);
|
|
1267
|
-
`,mn=o.dt.div`
|
|
1268
|
-
align-items: center;
|
|
1269
|
-
display: flex;
|
|
1270
|
-
justify-content: center;
|
|
1271
|
-
min-width: 100%;
|
|
1272
|
-
`,wn=o.dt.button`
|
|
1273
|
-
${({theme:e,$isActive:i})=>`
|
|
1274
|
-
background-color: ${i?e.palette.primary[400]:e.palette.white};
|
|
1275
|
-
border: none;
|
|
1276
|
-
border-radius: 50%;
|
|
1277
|
-
cursor: pointer;
|
|
1278
|
-
height: ${e.spacing[.75]};
|
|
1279
|
-
width: ${e.spacing[.75]};
|
|
1280
|
-
`}
|
|
1281
|
-
`,jn=o.dt.div`
|
|
1282
|
-
align-items: center;
|
|
1283
|
-
display: flex;
|
|
1284
|
-
gap: ${({theme:e})=>e.spacing[.5]};
|
|
1285
|
-
justify-content: center;
|
|
1286
|
-
margin-top: ${({theme:e})=>e.spacing[2]};
|
|
1287
|
-
`,kn=({slides:e,interval:i=300})=>{const{cycle:n,setCycle:r,setProgress:a}=lt(i,e.length),s=g.useCallback(l=>()=>{r(l),a(0)},[r,a]);return t.jsxs($n,{"aria-roledescription":"carousel",children:[t.jsx(yn,{$currentIndex:n,children:e.map((l,c)=>{const d=`slide-${c}`;return t.jsx(mn,{"aria-label":d,"aria-roledescription":"slide",children:l.content},d)})}),t.jsx(jn,{children:e.map((l,c)=>{const d=`nav-button-${c}`;return t.jsx(wn,{$isActive:c===n,"aria-label":`Go to slide ${c+1}`,"data-testid":c===n?"active":"inactive",onClick:s(c)},d)})})]})},vn=o.dt.label`
|
|
1288
|
-
${({theme:e})=>`
|
|
1289
|
-
align-items: start;
|
|
1290
|
-
color: ${e.palette.gray[600]};
|
|
1291
|
-
display: flex;
|
|
1292
|
-
cursor: pointer;
|
|
1293
|
-
font-family: ${e.typography.type.primary};
|
|
1294
|
-
font-size: ${e.typography.text.sm};
|
|
1295
|
-
font-weight: ${e.typography.weight.regular};
|
|
1296
|
-
line-height: ${e.spacing[1]};
|
|
1297
|
-
letter-spacing: 0;
|
|
1298
|
-
position: relative;
|
|
1299
|
-
text-align: left;
|
|
1300
|
-
|
|
1301
|
-
&[aria-disabled="true"] {
|
|
1302
|
-
color: ${e.palette.gray[300]};
|
|
1303
|
-
cursor: not-allowed;
|
|
1304
|
-
}
|
|
1305
|
-
|
|
1306
|
-
input {
|
|
1307
|
-
position: absolute;
|
|
1308
|
-
opacity: 0;
|
|
1309
|
-
cursor: pointer;
|
|
1310
|
-
height: 0;
|
|
1311
|
-
width: 0;
|
|
1312
|
-
}
|
|
1313
|
-
|
|
1314
|
-
svg {
|
|
1315
|
-
background-color: ${e.palette.white};
|
|
1316
|
-
border-radius: ${e.spacing[.25]};
|
|
1317
|
-
border: 1px solid ${e.palette.gray[600]};
|
|
1318
|
-
top: 0;
|
|
1319
|
-
left: 0;
|
|
1320
|
-
height: ${e.spacing[.5]};
|
|
1321
|
-
margin-right: ${e.spacing[.5]};
|
|
1322
|
-
width: ${e.spacing[.5]};
|
|
1323
|
-
padding: ${e.spacing[.25]};
|
|
1324
|
-
}
|
|
1325
|
-
|
|
1326
|
-
svg > path {
|
|
1327
|
-
fill: ${e.palette.white};
|
|
1328
|
-
}
|
|
1329
|
-
|
|
1330
|
-
input:checked ~ span > svg {
|
|
1331
|
-
background-color: ${e.palette.primary[500]};
|
|
1332
|
-
border: 1px solid ${e.palette.primary[500]};
|
|
1333
|
-
}
|
|
1334
|
-
|
|
1335
|
-
input:disabled ~ span > svg {
|
|
1336
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
1337
|
-
cursor: not-allowed;
|
|
1338
|
-
}
|
|
1339
|
-
|
|
1340
|
-
input:not(:disabled):hover ~ span > svg {
|
|
1341
|
-
box-shadow: 0 0 0 4px ${e.palette.gray[100]};
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
input:checked:disabled ~ span > svg {
|
|
1345
|
-
background-color: ${e.palette.gray[300]};
|
|
1346
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
input:not(:disabled):hover:checked ~ span > svg {
|
|
1350
|
-
box-shadow: 0 0 0 4px ${e.palette.primary[50]};
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
|
-
input:checked ~ span > svg > path {
|
|
1354
|
-
fill: ${e.palette.white};
|
|
1355
|
-
}
|
|
1356
|
-
|
|
1357
|
-
input:checked:disabled ~ span > svg > path {
|
|
1358
|
-
fill: ${e.palette.white};
|
|
1359
|
-
}
|
|
1360
|
-
`}
|
|
1361
|
-
`,Cn=g.forwardRef(function({defaultChecked:i=!1,disabled:n=!1,label:r,name:a,onChange:s,onClick:l,onFocus:c,onKeyDown:d,value:p,...x},u){return t.jsxs(vn,{"aria-disabled":n,htmlFor:a,children:[t.jsx("input",{"aria-checked":i,"aria-disabled":n,"aria-label":a,defaultChecked:i,disabled:n,id:a,name:a,onChange:s,onClick:l,onFocus:c,onKeyDown:d,ref:u,type:"checkbox",value:p,...x}),t.jsx(v,{disabled:n,icon:"check",iconSize:"sm"}),r??p]})}),ut=o.dt.div`
|
|
1362
|
-
${({theme:e})=>`
|
|
1363
|
-
background-color: ${e.palette.gray[100]};
|
|
1364
|
-
border-radius: ${e.spacing[.25]};
|
|
1365
|
-
display: inline-flex;
|
|
1366
|
-
padding: ${e.spacing[1]};
|
|
1367
|
-
position: relative;
|
|
1368
|
-
width: fit-content;
|
|
1369
|
-
|
|
1370
|
-
.line-highlight.language-none {
|
|
1371
|
-
background: ${e.palette.gray[100]};
|
|
1372
|
-
}
|
|
1373
|
-
|
|
1374
|
-
.line-highlight {
|
|
1375
|
-
background: hsl(354deg 88% 93% / 50%);
|
|
1376
|
-
font-family: ${e.typography.type.mono};
|
|
1377
|
-
font-size: ${e.typography.text.xs};
|
|
1378
|
-
line-height: ${e.spacing[1]};
|
|
1379
|
-
}
|
|
1380
|
-
|
|
1381
|
-
.line-highlight::before,
|
|
1382
|
-
.line-highlight[data-end]::after {
|
|
1383
|
-
background: ${e.palette.primary[300]};
|
|
1384
|
-
background-color: hsl(355deg 89% 36%);
|
|
1385
|
-
color: ${e.palette.white};
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
pre code {
|
|
1389
|
-
color: #161616;
|
|
1390
|
-
font-family: ${e.typography.type.mono};
|
|
1391
|
-
font-size: ${e.typography.text.xs};
|
|
1392
|
-
line-height: ${e.spacing[1]};
|
|
1393
|
-
}
|
|
1394
|
-
|
|
1395
|
-
pre:not(.line-highlight) {
|
|
1396
|
-
margin-top: unset;
|
|
1397
|
-
margin-bottom: unset;
|
|
1398
|
-
padding: unset;
|
|
1399
|
-
width: 100%;
|
|
1400
|
-
}
|
|
1401
|
-
|
|
1402
|
-
span:hover {
|
|
1403
|
-
background-color: ${e.palette.gray[200]};
|
|
1404
|
-
}
|
|
1405
|
-
|
|
1406
|
-
.no-data,
|
|
1407
|
-
pre.line-highlight {
|
|
1408
|
-
background-color: ${e.palette.gray[100]};
|
|
1409
|
-
padding-top: unset;
|
|
1410
|
-
padding-bottom: unset;
|
|
1411
|
-
}
|
|
1412
|
-
`}
|
|
1413
|
-
`,Sn=o.dt.div`
|
|
1414
|
-
${({theme:e})=>`
|
|
1415
|
-
align-items: end;
|
|
1416
|
-
background-color: ${e.palette.gray[100]};
|
|
1417
|
-
display: flex;
|
|
1418
|
-
flex-direction: column;
|
|
1419
|
-
justify-content: space-between;
|
|
1420
|
-
min-width: 103px;
|
|
1421
|
-
margin-right: ${e.spacing[1]};
|
|
1422
|
-
padding-top: ${e.spacing[1]};
|
|
1423
|
-
padding-bottom: ${e.spacing[1]};
|
|
1424
|
-
position: relative;
|
|
1425
|
-
padding-left: unset;
|
|
1426
|
-
|
|
1427
|
-
button:hover:not([disabled]) {
|
|
1428
|
-
background-color: ${e.palette.gray[200]};
|
|
1429
|
-
}
|
|
1430
|
-
`}
|
|
1431
|
-
`,zn=({noCodeMessage:e="Code snippet not available",snippet:i})=>{const n=o.nt(),[r,a]=g.useState(!1),[s,l]=g.useState(!0),c=g.useCallback(()=>{a(u=>!u)},[a]),d=g.useCallback(()=>{if(o._.isNil(i)||o._.isEmpty(i)||!o._.isString(i))return l(!1),e;const u=i.split(`
|
|
1432
|
-
`);return u.length>8&&!r?`${[...u].splice(0,7).join(`
|
|
1433
|
-
`)}
|
|
1434
|
-
${u[8]}...`:(u.length<8&&l(!1),i)},[r,i,e]),p=g.useMemo(d,[d]),x=g.useCallback(async()=>{await navigator.clipboard.writeText(p)},[p]);return t.jsxs(h,{bgColor:n.palette.gray[100],borderRadius:"4px",display:"inline-flex",minWidth:"565px",position:"relative",children:[t.jsx(ut,{"data-private":!0,children:t.jsx("pre",{children:t.jsx("code",{className:"language-none",children:p})})}),t.jsxs(Sn,{children:[t.jsx(E,{height:n.spacing[2.5],icon:"copy",iconColor:n.palette.gray[700],iconSize:"xs",iconType:"fa-light",onClick:x,variant:"ghost",width:n.spacing[2.5]}),s?t.jsxs(z,{onClick:c,variant:"ghost",children:[r?"Show Less":"Show more",t.jsx(v,{icon:r?"chevron-up":"chevron-down",iconColor:n.palette.gray[700],iconSize:"xxs",iconType:"fa-light",ml:.25,onClick:x})]}):!1]})]})},In=({noCodeMessage:e="Code snippet not available",snippet:i,specific:n})=>(g.useEffect(()=>{o.prismExports.highlightAll()},[]),t.jsx(ut,{"data-private":!0,children:t.jsx("pre",{className:"line-highlight","data-line-offset":o._.isNil(i)||o._.isString(i)?0:i.offset+.7,...n!==void 0?{"data-line":String(Number(n))}:{},children:o._.isNil(i)||o._.isString(i)||o._.isEmpty(i.content)?t.jsx("div",{className:"no-data",children:t.jsx("p",{children:e})}):t.jsx("code",{className:"language-none",children:i.content})})})),ft=({disabled:e,id:i="modal-confirm",onCancel:n,onConfirm:r="submit",txtCancel:a,txtConfirm:s})=>{const l=r==="submit";return t.jsxs(h,{display:"flex",gap:.75,maxWidth:n?"392px":"190px",mt:1.5,children:[n?t.jsx(z,{id:`${i}-cancel`,justify:"center",onClick:n,variant:"tertiary",width:"100%",children:a??"Cancel"}):void 0,t.jsx(z,{disabled:e,id:i,justify:"center",onClick:l?void 0:r,type:l?"submit":"button",variant:"primary",width:"100%",children:s??"Confirm"})]})},{getVariant:Tn}=A(e=>({lg:`
|
|
1435
|
-
@media screen and (min-width: ${e.breakpoints.sm}) {
|
|
1436
|
-
width: 72%;
|
|
1437
|
-
}
|
|
1438
|
-
@media screen and (max-width: ${e.breakpoints.sm}) {
|
|
1439
|
-
width: 80%;
|
|
1440
|
-
}
|
|
1441
|
-
`,md:`
|
|
1442
|
-
@media screen and (min-width: ${e.breakpoints.sm}) {
|
|
1443
|
-
width: 48%;
|
|
1444
|
-
}
|
|
1445
|
-
@media screen and (max-width: ${e.breakpoints.sm}) {
|
|
1446
|
-
width: 60%;
|
|
1447
|
-
}
|
|
1448
|
-
`,sm:`
|
|
1449
|
-
@media screen and (min-width: ${e.breakpoints.sm}) {
|
|
1450
|
-
width: 32%;
|
|
1451
|
-
}
|
|
1452
|
-
@media screen and (max-width: ${e.breakpoints.sm}) {
|
|
1453
|
-
width: 40%;
|
|
1454
|
-
}
|
|
1455
|
-
`})),Rn=o.dt.div.attrs({className:"comp-modal fixed inset-0 overflow-auto"})`
|
|
1456
|
-
align-items: center;
|
|
1457
|
-
background-color: rgb(52 64 84 / 70%);
|
|
1458
|
-
display: flex;
|
|
1459
|
-
justify-content: center;
|
|
1460
|
-
z-index: 99999;
|
|
1461
|
-
`,Nn=o.dt.div`
|
|
1462
|
-
${({theme:e,$size:i})=>`
|
|
1463
|
-
background-color: ${e.palette.white};
|
|
1464
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
1465
|
-
border-radius: ${e.spacing[.25]};
|
|
1466
|
-
color: ${e.palette.gray[800]};
|
|
1467
|
-
display: flex;
|
|
1468
|
-
flex-direction: column;
|
|
1469
|
-
font-family: ${e.typography.type.primary};
|
|
1470
|
-
font-size: ${e.typography.text.sm};
|
|
1471
|
-
max-height: 80%;
|
|
1472
|
-
min-height: minmax(max-content, 32%);
|
|
1473
|
-
overflow: hidden auto;
|
|
1474
|
-
padding: ${e.spacing[1.5]};
|
|
1475
|
-
box-shadow: ${e.shadows.lg};
|
|
1476
|
-
margin: auto;
|
|
1477
|
-
white-space: pre-line;
|
|
1478
|
-
|
|
1479
|
-
> *:not(img) {
|
|
1480
|
-
margin-bottom: ${e.spacing[1.5]};
|
|
1481
|
-
}
|
|
1482
|
-
|
|
1483
|
-
> *:last-child {
|
|
1484
|
-
margin-bottom: 0;
|
|
1485
|
-
}
|
|
1486
|
-
|
|
1487
|
-
&#table-column-toggle {
|
|
1488
|
-
@media screen and (min-width: ${e.breakpoints.sm}) {
|
|
1489
|
-
width: 24%;
|
|
1490
|
-
}
|
|
1491
|
-
@media screen and (max-width: ${e.breakpoints.sm}) {
|
|
1492
|
-
width: 32%;
|
|
1493
|
-
}
|
|
1494
|
-
}
|
|
1495
|
-
|
|
1496
|
-
${Tn(e,i)}
|
|
1497
|
-
`}
|
|
1498
|
-
`,En=o.dt.div`
|
|
1499
|
-
display: block;
|
|
1500
|
-
overflow: unset;
|
|
1501
|
-
height: max-content;
|
|
1502
|
-
max-height: 100%;
|
|
1503
|
-
max-width: 100%;
|
|
1504
|
-
position: static;
|
|
1505
|
-
`,Pn=o.dt.div.attrs({className:"flex items-center justify-between mb-1.5"})``,Fn=o.dt.div`
|
|
1506
|
-
${({theme:e})=>`
|
|
1507
|
-
display: flex;
|
|
1508
|
-
flex-direction: row;
|
|
1509
|
-
gap: ${e.spacing[.75]};
|
|
1510
|
-
justify-content: space-between;
|
|
1511
|
-
margin: 0;
|
|
1512
|
-
max-width: 392px;
|
|
1513
|
-
|
|
1514
|
-
> label {
|
|
1515
|
-
margin: 0;
|
|
1516
|
-
flex: 1 1 auto;
|
|
1517
|
-
}
|
|
1518
|
-
|
|
1519
|
-
> div {
|
|
1520
|
-
display: flex;
|
|
1521
|
-
flex-direction: row;
|
|
1522
|
-
flex: 1 1 auto;
|
|
1523
|
-
gap: ${e.spacing[.75]};
|
|
1524
|
-
margin-right: ${e.spacing[.75]};
|
|
1525
|
-
|
|
1526
|
-
> button {
|
|
1527
|
-
justify-content: center;
|
|
1528
|
-
max-width: 190px;
|
|
1529
|
-
}
|
|
1530
|
-
}
|
|
1531
|
-
|
|
1532
|
-
> div:last-child {
|
|
1533
|
-
margin-right: 0;
|
|
1534
|
-
}
|
|
1535
|
-
`}
|
|
1536
|
-
`,Wn=o.dt.div`
|
|
1537
|
-
img {
|
|
1538
|
-
margin: 0 calc(-${({theme:e})=>e.spacing[1.5]} - 1px)
|
|
1539
|
-
${({theme:e})=>e.spacing[1.5]};
|
|
1540
|
-
|
|
1541
|
-
min-width: calc(100% + 2px + ${({theme:e})=>e.spacing[3]});
|
|
1542
|
-
height: 185px;
|
|
1543
|
-
object-fit: cover;
|
|
1544
|
-
|
|
1545
|
-
${({$framed:e=!1})=>e?`
|
|
1546
|
-
border-radius: 8px;
|
|
1547
|
-
min-width: 100%;
|
|
1548
|
-
margin-left: 0;
|
|
1549
|
-
margin-right: 0;
|
|
1550
|
-
`:""}
|
|
1551
|
-
}
|
|
1552
|
-
`,ht=({modalRef:e,confirmButton:i=void 0,cancelButton:n=void 0})=>{const{close:r}=e,a=g.useCallback(()=>{n==null||n.onClick(),r()},[n,r]),s=g.useCallback(()=>{i==null||i.onClick(),r()},[i,r]);return[i,n].some(c=>!o.lodashExports.isEmpty(c))?t.jsx(Fn,{children:t.jsxs("div",{children:[n&&t.jsx(z,{onClick:a,variant:"tertiary",width:"100%",children:n.text}),i&&t.jsx(z,{onClick:s,variant:"primary",width:"100%",children:i.text})]})}):null},bt=({title:e,description:i,modalRef:n,otherActions:r,onClose:a})=>{const s=o.nt(),l=g.useCallback(()=>{a==null||a(),n.close()},[n,a]);return g.useEffect(()=>{const c=d=>{d.key==="Escape"&&l()};return window.addEventListener("keydown",c),()=>{window.removeEventListener("keydown",c)}},[l]),t.jsxs(En,{children:[t.jsxs(Pn,{children:[typeof e=="string"?t.jsx(R,{fontWeight:"bold",lineSpacing:1.75,mr:1,size:"sm",children:e}):e,t.jsxs("div",{className:"flex",children:[r,t.jsx(E,{icon:"close",iconColor:s.palette.gray[300],iconSize:"xs",iconType:"fa-light",id:"modal-close",onClick:l,variant:"ghost"})]})]}),i&&o.lodashExports.isString(i)&&!o.lodashExports.isEmpty(i)?t.jsx(m,{mt:.5,size:"sm",children:i}):i]})},$t=({_portal:e=!0,cancelButton:i=void 0,children:n=void 0,confirmButton:r=void 0,content:a=void 0,description:s="",modalRef:l,otherActions:c=void 0,onClose:d=void 0,title:p="",size:x,id:u="modal-container"})=>{const f=()=>t.jsx(Rn,{"aria-label":l.name,"aria-modal":"true",id:"modal-wrapper",children:t.jsxs(Nn,{$size:x,"data-testid":u,id:u,children:[!o._.isEmpty(p)&&t.jsx(bt,{description:s,modalRef:l,onClose:d,otherActions:c,title:p}),n,o._.isObject(a)&&o._.isString(a.imageSrc)&&t.jsx(Wn,{$framed:a.imageFramed,children:t.jsx(W,{alt:"modal-img",publicId:a.imageSrc})}),o._.isObject(a)&&o._.isString(a.imageText)&&t.jsx(m,{mb:1.5,size:"sm",children:a.imageText}),t.jsx(ht,{cancelButton:i,confirmButton:r,modalRef:l})]})});return e&&l.isOpen?ee.createPortal(f(),document.getElementById("portals")??document.body):l.isOpen?f():null},Dn=()=>{const[e,i]=g.useState(!1),[n,r]=g.useState(),a=g.useRef(null),s=pt("confirm-dialog-modal"),l=g.useCallback(async x=>(r(x),i(!0),new Promise(u=>{a.current=u})),[]),c=g.useCallback(()=>{var x;i(!1),r(void 0),(x=a.current)==null||x.call(a,!0)},[]),d=g.useCallback(()=>{var x;i(!1),r(void 0),(x=a.current)==null||x.call(a,!1)},[]);return g.useEffect(()=>{s.setIsOpen(e)},[e,s]),{ConfirmDialog:({id:x="confirm-dialog-modal",children:u})=>t.jsxs($t,{id:x,modalRef:{...s,close:d},size:"sm",title:n==null?void 0:n.title,children:[u,n==null?void 0:n.message,t.jsx(ft,{id:n==null?void 0:n.id,onCancel:d,onConfirm:c})]}),confirm:l}},Ln=o.dt.button`
|
|
1553
|
-
display: flex;
|
|
1554
|
-
position: relative;
|
|
1555
|
-
height: 32px;
|
|
1556
|
-
width: 32px;
|
|
1557
|
-
|
|
1558
|
-
svg {
|
|
1559
|
-
position: absolute;
|
|
1560
|
-
}
|
|
1561
|
-
|
|
1562
|
-
.hovered {
|
|
1563
|
-
display: none;
|
|
1564
|
-
}
|
|
1565
|
-
|
|
1566
|
-
&:hover {
|
|
1567
|
-
.hovered {
|
|
1568
|
-
display: flex;
|
|
1569
|
-
}
|
|
1570
|
-
|
|
1571
|
-
.uncover {
|
|
1572
|
-
display: none;
|
|
1573
|
-
}
|
|
1574
|
-
}
|
|
1575
|
-
`,An=o.dt.div`
|
|
1576
|
-
${({theme:e})=>`
|
|
1577
|
-
display: flex;
|
|
1578
|
-
flex-direction: column;
|
|
1579
|
-
gap: ${e.spacing[2.5]};
|
|
1580
|
-
overflow: hidden;
|
|
1581
|
-
min-height: 589px;
|
|
1582
|
-
max-width: 1316px;
|
|
1583
|
-
|
|
1584
|
-
span {
|
|
1585
|
-
background: ${e.palette.gradients["01"]};
|
|
1586
|
-
background-clip: text;
|
|
1587
|
-
-webkit-background-clip: text;
|
|
1588
|
-
-webkit-text-fill-color: transparent;
|
|
1589
|
-
}
|
|
1590
|
-
|
|
1591
|
-
#mobile {
|
|
1592
|
-
display: none;
|
|
1593
|
-
}
|
|
1594
|
-
|
|
1595
|
-
#carousel {
|
|
1596
|
-
scrollbar-width: none;
|
|
1597
|
-
|
|
1598
|
-
&::-webkit-scrollbar {
|
|
1599
|
-
display: none;
|
|
1600
|
-
}
|
|
1601
|
-
}
|
|
1602
|
-
|
|
1603
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
1604
|
-
align-items: center;
|
|
1605
|
-
height: auto;
|
|
1606
|
-
max-width: 340px;
|
|
1607
|
-
|
|
1608
|
-
#desktop {
|
|
1609
|
-
display: none;
|
|
1610
|
-
}
|
|
1611
|
-
#mobile {
|
|
1612
|
-
display: flex;
|
|
1613
|
-
}
|
|
1614
|
-
}
|
|
1615
|
-
`}
|
|
1616
|
-
`,Ce=({containerRef:e,id:i})=>{const n=o.nt(),r=i==="desktop"?380:342,a=g.useCallback(l=>()=>{if(e!=null&&e.current){const{current:c}=e;c.scrollBy({left:l==="right"?r:-r,behavior:"smooth"})}},[e,r]),s=g.useCallback(l=>t.jsxs(Ln,{onClick:a(l),children:[t.jsx(v,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"hovered",iconColor:n.palette.gray[800],iconSize:"md",iconType:"fa-solid"}),t.jsx(v,{clickable:!0,icon:`circle-arrow-${l}`,iconClass:"uncover",iconColor:n.palette.gray[800],iconSize:"md",iconType:"fa-light"})]}),[a,n]);return t.jsxs(h,{alignItems:"center",display:"flex",gap:1,id:i,width:"max-content",children:[s("left"),s("right")]})},Se=({tag:e,tagPosition:i})=>{const n=o.nt();return e?t.jsx(h,{alignItems:"center",bgColor:n.palette.white,borderRadius:"8px",display:"flex",justify:"center",margin:i==="top"?[.75,.75,.75,.75]:void 0,padding:[.25,.5,.25,.5],position:i==="top"?"absolute":"relative",top:"0",width:"max-content",children:t.jsx(m,{color:n.palette.gray[900],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:e})}):null},yt=({eventDate:e})=>{const i=o.nt(),n=o.lodashExports.isEmpty(e)?null:e==null?void 0:e.split("-");if(n){const[r,a]=n;return t.jsxs(h,{alignItems:"center",bgColor:i.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(R,{fontWeight:"semibold",lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:r}),t.jsx(m,{color:i.palette.gray[800],fontWeight:"semibold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",textAlign:"center",children:a.toUpperCase()})]})}return null},Bn=o.dt.div`
|
|
1617
|
-
${({theme:e})=>`
|
|
1618
|
-
align-items: flex-start;
|
|
1619
|
-
display: flex;
|
|
1620
|
-
flex-direction: column;
|
|
1621
|
-
gap: ${e.spacing[1.5]};
|
|
1622
|
-
width: 384px;
|
|
1623
|
-
|
|
1624
|
-
img {
|
|
1625
|
-
height: 100%;
|
|
1626
|
-
width: 100%;
|
|
1627
|
-
}
|
|
1628
|
-
|
|
1629
|
-
#card-image {
|
|
1630
|
-
border-radius: ${e.spacing[1]};
|
|
1631
|
-
height: 240px;
|
|
1632
|
-
overflow: hidden;
|
|
1633
|
-
}
|
|
1634
|
-
|
|
1635
|
-
&:hover {
|
|
1636
|
-
img {
|
|
1637
|
-
transform: scale(1.2);
|
|
1638
|
-
}
|
|
1639
|
-
|
|
1640
|
-
> #card-content {
|
|
1641
|
-
> .title-dark {
|
|
1642
|
-
color: ${e.palette.gray[400]};
|
|
1643
|
-
}
|
|
1644
|
-
> .title-light {
|
|
1645
|
-
background: ${e.palette.gradients["01"]};
|
|
1646
|
-
background-clip: text;
|
|
1647
|
-
-webkit-background-clip: text;
|
|
1648
|
-
-webkit-text-fill-color: transparent;
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
}
|
|
1652
|
-
|
|
1653
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
1654
|
-
width: 320px;
|
|
1655
|
-
|
|
1656
|
-
#card-image {
|
|
1657
|
-
height: 200px;
|
|
1658
|
-
}
|
|
1659
|
-
}
|
|
1660
|
-
`}
|
|
1661
|
-
`,mt=({author:e,buttonText:i,description:n,eventDate:r,href:a,imageId:s,mode:l="light",publishDate:c,readingTime:d,tag:p,tagPosition:x="top",title:u})=>{const f=o.nt(),b=c==null?void 0:c.split("-"),$=l==="dark",w=t.jsxs(Bn,{"data-testid":`content-card-${u}`,children:[s||r||p&&x==="top"?t.jsxs(h,{id:"card-image",position:"relative",children:[s&&t.jsx(W,{publicId:s}),x==="top"&&t.jsx(Se,{tag:p,tagPosition:x}),t.jsx(yt,{eventDate:r})]}):void 0,t.jsxs(h,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.5,id:"card-content",children:[x==="bottom"&&t.jsx(Se,{tag:p,tagPosition:x}),e||b||d?t.jsxs(h,{display:"flex",justify:"space-between",width:"100%",children:[e&&b&&t.jsx(m,{color:f.palette.gray[$?300:400],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:e+` • ${b[0]} ${b[1]}, ${b[2]}`}),d&&t.jsxs(h,{alignItems:"center",display:"flex",gap:.25,justify:"center",minWidth:"60px",children:[t.jsx(v,{icon:"eye",iconColor:f.palette.gray[$?300:400],iconSize:"xs",iconType:"fa-light"}),t.jsx(m,{color:f.palette.gray[$?300:400],size:"sm",sizeSm:"xs",textAlign:"right",children:d})]})]}):void 0,t.jsx(R,{className:`title-${l}`,color:$?f.palette.white:f.palette.gray[800],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:u}),n&&t.jsx(m,{color:f.palette.gray[$?100:600],size:"md",sizeSm:"sm",children:n}),i&&a&&t.jsx(z,{href:a,variant:"link",children:i})]})]});return a?t.jsx("a",{className:"flex w-fit",href:a,rel:"noopener noreferrer",target:"_self",children:w}):w},Mn=({description:e,items:i,title:n,titleHighlighted:r})=>{const a=g.useRef(null);return t.jsxs(An,{"data-testid":"content-card-carousel",children:[t.jsxs(h,{alignItems:"flex-start",display:"flex",justify:"space-between",children:[t.jsxs(h,{alignItems:"flex-start",display:"flex",flexDirection:"column",gap:.625,maxWidth:"800px",children:[t.jsxs(R,{display:"inline",fontWeight:"semibold",lineSpacing:2.25,lineSpacingSm:1.75,size:"lg",sizeSm:"md",children:[n+" "," ",t.jsx("span",{className:"inline",children:r})]}),t.jsx(m,{lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:e})]}),t.jsx(Ce,{containerRef:a,id:"desktop"})]}),t.jsx(h,{alignSelf:"stretch",display:"flex",id:"carousel",pb:1,pr:2.25,ref:a,scroll:"x",children:t.jsx(h,{alignItems:"flex-start",display:"flex",gap:1.5,width:"max-content",children:i.map((s,l)=>t.jsx(mt,{...s},`${l}-${s.title}`))})}),t.jsx(Ce,{containerRef:a,id:"mobile"})]})},he=g.forwardRef(function({color:i=k.palette.gray[100],mt:n=.5,mb:r=.5,...a},s){return t.jsx(h,{as:"hr",border:`1px solid ${i}`,mb:r,mt:n,ref:s,...a})}),ze=({buttonProps:e,variant:i})=>t.jsx(z,{onClick:e.onClick,variant:i,children:e.text}),On=o.dt.div`
|
|
1662
|
-
display: flex;
|
|
1663
|
-
flex-direction: column;
|
|
1664
|
-
align-items: center;
|
|
1665
|
-
padding: ${({theme:e,$padding:i})=>e.spacing[i]};
|
|
1666
|
-
max-width: 900px;
|
|
1667
|
-
white-space: pre-line;
|
|
1668
|
-
margin: 0 auto;
|
|
1669
|
-
`,Hn=o.dt.div`
|
|
1670
|
-
display: flex;
|
|
1671
|
-
flex-direction: row;
|
|
1672
|
-
justify-content: center;
|
|
1673
|
-
align-items: center;
|
|
1674
|
-
background-color: transparent;
|
|
1675
|
-
width: 96px;
|
|
1676
|
-
height: 96px;
|
|
1677
|
-
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
1678
|
-
|
|
1679
|
-
> img {
|
|
1680
|
-
width: 100%;
|
|
1681
|
-
}
|
|
1682
|
-
`,_n=o.dt.div`
|
|
1683
|
-
display: flex;
|
|
1684
|
-
flex-direction: row;
|
|
1685
|
-
margin: 0;
|
|
1686
|
-
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
1687
|
-
|
|
1688
|
-
> * {
|
|
1689
|
-
margin-right: ${({theme:e})=>e.spacing[.75]};
|
|
1690
|
-
}
|
|
1691
|
-
|
|
1692
|
-
> *:last-child {
|
|
1693
|
-
margin-right: 0;
|
|
1694
|
-
}
|
|
1695
|
-
`,Be={md:{description:"md",title:"lg"},sm:{description:"sm",title:"xs"}},Vn=({cancelButton:e=void 0,confirmButton:i=void 0,description:n,imageSrc:r="integrates/empty/addRoot",padding:a=1.25,title:s,size:l="md"})=>{const c=(i??e)!==void 0;return t.jsxs(On,{$padding:a,children:[t.jsx(Hn,{children:t.jsx(W,{alt:"empty-icon",publicId:r})}),t.jsx(R,{fontWeight:"bold",lineSpacing:1.75,mb:.25,size:Be[l].title,textAlign:"center",children:s}),t.jsx(m,{mb:c?2:void 0,size:Be[l].description,textAlign:"center",children:n}),c?t.jsxs(_n,{children:[e&&t.jsx(ze,{buttonProps:e,variant:"tertiary"}),i&&t.jsx(ze,{buttonProps:i,variant:"primary"})]}):void 0]})},Gn=o.dt.form`
|
|
1696
|
-
${({theme:e})=>`
|
|
1697
|
-
align-items: flex-start;
|
|
1698
|
-
align-self: stretch;
|
|
1699
|
-
display: flex;
|
|
1700
|
-
flex-direction: column;
|
|
1701
|
-
gap: ${e.spacing[.5]};
|
|
1702
|
-
|
|
1703
|
-
&:has(button[type="reset"]) {
|
|
1704
|
-
&:last-child {
|
|
1705
|
-
margin-top: ${e.spacing[1]};
|
|
1706
|
-
}
|
|
1707
|
-
}
|
|
1708
|
-
`}
|
|
1709
|
-
`,Un=g.forwardRef(function({cancelLabel:i,children:n,id:r="modal-confirm",onCancel:a,onConfirm:s="submit",submitLabel:l,submitDisabled:c=!1,...d},p){const x=s==="submit",u=[a,s].some(Boolean);return t.jsx(Gn,{ref:p,...d,children:t.jsxs(h,{children:[t.jsx(h,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,children:n}),u&&t.jsxs(h,{display:"flex",gap:.75,maxWidth:"392px",children:[a?t.jsx(z,{id:`${r}-cancel`,justify:"center",onClick:a,type:"reset",variant:"tertiary",width:"100%",children:i??"Cancel"}):void 0,t.jsx(z,{disabled:c,id:r,justify:"center",onClick:x?void 0:s,type:x?"submit":"button",width:"100%",children:l??"Confirm"})]})]})})}),qn=o.dt(K)`
|
|
1710
|
-
display: grid;
|
|
1711
|
-
gap: ${({$gap:e=1.25})=>`${e}rem`};
|
|
1712
|
-
grid-template-columns: ${({$sm:e})=>`repeat(${e}, 1fr)`};
|
|
1713
|
-
|
|
1714
|
-
${({theme:e,$xl:i,$lg:n,$md:r})=>`
|
|
1715
|
-
@media (width >= ${e.breakpoints.sm}) {
|
|
1716
|
-
grid-template-columns: repeat(${r}, 1fr);
|
|
1717
|
-
}
|
|
1718
|
-
|
|
1719
|
-
@media (width >= ${e.breakpoints.md}) {
|
|
1720
|
-
grid-template-columns: repeat(${n}, 1fr);
|
|
1721
|
-
}
|
|
1722
|
-
|
|
1723
|
-
@media (width >= ${e.breakpoints.lg}) {
|
|
1724
|
-
grid-template-columns: repeat(${i}, 1fr);
|
|
1725
|
-
}
|
|
1726
|
-
`}
|
|
1727
|
-
`,Kn=g.forwardRef(function({children:i,md:n,sm:r,lg:a,xl:s,gap:l,...c},d){return t.jsx(qn,{$gap:l,$lg:a,$md:n,$sm:r,$xl:s,ref:d,...c,children:i})}),Xn=o.dt.div`
|
|
1728
|
-
${({theme:e,$itemsLength:i})=>`
|
|
1729
|
-
display: flex;
|
|
1730
|
-
background-color: ${e.palette.white};
|
|
1731
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
1732
|
-
border-radius: ${e.spacing[.25]};
|
|
1733
|
-
box-shadow: ${e.shadows.lg};
|
|
1734
|
-
flex-direction: column;
|
|
1735
|
-
min-width: 507px;
|
|
1736
|
-
max-width: ${i<=4?"507px":"980px"};
|
|
1737
|
-
padding: ${e.spacing[1.5]};
|
|
1738
|
-
|
|
1739
|
-
@media screen and (max-width: 980px) and (min-width: 742px) {
|
|
1740
|
-
width: 742px;
|
|
1741
|
-
}
|
|
1742
|
-
@media screen and (max-width: 742px) {
|
|
1743
|
-
width: 507px;
|
|
1744
|
-
}
|
|
1745
|
-
`}
|
|
1746
|
-
`,Pe=o.dt.div`
|
|
1747
|
-
${({theme:e,$isSelected:i})=>`
|
|
1748
|
-
align-items: center;
|
|
1749
|
-
background-color: ${i?e.palette.gray[100]:e.palette.white};
|
|
1750
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
1751
|
-
border-radius: ${e.spacing[.25]};
|
|
1752
|
-
cursor: pointer;
|
|
1753
|
-
display: flex;
|
|
1754
|
-
flex-direction: ${i?"row-reverse":"row"};
|
|
1755
|
-
min-height: 50px;
|
|
1756
|
-
padding: ${e.spacing[1]} ${e.spacing[.625]};
|
|
1757
|
-
width: 215px;
|
|
1758
|
-
|
|
1759
|
-
&:hover {
|
|
1760
|
-
background-color: ${e.palette.gray[100]};
|
|
1761
|
-
}
|
|
1762
|
-
`}
|
|
1763
|
-
`,wt=({isSelected:e=!1,label:i,onSelect:n})=>{const r=o.nt(),a=g.useCallback(()=>{n&&n(i)},[n,i]);return t.jsxs(Pe,{$isSelected:e,onClick:a,children:[e?t.jsx(v,{icon:"check",iconColor:r.palette.gray[800],iconSize:"md"}):null,t.jsx(m,{color:r.palette.gray[800],fontWeight:"bold",size:"sm",children:i})]})},Zn=o.dt.input`
|
|
1764
|
-
${({theme:e})=>`
|
|
1765
|
-
background: none;
|
|
1766
|
-
border: none !important;
|
|
1767
|
-
box-shadow: none;
|
|
1768
|
-
box-sizing: border-box;
|
|
1769
|
-
color: ${e.palette.gray[800]};
|
|
1770
|
-
font-family: ${e.typography.type.primary};
|
|
1771
|
-
font-size: ${e.typography.text.sm};
|
|
1772
|
-
outline: none;
|
|
1773
|
-
width: 100%;
|
|
1774
|
-
|
|
1775
|
-
&::placeholder {
|
|
1776
|
-
color: ${e.palette.gray[400]};
|
|
1777
|
-
}
|
|
1778
|
-
`}
|
|
1779
|
-
`,Yn=o.dt.div`
|
|
1780
|
-
${({theme:e})=>`
|
|
1781
|
-
align-items: center;
|
|
1782
|
-
background-color: ${e.palette.white};
|
|
1783
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
1784
|
-
border-radius: ${e.spacing[.5]};
|
|
1785
|
-
display: flex;
|
|
1786
|
-
height: 40px;
|
|
1787
|
-
gap: ${e.spacing[.5]};
|
|
1788
|
-
padding: ${e.spacing[.5]};
|
|
1789
|
-
width: 100%;
|
|
1790
|
-
|
|
1791
|
-
&:hover {
|
|
1792
|
-
border-color: ${e.palette.gray[600]};
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
&:focus-within {
|
|
1796
|
-
border: 2px solid ${e.palette.black};
|
|
1797
|
-
}
|
|
1798
|
-
`}
|
|
1799
|
-
`,Jn=o.dt.div`
|
|
1800
|
-
${({theme:e})=>`
|
|
1801
|
-
background-color: ${e.palette.white};
|
|
1802
|
-
border-radius: ${e.spacing[.5]};
|
|
1803
|
-
width: 250px;
|
|
1804
|
-
`}
|
|
1805
|
-
`,jt=g.forwardRef(function({name:i,smallSearch:n=!1,value:r,...a},s){const l=o.nt(),[c,d]=g.useState(!1),{refs:p,floatingStyles:x}=o.useFloating(),u=g.useCallback(()=>{d(b=>!b)},[]);V(p.floating.current,()=>{d(!1)},!0);const f=t.jsxs(Yn,{children:[t.jsx(v,{icon:"magnifying-glass",iconColor:l.palette.gray[700],iconSize:"xs",iconType:"fa-light"}),t.jsx(Zn,{...a,id:i,name:i,ref:s,value:r}),!o.lodashExports.isEmpty(r)&&t.jsx(E,{icon:"xmark",iconColor:l.palette.gray[300],iconSize:"xs",iconType:"fa-light",px:.25,py:.25,type:"reset",variant:"ghost"})]});return n?t.jsxs(g.Fragment,{children:[t.jsx(E,{border:`1px solid ${l.palette.gray[300]} !important`,icon:"magnifying-glass",iconSize:"xs",iconType:"fa-light",onClick:u,ref:p.setReference,variant:"ghost"}),c?t.jsx(Jn,{ref:p.setFloating,style:x,children:f}):void 0]}):f}),Qn=({isOpen:e=!0,items:i,handleNewOrganization:n,onSelect:r,onClose:a,selectedItem:s,title:l,variant:c})=>{const d=o.nt(),[p,x]=g.useState(i),[u,f]=g.useState(""),b=g.useCallback(j=>{x(y=>y.filter(S=>String(S.name).toLowerCase().includes(j.toLocaleLowerCase())))},[x]),$=g.useCallback(j=>{j.currentTarget&&(f(j.currentTarget.value),b(j.currentTarget.value))},[f,b]);g.useEffect(()=>{x(i),b(u)},[i,b,u]);const w=()=>t.jsx(h,{"aria-modal":"true",className:"comp-modal fixed inset-0 overflow-auto",zIndex:99999,children:t.jsx(h,{alignItems:"center",bgColor:"rgb(52 64 84 / 70%)",display:"flex",height:"100vh",justify:"center",left:"0",top:"0",width:"100%",children:t.jsxs(Xn,{$itemsLength:p.length,children:[t.jsxs(h,{alignItems:"center",display:"flex",justify:"space-between",children:[t.jsx(m,{color:d.palette.gray[800],fontWeight:"bold",size:"lg",children:l}),t.jsx(E,{icon:"xmark",iconColor:d.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:a,variant:"ghost"})]}),t.jsx(h,{mt:1,children:t.jsx(jt,{onInput:$,placeholder:"Search"})}),t.jsx(he,{mb:1,mt:1}),t.jsxs(h,{display:"inline-flex",gap:1,maxHeight:"332px",scroll:"y",wrap:"wrap",children:[c==="organization-selector"?t.jsx(Pe,{onClick:n,children:t.jsxs(h,{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(m,{color:d.palette.gray[400],size:"sm",children:"New organization"})]})}):void 0,p.map(j=>t.jsx(wt,{isSelected:s.toLowerCase()===j.name,label:j.name.charAt(0).toUpperCase()+j.name.slice(1),onSelect:r},j.name))]})]})})});return e?ee.createPortal(w(),document.body):t.jsx("div",{})},ea=({description:e,height:i="auto",leftIconName:n,children:r,rightIconName:a,title:s,tooltipId:l,tooltipTip:c,tooltipPlace:d="bottom",variant:p="centered",width:x="318px"})=>{const u=o.nt(),f=p==="centered",b=t.jsx(B,{icon:a??n,iconColor:u.palette.gray[800],id:l,place:d,tip:c});return t.jsxs(h,{alignItems:f?"center":"flex-start",bgColor:u.palette.gray[50],border:`1px solid ${u.palette.gray[200]}`,borderRadius:"4px",display:"inline-flex",flexDirection:f?"column":"column-reverse",gap:.5,height:i,justify:"center",padding:[1.25,1.25,1.25,1.25],width:x,children:[t.jsxs(h,{alignItems:"center",display:"flex",gap:.5,children:[f||o.lodashExports.isUndefined(n)?void 0:b,t.jsx(m,{color:f?u.palette.gray[800]:u.palette.gray[400],size:"md",textAlign:f?"center":"start",children:e}),f||o.lodashExports.isUndefined(a)?void 0:b]}),t.jsxs(h,{alignItems:"center",display:"flex",gap:.5,my:.5,children:[f&&!o.lodashExports.isUndefined(n)?b:void 0,t.jsxs("div",{style:{display:"flex",gap:"12px"},children:[o.lodashExports.isUndefined(s)?void 0:t.jsx(R,{fontWeight:"bold",size:"md",children:s}),r]}),f&&!o.lodashExports.isUndefined(a)?b:void 0]})]})},ta=o.dt.button`
|
|
1806
|
-
${({theme:e})=>`
|
|
1807
|
-
align-items: center;
|
|
1808
|
-
color: ${e.palette.gray[500]};
|
|
1809
|
-
display: flex;
|
|
1810
|
-
gap: ${e.spacing[.625]};
|
|
1811
|
-
justify-content: center;
|
|
1812
|
-
padding: ${e.spacing[.75]};
|
|
1813
|
-
text-align: center;
|
|
1814
|
-
width: 151px;
|
|
1815
|
-
|
|
1816
|
-
&.active {
|
|
1817
|
-
color: ${e.palette.gray[800]};
|
|
1818
|
-
border-bottom: 3px solid ${e.palette.primary[400]};
|
|
1819
|
-
}
|
|
1820
|
-
|
|
1821
|
-
&:hover {
|
|
1822
|
-
color: ${e.palette.gray[800]};
|
|
1823
|
-
}
|
|
1824
|
-
`}
|
|
1825
|
-
`,ia=o.dt.div`
|
|
1826
|
-
${({theme:e})=>`
|
|
1827
|
-
align-items: center;
|
|
1828
|
-
border-bottom: 2px solid ${e.palette.gray[200]};
|
|
1829
|
-
display: flex;
|
|
1830
|
-
gap: ${e.spacing[3]};
|
|
1831
|
-
height: ${e.spacing[3]};
|
|
1832
|
-
width: max-content;
|
|
1833
|
-
`}
|
|
1834
|
-
`,na=o.dt(He.NavLink)`
|
|
1835
|
-
${({theme:e})=>`
|
|
1836
|
-
align-items: center;
|
|
1837
|
-
background: transparent;
|
|
1838
|
-
cursor: pointer;
|
|
1839
|
-
color: ${e.palette.gray[800]};
|
|
1840
|
-
font-family: ${e.typography.type.primary};
|
|
1841
|
-
font-size: ${e.typography.text.sm};
|
|
1842
|
-
display: flex;
|
|
1843
|
-
font-weight: ${e.typography.weight.regular};
|
|
1844
|
-
padding: ${e.spacing[.625]} ${e.spacing[.5]};
|
|
1845
|
-
position: relative;
|
|
1846
|
-
text-align: center;
|
|
1847
|
-
text-decoration: unset;
|
|
1848
|
-
|
|
1849
|
-
&:disabled {
|
|
1850
|
-
cursor: not-allowed;
|
|
1851
|
-
background-color: ${e.palette.gray[300]};
|
|
1852
|
-
color: ${e.palette.gray[300]};
|
|
1853
|
-
}
|
|
1854
|
-
|
|
1855
|
-
&:hover:not([disabled]) {
|
|
1856
|
-
background-color: ${e.palette.gray[100]};
|
|
1857
|
-
color: ${e.palette.gray[800]};
|
|
1858
|
-
}
|
|
1859
|
-
|
|
1860
|
-
&.active {
|
|
1861
|
-
background-color: transparent;
|
|
1862
|
-
border-bottom: solid 4px ${e.palette.primary[500]};
|
|
1863
|
-
padding-bottom: calc(${e.spacing[.625]} - 4px);
|
|
1864
|
-
|
|
1865
|
-
&:hover {
|
|
1866
|
-
background-color: transparent;
|
|
1867
|
-
border-bottom: solid 4px ${e.palette.primary[500]};
|
|
1868
|
-
}
|
|
1869
|
-
}
|
|
1870
|
-
`}
|
|
1871
|
-
`,aa=({items:e})=>t.jsx(ia,{children:e.map(({isActive:i,label:n,onClick:r},a)=>t.jsx(ta,{className:i?"active":"",onClick:r,type:"button",children:t.jsx(R,{color:"inherit",fontWeight:"semibold",size:"sm",sizeSm:"xs",children:n})},`${n}-${a}`))}),ra=o.dt(K)`
|
|
1872
|
-
${({theme:e,$variant:i})=>`
|
|
1873
|
-
align-items: center;
|
|
1874
|
-
background: ${i==="error"?e.palette.primary[400]:e.palette.warning[500]};
|
|
1875
|
-
border-radius: 100%;
|
|
1876
|
-
font-family: ${e.typography.type.primary};
|
|
1877
|
-
justify-content: center;
|
|
1878
|
-
padding: 0;
|
|
1879
|
-
position: absolute;
|
|
1880
|
-
z-index: 11;
|
|
1881
|
-
width: ${e.spacing[.5]};
|
|
1882
|
-
height: ${e.spacing[.5]};
|
|
1883
|
-
`}
|
|
1884
|
-
`,oa=o.dt.div`
|
|
1885
|
-
align-items: center;
|
|
1886
|
-
color: ${({theme:e})=>e.palette.white};
|
|
1887
|
-
display: flex;
|
|
1888
|
-
font-size: 6px;
|
|
1889
|
-
font-weight: ${({theme:e})=>e.typography.weight.bold};
|
|
1890
|
-
justify-content: center;
|
|
1891
|
-
`,kt=g.forwardRef(function({numberIndicator:i,show:n,variant:r="error",...a},s){return t.jsx(ra,{$variant:r,className:n?"flex":"hidden","data-testid":"notification-sign",ref:s,...a,children:i&&t.jsx(oa,{children:i<=9?i:9})})}),vt=({label:e,id:i,isActive:n=!1,link:r,notificationSign:a,onClick:s,tooltip:l=""})=>t.jsx(B,{display:"flex",id:`${i}-tooltip`,tip:l,children:t.jsxs(na,{"aria-selected":n,className:n?"active":"",id:i,onClick:s,role:"tab",to:r,children:[e,t.jsx(kt,{left:a==null?void 0:a.left,numberIndicator:a==null?void 0:a.numberIndicator,show:a==null?void 0:a.show,top:a==null?void 0:a.top,variant:a==null?void 0:a.variant})]})}),Ct=({items:e,borders:i=!0,box:n=!1})=>{const r=o.nt();return t.jsx(h,{bgColor:r.palette.white,border:n?"1px solid":void 0,borderBottom:i?`1px solid ${r.palette.gray[300]}`:void 0,borderColor:n?r.palette.gray[200]:void 0,borderRadius:n?r.spacing[.25]:void 0,display:"inline-flex",gap:.25,padding:n?[0,0,0,0]:void 0,pl:i?1.25:void 0,pr:i?1.25:void 0,role:"tablist",width:n?"max-content":"100%",children:e.map(({id:a,isActive:s,link:l,label:c,notificationSign:d,onClick:p,tooltip:x})=>t.jsx(vt,{id:a,isActive:s,label:c,link:l,notificationSign:d,onClick:p,tooltip:x},a))})},sa=({actions:e,children:i,header:n,title:r,tabs:a,footer:s})=>{const l=o.nt();return t.jsxs(h,{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(h,{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(h,{display:"flex",flexDirection:"column",gap:.25,children:[t.jsx(m,{color:l.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:r}),n]}),e&&t.jsx(h,{display:"flex",gap:.25,children:e.map(({icon:c,onClick:d},p)=>t.jsx(E,{icon:c??"paper-plane",iconColor:l.palette.gray[400],iconSize:"xxs",iconType:"fa-light",onClick:d,variant:"ghost"},`${p}-${c}`))})]}),t.jsx(h,{display:"flex",pt:.25,width:"100%",children:t.jsx(Ct,{items:a})}),t.jsx(h,{alignSelf:"stretch",display:"flex",flexDirection:"column",px:1.25,py:1,scroll:"y",children:i}),s&&t.jsx(h,{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},x)=>t.jsx(z,{icon:c,onClick:p,variant:x===0?"primary":"tertiary",width:"100%",children:d},`${x}-${d}`))})]})},la=o.dt.div`
|
|
1892
|
-
${({theme:e})=>`
|
|
1893
|
-
align-items: flex-start;
|
|
1894
|
-
backdrop-filter: blur(3.15px);
|
|
1895
|
-
background: radial-gradient(
|
|
1896
|
-
68.83% 167.8% at 171.9% 90.34%,
|
|
1897
|
-
${e.palette.complementary[300]} 0%,
|
|
1898
|
-
${e.palette.primary[400]} 100%
|
|
1899
|
-
),
|
|
1900
|
-
linear-gradient(
|
|
1901
|
-
241deg,
|
|
1902
|
-
${e.palette.primary[400]} 3.45%,
|
|
1903
|
-
${e.palette.primary[500]} 82.59%
|
|
1904
|
-
);
|
|
1905
|
-
border-radius: ${e.spacing[1]};
|
|
1906
|
-
box-shadow: ${e.shadows.md};
|
|
1907
|
-
display: flex;
|
|
1908
|
-
flex-direction: column;
|
|
1909
|
-
gap: ${e.spacing[.625]};
|
|
1910
|
-
height: 300px;
|
|
1911
|
-
padding: ${e.spacing[1]};
|
|
1912
|
-
position: relative;
|
|
1913
|
-
width: 300px;
|
|
1914
|
-
|
|
1915
|
-
button > * {
|
|
1916
|
-
font-size: ${e.typography.text.sm};
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
|
-
#hovered {
|
|
1920
|
-
display: none;
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
|
-
&:hover {
|
|
1924
|
-
background: ${e.palette.gray[900]};
|
|
1925
|
-
|
|
1926
|
-
#hovered {
|
|
1927
|
-
display: flex;
|
|
1928
|
-
}
|
|
1929
|
-
#uncover {
|
|
1930
|
-
display: none;
|
|
1931
|
-
}
|
|
1932
|
-
}
|
|
1933
|
-
|
|
1934
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
1935
|
-
height: 320px;
|
|
1936
|
-
width: 320px;
|
|
1937
|
-
|
|
1938
|
-
#hovered {
|
|
1939
|
-
margin-bottom: ${e.spacing[1.75]};
|
|
1940
|
-
}
|
|
1941
|
-
}
|
|
1942
|
-
`}
|
|
1943
|
-
`,ca=o.dt.div`
|
|
1944
|
-
align-items: center;
|
|
1945
|
-
position: absolute;
|
|
1946
|
-
justify-content: center;
|
|
1947
|
-
opacity: 0.15;
|
|
1948
|
-
top: 14%;
|
|
1949
|
-
left: 25%;
|
|
1950
|
-
z-index: -1;
|
|
1951
|
-
|
|
1952
|
-
span {
|
|
1953
|
-
font-size: 265px;
|
|
1954
|
-
height: 260px;
|
|
1955
|
-
width: 260px;
|
|
1956
|
-
}
|
|
1957
|
-
`,St=({icon:e})=>t.jsx(ca,{children:t.jsx(v,{icon:e,iconColor:k.palette.white,iconSize:"xs",iconTransform:"shrink-2",iconType:"fa-light"})}),da=({category:e,description:i,href:n,icon:r,location:a,title:s})=>{const l=o.nt();return t.jsxs(la,{children:[t.jsxs(h,{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(m,{color:l.palette.white,size:"sm",sizeSm:"xs",children:e}),t.jsx(R,{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(m,{color:l.palette.white,size:"sm",sizeSm:"xs",children:"Location"}),t.jsx(m,{color:l.palette.white,fontWeight:"bold",lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:a})]})]}),t.jsxs(h,{alignItems:"self-start",display:"flex",flexDirection:"column",gap:2,height:"100%",id:"hovered",justify:"space-between",pt:1,children:[t.jsx(R,{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(m,{color:l.palette.gray[100],lineSpacing:1.5,lineSpacingSm:1.25,size:"md",sizeSm:"sm",children:i}),t.jsx(z,{external:!0,href:n,variant:"link",width:"max-content",children:"Download now"})]})]}),t.jsx(St,{icon:r})]})},pa=o.dt.button`
|
|
1958
|
-
${({theme:e})=>`
|
|
1959
|
-
align-items: center;
|
|
1960
|
-
border-left: 3px solid transparent;
|
|
1961
|
-
display: flex;
|
|
1962
|
-
gap: ${e.spacing[.625]};
|
|
1963
|
-
height: 42px;
|
|
1964
|
-
min-width: 50px;
|
|
1965
|
-
padding: ${e.spacing[.625]} ${e.spacing[1]};
|
|
1966
|
-
|
|
1967
|
-
&.dark {
|
|
1968
|
-
background-color: ${e.palette.gray[800]};
|
|
1969
|
-
color: ${e.palette.gray[25]};
|
|
1970
|
-
|
|
1971
|
-
&.disabled {
|
|
1972
|
-
border-color: ${e.palette.gray[500]};
|
|
1973
|
-
color: ${e.palette.gray[500]};
|
|
1974
|
-
cursor: not-allowed;
|
|
1975
|
-
}
|
|
1976
|
-
|
|
1977
|
-
&:hover:not(.disabled) {
|
|
1978
|
-
background-color: ${e.palette.gray[700]};
|
|
1979
|
-
border-color: ${e.palette.primary[400]};
|
|
1980
|
-
}
|
|
1981
|
-
}
|
|
1982
|
-
|
|
1983
|
-
&.light {
|
|
1984
|
-
background-color: ${e.palette.gray[50]};
|
|
1985
|
-
color: ${e.palette.gray[800]};
|
|
1986
|
-
|
|
1987
|
-
&.disabled {
|
|
1988
|
-
background-color: ${e.palette.white};
|
|
1989
|
-
border-color: ${e.palette.gray[300]};
|
|
1990
|
-
color: ${e.palette.gray[300]};
|
|
1991
|
-
cursor: not-allowed;
|
|
1992
|
-
}
|
|
1993
|
-
|
|
1994
|
-
&:hover:not(.disabled) {
|
|
1995
|
-
background-color: ${e.palette.gray[100]};
|
|
1996
|
-
border-color: ${e.palette.primary[400]};
|
|
1997
|
-
}
|
|
1998
|
-
}
|
|
1999
|
-
`}
|
|
2000
|
-
`,ga=o.dt.div`
|
|
2001
|
-
${({theme:e})=>`
|
|
2002
|
-
align-items: center;
|
|
2003
|
-
background-color: transparent;
|
|
2004
|
-
border-bottom: 2px solid transparent;
|
|
2005
|
-
display: flex;
|
|
2006
|
-
font-family: ${e.typography.type.primary};
|
|
2007
|
-
font-size: ${e.typography.text.sm};
|
|
2008
|
-
font-weight: ${e.typography.weight.regular};
|
|
2009
|
-
gap: ${e.spacing[.5]};
|
|
2010
|
-
height: 30px;
|
|
2011
|
-
justify-content: center;
|
|
2012
|
-
padding: ${e.spacing[.25]};
|
|
2013
|
-
margin-bottom: ${e.spacing[.25]};
|
|
2014
|
-
min-width: 50px;
|
|
2015
|
-
width: max-content;
|
|
2016
|
-
z-index: 11;
|
|
2017
|
-
|
|
2018
|
-
&:hover {
|
|
2019
|
-
border-color: ${e.palette.primary[400]};
|
|
2020
|
-
}
|
|
2021
|
-
|
|
2022
|
-
&.dark {
|
|
2023
|
-
color: ${e.palette.gray[25]};
|
|
2024
|
-
}
|
|
2025
|
-
|
|
2026
|
-
&.light {
|
|
2027
|
-
color: ${e.palette.gray[800]};
|
|
2028
|
-
}
|
|
2029
|
-
`}
|
|
2030
|
-
`,xa=o.dt.div`
|
|
2031
|
-
${({theme:e})=>`
|
|
2032
|
-
background-color: ${e.palette.white};
|
|
2033
|
-
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
2034
|
-
box-shadow: ${e.shadows.lg};
|
|
2035
|
-
display: none;
|
|
2036
|
-
flex-direction: column;
|
|
2037
|
-
position: absolute;
|
|
2038
|
-
top: 100%;
|
|
2039
|
-
z-index: 11;
|
|
2040
|
-
|
|
2041
|
-
> button:last-child {
|
|
2042
|
-
border-radius: 0 0 ${e.spacing[.25]} ${e.spacing[.25]};
|
|
2043
|
-
}
|
|
2044
|
-
`}
|
|
2045
|
-
`,ua=o.dt.div`
|
|
2046
|
-
${({theme:e})=>`
|
|
2047
|
-
align-items: flex-start;
|
|
2048
|
-
cursor: pointer;
|
|
2049
|
-
display: flex;
|
|
2050
|
-
flex-direction: column;
|
|
2051
|
-
gap: ${e.spacing[.25]};
|
|
2052
|
-
height: max-content;
|
|
2053
|
-
position: relative;
|
|
2054
|
-
width: max-content;
|
|
2055
|
-
z-index: 10;
|
|
2056
|
-
|
|
2057
|
-
&:hover {
|
|
2058
|
-
> div:first-child {
|
|
2059
|
-
border-color: ${e.palette.primary[400]};
|
|
2060
|
-
}
|
|
2061
|
-
|
|
2062
|
-
> div:last-child {
|
|
2063
|
-
display: flex;
|
|
2064
|
-
}
|
|
2065
|
-
}
|
|
2066
|
-
`}
|
|
2067
|
-
`,zt=({disabled:e=!1,mode:i,onClick:n,text:r})=>t.jsx(pa,{className:`${e&&"disabled"} ${i}`,disabled:e,onClick:n,children:t.jsx(m,{color:"inherit",size:"sm",sizeSm:"xs",children:r})}),fa=[{text:"EN"},{text:"ES"}],ha=({items:e,handleClick:i,mode:n="light"})=>{const r=e??fa,[a,s]=g.useState(r[0].text),l=g.useCallback(c=>()=>{i(c.text),s(c.text)},[i]);return t.jsxs(ua,{children:[t.jsxs(ga,{className:n,children:[t.jsx(v,{icon:"globe",iconSize:"xs",iconType:"fa-light"}),a]}),t.jsx(xa,{children:r.map((c,d)=>t.jsx(zt,{disabled:c.disabled,mode:n,onClick:l(c),text:c.text},`${c.text}_${d}`))})]})},ba=o.dt.li`
|
|
2068
|
-
${({theme:e})=>`
|
|
2069
|
-
align-items: center;
|
|
2070
|
-
background-color: ${e.palette.white};
|
|
2071
|
-
color: ${e.palette.gray[800]};
|
|
2072
|
-
cursor: pointer;
|
|
2073
|
-
display: flex;
|
|
2074
|
-
font-size: ${e.typography.text.sm};
|
|
2075
|
-
font-weight: ${e.typography.weight.regular};
|
|
2076
|
-
justify-content: space-between;
|
|
2077
|
-
gap: ${e.spacing[.625]};
|
|
2078
|
-
line-height: ${e.spacing[1.25]};
|
|
2079
|
-
list-style-type: none;
|
|
2080
|
-
min-height: 40px;
|
|
2081
|
-
min-width: 240px;
|
|
2082
|
-
padding: ${e.spacing[.625]} ${e.spacing[1]};
|
|
2083
|
-
pointer-events: auto;
|
|
2084
|
-
|
|
2085
|
-
p,
|
|
2086
|
-
a {
|
|
2087
|
-
word-break: break-word;
|
|
2088
|
-
}
|
|
2089
|
-
|
|
2090
|
-
& > label {
|
|
2091
|
-
margin: unset;
|
|
2092
|
-
}
|
|
2093
|
-
|
|
2094
|
-
a {
|
|
2095
|
-
color: ${e.palette.gray[500]};
|
|
2096
|
-
}
|
|
2097
|
-
|
|
2098
|
-
&[aria-disabled="true"] {
|
|
2099
|
-
color: ${e.palette.gray[300]};
|
|
2100
|
-
pointer-events: none;
|
|
2101
|
-
|
|
2102
|
-
a {
|
|
2103
|
-
color: ${e.palette.gray[300]};
|
|
2104
|
-
}
|
|
2105
|
-
}
|
|
2106
|
-
|
|
2107
|
-
&[aria-selected="true"] {
|
|
2108
|
-
background-color: ${e.palette.gray[200]};
|
|
2109
|
-
}
|
|
2110
|
-
|
|
2111
|
-
&:hover:not([aria-selected="true"]) {
|
|
2112
|
-
background-color: ${e.palette.gray[100]};
|
|
2113
|
-
}
|
|
2114
|
-
`}
|
|
2115
|
-
`,It=o.dt.ul`
|
|
2116
|
-
${({theme:e})=>`
|
|
2117
|
-
background-color: ${e.palette.white};
|
|
2118
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
2119
|
-
border-radius: ${e.spacing[.25]};
|
|
2120
|
-
box-shadow: ${e.shadows.md};
|
|
2121
|
-
display: inline-block;
|
|
2122
|
-
margin: unset;
|
|
2123
|
-
min-width: 240px;
|
|
2124
|
-
padding: ${e.spacing[.25]} 0 ${e.spacing[.25]} 0;
|
|
2125
|
-
`}
|
|
2126
|
-
`,$a=({children:e,disabled:i=!1,icon:n,iconType:r="fa-light",href:a,onClick:s,onKeyDown:l,selected:c=!1,value:d,...p})=>{const u=o.nt().palette.gray[i?300:800],f=i?g.Children.map(e,b=>g.isValidElement(b)?g.cloneElement(b,{disabled:i,...b.props}):b):e;return t.jsxs(ba,{"aria-disabled":i,"aria-label":d,"aria-selected":c,"data-testid":d,onClick:s,onKeyDown:l,value:d,...p,children:[n!==void 0||d!==void 0?t.jsxs(h,{alignItems:"center",display:"flex",gap:.625,children:[n?t.jsx(v,{disabled:i,icon:n,iconColor:u,iconSize:"xs",iconType:r}):null,a===void 0?f:t.jsx(_,{href:a,children:f})]}):null,c?t.jsx(v,{disabled:i,icon:"check",iconColor:u,iconSize:"xs",iconType:r}):null]})},ya=o.dt.span`
|
|
2127
|
-
${({theme:e,$bgColor:i=e.palette.secondary[500],$txtDecoration:n="none"})=>`
|
|
2128
|
-
background-color: ${i};
|
|
2129
|
-
border-radius: 5px;
|
|
2130
|
-
color: ${e.palette.white};
|
|
2131
|
-
font-size: 10px;
|
|
2132
|
-
padding: ${e.spacing[.125]} ${e.spacing[.25]} ${e.spacing[.125]} ${e.spacing[.25]};
|
|
2133
|
-
text-decoration: ${n}
|
|
2134
|
-
`}
|
|
2135
|
-
`,ma=({bgColor:e,children:i,txtDecoration:n,ml:r=1})=>t.jsx(ya,{$bgColor:e,$txtDecoration:n,className:`ml-${r}`,children:i}),wa={lg:"56",md:"30",sm:"12"},{getVariant:ja}=A(e=>({red:`stroke: ${e.palette.primary[500]};`,white:`stroke: ${e.palette.white};`})),ka=o.mt`
|
|
2136
|
-
0% {
|
|
2137
|
-
transform: rotateZ(0deg);
|
|
2138
|
-
}
|
|
2139
|
-
100% {
|
|
2140
|
-
transform: rotateZ(360deg)
|
|
2141
|
-
}
|
|
2142
|
-
`,va=o.mt`
|
|
2143
|
-
0%,
|
|
2144
|
-
25% {
|
|
2145
|
-
stroke-dashoffset: 280;
|
|
2146
|
-
transform: rotate(0);
|
|
2147
|
-
}
|
|
2148
|
-
|
|
2149
|
-
50%,
|
|
2150
|
-
75% {
|
|
2151
|
-
stroke-dashoffset: 75;
|
|
2152
|
-
transform: rotate(45deg);
|
|
2153
|
-
}
|
|
2154
|
-
|
|
2155
|
-
100% {
|
|
2156
|
-
stroke-dashoffset: 280;
|
|
2157
|
-
transform: rotate(360deg);
|
|
2158
|
-
}
|
|
2159
|
-
`,Ca=o.dt.svg`
|
|
2160
|
-
${({$size:e="md"})=>o.lt`
|
|
2161
|
-
animation: ${ka} 2s linear infinite;
|
|
2162
|
-
animation-timing-function: linear;
|
|
2163
|
-
display: inline-block;
|
|
2164
|
-
width: ${wa[e]}px;
|
|
2165
|
-
`}
|
|
2166
|
-
`,Sa=o.dt.circle`
|
|
2167
|
-
${({theme:e,$color:i="red"})=>o.lt`
|
|
2168
|
-
animation: 1.4s ease-in-out infinite both ${va};
|
|
2169
|
-
display: block;
|
|
2170
|
-
fill: transparent;
|
|
2171
|
-
stroke-linecap: round;
|
|
2172
|
-
stroke-dasharray: 283;
|
|
2173
|
-
stroke-dashoffset: 280;
|
|
2174
|
-
stroke-width: 10px;
|
|
2175
|
-
transform-origin: 50% 50%;
|
|
2176
|
-
|
|
2177
|
-
${ja(e,i)}
|
|
2178
|
-
`}
|
|
2179
|
-
`,za=o.dt.circle`
|
|
2180
|
-
display: block;
|
|
2181
|
-
fill: transparent;
|
|
2182
|
-
stroke: ${({theme:e})=>e.palette.gray[200]};
|
|
2183
|
-
stroke-linecap: round;
|
|
2184
|
-
stroke-width: 10px;
|
|
2185
|
-
transform-origin: 50% 50%;
|
|
2186
|
-
opacity: ${({$color:e})=>e==="white"?"20%":"unset"};
|
|
2187
|
-
`,Ia=({color:e="red",label:i,size:n})=>{const r=o.nt();return t.jsxs(h,{alignItems:"center",display:"flex",children:[t.jsxs(Ca,{$size:n,viewBox:"0 0 100 100",children:[t.jsx(za,{$color:e,cx:"50",cy:"50",r:"45"}),t.jsx(Sa,{$color:e,cx:"50",cy:"50",r:"45"})]}),i&&t.jsx(m,{color:e==="red"?r.palette.gray[700]:r.palette.white,ml:.5,size:"sm",children:i})]})},Ta=o.dt.div`
|
|
2188
|
-
display: flex;
|
|
2189
|
-
height: 80px;
|
|
2190
|
-
max-width: 1440px;
|
|
2191
|
-
overflow: hidden;
|
|
2192
|
-
position: relative;
|
|
2193
|
-
`,Me=o.dt.div`
|
|
2194
|
-
height: 79px;
|
|
2195
|
-
width: 64px;
|
|
2196
|
-
flex-shrink: 0;
|
|
2197
|
-
position: absolute;
|
|
2198
|
-
z-index: 11;
|
|
2199
|
-
|
|
2200
|
-
&.left {
|
|
2201
|
-
background: linear-gradient(
|
|
2202
|
-
to right,
|
|
2203
|
-
#fff 57.21%,
|
|
2204
|
-
rgb(255 255 255 / 0%) 100.63%
|
|
2205
|
-
);
|
|
2206
|
-
left: 0;
|
|
2207
|
-
}
|
|
2208
|
-
|
|
2209
|
-
&.right {
|
|
2210
|
-
background: linear-gradient(
|
|
2211
|
-
to left,
|
|
2212
|
-
#fff 57.21%,
|
|
2213
|
-
rgb(255 255 255 / 0%) 100.63%
|
|
2214
|
-
);
|
|
2215
|
-
right: 0;
|
|
2216
|
-
}
|
|
2217
|
-
`,Ra=o.dt.div`
|
|
2218
|
-
display: flex;
|
|
2219
|
-
gap: 40px;
|
|
2220
|
-
animation: clients-animation 50s linear infinite;
|
|
2221
|
-
width: calc(180px * 30);
|
|
2222
|
-
|
|
2223
|
-
@keyframes clients-animation {
|
|
2224
|
-
0% {
|
|
2225
|
-
transform: translateX(0);
|
|
2226
|
-
}
|
|
2227
|
-
|
|
2228
|
-
100% {
|
|
2229
|
-
transform: translateX(calc(-180px * 15));
|
|
2230
|
-
}
|
|
2231
|
-
}
|
|
2232
|
-
`,Na=["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"],Ea=({fusion:e=!1,logos:i=Na})=>t.jsxs(Ta,{children:[e&&t.jsx(Me,{className:"left"}),t.jsx(Ra,{children:[...i,...i].map((n,r)=>t.jsx(W,{alt:`${n}-${r}`,height:"80px",plugins:[o.placeholder()],publicId:n,width:"140px"},`${n}-${r}`))}),e&&t.jsx(Me,{className:"right"})]}),Pa={company:{height:"83px",width:"460px"},footer:{height:"57px",width:"315px"},header:{height:"35px",width:"160px"},icon:{height:"40px",width:"40px"},inline:{width:"150px"}},Fa=({publicId:e,variant:i})=>t.jsx(h,{...Pa[i],children:t.jsx(W,{alt:"logo",publicId:e})}),Wa=({children:e,commitSha:i,commitShortSha:n,parentElement:r,userInfo:a,setVisibility:s})=>{const l=o.nt(),{userName:c,email:d,phone:p,userRole:x}=a;return V(r,()=>{s(!1)}),t.jsxs(It,{children:[t.jsx("li",{className:"user-info",children:t.jsxs(h,{display:"inline-flex",gap:.25,width:"100%",children:[t.jsxs(h,{display:"flex",flexDirection:"column",gap:.25,width:"100%",children:[t.jsx(m,{color:l.palette.gray[800],fontWeight:"bold",size:"sm",children:c}),t.jsx(m,{color:l.palette.gray[400],size:"sm",children:d}),o.lodashExports.isUndefined(p)?void 0:t.jsx(m,{color:l.palette.gray[400],size:"sm",children:p})]}),t.jsx(h,{children:t.jsx($e,{tagLabel:x,variant:"role"})})]})}),t.jsx(he,{}),e,t.jsx(he,{}),t.jsx("li",{className:"commit-info",children:t.jsx(_,{href:`https://gitlab.com/fluidattacks/universe/-/tree/${i}`,iconPosition:"hidden",children:t.jsx(m,{color:l.palette.gray[400],size:"xs",children:`commit : ${n}`})})})]})},Da=o.dt.button`
|
|
2233
|
-
align-items: center;
|
|
2234
|
-
background-color: transparent;
|
|
2235
|
-
border: unset;
|
|
2236
|
-
cursor: pointer;
|
|
2237
|
-
display: flex;
|
|
2238
|
-
justify-content: center;
|
|
2239
|
-
gap: 5px;
|
|
2240
|
-
padding: 0;
|
|
2241
|
-
|
|
2242
|
-
&:hover p {
|
|
2243
|
-
color: ${k.palette.primary[200]};
|
|
2244
|
-
}
|
|
2245
|
-
|
|
2246
|
-
&:hover span {
|
|
2247
|
-
color: ${k.palette.primary[200]};
|
|
2248
|
-
}
|
|
2249
|
-
`,La=e=>e==="platform"?{normal:"sm",small:void 0}:{normal:"md",small:"sm"},Aa=({message:e,onClickButton:i,buttonText:n,buttonFontWeight:r="regular",icon:a,onClose:s,variant:l="web"})=>{const c=o.nt(),[d,p]=g.useState(!0),x=g.useCallback(()=>{p(!1),s==null||s()},[s]),u=La(l);return t.jsxs(h,{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(h,{display:"flex",gap:.5,justify:"center",width:"100%",children:[t.jsx(h,{children:typeof e=="string"?t.jsx(m,{color:c.palette.white,display:"inline",size:u.normal,sizeSm:u.small,children:e}):e}),i?t.jsxs(Da,{onClick:i,children:[t.jsx(m,{color:c.palette.white,fontWeight:r,size:u.normal,sizeSm:u.small,textDecoration:"underline",children:n}),t.jsx(v,{icon:a??"arrow-right",iconColor:c.palette.white,iconSize:"xs",iconType:r==="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:x})]})},Ba=o.dt.div`
|
|
2250
|
-
${({theme:e,$variant:i})=>`
|
|
2251
|
-
background: ${e.palette.white};
|
|
2252
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
2253
|
-
border-radius: ${e.spacing[.25]};
|
|
2254
|
-
border-left: 4px solid ${e.palette[i][500]};
|
|
2255
|
-
box-shadow: ${e.shadows.md};
|
|
2256
|
-
position: relative;
|
|
2257
|
-
display: flex;
|
|
2258
|
-
width: 360px;
|
|
2259
|
-
padding: ${e.spacing[1.25]} ${e.spacing[1]} ${e.spacing[1.25]} ${e.spacing[.75]};
|
|
2260
|
-
gap: ${e.spacing[.5]};
|
|
2261
|
-
|
|
2262
|
-
button {
|
|
2263
|
-
position: absolute;
|
|
2264
|
-
top: 20px;
|
|
2265
|
-
right: 16px;
|
|
2266
|
-
}
|
|
2267
|
-
`}
|
|
2268
|
-
`,Ma=o.dt.div`
|
|
2269
|
-
${({theme:e,$variant:i})=>`
|
|
2270
|
-
height: ${e.spacing[2.5]};
|
|
2271
|
-
width: ${e.spacing[2.5]};
|
|
2272
|
-
position: relative;
|
|
2273
|
-
flex-shrink: 0;
|
|
2274
|
-
|
|
2275
|
-
& .ellipse-1,
|
|
2276
|
-
& .ellipse-2,
|
|
2277
|
-
& .icon {
|
|
2278
|
-
top: 50%;
|
|
2279
|
-
left: 50%;
|
|
2280
|
-
transform: translate(-50%, -50%);
|
|
2281
|
-
position: absolute;
|
|
2282
|
-
}
|
|
2283
|
-
|
|
2284
|
-
& .ellipse-1 {
|
|
2285
|
-
transform: scale(2.5) translate(-20%, -20%);
|
|
2286
|
-
color: ${e.palette[i][50]};
|
|
2287
|
-
position: absolute;
|
|
2288
|
-
}
|
|
2289
|
-
|
|
2290
|
-
& .ellipse-2 {
|
|
2291
|
-
transform: scale(2) translate(-25%, -25%);
|
|
2292
|
-
color: ${e.palette[i][200]};
|
|
2293
|
-
}
|
|
2294
|
-
|
|
2295
|
-
& .icon {
|
|
2296
|
-
color: ${e.palette[i][500]};
|
|
2297
|
-
}
|
|
2298
|
-
`}
|
|
2299
|
-
`,Oa=e=>e==="warning"?"triangle-exclamation":e==="info"?"circle-info":e==="success"?"circle-check":"circle-exclamation",Ha=({description:e,onClose:i,title:n,variant:r})=>{const a=o.nt(),s=g.useCallback(()=>{i==null||i()},[i]);return t.jsxs(Ba,{$variant:r,className:`notification notification__${r}`,role:"alertdialog",children:[t.jsxs(Ma,{$variant:r,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:Oa(r),iconClass:"icon",iconSize:"xs",iconType:"fa-light"})]}),t.jsxs(h,{pr:1.5,children:[t.jsx(R,{fontWeight:"bold",size:"xs",children:n}),t.jsx(m,{size:"sm",whiteSpace:"break-spaces",wordWrap:"break-word",children:e})]}),t.jsx(E,{height:"fit-content",icon:"close",iconColor:a.palette.gray[400],iconSize:"xs",iconType:"fa-light",onClick:s,px:.125,py:.125,variant:"ghost"})]})},_a=o.dt.div`
|
|
2300
|
-
width: fit-content;
|
|
2301
|
-
border: ${({theme:e})=>`1px solid ${e.palette.gray[300]}`};
|
|
2302
|
-
border-radius: 4px;
|
|
2303
|
-
background: none;
|
|
2304
|
-
color: ${({theme:e})=>e.palette.black};
|
|
2305
|
-
font-family: ${({theme:e})=>e.typography.type.primary};
|
|
2306
|
-
font-size: ${({theme:e})=>e.typography.text.md};
|
|
2307
|
-
height: 40px;
|
|
2308
|
-
display: flex;
|
|
2309
|
-
align-items: center;
|
|
2310
|
-
justify-content: center;
|
|
2311
|
-
padding: 0.5em;
|
|
2312
|
-
`,Va=o.dt.input`
|
|
2313
|
-
width: 4em;
|
|
2314
|
-
appearance: textfield;
|
|
2315
|
-
border-style: none;
|
|
2316
|
-
padding: 0.5rem;
|
|
2317
|
-
padding-top: 0.5rem;
|
|
2318
|
-
padding-bottom: 0.5rem;
|
|
2319
|
-
padding-left: 0.5rem;
|
|
2320
|
-
background: none;
|
|
2321
|
-
|
|
2322
|
-
&:focus {
|
|
2323
|
-
border-color: unset;
|
|
2324
|
-
box-shadow: none;
|
|
2325
|
-
outline: none;
|
|
2326
|
-
}
|
|
2327
|
-
|
|
2328
|
-
&::-webkit-outer-spin-button,
|
|
2329
|
-
&::-webkit-inner-spin-button {
|
|
2330
|
-
opacity: 1;
|
|
2331
|
-
}
|
|
2332
|
-
`,Ga=g.forwardRef(function({autoUpdate:i=!1,decimalPlaces:n=0,defaultValue:r=0,max:a,min:s,name:l,onEnter:c,tooltipMessage:d,...p},x){const u=n<0?0:n,[f,b]=g.useState(Number(r).toFixed(u)),$=g.useCallback(y=>{const S=o.lodashExports.toNumber(y.target.value);y.target.value.endsWith(".")?b(y.target.value):S>=Number(s)&&S<=Number(a)&&(b(String(S)),i&&c(o.lodashExports.toNumber(S.toFixed(u)))),y.stopPropagation()},[i,u,a,s,c]),w=g.useCallback(y=>{y.currentTarget.contains(y.relatedTarget)||b(Number(r).toFixed(u)),y.stopPropagation()},[u,r]),j=g.useCallback(y=>{y.stopPropagation(),y.key==="Enter"&&!o.lodashExports.isEmpty(y.currentTarget.value)&&c(o.lodashExports.toNumber(y.currentTarget.value))},[c]);return t.jsx(_a,{onBlur:w,tabIndex:-1,children:t.jsx(B,{id:"numberInputTooltip",tip:d,children:t.jsx(Va,{...p,"aria-label":l,"aria-valuemax":Number(a),"aria-valuemin":Number(s),"aria-valuenow":Number(f),max:a,min:s,name:l,onChange:$,onKeyUp:j,ref:x,step:10**-u,type:"number",value:f})})})}),Ua={Azure:"integrates/autoenrollment/azureIcon",Bitbucket:"integrates/autoenrollment/bitbucketLogo",GitHub:"integrates/autoenrollment/githubLogo",GitLab:"integrates/autoenrollment/gitlabIcon"},Ie=({icon:e,label:i,onClick:n,onlyLabel:r=!1,provider:a="GitLab"})=>{const s=o.nt();return t.jsxs(h,{alignItems:"center",bgColorHover:s.palette.gray[100],borderRadius:"4px",cursor:"pointer",display:"flex",flexDirection:"column",gap:.25,height:"62px",justify:"center",minWidth:"64px",onClick:n,pb:.5,pl:.25,pr:.25,pt:.5,children:[r?!1:t.jsx(h,{height:"24px",width:"24px",children:e===void 0?t.jsx(W,{alt:`${a} Logo`,height:"100%",publicId:Ua[a],width:"100%"}):t.jsx(v,{icon:e,iconColor:"#000",iconSize:"sm",iconType:"fa-light"})}),t.jsx(h,{alignItems:"center",display:"flex",minWidth:"24px",children:t.jsx(m,{color:s.palette.gray[800],display:"inline",size:"xs",textAlign:"center",whiteSpace:r?"break-spaces":"nowrap",wordWrap:"unset",children:i??a})})]})},qa=({align:e="end",buttonLabel:i="Add Credential",children:n,id:r,manualOption:a,providers:s})=>{const l=o.nt(),[c,d]=g.useState(!1),p=g.useRef(null);V(p.current,()=>{d(!1)},!0);const x=g.useCallback(b=>{a==null||a.onClick(b),d(!1)},[a]),u=g.useCallback(()=>{d(b=>!b)},[d]),f=g.useCallback(b=>$=>{var w;(w=s[b])==null||w.onClick($),d(!1)},[s]);return t.jsxs(h,{alignItems:e,display:"flex",flexDirection:"column",position:"relative",ref:p,width:"max-content",zIndex:10,children:[t.jsx(z,{icon:"plus",onClick:u,variant:"primary",children:i}),t.jsxs(h,{alignItems:"center",bgColor:"#fff",border:`1px solid ${l.palette.gray[200]}`,borderRadius:"4px",display:"flex",gap:.5,height:"78px",id:r,pb:.5,pl:.75,position:"absolute",pr:.75,pt:.5,shadow:"md",top:"40px",visibility:c?"visible":"hidden",zIndex:10,children:[Object.keys(s).map(b=>t.jsx(Ie,{onClick:f(b),provider:b},b)),a===void 0?void 0:t.jsx(Ie,{icon:"square-plus",label:a.label??"Add manually",onClick:x}),n]})]})},Tt=()=>t.jsx(h,{alignItems:"center",bgColor:k.palette.primary[25],borderRadius:"8px",gap:.5,justify:"center",padding:[.125,.25,.125,.25],width:"max-content",children:t.jsx(m,{bgGradient:k.palette.gradients["01"],fontWeight:"semibold",size:"xs",textFill:"transparent",children:"Recommended"})}),Ka=o.dt.div`
|
|
2333
|
-
${({className:e,theme:i})=>`
|
|
2334
|
-
align-items: flex-start;
|
|
2335
|
-
border-radius: ${i.spacing[1]};
|
|
2336
|
-
background: ${i.palette.white};
|
|
2337
|
-
display: flex;
|
|
2338
|
-
flex-direction: column;
|
|
2339
|
-
gap: ${i.spacing[1]};
|
|
2340
|
-
padding: ${i.spacing[1.5]};
|
|
2341
|
-
position: relative;
|
|
2342
|
-
width: 320px;
|
|
2343
|
-
|
|
2344
|
-
button {
|
|
2345
|
-
text-align: center;
|
|
2346
|
-
width: 100%;
|
|
2347
|
-
}
|
|
2348
|
-
|
|
2349
|
-
${e==="essential"?`border: 2px solid ${i.palette.gray[300]};`:`
|
|
2350
|
-
box-shadow: 0px 9px 18px 0px rgba(243, 38, 55, 0.06),
|
|
2351
|
-
0px 18px 27px 0px rgba(243, 38, 55, 0.10);
|
|
2352
|
-
|
|
2353
|
-
&::before {
|
|
2354
|
-
background: ${i.palette.gradients["01"]} border-box;
|
|
2355
|
-
border-radius: ${i.spacing[1]};
|
|
2356
|
-
content: "";
|
|
2357
|
-
position: absolute;
|
|
2358
|
-
inset: 0;
|
|
2359
|
-
border: 2px solid transparent;
|
|
2360
|
-
mask:
|
|
2361
|
-
linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
2362
|
-
mask-composite: exclude;
|
|
2363
|
-
}
|
|
2364
|
-
`}
|
|
2365
|
-
`}
|
|
2366
|
-
`;o.dt.div`
|
|
2367
|
-
${({className:e,theme:i})=>`
|
|
2368
|
-
align-items: flex-start;
|
|
2369
|
-
border-radius: ${i.spacing[1]};
|
|
2370
|
-
display: flex;
|
|
2371
|
-
flex-direction: column;
|
|
2372
|
-
justify-content: center;
|
|
2373
|
-
gap: ${i.spacing[1.5]};
|
|
2374
|
-
padding: ${i.spacing[1.5]};
|
|
2375
|
-
width: 466px;
|
|
2376
|
-
|
|
2377
|
-
button {
|
|
2378
|
-
text-align: center;
|
|
2379
|
-
width: 100%;
|
|
2380
|
-
}
|
|
2381
|
-
|
|
2382
|
-
${e==="essential"?`
|
|
2383
|
-
background: linear-gradient(
|
|
2384
|
-
180deg,
|
|
2385
|
-
${i.palette.primary[400]} 0%,
|
|
2386
|
-
${i.palette.black} 100%
|
|
2387
|
-
);`:`
|
|
2388
|
-
background: ${i.palette.white};
|
|
2389
|
-
box-shadow: 0px 9px 18px 0px rgba(243, 38, 55, 0.06),
|
|
2390
|
-
0px 18px 27px 0px rgba(243, 38, 55, 0.10);
|
|
2391
|
-
`}
|
|
2392
|
-
|
|
2393
|
-
@media screen and (max-width: ${i.breakpoints.mobile}) {
|
|
2394
|
-
width: 320px;
|
|
2395
|
-
}
|
|
2396
|
-
`}
|
|
2397
|
-
`;const Xa={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
|
|
2398
|
-
through our scanning tool.`,priceAuthor:"$499",priceGroup:"$1,579"}},Za=({description:e,onClick:i,plan:n})=>{const{title:r,description:a,benefits:s,buttonText:l}=Xa[n],c=e??a;return t.jsxs(Ka,{className:n,children:[t.jsxs(h,{display:"flex",flexDirection:"column",gap:.25,pt:n==="essential"?1.75:0,children:[n==="advanced"&&t.jsx(Tt,{}),t.jsx(R,{color:k.palette.gray[900],fontWeight:"semibold",size:"sm",sizeSm:"xs",children:r}),t.jsx(m,{color:k.palette.gray[400],fontWeight:"semibold",pb:n==="essential"?1.25:0,size:"sm",sizeSm:"xs",children:s})]}),t.jsx(m,{lineSpacing:1.5,lineSpacingSm:1.25,pb:n==="advanced"?1.5:0,size:"md",sizeSm:"sm",children:c}),t.jsx(z,{onClick:i,variant:"primary",children:l})]})},Rt=({description:e="",highlightDescription:i=""})=>{const n=o.nt(),r=typeof i=="string",a=r?"":new RegExp(`(${i.join("|")})`,"u");return i.length>0?t.jsx(m,{display:"inline",lineSpacing:1.5,size:"lg",textAlign:"center",children:r?t.jsxs(g.Fragment,{children:[t.jsx(xe,{color:n.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:i}),e]}):e.split(a).map((s,l)=>i.includes(s)?t.jsx(xe,{color:n.palette.gray[600],display:"inline",fontWeight:"bold",lineSpacing:1.5,size:"lg",children:s},`${l+1}-bold`):s)}):t.jsx(m,{lineSpacing:1.5,size:"lg",textAlign:"center",children:e})},Ya=({_portal:e=!1,cancelButton:i,darkBackground:n=!1,children:r,confirmButton:a,container:s,description:l,highlightDescription:c="",image:d,maxWidth:p,title:x,titleColor:u})=>{const f=o.nt(),{alt:b,src:$,width:w="77px",height:j="77px"}=d,y=g.useCallback(()=>{i==null||i.onClick()},[i]),S=g.useCallback(()=>{a==null||a.onClick()},[a]),T=t.jsx(h,{alignItems:"center","aria-label":x,"aria-modal":"true",bgColor:n?"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(h,{bgColor:f.palette.white,border:`1px solid ${f.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(h,{alignItems:"center",display:"flex",flexDirection:"column",width:"100%",children:[t.jsx(h,{children:t.jsx(W,{alt:b,height:j,publicId:$,width:w})}),t.jsxs(h,{display:"flex",flexDirection:"column",gap:.5,mb:1.5,mt:1.5,children:[t.jsx(R,{color:u,fontWeight:"bold",lineSpacing:2.5,size:"lg",textAlign:"center",children:x}),t.jsx(Rt,{description:l,highlightDescription:c})]})]}),r&&t.jsx(h,{mb:1,scroll:"y",children:t.jsx(h,{height:"100%",children:r})}),t.jsxs(h,{alignItems:"flex-start",display:"flex",gap:1,justify:"center",children:[o.lodashExports.isObject(a)?t.jsx(z,{onClick:S,variant:(a==null?void 0:a.variant)??"primary",children:a==null?void 0:a.text},a==null?void 0:a.key):void 0,o.lodashExports.isObject(i)?t.jsx(z,{onClick:y,variant:(i==null?void 0:i.variant)??"tertiary",children:i==null?void 0:i.text},i==null?void 0:i.key):void 0]})]})});return e?ee.createPortal(T,s??document.body):T},Ja=o.dt.div`
|
|
2399
|
-
${({theme:e})=>`
|
|
2400
|
-
height: ${e.spacing[1]};
|
|
2401
|
-
width: ${e.spacing[1]};
|
|
2402
|
-
position: relative;
|
|
2403
|
-
flex-shrink: 0;
|
|
2404
|
-
|
|
2405
|
-
& .ellipse-1,
|
|
2406
|
-
& .ellipse-2,
|
|
2407
|
-
& .icon {
|
|
2408
|
-
top: 50%;
|
|
2409
|
-
left: 50%;
|
|
2410
|
-
transform: translate(-50%, -50%);
|
|
2411
|
-
position: absolute;
|
|
2412
|
-
}
|
|
2413
|
-
|
|
2414
|
-
& .ellipse-1 {
|
|
2415
|
-
color: ${e.palette.warning[200]};
|
|
2416
|
-
position: absolute;
|
|
2417
|
-
}
|
|
2418
|
-
|
|
2419
|
-
& .ellipse-2 {
|
|
2420
|
-
transform: scale(0.75) translate(-67%, -66%);
|
|
2421
|
-
color: ${e.palette.warning[400]};
|
|
2422
|
-
}
|
|
2423
|
-
|
|
2424
|
-
& .icon {
|
|
2425
|
-
color: ${e.palette.warning[600]};
|
|
2426
|
-
font-size: ${e.spacing[.5]};
|
|
2427
|
-
}
|
|
2428
|
-
`}
|
|
2429
|
-
`,Nt=({margin:e,onClick:i,text:n})=>{const r=o.nt(),a=t.jsxs(Ja,{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 n!==void 0?t.jsx(h,{cursor:"pointer",display:"inline-block",mr:e,onClick:i,children:t.jsxs(h,{alignItems:"center",bgColor:r.palette.warning[50],borderRadius:"4px",display:"flex",padding:[.25,.25,.25,.25],width:"fit-content",children:[a,t.jsx(m,{color:r.palette.warning[500],display:"inline",ml:.25,size:"xs",children:n})]})}):t.jsx(h,{display:"inline-block",mr:e,onClick:i,children:a})},Qa=({score:e})=>{const i=o.nt(),n=e<=33?"priority-bars-low":"priority-bars-medium",r=e>66||e===0?"priority-bars-high":n;return t.jsxs(h,{alignItems:"center",display:"inline-flex",gap:.25,children:[t.jsx(v,{icon:r,iconClass:e<=66?"fa-kit-duotone":"",iconColor:e>0?i.palette.primary[500]:i.palette.gray[200],iconSize:"xs",iconType:"fa-kit",secondaryColor:i.palette.gray[200]}),t.jsx(m,{color:i.palette.gray[800],size:"sm",textAlign:"right",children:e+"%"})]})},{getVariant:er}=A(e=>({compliance:`
|
|
2430
|
-
display: inline-flex;
|
|
2431
|
-
|
|
2432
|
-
&.horizontal {
|
|
2433
|
-
height: ${e.spacing[.75]};
|
|
2434
|
-
}
|
|
2435
|
-
&.vertical {
|
|
2436
|
-
width: ${e.spacing[.75]};
|
|
2437
|
-
}
|
|
2438
|
-
`,default:`
|
|
2439
|
-
display: inline-flex;
|
|
2440
|
-
|
|
2441
|
-
&.horizontal {
|
|
2442
|
-
height: ${e.spacing[.5]};
|
|
2443
|
-
}
|
|
2444
|
-
&.vertical {
|
|
2445
|
-
width: ${e.spacing[.5]};
|
|
2446
|
-
}
|
|
2447
|
-
.progress-bar {
|
|
2448
|
-
background-color: ${e.palette.primary[500]};
|
|
2449
|
-
}
|
|
2450
|
-
`,progressIndicator:`
|
|
2451
|
-
display: flex;
|
|
2452
|
-
|
|
2453
|
-
&.horizontal {
|
|
2454
|
-
height: ${e.spacing[.125]};
|
|
2455
|
-
}
|
|
2456
|
-
&.vertical {
|
|
2457
|
-
width: ${e.spacing[.125]};
|
|
2458
|
-
}
|
|
2459
|
-
.progress-bar {
|
|
2460
|
-
background-color: ${e.palette.primary[500]};
|
|
2461
|
-
}
|
|
2462
|
-
`,progressIndicatorError:`
|
|
2463
|
-
display: flex;
|
|
2464
|
-
|
|
2465
|
-
&.horizontal {
|
|
2466
|
-
height: ${e.spacing[.125]};
|
|
2467
|
-
}
|
|
2468
|
-
&.vertical {
|
|
2469
|
-
width: ${e.spacing[.125]};
|
|
2470
|
-
}
|
|
2471
|
-
.progress-bar {
|
|
2472
|
-
background-color: ${e.palette.error[200]};
|
|
2473
|
-
}
|
|
2474
|
-
`,small:`
|
|
2475
|
-
color: ${e.palette.primary[500]};
|
|
2476
|
-
display: inline-flex;
|
|
2477
|
-
|
|
2478
|
-
&.horizontal {
|
|
2479
|
-
height: ${e.spacing[.25]};
|
|
2480
|
-
}
|
|
2481
|
-
&.vertical {
|
|
2482
|
-
width: ${e.spacing[.25]};
|
|
2483
|
-
}
|
|
2484
|
-
.progress-bar {
|
|
2485
|
-
background-color: ${e.palette.primary[500]};
|
|
2486
|
-
}
|
|
2487
|
-
`})),tr=(e,i)=>i<50?e.palette.error[500]:i<80?e.palette.warning[500]:e.palette.success[500],ir=o.dt.div`
|
|
2488
|
-
${({theme:e,$minWidth:i,$orientation:n,$rounded:r,$variant:a})=>`
|
|
2489
|
-
background-color: ${e.palette.gray[100]};
|
|
2490
|
-
border-radius: ${r?"100px":"unset"};
|
|
2491
|
-
${n==="horizontal"?"min-width":"min-height"}: ${i}px;
|
|
2492
|
-
${n==="horizontal"?"":"height: 100%;"}
|
|
2493
|
-
|
|
2494
|
-
${er(e,a)}
|
|
2495
|
-
|
|
2496
|
-
`}
|
|
2497
|
-
`,nr=o.dt.div`
|
|
2498
|
-
${({theme:e,$percentage:i,$rounded:n,$variant:r})=>`
|
|
2499
|
-
display: inline-flex;
|
|
2500
|
-
width: ${i}%;
|
|
2501
|
-
max-width: 100%;
|
|
2502
|
-
min-width: 0%;
|
|
2503
|
-
height: 100%;
|
|
2504
|
-
border-radius: ${n?"100px":"unset"};
|
|
2505
|
-
border-end-end-radius: ${n&&i<100?"0":"inherit"};
|
|
2506
|
-
border-start-end-radius: ${n&&i<100?"0":"inherit"};
|
|
2507
|
-
background-color: ${r==="compliance"?tr(e,i):"inherit"};
|
|
2508
|
-
`}
|
|
2509
|
-
`,ar=({minWidth:e=100,percentage:i,percentageLocation:n="right",showPercentage:r=!1,orientation:a="horizontal",rounded:s=!0,variant:l="default"})=>{const c=r&&n==="left",d=r?t.jsx(h,{alignItems:"center",display:"flex",justify:c?"flex-end":"flex-start",width:"40px",children:t.jsx(m,{ml:.5,mr:c?.5:0,size:"sm",children:`${i}%`})}):null,p=t.jsx(ir,{$minWidth:e,$orientation:a,$rounded:s,$variant:l,className:a,children:t.jsx(nr,{$percentage:i,$rounded:s,$variant:l,className:"progress-bar"})});return t.jsxs(h,{alignItems:"center",display:"inline-flex",flexDirection:c?"row-reverse":"row",height:a==="horizontal"?"auto":"100%",maxWidth:c?`${e+43}px`:void 0,minWidth:c?`${e+43}px`:void 0,textAlign:"end",children:[p,d]})},rr=o.dt(K)`
|
|
2510
|
-
animation: ${({$animationTime:e})=>`progress-bar ${e}s ease-in-out`};
|
|
2511
|
-
animation-fill-mode: both;
|
|
2512
|
-
|
|
2513
|
-
@keyframes progress-bar {
|
|
2514
|
-
0% {
|
|
2515
|
-
width: 0;
|
|
2516
|
-
}
|
|
2517
|
-
|
|
2518
|
-
100% {
|
|
2519
|
-
width: 100%;
|
|
2520
|
-
}
|
|
2521
|
-
}
|
|
2522
|
-
`,or=e=>e*1e3/100,sr=({progressTime:e=10,onComplete:i})=>{const n=o.nt(),r=100,[a,s]=g.useState(0);return g.useEffect(()=>{a===r&&(i==null||i())},[a,i]),g.useEffect(()=>{const l=setInterval(()=>{s(c=>c===r?0:c+1)},or(e));return()=>{clearInterval(l)}},[a,e]),t.jsx(h,{bgColor:n.palette.gray[200],height:"4px",children:t.jsx(rr,{$animationTime:e,bgGradient:n.palette.gradients["01"],height:"100%",width:`${a}%`})})},lr=o.dt.div.attrs({className:"comp-scroll-up"})`
|
|
2523
|
-
bottom: 15px;
|
|
2524
|
-
position: fixed;
|
|
2525
|
-
right: 140px;
|
|
2526
|
-
z-index: 100;
|
|
2527
|
-
`,cr=({scrollerId:e="dashboard",visibleAt:i=500})=>{const[n,r]=g.useState(!1),[a,s]=g.useState(null);g.useEffect(()=>{s(document.getElementById(e)),a==null||a.addEventListener("scroll",()=>{r(a.scrollTop>i)})},[a,e,i]);const l=g.useCallback(()=>{a==null||a.scrollTo({behavior:"smooth",top:0})},[a]);return n?t.jsx(lr,{children:t.jsx(E,{height:"40px",icon:"arrow-up",iconSize:"sm",id:"scroll-up",onClick:l,width:"40px"})}):null},dr=o.dt.a`
|
|
2528
|
-
${({theme:e})=>`
|
|
2529
|
-
align-items: center;
|
|
2530
|
-
display: flex;
|
|
2531
|
-
background: ${e.palette.white};
|
|
2532
|
-
border-radius: ${e.spacing[.5]};
|
|
2533
|
-
cursor: pointer;
|
|
2534
|
-
gap: ${e.spacing[1]};
|
|
2535
|
-
padding:
|
|
2536
|
-
${e.spacing[.5]}
|
|
2537
|
-
${e.spacing[1]}
|
|
2538
|
-
${e.spacing[.5]}
|
|
2539
|
-
${e.spacing[.5]};
|
|
2540
|
-
width: 1143px;
|
|
2541
|
-
|
|
2542
|
-
&:hover {
|
|
2543
|
-
background: ${e.palette.gray[100]};
|
|
2544
|
-
|
|
2545
|
-
> div.icon-wrap {
|
|
2546
|
-
background: ${e.palette.gradients["01"]};
|
|
2547
|
-
|
|
2548
|
-
path {
|
|
2549
|
-
fill: ${e.palette.white};
|
|
2550
|
-
}
|
|
2551
|
-
}
|
|
2552
|
-
}
|
|
2553
|
-
|
|
2554
|
-
@media screen
|
|
2555
|
-
and (min-width: ${e.breakpoints.sm})
|
|
2556
|
-
and (max-width: ${e.breakpoints.md})
|
|
2557
|
-
{
|
|
2558
|
-
width: 905px;
|
|
2559
|
-
}
|
|
2560
|
-
|
|
2561
|
-
@media screen
|
|
2562
|
-
and (min-width: 40em)
|
|
2563
|
-
and (max-width: ${e.breakpoints.sm})
|
|
2564
|
-
{
|
|
2565
|
-
width: 475px;
|
|
2566
|
-
}
|
|
2567
|
-
|
|
2568
|
-
@media screen and (max-width: 40em) {
|
|
2569
|
-
width: 270px;
|
|
2570
|
-
}
|
|
2571
|
-
`}
|
|
2572
|
-
`,pr=o.dt.div.attrs({className:"icon-wrap"})`
|
|
2573
|
-
${({theme:e})=>`
|
|
2574
|
-
align-items: center;
|
|
2575
|
-
background: ${e.palette.primary[25]};
|
|
2576
|
-
border-radius: ${e.spacing[.25]};
|
|
2577
|
-
display: flex;
|
|
2578
|
-
justify-content: center;
|
|
2579
|
-
min-width: ${e.spacing[2.5]};
|
|
2580
|
-
height: ${e.spacing[2.5]};
|
|
2581
|
-
padding: ${e.spacing[.5]};
|
|
2582
|
-
|
|
2583
|
-
span {
|
|
2584
|
-
font-size: 20px;
|
|
2585
|
-
}
|
|
2586
|
-
`}
|
|
2587
|
-
`,gr=o.dt.div`
|
|
2588
|
-
${({theme:e})=>`
|
|
2589
|
-
align-items: flex-start;
|
|
2590
|
-
display: flex;
|
|
2591
|
-
flex-direction: column;
|
|
2592
|
-
gap: ${e.spacing[1.5]};
|
|
2593
|
-
width: 1193px;
|
|
2594
|
-
|
|
2595
|
-
> :is(form, .dropdown) {
|
|
2596
|
-
border-radius: ${e.spacing[.5]};
|
|
2597
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
2598
|
-
background-color: ${e.palette.white};
|
|
2599
|
-
}
|
|
2600
|
-
|
|
2601
|
-
@media screen
|
|
2602
|
-
and (min-width: ${e.breakpoints.sm})
|
|
2603
|
-
and (max-width: ${e.breakpoints.md})
|
|
2604
|
-
{
|
|
2605
|
-
width: 954px;
|
|
2606
|
-
}
|
|
2607
|
-
|
|
2608
|
-
@media screen
|
|
2609
|
-
and (min-width: 40em)
|
|
2610
|
-
and (max-width: ${e.breakpoints.sm})
|
|
2611
|
-
{
|
|
2612
|
-
width: 526px;
|
|
2613
|
-
}
|
|
2614
|
-
|
|
2615
|
-
@media screen and (max-width: 40em) {
|
|
2616
|
-
width: 320px;
|
|
2617
|
-
}
|
|
2618
|
-
`}
|
|
2619
|
-
`,xr=o.dt.form`
|
|
2620
|
-
${({theme:e})=>`
|
|
2621
|
-
align-items: center;
|
|
2622
|
-
display: flex;
|
|
2623
|
-
gap: ${e.spacing[.5]};
|
|
2624
|
-
justify-content: space-between;
|
|
2625
|
-
padding: ${e.spacing[1]} ${e.spacing[1.5]};
|
|
2626
|
-
width: 100%;
|
|
2627
|
-
`}
|
|
2628
|
-
`,ur=o.dt.input`
|
|
2629
|
-
${({theme:e})=>`
|
|
2630
|
-
flex: 1 0 0;
|
|
2631
|
-
border: none;
|
|
2632
|
-
color: ${e.palette.gray[600]};
|
|
2633
|
-
font-family: ${e.typography.type.primary};
|
|
2634
|
-
font-size: ${e.typography.text.md};
|
|
2635
|
-
font-weight: ${e.typography.weight.regular};
|
|
2636
|
-
line-height: ${e.spacing[1.5]};
|
|
2637
|
-
outline: none;
|
|
2638
|
-
|
|
2639
|
-
&::placeholder {
|
|
2640
|
-
color: ${e.palette.gray[400]};
|
|
2641
|
-
}
|
|
2642
|
-
|
|
2643
|
-
&::-webkit-search-decoration,
|
|
2644
|
-
&::-webkit-search-cancel-button,
|
|
2645
|
-
&::-webkit-search-results-button,
|
|
2646
|
-
&::-webkit-search-results-decoration {
|
|
2647
|
-
-webkit-appearance:none;
|
|
2648
|
-
}
|
|
2649
|
-
|
|
2650
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
2651
|
-
font-size: ${e.typography.text.sm};
|
|
2652
|
-
}
|
|
2653
|
-
`}
|
|
2654
|
-
`,fr=o.dt.button`
|
|
2655
|
-
${({theme:e})=>`
|
|
2656
|
-
align-items: center;
|
|
2657
|
-
border-radius: ${e.spacing[.5]};
|
|
2658
|
-
display: flex;
|
|
2659
|
-
width: ${e.spacing[2.5]};
|
|
2660
|
-
height: ${e.spacing[2.5]};
|
|
2661
|
-
padding: ${e.spacing[.625]} ${e.spacing[1]};
|
|
2662
|
-
justify-content: center;
|
|
2663
|
-
gap: ${e.spacing[.5]};
|
|
2664
|
-
flex-shrink: 0;
|
|
2665
|
-
|
|
2666
|
-
span {
|
|
2667
|
-
color: ${e.palette.gray[400]};
|
|
2668
|
-
}
|
|
2669
|
-
|
|
2670
|
-
&:hover {
|
|
2671
|
-
background-color: ${e.palette.gray[100]};
|
|
2672
|
-
}
|
|
2673
|
-
`}
|
|
2674
|
-
`,ke=o.dt.div.attrs({className:"dropdown"})`
|
|
2675
|
-
${({theme:e,$empty:i=!1,$showHits:n=!1})=>`
|
|
2676
|
-
align-items: flex-start;
|
|
2677
|
-
align-self: stretch;
|
|
2678
|
-
background-repeat: no-repeat;
|
|
2679
|
-
background-size: 100% 100%;
|
|
2680
|
-
display: flex;
|
|
2681
|
-
flex-direction: column;
|
|
2682
|
-
gap: ${e.spacing[.5]};
|
|
2683
|
-
max-height: ${n?"270px":"500px"};
|
|
2684
|
-
overflow: hidden auto;
|
|
2685
|
-
padding: ${e.spacing[1.5]};
|
|
2686
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
2687
|
-
scroll-padding: ${e.spacing[.5]};
|
|
2688
|
-
scrollbar-width: thin;
|
|
2689
|
-
|
|
2690
|
-
@media screen and (max-width: ${e.breakpoints.sm}) and (${!i}) {
|
|
2691
|
-
max-height: 410px;
|
|
2692
|
-
}
|
|
2693
|
-
${i&&`
|
|
2694
|
-
@media screen and (min-width: ${e.breakpoints.mobile}) {
|
|
2695
|
-
border: none !important;
|
|
2696
|
-
background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729784164/airs/search-bar/empty_state_bg.webp);
|
|
2697
|
-
}
|
|
2698
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
2699
|
-
border: none !important;
|
|
2700
|
-
background-image: url(https://res.cloudinary.com/fluid-attacks/image/upload/v1729783908/airs/search-bar/empty_state_bg_mobile.webp);
|
|
2701
|
-
}
|
|
2702
|
-
`}
|
|
2703
|
-
|
|
2704
|
-
&::-webkit-scrollbar {
|
|
2705
|
-
height: ${e.spacing[.5]};
|
|
2706
|
-
width: ${e.spacing[.5]};
|
|
2707
|
-
}
|
|
2708
|
-
&::-webkit-scrollbar-track {
|
|
2709
|
-
background: ${e.palette.gray[100]};
|
|
2710
|
-
}
|
|
2711
|
-
&::-webkit-scrollbar-thumb {
|
|
2712
|
-
background-color: ${e.palette.gray[600]};
|
|
2713
|
-
border-radius: ${e.spacing[5]};
|
|
2714
|
-
height: ${e.spacing[.5]};
|
|
2715
|
-
}
|
|
2716
|
-
`}
|
|
2717
|
-
`,ge=({hit:e,icon:i="infinity",showIcon:n=!1})=>{const{slug:r,title:a}=e,s=String(r).startsWith("/pages/")?String(r).replace("/pages/","/"):String(r);return t.jsxs(dr,{href:s,rel:"nofollow noopener noreferrer",children:[n&&t.jsx(pr,{children:t.jsx(v,{icon:i,iconClass:"fill-gradient-01",iconSize:"sm",iconType:"fa-light"})}),t.jsx(m,{color:k.palette.gray[800],lineSpacing:1.5,size:"md",sizeSm:"sm",whiteSpace:"wrap",children:String(a)})]})},hr=[{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"}],Oe={hit:{slug:"/contact-us/",title:"Contact Support"},icon:"envelope"},br=({items:e,placeholder:i="Search",refine:n,query:r})=>{const[a,s]=g.useState(r),[l,c]=g.useState(!1),d=g.useRef(null),p=g.useRef(null),x=a.length>=2,u=g.useCallback(y=>{s(y),n(y)},[n]),f=g.useCallback(()=>{u("")},[u]),b=g.useCallback(()=>{c(!0)},[]),$=g.useCallback(y=>{u(y.currentTarget.value)},[u]),w=g.useCallback(y=>{y.preventDefault(),y.stopPropagation(),f(),p.current&&p.current.focus()},[f]),j=g.useCallback(y=>{y.preventDefault(),y.stopPropagation(),p.current&&p.current.blur()},[]);return V(d.current,()=>{f(),c(!1)},!0),t.jsxs(gr,{ref:d,children:[t.jsxs(xr,{action:"",noValidate:!0,onReset:w,onSubmit:j,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(ur,{autoCapitalize:"off",autoComplete:"off",autoCorrect:"off",maxLength:512,onChange:$,onFocus:b,placeholder:i,ref:p,spellCheck:!1,type:"search",value:a})]}),x&&t.jsx(fr,{type:"reset",children:t.jsx(v,{icon:"xmark",iconSize:"sm",iconType:"fa-light"})})]}),l&&a.length<2&&t.jsxs(ke,{children:[t.jsx(m,{color:k.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:hr.map(({hit:y,icon:S},T)=>t.jsx(ge,{hit:y,icon:S,showIcon:!0},`${S}-${T}`))}),t.jsx(m,{color:k.palette.gray[400],fontWeight:"bold",lineSpacing:1.5,size:"md",sizeSm:"sm",children:"Can’t find what you’re looking for?"}),t.jsx(ge,{hit:Oe.hit,icon:Oe.icon,showIcon:!0})]}),x&&e.length>0&&t.jsxs(ke,{$showHits:x,children:[t.jsx(m,{color:k.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(ge,{hit:y},y.objectID))})]}),x&&e.length===0&&t.jsx(ke,{$empty:e.length===0,children:t.jsxs("div",{className:"items-center flex flex-col gap-4 py-[90px] w-full",children:[t.jsx(W,{height:96,publicId:"airs/search-bar/empty-state-icon",width:96}),t.jsx(R,{display:"flex",size:"sm",sizeSm:"xs",textAlign:"center",children:"No results found"}),t.jsxs(m,{display:"flex",lineSpacing:1.5,size:"md",sizeSm:"sm",textAlign:"center",children:[`“${a}” did not match.`,t.jsx("br",{}),"Please try again."]}),t.jsx(z,{onClick:f,variant:"secondary",children:"Clear search"})]})})]})},$r={critical:{bgColor:k.palette.primary[700],colorL:k.palette.gray[800],colorR:k.palette.white},disable:{bgColor:k.palette.gray[200],colorL:k.palette.gray[400],colorR:k.palette.gray[400]},high:{bgColor:k.palette.error[500],colorL:k.palette.gray[800],colorR:k.palette.white},low:{bgColor:k.palette.warning[200],colorL:k.palette.gray[800],colorR:k.palette.gray[800]},medium:{bgColor:k.palette.warning[500],colorL:k.palette.gray[800],colorR:k.palette.gray[800]}},yr=({textL:e,textR:i,variant:n})=>{const r=o.nt(),{bgColor:a,colorL:s,colorR:l}=$r[n];return t.jsxs(h,{alignItems:"flex-start",display:"inline-flex",children:[e?t.jsx(h,{alignItems:"center",bgColor:r.palette.white,border:`1px solid ${a}`,borderRadius:"4px 0px 0px 4px",display:"flex",justify:"center",padding:[0,.25,0,.25],children:t.jsx(m,{color:s,size:"xs",children:e})}):void 0,t.jsx(h,{alignItems:"center",bgColor:a,border:`1px solid ${a}`,borderRadius:e?"0px 4px 4px 0px":"4px",display:"flex",padding:e?[0,.25,0,.125]:[0,.25,0,.25],pb:.125,pl:.125,pr:.125,pt:.125,children:t.jsx(m,{color:l,size:"xs",children:i})})]})},mr=(e,i)=>{const n={critical:k.palette.primary[700],high:k.palette.error[500],low:k.palette.warning[200],medium:k.palette.warning[500],none:k.palette.gray[200]},r={disabled:k.palette.gray[400],enabled:k.palette.gray[800]},a={critical:k.palette.white,high:k.palette.white,low:k.palette.gray[800],medium:k.palette.gray[800],none:k.palette.gray[400]};return{iconColor:i<1?n.none:n[e],iconText:o.lodashExports.capitalize(e.charAt(0)),iconTextColor:i<1?a.none:a[e],textColor:i<1?r.disabled:r.enabled}},J=({variant:e,value:i})=>{const{iconColor:n,iconText:r,iconTextColor:a,textColor:s}=mr(e,i),l=o.lodashExports.capitalize(e.charAt(0))+e.slice(1);return t.jsxs(h,{alignItems:"center",display:"inline-flex",gap:.5,minWidth:"43px",children:[t.jsx(B,{id:l,place:"top",tip:l,children:t.jsx(h,{alignItems:"center",bgColor:n,borderRadius:"4px",cursor:"pointer",display:"flex",height:"22px",maxWidth:"22px",minWidth:"22px",children:t.jsx(m,{color:a,size:"sm",textAlign:"center",children:r})})}),t.jsx(m,{color:s,size:"sm",children:i})]})},wr=({critical:e,high:i,medium:n,low:r})=>t.jsxs(h,{alignItems:"center",display:"inline-flex",gap:1,children:[t.jsx(J,{value:e,variant:"critical"}),t.jsx(J,{value:i,variant:"high"}),t.jsx(J,{value:n,variant:"medium"}),t.jsx(J,{value:r,variant:"low"})]}),jr=o.dt.div`
|
|
2718
|
-
${({theme:e})=>`
|
|
2719
|
-
border-radius: ${e.spacing[.25]};
|
|
2720
|
-
cursor: pointer;
|
|
2721
|
-
display: flex;
|
|
2722
|
-
gap: ${e.spacing[.5]};
|
|
2723
|
-
justify-content: end;
|
|
2724
|
-
position: relative;
|
|
2725
|
-
z-index: 20;
|
|
2726
|
-
|
|
2727
|
-
&:hover {
|
|
2728
|
-
background-color: ${e.palette.gray[100]};
|
|
2729
|
-
}
|
|
2730
|
-
|
|
2731
|
-
&:hover > div {
|
|
2732
|
-
display: block;
|
|
2733
|
-
}
|
|
2734
|
-
`}
|
|
2735
|
-
`,kr=({visibleElement:e,hiddenElement:i})=>t.jsxs(jr,{children:[e,t.jsx(h,{display:"none",position:"absolute",top:"100%",zIndex:10,children:i})]}),Et=({customBadge:e=void 0,description:i,icon:n,onClick:r,requiresUpgrade:a=!1,title:s})=>{const l=o.nt();return t.jsxs(h,{bgColor:l.palette.white,bgColorHover:l.palette.gray[100],cursor:"pointer",display:"flex",gap:.5,onClick:r,px:1.25,py:1,width:"100%",children:[t.jsx(h,{alignItems:"center",bgColor:l.palette.gray[300],borderRadius:l.spacing[.25],display:"flex",height:"24px",justify:"center",width:"24px",children:t.jsx(v,{icon:n,iconColor:l.palette.gray[800],iconSize:"xxs",ml:.5,mr:.5})}),t.jsxs(h,{children:[t.jsxs(h,{alignItems:"center",display:"inline-flex",gap:.5,children:[t.jsx(m,{color:l.palette.gray[800],size:"sm",children:s}),a?t.jsx(Nt,{text:"Upgrade"}):void 0,e]}),t.jsx(m,{color:l.palette.gray[400],size:"xs",children:i})]})]})},vr=o.dt(o.m.div)`
|
|
2736
|
-
${({theme:e})=>`
|
|
2737
|
-
background-color: ${e.palette.white};
|
|
2738
|
-
box-shadow: ${e.shadows.lg};
|
|
2739
|
-
max-width: 350px;
|
|
2740
|
-
min-width: 350px;
|
|
2741
|
-
height: 100%;
|
|
2742
|
-
position: absolute;
|
|
2743
|
-
right: 0;
|
|
2744
|
-
top: 0;
|
|
2745
|
-
overflow: hidden auto;
|
|
2746
|
-
scrollbar-color: ${e.palette.gray[600]} ${e.palette.gray[100]};
|
|
2747
|
-
scroll-padding: ${e.spacing[.5]};
|
|
2748
|
-
scrollbar-width: thin;
|
|
2749
|
-
z-index: 99999;
|
|
2750
|
-
|
|
2751
|
-
> div {
|
|
2752
|
-
border: 1px solid ${e.palette.gray[100]};
|
|
2753
|
-
width: auto;
|
|
2754
|
-
min-height: 100vh;
|
|
2755
|
-
height: auto;
|
|
2756
|
-
}
|
|
2757
|
-
`}
|
|
2758
|
-
`,Cr=({children:e,closeIconId:i="close-menu",isOpen:n,items:r,onClose:a,primaryButtonText:s,primaryOnClick:l,secondaryButtonText:c,secondaryOnClick:d,title:p})=>{const x=o.nt(),u=g.useRef(null),f=g.useCallback(b=>()=>{b(),a()},[a]);return V(u.current,()=>{a()},!0),t.jsx(o.LazyMotion,{features:o.domAnimation,children:t.jsx(vr,{animate:n?{display:"block",x:0}:{transitionEnd:{display:"none"},x:"100%"},initial:{display:"none",x:"100%"},ref:u,transition:{bounce:0,duration:.6,type:"spring"},children:t.jsxs(h,{height:"100%",position:"relative",children:[t.jsxs(h,{alignItems:"center",bgColor:x.palette.white,borderBottom:"1px solid",borderColor:x.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(m,{color:x.palette.black,display:"inline",fontWeight:"bold",size:"xl",children:p}),t.jsx(E,{icon:"close",iconColor:x.palette.gray[400],iconSize:"xs",iconTransform:"grow-4",iconType:"fa-light",id:i,onClick:a,px:.25,py:.25,variant:"ghost"})]}),t.jsxs(h,{display:"flex",flexDirection:"column",justify:"space-between",minHeight:"100vh",children:[t.jsxs(h,{py:1.25,children:[(r??[]).map(({customBadge:b,description:$,icon:w,onClick:j,requiresUpgrade:y,title:S})=>t.jsx(Et,{customBadge:b,description:$,icon:w,onClick:f(j),requiresUpgrade:y,title:S},S)),e&&t.jsx(h,{px:1.25,children:e})]}),s===void 0?void 0:t.jsxs(h,{alignItems:"center",bgColor:x.palette.white,borderColor:x.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(z,{color:`${x.palette.primary[500]} !important`,onClick:d,pl:.5,pr:.5,variant:"ghost",children:c}),t.jsx(z,{onClick:l,type:"submit",children:s})]})]})]})})})},Sr=(e,i)=>i>=50?`
|
|
2759
|
-
${e.palette.gray[200]} 50%,
|
|
2760
|
-
${e.palette.primary[500]} 50.05%,
|
|
2761
|
-
${e.palette.primary[500]} ${i}%,
|
|
2762
|
-
${e.palette.gray[200]} ${i}%
|
|
2763
|
-
`:`
|
|
2764
|
-
${e.palette.gray[200]} ${i}%,
|
|
2765
|
-
${e.palette.primary[500]} ${i}%,
|
|
2766
|
-
${e.palette.primary[500]} 50%,
|
|
2767
|
-
${e.palette.gray[200]} 50.05%,
|
|
2768
|
-
${e.palette.gray[200]} 100%
|
|
2769
|
-
`,zr=o.dt.div`
|
|
2770
|
-
${({theme:e,$min:i,$value:n})=>`
|
|
2771
|
-
align-items: center;
|
|
2772
|
-
align-self: stretch;
|
|
2773
|
-
display: flex;
|
|
2774
|
-
flex-direction: column;
|
|
2775
|
-
justify-content: end;
|
|
2776
|
-
gap: ${e.spacing[.75]};
|
|
2777
|
-
width: 304px;
|
|
2778
|
-
|
|
2779
|
-
.track {
|
|
2780
|
-
background: linear-gradient(
|
|
2781
|
-
to right,
|
|
2782
|
-
${i>=0?`
|
|
2783
|
-
${e.palette.primary[500]} ${n}%,
|
|
2784
|
-
${e.palette.gray[200]} ${n}%
|
|
2785
|
-
`:Sr(e,n)}
|
|
2786
|
-
);
|
|
2787
|
-
border-radius: ${e.spacing[.125]};
|
|
2788
|
-
height: ${e.spacing[.25]};
|
|
2789
|
-
width: 100%;
|
|
2790
|
-
}
|
|
2791
|
-
|
|
2792
|
-
.track.disabled {
|
|
2793
|
-
opacity: 0.4;
|
|
2794
|
-
}
|
|
2795
|
-
|
|
2796
|
-
.thumb {
|
|
2797
|
-
background: ${e.palette.white};
|
|
2798
|
-
border-radius: ${e.spacing[1.25]};
|
|
2799
|
-
box-shadow: 0px 1px 3px 0px rgba(0, 0, 0, 0.30);
|
|
2800
|
-
top: 50%;
|
|
2801
|
-
height: 20px;
|
|
2802
|
-
width: 20px;
|
|
2803
|
-
}
|
|
2804
|
-
|
|
2805
|
-
.thumb.dragging {
|
|
2806
|
-
border: 1px solid ${e.palette.primary[500]};
|
|
2807
|
-
}
|
|
2808
|
-
`}
|
|
2809
|
-
`,Ir=o.dt.div`
|
|
2810
|
-
${({theme:e})=>`
|
|
2811
|
-
align-items: center;
|
|
2812
|
-
display: flex;
|
|
2813
|
-
justify-content: space-between;
|
|
2814
|
-
height: ${e.spacing[.625]};
|
|
2815
|
-
width: 100%;
|
|
2816
|
-
|
|
2817
|
-
p {
|
|
2818
|
-
color: ${e.palette.gray[400]};
|
|
2819
|
-
font-family: ${e.typography.type.primary};
|
|
2820
|
-
font-size: ${e.spacing[.5]};
|
|
2821
|
-
}
|
|
2822
|
-
`}
|
|
2823
|
-
`,Tr=o.dt.output`
|
|
2824
|
-
${({theme:e})=>`
|
|
2825
|
-
align-items: flex-end;
|
|
2826
|
-
border-radius: ${e.spacing[.5]};
|
|
2827
|
-
border: 1px solid ${e.palette.gray[300]};
|
|
2828
|
-
background: ${e.palette.white};
|
|
2829
|
-
display: flex;
|
|
2830
|
-
gap: ${e.spacing[.625]};
|
|
2831
|
-
padding: ${e.spacing[.625]} ${e.spacing[.75]};
|
|
2832
|
-
width: 59px;
|
|
2833
|
-
`}
|
|
2834
|
-
`,Pt=({state:e,trackRef:i,index:n})=>{const r=g.useRef(null),{thumbProps:a,inputProps:s,isDragging:l}=o.$47b897dc8cdb026b$export$8d15029008292ae({index:n,trackRef:i,inputRef:r},e);return t.jsx("div",{...a,className:`thumb ${l?"dragging":""}`,children:t.jsx(o.$5c3e21d68f1c4674$export$439d29a4e110a164,{children:t.jsx("input",{ref:r,...s})})})},Rr=(e,i,n)=>Math.round((n-e)/(i-e)*100),Nr=e=>{const i=o.nt(),n=g.useRef(null),{minValue:r=0,maxValue:a=100}=e,s=o.$a916eb452884faea$export$b7a616150fdb9f44(),l=o.$28f99e3e86e6ec45$export$e5fda3247f5d67f9({...e,numberFormatter:s}),c=Rr(r,a,l.getThumbValue(0)),{groupProps:d,trackProps:p}=o.$bcca50147b47f54d$export$56b2c08e277f365({...e,"aria-label":"slider"},l,n);return t.jsxs(h,{alignItems:"center",display:"inline-flex",gap:1.25,children:[t.jsxs(zr,{...d,$min:r??0,$value:c,className:"slider",children:[t.jsx("div",{...p,className:`track ${l.isDisabled?"disabled":""}`,ref:n,children:t.jsx(Pt,{index:0,state:l,trackRef:n})}),t.jsxs(Ir,{children:[t.jsx("p",{children:`${s.format(r)} (Low)`}),r<0&&t.jsx("p",{children:"0"}),t.jsx("p",{children:`${s.format(a)} (High)`})]})]}),t.jsx(Tr,{children:t.jsx(m,{color:i.palette.gray[800],size:"sm",textAlign:"right",children:l.getThumbValueLabel(0)})})]})},{getVariant:Er}=A(e=>({completed:`
|
|
2835
|
-
background-color: ${e.palette.primary[500]};
|
|
2836
|
-
color: ${e.palette.white};
|
|
2837
|
-
|
|
2838
|
-
&::after {
|
|
2839
|
-
background-color: ${e.palette.primary[500]};
|
|
2840
|
-
}
|
|
2841
|
-
`,current:`
|
|
2842
|
-
background-color: ${e.palette.primary[500]};
|
|
2843
|
-
color: ${e.palette.white};
|
|
2844
|
-
|
|
2845
|
-
&::after {
|
|
2846
|
-
background-color: ${e.palette.gray[200]};
|
|
2847
|
-
}
|
|
2848
|
-
`,disabled:`
|
|
2849
|
-
background-color: ${e.palette.gray[200]};
|
|
2850
|
-
outline: 1px solid ${e.palette.gray[400]};
|
|
2851
|
-
outline-offset: -1px;
|
|
2852
|
-
color: ${e.palette.gray[400]};
|
|
2853
|
-
|
|
2854
|
-
&::after {
|
|
2855
|
-
background-color: ${e.palette.gray[200]};
|
|
2856
|
-
}
|
|
2857
|
-
`})),Pr=o.dt.div`
|
|
2858
|
-
${({theme:e})=>`
|
|
2859
|
-
align-items: stretch;
|
|
2860
|
-
background-color: ${e.palette.white};
|
|
2861
|
-
display: flex;
|
|
2862
|
-
flex-direction: column;
|
|
2863
|
-
height: 100%;
|
|
2864
|
-
padding: ${`${e.spacing[1]} ${e.spacing[1]}`};
|
|
2865
|
-
scroll-behavior: unset;
|
|
2866
|
-
`}
|
|
2867
|
-
`,Fr=o.dt.div`
|
|
2868
|
-
display: flex;
|
|
2869
|
-
flex-direction: row;
|
|
2870
|
-
margin-bottom: ${({theme:e})=>e.spacing[2]};
|
|
2871
|
-
|
|
2872
|
-
&:last-child > div:first-child > span::after {
|
|
2873
|
-
display: none;
|
|
2874
|
-
}
|
|
2875
|
-
`,Wr=o.dt.div`
|
|
2876
|
-
${({theme:e})=>`
|
|
2877
|
-
display: inline-flex;
|
|
2878
|
-
font-family: ${e.typography.type.primary};
|
|
2879
|
-
font-size: ${e.typography.text.sm};
|
|
2880
|
-
line-height: ${e.spacing[1.25]};
|
|
2881
|
-
margin-top: ${e.spacing[1]};
|
|
2882
|
-
|
|
2883
|
-
& > button:first-child {
|
|
2884
|
-
margin-right: ${e.spacing[.5]};
|
|
2885
|
-
}
|
|
2886
|
-
`}
|
|
2887
|
-
`,Dr=o.dt.span`
|
|
2888
|
-
${({theme:e,$variant:i})=>`
|
|
2889
|
-
border-radius: 6px;
|
|
2890
|
-
display: inline-block;
|
|
2891
|
-
text-align: center;
|
|
2892
|
-
font-size: ${e.typography.text.sm};
|
|
2893
|
-
font-weight: ${e.typography.weight.bold};
|
|
2894
|
-
font-family: ${e.typography.type.primary};
|
|
2895
|
-
line-height: ${e.spacing[1]};
|
|
2896
|
-
padding: ${`${e.spacing[.5]} ${e.spacing[.5]}`};
|
|
2897
|
-
height: ${e.spacing[2]};
|
|
2898
|
-
width: ${e.spacing[2]};
|
|
2899
|
-
|
|
2900
|
-
&::after {
|
|
2901
|
-
content: "";
|
|
2902
|
-
position: absolute;
|
|
2903
|
-
top: calc(32px + ${e.spacing[.5]});
|
|
2904
|
-
left: 50%;
|
|
2905
|
-
bottom: 0;
|
|
2906
|
-
width: 2px;
|
|
2907
|
-
height: calc(100% - ${e.spacing[1]});
|
|
2908
|
-
}
|
|
2909
|
-
|
|
2910
|
-
${Er(e,i)}
|
|
2911
|
-
`}
|
|
2912
|
-
`,Lr=({button:{disabled:e=!1,text:i,type:n="button",onClick:r},steps:a})=>{const[s,l]=g.useState(1),c=g.useCallback((d,p)=>()=>{l(x=>x+d),p==null||p()},[]);return t.jsx(Pr,{children:a.map((d,p)=>{const{content:x,title:u,nextAction:f,previousAction:b}=d,$=p+1,w=$===s?"current":"disabled",j=$<s?"completed":w;return t.jsxs(Fr,{children:[t.jsx(h,{maxWidth:"40px",position:"relative",children:t.jsx(Dr,{$variant:j,children:j==="completed"?t.jsx(v,{icon:"check",iconSize:"xs",iconType:"fa-solid"}):$})}),t.jsxs(h,{ml:1.5,width:"100%",children:[t.jsx(R,{fontWeight:"bold",lineSpacing:1.25,mb:1.5,size:"xs",children:u}),j==="current"&&t.jsxs(h,{children:[x,t.jsxs(Wr,{children:[s>1&&t.jsx(z,{disabled:d.isDisabledPrevious??!1,onClick:c(-1,b),variant:"tertiary",children:"Previous"}),s<a.length?t.jsx(z,{disabled:d.isDisabledNext??!1,onClick:c(1,f),variant:"primary",children:"Next step"}):t.jsx(z,{disabled:e,onClick:r,type:n,variant:"primary",children:i})]})]})]})]},d.title)})})},Ar=o.dt.button`
|
|
2913
|
-
${({theme:e})=>`
|
|
2914
|
-
align-items: center;
|
|
2915
|
-
background-color: ${e.palette.white};
|
|
2916
|
-
border: 1px solid ${e.palette.gray[100]};
|
|
2917
|
-
border-radius: ${e.spacing[.25]};
|
|
2918
|
-
color: ${e.palette.gray[800]};
|
|
2919
|
-
cursor: pointer;
|
|
2920
|
-
display: flex;
|
|
2921
|
-
font-size: ${e.typography.text.sm};
|
|
2922
|
-
gap: ${e.spacing[.25]};
|
|
2923
|
-
height: 21px;
|
|
2924
|
-
width: 21px;
|
|
2925
|
-
justify-content: center;
|
|
2926
|
-
padding: 6px;
|
|
2927
|
-
transition: all 0.25s ease;
|
|
2928
|
-
|
|
2929
|
-
&[aria-label] {
|
|
2930
|
-
height: auto;
|
|
2931
|
-
width: auto;
|
|
2932
|
-
}
|
|
2933
|
-
|
|
2934
|
-
&.success {
|
|
2935
|
-
border-color: ${e.palette.success[500]};
|
|
2936
|
-
color: ${e.palette.success[500]};
|
|
2937
|
-
|
|
2938
|
-
&:hover {
|
|
2939
|
-
background-color: ${e.palette.success[200]};
|
|
2940
|
-
}
|
|
2941
|
-
}
|
|
2942
|
-
|
|
2943
|
-
&:disabled {
|
|
2944
|
-
cursor: not-allowed;
|
|
2945
|
-
background: ${e.palette.gray[200]};
|
|
2946
|
-
border-color: ${e.palette.gray[200]};
|
|
2947
|
-
color: ${e.palette.gray[300]};
|
|
2948
|
-
}
|
|
2949
|
-
|
|
2950
|
-
&:hover:not(.success) {
|
|
2951
|
-
background-color: ${e.palette.gray[100]};
|
|
2952
|
-
}
|
|
2953
|
-
`}
|
|
2954
|
-
`,Br={add:{icon:"plus"},approve:{icon:"check"},disabled:{icon:"ban"},reject:{icon:"xmark"},submit:{icon:"arrow-right"},success:{icon:"check"}},Mr=({disabled:e=!1,icon:i,id:n,label:r,name:a,onClick:s,type:l="button",variant:c})=>{const d=o.nt(),p=t.jsxs(Ar,{"aria-label":a??void 0,className:c,disabled:e,id:n,onClick:s,type:l,children:[t.jsx(v,{clickable:!1,icon:i??Br[c].icon,iconSize:a===void 0?"xxs":"xs",iconType:"fa-light"}),a??void 0]});return t.jsxs(h,{alignItems:"center",display:"flex",children:[p,r&&t.jsx(m,{color:d.palette.gray[800],ml:.5,size:"sm",children:r})]})},Or=o.dt.div`
|
|
2955
|
-
${({theme:e})=>`
|
|
2956
|
-
align-items: center;
|
|
2957
|
-
background-color: ${e.palette.white};
|
|
2958
|
-
border: 1px solid ${e.palette.gray[200]};
|
|
2959
|
-
border-radius: ${e.spacing[.25]};
|
|
2960
|
-
display: flex;
|
|
2961
|
-
flex-direction: column;
|
|
2962
|
-
gap: ${e.spacing[.5]};
|
|
2963
|
-
min-height: 180px;
|
|
2964
|
-
padding: ${e.spacing[1.5]};
|
|
2965
|
-
width: 510px;
|
|
2966
|
-
|
|
2967
|
-
p {
|
|
2968
|
-
font-style: normal;
|
|
2969
|
-
line-height: ${e.spacing[1.25]};
|
|
2970
|
-
}
|
|
2971
|
-
|
|
2972
|
-
&:hover {
|
|
2973
|
-
border: 1px solid ${e.palette.gray[600]};
|
|
2974
|
-
}
|
|
2975
|
-
`}
|
|
2976
|
-
`,Hr=o.dt.div`
|
|
2977
|
-
${({theme:e})=>`
|
|
2978
|
-
display: flex;
|
|
2979
|
-
flex-direction: column;
|
|
2980
|
-
gap: ${e.spacing[1.5]};
|
|
2981
|
-
position: relative;
|
|
2982
|
-
max-width: 1268px;
|
|
2983
|
-
|
|
2984
|
-
&::before {
|
|
2985
|
-
background-color: ${e.palette.gray[200]};
|
|
2986
|
-
border-radius: 5px;
|
|
2987
|
-
height: 100%;
|
|
2988
|
-
width: 4px;
|
|
2989
|
-
transform: translate(-50%, 0);
|
|
2990
|
-
}
|
|
2991
|
-
|
|
2992
|
-
> * {
|
|
2993
|
-
&:nth-child(even) {
|
|
2994
|
-
align-self: end;
|
|
2995
|
-
}
|
|
2996
|
-
|
|
2997
|
-
&:nth-child(odd) {
|
|
2998
|
-
align-self: start;
|
|
2999
|
-
}
|
|
3000
|
-
|
|
3001
|
-
&::before {
|
|
3002
|
-
position: absolute;
|
|
3003
|
-
background-color: ${e.palette.primary[500]};
|
|
3004
|
-
border-radius: 50%;
|
|
3005
|
-
height: 14px;
|
|
3006
|
-
width: 14px;
|
|
3007
|
-
z-index: 1;
|
|
3008
|
-
}
|
|
3009
|
-
}
|
|
3010
|
-
|
|
3011
|
-
&::before,
|
|
3012
|
-
> *::before {
|
|
3013
|
-
content: "";
|
|
3014
|
-
left: 50%;
|
|
3015
|
-
position: absolute;
|
|
3016
|
-
transform: translateX(-50%);
|
|
3017
|
-
}
|
|
3018
|
-
|
|
3019
|
-
@media (width <= 1270px) {
|
|
3020
|
-
max-width: 540px;
|
|
3021
|
-
|
|
3022
|
-
p {
|
|
3023
|
-
text-align: center;
|
|
3024
|
-
}
|
|
3025
|
-
|
|
3026
|
-
&::before,
|
|
3027
|
-
> *::before {
|
|
3028
|
-
left: 8px;
|
|
3029
|
-
}
|
|
3030
|
-
|
|
3031
|
-
> * {
|
|
3032
|
-
&:nth-child(odd) {
|
|
3033
|
-
align-self: end;
|
|
3034
|
-
}
|
|
3035
|
-
}
|
|
3036
|
-
|
|
3037
|
-
@media (width <= 630px) {
|
|
3038
|
-
display: block;
|
|
3039
|
-
|
|
3040
|
-
.timeline-card {
|
|
3041
|
-
width: auto;
|
|
3042
|
-
margin-left: 30px;
|
|
3043
|
-
}
|
|
3044
|
-
}
|
|
3045
|
-
}
|
|
3046
|
-
`}
|
|
3047
|
-
`,Ft=({date:e,description:i,title:n})=>{const r=o.nt();return t.jsxs(Or,{className:"timeline-card",children:[t.jsx(m,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.75,size:"xl",children:e}),t.jsx(m,{color:r.palette.gray[800],fontWeight:"bold",lineSpacing:1.5,mb:.5,size:"md",textAlign:"center",children:n}),t.jsx("div",{children:i.map((a,s)=>{const l=`${a}#${s}`;return t.jsx(m,{size:"sm",textAlign:"center",wordBreak:"break-word",children:a},l)})})]})},_r=({items:e})=>t.jsx(Hr,{children:e.map((i,n)=>t.jsx(Ft,{date:i.date,description:i.description,title:i.title},`${i.title}-${n}`))}),Vr=o.dt.div`
|
|
3048
|
-
${({theme:e})=>`
|
|
3049
|
-
align-items: center;
|
|
3050
|
-
display: flex;
|
|
3051
|
-
position: relative;
|
|
3052
|
-
width: 352px;
|
|
3053
|
-
|
|
3054
|
-
> button:first-child {
|
|
3055
|
-
border-radius: ${e.spacing[2]} 0 0 ${e.spacing[2]};
|
|
3056
|
-
}
|
|
3057
|
-
> button:last-child {
|
|
3058
|
-
--angle-grad: -45deg;
|
|
3059
|
-
border-radius: 0 ${e.spacing[2]} ${e.spacing[2]} 0;
|
|
3060
|
-
}
|
|
3061
|
-
|
|
3062
|
-
&::before {
|
|
3063
|
-
background: ${e.palette.gradients["01"]} border-box;
|
|
3064
|
-
border-radius: ${e.spacing[2]};
|
|
3065
|
-
content: "";
|
|
3066
|
-
position: absolute;
|
|
3067
|
-
inset: 0;
|
|
3068
|
-
border: 2px solid transparent;
|
|
3069
|
-
mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
3070
|
-
mask-composite: exclude;
|
|
3071
|
-
}
|
|
3072
|
-
|
|
3073
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
3074
|
-
width: 320px;
|
|
3075
|
-
}
|
|
3076
|
-
`}
|
|
3077
|
-
`,Gr=o.dt.button`
|
|
3078
|
-
${({theme:e})=>`
|
|
3079
|
-
align-items: center;
|
|
3080
|
-
background: linear-gradient(
|
|
3081
|
-
var(--angle-grad),
|
|
3082
|
-
rgba(243, 38, 55, var(--opacity-grad)),
|
|
3083
|
-
rgba(184, 7, 93, var(--opacity-grad))
|
|
3084
|
-
);
|
|
3085
|
-
color: ${e.palette.primary[500]};
|
|
3086
|
-
cursor: pointer;
|
|
3087
|
-
display: flex;
|
|
3088
|
-
flex: 1 0 0;
|
|
3089
|
-
justify-content: center;
|
|
3090
|
-
gap: ${e.spacing[.625]};
|
|
3091
|
-
height: ${e.spacing[4]};
|
|
3092
|
-
padding: ${e.spacing[1.25]};
|
|
3093
|
-
position: relative;
|
|
3094
|
-
transition: color, --opacity-grad 0.5s ease-in-out;
|
|
3095
|
-
|
|
3096
|
-
&.selected {
|
|
3097
|
-
--opacity-grad: 1;
|
|
3098
|
-
background: linear-gradient(
|
|
3099
|
-
var(--angle-grad),
|
|
3100
|
-
rgba(243, 38, 55, var(--opacity-grad)),
|
|
3101
|
-
rgba(184, 7, 93, var(--opacity-grad))
|
|
3102
|
-
);
|
|
3103
|
-
color: ${e.palette.white};
|
|
3104
|
-
}
|
|
3105
|
-
`}
|
|
3106
|
-
`,Ur=({defaultSelection:e,options:i,handleClick:n})=>{const[r,a]=g.useState(e??i[0]),s=g.useCallback(l=>()=>{a(l),n(l)},[n]);return t.jsx(Vr,{children:i.map((l,c)=>t.jsx(Gr,{className:`${l.includes(r)&&"selected"}`,onClick:s(l),children:t.jsx(m,{color:"inherit",fontWeight:"bold",size:"md",sizeSm:"sm",textAlign:"center",children:l})},`${l}-${c}`))})},qr={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:""},Kr=({run:e,steps:i,onFinish:n})=>{const[r,a]=g.useState(e),[s,l]=g.useState(0),c=g.useCallback(d=>{const{action:p,index:x,status:u,type:f}=d;[o.EVENTS.STEP_AFTER,o.EVENTS.TARGET_NOT_FOUND].includes(f)?l(x+(p===o.ACTIONS.PREV?-1:1)):([o.STATUS.FINISHED,o.STATUS.SKIPPED].includes(u)||p==="close")&&(a(!1),o.lodashExports.isUndefined(n)||n())},[n]);return t.jsx(o.components_default,{callback:c,continuous:!0,disableOverlayClose:!0,disableScrollParentFix:!0,run:r,spotlightClicks:!0,stepIndex:s,steps:i,styles:{buttonNext:{display:s===i.length-1?"none":"block"},options:{zIndex:9999}}})},Xr=o.dt.form`
|
|
3107
|
-
${({theme:e})=>`
|
|
3108
|
-
align-items: center;
|
|
3109
|
-
background: ${e.palette.gray[50]};
|
|
3110
|
-
backdrop-filter: blur(11px);
|
|
3111
|
-
border-radius: ${e.spacing[1]};
|
|
3112
|
-
box-shadow: ${e.shadows.md};
|
|
3113
|
-
display: flex;
|
|
3114
|
-
flex-direction: column;
|
|
3115
|
-
justify-content: center;
|
|
3116
|
-
padding: ${e.spacing[3]} ${e.spacing[2]};
|
|
3117
|
-
width: 628px;
|
|
3118
|
-
|
|
3119
|
-
&::before {
|
|
3120
|
-
background: ${e.palette.gradients["02"]} border-box;
|
|
3121
|
-
border-radius: ${e.spacing[1]};
|
|
3122
|
-
content: "";
|
|
3123
|
-
position: absolute;
|
|
3124
|
-
inset: 0;
|
|
3125
|
-
border: 2px solid transparent;
|
|
3126
|
-
mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
|
|
3127
|
-
mask-composite: exclude;
|
|
3128
|
-
}
|
|
3129
|
-
|
|
3130
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
3131
|
-
width: 320px;
|
|
3132
|
-
}
|
|
3133
|
-
`}
|
|
3134
|
-
`,Zr=o.dt.div`
|
|
3135
|
-
align-items: flex-start;
|
|
3136
|
-
align-self: stretch;
|
|
3137
|
-
display: flex;
|
|
3138
|
-
flex-direction: column;
|
|
3139
|
-
gap: ${({theme:e})=>e.spacing[1.5]};
|
|
3140
|
-
|
|
3141
|
-
button[type="submit"] {
|
|
3142
|
-
width: 100%;
|
|
3143
|
-
|
|
3144
|
-
> * {
|
|
3145
|
-
text-align: center;
|
|
3146
|
-
}
|
|
3147
|
-
}
|
|
3148
|
-
`,Yr=o.dt.div`
|
|
3149
|
-
${({theme:e})=>`
|
|
3150
|
-
align-items: flex-start;
|
|
3151
|
-
align-self: stretch;
|
|
3152
|
-
container-type: inline-size;
|
|
3153
|
-
display: flex;
|
|
3154
|
-
flex-direction: row;
|
|
3155
|
-
gap: ${e.spacing[1]};
|
|
3156
|
-
position: relative;
|
|
3157
|
-
|
|
3158
|
-
&:has(> :nth-child(2)) {
|
|
3159
|
-
> div {
|
|
3160
|
-
display: flex;
|
|
3161
|
-
width: 50%;
|
|
3162
|
-
}
|
|
3163
|
-
}
|
|
3164
|
-
|
|
3165
|
-
@media screen and (max-width: ${e.breakpoints.mobile}) {
|
|
3166
|
-
flex-direction: column;
|
|
3167
|
-
}
|
|
3168
|
-
`}
|
|
3169
|
-
`,Jr=({children:e,name:i,onSubmit:n,submitDisabled:r,submitLabel:a="Submit"})=>t.jsx(Xr,{"aria-label":i,name:i,onSubmit:n,children:t.jsxs(Zr,{children:[e,t.jsx(z,{disabled:r,type:"submit",children:a})]})});exports.Accordion=li;exports.AccordionContent=Ue;exports.ActionButton=ve;exports.Alert=bi;exports.BaseButtonComponent=Te;exports.BaseComponent=K;exports.BaseSpanComponent=Ve;exports.BaseTextComponent=Re;exports.Button=z;exports.Button$1=ue;exports.Calendar=Qe;exports.Calendar$1=at;exports.Calendar$2=rt;exports.CalendarCell=Je;exports.CalendarGrid=ye;exports.CardHeader=be;exports.CardWithImage=vi;exports.CardWithInput=cn;exports.CardWithSelector=un;exports.CardWithSwitch=bn;exports.Carousel=kn;exports.CategoryTag=Se;exports.Checkbox=Cn;exports.Code=In;exports.CodeSnippet=zn;exports.ComboBox=Ni;exports.Container=h;exports.ContentCard=mt;exports.ContentCardCarousel=Mn;exports.CustomThemeProvider=ei;exports.DateField=tt;exports.DateSelector=Q;exports.Description=Rt;exports.Dialog=we;exports.Divider=he;exports.Editable=qi;exports.EmptyButton=ze;exports.EmptyState=Vn;exports.EventDate=yt;exports.FilePreview=Xe;exports.FixedTabs=aa;exports.Form=Un;exports.FormItem=Yr;exports.GridContainer=Kn;exports.GroupSelector=Qn;exports.Header=me;exports.Heading=R;exports.Icon=v;exports.IconButton=E;exports.IndicatorCard=ea;exports.InfoSidebar=sa;exports.Input=ot;exports.InputDate=nt;exports.InputDateRange=_i;exports.InputDateTime=Ui;exports.InputFile=Yi;exports.InputNumber=st;exports.InputNumberRange=en;exports.InputTags=Qi;exports.InteractiveCard=da;exports.InteractiveIcon=St;exports.ItemList=zt;exports.ItemSearching=ge;exports.Label=Ne;exports.LanguageSelector=ha;exports.Link=_;exports.ListItem=$a;exports.ListItemsWrapper=It;exports.LittleFlag=ma;exports.Loading=Ia;exports.Logo=Fa;exports.LogoCarousel=Ea;exports.MemoizedImage=W;exports.Menu=Wa;exports.MenuItem=Et;exports.MessageBanner=Aa;exports.Modal=$t;exports.ModalConfirm=ft;exports.ModalFooter=ht;exports.ModalHeader=bt;exports.Notification=Ha;exports.NotificationSign=kt;exports.NumberField=fe;exports.NumberInput=Ga;exports.OAuthSelector=qa;exports.Option=Ze;exports.OptionBoxContainer=Pe;exports.OptionContainer=Ie;exports.OptionContainer$1=wt;exports.OutlineContainer=F;exports.PhoneInput=sn;exports.PlanCard=Za;exports.PopUp=Ya;exports.Popover=ce;exports.PremiumFeature=Nt;exports.PriorityScore=Qa;exports.Progress=sr;exports.ProgressBar=ar;exports.RadioButton=gt;exports.RecommendedTag=Tt;exports.ScrollButtons=Ce;exports.ScrollUpButton=cr;exports.Search=jt;exports.SearchBar=br;exports.SeverityBadge=yr;exports.SeverityOverview=wr;exports.SeverityOverviewBadge=J;exports.ShowOnHover=kr;exports.SlideOutMenu=Cr;exports.Slider=Nr;exports.Span=xe;exports.StepLapse=Lr;exports.Tab=vt;exports.TableButton=Mr;exports.Tabs=Ct;exports.Tag=$e;exports.Text=m;exports.TextArea=ln;exports.Thumb=Pt;exports.TimeField=it;exports.TimeLine=_r;exports.TimeLineCard=Ft;exports.Toggle=xt;exports.ToggleButton=Ur;exports.Tooltip=B;exports.Tour=Kr;exports.WebForm=Jr;exports.baseStep=qr;exports.getStyledConfig=le;exports.hiddenProps=_e;exports.icons=Jt;exports.setBorder=ae;exports.setDisplay=re;exports.setInteraction=se;exports.setMargin=ie;exports.setPadding=te;exports.setPosition=ne;exports.setText=oe;exports.theme=k;exports.uniqueIcons=Qt;exports.useCarousel=lt;exports.useClickOutside=V;exports.useCloudinaryImage=ct;exports.useConfirmDialog=Dn;exports.useDebouncedCallback=dt;exports.useModal=pt;exports.useSearch=dn;exports.variantBuilder=A;
|