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